@ihabdevteam/core 0.135.0 → 0.137.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (113) hide show
  1. package/CHANGELOG.md +128 -0
  2. package/dist/components.cjs.js +177 -177
  3. package/dist/components.esm.css +3 -3
  4. package/dist/hooks.cjs.js +1 -1
  5. package/dist/i18n.cjs.js +3 -3
  6. package/dist/ihabdevteam-core.cjs.js +181 -181
  7. package/dist/ihabdevteam-core.d.ts +38 -7
  8. package/dist/packages/core/src/components/Alert.js +1 -1
  9. package/dist/packages/core/src/components/Breadcrumb.js +1 -0
  10. package/dist/packages/core/src/components/Button.css +5 -0
  11. package/dist/packages/core/src/components/Button.js +3 -3
  12. package/dist/packages/core/src/components/Checkbox.js +10 -2
  13. package/dist/packages/core/src/components/CodeBox.js +2 -1
  14. package/dist/packages/core/src/components/Effect/EffectPartyPopper.js +5 -2
  15. package/dist/packages/core/src/components/Icon.js +4 -1
  16. package/dist/packages/core/src/components/IconGridMenu.js +25 -22
  17. package/dist/packages/core/src/components/LandingHeader.d.ts +1 -1
  18. package/dist/packages/core/src/components/LandingHeader.js +5 -1
  19. package/dist/packages/core/src/components/PageTitle.js +1 -0
  20. package/dist/packages/core/src/components/Pagination.js +1 -1
  21. package/dist/packages/core/src/components/Panel.css +3 -0
  22. package/dist/packages/core/src/components/Panel.d.ts +11 -1
  23. package/dist/packages/core/src/components/Panel.js +3 -3
  24. package/dist/packages/core/src/components/PanelRow.js +8 -1
  25. package/dist/packages/core/src/components/PassCard/PassCardBgIHAB.js +1 -0
  26. package/dist/packages/core/src/components/PassCard/PassCardBgLeftColorGrid.js +1 -0
  27. package/dist/packages/core/src/components/PassCard/PassCardBgSoundMove.js +1 -0
  28. package/dist/packages/core/src/components/PassCard/PassCardBgSoundMoveV1.js +1 -0
  29. package/dist/packages/core/src/components/PassCard/PassCardBgTalk.js +1 -0
  30. package/dist/packages/core/src/components/PassCard/PassCardBgTalkV1.js +1 -0
  31. package/dist/packages/core/src/components/PassCard/PassCardBgTwoCircle.js +1 -0
  32. package/dist/packages/core/src/components/Popup/DeviceSideTable.js +8 -1
  33. package/dist/packages/core/src/components/Popup/ListPopup.js +3 -1
  34. package/dist/packages/core/src/components/Popup/LoadTablePopup.js +6 -5
  35. package/dist/packages/core/src/components/Popup/Popup.css +19 -0
  36. package/dist/packages/core/src/components/Popup/Popup.d.ts +14 -1
  37. package/dist/packages/core/src/components/Popup/Popup.js +6 -5
  38. package/dist/packages/core/src/components/Popup/TrainingResultPopup.js +6 -1
  39. package/dist/packages/core/src/components/Popup/customerDetailUtils.js +5 -3
  40. package/dist/packages/core/src/components/ProgressBar.js +5 -2
  41. package/dist/packages/core/src/components/ProgressIndicator.js +7 -1
  42. package/dist/packages/core/src/components/PromoBannerBg/PromoBannerBgDark.js +1 -0
  43. package/dist/packages/core/src/components/PromoBannerBg/PromoBannerBgDeep.js +1 -0
  44. package/dist/packages/core/src/components/PromoBannerBg/PromoBannerBgDiagonal.js +1 -0
  45. package/dist/packages/core/src/components/PromoBannerBg/PromoBannerBgDots.js +1 -0
  46. package/dist/packages/core/src/components/PromoBannerBg/PromoBannerBgInstagram.js +1 -0
  47. package/dist/packages/core/src/components/PromoBannerBg/PromoBannerBgMain.js +1 -0
  48. package/dist/packages/core/src/components/PromoBannerBg/PromoBannerBgNaver.js +1 -0
  49. package/dist/packages/core/src/components/PromoBannerBg/PromoBannerBgOutline.js +1 -0
  50. package/dist/packages/core/src/components/PromoBannerBg/PromoBannerBgRadial.js +1 -0
  51. package/dist/packages/core/src/components/PromoBannerBg/PromoBannerBgSoft.js +1 -0
  52. package/dist/packages/core/src/components/PromoBannerBg/PromoBannerBgSoftSub.js +1 -0
  53. package/dist/packages/core/src/components/PromoBannerBg/PromoBannerBgSub.js +1 -0
  54. package/dist/packages/core/src/components/PromoBannerBg/PromoBannerBgSuccess.js +1 -0
  55. package/dist/packages/core/src/components/PromoBannerBg/PromoBannerBgWarm.js +1 -0
  56. package/dist/packages/core/src/components/Rating.js +3 -1
  57. package/dist/packages/core/src/components/SideNav.js +6 -3
  58. package/dist/packages/core/src/components/SplashLogo.js +1 -2
  59. package/dist/packages/core/src/components/StatChart.js +1 -1
  60. package/dist/packages/core/src/components/TextField.js +3 -1
  61. package/dist/packages/core/src/components/Tooltip/DescriptionTooltip.js +1 -0
  62. package/dist/packages/core/src/components/Tooltip/TrainingTooltip.js +6 -5
  63. package/dist/packages/core/src/components/Training/TrainingBlockButton.css +57 -0
  64. package/dist/packages/core/src/components/Training/TrainingBlockButton.js +15 -7
  65. package/dist/packages/core/src/components/Training/TrainingCardGroup.js +1 -0
  66. package/dist/packages/core/src/components/Training/TrainingPagePopupTitle.js +2 -1
  67. package/dist/packages/core/src/components/Training/TrainingStepAudioPlayer.js +28 -1
  68. package/dist/packages/core/src/components/Training/TrainingStepCard.js +10 -3
  69. package/dist/packages/core/src/components/Training/TrainingStepCardOrder.js +36 -26
  70. package/dist/packages/core/src/components/Training/TrainingStepOrderList.d.ts +0 -1
  71. package/dist/packages/core/src/components/Training/TrainingStepOrderList.js +16 -1
  72. package/dist/packages/core/src/components/Training/TrainingStepTextBox.js +7 -4
  73. package/dist/packages/core/src/components/Training/TrainingStepTitle.js +4 -1
  74. package/dist/packages/core/src/components/Training/TrainingWordCard.js +21 -4
  75. package/dist/packages/core/src/components/Training/WordTablePopup.js +9 -3
  76. package/dist/packages/core/src/components/Training/currentSound.d.ts +5 -0
  77. package/dist/packages/core/src/components/Training/currentSound.js +13 -0
  78. package/dist/packages/core/src/components/Training/trainingBlockButtonTypes.d.ts +3 -1
  79. package/dist/packages/core/src/components/Training/trainingMissStats.js +9 -2
  80. package/dist/packages/core/src/components/Training/trainingPopupUtils.js +12 -1
  81. package/dist/packages/core/src/components/Training/useNoiseFade.js +4 -0
  82. package/dist/packages/core/src/components/Training/useTTSPlayback.js +5 -1
  83. package/dist/packages/core/src/components/Word/WordTableBlock.js +5 -2
  84. package/dist/packages/core/src/components/Word/WordTableButton.js +3 -0
  85. package/dist/packages/core/src/components/Word/useWordTableDisplaySettings.js +5 -1
  86. package/dist/packages/core/src/components/Word/wordScoreStats.js +7 -2
  87. package/dist/packages/core/src/components/Word/wordTablePrint.js +15 -2
  88. package/dist/packages/core/src/components/WordTable.js +19 -5
  89. package/dist/packages/core/src/components/buttonTypes.d.ts +6 -0
  90. package/dist/packages/core/src/components/useCalendarMonth.js +15 -17
  91. package/dist/packages/core/src/components/useToastLifecycle.js +7 -2
  92. package/dist/packages/core/src/context/I18nProvider.js +12 -3
  93. package/dist/packages/core/src/hooks/useFontScale.js +13 -4
  94. package/dist/packages/core/src/hooks/useIcon.js +3 -0
  95. package/dist/packages/core/src/hooks/useLucideIcon.js +3 -0
  96. package/dist/packages/core/src/hooks/useMediaQuery.d.ts +2 -1
  97. package/dist/packages/core/src/hooks/useMediaQuery.js +37 -8
  98. package/dist/packages/core/src/hooks/usePagedList.js +1 -0
  99. package/dist/packages/core/src/hooks/useSoundCompassExam.js +13 -2
  100. package/dist/packages/core/src/hooks/useTrainingTypeLabels.js +1 -0
  101. package/dist/packages/core/src/hooks/useVisitHistory.js +1 -0
  102. package/dist/packages/core/src/hooks/useWordTrainingDataGeneration.js +18 -3
  103. package/dist/packages/core/src/i18n/locales/en.json +42 -4
  104. package/dist/packages/core/src/i18n/locales/ko.json +42 -4
  105. package/dist/packages/core/src/utils/date.js +26 -5
  106. package/dist/packages/core/src/utils/errorMessage.js +7 -1
  107. package/dist/packages/core/src/utils/speak.js +23 -3
  108. package/dist/packages/core/src/utils/textSort.js +12 -1
  109. package/dist/packages/core/src/utils/ttsConfig.js +10 -8
  110. package/dist/packages/core/src/version.d.ts +1 -1
  111. package/dist/packages/core/src/version.js +1 -1
  112. package/dist/utils.cjs.js +2 -2
  113. package/package.json +1 -1
@@ -1,24 +1,24 @@
1
- "use strict";var t=require("react/jsx-runtime"),i=require("react"),It=require("i18next"),me=require("react-i18next"),Ft=require("react-dom"),Jt=typeof document<"u"?document.currentScript:null;function ve(...e){return e.filter(Boolean).join(" ")}const so=new Set,io=(()=>{try{const e=globalThis;return e.process!=null&&e.process.env?.NODE_ENV!=="production"}catch{return!1}})();function zn(e,...n){!io||so.has(e)||(so.add(e),console.warn(...n))}/**
1
+ "use strict";var t=require("react/jsx-runtime"),s=require("react"),Tt=require("i18next"),me=require("react-i18next"),Ft=require("react-dom"),Jt=typeof document<"u"?document.currentScript:null;function bc(e){var n=Object.create(null);return e&&Object.keys(e).forEach(function(a){if(a!=="default"){var r=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(n,a,r.get?r:{enumerable:!0,get:function(){return e[a]}})}}),n.default=e,Object.freeze(n)}var lo=bc(s);function ye(...e){return e.filter(Boolean).join(" ")}const co=new Set,uo=(()=>{try{const e=globalThis;return e.process!=null&&e.process.env?.NODE_ENV!=="production"}catch{return!1}})();function zn(e,...n){!uo||co.has(e)||(co.add(e),console.warn(...n))}/**
2
2
  * @license lucide-react v1.38.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
5
5
  * See the LICENSE file in the root directory of this source tree.
6
- */const lo=(...e)=>e.filter((n,a,r)=>!!n&&n.trim()!==""&&r.indexOf(n)===a).join(" ").trim();/**
6
+ */const po=(...e)=>e.filter((n,a,r)=>!!n&&n.trim()!==""&&r.indexOf(n)===a).join(" ").trim();/**
7
7
  * @license lucide-react v1.38.0 - ISC
8
8
  *
9
9
  * This source code is licensed under the ISC license.
10
10
  * See the LICENSE file in the root directory of this source tree.
11
- */const uc=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
11
+ */const yc=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
12
12
  * @license lucide-react v1.38.0 - ISC
13
13
  *
14
14
  * This source code is licensed under the ISC license.
15
15
  * See the LICENSE file in the root directory of this source tree.
16
- */const dc=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(n,a,r)=>r?r.toUpperCase():a.toLowerCase());/**
16
+ */const vc=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(n,a,r)=>r?r.toUpperCase():a.toLowerCase());/**
17
17
  * @license lucide-react v1.38.0 - ISC
18
18
  *
19
19
  * This source code is licensed under the ISC license.
20
20
  * See the LICENSE file in the root directory of this source tree.
21
- */const co=e=>{const n=dc(e);return n.charAt(0).toUpperCase()+n.slice(1)};/**
21
+ */const ho=e=>{const n=vc(e);return n.charAt(0).toUpperCase()+n.slice(1)};/**
22
22
  * @license lucide-react v1.38.0 - ISC
23
23
  *
24
24
  * This source code is licensed under the ISC license.
@@ -28,784 +28,784 @@
28
28
  *
29
29
  * This source code is licensed under the ISC license.
30
30
  * See the LICENSE file in the root directory of this source tree.
31
- */const pc=e=>{for(const n in e)if(n.startsWith("aria-")||n==="role"||n==="title")return!0;return!1},hc=i.createContext({}),mc=()=>i.useContext(hc),fc=i.forwardRef(({color:e,size:n,strokeWidth:a,absoluteStrokeWidth:r,className:o="",children:s,iconNode:l,...c},u)=>{const{size:d=24,strokeWidth:p=2,absoluteStrokeWidth:h=!1,color:m="currentColor",className:b=""}=mc()??{},f=r??h?Number(a??p)*24/Number(n??d):a??p;return i.createElement("svg",{ref:u,...Pa,width:n??d??Pa.width,height:n??d??Pa.height,stroke:e??m,strokeWidth:f,className:lo("lucide",b,o),...!s&&!pc(c)&&{"aria-hidden":"true"},...c},[...l.map(([g,C])=>i.createElement(g,C)),...Array.isArray(s)?s:[s]])});/**
31
+ */const xc=e=>{for(const n in e)if(n.startsWith("aria-")||n==="role"||n==="title")return!0;return!1},_c=s.createContext({}),wc=()=>s.useContext(_c),kc=s.forwardRef(({color:e,size:n,strokeWidth:a,absoluteStrokeWidth:r,className:o="",children:i,iconNode:l,...c},u)=>{const{size:d=24,strokeWidth:p=2,absoluteStrokeWidth:h=!1,color:m="currentColor",className:b=""}=wc()??{},g=r??h?Number(a??p)*24/Number(n??d):a??p;return s.createElement("svg",{ref:u,...Pa,width:n??d??Pa.width,height:n??d??Pa.height,stroke:e??m,strokeWidth:g,className:po("lucide",b,o),...!i&&!xc(c)&&{"aria-hidden":"true"},...c},[...l.map(([f,C])=>s.createElement(f,C)),...Array.isArray(i)?i:[i]])});/**
32
32
  * @license lucide-react v1.38.0 - ISC
33
33
  *
34
34
  * This source code is licensed under the ISC license.
35
35
  * See the LICENSE file in the root directory of this source tree.
36
- */const Y=(e,n)=>{const a=i.forwardRef(({className:r,...o},s)=>i.createElement(fc,{ref:s,iconNode:n,className:lo(`lucide-${uc(co(e))}`,`lucide-${e}`,r),...o}));return a.displayName=co(e),a};/**
36
+ */const G=(e,n)=>{const a=s.forwardRef(({className:r,...o},i)=>s.createElement(kc,{ref:i,iconNode:n,className:po(`lucide-${yc(ho(e))}`,`lucide-${e}`,r),...o}));return a.displayName=ho(e),a};/**
37
37
  * @license lucide-react v1.38.0 - ISC
38
38
  *
39
39
  * This source code is licensed under the ISC license.
40
40
  * See the LICENSE file in the root directory of this source tree.
41
- */const Cc=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],uo=Y("triangle-alert",Cc);/**
41
+ */const Ac=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],mo=G("triangle-alert",Ac);/**
42
42
  * @license lucide-react v1.38.0 - ISC
43
43
  *
44
44
  * This source code is licensed under the ISC license.
45
45
  * See the LICENSE file in the root directory of this source tree.
46
- */const gc=[["rect",{width:"9",height:"6",x:"6",y:"14",rx:"2",key:"lpm2y7"}],["rect",{width:"16",height:"6",x:"6",y:"4",rx:"2",key:"rdj6ps"}],["path",{d:"M2 2v20",key:"1ivd8o"}]],bc=Y("align-start-vertical",gc);/**
46
+ */const Nc=[["rect",{width:"9",height:"6",x:"6",y:"14",rx:"2",key:"lpm2y7"}],["rect",{width:"16",height:"6",x:"6",y:"4",rx:"2",key:"rdj6ps"}],["path",{d:"M2 2v20",key:"1ivd8o"}]],Bc=G("align-start-vertical",Nc);/**
47
47
  * @license lucide-react v1.38.0 - ISC
48
48
  *
49
49
  * This source code is licensed under the ISC license.
50
50
  * See the LICENSE file in the root directory of this source tree.
51
- */const yc=[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]],vc=Y("arrow-down",yc);/**
51
+ */const Sc=[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]],Dc=G("arrow-down",Sc);/**
52
52
  * @license lucide-react v1.38.0 - ISC
53
53
  *
54
54
  * This source code is licensed under the ISC license.
55
55
  * See the LICENSE file in the root directory of this source tree.
56
- */const xc=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],_c=Y("arrow-left",xc);/**
56
+ */const Tc=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],jc=G("arrow-left",Tc);/**
57
57
  * @license lucide-react v1.38.0 - ISC
58
58
  *
59
59
  * This source code is licensed under the ISC license.
60
60
  * See the LICENSE file in the root directory of this source tree.
61
- */const wc=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],kc=Y("arrow-right",wc);/**
61
+ */const Ec=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Mc=G("arrow-right",Ec);/**
62
62
  * @license lucide-react v1.38.0 - ISC
63
63
  *
64
64
  * This source code is licensed under the ISC license.
65
65
  * See the LICENSE file in the root directory of this source tree.
66
- */const Ac=[["path",{d:"m16 3 4 4-4 4",key:"1x1c3m"}],["path",{d:"M20 7H4",key:"zbl0bi"}],["path",{d:"m8 21-4-4 4-4",key:"h9nckh"}],["path",{d:"M4 17h16",key:"g4d7ey"}]],Nc=Y("arrow-right-left",Ac);/**
66
+ */const Lc=[["path",{d:"m16 3 4 4-4 4",key:"1x1c3m"}],["path",{d:"M20 7H4",key:"zbl0bi"}],["path",{d:"m8 21-4-4 4-4",key:"h9nckh"}],["path",{d:"M4 17h16",key:"g4d7ey"}]],$c=G("arrow-right-left",Lc);/**
67
67
  * @license lucide-react v1.38.0 - ISC
68
68
  *
69
69
  * This source code is licensed under the ISC license.
70
70
  * See the LICENSE file in the root directory of this source tree.
71
- */const Bc=[["path",{d:"M2 10v3",key:"1fnikh"}],["path",{d:"M6 6v11",key:"11sgs0"}],["path",{d:"M10 3v18",key:"yhl04a"}],["path",{d:"M14 8v7",key:"3a1oy3"}],["path",{d:"M18 5v13",key:"123xd1"}],["path",{d:"M22 10v3",key:"154ddg"}]],Dc=Y("audio-lines",Bc);/**
71
+ */const Rc=[["path",{d:"M2 10v3",key:"1fnikh"}],["path",{d:"M6 6v11",key:"11sgs0"}],["path",{d:"M10 3v18",key:"yhl04a"}],["path",{d:"M14 8v7",key:"3a1oy3"}],["path",{d:"M18 5v13",key:"123xd1"}],["path",{d:"M22 10v3",key:"154ddg"}]],Pc=G("audio-lines",Rc);/**
72
72
  * @license lucide-react v1.38.0 - ISC
73
73
  *
74
74
  * This source code is licensed under the ISC license.
75
75
  * See the LICENSE file in the root directory of this source tree.
76
- */const Sc=[["path",{d:"M10 16c.5.3 1.2.5 2 .5s1.5-.2 2-.5",key:"1u7htd"}],["path",{d:"M15 12h.01",key:"1k8ypt"}],["path",{d:"M19.38 6.813A9 9 0 0 1 20.8 10.2a2 2 0 0 1 0 3.6 9 9 0 0 1-17.6 0 2 2 0 0 1 0-3.6A9 9 0 0 1 12 3c2 0 3.5 1.1 3.5 2.5s-.9 2.5-2 2.5c-.8 0-1.5-.4-1.5-1",key:"11xh7x"}],["path",{d:"M9 12h.01",key:"157uk2"}]],jc=Y("baby",Sc);/**
76
+ */const Ic=[["path",{d:"M10 16c.5.3 1.2.5 2 .5s1.5-.2 2-.5",key:"1u7htd"}],["path",{d:"M15 12h.01",key:"1k8ypt"}],["path",{d:"M19.38 6.813A9 9 0 0 1 20.8 10.2a2 2 0 0 1 0 3.6 9 9 0 0 1-17.6 0 2 2 0 0 1 0-3.6A9 9 0 0 1 12 3c2 0 3.5 1.1 3.5 2.5s-.9 2.5-2 2.5c-.8 0-1.5-.4-1.5-1",key:"11xh7x"}],["path",{d:"M9 12h.01",key:"157uk2"}]],Fc=G("baby",Ic);/**
77
77
  * @license lucide-react v1.38.0 - ISC
78
78
  *
79
79
  * This source code is licensed under the ISC license.
80
80
  * See the LICENSE file in the root directory of this source tree.
81
- */const Tc=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M4.929 4.929 19.07 19.071",key:"196cmz"}]],Ec=Y("ban",Tc);/**
81
+ */const Oc=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M4.929 4.929 19.07 19.071",key:"196cmz"}]],Hc=G("ban",Oc);/**
82
82
  * @license lucide-react v1.38.0 - ISC
83
83
  *
84
84
  * This source code is licensed under the ISC license.
85
85
  * See the LICENSE file in the root directory of this source tree.
86
- */const Mc=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]],Lc=Y("bell",Mc);/**
86
+ */const Vc=[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]],zc=G("bell",Vc);/**
87
87
  * @license lucide-react v1.38.0 - ISC
88
88
  *
89
89
  * This source code is licensed under the ISC license.
90
90
  * See the LICENSE file in the root directory of this source tree.
91
- */const $c=[["path",{d:"M10 2v8l3-3 3 3V2",key:"sqw3rj"}],["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",key:"k3hazp"}]],Rc=Y("book-marked",$c);/**
91
+ */const Wc=[["path",{d:"M10 2v8l3-3 3 3V2",key:"sqw3rj"}],["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",key:"k3hazp"}]],qc=G("book-marked",Wc);/**
92
92
  * @license lucide-react v1.38.0 - ISC
93
93
  *
94
94
  * This source code is licensed under the ISC license.
95
95
  * See the LICENSE file in the root directory of this source tree.
96
- */const Pc=[["path",{d:"M12 5v16",key:"1f6ucr"}],["path",{d:"M20.001 19A2 2 0 0022 17V5a2 2 0 00-1.999-2L16 3.002A5 5 0 0012 5a5 5 0 00-4-2H4a2 2 0 00-2 2v12a2 2 0 001.999 2H8a5 5 0 014 2 5 5 0 014-2z",key:"1fyvmf"}]],Ic=Y("book-open",Pc);/**
96
+ */const Uc=[["path",{d:"M12 5v16",key:"1f6ucr"}],["path",{d:"M20.001 19A2 2 0 0022 17V5a2 2 0 00-1.999-2L16 3.002A5 5 0 0012 5a5 5 0 00-4-2H4a2 2 0 00-2 2v12a2 2 0 001.999 2H8a5 5 0 014 2 5 5 0 014-2z",key:"1fyvmf"}]],Gc=G("book-open",Uc);/**
97
97
  * @license lucide-react v1.38.0 - ISC
98
98
  *
99
99
  * This source code is licensed under the ISC license.
100
100
  * See the LICENSE file in the root directory of this source tree.
101
- */const Fc=[["path",{d:"M17 3h4v4",key:"19p9u1"}],["path",{d:"M18.575 11.082a13 13 0 0 1 1.048 9.027 1.17 1.17 0 0 1-1.914.597L14 17",key:"12t3w9"}],["path",{d:"M7 10 3.29 6.29a1.17 1.17 0 0 1 .6-1.91 13 13 0 0 1 9.03 1.05",key:"ogng5l"}],["path",{d:"M7 14a1.7 1.7 0 0 0-1.207.5l-2.646 2.646A.5.5 0 0 0 3.5 18H5a1 1 0 0 1 1 1v1.5a.5.5 0 0 0 .854.354L9.5 18.207A1.7 1.7 0 0 0 10 17v-2a1 1 0 0 0-1-1z",key:"8v3fy2"}],["path",{d:"M9.707 14.293 21 3",key:"ydm3bn"}]],Oc=Y("bow-arrow",Fc);/**
101
+ */const Kc=[["path",{d:"M17 3h4v4",key:"19p9u1"}],["path",{d:"M18.575 11.082a13 13 0 0 1 1.048 9.027 1.17 1.17 0 0 1-1.914.597L14 17",key:"12t3w9"}],["path",{d:"M7 10 3.29 6.29a1.17 1.17 0 0 1 .6-1.91 13 13 0 0 1 9.03 1.05",key:"ogng5l"}],["path",{d:"M7 14a1.7 1.7 0 0 0-1.207.5l-2.646 2.646A.5.5 0 0 0 3.5 18H5a1 1 0 0 1 1 1v1.5a.5.5 0 0 0 .854.354L9.5 18.207A1.7 1.7 0 0 0 10 17v-2a1 1 0 0 0-1-1z",key:"8v3fy2"}],["path",{d:"M9.707 14.293 21 3",key:"ydm3bn"}]],Yc=G("bow-arrow",Kc);/**
102
102
  * @license lucide-react v1.38.0 - ISC
103
103
  *
104
104
  * This source code is licensed under the ISC license.
105
105
  * See the LICENSE file in the root directory of this source tree.
106
- */const Hc=[["path",{d:"M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1",key:"ezmyqa"}],["path",{d:"M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1",key:"e1hn23"}]],Vc=Y("braces",Hc);/**
106
+ */const Zc=[["path",{d:"M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1",key:"ezmyqa"}],["path",{d:"M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1",key:"e1hn23"}]],Xc=G("braces",Zc);/**
107
107
  * @license lucide-react v1.38.0 - ISC
108
108
  *
109
109
  * This source code is licensed under the ISC license.
110
110
  * See the LICENSE file in the root directory of this source tree.
111
- */const zc=[["path",{d:"M12 20v-9",key:"1qisl0"}],["path",{d:"M14 7a4 4 0 0 1 4 4v3a6 6 0 0 1-12 0v-3a4 4 0 0 1 4-4z",key:"uouzyp"}],["path",{d:"M14.12 3.88 16 2",key:"qol33r"}],["path",{d:"M21 21a4 4 0 0 0-3.81-4",key:"1b0z45"}],["path",{d:"M21 5a4 4 0 0 1-3.55 3.97",key:"5cxbf6"}],["path",{d:"M22 13h-4",key:"1jl80f"}],["path",{d:"M3 21a4 4 0 0 1 3.81-4",key:"1fjd4g"}],["path",{d:"M3 5a4 4 0 0 0 3.55 3.97",key:"1d7oge"}],["path",{d:"M6 13H2",key:"82j7cp"}],["path",{d:"m8 2 1.88 1.88",key:"fmnt4t"}],["path",{d:"M9 7.13V6a3 3 0 1 1 6 0v1.13",key:"1vgav8"}]],Wc=Y("bug",zc);/**
111
+ */const Jc=[["path",{d:"M12 20v-9",key:"1qisl0"}],["path",{d:"M14 7a4 4 0 0 1 4 4v3a6 6 0 0 1-12 0v-3a4 4 0 0 1 4-4z",key:"uouzyp"}],["path",{d:"M14.12 3.88 16 2",key:"qol33r"}],["path",{d:"M21 21a4 4 0 0 0-3.81-4",key:"1b0z45"}],["path",{d:"M21 5a4 4 0 0 1-3.55 3.97",key:"5cxbf6"}],["path",{d:"M22 13h-4",key:"1jl80f"}],["path",{d:"M3 21a4 4 0 0 1 3.81-4",key:"1fjd4g"}],["path",{d:"M3 5a4 4 0 0 0 3.55 3.97",key:"1d7oge"}],["path",{d:"M6 13H2",key:"82j7cp"}],["path",{d:"m8 2 1.88 1.88",key:"fmnt4t"}],["path",{d:"M9 7.13V6a3 3 0 1 1 6 0v1.13",key:"1vgav8"}]],Qc=G("bug",Jc);/**
112
112
  * @license lucide-react v1.38.0 - ISC
113
113
  *
114
114
  * This source code is licensed under the ISC license.
115
115
  * See the LICENSE file in the root directory of this source tree.
116
- */const qc=[["path",{d:"M8 2v3",key:"1ioesn"}],["path",{d:"M16 2v3",key:"otl347"}],["rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",key:"h1oib"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"m9 15 2 2 4-4",key:"1grp1n"}]],Uc=Y("calendar-check",qc);/**
116
+ */const eu=[["path",{d:"M8 2v3",key:"1ioesn"}],["path",{d:"M16 2v3",key:"otl347"}],["rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",key:"h1oib"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"m9 15 2 2 4-4",key:"1grp1n"}]],tu=G("calendar-check",eu);/**
117
117
  * @license lucide-react v1.38.0 - ISC
118
118
  *
119
119
  * This source code is licensed under the ISC license.
120
120
  * See the LICENSE file in the root directory of this source tree.
121
- */const Gc=[["path",{d:"M8 2v3",key:"1ioesn"}],["path",{d:"M16 2v3",key:"otl347"}],["rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",key:"h1oib"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M8 13h.01",key:"1sbv64"}],["path",{d:"M12 13h.01",key:"y0uutt"}],["path",{d:"M16 13h.01",key:"wip0gl"}],["path",{d:"M8 17h.01",key:"p3bg7i"}],["path",{d:"M12 17h.01",key:"p32p05"}],["path",{d:"M16 17h.01",key:"ql8jdd"}]],Kc=Y("calendar-days",Gc);/**
121
+ */const nu=[["path",{d:"M8 2v3",key:"1ioesn"}],["path",{d:"M16 2v3",key:"otl347"}],["rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",key:"h1oib"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M8 13h.01",key:"1sbv64"}],["path",{d:"M12 13h.01",key:"y0uutt"}],["path",{d:"M16 13h.01",key:"wip0gl"}],["path",{d:"M8 17h.01",key:"p3bg7i"}],["path",{d:"M12 17h.01",key:"p32p05"}],["path",{d:"M16 17h.01",key:"ql8jdd"}]],au=G("calendar-days",nu);/**
122
122
  * @license lucide-react v1.38.0 - ISC
123
123
  *
124
124
  * This source code is licensed under the ISC license.
125
125
  * See the LICENSE file in the root directory of this source tree.
126
- */const Yc=[["path",{d:"M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z",key:"18u6gg"}],["circle",{cx:"12",cy:"13",r:"3",key:"1vg3eu"}]],Zc=Y("camera",Yc);/**
126
+ */const ru=[["path",{d:"M13.997 4a2 2 0 0 1 1.76 1.05l.486.9A2 2 0 0 0 18.003 7H20a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h1.997a2 2 0 0 0 1.759-1.048l.489-.904A2 2 0 0 1 10.004 4z",key:"18u6gg"}],["circle",{cx:"12",cy:"13",r:"3",key:"1vg3eu"}]],ou=G("camera",ru);/**
127
127
  * @license lucide-react v1.38.0 - ISC
128
128
  *
129
129
  * This source code is licensed under the ISC license.
130
130
  * See the LICENSE file in the root directory of this source tree.
131
- */const Xc=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]],Jc=Y("chart-column",Xc);/**
131
+ */const su=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]],iu=G("chart-column",su);/**
132
132
  * @license lucide-react v1.38.0 - ISC
133
133
  *
134
134
  * This source code is licensed under the ISC license.
135
135
  * See the LICENSE file in the root directory of this source tree.
136
- */const Qc=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"m19 9-5 5-4-4-3 3",key:"2osh9i"}]],eu=Y("chart-line",Qc);/**
136
+ */const lu=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"m19 9-5 5-4-4-3 3",key:"2osh9i"}]],cu=G("chart-line",lu);/**
137
137
  * @license lucide-react v1.38.0 - ISC
138
138
  *
139
139
  * This source code is licensed under the ISC license.
140
140
  * See the LICENSE file in the root directory of this source tree.
141
- */const tu=[["path",{d:"M21 12c.552 0 1.005-.449.95-.998a10 10 0 0 0-8.953-8.951c-.55-.055-.998.398-.998.95v8a1 1 0 0 0 1 1z",key:"pzmjnu"}],["path",{d:"M21.21 15.89A10 10 0 1 1 8 2.83",key:"k2fpak"}]],nu=Y("chart-pie",tu);/**
141
+ */const uu=[["path",{d:"M21 12c.552 0 1.005-.449.95-.998a10 10 0 0 0-8.953-8.951c-.55-.055-.998.398-.998.95v8a1 1 0 0 0 1 1z",key:"pzmjnu"}],["path",{d:"M21.21 15.89A10 10 0 1 1 8 2.83",key:"k2fpak"}]],du=G("chart-pie",uu);/**
142
142
  * @license lucide-react v1.38.0 - ISC
143
143
  *
144
144
  * This source code is licensed under the ISC license.
145
145
  * See the LICENSE file in the root directory of this source tree.
146
- */const au=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],po=Y("check",au);/**
146
+ */const pu=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],fo=G("check",pu);/**
147
147
  * @license lucide-react v1.38.0 - ISC
148
148
  *
149
149
  * This source code is licensed under the ISC license.
150
150
  * See the LICENSE file in the root directory of this source tree.
151
- */const ru=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],ho=Y("chevron-left",ru);/**
151
+ */const hu=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],Co=G("chevron-left",hu);/**
152
152
  * @license lucide-react v1.38.0 - ISC
153
153
  *
154
154
  * This source code is licensed under the ISC license.
155
155
  * See the LICENSE file in the root directory of this source tree.
156
- */const ou=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],mo=Y("chevron-right",ou);/**
156
+ */const mu=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],go=G("chevron-right",mu);/**
157
157
  * @license lucide-react v1.38.0 - ISC
158
158
  *
159
159
  * This source code is licensed under the ISC license.
160
160
  * See the LICENSE file in the root directory of this source tree.
161
- */const su=[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]],iu=Y("clipboard-list",su);/**
161
+ */const fu=[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]],Cu=G("clipboard-list",fu);/**
162
162
  * @license lucide-react v1.38.0 - ISC
163
163
  *
164
164
  * This source code is licensed under the ISC license.
165
165
  * See the LICENSE file in the root directory of this source tree.
166
- */const lu=[["path",{d:"M14 3a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1",key:"1l7d7l"}],["path",{d:"M19 3a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1",key:"9955pe"}],["path",{d:"m7 15 3 3",key:"4hkfgk"}],["path",{d:"m7 21 3-3H5a2 2 0 0 1-2-2v-2",key:"1xljwe"}],["rect",{x:"14",y:"14",width:"7",height:"7",rx:"1",key:"1cdgtw"}],["rect",{x:"3",y:"3",width:"7",height:"7",rx:"1",key:"zi3rio"}]],cu=Y("combine",lu);/**
166
+ */const gu=[["path",{d:"M14 3a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1",key:"1l7d7l"}],["path",{d:"M19 3a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1",key:"9955pe"}],["path",{d:"m7 15 3 3",key:"4hkfgk"}],["path",{d:"m7 21 3-3H5a2 2 0 0 1-2-2v-2",key:"1xljwe"}],["rect",{x:"14",y:"14",width:"7",height:"7",rx:"1",key:"1cdgtw"}],["rect",{x:"3",y:"3",width:"7",height:"7",rx:"1",key:"zi3rio"}]],bu=G("combine",gu);/**
167
167
  * @license lucide-react v1.38.0 - ISC
168
168
  *
169
169
  * This source code is licensed under the ISC license.
170
170
  * See the LICENSE file in the root directory of this source tree.
171
- */const uu=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],du=Y("copy",uu);/**
171
+ */const yu=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],vu=G("copy",yu);/**
172
172
  * @license lucide-react v1.38.0 - ISC
173
173
  *
174
174
  * This source code is licensed under the ISC license.
175
175
  * See the LICENSE file in the root directory of this source tree.
176
- */const pu=[["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 12h.01",key:"1l6xoz"}],["path",{d:"m17 7 5 5-5 5",key:"1xlxn0"}],["path",{d:"m7 7-5 5 5 5",key:"19njba"}],["path",{d:"M8 12h.01",key:"czm47f"}]],hu=Y("chevrons-left-right-ellipsis",pu);/**
176
+ */const xu=[["path",{d:"M12 12h.01",key:"1mp3jc"}],["path",{d:"M16 12h.01",key:"1l6xoz"}],["path",{d:"m17 7 5 5-5 5",key:"1xlxn0"}],["path",{d:"m7 7-5 5 5 5",key:"19njba"}],["path",{d:"M8 12h.01",key:"czm47f"}]],_u=G("chevrons-left-right-ellipsis",xu);/**
177
177
  * @license lucide-react v1.38.0 - ISC
178
178
  *
179
179
  * This source code is licensed under the ISC license.
180
180
  * See the LICENSE file in the root directory of this source tree.
181
- */const mu=[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]],fu=Y("credit-card",mu);/**
181
+ */const wu=[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]],ku=G("credit-card",wu);/**
182
182
  * @license lucide-react v1.38.0 - ISC
183
183
  *
184
184
  * This source code is licensed under the ISC license.
185
185
  * See the LICENSE file in the root directory of this source tree.
186
- */const Cu=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],fo=Y("database",Cu);/**
186
+ */const Au=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],bo=G("database",Au);/**
187
187
  * @license lucide-react v1.38.0 - ISC
188
188
  *
189
189
  * This source code is licensed under the ISC license.
190
190
  * See the LICENSE file in the root directory of this source tree.
191
- */const gu=[["path",{d:"M12 3v14",key:"7cf3v8"}],["path",{d:"M5 10h14",key:"elsbfy"}],["path",{d:"M5 21h14",key:"11awu3"}]],bu=Y("diff",gu);/**
191
+ */const Nu=[["path",{d:"M12 3v14",key:"7cf3v8"}],["path",{d:"M5 10h14",key:"elsbfy"}],["path",{d:"M5 21h14",key:"11awu3"}]],Bu=G("diff",Nu);/**
192
192
  * @license lucide-react v1.38.0 - ISC
193
193
  *
194
194
  * This source code is licensed under the ISC license.
195
195
  * See the LICENSE file in the root directory of this source tree.
196
- */const yu=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],Co=Y("download",yu);/**
196
+ */const Su=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],yo=G("download",Su);/**
197
197
  * @license lucide-react v1.38.0 - ISC
198
198
  *
199
199
  * This source code is licensed under the ISC license.
200
200
  * See the LICENSE file in the root directory of this source tree.
201
- */const vu=[["path",{d:"M6 8.5a6.5 6.5 0 1 1 13 0c0 6-6 6-6 10a3.5 3.5 0 1 1-7 0",key:"1dfaln"}],["path",{d:"M15 8.5a2.5 2.5 0 0 0-5 0v1a2 2 0 1 1 0 4",key:"1qnva7"}]],xu=Y("ear",vu);/**
201
+ */const Du=[["path",{d:"M6 8.5a6.5 6.5 0 1 1 13 0c0 6-6 6-6 10a3.5 3.5 0 1 1-7 0",key:"1dfaln"}],["path",{d:"M15 8.5a2.5 2.5 0 0 0-5 0v1a2 2 0 1 1 0 4",key:"1qnva7"}]],Tu=G("ear",Du);/**
202
202
  * @license lucide-react v1.38.0 - ISC
203
203
  *
204
204
  * This source code is licensed under the ISC license.
205
205
  * See the LICENSE file in the root directory of this source tree.
206
- */const _u=[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]],wu=Y("square-pen",_u);/**
206
+ */const ju=[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]],Eu=G("square-pen",ju);/**
207
207
  * @license lucide-react v1.38.0 - ISC
208
208
  *
209
209
  * This source code is licensed under the ISC license.
210
210
  * See the LICENSE file in the root directory of this source tree.
211
- */const ku=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]],Au=Y("pen",ku);/**
211
+ */const Mu=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]],Lu=G("pen",Mu);/**
212
212
  * @license lucide-react v1.38.0 - ISC
213
213
  *
214
214
  * This source code is licensed under the ISC license.
215
215
  * See the LICENSE file in the root directory of this source tree.
216
- */const Nu=[["path",{d:"M13 21h8",key:"1jsn5i"}],["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]],Bu=Y("pen-line",Nu);/**
216
+ */const $u=[["path",{d:"M13 21h8",key:"1jsn5i"}],["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]],Ru=G("pen-line",$u);/**
217
217
  * @license lucide-react v1.38.0 - ISC
218
218
  *
219
219
  * This source code is licensed under the ISC license.
220
220
  * See the LICENSE file in the root directory of this source tree.
221
- */const Du=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],go=Y("ellipsis",Du);/**
221
+ */const Pu=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]],vo=G("ellipsis",Pu);/**
222
222
  * @license lucide-react v1.38.0 - ISC
223
223
  *
224
224
  * This source code is licensed under the ISC license.
225
225
  * See the LICENSE file in the root directory of this source tree.
226
- */const Su=[["path",{d:"M21 21H8a2 2 0 0 1-1.42-.587l-3.994-3.999a2 2 0 0 1 0-2.828l10-10a2 2 0 0 1 2.829 0l5.999 6a2 2 0 0 1 0 2.828L12.834 21",key:"g5wo59"}],["path",{d:"m5.082 11.09 8.828 8.828",key:"1wx5vj"}]],ju=Y("eraser",Su);/**
226
+ */const Iu=[["path",{d:"M21 21H8a2 2 0 0 1-1.42-.587l-3.994-3.999a2 2 0 0 1 0-2.828l10-10a2 2 0 0 1 2.829 0l5.999 6a2 2 0 0 1 0 2.828L12.834 21",key:"g5wo59"}],["path",{d:"m5.082 11.09 8.828 8.828",key:"1wx5vj"}]],Fu=G("eraser",Iu);/**
227
227
  * @license lucide-react v1.38.0 - ISC
228
228
  *
229
229
  * This source code is licensed under the ISC license.
230
230
  * See the LICENSE file in the root directory of this source tree.
231
- */const Tu=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],Eu=Y("external-link",Tu);/**
231
+ */const Ou=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],Hu=G("external-link",Ou);/**
232
232
  * @license lucide-react v1.38.0 - ISC
233
233
  *
234
234
  * This source code is licensed under the ISC license.
235
235
  * See the LICENSE file in the root directory of this source tree.
236
- */const Mu=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Lu=Y("eye",Mu);/**
236
+ */const Vu=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],zu=G("eye",Vu);/**
237
237
  * @license lucide-react v1.38.0 - ISC
238
238
  *
239
239
  * This source code is licensed under the ISC license.
240
240
  * See the LICENSE file in the root directory of this source tree.
241
- */const $u=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],Ru=Y("file-text",$u);/**
241
+ */const Wu=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],qu=G("file-text",Wu);/**
242
242
  * @license lucide-react v1.38.0 - ISC
243
243
  *
244
244
  * This source code is licensed under the ISC license.
245
245
  * See the LICENSE file in the root directory of this source tree.
246
- */const Pu=[["path",{d:"M8 3H5a2 2 0 0 0-2 2v14c0 1.1.9 2 2 2h3",key:"1i73f7"}],["path",{d:"M16 3h3a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-3",key:"saxlbk"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 14v2",key:"8jcxud"}],["path",{d:"M12 8v2",key:"1woqiv"}],["path",{d:"M12 2v2",key:"tus03m"}]],Iu=Y("square-centerline-dashed-horizontal",Pu);/**
246
+ */const Uu=[["path",{d:"M8 3H5a2 2 0 0 0-2 2v14c0 1.1.9 2 2 2h3",key:"1i73f7"}],["path",{d:"M16 3h3a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-3",key:"saxlbk"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 14v2",key:"8jcxud"}],["path",{d:"M12 8v2",key:"1woqiv"}],["path",{d:"M12 2v2",key:"tus03m"}]],Gu=G("square-centerline-dashed-horizontal",Uu);/**
247
247
  * @license lucide-react v1.38.0 - ISC
248
248
  *
249
249
  * This source code is licensed under the ISC license.
250
250
  * See the LICENSE file in the root directory of this source tree.
251
- */const Fu=[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]],Ou=Y("folder-open",Fu);/**
251
+ */const Ku=[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]],Yu=G("folder-open",Ku);/**
252
252
  * @license lucide-react v1.38.0 - ISC
253
253
  *
254
254
  * This source code is licensed under the ISC license.
255
255
  * See the LICENSE file in the root directory of this source tree.
256
- */const Hu=[["path",{d:"M12 10v6",key:"1bos4e"}],["path",{d:"M9 13h6",key:"1uhe8q"}],["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],Vu=Y("folder-plus",Hu);/**
256
+ */const Zu=[["path",{d:"M12 10v6",key:"1bos4e"}],["path",{d:"M9 13h6",key:"1uhe8q"}],["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],Xu=G("folder-plus",Zu);/**
257
257
  * @license lucide-react v1.38.0 - ISC
258
258
  *
259
259
  * This source code is licensed under the ISC license.
260
260
  * See the LICENSE file in the root directory of this source tree.
261
- */const zu=[["line",{x1:"6",x2:"10",y1:"12",y2:"12",key:"161bw2"}],["line",{x1:"8",x2:"8",y1:"10",y2:"14",key:"1i6ji0"}],["line",{x1:"15",x2:"15.01",y1:"13",y2:"13",key:"dqpgro"}],["line",{x1:"18",x2:"18.01",y1:"11",y2:"11",key:"meh2c"}],["rect",{width:"20",height:"12",x:"2",y:"6",rx:"2",key:"9lu3g6"}]],Wu=Y("gamepad",zu);/**
261
+ */const Ju=[["line",{x1:"6",x2:"10",y1:"12",y2:"12",key:"161bw2"}],["line",{x1:"8",x2:"8",y1:"10",y2:"14",key:"1i6ji0"}],["line",{x1:"15",x2:"15.01",y1:"13",y2:"13",key:"dqpgro"}],["line",{x1:"18",x2:"18.01",y1:"11",y2:"11",key:"meh2c"}],["rect",{width:"20",height:"12",x:"2",y:"6",rx:"2",key:"9lu3g6"}]],Qu=G("gamepad",Ju);/**
262
262
  * @license lucide-react v1.38.0 - ISC
263
263
  *
264
264
  * This source code is licensed under the ISC license.
265
265
  * See the LICENSE file in the root directory of this source tree.
266
- */const qu=[["path",{d:"m14 13-8.381 8.38a1 1 0 0 1-3.001-3l8.384-8.381",key:"pgg06f"}],["path",{d:"m16 16 6-6",key:"vzrcl6"}],["path",{d:"m21.5 10.5-8-8",key:"a17d9x"}],["path",{d:"m8 8 6-6",key:"18bi4p"}],["path",{d:"m8.5 7.5 8 8",key:"1oyaui"}]],Uu=Y("gavel",qu);/**
266
+ */const ed=[["path",{d:"m14 13-8.381 8.38a1 1 0 0 1-3.001-3l8.384-8.381",key:"pgg06f"}],["path",{d:"m16 16 6-6",key:"vzrcl6"}],["path",{d:"m21.5 10.5-8-8",key:"a17d9x"}],["path",{d:"m8 8 6-6",key:"18bi4p"}],["path",{d:"m8.5 7.5 8 8",key:"1oyaui"}]],td=G("gavel",ed);/**
267
267
  * @license lucide-react v1.38.0 - ISC
268
268
  *
269
269
  * This source code is licensed under the ISC license.
270
270
  * See the LICENSE file in the root directory of this source tree.
271
- */const Gu=[["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M6 21V9a9 9 0 0 0 9 9",key:"7kw0sc"}]],bo=Y("git-merge",Gu);/**
271
+ */const nd=[["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M6 21V9a9 9 0 0 0 9 9",key:"7kw0sc"}]],xo=G("git-merge",nd);/**
272
272
  * @license lucide-react v1.38.0 - ISC
273
273
  *
274
274
  * This source code is licensed under the ISC license.
275
275
  * See the LICENSE file in the root directory of this source tree.
276
- */const Ku=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],Yu=Y("globe",Ku);/**
276
+ */const ad=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],rd=G("globe",ad);/**
277
277
  * @license lucide-react v1.38.0 - ISC
278
278
  *
279
279
  * This source code is licensed under the ISC license.
280
280
  * See the LICENSE file in the root directory of this source tree.
281
- */const Zu=[["path",{d:"M3 14h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-7a9 9 0 0 1 18 0v7a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3",key:"1xhozi"}]],Xu=Y("headphones",Zu);/**
281
+ */const od=[["path",{d:"M3 14h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-7a9 9 0 0 1 18 0v7a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3",key:"1xhozi"}]],sd=G("headphones",od);/**
282
282
  * @license lucide-react v1.38.0 - ISC
283
283
  *
284
284
  * This source code is licensed under the ISC license.
285
285
  * See the LICENSE file in the root directory of this source tree.
286
- */const Ju=[["path",{d:"M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5",key:"mvr1a0"}]],Qu=Y("heart",Ju);/**
286
+ */const id=[["path",{d:"M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5",key:"mvr1a0"}]],ld=G("heart",id);/**
287
287
  * @license lucide-react v1.38.0 - ISC
288
288
  *
289
289
  * This source code is licensed under the ISC license.
290
290
  * See the LICENSE file in the root directory of this source tree.
291
- */const ed=[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"r6nss1"}]],td=Y("house",ed);/**
291
+ */const cd=[["path",{d:"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8",key:"5wwlr5"}],["path",{d:"M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"r6nss1"}]],ud=G("house",cd);/**
292
292
  * @license lucide-react v1.38.0 - ISC
293
293
  *
294
294
  * This source code is licensed under the ISC license.
295
295
  * See the LICENSE file in the root directory of this source tree.
296
- */const nd=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],ad=Y("info",nd);/**
296
+ */const dd=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],pd=G("info",dd);/**
297
297
  * @license lucide-react v1.38.0 - ISC
298
298
  *
299
299
  * This source code is licensed under the ISC license.
300
300
  * See the LICENSE file in the root directory of this source tree.
301
- */const rd=[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]],od=Y("key-round",rd);/**
301
+ */const hd=[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]],md=G("key-round",hd);/**
302
302
  * @license lucide-react v1.38.0 - ISC
303
303
  *
304
304
  * This source code is licensed under the ISC license.
305
305
  * See the LICENSE file in the root directory of this source tree.
306
- */const sd=[["path",{d:"M10 18v-7",key:"wt116b"}],["path",{d:"M11.119 2.205a2 2 0 0 1 1.762 0l7.84 3.846A.5.5 0 0 1 20.5 7h-17a.5.5 0 0 1-.22-.949z",key:"yxxwt6"}],["path",{d:"M14 18v-7",key:"vav6t3"}],["path",{d:"M18 18v-7",key:"aexdmj"}],["path",{d:"M3 22h18",key:"8prr45"}],["path",{d:"M6 18v-7",key:"1ivflk"}]],id=Y("landmark",sd);/**
306
+ */const fd=[["path",{d:"M10 18v-7",key:"wt116b"}],["path",{d:"M11.119 2.205a2 2 0 0 1 1.762 0l7.84 3.846A.5.5 0 0 1 20.5 7h-17a.5.5 0 0 1-.22-.949z",key:"yxxwt6"}],["path",{d:"M14 18v-7",key:"vav6t3"}],["path",{d:"M18 18v-7",key:"aexdmj"}],["path",{d:"M3 22h18",key:"8prr45"}],["path",{d:"M6 18v-7",key:"1ivflk"}]],Cd=G("landmark",fd);/**
307
307
  * @license lucide-react v1.38.0 - ISC
308
308
  *
309
309
  * This source code is licensed under the ISC license.
310
310
  * See the LICENSE file in the root directory of this source tree.
311
- */const ld=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],cd=Y("layers",ld);/**
311
+ */const gd=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],bd=G("layers",gd);/**
312
312
  * @license lucide-react v1.38.0 - ISC
313
313
  *
314
314
  * This source code is licensed under the ISC license.
315
315
  * See the LICENSE file in the root directory of this source tree.
316
- */const ud=[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]],dd=Y("layout-dashboard",ud);/**
316
+ */const yd=[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]],vd=G("layout-dashboard",yd);/**
317
317
  * @license lucide-react v1.38.0 - ISC
318
318
  *
319
319
  * This source code is licensed under the ISC license.
320
320
  * See the LICENSE file in the root directory of this source tree.
321
- */const pd=[["path",{d:"M11 20A7 7 0 0 1 9.8 6.1C15.5 5 17 4.48 19 2c1 2 2 4.18 2 8 0 5.5-4.78 10-10 10Z",key:"nnexq3"}],["path",{d:"M2 21c0-3 1.85-5.36 5.08-6C9.5 14.52 12 13 13 12",key:"mt58a7"}]],hd=Y("leaf",pd);/**
321
+ */const xd=[["path",{d:"M11 20A7 7 0 0 1 9.8 6.1C15.5 5 17 4.48 19 2c1 2 2 4.18 2 8 0 5.5-4.78 10-10 10Z",key:"nnexq3"}],["path",{d:"M2 21c0-3 1.85-5.36 5.08-6C9.5 14.52 12 13 13 12",key:"mt58a7"}]],_d=G("leaf",xd);/**
322
322
  * @license lucide-react v1.38.0 - ISC
323
323
  *
324
324
  * This source code is licensed under the ISC license.
325
325
  * See the LICENSE file in the root directory of this source tree.
326
- */const md=[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]],fd=Y("lightbulb",md);/**
326
+ */const wd=[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]],kd=G("lightbulb",wd);/**
327
327
  * @license lucide-react v1.38.0 - ISC
328
328
  *
329
329
  * This source code is licensed under the ISC license.
330
330
  * See the LICENSE file in the root directory of this source tree.
331
- */const Cd=[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]],gd=Y("link",Cd);/**
331
+ */const Ad=[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]],Nd=G("link",Ad);/**
332
332
  * @license lucide-react v1.38.0 - ISC
333
333
  *
334
334
  * This source code is licensed under the ISC license.
335
335
  * See the LICENSE file in the root directory of this source tree.
336
- */const bd=[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]],yd=Y("link-2",bd);/**
336
+ */const Bd=[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]],Sd=G("link-2",Bd);/**
337
337
  * @license lucide-react v1.38.0 - ISC
338
338
  *
339
339
  * This source code is licensed under the ISC license.
340
340
  * See the LICENSE file in the root directory of this source tree.
341
- */const vd=[["path",{d:"M9 17H7A5 5 0 0 1 7 7",key:"10o201"}],["path",{d:"M15 7h2a5 5 0 0 1 4 8",key:"1d3206"}],["line",{x1:"8",x2:"12",y1:"12",y2:"12",key:"rvw6j4"}],["line",{x1:"2",x2:"22",y1:"2",y2:"22",key:"a6p6uj"}]],xd=Y("link-2-off",vd);/**
341
+ */const Dd=[["path",{d:"M9 17H7A5 5 0 0 1 7 7",key:"10o201"}],["path",{d:"M15 7h2a5 5 0 0 1 4 8",key:"1d3206"}],["line",{x1:"8",x2:"12",y1:"12",y2:"12",key:"rvw6j4"}],["line",{x1:"2",x2:"22",y1:"2",y2:"22",key:"a6p6uj"}]],Td=G("link-2-off",Dd);/**
342
342
  * @license lucide-react v1.38.0 - ISC
343
343
  *
344
344
  * This source code is licensed under the ISC license.
345
345
  * See the LICENSE file in the root directory of this source tree.
346
- */const _d=[["path",{d:"M3 5h.01",key:"18ugdj"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 19h.01",key:"noohij"}],["path",{d:"M8 5h13",key:"1pao27"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 19h13",key:"m83p4d"}]],wd=Y("list",_d);/**
346
+ */const jd=[["path",{d:"M3 5h.01",key:"18ugdj"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 19h.01",key:"noohij"}],["path",{d:"M8 5h13",key:"1pao27"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 19h13",key:"m83p4d"}]],Ed=G("list",jd);/**
347
347
  * @license lucide-react v1.38.0 - ISC
348
348
  *
349
349
  * This source code is licensed under the ISC license.
350
350
  * See the LICENSE file in the root directory of this source tree.
351
- */const kd=[["path",{d:"M13 5h8",key:"a7qcls"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 19h8",key:"c3s6r1"}],["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"m3 7 2 2 4-4",key:"1obspn"}]],Ad=Y("list-checks",kd);/**
351
+ */const Md=[["path",{d:"M13 5h8",key:"a7qcls"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 19h8",key:"c3s6r1"}],["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"m3 7 2 2 4-4",key:"1obspn"}]],Ld=G("list-checks",Md);/**
352
352
  * @license lucide-react v1.38.0 - ISC
353
353
  *
354
354
  * This source code is licensed under the ISC license.
355
355
  * See the LICENSE file in the root directory of this source tree.
356
- */const Nd=[["path",{d:"M11 5h10",key:"1cz7ny"}],["path",{d:"M11 12h10",key:"1438ji"}],["path",{d:"M11 19h10",key:"11t30w"}],["path",{d:"M4 4h1v5",key:"10yrso"}],["path",{d:"M4 9h2",key:"r1h2o0"}],["path",{d:"M6.5 20H3.4c0-1 2.6-1.925 2.6-3.5a1.5 1.5 0 0 0-2.6-1.02",key:"xtkcd5"}]],Bd=Y("list-ordered",Nd);/**
356
+ */const $d=[["path",{d:"M11 5h10",key:"1cz7ny"}],["path",{d:"M11 12h10",key:"1438ji"}],["path",{d:"M11 19h10",key:"11t30w"}],["path",{d:"M4 4h1v5",key:"10yrso"}],["path",{d:"M4 9h2",key:"r1h2o0"}],["path",{d:"M6.5 20H3.4c0-1 2.6-1.925 2.6-3.5a1.5 1.5 0 0 0-2.6-1.02",key:"xtkcd5"}]],Rd=G("list-ordered",$d);/**
357
357
  * @license lucide-react v1.38.0 - ISC
358
358
  *
359
359
  * This source code is licensed under the ISC license.
360
360
  * See the LICENSE file in the root directory of this source tree.
361
- */const Dd=[["path",{d:"M12 2v4",key:"3427ic"}],["path",{d:"m16.2 7.8 2.9-2.9",key:"r700ao"}],["path",{d:"M18 12h4",key:"wj9ykh"}],["path",{d:"m16.2 16.2 2.9 2.9",key:"1bxg5t"}],["path",{d:"M12 18v4",key:"jadmvz"}],["path",{d:"m4.9 19.1 2.9-2.9",key:"bwix9q"}],["path",{d:"M2 12h4",key:"j09sii"}],["path",{d:"m4.9 4.9 2.9 2.9",key:"giyufr"}]],Sd=Y("loader",Dd);/**
361
+ */const Pd=[["path",{d:"M12 2v4",key:"3427ic"}],["path",{d:"m16.2 7.8 2.9-2.9",key:"r700ao"}],["path",{d:"M18 12h4",key:"wj9ykh"}],["path",{d:"m16.2 16.2 2.9 2.9",key:"1bxg5t"}],["path",{d:"M12 18v4",key:"jadmvz"}],["path",{d:"m4.9 19.1 2.9-2.9",key:"bwix9q"}],["path",{d:"M2 12h4",key:"j09sii"}],["path",{d:"m4.9 4.9 2.9 2.9",key:"giyufr"}]],Id=G("loader",Pd);/**
362
362
  * @license lucide-react v1.38.0 - ISC
363
363
  *
364
364
  * This source code is licensed under the ISC license.
365
365
  * See the LICENSE file in the root directory of this source tree.
366
- */const jd=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],Td=Y("lock",jd);/**
366
+ */const Fd=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],Od=G("lock",Fd);/**
367
367
  * @license lucide-react v1.38.0 - ISC
368
368
  *
369
369
  * This source code is licensed under the ISC license.
370
370
  * See the LICENSE file in the root directory of this source tree.
371
- */const Ed=[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]],Md=Y("log-out",Ed);/**
371
+ */const Hd=[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]],Vd=G("log-out",Hd);/**
372
372
  * @license lucide-react v1.38.0 - ISC
373
373
  *
374
374
  * This source code is licensed under the ISC license.
375
375
  * See the LICENSE file in the root directory of this source tree.
376
- */const Ld=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],$d=Y("mail",Ld);/**
376
+ */const zd=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],Wd=G("mail",zd);/**
377
377
  * @license lucide-react v1.38.0 - ISC
378
378
  *
379
379
  * This source code is licensed under the ISC license.
380
380
  * See the LICENSE file in the root directory of this source tree.
381
- */const Rd=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],Pd=Y("map-pin",Rd);/**
381
+ */const qd=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],Ud=G("map-pin",qd);/**
382
382
  * @license lucide-react v1.38.0 - ISC
383
383
  *
384
384
  * This source code is licensed under the ISC license.
385
385
  * See the LICENSE file in the root directory of this source tree.
386
- */const Id=[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}]],Fd=Y("message-circle",Id);/**
386
+ */const Gd=[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}]],Kd=G("message-circle",Gd);/**
387
387
  * @license lucide-react v1.38.0 - ISC
388
388
  *
389
389
  * This source code is licensed under the ISC license.
390
390
  * See the LICENSE file in the root directory of this source tree.
391
- */const Od=[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],Hd=Y("message-circle-question-mark",Od);/**
391
+ */const Yd=[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],Zd=G("message-circle-question-mark",Yd);/**
392
392
  * @license lucide-react v1.38.0 - ISC
393
393
  *
394
394
  * This source code is licensed under the ISC license.
395
395
  * See the LICENSE file in the root directory of this source tree.
396
- */const Vd=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],zd=Y("message-square",Vd);/**
396
+ */const Xd=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],Jd=G("message-square",Xd);/**
397
397
  * @license lucide-react v1.38.0 - ISC
398
398
  *
399
399
  * This source code is licensed under the ISC license.
400
400
  * See the LICENSE file in the root directory of this source tree.
401
- */const Wd=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}],["path",{d:"M7 11h10",key:"1twpyw"}],["path",{d:"M7 15h6",key:"d9of3u"}],["path",{d:"M7 7h8",key:"af5zfr"}]],qd=Y("message-square-text",Wd);/**
401
+ */const Qd=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}],["path",{d:"M7 11h10",key:"1twpyw"}],["path",{d:"M7 15h6",key:"d9of3u"}],["path",{d:"M7 7h8",key:"af5zfr"}]],ep=G("message-square-text",Qd);/**
402
402
  * @license lucide-react v1.38.0 - ISC
403
403
  *
404
404
  * This source code is licensed under the ISC license.
405
405
  * See the LICENSE file in the root directory of this source tree.
406
- */const Ud=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}]],Gd=Y("circle-minus",Ud);/**
406
+ */const tp=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}]],np=G("circle-minus",tp);/**
407
407
  * @license lucide-react v1.38.0 - ISC
408
408
  *
409
409
  * This source code is licensed under the ISC license.
410
410
  * See the LICENSE file in the root directory of this source tree.
411
- */const Kd=[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]],Yd=Y("package",Kd);/**
411
+ */const ap=[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]],rp=G("package",ap);/**
412
412
  * @license lucide-react v1.38.0 - ISC
413
413
  *
414
414
  * This source code is licensed under the ISC license.
415
415
  * See the LICENSE file in the root directory of this source tree.
416
- */const Zd=[["path",{d:"M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z",key:"e79jfc"}],["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}]],Xd=Y("palette",Zd);/**
416
+ */const op=[["path",{d:"M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z",key:"e79jfc"}],["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}]],sp=G("palette",op);/**
417
417
  * @license lucide-react v1.38.0 - ISC
418
418
  *
419
419
  * This source code is licensed under the ISC license.
420
420
  * See the LICENSE file in the root directory of this source tree.
421
- */const Jd=[["path",{d:"M5.8 11.3 2 22l10.7-3.79",key:"gwxi1d"}],["path",{d:"M4 3h.01",key:"1vcuye"}],["path",{d:"M22 8h.01",key:"1mrtc2"}],["path",{d:"M15 2h.01",key:"1cjtqr"}],["path",{d:"M22 20h.01",key:"1mrys2"}],["path",{d:"m22 2-2.24.75a2.9 2.9 0 0 0-1.96 3.12c.1.86-.57 1.63-1.45 1.63h-.38c-.86 0-1.6.6-1.76 1.44L14 10",key:"hbicv8"}],["path",{d:"m22 13-.82-.33c-.86-.34-1.82.2-1.98 1.11c-.11.7-.72 1.22-1.43 1.22H17",key:"1i94pl"}],["path",{d:"m11 2 .33.82c.34.86-.2 1.82-1.11 1.98C9.52 4.9 9 5.52 9 6.23V7",key:"1cofks"}],["path",{d:"M11 13c1.93 1.93 2.83 4.17 2 5-.83.83-3.07-.07-5-2-1.93-1.93-2.83-4.17-2-5 .83-.83 3.07.07 5 2Z",key:"4kbmks"}]],Qd=Y("party-popper",Jd);/**
421
+ */const ip=[["path",{d:"M5.8 11.3 2 22l10.7-3.79",key:"gwxi1d"}],["path",{d:"M4 3h.01",key:"1vcuye"}],["path",{d:"M22 8h.01",key:"1mrtc2"}],["path",{d:"M15 2h.01",key:"1cjtqr"}],["path",{d:"M22 20h.01",key:"1mrys2"}],["path",{d:"m22 2-2.24.75a2.9 2.9 0 0 0-1.96 3.12c.1.86-.57 1.63-1.45 1.63h-.38c-.86 0-1.6.6-1.76 1.44L14 10",key:"hbicv8"}],["path",{d:"m22 13-.82-.33c-.86-.34-1.82.2-1.98 1.11c-.11.7-.72 1.22-1.43 1.22H17",key:"1i94pl"}],["path",{d:"m11 2 .33.82c.34.86-.2 1.82-1.11 1.98C9.52 4.9 9 5.52 9 6.23V7",key:"1cofks"}],["path",{d:"M11 13c1.93 1.93 2.83 4.17 2 5-.83.83-3.07-.07-5-2-1.93-1.93-2.83-4.17-2-5 .83-.83 3.07.07 5 2Z",key:"4kbmks"}]],lp=G("party-popper",ip);/**
422
422
  * @license lucide-react v1.38.0 - ISC
423
423
  *
424
424
  * This source code is licensed under the ISC license.
425
425
  * See the LICENSE file in the root directory of this source tree.
426
- */const ep=[["rect",{x:"14",y:"3",width:"5",height:"18",rx:"1",key:"kaeet6"}],["rect",{x:"5",y:"3",width:"5",height:"18",rx:"1",key:"1wsw3u"}]],tp=Y("pause",ep);/**
426
+ */const cp=[["rect",{x:"14",y:"3",width:"5",height:"18",rx:"1",key:"kaeet6"}],["rect",{x:"5",y:"3",width:"5",height:"18",rx:"1",key:"1wsw3u"}]],up=G("pause",cp);/**
427
427
  * @license lucide-react v1.38.0 - ISC
428
428
  *
429
429
  * This source code is licensed under the ISC license.
430
430
  * See the LICENSE file in the root directory of this source tree.
431
- */const np=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],ap=Y("pencil",np);/**
431
+ */const dp=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],pp=G("pencil",dp);/**
432
432
  * @license lucide-react v1.38.0 - ISC
433
433
  *
434
434
  * This source code is licensed under the ISC license.
435
435
  * See the LICENSE file in the root directory of this source tree.
436
- */const rp=[["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]],op=Y("phone",rp);/**
436
+ */const hp=[["path",{d:"M13.832 16.568a1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 6.392 6.384",key:"9njp5v"}]],mp=G("phone",hp);/**
437
437
  * @license lucide-react v1.38.0 - ISC
438
438
  *
439
439
  * This source code is licensed under the ISC license.
440
440
  * See the LICENSE file in the root directory of this source tree.
441
- */const sp=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],ip=Y("play",sp);/**
441
+ */const fp=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],Cp=G("play",fp);/**
442
442
  * @license lucide-react v1.38.0 - ISC
443
443
  *
444
444
  * This source code is licensed under the ISC license.
445
445
  * See the LICENSE file in the root directory of this source tree.
446
- */const lp=[["path",{d:"M9 9.003a1 1 0 0 1 1.517-.859l4.997 2.997a1 1 0 0 1 0 1.718l-4.997 2.997A1 1 0 0 1 9 14.996z",key:"kmsa83"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],cp=Y("circle-play",lp);/**
446
+ */const gp=[["path",{d:"M9 9.003a1 1 0 0 1 1.517-.859l4.997 2.997a1 1 0 0 1 0 1.718l-4.997 2.997A1 1 0 0 1 9 14.996z",key:"kmsa83"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],bp=G("circle-play",gp);/**
447
447
  * @license lucide-react v1.38.0 - ISC
448
448
  *
449
449
  * This source code is licensed under the ISC license.
450
450
  * See the LICENSE file in the root directory of this source tree.
451
- */const up=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],dp=Y("plus",up);/**
451
+ */const yp=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],vp=G("plus",yp);/**
452
452
  * @license lucide-react v1.38.0 - ISC
453
453
  *
454
454
  * This source code is licensed under the ISC license.
455
455
  * See the LICENSE file in the root directory of this source tree.
456
- */const pp=[["path",{d:"M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2",key:"143wyd"}],["path",{d:"M6 9V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v6",key:"1itne7"}],["rect",{x:"6",y:"14",width:"12",height:"8",rx:"1",key:"1ue0tg"}]],hp=Y("printer",pp);/**
456
+ */const xp=[["path",{d:"M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2",key:"143wyd"}],["path",{d:"M6 9V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v6",key:"1itne7"}],["rect",{x:"6",y:"14",width:"12",height:"8",rx:"1",key:"1ue0tg"}]],_p=G("printer",xp);/**
457
457
  * @license lucide-react v1.38.0 - ISC
458
458
  *
459
459
  * This source code is licensed under the ISC license.
460
460
  * See the LICENSE file in the root directory of this source tree.
461
- */const mp=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],fp=Y("refresh-cw",mp);/**
461
+ */const wp=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],kp=G("refresh-cw",wp);/**
462
462
  * @license lucide-react v1.38.0 - ISC
463
463
  *
464
464
  * This source code is licensed under the ISC license.
465
465
  * See the LICENSE file in the root directory of this source tree.
466
- */const Cp=[["path",{d:"m17 2 4 4-4 4",key:"nntrym"}],["path",{d:"M3 11v-1a4 4 0 0 1 4-4h14",key:"84bu3i"}],["path",{d:"m7 22-4-4 4-4",key:"1wqhfi"}],["path",{d:"M21 13v1a4 4 0 0 1-4 4H3",key:"1rx37r"}]],gp=Y("repeat",Cp);/**
466
+ */const Ap=[["path",{d:"m17 2 4 4-4 4",key:"nntrym"}],["path",{d:"M3 11v-1a4 4 0 0 1 4-4h14",key:"84bu3i"}],["path",{d:"m7 22-4-4 4-4",key:"1wqhfi"}],["path",{d:"M21 13v1a4 4 0 0 1-4 4H3",key:"1rx37r"}]],Np=G("repeat",Ap);/**
467
467
  * @license lucide-react v1.38.0 - ISC
468
468
  *
469
469
  * This source code is licensed under the ISC license.
470
470
  * See the LICENSE file in the root directory of this source tree.
471
- */const bp=[["path",{d:"M14 4a1 1 0 0 1 1-1",key:"dhj8ez"}],["path",{d:"M15 10a1 1 0 0 1-1-1",key:"1mnyi5"}],["path",{d:"M21 4a1 1 0 0 0-1-1",key:"sfs9ap"}],["path",{d:"M21 9a1 1 0 0 1-1 1",key:"mp6qeo"}],["path",{d:"m3 7 3 3 3-3",key:"x25e72"}],["path",{d:"M6 10V5a2 2 0 0 1 2-2h2",key:"15xut4"}],["rect",{x:"3",y:"14",width:"7",height:"7",rx:"1",key:"1bkyp8"}]],yp=Y("replace",bp);/**
471
+ */const Bp=[["path",{d:"M14 4a1 1 0 0 1 1-1",key:"dhj8ez"}],["path",{d:"M15 10a1 1 0 0 1-1-1",key:"1mnyi5"}],["path",{d:"M21 4a1 1 0 0 0-1-1",key:"sfs9ap"}],["path",{d:"M21 9a1 1 0 0 1-1 1",key:"mp6qeo"}],["path",{d:"m3 7 3 3 3-3",key:"x25e72"}],["path",{d:"M6 10V5a2 2 0 0 1 2-2h2",key:"15xut4"}],["rect",{x:"3",y:"14",width:"7",height:"7",rx:"1",key:"1bkyp8"}]],Sp=G("replace",Bp);/**
472
472
  * @license lucide-react v1.38.0 - ISC
473
473
  *
474
474
  * This source code is licensed under the ISC license.
475
475
  * See the LICENSE file in the root directory of this source tree.
476
- */const vp=[["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}],["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09",key:"u4xsad"}],["path",{d:"M9 12a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.4 22.4 0 0 1-4 2z",key:"676m9"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 .05 5 .05",key:"92ym6u"}]],xp=Y("rocket",vp);/**
476
+ */const Dp=[["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}],["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09",key:"u4xsad"}],["path",{d:"M9 12a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.4 22.4 0 0 1-4 2z",key:"676m9"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 .05 5 .05",key:"92ym6u"}]],Tp=G("rocket",Dp);/**
477
477
  * @license lucide-react v1.38.0 - ISC
478
478
  *
479
479
  * This source code is licensed under the ISC license.
480
480
  * See the LICENSE file in the root directory of this source tree.
481
- */const _p=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],wp=Y("rotate-ccw",_p);/**
481
+ */const jp=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],Ep=G("rotate-ccw",jp);/**
482
482
  * @license lucide-react v1.38.0 - ISC
483
483
  *
484
484
  * This source code is licensed under the ISC license.
485
485
  * See the LICENSE file in the root directory of this source tree.
486
- */const kp=[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]],Ap=Y("rotate-cw",kp);/**
486
+ */const Mp=[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]],Lp=G("rotate-cw",Mp);/**
487
487
  * @license lucide-react v1.38.0 - ISC
488
488
  *
489
489
  * This source code is licensed under the ISC license.
490
490
  * See the LICENSE file in the root directory of this source tree.
491
- */const Np=[["path",{d:"M7 21h10",key:"1b0cd5"}],["path",{d:"M12 21a9 9 0 0 0 9-9H3a9 9 0 0 0 9 9Z",key:"4rw317"}],["path",{d:"M11.38 12a2.4 2.4 0 0 1-.4-4.77 2.4 2.4 0 0 1 3.2-2.77 2.4 2.4 0 0 1 3.47-.63 2.4 2.4 0 0 1 3.37 3.37 2.4 2.4 0 0 1-1.1 3.7 2.51 2.51 0 0 1 .03 1.1",key:"10xrj0"}],["path",{d:"m13 12 4-4",key:"1hckqy"}],["path",{d:"M10.9 7.25A3.99 3.99 0 0 0 4 10c0 .73.2 1.41.54 2",key:"1p4srx"}]],Bp=Y("salad",Np);/**
491
+ */const $p=[["path",{d:"M7 21h10",key:"1b0cd5"}],["path",{d:"M12 21a9 9 0 0 0 9-9H3a9 9 0 0 0 9 9Z",key:"4rw317"}],["path",{d:"M11.38 12a2.4 2.4 0 0 1-.4-4.77 2.4 2.4 0 0 1 3.2-2.77 2.4 2.4 0 0 1 3.47-.63 2.4 2.4 0 0 1 3.37 3.37 2.4 2.4 0 0 1-1.1 3.7 2.51 2.51 0 0 1 .03 1.1",key:"10xrj0"}],["path",{d:"m13 12 4-4",key:"1hckqy"}],["path",{d:"M10.9 7.25A3.99 3.99 0 0 0 4 10c0 .73.2 1.41.54 2",key:"1p4srx"}]],Rp=G("salad",$p);/**
492
492
  * @license lucide-react v1.38.0 - ISC
493
493
  *
494
494
  * This source code is licensed under the ISC license.
495
495
  * See the LICENSE file in the root directory of this source tree.
496
- */const Dp=[["path",{d:"M3 7V5a2 2 0 0 1 2-2h2",key:"aa7l1z"}],["path",{d:"M17 3h2a2 2 0 0 1 2 2v2",key:"4qcy5o"}],["path",{d:"M21 17v2a2 2 0 0 1-2 2h-2",key:"6vwrx8"}],["path",{d:"M7 21H5a2 2 0 0 1-2-2v-2",key:"ioqczr"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["path",{d:"m16 16-1.9-1.9",key:"1dq9hf"}]],Sp=Y("scan-search",Dp);/**
496
+ */const Pp=[["path",{d:"M3 7V5a2 2 0 0 1 2-2h2",key:"aa7l1z"}],["path",{d:"M17 3h2a2 2 0 0 1 2 2v2",key:"4qcy5o"}],["path",{d:"M21 17v2a2 2 0 0 1-2 2h-2",key:"6vwrx8"}],["path",{d:"M7 21H5a2 2 0 0 1-2-2v-2",key:"ioqczr"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["path",{d:"m16 16-1.9-1.9",key:"1dq9hf"}]],Ip=G("scan-search",Pp);/**
497
497
  * @license lucide-react v1.38.0 - ISC
498
498
  *
499
499
  * This source code is licensed under the ISC license.
500
500
  * See the LICENSE file in the root directory of this source tree.
501
- */const jp=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],yo=Y("circle-alert",jp);/**
501
+ */const Fp=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],_o=G("circle-alert",Fp);/**
502
502
  * @license lucide-react v1.38.0 - ISC
503
503
  *
504
504
  * This source code is licensed under the ISC license.
505
505
  * See the LICENSE file in the root directory of this source tree.
506
- */const Tp=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],vo=Y("circle-check-big",Tp);/**
506
+ */const Op=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],wo=G("circle-check-big",Op);/**
507
507
  * @license lucide-react v1.38.0 - ISC
508
508
  *
509
509
  * This source code is licensed under the ISC license.
510
510
  * See the LICENSE file in the root directory of this source tree.
511
- */const Ep=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],Mp=Y("search",Ep);/**
511
+ */const Hp=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],Vp=G("search",Hp);/**
512
512
  * @license lucide-react v1.38.0 - ISC
513
513
  *
514
514
  * This source code is licensed under the ISC license.
515
515
  * See the LICENSE file in the root directory of this source tree.
516
- */const Lp=[["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M8.12 8.12 12 12",key:"1alkpv"}],["path",{d:"M20 4 8.12 15.88",key:"xgtan2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M14.8 14.8 20 20",key:"ptml3r"}]],$p=Y("scissors",Lp);/**
516
+ */const zp=[["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M8.12 8.12 12 12",key:"1alkpv"}],["path",{d:"M20 4 8.12 15.88",key:"xgtan2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M14.8 14.8 20 20",key:"ptml3r"}]],Wp=G("scissors",zp);/**
517
517
  * @license lucide-react v1.38.0 - ISC
518
518
  *
519
519
  * This source code is licensed under the ISC license.
520
520
  * See the LICENSE file in the root directory of this source tree.
521
- */const Rp=[["path",{d:"m13.5 8.5-5 5",key:"1cs55j"}],["path",{d:"m8.5 8.5 5 5",key:"a8mexj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]],Pp=Y("search-x",Rp);/**
521
+ */const qp=[["path",{d:"m13.5 8.5-5 5",key:"1cs55j"}],["path",{d:"m8.5 8.5 5 5",key:"a8mexj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]],Up=G("search-x",qp);/**
522
522
  * @license lucide-react v1.38.0 - ISC
523
523
  *
524
524
  * This source code is licensed under the ISC license.
525
525
  * See the LICENSE file in the root directory of this source tree.
526
- */const Ip=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],Fp=Y("send",Ip);/**
526
+ */const Gp=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],Kp=G("send",Gp);/**
527
527
  * @license lucide-react v1.38.0 - ISC
528
528
  *
529
529
  * This source code is licensed under the ISC license.
530
530
  * See the LICENSE file in the root directory of this source tree.
531
- */const Op=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Hp=Y("settings",Op);/**
531
+ */const Yp=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Zp=G("settings",Yp);/**
532
532
  * @license lucide-react v1.38.0 - ISC
533
533
  *
534
534
  * This source code is licensed under the ISC license.
535
535
  * See the LICENSE file in the root directory of this source tree.
536
- */const Vp=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],zp=Y("shield-check",Vp);/**
536
+ */const Xp=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Jp=G("shield-check",Xp);/**
537
537
  * @license lucide-react v1.38.0 - ISC
538
538
  *
539
539
  * This source code is licensed under the ISC license.
540
540
  * See the LICENSE file in the root directory of this source tree.
541
- */const Wp=[["path",{d:"m2.05 2.05 1.099-.028a1 1 0 0 1 1.008.815l2.69 14.347A1 1 0 0 0 7.83 18H18",key:"uebgi3"}],["path",{d:"M4.563 5h16.435a1 1 0 0 1 .981 1.204l-1.026 6.226A2 2 0 0 1 18.962 14H6.25",key:"1j7c9p"}],["circle",{cx:"18",cy:"20",r:"2",key:"t9985n"}],["circle",{cx:"8",cy:"20",r:"2",key:"ckkr5m"}]],qp=Y("shopping-cart",Wp);/**
541
+ */const Qp=[["path",{d:"m2.05 2.05 1.099-.028a1 1 0 0 1 1.008.815l2.69 14.347A1 1 0 0 0 7.83 18H18",key:"uebgi3"}],["path",{d:"M4.563 5h16.435a1 1 0 0 1 .981 1.204l-1.026 6.226A2 2 0 0 1 18.962 14H6.25",key:"1j7c9p"}],["circle",{cx:"18",cy:"20",r:"2",key:"t9985n"}],["circle",{cx:"8",cy:"20",r:"2",key:"ckkr5m"}]],e1=G("shopping-cart",Qp);/**
542
542
  * @license lucide-react v1.38.0 - ISC
543
543
  *
544
544
  * This source code is licensed under the ISC license.
545
545
  * See the LICENSE file in the root directory of this source tree.
546
- */const Up=[["path",{d:"m18 14 4 4-4 4",key:"10pe0f"}],["path",{d:"m18 2 4 4-4 4",key:"pucp1d"}],["path",{d:"M2 18h1.973a4 4 0 0 0 3.3-1.7l5.454-8.6a4 4 0 0 1 3.3-1.7H22",key:"1ailkh"}],["path",{d:"M2 6h1.972a4 4 0 0 1 3.6 2.2",key:"km57vx"}],["path",{d:"M22 18h-6.041a4 4 0 0 1-3.3-1.8l-.359-.45",key:"os18l9"}]],Gp=Y("shuffle",Up);/**
546
+ */const t1=[["path",{d:"m18 14 4 4-4 4",key:"10pe0f"}],["path",{d:"m18 2 4 4-4 4",key:"pucp1d"}],["path",{d:"M2 18h1.973a4 4 0 0 0 3.3-1.7l5.454-8.6a4 4 0 0 1 3.3-1.7H22",key:"1ailkh"}],["path",{d:"M2 6h1.972a4 4 0 0 1 3.6 2.2",key:"km57vx"}],["path",{d:"M22 18h-6.041a4 4 0 0 1-3.3-1.8l-.359-.45",key:"os18l9"}]],n1=G("shuffle",t1);/**
547
547
  * @license lucide-react v1.38.0 - ISC
548
548
  *
549
549
  * This source code is licensed under the ISC license.
550
550
  * See the LICENSE file in the root directory of this source tree.
551
- */const Kp=[["path",{d:"M17.971 4.285A2 2 0 0 1 21 6v12a2 2 0 0 1-3.029 1.715l-9.997-5.998a2 2 0 0 1-.003-3.432z",key:"15892j"}],["path",{d:"M3 20V4",key:"1ptbpl"}]],Yp=Y("skip-back",Kp);/**
551
+ */const a1=[["path",{d:"M17.971 4.285A2 2 0 0 1 21 6v12a2 2 0 0 1-3.029 1.715l-9.997-5.998a2 2 0 0 1-.003-3.432z",key:"15892j"}],["path",{d:"M3 20V4",key:"1ptbpl"}]],r1=G("skip-back",a1);/**
552
552
  * @license lucide-react v1.38.0 - ISC
553
553
  *
554
554
  * This source code is licensed under the ISC license.
555
555
  * See the LICENSE file in the root directory of this source tree.
556
- */const Zp=[["path",{d:"M21 4v16",key:"7j8fe9"}],["path",{d:"M6.029 4.285A2 2 0 0 0 3 6v12a2 2 0 0 0 3.029 1.715l9.997-5.998a2 2 0 0 0 .003-3.432z",key:"zs4d6"}]],Xp=Y("skip-forward",Zp);/**
556
+ */const o1=[["path",{d:"M21 4v16",key:"7j8fe9"}],["path",{d:"M6.029 4.285A2 2 0 0 0 3 6v12a2 2 0 0 0 3.029 1.715l9.997-5.998a2 2 0 0 0 .003-3.432z",key:"zs4d6"}]],s1=G("skip-forward",o1);/**
557
557
  * @license lucide-react v1.38.0 - ISC
558
558
  *
559
559
  * This source code is licensed under the ISC license.
560
560
  * See the LICENSE file in the root directory of this source tree.
561
- */const Jp=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],Qp=Y("square",Jp);/**
561
+ */const i1=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],l1=G("square",i1);/**
562
562
  * @license lucide-react v1.38.0 - ISC
563
563
  *
564
564
  * This source code is licensed under the ISC license.
565
565
  * See the LICENSE file in the root directory of this source tree.
566
- */const e1=[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]],t1=Y("star",e1);/**
566
+ */const c1=[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]],u1=G("star",c1);/**
567
567
  * @license lucide-react v1.38.0 - ISC
568
568
  *
569
569
  * This source code is licensed under the ISC license.
570
570
  * See the LICENSE file in the root directory of this source tree.
571
- */const n1=[["path",{d:"M15 21v-5a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v5",key:"slp6dd"}],["path",{d:"M17.774 10.31a1.12 1.12 0 0 0-1.549 0 2.5 2.5 0 0 1-3.451 0 1.12 1.12 0 0 0-1.548 0 2.5 2.5 0 0 1-3.452 0 1.12 1.12 0 0 0-1.549 0 2.5 2.5 0 0 1-3.77-3.248l2.889-4.184A2 2 0 0 1 7 2h10a2 2 0 0 1 1.653.873l2.895 4.192a2.5 2.5 0 0 1-3.774 3.244",key:"o0xfot"}],["path",{d:"M4 10.95V19a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8.05",key:"wn3emo"}]],a1=Y("store",n1);/**
571
+ */const d1=[["path",{d:"M15 21v-5a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v5",key:"slp6dd"}],["path",{d:"M17.774 10.31a1.12 1.12 0 0 0-1.549 0 2.5 2.5 0 0 1-3.451 0 1.12 1.12 0 0 0-1.548 0 2.5 2.5 0 0 1-3.452 0 1.12 1.12 0 0 0-1.549 0 2.5 2.5 0 0 1-3.77-3.248l2.889-4.184A2 2 0 0 1 7 2h10a2 2 0 0 1 1.653.873l2.895 4.192a2.5 2.5 0 0 1-3.774 3.244",key:"o0xfot"}],["path",{d:"M4 10.95V19a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8.05",key:"wn3emo"}]],p1=G("store",d1);/**
572
572
  * @license lucide-react v1.38.0 - ISC
573
573
  *
574
574
  * This source code is licensed under the ISC license.
575
575
  * See the LICENSE file in the root directory of this source tree.
576
- */const r1=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 3v1",key:"1asbbs"}],["path",{d:"M12 20v1",key:"1wcdkc"}],["path",{d:"M3 12h1",key:"lp3yf2"}],["path",{d:"M20 12h1",key:"1vloll"}],["path",{d:"m18.364 5.636-.707.707",key:"1hakh0"}],["path",{d:"m6.343 17.657-.707.707",key:"18m9nf"}],["path",{d:"m5.636 5.636.707.707",key:"1xv1c5"}],["path",{d:"m17.657 17.657.707.707",key:"vl76zb"}]],o1=Y("sun-medium",r1);/**
576
+ */const h1=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 3v1",key:"1asbbs"}],["path",{d:"M12 20v1",key:"1wcdkc"}],["path",{d:"M3 12h1",key:"lp3yf2"}],["path",{d:"M20 12h1",key:"1vloll"}],["path",{d:"m18.364 5.636-.707.707",key:"1hakh0"}],["path",{d:"m6.343 17.657-.707.707",key:"18m9nf"}],["path",{d:"m5.636 5.636.707.707",key:"1xv1c5"}],["path",{d:"m17.657 17.657.707.707",key:"vl76zb"}]],m1=G("sun-medium",h1);/**
577
577
  * @license lucide-react v1.38.0 - ISC
578
578
  *
579
579
  * This source code is licensed under the ISC license.
580
580
  * See the LICENSE file in the root directory of this source tree.
581
- */const s1=[["path",{d:"M12 3v18",key:"108xh3"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}]],i1=Y("table",s1);/**
581
+ */const f1=[["path",{d:"M12 3v18",key:"108xh3"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}]],C1=G("table",f1);/**
582
582
  * @license lucide-react v1.38.0 - ISC
583
583
  *
584
584
  * This source code is licensed under the ISC license.
585
585
  * See the LICENSE file in the root directory of this source tree.
586
- */const l1=[["path",{d:"M9 3H5a2 2 0 0 0-2 2v4m6-6h10a2 2 0 0 1 2 2v4M9 3v18m0 0h10a2 2 0 0 0 2-2V9M9 21H5a2 2 0 0 1-2-2V9m0 0h18",key:"gugj83"}]],c1=Y("table-2",l1);/**
586
+ */const g1=[["path",{d:"M9 3H5a2 2 0 0 0-2 2v4m6-6h10a2 2 0 0 1 2 2v4M9 3v18m0 0h10a2 2 0 0 0 2-2V9M9 21H5a2 2 0 0 1-2-2V9m0 0h18",key:"gugj83"}]],b1=G("table-2",g1);/**
587
587
  * @license lucide-react v1.38.0 - ISC
588
588
  *
589
589
  * This source code is licensed under the ISC license.
590
590
  * See the LICENSE file in the root directory of this source tree.
591
- */const u1=[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]],d1=Y("tag",u1);/**
591
+ */const y1=[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]],v1=G("tag",y1);/**
592
592
  * @license lucide-react v1.38.0 - ISC
593
593
  *
594
594
  * This source code is licensed under the ISC license.
595
595
  * See the LICENSE file in the root directory of this source tree.
596
- */const p1=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],h1=Y("terminal",p1);/**
596
+ */const x1=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],_1=G("terminal",x1);/**
597
597
  * @license lucide-react v1.38.0 - ISC
598
598
  *
599
599
  * This source code is licensed under the ISC license.
600
600
  * See the LICENSE file in the root directory of this source tree.
601
- */const m1=[["path",{d:"M12 20h-1a2 2 0 0 1-2-2 2 2 0 0 1-2 2H6",key:"1528k5"}],["path",{d:"M13 8h7a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2h-7",key:"13ksps"}],["path",{d:"M5 16H4a2 2 0 0 1-2-2v-4a2 2 0 0 1 2-2h1",key:"1n9rhb"}],["path",{d:"M6 4h1a2 2 0 0 1 2 2 2 2 0 0 1 2-2h1",key:"1mj8rg"}],["path",{d:"M9 6v12",key:"velyjx"}]],f1=Y("text-cursor-input",m1);/**
601
+ */const w1=[["path",{d:"M12 20h-1a2 2 0 0 1-2-2 2 2 0 0 1-2 2H6",key:"1528k5"}],["path",{d:"M13 8h7a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2h-7",key:"13ksps"}],["path",{d:"M5 16H4a2 2 0 0 1-2-2v-4a2 2 0 0 1 2-2h1",key:"1n9rhb"}],["path",{d:"M6 4h1a2 2 0 0 1 2 2 2 2 0 0 1 2-2h1",key:"1mj8rg"}],["path",{d:"M9 6v12",key:"velyjx"}]],k1=G("text-cursor-input",w1);/**
602
602
  * @license lucide-react v1.38.0 - ISC
603
603
  *
604
604
  * This source code is licensed under the ISC license.
605
605
  * See the LICENSE file in the root directory of this source tree.
606
- */const C1=[["path",{d:"M15 5h6",key:"1pr8yx"}],["path",{d:"M15 12h6",key:"upa0zy"}],["path",{d:"M3 19h18",key:"awlh7x"}],["path",{d:"m3 12 3.553-7.724a.5.5 0 0 1 .894 0L11 12",key:"6lvno8"}],["path",{d:"M3.92 10h6.16",key:"1tl8ex"}]],g1=Y("text-initial",C1);/**
606
+ */const A1=[["path",{d:"M15 5h6",key:"1pr8yx"}],["path",{d:"M15 12h6",key:"upa0zy"}],["path",{d:"M3 19h18",key:"awlh7x"}],["path",{d:"m3 12 3.553-7.724a.5.5 0 0 1 .894 0L11 12",key:"6lvno8"}],["path",{d:"M3.92 10h6.16",key:"1tl8ex"}]],N1=G("text-initial",A1);/**
607
607
  * @license lucide-react v1.38.0 - ISC
608
608
  *
609
609
  * This source code is licensed under the ISC license.
610
610
  * See the LICENSE file in the root directory of this source tree.
611
- */const b1=[["path",{d:"M2 9a3 3 0 0 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 0 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z",key:"qn84l0"}],["path",{d:"M13 5v2",key:"dyzc3o"}],["path",{d:"M13 17v2",key:"1ont0d"}],["path",{d:"M13 11v2",key:"1wjjxi"}]],y1=Y("ticket",b1);/**
611
+ */const B1=[["path",{d:"M2 9a3 3 0 0 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 0 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z",key:"qn84l0"}],["path",{d:"M13 5v2",key:"dyzc3o"}],["path",{d:"M13 17v2",key:"1ont0d"}],["path",{d:"M13 11v2",key:"1wjjxi"}]],S1=G("ticket",B1);/**
612
612
  * @license lucide-react v1.38.0 - ISC
613
613
  *
614
614
  * This source code is licensed under the ISC license.
615
615
  * See the LICENSE file in the root directory of this source tree.
616
- */const v1=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],x1=Y("trash-2",v1);/**
616
+ */const D1=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],T1=G("trash-2",D1);/**
617
617
  * @license lucide-react v1.38.0 - ISC
618
618
  *
619
619
  * This source code is licensed under the ISC license.
620
620
  * See the LICENSE file in the root directory of this source tree.
621
- */const _1=[["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],w1=Y("trash",_1);/**
621
+ */const j1=[["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],E1=G("trash",j1);/**
622
622
  * @license lucide-react v1.38.0 - ISC
623
623
  *
624
624
  * This source code is licensed under the ISC license.
625
625
  * See the LICENSE file in the root directory of this source tree.
626
- */const k1=[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]],A1=Y("trending-up",k1);/**
626
+ */const M1=[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]],L1=G("trending-up",M1);/**
627
627
  * @license lucide-react v1.38.0 - ISC
628
628
  *
629
629
  * This source code is licensed under the ISC license.
630
630
  * See the LICENSE file in the root directory of this source tree.
631
- */const N1=[["path",{d:"M10 14.66V17a1 1 0 0 1-1 1 2 2 0 0 0-2 2v2",key:"pwuv1l"}],["path",{d:"M14 14.66V17a1 1 0 0 0 1 1 2 2 0 0 1 2 2v2",key:"1y54w1"}],["path",{d:"M17.916 10H19.5A2.5 2.5 0 0 0 22 7.5V5a1 1 0 0 0-1-1h-3",key:"e30mpu"}],["path",{d:"M4 22h16",key:"57wxv0"}],["path",{d:"M6 9a6 6 0 0 0 12 0V3a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1z",key:"1mhfuq"}],["path",{d:"M6.084 10H4.5A2.5 2.5 0 0 1 2 7.5V5a1 1 0 0 1 1-1h3",key:"i0yafy"}]],B1=Y("trophy",N1);/**
631
+ */const $1=[["path",{d:"M10 14.66V17a1 1 0 0 1-1 1 2 2 0 0 0-2 2v2",key:"pwuv1l"}],["path",{d:"M14 14.66V17a1 1 0 0 0 1 1 2 2 0 0 1 2 2v2",key:"1y54w1"}],["path",{d:"M17.916 10H19.5A2.5 2.5 0 0 0 22 7.5V5a1 1 0 0 0-1-1h-3",key:"e30mpu"}],["path",{d:"M4 22h16",key:"57wxv0"}],["path",{d:"M6 9a6 6 0 0 0 12 0V3a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1z",key:"1mhfuq"}],["path",{d:"M6.084 10H4.5A2.5 2.5 0 0 1 2 7.5V5a1 1 0 0 1 1-1h3",key:"i0yafy"}]],R1=G("trophy",$1);/**
632
632
  * @license lucide-react v1.38.0 - ISC
633
633
  *
634
634
  * This source code is licensed under the ISC license.
635
635
  * See the LICENSE file in the root directory of this source tree.
636
- */const D1=[["path",{d:"m18.84 12.25 1.72-1.71h-.02a5.004 5.004 0 0 0-.12-7.07 5.006 5.006 0 0 0-6.95 0l-1.72 1.71",key:"yqzxt4"}],["path",{d:"m5.17 11.75-1.71 1.71a5.004 5.004 0 0 0 .12 7.07 5.006 5.006 0 0 0 6.95 0l1.71-1.71",key:"4qinb0"}],["line",{x1:"8",x2:"8",y1:"2",y2:"5",key:"1041cp"}],["line",{x1:"2",x2:"5",y1:"8",y2:"8",key:"14m1p5"}],["line",{x1:"16",x2:"16",y1:"19",y2:"22",key:"rzdirn"}],["line",{x1:"19",x2:"22",y1:"16",y2:"16",key:"ox905f"}]],S1=Y("unlink",D1);/**
636
+ */const P1=[["path",{d:"m18.84 12.25 1.72-1.71h-.02a5.004 5.004 0 0 0-.12-7.07 5.006 5.006 0 0 0-6.95 0l-1.72 1.71",key:"yqzxt4"}],["path",{d:"m5.17 11.75-1.71 1.71a5.004 5.004 0 0 0 .12 7.07 5.006 5.006 0 0 0 6.95 0l1.71-1.71",key:"4qinb0"}],["line",{x1:"8",x2:"8",y1:"2",y2:"5",key:"1041cp"}],["line",{x1:"2",x2:"5",y1:"8",y2:"8",key:"14m1p5"}],["line",{x1:"16",x2:"16",y1:"19",y2:"22",key:"rzdirn"}],["line",{x1:"19",x2:"22",y1:"16",y2:"16",key:"ox905f"}]],I1=G("unlink",P1);/**
637
637
  * @license lucide-react v1.38.0 - ISC
638
638
  *
639
639
  * This source code is licensed under the ISC license.
640
640
  * See the LICENSE file in the root directory of this source tree.
641
- */const j1=[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]],T1=Y("upload",j1);/**
641
+ */const F1=[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]],O1=G("upload",F1);/**
642
642
  * @license lucide-react v1.38.0 - ISC
643
643
  *
644
644
  * This source code is licensed under the ISC license.
645
645
  * See the LICENSE file in the root directory of this source tree.
646
- */const E1=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],Ia=Y("user",E1);/**
646
+ */const H1=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],Ia=G("user",H1);/**
647
647
  * @license lucide-react v1.38.0 - ISC
648
648
  *
649
649
  * This source code is licensed under the ISC license.
650
650
  * See the LICENSE file in the root directory of this source tree.
651
- */const M1=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"19",x2:"19",y1:"8",y2:"14",key:"1bvyxn"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]],L1=Y("user-plus",M1);/**
651
+ */const V1=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"19",x2:"19",y1:"8",y2:"14",key:"1bvyxn"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]],z1=G("user-plus",V1);/**
652
652
  * @license lucide-react v1.38.0 - ISC
653
653
  *
654
654
  * This source code is licensed under the ISC license.
655
655
  * See the LICENSE file in the root directory of this source tree.
656
- */const $1=[["circle",{cx:"12",cy:"8",r:"5",key:"1hypcn"}],["path",{d:"M20 21a8 8 0 0 0-16 0",key:"rfgkzh"}]],R1=Y("user-round",$1);/**
656
+ */const W1=[["circle",{cx:"12",cy:"8",r:"5",key:"1hypcn"}],["path",{d:"M20 21a8 8 0 0 0-16 0",key:"rfgkzh"}]],q1=G("user-round",W1);/**
657
657
  * @license lucide-react v1.38.0 - ISC
658
658
  *
659
659
  * This source code is licensed under the ISC license.
660
660
  * See the LICENSE file in the root directory of this source tree.
661
- */const P1=[["path",{d:"M2 21a8 8 0 0 1 13.292-6",key:"bjp14o"}],["circle",{cx:"10",cy:"8",r:"5",key:"o932ke"}],["path",{d:"m16 19 2 2 4-4",key:"1b14m6"}]],I1=Y("user-round-check",P1);/**
661
+ */const U1=[["path",{d:"M2 21a8 8 0 0 1 13.292-6",key:"bjp14o"}],["circle",{cx:"10",cy:"8",r:"5",key:"o932ke"}],["path",{d:"m16 19 2 2 4-4",key:"1b14m6"}]],G1=G("user-round-check",U1);/**
662
662
  * @license lucide-react v1.38.0 - ISC
663
663
  *
664
664
  * This source code is licensed under the ISC license.
665
665
  * See the LICENSE file in the root directory of this source tree.
666
- */const F1=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],O1=Y("users",F1);/**
666
+ */const K1=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],Y1=G("users",K1);/**
667
667
  * @license lucide-react v1.38.0 - ISC
668
668
  *
669
669
  * This source code is licensed under the ISC license.
670
670
  * See the LICENSE file in the root directory of this source tree.
671
- */const H1=[["path",{d:"M18 21a8 8 0 0 0-16 0",key:"3ypg7q"}],["circle",{cx:"10",cy:"8",r:"5",key:"o932ke"}],["path",{d:"M22 20c0-3.37-2-6.5-4-8a5 5 0 0 0-.45-8.3",key:"10s06x"}]],V1=Y("users-round",H1);/**
671
+ */const Z1=[["path",{d:"M18 21a8 8 0 0 0-16 0",key:"3ypg7q"}],["circle",{cx:"10",cy:"8",r:"5",key:"o932ke"}],["path",{d:"M22 20c0-3.37-2-6.5-4-8a5 5 0 0 0-.45-8.3",key:"10s06x"}]],X1=G("users-round",Z1);/**
672
672
  * @license lucide-react v1.38.0 - ISC
673
673
  *
674
674
  * This source code is licensed under the ISC license.
675
675
  * See the LICENSE file in the root directory of this source tree.
676
- */const z1=[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["path",{d:"M16 9a5 5 0 0 1 0 6",key:"1q6k2b"}],["path",{d:"M19.364 18.364a9 9 0 0 0 0-12.728",key:"ijwkga"}]],xo=Y("volume-2",z1);/**
676
+ */const J1=[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["path",{d:"M16 9a5 5 0 0 1 0 6",key:"1q6k2b"}],["path",{d:"M19.364 18.364a9 9 0 0 0 0-12.728",key:"ijwkga"}]],ko=G("volume-2",J1);/**
677
677
  * @license lucide-react v1.38.0 - ISC
678
678
  *
679
679
  * This source code is licensed under the ISC license.
680
680
  * See the LICENSE file in the root directory of this source tree.
681
- */const W1=[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]],q1=Y("wrench",W1);/**
681
+ */const Q1=[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]],eh=G("wrench",Q1);/**
682
682
  * @license lucide-react v1.38.0 - ISC
683
683
  *
684
684
  * This source code is licensed under the ISC license.
685
685
  * See the LICENSE file in the root directory of this source tree.
686
- */const U1=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],_o=Y("x",U1);/**
686
+ */const th=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Ao=G("x",th);/**
687
687
  * @license lucide-react v1.38.0 - ISC
688
688
  *
689
689
  * This source code is licensed under the ISC license.
690
690
  * See the LICENSE file in the root directory of this source tree.
691
- */const G1=[["path",{d:"M15.914 4a1.5 1.5 0 00-2.474-1.561l-9 9A1.5 1.5 0 005.5 14h4.002a.5.5 0 01.471.666L8.086 20a1.5 1.5 0 002.475 1.56l9-9A1.5 1.5 0 0018.5 10h-3.997a.5.5 0 01-.472-.667z",key:"1v7up4"}]],K1=Y("zap",G1);/**
691
+ */const nh=[["path",{d:"M15.914 4a1.5 1.5 0 00-2.474-1.561l-9 9A1.5 1.5 0 005.5 14h4.002a.5.5 0 01.471.666L8.086 20a1.5 1.5 0 002.475 1.56l9-9A1.5 1.5 0 0018.5 10h-3.997a.5.5 0 01-.472-.667z",key:"1v7up4"}]],ah=G("zap",nh);/**
692
692
  * @license lucide-react v1.38.0 - ISC
693
693
  *
694
694
  * This source code is licensed under the ISC license.
695
695
  * See the LICENSE file in the root directory of this source tree.
696
- */const Y1=[["path",{d:"M12 6v16",key:"nqf5sj"}],["path",{d:"m19 13 2-1a9 9 0 0 1-18 0l2 1",key:"y7qv08"}],["path",{d:"M9 11h6",key:"1fldmi"}],["circle",{cx:"12",cy:"4",r:"2",key:"muu5ef"}]],Z1=Y("anchor",Y1);/**
696
+ */const rh=[["path",{d:"M12 6v16",key:"nqf5sj"}],["path",{d:"m19 13 2-1a9 9 0 0 1-18 0l2 1",key:"y7qv08"}],["path",{d:"M9 11h6",key:"1fldmi"}],["circle",{cx:"12",cy:"4",r:"2",key:"muu5ef"}]],oh=G("anchor",rh);/**
697
697
  * @license lucide-react v1.38.0 - ISC
698
698
  *
699
699
  * This source code is licensed under the ISC license.
700
700
  * See the LICENSE file in the root directory of this source tree.
701
- */const X1=[["path",{d:"M19 9V6a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2v3",key:"irtipd"}],["path",{d:"M3 16a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-5a2 2 0 0 0-4 0v1.5a.5.5 0 0 1-.5.5h-9a.5.5 0 0 1-.5-.5V11a2 2 0 0 0-4 0z",key:"1qyhux"}],["path",{d:"M5 18v2",key:"ppbyun"}],["path",{d:"M19 18v2",key:"gy7782"}]],J1=Y("armchair",X1);/**
701
+ */const sh=[["path",{d:"M19 9V6a2 2 0 0 0-2-2H7a2 2 0 0 0-2 2v3",key:"irtipd"}],["path",{d:"M3 16a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-5a2 2 0 0 0-4 0v1.5a.5.5 0 0 1-.5.5h-9a.5.5 0 0 1-.5-.5V11a2 2 0 0 0-4 0z",key:"1qyhux"}],["path",{d:"M5 18v2",key:"ppbyun"}],["path",{d:"M19 18v2",key:"gy7782"}]],ih=G("armchair",sh);/**
702
702
  * @license lucide-react v1.38.0 - ISC
703
703
  *
704
704
  * This source code is licensed under the ISC license.
705
705
  * See the LICENSE file in the root directory of this source tree.
706
- */const Q1=[["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}],["path",{d:"M20 8h-5",key:"1vsyxs"}],["path",{d:"M15 10V6.5a2.5 2.5 0 0 1 5 0V10",key:"ag13bf"}],["path",{d:"M15 14h5l-5 6h5",key:"ur5jdg"}]],eh=Y("arrow-up-a-z",Q1);/**
706
+ */const lh=[["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}],["path",{d:"M20 8h-5",key:"1vsyxs"}],["path",{d:"M15 10V6.5a2.5 2.5 0 0 1 5 0V10",key:"ag13bf"}],["path",{d:"M15 14h5l-5 6h5",key:"ur5jdg"}]],ch=G("arrow-up-a-z",lh);/**
707
707
  * @license lucide-react v1.38.0 - ISC
708
708
  *
709
709
  * This source code is licensed under the ISC license.
710
710
  * See the LICENSE file in the root directory of this source tree.
711
- */const th=[["path",{d:"M5 21v-6",key:"1hz6c0"}],["path",{d:"M12 21V3",key:"1lcnhd"}],["path",{d:"M19 21V9",key:"unv183"}]],nh=Y("chart-no-axes-column",th);/**
711
+ */const uh=[["path",{d:"M5 21v-6",key:"1hz6c0"}],["path",{d:"M12 21V3",key:"1lcnhd"}],["path",{d:"M19 21V9",key:"unv183"}]],dh=G("chart-no-axes-column",uh);/**
712
712
  * @license lucide-react v1.38.0 - ISC
713
713
  *
714
714
  * This source code is licensed under the ISC license.
715
715
  * See the LICENSE file in the root directory of this source tree.
716
- */const ah=[["path",{d:"M8 2v3",key:"1ioesn"}],["path",{d:"M16 2v3",key:"otl347"}],["rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",key:"h1oib"}],["path",{d:"M3 9h18",key:"1pudct"}]],wo=Y("calendar",ah);/**
716
+ */const ph=[["path",{d:"M8 2v3",key:"1ioesn"}],["path",{d:"M16 2v3",key:"otl347"}],["rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",key:"h1oib"}],["path",{d:"M3 9h18",key:"1pudct"}]],No=G("calendar",ph);/**
717
717
  * @license lucide-react v1.38.0 - ISC
718
718
  *
719
719
  * This source code is licensed under the ISC license.
720
720
  * See the LICENSE file in the root directory of this source tree.
721
- */const rh=[["path",{d:"M19 17h2c.6 0 1-.4 1-1v-3c0-.9-.7-1.7-1.5-1.9C18.7 10.6 16 10 16 10s-1.3-1.4-2.2-2.3c-.5-.4-1.1-.7-1.8-.7H5c-.6 0-1.1.4-1.4.9l-1.4 2.9A3.7 3.7 0 0 0 2 12v4c0 .6.4 1 1 1h2",key:"5owen"}],["circle",{cx:"7",cy:"17",r:"2",key:"u2ysq9"}],["path",{d:"M9 17h6",key:"r8uit2"}],["circle",{cx:"17",cy:"17",r:"2",key:"axvx0g"}]],oh=Y("car",rh);/**
721
+ */const hh=[["path",{d:"M19 17h2c.6 0 1-.4 1-1v-3c0-.9-.7-1.7-1.5-1.9C18.7 10.6 16 10 16 10s-1.3-1.4-2.2-2.3c-.5-.4-1.1-.7-1.8-.7H5c-.6 0-1.1.4-1.4.9l-1.4 2.9A3.7 3.7 0 0 0 2 12v4c0 .6.4 1 1 1h2",key:"5owen"}],["circle",{cx:"7",cy:"17",r:"2",key:"u2ysq9"}],["path",{d:"M9 17h6",key:"r8uit2"}],["circle",{cx:"17",cy:"17",r:"2",key:"axvx0g"}]],mh=G("car",hh);/**
722
722
  * @license lucide-react v1.38.0 - ISC
723
723
  *
724
724
  * This source code is licensed under the ISC license.
725
725
  * See the LICENSE file in the root directory of this source tree.
726
- */const sh=[["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M14 2v2",key:"6buw04"}],["path",{d:"M16 8a1 1 0 0 1 1 1v8a4 4 0 0 1-4 4H7a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1h14a4 4 0 1 1 0 8h-1",key:"pwadti"}],["path",{d:"M6 2v2",key:"colzsn"}]],ih=Y("coffee",sh);/**
726
+ */const fh=[["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M14 2v2",key:"6buw04"}],["path",{d:"M16 8a1 1 0 0 1 1 1v8a4 4 0 0 1-4 4H7a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1h14a4 4 0 1 1 0 8h-1",key:"pwadti"}],["path",{d:"M6 2v2",key:"colzsn"}]],Ch=G("coffee",fh);/**
727
727
  * @license lucide-react v1.38.0 - ISC
728
728
  *
729
729
  * This source code is licensed under the ISC license.
730
730
  * See the LICENSE file in the root directory of this source tree.
731
- */const lh=[["line",{x1:"6",x2:"10",y1:"11",y2:"11",key:"1gktln"}],["line",{x1:"8",x2:"8",y1:"9",y2:"13",key:"qnk9ow"}],["line",{x1:"15",x2:"15.01",y1:"12",y2:"12",key:"krot7o"}],["line",{x1:"18",x2:"18.01",y1:"10",y2:"10",key:"1lcuu1"}],["path",{d:"M17.32 5H6.68a4 4 0 0 0-3.978 3.59c-.006.052-.01.101-.017.152C2.604 9.416 2 14.456 2 16a3 3 0 0 0 3 3c1 0 1.5-.5 2-1l1.414-1.414A2 2 0 0 1 9.828 16h4.344a2 2 0 0 1 1.414.586L17 18c.5.5 1 1 2 1a3 3 0 0 0 3-3c0-1.545-.604-6.584-.685-7.258-.007-.05-.011-.1-.017-.151A4 4 0 0 0 17.32 5z",key:"mfqc10"}]],ch=Y("gamepad-2",lh);/**
731
+ */const gh=[["line",{x1:"6",x2:"10",y1:"11",y2:"11",key:"1gktln"}],["line",{x1:"8",x2:"8",y1:"9",y2:"13",key:"qnk9ow"}],["line",{x1:"15",x2:"15.01",y1:"12",y2:"12",key:"krot7o"}],["line",{x1:"18",x2:"18.01",y1:"10",y2:"10",key:"1lcuu1"}],["path",{d:"M17.32 5H6.68a4 4 0 0 0-3.978 3.59c-.006.052-.01.101-.017.152C2.604 9.416 2 14.456 2 16a3 3 0 0 0 3 3c1 0 1.5-.5 2-1l1.414-1.414A2 2 0 0 1 9.828 16h4.344a2 2 0 0 1 1.414.586L17 18c.5.5 1 1 2 1a3 3 0 0 0 3-3c0-1.545-.604-6.584-.685-7.258-.007-.05-.011-.1-.017-.151A4 4 0 0 0 17.32 5z",key:"mfqc10"}]],bh=G("gamepad-2",gh);/**
732
732
  * @license lucide-react v1.38.0 - ISC
733
733
  *
734
734
  * This source code is licensed under the ISC license.
735
735
  * See the LICENSE file in the root directory of this source tree.
736
- */const uh=[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}]],dh=Y("inbox",uh);/**
736
+ */const yh=[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}]],vh=G("inbox",yh);/**
737
737
  * @license lucide-react v1.38.0 - ISC
738
738
  *
739
739
  * This source code is licensed under the ISC license.
740
740
  * See the LICENSE file in the root directory of this source tree.
741
- */const ph=[["path",{d:"M8 5h13",key:"1pao27"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 19h8",key:"c3s6r1"}],["path",{d:"M3 10a2 2 0 0 0 2 2h3",key:"1npucw"}],["path",{d:"M3 5v12a2 2 0 0 0 2 2h3",key:"x1gjn2"}]],hh=Y("list-tree",ph);/**
741
+ */const xh=[["path",{d:"M8 5h13",key:"1pao27"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 19h8",key:"c3s6r1"}],["path",{d:"M3 10a2 2 0 0 0 2 2h3",key:"1npucw"}],["path",{d:"M3 5v12a2 2 0 0 0 2 2h3",key:"x1gjn2"}]],_h=G("list-tree",xh);/**
742
742
  * @license lucide-react v1.38.0 - ISC
743
743
  *
744
744
  * This source code is licensed under the ISC license.
745
745
  * See the LICENSE file in the root directory of this source tree.
746
- */const mh=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}],["path",{d:"M12 11h.01",key:"z322tv"}],["path",{d:"M16 11h.01",key:"xkw8gn"}],["path",{d:"M8 11h.01",key:"1dfujw"}]],fh=Y("message-square-more",mh);/**
746
+ */const wh=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}],["path",{d:"M12 11h.01",key:"z322tv"}],["path",{d:"M16 11h.01",key:"xkw8gn"}],["path",{d:"M8 11h.01",key:"1dfujw"}]],kh=G("message-square-more",wh);/**
747
747
  * @license lucide-react v1.38.0 - ISC
748
748
  *
749
749
  * This source code is licensed under the ISC license.
750
750
  * See the LICENSE file in the root directory of this source tree.
751
- */const Ch=[["path",{d:"M5 12h14",key:"1ays0h"}]],gh=Y("minus",Ch);/**
751
+ */const Ah=[["path",{d:"M5 12h14",key:"1ays0h"}]],Nh=G("minus",Ah);/**
752
752
  * @license lucide-react v1.38.0 - ISC
753
753
  *
754
754
  * This source code is licensed under the ISC license.
755
755
  * See the LICENSE file in the root directory of this source tree.
756
- */const bh=[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]],yh=Y("share-2",bh);/**
756
+ */const Bh=[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]],Sh=G("share-2",Bh);/**
757
757
  * @license lucide-react v1.38.0 - ISC
758
758
  *
759
759
  * This source code is licensed under the ISC license.
760
760
  * See the LICENSE file in the root directory of this source tree.
761
- */const vh=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],xh=Y("sparkles",vh);/**
761
+ */const Dh=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],Th=G("sparkles",Dh);/**
762
762
  * @license lucide-react v1.38.0 - ISC
763
763
  *
764
764
  * This source code is licensed under the ISC license.
765
765
  * See the LICENSE file in the root directory of this source tree.
766
- */const _h=[["path",{d:"M12 4v16",key:"1654pz"}],["path",{d:"M4 7V5a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v2",key:"e0r10z"}],["path",{d:"M9 20h6",key:"s66wpe"}]],wh=Y("type",_h);/**
766
+ */const jh=[["path",{d:"M12 4v16",key:"1654pz"}],["path",{d:"M4 7V5a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v2",key:"e0r10z"}],["path",{d:"M9 20h6",key:"s66wpe"}]],Eh=G("type",jh);/**
767
767
  * @license lucide-react v1.38.0 - ISC
768
768
  *
769
769
  * This source code is licensed under the ISC license.
770
770
  * See the LICENSE file in the root directory of this source tree.
771
- */const kh=[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}]],Ah=Y("volume",kh);/**
771
+ */const Mh=[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}]],Lh=G("volume",Mh);/**
772
772
  * @license lucide-react v1.38.0 - ISC
773
773
  *
774
774
  * This source code is licensed under the ISC license.
775
775
  * See the LICENSE file in the root directory of this source tree.
776
- */const Nh=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],ko=Y("chevron-down",Nh);/**
776
+ */const $h=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Bo=G("chevron-down",$h);/**
777
777
  * @license lucide-react v1.38.0 - ISC
778
778
  *
779
779
  * This source code is licensed under the ISC license.
780
780
  * See the LICENSE file in the root directory of this source tree.
781
- */const Bh=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],Ao=Y("chevron-up",Bh);/**
781
+ */const Rh=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],So=G("chevron-up",Rh);/**
782
782
  * @license lucide-react v1.38.0 - ISC
783
783
  *
784
784
  * This source code is licensed under the ISC license.
785
785
  * See the LICENSE file in the root directory of this source tree.
786
- */const Dh=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Sh=Y("circle",Dh);/**
786
+ */const Ph=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Ih=G("circle",Ph);/**
787
787
  * @license lucide-react v1.38.0 - ISC
788
788
  *
789
789
  * This source code is licensed under the ISC license.
790
790
  * See the LICENSE file in the root directory of this source tree.
791
- */const jh=[["path",{d:"M13.73 4a2 2 0 0 0-3.46 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z",key:"14u9p9"}]],Th=Y("triangle",jh);/**
791
+ */const Fh=[["path",{d:"M13.73 4a2 2 0 0 0-3.46 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z",key:"14u9p9"}]],Oh=G("triangle",Fh);/**
792
792
  * @license lucide-react v1.38.0 - ISC
793
793
  *
794
794
  * This source code is licensed under the ISC license.
795
795
  * See the LICENSE file in the root directory of this source tree.
796
- */const Eh=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],Mh=Y("menu",Eh);/**
796
+ */const Hh=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],Vh=G("menu",Hh);/**
797
797
  * @license lucide-react v1.38.0 - ISC
798
798
  *
799
799
  * This source code is licensed under the ISC license.
800
800
  * See the LICENSE file in the root directory of this source tree.
801
- */const Lh=[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]],$h=Y("moon",Lh);/**
801
+ */const zh=[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]],Wh=G("moon",zh);/**
802
802
  * @license lucide-react v1.38.0 - ISC
803
803
  *
804
804
  * This source code is licensed under the ISC license.
805
805
  * See the LICENSE file in the root directory of this source tree.
806
- */const Rh=[["path",{d:"M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z",key:"emmmcr"}],["path",{d:"M7 10v12",key:"1qc93n"}]],Ph=Y("thumbs-up",Rh),No={"alert-triangle":uo,"align-start-vertical":bc,anchor:Z1,armchair:J1,"arrow-down":vc,"arrow-left":_c,"arrow-right":kc,"arrow-right-left":Nc,"arrow-up-a-z":eh,"audio-lines":Dc,baby:jc,ban:Ec,"bar-chart-2":nh,bell:Lc,"book-marked":Rc,"book-open":Ic,"bow-arrow":Oc,braces:Vc,bug:Wc,calendar:wo,"calendar-check":Uc,"calendar-days":Kc,camera:Zc,car:oh,"chart-column":Jc,"chart-line":eu,"chart-pie":nu,check:po,"chevron-down":ko,"chevron-left":ho,"chevron-right":mo,"chevron-up":Ao,circle:Sh,"clipboard-list":iu,coffee:ih,combine:cu,copy:du,"chevrons-left-right-ellipsis":hu,"credit-card":fu,database:fo,diff:bu,download:Co,ear:xu,edit:wu,"edit-2":Au,"edit-3":Bu,ellipsis:go,eraser:ju,"external-link":Eu,eye:Lu,"file-text":Ru,"flip-horizontal":Iu,"folder-open":Ou,"folder-plus":Vu,gamepad:Wu,"gamepad-2":ch,gavel:Uu,"git-merge":bo,globe:Yu,headphones:Xu,heart:Qu,home:td,inbox:dh,info:ad,"key-round":od,landmark:id,layers:cd,"layout-dashboard":dd,leaf:hd,lightbulb:fd,link:gd,"link-2":yd,"link-2-off":xd,list:wd,"list-checks":Ad,"list-ordered":Bd,"list-tree":hh,loader:Sd,lock:Td,"log-out":Md,mail:$d,"map-pin":Pd,menu:Mh,"message-circle":Fd,"message-circle-question-mark":Hd,"message-square":zd,"message-square-more":fh,"message-square-text":qd,minus:gh,"minus-circle":Gd,moon:$h,"more-horizontal":go,package:Yd,palette:Xd,"party-popper":Qd,pause:tp,pencil:ap,phone:op,play:ip,"play-circle":cp,plus:dp,printer:hp,"refresh-cw":fp,repeat:gp,replace:yp,rocket:xp,"rotate-ccw":wp,"rotate-cw":Ap,salad:Bp,"scan-search":Sp,search:Mp,"circle-alert":yo,"alert-circle":yo,"check-circle":vo,scissors:$p,"search-x":Pp,send:Fp,settings:Hp,"share-2":yh,"shield-check":zp,"shopping-cart":qp,shuffle:Gp,"skip-back":Yp,"skip-forward":Xp,sparkles:xh,square:Qp,star:t1,store:a1,"sun-medium":o1,table:i1,"table-2":c1,tag:d1,terminal:h1,"text-cursor-input":f1,"text-initial":g1,"thumbs-up":Ph,ticket:y1,trash:w1,triangle:Th,"trash-2":x1,"trending-up":A1,"triangle-alert":uo,trophy:B1,type:wh,unlink:S1,upload:T1,user:Ia,"user-plus":L1,"user-round":R1,"user-round-check":I1,users:O1,"users-round":V1,volume:Ah,"volume-2":xo,wrench:q1,x:_o,zap:K1};function Ih(e){return No[e]??null}const Bo=new Set;function Fh(e){return io&&!(e in No)&&!Bo.has(e)&&(Bo.add(e),console.warn(`[ihabdevteam-core] lucide \uC544\uC774\uCF58 '${e}' \uC774 \uC815\uC801 \uBAA9\uB85D\uC5D0 \uC5C6\uC5B4 \uB80C\uB354\uB418\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4. utils/lucideIconSet.ts \uC758 STATIC_LUCIDE_ICONS \uC5D0 \uCD94\uAC00\uD558\uC138\uC694.`)),Promise.resolve(null)}const Oh=e=>e.replace(/([A-Z]+)([A-Z][a-z])/g,"$1-$2").replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Za-z])([0-9])/g,"$1-$2").replace(/[_ ]+/g,"-").toLowerCase();function Hh(e){const n=e.toLowerCase();if(n.startsWith("http://")||n.startsWith("https://")||n.startsWith("data:")||e.includes("/assets/"))return null;const a=(e.split("/").pop()||"").replace(/\.svg$/,"");return a?Oh(a):null}const Do=new Map;function Vh(e){const n=typeof e=="string"?Hh(e):null,a=n?Ih(n)??Do.get(n)??null:null,[r,o]=i.useState(null);return i.useEffect(()=>{if(!n||a)return;let s=!1;return Fh(n).then(l=>{Do.set(n,l),s||o(l)}),()=>{s=!0}},[n,a]),a??r}/*! @license DOMPurify 3.4.14 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.14/LICENSE */function So(e,n){(n==null||n>e.length)&&(n=e.length);for(var a=0,r=Array(n);a<n;a++)r[a]=e[a];return r}function zh(e){if(Array.isArray(e))return e}function Wh(e,n){var a=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(a!=null){var r,o,s,l,c=[],u=!0,d=!1;try{if(s=(a=a.call(e)).next,n!==0)for(;!(u=(r=s.call(a)).done)&&(c.push(r.value),c.length!==n);u=!0);}catch(p){d=!0,o=p}finally{try{if(!u&&a.return!=null&&(l=a.return(),Object(l)!==l))return}finally{if(d)throw o}}return c}}function qh(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
807
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Uh(e,n){return zh(e)||Wh(e,n)||Gh(e,n)||qh()}function Gh(e,n){if(e){if(typeof e=="string")return So(e,n);var a={}.toString.call(e).slice(8,-1);return a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set"?Array.from(e):a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?So(e,n):void 0}}const jo=Object.entries,To=Object.setPrototypeOf,Kh=Object.isFrozen,Yh=Object.getPrototypeOf,Zh=Object.getOwnPropertyDescriptor;let pt=Object.freeze,ht=Object.seal,Tn=Object.create,Eo=typeof Reflect<"u"&&Reflect,Fa=Eo.apply,Oa=Eo.construct;pt||(pt=function(n){return n}),ht||(ht=function(n){return n}),Fa||(Fa=function(n,a){for(var r=arguments.length,o=new Array(r>2?r-2:0),s=2;s<r;s++)o[s-2]=arguments[s];return n.apply(a,o)}),Oa||(Oa=function(n){for(var a=arguments.length,r=new Array(a>1?a-1:0),o=1;o<a;o++)r[o-1]=arguments[o];return new n(...r)});const vn=ut(Array.prototype.forEach),Xh=ut(Array.prototype.lastIndexOf),Mo=ut(Array.prototype.pop),Wn=ut(Array.prototype.push),Jh=ut(Array.prototype.splice),En=Array.isArray,qn=ut(String.prototype.toLowerCase),Ha=ut(String.prototype.toString),Lo=ut(String.prototype.match),Un=ut(String.prototype.replace),$o=ut(String.prototype.indexOf),Qh=ut(String.prototype.trim),em=ut(Number.prototype.toString),tm=ut(Boolean.prototype.toString),Ro=typeof BigInt>"u"?null:ut(BigInt.prototype.toString),Po=typeof Symbol>"u"?null:ut(Symbol.prototype.toString),jt=ut(Object.prototype.hasOwnProperty),Gn=ut(Object.prototype.toString),gt=ut(RegExp.prototype.test),xn=nm(TypeError);function ut(e){return function(n){n instanceof RegExp&&(n.lastIndex=0);for(var a=arguments.length,r=new Array(a>1?a-1:0),o=1;o<a;o++)r[o-1]=arguments[o];return Fa(e,n,r)}}function nm(e){return function(){for(var n=arguments.length,a=new Array(n),r=0;r<n;r++)a[r]=arguments[r];return Oa(e,a)}}function Ge(e,n){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:qn;if(To&&To(e,null),!En(n))return e;let r=n.length;for(;r--;){let o=n[r];if(typeof o=="string"){const s=a(o);s!==o&&(Kh(n)||(n[r]=s),o=s)}e[o]=!0}return e}function am(e){for(let n=0;n<e.length;n++)jt(e,n)||(e[n]=null);return e}function Et(e){const n=Tn(null);for(const r of jo(e)){var a=Uh(r,2);const o=a[0],s=a[1];jt(e,o)&&(En(s)?n[o]=am(s):s&&typeof s=="object"&&s.constructor===Object?n[o]=Et(s):n[o]=s)}return n}function rm(e){switch(typeof e){case"string":return e;case"number":return em(e);case"boolean":return tm(e);case"bigint":return Ro?Ro(e):"0";case"symbol":return Po?Po(e):"Symbol()";case"undefined":return Gn(e);case"function":case"object":{if(e===null)return Gn(e);const n=e,a=Vt(n,"toString");if(typeof a=="function"){const r=a(n);return typeof r=="string"?r:Gn(r)}return Gn(e)}default:return Gn(e)}}function Vt(e,n){for(;e!==null;){const r=Zh(e,n);if(r){if(r.get)return ut(r.get);if(typeof r.value=="function")return ut(r.value)}e=Yh(e)}function a(){return null}return a}function om(e){try{return gt(e,""),!0}catch{return!1}}const Io=pt(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Va=pt(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),za=pt(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),sm=pt(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Wa=pt(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),im=pt(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Fo=pt(["#text"]),Oo=pt(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),qa=pt(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","pointer-events","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","vector-effect","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Ho=pt(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),ha=pt(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),lm=ht(/{{[\w\W]*|^[\w\W]*}}/g),cm=ht(/<%[\w\W]*|^[\w\W]*%>/g),um=ht(/\${[\w\W]*/g),dm=ht(/^data-[\-\w.\u00B7-\uFFFF]+$/),pm=ht(/^aria-[\-\w]+$/),Vo=ht(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),hm=ht(/^(?:\w+script|data):/i),mm=ht(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),fm=ht(/^html$/i),Cm=ht(/^[a-z][.\w]*(-[.\w]+)+$/i),zo=ht(/<[/\w!]/g),Wo=ht(/<[/\w]/g),gm=ht(/<\/no(script|embed|frames)/i),bm=ht(/\/>/i),Mt={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},qo=["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"],ym=pt(Ge({},qo)),vm=(function(){const e={};return vn(qo,n=>{e[n]=ht(new RegExp("</"+n+"(?=[\\t\\n\\f\\r />])","i"))}),pt(e)})(),xm=function(){return typeof window>"u"?null:window},_m=function(n,a){if(typeof n!="object"||typeof n.createPolicy!="function")return null;let r=null;const o="data-tt-policy-suffix";a&&a.hasAttribute(o)&&(r=a.getAttribute(o));const s="dompurify"+(r?"#"+r:"");try{return n.createPolicy(s,{createHTML(l){return l},createScriptURL(l){return l}})}catch{return console.warn("TrustedTypes policy "+s+" could not be created."),null}},Uo=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},cn=function(n,a,r,o){return jt(n,a)&&En(n[a])?Ge(o.base?Et(o.base):{},n[a],o.transform):r},Ua=function(n,a,r){const o=jt(n,a)?n[a]:void 0;return o&&typeof o=="object"?Et(o):r()};function Go(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:xm();const n=he=>Go(he);if(n.version="3.4.14",n.removed=[],!e||!e.document||e.document.nodeType!==Mt.document||!e.Element)return n.isSupported=!1,n;let a=e.document;const r=a,o=r.currentScript;e.DocumentFragment;const s=e.HTMLTemplateElement,l=e.Node,c=e.Element,u=e.NodeFilter,d=e.NamedNodeMap;d===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;const p=e.DOMParser,h=e.trustedTypes,m=c.prototype,b=Vt(m,"cloneNode"),f=Vt(m,"remove"),g=Vt(m,"nextSibling"),C=Vt(m,"childNodes"),v=Vt(m,"parentNode"),_=Vt(m,"shadowRoot"),A=Vt(m,"attributes"),y=l&&l.prototype?Vt(l.prototype,"nodeType"):null,N=l&&l.prototype?Vt(l.prototype,"nodeName"):null,x=l&&l.prototype?Vt(l.prototype,"ownerDocument"):null,w=function(D){return y?y(D):D.nodeType},j=function(D){return N?N(D):D.nodeName};if(typeof s=="function"){const he=a.createElement("template");he.content&&he.content.ownerDocument&&(a=he.content.ownerDocument)}let k,S="",F,P=!1,B=0;const I=function(){if(B>0)throw xn('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},M=function(D){I(),B++;try{return k.createHTML(D)}finally{B--}},ne=function(D){I(),B++;try{return k.createScriptURL(D)}finally{B--}},L=function(){return P||(F=_m(h,o),P=!0),F},H=a,ee=H.implementation,W=H.createNodeIterator,z=H.createDocumentFragment,T=H.getElementsByTagName,E=r.importNode;let $=Uo();n.isSupported=typeof jo=="function"&&typeof v=="function"&&ee&&ee.createHTMLDocument!==void 0;const K=lm,R=cm,V=um,q=dm,re=pm,ie=hm,ue=mm,Ce=Cm;let be=Vo,Z=null;const ce=Ge({},[...Io,...Va,...za,...Wa,...Fo]);let J=null;const ge=Ge({},[...Oo,...qa,...Ho,...ha]);let xe=Object.seal(Tn(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),de=null,fe=null;const _e=Object.seal(Tn(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let De=!0,X=!0,pe=!1,Ne=!0,Te=!1,Ie=!0,Ae=!1,Ue=!1,Le=null,ye=null,ze=!1,Fe=!1,Oe=!1,We=!1,He=!0,je=!1;const Re="user-content-";let it=!0,Qe=!1,Ze={},qe=null;const Pe=Ge({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let nt=null;const Je=Ge({},["audio","video","img","source","image","track"]);let et=null;const $e=Ge({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ke="http://www.w3.org/1998/Math/MathML",Tt="http://www.w3.org/2000/svg",dt="http://www.w3.org/1999/xhtml";let ot=dt,bt=!1,Kt=null;const gn=Ge({},[Ke,Tt,dt],Ha),Ct=pt(["mi","mo","mn","ms","mtext"]);let kt=Ge({},Ct);const Lt=pt(["annotation-xml"]);let At=Ge({},Lt);const bn=Ge({},["title","style","font","a","script"]);let Ot=null;const on=["application/xhtml+xml","text/html"],yn="text/html";let Ye=null,Nt=null;const yt=a.createElement("form"),Yt=function(D){return D instanceof RegExp||D instanceof Function},Zt=function(){let D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Nt&&Nt===D)return;(!D||typeof D!="object")&&(D={}),D=Et(D),Ot=on.indexOf(D.PARSER_MEDIA_TYPE)===-1?yn:D.PARSER_MEDIA_TYPE,Ye=Ot==="application/xhtml+xml"?Ha:qn,Z=cn(D,"ALLOWED_TAGS",ce,{transform:Ye}),J=cn(D,"ALLOWED_ATTR",ge,{transform:Ye}),Kt=cn(D,"ALLOWED_NAMESPACES",gn,{transform:Ha}),et=cn(D,"ADD_URI_SAFE_ATTR",$e,{transform:Ye,base:$e}),nt=cn(D,"ADD_DATA_URI_TAGS",Je,{transform:Ye,base:Je}),qe=cn(D,"FORBID_CONTENTS",Pe,{transform:Ye}),de=cn(D,"FORBID_TAGS",Et({}),{transform:Ye}),fe=cn(D,"FORBID_ATTR",Et({}),{transform:Ye}),Ze=jt(D,"USE_PROFILES")?D.USE_PROFILES&&typeof D.USE_PROFILES=="object"?Et(D.USE_PROFILES):D.USE_PROFILES:!1,De=D.ALLOW_ARIA_ATTR!==!1,X=D.ALLOW_DATA_ATTR!==!1,pe=D.ALLOW_UNKNOWN_PROTOCOLS||!1,Ne=D.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Te=D.SAFE_FOR_TEMPLATES||!1,Ie=D.SAFE_FOR_XML!==!1,Ae=D.WHOLE_DOCUMENT||!1,Fe=D.RETURN_DOM||!1,Oe=D.RETURN_DOM_FRAGMENT||!1,We=D.RETURN_TRUSTED_TYPE||!1,ze=D.FORCE_BODY||!1,He=D.SANITIZE_DOM!==!1,je=D.SANITIZE_NAMED_PROPS||!1,it=D.KEEP_CONTENT!==!1,Qe=D.IN_PLACE||!1,be=om(D.ALLOWED_URI_REGEXP)?D.ALLOWED_URI_REGEXP:Vo,ot=typeof D.NAMESPACE=="string"?D.NAMESPACE:dt,kt=Ua(D,"MATHML_TEXT_INTEGRATION_POINTS",()=>Ge({},Ct)),At=Ua(D,"HTML_INTEGRATION_POINTS",()=>Ge({},Lt));const U=Ua(D,"CUSTOM_ELEMENT_HANDLING",()=>Tn(null));if(xe=Tn(null),jt(U,"tagNameCheck")&&Yt(U.tagNameCheck)&&(xe.tagNameCheck=U.tagNameCheck),jt(U,"attributeNameCheck")&&Yt(U.attributeNameCheck)&&(xe.attributeNameCheck=U.attributeNameCheck),jt(U,"allowCustomizedBuiltInElements")&&typeof U.allowCustomizedBuiltInElements=="boolean"&&(xe.allowCustomizedBuiltInElements=U.allowCustomizedBuiltInElements),ht(xe),Te&&(X=!1),Oe&&(Fe=!0),Ze&&(Z=Ge({},Fo),J=Tn(null),Ze.html===!0&&(Ge(Z,Io),Ge(J,Oo)),Ze.svg===!0&&(Ge(Z,Va),Ge(J,qa),Ge(J,ha)),Ze.svgFilters===!0&&(Ge(Z,za),Ge(J,qa),Ge(J,ha)),Ze.mathMl===!0&&(Ge(Z,Wa),Ge(J,Ho),Ge(J,ha))),_e.tagCheck=null,_e.attributeCheck=null,jt(D,"ADD_TAGS")&&(typeof D.ADD_TAGS=="function"?_e.tagCheck=D.ADD_TAGS:En(D.ADD_TAGS)&&(Z===ce&&(Z=Et(Z)),Ge(Z,D.ADD_TAGS,Ye))),jt(D,"ADD_ATTR")&&(typeof D.ADD_ATTR=="function"?_e.attributeCheck=D.ADD_ATTR:En(D.ADD_ATTR)&&(J===ge&&(J=Et(J)),Ge(J,D.ADD_ATTR,Ye))),jt(D,"ADD_FORBID_CONTENTS")&&En(D.ADD_FORBID_CONTENTS)&&(qe===Pe&&(qe=Et(qe)),Ge(qe,D.ADD_FORBID_CONTENTS,Ye)),it&&(Z["#text"]=!0),Ae&&Ge(Z,["html","head","body"]),Z.table&&(Ge(Z,["tbody"]),delete de.tbody),D.TRUSTED_TYPES_POLICY){if(typeof D.TRUSTED_TYPES_POLICY.createHTML!="function")throw xn('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof D.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw xn('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const le=k;k=D.TRUSTED_TYPES_POLICY;try{S=M("")}catch(we){throw k=le,we}}else D.TRUSTED_TYPES_POLICY===null?(k=void 0,S=""):(k===void 0&&(k=L()),k&&typeof S=="string"&&(S=M("")));pt&&pt(D),Nt=D},$t=Ge({},[...Va,...za,...sm]),Ht=Ge({},[...Wa,...im]),sn=function(D,U,le){return U.namespaceURI===dt?D==="svg":U.namespaceURI===Ke?D==="svg"&&(le==="annotation-xml"||kt[le]):!!$t[D]},Rt=function(D,U,le){return U.namespaceURI===dt?D==="math":U.namespaceURI===Tt?D==="math"&&At[le]:!!Ht[D]},Xt=function(D,U,le){return U.namespaceURI===Tt&&!At[le]||U.namespaceURI===Ke&&!kt[le]?!1:!Ht[D]&&(bn[D]||!$t[D])},ln=function(D){let U=v(D);(!U||!U.tagName)&&(U={namespaceURI:ot,tagName:"template"});const le=qn(D.tagName),we=qn(U.tagName);return Kt[D.namespaceURI]?D.namespaceURI===Tt?sn(le,U,we):D.namespaceURI===Ke?Rt(le,U,we):D.namespaceURI===dt?Xt(le,U,we):!!(Ot==="application/xhtml+xml"&&Kt[D.namespaceURI]):!1},vt=function(D){Wn(n.removed,{element:D});try{v(D).removeChild(D)}catch{if(f(D),!v(D))throw xn("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},oe=function(D,U,le){try{D.removeAttributeNode(U)}catch{try{D.removeAttribute(le)}catch{}}},O=function(D){G(D);const U=C(D);if(U){const we=[];vn(U,Be=>{Wn(we,Be)}),vn(we,Be=>{try{f(Be)}catch{}})}const le=A(D);if(le)for(let we=le.length-1;we>=0;--we){const Be=le[we],Me=Be&&Be.name;typeof Me=="string"&&oe(D,Be,Me)}},Q=function(D,U,le){if(!le)try{le=U.getAttributeNode(D)}catch{le=null}Wn(n.removed,{attribute:le||null,from:U});try{le?U.removeAttributeNode(le):U.removeAttribute(D)}catch{try{U.removeAttribute(D)}catch{}}if(D==="is")if(Fe||Oe)try{vt(U)}catch{}else try{U.setAttribute(D,"")}catch{}},te=function(D){const U=A(D);if(U)for(let le=U.length-1;le>=0;--le){const we=U[le],Be=we&&we.name;typeof Be!="string"||J[Ye(Be)]||oe(D,we,Be)}},G=function(D){const U=[D];for(;U.length>0;){const le=U.pop();w(le)===Mt.element&&te(le);const Be=C(le);if(Be)for(let Me=Be.length-1;Me>=0;--Me)U.push(Be[Me])}},ae=function(D,U){return Ie?D==="patchsrc"?!0:D==="for"&&U!=="label"&&U!=="output":!1},ke=function(D){if(!Ie)return;const U=[D];for(;U.length>0;){const le=U.pop(),we=w(le);if(we===Mt.processingInstruction||we===Mt.comment&&gt(Wo,le.data)){try{f(le)}catch{}continue}if(we===Mt.element){const Me=le,Xe=Ye(j(le));try{Me.hasAttribute&&Me.hasAttribute("patchsrc")&&Me.removeAttribute("patchsrc"),Me.hasAttribute&&Me.hasAttribute("for")&&ae("for",Xe)&&Me.removeAttribute("for")}catch{}}const Be=C(le);if(Be)for(let Me=Be.length-1;Me>=0;--Me)U.push(Be[Me])}},Ee=function(D){let U=null,le=null;if(ze)D="<remove></remove>"+D;else{const Me=Lo(D,/^[\r\n\t ]+/);le=Me&&Me[0]}Ot==="application/xhtml+xml"&&ot===dt&&(D='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+D+"</body></html>");const we=k?M(D):D;if(ot===dt)try{U=new p().parseFromString(we,Ot)}catch{}if(!U||!U.documentElement){U=ee.createDocument(ot,"template",null);try{U.documentElement.innerHTML=bt?S:we}catch{}}const Be=U.body||U.documentElement;return D&&le&&Be.insertBefore(a.createTextNode(le),Be.childNodes[0]||null),ot===dt?T.call(U,Ae?"html":"body")[0]:Ae?U.documentElement:Be},Se=function(D){const U=x?x(D):D.ownerDocument;return W.call(U||D,D,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},lt=function(D){return D=Un(D,K," "),D=Un(D,R," "),D=Un(D,V," "),D},mt=function(D){var U;D.normalize();const le=x?x(D):D.ownerDocument,we=W.call(le||D,D,u.SHOW_TEXT|u.SHOW_COMMENT|u.SHOW_CDATA_SECTION|u.SHOW_PROCESSING_INSTRUCTION,null);let Be=we.nextNode();for(;Be;)Be.data=lt(Be.data),Be=we.nextNode();const Me=(U=D.querySelectorAll)===null||U===void 0?void 0:U.call(D,"template");Me&&vn(Me,Xe=>{st(Xe.content)&&mt(Xe.content)})},ct=function(D){const U=N?N(D):null;return typeof U!="string"||Ye(U)!=="form"?!1:typeof D.nodeName!="string"||typeof D.textContent!="string"||typeof D.removeChild!="function"||D.attributes!==A(D)||typeof D.removeAttribute!="function"||typeof D.setAttribute!="function"||typeof D.namespaceURI!="string"||typeof D.insertBefore!="function"||typeof D.hasChildNodes!="function"||D.nodeType!==y(D)||D.childNodes!==C(D)},st=function(D){if(!y||typeof D!="object"||D===null)return!1;try{return y(D)===Mt.documentFragment}catch{return!1}},Bt=function(D){if(!y||typeof D!="object"||D===null)return!1;try{return typeof y(D)=="number"}catch{return!1}};function Pt(he,D,U){he.length!==0&&vn(he,le=>{le.call(n,D,U,Nt)})}const oc=function(D,U){return!!(Ie&&D.hasChildNodes()&&!Bt(D.firstElementChild)&&gt(zo,D.textContent)&&gt(zo,D.innerHTML)||Ie&&D.namespaceURI===dt&&ym[U]&&(Bt(D.firstElementChild)||typeof D.textContent=="string"&&gt(vm[U],D.textContent))||D.nodeType===Mt.processingInstruction||Ie&&D.nodeType===Mt.comment&&gt(Wo,D.data))},da=function(D,U){if(D instanceof RegExp)return gt(D,U);if(D instanceof Function){for(var le=arguments.length,we=new Array(le>2?le-2:0),Be=2;Be<le;Be++)we[Be-2]=arguments[Be];return!!D(U,...we)}return!1},sc=function(D,U,le){if(!de[U]&&ro(U)&&da(xe.tagNameCheck,U))return!1;if(it&&!qe[U]){const we=v(D),Be=C(D);if(Be&&we){const Me=Be.length;for(let Xe=Me-1;Xe>=0;--Xe){const tt=D===le?b(Be[Xe],!0):Be[Xe];we.insertBefore(tt,g(D))}}}return vt(D),!0},eo=function(D,U,le,we){return D.length===0?U:U===le||U===we?Et(U):U},to=function(D,U){return D===U||v(D)!==null?!1:(Qe&&G(D),!0)},no=function(D,U){if(Pt($.beforeSanitizeElements,D,null),to(D,U))return!0;if(ct(D))return vt(D),!0;const le=Ye(j(D));if(Z=eo($.uponSanitizeElement,Z,ce,Le),Pt($.uponSanitizeElement,D,{tagName:le,allowedTags:Z}),to(D,U))return!0;if(oc(D,le))return vt(D),!0;if(de[le]||!(_e.tagCheck instanceof Function&&_e.tagCheck(le))&&!Z[le]){const Be=sc(D,le,U);return Be===!1&&Pt($.afterSanitizeElements,D,null),Be}if(w(D)===Mt.element&&!ln(D)||(le==="noscript"||le==="noembed"||le==="noframes")&&gt(gm,D.innerHTML))return vt(D),!0;if(Te&&D.nodeType===Mt.text){const Be=lt(D.textContent);D.textContent!==Be&&(Wn(n.removed,{element:D.cloneNode()}),D.textContent=Be)}return Pt($.afterSanitizeElements,D,null),!1},ao=function(D,U,le){if(fe[U]||ae(U,D)||He&&(U==="id"||U==="name")&&(le in a||le in yt))return!1;const we=J[U]||_e.attributeCheck instanceof Function&&_e.attributeCheck(U,D);return X&&gt(q,U)||De&&gt(re,U)?!0:we?et[U]||gt(be,Un(le,ue,""))||(U==="src"||U==="xlink:href"||U==="href")&&D!=="script"&&$o(le,"data:")===0&&nt[D]||pe&&!gt(ie,Un(le,ue,""))?!0:!le:ro(D)&&da(xe.tagNameCheck,D)&&da(xe.attributeNameCheck,U,D)||U==="is"&&xe.allowCustomizedBuiltInElements&&da(xe.tagNameCheck,le)},ic=Ge({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),ro=function(D){return!ic[qn(D)]&&gt(Ce,D)},lc=function(D,U,le,we){if(k&&typeof h=="object"&&typeof h.getAttributeType=="function"&&!le)switch(h.getAttributeType(D,U)){case"TrustedHTML":return M(we);case"TrustedScriptURL":return ne(we)}return we},cc=function(D,U,le,we){try{le?D.setAttributeNS(le,U,we):D.setAttribute(U,we),ct(D)?vt(D):Mo(n.removed)}catch{Q(U,D)}},oo=function(D){Pt($.beforeSanitizeAttributes,D,null);const U=D.attributes;if(!U||ct(D))return;J=eo($.uponSanitizeAttribute,J,ge,ye);const le={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:J,forceKeepAttr:void 0};let we=U.length;const Be=Ye(D.nodeName);for(;we--;){const Me=U[we],Xe=Me.name,tt=Me.namespaceURI,Dt=Me.value,St=Ye(Xe),Ra=Dt;let xt=Xe==="value"?Ra:Qh(Ra);if(le.attrName=St,le.attrValue=xt,le.keepAttr=!0,le.forceKeepAttr=void 0,Pt($.uponSanitizeAttribute,D,le),xt=le.attrValue,je&&(St==="id"||St==="name")&&$o(xt,Re)!==0&&(Q(Xe,D,Me),xt=Re+xt),Ie&&gt(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,xt)){Q(Xe,D,Me);continue}if(St==="attributename"&&Lo(xt,"href")){Q(Xe,D,Me);continue}if(!le.forceKeepAttr){if(!le.keepAttr){Q(Xe,D,Me);continue}if(!Ne&&gt(bm,xt)){Q(Xe,D,Me);continue}if(Te&&(xt=lt(xt)),!ao(Be,St,xt)){Q(Xe,D,Me);continue}xt=lc(Be,St,tt,xt),xt!==Ra&&cc(D,Xe,tt,xt)}}Pt($.afterSanitizeAttributes,D,null)},pa=function(D){let U=null;const le=Se(D);for(Pt($.beforeSanitizeShadowDOM,D,null);U=le.nextNode();)if(Pt($.uponSanitizeShadowNode,U,null),no(U,D),oo(U),st(U.content)&&pa(U.content),w(U)===Mt.element){const we=_(U);st(we)&&($a(we),pa(we))}Pt($.afterSanitizeShadowDOM,D,null)},$a=function(D){const U=[{node:D,shadow:null}];for(;U.length>0;){const le=U.pop();if(le.shadow){pa(le.shadow);continue}const we=le.node,Me=w(we)===Mt.element,Xe=C(we);if(Xe)for(let tt=Xe.length-1;tt>=0;--tt)U.push({node:Xe[tt],shadow:null});if(Me){const tt=N?N(we):null;if(typeof tt=="string"&&Ye(tt)==="template"){const Dt=we.content;st(Dt)&&U.push({node:Dt,shadow:null})}}if(Me){const tt=_(we);st(tt)&&U.push({node:null,shadow:tt},{node:tt,shadow:null})}}};return n.sanitize=function(he){let D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},U=null,le=null,we=null,Be=null;if(bt=!he,bt&&(he="<!-->"),typeof he!="string"&&!Bt(he)&&(he=rm(he),typeof he!="string"))throw xn("dirty is not a string, aborting");if(!n.isSupported)return he;Ue?(Z=Le,J=ye):Zt(D),($.uponSanitizeElement.length>0||$.uponSanitizeAttribute.length>0)&&(Z=Et(Z)),$.uponSanitizeAttribute.length>0&&(J=Et(J)),n.removed=[];const Me=Qe&&typeof he!="string"&&Bt(he);if(Me){ke(he);const Dt=j(he);if(typeof Dt=="string"){const St=Ye(Dt);if(!Z[St]||de[St])throw O(he),xn("root node is forbidden and cannot be sanitized in-place")}if(ct(he))throw O(he),xn("root node is clobbered and cannot be sanitized in-place");try{$a(he)}catch(St){throw O(he),St}}else if(Bt(he))U=Ee("<!---->"),le=U.ownerDocument.importNode(he,!0),le.nodeType===Mt.element&&le.nodeName==="BODY"||le.nodeName==="HTML"?U=le:U.appendChild(le),$a(le);else{if(!Fe&&!Te&&!Ae&&he.indexOf("<")===-1)return k&&We?M(he):he;if(U=Ee(he),!U)return Fe?null:We?S:""}U&&ze&&vt(U.firstChild);const Xe=Me?he:U;try{const Dt=Se(Xe);for(;we=Dt.nextNode();)no(we,Xe),oo(we),st(we.content)&&pa(we.content)}catch(Dt){throw Me&&(O(he),vn(n.removed,St=>{St.element&&G(St.element)})),Dt}if(Me)return vn(n.removed,Dt=>{Dt.element&&G(Dt.element)}),Te&&mt(he),he;if(Fe){if(Te&&mt(U),Oe)for(Be=z.call(U.ownerDocument);U.firstChild;)Be.appendChild(U.firstChild);else Be=U;return(J.shadowroot||J.shadowrootmode)&&(Be=E.call(r,Be,!0)),Be}let tt=Ae?U.outerHTML:U.innerHTML;return Ae&&Z["!doctype"]&&U.ownerDocument&&U.ownerDocument.doctype&&U.ownerDocument.doctype.name&&gt(fm,U.ownerDocument.doctype.name)&&(tt="<!DOCTYPE "+U.ownerDocument.doctype.name+`>
808
- `+tt),Te&&(tt=lt(tt)),k&&We?M(tt):tt},n.setConfig=function(){let he=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Zt(he),Ue=!0,Le=Z,ye=J},n.clearConfig=function(){Nt=null,Ue=!1,Le=null,ye=null,k=F,S=""},n.isValidAttribute=function(he,D,U){Nt||Zt({});const le=Ye(he),we=Ye(D);return ao(le,we,U)},n.addHook=function(he,D){typeof D=="function"&&jt($,he)&&Wn($[he],D)},n.removeHook=function(he,D){if(jt($,he)){if(D!==void 0){const U=Xh($[he],D);return U===-1?void 0:Jh($[he],U,1)[0]}return Mo($[he])}},n.removeHooks=function(he){jt($,he)&&($[he]=[])},n.removeAllHooks=function(){$=Uo()},n}var wm=Go();const km=/^(?:[a-z]+:)?\/\//i,Am="__ihab_core_asset_base_url__";function Nm(){return globalThis[Am]??""}function Ga(e){const n=String(e||"").trim();if(!n)return"";if(km.test(n)||n.startsWith("data:")||n.startsWith("blob:"))return n;const a=n.startsWith("/")?n:`/${n}`,r=Nm();return r?`${r}${a}`:a}const Ko="__ihab_core_storage_resolvers__";function Kn(){return globalThis[Ko]??null}function Bm(e){globalThis[Ko]=e}let Yo=class extends Error{constructor(n){super(`
806
+ */const qh=[["path",{d:"M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z",key:"emmmcr"}],["path",{d:"M7 10v12",key:"1qc93n"}]],Uh=G("thumbs-up",qh),Do={"alert-triangle":mo,"align-start-vertical":Bc,anchor:oh,armchair:ih,"arrow-down":Dc,"arrow-left":jc,"arrow-right":Mc,"arrow-right-left":$c,"arrow-up-a-z":ch,"audio-lines":Pc,baby:Fc,ban:Hc,"bar-chart-2":dh,bell:zc,"book-marked":qc,"book-open":Gc,"bow-arrow":Yc,braces:Xc,bug:Qc,calendar:No,"calendar-check":tu,"calendar-days":au,camera:ou,car:mh,"chart-column":iu,"chart-line":cu,"chart-pie":du,check:fo,"chevron-down":Bo,"chevron-left":Co,"chevron-right":go,"chevron-up":So,circle:Ih,"clipboard-list":Cu,coffee:Ch,combine:bu,copy:vu,"chevrons-left-right-ellipsis":_u,"credit-card":ku,database:bo,diff:Bu,download:yo,ear:Tu,edit:Eu,"edit-2":Lu,"edit-3":Ru,ellipsis:vo,eraser:Fu,"external-link":Hu,eye:zu,"file-text":qu,"flip-horizontal":Gu,"folder-open":Yu,"folder-plus":Xu,gamepad:Qu,"gamepad-2":bh,gavel:td,"git-merge":xo,globe:rd,headphones:sd,heart:ld,home:ud,inbox:vh,info:pd,"key-round":md,landmark:Cd,layers:bd,"layout-dashboard":vd,leaf:_d,lightbulb:kd,link:Nd,"link-2":Sd,"link-2-off":Td,list:Ed,"list-checks":Ld,"list-ordered":Rd,"list-tree":_h,loader:Id,lock:Od,"log-out":Vd,mail:Wd,"map-pin":Ud,menu:Vh,"message-circle":Kd,"message-circle-question-mark":Zd,"message-square":Jd,"message-square-more":kh,"message-square-text":ep,minus:Nh,"minus-circle":np,moon:Wh,"more-horizontal":vo,package:rp,palette:sp,"party-popper":lp,pause:up,pencil:pp,phone:mp,play:Cp,"play-circle":bp,plus:vp,printer:_p,"refresh-cw":kp,repeat:Np,replace:Sp,rocket:Tp,"rotate-ccw":Ep,"rotate-cw":Lp,salad:Rp,"scan-search":Ip,search:Vp,"circle-alert":_o,"alert-circle":_o,"check-circle":wo,scissors:Wp,"search-x":Up,send:Kp,settings:Zp,"share-2":Sh,"shield-check":Jp,"shopping-cart":e1,shuffle:n1,"skip-back":r1,"skip-forward":s1,sparkles:Th,square:l1,star:u1,store:p1,"sun-medium":m1,table:C1,"table-2":b1,tag:v1,terminal:_1,"text-cursor-input":k1,"text-initial":N1,"thumbs-up":Uh,ticket:S1,trash:E1,triangle:Oh,"trash-2":T1,"trending-up":L1,"triangle-alert":mo,trophy:R1,type:Eh,unlink:I1,upload:O1,user:Ia,"user-plus":z1,"user-round":q1,"user-round-check":G1,users:Y1,"users-round":X1,volume:Lh,"volume-2":ko,wrench:eh,x:Ao,zap:ah};function Gh(e){return Do[e]??null}const To=new Set;function Kh(e){return uo&&!(e in Do)&&!To.has(e)&&(To.add(e),console.warn(`[ihabdevteam-core] lucide \uC544\uC774\uCF58 '${e}' \uC774 \uC815\uC801 \uBAA9\uB85D\uC5D0 \uC5C6\uC5B4 \uB80C\uB354\uB418\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4. utils/lucideIconSet.ts \uC758 STATIC_LUCIDE_ICONS \uC5D0 \uCD94\uAC00\uD558\uC138\uC694.`)),Promise.resolve(null)}const Yh=e=>e.replace(/([A-Z]+)([A-Z][a-z])/g,"$1-$2").replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Za-z])([0-9])/g,"$1-$2").replace(/[_ ]+/g,"-").toLowerCase();function Zh(e){const n=e.toLowerCase();if(n.startsWith("http://")||n.startsWith("https://")||n.startsWith("data:")||e.includes("/assets/")||/\.(png|jpe?g|gif|webp|avif|bmp|ico)$/i.test(n))return null;const a=(e.split("/").pop()||"").replace(/\.svg$/,"");return a?Yh(a):null}const jo=new Map;function Xh(e){const n=typeof e=="string"?Zh(e):null,a=n?Gh(n)??jo.get(n)??null:null,[r,o]=s.useState(null);return s.useEffect(()=>{if(!n||a)return;let i=!1;return Kh(n).then(l=>{jo.set(n,l),i||o(l)}),()=>{i=!0}},[n,a]),a??r}/*! @license DOMPurify 3.4.14 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.14/LICENSE */function Eo(e,n){(n==null||n>e.length)&&(n=e.length);for(var a=0,r=Array(n);a<n;a++)r[a]=e[a];return r}function Jh(e){if(Array.isArray(e))return e}function Qh(e,n){var a=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(a!=null){var r,o,i,l,c=[],u=!0,d=!1;try{if(i=(a=a.call(e)).next,n!==0)for(;!(u=(r=i.call(a)).done)&&(c.push(r.value),c.length!==n);u=!0);}catch(p){d=!0,o=p}finally{try{if(!u&&a.return!=null&&(l=a.return(),Object(l)!==l))return}finally{if(d)throw o}}return c}}function em(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
807
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tm(e,n){return Jh(e)||Qh(e,n)||nm(e,n)||em()}function nm(e,n){if(e){if(typeof e=="string")return Eo(e,n);var a={}.toString.call(e).slice(8,-1);return a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set"?Array.from(e):a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?Eo(e,n):void 0}}const Mo=Object.entries,Lo=Object.setPrototypeOf,am=Object.isFrozen,rm=Object.getPrototypeOf,om=Object.getOwnPropertyDescriptor;let dt=Object.freeze,ht=Object.seal,En=Object.create,$o=typeof Reflect<"u"&&Reflect,Fa=$o.apply,Oa=$o.construct;dt||(dt=function(n){return n}),ht||(ht=function(n){return n}),Fa||(Fa=function(n,a){for(var r=arguments.length,o=new Array(r>2?r-2:0),i=2;i<r;i++)o[i-2]=arguments[i];return n.apply(a,o)}),Oa||(Oa=function(n){for(var a=arguments.length,r=new Array(a>1?a-1:0),o=1;o<a;o++)r[o-1]=arguments[o];return new n(...r)});const xn=ct(Array.prototype.forEach),sm=ct(Array.prototype.lastIndexOf),Ro=ct(Array.prototype.pop),Wn=ct(Array.prototype.push),im=ct(Array.prototype.splice),Mn=Array.isArray,qn=ct(String.prototype.toLowerCase),Ha=ct(String.prototype.toString),Po=ct(String.prototype.match),Un=ct(String.prototype.replace),Io=ct(String.prototype.indexOf),lm=ct(String.prototype.trim),cm=ct(Number.prototype.toString),um=ct(Boolean.prototype.toString),Fo=typeof BigInt>"u"?null:ct(BigInt.prototype.toString),Oo=typeof Symbol>"u"?null:ct(Symbol.prototype.toString),jt=ct(Object.prototype.hasOwnProperty),Gn=ct(Object.prototype.toString),gt=ct(RegExp.prototype.test),_n=dm(TypeError);function ct(e){return function(n){n instanceof RegExp&&(n.lastIndex=0);for(var a=arguments.length,r=new Array(a>1?a-1:0),o=1;o<a;o++)r[o-1]=arguments[o];return Fa(e,n,r)}}function dm(e){return function(){for(var n=arguments.length,a=new Array(n),r=0;r<n;r++)a[r]=arguments[r];return Oa(e,a)}}function We(e,n){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:qn;if(Lo&&Lo(e,null),!Mn(n))return e;let r=n.length;for(;r--;){let o=n[r];if(typeof o=="string"){const i=a(o);i!==o&&(am(n)||(n[r]=i),o=i)}e[o]=!0}return e}function pm(e){for(let n=0;n<e.length;n++)jt(e,n)||(e[n]=null);return e}function Mt(e){const n=En(null);for(const r of Mo(e)){var a=tm(r,2);const o=a[0],i=a[1];jt(e,o)&&(Mn(i)?n[o]=pm(i):i&&typeof i=="object"&&i.constructor===Object?n[o]=Mt(i):n[o]=i)}return n}function hm(e){switch(typeof e){case"string":return e;case"number":return cm(e);case"boolean":return um(e);case"bigint":return Fo?Fo(e):"0";case"symbol":return Oo?Oo(e):"Symbol()";case"undefined":return Gn(e);case"function":case"object":{if(e===null)return Gn(e);const n=e,a=Vt(n,"toString");if(typeof a=="function"){const r=a(n);return typeof r=="string"?r:Gn(r)}return Gn(e)}default:return Gn(e)}}function Vt(e,n){for(;e!==null;){const r=om(e,n);if(r){if(r.get)return ct(r.get);if(typeof r.value=="function")return ct(r.value)}e=rm(e)}function a(){return null}return a}function mm(e){try{return gt(e,""),!0}catch{return!1}}const Ho=dt(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Va=dt(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),za=dt(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),fm=dt(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Wa=dt(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Cm=dt(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Vo=dt(["#text"]),zo=dt(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),qa=dt(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","pointer-events","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","vector-effect","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Wo=dt(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),ha=dt(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),gm=ht(/{{[\w\W]*|^[\w\W]*}}/g),bm=ht(/<%[\w\W]*|^[\w\W]*%>/g),ym=ht(/\${[\w\W]*/g),vm=ht(/^data-[\-\w.\u00B7-\uFFFF]+$/),xm=ht(/^aria-[\-\w]+$/),qo=ht(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),_m=ht(/^(?:\w+script|data):/i),wm=ht(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),km=ht(/^html$/i),Am=ht(/^[a-z][.\w]*(-[.\w]+)+$/i),Uo=ht(/<[/\w!]/g),Go=ht(/<[/\w]/g),Nm=ht(/<\/no(script|embed|frames)/i),Bm=ht(/\/>/i),Lt={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Ko=["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"],Sm=dt(We({},Ko)),Dm=(function(){const e={};return xn(Ko,n=>{e[n]=ht(new RegExp("</"+n+"(?=[\\t\\n\\f\\r />])","i"))}),dt(e)})(),Tm=function(){return typeof window>"u"?null:window},jm=function(n,a){if(typeof n!="object"||typeof n.createPolicy!="function")return null;let r=null;const o="data-tt-policy-suffix";a&&a.hasAttribute(o)&&(r=a.getAttribute(o));const i="dompurify"+(r?"#"+r:"");try{return n.createPolicy(i,{createHTML(l){return l},createScriptURL(l){return l}})}catch{return console.warn("TrustedTypes policy "+i+" could not be created."),null}},Yo=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},cn=function(n,a,r,o){return jt(n,a)&&Mn(n[a])?We(o.base?Mt(o.base):{},n[a],o.transform):r},Ua=function(n,a,r){const o=jt(n,a)?n[a]:void 0;return o&&typeof o=="object"?Mt(o):r()};function Zo(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Tm();const n=fe=>Zo(fe);if(n.version="3.4.14",n.removed=[],!e||!e.document||e.document.nodeType!==Lt.document||!e.Element)return n.isSupported=!1,n;let a=e.document;const r=a,o=r.currentScript;e.DocumentFragment;const i=e.HTMLTemplateElement,l=e.Node,c=e.Element,u=e.NodeFilter,d=e.NamedNodeMap;d===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;const p=e.DOMParser,h=e.trustedTypes,m=c.prototype,b=Vt(m,"cloneNode"),g=Vt(m,"remove"),f=Vt(m,"nextSibling"),C=Vt(m,"childNodes"),v=Vt(m,"parentNode"),x=Vt(m,"shadowRoot"),w=Vt(m,"attributes"),y=l&&l.prototype?Vt(l.prototype,"nodeType"):null,k=l&&l.prototype?Vt(l.prototype,"nodeName"):null,_=l&&l.prototype?Vt(l.prototype,"ownerDocument"):null,A=function(S){return y?y(S):S.nodeType},T=function(S){return k?k(S):S.nodeName};if(typeof i=="function"){const fe=a.createElement("template");fe.content&&fe.content.ownerDocument&&(a=fe.content.ownerDocument)}let N,D="",H,F=!1,B=0;const I=function(){if(B>0)throw _n('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},E=function(S){I(),B++;try{return N.createHTML(S)}finally{B--}},te=function(S){I(),B++;try{return N.createScriptURL(S)}finally{B--}},L=function(){return F||(H=jm(h,o),F=!0),H},O=a,ee=O.implementation,Y=O.createNodeIterator,K=O.createDocumentFragment,R=O.getElementsByTagName,j=r.importNode;let M=Yo();n.isSupported=typeof Mo=="function"&&typeof v=="function"&&ee&&ee.createHTMLDocument!==void 0;const V=gm,P=bm,$=ym,W=vm,se=xm,ae=_m,le=wm,he=Am;let ve=qo,Z=null;const ce=We({},[...Ho,...Va,...za,...Wa,...Vo]);let J=null;const ge=We({},[...zo,...qa,...Wo,...ha]);let we=Object.seal(En(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),de=null,Ce=null;const xe=Object.seal(En(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let je=!0,X=!0,pe=!1,Ne=!0,Me=!1,He=!0,Se=!1,Ie=!1,Le=null,Ke=null,qe=!1,ze=!1,be=!1,Fe=!1,De=!0,Pe=!1;const Ae="user-content-";let ot=!0,lt=!1,Ue={},Ge=null;const pt=We({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let Oe=null;const Xe=We({},["audio","video","img","source","image","track"]);let tt=null;const Te=We({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ye="http://www.w3.org/1998/Math/MathML",Et="http://www.w3.org/2000/svg",ut="http://www.w3.org/1999/xhtml";let st=ut,bt=!1,Kt=null;const bn=We({},[Ye,Et,ut],Ha),Ct=dt(["mi","mo","mn","ms","mtext"]);let kt=We({},Ct);const $t=dt(["annotation-xml"]);let At=We({},$t);const yn=We({},["title","style","font","a","script"]);let Ot=null;const on=["application/xhtml+xml","text/html"],vn="text/html";let Ze=null,Nt=null;const yt=a.createElement("form"),Yt=function(S){return S instanceof RegExp||S instanceof Function},Zt=function(){let S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Nt&&Nt===S)return;(!S||typeof S!="object")&&(S={}),S=Mt(S),Ot=on.indexOf(S.PARSER_MEDIA_TYPE)===-1?vn:S.PARSER_MEDIA_TYPE,Ze=Ot==="application/xhtml+xml"?Ha:qn,Z=cn(S,"ALLOWED_TAGS",ce,{transform:Ze}),J=cn(S,"ALLOWED_ATTR",ge,{transform:Ze}),Kt=cn(S,"ALLOWED_NAMESPACES",bn,{transform:Ha}),tt=cn(S,"ADD_URI_SAFE_ATTR",Te,{transform:Ze,base:Te}),Oe=cn(S,"ADD_DATA_URI_TAGS",Xe,{transform:Ze,base:Xe}),Ge=cn(S,"FORBID_CONTENTS",pt,{transform:Ze}),de=cn(S,"FORBID_TAGS",Mt({}),{transform:Ze}),Ce=cn(S,"FORBID_ATTR",Mt({}),{transform:Ze}),Ue=jt(S,"USE_PROFILES")?S.USE_PROFILES&&typeof S.USE_PROFILES=="object"?Mt(S.USE_PROFILES):S.USE_PROFILES:!1,je=S.ALLOW_ARIA_ATTR!==!1,X=S.ALLOW_DATA_ATTR!==!1,pe=S.ALLOW_UNKNOWN_PROTOCOLS||!1,Ne=S.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Me=S.SAFE_FOR_TEMPLATES||!1,He=S.SAFE_FOR_XML!==!1,Se=S.WHOLE_DOCUMENT||!1,ze=S.RETURN_DOM||!1,be=S.RETURN_DOM_FRAGMENT||!1,Fe=S.RETURN_TRUSTED_TYPE||!1,qe=S.FORCE_BODY||!1,De=S.SANITIZE_DOM!==!1,Pe=S.SANITIZE_NAMED_PROPS||!1,ot=S.KEEP_CONTENT!==!1,lt=S.IN_PLACE||!1,ve=mm(S.ALLOWED_URI_REGEXP)?S.ALLOWED_URI_REGEXP:qo,st=typeof S.NAMESPACE=="string"?S.NAMESPACE:ut,kt=Ua(S,"MATHML_TEXT_INTEGRATION_POINTS",()=>We({},Ct)),At=Ua(S,"HTML_INTEGRATION_POINTS",()=>We({},$t));const q=Ua(S,"CUSTOM_ELEMENT_HANDLING",()=>En(null));if(we=En(null),jt(q,"tagNameCheck")&&Yt(q.tagNameCheck)&&(we.tagNameCheck=q.tagNameCheck),jt(q,"attributeNameCheck")&&Yt(q.attributeNameCheck)&&(we.attributeNameCheck=q.attributeNameCheck),jt(q,"allowCustomizedBuiltInElements")&&typeof q.allowCustomizedBuiltInElements=="boolean"&&(we.allowCustomizedBuiltInElements=q.allowCustomizedBuiltInElements),ht(we),Me&&(X=!1),be&&(ze=!0),Ue&&(Z=We({},Vo),J=En(null),Ue.html===!0&&(We(Z,Ho),We(J,zo)),Ue.svg===!0&&(We(Z,Va),We(J,qa),We(J,ha)),Ue.svgFilters===!0&&(We(Z,za),We(J,qa),We(J,ha)),Ue.mathMl===!0&&(We(Z,Wa),We(J,Wo),We(J,ha))),xe.tagCheck=null,xe.attributeCheck=null,jt(S,"ADD_TAGS")&&(typeof S.ADD_TAGS=="function"?xe.tagCheck=S.ADD_TAGS:Mn(S.ADD_TAGS)&&(Z===ce&&(Z=Mt(Z)),We(Z,S.ADD_TAGS,Ze))),jt(S,"ADD_ATTR")&&(typeof S.ADD_ATTR=="function"?xe.attributeCheck=S.ADD_ATTR:Mn(S.ADD_ATTR)&&(J===ge&&(J=Mt(J)),We(J,S.ADD_ATTR,Ze))),jt(S,"ADD_FORBID_CONTENTS")&&Mn(S.ADD_FORBID_CONTENTS)&&(Ge===pt&&(Ge=Mt(Ge)),We(Ge,S.ADD_FORBID_CONTENTS,Ze)),ot&&(Z["#text"]=!0),Se&&We(Z,["html","head","body"]),Z.table&&(We(Z,["tbody"]),delete de.tbody),S.TRUSTED_TYPES_POLICY){if(typeof S.TRUSTED_TYPES_POLICY.createHTML!="function")throw _n('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof S.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw _n('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const ue=N;N=S.TRUSTED_TYPES_POLICY;try{D=E("")}catch(_e){throw N=ue,_e}}else S.TRUSTED_TYPES_POLICY===null?(N=void 0,D=""):(N===void 0&&(N=L()),N&&typeof D=="string"&&(D=E("")));dt&&dt(S),Nt=S},Rt=We({},[...Va,...za,...fm]),Ht=We({},[...Wa,...Cm]),sn=function(S,q,ue){return q.namespaceURI===ut?S==="svg":q.namespaceURI===Ye?S==="svg"&&(ue==="annotation-xml"||kt[ue]):!!Rt[S]},Pt=function(S,q,ue){return q.namespaceURI===ut?S==="math":q.namespaceURI===Et?S==="math"&&At[ue]:!!Ht[S]},Xt=function(S,q,ue){return q.namespaceURI===Et&&!At[ue]||q.namespaceURI===Ye&&!kt[ue]?!1:!Ht[S]&&(yn[S]||!Rt[S])},ln=function(S){let q=v(S);(!q||!q.tagName)&&(q={namespaceURI:st,tagName:"template"});const ue=qn(S.tagName),_e=qn(q.tagName);return Kt[S.namespaceURI]?S.namespaceURI===Et?sn(ue,q,_e):S.namespaceURI===Ye?Pt(ue,q,_e):S.namespaceURI===ut?Xt(ue,q,_e):!!(Ot==="application/xhtml+xml"&&Kt[S.namespaceURI]):!1},vt=function(S){Wn(n.removed,{element:S});try{v(S).removeChild(S)}catch{if(g(S),!v(S))throw _n("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},oe=function(S,q,ue){try{S.removeAttributeNode(q)}catch{try{S.removeAttribute(ue)}catch{}}},z=function(S){U(S);const q=C(S);if(q){const _e=[];xn(q,Be=>{Wn(_e,Be)}),xn(_e,Be=>{try{g(Be)}catch{}})}const ue=w(S);if(ue)for(let _e=ue.length-1;_e>=0;--_e){const Be=ue[_e],Re=Be&&Be.name;typeof Re=="string"&&oe(S,Be,Re)}},Q=function(S,q,ue){if(!ue)try{ue=q.getAttributeNode(S)}catch{ue=null}Wn(n.removed,{attribute:ue||null,from:q});try{ue?q.removeAttributeNode(ue):q.removeAttribute(S)}catch{try{q.removeAttribute(S)}catch{}}if(S==="is")if(ze||be)try{vt(q)}catch{}else try{q.setAttribute(S,"")}catch{}},ne=function(S){const q=w(S);if(q)for(let ue=q.length-1;ue>=0;--ue){const _e=q[ue],Be=_e&&_e.name;typeof Be!="string"||J[Ze(Be)]||oe(S,_e,Be)}},U=function(S){const q=[S];for(;q.length>0;){const ue=q.pop();A(ue)===Lt.element&&ne(ue);const Be=C(ue);if(Be)for(let Re=Be.length-1;Re>=0;--Re)q.push(Be[Re])}},re=function(S,q){return He?S==="patchsrc"?!0:S==="for"&&q!=="label"&&q!=="output":!1},ke=function(S){if(!He)return;const q=[S];for(;q.length>0;){const ue=q.pop(),_e=A(ue);if(_e===Lt.processingInstruction||_e===Lt.comment&&gt(Go,ue.data)){try{g(ue)}catch{}continue}if(_e===Lt.element){const Re=ue,Je=Ze(T(ue));try{Re.hasAttribute&&Re.hasAttribute("patchsrc")&&Re.removeAttribute("patchsrc"),Re.hasAttribute&&Re.hasAttribute("for")&&re("for",Je)&&Re.removeAttribute("for")}catch{}}const Be=C(ue);if(Be)for(let Re=Be.length-1;Re>=0;--Re)q.push(Be[Re])}},$e=function(S){let q=null,ue=null;if(qe)S="<remove></remove>"+S;else{const Re=Po(S,/^[\r\n\t ]+/);ue=Re&&Re[0]}Ot==="application/xhtml+xml"&&st===ut&&(S='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+S+"</body></html>");const _e=N?E(S):S;if(st===ut)try{q=new p().parseFromString(_e,Ot)}catch{}if(!q||!q.documentElement){q=ee.createDocument(st,"template",null);try{q.documentElement.innerHTML=bt?D:_e}catch{}}const Be=q.body||q.documentElement;return S&&ue&&Be.insertBefore(a.createTextNode(ue),Be.childNodes[0]||null),st===ut?R.call(q,Se?"html":"body")[0]:Se?q.documentElement:Be},Ee=function(S){const q=_?_(S):S.ownerDocument;return Y.call(q||S,S,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},nt=function(S){return S=Un(S,V," "),S=Un(S,P," "),S=Un(S,$," "),S},mt=function(S){var q;S.normalize();const ue=_?_(S):S.ownerDocument,_e=Y.call(ue||S,S,u.SHOW_TEXT|u.SHOW_COMMENT|u.SHOW_CDATA_SECTION|u.SHOW_PROCESSING_INSTRUCTION,null);let Be=_e.nextNode();for(;Be;)Be.data=nt(Be.data),Be=_e.nextNode();const Re=(q=S.querySelectorAll)===null||q===void 0?void 0:q.call(S,"template");Re&&xn(Re,Je=>{it(Je.content)&&mt(Je.content)})},Qe=function(S){const q=k?k(S):null;return typeof q!="string"||Ze(q)!=="form"?!1:typeof S.nodeName!="string"||typeof S.textContent!="string"||typeof S.removeChild!="function"||S.attributes!==w(S)||typeof S.removeAttribute!="function"||typeof S.setAttribute!="function"||typeof S.namespaceURI!="string"||typeof S.insertBefore!="function"||typeof S.hasChildNodes!="function"||S.nodeType!==y(S)||S.childNodes!==C(S)},it=function(S){if(!y||typeof S!="object"||S===null)return!1;try{return y(S)===Lt.documentFragment}catch{return!1}},Bt=function(S){if(!y||typeof S!="object"||S===null)return!1;try{return typeof y(S)=="number"}catch{return!1}};function It(fe,S,q){fe.length!==0&&xn(fe,ue=>{ue.call(n,S,q,Nt)})}const hc=function(S,q){return!!(He&&S.hasChildNodes()&&!Bt(S.firstElementChild)&&gt(Uo,S.textContent)&&gt(Uo,S.innerHTML)||He&&S.namespaceURI===ut&&Sm[q]&&(Bt(S.firstElementChild)||typeof S.textContent=="string"&&gt(Dm[q],S.textContent))||S.nodeType===Lt.processingInstruction||He&&S.nodeType===Lt.comment&&gt(Go,S.data))},da=function(S,q){if(S instanceof RegExp)return gt(S,q);if(S instanceof Function){for(var ue=arguments.length,_e=new Array(ue>2?ue-2:0),Be=2;Be<ue;Be++)_e[Be-2]=arguments[Be];return!!S(q,..._e)}return!1},mc=function(S,q,ue){if(!de[q]&&so(q)&&da(we.tagNameCheck,q))return!1;if(ot&&!Ge[q]){const _e=v(S),Be=C(S);if(Be&&_e){const Re=Be.length;for(let Je=Re-1;Je>=0;--Je){const et=S===ue?b(Be[Je],!0):Be[Je];_e.insertBefore(et,f(S))}}}return vt(S),!0},no=function(S,q,ue,_e){return S.length===0?q:q===ue||q===_e?Mt(q):q},ao=function(S,q){return S===q||v(S)!==null?!1:(lt&&U(S),!0)},ro=function(S,q){if(It(M.beforeSanitizeElements,S,null),ao(S,q))return!0;if(Qe(S))return vt(S),!0;const ue=Ze(T(S));if(Z=no(M.uponSanitizeElement,Z,ce,Le),It(M.uponSanitizeElement,S,{tagName:ue,allowedTags:Z}),ao(S,q))return!0;if(hc(S,ue))return vt(S),!0;if(de[ue]||!(xe.tagCheck instanceof Function&&xe.tagCheck(ue))&&!Z[ue]){const Be=mc(S,ue,q);return Be===!1&&It(M.afterSanitizeElements,S,null),Be}if(A(S)===Lt.element&&!ln(S)||(ue==="noscript"||ue==="noembed"||ue==="noframes")&&gt(Nm,S.innerHTML))return vt(S),!0;if(Me&&S.nodeType===Lt.text){const Be=nt(S.textContent);S.textContent!==Be&&(Wn(n.removed,{element:S.cloneNode()}),S.textContent=Be)}return It(M.afterSanitizeElements,S,null),!1},oo=function(S,q,ue){if(Ce[q]||re(q,S)||De&&(q==="id"||q==="name")&&(ue in a||ue in yt))return!1;const _e=J[q]||xe.attributeCheck instanceof Function&&xe.attributeCheck(q,S);return X&&gt(W,q)||je&&gt(se,q)?!0:_e?tt[q]||gt(ve,Un(ue,le,""))||(q==="src"||q==="xlink:href"||q==="href")&&S!=="script"&&Io(ue,"data:")===0&&Oe[S]||pe&&!gt(ae,Un(ue,le,""))?!0:!ue:so(S)&&da(we.tagNameCheck,S)&&da(we.attributeNameCheck,q,S)||q==="is"&&we.allowCustomizedBuiltInElements&&da(we.tagNameCheck,ue)},fc=We({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),so=function(S){return!fc[qn(S)]&&gt(he,S)},Cc=function(S,q,ue,_e){if(N&&typeof h=="object"&&typeof h.getAttributeType=="function"&&!ue)switch(h.getAttributeType(S,q)){case"TrustedHTML":return E(_e);case"TrustedScriptURL":return te(_e)}return _e},gc=function(S,q,ue,_e){try{ue?S.setAttributeNS(ue,q,_e):S.setAttribute(q,_e),Qe(S)?vt(S):Ro(n.removed)}catch{Q(q,S)}},io=function(S){It(M.beforeSanitizeAttributes,S,null);const q=S.attributes;if(!q||Qe(S))return;J=no(M.uponSanitizeAttribute,J,ge,Ke);const ue={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:J,forceKeepAttr:void 0};let _e=q.length;const Be=Ze(S.nodeName);for(;_e--;){const Re=q[_e],Je=Re.name,et=Re.namespaceURI,St=Re.value,Dt=Ze(Je),Ra=St;let xt=Je==="value"?Ra:lm(Ra);if(ue.attrName=Dt,ue.attrValue=xt,ue.keepAttr=!0,ue.forceKeepAttr=void 0,It(M.uponSanitizeAttribute,S,ue),xt=ue.attrValue,Pe&&(Dt==="id"||Dt==="name")&&Io(xt,Ae)!==0&&(Q(Je,S,Re),xt=Ae+xt),He&&gt(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,xt)){Q(Je,S,Re);continue}if(Dt==="attributename"&&Po(xt,"href")){Q(Je,S,Re);continue}if(!ue.forceKeepAttr){if(!ue.keepAttr){Q(Je,S,Re);continue}if(!Ne&&gt(Bm,xt)){Q(Je,S,Re);continue}if(Me&&(xt=nt(xt)),!oo(Be,Dt,xt)){Q(Je,S,Re);continue}xt=Cc(Be,Dt,et,xt),xt!==Ra&&gc(S,Je,et,xt)}}It(M.afterSanitizeAttributes,S,null)},pa=function(S){let q=null;const ue=Ee(S);for(It(M.beforeSanitizeShadowDOM,S,null);q=ue.nextNode();)if(It(M.uponSanitizeShadowNode,q,null),ro(q,S),io(q),it(q.content)&&pa(q.content),A(q)===Lt.element){const _e=x(q);it(_e)&&($a(_e),pa(_e))}It(M.afterSanitizeShadowDOM,S,null)},$a=function(S){const q=[{node:S,shadow:null}];for(;q.length>0;){const ue=q.pop();if(ue.shadow){pa(ue.shadow);continue}const _e=ue.node,Re=A(_e)===Lt.element,Je=C(_e);if(Je)for(let et=Je.length-1;et>=0;--et)q.push({node:Je[et],shadow:null});if(Re){const et=k?k(_e):null;if(typeof et=="string"&&Ze(et)==="template"){const St=_e.content;it(St)&&q.push({node:St,shadow:null})}}if(Re){const et=x(_e);it(et)&&q.push({node:null,shadow:et},{node:et,shadow:null})}}};return n.sanitize=function(fe){let S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},q=null,ue=null,_e=null,Be=null;if(bt=!fe,bt&&(fe="<!-->"),typeof fe!="string"&&!Bt(fe)&&(fe=hm(fe),typeof fe!="string"))throw _n("dirty is not a string, aborting");if(!n.isSupported)return fe;Ie?(Z=Le,J=Ke):Zt(S),(M.uponSanitizeElement.length>0||M.uponSanitizeAttribute.length>0)&&(Z=Mt(Z)),M.uponSanitizeAttribute.length>0&&(J=Mt(J)),n.removed=[];const Re=lt&&typeof fe!="string"&&Bt(fe);if(Re){ke(fe);const St=T(fe);if(typeof St=="string"){const Dt=Ze(St);if(!Z[Dt]||de[Dt])throw z(fe),_n("root node is forbidden and cannot be sanitized in-place")}if(Qe(fe))throw z(fe),_n("root node is clobbered and cannot be sanitized in-place");try{$a(fe)}catch(Dt){throw z(fe),Dt}}else if(Bt(fe))q=$e("<!---->"),ue=q.ownerDocument.importNode(fe,!0),ue.nodeType===Lt.element&&ue.nodeName==="BODY"||ue.nodeName==="HTML"?q=ue:q.appendChild(ue),$a(ue);else{if(!ze&&!Me&&!Se&&fe.indexOf("<")===-1)return N&&Fe?E(fe):fe;if(q=$e(fe),!q)return ze?null:Fe?D:""}q&&qe&&vt(q.firstChild);const Je=Re?fe:q;try{const St=Ee(Je);for(;_e=St.nextNode();)ro(_e,Je),io(_e),it(_e.content)&&pa(_e.content)}catch(St){throw Re&&(z(fe),xn(n.removed,Dt=>{Dt.element&&U(Dt.element)})),St}if(Re)return xn(n.removed,St=>{St.element&&U(St.element)}),Me&&mt(fe),fe;if(ze){if(Me&&mt(q),be)for(Be=K.call(q.ownerDocument);q.firstChild;)Be.appendChild(q.firstChild);else Be=q;return(J.shadowroot||J.shadowrootmode)&&(Be=j.call(r,Be,!0)),Be}let et=Se?q.outerHTML:q.innerHTML;return Se&&Z["!doctype"]&&q.ownerDocument&&q.ownerDocument.doctype&&q.ownerDocument.doctype.name&&gt(km,q.ownerDocument.doctype.name)&&(et="<!DOCTYPE "+q.ownerDocument.doctype.name+`>
808
+ `+et),Me&&(et=nt(et)),N&&Fe?E(et):et},n.setConfig=function(){let fe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Zt(fe),Ie=!0,Le=Z,Ke=J},n.clearConfig=function(){Nt=null,Ie=!1,Le=null,Ke=null,N=H,D=""},n.isValidAttribute=function(fe,S,q){Nt||Zt({});const ue=Ze(fe),_e=Ze(S);return oo(ue,_e,q)},n.addHook=function(fe,S){typeof S=="function"&&jt(M,fe)&&Wn(M[fe],S)},n.removeHook=function(fe,S){if(jt(M,fe)){if(S!==void 0){const q=sm(M[fe],S);return q===-1?void 0:im(M[fe],q,1)[0]}return Ro(M[fe])}},n.removeHooks=function(fe){jt(M,fe)&&(M[fe]=[])},n.removeAllHooks=function(){M=Yo()},n}var Em=Zo();const Mm=/^(?:[a-z]+:)?\/\//i,Lm="__ihab_core_asset_base_url__";function $m(){return globalThis[Lm]??""}function Ga(e){const n=String(e||"").trim();if(!n)return"";if(Mm.test(n)||n.startsWith("data:")||n.startsWith("blob:"))return n;const a=n.startsWith("/")?n:`/${n}`,r=$m();return r?`${r}${a}`:a}const Xo="__ihab_core_storage_resolvers__";function Kn(){return globalThis[Xo]??null}function Rm(e){globalThis[Xo]=e}let Jo=class extends Error{constructor(n){super(`
809
809
  [ihabdevteam-core] ${n}() \uD638\uCD9C \uC2E4\uD328 \u2014 configureStorage()\uAC00 \uC124\uC815\uB418\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4.
810
810
 
811
811
  \uC571 \uCD08\uAE30\uD654 \uC2DC\uC810(main.tsx \uB4F1)\uC5D0 \uC544\uB798\uC640 \uAC19\uC774 \uD55C \uBC88 \uD638\uCD9C\uD558\uC138\uC694:
@@ -824,24 +824,24 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
824
824
  \uC124\uCE58 \uBA85\uB839\uC5B4 (\uC2A4\uD1A0\uB9AC\uC9C0 SDK \uBBF8\uC124\uCE58 \uC2DC):
825
825
  npm install @supabase/supabase-js
826
826
  pnpm add @supabase/supabase-js
827
- `),this.name="StorageNotConfiguredError"}};function Dm(e){Bm(e)}function Zo(e,n){if(!e)return null;const a=Kn();return a?.resolvePath?a.resolvePath(e,n):n?`${n}/${e}.mp3`:null}async function Xo(e){if(!e)return null;const n=Kn();if(!n)throw new Yo("getSignedOrPublicUrl");try{return await n.resolveUrl(e)}catch{return null}}async function Jo(e){const n=Kn();if(!n)throw new Yo("downloadSound");return n.download(e)}function Sm(){return Kn()?.noiseBaseUrl??"/sounds/noise"}function Qo(){const e=Number(Kn()?.noiseFileGain);return Number.isFinite(e)&&e>0?e:1}const es="__ihab_core_tts_config__";function Ka(){return globalThis[es]?.urlResolver??null}function jm(){return globalThis[es]?.fallbackUrlResolver??null}const Tm="__ihab_core_pronunciation_resolver__";function Em(){return globalThis[Tm]??null}let un=null;const Yn=new WeakMap,Ya=new WeakMap,Za=new WeakMap;let ts=!1;const ns=e=>Math.max(0,Math.min(1,Number.isFinite(e)?e:0));function Mm(){if(ts||typeof document>"u")return;ts=!0;const e=()=>{try{un&&un.state!=="running"&&un.resume()}catch{}};for(const n of["pointerdown","touchend","keydown"])document.addEventListener(n,e,{capture:!0,passive:!0})}function as(){if(un)return un;try{const e=window.AudioContext||window.webkitAudioContext;return e?(un=new e,Mm(),un):null}catch{return null}}function Xa(){try{un?.resume()}catch{}}function Ja(e,n){const a=Yn.get(n);if(a)return a;try{const r=e.createMediaElementSource(n),o=e.createGain(),s=e.createAnalyser();s.fftSize=1024,s.smoothingTimeConstant=.6,o.gain.value=ns(Ya.get(n)??n.volume),r.connect(o),o.connect(s),o.connect(e.destination);try{n.volume=1}catch{}const l={gain:o,analyser:s};return Yn.set(n,l),l}catch{return null}}function ma(e){if(!e)return Promise.resolve(null);const n=Yn.get(e);if(n)return Promise.resolve(n.analyser);const a=as();if(!a)return Promise.resolve(null);if(a.state==="running")return Promise.resolve(Ja(a,e)?.analyser??null);const r=Za.get(e);if(r)return r;const o=Promise.resolve().then(()=>a.resume()).then(()=>a.state==="running"?Ja(a,e)?.analyser??null:null).catch(()=>null).finally(()=>{Za.delete(e)});return Za.set(e,o),o}function Lm(e){if(!e)return null;const n=Yn.get(e);if(n)return n.analyser;const a=as();return a?a.state==="running"?Ja(a,e)?.analyser??null:(ma(e),null):null}function dn(e,n){const a=ns(n);Ya.set(e,a);const r=Yn.get(e);if(r){try{e.volume!==1&&(e.volume=1)}catch{}const o=r.gain.gain;try{const s=r.gain.context.currentTime;o.cancelScheduledValues(s),o.setTargetAtTime(a,s,.01)}catch{try{o.value=a}catch{}}return"gain"}try{e.volume=a}catch{}return"element"}function fa(e){return Ya.get(e)??e.volume}function $m(e,n){e.getFloatTimeDomainData(n);let a=0;for(let r=0;r<n.length;r++){const o=n[r];a+=o*o}return Math.sqrt(a/n.length)}const Rm="__ihab_core_image_config__";function Mn(){return globalThis[Rm]??null}const rs="word_image_existence_map_v1";let _n=null;const Ca=new Map;function Pm(){if(_n)return _n;try{const e=typeof localStorage<"u"?localStorage.getItem(rs):null;_n=e?JSON.parse(e):{}}catch{_n={}}return _n}let Qa=null;function Im(){Qa||(Qa=setTimeout(()=>{Qa=null;try{typeof localStorage<"u"&&_n&&localStorage.setItem(rs,JSON.stringify(_n))}catch{}},200))}function Fm(e,n){return`${e}_${n??1}`}async function os(e,n){const a=Pm(),r=Fm(e,n);if(r in a)return a[r];if(Ca.has(r))return Ca.get(r);const o=Mn();if(!o)return!1;const s=o(e,n);if(!s)return!1;const l=fetch(s,{method:"HEAD",signal:AbortSignal.timeout(8e3)}).then(c=>c.status>=500?null:c.ok,()=>null).then(c=>(Ca.delete(r),c===null?!1:(a[r]=c,Im(),c)));return Ca.set(r,l),l}const ss=["\u3131","\u3132","\u3134","\u3137","\u3138","\u3139","\u3141","\u3142","\u3143","\u3145","\u3146","\u3147","\u3148","\u3149","\u314A","\u314B","\u314C","\u314D","\u314E"],is=["\u314F","\u3150","\u3151","\u3152","\u3153","\u3154","\u3155","\u3156","\u3157","\u3158","\u3159","\u315A","\u315B","\u315C","\u315D","\u315E","\u315F","\u3160","\u3161","\u3162","\u3163"],Om=["","\u3131","\u3132","\u3133","\u3134","\u3135","\u3136","\u3137","\u3139","\u313A","\u313B","\u313C","\u313D","\u313E","\u313F","\u3140","\u3141","\u3142","\u3144","\u3145","\u3146","\u3147","\u3148","\u314A","\u314B","\u314C","\u314D","\u314E"];function Zn(e){if(!e)return null;const n=e.charCodeAt(0)-44032;return n<0||n>=11172?null:{cho:Math.floor(n/588),jung:Math.floor(n%588/28),jong:n%28}}function Hm(e){const n=Zn(e[0]||"");return n?ss[n.cho]:""}function Vm(e,n){if(!n)return!0;const a=[...n],r=c=>ss.includes(c),o=c=>is.includes(c),s=a.map(c=>r(c)?"cho":o(c)?"jung":Zn(c)?"syl":"other");if(s.includes("other"))return e.toLowerCase().includes(n.toLowerCase());const l=[...e];for(let c=0;c+a.length<=l.length;c++){let u=!0;for(let d=0;d<a.length;d++){const p=l[c+d],h=s[d];if(h==="cho"){if(Hm(p)!==a[d]){u=!1;break}}else if(h==="jung"){const m=Zn(p);if(!m||is[m.jung]!==a[d]){u=!1;break}}else{const m=Zn(a[d]);if(m&&m.jong===0){const b=Zn(p);if(!b||b.cho!==m.cho||b.jung!==m.jung){u=!1;break}}else if(p!==a[d]){u=!1;break}}}if(u)return!0}return!1}const zm={3:["\u3131","\u3145"],5:["\u3134","\u3148"],6:["\u3134","\u314E"],9:["\u3139","\u3131"],10:["\u3139","\u3141"],11:["\u3139","\u3142"],12:["\u3139","\u3145"],13:["\u3139","\u314C"],14:["\u3139","\u314D"],15:["\u3139","\u314E"],18:["\u3142","\u3145"]};Object.fromEntries(Object.entries(zm).map(([e,n])=>[n.join(""),Om[Number(e)]]));const Wm="word_pair_index_v2",qm="word_pair_index_sig_v2";let ga=null;function Um(){try{if(typeof localStorage>"u")return null;const e=localStorage.getItem(Wm),n=localStorage.getItem(qm);return!e||!n?null:{index:JSON.parse(e),sig:n}}catch{return null}}function Gm(){if(ga)return ga;const e=Um();return e?(ga=e.index,e.sig,ga):null}const Km={\u314F:{nucleus:"\u314F"},\u3151:{glide:"j",nucleus:"\u314F"},\u3153:{nucleus:"\u3153"},\u3155:{glide:"j",nucleus:"\u3153"},\u3157:{nucleus:"\u3157"},\u315B:{glide:"j",nucleus:"\u3157"},\u315C:{nucleus:"\u315C"},\u3160:{glide:"j",nucleus:"\u315C"},\u3161:{nucleus:"\u3161"},\u3163:{nucleus:"\u3163"},\u3150:{nucleus:"\u3154/\u3150"},\u3152:{glide:"j",nucleus:"\u3154/\u3150"},\u3154:{nucleus:"\u3154/\u3150"},\u3156:{glide:"j",nucleus:"\u3154/\u3150"},\u3158:{glide:"w",nucleus:"\u314F"},\u3159:{glide:"w",nucleus:"\u3154/\u3150"},\u315A:{glide:"w",nucleus:"\u3154/\u3150"},\u315D:{glide:"w",nucleus:"\u3153"},\u315E:{glide:"w",nucleus:"\u3154/\u3150"},\u315F:{glide:"w",nucleus:"\u3163"},\u3162:{glide:"\u0270",nucleus:"\u3163"}},er=/[ㄱ-ㅎ]/,Ym=/[ㅏ-ㅣ]/;function ls(e){for(let n=e.length-1;n>=0;n--){const a=e[n],r=a.charCodeAt(0);if(r>=44032&&r<=55203||er.test(a)||Ym.test(a))return a}return null}function Zm(e){const n=ls(e);if(!n)return"\uAC00";const a=n.charCodeAt(0);return a>=44032&&a<=55203?(a-44032)%28!==0?"\uC774":"\uAC00":er.test(n)?"\uC774":"\uAC00"}function Xm(e){return`${e}${Zm(e)}`}function Jm(e){const n=ls(e);if(!n)return"\uB97C";const a=n.charCodeAt(0);return a>=44032&&a<=55203?(a-44032)%28!==0?"\uC744":"\uB97C":er.test(n)?"\uC744":"\uB97C"}function Qm(e){return`${e}${Jm(e)}`}function e0(e,n,a){const r=e.slice(),[o]=r.splice(n,1);return r.splice(a,0,o),r}function Xn(e,n=Math.random){const a=e.slice();for(let r=a.length-1;r>0;r--){const o=Math.floor(n()*(r+1));[a[r],a[o]]=[a[o],a[r]]}return a}const t0=()=>{const e="\uC54C \uC218 \uC5C6\uB294 \uC624\uB958",n=typeof It?.t=="function"?It.t("common.unknownError",{defaultValue:e}):void 0;return typeof n=="string"&&n?n:e};function cs(e,n){if(n===void 0&&(n=t0()),e instanceof Error)return e.message||n;if(typeof e=="string")return e||n;if(e&&typeof e=="object"){const a=e;for(const r of[a.message,a.error_description,a.error])if(typeof r=="string"&&r)return r}return n}const n0="__ihab_core_word_pool__";function a0(){return globalThis[n0]??null}const us=globalThis;function ds(e,n){const a=r=>{};try{const r=n();r&&typeof r.catch=="function"&&r.catch(a)}catch(r){a(r)}}function r0(e){ds("time",()=>us.__ihabTrainingTimeLogger?.(e))}function o0(e){ds("completion",()=>us.__ihabTrainingCompletionLogger?.(e))}function zt(e){return typeof e=="string"?e.trim()||null:typeof e=="number"?String(e):null}function s0(e){for(const n of["correct","isCorrect","heard","judgement"])if(typeof e[n]=="boolean")return e[n];return e.score===1?!0:e.score===0?!1:null}function i0(e){return Array.isArray(e)?e.map((n,a)=>{const r=n??{};return{index:a,itemId:zt(r.contextCode)??zt(r.itemId)??zt(r.itemCode)??zt(r.id),question:zt(r.question)??zt(r.sentence)??zt(r.word)??zt(r.targetSyllable),answer:zt(r.answer),selected:zt(r.selectedText)??zt(r.selected),correct:s0(r)}}):[]}const tr=globalThis;async function l0(){try{return await tr.__ihabNoiseSettingsStore?.load()??null}catch{return null}}function ps(e){const n=a=>{};try{const a=tr.__ihabNoiseSettingsStore?.save(e);a&&typeof a.catch=="function"&&a.catch(n)}catch(a){n(a)}}function ba(e){try{tr.__ihabNoiseSettingsStore?.applied?.(e)}catch{}}async function c0(e){if(typeof document<"u"){const n=document.activeElement;let a=null;try{if(a=document.createElement("textarea"),a.value=e,a.setAttribute("readonly",""),a.style.position="fixed",a.style.top="0",a.style.left="0",a.style.opacity="0",a.style.pointerEvents="none",document.body.appendChild(a),a.focus(),a.select(),a.setSelectionRange(0,e.length),document.execCommand("copy"))return!0}catch{}finally{if(a?.parentNode&&a.parentNode.removeChild(a),n&&n!==document.activeElement&&typeof n.focus=="function"&&n.isConnected)try{n.focus({preventScroll:!0})}catch{}}}try{if(typeof navigator<"u"&&navigator.clipboard&&typeof navigator.clipboard.writeText=="function")return await navigator.clipboard.writeText(e),!0}catch{}return!1}function u0(){return nr(new Date)}function nr(e){if(e==null||e==="")return"";const n=e instanceof Date?e:new Date(e);return isNaN(n.getTime())?"":new Intl.DateTimeFormat("fr-CA",{timeZone:"Asia/Seoul"}).format(n)}function hs(e,n){if(!e)return"";const a=new Date(e).getTime();if(Number.isNaN(a))return"";const r=Math.max(0,Math.floor((Date.now()-a)/1e3)),o=Math.floor(r/60),s=Math.floor(o/60),l=Math.floor(s/24),c=Math.floor(l/7),u=Math.floor(l/30),d=Math.floor(l/365);return o<1?n("store.time.justNow","\uBC29\uAE08 \uC804"):o<60?n("store.time.minutesAgo",{n:o}):s<24?n("store.time.hoursAgo",{n:s}):l<7?n("store.time.daysAgo",{n:l}):c<5?n("store.time.weeksAgo",{n:c}):l<365?n("store.time.monthsAgo",{n:Math.min(u,11)}):n("store.time.yearsAgo",{n:d})}function ms(e,n={}){const{sep:a=".",pad:r=!0,trailingDot:o=!1,fallback:s="\u2014"}=n;if(!e)return s;const l=nr(e instanceof Date?e:String(e));if(!l)return s;const[c,u,d]=l.split("-"),p=r?u:String(Number(u)),h=r?d:String(Number(d));return`${c}${a}${p}${a}${h}${o?".":""}`}function Jn(e){if(!e)return e;const n=e.trim();return/^[₩$]/.test(n)?n:/원\s*$/.test(n)?"\u20A9"+n.replace(/\s*원\s*$/,"").trim():n}function fs(e,n){if(!e)return"-";const a=/^(\d{1,2}):(\d{2})$/.exec(e.trim());if(!a)return e;const r=Number(a[1]),o=Number(a[2]),s=a[1].padStart(2,"0");return o===0?n("date.timeH",{h:r,hh:s,mm:a[2]}):n("date.timeHM",{h:r,hh:s,m:o,mm:a[2]})}function ar(e){return(e??0).toLocaleString("ko-KR")}const d0=[{key:"FOOD",label:"\uC74C\uC2DD",icon:"salad",color:"#FF8A65",subs:[{key:"TRKRFD",label:"\uD55C\uAD6D \uC804\uD1B5\uC74C\uC2DD"},{key:"MDKRFD",label:"\uD55C\uAD6D \uD604\uB300\uC74C\uC2DD"},{key:"WRLDFD",label:"\uC138\uACC4\uC758 \uC74C\uC2DD"},{key:"MTRFRT",label:"\uC2DD\uC7AC\uB8CC\uC640 \uACFC\uC77C"},{key:"GEFDKL",label:"\uC74C\uC2DD \uC0C1\uC2DD"}]},{key:"HLTH",label:"\uAC74\uAC15",icon:"heart",color:"#66BB6A",subs:[{key:"HTETHB",label:"\uAC74\uAC15\uD55C \uC2DD\uC2B5\uAD00"},{key:"DISILL",label:"\uBCD1\uACFC \uC9C8\uD658"},{key:"EXCISE",label:"\uC6B4\uB3D9"},{key:"GEHTKL",label:"\uAC74\uAC15\uC0C1\uC2DD"}]},{key:"WETH",label:"\uB0A0\uC528",icon:"sun-medium",color:"#42A5F5",subs:[{key:"GESSKL",label:"\uACC4\uC808\uC0C1\uC2DD"},{key:"SNWRAN",label:"\uB208\uACFC \uBE44"},{key:"WTHFCT",label:"\uC77C\uAE30\uC608\uBCF4"},{key:"GEWTKL",label:"\uB0A0\uC528\uC0C1\uC2DD"}]},{key:"PRSN",label:"\uC778\uBB3C",icon:"user-round",color:"#AB47BC",subs:[{key:"JODYPS",label:"\uC870\uC120\uC2DC\uB300"},{key:"MDKRPS",label:"\uD55C\uAD6D \uADFC\uD604\uB300"},{key:"THKDPS",label:"\uC0BC\uAD6D\uC2DC\uB300"},{key:"WRLART",label:"\uC138\uACC4\uC758 \uC608\uC220\uAC00"},{key:"WRLPSN",label:"\uC138\uACC4\uC758 \uC778\uBB3C"}]},{key:"KRCT",label:"\uD55C\uAD6D\uBB38\uD654",icon:"bow-arrow",color:"#EC407A",subs:[{key:"KRLANG",label:"\uC6B0\uB9AC\uB9D0"},{key:"TRPLCT",label:"\uC804\uD1B5\uB180\uC774"},{key:"HERITG",label:"\uBB38\uD654\uC7AC"},{key:"EVTFES",label:"\uD589\uC0AC\uC640 \uCD95\uC81C"},{key:"GECTKL",label:"\uC0C1\uC2DD"}]},{key:"STRY",label:"\uC774\uC57C\uAE30",icon:"message-circle",color:"#8D6E63",subs:[{key:"FRYTAL",label:"\uB3D9\uD654"},{key:"AMZING",label:"\uC2E0\uAE30\uD55C \uC774\uC57C\uAE30"},{key:"DAYSTR",label:"\uC77C\uC0C1 \uC18D \uC774\uC57C\uAE30"}]},{key:"LOCA",label:"\uC9C0\uC5ED",icon:"map-pin",color:"#26A69A",subs:[{key:"KRLDMK",label:"\uD55C\uAD6D\uC758 \uBA85\uC18C"},{key:"SELNMK",label:"\uC11C\uC6B8\uC758 \uBA85\uC18C"},{key:"WRDTRB",label:"\uC138\uACC4\uC5EC\uD589"},{key:"NAVIGT",label:"\uAE38 \uCC3E\uAE30"}]},{key:"SOAR",label:"\uC0AC\uD68C\uC640 \uC608\uC220",icon:"landmark",color:"#5C6BC0",subs:[{key:"KRSOCI",label:"\uD55C\uAD6D"},{key:"ECONEW",label:"\uACBD\uC81C\uC640 \uB274\uC2A4"},{key:"GENART",label:"\uC608\uC220"},{key:"GELFKL",label:"\uC0DD\uD65C \uC0C1\uC2DD"}]},{key:"NTSC",label:"\uC790\uC5F0\uACFC \uACFC\uD559",icon:"leaf",color:"#9CCC65",subs:[{key:"ANIMAL",label:"\uB3D9\uBB3C"},{key:"PLANTS",label:"\uC2DD\uBB3C"},{key:"ETHPLT",label:"\uC9C0\uAD6C"},{key:"TOLELC",label:"\uB3C4\uAD6C\uC640 \uC804\uC790\uC81C\uD488"},{key:"GESCKL",label:"\uACFC\uD559\uC0C1\uC2DD"}]},{key:"SPRT",label:"\uC2A4\uD3EC\uCE20",icon:"trophy",color:"#FFCA28",subs:[{key:"INVDSP",label:"\uAC1C\uC778\uACBD\uAE30"},{key:"MARART",label:"\uACA9\uD22C\uAE30"},{key:"TEAMSP",label:"\uB2E8\uCCB4\uACBD\uAE30"},{key:"FOOTBL",label:"\uCD95\uAD6C"},{key:"GESPKL",label:"\uC2A4\uD3EC\uCE20 \uC0C1\uC2DD"}]}],p0=[{key:"LISTEN_IN_NOISE",label:"\uC18C\uC74C \uD558 \uBB38\uC7A5 \uB4E3\uAE30",icon:"party-popper",desc:"\uC18C\uC74C \uD658\uACBD \uC18D \uBB38\uC7A5 \uC774\uD574 \uD6C8\uB828"},{key:"SHORT_STORY",label:"\uC9E7\uC740 \uC774\uC57C\uAE30 \uB4E3\uAE30",icon:"message-square",desc:"\uC9E7\uC740 \uC774\uC57C\uAE30 + 4\uBB38\uC81C"},{key:"LONG_STORY",label:"\uAE34 \uC774\uC57C\uAE30 \uB4E3\uAE30",icon:"message-square-text",desc:"\uAE34 \uC774\uC57C\uAE30 \uC2EC\uD654 \uD6C8\uB828"},{key:"ORDERING_SENTENCE",label:"\uBB38\uC7A5 \uC21C\uC11C\uD654 \uD558\uAE30",icon:"align-start-vertical",desc:"\uC21C\uC11C \uBC30\uC5F4 \uD6C8\uB828"}];function Cs(){return d0}function h0(){return p0}const m0=[],f0=[],C0=[],g0=[];function b0(){return{LISTEN_IN_NOISE:m0,SHORT_STORY:f0,LONG_STORY:C0,ORDERING_SENTENCE:g0}}const y0=[{key:"LISTEN_IN_NOISE",label:"\uC18C\uC74C \uD558 \uBB38\uC7A5 \uB4E3\uAE30",icon:"party-popper",desc:"\uB2E4\uC591\uD55C \uC18C\uC74C \uD658\uACBD\uC5D0\uC11C \uBB38\uC7A5 \uCCAD\uB825\uC744 \uD6C8\uB828\uD569\uB2C8\uB2E4."},{key:"SHORT_STORY",label:"\uC9E7\uC740 \uC774\uC57C\uAE30 \uB4E3\uAE30",icon:"message-square",desc:"\uC9E7\uC740 \uC774\uC57C\uAE30\uB97C \uB4E3\uACE0 \uAE30\uC5B5\uD558\uC5EC \uBB38\uC81C\uB97C \uD480\uC5B4\uBD05\uB2C8\uB2E4."},{key:"LONG_STORY",label:"\uAE34 \uC774\uC57C\uAE30 \uB4E3\uAE30",icon:"message-square-text",desc:"\uAE34 \uC774\uC57C\uAE30\uB97C \uB4E3\uACE0 \uAE30\uC5B5\uD558\uC5EC \uB2E4\uC218\uC758 \uBB38\uC81C\uB97C \uD480\uC5B4\uBD05\uB2C8\uB2E4."},{key:"ORDERING_SENTENCE",label:"\uBB38\uC7A5 \uC21C\uC11C\uD654 \uD558\uAE30",icon:"align-start-vertical",desc:"\uC5EC\uB7EC\uAC1C\uC758 \uC9E7\uC740 \uBB38\uC7A5\uC744 \uB4E3\uACE0 \uAE30\uC5B5\uD558\uC5EC \uADF8 \uC21C\uC11C\uC5D0 \uB9DE\uAC8C \uBC30\uC5F4\uD569\uB2C8\uB2E4."}];let ya=null,gs=null,bs=null;function v0(){const e=a0();if(e&&e.entries.length>0){const n=Gm();if(ya&&gs===e&&bs===n)return ya;const a=new Set,r=[];for(const o of e.entries)!o.word||a.has(o.word)||(a.add(o.word),r.push({w:o.word,s:o.syllables,p:n?.[o.word]?[...n[o.word].cho??[],...n[o.word].jung??[],...n[o.word].jong??[]]:[],pron:o.pronunciation||o.word,grade:o.grade}));return ya=r,gs=e,bs=n,ya}return[]}new Proxy([],{get(e,n){const a=v0(),r=a[n];return typeof r=="function"?r.bind(a):r}});const x0="0.135.0";function _0(e){return typeof window>"u"?"":wm.sanitize(e,{USE_PROFILES:{svg:!0,svgFilters:!0},FORBID_TAGS:["script","use"],FORBID_ATTR:["xlink:href","href"]})}function w0(e){const[n,a]=i.useState(null),[r,o]=i.useState(null),[s,l]=i.useState(null),[c,u]=i.useState(null);return i.useEffect(()=>{if(!e||typeof e!="string"||!e.endsWith(".svg")){a(null),o(null),l(null);return}const d=e.split("/").pop();let p=e;d&&(e.startsWith("/")?p=Ga(e):/^(Logo|Symbol)/i.test(d)?p=Ga(`logo/${d}`):(/^https?:\/\//i.test(e)||e.startsWith("data:"),p=e)),a(p)},[e]),i.useEffect(()=>{if(!n)return;let d=!1;async function p(){try{let h=await fetch(n);h.ok||(h=await fetch(n));const m=h.headers.get("content-type")||"";if(d)return;if(m.includes("svg")){o("mask");return}if(m.startsWith("image/")){o("img");return}const b=await fetch(n);if(!b.ok)throw new Error("not ok");const f=await b.text();if(d)return;if(/^\s*<svg[\s>]/i.test(f)){const g=_0(f);if(!g){o("none");return}l(g),o("inline");return}o("none")}catch{d||o("none")}}return p(),()=>{d=!0}},[n]),i.useEffect(()=>{let d=!1,p=null;return r==="mask"&&n&&fetch(n).then(h=>{if(!h.ok)throw new Error("fetch failed");return h.blob()}).then(h=>{d||(p=URL.createObjectURL(h),u(p))}).catch(()=>{d||o("img")}),()=>{d=!0,p&&URL.revokeObjectURL(p),u(null)}},[r,n]),{iconToUse:n,mode:r,svgText:s,blobUrl:c}}function Ve(e){const{icon:n,label:a,className:r,imgClassName:o,maskClassName:s,svgClassName:l,wrapperStyle:c,size:u}=e||{},d=r??"iconRenderer-icon",p=o??"iconRenderer-icon-image",h=s??"iconRenderer-icon-mask",m=l??"iconRenderer-icon-svg",b=typeof n=="string"?n:null,f=Vh(b),{iconToUse:g,mode:C,svgText:v,blobUrl:_}=w0(b),A=(w,j={})=>t.jsx("span",{className:d,style:c,...j,children:w}),y=(w,j={})=>t.jsx("img",{src:w,alt:typeof a=="string"?a:a?String(a):"",className:p,...j});if(!n)return null;if(typeof n!="string")return A(n);if(n==="none")return A(t.jsx("span",{className:m,dangerouslySetInnerHTML:{__html:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" aria-hidden="true"></svg>'}}),{"aria-hidden":"true"});if(f)try{return A(i.createElement(f,{className:m,size:typeof u=="number"?u:20}),{"aria-hidden":"true"})}catch{}if(g&&g.endsWith(".svg")){if(C==="mask"){const w={"--icon-url":_?`url(${_})`:`url(${g})`,...typeof u=="number"?{"--icon-size":`${u}px`}:null};return A(t.jsx("span",{className:h,style:w}),{"aria-hidden":"true"})}return C==="img"?A(y(g,{onError:w=>{w.currentTarget.onerror=null,w.currentTarget.style.display="none"}}),{"aria-hidden":"true"}):C==="inline"?A(t.jsx("span",{className:m,dangerouslySetInnerHTML:v?{__html:v}:void 0}),{"aria-hidden":"true"}):A(null,{"aria-hidden":"true"})}if(n.startsWith("/")||n.includes("/assets/")||n.match(/\.(png|jpg|jpeg|webp|gif)$/i))return y(Ga(n),{style:c,onError:w=>{w.currentTarget.onerror=null,w.currentTarget.style.display="none"}});const N=typeof u=="number"?u:20,x=`<svg width="${N}" height="${N}" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><rect x="3" y="3" width="18" height="18" rx="2" ry="2" style="fill:none;stroke:currentColor;stroke-width:2"/></svg>`;return A(t.jsx("span",{className:m,dangerouslySetInnerHTML:{__html:x}}),{"aria-hidden":"true"})}function k0({icon:e,emoji:n,title:a,message:r,hint:o,action:s,compact:l,className:c}){return t.jsxs("div",{className:ve("empty-state",l&&"empty-state--compact",c),children:[n&&t.jsx("span",{className:"empty-state__emoji",children:n}),e&&t.jsx(Ve,{icon:e,className:"empty-state__icon"}),a&&t.jsx("p",{className:"empty-state__title body-2",children:a}),r&&t.jsx("p",{className:"empty-state__message body-3",children:r}),o&&t.jsx("p",{className:"empty-state__hint caption-1",children:o}),s&&t.jsxs("button",{type:"button",className:"empty-state__action button button40 button40--bar button--variant-main button--align-center button--shape-rounded",onClick:s.onClick,children:[s.icon&&t.jsx(Ve,{icon:s.icon,className:"button__icon"}),t.jsx("span",{className:"button__label button-1",children:s.label})]})]})}function A0({message:e,hint:n,icon:a="triangle-alert",onRetry:r,retryLabel:o,className:s}){const{t:l}=me.useTranslation();return t.jsxs("div",{className:ve("empty-state","error-state",s),role:"alert",children:[t.jsx(Ve,{icon:a,className:"empty-state__icon error-state__icon"}),t.jsx("p",{className:"empty-state__message body-3",children:e??l("common.errorState.message",{defaultValue:"\uBD88\uB7EC\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."})}),n&&t.jsx("p",{className:"empty-state__hint caption-1",children:n}),r&&t.jsxs("button",{type:"button",className:"empty-state__action button button40 button40--bar button--variant-main button--align-center button--shape-rounded",onClick:r,children:[t.jsx(Ve,{icon:"rotate-cw",className:"button__icon"}),t.jsx("span",{className:"button__label button-1",children:o??l("common.errorState.retry",{defaultValue:"\uB2E4\uC2DC \uC2DC\uB3C4"})})]})]})}function N0({icon:e,title:n,description:a,cta:r,tone:o="main",disabled:s=!1,onClick:l,className:c=""}){const u=()=>{s||l?.()};return t.jsx("section",{role:"button",tabIndex:s?-1:0,"aria-disabled":s||void 0,"aria-label":n,onClick:u,onKeyDown:d=>{(d.key==="Enter"||d.key===" ")&&(d.preventDefault(),u())},className:ve("action-card",`action-card--${o}`,s&&"action-card--disabled",c),children:t.jsxs("div",{className:"action-card__body",children:[t.jsx("span",{"aria-hidden":!0,className:"action-card__chip",children:t.jsx(Ve,{icon:e,size:34})}),t.jsxs("div",{className:"action-card__text",children:[t.jsx("h2",{className:"action-card__title",children:n}),t.jsx("p",{className:"action-card__desc",children:a})]}),t.jsxs("div",{className:"action-card__cta",children:[t.jsx("span",{children:r}),t.jsx("span",{"aria-hidden":!0,className:"action-card__arrow",children:t.jsx(Ve,{icon:"arrow-right",size:18})})]})]})})}function B0({as:e="div",className:n="",children:a,storage:r,...o}){r&&Dm({resolveUrl:r.resolveUrl,download:r.download??(()=>Promise.reject(new Error("[ihabdevteam-core] CoreScope: download resolver\uAC00 \uC124\uC815\uB418\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4."))),exists:r.exists,resolvePath:r.resolvePath,noiseBaseUrl:r.noiseBaseUrl,noiseFileGain:r.noiseFileGain});const s=ve("ihabdevteam-core-scope",n);return t.jsx(e,{className:s,...o,children:a})}function D0({title:e="",lines:n=[],notices:a=null,children:r,variant:o="default",dismissible:s=!1,className:l=""}){const{t:c}=me.useTranslation(),[u,d]=i.useState(!1),p=i.useCallback(()=>d(!0),[]);if(u)return null;const h=`notice-box notice-box--${o} body-2 ${l}`.trim();if(a&&Array.isArray(a)&&a.length)return t.jsx("div",{className:h,role:"note",children:a.map((b,f)=>t.jsxs("div",{className:"notice-box__inner",children:[b.title?t.jsx("span",{className:"notice-box__title body-3",children:b.title}):null,t.jsx("div",{className:"notice-box__body",children:b.lines&&b.lines.length?t.jsx("div",{children:b.lines.map((g,C)=>t.jsx("span",{className:"notice-box__line body-3",children:g},C))}):b.children??null})]},f))});const m=e||n.length?t.jsxs("div",{className:"notice-box__inner",children:[e?t.jsx("span",{className:"notice-box__title body-1",children:e}):null,t.jsx("div",{className:"notice-box__body",children:n.length?t.jsx("ul",{children:n.map((b,f)=>t.jsx("li",{className:"notice-box__line",children:b},f))}):r})]}):t.jsx("div",{className:"notice-box__inner",children:r});return t.jsxs("div",{className:h,role:"note",children:[m,s&&t.jsx("button",{type:"button",className:"notice-box__dismiss",onClick:p,"aria-label":c("common.close","\uB2EB\uAE30"),children:"\xD7"})]})}function rr(e,n=!0){i.useEffect(()=>{if(!n)return;const a=e.current;if(!a)return;const r=o=>{if(o.key!=="Tab")return;const s=Array.from(a.querySelectorAll(wn)).filter(p=>!p.closest('[aria-hidden="true"]'));if(!s.length){o.preventDefault();return}const l=s[0],c=s[s.length-1],u=document.activeElement,d=u===a;o.shiftKey&&(u===l||d)?(o.preventDefault(),c.focus()):!o.shiftKey&&u===c&&(o.preventDefault(),l.focus())};return a.addEventListener("keydown",r),()=>a.removeEventListener("keydown",r)},[e,n])}const wn='a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])',Ln=[];let va=!1;function ys(e){if(e.key!=="Escape"||e.defaultPrevented)return;const n=Ln[Ln.length-1];n&&(e.stopPropagation(),n())}function kn(e){return Ln.push(e),!va&&typeof document<"u"&&(document.addEventListener("keydown",ys),va=!0),()=>{const n=Ln.lastIndexOf(e);n>=0&&Ln.splice(n,1),Ln.length===0&&va&&typeof document<"u"&&(document.removeEventListener("keydown",ys),va=!1)}}function pn(e){const{anchorRect:n,anchorEl:a,offset:r=20,edgeMargin:o=20,onClose:s,closeOnOutsideClick:l=!0,className:c="",role:u="dialog",ariaLabel:d="",children:p,backdrop:h=!1,isMobilePopup:m=!1,useBorder:b=!0,header:f}=e||{},g=i.useRef(null),[C,v]=i.useState({position:"fixed",left:0,top:-9999}),[_,A]=i.useState(!1),[y,N]=i.useState("bottom"),[x,w]=i.useState(!1),[j,k]=i.useState(!1),S=!n&&!a,F=i.useCallback((L=!1)=>{if(j&&m)return;const H=a?a.getBoundingClientRect():n;if(!H||!g.current)return;const ee=g.current,{offsetWidth:W,offsetHeight:z}=ee,T=window.innerWidth,E=window.innerHeight,$=T-H.right,K=H.left,R=H.top,V=E-H.bottom;let q=0,re=0,ie="top";if(R>=z+r)ie="top",re=H.top-r-z,q=H.left+H.width/2-W/2;else if(V>=z+r)ie="bottom",re=H.bottom+r,q=H.left+H.width/2-W/2;else if($>=W+r)ie="right",q=H.right+r,re=H.top+H.height/2-z/2;else if(K>=W+r)ie="left",q=H.left-r-W,re=H.top+H.height/2-z/2;else{const Z=Math.max(R,V,$,K);Z===R?(ie="top",re=H.top-r-z,q=H.left+H.width/2-W/2):Z===V?(ie="bottom",re=H.bottom+r,q=H.left+H.width/2-W/2):Z===$?(ie="right",q=H.right+r,re=H.top+H.height/2-z/2):(ie="left",q=H.left-r-W,re=H.top+H.height/2-z/2)}const ue=Number(o)||8;q=Math.min(Math.max(q,ue),T-W-ue),re=Math.min(Math.max(re,ue),E-z-ue);const Ce=Math.round(q),be=Math.round(re);L&&g.current?(g.current.style.left=`${Ce}px`,g.current.style.top=`${be}px`,g.current.dataset.placement=ie):(N(ie||y),v({position:"fixed",left:Ce,top:be}),w(!0))},[j,m,a,n,r,o,y]);i.useLayoutEffect(()=>{if(S)return;if(j&&m){v({position:"fixed",left:"50%",top:"50%",transform:"translate(-50%, -50%)",width:"calc(100% - 40px)",maxWidth:"calc(100% - 40px)"}),w(!0);return}F();const L=requestAnimationFrame(()=>F());return()=>cancelAnimationFrame(L)},[n,a,r,p,o,S,j,m,F]),i.useEffect(()=>{if(S||j&&m||!g.current||typeof ResizeObserver>"u")return;const L=new ResizeObserver(()=>{n&&F()});return L.observe(g.current),()=>L.disconnect()},[n,p,o,S,j,m,F]),i.useEffect(()=>{if(S||j&&m)return;const L=()=>F(!0);return window.addEventListener("resize",L),document.addEventListener("scroll",L,{passive:!0,capture:!0}),()=>{window.removeEventListener("resize",L),document.removeEventListener("scroll",L,{capture:!0})}},[n,r,p,o,S,j,m,F]),i.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const L=window.matchMedia("(max-width: 768px)"),H=()=>k(!!L.matches);H();try{L.addEventListener?L.addEventListener("change",H):L.addListener(H)}catch{try{L.addListener(H)}catch{}}return()=>{try{L.removeEventListener?L.removeEventListener("change",H):L.removeListener(H)}catch{}}},[]);const P=i.useRef(!1),B=i.useCallback((L=!1)=>{if(s&&!(_||P.current)){if(P.current=!0,L){A(!0);try{s&&s()}catch{}return}A(!0),setTimeout(()=>{s&&s()},200)}},[_,s,A]);i.useEffect(()=>{if(S)return;const L=W=>{const z=g.current;if(!z)return;const T=W.target;if(T&&!z.contains(T)){try{if(T.closest&&T.closest("[data-tooltip-ignore]"))return}catch{}l&&B(!0)}},H=W=>{const z=g.current;if(!z)return;const T=W.target;if(T&&!z.contains(T)){try{if(T.closest&&T.closest("[data-tooltip-ignore]"))return}catch{}l&&B(!0)}},ee=W=>{if(W.key==="Tab"){const z=g.current;if(!z)return;const T=z.querySelectorAll(wn);if(!T||T.length===0)return;const E=T[0],$=T[T.length-1],K=document.activeElement;W.shiftKey?K===E&&(W.preventDefault(),$.focus()):K===$&&(W.preventDefault(),E.focus())}};return document.addEventListener("pointerdown",L,!0),document.addEventListener("click",H,!0),document.addEventListener("keydown",ee),()=>{document.removeEventListener("pointerdown",L,!0),document.removeEventListener("click",H,!0),document.removeEventListener("keydown",ee)}},[s,l,B,S]);const I=i.useRef(B);i.useEffect(()=>{I.current=B});const M=!!s;i.useEffect(()=>{if(!(S||!M))return kn(()=>I.current())},[S,M]),i.useEffect(()=>{const L=()=>{B(!0)};return typeof document<"u"&&document.addEventListener("speechear-close-tooltips",L),()=>{typeof document<"u"&&document.removeEventListener("speechear-close-tooltips",L)}},[B]);const ne=t.jsxs("div",{ref:g,className:`tooltip-content ${S?"tooltip-content--inline":""} ${b?"tooltip-content--bordered":""} ${_?"is-closing":""} ${c} ${j&&m?"is-mobile":""}`,role:u,"aria-label":d||void 0,style:S?{}:{...C,visibility:x?"visible":"hidden"},tabIndex:-1,"data-placement":y,"data-left":S?"":C.left,"data-top":S?"":C.top,"data-anchor-left":n?Math.round(n.left):"","data-anchor-top":n?Math.round(n.top):"","data-anchor-width":n?Math.round(n.width):"","data-anchor-height":n?Math.round(n.height):"",children:[f!=null&&t.jsx("div",{className:"tooltip-content__header h5",children:f}),p]});if(S||typeof document>"u")return ne;if(h||j&&m){const L=t.jsxs("div",{className:"tooltip-portal",children:[t.jsx("div",{className:"tooltip-backdrop",onClick:()=>{l&&B(!0)}}),ne]});return Ft.createPortal(L,document.body)}return Ft.createPortal(ne,document.body)}function hn(e){const{anchorRect:n,text:a,offset:r=8,onClose:o,className:s="",ariaLabel:l}=e||{};return a?t.jsx(pn,{anchorRect:n,offset:r,onClose:o,closeOnOutsideClick:!1,className:`tooltip-info ${s}`,ariaLabel:l||a,children:t.jsx("div",{className:"tooltip-info__content body-3",children:a})}):null}function An(e){const{t:n}=me.useTranslation(),{anchorRect:a,title:r,items:o,activeIndex:s=-1,showIndex:l=!0,onClose:c,offset:u=12,closeOnOutsideClick:d=!0}=e||{},p=(Array.isArray(o)?o:o?[o]:[]).map(h=>typeof h=="string"?{text:h}:h);return!p.length&&!r?null:t.jsx(pn,{anchorRect:a,offset:u,onClose:c,closeOnOutsideClick:d,useBorder:!1,className:"tooltip-description",ariaLabel:r||n("tooltip.description","\uC124\uBA85"),children:t.jsxs("div",{className:"tooltip-description__box",children:[r&&t.jsx("span",{className:"tooltip-description__title body-2",children:r}),t.jsx("ol",{className:"tooltip-description__items",children:p.map((h,m)=>t.jsxs("li",{className:`tooltip-description__item body-3${m===s?" tooltip-description__item--active":""}`,children:[l&&p.length>1&&t.jsxs("span",{className:"tooltip-description__index button-1",children:[m+1,"."]}),h.color&&t.jsx("span",{className:"tooltip-description__dot",style:{background:h.color},"aria-hidden":"true"}),t.jsx("span",{children:h.text})]},m))})]})})}function se(e){const{size:n=48,type:a,htmlType:r,href:o,target:s,rel:l,icon:c,rightIcon:u,label:d,count:p,subLabel:h,children:m,ariaLabel:b,variant:f="default",align:g="center",selected:C,toggleable:v=!1,disabled:_=!1,useLabel:A=!0,useBorder:y=!0,useBG:N=!0,useDisabledCovered:x=!1,useDisabledInvisible:w=!1,width:j,minWidth:k,onClick:S,onDisabledClick:F,showTooltipInfo:P=!1,tooltipInfoText:B=null,tooltipDescription:I=null,iconSize:M="medium",iconColor:ne,shape:L="rounded",color:H,className:ee,...W}=e,z=typeof n=="string"&&isNaN(Number(n))?n.toLowerCase():String(Number(n)||48),T=z.match(/^\d+$/)?`button${z}`:`button-${z}`,E=Number(n),$=!isNaN(E)&&E<40?"button-2":"button-1",K=d??m,R=_||!!W.disabled,V=R?x?"disabled-covered":w?"disabled-invisibled":"disabled":f,q=V?`button--variant-${V}`:"",re=g?`button--align-${g}`:"",ie=L?`button--shape-${L}`:"",ue=typeof ne=="string"&&ne.startsWith("--")?`var(${ne})`:ne,Ce={...j?{width:typeof j=="number"?`${j}px`:j}:{},...k?{minWidth:typeof k=="number"?`${k}px`:k}:{},...y?{}:{"--button-border":R?"0":"1px solid transparent"},...ue?{"--button-icon-color":ue}:{},...H?{"--color-main":H}:{}},be=A===!1?"":K,Z=Array.isArray(be)?be.length>0:!!be,ce=!!u,J=a??(Z||c||ce?"bar":"dot"),ge=`${T}--${J}`,xe=i.useRef(null),de=i.useRef(R),[fe,_e]=i.useState(!!C),[De,X]=i.useState(!1),[pe,Ne]=i.useState(null),Te=i.useCallback(()=>X(!1),[]);i.useEffect(()=>{typeof C=="boolean"&&_e(C)},[C]),i.useEffect(()=>{if(de.current&&!R&&xe.current){const Pe=xe.current;Pe.blur(),Pe.style.pointerEvents="none";const nt=requestAnimationFrame(()=>{requestAnimationFrame(()=>{xe.current&&(xe.current.style.pointerEvents="")})});return()=>cancelAnimationFrame(nt)}de.current=R},[R]);const Ie=typeof C=="boolean"?!!C:fe,Ae=v||typeof C=="boolean"?Ie?"true":"false":void 0,Ue=ve("button",T,ge,q,re,ie,Ie?"is-selected":null,N?null:"button--no-bg",ee),Le=`button__icon button__icon--${M}`,ye=Array.isArray(h)?h:h!==void 0?[h]:[],ze=()=>{if(Array.isArray(be))return be.map((nt,Je)=>{const et=ye[Je];return t.jsxs("span",{className:`button__label-text${et!==void 0?" button__label-text--has-sub":""}`,children:[nt,et!==void 0&&t.jsx("span",{className:"button__sub-label-text caption-1",children:et})]},Je)});const Pe=h!==void 0;return t.jsxs("span",{className:`button__label-text${Pe?" button__label-text--has-sub":""}`,children:[be,p!=null&&t.jsx("span",{className:"button__count",children:p}),Pe&&t.jsx("span",{className:"button__sub-label-text caption-1",children:h})]})},Fe=Pe=>{R||(typeof W.onMouseLeave=="function"&&W.onMouseLeave(Pe),typeof C!="boolean"&&_e(!1),Pe.currentTarget.blur())},Oe=Pe=>{if(R){F?.(Pe);return}typeof C!="boolean"&&v&&_e(nt=>!nt),S?.(Pe)},We=i.useCallback(()=>{(P||I)&&(X(!0),Ne(xe.current?.getBoundingClientRect()??null))},[P,I]),He=i.useCallback(()=>{(P||I)&&(X(!1),Ne(null))},[P,I]),je={...W};delete je.disabled,delete je.className,delete je.faded,delete je.useFaded,delete je.loading,delete je.onMouseLeave,delete je.onPointerEnter,delete je.onPointerLeave,delete je.onFocus,delete je.onBlur,R&&(Object.keys(je).forEach(Pe=>{/^on[A-Z]/.test(Pe)&&typeof je[Pe]=="function"&&delete je[Pe]}),je["aria-disabled"]="true");const Re=(typeof P=="string"?P:null)??(typeof B=="string"?B:null)??(typeof b=="string"?b:null)??(typeof K=="string"?K:null)??void 0,it=typeof b=="string"?b:typeof K=="string"?K:Re,Qe=(Pe,nt)=>t.jsx(Ve,{icon:Pe,label:nt??it,className:Le,imgClassName:"button__icon-img",maskClassName:"button__icon-mask",svgClassName:"button__icon-svg"}),Ze=()=>J==="dot"?t.jsxs(t.Fragment,{children:[Qe(c),Z&&t.jsx("span",{className:`button__label ${$}`,children:ze()})]}):g==="center"&&c?t.jsxs(t.Fragment,{children:[t.jsxs("span",{className:"button__center-group",children:[t.jsx("span",{className:"button__left",children:Qe(c)}),Z&&t.jsx("span",{className:`button__label ${$}`,children:ze()})]}),ce&&t.jsx("span",{className:"button__right",children:Qe(u)})]}):t.jsxs(t.Fragment,{children:[c&&t.jsx("span",{className:"button__left",children:Qe(c,b??K)}),Z&&t.jsx("span",{className:`button__label ${$}`,children:ze()}),ce&&t.jsx("span",{className:"button__right",children:Qe(u)})]}),qe=!!o&&!R;return t.jsxs(t.Fragment,{children:[t.jsx(qe?"a":"button",{...je,ref:xe,...qe?{href:o,target:s,rel:l??(s==="_blank"?"noreferrer":void 0)}:{type:r,disabled:R&&!F},className:Ue,"aria-pressed":Ae,"aria-label":it,"aria-disabled":qe&&R?!0:void 0,style:Ce,onClick:Oe,onMouseLeave:Fe,onPointerEnter:Pe=>{We(),!R&&typeof W.onPointerEnter=="function"&&W.onPointerEnter(Pe)},onPointerLeave:Pe=>{He(),!R&&typeof W.onPointerLeave=="function"&&W.onPointerLeave(Pe)},onFocus:Pe=>{We(),!R&&typeof W.onFocus=="function"&&W.onFocus(Pe)},onBlur:Pe=>{Fe(Pe),He(),!R&&typeof W.onBlur=="function"&&W.onBlur(Pe)},children:Ze()}),De&&I?t.jsx(An,{anchorRect:pe,title:I.title,items:I.items,onClose:Te}):De&&Re?t.jsx(hn,{anchorRect:pe,text:Re,onClose:Te}):null]})}function at(e,n,a){const r=i.useRef(null);return i.useLayoutEffect(()=>{const o=r.current?.parentElement??null;return n(o,e),()=>a(o)},[e,n,a]),r}const Qn={title:"--promo-banner-bg-title",description:"--promo-banner-bg-description"},or=new WeakMap;function sr(e){if(e)return or.get(e)}function _t(e,n){e&&(e.style.setProperty(Qn.title,n.title),e.style.setProperty(Qn.description,n.description),or.set(e,n))}function wt(e){e&&(e.style.removeProperty(Qn.title),e.style.removeProperty(Qn.description),or.delete(e))}const vs={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"default"};function xs(){const e=at(vs,_t,wt);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-main","aria-hidden":"true"})}const _s={title:"var(--color-main)",description:"var(--color-gray)",actionVariant:"main"};function ws(){const e=at(_s,_t,wt);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-soft","aria-hidden":"true"})}const ks={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function As(){const e=at(ks,_t,wt);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-sub","aria-hidden":"true"})}const Ns={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function Bs(){const e=at(Ns,_t,wt);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-deep","aria-hidden":"true"})}const Ds={title:"var(--color-darkSub)",description:"var(--color-gray)",actionVariant:"main"};function Ss(){const e=at(Ds,_t,wt);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-soft-sub","aria-hidden":"true"})}const js={title:"var(--color-black)",description:"var(--color-darkGray)",actionVariant:"main"};function Ts(){const e=at(js,_t,wt);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-warm","aria-hidden":"true"})}const Es={title:"var(--color-white)",description:"var(--color-lightGray)",actionVariant:"main"};function Ms(){const e=at(Es,_t,wt);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-dark","aria-hidden":"true"})}const Ls={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function $s(){const e=at(Ls,_t,wt);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-radial","aria-hidden":"true"})}const Rs={title:"var(--color-darkMain)",description:"var(--color-gray)",actionVariant:"main"};function Ps(){const e=at(Rs,_t,wt);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-diagonal","aria-hidden":"true"})}const Is={title:"var(--color-darkSub)",description:"var(--color-gray)",actionVariant:"main"};function Fs(){const e=at(Is,_t,wt);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-dots","aria-hidden":"true"})}const Os={title:"var(--color-black)",description:"var(--color-gray)",actionVariant:"main"};function Hs(){const e=at(Os,_t,wt);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-outline","aria-hidden":"true",children:t.jsx("span",{className:"promo-banner-bg-outline__dot"})})}const Vs={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function zs(){const e=at(Vs,_t,wt);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-success","aria-hidden":"true"})}const Ws={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"sub"};function qs(){const e=at(Ws,_t,wt);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-naver","aria-hidden":"true"})}const Us={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"transparent-white"};function Gs(){const e=at(Us,_t,wt);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-instagram","aria-hidden":"true"})}const S0=[{key:"main",label:"\uBA54\uC778 \uADF8\uB77C\uB514\uC5B8\uD2B8",textTone:"light"},{key:"soft",label:"\uC18C\uD504\uD2B8",textTone:"dark"},{key:"sub",label:"\uC11C\uBE0C \uCEEC\uB7EC",textTone:"light"},{key:"deep",label:"\uB525 \uADF8\uB77C\uB514\uC5B8\uD2B8",textTone:"light"},{key:"softSub",label:"\uC18C\uD504\uD2B8 \uC11C\uBE0C",textTone:"dark"},{key:"warm",label:"\uC6DC(\uAC15\uC870)",textTone:"dark"},{key:"dark",label:"\uB2E4\uD06C",textTone:"light"},{key:"radial",label:"\uBC29\uC0AC\uD615 \uADF8\uB77C\uB514\uC5B8\uD2B8",textTone:"light"},{key:"diagonal",label:"\uB300\uAC01\uC120 \uD328\uD134",textTone:"dark"},{key:"dots",label:"\uB3C4\uD2B8 \uD328\uD134",textTone:"dark"},{key:"outline",label:"\uC544\uC6C3\uB77C\uC778",textTone:"dark"},{key:"success",label:"\uC131\uACF5/\uC644\uB8CC",textTone:"light"},{key:"naver",label:"\uB124\uC774\uBC84 \uBE14\uB85C\uADF8 \uC548\uB0B4",textTone:"light"},{key:"instagram",label:"\uC778\uC2A4\uD0C0\uADF8\uB7A8 \uC548\uB0B4",textTone:"light"}],Ks={main:xs,soft:ws,sub:As,deep:Bs,softSub:Ss,warm:Ts,dark:Ms,radial:$s,diagonal:Ps,dots:Fs,outline:Hs,success:zs,naver:qs,instagram:Gs};function Ys({storageKey:e="fontScale",baseFont:n=20,minScale:a=.8,maxScale:r=1.4,step:o=.1,lineHeightRatio:s=1.4}={}){const l=C=>Math.max(a,Math.min(r,Number(C))),[c,u]=i.useState(()=>{try{const C=localStorage.getItem(e),v=C?Number(C):1;return Number.isFinite(v)?l(v):l(1)}catch{return 1}});i.useEffect(()=>{try{localStorage.setItem(e,String(c))}catch{}},[e,c]);const d=C=>{u(typeof C=="function"?v=>l(C(v)):l(C))},p=()=>d(C=>+(C+o).toFixed(6)),h=()=>d(C=>+(C-o).toFixed(6)),m=c<r-Number.EPSILON,b=c>a+Number.EPSILON,f=Math.round(n*c),g=Math.round(f*s);return{scale:c,setScale:d,increase:p,decrease:h,canIncrease:m,canDecrease:b,fontSize:f,lineHeight:g}}const Zs=i.createContext(null);function j0(e){return/max-width:\s*7[0-9][0-9]px/.test(e)}function Ut(e){const n=i.useContext(Zs),a=s=>typeof window>"u"||!window.matchMedia?!1:window.matchMedia(s).matches,[r,o]=i.useState(a(e));return i.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const s=window.matchMedia(e),l=u=>o(u.matches),c=s;return c.addEventListener?c.addEventListener("change",l):c.addListener&&c.addListener(l),o(s.matches),()=>{c.removeEventListener?c.removeEventListener("change",l):c.removeListener&&c.removeListener(l)}},[e]),n&&typeof n.mobile=="boolean"&&j0(e)?n.mobile:r}function ir(e){const n=i.useRef(e);return i.useEffect(()=>{n.current=e}),n}function Xs(e,n){const a=ir(n);i.useEffect(()=>{const r=()=>a.current();try{window.addEventListener(e,r)}catch{}return()=>{try{window.removeEventListener(e,r)}catch{}}},[e,a])}const lr=" \xB7 ",Js=(()=>{if(typeof document>"u")return"";const e=document.title;return e.includes(lr)?e.split(lr).pop()??e:e})(),T0=i.createContext(!1),Nn=[];let Qs=null;function E0(e){const n=i.useContext(T0);i.useEffect(()=>{if(n||typeof e!="string"||!e)return;Nn.length===0&&(Qs=document.title);const a={text:Js?`${e}${lr}${Js}`:e};return Nn.push(a),document.title=a.text,()=>{const r=Nn.lastIndexOf(a);r>=0&&Nn.splice(r,1),document.title=Nn.length?Nn[Nn.length-1].text:Qs??document.title}},[e,n])}const ei=[{value:"10",label:"10\uAC1C\uC529 \uBCF4\uAE30"},{value:"25",label:"25\uAC1C\uC529 \uBCF4\uAE30"},{value:"50",label:"50\uAC1C\uC529 \uBCF4\uAE30"},{value:"100",label:"100\uAC1C\uC529 \uBCF4\uAE30"}];function M0(e,n,a){const{t:r}=me.useTranslation(),[o,s]=i.useState(()=>{const f=a?.initialPageSize;return f&&ei.some(g=>g.value===f)?f:"25"}),[l,c]=i.useState(1),[u,d]=i.useState(n);u!==n&&(d(n),l!==1&&c(1));const p=i.useMemo(()=>ei.map(f=>({...f,label:r("visits.showN",{n:f.value})})),[r]),h=i.useCallback(f=>{s(f),c(1)},[]),m=Math.max(1,Math.ceil(e.length/Number(o)));l>m&&c(m);const b=Math.min(l,m);return{pageRows:i.useMemo(()=>e.slice((b-1)*Number(o),b*Number(o)),[e,b,o]),pageSizeProps:{options:p,value:o,onChange:h},paginationProps:{page:b,total:m,onChange:c},setPage:c}}function L0(){const[e,n]=i.useState(null),a=i.useCallback(o=>{n(s=>s?.key===o?{key:o,asc:!s.asc}:{key:o,asc:!0})},[]),r=i.useCallback((o,s)=>({label:o,sortDir:e?.key===s?e.asc?"asc":"desc":null,onClick:()=>a(s)}),[e,a]);return{\uC815\uB82C:e,\uCE78:r}}const Gt="\uC804\uCCB4";Object.fromEntries(Object.entries(Km).map(([e,{nucleus:n}])=>[e,n]));const $0={labial:e=>e("common.phonetics.place.labial",{defaultValue:"\uC591\uC21C\uC74C"}),alveolar:e=>e("common.phonetics.place.alveolar",{defaultValue:"\uCE58\uC870\uC74C"}),palatal:e=>e("common.phonetics.place.palatal",{defaultValue:"\uACBD\uAD6C\uAC1C\uC74C"}),velar:e=>e("common.phonetics.place.velar",{defaultValue:"\uC5F0\uAD6C\uAC1C\uC74C"}),glottal:e=>e("common.phonetics.place.glottal",{defaultValue:"\uC131\uBB38\uC74C"})},R0={frontHigh:e=>e("common.phonetics.vowel.frontHigh",{defaultValue:"\uC804\uC124 \uACE0\uBAA8\uC74C"}),backHighUnrounded:e=>e("common.phonetics.vowel.backHighUnrounded",{defaultValue:"\uD6C4\uC124 \uACE0\uBAA8\uC74C \uD3C9\uC21C"}),backHighRounded:e=>e("common.phonetics.vowel.backHighRounded",{defaultValue:"\uD6C4\uC124 \uACE0\uBAA8\uC74C \uC6D0\uC21C"}),frontMid:e=>e("common.phonetics.vowel.frontMid",{defaultValue:"\uC804\uC124 \uC911\uBAA8\uC74C"}),backMidUnrounded:e=>e("common.phonetics.vowel.backMidUnrounded",{defaultValue:"\uD6C4\uC124 \uC911\uBAA8\uC74C \uD3C9\uC21C"}),backMidRounded:e=>e("common.phonetics.vowel.backMidRounded",{defaultValue:"\uD6C4\uC124 \uC911\uBAA8\uC74C \uC6D0\uC21C"}),low:e=>e("common.phonetics.vowel.low",{defaultValue:"\uC800\uBAA8\uC74C"})},P0={j:e=>e("common.phonetics.glide.j",{defaultValue:"j\uD65C\uC74C"}),w:e=>e("common.phonetics.glide.w",{defaultValue:"w\uD65C\uC74C"}),velar:e=>e("common.phonetics.glide.velar",{defaultValue:"\u0270\uD65C\uC74C"})};function I0(e,n){if("place"in n)return $0[n.place](e);const a=R0[n.vowel](e);return n.glide?`${a} \xB7 ${P0[n.glide](e)}`:a}const F0=(e,{defaultValue:n})=>n,ti=(e,n)=>({jamos:e,phonetic:n,tooltip:I0(F0,n)}),Qt=(e,n)=>n.map(a=>ti([a],{place:e})),ft=(e,n,a)=>ti([...e],a?{vowel:n,glide:a}:{vowel:n}),cr={cho:[Qt("labial",["\u3142","\u3143","\u314D","\u3141"]),Qt("alveolar",["\u3137","\u3138","\u314C","\u3134","\u3139"]),Qt("alveolar",["\u3145","\u3146"]),Qt("palatal",["\u3148","\u3149","\u314A"]),Qt("velar",["\u3131","\u3132","\u314B"]),Qt("glottal",["\u314E"])],jung:[[ft("\u3163","frontHigh"),ft("\u315F","frontHigh","w"),ft("\u3162","frontHigh","velar")],[ft("\u3161","backHighUnrounded")],[ft("\u315C","backHighRounded"),ft("\u3160","backHighRounded","j")],[ft("\u3154\u3150","frontMid"),ft("\u3156\u3152","frontMid","j"),ft("\u3159\u315A\u315E","frontMid","w")],[ft("\u3153","backMidUnrounded"),ft("\u3155","backMidUnrounded","j"),ft("\u315D","backMidUnrounded","w")],[ft("\u3157","backMidRounded"),ft("\u315B","backMidRounded","j")],[ft("\u314F","low"),ft("\u3151","low","j"),ft("\u3158","low","w")]],jong:[Qt("labial",["\u3142","\u3141"]),Qt("alveolar",["\u3137","\u3134","\u3139"]),Qt("velar",["\u3131","\u3147"])]},O0=e=>e===H0?[]:Array.from(e),H0="__NO_CODA__",ur=e=>e.map(n=>n.map(({jamos:a,phonetic:r,tooltip:o})=>({v:a.join(""),phonetic:r,tooltip:o}))),ni={cho:ur(cr.cho),jung:ur(cr.jung),jong:ur(cr.jong)};ni.jung.flat().forEach(({v:e})=>{for(const n of O0(e));}),new Set(ni.cho.flat().map(e=>e.v));function V0(e,n=!0){const a=ir(e);i.useEffect(()=>{if(n)return kn(()=>{a.current?.()})},[n,a])}function xa(){const[e,n]=i.useState(null),a=i.useCallback(s=>n(s.getBoundingClientRect()),[]),r=i.useCallback(()=>n(null),[]),o=i.useCallback(s=>{const l=s.getBoundingClientRect();n(c=>c?null:l)},[]);return{anchorRect:e,isOpen:e!=null,openAt:a,close:r,toggleAt:o}}function ai(e="warning"){const[n,a]=i.useState(""),[r,o]=i.useState(e),[s,l]=i.useState(0),c=i.useCallback((h,m)=>{o(m),a(h),l(b=>b+1)},[]),u=i.useCallback(h=>c(h,"warning"),[c]),d=i.useCallback(h=>c(h,"normal"),[c]),p=i.useCallback(()=>a(""),[]);return{toastMessage:n,toastType:r,toastKey:s,showToast:c,showWarning:u,showNormal:d,clearToast:p}}function ea({computeStyle:e,onScroll:n="close",onResize:a="close",ignoreOutsideClickSelector:r}){const[o,s]=i.useState(!1),[l,c]=i.useState({}),u=i.useRef(null),d=i.useRef(null),p=i.useCallback(()=>{u.current&&c(e(u.current.getBoundingClientRect()))},[e]);i.useEffect(()=>{if(!o)return;p();const b=C=>{const v=C.target;r&&v.closest?.(r)||u.current?.contains(v)||d.current?.contains(v)||s(!1)};document.addEventListener("mousedown",b);const f=C=>{d.current?.contains(C.target)||(n==="reposition"?p():n==="close"&&s(!1))};n!=="ignore"&&window.addEventListener("scroll",f,!0);const g=()=>{a==="reposition"?p():a==="close"&&s(!1)};return a!=="ignore"&&window.addEventListener("resize",g),()=>{document.removeEventListener("mousedown",b),n!=="ignore"&&window.removeEventListener("scroll",f,!0),a!=="ignore"&&window.removeEventListener("resize",g)}},[o,p,n,a,r]),i.useEffect(()=>{if(o)return kn(()=>s(!1))},[o]);const h=i.useCallback(()=>s(b=>!b),[]),m=i.useCallback(()=>s(!1),[]);return{open:o,setOpen:s,toggle:h,close:m,style:l,triggerRef:u,menuRef:d}}function z0(e,{mode:n="playback",autoStart:a=!1,onPlaySpeaker:r,onComplete:o,playMs:s=1100,feedbackMs:l=1500}={}){const[c,u]=i.useState([]),[d,p]=i.useState(0),[h,m]=i.useState("idle"),[b,f]=i.useState(null),[g,C]=i.useState([]),[v,_]=i.useState(null),[A,y]=i.useState(0),N=i.useRef(0),x=i.useCallback(W=>{N.current=typeof W=="function"?W(N.current):W,y(N.current)},[]),w=i.useRef(r),j=i.useRef(o);i.useEffect(()=>{w.current=r,j.current=o},[r,o]);const k=i.useRef([]),S=()=>{k.current.forEach(clearTimeout),k.current=[]},F=(W,z)=>{k.current.push(setTimeout(z,W))};i.useEffect(()=>()=>S(),[]);const P=c[d]?.id??null,B=i.useCallback(()=>{S(),m("playing"),C([]),_(null),x(0);let W=0;e.forEach((z,T)=>{F(W,()=>{p(T),f(z.id),w.current?.(z)}),F(W+1e3,()=>{f(null),C(E=>[...E,z.id])}),W+=1300}),F(W,()=>{m("done"),j.current?.({score:0,total:e.length})})},[e,x]),I=i.useCallback((W,z)=>{if(z>=W.length){m("done"),j.current?.({score:N.current,total:W.length});return}p(z),_(null),m("playing"),f(W[z].id),w.current?.(W[z]),F(s,()=>{f(null),m("waiting")})},[s]),M=i.useCallback(()=>{S();const W=Xn(e);u(W),x(0),C([]),I(W,0)},[e,I,x]),ne=i.useCallback(()=>{n==="playback"?(u(e),B()):M()},[n,e,B,M]),L=i.useCallback(()=>{S(),m("idle"),f(null),C([]),_(null),p(0),x(0),u([])},[x]);i.useEffect(()=>{a?ne():L()},[n,e.length,a]);const H=i.useCallback(W=>{h!=="waiting"||n==="playback"||(_(W),W===c[d]?.id&&x(z=>z+1),n==="exam"?(m("playing"),F(400,()=>I(c,d+1))):(m("feedback"),F(l,()=>I(c,d+1))))},[h,n,c,d,I,l,x]),ee=n==="playback"?e.length:c.length;return{bind:{activeSpeakerId:b,playedIds:g,selectedId:v,answerId:P,showFeedback:h==="feedback",clickable:h==="waiting",onSelectSpeaker:H},index:d,total:ee,score:A,phase:h,done:h==="done",start:ne,reset:L}}function W0({title:e,description:n,actionLabel:a,onAction:r,bg:o,color:s,size:l="medium",actionVariant:c,titleColor:u,descriptionColor:d,className:p=""}){const h=o??s??"main",m=i.useRef(null),[b,f]=i.useState("main"),g=Ut("(max-width: 767px)"),C=i.useRef({title:!1,description:!1});i.useLayoutEffect(()=>{const A=m.current;if(!A)return;const y=sr(A),N=(x,w,j)=>{if(j!==void 0)A.style.setProperty(w,j),C.current[x]=!0;else if(C.current[x]){const k=y?.[x];k?A.style.setProperty(w,k):A.style.removeProperty(w),C.current[x]=!1}};N("title","--promo-banner-bg-title",u),N("description","--promo-banner-bg-description",d)},[u,d,h]),i.useLayoutEffect(()=>{const A=m.current;if(!A)return;const y=sr(A);f(y?.actionVariant??"main")},[h]);const v=ve("promo-banner",`promo-banner--${l}`,p),_=Ks[h];return t.jsxs("div",{ref:m,className:v,role:"note",children:[t.jsx(_,{}),t.jsxs("div",{className:"promo-banner__text",children:[t.jsx("span",{className:`promo-banner__title ${l==="small"?"body-2":"h2"}`,children:e}),n&&t.jsx("span",{className:"promo-banner__description body-3",children:n})]}),a&&r&&t.jsx(se,{htmlType:"button",size:40,variant:c??b,shape:"pill",useBorder:!0,onClick:r,ariaLabel:a,...g?{type:"dot",icon:"arrow-right"}:{rightIcon:"arrow-right",label:a,minWidth:140}})]})}function q0({children:e,interval:n=5e3,dotTone:a,className:r="","aria-label":o}){const{t:s}=me.useTranslation(),l=o??s("topBanner.ariaLabel","\uBC30\uB108"),c=i.Children.toArray(e),u=c.length,[d,p]=i.useState(0),[h,m]=i.useState(!1),b=u>0?d%u:0;return i.useEffect(()=>{if(u<2||n<=0||h)return;const f=window.setInterval(()=>p(g=>(g+1)%u),n);return()=>window.clearInterval(f)},[u,n,h]),u===0?null:t.jsxs("section",{className:ve("top-banner",r),"aria-label":l,"aria-roledescription":"carousel",onMouseEnter:()=>m(!0),onMouseLeave:()=>m(!1),onFocus:()=>m(!0),onBlur:()=>m(!1),children:[t.jsx("div",{className:"top-banner__viewport",children:t.jsx("div",{className:"top-banner__track",style:{transform:`translateX(-${b*100}%)`},children:c.map((f,g)=>t.jsx("div",{className:"top-banner__slide","aria-hidden":g!==b,...g!==b?{inert:!0}:{},children:f},g))})}),u>1&&t.jsx("div",{className:`top-banner__dots${(a?.[b]??"light")==="dark"?" top-banner__dots--dark":""}`,children:c.map((f,g)=>t.jsx("button",{type:"button",className:`top-banner__dot${g===b?" top-banner__dot--active":""}`,"aria-label":s("topBanner.dotAriaLabel",{count:u,index:g+1,defaultValue:`${u}\uAC1C \uC911 ${g+1}\uBC88\uC9F8 \uBC30\uB108`}),"aria-current":g===b,onClick:()=>p(g)},g))})]})}function U0({title:e,body:n,open:a=!1,onToggle:r,avatar:o,titleClassName:s="body-2",bodyClassName:l="body-2",className:c=""}){const{t:u}=me.useTranslation();return t.jsxs("div",{className:`accordion-item ${a?"accordion-item--open":""} ${c}`.trim(),role:"listitem",children:[t.jsxs("div",{className:"accordion-item__header",role:"button",tabIndex:0,"aria-expanded":a,"data-accordion-header":!0,onClick:r,onKeyDown:d=>{if(d.key==="Enter"||d.key===" ")d.preventDefault(),r?.();else if(d.key==="ArrowDown"||d.key==="ArrowUp"){d.preventDefault();const p=d.currentTarget.closest('[role="list"]');if(!p)return;const h=Array.from(p.querySelectorAll("[data-accordion-header]")),m=h.indexOf(d.currentTarget);(d.key==="ArrowDown"?h[m+1]:h[m-1])?.focus()}},children:[o&&t.jsx("div",{className:"accordion-item__avatar",children:o}),t.jsx("div",{className:`accordion-item__title ${s}`,children:e}),t.jsx("div",{className:"accordion-item__chevron",children:t.jsx(Ve,{icon:a?"chevron-up":"chevron-down",label:a?u("accordion.collapse","\uC811\uAE30"):u("accordion.expand","\uD3BC\uCE58\uAE30"),className:"accordion-item__chevron-icon",imgClassName:"accordion-item__chevron-image"})})]}),a&&t.jsx("div",{className:`accordion-item__body ${l}`,children:typeof n=="string"?t.jsx("p",{children:n}):n})]})}function G0({items:e=[],defaultOpenIndex:n=0,size:a=72,className:r="",bodyClassName:o}){const[s,l]=i.useState(n);return t.jsx("div",{className:`accordion-group accordion-group--s${a} ${r}`.trim(),role:"list",children:e.map((c,u)=>t.jsx(U0,{title:c.title,body:c.body,avatar:c.avatar,open:u===s,onToggle:()=>l(u===s?-1:u),bodyClassName:o},u))})}function K0(){return t.jsx("svg",{viewBox:"0 0 12 12",fill:"none",stroke:"currentColor",strokeWidth:2.2,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:t.jsx("polyline",{points:"2,6 5,9 10,3"})})}function Y0(){return t.jsxs("svg",{viewBox:"0 0 12 12",fill:"none",stroke:"currentColor",strokeWidth:2.2,strokeLinecap:"round","aria-hidden":"true",children:[t.jsx("line",{x1:"3",y1:"3",x2:"9",y2:"9"}),t.jsx("line",{x1:"9",y1:"3",x2:"3",y2:"9"})]})}function Z0(){return t.jsx("svg",{viewBox:"0 0 12 12",fill:"none",stroke:"currentColor",strokeWidth:2.2,strokeLinecap:"round","aria-hidden":"true",children:t.jsx("line",{x1:"2.5",y1:"6",x2:"9.5",y2:"6"})})}function rt(e){const{t:n}=me.useTranslation(),{type:a="bar",size:r,className:o="","aria-label":s,"aria-hidden":l}=e;if(a==="dot"){const{icon:N,number:x,position:w="top-right",onClick:j,animate:k=!1}=e,S=N??"check",F=x!==void 0?"number":S,P=typeof r=="number"?r:32,B=ve("circle-badge",`circle-badge--${F}`,`circle-badge--${w}`,`circle-badge--${P}`,k?"circle-badge--animate":"",j?"circle-badge--clickable":"",o),I=x!==void 0?n("badge.nthSelected",{n:x,defaultValue:"{{n}}\uBC88\uC9F8 \uC120\uD0DD"}):{check:n("badge.selected","\uC120\uD0DD\uB428"),remove:n("badge.remove","\uC81C\uAC70"),minus:n("badge.exclude","\uC81C\uC678")}[S];return t.jsxs("span",{className:B,onClick:j,onKeyDown:j?M=>{M.key!=="Enter"&&M.key!==" "||(M.preventDefault(),M.currentTarget.click())}:void 0,"aria-label":l?void 0:s??I,"aria-hidden":l||void 0,role:j?"button":void 0,tabIndex:j?0:void 0,children:[x!==void 0&&x,x===void 0&&S==="check"&&t.jsx(K0,{}),x===void 0&&S==="remove"&&t.jsx(Y0,{}),x===void 0&&S==="minus"&&t.jsx(Z0,{})]})}const{label:c,children:u,variant:d="default",fill:p="filled",minWidth:h,iconLeft:m,iconRight:b,color:f}=e,g=typeof r=="number"?"medium":r??"medium",C={small:"caption-2b",medium:"body-3b",large:"body-2b"}[g]??"body-2b",v={small:12,medium:14,large:16}[g]??14,_=ve("badge",`badge--${d}`,`badge--${g}`,p!=="filled"?`badge--${p}`:"",C,o),A=f?.startsWith("--")?`var(${f})`:f,y=h!==void 0||A?{...h!==void 0?{minWidth:typeof h=="number"?`${h}px`:h}:{},...A?{"--badge-color":A}:{}}:void 0;return t.jsxs("span",{className:_,style:y,"aria-label":l?void 0:s,role:s&&!l?"img":void 0,"aria-hidden":l||void 0,children:[m&&t.jsx(Ve,{icon:m,size:v,className:"badge__icon"}),c??u,b&&t.jsx(Ve,{icon:b,size:v,className:"badge__icon"})]})}function _a({columns:e=[],onClose:n,className:a="",size:r="medium"}){const{t:o}=me.useTranslation(),s=r==="small"?40:48,[l,c]=i.useState([{title:null,columns:e}]),u=l[l.length-1];i.useEffect(()=>{c(f=>{try{if(!Array.isArray(f)||f.length===0)return[{title:null,columns:e}];const g=f.slice(),C=g[0]&&typeof g[0].title<"u"?g[0].title:null;return g[0]={title:C,columns:e},g}catch{return[{title:null,columns:e}]}})},[e]);const d=i.useCallback(()=>c(f=>f.length>1?f.slice(0,f.length-1):f),[]),p=i.useRef(null),h=i.useRef(null),m=l.length;i.useEffect(()=>{h.current||(h.current=document.activeElement);let f=0,g=0;const C=()=>{const v=p.current?.querySelector("button:not([disabled])");if(v&&v.offsetParent){v.focus({preventScroll:!0});return}g++<20&&(f=requestAnimationFrame(C))};return f=requestAnimationFrame(C),()=>cancelAnimationFrame(f)},[m]),i.useEffect(()=>()=>{h.current?.focus?.({preventScroll:!0})},[]);const b=i.useCallback(f=>{if(f){if(Array.isArray(f.children)&&f.children.length){c(g=>[...g,{title:f.label||null,columns:[{title:null,items:f.children||[]}]}]);return}try{typeof f.onClick=="function"&&f.onClick()}catch{}try{f&&f.closeOnSelect&&typeof n=="function"&&n()}catch{}}},[n]);return t.jsxs("div",{className:`tooltip-menu tooltip-menu--${r} ${a}`,children:[(l.length>1||u.title)&&t.jsxs("div",{className:"tooltip-menu__header",children:[l.length>1?t.jsx(se,{htmlType:"button",size:s,type:"dot",icon:"chevron-left",ariaLabel:o("common.back","\uB4A4\uB85C"),onClick:d,variant:"transparent-gray",useBorder:!1}):null,t.jsx("div",{className:"tooltip-menu__title button-1",children:u.title})]}),t.jsx("div",{className:"tooltip-menu__columns",ref:p,children:u.columns&&u.columns.map((f,g)=>t.jsxs("div",{className:"tooltip-menu__column",children:[f.title?t.jsx("div",{className:"tooltip-menu__column-title body-3",children:f.title}):null,t.jsx("div",{className:"tooltip-menu__items",children:(f.items||[]).map((C,v)=>t.jsx(se,{htmlType:"button",className:"tooltip-menu__item",size:s,type:C.label?"bar":"dot",icon:C.selected?"check":C.icon||"none",rightIcon:Array.isArray(C.children)&&C.children.length?"chevron-right":C.badgeCount?t.jsx(rt,{type:"dot",position:"inline",number:Math.min(C.badgeCount,99),size:24,"aria-hidden":!0}):void 0,label:C.label,ariaLabel:C.label&&C.badgeCount&&C.badgeCount>0?o("nav.badgeLabel",{label:C.label,count:C.badgeCount,defaultValue:"{{label}}, {{count}}\uAC1C"}):C.label,onClick:()=>b(C),selected:C.selected,disabled:C.disabled,showTooltipInfo:C.tooltip||!1,useBorder:!1,align:"left"},v))})]},g))})]})}const X0=52,ri=10,oi=e=>e&&e>0?e:0;function si({items:e=[],activeKey:n,onChange:a,appMode:r,onAppModeChange:o,moreItems:s=[]}){const{t:l}=me.useTranslation(),c=r==="manager"?"malgwi":"manager",u=r==="manager"?"arrow-left":"arrow-right",d=r==="manager"?l("nav.modeLabelMalgwi","\uB9D0\uADC0"):l("nav.modeLabelManager","\uB9D0\uADC0 \uB9E4\uB2C8\uC800"),p=i.useRef(null),[h,m]=i.useState(0),b=e.length;i.useEffect(()=>{const L=p.current;if(!L||(m(L.clientWidth),typeof ResizeObserver>"u"))return;const H=new ResizeObserver(ee=>m(ee[0].contentRect.width));return H.observe(L),()=>H.disconnect()},[]);const f=h>0?Math.floor((h+ri)/(X0+ri)):b,g=h>0&&f<b,C=g?f:b,v=e.slice(0,C),_=e.slice(C),A=g||s.length>0,y=i.useCallback(L=>({position:"fixed",bottom:window.innerHeight-L.top+8,right:window.innerWidth-L.right,zIndex:1e4}),[]),N=i.useId(),{open:x,toggle:w,close:j,style:k,triggerRef:S,menuRef:F}=ea({computeStyle:y,onScroll:"ignore",onResize:"ignore"}),P=i.useCallback((L,H)=>H>0?l("nav.badgeLabel",{label:L,count:H,defaultValue:"{{label}}, {{count}}\uAC1C"}):L,[l]),B=i.useCallback(()=>o?.(c),[o,c]),I=i.useMemo(()=>_.find(L=>L.key===n)??s.find(L=>L.selected||L.key&&L.key===n),[_,n,s]),M=i.useMemo(()=>[{items:[..._.map(L=>({label:L.label,icon:L.icon,badgeCount:L.badgeCount,selected:L.key===n,closeOnSelect:!0,onClick:()=>{L.key&&a&&a(L.key),j()}})),...s.map(L=>({label:L.label,icon:L.icon,badgeCount:L.badgeCount,selected:L.selected??(!!L.key&&L.key===n),closeOnSelect:!0,onClick:()=>{L.onClick?.(),j()}}))]}],[_,s,n,a,j]),ne=[..._,...s].reduce((L,H)=>L+oi(H.badgeCount),0);return t.jsxs("nav",{className:"bottom-nav","aria-label":l("nav.bottomNav","\uD558\uB2E8 \uB124\uBE44\uAC8C\uC774\uC158"),children:[o&&t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"bottom-nav__left",children:t.jsx(se,{htmlType:"button",size:52,type:"dot",icon:u,ariaLabel:d,className:"bottom-nav-item",onClick:B})}),t.jsx("div",{className:"bottom-nav__divider","aria-hidden":"true"})]}),t.jsx("div",{className:"bottom-nav__items",ref:p,children:v.map(L=>{const H=oi(L.badgeCount);return t.jsxs("span",{className:"bottom-nav__slot",children:[t.jsx(se,{htmlType:"button",size:52,type:"dot",icon:L.icon,ariaLabel:P(L.label,H),selected:L.key===n,disabled:L.state==="disabled",className:"bottom-nav-item",onClick:()=>L.key&&a?.(L.key)}),H>0&&t.jsx("span",{"aria-hidden":"true",children:t.jsx(rt,{type:"dot",position:"top-right",number:Math.min(H,99),size:24})})]},L.key)})}),A&&t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"bottom-nav__divider","aria-hidden":"true"}),t.jsx("div",{className:"bottom-nav__right",children:t.jsxs("div",{ref:S,className:"bottom-nav__slot",children:[t.jsx(se,{htmlType:"button",size:52,type:"dot",icon:I?.icon??"ellipsis",ariaLabel:P(I?.label??l("nav.more","\uB354\uBCF4\uAE30"),ne),selected:!!I,className:"bottom-nav-item",onClick:w,"aria-expanded":x,"aria-controls":x?N:void 0}),ne>0&&t.jsx("span",{"aria-hidden":"true",children:t.jsx(rt,{type:"dot",position:"top-right",number:Math.min(ne,99),size:24})}),x&&Ft.createPortal(t.jsx("div",{id:N,role:"group","aria-label":l("nav.moreMenu","\uB354\uBCF4\uAE30 \uBA54\uB274"),className:"tooltip-content",style:k,ref:F,children:t.jsx(_a,{columns:M,onClose:j})}),document.body)]})})]})]})}function ii(e,n,a){return a&&a>0?e("nav.badgeLabel",{label:n,count:a,defaultValue:"{{label}}, {{count}}\uAC1C"}):n}function J0(e){const{t:n}=me.useTranslation(),{activeKey:a,unreadCount:r,onDebug:o,onNotification:s,onSetting:l,onHelp:c,onAccount:u}=e||{},d="default";return o||s||l||c||u?t.jsxs("div",{className:"side-nav__footer",children:[o&&t.jsx(se,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:d,icon:"terminal",ariaLabel:n("nav.debug","\uB514\uBC84\uADF8"),onClick:o,selected:a==="debug"}),s&&t.jsxs("span",{className:"side-nav__notification-wrap",children:[t.jsx(se,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:d,icon:"bell",ariaLabel:ii(n,n("nav.notifications","\uC54C\uB9BC"),r),onClick:s,selected:a==="notifications"}),!!r&&r>0&&t.jsx(rt,{type:"dot",number:Math.min(r,99),size:24,"aria-hidden":!0})]}),l&&t.jsx(se,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:d,icon:"settings",ariaLabel:n("nav.settings","\uC124\uC815"),onClick:l,selected:a==="settings"}),c&&t.jsx(se,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:d,icon:"message-circle-question-mark",ariaLabel:n("nav.help","\uB3C4\uC6C0\uB9D0"),onClick:c,selected:a==="help"}),u&&t.jsx(se,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:d,icon:"user-round",ariaLabel:n("nav.account","\uACC4\uC815"),onClick:u,selected:a==="account"})]}):null}function li(e){const{t:n}=me.useTranslation(),{item:a,itemKey:r,label:o,icon:s,active:l,onClick:c,style:u,state:d,labelStyle:p}=e||{},h=a?.key??r??"",m=a?.label??o??"",b=a?.icon??s??"",f=a?.badge??0,g=t.jsx("span",{className:"side-nav__icon-wrap",children:t.jsx(Ve,{icon:b,label:typeof m=="string"?m:void 0,className:"side-nav__icon",maskClassName:"side-nav__icon-image",imgClassName:void 0,svgClassName:void 0})}),C=d==="disabled",v=`side-nav__item ${l?"active":""} ${d||""} ${C?"disabled":""} ${a?.child?"side-nav__item--child":""}`,_=i.useCallback(A=>{if(C)return;const y=A.detail>0;if(y)try{A.currentTarget.blur()}catch{}c?.(h,A.currentTarget,y)},[C,h,c]);return t.jsxs("button",{type:"button",className:v,onClick:_,"aria-label":typeof m=="string"?ii(n,m,f):void 0,style:u,"aria-disabled":C,children:[g,t.jsx("span",{className:"side-nav__label button-1 f",style:p,children:m}),f>0&&t.jsx(rt,{type:"dot",position:"inline",number:Math.min(f,99),size:24,"aria-hidden":!0}),d==="loading"&&t.jsx("span",{className:"side-nav__spinner",role:"img","aria-label":n("loader.loading","\uBD88\uB7EC\uC624\uB294 \uC911\u2026")})]})}function ci(e){const{t:n}=me.useTranslation(),{items:a=[],activeKey:r,onChange:o,unreadCount:s,onDebug:l,onNotification:c,onAccount:u,onSetting:d,onHelp:p,appMode:h,onAppModeChange:m}=e||{},b=i.useCallback(()=>m?.(h==="malgwi"?"manager":"malgwi"),[m,h]);return t.jsxs("nav",{"aria-label":n("nav.mainMenu","\uBA54\uC778 \uBA54\uB274"),className:"side-nav__menu",children:[t.jsxs("div",{className:"side-nav__menu-list",children:[(a||[]).filter(f=>!f.section&&(f.key||f.label)).map((f,g)=>t.jsxs(i.Fragment,{children:[f.divider&&t.jsx("div",{className:"side-nav__separator"}),t.jsx(li,{item:f,active:f.key===r,state:f.disabled?"disabled":void 0,onClick:(C,v,_)=>{if(f.disabled)return;if(f.href){if(window.open(f.href,"_blank","noopener,noreferrer"),_)try{v?.blur()}catch{}return}o?.(f.key);try{const y=document.querySelector(".content-area");y?y.scrollTop=0:window.scrollTo({top:0})}catch{}if(!_)return;try{v?.blur()}catch{}if(typeof window<"u"&&window.matchMedia){if(!window.matchMedia("(min-width: 768px) and (max-width: 1023px)").matches)return}else return;const A=document.querySelector(".header");if(A&&!(typeof A.matches=="function"&&A.matches(":hover"))){A.classList.add("header--force-collapsed");const y=()=>{A.classList.remove("header--force-collapsed"),A.removeEventListener("mouseenter",y)};A.addEventListener("mouseenter",y)}}})]},f.key??`side-nav__item-${g}`)),m&&t.jsx("div",{className:"side-nav__separator side-nav__separator--short"}),m&&t.jsx(li,{item:{key:"__mode-switch__",label:h==="malgwi"?n("nav.goToManager","\uB9D0\uADC0\uB9E4\uB2C8\uC800\uB85C \uC774\uB3D9"):n("nav.goToMalgwi","\uB9D0\uADC0\uB85C \uC774\uB3D9"),icon:h==="malgwi"?"arrow-right":"arrow-left"},onClick:b})]}),t.jsx(J0,{activeKey:r,unreadCount:s,onDebug:l,onNotification:c,onAccount:u,onSetting:d,onHelp:p})]})}var dr='data:image/svg+xml,<svg width="200" height="100" viewBox="0 0 200 100" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_2080_3066)">%0A<path d="M96.4287 48.3536V24.2572H127.047V48.3536H96.4287ZM142.975 69.1536V76.3607H98.2144V60.6393H132.679V58.5107H98.0787V51.3036H142.429V67.025H108.104V69.1536H142.979H142.975ZM106.247 32.5643V39.9786H117.3V32.5643H106.247ZM148.329 40.3893H142.425V49.45H132.539V23.6357H142.425V30.8429H148.329V40.3857V40.3893Z" fill="black"/>%0A<path d="M185.536 47.8714V57.275C182.743 58.5571 178.371 59.1964 172.425 59.1964H171.807V76.3607H161.921V59.1964H149.704V49.7929H172.564C178.421 49.7929 182.746 49.1536 185.539 47.8714H185.536ZM152.586 34.2786V24.875H181.282V47.05H171.396V34.2821H152.586V34.2786ZM198.307 76.3607H188.421V23.6393H198.307V76.3643V76.3607Z" fill="black"/>%0A<path d="M46.4288 17.8571H25.0002C15.138 17.8571 7.14307 25.852 7.14307 35.7143V57.1428C7.14307 67.0051 15.138 75 25.0002 75H46.4288C56.291 75 64.2859 67.0051 64.2859 57.1428V35.7143C64.2859 25.852 56.291 17.8571 46.4288 17.8571Z" fill="%234DCDC0"/>%0A<path d="M34.8607 50.7393C25.8285 60.6821 10.6142 61.6678 0.385667 53.1643C-0.0821902 52.775 -0.13219 52.0678 0.278524 51.6178L16.3535 33.925L34.8607 50.7393Z" fill="%234DCDC0"/>%0A<path d="M53.5714 25H32.1428C22.2821 25 14.2856 32.9964 14.2856 42.8571V64.2857C14.2856 74.1464 22.2821 82.1429 32.1428 82.1429H48.2535C49.2178 82.1429 49.9999 82.925 49.9999 83.8893C49.9999 84.9107 50.8749 85.7214 51.8928 85.6321C62.8392 84.675 71.4285 75.4821 71.4285 64.2857V42.8571C71.4285 32.9964 63.4321 25 53.5714 25Z" fill="%234DCDC0"/>%0A<path d="M24.9999 25C19.0821 25 14.2856 29.7964 14.2856 35.7143V64.2857C14.2856 67.3786 15.0749 70.2893 16.4571 72.8286C18.9928 74.2143 21.9035 75 24.9999 75H53.5714C59.4892 75 64.2856 70.2036 64.2856 64.2857V35.7143C64.2856 32.6214 63.4964 29.7107 62.1142 27.1714C59.5785 25.7857 56.6678 25 53.5714 25H24.9999Z" fill="%23499CDF"/>%0A<path d="M25.357 40.7143C25.357 39.5308 24.3976 38.5714 23.2141 38.5714C22.0307 38.5714 21.0713 39.5308 21.0713 40.7143V45C21.0713 46.1834 22.0307 47.1428 23.2141 47.1428C24.3976 47.1428 25.357 46.1834 25.357 45V40.7143Z" fill="white"/>%0A<path d="M36.0715 57.1429C35.0287 57.1429 33.9822 56.875 33.0358 56.3286C32.1822 55.8357 31.8894 54.7429 32.3858 53.8893C32.8787 53.0357 33.9715 52.7429 34.8251 53.2393C35.8037 53.8036 37.043 53.6429 37.8394 52.8464C38.2251 52.4607 38.468 51.9714 38.543 51.4357C38.8644 49.1607 39.868 47 41.4501 45.1857C42.393 44.1071 42.8894 42.7214 42.8537 41.2857C42.7787 38.3536 40.4322 35.9107 37.5072 35.7286C36.5215 35.6679 35.5715 35.8464 34.693 36.2679C33.8037 36.6929 32.7358 36.3107 32.3144 35.4214C31.8894 34.5321 32.2715 33.4643 33.1608 33.0429C34.5751 32.3714 36.1537 32.0679 37.7322 32.1643C42.4894 32.4607 46.3072 36.4286 46.4251 41.1964C46.4822 43.5286 45.6715 45.7786 44.143 47.5357C43.018 48.825 42.3037 50.3464 42.0822 51.9357C41.8965 53.2464 41.3037 54.4357 40.368 55.375C39.2001 56.5429 37.6465 57.15 36.0751 57.15L36.0715 57.1429Z" fill="white"/>%0A</g>%0A<defs>%0A<clipPath id="clip0_2080_3066">%0A<rect width="200" height="100" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A',pr='data:image/svg+xml,<svg width="371" height="100" viewBox="0 0 371 100" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_2255_7374)">%0A<path d="M237.151 26.0393V72.7214H216.65V26.0393H237.151ZM234.408 70.0464V28.7179H219.254V70.0464H234.408ZM261.495 76.3607H258.819V48.9679H247.575V75.4679H244.899V23.9821H247.575V46.2929H258.819V23.6393H261.495V76.3643V76.3607Z" fill="black"/>%0A<path d="M299.722 69.2571C302.076 68.775 304.031 68.1464 305.583 67.3679V70.1143C304.074 70.9393 302.144 71.5786 299.789 72.0357C297.435 72.4929 295.045 72.7214 292.623 72.7214H272.257V25.6964H275V69.975H292.623C294.998 69.975 297.364 69.7357 299.722 69.2536V69.2571ZM311.69 76.4321V23.6393H314.433V76.3643L311.69 76.4321Z" fill="black"/>%0A<path d="M340.556 47.9393L358.179 70.4572L356.053 72.1036L339.872 51.1643C338.409 57.3429 336.329 62.2643 333.632 65.925C330.935 69.5857 327.736 71.8536 324.033 72.7215V69.975C327.279 69.15 330.044 66.8643 332.33 63.1107C334.617 59.3572 336.354 54.5179 337.542 48.5893C338.73 42.6643 339.369 36.0393 339.461 28.7143H324.992V26.0357H356.602V28.7143H342.201C342.155 35.9 341.605 42.3072 340.556 47.9357V47.9393ZM369.22 76.3607H366.477V47.4572H352.418V44.7786H366.477V23.6357H369.22V76.3607Z" fill="black"/>%0A<path d="M92.8784 48.3536V24.2572H123.461V48.3536H92.8784ZM139.371 69.1536V76.3607H94.6621V60.6393H129.087V58.5107H94.5265V51.3036H138.825V67.025H104.54V69.1536H139.375H139.371ZM102.685 32.5643V39.9786H113.726V32.5643H102.685ZM144.719 40.3893H138.822V49.45H128.947V23.6357H138.822V30.8429H144.719V40.3857V40.3893Z" fill="black"/>%0A<path d="M181.886 47.8714V57.275C179.097 58.5571 174.73 59.1964 168.791 59.1964H168.174V76.3607H158.299V59.1964H146.096V49.7929H168.93C174.78 49.7929 179.1 49.1536 181.89 47.8714H181.886ZM148.971 34.2786V24.875H177.634V47.05H167.76V34.2821H148.971V34.2786ZM194.64 76.3607H184.765V23.6393H194.64V76.3643V76.3607Z" fill="black"/>%0A<path d="M48.1549 17.8571H26.7511C16.9002 17.8571 8.91455 25.852 8.91455 35.7143V57.1428C8.91455 67.0051 16.9002 75 26.7511 75H48.1549C58.0058 75 65.9915 67.0051 65.9915 57.1428V35.7143C65.9915 25.852 58.0058 17.8571 48.1549 17.8571Z" fill="%234DCDC0"/>%0A<path d="M36.6007 50.7393C27.579 60.6821 12.3823 61.6678 2.1655 53.1643C1.69818 52.775 1.64824 52.0678 2.05848 51.6178L18.1149 33.925L36.6007 50.7393Z" fill="%234DCDC0"/>%0A<path d="M55.2897 25H33.8859C24.0365 25 16.0493 32.9964 16.0493 42.8571V64.2857C16.0493 74.1464 24.0365 82.1429 33.8859 82.1429H49.978C50.9412 82.1429 51.7224 82.925 51.7224 83.8893C51.7224 84.9107 52.5964 85.7214 53.6131 85.6321C64.5469 84.675 73.1262 75.4821 73.1262 64.2857V42.8571C73.1262 32.9964 65.139 25 55.2897 25Z" fill="%234DCDC0"/>%0A<path d="M26.7512 25C20.8402 25 16.0493 29.7964 16.0493 35.7143V64.2857C16.0493 67.3786 16.8377 70.2893 18.2182 72.8286C20.751 74.2143 23.6584 75 26.7512 75H55.2897C61.2007 75 65.9916 70.2036 65.9916 64.2857V35.7143C65.9916 32.6214 65.2032 29.7107 63.8227 27.1714C61.2899 25.7857 58.3826 25 55.2897 25H26.7512Z" fill="%23499CDF"/>%0A<path d="M27.1079 40.7143C27.1079 39.5308 26.1496 38.5714 24.9675 38.5714C23.7854 38.5714 22.8271 39.5308 22.8271 40.7143V45C22.8271 46.1834 23.7854 47.1428 24.9675 47.1428C26.1496 47.1428 27.1079 46.1834 27.1079 45V40.7143Z" fill="white"/>%0A<path d="M37.8097 57.1429C36.768 57.1429 35.7228 56.875 34.7775 56.3286C33.9249 55.8357 33.6323 54.7429 34.1282 53.8893C34.6205 53.0357 35.7121 52.7429 36.5647 53.2393C37.5421 53.8036 38.78 53.6429 39.5755 52.8464C39.9608 52.4607 40.2033 51.9714 40.2782 51.4357C40.5993 49.1607 41.6017 47 43.182 45.1857C44.1238 44.1071 44.6197 42.7214 44.584 41.2857C44.5091 38.3536 42.1653 35.9107 39.2437 35.7286C38.2556 35.6679 37.3102 35.8464 36.4327 36.2679C35.5444 36.6929 34.4778 36.3107 34.0569 35.4214C33.6323 34.5321 34.014 33.4643 34.9023 33.0429C36.315 32.3714 37.8917 32.0679 39.4685 32.1643C44.2201 32.4607 48.0336 36.4286 48.1513 41.1964C48.2084 43.5286 47.3986 45.7786 45.8718 47.5357C44.7481 48.825 44.0346 50.3464 43.8134 51.9357C43.6279 53.2464 43.0358 54.4357 42.1011 55.375C40.9346 56.5429 39.3828 57.15 37.8132 57.15L37.8097 57.1429Z" fill="white"/>%0A</g>%0A<defs>%0A<clipPath id="clip0_2255_7374">%0A<rect width="371" height="100" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A',Q0='data:image/svg+xml,<svg width="100" height="100" viewBox="0 0 100 100" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_2175_65214)">%0A<path d="M57.1427 17.8571H35.7141C25.8518 17.8571 17.8569 25.852 17.8569 35.7143V57.1428C17.8569 67.0051 25.8518 75 35.7141 75H57.1427C67.0049 75 74.9998 67.0051 74.9998 57.1428V35.7143C74.9998 25.852 67.0049 17.8571 57.1427 17.8571Z" fill="%234DCDC0"/>%0A<path d="M45.575 50.7393C36.5429 60.6821 21.3286 61.6678 11.1 53.1643C10.6322 52.775 10.5822 52.0678 10.9929 51.6178L27.0679 33.925L45.575 50.7393Z" fill="%234DCDC0"/>%0A<path d="M64.2857 25H42.8571C32.9964 25 25 32.9964 25 42.8571V64.2857C25 74.1464 32.9964 82.1429 42.8571 82.1429H58.9679C59.9321 82.1429 60.7143 82.925 60.7143 83.8893C60.7143 84.9107 61.5893 85.7214 62.6071 85.6321C73.5536 84.675 82.1429 75.4821 82.1429 64.2857V42.8571C82.1429 32.9964 74.1464 25 64.2857 25Z" fill="%234DCDC0"/>%0A<path d="M35.7143 25C29.7964 25 25 29.7964 25 35.7143V64.2857C25 67.3786 25.7893 70.2893 27.1714 72.8286C29.7071 74.2143 32.6179 75 35.7143 75H64.2857C70.2036 75 75 70.2036 75 64.2857V35.7143C75 32.6214 74.2107 29.7107 72.8286 27.1714C70.2929 25.7857 67.3821 25 64.2857 25H35.7143Z" fill="%23499CDF"/>%0A<path d="M36.0714 40.7143C36.0714 39.5308 35.112 38.5714 33.9285 38.5714C32.745 38.5714 31.7856 39.5308 31.7856 40.7143V45C31.7856 46.1834 32.745 47.1428 33.9285 47.1428C35.112 47.1428 36.0714 46.1834 36.0714 45V40.7143Z" fill="white"/>%0A<path d="M46.7859 57.1429C45.743 57.1429 44.6966 56.875 43.7502 56.3286C42.8966 55.8357 42.6037 54.7429 43.1002 53.8893C43.593 53.0357 44.6859 52.7429 45.5395 53.2393C46.518 53.8036 47.7573 53.6429 48.5537 52.8464C48.9395 52.4607 49.1823 51.9714 49.2573 51.4357C49.5787 49.1607 50.5823 47 52.1645 45.1857C53.1073 44.1071 53.6037 42.7214 53.568 41.2857C53.493 38.3536 51.1466 35.9107 48.2216 35.7286C47.2359 35.6679 46.2859 35.8464 45.4073 36.2679C44.5145 36.6929 43.4502 36.3107 43.0287 35.4214C42.6037 34.5321 42.9859 33.4643 43.8752 33.0429C45.2895 32.3714 46.868 32.0679 48.4466 32.1643C53.2002 32.4607 57.0216 36.4286 57.1395 41.1964C57.1966 43.5286 56.3859 45.7786 54.8573 47.5357C53.7323 48.825 53.018 50.3464 52.7966 51.9357C52.6109 53.2464 52.018 54.4357 51.0823 55.375C49.9145 56.5429 48.3609 57.15 46.7895 57.15L46.7859 57.1429Z" fill="white"/>%0A</g>%0A<defs>%0A<clipPath id="clip0_2175_65214">%0A<rect width="100" height="100" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A';function ui({appMode:e}){const{t:n}=me.useTranslation(),a=e==="manager",r=a?pr:dr,o=Q0,s=Ut("(min-width: 768px) and (max-width: 1023px)");return t.jsx("div",{className:"brand-identity__root","aria-label":n("header.biArea","BI \uC601\uC5ED"),children:s?t.jsx("img",{src:o,alt:n("header.biSymbol","BI \uC2EC\uBCFC"),className:"brand-identity__image"}):t.jsx("img",{src:r,alt:a?n("header.logoManager","\uB9D0\uADC0\uB9E4\uB2C8\uC800 \uB85C\uACE0"):n("header.logoMalgwi","\uB9D0\uADC0 \uB85C\uACE0"),className:"brand-identity__image"})})}function di({activeKey:e,onChange:n,items:a,malgwiItems:r,managerItems:o,unreadCount:s,onDebug:l,onNotification:c,onAccount:u,onSetting:d,onHelp:p,appMode:h,onAppModeChange:m}){const{t:b}=me.useTranslation(),f=Ut("(max-width: 767px)"),g=i.useMemo(()=>(a??[]).filter(F=>!F.section&&(F.key||F.label)).map(F=>({key:F.key,label:typeof F.label=="string"?F.label:void 0,icon:F.icon,state:F.disabled?"disabled":void 0,badgeCount:F.badge})),[a]),C=i.useCallback(F=>{const P=a?.find(B=>B.key===F);if(!P?.disabled){if(P?.href){window.open(P.href,"_blank","noopener,noreferrer");return}n?.(F)}},[a,n]),v=i.useMemo(()=>{const F=[];return l&&F.push({key:"debug",icon:"terminal",label:b("nav.debug","\uB514\uBC84\uADF8"),onClick:l}),c&&F.push({key:"notifications",icon:"bell",label:b("nav.notifications","\uC54C\uB9BC"),badgeCount:s,onClick:c}),d&&F.push({key:"settings",icon:"settings",label:b("nav.settings","\uC124\uC815"),onClick:d}),p&&F.push({key:"help",icon:"message-circle-question-mark",label:b("nav.help","\uB3C4\uC6C0\uB9D0"),onClick:p}),u&&F.push({key:"account",icon:"user-round",label:b("nav.account","\uACC4\uC815"),onClick:u}),F},[b,l,c,d,p,u,s]),_=i.useCallback(F=>({position:"fixed",top:F.bottom+8,right:Math.max(8,window.innerWidth-F.right),zIndex:1e4}),[]),A=i.useId(),{open:y,toggle:N,close:x,style:w,triggerRef:j,menuRef:k}=ea({computeStyle:_,onScroll:"ignore",onResize:"ignore"}),S=i.useMemo(()=>[{items:v.map(F=>({label:F.label,icon:F.icon,badgeCount:F.badgeCount,selected:F.selected??(!!F.key&&F.key===e),closeOnSelect:!0,onClick:()=>{F.onClick?.(),x()}}))}],[v,e,x]);return t.jsxs("aside",{className:`header${h==="manager"?" header--manager":""}`,children:[t.jsxs("div",{className:"header__bi",children:[t.jsx(ui,{appMode:h}),t.jsxs("div",{className:"header__menu-button",ref:j,children:[t.jsx(se,{htmlType:"button",size:48,type:"dot",shape:"pill",variant:"default",icon:"menu",ariaLabel:c&&s&&s>0?b("nav.badgeLabel",{label:b("header.menuOpen","\uBA54\uB274 \uC5F4\uAE30"),count:s,defaultValue:"{{label}}, {{count}}\uAC1C"}):b("header.menuOpen","\uBA54\uB274 \uC5F4\uAE30"),onClick:N,"aria-expanded":y,"aria-controls":y?A:void 0}),!!c&&!!s&&s>0&&t.jsx(rt,{type:"dot",number:Math.min(s,99),size:24,"aria-hidden":!0}),y&&Ft.createPortal(t.jsx("div",{id:A,role:"group","aria-label":b("header.utilMenu","\uC720\uD2F8\uB9AC\uD2F0 \uBA54\uB274"),className:"tooltip-content",style:w,ref:k,children:t.jsx(_a,{columns:S,onClose:x})}),document.body)]})]}),t.jsx(ci,{items:a,activeKey:e??void 0,onChange:n,unreadCount:s,onDebug:l,onNotification:c,onAccount:u,onSetting:d,onHelp:p,appMode:h,onAppModeChange:m}),f&&t.jsx(si,{items:g,activeKey:e??void 0,onChange:C,appMode:h,onAppModeChange:m})]})}const e2=di;var t2={statusFilter:"\uC0C1\uD0DC \uD544\uD130",pageSizeSelect:"\uD398\uC774\uC9C0\uB2F9 \uD45C\uC2DC \uAC1C\uC218",selectedCount:"{{count}}\uAC1C \uC120\uD0DD\uB428",cancel:"\uCDE8\uC18C",info:"\uC124\uBA85",errorState:{message:"\uBD88\uB7EC\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.",retry:"\uB2E4\uC2DC \uC2DC\uB3C4"},save:"\uC800\uC7A5",confirm:"\uD655\uC778",close:"\uB2EB\uAE30",back:"\uB4A4\uB85C",emptyTrainingName:"\uD6C8\uB828 \uC774\uB984\uC774 \uBE44\uC5B4 \uC788\uC2B5\uB2C8\uB2E4.",remove:"\uC81C\uAC70",image:"\uC774\uBBF8\uC9C0",delete:"\uC0AD\uC81C",reset:"\uCD08\uAE30\uD654",update:"\uC5C5\uB370\uC774\uD2B8",download:"\uB2E4\uC6B4\uB85C\uB4DC",search:"\uAC80\uC0C9",empty:"\uB370\uC774\uD130\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.",yes:"\uC608",no:"\uC544\uB2C8\uC624",all:"\uC804\uCCB4",none:"\uC5C6\uC74C",days:"{{count}}\uC77C",loadMore:"\uB354\uBCF4\uAE30",more:"\uB354\uBCF4\uAE30",moreFor:"{{name}} \uB354\uBCF4\uAE30",retry:"\uB2E4\uC2DC \uC2DC\uB3C4",prevPage:"\uC774\uC804 \uD398\uC774\uC9C0",nextPage:"\uB2E4\uC74C \uD398\uC774\uC9C0",play:"\uC7AC\uC0DD",pause:"\uBA48\uCDA4",playPause:"\uC7AC\uC0DD / \uBA48\uCDA4",replay:"\uB2E4\uC2DC\uB4E3\uAE30",subscription:"\uC774\uC6A9\uAD8C",done:"\uC644\uB8CC",failed:"\uC2E4\uD328",continue:"\uACC4\uC18D",notification:"\uC54C\uB9BC",emptyList:"\uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",menu:"\uBA54\uB274",resetSelection:"\uC120\uD0DD \uCD08\uAE30\uD654",pageSizeLabel:"{{n}}\uAC1C\uC529 \uBCF4\uAE30",totalCountPrefix:"\uCD1D ",totalCountSuffix:"\uAC1C",expand:"\uD3BC\uCE58\uAE30",collapse:"\uC811\uAE30",popup:"\uD31D\uC5C5",codeBlock:"\uCF54\uB4DC \uBE14\uB85D",totalPrefix:"\uCD1D ",copyCode:"\uCF54\uB4DC \uBCF5\uC0AC",copied:"\uBCF5\uC0AC\uB428",col:{problem:"\uBB38\uC81C"},phonetics:{place:{labial:"\uC591\uC21C\uC74C",alveolar:"\uCE58\uC870\uC74C",palatal:"\uACBD\uAD6C\uAC1C\uC74C",velar:"\uC5F0\uAD6C\uAC1C\uC74C",glottal:"\uC131\uBB38\uC74C"},vowel:{frontHigh:"\uC804\uC124 \uACE0\uBAA8\uC74C",backHighUnrounded:"\uD6C4\uC124 \uACE0\uBAA8\uC74C \uD3C9\uC21C",backHighRounded:"\uD6C4\uC124 \uACE0\uBAA8\uC74C \uC6D0\uC21C",frontMid:"\uC804\uC124 \uC911\uBAA8\uC74C",backMidUnrounded:"\uD6C4\uC124 \uC911\uBAA8\uC74C \uD3C9\uC21C",backMidRounded:"\uD6C4\uC124 \uC911\uBAA8\uC74C \uC6D0\uC21C",low:"\uC800\uBAA8\uC74C"},glide:{j:"j\uD65C\uC74C",w:"w\uD65C\uC74C",velar:"\u0270\uD65C\uC74C"}},unknownError:"\uC54C \uC218 \uC5C6\uB294 \uC624\uB958"},n2={rangeSelect:"\uAE30\uAC04 \uC120\uD0DD",dow:["\uC77C","\uC6D4","\uD654","\uC218","\uBAA9","\uAE08","\uD1A0"],yearMonth:"{{year}}\uB144 {{month}}\uC6D4",prevMonth:"\uC774\uC804 \uB2EC",addOnDate:"{{date}}\uC5D0 \uBC29\uBB38 \uB4F1\uB85D",nextMonth:"\uB2E4\uC74C \uB2EC",prevWeek:"\uC774\uC804 \uC8FC",nextWeek:"\uB2E4\uC74C \uC8FC",legend:{visited:"\uBC29\uBB38",scheduled:"\uC608\uC57D",noVisit:"\uBBF8\uBC29\uBB38"},periodSelect:"\uAE30\uAC04 \uB2E8\uC704"},a2={planSuffix:"\uC774\uC6A9\uAD8C",labeledPlan:"{{label}} \uC774\uC6A9\uAD8C",couponCode:"\uC774\uC6A9\uAD8C \uCF54\uB4DC",specialLabel:"\uC624\uD508\uD2B9\uAC00",unitDay:"\uC77C",unitYear:"\uB144",remainingDay:"{{n}}\uC77C \uB0A8\uC74C",remainingHour:"{{n}}\uC2DC\uAC04 \uB0A8\uC74C",remainingMinute:"{{n}}\uBD84 \uB0A8\uC74C",remainingSecond:"{{n}}\uCD08 \uB0A8\uC74C",menu:{use:"\uC0AC\uC6A9\uD558\uAE30",refund:"\uD658\uBD88\uD558\uAE30",delete:"\uC0AD\uC81C\uD558\uAE30"}},r2={clearAriaLabel:"\uAC80\uC0C9\uC5B4 \uC9C0\uC6B0\uAE30"},o2={starLabel:"{{n}}\uBC88\uC9F8 \uBCC4 \uC120\uD0DD",valueLabel:"{{max}}\uC810 \uB9CC\uC810\uC5D0 {{value}}\uC810",groupLabel:"\uBCC4\uC810"},s2={selected:"\uC120\uD0DD\uB428"},i2={placeholder:"\uC120\uD0DD"},l2={collapse:"\uC811\uAE30",expand:"\uD3BC\uCE58\uAE30"},c2={biArea:"BI \uC601\uC5ED",biSymbol:"BI \uC2EC\uBCFC",logoMalgwi:"\uB9D0\uADC0 \uB85C\uACE0",logoManager:"\uB9D0\uADC0\uB9E4\uB2C8\uC800 \uB85C\uACE0",menuOpen:"\uBA54\uB274 \uC5F4\uAE30",utilMenu:"\uC720\uD2F8\uB9AC\uD2F0 \uBA54\uB274"},u2={mainMenu:"\uBA54\uC778 \uBA54\uB274",bottomNav:"\uD558\uB2E8 \uB124\uBE44\uAC8C\uC774\uC158",goToManager:"\uB9D0\uADC0\uB9E4\uB2C8\uC800\uB85C \uC774\uB3D9",goToMalgwi:"\uB9D0\uADC0\uB85C \uC774\uB3D9",modeLabelManager:"\uB9D0\uADC0 \uB9E4\uB2C8\uC800",modeLabelMalgwi:"\uB9D0\uADC0",training:"\uD6C8\uB828",settings:"\uC124\uC815",notifications:"\uC54C\uB9BC",account:"\uACC4\uC815",help:"\uB3C4\uC6C0\uB9D0",debug:"\uB514\uBC84\uADF8",coupons:"\uCFE0\uD3F0",topic:"\uC8FC\uC81C\uBCC4 \uB4E3\uAE30",trainingType:"\uD6C8\uB828\uBCC4 \uB4E3\uAE30",wordPairs:"\uB300\uB9BD\uC30D \uCC3E\uAE30",wordSearch:"\uB2E8\uC5B4 \uCC3E\uAE30",wordTable:"\uB2E8\uC5B4\uD45C \uB9CC\uB4E4\uAE30",company:"\uC5C5\uCCB4\uC815\uBCF4",more:"\uB354\uBCF4\uAE30",moreMenu:"\uB354\uBCF4\uAE30 \uBA54\uB274",badgeLabel:"{{label}}, {{count}}\uAC1C"},d2={language:{training:{label:"\uD6C8\uB828 \uC5B8\uC5B4",sub:"\uD6C8\uB828\uC5D0 \uC0AC\uC6A9\uB418\uB294 \uB2E8\uC5B4\uC640 \uC74C\uC131 \uC5B8\uC5B4"}},notifications:{title:"\uC54C\uB9BC"},display:{fontSize:{small:"\uC791\uAC8C",large:"\uD06C\uAC8C"}},cache:{title:"\uCE90\uC2DC \uAD00\uB9AC",confirmMessage:"\uCE90\uC2DC({{size}})\uB97C \uC0AD\uC81C\uD569\uB2C8\uB2E4. \uACC4\uC18D\uD558\uC2DC\uACA0\uC2B5\uB2C8\uAE4C?",delete:"\uC0AD\uC81C",deleting:"\uC0AD\uC81C \uC911",cleared:"\uCE90\uC2DC\uAC00 \uC0AD\uC81C\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",group:{wordData:{label:"\uB2E8\uC5B4 \uB370\uC774\uD130",sub:"\uB2E8\uC5B4 \uBAA9\uB85D \uBC0F \uBC84\uC804 \uC815\uBCF4"},pairIndex:{label:"\uB2E8\uC5B4\uC30D \uC778\uB371\uC2A4",sub:"\uCD08\uC131\xB7\uC911\uC131\xB7\uC885\uC131 \uB300\uB9BD\uC30D \uBD84\uC11D \uCE90\uC2DC"},imageCache:{label:"\uC774\uBBF8\uC9C0 \uCE90\uC2DC",sub:"\uB2E8\uC5B4\uBCC4 \uC774\uBBF8\uC9C0 \uC874\uC7AC \uC5EC\uBD80 \uD655\uC778 \uACB0\uACFC"},trainingRecord:{label:"\uD6C8\uB828 \uAE30\uB85D",sub:"\uC624\uB298\uC758 \uD6C8\uB828 \uC9C4\uD589\uB960 \uBC0F \uD559\uC2B5 \uC77C\uC218"}}},button:{save:"\uC124\uC815 \uC800\uC7A5"},popup:{clear:{confirm:"\uCD08\uAE30\uD654"},update:{confirm:"\uC5C5\uB370\uC774\uD2B8"},cache:{title:"{{label}} \uC0AD\uC81C",message:"{{label}}({{size}})\uB97C \uC0AD\uC81C\uD569\uB2C8\uB2E4. \uACC4\uC18D\uD558\uC2DC\uACA0\uC2B5\uB2C8\uAE4C?"}},saved:"\u2713 \uC800\uC7A5\uB428",account:{title:"\uACC4\uC815",delete:{sub:"\uD0C8\uD1F4 \uD6C4 30\uC77C \uC774\uB0B4 \uC7AC\uAC00\uC785 \uC2DC \uBCF5\uAD6C \uAC00\uB2A5\uD569\uB2C8\uB2E4."}}},p2={addButton:"\uC774\uC6A9\uAD8C \uCD94\uAC00\uD558\uAE30",couponButton:"\uCFE0\uD3F0 \uC785\uB825",loading:"\uBD88\uB7EC\uC624\uB294 \uC911\u2026",segment:{personal:"\uB9D0\uADC0",org:"\uB9D0\uADC0\uB9E4\uB2C8\uC800"},org:{title:"\uD604\uC7AC \uC774\uC6A9\uAD8C",disc:"\uAE30\uAD00\uC5D0\uC11C \uC0AC\uC6A9 \uC911\uC778 \uC774\uC6A9\uAD8C \uC815\uBCF4\uC785\uB2C8\uB2E4.",empty:"\uB4F1\uB85D\uB41C \uAE30\uAD00 \uC774\uC6A9\uAD8C\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",fallbackTitle:"\uAE30\uAD00 \uC774\uC6A9\uAD8C",startDate:"\uC2DC\uC791\uC77C",endDate:"\uB9CC\uB8CC\uC77C",remaining:"\uB0A8\uC740 \uAE30\uAC04",duration:"\uC774\uC6A9 \uAE30\uAC04"},active:{infoTitle:"\uC774\uC6A9 \uC815\uBCF4",refund:"\uD658\uBD88 \uC694\uCCAD",startDate:"\uC0AC\uC6A9 \uC2DC\uC791\uC77C",endDate:"\uC885\uB8CC\uC77C",remaining:"\uB0A8\uC740 \uAE30\uAC04"},pending:{title:"\uBCF4\uC720",empty:"\uB300\uAE30 \uC911\uC778 \uC774\uC6A9\uAD8C\uC774 \uC5C6\uC2B5\uB2C8\uB2E4."}},h2={profile:{planSuffix:"\uD50C\uB79C",plan:"\uD50C\uB79C"},basicInfo:{name:{placeholder:"\uD64D\uAE38\uB3D9"}},security:{title:"\uBCF4\uC548",password:{label:"\uBE44\uBC00\uBC88\uD638",currentRequired:"\uD604\uC7AC \uBE44\uBC00\uBC88\uD638\uB97C \uC785\uB825\uD558\uC138\uC694.",newRequired:"\uC0C8 \uBE44\uBC00\uBC88\uD638\uB97C \uC785\uB825\uD558\uC138\uC694.",mismatch:"\uC0C8 \uBE44\uBC00\uBC88\uD638\uAC00 \uC77C\uCE58\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.",changed:"\uBE44\uBC00\uBC88\uD638\uAC00 \uBCC0\uACBD\uB418\uC5C8\uC2B5\uB2C8\uB2E4."},twoFactor:{label:"2\uB2E8\uACC4 \uC778\uC99D",sub:"\uACC4\uC815 \uBCF4\uC548\uC744 \uAC15\uD654\uD558\uC138\uC694"}}},m2={guide:{faq:{title:"\uC790\uC8FC \uBB3B\uB294 \uC9C8\uBB38",desc:"FAQ \uBAA8\uC544\uBCF4\uAE30"}}},f2={settings:"\uC124\uC815",start:{title:"\uB2E8\uC5B4\uD6C8\uB828 \uC2DC\uC791",description:"\uC544\uB798 \uD6C8\uB828 \uC720\uD615\uC744 \uC120\uD0DD\uD574 \uC2DC\uC791\uD558\uC138\uC694"},difficulty:{tooltip:"\uAC00\uC7A5 \uC26C\uC6B4 \uB09C\uC774\uB3C4\uB294 '\uBB34\uC791\uC704', \uAC00\uC7A5 \uC5B4\uB824\uC6B4 \uB09C\uC774\uB3C4\uB294 '\uCD08\uC131\uCC28\uC774' \uC785\uB2C8\uB2E4."},contrast:{label:"\uB300\uB9BD",type:"\uB300\uB9BD \uC885\uB958",count:"\uB300\uB9BD \uAC2F\uC218",n:"{{n}}\uAC1C"},filter:{random:"\uBB34\uC791\uC704",trainOnset:"\uCD08\uC131",trainVowel:"\uBAA8\uC74C",trainCoda:"\uC885\uC131",phonemeGroup:"\uD6C8\uB828 \uC74C\uC808",noLimit:"\uBB34\uAD00",codaExclude:"\uC81C\uC678",gradeLabel:"\uB4F1\uAE09",excludeImageInfo:"\uC774\uBBF8\uC9C0 \uC788\uB294 \uB2E8\uC5B4\uB9CC: \uB2E8\uC5B4 \uC911\uC5D0 \uC774\uBBF8\uC9C0\uAC00 \uC788\uB294 \uB2E8\uC5B4\uB9CC \uACB0\uACFC\uC5D0 \uBCF4\uC5EC\uC90D\uB2C8\uB2E4.",sameStructureInfo:"\uC74C\uC18C \uAD6C\uC870 \uAC19\uC740 \uB2E8\uC5B4\uB9CC: \uC815\uB2F5\uACFC \uC624\uB2F5\uC758 \uC74C\uC808 \uAD6C\uC870(\uAE00\uC790 \uC218\xB7\uBC1B\uCE68 \uC720\uBB34 \uB4F1)\uAC00 \uAC19\uC740 \uACB0\uACFC\uB9CC \uB0A8\uACA8\uC694.",selectSection:"\uC120\uD0DD",excludeImage:"\uC774\uBBF8\uC9C0 \uC788\uB294 \uB2E8\uC5B4\uB9CC",sameStructure:"\uC74C\uC18C \uAD6C\uC870 \uAC19\uC740 \uB2E8\uC5B4\uB9CC"},noQuestions:"\uBB38\uC81C\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.",countQuestions:"{{n}}\uBB38\uC81C",countSentences:"{{n}}\uBB38\uC7A5",comingSoon:"\uC900\uBE44 \uC911",nextQuestion:"\uB2E4\uC74C \uBB38\uC81C",noiseRatioTitle:"\uC18C\uC74C \uBE44\uC728",noiseRatioValue:"{{ratio}}\uBC30",noiseTypeTitle:"\uC18C\uC74C \uC885\uB958",playVolumeTitle:"\uC804\uCCB4 \uC18C\uB9AC",playSpeedTitle:"\uC7AC\uC0DD \uC18D\uB3C4",meter:{sentence:"\uC7AC\uC0DD",noise:"\uC18C\uC74C",toggle:"\uC624\uB514\uC624 \uBBF8\uD130 \uD45C\uC2DC"},viewResult:"\uACB0\uACFC\uBCF4\uAE30",problemNotice:"{{n}}\uBC88 \uBB38\uC81C \uC785\uB2C8\uB2E4.",trainingSettingsTitle:"\uD6C8\uB828 \uC124\uC815",sentencePreview:"\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30",notHeard:"\uC548 \uB4E4\uB838\uC5B4\uC694.",heardWell:"\uC798 \uB4E4\uB838\uC5B4\uC694.",confirmTitle:"\uBB38\uC7A5\uC744 \uD655\uC778\uD558\uACE0 \uC798 \uB4E4\uB838\uB294\uC9C0 \uC120\uD0DD\uD558\uC138\uC694.",noSoundWaveform:"\uC18C\uB9AC \uBE44\uAD50 \uBB38\uC81C\uB294 \uC6E8\uC774\uBE0C\uD3FC\uC744 \uD45C\uD604\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.",noise:{level:{none:"\uC5C6\uC74C",weak:"\uC57D\uD568",medium:"\uBCF4\uD1B5",strong:"\uAC15\uD568",veryStrong:"\uB9E4\uC6B0 \uAC15\uD568"},type:{none:"\uC5C6\uC74C",default:"\uAE30\uBCF8",street:"\uAE38\uAC70\uB9AC",buzz:"\uC640\uAE00\uC640\uAE00",restaurant:"\uC2DD\uB2F9"}},listenTitle:"\uC81C\uC2DC\uD558\uB294 \uBB38\uC7A5\uC744 \uB4E4\uC5B4\uC8FC\uC138\uC694.",listenButton:"\uBB38\uC7A5 \uB4E3\uAE30",playSound:"\uC18C\uB9AC \uB4E3\uAE30",playAll:"\uBAA8\uB450 \uB4E3\uAE30",stop:"\uC815\uC9C0",preview:"\uBBF8\uB9AC \uB4E3\uAE30",next:"\uB2E4\uC74C",completed:"\uD6C8\uB828 \uC644\uB8CC",selected:"\uC120\uD0DD\uB428",nthSelected:"{{n}}\uBC88\uC9F8 \uC120\uD0DD",fontSizeMin:"\uAE00\uC528 \uD06C\uAE30\uAC00 \uCD5C\uC18C\uC785\uB2C8\uB2E4.",fontSizeMax:"\uAE00\uC528 \uD06C\uAE30\uAC00 \uCD5C\uB300\uC785\uB2C8\uB2E4.",fontSizeDecrease:"\uAE00\uC790 \uD06C\uAE30 \uAC10\uC18C",fontSizeIncrease:"\uAE00\uC790 \uD06C\uAE30 \uC99D\uAC00",toggleBackground:"\uBC30\uACBD \uC804\uD658",cardInstructions:"\uB0B1\uB9D0 \uCE74\uB4DC\uB97C \uBCF4\uACE0 \uC18C\uB9AC\uB97C \uB4E3\uACE0 \uD655\uC778\uD558\uC138\uC694.",noCards:"\uCE74\uB4DC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.",audioFetchError:"\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.",selectConfirm:"\uBB38\uC81C\uB97C \uBCF4\uACE0 \uD574\uB2F9\uD558\uB294 \uB0B4\uC6A9\uC744 \uC120\uD0DD\uD558\uC138\uC694.",orderListDefault:"\uBB38\uC7A5\uC744 \uB4E4\uC740 \uC21C\uC11C\uB300\uB85C \uBC30\uCE58\uD558\uC138\uC694.",result:{eyebrow:"\uD6C8\uB828 \uC644\uB8CC",title:"\uD6C8\uB828\uC744 \uBAA8\uB450 \uB9C8\uCCE4\uC2B5\uB2C8\uB2E4.",scoreAria:"{{correct}} / {{total}} \uBB38\uD56D",elapsed:"\uC18C\uC694 \uC2DC\uAC04",summary:"{{correct}}\uAC1C\uC758 \uBB38\uD56D\uC744 \uC798 \uB4E4\uC5C8\uC2B5\uB2C8\uB2E4.",tableAriaLabel:"\uBB38\uD56D\uBCC4 \uD310\uC815",colJudge:"\uD310\uC815",colAnswerSelected:"\uC815\uB2F5 \xB7 \uC120\uD0DD",colAnswer:"\uC815\uB2F5",colSelected:"\uC120\uD0DD",heardWell:"\uC798 \uB4E4\uC5C8\uC5B4\uC694",notHeard:"\uBABB \uB4E4\uC5C8\uC5B4\uC694",notJudged:"\uBBF8\uD310\uC815",replay:"\uB2E4\uC2DC\uD558\uAE30",done:"\uC644\uB8CC",viewResult:"\uACB0\uACFC \uD655\uC778",noContent:"(\uB0B4\uC6A9\uC5C6\uC74C)"},up:"\uC704\uB85C",down:"\uC544\uB798\uB85C",prev:"\uC774\uC804",listenLabel:"\uBB38\uC7A5 \uB4E3\uAE30",sourcePlay:"\uC18C\uC2A4 {{n}} \uC7AC\uC0DD",listen:"\uB4E3\uAE30"},C2={totalCount:"\uAC1C\uC758 \uD6C8\uB828 \uBB36\uC74C",renameGroup:"\uADF8\uB8F9 \uC774\uB984 \uBC14\uAFB8\uAE30",itemCount:"\uD6C8\uB828 \uAC1C\uC218",menu:{edit:"\uD6C8\uB828 \uBB36\uC74C \uC218\uC815",rename:"\uC774\uB984 \uBC14\uAFB8\uAE30",move:"\uADF8\uB8F9 \uC774\uB3D9",duplicate:"\uD6C8\uB828 \uBB36\uC74C \uBCF5\uC0AC",publish:"\uB9D0\uADC0\uC790\uB8CC\uC2E4\uC5D0 \uC62C\uB9AC\uAE30"},sort:{customers:"\uD6C8\uB828 \uACE0\uAC1D"},copyLink:"\uB9C1\uD06C \uBCF5\uC0AC",removeLink:"\uB9C1\uD06C \uC81C\uAC70",linkRemoved:"\uB9C1\uD06C\uAC00 \uC81C\uAC70\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",linkSaveFirst:"\uBA3C\uC800 \uD6C8\uB828 \uBB36\uC74C\uC744 \uC800\uC7A5\uD574\uC8FC\uC138\uC694.",linkSaveFirstHint:"\uC800\uC7A5\uB41C \uD6C8\uB828 \uBB36\uC74C\uC5D0\uC11C\uB9CC \uACF5\uC720 \uB9C1\uD06C\uB97C \uC0DD\uC131\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.",linkCopySelect:"\uBCF5\uC0AC\uAC00 \uB9C9\uD600 \uB9C1\uD06C\uB97C \uC120\uD0DD\uD588\uC2B5\uB2C8\uB2E4. Ctrl/\u2318+C\uB85C \uBCF5\uC0AC\uD558\uC138\uC694.",nameRequired:"\uD6C8\uB828 \uBB36\uC74C \uC774\uB984\uC744 \uC785\uB825\uD574\uC8FC\uC138\uC694.",itemRequired:"\uD6C8\uB828\uC744 1\uAC1C \uC774\uC0C1 \uB2F4\uC544\uC8FC\uC138\uC694.",randomAdd:"\uBB34\uC791\uC704 \uCD94\uAC00"},g2={totalCount:"\uBA85\uC758 \uACE0\uAC1D",loadError:"\uBAA9\uB85D\uC744 \uBD88\uB7EC\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.",basicInfo:{editTooltip:"\uC218\uC815\uD558\uAE30"},member:{placeholder:"\uC774\uBA54\uC77C \uB610\uB294 \uC804\uD654",link:"\uC5F0\uACB0",linking:"\uC5F0\uACB0 \uC911\u2026"},device:{title:"\uCCAD\uAC01\uC7AC\uD65C\uAE30\uAE30",addTooltip:"\uC0C8\uB85C \uC0DD\uC131",addButton:"\uAE30\uAE30 \uCD94\uAC00",listTooltip:"\uBAA9\uB85D \uBCF4\uAE30",listTitle:"\uCE21 \uAE30\uAE30 \uBAA9\uB85D",historyEmpty:"\uB4F1\uB85D\uB41C \uAE30\uAE30 \uC774\uB825\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",wearing:"\uCE21 \uCC29\uC6A9\uC911",notRegistered:"\uBBF8\uB4F1\uB85D",unit:"\uAC1C",wearingNow:"\uCC29\uC6A9",wear:"\uCC29\uC6A9",unwear:"\uCC29\uC6A9 \uD574\uC81C",wornSince:"{{date}}\uBD80\uD130",release:"\uD574\uC81C",historyTitle:"\uCCAD\uAC01\uC7AC\uD65C\uAE30\uAE30 \uC774\uB825"},schedule:{title:"\uBC29\uBB38 \uC608\uC815",addTooltip:"\uC608\uC815 \uB4F1\uB85D",listTooltip:"\uC804\uCCB4 \uBCF4\uAE30",empty:"\uC608\uC815\uB41C \uBC29\uBB38\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",registerTitle:" \uACE0\uAC1D\uB2D8 \uBC29\uBB38 \uC608\uC815 \uB4F1\uB85D",memoPlaceholder:"\uBC29\uBB38 \uC608\uC815 \uAD00\uB828 \uBA54\uBAA8\uB97C \uC785\uB825\uD574 \uC8FC\uC138\uC694."},visitHistory:{title:"\uBC29\uBB38 \uC774\uB825",addTooltip:"\uC2E0\uADDC \uB4F1\uB85D",empty:"\uC544\uC9C1 \uBC29\uBB38 \uAE30\uB85D\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",popupTitle:" \uACE0\uAC1D\uB2D8 \uBC29\uBB38 \uC774\uB825",registerTitle:" \uACE0\uAC1D\uB2D8 \uC2E0\uADDC \uBC29\uBB38 \uB4F1\uB85D"},homework:{title:"\uC219\uC81C \uC9C4\uD589\uC0C1\uD669",active:"\uD65C\uC131",inactive:"\uBE44\uD65C\uC131",copy:"\uB9C1\uD06C \uBCF5\uC0AC",copied:"\uB9C1\uD06C\uAC00 \uBCF5\uC0AC\uB418\uC5C8\uC2B5\uB2C8\uB2E4."},moreItems:"\uB354 \uC788\uC74C",viewAll:"\uC804\uCCB4 \uBCF4\uAE30",visits:{title:"\uBC29\uBB38"},trainingRecord:{title:"\uACE0\uAC1D \uD6C8\uB828 \uAE30\uB85D"},status:{trainingSubtitle:"\uD6C8\uB828 \uD604\uD669"},detail:{session:{completedFmt:"\uC644\uB8CC {{done}}/{{total}} \xB7 {{duration}}"},visitSuffix:"\uC758 \uBC29\uBB38"},duration:{minSec:"{{m}}\uBD84 {{s}}\uCD08",min:"{{m}}\uBD84",sec:"{{s}}\uCD08"}},b2={plan:{recommendedFor:"\uC774\uB7F0 \uBD84\uAED8 \uCD94\uCC9C\uD569\uB2C8\uB2E4.",features:"\uD575\uC2EC \uAE30\uB2A5",freePrice:"\uBB34\uB8CC",contact:"\uBB38\uC758\uD558\uAE30",tierFallback:"\uC774\uC6A9\uAD8C",openPromo:"\uC624\uD508 \uD2B9\uAC00"},products:{mgrEnterprise:{tier:{price:"\uBB38\uC758"}}}},y2={title:"\uCFE0\uD3F0",subtitle:"\uCFE0\uD3F0 \uCF54\uB4DC\uB97C \uC785\uB825\uD558\uAC70\uB098 \uBCF4\uC720 \uCFE0\uD3F0\uC744 \uD655\uC778\uD558\uC138\uC694.",input:{label:"\uCFE0\uD3F0 \uCF54\uB4DC",placeholder:"\uCFE0\uD3F0 \uCF54\uB4DC \uC785\uB825"},applyButton:"\uC801\uC6A9",error:{invalid:"\uC720\uD6A8\uD558\uC9C0 \uC54A\uC740 \uCFE0\uD3F0 \uCF54\uB4DC\uC785\uB2C8\uB2E4.",alreadyUsed:"\uC774\uBBF8 \uC0AC\uC6A9\uB41C \uCFE0\uD3F0\uC785\uB2C8\uB2E4."},success:{applied:'"{{name}}" \uCFE0\uD3F0\uC774 \uC801\uC6A9\uB418\uC5C8\uC2B5\uB2C8\uB2E4.'},section:{owned:"\uBCF4\uC720 \uCFE0\uD3F0"},status:{used:"\uC0AC\uC6A9 \uC644\uB8CC",available:"\uC0AC\uC6A9 \uAC00\uB2A5"}},v2={unitVisit:"\uAC74",periodAll:"\uC804\uCCB4",showN:"{{n}}\uAC1C\uC529"},x2={subtitle:"\uC5C5\uCCB4 \uBC0F \uBC95\uC778 \uC815\uBCF4\uB97C \uAD00\uB9AC\uD558\uC138\uC694.",editButton:"\uC815\uBCF4 \uC218\uC815",basicInfo:{title:"\uAE30\uBCF8 \uC815\uBCF4"},contactInfo:{title:"\uC5F0\uB77D\uCC98 \uC815\uBCF4"}},_2={title:"\uD6C8\uB828\uBCC4 \uB4E3\uAE30",subtitle:"\uC6D0\uD558\uB294 \uD6C8\uB828 \uC720\uD615\uC744 \uC120\uD0DD\uD558\uC138\uC694.",listenInNoise:{title:"\uC18C\uC74C \uD558 \uBB38\uC7A5 \uB4E3\uAE30",desc:"\uB2E4\uC591\uD55C \uC18C\uC74C \uD658\uACBD\uC5D0\uC11C \uBB38\uC7A5 \uCCAD\uB825\uC744 \uD6C8\uB828\uD569\uB2C8\uB2E4."},shortStory:{title:"\uC9E7\uC740 \uC774\uC57C\uAE30 \uB4E3\uAE30",desc:"\uC9E7\uC740 \uC774\uC57C\uAE30\uB97C \uB4E3\uACE0 \uB0B4\uC6A9\uC744 \uC774\uD574\uD569\uB2C8\uB2E4."},longStory:{title:"\uAE34 \uC774\uC57C\uAE30 \uB4E3\uAE30",desc:"\uAE34 \uC774\uC57C\uAE30\uB97C \uC9D1\uC911\uD574\uC11C \uB4E3\uACE0 \uB0B4\uC6A9\uC744 \uD30C\uC545\uD569\uB2C8\uB2E4."},orderingSentence:{title:"\uBB38\uC7A5 \uC21C\uC11C\uD654",desc:"\uB4E4\uC740 \uBB38\uC7A5\uB4E4\uC744 \uC62C\uBC14\uB978 \uC21C\uC11C\uB85C \uBC30\uC5F4\uD569\uB2C8\uB2E4."},SAME_SOUND_PICK:{label:"\uAC19\uC740 \uC18C\uB9AC \uACE0\uB974\uAE30",sub:"\uB4E4\uC740 \uC18C\uB9AC\uC640 \uAC19\uC740 \uB2E8\uC5B4 \uCE74\uB4DC\uB97C \uACE0\uB974\uC138\uC694."},SAME_OR_DIFF:{label:"\uAC19\uC740\uC9C0 \uB2E4\uB978\uC9C0 \uB9DE\uD788\uAE30",sub:"\uB450 \uC18C\uB9AC\uAC00 \uAC19\uC740\uC9C0, \uB2E4\uB978\uC9C0 \uAD6C\uBD84\uD558\uC138\uC694."},HEAR_AND_PICK_SAME:{label:"\uC77C\uCE58\uD558\uB294 \uB2E8\uC5B4 \uB9DE\uD788\uAE30",sub:"\uB4E4\uC740 \uC18C\uB9AC\uC758 \uB2E8\uC5B4 \uCE74\uB4DC\uB97C \uACE0\uB974\uC138\uC694."},HEAR_AND_PICK_INCLUDED:{label:"\uD55C \uC74C\uC808 \uD3EC\uD568 \uB2E8\uC5B4 \uB9DE\uD788\uAE30",sub:"\uB4E4\uC740 \uC74C\uC808\uC774 \uD3EC\uD568\uB41C \uB2E8\uC5B4 \uCE74\uB4DC\uB97C \uACE0\uB974\uC138\uC694."},STARTS_WITH_SAME_SOUND:{label:"\uCCAB \uC74C\uC808\uC774 \uAC19\uC740 \uB2E8\uC5B4 \uB9DE\uD788\uAE30",sub:"\uB4E4\uC740 \uB2E8\uC5B4\uC640 \uAC19\uC740 \uC18C\uB9AC\uB85C \uC2DC\uC791\uD558\uB294 \uB2E8\uC5B4\uB97C \uACE0\uB974\uC138\uC694."},LISTEN_AND_REMEMBER_ORDER:{label:"\uB4E3\uACE0 \uC21C\uC11C\uB300\uB85C \uAE30\uC5B5\uD558\uAE30",sub:"\uC138 \uB2E8\uC5B4\uB97C \uB4E4\uC740 \uC21C\uC11C\uB300\uB85C \uCE74\uB4DC\uB97C \uC120\uD0DD\uD558\uC138\uC694."},MERGE_2_SYLLABLES:{label:"\uC74C\uC808 2\uAC1C \uD569\uCE58\uAE30",sub:"\uB450 \uC74C\uC808\uC744 \uD569\uCE58\uBA74 \uC5B4\uB5A4 \uB2E8\uC5B4\uAC00 \uB420\uAE4C\uC694?"},MERGE_3_SYLLABLES:{label:"\uC74C\uC808 3\uAC1C \uD569\uCE58\uAE30",sub:"\uC138 \uC74C\uC808\uC744 \uD569\uCE58\uBA74 \uC5B4\uB5A4 \uB2E8\uC5B4\uAC00 \uB420\uAE4C\uC694?"},MERGE_2_PHONEMES:{label:"\uC74C\uC18C 2\uAC1C \uD569\uCE58\uAE30",sub:"\uB450 \uC74C\uC18C\uB97C \uD569\uCE58\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB420\uAE4C\uC694?"},MERGE_3_PHONEMES:{label:"\uC74C\uC18C 3\uAC1C \uD569\uCE58\uAE30",sub:"\uC138 \uC74C\uC18C\uB97C \uD569\uCE58\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB420\uAE4C\uC694?"},DROP_1_FROM_2SYLL:{label:"2\uC74C\uC808\uC5D0\uC11C \uD55C \uC74C\uC808 \uD0C8\uB77D",sub:"2\uC74C\uC808 \uB2E8\uC5B4\uC5D0\uC11C \uD55C \uC74C\uC808\uC744 \uBE7C\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB420\uAE4C\uC694?"},DROP_1_FROM_3SYLL:{label:"3\uC74C\uC808\uC5D0\uC11C \uD55C \uC74C\uC808 \uD0C8\uB77D",sub:"3\uC74C\uC808 \uB2E8\uC5B4\uC5D0\uC11C \uD55C \uC74C\uC808\uC744 \uBE7C\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB420\uAE4C\uC694?"},DROP_PART_FROM_COMPOUND:{label:"\uD569\uC131\uC5B4\uC5D0\uC11C \uBD80\uBD84 \uD0C8\uB77D",sub:"\uD569\uC131\uC5B4\uC758 \uC77C\uBD80\uB97C \uBE7C\uBA74 \uC5B4\uB5A4 \uB2E8\uC5B4\uAC00 \uB420\uAE4C\uC694?"},DROP_FINAL_CONSONANT_FROM_1SYLL:{label:"1\uC74C\uC808\uC5D0\uC11C \uBC1B\uCE68 \uD0C8\uB77D",sub:"\uBC1B\uCE68\uC744 \uBE7C\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB420\uAE4C\uC694?"},REMOVE_CONSONANT_AND_IDENTIFY_PHONEME:{label:"1\uC74C\uC808\uC5D0\uC11C \uC790\uC74C \uD0C8\uB77D",sub:"\uC790\uC74C\uC744 \uBE7C\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB0A8\uC744\uAE4C\uC694?"},CHANGE_1_SYLL_IN_2SYLL:{label:"2\uC74C\uC808\uC5D0\uC11C \uD55C \uC74C\uC808 \uBC14\uAFB8\uAE30",sub:"2\uC74C\uC808 \uB2E8\uC5B4\uC758 \uD55C \uC74C\uC808\uC744 \uBC14\uAFD4 \uC0C8 \uB2E8\uC5B4\uB97C \uB9CC\uB4DC\uC138\uC694."},CHANGE_1_SYLL_IN_3SYLL:{label:"3\uC74C\uC808\uC5D0\uC11C \uD55C \uC74C\uC808 \uBC14\uAFB8\uAE30",sub:"3\uC74C\uC808 \uB2E8\uC5B4\uC758 \uD55C \uC74C\uC808\uC744 \uBC14\uAFD4 \uC0C8 \uB2E8\uC5B4\uB97C \uB9CC\uB4DC\uC138\uC694."},CHANGE_1_PHONEME_IN_1SYLL:{label:"1\uC74C\uC808 \uB2E8\uC5B4 \uC911 1\uAC1C \uC74C\uC18C \uBC14\uAFB8\uAE30",sub:"1\uC74C\uC808 \uB2E8\uC5B4\uC758 \uD55C \uC74C\uC18C\uB97C \uBC14\uAFD4 \uC0C8 \uC18C\uB9AC\uB97C \uB9CC\uB4DC\uC138\uC694."},CHANGE_1_PHONEME_IN_2SYLL:{label:"2\uC74C\uC808 \uB2E8\uC5B4 \uC911 1\uAC1C \uC74C\uC18C \uBC14\uAFB8\uAE30",sub:"2\uC74C\uC808 \uB2E8\uC5B4\uC758 \uD55C \uC74C\uC18C\uB97C \uBC14\uAFD4 \uC0C8 \uB2E8\uC5B4\uB97C \uB9CC\uB4DC\uC138\uC694."}},w2={comingSoon:"\uB2E8\uC5B4\uD6C8\uB828 \uAE30\uB2A5\uC744 \uC900\uBE44 \uC911\uC785\uB2C8\uB2E4."},k2={colName:"\uB2E8\uC5B4\uD45C \uC774\uB984",open:"\uC5F4\uAE30",countSuffix:"\uAC1C\uC758 \uB2E8\uC5B4\uD45C",tab:{cards:"\uB2E8\uC5B4\uD45C \uCE74\uB4DC",tables:"\uB2E8\uC5B4\uD45C"},cardsEmpty:"\uC544\uC9C1 \uB9CC\uB4E0 \uB2E8\uC5B4\uD45C \uCE74\uB4DC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.",addCard:"\uB2E8\uC5B4\uD45C \uCE74\uB4DC \uCD94\uAC00",menu:{publishStore:"\uB9D0\uADC0\uC790\uB8CC\uC2E4\uC5D0 \uC62C\uB9AC\uAE30",unpublishStore:"\uB9D0\uADC0\uC790\uB8CC\uC2E4\uC5D0\uC11C \uB0B4\uB9AC\uAE30"},newBadge:"\uC0C8\uB85C \uB9CC\uB4E0 \uD45C",publishedBadge:"\uBC1C\uD589\uB428",sharedBadge:"\uACF5\uC720 \uC911"},A2={title:"\uC8FC\uC694 \uB2E8\uC5B4",empty:"\uCD94\uCD9C\uB41C \uC8FC\uC694 \uB2E8\uC5B4\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4."},N2={defaultName:"\uB2E8\uC5B4 \uD45C",title:"\uB2E8\uC5B4 \uD45C \uB9CC\uB4E4\uAE30",subtitle:"\uCE78\uC744 \uC124\uC815\uD558\uACE0 \uB2E8\uC5B4\uB97C \uCD94\uAC00\uD558\uC5EC \uD45C\uB97C \uB9CC\uB4ED\uB2C8\uB2E4.",filterTitle:"\uD45C \uC124\uC815",filter:{composition:"\uAD6C\uC131",image:"\uC774\uBBF8\uC9C0",word:"\uB2E8\uC5B4",standardPron:"\uD45C\uC900 \uBC1C\uC74C",colloquialPron:"\uAD6C\uC5B4\uCCB4 \uBC1C\uC74C",paperOrientation:"\uC6A9\uC9C0 \uBC29\uD5A5",landscape:"\uAC00\uB85C",portrait:"\uC138\uB85C",columns:"\uCE78 \uC218",column:"{{count}}\uCE78",itemsPerPageWord:"\uD398\uC774\uC9C0\uB2F9 \uB2E8\uC5B4 \uC218",itemsPerPagePair:"\uD398\uC774\uC9C0\uB2F9 \uB300\uB9BD\uC30D \uC218",itemsPerPageOption:"{{count}}\uAC1C",pageIndicator:"{{current}} / {{total}}",pageNumber:"\uD398\uC774\uC9C0 \uBC88\uD638",pageNumberLeft:"\uC67C\uCABD",pageNumberCenter:"\uC911\uC559",pageNumberRight:"\uC624\uB978\uCABD",border:"\uC678\uACFD\uC120",cutLine:"\uC808\uCDE8\uC120",show:"\uD45C\uC2DC",hide:"\uBBF8\uD45C\uC2DC",dotted:"\uC810\uC120",corner:"\uCF54\uB108"},addWord:"\uCD94\uAC00\uD558\uAE30",wordInfo:"{{word}} \uB0B1\uB9D0 \uC815\uBCF4",emptyItems:"\uB2E8\uC5B4\uB97C 1\uAC1C \uC774\uC0C1 \uCD94\uAC00\uD574\uC8FC\uC138\uC694.",load:"\uBD88\uB7EC\uC624\uAE30",openNewWindow:"\uC0C8 \uCC3D\uC73C\uB85C \uBCF4\uAE30",saveButton:"\uC800\uC7A5\uD558\uAE30",saveAsNewButton:"\uB2E4\uB978 \uC774\uB984\uC73C\uB85C \uC800\uC7A5",print:"\uC778\uC1C4\uD558\uAE30",popupBlocked:"\uD31D\uC5C5\uC774 \uCC28\uB2E8\uB418\uC5C8\uC2B5\uB2C8\uB2E4. \uBE0C\uB77C\uC6B0\uC800 \uC124\uC815\uC5D0\uC11C \uD31D\uC5C5\uC744 \uD5C8\uC6A9\uD574 \uC8FC\uC138\uC694.",printFileNameSingle:"\uB2E8\uC5B4\uD45C",printFileNamePair:"\uB300\uB9BD\uC30D\uD45C",save:{title:"\uB2E8\uC5B4\uD45C \uC800\uC7A5\uD558\uAE30",nameLabel:"\uC774\uB984",desc:"\uC800\uC7A5\uD560 \uB2E8\uC5B4 \uD45C\uC758 \uC774\uB984\uC744 \uC785\uB825\uD558\uC138\uC694.",placeholder:"\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC81C\uBAA9\uC744 \uC785\uB825\uD558\uC138\uC694.",descriptionLabel:"\uC124\uBA85",descriptionPlaceholder:"\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC124\uBA85\uC744 \uC785\uB825\uD558\uC138\uC694.",duplicateName:"\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4.",nameRequired:"\uD45C \uC774\uB984\uC744 \uC785\uB825\uD574 \uC8FC\uC138\uC694.",autoFillHint:" (Tab \uB610\uB294 space \uC785\uB825\uC2DC \uC790\uB3D9 \uC785\uB825)",copyName:"{{name}} (\uBCF5\uC0AC)"},loadTable:{title:"\uC800\uC7A5\uB41C \uB2E8\uC5B4 \uD45C \uBD88\uB7EC\uC624\uAE30",empty:"\uC800\uC7A5\uB41C \uB2E8\uC5B4 \uD45C\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.",loadButton:"\uBD88\uB7EC\uC624\uAE30",itemCount:"{{count}}\uAC1C",deleteAriaLabel:"\uC0AD\uC81C",sort:{newest:"\uCD5C\uC2E0\uC21C",oldest:"\uC624\uB798\uB41C\uC21C",name:"\uC774\uB984\uC21C",count:"\uB2E8\uC5B4 \uC218"},view:{grid:"\uD45C\uB85C \uBCF4\uAE30",list:"\uB9AC\uC2A4\uD2B8\uB85C \uBCF4\uAE30"}},groupDeleteMessage:"\uADF8\uB8F9 \uB0B4 \uB2E8\uC5B4\uD45C\uB294 '\uADF8\uB8F9 \uC5C6\uC74C'\uC73C\uB85C \uC774\uB3D9\uD569\uB2C8\uB2E4.",groupNamePlaceholder:"\uADF8\uB8F9 \uC774\uB984",store:{badge:"\uB9D0\uADC0\uC790\uB8CC\uC2E4"},card:{sub:"\uB2E8\uC5B4\uD45C \uCE74\uB4DC",empty:"\uC774 \uCE74\uB4DC\uC5D0 \uB2E8\uC5B4\uD45C\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4."},toast:{renameError:"\uC774\uB984 \uBCC0\uACBD\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4",saveError:"\uC800\uC7A5\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4",deleteError:"\uC0AD\uC81C\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4",duplicateError:"\uBCF5\uC81C\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4",saveSuccess:"\uB2E8\uC5B4\uD45C\uAC00 \uC800\uC7A5\uB418\uC5C8\uC2B5\uB2C8\uB2E4."},scoring:{o:"{{word}} \uB9DE\uC74C",triangle:"{{word}} \uC560\uB9E4",x:"{{word}} \uD2C0\uB9BC",button:"\uCC44\uC810\uD558\uAE30",pickTitle:"\uB204\uAD6C\uB97C \uCC44\uC810\uD560\uAE4C\uC694?",pickSubtitle:"\u2018{{name}}\u2019 \uD45C\uB85C \uD6C8\uB828\uD55C \uACE0\uAC1D\uC744 \uACE0\uB974\uC138\uC694.",pickSearch:"\uC774\uB984 \uB610\uB294 \uC804\uD654\uBC88\uD638\uB85C \uCC3E\uAE30",pickEmpty:"\uB4F1\uB85D\uB41C \uACE0\uAC1D\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",pickNoMatch:"\uCC3E\uB294 \uACE0\uAC1D\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",pickAgain:"\uACE0\uAC1D \uB2E4\uC2DC \uACE0\uB974\uAE30",scoringFor:"{{name}} \uB2D8 \uCC44\uC810 \uC911",none:"\uCE78\uC744 \uB20C\uB7EC \u25CB \xB7 \u25B3 \xB7 \u2715 \uB97C \uB9E4\uAE30\uC138\uC694.",tally:"{{marked}}\uCE78 \uCC44\uC810 \xB7 \u25CB {{o}} \xB7 \u25B3 {{triangle}} \xB7 \u2715 {{x}} \xB7 \uC815\uB2F5\uB960 {{rate}}%",save:"\uCC44\uC810 \uC800\uC7A5",saved:"{{name}} \uB2D8\uC758 \uCC44\uC810 {{count}}\uCE78\uC744 \uC800\uC7A5\uD588\uC2B5\uB2C8\uB2E4.",reviewTitle:"\uBCF5\uC2B5\uD45C\uB97C \uB9CC\uB4E4\uAE4C\uC694?",reviewMessage:"{{name}} \uB2D8\uC774 \uD2C0\uB9AC\uAC70\uB098 \uC560\uB9E4\uD588\uB358 {{count}}\uCE78\uC73C\uB85C \uC0C8 \uD45C\uB97C \uB9CC\uB4ED\uB2C8\uB2E4. \uB9DE\uD78C \uCE78\uC740 \uBE60\uC9D1\uB2C8\uB2E4.",reviewConfirm:"\uBCF5\uC2B5\uD45C \uB9CC\uB4E4\uAE30",reviewDescription:"\u2018{{name}}\u2019 \uCC44\uC810\uC5D0\uC11C \uD2C0\uB9AC\uAC70\uB098 \uC560\uB9E4\uD588\uB358 {{count}}\uCE78\uC744 \uBAA8\uC740 \uD45C\uC785\uB2C8\uB2E4.",reviewCreated:"\u2018{{name}}\u2019\uC744(\uB97C) \uB9CC\uB4E4\uC5C8\uC2B5\uB2C8\uB2E4 \u2014 {{count}}\uCE78.",discardTitle:"\uB9E4\uAE34 \uCC44\uC810\uC744 \uBC84\uB9B4\uAE4C\uC694?",discardMessage:"{{count}}\uCE78\uC744 \uB9E4\uACBC\uC9C0\uB9CC \uC544\uC9C1 \uC800\uC7A5\uD558\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4. \uB098\uAC00\uBA74 \uC0AC\uB77C\uC9D1\uB2C8\uB2E4.",discardConfirm:"\uBC84\uB9AC\uACE0 \uB098\uAC00\uAE30"}},B2={editBanner:{message:"\uC800\uC7A5\uD558\uBA74 \uC9C0\uAE08 \uC218\uC815 \uC911\uC778 \uB2E8\uC5B4\uD45C\uAC00 \uAC31\uC2E0\uB429\uB2C8\uB2E4."},filterTitle:"\uB2E8\uC5B4 \uAC80\uC0C9 \uC124\uC815",filter:{positionAny:"\uBB34\uAD00",positionHead:"\uC5B4\uB450",positionMid:"\uC5B4\uC911",positionTail:"\uC5B4\uB9D0",difficulty:"\uB4F1\uAE09",grade:"{{n}}\uB4F1\uAE09",syllables:"\uC74C\uC808 \uC218",syllable:"{{n}}\uC74C\uC808",syllable5plus:"5\uC74C\uC808 \uC774\uC0C1",partOfSpeech:"\uD488\uC0AC",pos:{noun:"\uCCB4\uC5B8(\uBA85\uC0AC, \uC218\uC0AC)",verb:"\uC6A9\uC5B8(\uB3D9\uC0AC, \uD615\uC6A9\uC0AC)",modifier:"\uC218\uC2DD\uC5B8(\uBD80\uC0AC, \uAD00\uD615\uC0AC)"},wordType:"\uC720\uD615",type:{native:"\uACE0\uC720\uC5B4",sino:"\uD55C\uC790\uC5B4",foreign:"\uC678\uB798\uC5B4",mixed:"\uD63C\uC885\uC5B4"},exclude:"\uC81C\uC678",excludeNoImage:"\uC774\uBBF8\uC9C0 \uC5C6\uC74C"},searchButton:"\uAC80\uC0C9\uD558\uAE30",resultUnit:"\uB2E8\uC5B4",remaining:"{{count}}\uAC1C \uB0A8\uC74C",resultDisc:"\uC6D0\uD558\uB294 {{unit}} \uC120\uD0DD\uD558\uC138\uC694. {{max}}\uAC1C\uAE4C\uC9C0 \uC120\uD0DD\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4. ({{selected}}/{{max}})",resultTitlePrefix:"\uCD1D ",resultTitleSuffix:"\uAC1C\uC758 {{unit}} \uAC80\uC0C9\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",emptyResult:"\uAC80\uC0C9 \uACB0\uACFC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.",groupCount:"{{count}}\uAC1C",sort:{aria:"\uC815\uB82C",match:"\uC2DC\uC791 \uC6B0\uC120",ganada:"\uAC00\uB098\uB2E4\uC21C \u2191",ganadaDesc:"\uAC00\uB098\uB2E4\uC21C \u2193",syllable:"\uC74C\uC808 \uC218 \u2191",syllableDesc:"\uC74C\uC808 \uC218 \u2193",grade:"\uB4F1\uAE09\uC21C \u2191",gradeDesc:"\uB4F1\uAE09\uC21C \u2193"},pageSize:"{{count}}\uAC1C\uC529 \uBCF4\uAE30",pageSizeAria:"\uD398\uC774\uC9C0 \uD06C\uAE30",popup:{title:"{{n}}\uBC88 \uCE78\uC5D0 \uB123\uC744 \uB2E8\uC5B4\uB97C \uC120\uD0DD\uD558\uC138\uC694"}},D2={clearAllSelection:"\uBAA8\uB450 \uC120\uD0DD \uD574\uC81C",divLine:"\uB300\uB9BD\uC120",removePair:"\uB300\uB9BD\uC30D \uBE7C\uAE30",removeWord:"\uB2E8\uC5B4 \uBE7C\uAE30"},S2={title:"\uC8FC\uC81C\uBCC4 \uB4E3\uAE30",subtitle:"\uC8FC\uC81C\uB97C \uC120\uD0DD\uD558\uACE0 \uB4E3\uAE30 \uD6C8\uB828\uC744 \uC2DC\uC791\uD558\uC138\uC694.",noiseTitle:"\uC18C\uC74C \uD558 \uBB38\uC7A5\uB4E3\uAE30",shortStoryTitle:"\uC9E7\uC740 \uC774\uC57C\uAE30 \uB4E3\uAE30",FOOD:"\uC74C\uC2DD",HLTH:"\uAC74\uAC15",WETH:"\uB0A0\uC528",PRSN:"\uC778\uBB3C",KRCT:"\uD55C\uAD6D\uBB38\uD654",STRY:"\uC774\uC57C\uAE30",LOCA:"\uC9C0\uC5ED",SOAR:"\uC0AC\uD68C\uC640 \uC608\uC220",NTSC:"\uC790\uC5F0\uACFC \uACFC\uD559",SPRT:"\uC2A4\uD3EC\uCE20",sub:{TRKRFD:"\uD55C\uAD6D \uC804\uD1B5\uC74C\uC2DD",MDKRFD:"\uD55C\uAD6D \uD604\uB300\uC74C\uC2DD",WRLDFD:"\uC138\uACC4\uC758 \uC74C\uC2DD",MTRFRT:"\uC2DD\uC7AC\uB8CC\uC640 \uACFC\uC77C",GEFDKL:"\uC74C\uC2DD \uC0C1\uC2DD",HTETHB:"\uAC74\uAC15\uD55C \uC2DD\uC2B5\uAD00",DISILL:"\uBCD1\uACFC \uC9C8\uD658",EXCISE:"\uC6B4\uB3D9",GEHTKL:"\uAC74\uAC15\uC0C1\uC2DD",GESSKL:"\uACC4\uC808\uC0C1\uC2DD",SNWRAN:"\uB208\uACFC \uBE44",WTHFCT:"\uC77C\uAE30\uC608\uBCF4",GEWTKL:"\uB0A0\uC528\uC0C1\uC2DD",JODYPS:"\uC870\uC120\uC2DC\uB300",MDKRPS:"\uD55C\uAD6D \uADFC\uD604\uB300",THKDPS:"\uC0BC\uAD6D\uC2DC\uB300",WRLART:"\uC138\uACC4\uC758 \uC608\uC220\uAC00",WRLPSN:"\uC138\uACC4\uC758 \uC778\uBB3C",KRLANG:"\uC6B0\uB9AC\uB9D0",TRPLCT:"\uC804\uD1B5\uB180\uC774",HERITG:"\uBB38\uD654\uC7AC",EVTFES:"\uD589\uC0AC\uC640 \uCD95\uC81C",GECTKL:"\uC0C1\uC2DD",FRYTAL:"\uB3D9\uD654",AMZING:"\uC2E0\uAE30\uD55C \uC774\uC57C\uAE30",DAYSTR:"\uC77C\uC0C1 \uC18D \uC774\uC57C\uAE30",KRLDMK:"\uD55C\uAD6D\uC758 \uBA85\uC18C",SELNMK:"\uC11C\uC6B8\uC758 \uBA85\uC18C",WRDTRB:"\uC138\uACC4\uC5EC\uD589",NAVIGT:"\uAE38 \uCC3E\uAE30",KRSOCI:"\uD55C\uAD6D",ECONEW:"\uACBD\uC81C\uC640 \uB274\uC2A4",GENART:"\uC608\uC220",GELFKL:"\uC0DD\uD65C \uC0C1\uC2DD",ANIMAL:"\uB3D9\uBB3C",PLANTS:"\uC2DD\uBB3C",ETHPLT:"\uC9C0\uAD6C",TOLELC:"\uB3C4\uAD6C\uC640 \uC804\uC790\uC81C\uD488",GESCKL:"\uACFC\uD559\uC0C1\uC2DD",INVDSP:"\uAC1C\uC778\uACBD\uAE30",MARART:"\uACA9\uD22C\uAE30",TEAMSP:"\uB2E8\uCCB4\uACBD\uAE30",FOOTBL:"\uCD95\uAD6C",GESPKL:"\uC2A4\uD3EC\uCE20 \uC0C1\uC2DD"}},j2={maxUses:"\uCD5C\uB300 \uC0AC\uC6A9 \uD69F\uC218 (\uBE44\uC6CC\uB450\uBA74 \uBB34\uC81C\uD55C)",redirect:"\uC774\uB3D9\uD560 \uD398\uC774\uC9C0 URL (\uBE44\uC6CC\uB450\uBA74 \uC571 \uBA54\uC778)",creating:"\uC0DD\uC131 \uC911\u2026",create:"\uB9C1\uD06C \uC0DD\uC131",created:"\u2713 \uB9C1\uD06C\uAC00 \uC0DD\uC131\uB418\uC5C8\uC2B5\uB2C8\uB2E4",copied:"\uBCF5\uC0AC\uB428!",copy:"\uBCF5\uC0AC",loading:"\uBD88\uB7EC\uC624\uB294 \uC911\u2026",empty:"\uC0DD\uC131\uB41C \uB9C1\uD06C\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.",uses:"{{count}}\uD68C \uC0AC\uC6A9",expiresAt:"\uB9CC\uB8CC: {{date}}",createdAt:"\uC0DD\uC131: {{date}}",confirmDelete:"\uC0AD\uC81C\uD560\uAE4C\uC694?",deactivate:"\uBE44\uD65C\uC131\uD654",delete:"\uC0AD\uC81C",status:{active:"\uC720\uD6A8",expired:"\uB9CC\uB8CC",inactive:"\uBE44\uD65C\uC131"}},T2={passwordPlaceholder:"\uBE44\uBC00\uBC88\uD638 \uC785\uB825"},E2={subtitle:"\uC8FC\uC81C\uB97C \uC120\uD0DD\uD558\uC5EC \uB4E3\uAE30 \uC5F0\uC2B5\uC744 \uC9C4\uD589\uD558\uC138\uC694."},M2={direction:{left:"\uC88C",right:"\uC6B0",label:"\uBC29\uD5A5"},wornDate:"\uCC29\uC6A9\uC77C",deviceType:"\uC885\uB958",brand:"\uBE0C\uB79C\uB4DC",fitType:"\uCC29\uC6A9\uD615\uD0DC",productName:"\uC81C\uD488\uBA85",validationError:{brandAndProduct:"\uBE0C\uB79C\uB4DC\uC640 \uC81C\uD488\uBA85\uC744 \uC785\uB825\uD574 \uC8FC\uC138\uC694."},addNew:"\uC0C8 \uAE30\uAE30 \uCD94\uAC00",selectFromList:"\uBAA9\uB85D\uC5D0\uC11C \uC120\uD0DD",removeDevice:"\uCC29\uC6A9 \uD574\uC81C"},L2={stat:{totalCustomers:"\uCD1D \uACE0\uAC1D",monthlyVisits:"\uC774\uB2EC \uCD1D \uBC29\uBB38"},chart:{visitDetail:"\uC0C1\uC138 \uBC29\uBB38 \uD604\uD669",trainingDetail:"\uC0C1\uC138 \uD6C8\uB828 \uD604\uD669",weekly:"\uC8FC\uBCC4",daily:"\uC77C\uBCC4",periodMonth:"\uC6D4",periodWeek:"\uC8FC",weeklyPrefix:"\uC8FC\uAC04",monthlyPrefix:"\uC6D4\uAC04",visit:"\uBC29\uBB38",reservation:"\uC608\uC57D",trainingDone:"\uD6C8\uB828 \uC644\uB8CC",trainingInProgress:"\uD6C8\uB828 \uC911",weekRange:"{{start}}~{{end}}",week:"{{n}}\uC8FC"},subscriptionStatus:{active:"{{pct}}% \uD65C\uC131",expired:"{{pct}}% \uB9CC\uB8CC",unused:"{{pct}}% \uBBF8\uC0AC\uC6A9"}},$2={editBanner:{message:"\uC800\uC7A5\uD558\uBA74 \uC9C0\uAE08 \uC218\uC815 \uC911\uC778 \uB300\uB9BD\uC30D\uD45C\uAC00 \uAC31\uC2E0\uB429\uB2C8\uB2E4."},phonemeSelect:{title:"\uC74C\uC18C \uC120\uD0DD",vs:"\uB300"},caution:"\uC720\uC758\uC0AC\uD56D",mode:{include:"\uC74C\uC18C \uD3EC\uD568",pick:"\uC74C\uC18C \uB300\uB9BD",contrast:"\uC74C\uC18C \uB300\uB9BD \uC9C0\uC815",infoTitle:"\uB300\uB9BD \uBC29\uC2DD",infoInclude:"\uC74C\uC18C \uD3EC\uD568 \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uAC00 \uBAA8\uB450 \uB4E4\uC5B4\uAC04 \uB2E8\uC5B4\uC640 \uADF8 \uB300\uB9BD\uC30D\uC744 \uCC3E\uC544\uC694.",infoPick:"\uC74C\uC18C \uB300\uB9BD \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uAC00 \uB300\uB9BD\uC30D \uB450 \uB2E8\uC5B4\uC758 \uC2E4\uC81C \uCC28\uC774\uC810\uC77C \uB54C\uB9CC \uB9E4\uCE6D\uB3FC\uC694.",infoContrast:"\uC74C\uC18C \uB300\uB9BD \uC9C0\uC815 \u2014 \uAE30\uC900 \uB2E8\uC5B4\uC640 \uB300\uB9BD \uB2E8\uC5B4\uC758 \uC74C\uC18C\uB97C \uAC01\uAC01 \uC9C1\uC811 \uC120\uD0DD\uD574 \uB300\uB9BD\uC30D\uC744 \uCC3E\uC544\uC694."},count:"{{n}}\uAC1C",input:{char:"\uAE00\uC790 \uC120\uD0DD",pron:"\uBC1C\uC74C \uC120\uD0DD",infoTitle:"\uC785\uB825 \uBC29\uC2DD",infoChar:"\uAE00\uC790 \uC120\uD0DD \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uB85C \uB2E8\uC5B4(\uAE00\uC790 \uAE30\uC900)\uB97C \uCC3E\uC740 \uD6C4, \uB2E8\uC5B4\uC758 \uD45C\uC900 \uBC1C\uC74C \uB300\uB9BD\uC30D\uC744 \uCC3E\uC2B5\uB2C8\uB2E4.",infoPron:"\uBC1C\uC74C \uC120\uD0DD \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uB85C \uD45C\uC900 \uBC1C\uC74C \uB300\uB9BD\uC30D\uC744 \uCC3E\uC2B5\uB2C8\uB2E4."},phonemeN:"{{n}}\uBC88 \uC74C\uC808",phonemeSingleLabel:"\uC74C\uC808",phonemeContrastSingleLabel:"\uB300\uB9BD \uC74C\uC808",ordinals:["\uCCAB\uBC88\uC9F8","\uB450\uBC88\uC9F8","\uC138\uBC88\uC9F8","\uB124\uBC88\uC9F8"],phonemeOrdinalLabel:"{{ordinal}} \uC74C\uC808",phonemeContrastOrdinalLabel:"\uB300\uB9BD {{ordinal}} \uC74C\uC808",composition:"\uC815\uB2F5 \uB2E8\uC5B4 \uAD6C\uC131",syllableCount:"\uC74C\uC808 \uC218",syllableN:"{{n}}\uC74C\uC808",syllableNPlus:"{{n}}\uC74C\uC808 \uC774\uC0C1",onset:"\uCD08\uC131",vowel:"\uBAA8\uC74C",coda:"\uC885\uC131",filter:{searchOptionsTitle:"\uB300\uB9BD \uC124\uC815",searchModeLabel:"\uB300\uB9BD \uBC29\uC2DD",countLabel:"\uC785\uB825 \uC74C\uC808 \uAC2F\uC218",inputModeLabel:"\uC785\uB825 \uBC29\uC2DD",phonemeOrder:"\uC785\uB825 \uC74C\uC808 \uC704\uCE58",phonemeOrderInfo:["\uC77C\uCE58: \uB300\uB9BD\uC30D\uC774 \uC815\uD655\uD788 \uAC19\uC740 \uC704\uCE58(\uC74C\uC808)\uC5D0\uC11C\uB9CC \uCC28\uC774 \uB098\uC57C \uB9E4\uCE6D\uB3FC\uC694.","\uBB34\uAD00: \uCC28\uC774 \uB098\uB294 \uC704\uCE58\uB294 \uC0C1\uAD00\uC5C6\uC774 \uB9E4\uCE6D\uB3FC\uC694."],orderAny:"\uBB34\uAD00",orderMatch:"\uC77C\uCE58",difficultyInfo:"\uAD6D\uB9BD\uAD6D\uC5B4\uC6D0\uC758 \uAE30\uCD08 \uC5B4\uD718 \uB4F1\uAE09\uC774 \uACB0\uACFC\uC5D0 \uBC18\uC601\uB429\uB2C8\uB2E4.",selectLabel:"\uC120\uD0DD",onlyHasImage:"\uC774\uBBF8\uC9C0 \uC788\uB294 \uB2E8\uC5B4\uB9CC",onlySameStructure:"\uC74C\uC18C \uAD6C\uC870 \uAC19\uC740 \uB2E8\uC5B4\uB9CC"},searchLabel:{error:"\uB370\uC774\uD130 \uBD88\uB7EC\uC624\uAE30 \uC2E4\uD328",loading:"\uBD88\uB7EC\uC624\uB294 \uC911\u2026"},confirmMessage:"\uC120\uD0DD\uD55C {{unit}} {{count}}\uAC1C\uB97C \uD3EC\uD568\uD55C \uB2E8\uC5B4 \uD45C \uC815\uBCF4\uAC00 \uC0AC\uB77C\uC9D1\uB2C8\uB2E4.",resetOptions:"\uAC80\uC0C9 \uC635\uC158 \uCD08\uAE30\uD654",phonemeContrast:"\uB300\uB9BD {{n}}\uBC88 \uC74C\uC808",infoNotes:["\uBBF8\uB9AC\uBCF4\uAE30 \uAE00\uC790\uB294 \uC120\uD0DD\uD55C \uC74C\uC18C\uC758 \uC870\uD569 \uC608\uC2DC\uC785\uB2C8\uB2E4. \uC2E4\uC81C \uAC80\uC0C9\uC740 \uD574\uB2F9 \uC74C\uC18C\uAC00 \uD3EC\uD568\uB41C \uBAA8\uB4E0 \uB2E8\uC5B4\uB97C \uB300\uC0C1\uC73C\uB85C \uD569\uB2C8\uB2E4.","\uCD08\uC131 '\u3147'\uC740 \uC120\uD0DD\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4. \uB2E8\uC5B4 \uC55E\uC5D0 \uC624\uB294 \u3147\uC740 \uC2E4\uC9C8\uC801\uC73C\uB85C \uBB34\uC74C\uC774\uC5B4\uC11C \uB300\uB9BD\uC30D \uC131\uB9BD\uC5D0 \uC601\uD5A5\uC744 \uC8FC\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.","\uCD08\uC131\uACFC \uC885\uC131\uB9CC \uC120\uD0DD\uD558\uBA74 \uBAA8\uC74C\uC740 '\u314F'\uB85C \uC790\uB3D9 \uD45C\uC2DC\uB429\uB2C8\uB2E4.","\uC74C\uC18C \uAC1C\uC218\uB97C \uB298\uB9AC\uBA74 \uAC01 \uC74C\uC18C \uC0AC\uC774\uC758 \uB300\uB9BD\uC30D\uC744 \uAC80\uC0C9\uD569\uB2C8\uB2E4."]},R2={sentenceTyping:{roundCount:"{{rounds}}\uBB38\uC81C \xB7 \uBB38\uC81C\uB2F9 {{timeLimit}}\uCD08"},wordDefense:{me:"\uB098"},dictation:{title:"\uBC1B\uC544\uC4F0\uAE30",desc:"\uBB38\uC7A5\uC744 \uB4E3\uACE0 \uC815\uD655\uD788 \uBC1B\uC544\uC801\uB294 \uC5F0\uC2B5\uC785\uB2C8\uB2E4.",comingSoon:"\uAD6C\uD604 \uC608\uC815: \uC74C\uC131 \uC7AC\uC0DD, \uC785\uB825 \uD544\uB4DC, \uC815\uB2F5 \uBE44\uAD50"},result:{heading:"{{number}}\uB2E8\uACC4 \uD574\uB2F5",retry:"\uB2E4\uC2DC \uD480\uAE30"},common:{accuracy:"{{pct}}% \uC815\uD655\uB3C4"},soundMatch:{title:"\uC18C\uB9AC \uB9E4\uCE6D",desc:"\uAC19\uC740 \uC18C\uB9AC\uB97C \uAC00\uC9C4 \uB2E8\uC5B4 \uB610\uB294 \uBB38\uC7A5\uC744 \uBE60\uB974\uAC8C \uB9E4\uCE6D\uD558\uB294 \uAC8C\uC784\uC785\uB2C8\uB2E4.",comingSoon:"\uAD6C\uD604 \uC608\uC815: \uD50C\uB808\uC774 \uBC84\uD2BC, \uD0C0\uC774\uBA38, \uC810\uC218 \uC9D1\uACC4"},orderSequence:{title:"\uBB38\uC7A5 \uC21C\uC11C\uD654",desc:"\uD769\uC5B4\uC9C4 \uBB38\uC7A5 \uC870\uAC01\uC744 \uC62C\uBC14\uB978 \uC21C\uC11C\uB85C \uBC30\uC5F4\uD558\uB294 \uD6C8\uB828\uC785\uB2C8\uB2E4.",comingSoon:"\uAD6C\uD604 \uC608\uC815: \uBB38\uC7A5 \uC138\uD2B8, \uC21C\uC11C \uD655\uC778 \uC778\uD130\uD398\uC774\uC2A4"},speedListen:{title:"\uC18D\uB3C4 \uB4E3\uAE30",desc:"\uC2DC\uAC04 \uC81C\uD55C \uB0B4\uC5D0 \uBB38\uC7A5\uC758 \uB2E8\uC5B4 \uC218\uB97C \uB9DE\uCD94\uB294 \uB3C4\uC804\uD615 \uAC8C\uC784\uC785\uB2C8\uB2E4.",comingSoon:"\uAD6C\uD604 \uC608\uC815: \uC81C\uD55C\uC2DC\uAC04, \uC810\uC218\uD310"},noiseChallenge:{title:"\uC18C\uC74C \uCC4C\uB9B0\uC9C0",desc:"\uBC30\uACBD \uC18C\uC74C \uC18D\uC5D0\uC11C \uBB38\uC7A5\uC744 \uBD84\uBCC4\uD558\uB294 \uC5F0\uC2B5\uC785\uB2C8\uB2E4.",comingSoon:"\uAD6C\uD604 \uC608\uC815: \uB2E4\uC591\uD55C \uC18C\uC74C \uB808\uBCA8, \uC810\uC218 \uC9D1\uACC4"},fastListen:{title:"\uBE60\uB978 \uB4E3\uAE30",desc:"\uC9E7\uC740 \uBB38\uC7A5\uC744 \uBE60\uB974\uAC8C \uB4E4\uB824\uC8FC\uACE0 \uD575\uC2EC \uB2E8\uC5B4\uB97C \uC120\uD0DD\uD558\uB294 \uAC8C\uC784\uC785\uB2C8\uB2E4.",comingSoon:"\uAD6C\uD604 \uC608\uC815: \uB09C\uC774\uB3C4\uBCC4 \uC18D\uB3C4, \uD0C0\uC774\uBA38"},shadowing:{title:"\uC250\uB3C4\uC789",desc:"\uBB38\uC7A5\uC744 \uB530\uB77C \uB9D0\uD558\uBA70 \uBC1C\uC74C\uACFC \uC5B5\uC591\uC744 \uC5F0\uC2B5\uD558\uB294 \uBAA8\uB4DC\uC785\uB2C8\uB2E4.",comingSoon:"\uAD6C\uD604 \uC608\uC815: \uC7AC\uC0DD, \uB179\uC74C, \uBE44\uAD50 \uD53C\uB4DC\uBC31"},phonemeHunt:{title:"\uC74C\uC6B4 \uCC3E\uAE30",desc:"\uD2B9\uC815 \uC74C\uC6B4(\uBC1C\uC74C)\uC744 \uD3EC\uD568\uD55C \uB2E8\uC5B4\uB97C \uCC3E\uC544\uB0B4\uB294 \uAC8C\uC784\uC785\uB2C8\uB2E4.",comingSoon:"\uAD6C\uD604 \uC608\uC815: \uC74C\uC6B4 \uD544\uD130, \uD78C\uD2B8 \uAE30\uB2A5"}},P2={lead:`\uC544\uC774\uD574\uBE0C\uB294 \uC18C\uB9AC\uB97C \uD1B5\uD574
827
+ `),this.name="StorageNotConfiguredError"}};function Pm(e){Rm(e)}function Qo(e,n){if(!e)return null;const a=Kn();return a?.resolvePath?a.resolvePath(e,n):n?`${n}/${e}.mp3`:null}async function es(e){if(!e)return null;const n=Kn();if(!n)throw new Jo("getSignedOrPublicUrl");try{return await n.resolveUrl(e)}catch{return null}}async function ts(e){const n=Kn();if(!n)throw new Jo("downloadSound");return n.download(e)}function Im(){return Kn()?.noiseBaseUrl??"/sounds/noise"}function ns(){const e=Number(Kn()?.noiseFileGain);return Number.isFinite(e)&&e>0?e:1}const as="__ihab_core_tts_config__";function Ka(){return globalThis[as]?.urlResolver??null}function Fm(){return globalThis[as]?.fallbackUrlResolver??null}const Om="__ihab_core_pronunciation_resolver__";function Hm(){return globalThis[Om]??null}let un=null;const Yn=new WeakMap,Ya=new WeakMap,Za=new WeakMap;let rs=!1;const os=e=>Math.max(0,Math.min(1,Number.isFinite(e)?e:0));function Vm(){if(rs||typeof document>"u")return;rs=!0;const e=()=>{try{un&&un.state!=="running"&&un.resume()}catch{}};for(const n of["pointerdown","touchend","keydown"])document.addEventListener(n,e,{capture:!0,passive:!0})}function ss(){if(un)return un;try{const e=window.AudioContext||window.webkitAudioContext;return e?(un=new e,Vm(),un):null}catch{return null}}function Xa(){try{un?.resume()}catch{}}function Ja(e,n){const a=Yn.get(n);if(a)return a;try{const r=e.createMediaElementSource(n),o=e.createGain(),i=e.createAnalyser();i.fftSize=1024,i.smoothingTimeConstant=.6,o.gain.value=os(Ya.get(n)??n.volume),r.connect(o),o.connect(i),o.connect(e.destination);try{n.volume=1}catch{}const l={gain:o,analyser:i};return Yn.set(n,l),l}catch{return null}}function ma(e){if(!e)return Promise.resolve(null);const n=Yn.get(e);if(n)return Promise.resolve(n.analyser);const a=ss();if(!a)return Promise.resolve(null);if(a.state==="running")return Promise.resolve(Ja(a,e)?.analyser??null);const r=Za.get(e);if(r)return r;const o=Promise.resolve().then(()=>a.resume()).then(()=>a.state==="running"?Ja(a,e)?.analyser??null:null).catch(()=>null).finally(()=>{Za.delete(e)});return Za.set(e,o),o}function zm(e){if(!e)return null;const n=Yn.get(e);if(n)return n.analyser;const a=ss();return a?a.state==="running"?Ja(a,e)?.analyser??null:(ma(e),null):null}function dn(e,n){const a=os(n);Ya.set(e,a);const r=Yn.get(e);if(r){try{e.volume!==1&&(e.volume=1)}catch{}const o=r.gain.gain;try{const i=r.gain.context.currentTime;o.cancelScheduledValues(i),o.setTargetAtTime(a,i,.01)}catch{try{o.value=a}catch{}}return"gain"}try{e.volume=a}catch{}return"element"}function fa(e){return Ya.get(e)??e.volume}function Wm(e,n){e.getFloatTimeDomainData(n);let a=0;for(let r=0;r<n.length;r++){const o=n[r];a+=o*o}return Math.sqrt(a/n.length)}const qm="__ihab_core_image_config__";function Ln(){return globalThis[qm]??null}const is="word_image_existence_map_v1";let wn=null;const Ca=new Map;function Um(){if(wn)return wn;try{const e=typeof localStorage<"u"?localStorage.getItem(is):null;wn=e?JSON.parse(e):{}}catch{wn={}}return wn}let Qa=null;function Gm(){Qa||(Qa=setTimeout(()=>{Qa=null;try{typeof localStorage<"u"&&wn&&localStorage.setItem(is,JSON.stringify(wn))}catch{}},200))}function Km(e,n){return`${e}_${n??1}`}async function ls(e,n){const a=Um(),r=Km(e,n);if(r in a)return a[r];if(Ca.has(r))return Ca.get(r);const o=Ln();if(!o)return!1;const i=o(e,n);if(!i)return!1;const l=fetch(i,{method:"HEAD",signal:AbortSignal.timeout(8e3)}).then(c=>c.status>=500?null:c.ok,()=>null).then(c=>(Ca.delete(r),c===null?!1:(a[r]=c,Gm(),c)));return Ca.set(r,l),l}const cs=["\u3131","\u3132","\u3134","\u3137","\u3138","\u3139","\u3141","\u3142","\u3143","\u3145","\u3146","\u3147","\u3148","\u3149","\u314A","\u314B","\u314C","\u314D","\u314E"],us=["\u314F","\u3150","\u3151","\u3152","\u3153","\u3154","\u3155","\u3156","\u3157","\u3158","\u3159","\u315A","\u315B","\u315C","\u315D","\u315E","\u315F","\u3160","\u3161","\u3162","\u3163"],Ym=["","\u3131","\u3132","\u3133","\u3134","\u3135","\u3136","\u3137","\u3139","\u313A","\u313B","\u313C","\u313D","\u313E","\u313F","\u3140","\u3141","\u3142","\u3144","\u3145","\u3146","\u3147","\u3148","\u314A","\u314B","\u314C","\u314D","\u314E"];function Zn(e){if(!e)return null;const n=e.charCodeAt(0)-44032;return n<0||n>=11172?null:{cho:Math.floor(n/588),jung:Math.floor(n%588/28),jong:n%28}}function Zm(e){const n=Zn(e[0]||"");return n?cs[n.cho]:""}function Xm(e,n){if(!n)return!0;const a=[...n],r=c=>cs.includes(c),o=c=>us.includes(c),i=a.map(c=>r(c)?"cho":o(c)?"jung":Zn(c)?"syl":"other");if(i.includes("other"))return e.toLowerCase().includes(n.toLowerCase());const l=[...e];for(let c=0;c+a.length<=l.length;c++){let u=!0;for(let d=0;d<a.length;d++){const p=l[c+d],h=i[d];if(h==="cho"){if(Zm(p)!==a[d]){u=!1;break}}else if(h==="jung"){const m=Zn(p);if(!m||us[m.jung]!==a[d]){u=!1;break}}else{const m=Zn(a[d]);if(m&&m.jong===0){const b=Zn(p);if(!b||b.cho!==m.cho||b.jung!==m.jung){u=!1;break}}else if(p!==a[d]){u=!1;break}}}if(u)return!0}return!1}const Jm={3:["\u3131","\u3145"],5:["\u3134","\u3148"],6:["\u3134","\u314E"],9:["\u3139","\u3131"],10:["\u3139","\u3141"],11:["\u3139","\u3142"],12:["\u3139","\u3145"],13:["\u3139","\u314C"],14:["\u3139","\u314D"],15:["\u3139","\u314E"],18:["\u3142","\u3145"]};Object.fromEntries(Object.entries(Jm).map(([e,n])=>[n.join(""),Ym[Number(e)]]));const Qm="word_pair_index_v2",e0="word_pair_index_sig_v2";let ga=null;function t0(){try{if(typeof localStorage>"u")return null;const e=localStorage.getItem(Qm),n=localStorage.getItem(e0);return!e||!n?null:{index:JSON.parse(e),sig:n}}catch{return null}}function n0(){if(ga)return ga;const e=t0();return e?(ga=e.index,e.sig,ga):null}const a0={\u314F:{nucleus:"\u314F"},\u3151:{glide:"j",nucleus:"\u314F"},\u3153:{nucleus:"\u3153"},\u3155:{glide:"j",nucleus:"\u3153"},\u3157:{nucleus:"\u3157"},\u315B:{glide:"j",nucleus:"\u3157"},\u315C:{nucleus:"\u315C"},\u3160:{glide:"j",nucleus:"\u315C"},\u3161:{nucleus:"\u3161"},\u3163:{nucleus:"\u3163"},\u3150:{nucleus:"\u3154/\u3150"},\u3152:{glide:"j",nucleus:"\u3154/\u3150"},\u3154:{nucleus:"\u3154/\u3150"},\u3156:{glide:"j",nucleus:"\u3154/\u3150"},\u3158:{glide:"w",nucleus:"\u314F"},\u3159:{glide:"w",nucleus:"\u3154/\u3150"},\u315A:{glide:"w",nucleus:"\u3154/\u3150"},\u315D:{glide:"w",nucleus:"\u3153"},\u315E:{glide:"w",nucleus:"\u3154/\u3150"},\u315F:{glide:"w",nucleus:"\u3163"},\u3162:{glide:"\u0270",nucleus:"\u3163"}},er=/[ㄱ-ㅎ]/,r0=/[ㅏ-ㅣ]/;function ds(e){for(let n=e.length-1;n>=0;n--){const a=e[n],r=a.charCodeAt(0);if(r>=44032&&r<=55203||er.test(a)||r0.test(a))return a}return null}function o0(e){const n=ds(e);if(!n)return"\uAC00";const a=n.charCodeAt(0);return a>=44032&&a<=55203?(a-44032)%28!==0?"\uC774":"\uAC00":er.test(n)?"\uC774":"\uAC00"}function s0(e){return`${e}${o0(e)}`}function i0(e){const n=ds(e);if(!n)return"\uB97C";const a=n.charCodeAt(0);return a>=44032&&a<=55203?(a-44032)%28!==0?"\uC744":"\uB97C":er.test(n)?"\uC744":"\uB97C"}function l0(e){return`${e}${i0(e)}`}function c0(e,n,a){const r=e.slice(),[o]=r.splice(n,1);return r.splice(a,0,o),r}function Xn(e,n=Math.random){const a=e.slice();for(let r=a.length-1;r>0;r--){const o=Math.floor(n()*(r+1));[a[r],a[o]]=[a[o],a[r]]}return a}const u0=()=>{const e="\uC54C \uC218 \uC5C6\uB294 \uC624\uB958",n=typeof Tt?.t=="function"?Tt.t("common.unknownError",{defaultValue:e}):void 0;return typeof n=="string"&&n?n:e};function ps(e,n){if(n===void 0&&(n=u0()),e instanceof Error)return e.message||n;if(typeof e=="string")return e||n;if(e&&typeof e=="object"){const a=e;for(const r of[a.message,a.error_description,a.error])if(typeof r=="string"&&r)return r}return n}const d0="__ihab_core_word_pool__";function p0(){return globalThis[d0]??null}const hs=globalThis;function ms(e,n){const a=r=>{};try{const r=n();r&&typeof r.catch=="function"&&r.catch(a)}catch(r){a(r)}}function h0(e){ms("time",()=>hs.__ihabTrainingTimeLogger?.(e))}function m0(e){ms("completion",()=>hs.__ihabTrainingCompletionLogger?.(e))}function zt(e){return typeof e=="string"?e.trim()||null:typeof e=="number"?String(e):null}function f0(e){for(const n of["correct","isCorrect","heard","judgement"])if(typeof e[n]=="boolean")return e[n];return e.score===1?!0:e.score===0?!1:null}function C0(e){return Array.isArray(e)?e.map((n,a)=>{const r=n??{};return{index:a,itemId:zt(r.contextCode)??zt(r.itemId)??zt(r.itemCode)??zt(r.id),question:zt(r.question)??zt(r.sentence)??zt(r.word)??zt(r.targetSyllable),answer:zt(r.answer),selected:zt(r.selectedText)??zt(r.selected),correct:f0(r)}}):[]}const tr=globalThis;async function g0(){try{return await tr.__ihabNoiseSettingsStore?.load()??null}catch{return null}}function fs(e){const n=a=>{};try{const a=tr.__ihabNoiseSettingsStore?.save(e);a&&typeof a.catch=="function"&&a.catch(n)}catch(a){n(a)}}function ba(e){try{tr.__ihabNoiseSettingsStore?.applied?.(e)}catch{}}async function b0(e){if(typeof document<"u"){const n=document.activeElement;let a=null;try{if(a=document.createElement("textarea"),a.value=e,a.setAttribute("readonly",""),a.style.position="fixed",a.style.top="0",a.style.left="0",a.style.opacity="0",a.style.pointerEvents="none",document.body.appendChild(a),a.focus(),a.select(),a.setSelectionRange(0,e.length),document.execCommand("copy"))return!0}catch{}finally{if(a?.parentNode&&a.parentNode.removeChild(a),n&&n!==document.activeElement&&typeof n.focus=="function"&&n.isConnected)try{n.focus({preventScroll:!0})}catch{}}}try{if(typeof navigator<"u"&&navigator.clipboard&&typeof navigator.clipboard.writeText=="function")return await navigator.clipboard.writeText(e),!0}catch{}return!1}function y0(){return nr(new Date)}function nr(e){if(e==null||e==="")return"";const n=e instanceof Date?e:new Date(e);return isNaN(n.getTime())?"":new Intl.DateTimeFormat("fr-CA",{timeZone:"Asia/Seoul"}).format(n)}function Cs(e,n){if(!e)return"";const a=new Date(e).getTime();if(Number.isNaN(a))return"";const r=Math.max(0,Math.floor((Date.now()-a)/1e3)),o=Math.floor(r/60),i=Math.floor(o/60),l=Math.floor(i/24),c=Math.floor(l/7),u=Math.floor(l/30),d=Math.floor(l/365);return o<1?n("store.time.justNow","\uBC29\uAE08 \uC804"):o<60?n("store.time.minutesAgo",{n:o}):i<24?n("store.time.hoursAgo",{n:i}):l<7?n("store.time.daysAgo",{n:l}):c<5?n("store.time.weeksAgo",{n:c}):l<365?n("store.time.monthsAgo",{n:Math.min(u,11)}):n("store.time.yearsAgo",{n:d})}function gs(e,n={}){const{sep:a=".",pad:r=!0,trailingDot:o=!1,fallback:i="\u2014"}=n;if(!e)return i;const l=nr(e instanceof Date?e:String(e));if(!l)return i;const[c,u,d]=l.split("-"),p=r?u:String(Number(u)),h=r?d:String(Number(d));return`${c}${a}${p}${a}${h}${o?".":""}`}function Jn(e){if(!e)return e;const n=e.trim();return/^[₩$]/.test(n)?n:/원\s*$/.test(n)?"\u20A9"+n.replace(/\s*원\s*$/,"").trim():n}function bs(e,n){if(!e)return"-";const a=/^(\d{1,2}):(\d{2})$/.exec(e.trim());if(!a)return e;const r=Number(a[1]),o=Number(a[2]),i=a[1].padStart(2,"0");return o===0?n("date.timeH",{h:r,hh:i,mm:a[2]}):n("date.timeHM",{h:r,hh:i,m:o,mm:a[2]})}function ar(e){return(e??0).toLocaleString("ko-KR")}const v0=[{key:"FOOD",label:"\uC74C\uC2DD",icon:"salad",color:"#FF8A65",subs:[{key:"TRKRFD",label:"\uD55C\uAD6D \uC804\uD1B5\uC74C\uC2DD"},{key:"MDKRFD",label:"\uD55C\uAD6D \uD604\uB300\uC74C\uC2DD"},{key:"WRLDFD",label:"\uC138\uACC4\uC758 \uC74C\uC2DD"},{key:"MTRFRT",label:"\uC2DD\uC7AC\uB8CC\uC640 \uACFC\uC77C"},{key:"GEFDKL",label:"\uC74C\uC2DD \uC0C1\uC2DD"}]},{key:"HLTH",label:"\uAC74\uAC15",icon:"heart",color:"#66BB6A",subs:[{key:"HTETHB",label:"\uAC74\uAC15\uD55C \uC2DD\uC2B5\uAD00"},{key:"DISILL",label:"\uBCD1\uACFC \uC9C8\uD658"},{key:"EXCISE",label:"\uC6B4\uB3D9"},{key:"GEHTKL",label:"\uAC74\uAC15\uC0C1\uC2DD"}]},{key:"WETH",label:"\uB0A0\uC528",icon:"sun-medium",color:"#42A5F5",subs:[{key:"GESSKL",label:"\uACC4\uC808\uC0C1\uC2DD"},{key:"SNWRAN",label:"\uB208\uACFC \uBE44"},{key:"WTHFCT",label:"\uC77C\uAE30\uC608\uBCF4"},{key:"GEWTKL",label:"\uB0A0\uC528\uC0C1\uC2DD"}]},{key:"PRSN",label:"\uC778\uBB3C",icon:"user-round",color:"#AB47BC",subs:[{key:"JODYPS",label:"\uC870\uC120\uC2DC\uB300"},{key:"MDKRPS",label:"\uD55C\uAD6D \uADFC\uD604\uB300"},{key:"THKDPS",label:"\uC0BC\uAD6D\uC2DC\uB300"},{key:"WRLART",label:"\uC138\uACC4\uC758 \uC608\uC220\uAC00"},{key:"WRLPSN",label:"\uC138\uACC4\uC758 \uC778\uBB3C"}]},{key:"KRCT",label:"\uD55C\uAD6D\uBB38\uD654",icon:"bow-arrow",color:"#EC407A",subs:[{key:"KRLANG",label:"\uC6B0\uB9AC\uB9D0"},{key:"TRPLCT",label:"\uC804\uD1B5\uB180\uC774"},{key:"HERITG",label:"\uBB38\uD654\uC7AC"},{key:"EVTFES",label:"\uD589\uC0AC\uC640 \uCD95\uC81C"},{key:"GECTKL",label:"\uC0C1\uC2DD"}]},{key:"STRY",label:"\uC774\uC57C\uAE30",icon:"message-circle",color:"#8D6E63",subs:[{key:"FRYTAL",label:"\uB3D9\uD654"},{key:"AMZING",label:"\uC2E0\uAE30\uD55C \uC774\uC57C\uAE30"},{key:"DAYSTR",label:"\uC77C\uC0C1 \uC18D \uC774\uC57C\uAE30"}]},{key:"LOCA",label:"\uC9C0\uC5ED",icon:"map-pin",color:"#26A69A",subs:[{key:"KRLDMK",label:"\uD55C\uAD6D\uC758 \uBA85\uC18C"},{key:"SELNMK",label:"\uC11C\uC6B8\uC758 \uBA85\uC18C"},{key:"WRDTRB",label:"\uC138\uACC4\uC5EC\uD589"},{key:"NAVIGT",label:"\uAE38 \uCC3E\uAE30"}]},{key:"SOAR",label:"\uC0AC\uD68C\uC640 \uC608\uC220",icon:"landmark",color:"#5C6BC0",subs:[{key:"KRSOCI",label:"\uD55C\uAD6D"},{key:"ECONEW",label:"\uACBD\uC81C\uC640 \uB274\uC2A4"},{key:"GENART",label:"\uC608\uC220"},{key:"GELFKL",label:"\uC0DD\uD65C \uC0C1\uC2DD"}]},{key:"NTSC",label:"\uC790\uC5F0\uACFC \uACFC\uD559",icon:"leaf",color:"#9CCC65",subs:[{key:"ANIMAL",label:"\uB3D9\uBB3C"},{key:"PLANTS",label:"\uC2DD\uBB3C"},{key:"ETHPLT",label:"\uC9C0\uAD6C"},{key:"TOLELC",label:"\uB3C4\uAD6C\uC640 \uC804\uC790\uC81C\uD488"},{key:"GESCKL",label:"\uACFC\uD559\uC0C1\uC2DD"}]},{key:"SPRT",label:"\uC2A4\uD3EC\uCE20",icon:"trophy",color:"#FFCA28",subs:[{key:"INVDSP",label:"\uAC1C\uC778\uACBD\uAE30"},{key:"MARART",label:"\uACA9\uD22C\uAE30"},{key:"TEAMSP",label:"\uB2E8\uCCB4\uACBD\uAE30"},{key:"FOOTBL",label:"\uCD95\uAD6C"},{key:"GESPKL",label:"\uC2A4\uD3EC\uCE20 \uC0C1\uC2DD"}]}],x0=[{key:"LISTEN_IN_NOISE",label:"\uC18C\uC74C \uD558 \uBB38\uC7A5 \uB4E3\uAE30",icon:"party-popper",desc:"\uC18C\uC74C \uD658\uACBD \uC18D \uBB38\uC7A5 \uC774\uD574 \uD6C8\uB828"},{key:"SHORT_STORY",label:"\uC9E7\uC740 \uC774\uC57C\uAE30 \uB4E3\uAE30",icon:"message-square",desc:"\uC9E7\uC740 \uC774\uC57C\uAE30 + 4\uBB38\uC81C"},{key:"LONG_STORY",label:"\uAE34 \uC774\uC57C\uAE30 \uB4E3\uAE30",icon:"message-square-text",desc:"\uAE34 \uC774\uC57C\uAE30 \uC2EC\uD654 \uD6C8\uB828"},{key:"ORDERING_SENTENCE",label:"\uBB38\uC7A5 \uC21C\uC11C\uD654 \uD558\uAE30",icon:"align-start-vertical",desc:"\uC21C\uC11C \uBC30\uC5F4 \uD6C8\uB828"}];function ys(){return v0}function _0(){return x0}const w0=[],k0=[],A0=[],N0=[];function B0(){return{LISTEN_IN_NOISE:w0,SHORT_STORY:k0,LONG_STORY:A0,ORDERING_SENTENCE:N0}}const S0=[{key:"LISTEN_IN_NOISE",label:"\uC18C\uC74C \uD558 \uBB38\uC7A5 \uB4E3\uAE30",icon:"party-popper",desc:"\uB2E4\uC591\uD55C \uC18C\uC74C \uD658\uACBD\uC5D0\uC11C \uBB38\uC7A5 \uCCAD\uB825\uC744 \uD6C8\uB828\uD569\uB2C8\uB2E4."},{key:"SHORT_STORY",label:"\uC9E7\uC740 \uC774\uC57C\uAE30 \uB4E3\uAE30",icon:"message-square",desc:"\uC9E7\uC740 \uC774\uC57C\uAE30\uB97C \uB4E3\uACE0 \uAE30\uC5B5\uD558\uC5EC \uBB38\uC81C\uB97C \uD480\uC5B4\uBD05\uB2C8\uB2E4."},{key:"LONG_STORY",label:"\uAE34 \uC774\uC57C\uAE30 \uB4E3\uAE30",icon:"message-square-text",desc:"\uAE34 \uC774\uC57C\uAE30\uB97C \uB4E3\uACE0 \uAE30\uC5B5\uD558\uC5EC \uB2E4\uC218\uC758 \uBB38\uC81C\uB97C \uD480\uC5B4\uBD05\uB2C8\uB2E4."},{key:"ORDERING_SENTENCE",label:"\uBB38\uC7A5 \uC21C\uC11C\uD654 \uD558\uAE30",icon:"align-start-vertical",desc:"\uC5EC\uB7EC\uAC1C\uC758 \uC9E7\uC740 \uBB38\uC7A5\uC744 \uB4E3\uACE0 \uAE30\uC5B5\uD558\uC5EC \uADF8 \uC21C\uC11C\uC5D0 \uB9DE\uAC8C \uBC30\uC5F4\uD569\uB2C8\uB2E4."}],vs={LISTEN_IN_NOISE:"listenInNoise",SHORT_STORY:"shortStory",LONG_STORY:"longStory",ORDERING_SENTENCE:"orderingSentence"};function D0(e){return S0.map(n=>{const a=vs[n.key];return a?{...n,label:e(`trainingType.${a}.title`),desc:e(`trainingType.${a}.desc`)}:n})}let ya=null,xs=null,_s=null;function T0(){const e=p0();if(e&&e.entries.length>0){const n=n0();if(ya&&xs===e&&_s===n)return ya;const a=new Set,r=[];for(const o of e.entries)!o.word||a.has(o.word)||(a.add(o.word),r.push({w:o.word,s:o.syllables,p:n?.[o.word]?[...n[o.word].cho??[],...n[o.word].jung??[],...n[o.word].jong??[]]:[],pron:o.pronunciation||o.word,grade:o.grade}));return ya=r,xs=e,_s=n,ya}return[]}new Proxy([],{get(e,n){const a=T0(),r=a[n];return typeof r=="function"?r.bind(a):r}});const j0="0.137.0";function E0(e){return typeof window>"u"?"":Em.sanitize(e,{USE_PROFILES:{svg:!0,svgFilters:!0},FORBID_TAGS:["script","use"],FORBID_ATTR:["xlink:href","href"]})}function M0(e){const[n,a]=s.useState(null),[r,o]=s.useState(null),[i,l]=s.useState(null),[c,u]=s.useState(null);return s.useEffect(()=>{if(!e||typeof e!="string"||!e.endsWith(".svg")){a(null),o(null),l(null);return}const d=e.split("/").pop();let p=e;d&&(e.startsWith("/")?p=Ga(e):/^(Logo|Symbol)/i.test(d)?p=Ga(`logo/${d}`):(/^https?:\/\//i.test(e)||e.startsWith("data:"),p=e)),o(null),l(null),a(p)},[e]),s.useEffect(()=>{if(!n)return;let d=!1;async function p(){try{let h=await fetch(n);h.ok||(h=await fetch(n));const m=h.headers.get("content-type")||"";if(d)return;if(m.includes("svg")){o("mask");return}if(m.startsWith("image/")){o("img");return}const b=await fetch(n);if(!b.ok)throw new Error("not ok");const g=await b.text();if(d)return;if(/^\s*<svg[\s>]/i.test(g)){const f=E0(g);if(!f){o("none");return}l(f),o("inline");return}o("none")}catch{d||o("none")}}return p(),()=>{d=!0}},[n]),s.useEffect(()=>{let d=!1,p=null;return r==="mask"&&n&&fetch(n).then(h=>{if(!h.ok)throw new Error("fetch failed");return h.blob()}).then(h=>{d||(p=URL.createObjectURL(h),u(p))}).catch(()=>{d||o("img")}),()=>{d=!0,p&&URL.revokeObjectURL(p),u(null)}},[r,n]),{iconToUse:n,mode:r,svgText:i,blobUrl:c}}function Ve(e){const{icon:n,label:a,className:r,imgClassName:o,maskClassName:i,svgClassName:l,wrapperStyle:c,size:u}=e||{},d=r??"iconRenderer-icon",p=o??"iconRenderer-icon-image",h=i??"iconRenderer-icon-mask",m=l??"iconRenderer-icon-svg",b=typeof n=="string"?n:null,g=Xh(b),{iconToUse:f,mode:C,svgText:v,blobUrl:x}=M0(b),w=(A,T={})=>t.jsx("span",{className:d,style:c,...T,children:A}),y=(A,T={})=>t.jsx("img",{src:A,alt:typeof a=="string"?a:typeof a=="number"?String(a):"",className:p,...T});if(!n)return null;if(typeof n!="string")return w(n);if(n==="none")return w(t.jsx("span",{className:m,dangerouslySetInnerHTML:{__html:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" aria-hidden="true"></svg>'}}),{"aria-hidden":"true"});if(g)try{return w(s.createElement(g,{className:m,size:typeof u=="number"?u:20}),{"aria-hidden":"true"})}catch{}if(f&&f.endsWith(".svg")){if(C==="mask"){const A={"--icon-url":x?`url(${x})`:`url(${f})`,...typeof u=="number"?{"--icon-size":`${u}px`}:null};return w(t.jsx("span",{className:h,style:A}),{"aria-hidden":"true"})}return C==="img"?w(y(f,{onError:A=>{A.currentTarget.onerror=null,A.currentTarget.style.display="none"}}),{"aria-hidden":"true"}):C==="inline"?w(t.jsx("span",{className:m,dangerouslySetInnerHTML:v?{__html:v}:void 0}),{"aria-hidden":"true"}):w(null,{"aria-hidden":"true"})}if(n.startsWith("/")||n.includes("/assets/")||n.match(/\.(png|jpg|jpeg|webp|gif)$/i))return y(Ga(n),{style:c,onError:A=>{A.currentTarget.onerror=null,A.currentTarget.style.display="none"}});const k=typeof u=="number"?u:20,_=`<svg width="${k}" height="${k}" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><rect x="3" y="3" width="18" height="18" rx="2" ry="2" style="fill:none;stroke:currentColor;stroke-width:2"/></svg>`;return w(t.jsx("span",{className:m,dangerouslySetInnerHTML:{__html:_}}),{"aria-hidden":"true"})}function L0({icon:e,emoji:n,title:a,message:r,hint:o,action:i,compact:l,className:c}){return t.jsxs("div",{className:ye("empty-state",l&&"empty-state--compact",c),children:[n&&t.jsx("span",{className:"empty-state__emoji",children:n}),e&&t.jsx(Ve,{icon:e,className:"empty-state__icon"}),a&&t.jsx("p",{className:"empty-state__title body-2",children:a}),r&&t.jsx("p",{className:"empty-state__message body-3",children:r}),o&&t.jsx("p",{className:"empty-state__hint caption-1",children:o}),i&&t.jsxs("button",{type:"button",className:"empty-state__action button button40 button40--bar button--variant-main button--align-center button--shape-rounded",onClick:i.onClick,children:[i.icon&&t.jsx(Ve,{icon:i.icon,className:"button__icon"}),t.jsx("span",{className:"button__label button-1",children:i.label})]})]})}function $0({message:e,hint:n,icon:a="triangle-alert",onRetry:r,retryLabel:o,className:i}){const{t:l}=me.useTranslation();return t.jsxs("div",{className:ye("empty-state","error-state",i),role:"alert",children:[t.jsx(Ve,{icon:a,className:"empty-state__icon error-state__icon"}),t.jsx("p",{className:"empty-state__message body-3",children:e??l("common.errorState.message",{defaultValue:"\uBD88\uB7EC\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."})}),n&&t.jsx("p",{className:"empty-state__hint caption-1",children:n}),r&&t.jsxs("button",{type:"button",className:"empty-state__action button button40 button40--bar button--variant-main button--align-center button--shape-rounded",onClick:r,children:[t.jsx(Ve,{icon:"rotate-cw",className:"button__icon"}),t.jsx("span",{className:"button__label button-1",children:o??l("common.errorState.retry",{defaultValue:"\uB2E4\uC2DC \uC2DC\uB3C4"})})]})]})}function R0({icon:e,title:n,description:a,cta:r,tone:o="main",disabled:i=!1,onClick:l,className:c=""}){const u=()=>{i||l?.()};return t.jsx("section",{role:"button",tabIndex:i?-1:0,"aria-disabled":i||void 0,"aria-label":n,onClick:u,onKeyDown:d=>{(d.key==="Enter"||d.key===" ")&&(d.preventDefault(),u())},className:ye("action-card",`action-card--${o}`,i&&"action-card--disabled",c),children:t.jsxs("div",{className:"action-card__body",children:[t.jsx("span",{"aria-hidden":!0,className:"action-card__chip",children:t.jsx(Ve,{icon:e,size:34})}),t.jsxs("div",{className:"action-card__text",children:[t.jsx("h2",{className:"action-card__title",children:n}),t.jsx("p",{className:"action-card__desc",children:a})]}),t.jsxs("div",{className:"action-card__cta",children:[t.jsx("span",{children:r}),t.jsx("span",{"aria-hidden":!0,className:"action-card__arrow",children:t.jsx(Ve,{icon:"arrow-right",size:18})})]})]})})}function P0({as:e="div",className:n="",children:a,storage:r,...o}){r&&Pm({resolveUrl:r.resolveUrl,download:r.download??(()=>Promise.reject(new Error("[ihabdevteam-core] CoreScope: download resolver\uAC00 \uC124\uC815\uB418\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4."))),exists:r.exists,resolvePath:r.resolvePath,noiseBaseUrl:r.noiseBaseUrl,noiseFileGain:r.noiseFileGain});const i=ye("ihabdevteam-core-scope",n);return t.jsx(e,{className:i,...o,children:a})}function I0({title:e="",lines:n=[],notices:a=null,children:r,variant:o="default",dismissible:i=!1,className:l=""}){const{t:c}=me.useTranslation(),[u,d]=s.useState(!1),p=s.useCallback(()=>d(!0),[]);if(u)return null;const h=`notice-box notice-box--${o} body-2 ${l}`.trim();if(a&&Array.isArray(a)&&a.length)return t.jsx("div",{className:h,role:"note",children:a.map((b,g)=>t.jsxs("div",{className:"notice-box__inner",children:[b.title?t.jsx("span",{className:"notice-box__title body-3",children:b.title}):null,t.jsx("div",{className:"notice-box__body",children:b.lines&&b.lines.length?t.jsx("div",{children:b.lines.map((f,C)=>t.jsx("span",{className:"notice-box__line body-3",children:f},C))}):b.children??null})]},g))});const m=e||n.length?t.jsxs("div",{className:"notice-box__inner",children:[e?t.jsx("span",{className:"notice-box__title body-1",children:e}):null,t.jsx("div",{className:"notice-box__body",children:n.length?t.jsx("ul",{children:n.map((b,g)=>t.jsx("li",{className:"notice-box__line",children:b},g))}):r})]}):t.jsx("div",{className:"notice-box__inner",children:r});return t.jsxs("div",{className:h,role:"note",children:[m,i&&t.jsx("button",{type:"button",className:"notice-box__dismiss",onClick:p,"aria-label":c("common.close","\uB2EB\uAE30"),children:"\xD7"})]})}function rr(e,n=!0){s.useEffect(()=>{if(!n)return;const a=e.current;if(!a)return;const r=o=>{if(o.key!=="Tab")return;const i=Array.from(a.querySelectorAll(kn)).filter(p=>!p.closest('[aria-hidden="true"]'));if(!i.length){o.preventDefault();return}const l=i[0],c=i[i.length-1],u=document.activeElement,d=u===a;o.shiftKey&&(u===l||d)?(o.preventDefault(),c.focus()):!o.shiftKey&&u===c&&(o.preventDefault(),l.focus())};return a.addEventListener("keydown",r),()=>a.removeEventListener("keydown",r)},[e,n])}const kn='a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])',$n=[];let va=!1;function ws(e){if(e.key!=="Escape"||e.defaultPrevented)return;const n=$n[$n.length-1];n&&(e.stopPropagation(),n())}function An(e){return $n.push(e),!va&&typeof document<"u"&&(document.addEventListener("keydown",ws),va=!0),()=>{const n=$n.lastIndexOf(e);n>=0&&$n.splice(n,1),$n.length===0&&va&&typeof document<"u"&&(document.removeEventListener("keydown",ws),va=!1)}}function pn(e){const{anchorRect:n,anchorEl:a,offset:r=20,edgeMargin:o=20,onClose:i,closeOnOutsideClick:l=!0,className:c="",role:u="dialog",ariaLabel:d="",children:p,backdrop:h=!1,isMobilePopup:m=!1,useBorder:b=!0,header:g}=e||{},f=s.useRef(null),[C,v]=s.useState({position:"fixed",left:0,top:-9999}),[x,w]=s.useState(!1),[y,k]=s.useState("bottom"),[_,A]=s.useState(!1),[T,N]=s.useState(!1),D=!n&&!a,H=s.useCallback((L=!1)=>{if(T&&m)return;const O=a?a.getBoundingClientRect():n;if(!O||!f.current)return;const ee=f.current,{offsetWidth:Y,offsetHeight:K}=ee,R=window.innerWidth,j=window.innerHeight,M=R-O.right,V=O.left,P=O.top,$=j-O.bottom;let W=0,se=0,ae="top";if(P>=K+r)ae="top",se=O.top-r-K,W=O.left+O.width/2-Y/2;else if($>=K+r)ae="bottom",se=O.bottom+r,W=O.left+O.width/2-Y/2;else if(M>=Y+r)ae="right",W=O.right+r,se=O.top+O.height/2-K/2;else if(V>=Y+r)ae="left",W=O.left-r-Y,se=O.top+O.height/2-K/2;else{const Z=Math.max(P,$,M,V);Z===P?(ae="top",se=O.top-r-K,W=O.left+O.width/2-Y/2):Z===$?(ae="bottom",se=O.bottom+r,W=O.left+O.width/2-Y/2):Z===M?(ae="right",W=O.right+r,se=O.top+O.height/2-K/2):(ae="left",W=O.left-r-Y,se=O.top+O.height/2-K/2)}const le=Number(o)||8;W=Math.min(Math.max(W,le),R-Y-le),se=Math.min(Math.max(se,le),j-K-le);const he=Math.round(W),ve=Math.round(se);L&&f.current?(f.current.style.left=`${he}px`,f.current.style.top=`${ve}px`,f.current.dataset.placement=ae):(k(ae||y),v({position:"fixed",left:he,top:ve}),A(!0))},[T,m,a,n,r,o,y]);s.useLayoutEffect(()=>{if(D)return;if(T&&m){v({position:"fixed",left:"50%",top:"50%",transform:"translate(-50%, -50%)",width:"calc(100% - 40px)",maxWidth:"calc(100% - 40px)"}),A(!0);return}H();const L=requestAnimationFrame(()=>H());return()=>cancelAnimationFrame(L)},[n,a,r,p,o,D,T,m,H]),s.useEffect(()=>{if(D||T&&m||!f.current||typeof ResizeObserver>"u")return;const L=new ResizeObserver(()=>{n&&H()});return L.observe(f.current),()=>L.disconnect()},[n,p,o,D,T,m,H]),s.useEffect(()=>{if(D||T&&m)return;const L=()=>H(!0);return window.addEventListener("resize",L),document.addEventListener("scroll",L,{passive:!0,capture:!0}),()=>{window.removeEventListener("resize",L),document.removeEventListener("scroll",L,{capture:!0})}},[n,r,p,o,D,T,m,H]),s.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const L=window.matchMedia("(max-width: 768px)"),O=()=>N(!!L.matches);O();try{L.addEventListener?L.addEventListener("change",O):L.addListener(O)}catch{try{L.addListener(O)}catch{}}return()=>{try{L.removeEventListener?L.removeEventListener("change",O):L.removeListener(O)}catch{}}},[]);const F=s.useRef(!1),B=s.useCallback((L=!1)=>{if(i&&!(x||F.current)){if(F.current=!0,L){w(!0);try{i&&i()}catch{}return}w(!0),setTimeout(()=>{i&&i()},200)}},[x,i,w]);s.useEffect(()=>{if(D)return;const L=Y=>{const K=f.current;if(!K)return;const R=Y.target;if(R&&!K.contains(R)){try{if(R.closest&&R.closest("[data-tooltip-ignore]"))return}catch{}l&&B(!0)}},O=Y=>{const K=f.current;if(!K)return;const R=Y.target;if(R&&!K.contains(R)){try{if(R.closest&&R.closest("[data-tooltip-ignore]"))return}catch{}l&&B(!0)}},ee=Y=>{if(Y.key==="Tab"){const K=f.current;if(!K)return;const R=K.querySelectorAll(kn);if(!R||R.length===0)return;const j=R[0],M=R[R.length-1],V=document.activeElement;Y.shiftKey?V===j&&(Y.preventDefault(),M.focus()):V===M&&(Y.preventDefault(),j.focus())}};return document.addEventListener("pointerdown",L,!0),document.addEventListener("click",O,!0),document.addEventListener("keydown",ee),()=>{document.removeEventListener("pointerdown",L,!0),document.removeEventListener("click",O,!0),document.removeEventListener("keydown",ee)}},[i,l,B,D]);const I=s.useRef(B);s.useEffect(()=>{I.current=B});const E=!!i;s.useEffect(()=>{if(!(D||!E))return An(()=>I.current())},[D,E]),s.useEffect(()=>{const L=()=>{B(!0)};return typeof document<"u"&&document.addEventListener("speechear-close-tooltips",L),()=>{typeof document<"u"&&document.removeEventListener("speechear-close-tooltips",L)}},[B]);const te=t.jsxs("div",{ref:f,className:`tooltip-content ${D?"tooltip-content--inline":""} ${b?"tooltip-content--bordered":""} ${x?"is-closing":""} ${c} ${T&&m?"is-mobile":""}`,role:u,"aria-label":d||void 0,style:D?{}:{...C,visibility:_?"visible":"hidden"},tabIndex:-1,"data-placement":y,"data-left":D?"":C.left,"data-top":D?"":C.top,"data-anchor-left":n?Math.round(n.left):"","data-anchor-top":n?Math.round(n.top):"","data-anchor-width":n?Math.round(n.width):"","data-anchor-height":n?Math.round(n.height):"",children:[g!=null&&t.jsx("div",{className:"tooltip-content__header h5",children:g}),p]});if(D||typeof document>"u")return te;if(h||T&&m){const L=t.jsxs("div",{className:"tooltip-portal",children:[t.jsx("div",{className:"tooltip-backdrop",onClick:()=>{l&&B(!0)}}),te]});return Ft.createPortal(L,document.body)}return Ft.createPortal(te,document.body)}function hn(e){const{anchorRect:n,text:a,offset:r=8,onClose:o,className:i="",ariaLabel:l}=e||{};return a?t.jsx(pn,{anchorRect:n,offset:r,onClose:o,closeOnOutsideClick:!1,className:`tooltip-info ${i}`,ariaLabel:l||a,children:t.jsx("div",{className:"tooltip-info__content body-3",children:a})}):null}function Nn(e){const{t:n}=me.useTranslation(),{anchorRect:a,title:r,items:o,activeIndex:i=-1,showIndex:l=!0,onClose:c,offset:u=12,closeOnOutsideClick:d=!0}=e||{},p=(Array.isArray(o)?o:o?[o]:[]).map(h=>typeof h=="string"?{text:h}:h);return!p.length&&!r?null:t.jsx(pn,{anchorRect:a,offset:u,onClose:c,closeOnOutsideClick:d,useBorder:!1,className:"tooltip-description",ariaLabel:r||n("tooltip.description","\uC124\uBA85"),children:t.jsxs("div",{className:"tooltip-description__box",children:[r&&t.jsx("span",{className:"tooltip-description__title body-2",children:r}),t.jsx("ol",{className:"tooltip-description__items",children:p.map((h,m)=>t.jsxs("li",{className:`tooltip-description__item body-3${m===i?" tooltip-description__item--active":""}`,children:[l&&p.length>1&&t.jsxs("span",{className:"tooltip-description__index button-1",children:[m+1,"."]}),h.color&&t.jsx("span",{className:"tooltip-description__dot",style:{background:h.color},"aria-hidden":"true"}),t.jsx("span",{children:h.text})]},m))})]})})}function ie(e){const{size:n=48,type:a,htmlType:r,href:o,target:i,rel:l,icon:c,rightIcon:u,label:d,count:p,subLabel:h,children:m,ariaLabel:b,variant:g="default",align:f="center",selected:C,toggleable:v=!1,disabled:x=!1,useLabel:w=!0,useBorder:y=!0,useBG:k=!0,useDisabledCovered:_=!1,useDisabledInvisible:A=!1,width:T,minWidth:N,onClick:D,onDisabledClick:H,showTooltipInfo:F=!1,tooltipInfoText:B=null,tooltipDescription:I=null,tooltipOnly:E=!1,iconSize:te="medium",iconColor:L,shape:O="rounded",color:ee,className:Y,...K}=e,R=typeof n=="string"&&isNaN(Number(n))?n.toLowerCase():String(Number(n)||48),j=R.match(/^\d+$/)?`button${R}`:`button-${R}`,M=Number(n),V=!isNaN(M)&&M<40?"button-2":"button-1",P=d??m,$=x||!!K.disabled,W=$?_?"disabled-covered":A?"disabled-invisibled":"disabled":g,se=W?`button--variant-${W}`:"",ae=f?`button--align-${f}`:"",le=O?`button--shape-${O}`:"",he=typeof L=="string"&&L.startsWith("--")?`var(${L})`:L,ve={...T?{width:typeof T=="number"?`${T}px`:T}:{},...N?{minWidth:typeof N=="number"?`${N}px`:N}:{},...y?{}:{"--button-border":$?"0":"1px solid transparent"},...he?{"--button-icon-color":he}:{},...ee?{"--color-main":ee}:{}},Z=w===!1?"":P,ce=Array.isArray(Z)?Z.length>0:!!Z,J=!!u,ge=a??(ce||c||J?"bar":"dot"),we=`${j}--${ge}`,de=s.useRef(null),Ce=s.useRef($),[xe,je]=s.useState(!!C),[X,pe]=s.useState(!1),[Ne,Me]=s.useState(null),He=s.useCallback(()=>pe(!1),[]);s.useEffect(()=>{typeof C=="boolean"&&je(C)},[C]),s.useEffect(()=>{if(Ce.current&&!$&&de.current){const Oe=de.current;Oe.blur(),Oe.style.pointerEvents="none";const Xe=requestAnimationFrame(()=>{requestAnimationFrame(()=>{de.current&&(de.current.style.pointerEvents="")})});return()=>cancelAnimationFrame(Xe)}Ce.current=$},[$]);const Se=typeof C=="boolean"?!!C:xe,Ie=v||typeof C=="boolean"?Se?"true":"false":void 0,Le=ye("button",j,we,se,ae,le,Se?"is-selected":null,k?null:"button--no-bg",E?"button--tooltip-only":null,Y),Ke=`button__icon button__icon--${te}`,qe=Array.isArray(h)?h:h!==void 0?[h]:[],ze=()=>{if(Array.isArray(Z))return Z.map((Xe,tt)=>{const Te=qe[tt];return t.jsxs("span",{className:`button__label-text${Te!==void 0?" button__label-text--has-sub":""}`,children:[Xe,Te!==void 0&&t.jsx("span",{className:"button__sub-label-text caption-1",children:Te})]},tt)});const Oe=h!==void 0;return t.jsxs("span",{className:`button__label-text${Oe?" button__label-text--has-sub":""}`,children:[Z,p!=null&&t.jsx("span",{className:"button__count",children:p}),Oe&&t.jsx("span",{className:"button__sub-label-text caption-1",children:h})]})},be=Oe=>{$||(typeof K.onMouseLeave=="function"&&K.onMouseLeave(Oe),typeof C!="boolean"&&je(!1),Oe.currentTarget.blur())},Fe=Oe=>{if($){H?.(Oe);return}typeof C!="boolean"&&v&&je(Xe=>!Xe),D?.(Oe)},De=s.useCallback(()=>{(F||I)&&(pe(!0),Me(de.current?.getBoundingClientRect()??null))},[F,I]),Pe=s.useCallback(()=>{(F||I)&&(pe(!1),Me(null))},[F,I]),Ae={...K};delete Ae.disabled,delete Ae.className,delete Ae.faded,delete Ae.useFaded,delete Ae.loading,delete Ae.onMouseLeave,delete Ae.onPointerEnter,delete Ae.onPointerLeave,delete Ae.onFocus,delete Ae.onBlur,$&&(Object.keys(Ae).forEach(Oe=>{/^on[A-Z]/.test(Oe)&&typeof Ae[Oe]=="function"&&delete Ae[Oe]}),Ae["aria-disabled"]="true");const ot=(typeof F=="string"?F:null)??(typeof B=="string"?B:null)??(typeof b=="string"?b:null)??(typeof P=="string"?P:null)??void 0,lt=typeof b=="string"?b:typeof P=="string"?P:ot,Ue=(Oe,Xe)=>t.jsx(Ve,{icon:Oe,label:Xe??lt,className:Ke,imgClassName:"button__icon-img",maskClassName:"button__icon-mask",svgClassName:"button__icon-svg"}),Ge=()=>ge==="dot"?t.jsxs(t.Fragment,{children:[Ue(c),ce&&t.jsx("span",{className:`button__label ${V}`,children:ze()})]}):f==="center"&&c?t.jsxs(t.Fragment,{children:[t.jsxs("span",{className:"button__center-group",children:[t.jsx("span",{className:"button__left",children:Ue(c)}),ce&&t.jsx("span",{className:`button__label ${V}`,children:ze()})]}),J&&t.jsx("span",{className:"button__right",children:Ue(u)})]}):t.jsxs(t.Fragment,{children:[c&&t.jsx("span",{className:"button__left",children:Ue(c,b??P)}),ce&&t.jsx("span",{className:`button__label ${V}`,children:ze()}),J&&t.jsx("span",{className:"button__right",children:Ue(u)})]}),pt=!!o&&!$;return t.jsxs(t.Fragment,{children:[t.jsx(pt?"a":"button",{...Ae,ref:de,...pt?{href:o,target:i,rel:l??(i==="_blank"?"noreferrer":void 0)}:{type:r,disabled:$&&!H},className:Le,"aria-pressed":Ie,"aria-label":lt,"aria-disabled":$&&(pt||H)?!0:void 0,style:ve,onClick:Fe,onMouseLeave:be,onPointerEnter:Oe=>{De(),!$&&typeof K.onPointerEnter=="function"&&K.onPointerEnter(Oe)},onPointerLeave:Oe=>{Pe(),!$&&typeof K.onPointerLeave=="function"&&K.onPointerLeave(Oe)},onFocus:Oe=>{De(),!$&&typeof K.onFocus=="function"&&K.onFocus(Oe)},onBlur:Oe=>{be(Oe),Pe(),!$&&typeof K.onBlur=="function"&&K.onBlur(Oe)},children:Ge()}),X&&I?t.jsx(Nn,{anchorRect:Ne,title:I.title,items:I.items,onClose:He}):X&&ot?t.jsx(hn,{anchorRect:Ne,text:ot,onClose:He}):null]})}function at(e,n,a){const r=s.useRef(null);return s.useLayoutEffect(()=>{const o=r.current?.parentElement??null;return n(o,e),()=>a(o)},[e,n,a]),r}const Qn={title:"--promo-banner-bg-title",description:"--promo-banner-bg-description"},or=new WeakMap;function sr(e){if(e)return or.get(e)}function _t(e,n){e&&(e.style.setProperty(Qn.title,n.title),e.style.setProperty(Qn.description,n.description),or.set(e,n))}function wt(e){e&&(e.style.removeProperty(Qn.title),e.style.removeProperty(Qn.description),or.delete(e))}const ks={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"default"};function As(){const e=at(ks,_t,wt);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-main","aria-hidden":"true"})}const Ns={title:"var(--color-main)",description:"var(--color-gray)",actionVariant:"main"};function Bs(){const e=at(Ns,_t,wt);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-soft","aria-hidden":"true"})}const Ss={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function Ds(){const e=at(Ss,_t,wt);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-sub","aria-hidden":"true"})}const Ts={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function js(){const e=at(Ts,_t,wt);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-deep","aria-hidden":"true"})}const Es={title:"var(--color-darkSub)",description:"var(--color-gray)",actionVariant:"main"};function Ms(){const e=at(Es,_t,wt);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-soft-sub","aria-hidden":"true"})}const Ls={title:"var(--color-black)",description:"var(--color-darkGray)",actionVariant:"main"};function $s(){const e=at(Ls,_t,wt);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-warm","aria-hidden":"true"})}const Rs={title:"var(--color-white)",description:"var(--color-lightGray)",actionVariant:"main"};function Ps(){const e=at(Rs,_t,wt);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-dark","aria-hidden":"true"})}const Is={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function Fs(){const e=at(Is,_t,wt);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-radial","aria-hidden":"true"})}const Os={title:"var(--color-darkMain)",description:"var(--color-gray)",actionVariant:"main"};function Hs(){const e=at(Os,_t,wt);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-diagonal","aria-hidden":"true"})}const Vs={title:"var(--color-darkSub)",description:"var(--color-gray)",actionVariant:"main"};function zs(){const e=at(Vs,_t,wt);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-dots","aria-hidden":"true"})}const Ws={title:"var(--color-black)",description:"var(--color-gray)",actionVariant:"main"};function qs(){const e=at(Ws,_t,wt);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-outline","aria-hidden":"true",children:t.jsx("span",{className:"promo-banner-bg-outline__dot"})})}const Us={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function Gs(){const e=at(Us,_t,wt);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-success","aria-hidden":"true"})}const Ks={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"sub"};function Ys(){const e=at(Ks,_t,wt);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-naver","aria-hidden":"true"})}const Zs={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"transparent-white"};function Xs(){const e=at(Zs,_t,wt);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-instagram","aria-hidden":"true"})}const F0=[{key:"main",label:"\uBA54\uC778 \uADF8\uB77C\uB514\uC5B8\uD2B8",textTone:"light"},{key:"soft",label:"\uC18C\uD504\uD2B8",textTone:"dark"},{key:"sub",label:"\uC11C\uBE0C \uCEEC\uB7EC",textTone:"light"},{key:"deep",label:"\uB525 \uADF8\uB77C\uB514\uC5B8\uD2B8",textTone:"light"},{key:"softSub",label:"\uC18C\uD504\uD2B8 \uC11C\uBE0C",textTone:"dark"},{key:"warm",label:"\uC6DC(\uAC15\uC870)",textTone:"dark"},{key:"dark",label:"\uB2E4\uD06C",textTone:"light"},{key:"radial",label:"\uBC29\uC0AC\uD615 \uADF8\uB77C\uB514\uC5B8\uD2B8",textTone:"light"},{key:"diagonal",label:"\uB300\uAC01\uC120 \uD328\uD134",textTone:"dark"},{key:"dots",label:"\uB3C4\uD2B8 \uD328\uD134",textTone:"dark"},{key:"outline",label:"\uC544\uC6C3\uB77C\uC778",textTone:"dark"},{key:"success",label:"\uC131\uACF5/\uC644\uB8CC",textTone:"light"},{key:"naver",label:"\uB124\uC774\uBC84 \uBE14\uB85C\uADF8 \uC548\uB0B4",textTone:"light"},{key:"instagram",label:"\uC778\uC2A4\uD0C0\uADF8\uB7A8 \uC548\uB0B4",textTone:"light"}],Js={main:As,soft:Bs,sub:Ds,deep:js,softSub:Ms,warm:$s,dark:Ps,radial:Fs,diagonal:Hs,dots:zs,outline:qs,success:Gs,naver:Ys,instagram:Xs};function Qs({storageKey:e="fontScale",baseFont:n=20,minScale:a=.8,maxScale:r=1.4,step:o=.1,lineHeightRatio:i=1.4}={}){const l=w=>Math.max(a,Math.min(r,Number(w))),c=w=>{try{const y=localStorage.getItem(w),k=y?Number(y):1;return Number.isFinite(k)?l(k):l(1)}catch{return l(1)}},[u,d]=s.useState(()=>c(e)),[p,h]=s.useState(e);p!==e&&(h(e),d(c(e))),s.useEffect(()=>{try{localStorage.setItem(e,String(u))}catch{}},[e,u]);const m=w=>{d(typeof w=="function"?y=>l(w(y)):l(w))},b=()=>m(w=>+(w+o).toFixed(6)),g=()=>m(w=>+(w-o).toFixed(6)),f=u<r-Number.EPSILON,C=u>a+Number.EPSILON,v=Math.round(n*u),x=Math.round(v*i);return{scale:u,setScale:m,increase:b,decrease:g,canIncrease:f,canDecrease:C,fontSize:v,lineHeight:x}}const ei=s.createContext(null);function O0(e){return/max-width:\s*7[0-9][0-9]px/.test(e)}const ti=e=>typeof window>"u"||!window.matchMedia?!1:window.matchMedia(e).matches;function H0(e){const n=s.useCallback(a=>{if(typeof window>"u"||!window.matchMedia)return()=>{};const r=window.matchMedia(e);return r.addEventListener?r.addEventListener("change",a):r.addListener&&r.addListener(a),()=>{r.removeEventListener?r.removeEventListener("change",a):r.removeListener&&r.removeListener(a)}},[e]);return lo.useSyncExternalStore(n,()=>ti(e),()=>!1)}function V0(e){const[n,a]=s.useState(ti(e));return s.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const r=window.matchMedia(e),o=l=>a(l.matches),i=r;return i.addEventListener?i.addEventListener("change",o):i.addListener&&i.addListener(o),a(r.matches),()=>{i.removeEventListener?i.removeEventListener("change",o):i.removeListener&&i.removeListener(o)}},[e]),n}const z0=typeof lo.useSyncExternalStore=="function"?H0:V0;function Ut(e){const n=s.useContext(ei),a=z0(e);return n&&typeof n.mobile=="boolean"&&O0(e)?n.mobile:a}function ir(e){const n=s.useRef(e);return s.useEffect(()=>{n.current=e}),n}function ni(e,n){const a=ir(n);s.useEffect(()=>{const r=()=>a.current();try{window.addEventListener(e,r)}catch{}return()=>{try{window.removeEventListener(e,r)}catch{}}},[e,a])}const lr=" \xB7 ",ai=(()=>{if(typeof document>"u")return"";const e=document.title;return e.includes(lr)?e.split(lr).pop()??e:e})(),W0=s.createContext(!1),Bn=[];let ri=null;function q0(e){const n=s.useContext(W0);s.useEffect(()=>{if(n||typeof e!="string"||!e)return;Bn.length===0&&(ri=document.title);const a={text:ai?`${e}${lr}${ai}`:e};return Bn.push(a),document.title=a.text,()=>{const r=Bn.lastIndexOf(a);r>=0&&Bn.splice(r,1),document.title=Bn.length?Bn[Bn.length-1].text:ri??document.title}},[e,n])}const oi=[{value:"10",label:"10\uAC1C\uC529 \uBCF4\uAE30"},{value:"25",label:"25\uAC1C\uC529 \uBCF4\uAE30"},{value:"50",label:"50\uAC1C\uC529 \uBCF4\uAE30"},{value:"100",label:"100\uAC1C\uC529 \uBCF4\uAE30"}];function U0(e,n,a){const{t:r}=me.useTranslation(),[o,i]=s.useState(()=>{const g=a?.initialPageSize;return g&&oi.some(f=>f.value===g)?g:"25"}),[l,c]=s.useState(1),[u,d]=s.useState(n);u!==n&&(d(n),l!==1&&c(1));const p=s.useMemo(()=>oi.map(g=>({...g,label:r("visits.showN",{n:g.value})})),[r]),h=s.useCallback(g=>{i(g),c(1)},[]),m=Math.max(1,Math.ceil(e.length/Number(o)));l>m&&c(m);const b=Math.min(l,m);return{pageRows:s.useMemo(()=>e.slice((b-1)*Number(o),b*Number(o)),[e,b,o]),pageSizeProps:{options:p,value:o,onChange:h},paginationProps:{page:b,total:m,onChange:c},setPage:c}}function G0(){const[e,n]=s.useState(null),a=s.useCallback(o=>{n(i=>i?.key===o?{key:o,asc:!i.asc}:{key:o,asc:!0})},[]),r=s.useCallback((o,i)=>({label:o,sortDir:e?.key===i?e.asc?"asc":"desc":null,onClick:()=>a(i)}),[e,a]);return{\uC815\uB82C:e,\uCE78:r}}const Gt="\uC804\uCCB4";Object.fromEntries(Object.entries(a0).map(([e,{nucleus:n}])=>[e,n]));const K0={labial:e=>e("common.phonetics.place.labial",{defaultValue:"\uC591\uC21C\uC74C"}),alveolar:e=>e("common.phonetics.place.alveolar",{defaultValue:"\uCE58\uC870\uC74C"}),palatal:e=>e("common.phonetics.place.palatal",{defaultValue:"\uACBD\uAD6C\uAC1C\uC74C"}),velar:e=>e("common.phonetics.place.velar",{defaultValue:"\uC5F0\uAD6C\uAC1C\uC74C"}),glottal:e=>e("common.phonetics.place.glottal",{defaultValue:"\uC131\uBB38\uC74C"})},Y0={frontHigh:e=>e("common.phonetics.vowel.frontHigh",{defaultValue:"\uC804\uC124 \uACE0\uBAA8\uC74C"}),backHighUnrounded:e=>e("common.phonetics.vowel.backHighUnrounded",{defaultValue:"\uD6C4\uC124 \uACE0\uBAA8\uC74C \uD3C9\uC21C"}),backHighRounded:e=>e("common.phonetics.vowel.backHighRounded",{defaultValue:"\uD6C4\uC124 \uACE0\uBAA8\uC74C \uC6D0\uC21C"}),frontMid:e=>e("common.phonetics.vowel.frontMid",{defaultValue:"\uC804\uC124 \uC911\uBAA8\uC74C"}),backMidUnrounded:e=>e("common.phonetics.vowel.backMidUnrounded",{defaultValue:"\uD6C4\uC124 \uC911\uBAA8\uC74C \uD3C9\uC21C"}),backMidRounded:e=>e("common.phonetics.vowel.backMidRounded",{defaultValue:"\uD6C4\uC124 \uC911\uBAA8\uC74C \uC6D0\uC21C"}),low:e=>e("common.phonetics.vowel.low",{defaultValue:"\uC800\uBAA8\uC74C"})},Z0={j:e=>e("common.phonetics.glide.j",{defaultValue:"j\uD65C\uC74C"}),w:e=>e("common.phonetics.glide.w",{defaultValue:"w\uD65C\uC74C"}),velar:e=>e("common.phonetics.glide.velar",{defaultValue:"\u0270\uD65C\uC74C"})};function X0(e,n){if("place"in n)return K0[n.place](e);const a=Y0[n.vowel](e);return n.glide?`${a} \xB7 ${Z0[n.glide](e)}`:a}const J0=(e,{defaultValue:n})=>n,si=(e,n)=>({jamos:e,phonetic:n,tooltip:X0(J0,n)}),Qt=(e,n)=>n.map(a=>si([a],{place:e})),ft=(e,n,a)=>si([...e],a?{vowel:n,glide:a}:{vowel:n}),cr={cho:[Qt("labial",["\u3142","\u3143","\u314D","\u3141"]),Qt("alveolar",["\u3137","\u3138","\u314C","\u3134","\u3139"]),Qt("alveolar",["\u3145","\u3146"]),Qt("palatal",["\u3148","\u3149","\u314A"]),Qt("velar",["\u3131","\u3132","\u314B"]),Qt("glottal",["\u314E"])],jung:[[ft("\u3163","frontHigh"),ft("\u315F","frontHigh","w"),ft("\u3162","frontHigh","velar")],[ft("\u3161","backHighUnrounded")],[ft("\u315C","backHighRounded"),ft("\u3160","backHighRounded","j")],[ft("\u3154\u3150","frontMid"),ft("\u3156\u3152","frontMid","j"),ft("\u3159\u315A\u315E","frontMid","w")],[ft("\u3153","backMidUnrounded"),ft("\u3155","backMidUnrounded","j"),ft("\u315D","backMidUnrounded","w")],[ft("\u3157","backMidRounded"),ft("\u315B","backMidRounded","j")],[ft("\u314F","low"),ft("\u3151","low","j"),ft("\u3158","low","w")]],jong:[Qt("labial",["\u3142","\u3141"]),Qt("alveolar",["\u3137","\u3134","\u3139"]),Qt("velar",["\u3131","\u3147"])]},Q0=e=>e===e2?[]:Array.from(e),e2="__NO_CODA__",ur=e=>e.map(n=>n.map(({jamos:a,phonetic:r,tooltip:o})=>({v:a.join(""),phonetic:r,tooltip:o}))),ii={cho:ur(cr.cho),jung:ur(cr.jung),jong:ur(cr.jong)};ii.jung.flat().forEach(({v:e})=>{for(const n of Q0(e));}),new Set(ii.cho.flat().map(e=>e.v));function t2(e,n=!0){const a=ir(e);s.useEffect(()=>{if(n)return An(()=>{a.current?.()})},[n,a])}function xa(){const[e,n]=s.useState(null),a=s.useCallback(i=>n(i.getBoundingClientRect()),[]),r=s.useCallback(()=>n(null),[]),o=s.useCallback(i=>{const l=i.getBoundingClientRect();n(c=>c?null:l)},[]);return{anchorRect:e,isOpen:e!=null,openAt:a,close:r,toggleAt:o}}function li(e="warning"){const[n,a]=s.useState(""),[r,o]=s.useState(e),[i,l]=s.useState(0),c=s.useCallback((h,m)=>{o(m),a(h),l(b=>b+1)},[]),u=s.useCallback(h=>c(h,"warning"),[c]),d=s.useCallback(h=>c(h,"normal"),[c]),p=s.useCallback(()=>a(""),[]);return{toastMessage:n,toastType:r,toastKey:i,showToast:c,showWarning:u,showNormal:d,clearToast:p}}function ea({computeStyle:e,onScroll:n="close",onResize:a="close",ignoreOutsideClickSelector:r}){const[o,i]=s.useState(!1),[l,c]=s.useState({}),u=s.useRef(null),d=s.useRef(null),p=s.useCallback(()=>{u.current&&c(e(u.current.getBoundingClientRect()))},[e]);s.useEffect(()=>{if(!o)return;p();const b=C=>{const v=C.target;r&&v.closest?.(r)||u.current?.contains(v)||d.current?.contains(v)||i(!1)};document.addEventListener("mousedown",b);const g=C=>{d.current?.contains(C.target)||(n==="reposition"?p():n==="close"&&i(!1))};n!=="ignore"&&window.addEventListener("scroll",g,!0);const f=()=>{a==="reposition"?p():a==="close"&&i(!1)};return a!=="ignore"&&window.addEventListener("resize",f),()=>{document.removeEventListener("mousedown",b),n!=="ignore"&&window.removeEventListener("scroll",g,!0),a!=="ignore"&&window.removeEventListener("resize",f)}},[o,p,n,a,r]),s.useEffect(()=>{if(o)return An(()=>i(!1))},[o]);const h=s.useCallback(()=>i(b=>!b),[]),m=s.useCallback(()=>i(!1),[]);return{open:o,setOpen:i,toggle:h,close:m,style:l,triggerRef:u,menuRef:d}}function n2(e,{mode:n="playback",autoStart:a=!1,onPlaySpeaker:r,onComplete:o,playMs:i=1100,feedbackMs:l=1500}={}){const[c,u]=s.useState([]),[d,p]=s.useState(0),[h,m]=s.useState("idle"),[b,g]=s.useState(null),[f,C]=s.useState([]),[v,x]=s.useState(null),[w,y]=s.useState(0),k=s.useRef(0),_=s.useCallback(R=>{k.current=typeof R=="function"?R(k.current):R,y(k.current)},[]),A=s.useRef(r),T=s.useRef(o);s.useEffect(()=>{A.current=r,T.current=o},[r,o]);const N=s.useRef([]),D=()=>{N.current.forEach(clearTimeout),N.current=[]},H=(R,j)=>{N.current.push(setTimeout(j,R))};s.useEffect(()=>()=>D(),[]);const F=c[d]?.id??null,B=s.useRef(null),I=s.useCallback(()=>{D(),m("playing"),C([]),x(null),_(0);let R=0;e.forEach((j,M)=>{H(R,()=>{p(M),g(j.id),A.current?.(j)}),H(R+1e3,()=>{g(null),C(V=>[...V,j.id])}),R+=1300}),H(R,()=>{m("done"),T.current?.({score:0,total:e.length})})},[e,_]),E=s.useCallback((R,j)=>{if(j>=R.length){m("done"),T.current?.({score:k.current,total:R.length});return}B.current=null,p(j),x(null),m("playing"),g(R[j].id),A.current?.(R[j]),H(i,()=>{g(null),m("waiting")})},[i]),te=s.useCallback(()=>{D();const R=Xn(e);u(R),_(0),C([]),E(R,0)},[e,E,_]),L=s.useCallback(()=>{n==="playback"?(u(e),I()):te()},[n,e,I,te]),O=s.useCallback(()=>{D(),m("idle"),g(null),C([]),x(null),p(0),_(0),u([])},[_]),ee=e.map(R=>R.id).join("|");s.useEffect(()=>(a?L():O(),()=>D()),[n,ee,a]);const Y=s.useCallback(R=>{h!=="waiting"||n==="playback"||B.current===d||(B.current=d,x(R),R===c[d]?.id&&_(j=>j+1),n==="exam"?(m("playing"),H(400,()=>E(c,d+1))):(m("feedback"),H(l,()=>E(c,d+1))))},[h,n,c,d,E,l,_]),K=n==="playback"?e.length:c.length;return{bind:{activeSpeakerId:b,playedIds:f,selectedId:v,answerId:F,showFeedback:h==="feedback",clickable:h==="waiting",onSelectSpeaker:Y},index:d,total:K,score:w,phase:h,done:h==="done",start:L,reset:O}}function a2({title:e,description:n,actionLabel:a,onAction:r,bg:o,color:i,size:l="medium",actionVariant:c,titleColor:u,descriptionColor:d,className:p=""}){const h=o??i??"main",m=s.useRef(null),[b,g]=s.useState("main"),f=Ut("(max-width: 767px)"),C=s.useRef({title:!1,description:!1});s.useLayoutEffect(()=>{const w=m.current;if(!w)return;const y=sr(w),k=(_,A,T)=>{if(T!==void 0)w.style.setProperty(A,T),C.current[_]=!0;else if(C.current[_]){const N=y?.[_];N?w.style.setProperty(A,N):w.style.removeProperty(A),C.current[_]=!1}};k("title","--promo-banner-bg-title",u),k("description","--promo-banner-bg-description",d)},[u,d,h]),s.useLayoutEffect(()=>{const w=m.current;if(!w)return;const y=sr(w);g(y?.actionVariant??"main")},[h]);const v=ye("promo-banner",`promo-banner--${l}`,p),x=Js[h];return t.jsxs("div",{ref:m,className:v,role:"note",children:[t.jsx(x,{}),t.jsxs("div",{className:"promo-banner__text",children:[t.jsx("span",{className:`promo-banner__title ${l==="small"?"body-2":"h2"}`,children:e}),n&&t.jsx("span",{className:"promo-banner__description body-3",children:n})]}),a&&r&&t.jsx(ie,{htmlType:"button",size:40,variant:c??b,shape:"pill",useBorder:!0,onClick:r,ariaLabel:a,...f?{type:"dot",icon:"arrow-right"}:{rightIcon:"arrow-right",label:a,minWidth:140}})]})}function r2({children:e,interval:n=5e3,dotTone:a,className:r="","aria-label":o}){const{t:i}=me.useTranslation(),l=o??i("topBanner.ariaLabel","\uBC30\uB108"),c=s.Children.toArray(e),u=c.length,[d,p]=s.useState(0),[h,m]=s.useState(!1),b=u>0?d%u:0;return s.useEffect(()=>{if(u<2||n<=0||h)return;const g=window.setInterval(()=>p(f=>(f+1)%u),n);return()=>window.clearInterval(g)},[u,n,h]),u===0?null:t.jsxs("section",{className:ye("top-banner",r),"aria-label":l,"aria-roledescription":"carousel",onMouseEnter:()=>m(!0),onMouseLeave:()=>m(!1),onFocus:()=>m(!0),onBlur:()=>m(!1),children:[t.jsx("div",{className:"top-banner__viewport",children:t.jsx("div",{className:"top-banner__track",style:{transform:`translateX(-${b*100}%)`},children:c.map((g,f)=>t.jsx("div",{className:"top-banner__slide","aria-hidden":f!==b,...f!==b?{inert:!0}:{},children:g},f))})}),u>1&&t.jsx("div",{className:`top-banner__dots${(a?.[b]??"light")==="dark"?" top-banner__dots--dark":""}`,children:c.map((g,f)=>t.jsx("button",{type:"button",className:`top-banner__dot${f===b?" top-banner__dot--active":""}`,"aria-label":i("topBanner.dotAriaLabel",{count:u,index:f+1,defaultValue:`${u}\uAC1C \uC911 ${f+1}\uBC88\uC9F8 \uBC30\uB108`}),"aria-current":f===b,onClick:()=>p(f)},f))})]})}function o2({title:e,body:n,open:a=!1,onToggle:r,avatar:o,titleClassName:i="body-2",bodyClassName:l="body-2",className:c=""}){const{t:u}=me.useTranslation();return t.jsxs("div",{className:`accordion-item ${a?"accordion-item--open":""} ${c}`.trim(),role:"listitem",children:[t.jsxs("div",{className:"accordion-item__header",role:"button",tabIndex:0,"aria-expanded":a,"data-accordion-header":!0,onClick:r,onKeyDown:d=>{if(d.key==="Enter"||d.key===" ")d.preventDefault(),r?.();else if(d.key==="ArrowDown"||d.key==="ArrowUp"){d.preventDefault();const p=d.currentTarget.closest('[role="list"]');if(!p)return;const h=Array.from(p.querySelectorAll("[data-accordion-header]")),m=h.indexOf(d.currentTarget);(d.key==="ArrowDown"?h[m+1]:h[m-1])?.focus()}},children:[o&&t.jsx("div",{className:"accordion-item__avatar",children:o}),t.jsx("div",{className:`accordion-item__title ${i}`,children:e}),t.jsx("div",{className:"accordion-item__chevron",children:t.jsx(Ve,{icon:a?"chevron-up":"chevron-down",label:a?u("accordion.collapse","\uC811\uAE30"):u("accordion.expand","\uD3BC\uCE58\uAE30"),className:"accordion-item__chevron-icon",imgClassName:"accordion-item__chevron-image"})})]}),a&&t.jsx("div",{className:`accordion-item__body ${l}`,children:typeof n=="string"?t.jsx("p",{children:n}):n})]})}function s2({items:e=[],defaultOpenIndex:n=0,size:a=72,className:r="",bodyClassName:o}){const[i,l]=s.useState(n);return t.jsx("div",{className:`accordion-group accordion-group--s${a} ${r}`.trim(),role:"list",children:e.map((c,u)=>t.jsx(o2,{title:c.title,body:c.body,avatar:c.avatar,open:u===i,onToggle:()=>l(u===i?-1:u),bodyClassName:o},u))})}function i2(){return t.jsx("svg",{viewBox:"0 0 12 12",fill:"none",stroke:"currentColor",strokeWidth:2.2,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:t.jsx("polyline",{points:"2,6 5,9 10,3"})})}function l2(){return t.jsxs("svg",{viewBox:"0 0 12 12",fill:"none",stroke:"currentColor",strokeWidth:2.2,strokeLinecap:"round","aria-hidden":"true",children:[t.jsx("line",{x1:"3",y1:"3",x2:"9",y2:"9"}),t.jsx("line",{x1:"9",y1:"3",x2:"3",y2:"9"})]})}function c2(){return t.jsx("svg",{viewBox:"0 0 12 12",fill:"none",stroke:"currentColor",strokeWidth:2.2,strokeLinecap:"round","aria-hidden":"true",children:t.jsx("line",{x1:"2.5",y1:"6",x2:"9.5",y2:"6"})})}function rt(e){const{t:n}=me.useTranslation(),{type:a="bar",size:r,className:o="","aria-label":i,"aria-hidden":l}=e;if(a==="dot"){const{icon:k,number:_,position:A="top-right",onClick:T,animate:N=!1}=e,D=k??"check",H=_!==void 0?"number":D,F=typeof r=="number"?r:32,B=ye("circle-badge",`circle-badge--${H}`,`circle-badge--${A}`,`circle-badge--${F}`,N?"circle-badge--animate":"",T?"circle-badge--clickable":"",o),I=_!==void 0?n("badge.nthSelected",{n:_,defaultValue:"{{n}}\uBC88\uC9F8 \uC120\uD0DD"}):{check:n("badge.selected","\uC120\uD0DD\uB428"),remove:n("badge.remove","\uC81C\uAC70"),minus:n("badge.exclude","\uC81C\uC678")}[D];return t.jsxs("span",{className:B,onClick:T,onKeyDown:T?E=>{E.key!=="Enter"&&E.key!==" "||(E.preventDefault(),E.currentTarget.click())}:void 0,"aria-label":l?void 0:i??I,"aria-hidden":l||void 0,role:T?"button":void 0,tabIndex:T?0:void 0,children:[_!==void 0&&_,_===void 0&&D==="check"&&t.jsx(i2,{}),_===void 0&&D==="remove"&&t.jsx(l2,{}),_===void 0&&D==="minus"&&t.jsx(c2,{})]})}const{label:c,children:u,variant:d="default",fill:p="filled",minWidth:h,iconLeft:m,iconRight:b,color:g}=e,f=typeof r=="number"?"medium":r??"medium",C={small:"caption-2b",medium:"body-3b",large:"body-2b"}[f]??"body-2b",v={small:12,medium:14,large:16}[f]??14,x=ye("badge",`badge--${d}`,`badge--${f}`,p!=="filled"?`badge--${p}`:"",C,o),w=g?.startsWith("--")?`var(${g})`:g,y=h!==void 0||w?{...h!==void 0?{minWidth:typeof h=="number"?`${h}px`:h}:{},...w?{"--badge-color":w}:{}}:void 0;return t.jsxs("span",{className:x,style:y,"aria-label":l?void 0:i,role:i&&!l?"img":void 0,"aria-hidden":l||void 0,children:[m&&t.jsx(Ve,{icon:m,size:v,className:"badge__icon"}),c??u,b&&t.jsx(Ve,{icon:b,size:v,className:"badge__icon"})]})}function _a({columns:e=[],onClose:n,className:a="",size:r="medium"}){const{t:o}=me.useTranslation(),i=r==="small"?40:48,[l,c]=s.useState([{title:null,columns:e}]),u=l[l.length-1];s.useEffect(()=>{c(g=>{try{if(!Array.isArray(g)||g.length===0)return[{title:null,columns:e}];const f=g.slice(),C=f[0]&&typeof f[0].title<"u"?f[0].title:null;return f[0]={title:C,columns:e},f}catch{return[{title:null,columns:e}]}})},[e]);const d=s.useCallback(()=>c(g=>g.length>1?g.slice(0,g.length-1):g),[]),p=s.useRef(null),h=s.useRef(null),m=l.length;s.useEffect(()=>{h.current||(h.current=document.activeElement);let g=0,f=0;const C=()=>{const v=p.current?.querySelector("button:not([disabled])");if(v&&v.offsetParent){v.focus({preventScroll:!0});return}f++<20&&(g=requestAnimationFrame(C))};return g=requestAnimationFrame(C),()=>cancelAnimationFrame(g)},[m]),s.useEffect(()=>()=>{h.current?.focus?.({preventScroll:!0})},[]);const b=s.useCallback(g=>{if(g){if(Array.isArray(g.children)&&g.children.length){c(f=>[...f,{title:g.label||null,columns:[{title:null,items:g.children||[]}]}]);return}try{typeof g.onClick=="function"&&g.onClick()}catch{}try{g&&g.closeOnSelect&&typeof n=="function"&&n()}catch{}}},[n]);return t.jsxs("div",{className:`tooltip-menu tooltip-menu--${r} ${a}`,children:[(l.length>1||u.title)&&t.jsxs("div",{className:"tooltip-menu__header",children:[l.length>1?t.jsx(ie,{htmlType:"button",size:i,type:"dot",icon:"chevron-left",ariaLabel:o("common.back","\uB4A4\uB85C"),onClick:d,variant:"transparent-gray",useBorder:!1}):null,t.jsx("div",{className:"tooltip-menu__title button-1",children:u.title})]}),t.jsx("div",{className:"tooltip-menu__columns",ref:p,children:u.columns&&u.columns.map((g,f)=>t.jsxs("div",{className:"tooltip-menu__column",children:[g.title?t.jsx("div",{className:"tooltip-menu__column-title body-3",children:g.title}):null,t.jsx("div",{className:"tooltip-menu__items",children:(g.items||[]).map((C,v)=>t.jsx(ie,{htmlType:"button",className:"tooltip-menu__item",size:i,type:C.label?"bar":"dot",icon:C.selected?"check":C.icon||"none",rightIcon:Array.isArray(C.children)&&C.children.length?"chevron-right":C.badgeCount?t.jsx(rt,{type:"dot",position:"inline",number:Math.min(C.badgeCount,99),size:24,"aria-hidden":!0}):void 0,label:C.label,ariaLabel:C.label&&C.badgeCount&&C.badgeCount>0?o("nav.badgeLabel",{label:C.label,count:C.badgeCount,defaultValue:"{{label}}, {{count}}\uAC1C"}):C.label,onClick:()=>b(C),selected:C.selected,disabled:C.disabled,showTooltipInfo:C.tooltip||!1,useBorder:!1,align:"left"},v))})]},f))})]})}const u2=52,ci=10,ui=e=>e&&e>0?e:0;function di({items:e=[],activeKey:n,onChange:a,appMode:r,onAppModeChange:o,moreItems:i=[]}){const{t:l}=me.useTranslation(),c=r==="manager"?"malgwi":"manager",u=r==="manager"?"arrow-left":"arrow-right",d=r==="manager"?l("nav.modeLabelMalgwi","\uB9D0\uADC0"):l("nav.modeLabelManager","\uB9D0\uADC0 \uB9E4\uB2C8\uC800"),p=s.useRef(null),[h,m]=s.useState(0),b=e.length;s.useEffect(()=>{const L=p.current;if(!L||(m(L.clientWidth),typeof ResizeObserver>"u"))return;const O=new ResizeObserver(ee=>m(ee[0].contentRect.width));return O.observe(L),()=>O.disconnect()},[]);const g=h>0?Math.floor((h+ci)/(u2+ci)):b,f=h>0&&g<b,C=f?g:b,v=e.slice(0,C),x=e.slice(C),w=f||i.length>0,y=s.useCallback(L=>({position:"fixed",bottom:window.innerHeight-L.top+8,right:window.innerWidth-L.right,zIndex:1e4}),[]),k=s.useId(),{open:_,toggle:A,close:T,style:N,triggerRef:D,menuRef:H}=ea({computeStyle:y,onScroll:"ignore",onResize:"ignore"}),F=s.useCallback((L,O)=>O>0?l("nav.badgeLabel",{label:L,count:O,defaultValue:"{{label}}, {{count}}\uAC1C"}):L,[l]),B=s.useCallback(()=>o?.(c),[o,c]),I=s.useMemo(()=>x.find(L=>L.key===n)??i.find(L=>L.selected||L.key&&L.key===n),[x,n,i]),E=s.useMemo(()=>[{items:[...x.map(L=>({label:L.label,icon:L.icon,badgeCount:L.badgeCount,selected:L.key===n,closeOnSelect:!0,onClick:()=>{L.key&&a&&a(L.key),T()}})),...i.map(L=>({label:L.label,icon:L.icon,badgeCount:L.badgeCount,selected:L.selected??(!!L.key&&L.key===n),closeOnSelect:!0,onClick:()=>{L.onClick?.(),T()}}))]}],[x,i,n,a,T]),te=[...x,...i].reduce((L,O)=>L+ui(O.badgeCount),0);return t.jsxs("nav",{className:"bottom-nav","aria-label":l("nav.bottomNav","\uD558\uB2E8 \uB124\uBE44\uAC8C\uC774\uC158"),children:[o&&t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"bottom-nav__left",children:t.jsx(ie,{htmlType:"button",size:52,type:"dot",icon:u,ariaLabel:d,className:"bottom-nav-item",onClick:B})}),t.jsx("div",{className:"bottom-nav__divider","aria-hidden":"true"})]}),t.jsx("div",{className:"bottom-nav__items",ref:p,children:v.map(L=>{const O=ui(L.badgeCount);return t.jsxs("span",{className:"bottom-nav__slot",children:[t.jsx(ie,{htmlType:"button",size:52,type:"dot",icon:L.icon,ariaLabel:F(L.label,O),selected:L.key===n,disabled:L.state==="disabled",className:"bottom-nav-item",onClick:()=>L.key&&a?.(L.key)}),O>0&&t.jsx("span",{"aria-hidden":"true",children:t.jsx(rt,{type:"dot",position:"top-right",number:Math.min(O,99),size:24})})]},L.key)})}),w&&t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"bottom-nav__divider","aria-hidden":"true"}),t.jsx("div",{className:"bottom-nav__right",children:t.jsxs("div",{ref:D,className:"bottom-nav__slot",children:[t.jsx(ie,{htmlType:"button",size:52,type:"dot",icon:I?.icon??"ellipsis",ariaLabel:F(I?.label??l("nav.more","\uB354\uBCF4\uAE30"),te),selected:!!I,className:"bottom-nav-item",onClick:A,"aria-expanded":_,"aria-controls":_?k:void 0}),te>0&&t.jsx("span",{"aria-hidden":"true",children:t.jsx(rt,{type:"dot",position:"top-right",number:Math.min(te,99),size:24})}),_&&Ft.createPortal(t.jsx("div",{id:k,role:"group","aria-label":l("nav.moreMenu","\uB354\uBCF4\uAE30 \uBA54\uB274"),className:"tooltip-content",style:N,ref:H,children:t.jsx(_a,{columns:E,onClose:T})}),document.body)]})})]})]})}function pi(e,n,a){return a&&a>0?e("nav.badgeLabel",{label:n,count:a,defaultValue:"{{label}}, {{count}}\uAC1C"}):n}function d2(e){const{t:n}=me.useTranslation(),{activeKey:a,unreadCount:r,onDebug:o,onNotification:i,onSetting:l,onHelp:c,onAccount:u}=e||{},d="default";return o||i||l||c||u?t.jsxs("div",{className:"side-nav__footer",children:[o&&t.jsx(ie,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:d,icon:"terminal",ariaLabel:n("nav.debug","\uB514\uBC84\uADF8"),onClick:o,selected:a==="debug"}),i&&t.jsxs("span",{className:"side-nav__notification-wrap",children:[t.jsx(ie,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:d,icon:"bell",ariaLabel:pi(n,n("nav.notifications","\uC54C\uB9BC"),r),onClick:i,selected:a==="notifications"}),!!r&&r>0&&t.jsx(rt,{type:"dot",number:Math.min(r,99),size:24,"aria-hidden":!0})]}),l&&t.jsx(ie,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:d,icon:"settings",ariaLabel:n("nav.settings","\uC124\uC815"),onClick:l,selected:a==="settings"}),c&&t.jsx(ie,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:d,icon:"message-circle-question-mark",ariaLabel:n("nav.help","\uB3C4\uC6C0\uB9D0"),onClick:c,selected:a==="help"}),u&&t.jsx(ie,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:d,icon:"user-round",ariaLabel:n("nav.account","\uACC4\uC815"),onClick:u,selected:a==="account"})]}):null}function hi(e){const{t:n}=me.useTranslation(),{item:a,itemKey:r,label:o,icon:i,active:l,onClick:c,style:u,state:d,labelStyle:p}=e||{},h=a?.key??r??"",m=a?.label??o??"",b=a?.icon??i??"",g=a?.badge??0,f=t.jsx("span",{className:"side-nav__icon-wrap",children:t.jsx(Ve,{icon:b,label:typeof m=="string"?m:void 0,className:"side-nav__icon",maskClassName:"side-nav__icon-image",imgClassName:void 0,svgClassName:void 0})}),C=d==="disabled",v=`side-nav__item ${l?"active":""} ${d||""} ${C?"disabled":""} ${a?.child?"side-nav__item--child":""}`,x=s.useCallback(w=>{if(C)return;const y=w.detail>0;if(y)try{w.currentTarget.blur()}catch{}c?.(h,w.currentTarget,y)},[C,h,c]);return t.jsxs("button",{type:"button",className:v,onClick:x,"aria-label":typeof m=="string"?pi(n,m,g):void 0,style:u,"aria-disabled":C,children:[f,t.jsx("span",{className:"side-nav__label button-1 f",style:p,children:m}),g>0&&t.jsx(rt,{type:"dot",position:"inline",number:Math.min(g,99),size:24,"aria-hidden":!0}),d==="loading"&&t.jsx("span",{className:"side-nav__spinner",role:"img","aria-label":n("loader.loading","\uBD88\uB7EC\uC624\uB294 \uC911\u2026")})]})}function mi(e){const{t:n}=me.useTranslation(),{items:a=[],activeKey:r,onChange:o,unreadCount:i,onDebug:l,onNotification:c,onAccount:u,onSetting:d,onHelp:p,appMode:h,onAppModeChange:m}=e||{},b=h==="manager",g=s.useCallback(()=>m?.(b?"malgwi":"manager"),[m,b]);return t.jsxs("nav",{"aria-label":n("nav.mainMenu","\uBA54\uC778 \uBA54\uB274"),className:"side-nav__menu",children:[t.jsxs("div",{className:"side-nav__menu-list",children:[(a||[]).filter(f=>!f.section&&(f.key||f.label)).map((f,C)=>t.jsxs(s.Fragment,{children:[f.divider&&t.jsx("div",{className:"side-nav__separator"}),t.jsx(hi,{item:f,active:f.key===r,state:f.disabled?"disabled":void 0,onClick:(v,x,w)=>{if(f.disabled)return;if(f.href){if(window.open(f.href,"_blank","noopener,noreferrer"),w)try{x?.blur()}catch{}return}o?.(f.key);try{const k=document.querySelector(".content-area");k?k.scrollTop=0:window.scrollTo({top:0})}catch{}if(!w)return;try{x?.blur()}catch{}if(typeof window<"u"&&window.matchMedia){if(!window.matchMedia("(min-width: 768px) and (max-width: 1023px)").matches)return}else return;const y=document.querySelector(".header");if(y&&!(typeof y.matches=="function"&&y.matches(":hover"))){y.classList.add("header--force-collapsed");const k=()=>{y.classList.remove("header--force-collapsed"),y.removeEventListener("mouseenter",k)};y.addEventListener("mouseenter",k)}}})]},f.key??`side-nav__item-${C}`)),m&&t.jsx("div",{className:"side-nav__separator side-nav__separator--short"}),m&&t.jsx(hi,{item:{key:"__mode-switch__",label:b?n("nav.goToMalgwi","\uB9D0\uADC0\uB85C \uC774\uB3D9"):n("nav.goToManager","\uB9D0\uADC0\uB9E4\uB2C8\uC800\uB85C \uC774\uB3D9"),icon:b?"arrow-left":"arrow-right"},onClick:g})]}),t.jsx(d2,{activeKey:r,unreadCount:i,onDebug:l,onNotification:c,onAccount:u,onSetting:d,onHelp:p})]})}var dr='data:image/svg+xml,<svg width="200" height="100" viewBox="0 0 200 100" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_2080_3066)">%0A<path d="M96.4287 48.3536V24.2572H127.047V48.3536H96.4287ZM142.975 69.1536V76.3607H98.2144V60.6393H132.679V58.5107H98.0787V51.3036H142.429V67.025H108.104V69.1536H142.979H142.975ZM106.247 32.5643V39.9786H117.3V32.5643H106.247ZM148.329 40.3893H142.425V49.45H132.539V23.6357H142.425V30.8429H148.329V40.3857V40.3893Z" fill="black"/>%0A<path d="M185.536 47.8714V57.275C182.743 58.5571 178.371 59.1964 172.425 59.1964H171.807V76.3607H161.921V59.1964H149.704V49.7929H172.564C178.421 49.7929 182.746 49.1536 185.539 47.8714H185.536ZM152.586 34.2786V24.875H181.282V47.05H171.396V34.2821H152.586V34.2786ZM198.307 76.3607H188.421V23.6393H198.307V76.3643V76.3607Z" fill="black"/>%0A<path d="M46.4288 17.8571H25.0002C15.138 17.8571 7.14307 25.852 7.14307 35.7143V57.1428C7.14307 67.0051 15.138 75 25.0002 75H46.4288C56.291 75 64.2859 67.0051 64.2859 57.1428V35.7143C64.2859 25.852 56.291 17.8571 46.4288 17.8571Z" fill="%234DCDC0"/>%0A<path d="M34.8607 50.7393C25.8285 60.6821 10.6142 61.6678 0.385667 53.1643C-0.0821902 52.775 -0.13219 52.0678 0.278524 51.6178L16.3535 33.925L34.8607 50.7393Z" fill="%234DCDC0"/>%0A<path d="M53.5714 25H32.1428C22.2821 25 14.2856 32.9964 14.2856 42.8571V64.2857C14.2856 74.1464 22.2821 82.1429 32.1428 82.1429H48.2535C49.2178 82.1429 49.9999 82.925 49.9999 83.8893C49.9999 84.9107 50.8749 85.7214 51.8928 85.6321C62.8392 84.675 71.4285 75.4821 71.4285 64.2857V42.8571C71.4285 32.9964 63.4321 25 53.5714 25Z" fill="%234DCDC0"/>%0A<path d="M24.9999 25C19.0821 25 14.2856 29.7964 14.2856 35.7143V64.2857C14.2856 67.3786 15.0749 70.2893 16.4571 72.8286C18.9928 74.2143 21.9035 75 24.9999 75H53.5714C59.4892 75 64.2856 70.2036 64.2856 64.2857V35.7143C64.2856 32.6214 63.4964 29.7107 62.1142 27.1714C59.5785 25.7857 56.6678 25 53.5714 25H24.9999Z" fill="%23499CDF"/>%0A<path d="M25.357 40.7143C25.357 39.5308 24.3976 38.5714 23.2141 38.5714C22.0307 38.5714 21.0713 39.5308 21.0713 40.7143V45C21.0713 46.1834 22.0307 47.1428 23.2141 47.1428C24.3976 47.1428 25.357 46.1834 25.357 45V40.7143Z" fill="white"/>%0A<path d="M36.0715 57.1429C35.0287 57.1429 33.9822 56.875 33.0358 56.3286C32.1822 55.8357 31.8894 54.7429 32.3858 53.8893C32.8787 53.0357 33.9715 52.7429 34.8251 53.2393C35.8037 53.8036 37.043 53.6429 37.8394 52.8464C38.2251 52.4607 38.468 51.9714 38.543 51.4357C38.8644 49.1607 39.868 47 41.4501 45.1857C42.393 44.1071 42.8894 42.7214 42.8537 41.2857C42.7787 38.3536 40.4322 35.9107 37.5072 35.7286C36.5215 35.6679 35.5715 35.8464 34.693 36.2679C33.8037 36.6929 32.7358 36.3107 32.3144 35.4214C31.8894 34.5321 32.2715 33.4643 33.1608 33.0429C34.5751 32.3714 36.1537 32.0679 37.7322 32.1643C42.4894 32.4607 46.3072 36.4286 46.4251 41.1964C46.4822 43.5286 45.6715 45.7786 44.143 47.5357C43.018 48.825 42.3037 50.3464 42.0822 51.9357C41.8965 53.2464 41.3037 54.4357 40.368 55.375C39.2001 56.5429 37.6465 57.15 36.0751 57.15L36.0715 57.1429Z" fill="white"/>%0A</g>%0A<defs>%0A<clipPath id="clip0_2080_3066">%0A<rect width="200" height="100" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A',pr='data:image/svg+xml,<svg width="371" height="100" viewBox="0 0 371 100" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_2255_7374)">%0A<path d="M237.151 26.0393V72.7214H216.65V26.0393H237.151ZM234.408 70.0464V28.7179H219.254V70.0464H234.408ZM261.495 76.3607H258.819V48.9679H247.575V75.4679H244.899V23.9821H247.575V46.2929H258.819V23.6393H261.495V76.3643V76.3607Z" fill="black"/>%0A<path d="M299.722 69.2571C302.076 68.775 304.031 68.1464 305.583 67.3679V70.1143C304.074 70.9393 302.144 71.5786 299.789 72.0357C297.435 72.4929 295.045 72.7214 292.623 72.7214H272.257V25.6964H275V69.975H292.623C294.998 69.975 297.364 69.7357 299.722 69.2536V69.2571ZM311.69 76.4321V23.6393H314.433V76.3643L311.69 76.4321Z" fill="black"/>%0A<path d="M340.556 47.9393L358.179 70.4572L356.053 72.1036L339.872 51.1643C338.409 57.3429 336.329 62.2643 333.632 65.925C330.935 69.5857 327.736 71.8536 324.033 72.7215V69.975C327.279 69.15 330.044 66.8643 332.33 63.1107C334.617 59.3572 336.354 54.5179 337.542 48.5893C338.73 42.6643 339.369 36.0393 339.461 28.7143H324.992V26.0357H356.602V28.7143H342.201C342.155 35.9 341.605 42.3072 340.556 47.9357V47.9393ZM369.22 76.3607H366.477V47.4572H352.418V44.7786H366.477V23.6357H369.22V76.3607Z" fill="black"/>%0A<path d="M92.8784 48.3536V24.2572H123.461V48.3536H92.8784ZM139.371 69.1536V76.3607H94.6621V60.6393H129.087V58.5107H94.5265V51.3036H138.825V67.025H104.54V69.1536H139.375H139.371ZM102.685 32.5643V39.9786H113.726V32.5643H102.685ZM144.719 40.3893H138.822V49.45H128.947V23.6357H138.822V30.8429H144.719V40.3857V40.3893Z" fill="black"/>%0A<path d="M181.886 47.8714V57.275C179.097 58.5571 174.73 59.1964 168.791 59.1964H168.174V76.3607H158.299V59.1964H146.096V49.7929H168.93C174.78 49.7929 179.1 49.1536 181.89 47.8714H181.886ZM148.971 34.2786V24.875H177.634V47.05H167.76V34.2821H148.971V34.2786ZM194.64 76.3607H184.765V23.6393H194.64V76.3643V76.3607Z" fill="black"/>%0A<path d="M48.1549 17.8571H26.7511C16.9002 17.8571 8.91455 25.852 8.91455 35.7143V57.1428C8.91455 67.0051 16.9002 75 26.7511 75H48.1549C58.0058 75 65.9915 67.0051 65.9915 57.1428V35.7143C65.9915 25.852 58.0058 17.8571 48.1549 17.8571Z" fill="%234DCDC0"/>%0A<path d="M36.6007 50.7393C27.579 60.6821 12.3823 61.6678 2.1655 53.1643C1.69818 52.775 1.64824 52.0678 2.05848 51.6178L18.1149 33.925L36.6007 50.7393Z" fill="%234DCDC0"/>%0A<path d="M55.2897 25H33.8859C24.0365 25 16.0493 32.9964 16.0493 42.8571V64.2857C16.0493 74.1464 24.0365 82.1429 33.8859 82.1429H49.978C50.9412 82.1429 51.7224 82.925 51.7224 83.8893C51.7224 84.9107 52.5964 85.7214 53.6131 85.6321C64.5469 84.675 73.1262 75.4821 73.1262 64.2857V42.8571C73.1262 32.9964 65.139 25 55.2897 25Z" fill="%234DCDC0"/>%0A<path d="M26.7512 25C20.8402 25 16.0493 29.7964 16.0493 35.7143V64.2857C16.0493 67.3786 16.8377 70.2893 18.2182 72.8286C20.751 74.2143 23.6584 75 26.7512 75H55.2897C61.2007 75 65.9916 70.2036 65.9916 64.2857V35.7143C65.9916 32.6214 65.2032 29.7107 63.8227 27.1714C61.2899 25.7857 58.3826 25 55.2897 25H26.7512Z" fill="%23499CDF"/>%0A<path d="M27.1079 40.7143C27.1079 39.5308 26.1496 38.5714 24.9675 38.5714C23.7854 38.5714 22.8271 39.5308 22.8271 40.7143V45C22.8271 46.1834 23.7854 47.1428 24.9675 47.1428C26.1496 47.1428 27.1079 46.1834 27.1079 45V40.7143Z" fill="white"/>%0A<path d="M37.8097 57.1429C36.768 57.1429 35.7228 56.875 34.7775 56.3286C33.9249 55.8357 33.6323 54.7429 34.1282 53.8893C34.6205 53.0357 35.7121 52.7429 36.5647 53.2393C37.5421 53.8036 38.78 53.6429 39.5755 52.8464C39.9608 52.4607 40.2033 51.9714 40.2782 51.4357C40.5993 49.1607 41.6017 47 43.182 45.1857C44.1238 44.1071 44.6197 42.7214 44.584 41.2857C44.5091 38.3536 42.1653 35.9107 39.2437 35.7286C38.2556 35.6679 37.3102 35.8464 36.4327 36.2679C35.5444 36.6929 34.4778 36.3107 34.0569 35.4214C33.6323 34.5321 34.014 33.4643 34.9023 33.0429C36.315 32.3714 37.8917 32.0679 39.4685 32.1643C44.2201 32.4607 48.0336 36.4286 48.1513 41.1964C48.2084 43.5286 47.3986 45.7786 45.8718 47.5357C44.7481 48.825 44.0346 50.3464 43.8134 51.9357C43.6279 53.2464 43.0358 54.4357 42.1011 55.375C40.9346 56.5429 39.3828 57.15 37.8132 57.15L37.8097 57.1429Z" fill="white"/>%0A</g>%0A<defs>%0A<clipPath id="clip0_2255_7374">%0A<rect width="371" height="100" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A',p2='data:image/svg+xml,<svg width="100" height="100" viewBox="0 0 100 100" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_2175_65214)">%0A<path d="M57.1427 17.8571H35.7141C25.8518 17.8571 17.8569 25.852 17.8569 35.7143V57.1428C17.8569 67.0051 25.8518 75 35.7141 75H57.1427C67.0049 75 74.9998 67.0051 74.9998 57.1428V35.7143C74.9998 25.852 67.0049 17.8571 57.1427 17.8571Z" fill="%234DCDC0"/>%0A<path d="M45.575 50.7393C36.5429 60.6821 21.3286 61.6678 11.1 53.1643C10.6322 52.775 10.5822 52.0678 10.9929 51.6178L27.0679 33.925L45.575 50.7393Z" fill="%234DCDC0"/>%0A<path d="M64.2857 25H42.8571C32.9964 25 25 32.9964 25 42.8571V64.2857C25 74.1464 32.9964 82.1429 42.8571 82.1429H58.9679C59.9321 82.1429 60.7143 82.925 60.7143 83.8893C60.7143 84.9107 61.5893 85.7214 62.6071 85.6321C73.5536 84.675 82.1429 75.4821 82.1429 64.2857V42.8571C82.1429 32.9964 74.1464 25 64.2857 25Z" fill="%234DCDC0"/>%0A<path d="M35.7143 25C29.7964 25 25 29.7964 25 35.7143V64.2857C25 67.3786 25.7893 70.2893 27.1714 72.8286C29.7071 74.2143 32.6179 75 35.7143 75H64.2857C70.2036 75 75 70.2036 75 64.2857V35.7143C75 32.6214 74.2107 29.7107 72.8286 27.1714C70.2929 25.7857 67.3821 25 64.2857 25H35.7143Z" fill="%23499CDF"/>%0A<path d="M36.0714 40.7143C36.0714 39.5308 35.112 38.5714 33.9285 38.5714C32.745 38.5714 31.7856 39.5308 31.7856 40.7143V45C31.7856 46.1834 32.745 47.1428 33.9285 47.1428C35.112 47.1428 36.0714 46.1834 36.0714 45V40.7143Z" fill="white"/>%0A<path d="M46.7859 57.1429C45.743 57.1429 44.6966 56.875 43.7502 56.3286C42.8966 55.8357 42.6037 54.7429 43.1002 53.8893C43.593 53.0357 44.6859 52.7429 45.5395 53.2393C46.518 53.8036 47.7573 53.6429 48.5537 52.8464C48.9395 52.4607 49.1823 51.9714 49.2573 51.4357C49.5787 49.1607 50.5823 47 52.1645 45.1857C53.1073 44.1071 53.6037 42.7214 53.568 41.2857C53.493 38.3536 51.1466 35.9107 48.2216 35.7286C47.2359 35.6679 46.2859 35.8464 45.4073 36.2679C44.5145 36.6929 43.4502 36.3107 43.0287 35.4214C42.6037 34.5321 42.9859 33.4643 43.8752 33.0429C45.2895 32.3714 46.868 32.0679 48.4466 32.1643C53.2002 32.4607 57.0216 36.4286 57.1395 41.1964C57.1966 43.5286 56.3859 45.7786 54.8573 47.5357C53.7323 48.825 53.018 50.3464 52.7966 51.9357C52.6109 53.2464 52.018 54.4357 51.0823 55.375C49.9145 56.5429 48.3609 57.15 46.7895 57.15L46.7859 57.1429Z" fill="white"/>%0A</g>%0A<defs>%0A<clipPath id="clip0_2175_65214">%0A<rect width="100" height="100" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A';function fi({appMode:e}){const{t:n}=me.useTranslation(),a=e==="manager",r=a?pr:dr,o=p2,i=Ut("(min-width: 768px) and (max-width: 1023px)");return t.jsx("div",{className:"brand-identity__root","aria-label":n("header.biArea","BI \uC601\uC5ED"),children:i?t.jsx("img",{src:o,alt:n("header.biSymbol","BI \uC2EC\uBCFC"),className:"brand-identity__image"}):t.jsx("img",{src:r,alt:a?n("header.logoManager","\uB9D0\uADC0\uB9E4\uB2C8\uC800 \uB85C\uACE0"):n("header.logoMalgwi","\uB9D0\uADC0 \uB85C\uACE0"),className:"brand-identity__image"})})}function Ci({activeKey:e,onChange:n,items:a,malgwiItems:r,managerItems:o,unreadCount:i,onDebug:l,onNotification:c,onAccount:u,onSetting:d,onHelp:p,appMode:h,onAppModeChange:m}){const{t:b}=me.useTranslation(),g=Ut("(max-width: 767px)"),f=s.useMemo(()=>(a??[]).filter(H=>!H.section&&(H.key||H.label)).map(H=>({key:H.key,label:typeof H.label=="string"?H.label:void 0,icon:H.icon,state:H.disabled?"disabled":void 0,badgeCount:H.badge})),[a]),C=s.useCallback(H=>{const F=a?.find(B=>B.key===H);if(!F?.disabled){if(F?.href){window.open(F.href,"_blank","noopener,noreferrer");return}n?.(H)}},[a,n]),v=s.useMemo(()=>{const H=[];return l&&H.push({key:"debug",icon:"terminal",label:b("nav.debug","\uB514\uBC84\uADF8"),onClick:l}),c&&H.push({key:"notifications",icon:"bell",label:b("nav.notifications","\uC54C\uB9BC"),badgeCount:i,onClick:c}),d&&H.push({key:"settings",icon:"settings",label:b("nav.settings","\uC124\uC815"),onClick:d}),p&&H.push({key:"help",icon:"message-circle-question-mark",label:b("nav.help","\uB3C4\uC6C0\uB9D0"),onClick:p}),u&&H.push({key:"account",icon:"user-round",label:b("nav.account","\uACC4\uC815"),onClick:u}),H},[b,l,c,d,p,u,i]),x=s.useCallback(H=>({position:"fixed",top:H.bottom+8,right:Math.max(8,window.innerWidth-H.right),zIndex:1e4}),[]),w=s.useId(),{open:y,toggle:k,close:_,style:A,triggerRef:T,menuRef:N}=ea({computeStyle:x,onScroll:"ignore",onResize:"ignore"}),D=s.useMemo(()=>[{items:v.map(H=>({label:H.label,icon:H.icon,badgeCount:H.badgeCount,selected:H.selected??(!!H.key&&H.key===e),closeOnSelect:!0,onClick:()=>{H.onClick?.(),_()}}))}],[v,e,_]);return t.jsxs("aside",{className:`header${h==="manager"?" header--manager":""}`,children:[t.jsxs("div",{className:"header__bi",children:[t.jsx(fi,{appMode:h}),t.jsxs("div",{className:"header__menu-button",ref:T,children:[t.jsx(ie,{htmlType:"button",size:48,type:"dot",shape:"pill",variant:"default",icon:"menu",ariaLabel:c&&i&&i>0?b("nav.badgeLabel",{label:b("header.menuOpen","\uBA54\uB274 \uC5F4\uAE30"),count:i,defaultValue:"{{label}}, {{count}}\uAC1C"}):b("header.menuOpen","\uBA54\uB274 \uC5F4\uAE30"),onClick:k,"aria-expanded":y,"aria-controls":y?w:void 0}),!!c&&!!i&&i>0&&t.jsx(rt,{type:"dot",number:Math.min(i,99),size:24,"aria-hidden":!0}),y&&Ft.createPortal(t.jsx("div",{id:w,role:"group","aria-label":b("header.utilMenu","\uC720\uD2F8\uB9AC\uD2F0 \uBA54\uB274"),className:"tooltip-content",style:A,ref:N,children:t.jsx(_a,{columns:D,onClose:_})}),document.body)]})]}),t.jsx(mi,{items:a,activeKey:e??void 0,onChange:n,unreadCount:i,onDebug:l,onNotification:c,onAccount:u,onSetting:d,onHelp:p,appMode:h,onAppModeChange:m}),g&&t.jsx(di,{items:f,activeKey:e??void 0,onChange:C,appMode:h,onAppModeChange:m})]})}const h2=Ci;var m2={statusFilter:"\uC0C1\uD0DC \uD544\uD130",pageSizeSelect:"\uD398\uC774\uC9C0\uB2F9 \uD45C\uC2DC \uAC1C\uC218",selectedCount:"{{count}}\uAC1C \uC120\uD0DD\uB428",cancel:"\uCDE8\uC18C",info:"\uC124\uBA85",errorState:{message:"\uBD88\uB7EC\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.",retry:"\uB2E4\uC2DC \uC2DC\uB3C4"},save:"\uC800\uC7A5",confirm:"\uD655\uC778",close:"\uB2EB\uAE30",back:"\uB4A4\uB85C",emptyTrainingName:"\uD6C8\uB828 \uC774\uB984\uC774 \uBE44\uC5B4 \uC788\uC2B5\uB2C8\uB2E4.",remove:"\uC81C\uAC70",image:"\uC774\uBBF8\uC9C0",delete:"\uC0AD\uC81C",reset:"\uCD08\uAE30\uD654",update:"\uC5C5\uB370\uC774\uD2B8",download:"\uB2E4\uC6B4\uB85C\uB4DC",search:"\uAC80\uC0C9",empty:"\uB370\uC774\uD130\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.",yes:"\uC608",no:"\uC544\uB2C8\uC624",all:"\uC804\uCCB4",none:"\uC5C6\uC74C",days:"{{count}}\uC77C",loadMore:"\uB354\uBCF4\uAE30",more:"\uB354\uBCF4\uAE30",moreFor:"{{name}} \uB354\uBCF4\uAE30",retry:"\uB2E4\uC2DC \uC2DC\uB3C4",prevPage:"\uC774\uC804 \uD398\uC774\uC9C0",nextPage:"\uB2E4\uC74C \uD398\uC774\uC9C0",play:"\uC7AC\uC0DD",pause:"\uBA48\uCDA4",playPause:"\uC7AC\uC0DD / \uBA48\uCDA4",replay:"\uB2E4\uC2DC\uB4E3\uAE30",subscription:"\uC774\uC6A9\uAD8C",done:"\uC644\uB8CC",failed:"\uC2E4\uD328",continue:"\uACC4\uC18D",notification:"\uC54C\uB9BC",emptyList:"\uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",menu:"\uBA54\uB274",resetSelection:"\uC120\uD0DD \uCD08\uAE30\uD654",pageSizeLabel:"{{n}}\uAC1C\uC529 \uBCF4\uAE30",totalCountPrefix:"\uCD1D ",totalCountSuffix:"\uAC1C",expand:"\uD3BC\uCE58\uAE30",collapse:"\uC811\uAE30",popup:"\uD31D\uC5C5",codeBlock:"\uCF54\uB4DC \uBE14\uB85D",totalPrefix:"\uCD1D ",copyCode:"\uCF54\uB4DC \uBCF5\uC0AC",copied:"\uBCF5\uC0AC\uB428",col:{problem:"\uBB38\uC81C"},phonetics:{place:{labial:"\uC591\uC21C\uC74C",alveolar:"\uCE58\uC870\uC74C",palatal:"\uACBD\uAD6C\uAC1C\uC74C",velar:"\uC5F0\uAD6C\uAC1C\uC74C",glottal:"\uC131\uBB38\uC74C"},vowel:{frontHigh:"\uC804\uC124 \uACE0\uBAA8\uC74C",backHighUnrounded:"\uD6C4\uC124 \uACE0\uBAA8\uC74C \uD3C9\uC21C",backHighRounded:"\uD6C4\uC124 \uACE0\uBAA8\uC74C \uC6D0\uC21C",frontMid:"\uC804\uC124 \uC911\uBAA8\uC74C",backMidUnrounded:"\uD6C4\uC124 \uC911\uBAA8\uC74C \uD3C9\uC21C",backMidRounded:"\uD6C4\uC124 \uC911\uBAA8\uC74C \uC6D0\uC21C",low:"\uC800\uBAA8\uC74C"},glide:{j:"j\uD65C\uC74C",w:"w\uD65C\uC74C",velar:"\u0270\uD65C\uC74C"}},unknownError:"\uC54C \uC218 \uC5C6\uB294 \uC624\uB958",networkError:"\uB124\uD2B8\uC6CC\uD06C \uC5F0\uACB0\uC774 \uBD88\uC548\uC815\uD569\uB2C8\uB2E4. \uC5F0\uACB0 \uC0C1\uD0DC\uB97C \uD655\uC778\uD55C \uB4A4 \uB2E4\uC2DC \uC2DC\uB3C4\uD574 \uC8FC\uC138\uC694."},f2={rangeSelect:"\uAE30\uAC04 \uC120\uD0DD",dow:["\uC77C","\uC6D4","\uD654","\uC218","\uBAA9","\uAE08","\uD1A0"],yearMonth:"{{year}}\uB144 {{month}}\uC6D4",prevMonth:"\uC774\uC804 \uB2EC",addOnDate:"{{date}}\uC5D0 \uBC29\uBB38 \uB4F1\uB85D",nextMonth:"\uB2E4\uC74C \uB2EC",prevWeek:"\uC774\uC804 \uC8FC",nextWeek:"\uB2E4\uC74C \uC8FC",legend:{visited:"\uBC29\uBB38",scheduled:"\uC608\uC57D",noVisit:"\uBBF8\uBC29\uBB38"},periodSelect:"\uAE30\uAC04 \uB2E8\uC704"},C2={planSuffix:"\uC774\uC6A9\uAD8C",labeledPlan:"{{label}} \uC774\uC6A9\uAD8C",couponCode:"\uC774\uC6A9\uAD8C \uCF54\uB4DC",specialLabel:"\uC624\uD508\uD2B9\uAC00",unitDay:"\uC77C",unitYear:"\uB144",remainingDay:"{{n}}\uC77C \uB0A8\uC74C",remainingHour:"{{n}}\uC2DC\uAC04 \uB0A8\uC74C",remainingMinute:"{{n}}\uBD84 \uB0A8\uC74C",remainingSecond:"{{n}}\uCD08 \uB0A8\uC74C",menu:{use:"\uC0AC\uC6A9\uD558\uAE30",refund:"\uD658\uBD88\uD558\uAE30",delete:"\uC0AD\uC81C\uD558\uAE30"}},g2={clearAriaLabel:"\uAC80\uC0C9\uC5B4 \uC9C0\uC6B0\uAE30"},b2={starLabel:"{{n}}\uBC88\uC9F8 \uBCC4 \uC120\uD0DD",valueLabel:"{{max}}\uC810 \uB9CC\uC810\uC5D0 {{value}}\uC810",groupLabel:"\uBCC4\uC810"},y2={selected:"\uC120\uD0DD\uB428"},v2={placeholder:"\uC120\uD0DD"},x2={collapse:"\uC811\uAE30",expand:"\uD3BC\uCE58\uAE30"},_2={biArea:"BI \uC601\uC5ED",biSymbol:"BI \uC2EC\uBCFC",logoMalgwi:"\uB9D0\uADC0 \uB85C\uACE0",logoManager:"\uB9D0\uADC0\uB9E4\uB2C8\uC800 \uB85C\uACE0",menuOpen:"\uBA54\uB274 \uC5F4\uAE30",utilMenu:"\uC720\uD2F8\uB9AC\uD2F0 \uBA54\uB274",menuClose:"\uBA54\uB274 \uB2EB\uAE30"},w2={mainMenu:"\uBA54\uC778 \uBA54\uB274",bottomNav:"\uD558\uB2E8 \uB124\uBE44\uAC8C\uC774\uC158",goToManager:"\uB9D0\uADC0\uB9E4\uB2C8\uC800\uB85C \uC774\uB3D9",goToMalgwi:"\uB9D0\uADC0\uB85C \uC774\uB3D9",modeLabelManager:"\uB9D0\uADC0 \uB9E4\uB2C8\uC800",modeLabelMalgwi:"\uB9D0\uADC0",training:"\uD6C8\uB828",settings:"\uC124\uC815",notifications:"\uC54C\uB9BC",account:"\uACC4\uC815",help:"\uB3C4\uC6C0\uB9D0",debug:"\uB514\uBC84\uADF8",coupons:"\uCFE0\uD3F0",topic:"\uC8FC\uC81C\uBCC4 \uB4E3\uAE30",trainingType:"\uD6C8\uB828\uBCC4 \uB4E3\uAE30",wordPairs:"\uB300\uB9BD\uC30D \uCC3E\uAE30",wordSearch:"\uB2E8\uC5B4 \uCC3E\uAE30",wordTable:"\uB2E8\uC5B4\uD45C \uB9CC\uB4E4\uAE30",company:"\uC5C5\uCCB4\uC815\uBCF4",more:"\uB354\uBCF4\uAE30",moreMenu:"\uB354\uBCF4\uAE30 \uBA54\uB274",badgeLabel:"{{label}}, {{count}}\uAC1C"},k2={language:{training:{label:"\uD6C8\uB828 \uC5B8\uC5B4",sub:"\uD6C8\uB828\uC5D0 \uC0AC\uC6A9\uB418\uB294 \uB2E8\uC5B4\uC640 \uC74C\uC131 \uC5B8\uC5B4"}},notifications:{title:"\uC54C\uB9BC"},display:{fontSize:{small:"\uC791\uAC8C",large:"\uD06C\uAC8C"}},cache:{title:"\uCE90\uC2DC \uAD00\uB9AC",confirmMessage:"\uCE90\uC2DC({{size}})\uB97C \uC0AD\uC81C\uD569\uB2C8\uB2E4. \uACC4\uC18D\uD558\uC2DC\uACA0\uC2B5\uB2C8\uAE4C?",delete:"\uC0AD\uC81C",deleting:"\uC0AD\uC81C \uC911",cleared:"\uCE90\uC2DC\uAC00 \uC0AD\uC81C\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",group:{wordData:{label:"\uB2E8\uC5B4 \uB370\uC774\uD130",sub:"\uB2E8\uC5B4 \uBAA9\uB85D \uBC0F \uBC84\uC804 \uC815\uBCF4"},pairIndex:{label:"\uB2E8\uC5B4\uC30D \uC778\uB371\uC2A4",sub:"\uCD08\uC131\xB7\uC911\uC131\xB7\uC885\uC131 \uB300\uB9BD\uC30D \uBD84\uC11D \uCE90\uC2DC"},imageCache:{label:"\uC774\uBBF8\uC9C0 \uCE90\uC2DC",sub:"\uB2E8\uC5B4\uBCC4 \uC774\uBBF8\uC9C0 \uC874\uC7AC \uC5EC\uBD80 \uD655\uC778 \uACB0\uACFC"},trainingRecord:{label:"\uD6C8\uB828 \uAE30\uB85D",sub:"\uC624\uB298\uC758 \uD6C8\uB828 \uC9C4\uD589\uB960 \uBC0F \uD559\uC2B5 \uC77C\uC218"}}},button:{save:"\uC124\uC815 \uC800\uC7A5"},popup:{clear:{confirm:"\uCD08\uAE30\uD654"},update:{confirm:"\uC5C5\uB370\uC774\uD2B8"},cache:{title:"{{label}} \uC0AD\uC81C",message:"{{label}}({{size}})\uB97C \uC0AD\uC81C\uD569\uB2C8\uB2E4. \uACC4\uC18D\uD558\uC2DC\uACA0\uC2B5\uB2C8\uAE4C?"}},saved:"\u2713 \uC800\uC7A5\uB428",account:{title:"\uACC4\uC815",delete:{sub:"\uD0C8\uD1F4 \uD6C4 30\uC77C \uC774\uB0B4 \uC7AC\uAC00\uC785 \uC2DC \uBCF5\uAD6C \uAC00\uB2A5\uD569\uB2C8\uB2E4."}}},A2={addButton:"\uC774\uC6A9\uAD8C \uCD94\uAC00\uD558\uAE30",couponButton:"\uCFE0\uD3F0 \uC785\uB825",loading:"\uBD88\uB7EC\uC624\uB294 \uC911\u2026",segment:{personal:"\uB9D0\uADC0",org:"\uB9D0\uADC0\uB9E4\uB2C8\uC800"},org:{title:"\uD604\uC7AC \uC774\uC6A9\uAD8C",disc:"\uAE30\uAD00\uC5D0\uC11C \uC0AC\uC6A9 \uC911\uC778 \uC774\uC6A9\uAD8C \uC815\uBCF4\uC785\uB2C8\uB2E4.",empty:"\uB4F1\uB85D\uB41C \uAE30\uAD00 \uC774\uC6A9\uAD8C\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",fallbackTitle:"\uAE30\uAD00 \uC774\uC6A9\uAD8C",startDate:"\uC2DC\uC791\uC77C",endDate:"\uB9CC\uB8CC\uC77C",remaining:"\uB0A8\uC740 \uAE30\uAC04",duration:"\uC774\uC6A9 \uAE30\uAC04"},active:{infoTitle:"\uC774\uC6A9 \uC815\uBCF4",refund:"\uD658\uBD88 \uC694\uCCAD",startDate:"\uC0AC\uC6A9 \uC2DC\uC791\uC77C",endDate:"\uC885\uB8CC\uC77C",remaining:"\uB0A8\uC740 \uAE30\uAC04"},pending:{title:"\uBCF4\uC720",empty:"\uB300\uAE30 \uC911\uC778 \uC774\uC6A9\uAD8C\uC774 \uC5C6\uC2B5\uB2C8\uB2E4."}},N2={profile:{planSuffix:"\uD50C\uB79C",plan:"\uD50C\uB79C"},basicInfo:{name:{placeholder:"\uD64D\uAE38\uB3D9"}},security:{title:"\uBCF4\uC548",password:{label:"\uBE44\uBC00\uBC88\uD638",currentRequired:"\uD604\uC7AC \uBE44\uBC00\uBC88\uD638\uB97C \uC785\uB825\uD558\uC138\uC694.",newRequired:"\uC0C8 \uBE44\uBC00\uBC88\uD638\uB97C \uC785\uB825\uD558\uC138\uC694.",mismatch:"\uC0C8 \uBE44\uBC00\uBC88\uD638\uAC00 \uC77C\uCE58\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.",changed:"\uBE44\uBC00\uBC88\uD638\uAC00 \uBCC0\uACBD\uB418\uC5C8\uC2B5\uB2C8\uB2E4."},twoFactor:{label:"2\uB2E8\uACC4 \uC778\uC99D",sub:"\uACC4\uC815 \uBCF4\uC548\uC744 \uAC15\uD654\uD558\uC138\uC694"}}},B2={guide:{faq:{title:"\uC790\uC8FC \uBB3B\uB294 \uC9C8\uBB38",desc:"FAQ \uBAA8\uC544\uBCF4\uAE30"}}},S2={settings:"\uC124\uC815",start:{title:"\uB2E8\uC5B4\uD6C8\uB828 \uC2DC\uC791",description:"\uC544\uB798 \uD6C8\uB828 \uC720\uD615\uC744 \uC120\uD0DD\uD574 \uC2DC\uC791\uD558\uC138\uC694"},difficulty:{tooltip:"\uAC00\uC7A5 \uC26C\uC6B4 \uB09C\uC774\uB3C4\uB294 '\uBB34\uC791\uC704', \uAC00\uC7A5 \uC5B4\uB824\uC6B4 \uB09C\uC774\uB3C4\uB294 '\uCD08\uC131\uCC28\uC774' \uC785\uB2C8\uB2E4."},contrast:{label:"\uB300\uB9BD",type:"\uB300\uB9BD \uC885\uB958",count:"\uB300\uB9BD \uAC2F\uC218",n:"{{n}}\uAC1C"},filter:{random:"\uBB34\uC791\uC704",trainOnset:"\uCD08\uC131",trainVowel:"\uBAA8\uC74C",trainCoda:"\uC885\uC131",phonemeGroup:"\uD6C8\uB828 \uC74C\uC808",noLimit:"\uBB34\uAD00",codaExclude:"\uC81C\uC678",gradeLabel:"\uB4F1\uAE09",excludeImageInfo:"\uC774\uBBF8\uC9C0 \uC788\uB294 \uB2E8\uC5B4\uB9CC: \uB2E8\uC5B4 \uC911\uC5D0 \uC774\uBBF8\uC9C0\uAC00 \uC788\uB294 \uB2E8\uC5B4\uB9CC \uACB0\uACFC\uC5D0 \uBCF4\uC5EC\uC90D\uB2C8\uB2E4.",sameStructureInfo:"\uC74C\uC18C \uAD6C\uC870 \uAC19\uC740 \uB2E8\uC5B4\uB9CC: \uC815\uB2F5\uACFC \uC624\uB2F5\uC758 \uC74C\uC808 \uAD6C\uC870(\uAE00\uC790 \uC218\xB7\uBC1B\uCE68 \uC720\uBB34 \uB4F1)\uAC00 \uAC19\uC740 \uACB0\uACFC\uB9CC \uB0A8\uACA8\uC694.",selectSection:"\uC120\uD0DD",excludeImage:"\uC774\uBBF8\uC9C0 \uC788\uB294 \uB2E8\uC5B4\uB9CC",sameStructure:"\uC74C\uC18C \uAD6C\uC870 \uAC19\uC740 \uB2E8\uC5B4\uB9CC"},noQuestions:"\uBB38\uC81C\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.",countQuestions:"{{n}}\uBB38\uC81C",countSentences:"{{n}}\uBB38\uC7A5",comingSoon:"\uC900\uBE44 \uC911",nextQuestion:"\uB2E4\uC74C \uBB38\uC81C",noiseRatioTitle:"\uC18C\uC74C \uBE44\uC728",noiseRatioValue:"{{ratio}}\uBC30",noiseTypeTitle:"\uC18C\uC74C \uC885\uB958",playVolumeTitle:"\uC804\uCCB4 \uC18C\uB9AC",playSpeedTitle:"\uC7AC\uC0DD \uC18D\uB3C4",meter:{sentence:"\uC7AC\uC0DD",noise:"\uC18C\uC74C",toggle:"\uC624\uB514\uC624 \uBBF8\uD130 \uD45C\uC2DC"},viewResult:"\uACB0\uACFC\uBCF4\uAE30",problemNotice:"{{n}}\uBC88 \uBB38\uC81C \uC785\uB2C8\uB2E4.",trainingSettingsTitle:"\uD6C8\uB828 \uC124\uC815",sentencePreview:"\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30",notHeard:"\uC548 \uB4E4\uB838\uC5B4\uC694.",heardWell:"\uC798 \uB4E4\uB838\uC5B4\uC694.",confirmTitle:"\uBB38\uC7A5\uC744 \uD655\uC778\uD558\uACE0 \uC798 \uB4E4\uB838\uB294\uC9C0 \uC120\uD0DD\uD558\uC138\uC694.",noSoundWaveform:"\uC18C\uB9AC \uBE44\uAD50 \uBB38\uC81C\uB294 \uC6E8\uC774\uBE0C\uD3FC\uC744 \uD45C\uD604\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.",noise:{level:{none:"\uC5C6\uC74C",weak:"\uC57D\uD568",medium:"\uBCF4\uD1B5",strong:"\uAC15\uD568",veryStrong:"\uB9E4\uC6B0 \uAC15\uD568"},type:{none:"\uC5C6\uC74C",default:"\uAE30\uBCF8",street:"\uAE38\uAC70\uB9AC",buzz:"\uC640\uAE00\uC640\uAE00",restaurant:"\uC2DD\uB2F9"}},listenTitle:"\uC81C\uC2DC\uD558\uB294 \uBB38\uC7A5\uC744 \uB4E4\uC5B4\uC8FC\uC138\uC694.",listenButton:"\uBB38\uC7A5 \uB4E3\uAE30",playSound:"\uC18C\uB9AC \uB4E3\uAE30",playAll:"\uBAA8\uB450 \uB4E3\uAE30",selectInOrder:"\uB4E4\uC740 \uC21C\uC11C\uB300\uB85C \uCE74\uB4DC\uB97C \uC120\uD0DD\uD558\uC138\uC694.",stop:"\uC815\uC9C0",preview:"\uBBF8\uB9AC \uB4E3\uAE30",next:"\uB2E4\uC74C",completed:"\uD6C8\uB828 \uC644\uB8CC",selected:"\uC120\uD0DD\uB428",nthSelected:"{{n}}\uBC88\uC9F8 \uC120\uD0DD",fontSizeMin:"\uAE00\uC528 \uD06C\uAE30\uAC00 \uCD5C\uC18C\uC785\uB2C8\uB2E4.",fontSizeMax:"\uAE00\uC528 \uD06C\uAE30\uAC00 \uCD5C\uB300\uC785\uB2C8\uB2E4.",fontSizeDecrease:"\uAE00\uC790 \uD06C\uAE30 \uAC10\uC18C",fontSizeIncrease:"\uAE00\uC790 \uD06C\uAE30 \uC99D\uAC00",toggleBackground:"\uBC30\uACBD \uC804\uD658",cardInstructions:"\uB0B1\uB9D0 \uCE74\uB4DC\uB97C \uBCF4\uACE0 \uC18C\uB9AC\uB97C \uB4E3\uACE0 \uD655\uC778\uD558\uC138\uC694.",noCards:"\uCE74\uB4DC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.",audioFetchError:"\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.",selectConfirm:"\uBB38\uC81C\uB97C \uBCF4\uACE0 \uD574\uB2F9\uD558\uB294 \uB0B4\uC6A9\uC744 \uC120\uD0DD\uD558\uC138\uC694.",orderListDefault:"\uBB38\uC7A5\uC744 \uB4E4\uC740 \uC21C\uC11C\uB300\uB85C \uBC30\uCE58\uD558\uC138\uC694.",result:{eyebrow:"\uD6C8\uB828 \uC644\uB8CC",title:"\uD6C8\uB828\uC744 \uBAA8\uB450 \uB9C8\uCCE4\uC2B5\uB2C8\uB2E4.",scoreAria:"{{correct}} / {{total}} \uBB38\uD56D",elapsed:"\uC18C\uC694 \uC2DC\uAC04",summary:"{{correct}}\uAC1C\uC758 \uBB38\uD56D\uC744 \uC798 \uB4E4\uC5C8\uC2B5\uB2C8\uB2E4.",tableAriaLabel:"\uBB38\uD56D\uBCC4 \uD310\uC815",colJudge:"\uD310\uC815",colAnswerSelected:"\uC815\uB2F5 \xB7 \uC120\uD0DD",colAnswer:"\uC815\uB2F5",colSelected:"\uC120\uD0DD",heardWell:"\uC798 \uB4E4\uC5C8\uC5B4\uC694",notHeard:"\uBABB \uB4E4\uC5C8\uC5B4\uC694",notJudged:"\uBBF8\uD310\uC815",replay:"\uB2E4\uC2DC\uD558\uAE30",done:"\uC644\uB8CC",viewResult:"\uACB0\uACFC \uD655\uC778",noContent:"(\uB0B4\uC6A9\uC5C6\uC74C)"},up:"\uC704\uB85C",down:"\uC544\uB798\uB85C",prev:"\uC774\uC804",listenLabel:"\uBB38\uC7A5 \uB4E3\uAE30",sourcePlay:"\uC18C\uC2A4 {{n}} \uC7AC\uC0DD",listen:"\uB4E3\uAE30",audioStatus:{idle:"\uB300\uAE30",resolving:"\uB9AC\uC18C\uC2A4 \uB9E4\uD551 \uC911\u2026",checking_exists:"\uD30C\uC77C \uC874\uC7AC \uD655\uC778\u2026",getting_signed_url:"\uC11C\uBA85 URL \uC870\uD68C\u2026",downloading:"\uB2E4\uC6B4\uB85C\uB4DC \uC911\u2026",measuring_duration:"\uC624\uB514\uC624 \uAE38\uC774 \uCE21\uC815\u2026",ready:"\uC900\uBE44 \uC644\uB8CC",error:"\uC624\uB958 \uBC1C\uC0DD"}},D2={totalCount:"\uAC1C\uC758 \uD6C8\uB828 \uBB36\uC74C",renameGroup:"\uADF8\uB8F9 \uC774\uB984 \uBC14\uAFB8\uAE30",itemCount:"\uD6C8\uB828 \uAC1C\uC218",menu:{edit:"\uD6C8\uB828 \uBB36\uC74C \uC218\uC815",rename:"\uC774\uB984 \uBC14\uAFB8\uAE30",move:"\uADF8\uB8F9 \uC774\uB3D9",duplicate:"\uD6C8\uB828 \uBB36\uC74C \uBCF5\uC0AC",publish:"\uB9D0\uADC0\uC790\uB8CC\uC2E4\uC5D0 \uC62C\uB9AC\uAE30"},sort:{customers:"\uD6C8\uB828 \uACE0\uAC1D"},copyLink:"\uB9C1\uD06C \uBCF5\uC0AC",removeLink:"\uB9C1\uD06C \uC81C\uAC70",linkRemoved:"\uB9C1\uD06C\uAC00 \uC81C\uAC70\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",linkSaveFirst:"\uBA3C\uC800 \uD6C8\uB828 \uBB36\uC74C\uC744 \uC800\uC7A5\uD574\uC8FC\uC138\uC694.",linkSaveFirstHint:"\uC800\uC7A5\uB41C \uD6C8\uB828 \uBB36\uC74C\uC5D0\uC11C\uB9CC \uACF5\uC720 \uB9C1\uD06C\uB97C \uC0DD\uC131\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.",linkCopySelect:"\uBCF5\uC0AC\uAC00 \uB9C9\uD600 \uB9C1\uD06C\uB97C \uC120\uD0DD\uD588\uC2B5\uB2C8\uB2E4. Ctrl/\u2318+C\uB85C \uBCF5\uC0AC\uD558\uC138\uC694.",nameRequired:"\uD6C8\uB828 \uBB36\uC74C \uC774\uB984\uC744 \uC785\uB825\uD574\uC8FC\uC138\uC694.",itemRequired:"\uD6C8\uB828\uC744 1\uAC1C \uC774\uC0C1 \uB2F4\uC544\uC8FC\uC138\uC694.",randomAdd:"\uBB34\uC791\uC704 \uCD94\uAC00"},T2={totalCount:"\uBA85\uC758 \uACE0\uAC1D",loadError:"\uBAA9\uB85D\uC744 \uBD88\uB7EC\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.",basicInfo:{editTooltip:"\uC218\uC815\uD558\uAE30"},member:{placeholder:"\uC774\uBA54\uC77C \uB610\uB294 \uC804\uD654",link:"\uC5F0\uACB0",linking:"\uC5F0\uACB0 \uC911\u2026"},device:{title:"\uCCAD\uAC01\uC7AC\uD65C\uAE30\uAE30",addTooltip:"\uC0C8\uB85C \uC0DD\uC131",addButton:"\uAE30\uAE30 \uCD94\uAC00",listTooltip:"\uBAA9\uB85D \uBCF4\uAE30",listTitle:"\uCE21 \uAE30\uAE30 \uBAA9\uB85D",historyEmpty:"\uB4F1\uB85D\uB41C \uAE30\uAE30 \uC774\uB825\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",wearing:"\uCE21 \uCC29\uC6A9\uC911",notRegistered:"\uBBF8\uB4F1\uB85D",unit:"\uAC1C",wearingNow:"\uCC29\uC6A9",wear:"\uCC29\uC6A9",unwear:"\uCC29\uC6A9 \uD574\uC81C",wornSince:"{{date}}\uBD80\uD130",release:"\uD574\uC81C",historyTitle:"\uCCAD\uAC01\uC7AC\uD65C\uAE30\uAE30 \uC774\uB825"},schedule:{title:"\uBC29\uBB38 \uC608\uC815",addTooltip:"\uC608\uC815 \uB4F1\uB85D",listTooltip:"\uC804\uCCB4 \uBCF4\uAE30",empty:"\uC608\uC815\uB41C \uBC29\uBB38\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",registerTitle:" \uACE0\uAC1D\uB2D8 \uBC29\uBB38 \uC608\uC815 \uB4F1\uB85D",memoPlaceholder:"\uBC29\uBB38 \uC608\uC815 \uAD00\uB828 \uBA54\uBAA8\uB97C \uC785\uB825\uD574 \uC8FC\uC138\uC694."},visitHistory:{title:"\uBC29\uBB38 \uC774\uB825",addTooltip:"\uC2E0\uADDC \uB4F1\uB85D",empty:"\uC544\uC9C1 \uBC29\uBB38 \uAE30\uB85D\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",popupTitle:" \uACE0\uAC1D\uB2D8 \uBC29\uBB38 \uC774\uB825",registerTitle:" \uACE0\uAC1D\uB2D8 \uC2E0\uADDC \uBC29\uBB38 \uB4F1\uB85D"},homework:{title:"\uC219\uC81C \uC9C4\uD589\uC0C1\uD669",active:"\uD65C\uC131",inactive:"\uBE44\uD65C\uC131",copy:"\uB9C1\uD06C \uBCF5\uC0AC",copied:"\uB9C1\uD06C\uAC00 \uBCF5\uC0AC\uB418\uC5C8\uC2B5\uB2C8\uB2E4."},moreItems:"\uB354 \uC788\uC74C",viewAll:"\uC804\uCCB4 \uBCF4\uAE30",visits:{title:"\uBC29\uBB38"},trainingRecord:{title:"\uACE0\uAC1D \uD6C8\uB828 \uAE30\uB85D"},status:{trainingSubtitle:"\uD6C8\uB828 \uD604\uD669"},detail:{session:{completedFmt:"\uC644\uB8CC {{done}}/{{total}} \xB7 {{duration}}"},visitSuffix:"\uC758 \uBC29\uBB38"},duration:{minSec:"{{m}}\uBD84 {{s}}\uCD08",min:"{{m}}\uBD84",sec:"{{s}}\uCD08"}},j2={plan:{recommendedFor:"\uC774\uB7F0 \uBD84\uAED8 \uCD94\uCC9C\uD569\uB2C8\uB2E4.",features:"\uD575\uC2EC \uAE30\uB2A5",freePrice:"\uBB34\uB8CC",contact:"\uBB38\uC758\uD558\uAE30",tierFallback:"\uC774\uC6A9\uAD8C",openPromo:"\uC624\uD508 \uD2B9\uAC00"},products:{mgrEnterprise:{tier:{price:"\uBB38\uC758"}}}},E2={title:"\uCFE0\uD3F0",subtitle:"\uCFE0\uD3F0 \uCF54\uB4DC\uB97C \uC785\uB825\uD558\uAC70\uB098 \uBCF4\uC720 \uCFE0\uD3F0\uC744 \uD655\uC778\uD558\uC138\uC694.",input:{label:"\uCFE0\uD3F0 \uCF54\uB4DC",placeholder:"\uCFE0\uD3F0 \uCF54\uB4DC \uC785\uB825"},applyButton:"\uC801\uC6A9",error:{invalid:"\uC720\uD6A8\uD558\uC9C0 \uC54A\uC740 \uCFE0\uD3F0 \uCF54\uB4DC\uC785\uB2C8\uB2E4.",alreadyUsed:"\uC774\uBBF8 \uC0AC\uC6A9\uB41C \uCFE0\uD3F0\uC785\uB2C8\uB2E4."},success:{applied:'"{{name}}" \uCFE0\uD3F0\uC774 \uC801\uC6A9\uB418\uC5C8\uC2B5\uB2C8\uB2E4.'},section:{owned:"\uBCF4\uC720 \uCFE0\uD3F0"},status:{used:"\uC0AC\uC6A9 \uC644\uB8CC",available:"\uC0AC\uC6A9 \uAC00\uB2A5"}},M2={unitVisit:"\uAC74",periodAll:"\uC804\uCCB4",showN:"{{n}}\uAC1C\uC529"},L2={subtitle:"\uC5C5\uCCB4 \uBC0F \uBC95\uC778 \uC815\uBCF4\uB97C \uAD00\uB9AC\uD558\uC138\uC694.",editButton:"\uC815\uBCF4 \uC218\uC815",basicInfo:{title:"\uAE30\uBCF8 \uC815\uBCF4"},contactInfo:{title:"\uC5F0\uB77D\uCC98 \uC815\uBCF4"}},$2={title:"\uD6C8\uB828\uBCC4 \uB4E3\uAE30",subtitle:"\uC6D0\uD558\uB294 \uD6C8\uB828 \uC720\uD615\uC744 \uC120\uD0DD\uD558\uC138\uC694.",listenInNoise:{title:"\uC18C\uC74C \uD558 \uBB38\uC7A5 \uB4E3\uAE30",desc:"\uB2E4\uC591\uD55C \uC18C\uC74C \uD658\uACBD\uC5D0\uC11C \uBB38\uC7A5 \uCCAD\uB825\uC744 \uD6C8\uB828\uD569\uB2C8\uB2E4."},shortStory:{title:"\uC9E7\uC740 \uC774\uC57C\uAE30 \uB4E3\uAE30",desc:"\uC9E7\uC740 \uC774\uC57C\uAE30\uB97C \uB4E3\uACE0 \uB0B4\uC6A9\uC744 \uC774\uD574\uD569\uB2C8\uB2E4."},longStory:{title:"\uAE34 \uC774\uC57C\uAE30 \uB4E3\uAE30",desc:"\uAE34 \uC774\uC57C\uAE30\uB97C \uC9D1\uC911\uD574\uC11C \uB4E3\uACE0 \uB0B4\uC6A9\uC744 \uD30C\uC545\uD569\uB2C8\uB2E4."},orderingSentence:{title:"\uBB38\uC7A5 \uC21C\uC11C\uD654",desc:"\uB4E4\uC740 \uBB38\uC7A5\uB4E4\uC744 \uC62C\uBC14\uB978 \uC21C\uC11C\uB85C \uBC30\uC5F4\uD569\uB2C8\uB2E4."},SAME_SOUND_PICK:{label:"\uAC19\uC740 \uC18C\uB9AC \uACE0\uB974\uAE30",sub:"\uB4E4\uC740 \uC18C\uB9AC\uC640 \uAC19\uC740 \uB2E8\uC5B4 \uCE74\uB4DC\uB97C \uACE0\uB974\uC138\uC694."},SAME_OR_DIFF:{label:"\uAC19\uC740\uC9C0 \uB2E4\uB978\uC9C0 \uB9DE\uD788\uAE30",sub:"\uB450 \uC18C\uB9AC\uAC00 \uAC19\uC740\uC9C0, \uB2E4\uB978\uC9C0 \uAD6C\uBD84\uD558\uC138\uC694."},HEAR_AND_PICK_SAME:{label:"\uC77C\uCE58\uD558\uB294 \uB2E8\uC5B4 \uB9DE\uD788\uAE30",sub:"\uB4E4\uC740 \uC18C\uB9AC\uC758 \uB2E8\uC5B4 \uCE74\uB4DC\uB97C \uACE0\uB974\uC138\uC694."},HEAR_AND_PICK_INCLUDED:{label:"\uD55C \uC74C\uC808 \uD3EC\uD568 \uB2E8\uC5B4 \uB9DE\uD788\uAE30",sub:"\uB4E4\uC740 \uC74C\uC808\uC774 \uD3EC\uD568\uB41C \uB2E8\uC5B4 \uCE74\uB4DC\uB97C \uACE0\uB974\uC138\uC694."},STARTS_WITH_SAME_SOUND:{label:"\uCCAB \uC74C\uC808\uC774 \uAC19\uC740 \uB2E8\uC5B4 \uB9DE\uD788\uAE30",sub:"\uB4E4\uC740 \uB2E8\uC5B4\uC640 \uAC19\uC740 \uC18C\uB9AC\uB85C \uC2DC\uC791\uD558\uB294 \uB2E8\uC5B4\uB97C \uACE0\uB974\uC138\uC694."},LISTEN_AND_REMEMBER_ORDER:{label:"\uB4E3\uACE0 \uC21C\uC11C\uB300\uB85C \uAE30\uC5B5\uD558\uAE30",sub:"\uC138 \uB2E8\uC5B4\uB97C \uB4E4\uC740 \uC21C\uC11C\uB300\uB85C \uCE74\uB4DC\uB97C \uC120\uD0DD\uD558\uC138\uC694."},MERGE_2_SYLLABLES:{label:"\uC74C\uC808 2\uAC1C \uD569\uCE58\uAE30",sub:"\uB450 \uC74C\uC808\uC744 \uD569\uCE58\uBA74 \uC5B4\uB5A4 \uB2E8\uC5B4\uAC00 \uB420\uAE4C\uC694?"},MERGE_3_SYLLABLES:{label:"\uC74C\uC808 3\uAC1C \uD569\uCE58\uAE30",sub:"\uC138 \uC74C\uC808\uC744 \uD569\uCE58\uBA74 \uC5B4\uB5A4 \uB2E8\uC5B4\uAC00 \uB420\uAE4C\uC694?"},MERGE_2_PHONEMES:{label:"\uC74C\uC18C 2\uAC1C \uD569\uCE58\uAE30",sub:"\uB450 \uC74C\uC18C\uB97C \uD569\uCE58\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB420\uAE4C\uC694?"},MERGE_3_PHONEMES:{label:"\uC74C\uC18C 3\uAC1C \uD569\uCE58\uAE30",sub:"\uC138 \uC74C\uC18C\uB97C \uD569\uCE58\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB420\uAE4C\uC694?"},DROP_1_FROM_2SYLL:{label:"2\uC74C\uC808\uC5D0\uC11C \uD55C \uC74C\uC808 \uD0C8\uB77D",sub:"2\uC74C\uC808 \uB2E8\uC5B4\uC5D0\uC11C \uD55C \uC74C\uC808\uC744 \uBE7C\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB420\uAE4C\uC694?"},DROP_1_FROM_3SYLL:{label:"3\uC74C\uC808\uC5D0\uC11C \uD55C \uC74C\uC808 \uD0C8\uB77D",sub:"3\uC74C\uC808 \uB2E8\uC5B4\uC5D0\uC11C \uD55C \uC74C\uC808\uC744 \uBE7C\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB420\uAE4C\uC694?"},DROP_PART_FROM_COMPOUND:{label:"\uD569\uC131\uC5B4\uC5D0\uC11C \uBD80\uBD84 \uD0C8\uB77D",sub:"\uD569\uC131\uC5B4\uC758 \uC77C\uBD80\uB97C \uBE7C\uBA74 \uC5B4\uB5A4 \uB2E8\uC5B4\uAC00 \uB420\uAE4C\uC694?"},DROP_FINAL_CONSONANT_FROM_1SYLL:{label:"1\uC74C\uC808\uC5D0\uC11C \uBC1B\uCE68 \uD0C8\uB77D",sub:"\uBC1B\uCE68\uC744 \uBE7C\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB420\uAE4C\uC694?"},REMOVE_CONSONANT_AND_IDENTIFY_PHONEME:{label:"1\uC74C\uC808\uC5D0\uC11C \uC790\uC74C \uD0C8\uB77D",sub:"\uC790\uC74C\uC744 \uBE7C\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB0A8\uC744\uAE4C\uC694?"},CHANGE_1_SYLL_IN_2SYLL:{label:"2\uC74C\uC808\uC5D0\uC11C \uD55C \uC74C\uC808 \uBC14\uAFB8\uAE30",sub:"2\uC74C\uC808 \uB2E8\uC5B4\uC758 \uD55C \uC74C\uC808\uC744 \uBC14\uAFD4 \uC0C8 \uB2E8\uC5B4\uB97C \uB9CC\uB4DC\uC138\uC694."},CHANGE_1_SYLL_IN_3SYLL:{label:"3\uC74C\uC808\uC5D0\uC11C \uD55C \uC74C\uC808 \uBC14\uAFB8\uAE30",sub:"3\uC74C\uC808 \uB2E8\uC5B4\uC758 \uD55C \uC74C\uC808\uC744 \uBC14\uAFD4 \uC0C8 \uB2E8\uC5B4\uB97C \uB9CC\uB4DC\uC138\uC694."},CHANGE_1_PHONEME_IN_1SYLL:{label:"1\uC74C\uC808 \uB2E8\uC5B4 \uC911 1\uAC1C \uC74C\uC18C \uBC14\uAFB8\uAE30",sub:"1\uC74C\uC808 \uB2E8\uC5B4\uC758 \uD55C \uC74C\uC18C\uB97C \uBC14\uAFD4 \uC0C8 \uC18C\uB9AC\uB97C \uB9CC\uB4DC\uC138\uC694."},CHANGE_1_PHONEME_IN_2SYLL:{label:"2\uC74C\uC808 \uB2E8\uC5B4 \uC911 1\uAC1C \uC74C\uC18C \uBC14\uAFB8\uAE30",sub:"2\uC74C\uC808 \uB2E8\uC5B4\uC758 \uD55C \uC74C\uC18C\uB97C \uBC14\uAFD4 \uC0C8 \uB2E8\uC5B4\uB97C \uB9CC\uB4DC\uC138\uC694."}},R2={comingSoon:"\uB2E8\uC5B4\uD6C8\uB828 \uAE30\uB2A5\uC744 \uC900\uBE44 \uC911\uC785\uB2C8\uB2E4."},P2={colName:"\uB2E8\uC5B4\uD45C \uC774\uB984",open:"\uC5F4\uAE30",countSuffix:"\uAC1C\uC758 \uB2E8\uC5B4\uD45C",tab:{cards:"\uB2E8\uC5B4\uD45C \uCE74\uB4DC",tables:"\uB2E8\uC5B4\uD45C"},cardsEmpty:"\uC544\uC9C1 \uB9CC\uB4E0 \uB2E8\uC5B4\uD45C \uCE74\uB4DC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.",addCard:"\uB2E8\uC5B4\uD45C \uCE74\uB4DC \uCD94\uAC00",menu:{publishStore:"\uB9D0\uADC0\uC790\uB8CC\uC2E4\uC5D0 \uC62C\uB9AC\uAE30",unpublishStore:"\uB9D0\uADC0\uC790\uB8CC\uC2E4\uC5D0\uC11C \uB0B4\uB9AC\uAE30"},newBadge:"\uC0C8\uB85C \uB9CC\uB4E0 \uD45C",publishedBadge:"\uBC1C\uD589\uB428",sharedBadge:"\uACF5\uC720 \uC911"},I2={title:"\uC8FC\uC694 \uB2E8\uC5B4",empty:"\uCD94\uCD9C\uB41C \uC8FC\uC694 \uB2E8\uC5B4\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4."},F2={defaultName:"\uB2E8\uC5B4 \uD45C",title:"\uB2E8\uC5B4 \uD45C \uB9CC\uB4E4\uAE30",subtitle:"\uCE78\uC744 \uC124\uC815\uD558\uACE0 \uB2E8\uC5B4\uB97C \uCD94\uAC00\uD558\uC5EC \uD45C\uB97C \uB9CC\uB4ED\uB2C8\uB2E4.",filterTitle:"\uD45C \uC124\uC815",filter:{composition:"\uAD6C\uC131",image:"\uC774\uBBF8\uC9C0",word:"\uB2E8\uC5B4",standardPron:"\uD45C\uC900 \uBC1C\uC74C",colloquialPron:"\uAD6C\uC5B4\uCCB4 \uBC1C\uC74C",paperOrientation:"\uC6A9\uC9C0 \uBC29\uD5A5",landscape:"\uAC00\uB85C",portrait:"\uC138\uB85C",columns:"\uCE78 \uC218",column:"{{count}}\uCE78",itemsPerPageWord:"\uD398\uC774\uC9C0\uB2F9 \uB2E8\uC5B4 \uC218",itemsPerPagePair:"\uD398\uC774\uC9C0\uB2F9 \uB300\uB9BD\uC30D \uC218",itemsPerPageOption:"{{count}}\uAC1C",pageIndicator:"{{current}} / {{total}}",pageNumber:"\uD398\uC774\uC9C0 \uBC88\uD638",pageNumberLeft:"\uC67C\uCABD",pageNumberCenter:"\uC911\uC559",pageNumberRight:"\uC624\uB978\uCABD",border:"\uC678\uACFD\uC120",cutLine:"\uC808\uCDE8\uC120",show:"\uD45C\uC2DC",hide:"\uBBF8\uD45C\uC2DC",dotted:"\uC810\uC120",corner:"\uCF54\uB108"},addWord:"\uCD94\uAC00\uD558\uAE30",wordInfo:"{{word}} \uB0B1\uB9D0 \uC815\uBCF4",emptyItems:"\uB2E8\uC5B4\uB97C 1\uAC1C \uC774\uC0C1 \uCD94\uAC00\uD574\uC8FC\uC138\uC694.",load:"\uBD88\uB7EC\uC624\uAE30",openNewWindow:"\uC0C8 \uCC3D\uC73C\uB85C \uBCF4\uAE30",saveButton:"\uC800\uC7A5\uD558\uAE30",saveAsNewButton:"\uB2E4\uB978 \uC774\uB984\uC73C\uB85C \uC800\uC7A5",print:"\uC778\uC1C4\uD558\uAE30",popupBlocked:"\uD31D\uC5C5\uC774 \uCC28\uB2E8\uB418\uC5C8\uC2B5\uB2C8\uB2E4. \uBE0C\uB77C\uC6B0\uC800 \uC124\uC815\uC5D0\uC11C \uD31D\uC5C5\uC744 \uD5C8\uC6A9\uD574 \uC8FC\uC138\uC694.",printFileNameSingle:"\uB2E8\uC5B4\uD45C",printFileNamePair:"\uB300\uB9BD\uC30D\uD45C",save:{title:"\uB2E8\uC5B4\uD45C \uC800\uC7A5\uD558\uAE30",nameLabel:"\uC774\uB984",desc:"\uC800\uC7A5\uD560 \uB2E8\uC5B4 \uD45C\uC758 \uC774\uB984\uC744 \uC785\uB825\uD558\uC138\uC694.",placeholder:"\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC81C\uBAA9\uC744 \uC785\uB825\uD558\uC138\uC694.",descriptionLabel:"\uC124\uBA85",descriptionPlaceholder:"\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC124\uBA85\uC744 \uC785\uB825\uD558\uC138\uC694.",duplicateName:"\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4.",nameRequired:"\uD45C \uC774\uB984\uC744 \uC785\uB825\uD574 \uC8FC\uC138\uC694.",autoFillHint:" (Tab \uB610\uB294 space \uC785\uB825\uC2DC \uC790\uB3D9 \uC785\uB825)",copyName:"{{name}} (\uBCF5\uC0AC)"},loadTable:{title:"\uC800\uC7A5\uB41C \uB2E8\uC5B4 \uD45C \uBD88\uB7EC\uC624\uAE30",empty:"\uC800\uC7A5\uB41C \uB2E8\uC5B4 \uD45C\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.",loadButton:"\uBD88\uB7EC\uC624\uAE30",itemCount:"{{count}}\uAC1C",deleteAriaLabel:"\uC0AD\uC81C",sort:{newest:"\uCD5C\uC2E0\uC21C",oldest:"\uC624\uB798\uB41C\uC21C",name:"\uC774\uB984\uC21C",count:"\uB2E8\uC5B4 \uC218"},view:{grid:"\uD45C\uB85C \uBCF4\uAE30",list:"\uB9AC\uC2A4\uD2B8\uB85C \uBCF4\uAE30"}},groupDeleteMessage:"\uADF8\uB8F9 \uB0B4 \uB2E8\uC5B4\uD45C\uB294 '\uADF8\uB8F9 \uC5C6\uC74C'\uC73C\uB85C \uC774\uB3D9\uD569\uB2C8\uB2E4.",groupNamePlaceholder:"\uADF8\uB8F9 \uC774\uB984",store:{badge:"\uB9D0\uADC0\uC790\uB8CC\uC2E4"},card:{sub:"\uB2E8\uC5B4\uD45C \uCE74\uB4DC",empty:"\uC774 \uCE74\uB4DC\uC5D0 \uB2E8\uC5B4\uD45C\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4."},toast:{renameError:"\uC774\uB984 \uBCC0\uACBD\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4",saveError:"\uC800\uC7A5\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4",deleteError:"\uC0AD\uC81C\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4",duplicateError:"\uBCF5\uC81C\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4",saveSuccess:"\uB2E8\uC5B4\uD45C\uAC00 \uC800\uC7A5\uB418\uC5C8\uC2B5\uB2C8\uB2E4."},scoring:{o:"{{word}} \uB9DE\uC74C",triangle:"{{word}} \uC560\uB9E4",x:"{{word}} \uD2C0\uB9BC",button:"\uCC44\uC810\uD558\uAE30",pickTitle:"\uB204\uAD6C\uB97C \uCC44\uC810\uD560\uAE4C\uC694?",pickSubtitle:"\u2018{{name}}\u2019 \uD45C\uB85C \uD6C8\uB828\uD55C \uACE0\uAC1D\uC744 \uACE0\uB974\uC138\uC694.",pickSearch:"\uC774\uB984 \uB610\uB294 \uC804\uD654\uBC88\uD638\uB85C \uCC3E\uAE30",pickEmpty:"\uB4F1\uB85D\uB41C \uACE0\uAC1D\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",pickNoMatch:"\uCC3E\uB294 \uACE0\uAC1D\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",pickAgain:"\uACE0\uAC1D \uB2E4\uC2DC \uACE0\uB974\uAE30",scoringFor:"{{name}} \uB2D8 \uCC44\uC810 \uC911",none:"\uCE78\uC744 \uB20C\uB7EC \u25CB \xB7 \u25B3 \xB7 \u2715 \uB97C \uB9E4\uAE30\uC138\uC694.",tally:"{{marked}}\uCE78 \uCC44\uC810 \xB7 \u25CB {{o}} \xB7 \u25B3 {{triangle}} \xB7 \u2715 {{x}} \xB7 \uC815\uB2F5\uB960 {{rate}}%",save:"\uCC44\uC810 \uC800\uC7A5",saved:"{{name}} \uB2D8\uC758 \uCC44\uC810 {{count}}\uCE78\uC744 \uC800\uC7A5\uD588\uC2B5\uB2C8\uB2E4.",reviewTitle:"\uBCF5\uC2B5\uD45C\uB97C \uB9CC\uB4E4\uAE4C\uC694?",reviewMessage:"{{name}} \uB2D8\uC774 \uD2C0\uB9AC\uAC70\uB098 \uC560\uB9E4\uD588\uB358 {{count}}\uCE78\uC73C\uB85C \uC0C8 \uD45C\uB97C \uB9CC\uB4ED\uB2C8\uB2E4. \uB9DE\uD78C \uCE78\uC740 \uBE60\uC9D1\uB2C8\uB2E4.",reviewConfirm:"\uBCF5\uC2B5\uD45C \uB9CC\uB4E4\uAE30",reviewDescription:"\u2018{{name}}\u2019 \uCC44\uC810\uC5D0\uC11C \uD2C0\uB9AC\uAC70\uB098 \uC560\uB9E4\uD588\uB358 {{count}}\uCE78\uC744 \uBAA8\uC740 \uD45C\uC785\uB2C8\uB2E4.",reviewCreated:"\u2018{{name}}\u2019\uC744(\uB97C) \uB9CC\uB4E4\uC5C8\uC2B5\uB2C8\uB2E4 \u2014 {{count}}\uCE78.",discardTitle:"\uB9E4\uAE34 \uCC44\uC810\uC744 \uBC84\uB9B4\uAE4C\uC694?",discardMessage:"{{count}}\uCE78\uC744 \uB9E4\uACBC\uC9C0\uB9CC \uC544\uC9C1 \uC800\uC7A5\uD558\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4. \uB098\uAC00\uBA74 \uC0AC\uB77C\uC9D1\uB2C8\uB2E4.",discardConfirm:"\uBC84\uB9AC\uACE0 \uB098\uAC00\uAE30"},info:{grade:"\uB09C\uC774\uB3C4: {{n}}\uB4F1\uAE09",syllables:"\uC74C\uC808 \uC218: {{n}}\uC74C\uC808",pos:"\uD488\uC0AC: {{v}}",wordType:"\uC720\uD615: {{v}}"},pos:{noun:"\uBA85\uC0AC",verb:"\uB3D9\uC0AC",adjective:"\uD615\uC6A9\uC0AC",adverb:"\uBD80\uC0AC",numeral:"\uC218\uC0AC",determiner:"\uAD00\uD615\uC0AC",interjection:"\uAC10\uD0C4\uC0AC",particle:"\uC870\uC0AC",affix:"\uC811\uC0AC",dependentNoun:"\uC758\uC874\uBA85\uC0AC",pronoun:"\uB300\uBA85\uC0AC",auxVerb:"\uBCF4\uC870\uB3D9\uC0AC",auxAdjective:"\uBCF4\uC870\uD615\uC6A9\uC0AC"}},O2={editBanner:{message:"\uC800\uC7A5\uD558\uBA74 \uC9C0\uAE08 \uC218\uC815 \uC911\uC778 \uB2E8\uC5B4\uD45C\uAC00 \uAC31\uC2E0\uB429\uB2C8\uB2E4."},filterTitle:"\uB2E8\uC5B4 \uAC80\uC0C9 \uC124\uC815",filter:{positionAny:"\uBB34\uAD00",positionHead:"\uC5B4\uB450",positionMid:"\uC5B4\uC911",positionTail:"\uC5B4\uB9D0",difficulty:"\uB4F1\uAE09",grade:"{{n}}\uB4F1\uAE09",syllables:"\uC74C\uC808 \uC218",syllable:"{{n}}\uC74C\uC808",syllable5plus:"5\uC74C\uC808 \uC774\uC0C1",partOfSpeech:"\uD488\uC0AC",pos:{noun:"\uCCB4\uC5B8(\uBA85\uC0AC, \uC218\uC0AC)",verb:"\uC6A9\uC5B8(\uB3D9\uC0AC, \uD615\uC6A9\uC0AC)",modifier:"\uC218\uC2DD\uC5B8(\uBD80\uC0AC, \uAD00\uD615\uC0AC)"},wordType:"\uC720\uD615",type:{native:"\uACE0\uC720\uC5B4",sino:"\uD55C\uC790\uC5B4",foreign:"\uC678\uB798\uC5B4",mixed:"\uD63C\uC885\uC5B4"},exclude:"\uC81C\uC678",excludeNoImage:"\uC774\uBBF8\uC9C0 \uC5C6\uC74C"},searchButton:"\uAC80\uC0C9\uD558\uAE30",resultUnit:"\uB2E8\uC5B4",remaining:"{{count}}\uAC1C \uB0A8\uC74C",resultDisc:"\uC6D0\uD558\uB294 {{unit}} \uC120\uD0DD\uD558\uC138\uC694. {{max}}\uAC1C\uAE4C\uC9C0 \uC120\uD0DD\uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4. ({{selected}}/{{max}})",resultTitlePrefix:"\uCD1D ",resultTitleSuffix:"\uAC1C\uC758 {{unit}} \uAC80\uC0C9\uB418\uC5C8\uC2B5\uB2C8\uB2E4.",emptyResult:"\uAC80\uC0C9 \uACB0\uACFC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.",groupCount:"{{count}}\uAC1C",sort:{aria:"\uC815\uB82C",match:"\uC2DC\uC791 \uC6B0\uC120",ganada:"\uAC00\uB098\uB2E4\uC21C \u2191",ganadaDesc:"\uAC00\uB098\uB2E4\uC21C \u2193",syllable:"\uC74C\uC808 \uC218 \u2191",syllableDesc:"\uC74C\uC808 \uC218 \u2193",grade:"\uB4F1\uAE09\uC21C \u2191",gradeDesc:"\uB4F1\uAE09\uC21C \u2193"},pageSize:"{{count}}\uAC1C\uC529 \uBCF4\uAE30",pageSizeAria:"\uD398\uC774\uC9C0 \uD06C\uAE30",popup:{title:"{{n}}\uBC88 \uCE78\uC5D0 \uB123\uC744 \uB2E8\uC5B4\uB97C \uC120\uD0DD\uD558\uC138\uC694"}},H2={clearAllSelection:"\uBAA8\uB450 \uC120\uD0DD \uD574\uC81C",divLine:"\uB300\uB9BD\uC120",removePair:"\uB300\uB9BD\uC30D \uBE7C\uAE30",removeWord:"\uB2E8\uC5B4 \uBE7C\uAE30"},V2={title:"\uC8FC\uC81C\uBCC4 \uB4E3\uAE30",subtitle:"\uC8FC\uC81C\uB97C \uC120\uD0DD\uD558\uACE0 \uB4E3\uAE30 \uD6C8\uB828\uC744 \uC2DC\uC791\uD558\uC138\uC694.",noiseTitle:"\uC18C\uC74C \uD558 \uBB38\uC7A5\uB4E3\uAE30",shortStoryTitle:"\uC9E7\uC740 \uC774\uC57C\uAE30 \uB4E3\uAE30",FOOD:"\uC74C\uC2DD",HLTH:"\uAC74\uAC15",WETH:"\uB0A0\uC528",PRSN:"\uC778\uBB3C",KRCT:"\uD55C\uAD6D\uBB38\uD654",STRY:"\uC774\uC57C\uAE30",LOCA:"\uC9C0\uC5ED",SOAR:"\uC0AC\uD68C\uC640 \uC608\uC220",NTSC:"\uC790\uC5F0\uACFC \uACFC\uD559",SPRT:"\uC2A4\uD3EC\uCE20",sub:{TRKRFD:"\uD55C\uAD6D \uC804\uD1B5\uC74C\uC2DD",MDKRFD:"\uD55C\uAD6D \uD604\uB300\uC74C\uC2DD",WRLDFD:"\uC138\uACC4\uC758 \uC74C\uC2DD",MTRFRT:"\uC2DD\uC7AC\uB8CC\uC640 \uACFC\uC77C",GEFDKL:"\uC74C\uC2DD \uC0C1\uC2DD",HTETHB:"\uAC74\uAC15\uD55C \uC2DD\uC2B5\uAD00",DISILL:"\uBCD1\uACFC \uC9C8\uD658",EXCISE:"\uC6B4\uB3D9",GEHTKL:"\uAC74\uAC15\uC0C1\uC2DD",GESSKL:"\uACC4\uC808\uC0C1\uC2DD",SNWRAN:"\uB208\uACFC \uBE44",WTHFCT:"\uC77C\uAE30\uC608\uBCF4",GEWTKL:"\uB0A0\uC528\uC0C1\uC2DD",JODYPS:"\uC870\uC120\uC2DC\uB300",MDKRPS:"\uD55C\uAD6D \uADFC\uD604\uB300",THKDPS:"\uC0BC\uAD6D\uC2DC\uB300",WRLART:"\uC138\uACC4\uC758 \uC608\uC220\uAC00",WRLPSN:"\uC138\uACC4\uC758 \uC778\uBB3C",KRLANG:"\uC6B0\uB9AC\uB9D0",TRPLCT:"\uC804\uD1B5\uB180\uC774",HERITG:"\uBB38\uD654\uC7AC",EVTFES:"\uD589\uC0AC\uC640 \uCD95\uC81C",GECTKL:"\uC0C1\uC2DD",FRYTAL:"\uB3D9\uD654",AMZING:"\uC2E0\uAE30\uD55C \uC774\uC57C\uAE30",DAYSTR:"\uC77C\uC0C1 \uC18D \uC774\uC57C\uAE30",KRLDMK:"\uD55C\uAD6D\uC758 \uBA85\uC18C",SELNMK:"\uC11C\uC6B8\uC758 \uBA85\uC18C",WRDTRB:"\uC138\uACC4\uC5EC\uD589",NAVIGT:"\uAE38 \uCC3E\uAE30",KRSOCI:"\uD55C\uAD6D",ECONEW:"\uACBD\uC81C\uC640 \uB274\uC2A4",GENART:"\uC608\uC220",GELFKL:"\uC0DD\uD65C \uC0C1\uC2DD",ANIMAL:"\uB3D9\uBB3C",PLANTS:"\uC2DD\uBB3C",ETHPLT:"\uC9C0\uAD6C",TOLELC:"\uB3C4\uAD6C\uC640 \uC804\uC790\uC81C\uD488",GESCKL:"\uACFC\uD559\uC0C1\uC2DD",INVDSP:"\uAC1C\uC778\uACBD\uAE30",MARART:"\uACA9\uD22C\uAE30",TEAMSP:"\uB2E8\uCCB4\uACBD\uAE30",FOOTBL:"\uCD95\uAD6C",GESPKL:"\uC2A4\uD3EC\uCE20 \uC0C1\uC2DD"}},z2={maxUses:"\uCD5C\uB300 \uC0AC\uC6A9 \uD69F\uC218 (\uBE44\uC6CC\uB450\uBA74 \uBB34\uC81C\uD55C)",redirect:"\uC774\uB3D9\uD560 \uD398\uC774\uC9C0 URL (\uBE44\uC6CC\uB450\uBA74 \uC571 \uBA54\uC778)",creating:"\uC0DD\uC131 \uC911\u2026",create:"\uB9C1\uD06C \uC0DD\uC131",created:"\u2713 \uB9C1\uD06C\uAC00 \uC0DD\uC131\uB418\uC5C8\uC2B5\uB2C8\uB2E4",copied:"\uBCF5\uC0AC\uB428!",copy:"\uBCF5\uC0AC",loading:"\uBD88\uB7EC\uC624\uB294 \uC911\u2026",empty:"\uC0DD\uC131\uB41C \uB9C1\uD06C\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.",uses:"{{count}}\uD68C \uC0AC\uC6A9",expiresAt:"\uB9CC\uB8CC: {{date}}",createdAt:"\uC0DD\uC131: {{date}}",confirmDelete:"\uC0AD\uC81C\uD560\uAE4C\uC694?",deactivate:"\uBE44\uD65C\uC131\uD654",delete:"\uC0AD\uC81C",status:{active:"\uC720\uD6A8",expired:"\uB9CC\uB8CC",inactive:"\uBE44\uD65C\uC131"}},W2={passwordPlaceholder:"\uBE44\uBC00\uBC88\uD638 \uC785\uB825"},q2={subtitle:"\uC8FC\uC81C\uB97C \uC120\uD0DD\uD558\uC5EC \uB4E3\uAE30 \uC5F0\uC2B5\uC744 \uC9C4\uD589\uD558\uC138\uC694."},U2={direction:{left:"\uC88C",right:"\uC6B0",label:"\uBC29\uD5A5"},wornDate:"\uCC29\uC6A9\uC77C",deviceType:"\uC885\uB958",brand:"\uBE0C\uB79C\uB4DC",fitType:"\uCC29\uC6A9\uD615\uD0DC",productName:"\uC81C\uD488\uBA85",validationError:{brandAndProduct:"\uBE0C\uB79C\uB4DC\uC640 \uC81C\uD488\uBA85\uC744 \uC785\uB825\uD574 \uC8FC\uC138\uC694."},addNew:"\uC0C8 \uAE30\uAE30 \uCD94\uAC00",selectFromList:"\uBAA9\uB85D\uC5D0\uC11C \uC120\uD0DD",removeDevice:"\uCC29\uC6A9 \uD574\uC81C",type:{hearingAid:"\uBCF4\uCCAD\uAE30",cochlearImplant:"\uC778\uACF5\uC640\uC6B0"}},G2={stat:{totalCustomers:"\uCD1D \uACE0\uAC1D",monthlyVisits:"\uC774\uB2EC \uCD1D \uBC29\uBB38"},chart:{visitDetail:"\uC0C1\uC138 \uBC29\uBB38 \uD604\uD669",trainingDetail:"\uC0C1\uC138 \uD6C8\uB828 \uD604\uD669",weekly:"\uC8FC\uBCC4",daily:"\uC77C\uBCC4",periodMonth:"\uC6D4",periodWeek:"\uC8FC",weeklyPrefix:"\uC8FC\uAC04",monthlyPrefix:"\uC6D4\uAC04",visit:"\uBC29\uBB38",reservation:"\uC608\uC57D",trainingDone:"\uD6C8\uB828 \uC644\uB8CC",trainingInProgress:"\uD6C8\uB828 \uC911",weekRange:"{{start}}~{{end}}",week:"{{n}}\uC8FC"},subscriptionStatus:{active:"{{pct}}% \uD65C\uC131",expired:"{{pct}}% \uB9CC\uB8CC",unused:"{{pct}}% \uBBF8\uC0AC\uC6A9"}},K2={editBanner:{message:"\uC800\uC7A5\uD558\uBA74 \uC9C0\uAE08 \uC218\uC815 \uC911\uC778 \uB300\uB9BD\uC30D\uD45C\uAC00 \uAC31\uC2E0\uB429\uB2C8\uB2E4."},phonemeSelect:{title:"\uC74C\uC18C \uC120\uD0DD",vs:"\uB300"},caution:"\uC720\uC758\uC0AC\uD56D",mode:{include:"\uC74C\uC18C \uD3EC\uD568",pick:"\uC74C\uC18C \uB300\uB9BD",contrast:"\uC74C\uC18C \uB300\uB9BD \uC9C0\uC815",infoTitle:"\uB300\uB9BD \uBC29\uC2DD",infoInclude:"\uC74C\uC18C \uD3EC\uD568 \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uAC00 \uBAA8\uB450 \uB4E4\uC5B4\uAC04 \uB2E8\uC5B4\uC640 \uADF8 \uB300\uB9BD\uC30D\uC744 \uCC3E\uC544\uC694.",infoPick:"\uC74C\uC18C \uB300\uB9BD \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uAC00 \uB300\uB9BD\uC30D \uB450 \uB2E8\uC5B4\uC758 \uC2E4\uC81C \uCC28\uC774\uC810\uC77C \uB54C\uB9CC \uB9E4\uCE6D\uB3FC\uC694.",infoContrast:"\uC74C\uC18C \uB300\uB9BD \uC9C0\uC815 \u2014 \uAE30\uC900 \uB2E8\uC5B4\uC640 \uB300\uB9BD \uB2E8\uC5B4\uC758 \uC74C\uC18C\uB97C \uAC01\uAC01 \uC9C1\uC811 \uC120\uD0DD\uD574 \uB300\uB9BD\uC30D\uC744 \uCC3E\uC544\uC694."},count:"{{n}}\uAC1C",input:{char:"\uAE00\uC790 \uC120\uD0DD",pron:"\uBC1C\uC74C \uC120\uD0DD",infoTitle:"\uC785\uB825 \uBC29\uC2DD",infoChar:"\uAE00\uC790 \uC120\uD0DD \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uB85C \uB2E8\uC5B4(\uAE00\uC790 \uAE30\uC900)\uB97C \uCC3E\uC740 \uD6C4, \uB2E8\uC5B4\uC758 \uD45C\uC900 \uBC1C\uC74C \uB300\uB9BD\uC30D\uC744 \uCC3E\uC2B5\uB2C8\uB2E4.",infoPron:"\uBC1C\uC74C \uC120\uD0DD \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uB85C \uD45C\uC900 \uBC1C\uC74C \uB300\uB9BD\uC30D\uC744 \uCC3E\uC2B5\uB2C8\uB2E4."},phonemeN:"{{n}}\uBC88 \uC74C\uC808",phonemeSingleLabel:"\uC74C\uC808",phonemeContrastSingleLabel:"\uB300\uB9BD \uC74C\uC808",ordinals:["\uCCAB\uBC88\uC9F8","\uB450\uBC88\uC9F8","\uC138\uBC88\uC9F8","\uB124\uBC88\uC9F8"],phonemeOrdinalLabel:"{{ordinal}} \uC74C\uC808",phonemeContrastOrdinalLabel:"\uB300\uB9BD {{ordinal}} \uC74C\uC808",composition:"\uC815\uB2F5 \uB2E8\uC5B4 \uAD6C\uC131",syllableCount:"\uC74C\uC808 \uC218",syllableN:"{{n}}\uC74C\uC808",syllableNPlus:"{{n}}\uC74C\uC808 \uC774\uC0C1",onset:"\uCD08\uC131",vowel:"\uBAA8\uC74C",coda:"\uC885\uC131",filter:{searchOptionsTitle:"\uB300\uB9BD \uC124\uC815",searchModeLabel:"\uB300\uB9BD \uBC29\uC2DD",countLabel:"\uC785\uB825 \uC74C\uC808 \uAC2F\uC218",inputModeLabel:"\uC785\uB825 \uBC29\uC2DD",phonemeOrder:"\uC785\uB825 \uC74C\uC808 \uC704\uCE58",phonemeOrderInfo:["\uC77C\uCE58: \uB300\uB9BD\uC30D\uC774 \uC815\uD655\uD788 \uAC19\uC740 \uC704\uCE58(\uC74C\uC808)\uC5D0\uC11C\uB9CC \uCC28\uC774 \uB098\uC57C \uB9E4\uCE6D\uB3FC\uC694.","\uBB34\uAD00: \uCC28\uC774 \uB098\uB294 \uC704\uCE58\uB294 \uC0C1\uAD00\uC5C6\uC774 \uB9E4\uCE6D\uB3FC\uC694."],orderAny:"\uBB34\uAD00",orderMatch:"\uC77C\uCE58",difficultyInfo:"\uAD6D\uB9BD\uAD6D\uC5B4\uC6D0\uC758 \uAE30\uCD08 \uC5B4\uD718 \uB4F1\uAE09\uC774 \uACB0\uACFC\uC5D0 \uBC18\uC601\uB429\uB2C8\uB2E4.",selectLabel:"\uC120\uD0DD",onlyHasImage:"\uC774\uBBF8\uC9C0 \uC788\uB294 \uB2E8\uC5B4\uB9CC",onlySameStructure:"\uC74C\uC18C \uAD6C\uC870 \uAC19\uC740 \uB2E8\uC5B4\uB9CC"},searchLabel:{error:"\uB370\uC774\uD130 \uBD88\uB7EC\uC624\uAE30 \uC2E4\uD328",loading:"\uBD88\uB7EC\uC624\uB294 \uC911\u2026"},confirmMessage:"\uC120\uD0DD\uD55C {{unit}} {{count}}\uAC1C\uB97C \uD3EC\uD568\uD55C \uB2E8\uC5B4 \uD45C \uC815\uBCF4\uAC00 \uC0AC\uB77C\uC9D1\uB2C8\uB2E4.",resetOptions:"\uAC80\uC0C9 \uC635\uC158 \uCD08\uAE30\uD654",phonemeContrast:"\uB300\uB9BD {{n}}\uBC88 \uC74C\uC808",infoNotes:["\uBBF8\uB9AC\uBCF4\uAE30 \uAE00\uC790\uB294 \uC120\uD0DD\uD55C \uC74C\uC18C\uC758 \uC870\uD569 \uC608\uC2DC\uC785\uB2C8\uB2E4. \uC2E4\uC81C \uAC80\uC0C9\uC740 \uD574\uB2F9 \uC74C\uC18C\uAC00 \uD3EC\uD568\uB41C \uBAA8\uB4E0 \uB2E8\uC5B4\uB97C \uB300\uC0C1\uC73C\uB85C \uD569\uB2C8\uB2E4.","\uCD08\uC131 '\u3147'\uC740 \uC120\uD0DD\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4. \uB2E8\uC5B4 \uC55E\uC5D0 \uC624\uB294 \u3147\uC740 \uC2E4\uC9C8\uC801\uC73C\uB85C \uBB34\uC74C\uC774\uC5B4\uC11C \uB300\uB9BD\uC30D \uC131\uB9BD\uC5D0 \uC601\uD5A5\uC744 \uC8FC\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.","\uCD08\uC131\uACFC \uC885\uC131\uB9CC \uC120\uD0DD\uD558\uBA74 \uBAA8\uC74C\uC740 '\u314F'\uB85C \uC790\uB3D9 \uD45C\uC2DC\uB429\uB2C8\uB2E4.","\uC74C\uC18C \uAC1C\uC218\uB97C \uB298\uB9AC\uBA74 \uAC01 \uC74C\uC18C \uC0AC\uC774\uC758 \uB300\uB9BD\uC30D\uC744 \uAC80\uC0C9\uD569\uB2C8\uB2E4."]},Y2={sentenceTyping:{roundCount:"{{rounds}}\uBB38\uC81C \xB7 \uBB38\uC81C\uB2F9 {{timeLimit}}\uCD08"},wordDefense:{me:"\uB098"},dictation:{title:"\uBC1B\uC544\uC4F0\uAE30",desc:"\uBB38\uC7A5\uC744 \uB4E3\uACE0 \uC815\uD655\uD788 \uBC1B\uC544\uC801\uB294 \uC5F0\uC2B5\uC785\uB2C8\uB2E4.",comingSoon:"\uAD6C\uD604 \uC608\uC815: \uC74C\uC131 \uC7AC\uC0DD, \uC785\uB825 \uD544\uB4DC, \uC815\uB2F5 \uBE44\uAD50"},result:{heading:"{{number}}\uB2E8\uACC4 \uD574\uB2F5",retry:"\uB2E4\uC2DC \uD480\uAE30"},common:{accuracy:"{{pct}}% \uC815\uD655\uB3C4"},soundMatch:{title:"\uC18C\uB9AC \uB9E4\uCE6D",desc:"\uAC19\uC740 \uC18C\uB9AC\uB97C \uAC00\uC9C4 \uB2E8\uC5B4 \uB610\uB294 \uBB38\uC7A5\uC744 \uBE60\uB974\uAC8C \uB9E4\uCE6D\uD558\uB294 \uAC8C\uC784\uC785\uB2C8\uB2E4.",comingSoon:"\uAD6C\uD604 \uC608\uC815: \uD50C\uB808\uC774 \uBC84\uD2BC, \uD0C0\uC774\uBA38, \uC810\uC218 \uC9D1\uACC4"},orderSequence:{title:"\uBB38\uC7A5 \uC21C\uC11C\uD654",desc:"\uD769\uC5B4\uC9C4 \uBB38\uC7A5 \uC870\uAC01\uC744 \uC62C\uBC14\uB978 \uC21C\uC11C\uB85C \uBC30\uC5F4\uD558\uB294 \uD6C8\uB828\uC785\uB2C8\uB2E4.",comingSoon:"\uAD6C\uD604 \uC608\uC815: \uBB38\uC7A5 \uC138\uD2B8, \uC21C\uC11C \uD655\uC778 \uC778\uD130\uD398\uC774\uC2A4"},speedListen:{title:"\uC18D\uB3C4 \uB4E3\uAE30",desc:"\uC2DC\uAC04 \uC81C\uD55C \uB0B4\uC5D0 \uBB38\uC7A5\uC758 \uB2E8\uC5B4 \uC218\uB97C \uB9DE\uCD94\uB294 \uB3C4\uC804\uD615 \uAC8C\uC784\uC785\uB2C8\uB2E4.",comingSoon:"\uAD6C\uD604 \uC608\uC815: \uC81C\uD55C\uC2DC\uAC04, \uC810\uC218\uD310"},noiseChallenge:{title:"\uC18C\uC74C \uCC4C\uB9B0\uC9C0",desc:"\uBC30\uACBD \uC18C\uC74C \uC18D\uC5D0\uC11C \uBB38\uC7A5\uC744 \uBD84\uBCC4\uD558\uB294 \uC5F0\uC2B5\uC785\uB2C8\uB2E4.",comingSoon:"\uAD6C\uD604 \uC608\uC815: \uB2E4\uC591\uD55C \uC18C\uC74C \uB808\uBCA8, \uC810\uC218 \uC9D1\uACC4"},fastListen:{title:"\uBE60\uB978 \uB4E3\uAE30",desc:"\uC9E7\uC740 \uBB38\uC7A5\uC744 \uBE60\uB974\uAC8C \uB4E4\uB824\uC8FC\uACE0 \uD575\uC2EC \uB2E8\uC5B4\uB97C \uC120\uD0DD\uD558\uB294 \uAC8C\uC784\uC785\uB2C8\uB2E4.",comingSoon:"\uAD6C\uD604 \uC608\uC815: \uB09C\uC774\uB3C4\uBCC4 \uC18D\uB3C4, \uD0C0\uC774\uBA38"},shadowing:{title:"\uC250\uB3C4\uC789",desc:"\uBB38\uC7A5\uC744 \uB530\uB77C \uB9D0\uD558\uBA70 \uBC1C\uC74C\uACFC \uC5B5\uC591\uC744 \uC5F0\uC2B5\uD558\uB294 \uBAA8\uB4DC\uC785\uB2C8\uB2E4.",comingSoon:"\uAD6C\uD604 \uC608\uC815: \uC7AC\uC0DD, \uB179\uC74C, \uBE44\uAD50 \uD53C\uB4DC\uBC31"},phonemeHunt:{title:"\uC74C\uC6B4 \uCC3E\uAE30",desc:"\uD2B9\uC815 \uC74C\uC6B4(\uBC1C\uC74C)\uC744 \uD3EC\uD568\uD55C \uB2E8\uC5B4\uB97C \uCC3E\uC544\uB0B4\uB294 \uAC8C\uC784\uC785\uB2C8\uB2E4.",comingSoon:"\uAD6C\uD604 \uC608\uC815: \uC74C\uC6B4 \uD544\uD130, \uD78C\uD2B8 \uAE30\uB2A5"}},Z2={lead:`\uC544\uC774\uD574\uBE0C\uB294 \uC18C\uB9AC\uB97C \uD1B5\uD574
828
828
  \uC2E0\uB8B0\uB97C \uC313\uACE0
829
- \uD68C\uBCF5\uC744 \uB3D5\uC2B5\uB2C8\uB2E4.`,site:{title:"\uC0AC\uC774\uD2B8",malgwi:"\uB9D0\uADC0",soundDirection:"\uC18C\uB9AC\uBC29\uD5A5\uC131\uC2DC\uC2A4\uD15C",vrSoundDirection:"VR\uC18C\uB9AC\uBC29\uD5A5\uC131\uC2DC\uC2A4\uD15C",hearingTest:"\uCCAD\uB825\uD14C\uC2A4\uD2B8 \uD504\uB85C"},sns:{title:"SNS",naverBlog:"\uB124\uC774\uBC84 \uBE14\uB85C\uADF8",kakao:"KAKAO Talk \uC624\uD508\uCC44\uD305"},policy:{title:"\uC815\uCC45",terms:"\uC774\uC6A9\uC57D\uAD00",privacy:"\uAC1C\uC778\uC815\uBCF4 \uCC98\uB9AC\uBC29\uCE68"},ceo:"\uB300\uD45C",address:"\uC8FC\uC18C",support:"\uACE0\uAC1D\uC13C\uD130",ceoName:"\uD55C\uC9C0\uD61C",addressValue:"\uAC15\uC6D0\uB3C4 \uCD98\uCC9C\uC2DC \uC2DC\uCCAD\uAE38 32 \uD574\uCC2C\uBE4C\uB529 3\uCE35 302\uD638"},I2={trainingPhone:{topic:"\uD143\uBC2D\uAC00\uAFB8\uAE30",prev:"\uC774\uC804",next:"\uB2E4\uC74C",speed:"\uBE60\uB974\uAE30 3",noiseType:"\uC640\uAE00\uC640\uAE00",settings:"\uC124\uC815",start:{caption:"\uC544\uB798 \uD50C\uB808\uC774(\u25B6) \uBC84\uD2BC\uC744 \uB20C\uB7EC \uBB38\uC7A5\uC744 \uC798 \uB4E4\uC5B4\uBCF4\uC138\uC694. \uC798 \uB4E4\uC73C\uC2E0 \uB4A4 \uBB38\uC7A5\uC744 \uD655\uC778\uD558\uC138\uC694."},feedback:{caption:"\uC798 \uD0A4\uC6B4 \uBAA8\uC885\uC744 \uD143\uBC2D\uC5D0 \uC2EC\uACE0 \uBE44\uB2D0\uC744 \uC798 \uB36E\uC5B4 \uC90D\uB2C8\uB2E4."},done:{heardWell:"\uC798 \uB4E4\uB9B0 \uBB38\uC7A5",listenAgain:"\uD55C \uBC88 \uB354 \uB4E3\uAE30"}}},F2={timeHM:"{{h}}\uC2DC {{m}}\uBD84",timeH:"{{h}}\uC2DC"},O2={options:"\uD6C8\uB828 \uC635\uC158",difficulty:"\uB09C\uC774\uB3C4",exclude:"\uC81C\uC678",chosung:"\uCD08\uC131",excludeOptions:{none:"\uC5C6\uC74C",noImage:"\uC774\uBBF8\uC9C0 \uC5C6\uC74C"}},H2={answer:"\uC815\uB2F5",distractor:"\uC624\uB2F5"},V2={phaseWordDownload:"\uB2E8\uC5B4 \uB370\uC774\uD130 \uB2E4\uC6B4\uB85C\uB4DC",phaseImageCheck:"\uC774\uBBF8\uC9C0 \uD655\uC778",phasePairAnalysis:"\uB2E8\uC5B4\uC30D \uBD84\uC11D",downloadingCount:"{{n}}\uAC1C \uB2E4\uC6B4\uB85C\uB4DC \uC911",checkingPage:"{{page}}\uD398\uC774\uC9C0 \uBAA9\uB85D \uD655\uC778 \uC911",imageCount:"{{done}} / {{total}}\uAC1C"},z2={clearAriaLabel:"\uC785\uB825\uAC12 \uC9C0\uC6B0\uAE30"},W2={ariaLabel:"\uC120\uD0DD \uD0ED"},q2={ariaLabel:"\uD0ED"},U2={dragPrompt:"\uD30C\uC77C\uC744 \uC774\uACF3\uC5D0 \uB4DC\uB798\uADF8\uD558\uC5EC \uC5C5\uB85C\uB4DC",browseButton:"\uD30C\uC77C \uC120\uD0DD",removeAriaLabel:"{{name}} \uC81C\uAC70"},G2={ariaLabel:"\uC0AC\uC6A9\uC790 \uC544\uBC14\uD0C0"},K2={relativeDay:{today:"\uC624\uB298",yesterday:"\uC5B4\uC81C",daysAgo:"{{n}}\uC77C \uC804"},reason:{notLoggedIn:"\uB85C\uADF8\uC778\uC774 \uD544\uC694\uD569\uB2C8\uB2E4."},list:{title:"\uBC1B\uC740 \uC219\uC81C"},status:{expired:"\uB9CC\uB8CC\uB428",done:"\uC644\uB8CC {{count}}\uD68C \xB7 {{date}}",notDone:"\uBBF8\uC644\uB8CC"}},Y2={weekly:{title:"\uC8FC\uAC04 \uD6C8\uB828 \uD604\uD669",daily:"\uC624\uB298\uC758 \uB4E3\uAE30",crossword:"\uAC00\uB85C\uC138\uB85C"},homework:{title:"\uC219\uC81C \uC9C4\uD589\uD604\uD669",totalRate:"\uC804\uCCB4 \uC644\uB8CC\uC728",count:"\uC804\uCCB4",done:"\uC644\uB8CC",remaining:"\uBBF8\uC644\uB8CC"},today:{tooltipTotal:"\uC804\uCCB4",tooltipDone:"\uC644\uB8CC"},filter:{countSuffix:" \uD6C8\uB828"},time:{countLabel:"{{n}}\uD68C \uD6C8\uB828",empty:"\uD6C8\uB828 \uAE30\uB85D\uC774 \uC5C6\uC2B5\uB2C8\uB2E4."},daily:{title:"\uC624\uB298\uC758 \uB4E3\uAE30 \uAE30\uB85D",empty:"\uC644\uB8CC\uD55C \uD68C\uCC28\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4."},crossword:{title:"\uAC00\uB85C\uC138\uB85C\uD034\uC988",empty:"\uC644\uB8CC\uD55C \uB808\uBCA8\uC774 \uC5C6\uC2B5\uB2C8\uB2E4"},visit:{title:"\uBC29\uBB38 \uC5F0\uB3D9 \uAE30\uB85D"},detail:"\uC0C1\uC138\uBCF4\uAE30",trainingType:{LISTEN_IN_NOISE:"\uC18C\uC74C \uD558 \uBB38\uC7A5",SHORT_STORY:"\uC9E7\uC740 \uC774\uC57C\uAE30",LONG_STORY:"\uAE34 \uC774\uC57C\uAE30",ORDERING_SENTENCE:"\uBB38\uC7A5 \uC21C\uC11C\uD654"}},Z2={publish:{descPlaceholder:"\uB9D0\uADC0\uC790\uB8CC\uC2E4\uC5D0 \uD45C\uC2DC\uD560 \uD55C \uC904 \uC124\uBA85 (\uC120\uD0DD)"},import:"\uB0B4 \uD6C8\uB828\uC5D0 \uAC00\uC838\uC624\uAE30",publisher:"\uAC8C\uC2DC\uC790",time:{justNow:"\uBC29\uAE08 \uC804",minutesAgo:"{{n}}\uBD84 \uC804",hoursAgo:"{{n}}\uC2DC\uAC04 \uC804",daysAgo:"{{n}}\uC77C \uC804",weeksAgo:"{{n}}\uC8FC \uC804",monthsAgo:"{{n}}\uAC1C\uC6D4 \uC804",yearsAgo:"{{n}}\uB144 \uC804"},badge:{shared:"\uB9D0\uADC0\uC790\uB8CC\uC2E4"}},X2={manage:{unit:"\uAC74"}},J2={cancelLabel:"\uCDE8\uC18C"},Q2={steps:"\uC9C4\uD589 \uB2E8\uACC4 {{current}} / {{total}}"},ef={panelTitle:"\uD6C8\uB828 \uC624\uB2F5",viewItems:"\uBB38\uD56D",viewTypes:"\uC720\uD615",colPending:"\uB0A8\uC740 \uAC83",colTrend:"\uBCC0\uD654",colRuns:"\uD310",unitItem:"\uAC1C",skippedOnly:"\uC61B \uAE30\uB85D {{n}}\uAC74\uC740 \uBB34\uC5C7\uC744 \uD47C \uAC83\uC778\uC9C0 \uC548 \uB0A8\uC544 \uC788\uC5B4 \uC148\uC5D0\uC11C \uBE90\uC2B5\uB2C8\uB2E4.",summaryLabel:"\uC313\uC778 \uAE30\uB85D",summaryValue:"{{items}}\uBB38\uD56D \xB7 \uC544\uC9C1 \uBABB \uC7A1\uC740 \uAC83 {{pending}}\uAC1C",nextLabel:"\uB2E4\uC74C\uC5D0 \uBCFC \uAC83",nextCount:"{{count}}\uAC1C",nextCountCapped:"{{total}}\uAC1C \uC911 {{shown}}\uAC1C",picked:"\u2192 {{what}}",typeClear:"\uB2E4 \uC7A1\uC558\uC5B4\uC694",typePending:"{{total}}\uAC1C \uC911 {{pending}}\uAC1C \uB0A8\uC74C",flat:"\uBCC0\uD654 \uC5C6\uC74C",runs:"{{count}}\uD310",avgDuration:"\uD3C9\uADE0 {{sec}}\uCD08"},tf={resetColumns:"\uCE78 \uB108\uBE44 \uCD08\uAE30\uD654"},nf={panelTitle:"\uB2E8\uC5B4\uD45C \uCC44\uC810",viewWords:"\uB0B1\uB9D0",viewTables:"\uD45C",colLatest:"\uB9C8\uC9C0\uB9C9",colTrend:"\uBCC0\uD654",unitTime:"\uD68C",summaryLabel:"\uC313\uC778 \uCC44\uC810",summaryValue:"{{times}}\uD68C \xB7 \uB0B1\uB9D0 {{words}}\uAC1C",nextLabel:"\uB2E4\uC74C\uC5D0 \uBCFC \uAC83",nextCount:"{{count}}\uAC1C",allClear:"\uC9C0\uB09C\uBC88\uC5D0 \uBAA8\uB450 \uB9DE\uD614\uC2B5\uB2C8\uB2E4.",times:"{{count}}\uD68C",flat:"\uBCC0\uD654 \uC5C6\uC74C",recentLabel:"\uCD5C\uADFC \uCC44\uC810",nextCountCapped:"{{total}}\uAC1C \uC911 {{shown}}\uAC1C"},af={ariaLabel:"\uBC30\uB108",dotAriaLabel:"{{count}}\uAC1C \uC911 {{index}}\uBC88\uC9F8 \uBC30\uB108"},rf={selectYearMonth:"\uC5F0\uC6D4 \uC120\uD0DD",chooseDate:"\uB0A0\uC9DC \uC120\uD0DD"},of={previewRegion:"\uBCF4\uACE0\uC11C \uBBF8\uB9AC\uBCF4\uAE30 \u2014 \uC88C\uC6B0\uB85C \uAD74\uB824 \uBCFC \uC218 \uC788\uC2B5\uB2C8\uB2E4"},sf={description:"\uC124\uBA85",textbox:"\uBCF8\uBB38",training:"\uD6C8\uB828 \uC548\uB0B4",menu:"\uBA54\uB274"},lf={devNone:"\uBC1C\uB2EC \uC790\uB8CC \uC5C6\uC74C",place:{labial:"\uC591\uC21C\uC74C",alveolar:"\uCE58\uC870\uC74C",palatal:"\uACBD\uAD6C\uAC1C\uC74C",velar:"\uC5F0\uAD6C\uAC1C\uC74C",glottal:"\uC131\uBB38\uC74C"}},cf={clearSelection:"\uC120\uD0DD \uD574\uC81C"},uf={showResult:"{{type}} \uACB0\uACFC\uBCF4\uAE30"},df={selected:"\uC120\uD0DD\uB428",remove:"\uC81C\uAC70",exclude:"\uC81C\uC678",nthSelected:"{{n}}\uBC88\uC9F8 \uC120\uD0DD"},pf={loading:"\uBD88\uB7EC\uC624\uB294 \uC911\u2026"},hf={state:{active:"\uC18C\uB9AC \uB098\uB294 \uC911",played:"\uB4E4\uC74C",correct:"\uC815\uB2F5",wrong:"\uC624\uB2F5"}},mf={ariaLabel:"\uC774\uB3D9 \uACBD\uB85C"},ff={common:t2,calendar:n2,passCard:a2,searchField:r2,rating:o2,colorPicker:s2,dropdown:i2,accordion:l2,header:c2,nav:u2,settings:d2,usage:p2,account:h2,help:m2,training:f2,trainingSettings:C2,customers:g2,payment:b2,coupons:y2,visits:v2,company:x2,trainingType:_2,myWordTraining:w2,myWordTable:k2,keyWords:A2,wordTable:N2,wordSearch:B2,wordPrint:D2,topic:S2,accessLinkManager:j2,login:T2,trainingPlanRun:E2,device:M2,manager:L2,wordPairs:$2,game:R2,footer:P2,landing:I2,date:F2,trainingSetPage:O2,wordTrainingPreview:H2,wordData:V2,textField:z2,segmentedControl:W2,tabs:q2,fileUpload:U2,avatar:G2,myHomework:K2,trainingStatus:Y2,store:Z2,homework:X2,inquiry:J2,progress:Q2,trainingMiss:ef,table:tf,wordScore:nf,topBanner:af,datePicker:rf,report:of,tooltip:sf,phonemeProfile:lf,bulkBar:cf,debug:uf,badge:df,loader:pf,soundCompass:hf,breadcrumb:mf},Cf={statusFilter:"Filter by status",pageSizeSelect:"Items per page",selectedCount_one:"{{count}} selected",selectedCount_other:"{{count}} selected",moreFor:"More options for {{name}}",cancel:"Cancel",info:"Info",errorState:{message:"Couldn't load this.",retry:"Try again"},save:"Save",confirm:"Confirm",close:"Close",back:"Back",emptyTrainingName:"Training name is empty.",remove:"Remove",image:"Image",delete:"Delete",reset:"Reset",update:"Update",download:"Download",search:"Search",empty:"No data.",yes:"Yes",no:"No",all:"All",none:"None",days_one:"{{count}} day",days_other:"{{count}} days",loadMore:"Load More",retry:"Try Again",prevPage:"Previous page",nextPage:"Next page",play:"Play",pause:"Pause",playPause:"Play / Pause",replay:"Replay",subscription:"Subscription",done:"Done",failed:"Failed",continue:"Continue",notification:"Notice",emptyList:"No items",menu:"Menu",resetSelection:"Reset Selection",pageSizeLabel:"Show {{n}}",totalCountPrefix:"Total: ",totalCountSuffix:"",expand:"Expand",collapse:"Collapse",popup:"Popup",more:"More",codeBlock:"Code block",totalPrefix:"",copyCode:"Copy code",copied:"Copied",col:{problem:"Question"},phonetics:{place:{labial:"Bilabial",alveolar:"Alveolar",palatal:"Palatal",velar:"Velar",glottal:"Glottal"},vowel:{frontHigh:"Front high vowel",backHighUnrounded:"Back high unrounded vowel",backHighRounded:"Back high rounded vowel",frontMid:"Front mid vowel",backMidUnrounded:"Back mid unrounded vowel",backMidRounded:"Back mid rounded vowel",low:"Low vowel"},glide:{j:"j-glide",w:"w-glide",velar:"\u0270-glide"}},unknownError:"Unknown error"},gf={rangeSelect:"Select period",dow:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],yearMonth:"{{month}}/{{year}}",prevMonth:"Previous month",addOnDate:"Add a visit on {{date}}",nextMonth:"Next month",prevWeek:"Previous week",nextWeek:"Next week",legend:{visited:"Visited",scheduled:"Scheduled",noVisit:"No Show"},periodSelect:"Period unit"},bf={planSuffix:"Plan",labeledPlan:"{{label}} Plan",couponCode:"Pass Code",specialLabel:"Open Special",unitDay:"d",unitYear:"yr",remainingDay:"{{n}}d left",remainingHour:"{{n}}h left",remainingMinute:"{{n}}m left",remainingSecond:"{{n}}s left",menu:{use:"Activate",refund:"Refund",delete:"Delete"}},yf={clearAriaLabel:"Clear search"},vf={starLabel:"Select star {{n}}",valueLabel:"{{value}} out of {{max}}",groupLabel:"Rating"},xf={selected:"selected"},_f={placeholder:"Select"},wf={collapse:"Collapse",expand:"Expand"},kf={biArea:"BI area",biSymbol:"BI symbol",logoMalgwi:"Malgwi logo",logoManager:"Malgwi Manager logo",menuOpen:"Open menu",utilMenu:"Utility menu"},Af={mainMenu:"Main menu",bottomNav:"Bottom navigation",goToManager:"Go to Malgwi Manager",goToMalgwi:"Go to Malgwi",modeLabelManager:"Malgwi Manager",modeLabelMalgwi:"Malgwi",training:"Training",settings:"Settings",notifications:"Notifications",account:"Account",help:"Help",debug:"Debug",coupons:"Coupons",topic:"By Topic",trainingType:"By Training Type",wordPairs:"Word Pairs",wordSearch:"Word Search",wordTable:"Word Table Creator",company:"Company Info",more:"More",moreMenu:"More menu",badgeLabel:"{{label}}, {{count}}"},Nf={language:{training:{label:"Training Language",sub:"Language used for training words and speech"}},notifications:{title:"Notifications"},display:{fontSize:{small:"Small",large:"Large"}},cache:{title:"Cache Management",confirmMessage:"Delete cache ({{size}}). Do you want to continue?",delete:"Delete",deleting:"Deleting",cleared:"Cache cleared successfully.",group:{wordData:{label:"Word Data",sub:"Word list and version info"},pairIndex:{label:"Pair Index",sub:"Onset\xB7vowel\xB7coda minimal pair analysis cache"},imageCache:{label:"Image Cache",sub:"Word image existence check results"},trainingRecord:{label:"Training Record",sub:"Daily training progress and streak"}}},button:{save:"Save Settings"},popup:{clear:{confirm:"Reset"},update:{confirm:"Update"},cache:{title:"Delete {{label}}",message:"Delete {{label}} ({{size}}). Do you want to continue?"}},saved:"\u2713 Saved",account:{title:"Account",delete:{sub:"You can restore your account within 30 days of withdrawal."}}},Bf={addButton:"Add Subscription",couponButton:"Enter Coupon",active:{infoTitle:"Subscription Info",refund:"Request Refund",startDate:"Start Date",endDate:"End Date",remaining:"Remaining"},pending:{title:"Pending",empty:"No pending subscriptions."},loading:"Loading\u2026",segment:{personal:"Malgwi",org:"Malgwi Manager"},org:{title:"Current Plan",disc:"Subscription plan in use by your organization.",empty:"No organization plan registered.",fallbackTitle:"Organization Plan",startDate:"Start Date",endDate:"End Date",remaining:"Remaining",duration:"Duration"}},Df={profile:{planSuffix:"",plan:"Plan"},basicInfo:{name:{placeholder:"John Doe"}},security:{title:"Security",password:{label:"Password",currentRequired:"Enter your current password.",newRequired:"Enter a new password.",mismatch:"The new passwords do not match.",changed:"Your password has been changed."},twoFactor:{label:"Two-Factor Authentication",sub:"Strengthen your account security"}}},Sf={guide:{faq:{title:"FAQ",desc:"View all frequently asked questions"}}},jf={settings:"Settings",start:{title:"Start Word Training",description:"Select a training type below to begin"},difficulty:{tooltip:"The easiest difficulty is 'Random', the hardest is 'Initial Consonant Difference'."},contrast:{label:"Contrast",type:"Contrast Type",count:"Contrast Count",n:"{{n}}"},filter:{random:"Random",trainOnset:"Onset",trainVowel:"Vowel",trainCoda:"Coda",phonemeGroup:"Training phonemes",noLimit:"Any",codaExclude:"Exclude",gradeLabel:"Grade",excludeImageInfo:"Only words with images: keeps only results with a registered word image.",sameStructureInfo:"Only same phoneme structure: keeps only pairs where the correct and wrong answers share the same syllable structure (length, batchim, etc.).",selectSection:"Select",excludeImage:"Only words with images",sameStructure:"Only same phoneme structure"},noQuestions:"No questions available.",countQuestions:"{{n}} questions",countSentences:"{{n}} sentences",comingSoon:"Coming Soon",nextQuestion:"Next",noiseRatioTitle:"Noise Ratio",noiseRatioValue:"{{ratio}}\xD7",noiseTypeTitle:"Noise Type",playVolumeTitle:"Volume",playSpeedTitle:"Speed",meter:{sentence:"Playback",noise:"Noise",toggle:"Show Audio Meter"},viewResult:"View Results",problemNotice:"Problem {{n}}.",trainingSettingsTitle:"Training Settings",sentencePreview:"Sentence Preview",notHeard:"Didn't hear it.",heardWell:"Heard it well.",confirmTitle:"Check the sentence and select whether you heard it.",noSoundWaveform:"Waveform is not shown for sound-comparison questions.",noise:{level:{none:"None",weak:"Weak",medium:"Medium",strong:"Strong",veryStrong:"Very Strong"},type:{none:"None",default:"Default",street:"Street",buzz:"Buzzing",restaurant:"Restaurant"}},listenTitle:"Please listen to the sentence.",listenButton:"Listen",playSound:"Play Sound",playAll:"Play All",stop:"Stop",preview:"Preview",next:"Next",completed:"Completed",selected:"Selected",nthSelected:"Selection {{n}}",fontSizeMin:"Font size is at the minimum.",fontSizeMax:"Font size is at the maximum.",fontSizeDecrease:"Decrease font size",fontSizeIncrease:"Increase font size",toggleBackground:"Toggle background",cardInstructions:"Look at the word card, listen to the sound, and check it.",noCards:"No cards.",audioFetchError:"Failed to load the sound source.",selectConfirm:"Look at the question and select the answer.",orderListDefault:"Arrange the sentences in the order you heard.",result:{eyebrow:"Training Complete",title:"You've finished all the training!",scoreAria:"{{correct}} / {{total}} questions",elapsed:"Time Elapsed",summary:"You heard {{correct}} item(s) correctly.",tableAriaLabel:"Per-question judgement",colJudge:"Judgement",colAnswerSelected:"Answer \xB7 Selected",colAnswer:"Answer",colSelected:"Selected",heardWell:"Heard well",notHeard:"Didn't hear",notJudged:"Not judged",replay:"Replay",done:"Done",viewResult:"View Results",noContent:"(No content)"},up:"Move up",down:"Move down",prev:"Previous",listenLabel:"Listen",sourcePlay:"Play source {{n}}",listen:"Listen"},Tf={totalCount:" training bundles",sort:{customers:"Customers"},copyLink:"Copy Link",removeLink:"Remove Link",linkRemoved:"Link removed.",linkSaveFirst:"Please save the training bundle first.",linkSaveFirstHint:"You can only create a shared link from a saved training bundle.",linkCopySelect:"Copy blocked \u2014 link selected. Press Ctrl/\u2318+C to copy.",nameRequired:"Please enter a training bundle name.",itemRequired:"Please add at least one training item.",randomAdd:"Random Add",menu:{publish:"Post to Store",duplicate:"Duplicate Training Bundle",edit:"Edit Training Bundle",move:"Move Group",rename:"Rename"},itemCount:"Number of Items",renameGroup:"Rename Group"},Ef={totalCount:" customers",loadError:"Failed to load list",basicInfo:{editTooltip:"Edit"},member:{placeholder:"Email or phone",link:"Link",linking:"Linking\u2026"},device:{title:"Hearing Devices",addTooltip:"Add New",addButton:"Add device",listTooltip:"View List",listTitle:" Device List",historyEmpty:"No device history registered",wearing:" in use",notRegistered:"Not registered",unit:"",wearingNow:"In use",wear:"Wear",unwear:"Remove",wornSince:"Since {{date}}",release:"Release",historyTitle:"Hearing device history"},schedule:{title:"Upcoming Visits",addTooltip:"Add Schedule",listTooltip:"View All",empty:"No upcoming visits",registerTitle:" Register Schedule",memoPlaceholder:"Enter a memo for this visit."},visitHistory:{title:"Visit History",addTooltip:"Add Visit",empty:"No visit history yet",popupTitle:" Visit History",registerTitle:" Register Visit"},moreItems:"more",viewAll:"View All",visits:{title:"Visits"},trainingRecord:{title:"Customer Training Records"},status:{trainingSubtitle:"Training Status"},detail:{session:{completedFmt:"Done {{done}}/{{total}} \xB7 {{duration}}"},visitSuffix:" visits"},homework:{active:"Active",copied:"Link copied.",copy:"Copy Link",inactive:"Inactive",title:"Homework Progress"},duration:{minSec:"{{m}}m {{s}}s",min:"{{m}}m",sec:"{{s}}s"}},Mf={plan:{recommendedFor:"Recommended for",features:"Key Features",freePrice:"Free",contact:"Contact Us",tierFallback:"Plan",openPromo:"Launch offer"},products:{mgrEnterprise:{tier:{price:"Contact us"}}}},Lf={title:"Coupons",subtitle:"Enter a coupon code or view your coupons",input:{label:"Coupon code",placeholder:"Enter coupon code"},applyButton:"Apply",error:{invalid:"Invalid coupon code.",alreadyUsed:"This coupon has already been used."},success:{applied:'"{{name}}" coupon applied.'},section:{owned:"My Coupons"},status:{used:"Used",available:"Available"}},$f={unitVisit:"",periodAll:"All",showN:"Show {{n}}"},Rf={subtitle:"Manage company and business information",editButton:"Edit Info",basicInfo:{title:"Basic Info"},contactInfo:{title:"Contact Info"}},Pf={title:"Training by Type",subtitle:"Select the training type you want",listenInNoise:{title:"Sentence Listening in Noise",desc:"Train sentence comprehension in various noise environments."},shortStory:{title:"Short Story Listening",desc:"Listen to short stories and understand the content."},longStory:{title:"Long Story Listening",desc:"Focus on listening to long stories and grasp the content."},orderingSentence:{title:"Sentence Ordering",desc:"Arrange heard sentences in the correct order."},SAME_SOUND_PICK:{label:"Listen & Pick Same Sound",sub:"Pick the word card that matches what you heard."},SAME_OR_DIFF:{label:"Same or Different?",sub:"Decide whether the two sounds are the same or different."},HEAR_AND_PICK_SAME:{label:"Hear & Match Word",sub:"Pick the word card that matches the sound you heard."},HEAR_AND_PICK_INCLUDED:{label:"Find Word Containing Sound",sub:"Pick the word card that contains the syllable you heard."},STARTS_WITH_SAME_SOUND:{label:"Find Word Starting with Same Sound",sub:"Pick a word that starts with the same sound as what you heard."},LISTEN_AND_REMEMBER_ORDER:{label:"Listen & Recall Order",sub:"Select the cards in the order you heard the three words."},MERGE_2_SYLLABLES:{label:"Combine 2 Syllables",sub:"What word do two syllables make?"},MERGE_3_SYLLABLES:{label:"Combine 3 Syllables",sub:"What word do three syllables make?"},MERGE_2_PHONEMES:{label:"Combine 2 Phonemes",sub:"What sound do two phonemes make?"},MERGE_3_PHONEMES:{label:"Combine 3 Phonemes",sub:"What sound do three phonemes make?"},DROP_1_FROM_2SYLL:{label:"Drop 1 Syllable from 2-Syllable",sub:"What sound remains when you remove a syllable from a 2-syllable word?"},DROP_1_FROM_3SYLL:{label:"Drop 1 Syllable from 3-Syllable",sub:"What sound remains when you remove a syllable from a 3-syllable word?"},DROP_PART_FROM_COMPOUND:{label:"Drop Part of Compound Word",sub:"What word remains when you remove part of a compound word?"},DROP_FINAL_CONSONANT_FROM_1SYLL:{label:"Drop Final Consonant",sub:"What sound remains when you remove the final consonant?"},REMOVE_CONSONANT_AND_IDENTIFY_PHONEME:{label:"Drop Consonant",sub:"What sound remains when you remove the consonant?"},CHANGE_1_SYLL_IN_2SYLL:{label:"Change 1 Syllable (2-Syllable)",sub:"Change one syllable in a 2-syllable word to make a new word."},CHANGE_1_SYLL_IN_3SYLL:{label:"Change 1 Syllable (3-Syllable)",sub:"Change one syllable in a 3-syllable word to make a new word."},CHANGE_1_PHONEME_IN_1SYLL:{label:"Change 1 Phoneme (1-Syllable)",sub:"Change one phoneme in a 1-syllable word to make a new sound."},CHANGE_1_PHONEME_IN_2SYLL:{label:"Change 1 Phoneme (2-Syllable)",sub:"Change one phoneme in a 2-syllable word to make a new word."}},If={comingSoon:"Word training is coming soon."},Ff={colName:"Table Name",open:"Open",countSuffix:" tables",addCard:"Add Word Table Card",cardsEmpty:"No word table cards created yet.",menu:{publishStore:"Post to Training Store",unpublishStore:"Remove from Training Store"},newBadge:"Newly created",tab:{cards:"Word Table Cards",tables:"Word Tables"},publishedBadge:"Published",sharedBadge:"Shared"},Of={title:"Key Words",empty:"No key words available."},Hf={defaultName:"Word Table",title:"Word Table Builder",subtitle:"Set columns and add words to build a table.",filterTitle:"Table Settings",filter:{composition:"Composition",image:"Image",word:"Word",standardPron:"Standard Pronunciation",colloquialPron:"Colloquial Pronunciation",paperOrientation:"Paper Orientation",landscape:"Landscape",portrait:"Portrait",columns:"Columns",column:"{{count}} col",itemsPerPageWord:"Words per page",itemsPerPagePair:"Pairs per page",itemsPerPageOption:"{{count}}",pageIndicator:"{{current}} / {{total}}",pageNumber:"Page Number",pageNumberLeft:"Left",pageNumberCenter:"Center",pageNumberRight:"Right",border:"Border",cutLine:"Cut Line",show:"Show",hide:"Hide",dotted:"Dotted",corner:"Corner"},addWord:"Add",wordInfo:"Info for {{word}}",emptyItems:"Please add at least one word.",load:"Load",openNewWindow:"Open in New Window",saveButton:"Save",saveAsNewButton:"Save as New",print:"Print",popupBlocked:"Popup was blocked. Please allow popups in your browser settings.",printFileNameSingle:"Word Table",printFileNamePair:"Contrast Pair Table",save:{title:"Save Word Table",nameLabel:"Name",desc:"Enter a name for the word table.",placeholder:"Enter a title for this word table.",descriptionLabel:"Description",descriptionPlaceholder:"Enter a description for this word table.",duplicateName:"This name is already in use.",nameRequired:"Please enter a table name.",autoFillHint:" (Press Tab or Space to autofill)",copyName:"{{name}} (copy)"},loadTable:{title:"Load Saved Word Table",empty:"No saved word tables.",loadButton:"Load",itemCount:"{{count}} words",deleteAriaLabel:"Delete",sort:{newest:"Newest",oldest:"Oldest",name:"Name",count:"Word Count"},view:{grid:"Grid View",list:"List View"}},groupDeleteMessage:"Word tables in this group will be moved to 'No Group'.",groupNamePlaceholder:"Group name",store:{badge:"Training Store"},card:{sub:"Word Table Card",empty:"No word tables in this card."},toast:{renameError:"Failed to rename",saveError:"Failed to save",deleteError:"Failed to delete",duplicateError:"Failed to duplicate",saveSuccess:"Word table saved."},scoring:{o:"{{word}} correct",triangle:"{{word}} partial",x:"{{word}} incorrect",button:"Score",pickTitle:"Who are you scoring?",pickSubtitle:"Choose the customer who trained with \u201C{{name}}\u201D.",pickSearch:"Search by name or phone",pickEmpty:"No customers registered.",pickNoMatch:"No matching customer.",pickAgain:"Choose another",scoringFor:"Scoring {{name}}",none:"Tap a cell to mark \u25CB \xB7 \u25B3 \xB7 \u2715.",tally:"{{marked}} scored \xB7 \u25CB {{o}} \xB7 \u25B3 {{triangle}} \xB7 \u2715 {{x}} \xB7 {{rate}}%",save:"Save score",saved:"Saved {{count}} marks for {{name}}.",reviewTitle:"Create a review table?",reviewMessage:"Builds a new table from the {{count}} cells {{name}} got wrong or partial. Correct ones are left out.",reviewConfirm:"Create review table",reviewDescription:"Cells marked wrong or partial in \u201C{{name}}\u201D \u2014 {{count}} of them.",reviewCreated:"Created \u201C{{name}}\u201D \u2014 {{count}} cells.",discardTitle:"Discard this scoring?",discardMessage:"You marked {{count}} cells but have not saved. Leaving discards them.",discardConfirm:"Discard and leave"}},Vf={editBanner:{message:"Saving will update the word table you're editing."},filterTitle:"Word Search Settings",filter:{positionAny:"Any",positionHead:"Start",positionMid:"Middle",positionTail:"End",difficulty:"Grade",grade:"Grade {{n}}",syllables:"Syllables",syllable:"{{n}} Syll.",syllable5plus:"5+ Syllables",partOfSpeech:"Part of Speech",pos:{noun:"Noun/Numeral",verb:"Verb/Adjective",modifier:"Adverb/Determiner"},wordType:"Word Type",type:{native:"Native Korean",sino:"Sino-Korean",foreign:"Loanword",mixed:"Hybrid"},exclude:"Exclude",excludeNoImage:"No Image"},searchButton:"Search",resultUnit:"words",remaining:"{{count}} remaining",resultDisc:"Select {{unit}}. Up to {{max}} items. ({{selected}}/{{max}})",resultTitlePrefix:"",resultTitleSuffix:" {{unit}} found.",emptyResult:"No results found.",groupCount:"{{count}}",sort:{aria:"Sort",match:"Best Match",ganada:"A\u2013Z \u2191",ganadaDesc:"A\u2013Z \u2193",syllable:"Syllables \u2191",syllableDesc:"Syllables \u2193",grade:"Grade \u2191",gradeDesc:"Grade \u2193"},pageSize:"Show {{count}}",pageSizeAria:"Page size",popup:{title:"Select a word for cell {{n}}"}},zf={clearAllSelection:"Clear All Selections",divLine:"Contrast Line",removePair:"Remove pair",removeWord:"Remove word"},Wf={title:"By Topic",subtitle:"Select a topic to start listening training",noiseTitle:"Sentence Listening in Noise",shortStoryTitle:"Short Story Listening",FOOD:"Food",HLTH:"Health",WETH:"Weather",PRSN:"People",KRCT:"Korean Culture",STRY:"Stories",LOCA:"Locations",SOAR:"Society & Arts",NTSC:"Nature & Science",SPRT:"Sports",sub:{TRKRFD:"Traditional Korean Food",MDKRFD:"Modern Korean Food",WRLDFD:"World Cuisine",MTRFRT:"Ingredients & Fruits",GEFDKL:"Food Facts",HTETHB:"Healthy Eating",DISILL:"Diseases",EXCISE:"Exercise",GEHTKL:"Health Facts",GESSKL:"Seasons",SNWRAN:"Snow & Rain",WTHFCT:"Weather Forecast",GEWTKL:"Weather Facts",JODYPS:"Joseon Dynasty",MDKRPS:"Modern Korea",THKDPS:"Three Kingdoms",WRLART:"World Artists",WRLPSN:"World Figures",KRLANG:"Korean Language",TRPLCT:"Traditional Games",HERITG:"Heritage",EVTFES:"Events & Festivals",GECTKL:"General Knowledge",FRYTAL:"Fairy Tales",AMZING:"Amazing Stories",DAYSTR:"Everyday Stories",KRLDMK:"Korean Landmarks",SELNMK:"Seoul Landmarks",WRDTRB:"World Travel",NAVIGT:"Navigation",KRSOCI:"Korea",ECONEW:"Economy & News",GENART:"Arts",GELFKL:"Life Tips",ANIMAL:"Animals",PLANTS:"Plants",ETHPLT:"Earth",TOLELC:"Tools & Electronics",GESCKL:"Science Facts",INVDSP:"Individual Sports",MARART:"Martial Arts",TEAMSP:"Team Sports",FOOTBL:"Soccer",GESPKL:"Sports Facts"}},qf={maxUses:"Max uses (leave blank for unlimited)",redirect:"Redirect URL (leave blank for app home)",creating:"Creating\u2026",create:"Create link",created:"\u2713 Link created",copied:"Copied!",copy:"Copy",loading:"Loading\u2026",empty:"No links created yet.",uses:"Used {{count}} times",expiresAt:"Expires: {{date}}",createdAt:"Created: {{date}}",confirmDelete:"Delete this link?",deactivate:"Deactivate",delete:"Delete",status:{active:"Active",expired:"Expired",inactive:"Inactive"}},Uf={passwordPlaceholder:"Enter password"},Gf={direction:{left:"L",right:"R",label:"Side"},wornDate:"Date Worn",deviceType:"Device Type",brand:"Brand",fitType:"Fit Type",productName:"Product Name",validationError:{brandAndProduct:"Please enter brand and product name."},addNew:"Add New Device",selectFromList:"Select from List",removeDevice:"Remove"},Kf={stat:{totalCustomers:"Total Customers",monthlyVisits:"This Month's Visits"},chart:{visitDetail:"Visit Details",trainingDetail:"Training Details",weekly:"Weekly",daily:"Daily",periodMonth:"Month",periodWeek:"Week",weeklyPrefix:"Weekly",monthlyPrefix:"Monthly",visit:"Visits",reservation:"Reservations",trainingDone:"Completed",trainingInProgress:"In Progress",weekRange:"{{start}}\u2013{{end}}",week:"W{{n}}"},subscriptionStatus:{active:"{{pct}}% Active",expired:"{{pct}}% Expired",unused:"{{pct}}% Unused"}},Yf={editBanner:{message:"Saving will update the contrast pair table you're editing."},phonemeSelect:{title:"Phoneme Selection",vs:"vs"},caution:"Caution",mode:{include:"Phoneme Include",pick:"Phoneme Contrast",contrast:"Specify Contrast",infoTitle:"Contrast Mode",infoInclude:"Include \u2014 finds words containing all selected phonemes, plus their minimal pair.",infoPick:"Contrast \u2014 matches only if the selected phoneme is the actual point of difference in the pair.",infoContrast:"Specify Contrast \u2014 directly choose phonemes for the base word and the contrasting word to find pairs."},count:"{{n}}",input:{char:"Choose Letters",pron:"Choose Sound",infoTitle:"Input mode",infoChar:"Choose Letters \u2014 finds words by the selected phonemes (spelling), then finds their standard-pronunciation contrast pairs.",infoPron:"Choose Sound \u2014 finds standard-pronunciation contrast pairs directly from the selected phonemes."},phonemeN:"Syllable {{n}}",phonemeSingleLabel:"Syllable",phonemeContrastSingleLabel:"Contrast Syllable",ordinals:["First","Second","Third","Fourth"],phonemeOrdinalLabel:"{{ordinal}} Syllable",phonemeContrastOrdinalLabel:"Contrast {{ordinal}} Syllable",composition:"Answer Word Composition",syllableCount:"Syllables",syllableN:"{{n}} syll.",syllableNPlus:"{{n}}+ syll.",onset:"Onset",vowel:"Vowel",coda:"Coda",filter:{searchOptionsTitle:"Contrast Settings",searchModeLabel:"Contrast Mode",countLabel:"Input Syllable Count",inputModeLabel:"Input mode",phonemeOrder:"Input Syllable Position",phonemeOrderInfo:["Match: the pair must differ at exactly the same position (syllable).","Any: the differing position doesn't matter."],orderAny:"Any",orderMatch:"Match",difficultyInfo:"Reflects the National Institute of Korean Language's basic vocabulary grade.",selectLabel:"Select",onlyHasImage:"Only words with images",onlySameStructure:"Only same phoneme structure"},searchLabel:{error:"Failed to load data",loading:"Loading\u2026"},confirmMessage:"The word table with {{count}} selected {{unit}} will be lost.",resetOptions:"Reset Options",phonemeContrast:"Contrast Syllable {{n}}",infoNotes:["The preview character is an example of the selected phoneme combination. The actual search covers all words containing the phoneme.","Initial consonant '\u3147' cannot be selected. \u3147 at the start of a word is effectively silent.","If only onset and coda are selected, the vowel is automatically displayed as '\u314F'.","Increasing the phoneme count searches for minimal pairs between each phoneme."]},Zf={sentenceTyping:{roundCount:"{{rounds}} rounds \xB7 {{timeLimit}}s each"},wordDefense:{me:"Me"},dictation:{title:"Dictation",desc:"Practice writing down exactly what you hear.",comingSoon:"Coming soon: audio playback, input field, answer comparison"},result:{heading:"Level {{number}} Answer",retry:"Try Again"},common:{accuracy:"{{pct}}% accuracy"},soundMatch:{title:"Sound Match",desc:"Quickly match words or sentences that share the same sound.",comingSoon:"Coming soon: play button, timer, score tracking"},orderSequence:{title:"Sentence Ordering",desc:"Arrange scattered sentence fragments in the correct order.",comingSoon:"Coming soon: sentence sets, ordering interface"},speedListen:{title:"Speed Listen",desc:"A challenge game to count the number of words in a sentence within a time limit.",comingSoon:"Coming soon: time limit, scoreboard"},noiseChallenge:{title:"Noise Challenge",desc:"Practice distinguishing sentences amid background noise.",comingSoon:"Coming soon: various noise levels, score tracking"},fastListen:{title:"Fast Listen",desc:"Listen to short sentences at speed and select the key word.",comingSoon:"Coming soon: speed by difficulty, timer"},shadowing:{title:"Shadowing",desc:"Practice pronunciation and intonation by repeating sentences aloud.",comingSoon:"Coming soon: playback, recording, comparison feedback"},phonemeHunt:{title:"Phoneme Hunt",desc:"Find words that contain a specific phoneme (sound).",comingSoon:"Coming soon: phoneme filter, hint feature"}},Xf={lead:`IHAB builds trust
829
+ \uD68C\uBCF5\uC744 \uB3D5\uC2B5\uB2C8\uB2E4.`,site:{title:"\uC0AC\uC774\uD2B8",malgwi:"\uB9D0\uADC0",soundDirection:"\uC18C\uB9AC\uBC29\uD5A5\uC131\uC2DC\uC2A4\uD15C",vrSoundDirection:"VR\uC18C\uB9AC\uBC29\uD5A5\uC131\uC2DC\uC2A4\uD15C",hearingTest:"\uCCAD\uB825\uD14C\uC2A4\uD2B8 \uD504\uB85C"},sns:{title:"SNS",naverBlog:"\uB124\uC774\uBC84 \uBE14\uB85C\uADF8",kakao:"KAKAO Talk \uC624\uD508\uCC44\uD305"},policy:{title:"\uC815\uCC45",terms:"\uC774\uC6A9\uC57D\uAD00",privacy:"\uAC1C\uC778\uC815\uBCF4 \uCC98\uB9AC\uBC29\uCE68"},ceo:"\uB300\uD45C",address:"\uC8FC\uC18C",support:"\uACE0\uAC1D\uC13C\uD130",ceoName:"\uD55C\uC9C0\uD61C",addressValue:"\uAC15\uC6D0\uB3C4 \uCD98\uCC9C\uC2DC \uC2DC\uCCAD\uAE38 32 \uD574\uCC2C\uBE4C\uB529 3\uCE35 302\uD638"},X2={trainingPhone:{topic:"\uD143\uBC2D\uAC00\uAFB8\uAE30",prev:"\uC774\uC804",next:"\uB2E4\uC74C",speed:"\uBE60\uB974\uAE30 3",noiseType:"\uC640\uAE00\uC640\uAE00",settings:"\uC124\uC815",start:{caption:"\uC544\uB798 \uD50C\uB808\uC774(\u25B6) \uBC84\uD2BC\uC744 \uB20C\uB7EC \uBB38\uC7A5\uC744 \uC798 \uB4E4\uC5B4\uBCF4\uC138\uC694. \uC798 \uB4E4\uC73C\uC2E0 \uB4A4 \uBB38\uC7A5\uC744 \uD655\uC778\uD558\uC138\uC694."},feedback:{caption:"\uC798 \uD0A4\uC6B4 \uBAA8\uC885\uC744 \uD143\uBC2D\uC5D0 \uC2EC\uACE0 \uBE44\uB2D0\uC744 \uC798 \uB36E\uC5B4 \uC90D\uB2C8\uB2E4."},done:{heardWell:"\uC798 \uB4E4\uB9B0 \uBB38\uC7A5",listenAgain:"\uD55C \uBC88 \uB354 \uB4E3\uAE30"}}},J2={timeHM:"{{h}}\uC2DC {{m}}\uBD84",timeH:"{{h}}\uC2DC"},Q2={options:"\uD6C8\uB828 \uC635\uC158",difficulty:"\uB09C\uC774\uB3C4",exclude:"\uC81C\uC678",chosung:"\uCD08\uC131",excludeOptions:{none:"\uC5C6\uC74C",noImage:"\uC774\uBBF8\uC9C0 \uC5C6\uC74C"}},ef={answer:"\uC815\uB2F5",distractor:"\uC624\uB2F5"},tf={phaseWordDownload:"\uB2E8\uC5B4 \uB370\uC774\uD130 \uB2E4\uC6B4\uB85C\uB4DC",phaseImageCheck:"\uC774\uBBF8\uC9C0 \uD655\uC778",phasePairAnalysis:"\uB2E8\uC5B4\uC30D \uBD84\uC11D",downloadingCount:"{{n}}\uAC1C \uB2E4\uC6B4\uB85C\uB4DC \uC911",checkingPage:"{{page}}\uD398\uC774\uC9C0 \uBAA9\uB85D \uD655\uC778 \uC911",imageCount:"{{done}} / {{total}}\uAC1C"},nf={clearAriaLabel:"\uC785\uB825\uAC12 \uC9C0\uC6B0\uAE30"},af={ariaLabel:"\uC120\uD0DD \uD0ED"},rf={ariaLabel:"\uD0ED"},of={dragPrompt:"\uD30C\uC77C\uC744 \uC774\uACF3\uC5D0 \uB4DC\uB798\uADF8\uD558\uC5EC \uC5C5\uB85C\uB4DC",browseButton:"\uD30C\uC77C \uC120\uD0DD",removeAriaLabel:"{{name}} \uC81C\uAC70"},sf={ariaLabel:"\uC0AC\uC6A9\uC790 \uC544\uBC14\uD0C0"},lf={relativeDay:{today:"\uC624\uB298",yesterday:"\uC5B4\uC81C",daysAgo:"{{n}}\uC77C \uC804"},reason:{notLoggedIn:"\uB85C\uADF8\uC778\uC774 \uD544\uC694\uD569\uB2C8\uB2E4."},list:{title:"\uBC1B\uC740 \uC219\uC81C"},status:{expired:"\uB9CC\uB8CC\uB428",done:"\uC644\uB8CC {{count}}\uD68C \xB7 {{date}}",notDone:"\uBBF8\uC644\uB8CC"}},cf={weekly:{title:"\uC8FC\uAC04 \uD6C8\uB828 \uD604\uD669",daily:"\uC624\uB298\uC758 \uB4E3\uAE30",crossword:"\uAC00\uB85C\uC138\uB85C"},homework:{title:"\uC219\uC81C \uC9C4\uD589\uD604\uD669",totalRate:"\uC804\uCCB4 \uC644\uB8CC\uC728",count:"\uC804\uCCB4",done:"\uC644\uB8CC",remaining:"\uBBF8\uC644\uB8CC"},today:{tooltipTotal:"\uC804\uCCB4",tooltipDone:"\uC644\uB8CC"},filter:{countSuffix:" \uD6C8\uB828"},time:{countLabel:"{{n}}\uD68C \uD6C8\uB828",empty:"\uD6C8\uB828 \uAE30\uB85D\uC774 \uC5C6\uC2B5\uB2C8\uB2E4."},daily:{title:"\uC624\uB298\uC758 \uB4E3\uAE30 \uAE30\uB85D",empty:"\uC644\uB8CC\uD55C \uD68C\uCC28\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4."},crossword:{title:"\uAC00\uB85C\uC138\uB85C\uD034\uC988",empty:"\uC644\uB8CC\uD55C \uB808\uBCA8\uC774 \uC5C6\uC2B5\uB2C8\uB2E4"},visit:{title:"\uBC29\uBB38 \uC5F0\uB3D9 \uAE30\uB85D"},detail:"\uC0C1\uC138\uBCF4\uAE30",trainingType:{LISTEN_IN_NOISE:"\uC18C\uC74C \uD558 \uBB38\uC7A5",SHORT_STORY:"\uC9E7\uC740 \uC774\uC57C\uAE30",LONG_STORY:"\uAE34 \uC774\uC57C\uAE30",ORDERING_SENTENCE:"\uBB38\uC7A5 \uC21C\uC11C\uD654"}},uf={publish:{descPlaceholder:"\uB9D0\uADC0\uC790\uB8CC\uC2E4\uC5D0 \uD45C\uC2DC\uD560 \uD55C \uC904 \uC124\uBA85 (\uC120\uD0DD)"},import:"\uB0B4 \uD6C8\uB828\uC5D0 \uAC00\uC838\uC624\uAE30",publisher:"\uAC8C\uC2DC\uC790",time:{justNow:"\uBC29\uAE08 \uC804",minutesAgo:"{{n}}\uBD84 \uC804",hoursAgo:"{{n}}\uC2DC\uAC04 \uC804",daysAgo:"{{n}}\uC77C \uC804",weeksAgo:"{{n}}\uC8FC \uC804",monthsAgo:"{{n}}\uAC1C\uC6D4 \uC804",yearsAgo:"{{n}}\uB144 \uC804"},badge:{shared:"\uB9D0\uADC0\uC790\uB8CC\uC2E4"}},df={manage:{unit:"\uAC74"}},pf={cancelLabel:"\uCDE8\uC18C"},hf={steps:"\uC9C4\uD589 \uB2E8\uACC4 {{current}} / {{total}}"},mf={panelTitle:"\uD6C8\uB828 \uC624\uB2F5",viewItems:"\uBB38\uD56D",viewTypes:"\uC720\uD615",colPending:"\uB0A8\uC740 \uAC83",colTrend:"\uBCC0\uD654",colRuns:"\uD310",unitItem:"\uAC1C",skippedOnly:"\uC61B \uAE30\uB85D {{n}}\uAC74\uC740 \uBB34\uC5C7\uC744 \uD47C \uAC83\uC778\uC9C0 \uC548 \uB0A8\uC544 \uC788\uC5B4 \uC148\uC5D0\uC11C \uBE90\uC2B5\uB2C8\uB2E4.",summaryLabel:"\uC313\uC778 \uAE30\uB85D",summaryValue:"{{items}}\uBB38\uD56D \xB7 \uC544\uC9C1 \uBABB \uC7A1\uC740 \uAC83 {{pending}}\uAC1C",nextLabel:"\uB2E4\uC74C\uC5D0 \uBCFC \uAC83",nextCount:"{{count}}\uAC1C",nextCountCapped:"{{total}}\uAC1C \uC911 {{shown}}\uAC1C",picked:"\u2192 {{what}}",typeClear:"\uB2E4 \uC7A1\uC558\uC5B4\uC694",typePending:"{{total}}\uAC1C \uC911 {{pending}}\uAC1C \uB0A8\uC74C",flat:"\uBCC0\uD654 \uC5C6\uC74C",runs:"{{count}}\uD310",avgDuration:"\uD3C9\uADE0 {{sec}}\uCD08"},ff={resetColumns:"\uCE78 \uB108\uBE44 \uCD08\uAE30\uD654"},Cf={panelTitle:"\uB2E8\uC5B4\uD45C \uCC44\uC810",viewWords:"\uB0B1\uB9D0",viewTables:"\uD45C",colLatest:"\uB9C8\uC9C0\uB9C9",colTrend:"\uBCC0\uD654",unitTime:"\uD68C",summaryLabel:"\uC313\uC778 \uCC44\uC810",summaryValue:"{{times}}\uD68C \xB7 \uB0B1\uB9D0 {{words}}\uAC1C",nextLabel:"\uB2E4\uC74C\uC5D0 \uBCFC \uAC83",nextCount:"{{count}}\uAC1C",allClear:"\uC9C0\uB09C\uBC88\uC5D0 \uBAA8\uB450 \uB9DE\uD614\uC2B5\uB2C8\uB2E4.",times:"{{count}}\uD68C",flat:"\uBCC0\uD654 \uC5C6\uC74C",recentLabel:"\uCD5C\uADFC \uCC44\uC810",nextCountCapped:"{{total}}\uAC1C \uC911 {{shown}}\uAC1C"},gf={ariaLabel:"\uBC30\uB108",dotAriaLabel:"{{count}}\uAC1C \uC911 {{index}}\uBC88\uC9F8 \uBC30\uB108"},bf={selectYearMonth:"\uC5F0\uC6D4 \uC120\uD0DD",chooseDate:"\uB0A0\uC9DC \uC120\uD0DD"},yf={previewRegion:"\uBCF4\uACE0\uC11C \uBBF8\uB9AC\uBCF4\uAE30 \u2014 \uC88C\uC6B0\uB85C \uAD74\uB824 \uBCFC \uC218 \uC788\uC2B5\uB2C8\uB2E4"},vf={description:"\uC124\uBA85",textbox:"\uBCF8\uBB38",training:"\uD6C8\uB828 \uC548\uB0B4",menu:"\uBA54\uB274"},xf={devNone:"\uBC1C\uB2EC \uC790\uB8CC \uC5C6\uC74C",place:{labial:"\uC591\uC21C\uC74C",alveolar:"\uCE58\uC870\uC74C",palatal:"\uACBD\uAD6C\uAC1C\uC74C",velar:"\uC5F0\uAD6C\uAC1C\uC74C",glottal:"\uC131\uBB38\uC74C"}},_f={clearSelection:"\uC120\uD0DD \uD574\uC81C"},wf={showResult:"{{type}} \uACB0\uACFC\uBCF4\uAE30"},kf={selected:"\uC120\uD0DD\uB428",remove:"\uC81C\uAC70",exclude:"\uC81C\uC678",nthSelected:"{{n}}\uBC88\uC9F8 \uC120\uD0DD"},Af={loading:"\uBD88\uB7EC\uC624\uB294 \uC911\u2026"},Nf={state:{active:"\uC18C\uB9AC \uB098\uB294 \uC911",played:"\uB4E4\uC74C",correct:"\uC815\uB2F5",wrong:"\uC624\uB2F5"}},Bf={ariaLabel:"\uC774\uB3D9 \uACBD\uB85C"},Sf={common:m2,calendar:f2,passCard:C2,searchField:g2,rating:b2,colorPicker:y2,dropdown:v2,accordion:x2,header:_2,nav:w2,settings:k2,usage:A2,account:N2,help:B2,training:S2,trainingSettings:D2,customers:T2,payment:j2,coupons:E2,visits:M2,company:L2,trainingType:$2,myWordTraining:R2,myWordTable:P2,keyWords:I2,wordTable:F2,wordSearch:O2,wordPrint:H2,topic:V2,accessLinkManager:z2,login:W2,trainingPlanRun:q2,device:U2,manager:G2,wordPairs:K2,game:Y2,footer:Z2,landing:X2,date:J2,trainingSetPage:Q2,wordTrainingPreview:ef,wordData:tf,textField:nf,segmentedControl:af,tabs:rf,fileUpload:of,avatar:sf,myHomework:lf,trainingStatus:cf,store:uf,homework:df,inquiry:pf,progress:hf,trainingMiss:mf,table:ff,wordScore:Cf,topBanner:gf,datePicker:bf,report:yf,tooltip:vf,phonemeProfile:xf,bulkBar:_f,debug:wf,badge:kf,loader:Af,soundCompass:Nf,breadcrumb:Bf},Df={statusFilter:"Filter by status",pageSizeSelect:"Items per page",selectedCount_one:"{{count}} selected",selectedCount_other:"{{count}} selected",moreFor:"More options for {{name}}",cancel:"Cancel",info:"Info",errorState:{message:"Couldn't load this.",retry:"Try again"},save:"Save",confirm:"Confirm",close:"Close",back:"Back",emptyTrainingName:"Training name is empty.",remove:"Remove",image:"Image",delete:"Delete",reset:"Reset",update:"Update",download:"Download",search:"Search",empty:"No data.",yes:"Yes",no:"No",all:"All",none:"None",days_one:"{{count}} day",days_other:"{{count}} days",loadMore:"Load More",retry:"Try Again",prevPage:"Previous page",nextPage:"Next page",play:"Play",pause:"Pause",playPause:"Play / Pause",replay:"Replay",subscription:"Subscription",done:"Done",failed:"Failed",continue:"Continue",notification:"Notice",emptyList:"No items",menu:"Menu",resetSelection:"Reset Selection",pageSizeLabel:"Show {{n}}",totalCountPrefix:"Total: ",totalCountSuffix:"",expand:"Expand",collapse:"Collapse",popup:"Popup",more:"More",codeBlock:"Code block",totalPrefix:"",copyCode:"Copy code",copied:"Copied",col:{problem:"Question"},phonetics:{place:{labial:"Bilabial",alveolar:"Alveolar",palatal:"Palatal",velar:"Velar",glottal:"Glottal"},vowel:{frontHigh:"Front high vowel",backHighUnrounded:"Back high unrounded vowel",backHighRounded:"Back high rounded vowel",frontMid:"Front mid vowel",backMidUnrounded:"Back mid unrounded vowel",backMidRounded:"Back mid rounded vowel",low:"Low vowel"},glide:{j:"j-glide",w:"w-glide",velar:"\u0270-glide"}},unknownError:"Unknown error",networkError:"The network connection is unstable. Check your connection and try again."},Tf={rangeSelect:"Select period",dow:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],yearMonth:"{{month}}/{{year}}",prevMonth:"Previous month",addOnDate:"Add a visit on {{date}}",nextMonth:"Next month",prevWeek:"Previous week",nextWeek:"Next week",legend:{visited:"Visited",scheduled:"Scheduled",noVisit:"No Show"},periodSelect:"Period unit"},jf={planSuffix:"Plan",labeledPlan:"{{label}} Plan",couponCode:"Pass Code",specialLabel:"Open Special",unitDay:"d",unitYear:"yr",remainingDay:"{{n}}d left",remainingHour:"{{n}}h left",remainingMinute:"{{n}}m left",remainingSecond:"{{n}}s left",menu:{use:"Activate",refund:"Refund",delete:"Delete"}},Ef={clearAriaLabel:"Clear search"},Mf={starLabel:"Select star {{n}}",valueLabel:"{{value}} out of {{max}}",groupLabel:"Rating"},Lf={selected:"selected"},$f={placeholder:"Select"},Rf={collapse:"Collapse",expand:"Expand"},Pf={biArea:"BI area",biSymbol:"BI symbol",logoMalgwi:"Malgwi logo",logoManager:"Malgwi Manager logo",menuOpen:"Open menu",utilMenu:"Utility menu",menuClose:"Close menu"},If={mainMenu:"Main menu",bottomNav:"Bottom navigation",goToManager:"Go to Malgwi Manager",goToMalgwi:"Go to Malgwi",modeLabelManager:"Malgwi Manager",modeLabelMalgwi:"Malgwi",training:"Training",settings:"Settings",notifications:"Notifications",account:"Account",help:"Help",debug:"Debug",coupons:"Coupons",topic:"By Topic",trainingType:"By Training Type",wordPairs:"Word Pairs",wordSearch:"Word Search",wordTable:"Word Table Creator",company:"Company Info",more:"More",moreMenu:"More menu",badgeLabel:"{{label}}, {{count}}"},Ff={language:{training:{label:"Training Language",sub:"Language used for training words and speech"}},notifications:{title:"Notifications"},display:{fontSize:{small:"Small",large:"Large"}},cache:{title:"Cache Management",confirmMessage:"Delete cache ({{size}}). Do you want to continue?",delete:"Delete",deleting:"Deleting",cleared:"Cache cleared successfully.",group:{wordData:{label:"Word Data",sub:"Word list and version info"},pairIndex:{label:"Pair Index",sub:"Onset\xB7vowel\xB7coda minimal pair analysis cache"},imageCache:{label:"Image Cache",sub:"Word image existence check results"},trainingRecord:{label:"Training Record",sub:"Daily training progress and streak"}}},button:{save:"Save Settings"},popup:{clear:{confirm:"Reset"},update:{confirm:"Update"},cache:{title:"Delete {{label}}",message:"Delete {{label}} ({{size}}). Do you want to continue?"}},saved:"\u2713 Saved",account:{title:"Account",delete:{sub:"You can restore your account within 30 days of withdrawal."}}},Of={addButton:"Add Subscription",couponButton:"Enter Coupon",active:{infoTitle:"Subscription Info",refund:"Request Refund",startDate:"Start Date",endDate:"End Date",remaining:"Remaining"},pending:{title:"Pending",empty:"No pending subscriptions."},loading:"Loading\u2026",segment:{personal:"Malgwi",org:"Malgwi Manager"},org:{title:"Current Plan",disc:"Subscription plan in use by your organization.",empty:"No organization plan registered.",fallbackTitle:"Organization Plan",startDate:"Start Date",endDate:"End Date",remaining:"Remaining",duration:"Duration"}},Hf={profile:{planSuffix:"",plan:"Plan"},basicInfo:{name:{placeholder:"John Doe"}},security:{title:"Security",password:{label:"Password",currentRequired:"Enter your current password.",newRequired:"Enter a new password.",mismatch:"The new passwords do not match.",changed:"Your password has been changed."},twoFactor:{label:"Two-Factor Authentication",sub:"Strengthen your account security"}}},Vf={guide:{faq:{title:"FAQ",desc:"View all frequently asked questions"}}},zf={settings:"Settings",start:{title:"Start Word Training",description:"Select a training type below to begin"},difficulty:{tooltip:"The easiest difficulty is 'Random', the hardest is 'Initial Consonant Difference'."},contrast:{label:"Contrast",type:"Contrast Type",count:"Contrast Count",n:"{{n}}"},filter:{random:"Random",trainOnset:"Onset",trainVowel:"Vowel",trainCoda:"Coda",phonemeGroup:"Training phonemes",noLimit:"Any",codaExclude:"Exclude",gradeLabel:"Grade",excludeImageInfo:"Only words with images: keeps only results with a registered word image.",sameStructureInfo:"Only same phoneme structure: keeps only pairs where the correct and wrong answers share the same syllable structure (length, batchim, etc.).",selectSection:"Select",excludeImage:"Only words with images",sameStructure:"Only same phoneme structure"},noQuestions:"No questions available.",countQuestions:"{{n}} questions",countSentences:"{{n}} sentences",comingSoon:"Coming Soon",nextQuestion:"Next",noiseRatioTitle:"Noise Ratio",noiseRatioValue:"{{ratio}}\xD7",noiseTypeTitle:"Noise Type",playVolumeTitle:"Volume",playSpeedTitle:"Speed",meter:{sentence:"Playback",noise:"Noise",toggle:"Show Audio Meter"},viewResult:"View Results",problemNotice:"Problem {{n}}.",trainingSettingsTitle:"Training Settings",sentencePreview:"Sentence Preview",notHeard:"Didn't hear it.",heardWell:"Heard it well.",confirmTitle:"Check the sentence and select whether you heard it.",noSoundWaveform:"Waveform is not shown for sound-comparison questions.",noise:{level:{none:"None",weak:"Weak",medium:"Medium",strong:"Strong",veryStrong:"Very Strong"},type:{none:"None",default:"Default",street:"Street",buzz:"Buzzing",restaurant:"Restaurant"}},listenTitle:"Please listen to the sentence.",listenButton:"Listen",playSound:"Play Sound",playAll:"Play All",selectInOrder:"Select the cards in the order you heard.",stop:"Stop",preview:"Preview",next:"Next",completed:"Completed",selected:"Selected",nthSelected:"Selection {{n}}",fontSizeMin:"Font size is at the minimum.",fontSizeMax:"Font size is at the maximum.",fontSizeDecrease:"Decrease font size",fontSizeIncrease:"Increase font size",toggleBackground:"Toggle background",cardInstructions:"Look at the word card, listen to the sound, and check it.",noCards:"No cards.",audioFetchError:"Failed to load the sound source.",selectConfirm:"Look at the question and select the answer.",orderListDefault:"Arrange the sentences in the order you heard.",result:{eyebrow:"Training Complete",title:"You've finished all the training!",scoreAria:"{{correct}} / {{total}} questions",elapsed:"Time Elapsed",summary:"You heard {{correct}} item(s) correctly.",tableAriaLabel:"Per-question judgement",colJudge:"Judgement",colAnswerSelected:"Answer \xB7 Selected",colAnswer:"Answer",colSelected:"Selected",heardWell:"Heard well",notHeard:"Didn't hear",notJudged:"Not judged",replay:"Replay",done:"Done",viewResult:"View Results",noContent:"(No content)"},up:"Move up",down:"Move down",prev:"Previous",listenLabel:"Listen",sourcePlay:"Play source {{n}}",listen:"Listen",audioStatus:{idle:"Idle",resolving:"Resolving\u2026",checking_exists:"Checking file\u2026",getting_signed_url:"Getting URL\u2026",downloading:"Downloading\u2026",measuring_duration:"Measuring length\u2026",ready:"Ready",error:"Error"}},Wf={totalCount:" training bundles",sort:{customers:"Customers"},copyLink:"Copy Link",removeLink:"Remove Link",linkRemoved:"Link removed.",linkSaveFirst:"Please save the training bundle first.",linkSaveFirstHint:"You can only create a shared link from a saved training bundle.",linkCopySelect:"Copy blocked \u2014 link selected. Press Ctrl/\u2318+C to copy.",nameRequired:"Please enter a training bundle name.",itemRequired:"Please add at least one training item.",randomAdd:"Random Add",menu:{publish:"Post to Store",duplicate:"Duplicate Training Bundle",edit:"Edit Training Bundle",move:"Move Group",rename:"Rename"},itemCount:"Number of Items",renameGroup:"Rename Group"},qf={totalCount:" customers",loadError:"Failed to load list",basicInfo:{editTooltip:"Edit"},member:{placeholder:"Email or phone",link:"Link",linking:"Linking\u2026"},device:{title:"Hearing Devices",addTooltip:"Add New",addButton:"Add device",listTooltip:"View List",listTitle:" Device List",historyEmpty:"No device history registered",wearing:" in use",notRegistered:"Not registered",unit:"",wearingNow:"In use",wear:"Wear",unwear:"Remove",wornSince:"Since {{date}}",release:"Release",historyTitle:"Hearing device history"},schedule:{title:"Upcoming Visits",addTooltip:"Add Schedule",listTooltip:"View All",empty:"No upcoming visits",registerTitle:" Register Schedule",memoPlaceholder:"Enter a memo for this visit."},visitHistory:{title:"Visit History",addTooltip:"Add Visit",empty:"No visit history yet",popupTitle:" Visit History",registerTitle:" Register Visit"},moreItems:"more",viewAll:"View All",visits:{title:"Visits"},trainingRecord:{title:"Customer Training Records"},status:{trainingSubtitle:"Training Status"},detail:{session:{completedFmt:"Done {{done}}/{{total}} \xB7 {{duration}}"},visitSuffix:" visits"},homework:{active:"Active",copied:"Link copied.",copy:"Copy Link",inactive:"Inactive",title:"Homework Progress"},duration:{minSec:"{{m}}m {{s}}s",min:"{{m}}m",sec:"{{s}}s"}},Uf={plan:{recommendedFor:"Recommended for",features:"Key Features",freePrice:"Free",contact:"Contact Us",tierFallback:"Plan",openPromo:"Launch offer"},products:{mgrEnterprise:{tier:{price:"Contact us"}}}},Gf={title:"Coupons",subtitle:"Enter a coupon code or view your coupons",input:{label:"Coupon code",placeholder:"Enter coupon code"},applyButton:"Apply",error:{invalid:"Invalid coupon code.",alreadyUsed:"This coupon has already been used."},success:{applied:'"{{name}}" coupon applied.'},section:{owned:"My Coupons"},status:{used:"Used",available:"Available"}},Kf={unitVisit:"",periodAll:"All",showN:"Show {{n}}"},Yf={subtitle:"Manage company and business information",editButton:"Edit Info",basicInfo:{title:"Basic Info"},contactInfo:{title:"Contact Info"}},Zf={title:"Training by Type",subtitle:"Select the training type you want",listenInNoise:{title:"Sentence Listening in Noise",desc:"Train sentence comprehension in various noise environments."},shortStory:{title:"Short Story Listening",desc:"Listen to short stories and understand the content."},longStory:{title:"Long Story Listening",desc:"Focus on listening to long stories and grasp the content."},orderingSentence:{title:"Sentence Ordering",desc:"Arrange heard sentences in the correct order."},SAME_SOUND_PICK:{label:"Listen & Pick Same Sound",sub:"Pick the word card that matches what you heard."},SAME_OR_DIFF:{label:"Same or Different?",sub:"Decide whether the two sounds are the same or different."},HEAR_AND_PICK_SAME:{label:"Hear & Match Word",sub:"Pick the word card that matches the sound you heard."},HEAR_AND_PICK_INCLUDED:{label:"Find Word Containing Sound",sub:"Pick the word card that contains the syllable you heard."},STARTS_WITH_SAME_SOUND:{label:"Find Word Starting with Same Sound",sub:"Pick a word that starts with the same sound as what you heard."},LISTEN_AND_REMEMBER_ORDER:{label:"Listen & Recall Order",sub:"Select the cards in the order you heard the three words."},MERGE_2_SYLLABLES:{label:"Combine 2 Syllables",sub:"What word do two syllables make?"},MERGE_3_SYLLABLES:{label:"Combine 3 Syllables",sub:"What word do three syllables make?"},MERGE_2_PHONEMES:{label:"Combine 2 Phonemes",sub:"What sound do two phonemes make?"},MERGE_3_PHONEMES:{label:"Combine 3 Phonemes",sub:"What sound do three phonemes make?"},DROP_1_FROM_2SYLL:{label:"Drop 1 Syllable from 2-Syllable",sub:"What sound remains when you remove a syllable from a 2-syllable word?"},DROP_1_FROM_3SYLL:{label:"Drop 1 Syllable from 3-Syllable",sub:"What sound remains when you remove a syllable from a 3-syllable word?"},DROP_PART_FROM_COMPOUND:{label:"Drop Part of Compound Word",sub:"What word remains when you remove part of a compound word?"},DROP_FINAL_CONSONANT_FROM_1SYLL:{label:"Drop Final Consonant",sub:"What sound remains when you remove the final consonant?"},REMOVE_CONSONANT_AND_IDENTIFY_PHONEME:{label:"Drop Consonant",sub:"What sound remains when you remove the consonant?"},CHANGE_1_SYLL_IN_2SYLL:{label:"Change 1 Syllable (2-Syllable)",sub:"Change one syllable in a 2-syllable word to make a new word."},CHANGE_1_SYLL_IN_3SYLL:{label:"Change 1 Syllable (3-Syllable)",sub:"Change one syllable in a 3-syllable word to make a new word."},CHANGE_1_PHONEME_IN_1SYLL:{label:"Change 1 Phoneme (1-Syllable)",sub:"Change one phoneme in a 1-syllable word to make a new sound."},CHANGE_1_PHONEME_IN_2SYLL:{label:"Change 1 Phoneme (2-Syllable)",sub:"Change one phoneme in a 2-syllable word to make a new word."}},Xf={comingSoon:"Word training is coming soon."},Jf={colName:"Table Name",open:"Open",countSuffix:" tables",addCard:"Add Word Table Card",cardsEmpty:"No word table cards created yet.",menu:{publishStore:"Post to Training Store",unpublishStore:"Remove from Training Store"},newBadge:"Newly created",tab:{cards:"Word Table Cards",tables:"Word Tables"},publishedBadge:"Published",sharedBadge:"Shared"},Qf={title:"Key Words",empty:"No key words available."},eC={defaultName:"Word Table",title:"Word Table Builder",subtitle:"Set columns and add words to build a table.",filterTitle:"Table Settings",filter:{composition:"Composition",image:"Image",word:"Word",standardPron:"Standard Pronunciation",colloquialPron:"Colloquial Pronunciation",paperOrientation:"Paper Orientation",landscape:"Landscape",portrait:"Portrait",columns:"Columns",column:"{{count}} col",itemsPerPageWord:"Words per page",itemsPerPagePair:"Pairs per page",itemsPerPageOption:"{{count}}",pageIndicator:"{{current}} / {{total}}",pageNumber:"Page Number",pageNumberLeft:"Left",pageNumberCenter:"Center",pageNumberRight:"Right",border:"Border",cutLine:"Cut Line",show:"Show",hide:"Hide",dotted:"Dotted",corner:"Corner"},addWord:"Add",wordInfo:"Info for {{word}}",emptyItems:"Please add at least one word.",load:"Load",openNewWindow:"Open in New Window",saveButton:"Save",saveAsNewButton:"Save as New",print:"Print",popupBlocked:"Popup was blocked. Please allow popups in your browser settings.",printFileNameSingle:"Word Table",printFileNamePair:"Contrast Pair Table",save:{title:"Save Word Table",nameLabel:"Name",desc:"Enter a name for the word table.",placeholder:"Enter a title for this word table.",descriptionLabel:"Description",descriptionPlaceholder:"Enter a description for this word table.",duplicateName:"This name is already in use.",nameRequired:"Please enter a table name.",autoFillHint:" (Press Tab or Space to autofill)",copyName:"{{name}} (copy)"},loadTable:{title:"Load Saved Word Table",empty:"No saved word tables.",loadButton:"Load",itemCount:"{{count}} words",deleteAriaLabel:"Delete",sort:{newest:"Newest",oldest:"Oldest",name:"Name",count:"Word Count"},view:{grid:"Grid View",list:"List View"}},groupDeleteMessage:"Word tables in this group will be moved to 'No Group'.",groupNamePlaceholder:"Group name",store:{badge:"Training Store"},card:{sub:"Word Table Card",empty:"No word tables in this card."},toast:{renameError:"Failed to rename",saveError:"Failed to save",deleteError:"Failed to delete",duplicateError:"Failed to duplicate",saveSuccess:"Word table saved."},scoring:{o:"{{word}} correct",triangle:"{{word}} partial",x:"{{word}} incorrect",button:"Score",pickTitle:"Who are you scoring?",pickSubtitle:"Choose the customer who trained with \u201C{{name}}\u201D.",pickSearch:"Search by name or phone",pickEmpty:"No customers registered.",pickNoMatch:"No matching customer.",pickAgain:"Choose another",scoringFor:"Scoring {{name}}",none:"Tap a cell to mark \u25CB \xB7 \u25B3 \xB7 \u2715.",tally:"{{marked}} scored \xB7 \u25CB {{o}} \xB7 \u25B3 {{triangle}} \xB7 \u2715 {{x}} \xB7 {{rate}}%",save:"Save score",saved:"Saved {{count}} marks for {{name}}.",reviewTitle:"Create a review table?",reviewMessage:"Builds a new table from the {{count}} cells {{name}} got wrong or partial. Correct ones are left out.",reviewConfirm:"Create review table",reviewDescription:"Cells marked wrong or partial in \u201C{{name}}\u201D \u2014 {{count}} of them.",reviewCreated:"Created \u201C{{name}}\u201D \u2014 {{count}} cells.",discardTitle:"Discard this scoring?",discardMessage:"You marked {{count}} cells but have not saved. Leaving discards them.",discardConfirm:"Discard and leave"},info:{grade:"Grade: {{n}}",syllables:"Syllables: {{n}}",pos:"Part of speech: {{v}}",wordType:"Type: {{v}}"},pos:{noun:"Noun",verb:"Verb",adjective:"Adjective",adverb:"Adverb",numeral:"Numeral",determiner:"Determiner",interjection:"Interjection",particle:"Particle",affix:"Affix",dependentNoun:"Dependent noun",pronoun:"Pronoun",auxVerb:"Auxiliary verb",auxAdjective:"Auxiliary adjective"}},tC={editBanner:{message:"Saving will update the word table you're editing."},filterTitle:"Word Search Settings",filter:{positionAny:"Any",positionHead:"Start",positionMid:"Middle",positionTail:"End",difficulty:"Grade",grade:"Grade {{n}}",syllables:"Syllables",syllable:"{{n}} Syll.",syllable5plus:"5+ Syllables",partOfSpeech:"Part of Speech",pos:{noun:"Noun/Numeral",verb:"Verb/Adjective",modifier:"Adverb/Determiner"},wordType:"Word Type",type:{native:"Native Korean",sino:"Sino-Korean",foreign:"Loanword",mixed:"Hybrid"},exclude:"Exclude",excludeNoImage:"No Image"},searchButton:"Search",resultUnit:"words",remaining:"{{count}} remaining",resultDisc:"Select {{unit}}. Up to {{max}} items. ({{selected}}/{{max}})",resultTitlePrefix:"",resultTitleSuffix:" {{unit}} found.",emptyResult:"No results found.",groupCount:"{{count}}",sort:{aria:"Sort",match:"Best Match",ganada:"A\u2013Z \u2191",ganadaDesc:"A\u2013Z \u2193",syllable:"Syllables \u2191",syllableDesc:"Syllables \u2193",grade:"Grade \u2191",gradeDesc:"Grade \u2193"},pageSize:"Show {{count}}",pageSizeAria:"Page size",popup:{title:"Select a word for cell {{n}}"}},nC={clearAllSelection:"Clear All Selections",divLine:"Contrast Line",removePair:"Remove pair",removeWord:"Remove word"},aC={title:"By Topic",subtitle:"Select a topic to start listening training",noiseTitle:"Sentence Listening in Noise",shortStoryTitle:"Short Story Listening",FOOD:"Food",HLTH:"Health",WETH:"Weather",PRSN:"People",KRCT:"Korean Culture",STRY:"Stories",LOCA:"Locations",SOAR:"Society & Arts",NTSC:"Nature & Science",SPRT:"Sports",sub:{TRKRFD:"Traditional Korean Food",MDKRFD:"Modern Korean Food",WRLDFD:"World Cuisine",MTRFRT:"Ingredients & Fruits",GEFDKL:"Food Facts",HTETHB:"Healthy Eating",DISILL:"Diseases",EXCISE:"Exercise",GEHTKL:"Health Facts",GESSKL:"Seasons",SNWRAN:"Snow & Rain",WTHFCT:"Weather Forecast",GEWTKL:"Weather Facts",JODYPS:"Joseon Dynasty",MDKRPS:"Modern Korea",THKDPS:"Three Kingdoms",WRLART:"World Artists",WRLPSN:"World Figures",KRLANG:"Korean Language",TRPLCT:"Traditional Games",HERITG:"Heritage",EVTFES:"Events & Festivals",GECTKL:"General Knowledge",FRYTAL:"Fairy Tales",AMZING:"Amazing Stories",DAYSTR:"Everyday Stories",KRLDMK:"Korean Landmarks",SELNMK:"Seoul Landmarks",WRDTRB:"World Travel",NAVIGT:"Navigation",KRSOCI:"Korea",ECONEW:"Economy & News",GENART:"Arts",GELFKL:"Life Tips",ANIMAL:"Animals",PLANTS:"Plants",ETHPLT:"Earth",TOLELC:"Tools & Electronics",GESCKL:"Science Facts",INVDSP:"Individual Sports",MARART:"Martial Arts",TEAMSP:"Team Sports",FOOTBL:"Soccer",GESPKL:"Sports Facts"}},rC={maxUses:"Max uses (leave blank for unlimited)",redirect:"Redirect URL (leave blank for app home)",creating:"Creating\u2026",create:"Create link",created:"\u2713 Link created",copied:"Copied!",copy:"Copy",loading:"Loading\u2026",empty:"No links created yet.",uses:"Used {{count}} times",expiresAt:"Expires: {{date}}",createdAt:"Created: {{date}}",confirmDelete:"Delete this link?",deactivate:"Deactivate",delete:"Delete",status:{active:"Active",expired:"Expired",inactive:"Inactive"}},oC={passwordPlaceholder:"Enter password"},sC={direction:{left:"L",right:"R",label:"Side"},wornDate:"Date Worn",deviceType:"Device Type",brand:"Brand",fitType:"Fit Type",productName:"Product Name",validationError:{brandAndProduct:"Please enter brand and product name."},addNew:"Add New Device",selectFromList:"Select from List",removeDevice:"Remove",type:{hearingAid:"Hearing Aid",cochlearImplant:"Cochlear Implant"}},iC={stat:{totalCustomers:"Total Customers",monthlyVisits:"This Month's Visits"},chart:{visitDetail:"Visit Details",trainingDetail:"Training Details",weekly:"Weekly",daily:"Daily",periodMonth:"Month",periodWeek:"Week",weeklyPrefix:"Weekly",monthlyPrefix:"Monthly",visit:"Visits",reservation:"Reservations",trainingDone:"Completed",trainingInProgress:"In Progress",weekRange:"{{start}}\u2013{{end}}",week:"W{{n}}"},subscriptionStatus:{active:"{{pct}}% Active",expired:"{{pct}}% Expired",unused:"{{pct}}% Unused"}},lC={editBanner:{message:"Saving will update the contrast pair table you're editing."},phonemeSelect:{title:"Phoneme Selection",vs:"vs"},caution:"Caution",mode:{include:"Phoneme Include",pick:"Phoneme Contrast",contrast:"Specify Contrast",infoTitle:"Contrast Mode",infoInclude:"Include \u2014 finds words containing all selected phonemes, plus their minimal pair.",infoPick:"Contrast \u2014 matches only if the selected phoneme is the actual point of difference in the pair.",infoContrast:"Specify Contrast \u2014 directly choose phonemes for the base word and the contrasting word to find pairs."},count:"{{n}}",input:{char:"Choose Letters",pron:"Choose Sound",infoTitle:"Input mode",infoChar:"Choose Letters \u2014 finds words by the selected phonemes (spelling), then finds their standard-pronunciation contrast pairs.",infoPron:"Choose Sound \u2014 finds standard-pronunciation contrast pairs directly from the selected phonemes."},phonemeN:"Syllable {{n}}",phonemeSingleLabel:"Syllable",phonemeContrastSingleLabel:"Contrast Syllable",ordinals:["First","Second","Third","Fourth"],phonemeOrdinalLabel:"{{ordinal}} Syllable",phonemeContrastOrdinalLabel:"Contrast {{ordinal}} Syllable",composition:"Answer Word Composition",syllableCount:"Syllables",syllableN:"{{n}} syll.",syllableNPlus:"{{n}}+ syll.",onset:"Onset",vowel:"Vowel",coda:"Coda",filter:{searchOptionsTitle:"Contrast Settings",searchModeLabel:"Contrast Mode",countLabel:"Input Syllable Count",inputModeLabel:"Input mode",phonemeOrder:"Input Syllable Position",phonemeOrderInfo:["Match: the pair must differ at exactly the same position (syllable).","Any: the differing position doesn't matter."],orderAny:"Any",orderMatch:"Match",difficultyInfo:"Reflects the National Institute of Korean Language's basic vocabulary grade.",selectLabel:"Select",onlyHasImage:"Only words with images",onlySameStructure:"Only same phoneme structure"},searchLabel:{error:"Failed to load data",loading:"Loading\u2026"},confirmMessage:"The word table with {{count}} selected {{unit}} will be lost.",resetOptions:"Reset Options",phonemeContrast:"Contrast Syllable {{n}}",infoNotes:["The preview character is an example of the selected phoneme combination. The actual search covers all words containing the phoneme.","Initial consonant '\u3147' cannot be selected. \u3147 at the start of a word is effectively silent.","If only onset and coda are selected, the vowel is automatically displayed as '\u314F'.","Increasing the phoneme count searches for minimal pairs between each phoneme."]},cC={sentenceTyping:{roundCount:"{{rounds}} rounds \xB7 {{timeLimit}}s each"},wordDefense:{me:"Me"},dictation:{title:"Dictation",desc:"Practice writing down exactly what you hear.",comingSoon:"Coming soon: audio playback, input field, answer comparison"},result:{heading:"Level {{number}} Answer",retry:"Try Again"},common:{accuracy:"{{pct}}% accuracy"},soundMatch:{title:"Sound Match",desc:"Quickly match words or sentences that share the same sound.",comingSoon:"Coming soon: play button, timer, score tracking"},orderSequence:{title:"Sentence Ordering",desc:"Arrange scattered sentence fragments in the correct order.",comingSoon:"Coming soon: sentence sets, ordering interface"},speedListen:{title:"Speed Listen",desc:"A challenge game to count the number of words in a sentence within a time limit.",comingSoon:"Coming soon: time limit, scoreboard"},noiseChallenge:{title:"Noise Challenge",desc:"Practice distinguishing sentences amid background noise.",comingSoon:"Coming soon: various noise levels, score tracking"},fastListen:{title:"Fast Listen",desc:"Listen to short sentences at speed and select the key word.",comingSoon:"Coming soon: speed by difficulty, timer"},shadowing:{title:"Shadowing",desc:"Practice pronunciation and intonation by repeating sentences aloud.",comingSoon:"Coming soon: playback, recording, comparison feedback"},phonemeHunt:{title:"Phoneme Hunt",desc:"Find words that contain a specific phoneme (sound).",comingSoon:"Coming soon: phoneme filter, hint feature"}},uC={lead:`IHAB builds trust
830
830
  through sound
831
- and aids recovery.`,site:{title:"Site",malgwi:"Malgwi",soundDirection:"Sound Direction System",vrSoundDirection:"VR Sound Direction System",hearingTest:"Hearing Test Pro"},sns:{title:"SNS",naverBlog:"Naver Blog",kakao:"KAKAO Talk Open Chat"},policy:{title:"Policy",terms:"Terms of Service",privacy:"Privacy Policy"},ceo:"CEO",address:"Address",support:"Support",ceoName:"Ji-hye Han",addressValue:"302, 3F, Haechan Bldg, 32 Siocheong-gil, Chuncheon, Gangwon, Korea"},Jf={trainingPhone:{topic:"Gardening",prev:"Prev",next:"Next",speed:"Speed 3",noiseType:"Crowd noise",settings:"Settings",start:{caption:"Press the play (\u25B6) button below and listen carefully. After listening, check the sentence."},feedback:{caption:"Plant the well-grown seedlings in the garden bed and cover them carefully with plastic film."},done:{heardWell:"Heard clearly",listenAgain:"Listen again"}}},Qf={timeHM:"{{hh}}:{{mm}}",timeH:"{{hh}}:{{mm}}"},eC={options:"Training Options",difficulty:"Difficulty",exclude:"Exclude",chosung:"Initial Consonant",excludeOptions:{none:"None",noImage:"No Image"}},tC={answer:"Answer",distractor:"Distractor"},nC={phaseWordDownload:"Download Word Data",phaseImageCheck:"Check Images",phasePairAnalysis:"Analyze Word Pairs",downloadingCount:"Downloading {{n}} words",checkingPage:"Checking page {{page}} list",imageCount:"{{done}} / {{total}} items"},aC={clearAriaLabel:"Clear input"},rC={ariaLabel:"Select tab"},oC={ariaLabel:"Tabs"},sC={dragPrompt:"Drag and drop files here",browseButton:"Choose Files",removeAriaLabel:"Remove {{name}}"},iC={ariaLabel:"User avatar"},lC={relativeDay:{today:"Today",yesterday:"Yesterday",daysAgo:"{{n}}d ago"},reason:{notLoggedIn:"Login required."},list:{title:"Received Homework"},status:{expired:"Expired",done:"Done {{count}}\xD7 \xB7 {{date}}",notDone:"Not done"}},cC={weekly:{title:"Weekly Training",daily:"Daily Listening",crossword:"Crossword"},homework:{title:"Homework Progress",totalRate:"Overall rate",count:"Total",done:"Done",remaining:"Remaining"},today:{tooltipTotal:"Total",tooltipDone:"Done"},filter:{countSuffix:" sessions"},time:{countLabel:"{{n}} sessions",empty:"No training records"},daily:{title:"Today's Listening Record",empty:"No completed sessions"},crossword:{title:"Crossword Quiz",empty:"No completed levels"},visit:{title:"Linked Visit Records"},detail:"Details",trainingType:{LISTEN_IN_NOISE:"Sentence in Noise",SHORT_STORY:"Short Story",LONG_STORY:"Long Story",ORDERING_SENTENCE:"Sentence Ordering"}},uC={import:"Add to my trainings",publisher:"Publisher",time:{justNow:"just now",minutesAgo:"{{n}}m ago",hoursAgo:"{{n}}h ago",daysAgo:"{{n}}d ago",weeksAgo:"{{n}}w ago",monthsAgo:"{{n}}mo ago",yearsAgo:"{{n}}y ago"},badge:{shared:"Store"},publish:{descPlaceholder:"One-line description for the Training Store (optional)"}},dC={manage:{unit:"item(s)"}},pC={cancelLabel:"Cancel"},hC={subtitle:"Select a topic to start listening practice."},mC={steps:"Step {{current}} of {{total}}"},fC={panelTitle:"Training misses",viewItems:"Items",viewTypes:"Types",colPending:"Left",colTrend:"Change",colRuns:"Runs",unitItem:" items",skippedOnly:"{{n}} older record(s) were excluded \u2014 they do not say what was answered.",summaryLabel:"Recorded",summaryValue:"{{items}} items \xB7 {{pending}} still missed",nextLabel:"Next to work on",nextCount:"{{count}}",nextCountCapped:"{{shown}} of {{total}}",picked:"\u2192 {{what}}",typeClear:"All caught up",typePending:"{{pending}} of {{total}} left",flat:"no change",runs:"{{count}} run(s)",avgDuration:"{{sec}}s avg"},CC={resetColumns:"Reset column widths"},gC={panelTitle:"Word table scores",viewWords:"Words",viewTables:"Tables",colLatest:"When",colTrend:"Change",unitTime:" times",summaryLabel:"Scored",summaryValue:"{{times}} times \xB7 {{words}} words",nextLabel:"Focus next",nextCount:"{{count}}",allClear:"All correct last time.",times:"{{count}}x",flat:"no change",recentLabel:"Recent scorings",nextCountCapped:"{{shown}} of {{total}}"},bC={ariaLabel:"Banner",dotAriaLabel:"Banner {{index}} of {{count}}"},yC={selectYearMonth:"Select year and month",chooseDate:"Choose a date"},vC={previewRegion:"Report preview \u2014 scrollable sideways"},xC={description:"Description",textbox:"Text",training:"Training guide",menu:"Menu"},_C={devNone:"No acquisition data",place:{labial:"Bilabial",alveolar:"Alveolar",palatal:"Palatal",velar:"Velar",glottal:"Glottal"}},wC={clearSelection:"Clear selection"},kC={showResult:"Show {{type}} result"},AC={selected:"Selected",remove:"Remove",exclude:"Excluded",nthSelected:"Selection {{n}}"},NC={loading:"Loading"},BC={state:{active:"playing",played:"heard",correct:"correct",wrong:"wrong"}},DC={ariaLabel:"Breadcrumb"},SC={common:Cf,calendar:gf,passCard:bf,searchField:yf,rating:vf,colorPicker:xf,dropdown:_f,accordion:wf,header:kf,nav:Af,settings:Nf,usage:Bf,account:Df,help:Sf,training:jf,trainingSettings:Tf,customers:Ef,payment:Mf,coupons:Lf,visits:$f,company:Rf,trainingType:Pf,myWordTraining:If,myWordTable:Ff,keyWords:Of,wordTable:Hf,wordSearch:Vf,wordPrint:zf,topic:Wf,accessLinkManager:qf,login:Uf,device:Gf,manager:Kf,wordPairs:Yf,game:Zf,footer:Xf,landing:Jf,date:Qf,trainingSetPage:eC,wordTrainingPreview:tC,wordData:nC,textField:aC,segmentedControl:rC,tabs:oC,fileUpload:sC,avatar:iC,myHomework:lC,trainingStatus:cC,store:uC,homework:dC,inquiry:pC,trainingPlanRun:hC,progress:mC,trainingMiss:fC,table:CC,wordScore:gC,topBanner:bC,datePicker:yC,report:vC,tooltip:xC,phonemeProfile:_C,bulkBar:wC,debug:kC,badge:AC,loader:NC,soundCompass:BC,breadcrumb:DC};const jC=[{code:"ko",label:"\uD55C\uAD6D\uC5B4"},{code:"en",label:"English"}],pi="ko",TC="ihab_display_language";function hi(){try{const e=localStorage.getItem(TC);if(e&&jC.some(n=>n.code===e))return e}catch{}return pi}function mi(e){try{document.documentElement.lang=e}catch{}}It.on("languageChanged",mi),mi(hi()),It.use(me.initReactI18next).init({resources:{ko:{translation:ff},en:{translation:SC}},lng:hi(),fallbackLng:pi,interpolation:{escapeValue:!1},react:{useSuspense:!1}});function fi(e){if(!(e==null||e===""))return Jn(typeof e=="number"?`${e.toLocaleString("ko-KR")}\uC6D0`:e)}function EC(e){const n=`${e.code??""} ${e.name??""}`.toLowerCase();return/manager|매니저/.test(n)?"manager":"speechear"}function MC(e){if(e.durationDays&&e.durationDays>0){const s=e.durationDays;return s%365===0?`${s/365}\uB144`:`${s}\uC77C`}const n=(e.code??"").match(/(\d+)(d|y)\b/i);if(n)return n[2].toLowerCase()==="y"?`${n[1]}\uB144`:`${n[1]}\uC77C`;const a=e.name??"",r=a.match(/(\d+\s*(?:년|개월|주|일))\s*(?:이용권)?\s*$/);if(r)return r[1].replace(/\s+/g,"");const o=a.match(/(\d+)\s*-?\s*(day|year)s?\b/i);return o?o[2].toLowerCase()==="year"?`${o[1]}\uB144`:`${o[1]}\uC77C`:a||"\uC774\uC6A9\uAD8C"}function LC(e){const n=(e??"").match(/(\d+)(d|y)\b/i);if(!n)return null;const a=Number(n[1]);return n[2].toLowerCase()==="y"?a*365:a}function Ci(e){return{type:e.type??EC(e),plan:MC(e),label:e.label,price:fi(e.price),originalPrice:fi(e.originalPrice),discountLabel:e.discountLabel}}var $C='data:image/svg+xml,<svg width="200" height="100" viewBox="0 0 200 100" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_2255_7326)">%0A<path d="M96.4287 48.3536V24.2572H127.047V48.3536H96.4287ZM142.975 69.1536V76.3607H98.2144V60.6393H132.679V58.5107H98.0787V51.3036H142.429V67.025H108.104V69.1536H142.979H142.975ZM106.247 32.5643V39.9786H117.3V32.5643H106.247ZM148.329 40.3893H142.425V49.45H132.539V23.6357H142.425V30.8429H148.329V40.3857V40.3893Z" fill="%23FAFAFA"/>%0A<path d="M185.536 47.8714V57.275C182.743 58.5571 178.371 59.1964 172.425 59.1964H171.807V76.3607H161.921V59.1964H149.704V49.7929H172.564C178.421 49.7929 182.746 49.1536 185.539 47.8714H185.536ZM152.586 34.2786V24.875H181.282V47.05H171.396V34.2821H152.586V34.2786ZM198.307 76.3607H188.421V23.6393H198.307V76.3643V76.3607Z" fill="%23FAFAFA"/>%0A<path opacity="0.1" d="M24.9999 25C19.0821 25 14.2856 29.7964 14.2856 35.7143V64.2857C14.2856 67.3786 15.0749 70.2893 16.4571 72.8286C18.9928 74.2143 21.9035 75 24.9999 75H53.5714C59.4892 75 64.2856 70.2036 64.2856 64.2857V35.7143C64.2856 32.6214 63.4964 29.7107 62.1142 27.1714C59.5785 25.7857 56.6678 25 53.5714 25H24.9999Z" fill="%23FAFAFA"/>%0A<path d="M14.2859 64.2857V35.7143C14.2859 29.7964 19.0823 25 25.0002 25H53.5716C56.6645 25 59.5752 25.7893 62.1145 27.1714C59.0859 21.6214 53.1966 17.8571 46.4288 17.8571H25.0002C15.1395 17.8571 7.14304 25.8535 7.14304 35.7143V44.0643L0.278759 51.6214C-0.131955 52.0714 -0.0855263 52.7785 0.385902 53.1678C2.46447 54.8964 4.75019 56.225 7.14304 57.1714C7.15376 63.9285 10.9145 69.8035 16.4573 72.8285C15.0716 70.2928 14.2859 67.3821 14.2859 64.2857Z" fill="%23FAFAFA"/>%0A<path d="M25.357 40.7143C25.357 39.5308 24.3976 38.5714 23.2141 38.5714C22.0307 38.5714 21.0713 39.5308 21.0713 40.7143V45C21.0713 46.1834 22.0307 47.1428 23.2141 47.1428C24.3976 47.1428 25.357 46.1834 25.357 45V40.7143Z" fill="%23FAFAFA"/>%0A<path d="M36.0715 57.1428C35.0287 57.1428 33.9822 56.875 33.0358 56.3285C32.1822 55.8357 31.8894 54.7428 32.3858 53.8893C32.8787 53.0357 33.9715 52.7428 34.8251 53.2393C35.8037 53.8035 37.043 53.6428 37.8394 52.8464C38.2251 52.4607 38.468 51.9714 38.543 51.4357C38.8644 49.1607 39.868 47 41.4501 45.1857C42.393 44.1071 42.8894 42.7214 42.8537 41.2857C42.7787 38.3535 40.4322 35.9107 37.5072 35.7285C36.518 35.6678 35.5715 35.85 34.693 36.2678C33.8037 36.6893 32.7358 36.3107 32.3144 35.4214C31.8894 34.5321 32.2715 33.4643 33.1608 33.0428C34.5751 32.3714 36.1572 32.0643 37.7322 32.1643C42.4894 32.4607 46.3072 36.4285 46.4251 41.1964C46.4822 43.5285 45.6715 45.7785 44.143 47.5357C43.018 48.825 42.3037 50.3464 42.0822 51.9321C41.8965 53.2428 41.3037 54.4321 40.368 55.3714C39.2001 56.5393 37.6465 57.1464 36.0751 57.1464L36.0715 57.1428Z" fill="%23FAFAFA"/>%0A<path d="M62.1142 27.1714C63.4999 29.7072 64.2856 32.6179 64.2856 35.7143V64.2857C64.2856 70.2036 59.4892 75 53.5713 75H24.9999C21.907 75 18.9963 74.2107 16.457 72.8286C19.4856 78.3786 25.3749 82.1429 32.1427 82.1429H48.2535C49.2177 82.1429 49.9999 82.925 49.9999 83.8893C49.9999 84.9107 50.8749 85.7215 51.8927 85.6322C62.8392 84.675 71.4285 75.4822 71.4285 64.2857V42.8572C71.4285 36.0893 67.6642 30.2 62.1142 27.1714Z" fill="%23FAFAFA"/>%0A</g>%0A<defs>%0A<clipPath id="clip0_2255_7326">%0A<rect width="200" height="100" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A',RC='data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?>%0A<svg id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" viewBox="0 0 200 100">%0A <!-- Generator: Adobe Illustrator 30.4.0, SVG Export Plug-In . SVG Version: 2.1.4 Build 226) -->%0A <defs>%0A <style>%0A .st0 {%0A fill: none;%0A }%0A%0A .st1 {%0A fill: %234dcdc0;%0A }%0A%0A .st2 {%0A fill: %23499cdf;%0A }%0A%0A .st3 {%0A fill: %23fff;%0A }%0A%0A .st4 {%0A clip-path: url(%23clippath);%0A }%0A </style>%0A <clipPath id="clippath">%0A <rect class="st0" width="200" height="100"/>%0A </clipPath>%0A </defs>%0A <g class="st4">%0A <g>%0A <path class="st3" d="M96.43,48.35v-24.1h30.62v24.1h-30.62ZM142.98,69.15v7.21h-44.76v-15.72h34.46v-2.13h-34.6v-7.21h44.35v15.72h-34.33v2.13h34.88,0ZM106.25,32.56v7.41h11.05v-7.41h-11.05ZM148.33,40.39h-5.9v9.06h-9.89v-25.81h9.89v7.21h5.9v9.54h0Z"/>%0A <path class="st3" d="M185.54,47.87v9.4c-2.79,1.28-7.16,1.92-13.11,1.92h-.62v17.16h-9.89v-17.16h-12.22v-9.4h22.86c5.86,0,10.18-.64,12.98-1.92h0ZM152.59,34.28v-9.4h28.7v22.17h-9.89v-12.77h-18.81ZM198.31,76.36h-9.89V23.64h9.89v52.73h0Z"/>%0A <path class="st1" d="M46.43,17.86h-21.43c-9.86,0-17.86,7.99-17.86,17.86v21.43c0,9.86,7.99,17.86,17.86,17.86h21.43c9.86,0,17.86-7.99,17.86-17.86v-21.43c0-9.86-7.99-17.86-17.86-17.86Z"/>%0A <path class="st1" d="M34.86,50.74c-9.03,9.94-24.25,10.93-34.48,2.42-.47-.39-.52-1.1-.11-1.55l16.07-17.69,18.51,16.81Z"/>%0A <path class="st1" d="M53.57,25h-21.43c-9.86,0-17.86,8-17.86,17.86v21.43c0,9.86,8,17.86,17.86,17.86h16.11c.96,0,1.75.78,1.75,1.75,0,1.02.88,1.83,1.89,1.74,10.95-.96,19.54-10.15,19.54-21.35v-21.43c0-9.86-8-17.86-17.86-17.86Z"/>%0A <path class="st2" d="M25,25c-5.92,0-10.71,4.8-10.71,10.71v28.57c0,3.09.79,6,2.17,8.54,2.54,1.39,5.45,2.17,8.54,2.17h28.57c5.92,0,10.71-4.8,10.71-10.71v-28.57c0-3.09-.79-6-2.17-8.54-2.54-1.39-5.45-2.17-8.54-2.17h-28.57Z"/>%0A <path class="st3" d="M25.36,40.71c0-1.18-.96-2.14-2.14-2.14s-2.14.96-2.14,2.14v4.29c0,1.18.96,2.14,2.14,2.14s2.14-.96,2.14-2.14v-4.29Z"/>%0A <path class="st3" d="M36.07,57.14c-1.04,0-2.09-.27-3.04-.81-.85-.49-1.15-1.59-.65-2.44.49-.85,1.59-1.15,2.44-.65.98.56,2.22.4,3.01-.39.39-.39.63-.88.7-1.41.32-2.27,1.33-4.44,2.91-6.25.94-1.08,1.44-2.46,1.4-3.9-.07-2.93-2.42-5.38-5.35-5.56-.99-.06-1.94.12-2.81.54-.89.43-1.96.04-2.38-.85-.42-.89-.04-1.96.85-2.38,1.41-.67,2.99-.97,4.57-.88,4.76.3,8.58,4.26,8.69,9.03.06,2.33-.75,4.58-2.28,6.34-1.12,1.29-1.84,2.81-2.06,4.4-.19,1.31-.78,2.5-1.71,3.44-1.17,1.17-2.72,1.78-4.29,1.78h0Z"/>%0A </g>%0A </g>%0A</svg>',PC='data:image/svg+xml,<svg width="200" height="100" viewBox="0 0 200 100" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_2255_7325)">%0A<path d="M96.4287 48.3536V24.2572H127.047V48.3536H96.4287ZM142.975 69.1536V76.3607H98.2144V60.6393H132.679V58.5107H98.0787V51.3036H142.429V67.025H108.104V69.1536H142.979H142.975ZM106.247 32.5643V39.9786H117.3V32.5643H106.247ZM148.329 40.3893H142.425V49.45H132.539V23.6357H142.425V30.8429H148.329V40.3857V40.3893Z" fill="%23111111"/>%0A<path d="M185.536 47.8714V57.275C182.743 58.5571 178.371 59.1964 172.425 59.1964H171.807V76.3607H161.921V59.1964H149.704V49.7929H172.564C178.421 49.7929 182.746 49.1536 185.539 47.8714H185.536ZM152.586 34.2786V24.875H181.282V47.05H171.396V34.2821H152.586V34.2786ZM198.307 76.3607H188.421V23.6393H198.307V76.3643V76.3607Z" fill="%23111111"/>%0A<path opacity="0.1" d="M24.9999 25C19.0821 25 14.2856 29.7964 14.2856 35.7143V64.2857C14.2856 67.3786 15.0749 70.2893 16.4571 72.8286C18.9928 74.2143 21.9035 75 24.9999 75H53.5714C59.4892 75 64.2856 70.2036 64.2856 64.2857V35.7143C64.2856 32.6214 63.4964 29.7107 62.1142 27.1714C59.5785 25.7857 56.6678 25 53.5714 25H24.9999Z" fill="%23111111"/>%0A<path d="M14.2859 64.2857V35.7143C14.2859 29.7964 19.0823 25 25.0002 25H53.5716C56.6645 25 59.5752 25.7893 62.1145 27.1714C59.0859 21.6214 53.1966 17.8571 46.4288 17.8571H25.0002C15.1395 17.8571 7.14304 25.8535 7.14304 35.7143V44.0643L0.278759 51.6214C-0.131955 52.0714 -0.0855263 52.7785 0.385902 53.1678C2.46447 54.8964 4.75019 56.225 7.14304 57.1714C7.15376 63.9285 10.9145 69.8035 16.4573 72.8285C15.0716 70.2928 14.2859 67.3821 14.2859 64.2857Z" fill="%23111111"/>%0A<path d="M25.357 40.7143C25.357 39.5308 24.3976 38.5714 23.2141 38.5714C22.0307 38.5714 21.0713 39.5308 21.0713 40.7143V45C21.0713 46.1834 22.0307 47.1428 23.2141 47.1428C24.3976 47.1428 25.357 46.1834 25.357 45V40.7143Z" fill="%23111111"/>%0A<path d="M36.0715 57.1428C35.0287 57.1428 33.9822 56.875 33.0358 56.3285C32.1822 55.8357 31.8894 54.7428 32.3858 53.8893C32.8787 53.0357 33.9715 52.7428 34.8251 53.2393C35.8037 53.8035 37.043 53.6428 37.8394 52.8464C38.2251 52.4607 38.468 51.9714 38.543 51.4357C38.8644 49.1607 39.868 47 41.4501 45.1857C42.393 44.1071 42.8894 42.7214 42.8537 41.2857C42.7787 38.3535 40.4322 35.9107 37.5072 35.7285C36.518 35.6678 35.5715 35.85 34.693 36.2678C33.8037 36.6893 32.7358 36.3107 32.3144 35.4214C31.8894 34.5321 32.2715 33.4643 33.1608 33.0428C34.5751 32.3714 36.1572 32.0643 37.7322 32.1643C42.4894 32.4607 46.3072 36.4285 46.4251 41.1964C46.4822 43.5285 45.6715 45.7785 44.143 47.5357C43.018 48.825 42.3037 50.3464 42.0822 51.9321C41.8965 53.2428 41.3037 54.4321 40.368 55.3714C39.2001 56.5393 37.6465 57.1464 36.0751 57.1464L36.0715 57.1428Z" fill="%23111111"/>%0A<path d="M62.1142 27.1714C63.4999 29.7072 64.2856 32.6179 64.2856 35.7143V64.2857C64.2856 70.2036 59.4892 75 53.5713 75H24.9999C21.907 75 18.9963 74.2107 16.457 72.8286C19.4856 78.3786 25.3749 82.1429 32.1427 82.1429H48.2535C49.2177 82.1429 49.9999 82.925 49.9999 83.8893C49.9999 84.9107 50.8749 85.7215 51.8927 85.6322C62.8392 84.675 71.4285 75.4822 71.4285 64.2857V42.8572C71.4285 36.0893 67.6642 30.2 62.1142 27.1714Z" fill="%23111111"/>%0A</g>%0A<defs>%0A<clipPath id="clip0_2255_7325">%0A<rect width="200" height="100" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A',IC='data:image/svg+xml,<svg width="371" height="100" viewBox="0 0 371 100" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_2255_7395)">%0A<path d="M237.151 26.0393V72.7215H216.65V26.0393H237.151ZM234.408 70.0465V28.7179H219.254V70.0465H234.408ZM261.495 76.3608H258.819V48.9679H247.575V75.4679H244.899V23.9822H247.575V46.2929H258.819V23.6393H261.495V76.3643V76.3608Z" fill="%23FAFAFA"/>%0A<path d="M299.722 69.2572C302.076 68.7751 304.031 68.1465 305.583 67.3679V70.1143C304.074 70.9393 302.144 71.5786 299.79 72.0358C297.435 72.4929 295.045 72.7215 292.623 72.7215H272.257V25.6965H275.001V69.9751H292.623C294.999 69.9751 297.364 69.7358 299.722 69.2536V69.2572ZM311.69 76.4322V23.6393H314.434V76.3643L311.69 76.4322Z" fill="%23FAFAFA"/>%0A<path d="M340.557 47.9393L358.179 70.4572L356.053 72.1036L339.872 51.1643C338.409 57.3429 336.33 62.2643 333.633 65.925C330.936 69.5857 327.736 71.8536 324.033 72.7215V69.975C327.279 69.15 330.044 66.8643 332.331 63.1107C334.617 59.3572 336.355 54.5179 337.543 48.5893C338.731 42.6643 339.369 36.0393 339.462 28.7143H324.993V26.0357H356.603V28.7143H342.201C342.155 35.9 341.606 42.3072 340.557 47.9357V47.9393ZM369.22 76.3607H366.477V47.4572H352.418V44.7786H366.477V23.6357H369.22V76.3607Z" fill="%23FAFAFA"/>%0A<path d="M92.8784 48.3536V24.2572H123.461V48.3536H92.8784ZM139.371 69.1536V76.3607H94.6621V60.6393H129.087V58.5107H94.5265V51.3036H138.825V67.025H104.54V69.1536H139.375H139.371ZM102.685 32.5643V39.9786H113.726V32.5643H102.685ZM144.719 40.3893H138.822V49.45H128.947V23.6357H138.822V30.8429H144.719V40.3857V40.3893Z" fill="%23FAFAFA"/>%0A<path d="M181.886 47.8715V57.2751C179.097 58.5572 174.73 59.1965 168.791 59.1965H168.174V76.3608H158.299V59.1965H146.096V49.7929H168.93C174.78 49.7929 179.1 49.1536 181.89 47.8715H181.886ZM148.971 34.2786V24.8751H177.634V47.0501H167.76V34.2822H148.971V34.2786ZM194.64 76.3608H184.765V23.6393H194.64V76.3643V76.3608Z" fill="%23FAFAFA"/>%0A<g opacity="0.1">%0A<path d="M26.7512 25C20.8402 25 16.0493 29.7964 16.0493 35.7143V64.2857C16.0493 67.3786 16.8377 70.2893 18.2182 72.8286C20.751 74.2143 23.6584 75 26.7512 75H55.2897C61.2007 75 65.9916 70.2036 65.9916 64.2857V35.7143C65.9916 32.6214 65.2032 29.7107 63.8227 27.1714C61.2899 25.7857 58.3826 25 55.2897 25H26.7512Z" fill="%23FAFAFA"/>%0A</g>%0A<path d="M48.155 17.8571H26.7511C16.9018 17.8571 8.91459 25.8536 8.91459 35.7143V44.0643L2.05822 51.6179C1.64798 52.0679 1.69436 52.775 2.16524 53.1643C4.24141 54.8929 6.52449 56.2214 8.91459 57.1679C8.92529 63.925 12.6817 69.8 18.2181 72.825C16.834 70.2893 16.0492 67.3786 16.0492 64.2821V35.7107C16.0492 29.7929 20.8401 24.9964 26.7511 24.9964H55.2896C58.3789 24.9964 61.2862 25.7857 63.8226 27.1679C60.7975 21.6179 54.915 17.8536 48.155 17.8536V17.8571Z" fill="%23FAFAFA"/>%0A<path d="M63.8227 27.1714C65.2068 29.7072 65.9916 32.6179 65.9916 35.7143V64.2857C65.9916 70.2036 61.2008 75 55.2897 75H26.7513C23.662 75 20.7546 74.2107 18.2183 72.8286C21.2433 78.3786 27.1258 82.1429 33.8859 82.1429H49.978C50.9412 82.1429 51.7224 82.925 51.7224 83.8893C51.7224 84.9107 52.5964 85.7215 53.6131 85.6322C64.5469 84.675 73.1263 75.4822 73.1263 64.2857V42.8572C73.1263 36.0893 69.3663 30.2 63.8227 27.1714Z" fill="%23FAFAFA"/>%0A<path d="M27.1079 40.7143C27.1079 39.5308 26.1496 38.5714 24.9675 38.5714C23.7854 38.5714 22.8271 39.5308 22.8271 40.7143V45C22.8271 46.1834 23.7854 47.1428 24.9675 47.1428C26.1496 47.1428 27.1079 46.1834 27.1079 45V40.7143Z" fill="%23FAFAFA"/>%0A<path d="M37.8097 57.1429C36.768 57.1429 35.7228 56.875 34.7775 56.3286C33.9249 55.8357 33.6323 54.7429 34.1282 53.8893C34.6205 53.0357 35.7121 52.7429 36.5647 53.2393C37.5421 53.8036 38.78 53.6429 39.5755 52.8464C39.9608 52.4607 40.2033 51.9714 40.2782 51.4357C40.5993 49.1607 41.6017 47 43.182 45.1857C44.1238 44.1071 44.6197 42.7214 44.584 41.2857C44.5091 38.3536 42.1653 35.9107 39.2437 35.7286C38.2556 35.6679 37.3102 35.8464 36.4327 36.2679C35.5444 36.6929 34.4778 36.3107 34.0569 35.4214C33.6323 34.5321 34.014 33.4643 34.9023 33.0429C36.315 32.3714 37.8917 32.0679 39.4685 32.1643C44.2201 32.4607 48.0336 36.4286 48.1513 41.1964C48.2084 43.5286 47.3986 45.7786 45.8718 47.5357C44.7481 48.825 44.0346 50.3464 43.8134 51.9357C43.6279 53.2464 43.0358 54.4357 42.1011 55.375C40.9346 56.5429 39.3828 57.15 37.8132 57.15L37.8097 57.1429Z" fill="%23FAFAFA"/>%0A</g>%0A<defs>%0A<clipPath id="clip0_2255_7395">%0A<rect width="371" height="100" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A',FC='data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?>%0A<svg id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" viewBox="0 0 371 100">%0A <!-- Generator: Adobe Illustrator 30.4.0, SVG Export Plug-In . SVG Version: 2.1.4 Build 226) -->%0A <defs>%0A <style>%0A .st0 {%0A fill: none;%0A }%0A%0A .st1 {%0A fill: %234dcdc0;%0A }%0A%0A .st2 {%0A fill: %23499cdf;%0A }%0A%0A .st3 {%0A fill: %23fff;%0A }%0A%0A .st4 {%0A clip-path: url(%23clippath);%0A }%0A </style>%0A <clipPath id="clippath">%0A <rect class="st0" width="371" height="100"/>%0A </clipPath>%0A </defs>%0A <g class="st4">%0A <g>%0A <path class="st3" d="M237.15,26.04v46.68h-20.5V26.04h20.5ZM234.41,70.05V28.72h-15.15v41.33h15.15ZM261.49,76.36h-2.68v-27.39h-11.24v26.5h-2.68V23.98h2.68v22.31h11.24v-22.65h2.68v52.73h0Z"/>%0A <path class="st3" d="M299.72,69.26c2.35-.48,4.31-1.11,5.86-1.89v2.75c-1.51.82-3.44,1.46-5.79,1.92-2.35.46-4.74.69-7.17.69h-20.37V25.7h2.74v44.28h17.62c2.38,0,4.74-.24,7.1-.72h0ZM311.69,76.43V23.64h2.74v52.73l-2.74.07Z"/>%0A <path class="st3" d="M340.56,47.94l17.62,22.52-2.13,1.65-16.18-20.94c-1.46,6.18-3.54,11.1-6.24,14.76-2.7,3.66-5.9,5.93-9.6,6.8v-2.75c3.25-.82,6.01-3.11,8.3-6.86,2.29-3.75,4.02-8.59,5.21-14.52,1.19-5.92,1.83-12.55,1.92-19.87h-14.47v-2.68h31.61v2.68h-14.4c-.05,7.19-.6,13.59-1.64,19.22h0ZM369.22,76.36h-2.74v-28.9h-14.06v-2.68h14.06v-21.14h2.74v52.73Z"/>%0A <path class="st3" d="M92.88,48.35v-24.1h30.58v24.1h-30.58ZM139.37,69.15v7.21h-44.71v-15.72h34.42v-2.13h-34.56v-7.21h44.3v15.72h-34.28v2.13h34.83,0ZM102.68,32.56v7.41h11.04v-7.41h-11.04ZM144.72,40.39h-5.9v9.06h-9.88v-25.81h9.88v7.21h5.9v9.54h0Z"/>%0A <path class="st3" d="M181.89,47.87v9.4c-2.79,1.28-7.16,1.92-13.1,1.92h-.62v17.16h-9.88v-17.16h-12.2v-9.4h22.83c5.85,0,10.17-.64,12.96-1.92h0ZM148.97,34.28v-9.4h28.66v22.17h-9.87v-12.77h-18.79ZM194.64,76.36h-9.88V23.64h9.88v52.73h0Z"/>%0A <path class="st1" d="M48.15,17.86h-21.4c-9.85,0-17.84,7.99-17.84,17.86v21.43c0,9.86,7.99,17.86,17.84,17.86h21.4c9.85,0,17.84-7.99,17.84-17.86v-21.43c0-9.86-7.99-17.86-17.84-17.86Z"/>%0A <path class="st1" d="M36.6,50.74c-9.02,9.94-24.22,10.93-34.44,2.42-.47-.39-.52-1.1-.11-1.55l16.06-17.69,18.49,16.81Z"/>%0A <path class="st1" d="M55.29,25h-21.4c-9.85,0-17.84,8-17.84,17.86v21.43c0,9.86,7.99,17.86,17.84,17.86h16.09c.96,0,1.74.78,1.74,1.75,0,1.02.87,1.83,1.89,1.74,10.93-.96,19.51-10.15,19.51-21.35v-21.43c0-9.86-7.99-17.86-17.84-17.86Z"/>%0A <path class="st2" d="M26.75,25c-5.91,0-10.7,4.8-10.7,10.71v28.57c0,3.09.79,6,2.17,8.54,2.53,1.39,5.44,2.17,8.53,2.17h28.54c5.91,0,10.7-4.8,10.7-10.71v-28.57c0-3.09-.79-6-2.17-8.54-2.53-1.39-5.44-2.17-8.53-2.17h-28.54Z"/>%0A <path class="st3" d="M27.11,40.71c0-1.18-.96-2.14-2.14-2.14s-2.14.96-2.14,2.14v4.29c0,1.18.96,2.14,2.14,2.14s2.14-.96,2.14-2.14v-4.29Z"/>%0A <path class="st3" d="M37.81,57.14c-1.04,0-2.09-.27-3.03-.81-.85-.49-1.15-1.59-.65-2.44.49-.85,1.58-1.15,2.44-.65.98.56,2.22.4,3.01-.39.39-.39.63-.88.7-1.41.32-2.27,1.32-4.44,2.9-6.25.94-1.08,1.44-2.46,1.4-3.9-.07-2.93-2.42-5.38-5.34-5.56-.99-.06-1.93.12-2.81.54-.89.43-1.95.04-2.38-.85-.42-.89-.04-1.96.85-2.38,1.41-.67,2.99-.97,4.57-.88,4.75.3,8.57,4.26,8.68,9.03.06,2.33-.75,4.58-2.28,6.34-1.12,1.29-1.84,2.81-2.06,4.4-.19,1.31-.78,2.5-1.71,3.44-1.17,1.17-2.72,1.78-4.29,1.78h0Z"/>%0A </g>%0A </g>%0A</svg>',OC='data:image/svg+xml,<svg width="371" height="100" viewBox="0 0 371 100" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_2255_7394)">%0A<path d="M237.151 26.0393V72.7215H216.65V26.0393H237.151ZM234.408 70.0465V28.7179H219.254V70.0465H234.408ZM261.495 76.3608H258.819V48.9679H247.575V75.4679H244.899V23.9822H247.575V46.2929H258.819V23.6393H261.495V76.3643V76.3608Z" fill="%23111111"/>%0A<path d="M299.722 69.2572C302.076 68.7751 304.031 68.1465 305.583 67.3679V70.1143C304.074 70.9393 302.144 71.5786 299.79 72.0358C297.435 72.4929 295.045 72.7215 292.623 72.7215H272.257V25.6965H275.001V69.9751H292.623C294.999 69.9751 297.364 69.7358 299.722 69.2536V69.2572ZM311.69 76.4322V23.6393H314.434V76.3643L311.69 76.4322Z" fill="%23111111"/>%0A<path d="M340.557 47.9393L358.179 70.4572L356.053 72.1036L339.872 51.1643C338.409 57.3429 336.33 62.2643 333.633 65.925C330.936 69.5857 327.736 71.8536 324.033 72.7215V69.975C327.279 69.15 330.044 66.8643 332.331 63.1107C334.617 59.3572 336.355 54.5179 337.543 48.5893C338.731 42.6643 339.369 36.0393 339.462 28.7143H324.993V26.0357H356.603V28.7143H342.201C342.155 35.9 341.606 42.3072 340.557 47.9357V47.9393ZM369.22 76.3607H366.477V47.4572H352.418V44.7786H366.477V23.6357H369.22V76.3607Z" fill="%23111111"/>%0A<path d="M92.8784 48.3536V24.2572H123.461V48.3536H92.8784ZM139.371 69.1536V76.3607H94.6621V60.6393H129.087V58.5107H94.5265V51.3036H138.825V67.025H104.54V69.1536H139.375H139.371ZM102.685 32.5643V39.9786H113.726V32.5643H102.685ZM144.719 40.3893H138.822V49.45H128.947V23.6357H138.822V30.8429H144.719V40.3857V40.3893Z" fill="%23111111"/>%0A<path d="M181.886 47.8715V57.2751C179.097 58.5572 174.73 59.1965 168.791 59.1965H168.174V76.3608H158.299V59.1965H146.096V49.7929H168.93C174.78 49.7929 179.1 49.1536 181.89 47.8715H181.886ZM148.971 34.2786V24.8751H177.634V47.0501H167.76V34.2822H148.971V34.2786ZM194.64 76.3608H184.765V23.6393H194.64V76.3643V76.3608Z" fill="%23111111"/>%0A<g opacity="0.1">%0A<path d="M26.7512 25C20.8402 25 16.0493 29.7964 16.0493 35.7143V64.2857C16.0493 67.3786 16.8377 70.2893 18.2182 72.8286C20.751 74.2143 23.6584 75 26.7512 75H55.2897C61.2007 75 65.9916 70.2036 65.9916 64.2857V35.7143C65.9916 32.6214 65.2032 29.7107 63.8227 27.1714C61.2899 25.7857 58.3826 25 55.2897 25H26.7512Z" fill="%23111111"/>%0A</g>%0A<path d="M48.155 17.8571H26.7511C16.9018 17.8571 8.91459 25.8536 8.91459 35.7143V44.0643L2.05822 51.6179C1.64798 52.0679 1.69436 52.775 2.16524 53.1643C4.24141 54.8929 6.52449 56.2214 8.91459 57.1679C8.92529 63.925 12.6817 69.8 18.2181 72.825C16.834 70.2893 16.0492 67.3786 16.0492 64.2821V35.7107C16.0492 29.7929 20.8401 24.9964 26.7511 24.9964H55.2896C58.3789 24.9964 61.2862 25.7857 63.8226 27.1679C60.7975 21.6179 54.915 17.8536 48.155 17.8536V17.8571Z" fill="%23111111"/>%0A<path d="M63.8227 27.1714C65.2068 29.7072 65.9916 32.6179 65.9916 35.7143V64.2857C65.9916 70.2036 61.2008 75 55.2897 75H26.7513C23.662 75 20.7546 74.2107 18.2183 72.8286C21.2433 78.3786 27.1258 82.1429 33.8859 82.1429H49.978C50.9412 82.1429 51.7224 82.925 51.7224 83.8893C51.7224 84.9107 52.5964 85.7215 53.6131 85.6322C64.5469 84.675 73.1263 75.4822 73.1263 64.2857V42.8572C73.1263 36.0893 69.3663 30.2 63.8227 27.1714Z" fill="%23111111"/>%0A<path d="M27.1079 40.7143C27.1079 39.5308 26.1496 38.5714 24.9675 38.5714C23.7854 38.5714 22.8271 39.5308 22.8271 40.7143V45C22.8271 46.1834 23.7854 47.1428 24.9675 47.1428C26.1496 47.1428 27.1079 46.1834 27.1079 45V40.7143Z" fill="%23111111"/>%0A<path d="M37.8097 57.1429C36.768 57.1429 35.7228 56.875 34.7775 56.3286C33.9249 55.8357 33.6323 54.7429 34.1282 53.8893C34.6205 53.0357 35.7121 52.7429 36.5647 53.2393C37.5421 53.8036 38.78 53.6429 39.5755 52.8464C39.9608 52.4607 40.2033 51.9714 40.2782 51.4357C40.5993 49.1607 41.6017 47 43.182 45.1857C44.1238 44.1071 44.6197 42.7214 44.584 41.2857C44.5091 38.3536 42.1653 35.9107 39.2437 35.7286C38.2556 35.6679 37.3102 35.8464 36.4327 36.2679C35.5444 36.6929 34.4778 36.3107 34.0569 35.4214C33.6323 34.5321 34.014 33.4643 34.9023 33.0429C36.315 32.3714 37.8917 32.0679 39.4685 32.1643C44.2201 32.4607 48.0336 36.4286 48.1513 41.1964C48.2084 43.5286 47.3986 45.7786 45.8718 47.5357C44.7481 48.825 44.0346 50.3464 43.8134 51.9357C43.6279 53.2464 43.0358 54.4357 42.1011 55.375C40.9346 56.5429 39.3828 57.15 37.8132 57.15L37.8097 57.1429Z" fill="%23111111"/>%0A</g>%0A<defs>%0A<clipPath id="clip0_2255_7394">%0A<rect width="371" height="100" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A',gi='data:image/svg+xml,<svg width="100" height="100" viewBox="0 0 100 100" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_2255_7305)">%0A<path d="M75.2535 24.7464C68.7892 18.2821 59.8606 14.2857 49.9999 14.2857C40.1392 14.2857 37.5214 24.5964 31.0606 31.0607C24.5964 37.525 14.2856 40.1893 14.2856 50C14.2856 59.8107 18.2821 68.7893 24.7464 75.2536C31.2106 81.7179 40.1392 85.7143 49.9999 85.7143C59.8606 85.7143 68.7892 81.7179 75.2535 75.2536C81.7178 68.7893 85.7142 59.8607 85.7142 50C85.7142 40.1393 81.7178 31.2107 75.2535 24.7464ZM62.6285 62.6286C59.3964 65.8607 54.9321 67.8571 49.9999 67.8571C45.0678 67.8571 40.6035 65.8571 37.3714 62.6286C34.1392 59.3964 32.1428 54.9321 32.1428 50C32.1428 45.0678 34.1428 40.6036 37.3714 37.3714C40.6035 34.1393 45.0678 32.1428 49.9999 32.1428C54.9321 32.1428 59.3964 34.1428 62.6285 37.3714C65.8606 40.6036 67.8571 45.0678 67.8571 50C67.8571 54.9321 65.8571 59.3964 62.6285 62.6286Z" fill="%23FAFAFA"/>%0A</g>%0A<defs>%0A<clipPath id="clip0_2255_7305">%0A<rect width="100" height="100" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A';const Bn={text:"--pass-card-text",sub:"--pass-card-sub",copyright:"--pass-card-copyright"},hr=new WeakMap;function HC(e){if(e)return hr.get(e)}function en(e,n){e&&(e.style.setProperty(Bn.text,n.text),e.style.setProperty(Bn.sub,n.sub),n.copyrightColor&&e.style.setProperty(Bn.copyright,n.copyrightColor),hr.set(e,n))}function tn(e){e&&(e.style.removeProperty(Bn.text),e.style.removeProperty(Bn.sub),e.style.removeProperty(Bn.copyright),hr.delete(e))}const bi={text:"var(--color-pureBlack)",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"#1a1a1a"};function yi(e={}){const n=at(bi,en,tn);return t.jsxs("div",{ref:n,className:"pass-card-bg pass-card-bg-two-circle","aria-hidden":"true",children:[t.jsx("div",{className:"pass-card-bg-two-circle__c1"}),t.jsx("div",{className:"pass-card-bg-two-circle__c3"}),t.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-two-circle__symbol",style:{"--symbol-url":`url("${gi}")`}})]})}const vi="M75.2535 24.7464C68.7892 18.2821 59.8606 14.2857 49.9999 14.2857C40.1392 14.2857 37.5214 24.5964 31.0606 31.0607C24.5964 37.525 14.2856 40.1893 14.2856 50C14.2856 59.8107 18.2821 68.7893 24.7464 75.2536C31.2106 81.7178 40.1392 85.7143 49.9999 85.7143C59.8606 85.7143 68.7892 81.7178 75.2535 75.2536C81.7178 68.7893 85.7142 59.8607 85.7142 50C85.7142 40.1393 81.7178 31.2107 75.2535 24.7464Z";var ta='data:image/svg+xml,<svg width="100" height="100" viewBox="0 0 100 100" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_2175_65181)">%0A<path d="M75.2535 24.7464C68.7892 18.2821 59.8606 14.2857 49.9999 14.2857C40.1392 14.2857 37.5214 24.5964 31.0606 31.0607C24.5964 37.525 14.2856 40.1893 14.2856 50C14.2856 59.8107 18.2821 68.7893 24.7464 75.2536C31.2106 81.7178 40.1392 85.7143 49.9999 85.7143C59.8606 85.7143 68.7892 81.7178 75.2535 75.2536C81.7178 68.7893 85.7142 59.8607 85.7142 50C85.7142 40.1393 81.7178 31.2107 75.2535 24.7464ZM62.6285 62.6286C59.3964 65.8607 54.9321 67.8571 49.9999 67.8571C45.0678 67.8571 40.6035 65.8571 37.3714 62.6286C34.1392 59.3964 32.1428 54.9321 32.1428 50C32.1428 45.0678 34.1428 40.6036 37.3714 37.3714C40.6035 34.1393 45.0678 32.1428 49.9999 32.1428C54.9321 32.1428 59.3964 34.1428 62.6285 37.3714C65.8606 40.6036 67.8571 45.0678 67.8571 50C67.8571 54.9321 65.8571 59.3964 62.6285 62.6286Z" fill="url(%23paint0_linear_2175_65181)"/>%0A</g>%0A<defs>%0A<linearGradient id="paint0_linear_2175_65181" x1="29.6392" y1="29.6393" x2="75.2535" y2="75.2536" gradientUnits="userSpaceOnUse">%0A<stop offset="0.2" stop-color="%23499CDF"/>%0A<stop offset="0.8" stop-color="%234DCDC0"/>%0A</linearGradient>%0A<clipPath id="clip0_2175_65181">%0A<rect width="100" height="100" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A';const VC={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"var(--color-main)"},zC=[{scale:1,opacity:.55},{scale:2,opacity:.4},{scale:3.1,opacity:.28},{scale:4.5,opacity:.18},{scale:6,opacity:.1}];function xi(e={}){const n=at(VC,en,tn),a="var(--color-main)",r=270,o=170;return t.jsxs("div",{ref:n,className:"pass-card-bg pass-card-bg-sound-move","aria-hidden":"true",children:[t.jsx("svg",{className:"pass-card-bg-sound-move__svg",viewBox:"0 0 300 189",preserveAspectRatio:"xMidYMid meet",xmlns:"http://www.w3.org/2000/svg",children:zC.map(({scale:s,opacity:l},c)=>t.jsx("g",{transform:`translate(${r} ${o}) scale(${s}) translate(-50 -50)`,opacity:l,children:t.jsx("path",{d:vi,fill:"none",stroke:a,strokeWidth:"1.5",vectorEffect:"non-scaling-stroke"})},c))}),t.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-sound-move__symbol",style:{"--symbol-url":`url("${ta}")`}})]})}const WC={text:"#ffffff",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",logoColor:"_white",copyrightColor:"#ffffff"},qC=[{scale:1,opacity:.55},{scale:2,opacity:.4},{scale:3.1,opacity:.28},{scale:4.5,opacity:.18},{scale:6,opacity:.1}];function UC(e={}){const n=at(WC,en,tn),a="#ffffff",r=270,o=170;return t.jsxs("div",{ref:n,className:"pass-card-bg pass-card-bg-sound-move-v1","aria-hidden":"true",children:[t.jsx("svg",{className:"pass-card-bg-sound-move-v1__svg",viewBox:"0 0 300 189",preserveAspectRatio:"xMidYMid meet",xmlns:"http://www.w3.org/2000/svg",children:qC.map(({scale:s,opacity:l},c)=>t.jsx("g",{transform:`translate(${r} ${o}) scale(${s}) translate(-50 -50)`,opacity:l,children:t.jsx("path",{d:vi,fill:"none",stroke:a,strokeWidth:"1.5",vectorEffect:"non-scaling-stroke"})},c))}),t.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-sound-move-v1__symbol",style:{"--symbol-url":`url("${gi}")`}})]})}const GC={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"var(--color-main)"};function KC(e={}){const n=at(GC,en,tn);return t.jsxs("div",{ref:n,className:"pass-card-bg pass-card-bg-talk","aria-hidden":"true",children:[t.jsx("div",{className:"pass-card-bg-talk__shape pass-card-bg-talk__shape--left"}),t.jsx("div",{className:"pass-card-bg-talk__shape pass-card-bg-talk__shape--right"}),t.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-talk__symbol",style:{"--symbol-url":`url("${ta}")`}})]})}const YC={Logo_speechear_kr:{"":dr,_white:$C,_textWhite:RC,_black:PC},Logo_speechearManager_kr:{"":pr,_white:IC,_textWhite:FC,_black:OC}};function ZC(e,n){if(e)return YC[e]?.[n??""]??void 0}const XC={speechear:dr,manager:pr},JC={speechear:"Logo_speechear_kr",manager:"Logo_speechearManager_kr"},_i=10;function QC(e,n){if(e<=0)return n("passCard.remainingSecond",{n:0});const a=Math.floor(e/86400);if(a>0)return n("passCard.remainingDay",{n:a});const r=Math.floor(e/3600);if(r>0)return n("passCard.remainingHour",{n:r});const o=Math.floor(e/60);return o>0?n("passCard.remainingMinute",{n:o}):n("passCard.remainingSecond",{n:Math.floor(e)})}function eg(e,n,a){if(e==="manager"){const r=/년/.test(n)||/yr|year/i.test(n)||/1년|365/.test(n),o=a==="\uC624\uD508\uD2B9\uAC00"||a===It.t("passCard.specialLabel");return r?t.jsx(KC,{}):o?t.jsx(UC,{}):t.jsx(xi,{})}return t.jsx(yi,{})}function wi({product:e,showPrice:n=!1,plan:a,type:r,endDate:o,remainingSeconds:s,state:l="active",bg:c,bgOnly:u=!1,textColor:d,subColor:p,copyrightColor:h,logoSrc:m,label:b,price:f,originalPrice:g,discountLabel:C,onUse:v,onRefund:_,onDelete:A}){const{t:y}=me.useTranslation(),N=e?Ci(e):void 0,x=r??N?.type??"speechear",w=a??N?.plan??"\uC774\uC6A9\uAD8C",j=b??N?.label,k=f??(n?N?.price:void 0),S=g??(n?N?.originalPrice:void 0),F=C??N?.discountLabel,P=i.useMemo(()=>{if(k)return null;const Z=e?.durationDays??LC(e?.code);if(!Z||Z<=0)return null;const ce=Z*86400;let J;if(s!=null)J=s;else if((l==="active"||l==="expired")&&o){const xe=new Date(o).getTime();if(Number.isNaN(xe))return null;const de=new Date;de.setHours(0,0,0,0);const fe=new Date(xe);fe.setHours(0,0,0,0);const _e=Math.round((fe.getTime()-de.getTime())/864e5);J=Math.max(0,_e)*86400}else l==="expired"?J=0:J=ce;const ge=Math.max(0,Math.min(100,Math.floor(Math.min(J,ce)/ce*100)));return l==="pending"&&ge>=100?null:{percent:ge,remainingLabel:QC(J,y)}},[k,l,o,s,e?.durationDays,e?.code,y]),B=i.useRef(null),[I,M]=i.useState({}),[ne,L]=i.useState(null),H=!!(v||_||A),ee=i.useRef(!1),W=i.useRef(void 0),[z,T]=i.useState(m);i.useLayoutEffect(()=>{T(m)},[m]),i.useLayoutEffect(()=>{const Z=B.current;Z&&(d!==void 0&&Z.style.setProperty("--pass-card-text",d),p!==void 0&&Z.style.setProperty("--pass-card-sub",p),h!==void 0&&Z.style.setProperty("--pass-card-copyright",h))},[d,p,h]),i.useLayoutEffect(()=>{const Z=B.current;if(!Z)return;const ce=HC(Z);if(!m){const J=JC[x],ge=l==="expired"?"_black":ce?.logoColor??"",xe=ZC(J,ge);T(xe)}},[c,m,x,l]);const E=Z=>{const ce=B.current;if(!ce)return null;const{left:J,top:ge,width:xe,height:de}=ce.getBoundingClientRect(),fe=(Z.clientX-J)/xe-.5;return{rotateX:-((Z.clientY-ge)/de-.5)*_i,rotateY:fe*_i}},$=(Z,ce)=>{const J=ce*-.7,ge=Z*.7+10,xe=20+(Math.abs(Z)+Math.abs(ce))*.4;return`${J}px ${ge}px ${xe}px rgba(0, 0, 0, 0.18)`},K=i.useCallback(Z=>{ee.current=!0,clearTimeout(W.current),W.current=setTimeout(()=>{ee.current=!1},200);const ce=E(Z);ce&&M({transform:`perspective(800px) rotateX(${ce.rotateX}deg) rotateY(${ce.rotateY}deg) scale3d(1.03, 1.03, 1.03)`,boxShadow:$(ce.rotateX,ce.rotateY),transition:"transform 0.25s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.25s cubic-bezier(0.23, 1, 0.32, 1)"})},[]),R=i.useCallback(Z=>{const ce=E(Z);if(!ce)return;const J=ee.current?"transform 0.2s ease, box-shadow 0.2s ease":"none";M({transform:`perspective(800px) rotateX(${ce.rotateX}deg) rotateY(${ce.rotateY}deg) scale3d(1.03, 1.03, 1.03)`,boxShadow:$(ce.rotateX,ce.rotateY),transition:J})},[]),V=i.useCallback(()=>{clearTimeout(W.current),ee.current=!1,M({transform:"perspective(800px) rotateX(0deg) rotateY(0deg) scale3d(1, 1, 1)",boxShadow:"0px 4px 16px rgba(0, 0, 0, 0.08)",transition:"transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.5s cubic-bezier(0.23, 1, 0.32, 1)"})},[]),q=i.useCallback(()=>L(null),[]),re=i.useMemo(()=>{const Z=w.replace("\uC774\uC6A9\uAD8C","").trim(),ce=Z.match(/^(.*?)(일|년)$/);return ce?t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"h0 pass-card__plan-number",children:ce[1]}),t.jsx("span",{className:"h5b pass-card__plan-unit",children:ce[2]==="\uB144"?y("passCard.unitYear","\uB144"):y("passCard.unitDay","\uC77C")})]}):t.jsx("span",{className:"h0",children:Z})},[w,y]),ie=i.useMemo(()=>{const Z=Jn(k);if(!Z)return null;const ce=Z.match(/^([^\d]*)([\d.,]+)(.*)$/);if(!ce)return t.jsx("span",{className:"h1",children:Z});const[,J,ge,xe]=ce;return t.jsxs(t.Fragment,{children:[J&&t.jsx("span",{className:"h5 pass-card__price-symbol",children:J}),t.jsx("span",{className:"h1 pass-card__price-amount",children:ge}),xe.trim()&&t.jsx("span",{className:"h5 pass-card__price-symbol",children:xe.trim()})]})},[k]),ue=i.useCallback(()=>{H&&L(Z=>{if(Z)return null;const ce=B.current?.getBoundingClientRect();if(!ce)return null;const J=50;return{left:ce.left,right:ce.right,width:ce.width,height:ce.height,x:ce.x,y:ce.y+J,top:ce.top+J,bottom:ce.bottom+J}})},[H]),Ce=i.useCallback(Z=>{H&&(Z.key==="Enter"||Z.key===" ")&&(Z.preventDefault(),ue())},[H,ue]),be=[{items:[...v?[{label:y("passCard.menu.use","\uC0AC\uC6A9\uD558\uAE30"),icon:"play",onClick:()=>{v(),L(null)},closeOnSelect:!0}]:[],..._?[{label:y("passCard.menu.refund","\uD658\uBD88\uD558\uAE30"),icon:"rotate-ccw",onClick:()=>{_(),L(null)},closeOnSelect:!0}]:[],...A?[{label:y("passCard.menu.delete","\uC0AD\uC81C\uD558\uAE30"),icon:"trash-2",onClick:()=>{A(),L(null)},closeOnSelect:!0}]:[]]}];return t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"pass-card-frame",children:t.jsxs("div",{ref:B,className:`pass-card pass-card--${l}${H?" pass-card--clickable":""}`,style:I,onMouseEnter:K,onMouseMove:R,onMouseLeave:V,onClick:ue,onKeyDown:H?Ce:void 0,role:H?"button":void 0,tabIndex:H?0:void 0,children:[c??eg(x,w,j),!u&&t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"pass-card__top",children:t.jsxs("div",{className:"pass-card__top-left",children:[t.jsx("img",{src:z??XC[x],className:"pass-card__logo",alt:x==="manager"?y("header.logoManager","\uB9D0\uADC0\uB9E4\uB2C8\uC800 \uB85C\uACE0"):y("header.logoMalgwi","\uB9D0\uADC0 \uB85C\uACE0")}),t.jsxs("div",{className:"pass-card__plan",children:[t.jsx("div",{children:re}),t.jsx("span",{className:"h5b pass-card__plan-suffix",children:j?y("passCard.labeledPlan",{label:j}):y("passCard.planSuffix","\uC774\uC6A9\uAD8C")})]})]})}),k?t.jsxs("div",{className:"pass-card__price-area",children:[F&&t.jsx("span",{className:"pass-card__discount body-3",children:F}),t.jsxs("div",{className:"pass-card__price",children:[S&&t.jsx("span",{className:"pass-card__price-original body-3",children:Jn(S)}),ie]})]}):P?t.jsxs("div",{className:"pass-card__usage",children:[t.jsx("span",{className:"h5b pass-card__usage-remaining",children:P.remainingLabel}),t.jsxs("span",{className:"pass-card__usage-percent",children:[t.jsx("span",{className:"h1 pass-card__usage-value",children:P.percent}),t.jsx("span",{className:"h5b pass-card__usage-symbol",children:"%"})]})]}):t.jsx("div",{className:"pass-card__copyright caption-2",children:"\xA9 IHAB Corp. All rights reserved."})]})]})}),ne&&t.jsx(pn,{anchorRect:ne,onClose:q,ariaLabel:y("tooltip.menu","\uBA54\uB274"),children:t.jsx(_a,{columns:be,onClose:q,size:"small"})})]})}const tg={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"#1a1a1a"};function ng(e={}){const n=`passcard-sound-line-grad-${i.useId()}`,a=at(tg,en,tn);return t.jsxs("div",{ref:a,className:"pass-card-bg pass-card-bg-sound-line","aria-hidden":"true",children:[t.jsxs("svg",{className:"pass-card-bg-sound-line__svg",viewBox:"0 0 500 300",preserveAspectRatio:"xMidYMid slice",xmlns:"http://www.w3.org/2000/svg",children:[t.jsx("defs",{children:t.jsxs("linearGradient",{id:n,x1:"0",y1:"0",x2:"1",y2:"0",children:[t.jsx("stop",{offset:"20%",stopColor:"var(--color-main)"}),t.jsx("stop",{offset:"80%",stopColor:"var(--color-sub)"})]})}),t.jsx("g",{transform:"translate(25, 45)",children:t.jsx("path",{d:"M -30 150 C 40 80, 100 220, 160 150 S 280 80, 340 150 S 460 220, 510 150",fill:"none",stroke:`url(#${n})`,strokeWidth:"50",strokeLinecap:"round"})})]}),t.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-sound-line__symbol",style:{"--symbol-url":`url("${ta}")`}})]})}const ag={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"var(--color-main)"};function rg(e={}){const n=at(ag,en,tn);return t.jsxs("div",{ref:n,className:"pass-card-bg pass-card-bg-talk-v1","aria-hidden":"true",children:[t.jsx("div",{className:"pass-card-bg-talk-v1__shape pass-card-bg-talk-v1__shape--left"}),t.jsx("div",{className:"pass-card-bg-talk-v1__shape pass-card-bg-talk-v1__shape--right"}),t.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-talk-v1__symbol",style:{"--symbol-url":`url("${ta}")`}})]})}function og(e,n){if(e){if(n==="manager_pro")return t.jsx(rg,{});if(n==="manager_standard")return t.jsx(ng,{});if(n==="manager_lite")return t.jsx(xi,{})}}function sg(e){const n=Jn(e);if(!n)return null;const a=n.match(/^([^\d]*)([\d.,]+)(.*)$/);if(!a)return n;const[,r,o,s]=a;return t.jsxs(t.Fragment,{children:[r&&t.jsx("span",{className:"payment-plan__pricing-symbol h4",children:r}),o,s.trim()&&t.jsx("span",{className:"payment-plan__pricing-symbol h4",children:s.trim()})]})}function ig(e){const{t:n}=me.useTranslation(),a=n("payment.plan.tierFallback",{defaultValue:"\uC774\uC6A9\uAD8C"}),r=n("payment.plan.openPromo",{defaultValue:"\uC624\uD508 \uD2B9\uAC00"}),{plan:o,onSelect:s,period:l="monthly",ownedCodes:c}=e||{},u=y=>!!y&&!!c?.includes(y),d=y=>y.onceOnly??/오픈\s*특가/.test(y.label??""),p=(o.tiers||[]).some(y=>d(y)&&u(y.code)),h=y=>{const N=y.prices?y.prices[l]:y.price;return N?(o.tiers||[]).some(x=>!!x.badge&&x.originals?.[l]===N):!1},m=o.colorToken?`var(--color-${o.colorToken})`:"var(--color-gray)",b=n("payment.plan.freePrice","\uBB34\uB8CC"),f=n("payment.products.mgrEnterprise.tier.price","\uBB38\uC758"),g=y=>y.prices?y.prices[l]:y.price,C=(o.tiers||[]).length>0&&(o.tiers||[]).every(y=>{const N=g(y);return N==="\uBB34\uB8CC"||N===b||N==="0\uC6D0"||typeof N=="string"&&/\d/.test(N)&&!/[1-9]/.test(N)}),v=(o.tiers||[]).length>0&&(o.tiers||[]).every(y=>{const N=g(y);return N==="\uBB38\uC758"||N===f}),_=o.group==="org",A=_?"manager":"speechear";return t.jsxs("div",{className:"payment-plan__card",style:{borderColor:m,"--plan-color":m},children:[o.cardBadge&&t.jsx("div",{className:"payment-plan__card-badge",children:t.jsx(rt,{label:o.cardBadge,variant:"main",size:"medium",fill:"soft"})}),t.jsxs("div",{className:"payment-plan__title",children:[t.jsx("p",{className:"payment-plan__quote body-3b",style:{color:m},children:o.quote||"\xA0"}),t.jsx("h3",{className:"payment-plan__title-heading h1",children:o.tier??o.title}),t.jsx("p",{className:"payment-plan__subtitle body-3",children:o.subtitle})]}),t.jsxs("div",{className:"payment-plan__box",children:[t.jsx("span",{className:"payment-plan__box-title body-3b",children:n("payment.plan.recommendedFor","\uC774\uB7F0 \uBD84\uAED8 \uCD94\uCC9C\uD569\uB2C8\uB2E4.")}),t.jsx("ul",{className:"payment-plan__feature-list",children:(o.recommendedFor||[]).map((y,N)=>t.jsxs("li",{className:"payment-plan__feature-item body-3",children:[t.jsx(Ve,{icon:"check",size:18,className:"payment-plan__feature-check",wrapperStyle:{color:m}}),y]},N))})]}),t.jsxs("div",{className:"payment-plan__box",children:[t.jsx("span",{className:"payment-plan__box-title body-3b",children:n("payment.plan.features","\uD575\uC2EC \uAE30\uB2A5")}),t.jsx("ul",{className:"payment-plan__feature-list",children:(o.features||[]).map((y,N)=>t.jsxs("li",{className:"payment-plan__feature-item body-3",children:[t.jsx(Ve,{icon:"check",size:18,className:"payment-plan__feature-check",wrapperStyle:{color:m}}),y]},N))})]}),t.jsx("div",{className:"payment-plan__card-pricing",children:C?null:v?t.jsx(se,{htmlType:"button",className:"payment-plan__contact-button",label:n("payment.plan.contact",{defaultValue:"\uBB38\uC758\uD558\uAE30"}),variant:"main",size:56,onClick:()=>o.tiers?.[0]&&s?.({...o.tiers[0],productId:o.id,productTitle:o.title})}):t.jsx(t.Fragment,{children:t.jsx("div",{className:"payment-plan__pricing-list",children:(o.tiers||[]).map(y=>{const N=y.label||a,x=d(y),w=x||y.openPromo===!0,j=N.replace(/^오픈\s*특가\s*/,"")||a,k=y.prices?y.prices[l]:y.price,S=y.badge?w?`${r}
832
- ${y.badge}`:y.badge:void 0;if(x&&u(y.code))return null;if(!y.badge&&!p)return h(y)?null:t.jsxs("div",{className:`payment-plan__pricing-row payment-plan__pricing-row--static${y.highlight?" payment-plan__pricing-row--highlight":""}`,children:[t.jsx("div",{className:"payment-plan__pricing-row-title",children:t.jsx("div",{className:"payment-plan__pricing-row-label h5b",children:y.label})}),t.jsx("div",{className:"payment-plan__pricing-row-price",children:t.jsx("span",{className:"payment-plan__pricing-current h1",children:sg(k)})})]},y.id);const F=o.tier??(_?o.title:void 0),P=t.jsx(wi,{showPrice:!0,product:{type:A,code:y.code,name:j,label:F,price:k,originalPrice:y.originals?.[l]??void 0,discountLabel:S},bg:og(_,o.id)}),B=()=>s?.({...y,productId:o.id,productTitle:o.title,preview:P});return t.jsx("div",{className:"payment-plan__pricing-card",onClick:B,onKeyDown:s?I=>{I.target===I.currentTarget&&(I.key==="Enter"||I.key===" ")&&(I.preventDefault(),B())}:void 0,role:s?"button":void 0,tabIndex:s?0:void 0,children:P},y.id)})})})})]})}function lg({variant:e="default"}){return t.jsxs("div",{className:`pass-card-bg pass-card-bg--${e}`,"aria-hidden":"true",children:[t.jsx("div",{className:"pass-card-bg__circle pass-card-bg__circle--1"}),t.jsx("div",{className:"pass-card-bg__circle pass-card-bg__circle--2"}),t.jsx("div",{className:"pass-card-bg__circle pass-card-bg__circle--3"})]})}var mr='data:image/svg+xml,<svg width="264" height="100" viewBox="0 0 264 100" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_2079_3030)">%0A<path d="M60.9019 24.7464C54.4446 18.2821 45.5257 14.2857 35.6757 14.2857C25.8256 14.2857 23.2106 24.5964 16.7569 31.0607C10.2996 37.5214 0 40.1857 0 50C0 59.8143 3.99211 68.7893 10.4494 75.2536C16.9067 81.7178 25.8256 85.7143 35.6757 85.7143C45.5257 85.7143 54.4446 81.7178 60.9019 75.2536C67.3592 68.7893 71.3513 59.8607 71.3513 50C71.3513 40.1393 67.3592 31.2107 60.9019 24.7464ZM48.2906 62.6286C45.0619 65.8607 40.6025 67.8571 35.6757 67.8571C30.7489 67.8571 26.2894 65.8571 23.0608 62.6286C19.8321 59.3964 17.8378 54.9321 17.8378 50C17.8378 45.0678 19.8357 40.6036 23.0608 37.3714C26.2894 34.1393 30.7489 32.1428 35.6757 32.1428C40.6025 32.1428 45.0619 34.1428 48.2906 37.3714C51.5192 40.6036 53.5135 45.0678 53.5135 50C53.5135 54.9321 51.5157 59.3964 48.2906 62.6286Z" fill="url(%23paint0_linear_2079_3030)"/>%0A<path d="M106.735 74.8322H93.6274V24.8322H106.735V74.8322Z" fill="%23111111"/>%0A<path d="M113.495 24.8322H126.602V44.5143H145.022V24.8322H158.197V74.8322H145.022V55.15H126.602V74.8322H113.495V24.8322Z" fill="%23111111"/>%0A<path d="M163.027 74.8322L179.652 24.8322H197.519L214.076 74.8322H199.934L196.969 65.025H180.205L177.241 74.8322H163.031H163.027ZM193.933 55.0786L188.76 38.2964H188.346L183.241 55.0786H193.933Z" fill="%23111111"/>%0A<path d="M218.906 24.8322H240.29C251.674 24.8322 257.675 29.7357 257.675 37.4C257.675 42.925 253.743 47.1393 248.085 48.3107V48.7929C254.364 49 259.605 53.6286 259.605 60.7393C259.605 68.8893 252.983 74.8286 242.081 74.8286H218.902V24.8322H218.906ZM244.157 40.1643C244.157 36.9857 241.674 35.1929 238.085 35.1929H232.013V45.1393H237.878C241.535 45.1393 244.157 43.3429 244.157 40.1679V40.1643ZM245.741 59.0857C245.741 55.425 243.119 53.3536 238.913 53.3536H232.013V64.2643H238.706C243.397 64.2643 245.741 62.4679 245.741 59.0857Z" fill="%23111111"/>%0A</g>%0A<defs>%0A<linearGradient id="paint0_linear_2079_3030" x1="15.337" y1="29.6393" x2="60.9512" y2="75.2042" gradientUnits="userSpaceOnUse">%0A<stop offset="0.2" stop-color="%23499CDF"/>%0A<stop offset="0.8" stop-color="%234DCDC0"/>%0A</linearGradient>%0A<clipPath id="clip0_2079_3030">%0A<rect width="264" height="100" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A';const ki={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"#c9c9c9"};function cg(){const e=at(ki,en,tn);return t.jsx("div",{ref:e,className:"pass-card-bg pass-card-bg-ihab","aria-hidden":"true",children:t.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-ihab__symbol-top",style:{"--symbol-url":`url("${mr}")`}})})}const Ai={text:"#ffffff",sub:"var(--color-lightGray)",logoBase:"Logo_speechearManager_kr",logoColor:"_white",copyrightColor:"#ffffff"};function ug(e={}){const n=at(Ai,en,tn);return t.jsxs("div",{ref:n,className:"pass-card-bg pass-card-bg-left-color-grid","aria-hidden":"true",children:[t.jsx("div",{className:"pass-card-bg-left-color-grid__bar"}),t.jsx("div",{className:"pass-card-bg-left-color-grid__grid"}),t.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-left-color-grid__symbol",style:{"--symbol-url":`url("${ta}")`}})]})}function Ni({keys:e,anchor:n="top-right",scale:a,className:r=""}){const o=Array.isArray(e)?e:[e];return t.jsx("span",{className:ve("shortcut-badge",`shortcut-badge--${n}`,r),style:a===void 0?void 0:{"--shortcut-badge-scale":String(a)},children:o.map((s,l)=>t.jsxs("span",{className:"shortcut-badge__group",children:[l>0&&t.jsx("span",{className:"shortcut-badge__plus",children:"+"}),t.jsx("kbd",{className:"shortcut-badge__key",children:s})]},`${s}-${l}`))})}const na=(e,n,a)=>e+(n-e)*a;function dg({speakers:e,size:n=300,viewT:a=0,activeSpeakerId:r=null,playedIds:o,selectedId:s=null,answerId:l=null,showFeedback:c=!1,pulseSelected:u=!1,pulseSelectedDuration:d,pulseScale:p,clickable:h=!1,onSelectSpeaker:m,buttonSize:b=40,showIcon:f=!0,onCenterClick:g,centerLabel:C,centerDisabled:v=!1,centerAttention:_=!1,shortcutAnchor:A="top-right",shortcutScale:y,scaleShortcut:N=!1}){const{t:x}=me.useTranslation(),w=Math.max(0,Math.min(1,a)),j=n/2,k=110/300,S=.18,F=J=>n*(k+(J-1)*S),P=J=>{const ge=F(J.row??1),xe=J.angleDeg*Math.PI/180;return{x:j+ge*Math.cos(xe),y:j+ge*Math.sin(xe)}},B=Math.max(...e.map(J=>J.row??1),1),I=n*.08,M=n*.1,ne=n*.24,L=n-2*I,H=n-M-ne,ee=n-ne/2,W=i.useMemo(()=>[...new Set(e.map(J=>J.deg))].sort((J,ge)=>J-ge),[e]),z=W.length,T=Math.max(68,z>1?L/(z-1):0),E=i.useMemo(()=>new Map(W.map((J,ge)=>[J,ge])),[W]),$=J=>{const ge=E.get(J.deg)??0,xe=j+(ge-(z-1)/2)*T,de=B>1?Math.min(68,H/(B-1)):0,fe=de*(B-1),_e=M+(H-fe)/2,De=B===1?M+H*.4:_e+(B-(J.row??1))*de;return{x:xe,y:De}},K=J=>{const ge=P(J),xe=$(J);return{x:na(ge.x,xe.x,w),y:na(ge.y,xe.y,w)}},R={x:j,y:na(j,ee,w)},V=Math.round(b*1.2),q=Math.round(Math.max(16,Math.min(80,b*.7))),re=[],ie=new Map;for(const J of e){const ge=J.row??1;ie.has(ge)||ie.set(ge,[]),ie.get(ge).push(J)}for(const[J,ge]of ie.entries()){if(ge.length<2)continue;const xe=[...ge].sort((Le,ye)=>Le.deg-ye.deg),de=xe.map(Le=>K(Le)),fe=xe.map(Le=>Le.deg),_e=fe[fe.length-1]-fe[0],De=_e/(fe.length-1),X=360-_e,pe=xe.length>=3&&De>0&&X<=De*1.5,Ne=Math.round(F(J)*1e3)/1e3,Te=(Le,ye,ze,Fe)=>{const Oe=(ye.angleDeg-Le.angleDeg+540)%360-180;if(Oe===0)return`L ${Fe.x} ${Fe.y}`;if(w===0)return`A ${Ne} ${Ne} 0 0 ${Oe>0?1:0} ${Fe.x} ${Fe.y}`;const We=(Le.angleDeg+Oe/2)*Math.PI/180,He={x:j+Ne*Math.cos(We),y:j+Ne*Math.sin(We)},je={x:(ze.x+Fe.x)/2,y:(ze.y+Fe.y)/2},Re={x:na(He.x,je.x,w),y:na(He.y,je.y,w)},it={x:2*Re.x-je.x,y:2*Re.y-je.y};return`Q ${it.x} ${it.y} ${Fe.x} ${Fe.y}`},Ie=pe?[...xe,xe[0]]:xe,Ae=pe?[...de,de[0]]:de;let Ue=`M ${Ae[0].x} ${Ae[0].y}`;for(let Le=1;Le<Ae.length;Le++)Ue+=" "+Te(Ie[Le-1],Ie[Le],Ae[Le-1],Ae[Le]);re.push({key:`arc-${J}`,d:Ue})}const ue=i.useMemo(()=>new Set(o??[]),[o]),Ce=J=>({idle:"",active:x("soundCompass.state.active","\uC18C\uB9AC \uB098\uB294 \uC911"),played:x("soundCompass.state.played","\uB4E4\uC74C"),correct:x("soundCompass.state.correct","\uC815\uB2F5"),wrong:x("soundCompass.state.wrong","\uC624\uB2F5")})[J],be=J=>{if(r===J.id)return"active";if(c){if(J.id===l)return"correct";if(J.id===s&&s!==l)return"wrong"}return ue.has(J.id)?"played":"idle"},Z=J=>r===J.id?"loop":c?J.id===l?"loop":null:u&&J.id===s?"once":null,ce=(J,ge)=>{switch(J){case"played":case"correct":return t.jsx(po,{size:ge});case"wrong":return t.jsx(_o,{size:ge});default:return t.jsx(xo,{size:ge})}};return t.jsx("div",{className:"sound-compass",children:t.jsxs("div",{className:"sound-compass__compass-wrap",style:{width:n,height:n},children:[t.jsxs("svg",{width:n,height:n,viewBox:`0 0 ${n} ${n}`,className:"sound-compass__svg",children:[w===0&&e.map(J=>{const{x:ge,y:xe}=K(J);return t.jsx("line",{x1:R.x,y1:R.y,x2:ge,y2:xe,stroke:"#dde3ec",strokeWidth:"1"},J.id)}),re.map(J=>t.jsx("path",{d:J.d,fill:"none",stroke:"#dde3ec",strokeWidth:"1"},J.key))]}),_&&!v&&t.jsx("div",{className:"sound-compass__pulse sound-compass__pulse--active sound-compass__pulse--center",style:{width:V,height:V,left:R.x-V/2,top:R.y-V/2}}),g?t.jsx("button",{type:"button",className:`sound-compass__center sound-compass__center--button${v?" sound-compass__center--disabled":""}`,style:{width:V,height:V,left:R.x,top:R.y},"aria-label":C,"aria-disabled":v||void 0,tabIndex:v?-1:0,onClick:v?void 0:g,children:t.jsx(Ia,{size:q,color:"currentColor",strokeWidth:1.5})}):t.jsx("div",{className:"sound-compass__center",style:{width:V,height:V,left:R.x,top:R.y},children:t.jsx(Ia,{size:q,color:"currentColor",strokeWidth:1.5})}),e.map((J,ge)=>{const{x:xe,y:de}=K(J),fe=be(J),_e=Z(J),De={...y!==void 0||N?{"--shortcut-badge-scale":String(y??Math.max(.75,Math.min(3,b/56)))}:null,pointerEvents:h?"auto":"none",cursor:h?"pointer":"default",zIndex:fe!=="idle"?10:1},X=b,pe=Math.round(Math.max(10,Math.min(56,X*.38))),Ne=Math.round(Math.max(7,Math.min(18,X*.2))),Te=Math.round(Math.max(10,Math.min(56,X*.4))),Ie=f==="answered"&&(fe==="played"||fe==="correct"||fe==="wrong"),Ae=f===!0||Ie,Ue=!Ie;return t.jsxs("div",{className:"sound-compass__speaker-pos",style:{...De,left:xe-X/2,top:de-X/2},children:[_e&&t.jsx("div",{className:`sound-compass__pulse sound-compass__pulse--${fe}`+(_e==="once"?" sound-compass__pulse--once":""),style:{width:X,height:X,..._e==="once"&&d!==void 0?{"--sc-pulse-duration-once":`${d}ms`}:null,...p!==void 0?{"--sc-pulse-scale":String(p)}:null}}),t.jsxs("button",{type:"button",tabIndex:h?0:-1,"aria-disabled":h?void 0:!0,onClick:h?()=>m?.(J.id):void 0,className:`sound-compass__speaker-btn sound-compass__speaker-btn--${fe}`,style:{width:X,height:X},"aria-label":Ce(fe)?`${J.label}, ${Ce(fe)}`:J.label,"aria-pressed":s!=null?J.id===s:void 0,children:[Ae&&ce(fe,pe),Ue&&t.jsx("span",{className:"sound-compass__speaker-number",style:{fontSize:f===!0?Ne:Te},children:ge+1})]}),J.shortcut&&t.jsx(Ni,{keys:J.shortcut,anchor:A,className:"sound-compass__speaker-shortcut"})]},J.id)})]})})}function pg({children:e,position:n="top-left",size:a=24,className:r=""}){return t.jsx("span",{className:ve("circle-badge","circle-badge--number",`circle-badge--${a}`,`circle-badge--${n}`,r),children:e})}function hg({orientation:e="horizontal",label:n,className:a=""}){const r=ve("divider",`divider--${e}`,n&&e==="horizontal"?"divider--labeled":"",a);return e==="vertical"?t.jsx("div",{className:r,role:"separator","aria-orientation":"vertical"}):n?t.jsxs("div",{className:r,role:"separator","aria-orientation":"horizontal",children:[t.jsx("span",{className:"divider__line"}),t.jsx("span",{className:"divider__label caption-1",children:n}),t.jsx("span",{className:"divider__line"})]}):t.jsx("div",{className:r,role:"separator","aria-orientation":"horizontal"})}function Bi({checked:e,onChange:n,name:a,value:r,disabled:o=!1,label:s,className:l=""}){const c=i.useId();return t.jsxs("label",{className:`radio${o?" radio--disabled":""} ${l}`.trim(),htmlFor:c,children:[t.jsx("input",{id:c,type:"radio",name:a,value:r,checked:e,disabled:o,onChange:u=>n?.(u.target.checked)}),t.jsx("span",{className:"radio__dot"}),s&&t.jsx("span",{className:"radio__label body-2",children:s})]})}function mg({options:e,value:n,onChange:a,name:r,disabled:o=!1,direction:s="vertical",className:l="",ariaLabel:c}){const u=i.useId(),d=r??`radio-group-${u}`;return t.jsx("div",{className:`radio-group radio-group--${s} ${l}`.trim(),role:"radiogroup","aria-label":c,children:e.map(p=>t.jsx(Bi,{name:d,value:p.value,checked:n===p.value,disabled:o||p.disabled,label:p.label,onChange:h=>{h&&a?.(p.value)}},p.value))})}const fg={info:"info",success:"check-circle",warning:"alert-triangle",danger:"alert-circle"};function Cg({tone:e="info",title:n,message:a,children:r,dismissible:o=!1,onDismiss:s,className:l=""}){const{t:c}=me.useTranslation(),[u,d]=i.useState(!1),p=i.useCallback(()=>{d(!0),s?.()},[s]);if(u)return null;const h=ve("alert",`alert--${e}`,l),m=!!n,b=!!(a||r);return t.jsxs("div",{className:h,role:"alert",children:[t.jsxs("div",{className:"alert__body",children:[t.jsxs("div",{className:"alert__header",children:[t.jsx(Ve,{icon:fg[e],size:20,className:"alert__icon"}),m&&t.jsx("span",{className:"alert__title body-2",children:n}),!m&&b&&t.jsx("div",{className:"alert__message body-3",children:a??r})]}),m&&b&&t.jsx("div",{className:"alert__message alert__message--indented body-3",children:a??r})]}),o&&t.jsx("button",{type:"button",className:"alert__dismiss",onClick:p,"aria-label":c("common.close","\uB2EB\uAE30"),children:"\xD7"})]})}const gg={ready:"search",guide:"info",error:"circle-alert"};function bg(e,n){const a=n.filter(Boolean);if(a.length===0)return e;const r=[];let o=0,s=0;for(const l of a){const c=e.indexOf(l,o);c<0||(c>o&&r.push(e.slice(o,c)),r.push(t.jsx("strong",{className:"search-summary__em body-2",children:l},s++)),o=c+l.length)}return o<e.length&&r.push(e.slice(o)),r}function yg({status:e="guide",label:n,children:a,emphasis:r,icon:o,className:s=""}){const l=o===!1?null:o??gg[e],c=ve("search-summary",`search-summary--${e}`,s),u=n??a,d=typeof u=="string"&&r&&r.length>0?bg(u,r):u;return t.jsxs("div",{className:c,role:"status","aria-live":"polite",children:[l!=null&&t.jsx(Ve,{icon:l,size:18,className:"search-summary__icon"}),t.jsx("span",{className:"search-summary__text body-2",children:d})]})}function aa({title:e,items:n}){const{t:a}=me.useTranslation(),{anchorRect:r,openAt:o,close:s}=xa();return t.jsxs(t.Fragment,{children:[t.jsx(se,{htmlType:"button",size:24,type:"dot",icon:"info",variant:"transparent-gray",useBorder:!1,selected:!!r,ariaLabel:a("common.info","\uC124\uBA85"),onPointerEnter:l=>o(l.currentTarget),onPointerLeave:s,onFocus:l=>o(l.currentTarget),onBlur:s}),r&&t.jsx(An,{title:e,items:n,showIndex:n.length>1,anchorRect:r,onClose:s})]})}function vg({items:e=[],value:n,onChange:a,className:r="",size:o=40}){const s=i.useId(),{t:l}=me.useTranslation(),c=i.useRef(null),u=e.find(g=>!g.disabled)?.key,d=e.some(g=>g.key===n)?n:u??e[0]?.key,p=e.find(g=>g.key===d&&!g.disabled)?.key??u,h=()=>Array.from(c.current?.querySelectorAll('[role="tab"]:not(:disabled)')??[]),m=(g,C=h())=>{if(C.length===0)return;const v=(g%C.length+C.length)%C.length;C[v]?.focus(),C[v]?.click()},b=g=>{if(!["ArrowRight","ArrowDown","ArrowLeft","ArrowUp","Home","End"].includes(g.key))return;g.preventDefault();const C=h(),v=C.indexOf(g.currentTarget);g.key==="ArrowRight"||g.key==="ArrowDown"?m(v+1,C):g.key==="ArrowLeft"||g.key==="ArrowUp"?m(v-1,C):g.key==="Home"?m(0,C):m(C.length-1,C)},f=e.find(g=>g.key===d);return t.jsxs("div",{className:`tabs ${r}`.trim(),children:[t.jsx("div",{ref:c,className:`tabs__list tabs__list--${o}`,role:"tablist","aria-label":l("tabs.ariaLabel","\uD0ED"),children:e.map(g=>t.jsx("button",{id:`tabs__tab-${s}-${g.key}`,type:"button",role:"tab","aria-selected":g.key===d,"aria-controls":`tabs__panel-${s}-${g.key}`,disabled:g.disabled,tabIndex:g.key===p?0:-1,className:`tabs__tab body-2${g.key===d?" tabs__tab--active":""}`,onClick:()=>a?.(g.key),onKeyDown:b,children:g.label},g.key))}),f&&t.jsx("div",{id:`tabs__panel-${s}-${f.key}`,role:"tabpanel","aria-labelledby":`tabs__tab-${s}-${f.key}`,tabIndex:0,className:"tabs__panel",children:f.panel},f.key)]})}const xg={xs:12,sm:16,md:20,lg:28,xl:36};function _g(e){const n=e.trim().split(/\s+/).filter(Boolean);return n.length===0?"":n.length===1?[...n[0]].slice(0,2).join("").toUpperCase():([...n[0]][0]+[...n[n.length-1]][0]).toUpperCase()}function wg({src:e,name:n,size:a="md",shape:r="circle",className:o=""}){const{t:s}=me.useTranslation(),[l,c]=i.useState(null),u=!!e&&l===e,d=n?_g(n):"",p=!!e&&!u,h=!p&&!!d,m=n||s("avatar.ariaLabel","\uC0AC\uC6A9\uC790 \uC544\uBC14\uD0C0");return t.jsxs("span",{className:`avatar avatar--${a} avatar--${r} ${o}`.trim(),role:"img","aria-label":m,children:[p&&t.jsx("img",{className:"avatar__image",src:e,alt:m,onError:()=>c(e??null)}),!p&&h&&t.jsx("span",{className:"avatar__initials","aria-hidden":"true",children:d}),!p&&!h&&t.jsx(Ve,{icon:"user-round",size:xg[a],className:"avatar__icon"})]})}function kg(e,n){if(!n)return!0;const a=n.split(",").map(s=>s.trim()).filter(Boolean);if(a.length===0)return!0;const r=e.name.toLowerCase(),o=e.type.toLowerCase();return a.some(s=>{const l=s.toLowerCase();return l.startsWith(".")?r.endsWith(l):l.endsWith("/*")?o.startsWith(l.slice(0,-1)):o===l})}function Ag({onFilesSelected:e,accept:n,multiple:a=!1,disabled:r=!1,showFileList:o=!0,files:s,onRemove:l,className:c=""}){const{t:u}=me.useTranslation(),d=i.useRef(null),[p,h]=i.useState(!1),[m,b]=i.useState([]),f=s??m,g=x=>{if(!x||x.length===0)return;const w=Array.from(x).filter(k=>kg(k,n));if(w.length===0)return;const j=a?w:w.slice(0,1);if(s===void 0){const k=a?[...f,...j]:j;b(k),e?.(k)}else e?.(j)},C=x=>{x.preventDefault(),!r&&h(!0)},v=x=>{x.preventDefault(),h(!1)},_=x=>{x.preventDefault(),h(!1),!r&&g(x.dataTransfer.files)},A=x=>{g(x.target.files),x.target.value=""},y=()=>{r||d.current?.click()},N=x=>{if(l?.(x),s===void 0){const w=f.filter((j,k)=>k!==x);b(w),l||e?.(w)}};return t.jsxs("div",{className:`file-upload ${c}`.trim(),children:[t.jsxs("div",{className:ve("file-upload__dropzone",p&&"file-upload__dropzone--dragging",r&&"file-upload__dropzone--disabled"),role:"button",tabIndex:r?-1:0,"aria-disabled":r,onClick:y,onKeyDown:x=>{(x.key==="Enter"||x.key===" ")&&(x.preventDefault(),y())},onDragOver:C,onDragLeave:v,onDrop:_,children:[t.jsx(Ve,{icon:"upload",size:24,className:"file-upload__icon"}),t.jsx("span",{className:"file-upload__prompt body-2",children:u("fileUpload.dragPrompt","\uD30C\uC77C\uC744 \uC774\uACF3\uC5D0 \uB4DC\uB798\uADF8\uD558\uC5EC \uC5C5\uB85C\uB4DC")}),t.jsx("button",{type:"button",className:"file-upload__browse-button body-3",disabled:r,onClick:x=>{x.stopPropagation(),y()},children:u("fileUpload.browseButton","\uD30C\uC77C \uC120\uD0DD")}),t.jsx("input",{ref:d,type:"file",className:"file-upload__input",accept:n,multiple:a,disabled:r,onChange:A,tabIndex:-1})]}),o&&f.length>0&&t.jsx("ul",{className:"file-upload__list",children:f.map((x,w)=>t.jsxs("li",{className:"file-upload__list-item body-3",children:[t.jsx("span",{className:"file-upload__file-name body-3",children:x.name}),t.jsx("button",{type:"button",className:"file-upload__remove-button","aria-label":u("fileUpload.removeAriaLabel",{name:x.name}),onClick:()=>N(w),children:t.jsx(Ve,{icon:"x",size:14})})]},`${x.name}-${w}`))})]})}function Ng({items:e,className:n=""}){const{t:a}=me.useTranslation();return t.jsx("nav",{className:`breadcrumb ${n}`.trim(),"aria-label":a("breadcrumb.ariaLabel","\uC774\uB3D9 \uACBD\uB85C"),children:t.jsx("ol",{className:"breadcrumb__list",children:e.map((r,o)=>{const s=o===e.length-1;return t.jsxs("li",{className:"breadcrumb__item",children:[s?t.jsx("span",{className:"breadcrumb__current body-3","aria-current":"page",children:r.label}):t.jsx("button",{type:"button",className:"breadcrumb__link body-3",onClick:r.onClick,children:r.label}),!s&&t.jsx(Ve,{icon:"chevron-right",size:14,className:"breadcrumb__separator"})]},o)})})})}const Bg={small:14,medium:20,large:28};function Dg({value:e,onChange:n,max:a=5,readOnly:r=!1,size:o="medium",ariaLabel:s,className:l=""}){const{t:c}=me.useTranslation(),u=r||!n,[d,p]=i.useState(null),h=d??e,m=Bg[o],b=y=>{u||n?.(y)},f=y=>{u||p(y)},g=i.useRef(null),C=y=>{const N=Math.min(a,Math.max(1,y));n?.(N),Array.from(g.current?.querySelectorAll("[data-star]")??[]).find(x=>x.dataset.star===String(N))?.focus()},v=y=>{if(!u){switch(y.key){case"ArrowRight":case"ArrowUp":C((e||0)+1);break;case"ArrowLeft":case"ArrowDown":C((e||1)-1);break;case"Home":C(1);break;case"End":C(a);break;default:return}y.preventDefault()}},_=e>=1&&e<=a?Math.round(e):1,A=()=>{u||p(null)};return t.jsx("div",{className:`rating rating--${o}${u?" rating--readOnly":""} ${l}`.trim(),ref:g,onKeyDown:v,role:u?"img":"radiogroup","aria-label":u?c("rating.valueLabel",{value:e,max:a}):s??c("rating.groupLabel","\uBCC4\uC810"),onMouseLeave:A,children:Array.from({length:a},(y,N)=>{const x=N+1,w=Math.max(0,Math.min(1,h-N)),j=w>0&&w<1,k=t.jsxs("span",{className:"rating__star-wrap",children:[t.jsx(Ve,{icon:"star",size:m,className:"rating__star rating__star--empty"}),w>0&&t.jsx("span",{className:`rating__star-fill${j?" rating__star-fill--half":""}`,children:t.jsx(Ve,{icon:"star",size:m,className:"rating__star rating__star--filled"})})]});return u?t.jsx("span",{className:"rating__item","aria-hidden":"true",children:k},x):t.jsx("button",{type:"button",className:"rating__item rating__item--interactive",role:"radio","aria-checked":e===x,"aria-label":c("rating.starLabel",{n:x}),"data-star":x,tabIndex:x===_?0:-1,onClick:()=>b(x),onMouseEnter:()=>f(x),children:k},x)})})}const Sg=20,jg=["#499cdf","#4dcdc0","#2fae9e","#e6b94e","#d9534f","#e06b68","#bfc7d1"];function Tg({value:e,onChange:n,palette:a=jg,size:r=40,className:o="",ariaLabel:s}){const{t:l}=me.useTranslation();return t.jsx("div",{className:`color-picker ${o}`.trim(),role:"group","aria-label":s,children:a.map(c=>{const u=e?.toLowerCase()===c.toLowerCase();return t.jsx("button",{type:"button",className:`color-picker__swatch color-picker__swatch--${r}`,style:{backgroundColor:c},onClick:()=>n(c),"aria-pressed":u,"aria-label":u?`${c} ${l("colorPicker.selected","\uC120\uD0DD\uB428")}`:c,children:u&&t.jsx(Ve,{icon:"check",size:Sg,className:"color-picker__check"})},c)})})}function Eg({icon:e,count:n,title:a,className:r="",onClick:o,onMouseEnter:s,onMouseLeave:l}){const c=ve("count-tile",o&&"count-tile--clickable",r);return t.jsxs("div",{className:c,onClick:o,onKeyDown:o?u=>{u.key!=="Enter"&&u.key!==" "||(u.preventDefault(),u.currentTarget.click())}:void 0,onMouseEnter:s,onMouseLeave:l,role:o?"button":"img",tabIndex:o?0:void 0,"aria-label":a?`${a} ${n}`:String(n),children:[t.jsx(Ve,{icon:e,size:20,className:"count-tile__icon"}),t.jsx("span",{className:"count-tile__count h5","aria-hidden":"true",children:n})]})}let ra=0,Di="",Si="",oa=0;function ji(){return Ti(!1)}function Mg(){return Ti(!0)}function Ti(e){const n=typeof document<"u";ra===0&&n&&(Di=document.body.style.overflow,document.body.style.overflow="hidden"),e&&n&&(oa===0&&(Si=document.body.style.paddingRight),oa++,document.body.style.paddingRight="0px"),ra++;let a=!1;return()=>{a||(a=!0,ra=Math.max(0,ra-1),e&&n&&(oa=Math.max(0,oa-1),oa===0&&(document.body.style.paddingRight=Si)),ra===0&&n&&(document.body.style.overflow=Di))}}function Lg(){return t.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round","aria-hidden":!0,children:t.jsx("path",{d:"M6 6l12 12M18 6 6 18"})})}function $g({open:e,onClose:n,ariaLabel:a,title:r,children:o,size:s="md",closeOnBackdrop:l=!0,closeOnEscape:c=!0,showClose:u=!0,className:d,contentClassName:p}){const{t:h}=me.useTranslation(),m=i.useId(),b=i.useRef(null),f=i.useCallback(()=>n(),[n]);i.useEffect(()=>{if(!e)return;const _=document.activeElement,A=ji(),y=b.current;return y?.focus(),()=>{A();const N=document.activeElement;(!N||N===document.body||y&&y.contains(N))&&_?.focus?.()}},[e]);const g=i.useRef(f),C=i.useRef(c);i.useEffect(()=>{g.current=f,C.current=c}),i.useEffect(()=>{if(e)return kn(()=>{C.current&&g.current()})},[e]);const v=i.useRef(!1);return rr(b,e),!e||typeof document>"u"?null:Ft.createPortal(t.jsx("div",{className:ve("dialog",d),onPointerDown:l?_=>{v.current=_.target===_.currentTarget}:void 0,onMouseDown:_=>{_.target===_.currentTarget&&_.preventDefault()},onClick:l?_=>{const A=v.current;v.current=!1,A&&_.target===_.currentTarget&&f()}:void 0,children:t.jsxs("div",{ref:b,role:"dialog","aria-modal":"true","aria-label":r?void 0:a,"aria-labelledby":r?m:void 0,tabIndex:-1,className:ve("dialog__surface",`dialog__surface--${s}`,p),onClick:_=>_.stopPropagation(),children:[r?t.jsx("div",{className:"dialog__header",children:t.jsx("h2",{id:m,className:"dialog__title h4b",children:r})}):null,u?t.jsx("button",{type:"button",className:"dialog__close","aria-label":h("common.close","\uB2EB\uAE30"),onClick:f,children:t.jsx(Lg,{})}):null,t.jsx("div",{className:"dialog__body",children:o})]})}),document.body)}function Rg({columns:e,rows:n,rowKey:a,title:r,toolbar:o,empty:s="\uB4F1\uB85D\uB41C \uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",loading:l,caption:c,className:u=""}){const d=!l&&n.length===0;return t.jsxs("div",{className:ve("board",u),children:[r||o?t.jsxs("div",{className:"board__head",children:[r?t.jsx("h2",{className:"board__title",children:r}):t.jsx("span",{}),o?t.jsx("div",{className:"board__toolbar",children:o}):null]}):null,t.jsxs("table",{className:"board__table",children:[c?t.jsx("caption",{className:"board__caption",children:c}):null,t.jsx("thead",{children:t.jsx("tr",{children:e.map(p=>t.jsx("th",{scope:"col",className:ve("board__th",`board__cell--${p.headerAlign??p.align??"left"}`),style:p.width?{width:p.width}:void 0,children:p.header},p.key))})}),t.jsx("tbody",{children:l?t.jsx("tr",{children:t.jsx("td",{className:"board__state",colSpan:e.length,children:l})}):d?t.jsx("tr",{children:t.jsx("td",{className:"board__state",colSpan:e.length,children:s})}):n.map((p,h)=>t.jsx("tr",{className:"board__row",children:e.map(m=>t.jsx("td",{className:ve("board__td",`board__cell--${m.align??"left"}`),children:m.render(p,h)},m.key))},a(p,h)))})]})]})}function Pg({name:e,role:n,photo:a,media:r,credentials:o,size:s=190,className:l=""}){return t.jsxs("div",{className:ve("person-card",l),children:[t.jsx("div",{className:"person-card__photo",style:{width:s,height:s},children:r??(a?t.jsx("img",{src:a,alt:n?`${e} ${n}`:e}):null)}),t.jsx("h3",{className:"person-card__name",children:e}),n?t.jsx("p",{className:"person-card__role",children:n}):null,o?.length?t.jsx("ul",{className:"person-card__credentials",children:o.map(c=>t.jsx("li",{children:c},c))}):null]})}function Ig({groups:e,className:n=""}){return t.jsx("div",{className:ve("timeline",n),children:e.map(a=>t.jsxs("section",{className:"timeline__group",children:[t.jsx("h3",{className:"timeline__title",children:a.title}),t.jsx("ul",{className:"timeline__rows",children:a.entries.map((r,o)=>t.jsxs("li",{className:"timeline__row",children:[r.label?t.jsx("span",{className:"timeline__label",children:r.label}):null,t.jsx("div",{className:"timeline__items",children:r.items.map((s,l)=>t.jsx("p",{children:s},l))})]},`${r.label??""}-${o}`))})]},a.title))})}function Fg({title:e,kind:n,body:a,badge:r,badgeSrc:o,footer:s,width:l,className:c=""}){const u=r??(o?t.jsx("img",{src:o,alt:""}):null);return t.jsxs("div",{className:ve("publication-card",c),style:l?{width:l,flexShrink:0}:void 0,children:[u?t.jsx("div",{className:"publication-card__badge","aria-hidden":"true",children:u}):null,t.jsx("h3",{className:"publication-card__title",children:e}),n?t.jsx("p",{className:"publication-card__kind",children:n}):null,t.jsx("p",{className:"publication-card__body",children:a}),s?t.jsx("div",{className:"publication-card__footer",children:s}):null]})}function Og({logo:e,alt:n,onDone:a,durationMs:r=3e3}){const o=ir(a);return i.useEffect(()=>{if(!o.current)return;const s=setTimeout(()=>o.current?.(),r);return()=>clearTimeout(s)},[r,o]),t.jsx("div",{className:"splash-logo",style:{"--splash-logo-duration":`${r}ms`},"aria-hidden":"true",children:t.jsx("img",{src:e,alt:n,className:"splash-logo__image"})})}function Hg({eyebrow:e,eyebrowIndex:n,title:a,description:r,level:o=2,tone:s="dark",className:l=""}){const c=o===1?"h1":"h2";return t.jsxs("div",{className:ve("section-header",`section-header--${s}`,l),children:[e?t.jsxs("p",{className:"section-header__eyebrow",children:[n?t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"section-header__index",children:n}),t.jsx("span",{"aria-hidden":!0,className:"section-header__rule"})]}):null,e]}):null,a?t.jsx(c,{className:"section-header__title",children:a}):null,r?t.jsx("div",{className:"section-header__description",children:r}):null]})}function Vg({items:e,className:n=""}){return t.jsx("ul",{className:ve("company-meta",n),children:e.map((a,r)=>t.jsxs("li",{className:"company-meta__item",children:[r>0?t.jsx("span",{"aria-hidden":!0,className:"company-meta__divider",children:"|"}):null,a]},a))})}function Ei({value:e,onChange:n,suggestions:a,openOnFocus:r=!1}){const o=i.useId(),[s,l]=i.useState(!1),[c,u]=i.useState(-1),d=i.useRef(null),p=i.useMemo(()=>{if(!a.length)return[];const v=e??"";return v?a.filter(_=>_.toLowerCase().includes(v.toLowerCase())):r?a:[]},[a,e,r]);i.useEffect(()=>{s||u(-1)},[s]),i.useEffect(()=>()=>{d.current&&clearTimeout(d.current)},[]);const h=c<p.length?c:-1,m=i.useCallback(v=>{n?.(v),l(!1)},[n]),b=i.useCallback(()=>l(!0),[]),f=i.useCallback(()=>{l(!0),u(-1)},[]),g=i.useCallback(()=>{d.current=setTimeout(()=>l(!1),120)},[]),C=i.useCallback(v=>{v.key==="ArrowDown"?(v.preventDefault(),l(!0),u(_=>Math.min(p.length-1,(_<p.length?_:-1)+1))):v.key==="ArrowUp"?(v.preventDefault(),u(_=>Math.max(-1,(_<p.length?_:p.length)-1))):v.key==="Enter"?h>=0&&!v.nativeEvent.isComposing&&m(p[h]):v.key==="Escape"&&s&&(v.preventDefault(),l(!1))},[p,h,s,m]);return{listId:o,open:s,activeIdx:h,filtered:p,handleFocus:b,handleBlur:g,handleInput:f,handleKeyDown:C,handleSelect:m}}function Dn(e){const{value:n,defaultValue:a,name:r,inputRef:o,onChange:s,label:l,ariaLabel:c,required:u,placeholder:d,type:p="text",disabled:h=!1,readOnly:m=!1,error:b,helperText:f,maxLength:g,size:C=48,variant:v="input",fullWidth:_=!1,newline:A=!1,multiline:y=!1,rows:N=3,leftIcon:x,rightIcon:w,clearable:j=!1,list:k,showCount:S=!0,className:F="",onFocus:P,onBlur:B,onKeyDown:I,onEnter:M,inputMode:ne,autoComplete:L,autoFocus:H,suggestions:ee,openOnFocus:W=!1}=e,{t:z}=me.useTranslation(),T=i.useId();!l&&!c&&zn(`TextField:unnamed:${T}`,"[ihab/TextField] \uC774\uB984\uC774 \uC5C6\uC2B5\uB2C8\uB2E4 \u2014 label \uC774\uB098 ariaLabel \uC911 \uD558\uB098\uB97C \uC8FC\uC138\uC694. placeholder \uB294 \uC774\uB984\uC744 \uB300\uC2E0\uD558\uC9C0 \uBABB\uD569\uB2C8\uB2E4.");const E=`tf-${T}`,$=`tf-helper-${T}`,K=i.useRef(null),R=Ei({value:n??"",onChange:s,suggestions:ee??[],openOnFocus:W}),V=!!ee&&R.open&&R.filtered.length>0,q=i.useCallback(X=>{K.current=X,typeof o=="function"?o(X):o&&(o.current=X)},[o]),re=n!==void 0,ie=re&&p==="password",[ue,Ce]=i.useState((a??"").length),be=re?(n??"").length:ue,Z=i.useRef(n);i.useLayoutEffect(()=>{Z.current=n}),i.useEffect(()=>{const X=K.current;if(!ie||!X)return;const pe=n??"";X.value!==pe&&(X.value=pe)},[ie,n]),i.useEffect(()=>{if(!A||!K.current)return;const X=K.current;X.style.height="",X.scrollHeight>X.clientHeight&&(X.style.height=`${X.scrollHeight}px`)},[n,ue,A]);const ce=g!=null&&be>g,J=C===32?16:20,ge=ve("text-field",`text-field--s${C}`,v==="display"?"text-field--display":"",_?"text-field--full-width":"",h?"text-field--disabled":"",m?"text-field--readonly":"",b?"text-field--error":"",x?"text-field--has-left-icon":"",w||j?"text-field--has-right-icon":"",F),xe={id:E,...ie?{}:re?{value:n}:{defaultValue:a},ref:q,placeholder:d,name:r,disabled:h,readOnly:m,autoFocus:H,maxLength:g,list:k,inputMode:ne,autoComplete:L,"aria-label":!l&&c?c:void 0,"aria-required":u,"aria-invalid":!!b,"aria-describedby":f||b?$:void 0,role:ee?"combobox":void 0,"aria-autocomplete":ee?"list":void 0,"aria-haspopup":ee?"listbox":void 0,"aria-expanded":ee?R.open:void 0,"aria-controls":V?R.listId:void 0,"aria-activedescendant":V&&R.activeIdx>=0?`${R.listId}-option-${R.activeIdx}`:void 0,onChange:X=>{const pe=X.target;re||Ce(pe.value.length),s?.(pe.value),ee&&R.handleInput(),ie&&queueMicrotask(()=>{const Ne=Z.current??"";pe.value!==Ne&&(pe.value=Ne)})},onFocus:(X=>{P?.(X),ee&&R.handleFocus()}),onBlur:(X=>{B?.(X),ee&&R.handleBlur()}),onKeyDown:(X=>{ee&&X.key==="Enter"&&!X.nativeEvent.isComposing&&R.activeIdx>=0?X.preventDefault():M&&X.key==="Enter"&&!X.nativeEvent.isComposing&&(X.preventDefault(),M()),I?.(X),ee&&R.handleKeyDown(X)})},de=j&&!h&&!m&&be>0,fe=()=>A?t.jsx("textarea",{...xe,className:"text-field__input text-field__input--auto body-2",rows:1}):y?t.jsx("textarea",{...xe,className:"text-field__input text-field__input--textarea body-2",rows:N}):t.jsx("input",{...xe,type:p,className:"text-field__input body-2"}),_e=v==="display"&&!A&&!y&&!!d,De=()=>t.jsxs(t.Fragment,{children:[fe(),_e&&t.jsx("span",{className:"text-field__placeholder","aria-hidden":"true",children:d})]});return t.jsxs("div",{className:ge,children:[l&&t.jsxs("label",{htmlFor:E,className:"text-field__label caption-1",children:[l,u&&t.jsx("span",{className:"text-field__required",children:"*"})]}),t.jsxs("div",{className:"text-field__wrap",children:[x&&t.jsx("span",{className:"text-field__icon text-field__icon--left",children:t.jsx(Ve,{icon:x,label:"",className:"",svgClassName:"text-field__icon-svg",size:J})}),De(),g!=null&&S&&t.jsxs("span",{className:`text-field__count caption-2${ce?" text-field__count--over":""}`,children:[be,"/",g]}),de&&t.jsx(se,{size:24,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,className:"text-field__clear",ariaLabel:z("textField.clearAriaLabel","\uC785\uB825\uAC12 \uC9C0\uC6B0\uAE30"),htmlType:"button",onMouseDown:X=>{X.preventDefault()},onClick:()=>{!re&&K.current&&(K.current.value="",Ce(0)),s?.("")},tabIndex:-1}),w&&!de&&t.jsx("span",{className:"text-field__icon text-field__icon--right",children:t.jsx(Ve,{icon:w,label:"",className:"",svgClassName:"text-field__icon-svg",size:J})})]}),ee&&R.open&&R.filtered.length>0&&t.jsx("ul",{id:R.listId,className:"text-field__suggestions",role:"listbox",children:R.filtered.map((X,pe)=>t.jsx("li",{id:`${R.listId}-option-${pe}`,role:"option","aria-selected":pe===R.activeIdx,className:`text-field__suggestion body-2${pe===R.activeIdx?" is-active":""}`,onMouseDown:Ne=>Ne.preventDefault(),onClick:()=>{R.handleSelect(X),K.current?.focus()},children:X},`${X}-${pe}`))}),(f||b)&&t.jsx("div",{className:"text-field__footer",children:t.jsx("span",{id:$,className:"text-field__helper caption-1",role:b?"alert":void 0,children:b||f})})]})}function Wt({options:e,value:n,onChange:a,placeholder:r,disabled:o=!1,block:s=!1,size:l=48,error:c=!1,className:u="",ariaLabel:d}){const{t:p}=me.useTranslation(),h=r??p("dropdown.placeholder","\uC120\uD0DD"),m=i.useId(),b=i.useRef(null),f=i.useCallback(B=>{const I=window.innerHeight-B.bottom<260&&B.top>260;return{position:"fixed",left:B.left,minWidth:B.width,...I?{bottom:window.innerHeight-B.top+6}:{top:B.bottom+6},zIndex:9999}},[]),{open:g,setOpen:C,toggle:v,style:_,triggerRef:A,menuRef:y}=ea({computeStyle:f}),[N,x]=i.useState(-1),w=i.useCallback(()=>x(-1),[]),j=e.find(B=>B.value===n);i.useEffect(()=>{if(g){const B=e.findIndex(I=>I.value===n);x(B>=0?B:0),requestAnimationFrame(()=>{const I=y.current;if(!I)return;const M=I.querySelectorAll(".dropdown__option")[B];M&&(I.scrollTop=Math.max(0,M.offsetTop-I.clientHeight/2+M.clientHeight/2))})}},[g]);const k=i.useCallback(()=>{o||v()},[o,v]),S=i.useCallback(B=>{B.disabled||(a?.(B.value),C(!1))},[a,C]),F=i.useCallback(B=>{if(!o){if(!g){(B.key==="Enter"||B.key===" "||B.key==="ArrowDown")&&(B.preventDefault(),C(!0));return}if(B.key==="Escape"){B.preventDefault(),C(!1);return}B.key==="ArrowDown"?(B.preventDefault(),x(I=>{let M=I+1;for(;M<e.length&&e[M].disabled;)M++;return M<e.length?M:I})):B.key==="ArrowUp"?(B.preventDefault(),x(I=>{let M=I-1;for(;M>=0&&e[M].disabled;)M--;return M>=0?M:I})):B.key==="Enter"&&N>=0&&(B.preventDefault(),S(e[N]))}},[o,g,e,N,S,C]),P=g?t.jsx("div",{ref:y,id:m,className:"dropdown__menu",role:"listbox",style:_,onMouseLeave:w,onMouseDown:B=>B.preventDefault(),children:e.map((B,I)=>t.jsxs("button",{id:`${m}-option-${I}`,type:"button",role:"option","aria-selected":B.value===n,className:ve("dropdown__option body-2",B.value===n?"dropdown__option--active":"",I===N?"dropdown__option--active":"",B.disabled?"dropdown__option--disabled":""),onMouseDown:M=>M.preventDefault(),onClick:()=>S(B),onMouseEnter:()=>x(I),disabled:B.disabled,children:[t.jsx("span",{className:"dropdown__option-check",children:B.value===n&&t.jsx("svg",{viewBox:"0 0 14 14",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:t.jsx("polyline",{points:"2 7 5.5 10.5 12 3.5"})})}),B.label]},B.value))}):null;return t.jsxs("div",{ref:b,className:ve("dropdown",`dropdown--s${l}`,g?"dropdown--open":"",s?"dropdown--block":"",c?"dropdown--error":"",u),onKeyDown:F,children:[t.jsxs("button",{ref:A,type:"button",className:"dropdown__trigger","aria-haspopup":"listbox","aria-expanded":g,"aria-controls":g?m:void 0,"aria-activedescendant":g&&N>=0?`${m}-option-${N}`:void 0,"aria-label":d,"aria-invalid":c||void 0,disabled:o,onClick:k,onBlur:B=>{g&&!y.current?.contains(B.relatedTarget)&&C(!1)},children:[t.jsx("span",{className:`dropdown__trigger-label body-2${j?"":" dropdown__trigger-label--placeholder"}`,children:j?j.label:h}),t.jsx("svg",{className:"dropdown__chevron",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:t.jsx("polyline",{points:"4 6 8 10 12 6"})})]}),typeof document<"u"&&Ft.createPortal(P,b.current?.closest(".ihabdevteam-core-scope")??document.body)]})}function wa({page:e,totalPages:n,onChange:a,prevLabel:r,nextLabel:o,className:s=""}){const{t:l}=me.useTranslation(),c=r??l("common.prevPage","\uC774\uC804 \uD398\uC774\uC9C0"),u=o??l("common.nextPage","\uB2E4\uC74C \uD398\uC774\uC9C0"),d=Math.max(1,n),p=()=>a(Math.max(1,Math.min(d,e-1))),h=()=>a(Math.min(d,e+1));return t.jsxs("div",{className:ve("pagination",s),children:[t.jsx(se,{htmlType:"button",size:32,type:"dot",shape:"rounded",icon:"chevron-left",ariaLabel:c,disabled:e<=1,onClick:p}),t.jsxs("span",{className:"pagination__info body-3",children:[e," / ",n]}),t.jsx(se,{htmlType:"button",size:32,type:"dot",shape:"rounded",icon:"chevron-right",ariaLabel:u,disabled:e>=n,onClick:h})]})}function Sn(e){const{t:n}=me.useTranslation(),{options:a=[],value:r=a[0]?.key,onChange:o=C=>{},className:s="",size:l=48,shape:c="pill",useBG:u=!0,fullWidth:d=!1,ariaLabel:p}=e||{},h=i.useRef(null),m=a.filter(C=>!C.disabled),b=C=>{if(!m.length)return;const v=Math.max(0,m.findIndex(A=>A.key===r)),_=C==="first"?m[0]:C==="last"?m[m.length-1]:m[(v+C+m.length)%m.length];_&&(o(_.key),Array.from(h.current?.querySelectorAll("[data-segkey]")??[]).find(A=>A.dataset.segkey===_.key)?.focus())},f=C=>{switch(C.key){case"ArrowRight":case"ArrowDown":b(1);break;case"ArrowLeft":case"ArrowUp":b(-1);break;case"Home":b("first");break;case"End":b("last");break;default:return}C.preventDefault()},g=m.some(C=>C.key===r)?r:m[0]?.key;return t.jsx("div",{ref:h,onKeyDown:f,className:ve("segmented-control",`segmented-control--${c}`,`segmented-control--${l}`,d&&"segmented-control--full",!u&&"segmented-control--no-bg",s),role:"radiogroup","aria-label":p??n("segmentedControl.ariaLabel","\uC120\uD0DD \uD0ED"),children:a.map(C=>t.jsx(se,{htmlType:"button",role:"radio","aria-checked":C.key===r,"data-segkey":C.key,tabIndex:C.key===g?0:-1,label:C.label,count:C.count,disabled:C.disabled,className:C.key===r?"is-selected":"",onClick:()=>{C.disabled||o(C.key)},size:l,shape:c,useBorder:!1,useBG:!1},C.key))})}function fr({count:e,search:n,segment:a,filters:r,pageSize:o,pagination:s,actions:l,className:c}){const{t:u}=me.useTranslation(),d=e!=null&&t.jsxs("p",{className:"toolbar__count body-1",children:[e.prefix??u("common.totalPrefix","\uCD1D "),t.jsx("span",{className:"toolbar__count-highlight",children:e.value}),e.unit,e.suffix]}),p=!!(n||r?.length||o||s||l);return t.jsxs("div",{className:ve("toolbar",c),children:[t.jsxs("div",{className:"toolbar__row",children:[d,a&&(Array.isArray(a)?a:[a]).map((h,m)=>t.jsx(Sn,{size:40,...h},h.ariaLabel??m))]}),p&&t.jsx("div",{className:"toolbar__row",children:t.jsxs("div",{className:"toolbar__row-end",children:[n&&t.jsx(Dn,{className:"toolbar__search",size:40,value:n.value,onChange:n.onChange,placeholder:n.placeholder??u("common.search","\uAC80\uC0C9"),ariaLabel:n.placeholder??u("common.search","\uAC80\uC0C9"),clearable:!0}),r?.map((h,m)=>t.jsx(Wt,{size:40,options:h.options,value:h.value,onChange:h.onChange,ariaLabel:h.ariaLabel},m)),o&&t.jsx(Wt,{size:40,options:o.options,value:o.value,onChange:o.onChange,ariaLabel:o.ariaLabel??u("common.pageSizeSelect","\uD398\uC774\uC9C0\uB2F9 \uD45C\uC2DC \uAC1C\uC218")}),s&&t.jsx(wa,{page:s.page,totalPages:s.total,onChange:s.onChange,prevLabel:s.prevLabel,nextLabel:s.nextLabel}),l]})})]})}function Mi(e){return typeof e=="string"?e:typeof e=="number"?String(e):Array.isArray(e)?e.map(Mi).join(""):""}function zg(e){let n=e.replace(/\r\n/g,`
831
+ and aids recovery.`,site:{title:"Site",malgwi:"Malgwi",soundDirection:"Sound Direction System",vrSoundDirection:"VR Sound Direction System",hearingTest:"Hearing Test Pro"},sns:{title:"SNS",naverBlog:"Naver Blog",kakao:"KAKAO Talk Open Chat"},policy:{title:"Policy",terms:"Terms of Service",privacy:"Privacy Policy"},ceo:"CEO",address:"Address",support:"Support",ceoName:"Ji-hye Han",addressValue:"302, 3F, Haechan Bldg, 32 Siocheong-gil, Chuncheon, Gangwon, Korea"},dC={trainingPhone:{topic:"Gardening",prev:"Prev",next:"Next",speed:"Speed 3",noiseType:"Crowd noise",settings:"Settings",start:{caption:"Press the play (\u25B6) button below and listen carefully. After listening, check the sentence."},feedback:{caption:"Plant the well-grown seedlings in the garden bed and cover them carefully with plastic film."},done:{heardWell:"Heard clearly",listenAgain:"Listen again"}}},pC={timeHM:"{{hh}}:{{mm}}",timeH:"{{hh}}:{{mm}}"},hC={options:"Training Options",difficulty:"Difficulty",exclude:"Exclude",chosung:"Initial Consonant",excludeOptions:{none:"None",noImage:"No Image"}},mC={answer:"Answer",distractor:"Distractor"},fC={phaseWordDownload:"Download Word Data",phaseImageCheck:"Check Images",phasePairAnalysis:"Analyze Word Pairs",downloadingCount:"Downloading {{n}} words",checkingPage:"Checking page {{page}} list",imageCount:"{{done}} / {{total}} items"},CC={clearAriaLabel:"Clear input"},gC={ariaLabel:"Select tab"},bC={ariaLabel:"Tabs"},yC={dragPrompt:"Drag and drop files here",browseButton:"Choose Files",removeAriaLabel:"Remove {{name}}"},vC={ariaLabel:"User avatar"},xC={relativeDay:{today:"Today",yesterday:"Yesterday",daysAgo:"{{n}}d ago"},reason:{notLoggedIn:"Login required."},list:{title:"Received Homework"},status:{expired:"Expired",done:"Done {{count}}\xD7 \xB7 {{date}}",notDone:"Not done"}},_C={weekly:{title:"Weekly Training",daily:"Daily Listening",crossword:"Crossword"},homework:{title:"Homework Progress",totalRate:"Overall rate",count:"Total",done:"Done",remaining:"Remaining"},today:{tooltipTotal:"Total",tooltipDone:"Done"},filter:{countSuffix:" sessions"},time:{countLabel:"{{n}} sessions",empty:"No training records"},daily:{title:"Today's Listening Record",empty:"No completed sessions"},crossword:{title:"Crossword Quiz",empty:"No completed levels"},visit:{title:"Linked Visit Records"},detail:"Details",trainingType:{LISTEN_IN_NOISE:"Sentence in Noise",SHORT_STORY:"Short Story",LONG_STORY:"Long Story",ORDERING_SENTENCE:"Sentence Ordering"}},wC={import:"Add to my trainings",publisher:"Publisher",time:{justNow:"just now",minutesAgo:"{{n}}m ago",hoursAgo:"{{n}}h ago",daysAgo:"{{n}}d ago",weeksAgo:"{{n}}w ago",monthsAgo:"{{n}}mo ago",yearsAgo:"{{n}}y ago"},badge:{shared:"Store"},publish:{descPlaceholder:"One-line description for the Training Store (optional)"}},kC={manage:{unit:"item(s)"}},AC={cancelLabel:"Cancel"},NC={subtitle:"Select a topic to start listening practice."},BC={steps:"Step {{current}} of {{total}}"},SC={panelTitle:"Training misses",viewItems:"Items",viewTypes:"Types",colPending:"Left",colTrend:"Change",colRuns:"Runs",unitItem:" items",skippedOnly:"{{n}} older record(s) were excluded \u2014 they do not say what was answered.",summaryLabel:"Recorded",summaryValue:"{{items}} items \xB7 {{pending}} still missed",nextLabel:"Next to work on",nextCount:"{{count}}",nextCountCapped:"{{shown}} of {{total}}",picked:"\u2192 {{what}}",typeClear:"All caught up",typePending:"{{pending}} of {{total}} left",flat:"no change",runs:"{{count}} run(s)",avgDuration:"{{sec}}s avg"},DC={resetColumns:"Reset column widths"},TC={panelTitle:"Word table scores",viewWords:"Words",viewTables:"Tables",colLatest:"When",colTrend:"Change",unitTime:" times",summaryLabel:"Scored",summaryValue:"{{times}} times \xB7 {{words}} words",nextLabel:"Focus next",nextCount:"{{count}}",allClear:"All correct last time.",times:"{{count}}x",flat:"no change",recentLabel:"Recent scorings",nextCountCapped:"{{shown}} of {{total}}"},jC={ariaLabel:"Banner",dotAriaLabel:"Banner {{index}} of {{count}}"},EC={selectYearMonth:"Select year and month",chooseDate:"Choose a date"},MC={previewRegion:"Report preview \u2014 scrollable sideways"},LC={description:"Description",textbox:"Text",training:"Training guide",menu:"Menu"},$C={devNone:"No acquisition data",place:{labial:"Bilabial",alveolar:"Alveolar",palatal:"Palatal",velar:"Velar",glottal:"Glottal"}},RC={clearSelection:"Clear selection"},PC={showResult:"Show {{type}} result"},IC={selected:"Selected",remove:"Remove",exclude:"Excluded",nthSelected:"Selection {{n}}"},FC={loading:"Loading"},OC={state:{active:"playing",played:"heard",correct:"correct",wrong:"wrong"}},HC={ariaLabel:"Breadcrumb"},VC={common:Df,calendar:Tf,passCard:jf,searchField:Ef,rating:Mf,colorPicker:Lf,dropdown:$f,accordion:Rf,header:Pf,nav:If,settings:Ff,usage:Of,account:Hf,help:Vf,training:zf,trainingSettings:Wf,customers:qf,payment:Uf,coupons:Gf,visits:Kf,company:Yf,trainingType:Zf,myWordTraining:Xf,myWordTable:Jf,keyWords:Qf,wordTable:eC,wordSearch:tC,wordPrint:nC,topic:aC,accessLinkManager:rC,login:oC,device:sC,manager:iC,wordPairs:lC,game:cC,footer:uC,landing:dC,date:pC,trainingSetPage:hC,wordTrainingPreview:mC,wordData:fC,textField:CC,segmentedControl:gC,tabs:bC,fileUpload:yC,avatar:vC,myHomework:xC,trainingStatus:_C,store:wC,homework:kC,inquiry:AC,trainingPlanRun:NC,progress:BC,trainingMiss:SC,table:DC,wordScore:TC,topBanner:jC,datePicker:EC,report:MC,tooltip:LC,phonemeProfile:$C,bulkBar:RC,debug:PC,badge:IC,loader:FC,soundCompass:OC,breadcrumb:HC};const zC=[{code:"ko",label:"\uD55C\uAD6D\uC5B4"},{code:"en",label:"English"}],gi="ko",WC="ihab_display_language";function bi(){try{const e=localStorage.getItem(WC);if(e&&zC.some(n=>n.code===e))return e}catch{}return gi}function yi(e){try{document.documentElement.lang=e}catch{}}Tt.on("languageChanged",yi),yi(bi()),Tt.use(me.initReactI18next).init({resources:{ko:{translation:Sf},en:{translation:VC}},lng:bi(),fallbackLng:gi,interpolation:{escapeValue:!1},react:{useSuspense:!1}});function vi(e){if(!(e==null||e===""))return Jn(typeof e=="number"?`${e.toLocaleString("ko-KR")}\uC6D0`:e)}function qC(e){const n=`${e.code??""} ${e.name??""}`.toLowerCase();return/manager|매니저/.test(n)?"manager":"speechear"}function UC(e){if(e.durationDays&&e.durationDays>0){const i=e.durationDays;return i%365===0?`${i/365}\uB144`:`${i}\uC77C`}const n=(e.code??"").match(/(\d+)(d|y)\b/i);if(n)return n[2].toLowerCase()==="y"?`${n[1]}\uB144`:`${n[1]}\uC77C`;const a=e.name??"",r=a.match(/(\d+\s*(?:년|개월|주|일))\s*(?:이용권)?\s*$/);if(r)return r[1].replace(/\s+/g,"");const o=a.match(/(\d+)\s*-?\s*(day|year)s?\b/i);return o?o[2].toLowerCase()==="year"?`${o[1]}\uB144`:`${o[1]}\uC77C`:a||"\uC774\uC6A9\uAD8C"}function GC(e){const n=(e??"").match(/(\d+)(d|y)\b/i);if(!n)return null;const a=Number(n[1]);return n[2].toLowerCase()==="y"?a*365:a}function xi(e){return{type:e.type??qC(e),plan:UC(e),label:e.label,price:vi(e.price),originalPrice:vi(e.originalPrice),discountLabel:e.discountLabel}}var KC='data:image/svg+xml,<svg width="200" height="100" viewBox="0 0 200 100" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_2255_7326)">%0A<path d="M96.4287 48.3536V24.2572H127.047V48.3536H96.4287ZM142.975 69.1536V76.3607H98.2144V60.6393H132.679V58.5107H98.0787V51.3036H142.429V67.025H108.104V69.1536H142.979H142.975ZM106.247 32.5643V39.9786H117.3V32.5643H106.247ZM148.329 40.3893H142.425V49.45H132.539V23.6357H142.425V30.8429H148.329V40.3857V40.3893Z" fill="%23FAFAFA"/>%0A<path d="M185.536 47.8714V57.275C182.743 58.5571 178.371 59.1964 172.425 59.1964H171.807V76.3607H161.921V59.1964H149.704V49.7929H172.564C178.421 49.7929 182.746 49.1536 185.539 47.8714H185.536ZM152.586 34.2786V24.875H181.282V47.05H171.396V34.2821H152.586V34.2786ZM198.307 76.3607H188.421V23.6393H198.307V76.3643V76.3607Z" fill="%23FAFAFA"/>%0A<path opacity="0.1" d="M24.9999 25C19.0821 25 14.2856 29.7964 14.2856 35.7143V64.2857C14.2856 67.3786 15.0749 70.2893 16.4571 72.8286C18.9928 74.2143 21.9035 75 24.9999 75H53.5714C59.4892 75 64.2856 70.2036 64.2856 64.2857V35.7143C64.2856 32.6214 63.4964 29.7107 62.1142 27.1714C59.5785 25.7857 56.6678 25 53.5714 25H24.9999Z" fill="%23FAFAFA"/>%0A<path d="M14.2859 64.2857V35.7143C14.2859 29.7964 19.0823 25 25.0002 25H53.5716C56.6645 25 59.5752 25.7893 62.1145 27.1714C59.0859 21.6214 53.1966 17.8571 46.4288 17.8571H25.0002C15.1395 17.8571 7.14304 25.8535 7.14304 35.7143V44.0643L0.278759 51.6214C-0.131955 52.0714 -0.0855263 52.7785 0.385902 53.1678C2.46447 54.8964 4.75019 56.225 7.14304 57.1714C7.15376 63.9285 10.9145 69.8035 16.4573 72.8285C15.0716 70.2928 14.2859 67.3821 14.2859 64.2857Z" fill="%23FAFAFA"/>%0A<path d="M25.357 40.7143C25.357 39.5308 24.3976 38.5714 23.2141 38.5714C22.0307 38.5714 21.0713 39.5308 21.0713 40.7143V45C21.0713 46.1834 22.0307 47.1428 23.2141 47.1428C24.3976 47.1428 25.357 46.1834 25.357 45V40.7143Z" fill="%23FAFAFA"/>%0A<path d="M36.0715 57.1428C35.0287 57.1428 33.9822 56.875 33.0358 56.3285C32.1822 55.8357 31.8894 54.7428 32.3858 53.8893C32.8787 53.0357 33.9715 52.7428 34.8251 53.2393C35.8037 53.8035 37.043 53.6428 37.8394 52.8464C38.2251 52.4607 38.468 51.9714 38.543 51.4357C38.8644 49.1607 39.868 47 41.4501 45.1857C42.393 44.1071 42.8894 42.7214 42.8537 41.2857C42.7787 38.3535 40.4322 35.9107 37.5072 35.7285C36.518 35.6678 35.5715 35.85 34.693 36.2678C33.8037 36.6893 32.7358 36.3107 32.3144 35.4214C31.8894 34.5321 32.2715 33.4643 33.1608 33.0428C34.5751 32.3714 36.1572 32.0643 37.7322 32.1643C42.4894 32.4607 46.3072 36.4285 46.4251 41.1964C46.4822 43.5285 45.6715 45.7785 44.143 47.5357C43.018 48.825 42.3037 50.3464 42.0822 51.9321C41.8965 53.2428 41.3037 54.4321 40.368 55.3714C39.2001 56.5393 37.6465 57.1464 36.0751 57.1464L36.0715 57.1428Z" fill="%23FAFAFA"/>%0A<path d="M62.1142 27.1714C63.4999 29.7072 64.2856 32.6179 64.2856 35.7143V64.2857C64.2856 70.2036 59.4892 75 53.5713 75H24.9999C21.907 75 18.9963 74.2107 16.457 72.8286C19.4856 78.3786 25.3749 82.1429 32.1427 82.1429H48.2535C49.2177 82.1429 49.9999 82.925 49.9999 83.8893C49.9999 84.9107 50.8749 85.7215 51.8927 85.6322C62.8392 84.675 71.4285 75.4822 71.4285 64.2857V42.8572C71.4285 36.0893 67.6642 30.2 62.1142 27.1714Z" fill="%23FAFAFA"/>%0A</g>%0A<defs>%0A<clipPath id="clip0_2255_7326">%0A<rect width="200" height="100" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A',YC='data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?>%0A<svg id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" viewBox="0 0 200 100">%0A <!-- Generator: Adobe Illustrator 30.4.0, SVG Export Plug-In . SVG Version: 2.1.4 Build 226) -->%0A <defs>%0A <style>%0A .st0 {%0A fill: none;%0A }%0A%0A .st1 {%0A fill: %234dcdc0;%0A }%0A%0A .st2 {%0A fill: %23499cdf;%0A }%0A%0A .st3 {%0A fill: %23fff;%0A }%0A%0A .st4 {%0A clip-path: url(%23clippath);%0A }%0A </style>%0A <clipPath id="clippath">%0A <rect class="st0" width="200" height="100"/>%0A </clipPath>%0A </defs>%0A <g class="st4">%0A <g>%0A <path class="st3" d="M96.43,48.35v-24.1h30.62v24.1h-30.62ZM142.98,69.15v7.21h-44.76v-15.72h34.46v-2.13h-34.6v-7.21h44.35v15.72h-34.33v2.13h34.88,0ZM106.25,32.56v7.41h11.05v-7.41h-11.05ZM148.33,40.39h-5.9v9.06h-9.89v-25.81h9.89v7.21h5.9v9.54h0Z"/>%0A <path class="st3" d="M185.54,47.87v9.4c-2.79,1.28-7.16,1.92-13.11,1.92h-.62v17.16h-9.89v-17.16h-12.22v-9.4h22.86c5.86,0,10.18-.64,12.98-1.92h0ZM152.59,34.28v-9.4h28.7v22.17h-9.89v-12.77h-18.81ZM198.31,76.36h-9.89V23.64h9.89v52.73h0Z"/>%0A <path class="st1" d="M46.43,17.86h-21.43c-9.86,0-17.86,7.99-17.86,17.86v21.43c0,9.86,7.99,17.86,17.86,17.86h21.43c9.86,0,17.86-7.99,17.86-17.86v-21.43c0-9.86-7.99-17.86-17.86-17.86Z"/>%0A <path class="st1" d="M34.86,50.74c-9.03,9.94-24.25,10.93-34.48,2.42-.47-.39-.52-1.1-.11-1.55l16.07-17.69,18.51,16.81Z"/>%0A <path class="st1" d="M53.57,25h-21.43c-9.86,0-17.86,8-17.86,17.86v21.43c0,9.86,8,17.86,17.86,17.86h16.11c.96,0,1.75.78,1.75,1.75,0,1.02.88,1.83,1.89,1.74,10.95-.96,19.54-10.15,19.54-21.35v-21.43c0-9.86-8-17.86-17.86-17.86Z"/>%0A <path class="st2" d="M25,25c-5.92,0-10.71,4.8-10.71,10.71v28.57c0,3.09.79,6,2.17,8.54,2.54,1.39,5.45,2.17,8.54,2.17h28.57c5.92,0,10.71-4.8,10.71-10.71v-28.57c0-3.09-.79-6-2.17-8.54-2.54-1.39-5.45-2.17-8.54-2.17h-28.57Z"/>%0A <path class="st3" d="M25.36,40.71c0-1.18-.96-2.14-2.14-2.14s-2.14.96-2.14,2.14v4.29c0,1.18.96,2.14,2.14,2.14s2.14-.96,2.14-2.14v-4.29Z"/>%0A <path class="st3" d="M36.07,57.14c-1.04,0-2.09-.27-3.04-.81-.85-.49-1.15-1.59-.65-2.44.49-.85,1.59-1.15,2.44-.65.98.56,2.22.4,3.01-.39.39-.39.63-.88.7-1.41.32-2.27,1.33-4.44,2.91-6.25.94-1.08,1.44-2.46,1.4-3.9-.07-2.93-2.42-5.38-5.35-5.56-.99-.06-1.94.12-2.81.54-.89.43-1.96.04-2.38-.85-.42-.89-.04-1.96.85-2.38,1.41-.67,2.99-.97,4.57-.88,4.76.3,8.58,4.26,8.69,9.03.06,2.33-.75,4.58-2.28,6.34-1.12,1.29-1.84,2.81-2.06,4.4-.19,1.31-.78,2.5-1.71,3.44-1.17,1.17-2.72,1.78-4.29,1.78h0Z"/>%0A </g>%0A </g>%0A</svg>',ZC='data:image/svg+xml,<svg width="200" height="100" viewBox="0 0 200 100" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_2255_7325)">%0A<path d="M96.4287 48.3536V24.2572H127.047V48.3536H96.4287ZM142.975 69.1536V76.3607H98.2144V60.6393H132.679V58.5107H98.0787V51.3036H142.429V67.025H108.104V69.1536H142.979H142.975ZM106.247 32.5643V39.9786H117.3V32.5643H106.247ZM148.329 40.3893H142.425V49.45H132.539V23.6357H142.425V30.8429H148.329V40.3857V40.3893Z" fill="%23111111"/>%0A<path d="M185.536 47.8714V57.275C182.743 58.5571 178.371 59.1964 172.425 59.1964H171.807V76.3607H161.921V59.1964H149.704V49.7929H172.564C178.421 49.7929 182.746 49.1536 185.539 47.8714H185.536ZM152.586 34.2786V24.875H181.282V47.05H171.396V34.2821H152.586V34.2786ZM198.307 76.3607H188.421V23.6393H198.307V76.3643V76.3607Z" fill="%23111111"/>%0A<path opacity="0.1" d="M24.9999 25C19.0821 25 14.2856 29.7964 14.2856 35.7143V64.2857C14.2856 67.3786 15.0749 70.2893 16.4571 72.8286C18.9928 74.2143 21.9035 75 24.9999 75H53.5714C59.4892 75 64.2856 70.2036 64.2856 64.2857V35.7143C64.2856 32.6214 63.4964 29.7107 62.1142 27.1714C59.5785 25.7857 56.6678 25 53.5714 25H24.9999Z" fill="%23111111"/>%0A<path d="M14.2859 64.2857V35.7143C14.2859 29.7964 19.0823 25 25.0002 25H53.5716C56.6645 25 59.5752 25.7893 62.1145 27.1714C59.0859 21.6214 53.1966 17.8571 46.4288 17.8571H25.0002C15.1395 17.8571 7.14304 25.8535 7.14304 35.7143V44.0643L0.278759 51.6214C-0.131955 52.0714 -0.0855263 52.7785 0.385902 53.1678C2.46447 54.8964 4.75019 56.225 7.14304 57.1714C7.15376 63.9285 10.9145 69.8035 16.4573 72.8285C15.0716 70.2928 14.2859 67.3821 14.2859 64.2857Z" fill="%23111111"/>%0A<path d="M25.357 40.7143C25.357 39.5308 24.3976 38.5714 23.2141 38.5714C22.0307 38.5714 21.0713 39.5308 21.0713 40.7143V45C21.0713 46.1834 22.0307 47.1428 23.2141 47.1428C24.3976 47.1428 25.357 46.1834 25.357 45V40.7143Z" fill="%23111111"/>%0A<path d="M36.0715 57.1428C35.0287 57.1428 33.9822 56.875 33.0358 56.3285C32.1822 55.8357 31.8894 54.7428 32.3858 53.8893C32.8787 53.0357 33.9715 52.7428 34.8251 53.2393C35.8037 53.8035 37.043 53.6428 37.8394 52.8464C38.2251 52.4607 38.468 51.9714 38.543 51.4357C38.8644 49.1607 39.868 47 41.4501 45.1857C42.393 44.1071 42.8894 42.7214 42.8537 41.2857C42.7787 38.3535 40.4322 35.9107 37.5072 35.7285C36.518 35.6678 35.5715 35.85 34.693 36.2678C33.8037 36.6893 32.7358 36.3107 32.3144 35.4214C31.8894 34.5321 32.2715 33.4643 33.1608 33.0428C34.5751 32.3714 36.1572 32.0643 37.7322 32.1643C42.4894 32.4607 46.3072 36.4285 46.4251 41.1964C46.4822 43.5285 45.6715 45.7785 44.143 47.5357C43.018 48.825 42.3037 50.3464 42.0822 51.9321C41.8965 53.2428 41.3037 54.4321 40.368 55.3714C39.2001 56.5393 37.6465 57.1464 36.0751 57.1464L36.0715 57.1428Z" fill="%23111111"/>%0A<path d="M62.1142 27.1714C63.4999 29.7072 64.2856 32.6179 64.2856 35.7143V64.2857C64.2856 70.2036 59.4892 75 53.5713 75H24.9999C21.907 75 18.9963 74.2107 16.457 72.8286C19.4856 78.3786 25.3749 82.1429 32.1427 82.1429H48.2535C49.2177 82.1429 49.9999 82.925 49.9999 83.8893C49.9999 84.9107 50.8749 85.7215 51.8927 85.6322C62.8392 84.675 71.4285 75.4822 71.4285 64.2857V42.8572C71.4285 36.0893 67.6642 30.2 62.1142 27.1714Z" fill="%23111111"/>%0A</g>%0A<defs>%0A<clipPath id="clip0_2255_7325">%0A<rect width="200" height="100" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A',XC='data:image/svg+xml,<svg width="371" height="100" viewBox="0 0 371 100" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_2255_7395)">%0A<path d="M237.151 26.0393V72.7215H216.65V26.0393H237.151ZM234.408 70.0465V28.7179H219.254V70.0465H234.408ZM261.495 76.3608H258.819V48.9679H247.575V75.4679H244.899V23.9822H247.575V46.2929H258.819V23.6393H261.495V76.3643V76.3608Z" fill="%23FAFAFA"/>%0A<path d="M299.722 69.2572C302.076 68.7751 304.031 68.1465 305.583 67.3679V70.1143C304.074 70.9393 302.144 71.5786 299.79 72.0358C297.435 72.4929 295.045 72.7215 292.623 72.7215H272.257V25.6965H275.001V69.9751H292.623C294.999 69.9751 297.364 69.7358 299.722 69.2536V69.2572ZM311.69 76.4322V23.6393H314.434V76.3643L311.69 76.4322Z" fill="%23FAFAFA"/>%0A<path d="M340.557 47.9393L358.179 70.4572L356.053 72.1036L339.872 51.1643C338.409 57.3429 336.33 62.2643 333.633 65.925C330.936 69.5857 327.736 71.8536 324.033 72.7215V69.975C327.279 69.15 330.044 66.8643 332.331 63.1107C334.617 59.3572 336.355 54.5179 337.543 48.5893C338.731 42.6643 339.369 36.0393 339.462 28.7143H324.993V26.0357H356.603V28.7143H342.201C342.155 35.9 341.606 42.3072 340.557 47.9357V47.9393ZM369.22 76.3607H366.477V47.4572H352.418V44.7786H366.477V23.6357H369.22V76.3607Z" fill="%23FAFAFA"/>%0A<path d="M92.8784 48.3536V24.2572H123.461V48.3536H92.8784ZM139.371 69.1536V76.3607H94.6621V60.6393H129.087V58.5107H94.5265V51.3036H138.825V67.025H104.54V69.1536H139.375H139.371ZM102.685 32.5643V39.9786H113.726V32.5643H102.685ZM144.719 40.3893H138.822V49.45H128.947V23.6357H138.822V30.8429H144.719V40.3857V40.3893Z" fill="%23FAFAFA"/>%0A<path d="M181.886 47.8715V57.2751C179.097 58.5572 174.73 59.1965 168.791 59.1965H168.174V76.3608H158.299V59.1965H146.096V49.7929H168.93C174.78 49.7929 179.1 49.1536 181.89 47.8715H181.886ZM148.971 34.2786V24.8751H177.634V47.0501H167.76V34.2822H148.971V34.2786ZM194.64 76.3608H184.765V23.6393H194.64V76.3643V76.3608Z" fill="%23FAFAFA"/>%0A<g opacity="0.1">%0A<path d="M26.7512 25C20.8402 25 16.0493 29.7964 16.0493 35.7143V64.2857C16.0493 67.3786 16.8377 70.2893 18.2182 72.8286C20.751 74.2143 23.6584 75 26.7512 75H55.2897C61.2007 75 65.9916 70.2036 65.9916 64.2857V35.7143C65.9916 32.6214 65.2032 29.7107 63.8227 27.1714C61.2899 25.7857 58.3826 25 55.2897 25H26.7512Z" fill="%23FAFAFA"/>%0A</g>%0A<path d="M48.155 17.8571H26.7511C16.9018 17.8571 8.91459 25.8536 8.91459 35.7143V44.0643L2.05822 51.6179C1.64798 52.0679 1.69436 52.775 2.16524 53.1643C4.24141 54.8929 6.52449 56.2214 8.91459 57.1679C8.92529 63.925 12.6817 69.8 18.2181 72.825C16.834 70.2893 16.0492 67.3786 16.0492 64.2821V35.7107C16.0492 29.7929 20.8401 24.9964 26.7511 24.9964H55.2896C58.3789 24.9964 61.2862 25.7857 63.8226 27.1679C60.7975 21.6179 54.915 17.8536 48.155 17.8536V17.8571Z" fill="%23FAFAFA"/>%0A<path d="M63.8227 27.1714C65.2068 29.7072 65.9916 32.6179 65.9916 35.7143V64.2857C65.9916 70.2036 61.2008 75 55.2897 75H26.7513C23.662 75 20.7546 74.2107 18.2183 72.8286C21.2433 78.3786 27.1258 82.1429 33.8859 82.1429H49.978C50.9412 82.1429 51.7224 82.925 51.7224 83.8893C51.7224 84.9107 52.5964 85.7215 53.6131 85.6322C64.5469 84.675 73.1263 75.4822 73.1263 64.2857V42.8572C73.1263 36.0893 69.3663 30.2 63.8227 27.1714Z" fill="%23FAFAFA"/>%0A<path d="M27.1079 40.7143C27.1079 39.5308 26.1496 38.5714 24.9675 38.5714C23.7854 38.5714 22.8271 39.5308 22.8271 40.7143V45C22.8271 46.1834 23.7854 47.1428 24.9675 47.1428C26.1496 47.1428 27.1079 46.1834 27.1079 45V40.7143Z" fill="%23FAFAFA"/>%0A<path d="M37.8097 57.1429C36.768 57.1429 35.7228 56.875 34.7775 56.3286C33.9249 55.8357 33.6323 54.7429 34.1282 53.8893C34.6205 53.0357 35.7121 52.7429 36.5647 53.2393C37.5421 53.8036 38.78 53.6429 39.5755 52.8464C39.9608 52.4607 40.2033 51.9714 40.2782 51.4357C40.5993 49.1607 41.6017 47 43.182 45.1857C44.1238 44.1071 44.6197 42.7214 44.584 41.2857C44.5091 38.3536 42.1653 35.9107 39.2437 35.7286C38.2556 35.6679 37.3102 35.8464 36.4327 36.2679C35.5444 36.6929 34.4778 36.3107 34.0569 35.4214C33.6323 34.5321 34.014 33.4643 34.9023 33.0429C36.315 32.3714 37.8917 32.0679 39.4685 32.1643C44.2201 32.4607 48.0336 36.4286 48.1513 41.1964C48.2084 43.5286 47.3986 45.7786 45.8718 47.5357C44.7481 48.825 44.0346 50.3464 43.8134 51.9357C43.6279 53.2464 43.0358 54.4357 42.1011 55.375C40.9346 56.5429 39.3828 57.15 37.8132 57.15L37.8097 57.1429Z" fill="%23FAFAFA"/>%0A</g>%0A<defs>%0A<clipPath id="clip0_2255_7395">%0A<rect width="371" height="100" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A',JC='data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?>%0A<svg id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" viewBox="0 0 371 100">%0A <!-- Generator: Adobe Illustrator 30.4.0, SVG Export Plug-In . SVG Version: 2.1.4 Build 226) -->%0A <defs>%0A <style>%0A .st0 {%0A fill: none;%0A }%0A%0A .st1 {%0A fill: %234dcdc0;%0A }%0A%0A .st2 {%0A fill: %23499cdf;%0A }%0A%0A .st3 {%0A fill: %23fff;%0A }%0A%0A .st4 {%0A clip-path: url(%23clippath);%0A }%0A </style>%0A <clipPath id="clippath">%0A <rect class="st0" width="371" height="100"/>%0A </clipPath>%0A </defs>%0A <g class="st4">%0A <g>%0A <path class="st3" d="M237.15,26.04v46.68h-20.5V26.04h20.5ZM234.41,70.05V28.72h-15.15v41.33h15.15ZM261.49,76.36h-2.68v-27.39h-11.24v26.5h-2.68V23.98h2.68v22.31h11.24v-22.65h2.68v52.73h0Z"/>%0A <path class="st3" d="M299.72,69.26c2.35-.48,4.31-1.11,5.86-1.89v2.75c-1.51.82-3.44,1.46-5.79,1.92-2.35.46-4.74.69-7.17.69h-20.37V25.7h2.74v44.28h17.62c2.38,0,4.74-.24,7.1-.72h0ZM311.69,76.43V23.64h2.74v52.73l-2.74.07Z"/>%0A <path class="st3" d="M340.56,47.94l17.62,22.52-2.13,1.65-16.18-20.94c-1.46,6.18-3.54,11.1-6.24,14.76-2.7,3.66-5.9,5.93-9.6,6.8v-2.75c3.25-.82,6.01-3.11,8.3-6.86,2.29-3.75,4.02-8.59,5.21-14.52,1.19-5.92,1.83-12.55,1.92-19.87h-14.47v-2.68h31.61v2.68h-14.4c-.05,7.19-.6,13.59-1.64,19.22h0ZM369.22,76.36h-2.74v-28.9h-14.06v-2.68h14.06v-21.14h2.74v52.73Z"/>%0A <path class="st3" d="M92.88,48.35v-24.1h30.58v24.1h-30.58ZM139.37,69.15v7.21h-44.71v-15.72h34.42v-2.13h-34.56v-7.21h44.3v15.72h-34.28v2.13h34.83,0ZM102.68,32.56v7.41h11.04v-7.41h-11.04ZM144.72,40.39h-5.9v9.06h-9.88v-25.81h9.88v7.21h5.9v9.54h0Z"/>%0A <path class="st3" d="M181.89,47.87v9.4c-2.79,1.28-7.16,1.92-13.1,1.92h-.62v17.16h-9.88v-17.16h-12.2v-9.4h22.83c5.85,0,10.17-.64,12.96-1.92h0ZM148.97,34.28v-9.4h28.66v22.17h-9.87v-12.77h-18.79ZM194.64,76.36h-9.88V23.64h9.88v52.73h0Z"/>%0A <path class="st1" d="M48.15,17.86h-21.4c-9.85,0-17.84,7.99-17.84,17.86v21.43c0,9.86,7.99,17.86,17.84,17.86h21.4c9.85,0,17.84-7.99,17.84-17.86v-21.43c0-9.86-7.99-17.86-17.84-17.86Z"/>%0A <path class="st1" d="M36.6,50.74c-9.02,9.94-24.22,10.93-34.44,2.42-.47-.39-.52-1.1-.11-1.55l16.06-17.69,18.49,16.81Z"/>%0A <path class="st1" d="M55.29,25h-21.4c-9.85,0-17.84,8-17.84,17.86v21.43c0,9.86,7.99,17.86,17.84,17.86h16.09c.96,0,1.74.78,1.74,1.75,0,1.02.87,1.83,1.89,1.74,10.93-.96,19.51-10.15,19.51-21.35v-21.43c0-9.86-7.99-17.86-17.84-17.86Z"/>%0A <path class="st2" d="M26.75,25c-5.91,0-10.7,4.8-10.7,10.71v28.57c0,3.09.79,6,2.17,8.54,2.53,1.39,5.44,2.17,8.53,2.17h28.54c5.91,0,10.7-4.8,10.7-10.71v-28.57c0-3.09-.79-6-2.17-8.54-2.53-1.39-5.44-2.17-8.53-2.17h-28.54Z"/>%0A <path class="st3" d="M27.11,40.71c0-1.18-.96-2.14-2.14-2.14s-2.14.96-2.14,2.14v4.29c0,1.18.96,2.14,2.14,2.14s2.14-.96,2.14-2.14v-4.29Z"/>%0A <path class="st3" d="M37.81,57.14c-1.04,0-2.09-.27-3.03-.81-.85-.49-1.15-1.59-.65-2.44.49-.85,1.58-1.15,2.44-.65.98.56,2.22.4,3.01-.39.39-.39.63-.88.7-1.41.32-2.27,1.32-4.44,2.9-6.25.94-1.08,1.44-2.46,1.4-3.9-.07-2.93-2.42-5.38-5.34-5.56-.99-.06-1.93.12-2.81.54-.89.43-1.95.04-2.38-.85-.42-.89-.04-1.96.85-2.38,1.41-.67,2.99-.97,4.57-.88,4.75.3,8.57,4.26,8.68,9.03.06,2.33-.75,4.58-2.28,6.34-1.12,1.29-1.84,2.81-2.06,4.4-.19,1.31-.78,2.5-1.71,3.44-1.17,1.17-2.72,1.78-4.29,1.78h0Z"/>%0A </g>%0A </g>%0A</svg>',QC='data:image/svg+xml,<svg width="371" height="100" viewBox="0 0 371 100" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_2255_7394)">%0A<path d="M237.151 26.0393V72.7215H216.65V26.0393H237.151ZM234.408 70.0465V28.7179H219.254V70.0465H234.408ZM261.495 76.3608H258.819V48.9679H247.575V75.4679H244.899V23.9822H247.575V46.2929H258.819V23.6393H261.495V76.3643V76.3608Z" fill="%23111111"/>%0A<path d="M299.722 69.2572C302.076 68.7751 304.031 68.1465 305.583 67.3679V70.1143C304.074 70.9393 302.144 71.5786 299.79 72.0358C297.435 72.4929 295.045 72.7215 292.623 72.7215H272.257V25.6965H275.001V69.9751H292.623C294.999 69.9751 297.364 69.7358 299.722 69.2536V69.2572ZM311.69 76.4322V23.6393H314.434V76.3643L311.69 76.4322Z" fill="%23111111"/>%0A<path d="M340.557 47.9393L358.179 70.4572L356.053 72.1036L339.872 51.1643C338.409 57.3429 336.33 62.2643 333.633 65.925C330.936 69.5857 327.736 71.8536 324.033 72.7215V69.975C327.279 69.15 330.044 66.8643 332.331 63.1107C334.617 59.3572 336.355 54.5179 337.543 48.5893C338.731 42.6643 339.369 36.0393 339.462 28.7143H324.993V26.0357H356.603V28.7143H342.201C342.155 35.9 341.606 42.3072 340.557 47.9357V47.9393ZM369.22 76.3607H366.477V47.4572H352.418V44.7786H366.477V23.6357H369.22V76.3607Z" fill="%23111111"/>%0A<path d="M92.8784 48.3536V24.2572H123.461V48.3536H92.8784ZM139.371 69.1536V76.3607H94.6621V60.6393H129.087V58.5107H94.5265V51.3036H138.825V67.025H104.54V69.1536H139.375H139.371ZM102.685 32.5643V39.9786H113.726V32.5643H102.685ZM144.719 40.3893H138.822V49.45H128.947V23.6357H138.822V30.8429H144.719V40.3857V40.3893Z" fill="%23111111"/>%0A<path d="M181.886 47.8715V57.2751C179.097 58.5572 174.73 59.1965 168.791 59.1965H168.174V76.3608H158.299V59.1965H146.096V49.7929H168.93C174.78 49.7929 179.1 49.1536 181.89 47.8715H181.886ZM148.971 34.2786V24.8751H177.634V47.0501H167.76V34.2822H148.971V34.2786ZM194.64 76.3608H184.765V23.6393H194.64V76.3643V76.3608Z" fill="%23111111"/>%0A<g opacity="0.1">%0A<path d="M26.7512 25C20.8402 25 16.0493 29.7964 16.0493 35.7143V64.2857C16.0493 67.3786 16.8377 70.2893 18.2182 72.8286C20.751 74.2143 23.6584 75 26.7512 75H55.2897C61.2007 75 65.9916 70.2036 65.9916 64.2857V35.7143C65.9916 32.6214 65.2032 29.7107 63.8227 27.1714C61.2899 25.7857 58.3826 25 55.2897 25H26.7512Z" fill="%23111111"/>%0A</g>%0A<path d="M48.155 17.8571H26.7511C16.9018 17.8571 8.91459 25.8536 8.91459 35.7143V44.0643L2.05822 51.6179C1.64798 52.0679 1.69436 52.775 2.16524 53.1643C4.24141 54.8929 6.52449 56.2214 8.91459 57.1679C8.92529 63.925 12.6817 69.8 18.2181 72.825C16.834 70.2893 16.0492 67.3786 16.0492 64.2821V35.7107C16.0492 29.7929 20.8401 24.9964 26.7511 24.9964H55.2896C58.3789 24.9964 61.2862 25.7857 63.8226 27.1679C60.7975 21.6179 54.915 17.8536 48.155 17.8536V17.8571Z" fill="%23111111"/>%0A<path d="M63.8227 27.1714C65.2068 29.7072 65.9916 32.6179 65.9916 35.7143V64.2857C65.9916 70.2036 61.2008 75 55.2897 75H26.7513C23.662 75 20.7546 74.2107 18.2183 72.8286C21.2433 78.3786 27.1258 82.1429 33.8859 82.1429H49.978C50.9412 82.1429 51.7224 82.925 51.7224 83.8893C51.7224 84.9107 52.5964 85.7215 53.6131 85.6322C64.5469 84.675 73.1263 75.4822 73.1263 64.2857V42.8572C73.1263 36.0893 69.3663 30.2 63.8227 27.1714Z" fill="%23111111"/>%0A<path d="M27.1079 40.7143C27.1079 39.5308 26.1496 38.5714 24.9675 38.5714C23.7854 38.5714 22.8271 39.5308 22.8271 40.7143V45C22.8271 46.1834 23.7854 47.1428 24.9675 47.1428C26.1496 47.1428 27.1079 46.1834 27.1079 45V40.7143Z" fill="%23111111"/>%0A<path d="M37.8097 57.1429C36.768 57.1429 35.7228 56.875 34.7775 56.3286C33.9249 55.8357 33.6323 54.7429 34.1282 53.8893C34.6205 53.0357 35.7121 52.7429 36.5647 53.2393C37.5421 53.8036 38.78 53.6429 39.5755 52.8464C39.9608 52.4607 40.2033 51.9714 40.2782 51.4357C40.5993 49.1607 41.6017 47 43.182 45.1857C44.1238 44.1071 44.6197 42.7214 44.584 41.2857C44.5091 38.3536 42.1653 35.9107 39.2437 35.7286C38.2556 35.6679 37.3102 35.8464 36.4327 36.2679C35.5444 36.6929 34.4778 36.3107 34.0569 35.4214C33.6323 34.5321 34.014 33.4643 34.9023 33.0429C36.315 32.3714 37.8917 32.0679 39.4685 32.1643C44.2201 32.4607 48.0336 36.4286 48.1513 41.1964C48.2084 43.5286 47.3986 45.7786 45.8718 47.5357C44.7481 48.825 44.0346 50.3464 43.8134 51.9357C43.6279 53.2464 43.0358 54.4357 42.1011 55.375C40.9346 56.5429 39.3828 57.15 37.8132 57.15L37.8097 57.1429Z" fill="%23111111"/>%0A</g>%0A<defs>%0A<clipPath id="clip0_2255_7394">%0A<rect width="371" height="100" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A',_i='data:image/svg+xml,<svg width="100" height="100" viewBox="0 0 100 100" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_2255_7305)">%0A<path d="M75.2535 24.7464C68.7892 18.2821 59.8606 14.2857 49.9999 14.2857C40.1392 14.2857 37.5214 24.5964 31.0606 31.0607C24.5964 37.525 14.2856 40.1893 14.2856 50C14.2856 59.8107 18.2821 68.7893 24.7464 75.2536C31.2106 81.7179 40.1392 85.7143 49.9999 85.7143C59.8606 85.7143 68.7892 81.7179 75.2535 75.2536C81.7178 68.7893 85.7142 59.8607 85.7142 50C85.7142 40.1393 81.7178 31.2107 75.2535 24.7464ZM62.6285 62.6286C59.3964 65.8607 54.9321 67.8571 49.9999 67.8571C45.0678 67.8571 40.6035 65.8571 37.3714 62.6286C34.1392 59.3964 32.1428 54.9321 32.1428 50C32.1428 45.0678 34.1428 40.6036 37.3714 37.3714C40.6035 34.1393 45.0678 32.1428 49.9999 32.1428C54.9321 32.1428 59.3964 34.1428 62.6285 37.3714C65.8606 40.6036 67.8571 45.0678 67.8571 50C67.8571 54.9321 65.8571 59.3964 62.6285 62.6286Z" fill="%23FAFAFA"/>%0A</g>%0A<defs>%0A<clipPath id="clip0_2255_7305">%0A<rect width="100" height="100" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A';const Sn={text:"--pass-card-text",sub:"--pass-card-sub",copyright:"--pass-card-copyright"},hr=new WeakMap;function eg(e){if(e)return hr.get(e)}function en(e,n){e&&(e.style.setProperty(Sn.text,n.text),e.style.setProperty(Sn.sub,n.sub),n.copyrightColor&&e.style.setProperty(Sn.copyright,n.copyrightColor),hr.set(e,n))}function tn(e){e&&(e.style.removeProperty(Sn.text),e.style.removeProperty(Sn.sub),e.style.removeProperty(Sn.copyright),hr.delete(e))}const wi={text:"var(--color-pureBlack)",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"#1a1a1a"};function ki(e={}){const n=at(wi,en,tn);return t.jsxs("div",{ref:n,className:"pass-card-bg pass-card-bg-two-circle","aria-hidden":"true",children:[t.jsx("div",{className:"pass-card-bg-two-circle__c1"}),t.jsx("div",{className:"pass-card-bg-two-circle__c3"}),t.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-two-circle__symbol",style:{"--symbol-url":`url("${_i}")`}})]})}const Ai="M75.2535 24.7464C68.7892 18.2821 59.8606 14.2857 49.9999 14.2857C40.1392 14.2857 37.5214 24.5964 31.0606 31.0607C24.5964 37.525 14.2856 40.1893 14.2856 50C14.2856 59.8107 18.2821 68.7893 24.7464 75.2536C31.2106 81.7178 40.1392 85.7143 49.9999 85.7143C59.8606 85.7143 68.7892 81.7178 75.2535 75.2536C81.7178 68.7893 85.7142 59.8607 85.7142 50C85.7142 40.1393 81.7178 31.2107 75.2535 24.7464Z";var ta='data:image/svg+xml,<svg width="100" height="100" viewBox="0 0 100 100" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_2175_65181)">%0A<path d="M75.2535 24.7464C68.7892 18.2821 59.8606 14.2857 49.9999 14.2857C40.1392 14.2857 37.5214 24.5964 31.0606 31.0607C24.5964 37.525 14.2856 40.1893 14.2856 50C14.2856 59.8107 18.2821 68.7893 24.7464 75.2536C31.2106 81.7178 40.1392 85.7143 49.9999 85.7143C59.8606 85.7143 68.7892 81.7178 75.2535 75.2536C81.7178 68.7893 85.7142 59.8607 85.7142 50C85.7142 40.1393 81.7178 31.2107 75.2535 24.7464ZM62.6285 62.6286C59.3964 65.8607 54.9321 67.8571 49.9999 67.8571C45.0678 67.8571 40.6035 65.8571 37.3714 62.6286C34.1392 59.3964 32.1428 54.9321 32.1428 50C32.1428 45.0678 34.1428 40.6036 37.3714 37.3714C40.6035 34.1393 45.0678 32.1428 49.9999 32.1428C54.9321 32.1428 59.3964 34.1428 62.6285 37.3714C65.8606 40.6036 67.8571 45.0678 67.8571 50C67.8571 54.9321 65.8571 59.3964 62.6285 62.6286Z" fill="url(%23paint0_linear_2175_65181)"/>%0A</g>%0A<defs>%0A<linearGradient id="paint0_linear_2175_65181" x1="29.6392" y1="29.6393" x2="75.2535" y2="75.2536" gradientUnits="userSpaceOnUse">%0A<stop offset="0.2" stop-color="%23499CDF"/>%0A<stop offset="0.8" stop-color="%234DCDC0"/>%0A</linearGradient>%0A<clipPath id="clip0_2175_65181">%0A<rect width="100" height="100" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A';const tg={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"var(--color-main)"},ng=[{scale:1,opacity:.55},{scale:2,opacity:.4},{scale:3.1,opacity:.28},{scale:4.5,opacity:.18},{scale:6,opacity:.1}];function Ni(e={}){const n=at(tg,en,tn),a="var(--color-main)",r=270,o=170;return t.jsxs("div",{ref:n,className:"pass-card-bg pass-card-bg-sound-move","aria-hidden":"true",children:[t.jsx("svg",{className:"pass-card-bg-sound-move__svg",viewBox:"0 0 300 189",preserveAspectRatio:"xMidYMid meet",xmlns:"http://www.w3.org/2000/svg",children:ng.map(({scale:i,opacity:l},c)=>t.jsx("g",{transform:`translate(${r} ${o}) scale(${i}) translate(-50 -50)`,opacity:l,children:t.jsx("path",{d:Ai,fill:"none",stroke:a,strokeWidth:"1.5",vectorEffect:"non-scaling-stroke"})},c))}),t.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-sound-move__symbol",style:{"--symbol-url":`url("${ta}")`}})]})}const ag={text:"#ffffff",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",logoColor:"_white",copyrightColor:"#ffffff"},rg=[{scale:1,opacity:.55},{scale:2,opacity:.4},{scale:3.1,opacity:.28},{scale:4.5,opacity:.18},{scale:6,opacity:.1}];function og(e={}){const n=at(ag,en,tn),a="#ffffff",r=270,o=170;return t.jsxs("div",{ref:n,className:"pass-card-bg pass-card-bg-sound-move-v1","aria-hidden":"true",children:[t.jsx("svg",{className:"pass-card-bg-sound-move-v1__svg",viewBox:"0 0 300 189",preserveAspectRatio:"xMidYMid meet",xmlns:"http://www.w3.org/2000/svg",children:rg.map(({scale:i,opacity:l},c)=>t.jsx("g",{transform:`translate(${r} ${o}) scale(${i}) translate(-50 -50)`,opacity:l,children:t.jsx("path",{d:Ai,fill:"none",stroke:a,strokeWidth:"1.5",vectorEffect:"non-scaling-stroke"})},c))}),t.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-sound-move-v1__symbol",style:{"--symbol-url":`url("${_i}")`}})]})}const sg={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"var(--color-main)"};function ig(e={}){const n=at(sg,en,tn);return t.jsxs("div",{ref:n,className:"pass-card-bg pass-card-bg-talk","aria-hidden":"true",children:[t.jsx("div",{className:"pass-card-bg-talk__shape pass-card-bg-talk__shape--left"}),t.jsx("div",{className:"pass-card-bg-talk__shape pass-card-bg-talk__shape--right"}),t.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-talk__symbol",style:{"--symbol-url":`url("${ta}")`}})]})}const lg={Logo_speechear_kr:{"":dr,_white:KC,_textWhite:YC,_black:ZC},Logo_speechearManager_kr:{"":pr,_white:XC,_textWhite:JC,_black:QC}};function cg(e,n){if(e)return lg[e]?.[n??""]??void 0}const ug={speechear:dr,manager:pr},dg={speechear:"Logo_speechear_kr",manager:"Logo_speechearManager_kr"},Bi=10;function pg(e,n){if(e<=0)return n("passCard.remainingSecond",{n:0});const a=Math.floor(e/86400);if(a>0)return n("passCard.remainingDay",{n:a});const r=Math.floor(e/3600);if(r>0)return n("passCard.remainingHour",{n:r});const o=Math.floor(e/60);return o>0?n("passCard.remainingMinute",{n:o}):n("passCard.remainingSecond",{n:Math.floor(e)})}function hg(e,n,a){if(e==="manager"){const r=/년/.test(n)||/yr|year/i.test(n)||/1년|365/.test(n),o=a==="\uC624\uD508\uD2B9\uAC00"||a===Tt.t("passCard.specialLabel");return r?t.jsx(ig,{}):o?t.jsx(og,{}):t.jsx(Ni,{})}return t.jsx(ki,{})}function Si({product:e,showPrice:n=!1,plan:a,type:r,endDate:o,remainingSeconds:i,state:l="active",bg:c,bgOnly:u=!1,textColor:d,subColor:p,copyrightColor:h,logoSrc:m,label:b,price:g,originalPrice:f,discountLabel:C,onUse:v,onRefund:x,onDelete:w}){const{t:y}=me.useTranslation(),k=e?xi(e):void 0,_=r??k?.type??"speechear",A=a??k?.plan??"\uC774\uC6A9\uAD8C",T=b??k?.label,N=g??(n?k?.price:void 0),D=f??(n?k?.originalPrice:void 0),H=C??k?.discountLabel,F=s.useMemo(()=>{if(N)return null;const Z=e?.durationDays??GC(e?.code);if(!Z||Z<=0)return null;const ce=Z*86400;let J;if(i!=null)J=i;else if((l==="active"||l==="expired")&&o){const we=new Date(o).getTime();if(Number.isNaN(we))return null;const de=new Date;de.setHours(0,0,0,0);const Ce=new Date(we);Ce.setHours(0,0,0,0);const xe=Math.round((Ce.getTime()-de.getTime())/864e5);J=Math.max(0,xe)*86400}else l==="expired"?J=0:J=ce;const ge=Math.max(0,Math.min(100,Math.floor(Math.min(J,ce)/ce*100)));return l==="pending"&&ge>=100?null:{percent:ge,remainingLabel:pg(J,y)}},[N,l,o,i,e?.durationDays,e?.code,y]),B=s.useRef(null),[I,E]=s.useState({}),[te,L]=s.useState(null),O=!!(v||x||w),ee=s.useRef(!1),Y=s.useRef(void 0),[K,R]=s.useState(m);s.useLayoutEffect(()=>{R(m)},[m]),s.useLayoutEffect(()=>{const Z=B.current;Z&&(d!==void 0&&Z.style.setProperty("--pass-card-text",d),p!==void 0&&Z.style.setProperty("--pass-card-sub",p),h!==void 0&&Z.style.setProperty("--pass-card-copyright",h))},[d,p,h]),s.useLayoutEffect(()=>{const Z=B.current;if(!Z)return;const ce=eg(Z);if(!m){const J=dg[_],ge=l==="expired"?"_black":ce?.logoColor??"",we=cg(J,ge);R(we)}},[c,m,_,l]);const j=Z=>{const ce=B.current;if(!ce)return null;const{left:J,top:ge,width:we,height:de}=ce.getBoundingClientRect(),Ce=(Z.clientX-J)/we-.5;return{rotateX:-((Z.clientY-ge)/de-.5)*Bi,rotateY:Ce*Bi}},M=(Z,ce)=>{const J=ce*-.7,ge=Z*.7+10,we=20+(Math.abs(Z)+Math.abs(ce))*.4;return`${J}px ${ge}px ${we}px rgba(0, 0, 0, 0.18)`},V=s.useCallback(Z=>{ee.current=!0,clearTimeout(Y.current),Y.current=setTimeout(()=>{ee.current=!1},200);const ce=j(Z);ce&&E({transform:`perspective(800px) rotateX(${ce.rotateX}deg) rotateY(${ce.rotateY}deg) scale3d(1.03, 1.03, 1.03)`,boxShadow:M(ce.rotateX,ce.rotateY),transition:"transform 0.25s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.25s cubic-bezier(0.23, 1, 0.32, 1)"})},[]),P=s.useCallback(Z=>{const ce=j(Z);if(!ce)return;const J=ee.current?"transform 0.2s ease, box-shadow 0.2s ease":"none";E({transform:`perspective(800px) rotateX(${ce.rotateX}deg) rotateY(${ce.rotateY}deg) scale3d(1.03, 1.03, 1.03)`,boxShadow:M(ce.rotateX,ce.rotateY),transition:J})},[]),$=s.useCallback(()=>{clearTimeout(Y.current),ee.current=!1,E({transform:"perspective(800px) rotateX(0deg) rotateY(0deg) scale3d(1, 1, 1)",boxShadow:"0px 4px 16px rgba(0, 0, 0, 0.08)",transition:"transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.5s cubic-bezier(0.23, 1, 0.32, 1)"})},[]),W=s.useCallback(()=>L(null),[]),se=s.useMemo(()=>{const Z=A.replace("\uC774\uC6A9\uAD8C","").trim(),ce=Z.match(/^(.*?)(일|년)$/);return ce?t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"h0 pass-card__plan-number",children:ce[1]}),t.jsx("span",{className:"h5b pass-card__plan-unit",children:ce[2]==="\uB144"?y("passCard.unitYear","\uB144"):y("passCard.unitDay","\uC77C")})]}):t.jsx("span",{className:"h0",children:Z})},[A,y]),ae=s.useMemo(()=>{const Z=Jn(N);if(!Z)return null;const ce=Z.match(/^([^\d]*)([\d.,]+)(.*)$/);if(!ce)return t.jsx("span",{className:"h1",children:Z});const[,J,ge,we]=ce;return t.jsxs(t.Fragment,{children:[J&&t.jsx("span",{className:"h5 pass-card__price-symbol",children:J}),t.jsx("span",{className:"h1 pass-card__price-amount",children:ge}),we.trim()&&t.jsx("span",{className:"h5 pass-card__price-symbol",children:we.trim()})]})},[N]),le=s.useCallback(()=>{O&&L(Z=>{if(Z)return null;const ce=B.current?.getBoundingClientRect();if(!ce)return null;const J=50;return{left:ce.left,right:ce.right,width:ce.width,height:ce.height,x:ce.x,y:ce.y+J,top:ce.top+J,bottom:ce.bottom+J}})},[O]),he=s.useCallback(Z=>{O&&(Z.key==="Enter"||Z.key===" ")&&(Z.preventDefault(),le())},[O,le]),ve=[{items:[...v?[{label:y("passCard.menu.use","\uC0AC\uC6A9\uD558\uAE30"),icon:"play",onClick:()=>{v(),L(null)},closeOnSelect:!0}]:[],...x?[{label:y("passCard.menu.refund","\uD658\uBD88\uD558\uAE30"),icon:"rotate-ccw",onClick:()=>{x(),L(null)},closeOnSelect:!0}]:[],...w?[{label:y("passCard.menu.delete","\uC0AD\uC81C\uD558\uAE30"),icon:"trash-2",onClick:()=>{w(),L(null)},closeOnSelect:!0}]:[]]}];return t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"pass-card-frame",children:t.jsxs("div",{ref:B,className:`pass-card pass-card--${l}${O?" pass-card--clickable":""}`,style:I,onMouseEnter:V,onMouseMove:P,onMouseLeave:$,onClick:le,onKeyDown:O?he:void 0,role:O?"button":void 0,tabIndex:O?0:void 0,children:[c??hg(_,A,T),!u&&t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"pass-card__top",children:t.jsxs("div",{className:"pass-card__top-left",children:[t.jsx("img",{src:K??ug[_],className:"pass-card__logo",alt:_==="manager"?y("header.logoManager","\uB9D0\uADC0\uB9E4\uB2C8\uC800 \uB85C\uACE0"):y("header.logoMalgwi","\uB9D0\uADC0 \uB85C\uACE0")}),t.jsxs("div",{className:"pass-card__plan",children:[t.jsx("div",{children:se}),t.jsx("span",{className:"h5b pass-card__plan-suffix",children:T?y("passCard.labeledPlan",{label:T}):y("passCard.planSuffix","\uC774\uC6A9\uAD8C")})]})]})}),N?t.jsxs("div",{className:"pass-card__price-area",children:[H&&t.jsx("span",{className:"pass-card__discount body-3",children:H}),t.jsxs("div",{className:"pass-card__price",children:[D&&t.jsx("span",{className:"pass-card__price-original body-3",children:Jn(D)}),ae]})]}):F?t.jsxs("div",{className:"pass-card__usage",children:[t.jsx("span",{className:"h5b pass-card__usage-remaining",children:F.remainingLabel}),t.jsxs("span",{className:"pass-card__usage-percent",children:[t.jsx("span",{className:"h1 pass-card__usage-value",children:F.percent}),t.jsx("span",{className:"h5b pass-card__usage-symbol",children:"%"})]})]}):t.jsx("div",{className:"pass-card__copyright caption-2",children:"\xA9 IHAB Corp. All rights reserved."})]})]})}),te&&t.jsx(pn,{anchorRect:te,onClose:W,ariaLabel:y("tooltip.menu","\uBA54\uB274"),children:t.jsx(_a,{columns:ve,onClose:W,size:"small"})})]})}const mg={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"#1a1a1a"};function fg(e={}){const n=`passcard-sound-line-grad-${s.useId()}`,a=at(mg,en,tn);return t.jsxs("div",{ref:a,className:"pass-card-bg pass-card-bg-sound-line","aria-hidden":"true",children:[t.jsxs("svg",{className:"pass-card-bg-sound-line__svg",viewBox:"0 0 500 300",preserveAspectRatio:"xMidYMid slice",xmlns:"http://www.w3.org/2000/svg",children:[t.jsx("defs",{children:t.jsxs("linearGradient",{id:n,x1:"0",y1:"0",x2:"1",y2:"0",children:[t.jsx("stop",{offset:"20%",stopColor:"var(--color-main)"}),t.jsx("stop",{offset:"80%",stopColor:"var(--color-sub)"})]})}),t.jsx("g",{transform:"translate(25, 45)",children:t.jsx("path",{d:"M -30 150 C 40 80, 100 220, 160 150 S 280 80, 340 150 S 460 220, 510 150",fill:"none",stroke:`url(#${n})`,strokeWidth:"50",strokeLinecap:"round"})})]}),t.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-sound-line__symbol",style:{"--symbol-url":`url("${ta}")`}})]})}const Cg={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"var(--color-main)"};function gg(e={}){const n=at(Cg,en,tn);return t.jsxs("div",{ref:n,className:"pass-card-bg pass-card-bg-talk-v1","aria-hidden":"true",children:[t.jsx("div",{className:"pass-card-bg-talk-v1__shape pass-card-bg-talk-v1__shape--left"}),t.jsx("div",{className:"pass-card-bg-talk-v1__shape pass-card-bg-talk-v1__shape--right"}),t.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-talk-v1__symbol",style:{"--symbol-url":`url("${ta}")`}})]})}function bg(e,n){if(e){if(n==="manager_pro")return t.jsx(gg,{});if(n==="manager_standard")return t.jsx(fg,{});if(n==="manager_lite")return t.jsx(Ni,{})}}function yg(e){const n=Jn(e);if(!n)return null;const a=n.match(/^([^\d]*)([\d.,]+)(.*)$/);if(!a)return n;const[,r,o,i]=a;return t.jsxs(t.Fragment,{children:[r&&t.jsx("span",{className:"payment-plan__pricing-symbol h4",children:r}),o,i.trim()&&t.jsx("span",{className:"payment-plan__pricing-symbol h4",children:i.trim()})]})}function vg(e){const{t:n}=me.useTranslation(),a=n("payment.plan.tierFallback",{defaultValue:"\uC774\uC6A9\uAD8C"}),r=n("payment.plan.openPromo",{defaultValue:"\uC624\uD508 \uD2B9\uAC00"}),{plan:o,onSelect:i,period:l="monthly",ownedCodes:c}=e||{},u=y=>!!y&&!!c?.includes(y),d=y=>y.onceOnly??/오픈\s*특가/.test(y.label??""),p=(o.tiers||[]).some(y=>d(y)&&u(y.code)),h=y=>{const k=y.prices?y.prices[l]:y.price;return k?(o.tiers||[]).some(_=>!!_.badge&&_.originals?.[l]===k):!1},m=o.colorToken?`var(--color-${o.colorToken})`:"var(--color-gray)",b=n("payment.plan.freePrice","\uBB34\uB8CC"),g=n("payment.products.mgrEnterprise.tier.price","\uBB38\uC758"),f=y=>y.prices?y.prices[l]:y.price,C=(o.tiers||[]).length>0&&(o.tiers||[]).every(y=>{const k=f(y);return k==="\uBB34\uB8CC"||k===b||k==="0\uC6D0"||typeof k=="string"&&/\d/.test(k)&&!/[1-9]/.test(k)}),v=(o.tiers||[]).length>0&&(o.tiers||[]).every(y=>{const k=f(y);return k==="\uBB38\uC758"||k===g}),x=o.group==="org",w=x?"manager":"speechear";return t.jsxs("div",{className:"payment-plan__card",style:{borderColor:m,"--plan-color":m},children:[o.cardBadge&&t.jsx("div",{className:"payment-plan__card-badge",children:t.jsx(rt,{label:o.cardBadge,variant:"main",size:"medium",fill:"soft"})}),t.jsxs("div",{className:"payment-plan__title",children:[t.jsx("p",{className:"payment-plan__quote body-3b",style:{color:m},children:o.quote||"\xA0"}),t.jsx("h3",{className:"payment-plan__title-heading h1",children:o.tier??o.title}),t.jsx("p",{className:"payment-plan__subtitle body-3",children:o.subtitle})]}),t.jsxs("div",{className:"payment-plan__box",children:[t.jsx("span",{className:"payment-plan__box-title body-3b",children:n("payment.plan.recommendedFor","\uC774\uB7F0 \uBD84\uAED8 \uCD94\uCC9C\uD569\uB2C8\uB2E4.")}),t.jsx("ul",{className:"payment-plan__feature-list",children:(o.recommendedFor||[]).map((y,k)=>t.jsxs("li",{className:"payment-plan__feature-item body-3",children:[t.jsx(Ve,{icon:"check",size:18,className:"payment-plan__feature-check",wrapperStyle:{color:m}}),y]},k))})]}),t.jsxs("div",{className:"payment-plan__box",children:[t.jsx("span",{className:"payment-plan__box-title body-3b",children:n("payment.plan.features","\uD575\uC2EC \uAE30\uB2A5")}),t.jsx("ul",{className:"payment-plan__feature-list",children:(o.features||[]).map((y,k)=>t.jsxs("li",{className:"payment-plan__feature-item body-3",children:[t.jsx(Ve,{icon:"check",size:18,className:"payment-plan__feature-check",wrapperStyle:{color:m}}),y]},k))})]}),t.jsx("div",{className:"payment-plan__card-pricing",children:C?null:v?t.jsx(ie,{htmlType:"button",className:"payment-plan__contact-button",label:n("payment.plan.contact",{defaultValue:"\uBB38\uC758\uD558\uAE30"}),variant:"main",size:56,onClick:()=>o.tiers?.[0]&&i?.({...o.tiers[0],productId:o.id,productTitle:o.title})}):t.jsx(t.Fragment,{children:t.jsx("div",{className:"payment-plan__pricing-list",children:(o.tiers||[]).map(y=>{const k=y.label||a,_=d(y),A=_||y.openPromo===!0,T=k.replace(/^오픈\s*특가\s*/,"")||a,N=y.prices?y.prices[l]:y.price,D=y.badge?A?`${r}
832
+ ${y.badge}`:y.badge:void 0;if(_&&u(y.code))return null;if(!y.badge&&!p)return h(y)?null:t.jsxs("div",{className:`payment-plan__pricing-row payment-plan__pricing-row--static${y.highlight?" payment-plan__pricing-row--highlight":""}`,children:[t.jsx("div",{className:"payment-plan__pricing-row-title",children:t.jsx("div",{className:"payment-plan__pricing-row-label h5b",children:y.label})}),t.jsx("div",{className:"payment-plan__pricing-row-price",children:t.jsx("span",{className:"payment-plan__pricing-current h1",children:yg(N)})})]},y.id);const H=o.tier??(x?o.title:void 0),F=t.jsx(Si,{showPrice:!0,product:{type:w,code:y.code,name:T,label:H,price:N,originalPrice:y.originals?.[l]??void 0,discountLabel:D},bg:bg(x,o.id)}),B=()=>i?.({...y,productId:o.id,productTitle:o.title,preview:F});return t.jsx("div",{className:"payment-plan__pricing-card",onClick:B,onKeyDown:i?I=>{I.target===I.currentTarget&&(I.key==="Enter"||I.key===" ")&&(I.preventDefault(),B())}:void 0,role:i?"button":void 0,tabIndex:i?0:void 0,children:F},y.id)})})})})]})}function xg({variant:e="default"}){return t.jsxs("div",{className:`pass-card-bg pass-card-bg--${e}`,"aria-hidden":"true",children:[t.jsx("div",{className:"pass-card-bg__circle pass-card-bg__circle--1"}),t.jsx("div",{className:"pass-card-bg__circle pass-card-bg__circle--2"}),t.jsx("div",{className:"pass-card-bg__circle pass-card-bg__circle--3"})]})}var mr='data:image/svg+xml,<svg width="264" height="100" viewBox="0 0 264 100" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_2079_3030)">%0A<path d="M60.9019 24.7464C54.4446 18.2821 45.5257 14.2857 35.6757 14.2857C25.8256 14.2857 23.2106 24.5964 16.7569 31.0607C10.2996 37.5214 0 40.1857 0 50C0 59.8143 3.99211 68.7893 10.4494 75.2536C16.9067 81.7178 25.8256 85.7143 35.6757 85.7143C45.5257 85.7143 54.4446 81.7178 60.9019 75.2536C67.3592 68.7893 71.3513 59.8607 71.3513 50C71.3513 40.1393 67.3592 31.2107 60.9019 24.7464ZM48.2906 62.6286C45.0619 65.8607 40.6025 67.8571 35.6757 67.8571C30.7489 67.8571 26.2894 65.8571 23.0608 62.6286C19.8321 59.3964 17.8378 54.9321 17.8378 50C17.8378 45.0678 19.8357 40.6036 23.0608 37.3714C26.2894 34.1393 30.7489 32.1428 35.6757 32.1428C40.6025 32.1428 45.0619 34.1428 48.2906 37.3714C51.5192 40.6036 53.5135 45.0678 53.5135 50C53.5135 54.9321 51.5157 59.3964 48.2906 62.6286Z" fill="url(%23paint0_linear_2079_3030)"/>%0A<path d="M106.735 74.8322H93.6274V24.8322H106.735V74.8322Z" fill="%23111111"/>%0A<path d="M113.495 24.8322H126.602V44.5143H145.022V24.8322H158.197V74.8322H145.022V55.15H126.602V74.8322H113.495V24.8322Z" fill="%23111111"/>%0A<path d="M163.027 74.8322L179.652 24.8322H197.519L214.076 74.8322H199.934L196.969 65.025H180.205L177.241 74.8322H163.031H163.027ZM193.933 55.0786L188.76 38.2964H188.346L183.241 55.0786H193.933Z" fill="%23111111"/>%0A<path d="M218.906 24.8322H240.29C251.674 24.8322 257.675 29.7357 257.675 37.4C257.675 42.925 253.743 47.1393 248.085 48.3107V48.7929C254.364 49 259.605 53.6286 259.605 60.7393C259.605 68.8893 252.983 74.8286 242.081 74.8286H218.902V24.8322H218.906ZM244.157 40.1643C244.157 36.9857 241.674 35.1929 238.085 35.1929H232.013V45.1393H237.878C241.535 45.1393 244.157 43.3429 244.157 40.1679V40.1643ZM245.741 59.0857C245.741 55.425 243.119 53.3536 238.913 53.3536H232.013V64.2643H238.706C243.397 64.2643 245.741 62.4679 245.741 59.0857Z" fill="%23111111"/>%0A</g>%0A<defs>%0A<linearGradient id="paint0_linear_2079_3030" x1="15.337" y1="29.6393" x2="60.9512" y2="75.2042" gradientUnits="userSpaceOnUse">%0A<stop offset="0.2" stop-color="%23499CDF"/>%0A<stop offset="0.8" stop-color="%234DCDC0"/>%0A</linearGradient>%0A<clipPath id="clip0_2079_3030">%0A<rect width="264" height="100" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A';const Di={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"#c9c9c9"};function _g(){const e=at(Di,en,tn);return t.jsx("div",{ref:e,className:"pass-card-bg pass-card-bg-ihab","aria-hidden":"true",children:t.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-ihab__symbol-top",style:{"--symbol-url":`url("${mr}")`}})})}const Ti={text:"#ffffff",sub:"var(--color-lightGray)",logoBase:"Logo_speechearManager_kr",logoColor:"_white",copyrightColor:"#ffffff"};function wg(e={}){const n=at(Ti,en,tn);return t.jsxs("div",{ref:n,className:"pass-card-bg pass-card-bg-left-color-grid","aria-hidden":"true",children:[t.jsx("div",{className:"pass-card-bg-left-color-grid__bar"}),t.jsx("div",{className:"pass-card-bg-left-color-grid__grid"}),t.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-left-color-grid__symbol",style:{"--symbol-url":`url("${ta}")`}})]})}function ji({keys:e,anchor:n="top-right",scale:a,className:r=""}){const o=Array.isArray(e)?e:[e];return t.jsx("span",{className:ye("shortcut-badge",`shortcut-badge--${n}`,r),style:a===void 0?void 0:{"--shortcut-badge-scale":String(a)},children:o.map((i,l)=>t.jsxs("span",{className:"shortcut-badge__group",children:[l>0&&t.jsx("span",{className:"shortcut-badge__plus",children:"+"}),t.jsx("kbd",{className:"shortcut-badge__key",children:i})]},`${i}-${l}`))})}const na=(e,n,a)=>e+(n-e)*a;function kg({speakers:e,size:n=300,viewT:a=0,activeSpeakerId:r=null,playedIds:o,selectedId:i=null,answerId:l=null,showFeedback:c=!1,pulseSelected:u=!1,pulseSelectedDuration:d,pulseScale:p,clickable:h=!1,onSelectSpeaker:m,buttonSize:b=40,showIcon:g=!0,onCenterClick:f,centerLabel:C,centerDisabled:v=!1,centerAttention:x=!1,shortcutAnchor:w="top-right",shortcutScale:y,scaleShortcut:k=!1}){const{t:_}=me.useTranslation(),A=Math.max(0,Math.min(1,a)),T=n/2,N=110/300,D=.18,H=J=>n*(N+(J-1)*D),F=J=>{const ge=H(J.row??1),we=J.angleDeg*Math.PI/180;return{x:T+ge*Math.cos(we),y:T+ge*Math.sin(we)}},B=Math.max(...e.map(J=>J.row??1),1),I=n*.08,E=n*.1,te=n*.24,L=n-2*I,O=n-E-te,ee=n-te/2,Y=s.useMemo(()=>[...new Set(e.map(J=>J.deg))].sort((J,ge)=>J-ge),[e]),K=Y.length,R=Math.max(68,K>1?L/(K-1):0),j=s.useMemo(()=>new Map(Y.map((J,ge)=>[J,ge])),[Y]),M=J=>{const ge=j.get(J.deg)??0,we=T+(ge-(K-1)/2)*R,de=B>1?Math.min(68,O/(B-1)):0,Ce=de*(B-1),xe=E+(O-Ce)/2,je=B===1?E+O*.4:xe+(B-(J.row??1))*de;return{x:we,y:je}},V=J=>{const ge=F(J),we=M(J);return{x:na(ge.x,we.x,A),y:na(ge.y,we.y,A)}},P={x:T,y:na(T,ee,A)},$=Math.round(b*1.2),W=Math.round(Math.max(16,Math.min(80,b*.7))),se=[],ae=new Map;for(const J of e){const ge=J.row??1;ae.has(ge)||ae.set(ge,[]),ae.get(ge).push(J)}for(const[J,ge]of ae.entries()){if(ge.length<2)continue;const we=[...ge].sort((Le,Ke)=>Le.deg-Ke.deg),de=we.map(Le=>V(Le)),Ce=we.map(Le=>Le.deg),xe=Ce[Ce.length-1]-Ce[0],je=xe/(Ce.length-1),X=360-xe,pe=we.length>=3&&je>0&&X<=je*1.5,Ne=Math.round(H(J)*1e3)/1e3,Me=(Le,Ke,qe,ze)=>{const be=(Ke.angleDeg-Le.angleDeg+540)%360-180;if(be===0)return`L ${ze.x} ${ze.y}`;if(A===0)return`A ${Ne} ${Ne} 0 0 ${be>0?1:0} ${ze.x} ${ze.y}`;const Fe=(Le.angleDeg+be/2)*Math.PI/180,De={x:T+Ne*Math.cos(Fe),y:T+Ne*Math.sin(Fe)},Pe={x:(qe.x+ze.x)/2,y:(qe.y+ze.y)/2},Ae={x:na(De.x,Pe.x,A),y:na(De.y,Pe.y,A)},ot={x:2*Ae.x-Pe.x,y:2*Ae.y-Pe.y};return`Q ${ot.x} ${ot.y} ${ze.x} ${ze.y}`},He=pe?[...we,we[0]]:we,Se=pe?[...de,de[0]]:de;let Ie=`M ${Se[0].x} ${Se[0].y}`;for(let Le=1;Le<Se.length;Le++)Ie+=" "+Me(He[Le-1],He[Le],Se[Le-1],Se[Le]);se.push({key:`arc-${J}`,d:Ie})}const le=s.useMemo(()=>new Set(o??[]),[o]),he=J=>({idle:"",active:_("soundCompass.state.active","\uC18C\uB9AC \uB098\uB294 \uC911"),played:_("soundCompass.state.played","\uB4E4\uC74C"),correct:_("soundCompass.state.correct","\uC815\uB2F5"),wrong:_("soundCompass.state.wrong","\uC624\uB2F5")})[J],ve=J=>{if(r===J.id)return"active";if(c){if(J.id===l)return"correct";if(J.id===i&&i!==l)return"wrong"}return le.has(J.id)?"played":"idle"},Z=J=>r===J.id?"loop":c?J.id===l?"loop":null:u&&J.id===i?"once":null,ce=(J,ge)=>{switch(J){case"played":case"correct":return t.jsx(fo,{size:ge});case"wrong":return t.jsx(Ao,{size:ge});default:return t.jsx(ko,{size:ge})}};return t.jsx("div",{className:"sound-compass",children:t.jsxs("div",{className:"sound-compass__compass-wrap",style:{width:n,height:n},children:[t.jsxs("svg",{width:n,height:n,viewBox:`0 0 ${n} ${n}`,className:"sound-compass__svg",children:[A===0&&e.map(J=>{const{x:ge,y:we}=V(J);return t.jsx("line",{x1:P.x,y1:P.y,x2:ge,y2:we,stroke:"#dde3ec",strokeWidth:"1"},J.id)}),se.map(J=>t.jsx("path",{d:J.d,fill:"none",stroke:"#dde3ec",strokeWidth:"1"},J.key))]}),x&&!v&&t.jsx("div",{className:"sound-compass__pulse sound-compass__pulse--active sound-compass__pulse--center",style:{width:$,height:$,left:P.x-$/2,top:P.y-$/2}}),f?t.jsx("button",{type:"button",className:`sound-compass__center sound-compass__center--button${v?" sound-compass__center--disabled":""}`,style:{width:$,height:$,left:P.x,top:P.y},"aria-label":C,"aria-disabled":v||void 0,tabIndex:v?-1:0,onClick:v?void 0:f,children:t.jsx(Ia,{size:W,color:"currentColor",strokeWidth:1.5})}):t.jsx("div",{className:"sound-compass__center",style:{width:$,height:$,left:P.x,top:P.y},children:t.jsx(Ia,{size:W,color:"currentColor",strokeWidth:1.5})}),e.map((J,ge)=>{const{x:we,y:de}=V(J),Ce=ve(J),xe=Z(J),je={...y!==void 0||k?{"--shortcut-badge-scale":String(y??Math.max(.75,Math.min(3,b/56)))}:null,pointerEvents:h?"auto":"none",cursor:h?"pointer":"default",zIndex:Ce!=="idle"?10:1},X=b,pe=Math.round(Math.max(10,Math.min(56,X*.38))),Ne=Math.round(Math.max(7,Math.min(18,X*.2))),Me=Math.round(Math.max(10,Math.min(56,X*.4))),He=g==="answered"&&(Ce==="played"||Ce==="correct"||Ce==="wrong"),Se=g===!0||He,Ie=!He;return t.jsxs("div",{className:"sound-compass__speaker-pos",style:{...je,left:we-X/2,top:de-X/2},children:[xe&&t.jsx("div",{className:`sound-compass__pulse sound-compass__pulse--${Ce}`+(xe==="once"?" sound-compass__pulse--once":""),style:{width:X,height:X,...xe==="once"&&d!==void 0?{"--sc-pulse-duration-once":`${d}ms`}:null,...p!==void 0?{"--sc-pulse-scale":String(p)}:null}}),t.jsxs("button",{type:"button",tabIndex:h?0:-1,"aria-disabled":h?void 0:!0,onClick:h?()=>m?.(J.id):void 0,className:`sound-compass__speaker-btn sound-compass__speaker-btn--${Ce}`,style:{width:X,height:X},"aria-label":he(Ce)?`${J.label}, ${he(Ce)}`:J.label,"aria-pressed":i!=null?J.id===i:void 0,children:[Se&&ce(Ce,pe),Ie&&t.jsx("span",{className:"sound-compass__speaker-number",style:{fontSize:g===!0?Ne:Me},children:ge+1})]}),J.shortcut&&t.jsx(ji,{keys:J.shortcut,anchor:w,className:"sound-compass__speaker-shortcut"})]},J.id)})]})})}function Ag({children:e,position:n="top-left",size:a=24,className:r=""}){return t.jsx("span",{className:ye("circle-badge","circle-badge--number",`circle-badge--${a}`,`circle-badge--${n}`,r),children:e})}function Ng({orientation:e="horizontal",label:n,className:a=""}){const r=ye("divider",`divider--${e}`,n&&e==="horizontal"?"divider--labeled":"",a);return e==="vertical"?t.jsx("div",{className:r,role:"separator","aria-orientation":"vertical"}):n?t.jsxs("div",{className:r,role:"separator","aria-orientation":"horizontal",children:[t.jsx("span",{className:"divider__line"}),t.jsx("span",{className:"divider__label caption-1",children:n}),t.jsx("span",{className:"divider__line"})]}):t.jsx("div",{className:r,role:"separator","aria-orientation":"horizontal"})}function Ei({checked:e,onChange:n,name:a,value:r,disabled:o=!1,label:i,className:l=""}){const c=s.useId();return t.jsxs("label",{className:`radio${o?" radio--disabled":""} ${l}`.trim(),htmlFor:c,children:[t.jsx("input",{id:c,type:"radio",name:a,value:r,checked:e,disabled:o,onChange:u=>n?.(u.target.checked)}),t.jsx("span",{className:"radio__dot"}),i&&t.jsx("span",{className:"radio__label body-2",children:i})]})}function Bg({options:e,value:n,onChange:a,name:r,disabled:o=!1,direction:i="vertical",className:l="",ariaLabel:c}){const u=s.useId(),d=r??`radio-group-${u}`;return t.jsx("div",{className:`radio-group radio-group--${i} ${l}`.trim(),role:"radiogroup","aria-label":c,children:e.map(p=>t.jsx(Ei,{name:d,value:p.value,checked:n===p.value,disabled:o||p.disabled,label:p.label,onChange:h=>{h&&a?.(p.value)}},p.value))})}const Sg={info:"info",success:"check-circle",warning:"alert-triangle",danger:"alert-circle"};function Dg({tone:e="info",title:n,message:a,children:r,dismissible:o=!1,onDismiss:i,className:l=""}){const{t:c}=me.useTranslation(),[u,d]=s.useState(!1),p=s.useCallback(()=>{d(!0),i?.()},[i]);if(u)return null;const h=ye("alert",`alert--${e}`,l),m=!!n,b=!!(a||r);return t.jsxs("div",{className:h,role:"alert",children:[t.jsxs("div",{className:"alert__body",children:[t.jsxs("div",{className:"alert__header",children:[t.jsx(Ve,{icon:Sg[e],size:20,className:"alert__icon"}),m&&t.jsx("span",{className:"alert__title body-2",children:n}),!m&&b&&t.jsx("div",{className:"alert__message body-3",children:a||r})]}),m&&b&&t.jsx("div",{className:"alert__message alert__message--indented body-3",children:a||r})]}),o&&t.jsx("button",{type:"button",className:"alert__dismiss",onClick:p,"aria-label":c("common.close","\uB2EB\uAE30"),children:"\xD7"})]})}const Tg={ready:"search",guide:"info",error:"circle-alert"};function jg(e,n){const a=n.filter(Boolean);if(a.length===0)return e;const r=[];let o=0,i=0;for(const l of a){const c=e.indexOf(l,o);c<0||(c>o&&r.push(e.slice(o,c)),r.push(t.jsx("strong",{className:"search-summary__em body-2",children:l},i++)),o=c+l.length)}return o<e.length&&r.push(e.slice(o)),r}function Eg({status:e="guide",label:n,children:a,emphasis:r,icon:o,className:i=""}){const l=o===!1?null:o??Tg[e],c=ye("search-summary",`search-summary--${e}`,i),u=n??a,d=typeof u=="string"&&r&&r.length>0?jg(u,r):u;return t.jsxs("div",{className:c,role:"status","aria-live":"polite",children:[l!=null&&t.jsx(Ve,{icon:l,size:18,className:"search-summary__icon"}),t.jsx("span",{className:"search-summary__text body-2",children:d})]})}function aa({title:e,items:n}){const{t:a}=me.useTranslation(),{anchorRect:r,openAt:o,close:i}=xa();return t.jsxs(t.Fragment,{children:[t.jsx(ie,{htmlType:"button",size:24,type:"dot",icon:"info",variant:"transparent-gray",useBorder:!1,selected:!!r,ariaLabel:a("common.info","\uC124\uBA85"),onPointerEnter:l=>o(l.currentTarget),onPointerLeave:i,onFocus:l=>o(l.currentTarget),onBlur:i}),r&&t.jsx(Nn,{title:e,items:n,showIndex:n.length>1,anchorRect:r,onClose:i})]})}function Mg({items:e=[],value:n,onChange:a,className:r="",size:o=40}){const i=s.useId(),{t:l}=me.useTranslation(),c=s.useRef(null),u=e.find(f=>!f.disabled)?.key,d=e.some(f=>f.key===n)?n:u??e[0]?.key,p=e.find(f=>f.key===d&&!f.disabled)?.key??u,h=()=>Array.from(c.current?.querySelectorAll('[role="tab"]:not(:disabled)')??[]),m=(f,C=h())=>{if(C.length===0)return;const v=(f%C.length+C.length)%C.length;C[v]?.focus(),C[v]?.click()},b=f=>{if(!["ArrowRight","ArrowDown","ArrowLeft","ArrowUp","Home","End"].includes(f.key))return;f.preventDefault();const C=h(),v=C.indexOf(f.currentTarget);f.key==="ArrowRight"||f.key==="ArrowDown"?m(v+1,C):f.key==="ArrowLeft"||f.key==="ArrowUp"?m(v-1,C):f.key==="Home"?m(0,C):m(C.length-1,C)},g=e.find(f=>f.key===d);return t.jsxs("div",{className:`tabs ${r}`.trim(),children:[t.jsx("div",{ref:c,className:`tabs__list tabs__list--${o}`,role:"tablist","aria-label":l("tabs.ariaLabel","\uD0ED"),children:e.map(f=>t.jsx("button",{id:`tabs__tab-${i}-${f.key}`,type:"button",role:"tab","aria-selected":f.key===d,"aria-controls":`tabs__panel-${i}-${f.key}`,disabled:f.disabled,tabIndex:f.key===p?0:-1,className:`tabs__tab body-2${f.key===d?" tabs__tab--active":""}`,onClick:()=>a?.(f.key),onKeyDown:b,children:f.label},f.key))}),g&&t.jsx("div",{id:`tabs__panel-${i}-${g.key}`,role:"tabpanel","aria-labelledby":`tabs__tab-${i}-${g.key}`,tabIndex:0,className:"tabs__panel",children:g.panel},g.key)]})}const Lg={xs:12,sm:16,md:20,lg:28,xl:36};function $g(e){const n=e.trim().split(/\s+/).filter(Boolean);return n.length===0?"":n.length===1?[...n[0]].slice(0,2).join("").toUpperCase():([...n[0]][0]+[...n[n.length-1]][0]).toUpperCase()}function Rg({src:e,name:n,size:a="md",shape:r="circle",className:o=""}){const{t:i}=me.useTranslation(),[l,c]=s.useState(null),u=!!e&&l===e,d=n?$g(n):"",p=!!e&&!u,h=!p&&!!d,m=n||i("avatar.ariaLabel","\uC0AC\uC6A9\uC790 \uC544\uBC14\uD0C0");return t.jsxs("span",{className:`avatar avatar--${a} avatar--${r} ${o}`.trim(),role:"img","aria-label":m,children:[p&&t.jsx("img",{className:"avatar__image",src:e,alt:m,onError:()=>c(e??null)}),!p&&h&&t.jsx("span",{className:"avatar__initials","aria-hidden":"true",children:d}),!p&&!h&&t.jsx(Ve,{icon:"user-round",size:Lg[a],className:"avatar__icon"})]})}function Pg(e,n){if(!n)return!0;const a=n.split(",").map(i=>i.trim()).filter(Boolean);if(a.length===0)return!0;const r=e.name.toLowerCase(),o=e.type.toLowerCase();return a.some(i=>{const l=i.toLowerCase();return l.startsWith(".")?r.endsWith(l):l.endsWith("/*")?o.startsWith(l.slice(0,-1)):o===l})}function Ig({onFilesSelected:e,accept:n,multiple:a=!1,disabled:r=!1,showFileList:o=!0,files:i,onRemove:l,className:c=""}){const{t:u}=me.useTranslation(),d=s.useRef(null),[p,h]=s.useState(!1),[m,b]=s.useState([]),g=i??m,f=_=>{if(!_||_.length===0)return;const A=Array.from(_).filter(N=>Pg(N,n));if(A.length===0)return;const T=a?A:A.slice(0,1);if(i===void 0){const N=a?[...g,...T]:T;b(N),e?.(N)}else e?.(T)},C=_=>{_.preventDefault(),!r&&h(!0)},v=_=>{_.preventDefault(),h(!1)},x=_=>{_.preventDefault(),h(!1),!r&&f(_.dataTransfer.files)},w=_=>{f(_.target.files),_.target.value=""},y=()=>{r||d.current?.click()},k=_=>{if(l?.(_),i===void 0){const A=g.filter((T,N)=>N!==_);b(A),l||e?.(A)}};return t.jsxs("div",{className:`file-upload ${c}`.trim(),children:[t.jsxs("div",{className:ye("file-upload__dropzone",p&&"file-upload__dropzone--dragging",r&&"file-upload__dropzone--disabled"),role:"button",tabIndex:r?-1:0,"aria-disabled":r,onClick:y,onKeyDown:_=>{(_.key==="Enter"||_.key===" ")&&(_.preventDefault(),y())},onDragOver:C,onDragLeave:v,onDrop:x,children:[t.jsx(Ve,{icon:"upload",size:24,className:"file-upload__icon"}),t.jsx("span",{className:"file-upload__prompt body-2",children:u("fileUpload.dragPrompt","\uD30C\uC77C\uC744 \uC774\uACF3\uC5D0 \uB4DC\uB798\uADF8\uD558\uC5EC \uC5C5\uB85C\uB4DC")}),t.jsx("button",{type:"button",className:"file-upload__browse-button body-3",disabled:r,onClick:_=>{_.stopPropagation(),y()},children:u("fileUpload.browseButton","\uD30C\uC77C \uC120\uD0DD")}),t.jsx("input",{ref:d,type:"file",className:"file-upload__input",accept:n,multiple:a,disabled:r,onChange:w,tabIndex:-1})]}),o&&g.length>0&&t.jsx("ul",{className:"file-upload__list",children:g.map((_,A)=>t.jsxs("li",{className:"file-upload__list-item body-3",children:[t.jsx("span",{className:"file-upload__file-name body-3",children:_.name}),t.jsx("button",{type:"button",className:"file-upload__remove-button","aria-label":u("fileUpload.removeAriaLabel",{name:_.name}),onClick:()=>k(A),children:t.jsx(Ve,{icon:"x",size:14})})]},`${_.name}-${A}`))})]})}function Fg({items:e,className:n=""}){const{t:a}=me.useTranslation();return t.jsx("nav",{className:`breadcrumb ${n}`.trim(),"aria-label":a("breadcrumb.ariaLabel","\uC774\uB3D9 \uACBD\uB85C"),children:t.jsx("ol",{className:"breadcrumb__list",children:e.map((r,o)=>{const i=o===e.length-1;return t.jsxs("li",{className:"breadcrumb__item",children:[i?t.jsx("span",{className:"breadcrumb__current body-3","aria-current":"page",children:r.label}):t.jsx("button",{type:"button",className:"breadcrumb__link body-3",onClick:r.onClick,children:r.label}),!i&&t.jsx(Ve,{icon:"chevron-right",size:14,className:"breadcrumb__separator"})]},o)})})})}const Og={small:14,medium:20,large:28};function Hg({value:e,onChange:n,max:a=5,readOnly:r=!1,size:o="medium",ariaLabel:i,className:l=""}){const{t:c}=me.useTranslation(),u=r||!n,[d,p]=s.useState(null),h=d??e,m=Og[o],b=y=>{u||n?.(y)},g=y=>{u||p(y)},f=s.useRef(null),C=y=>{const k=Math.min(a,Math.max(1,y));n?.(k),Array.from(f.current?.querySelectorAll("[data-star]")??[]).find(_=>_.dataset.star===String(k))?.focus()},v=y=>{if(!u){switch(y.key){case"ArrowRight":case"ArrowUp":C((e||0)+1);break;case"ArrowLeft":case"ArrowDown":C((e||1)-1);break;case"Home":C(1);break;case"End":C(a);break;default:return}y.preventDefault()}},x=e>=1&&e<=a?Math.round(e):1,w=()=>{u||p(null)};return t.jsx("div",{className:`rating rating--${o}${u?" rating--readOnly":""} ${l}`.trim(),ref:f,onKeyDown:v,role:u?"img":"radiogroup","aria-label":u?c("rating.valueLabel",{value:e,max:a}):i??c("rating.groupLabel","\uBCC4\uC810"),onMouseLeave:w,children:Array.from({length:a},(y,k)=>{const _=k+1,A=Math.max(0,Math.min(1,h-k)),T=A>0&&A<1,N=t.jsxs("span",{className:"rating__star-wrap",children:[t.jsx(Ve,{icon:"star",size:m,className:"rating__star rating__star--empty"}),A>0&&t.jsx("span",{className:`rating__star-fill${T?" rating__star-fill--half":""}`,style:T?{width:`${A*100}%`}:void 0,children:t.jsx(Ve,{icon:"star",size:m,className:"rating__star rating__star--filled"})})]});return u?t.jsx("span",{className:"rating__item","aria-hidden":"true",children:N},_):t.jsx("button",{type:"button",className:"rating__item rating__item--interactive",role:"radio","aria-checked":e===_,"aria-label":c("rating.starLabel",{n:_}),"data-star":_,tabIndex:_===x?0:-1,onClick:()=>b(_),onMouseEnter:()=>g(_),children:N},_)})})}const Vg=20,zg=["#499cdf","#4dcdc0","#2fae9e","#e6b94e","#d9534f","#e06b68","#bfc7d1"];function Wg({value:e,onChange:n,palette:a=zg,size:r=40,className:o="",ariaLabel:i}){const{t:l}=me.useTranslation();return t.jsx("div",{className:`color-picker ${o}`.trim(),role:"group","aria-label":i,children:a.map(c=>{const u=e?.toLowerCase()===c.toLowerCase();return t.jsx("button",{type:"button",className:`color-picker__swatch color-picker__swatch--${r}`,style:{backgroundColor:c},onClick:()=>n(c),"aria-pressed":u,"aria-label":u?`${c} ${l("colorPicker.selected","\uC120\uD0DD\uB428")}`:c,children:u&&t.jsx(Ve,{icon:"check",size:Vg,className:"color-picker__check"})},c)})})}function qg({icon:e,count:n,title:a,className:r="",onClick:o,onMouseEnter:i,onMouseLeave:l}){const c=ye("count-tile",o&&"count-tile--clickable",r);return t.jsxs("div",{className:c,onClick:o,onKeyDown:o?u=>{u.key!=="Enter"&&u.key!==" "||(u.preventDefault(),u.currentTarget.click())}:void 0,onMouseEnter:i,onMouseLeave:l,role:o?"button":"img",tabIndex:o?0:void 0,"aria-label":a?`${a} ${n}`:String(n),children:[t.jsx(Ve,{icon:e,size:20,className:"count-tile__icon"}),t.jsx("span",{className:"count-tile__count h5","aria-hidden":"true",children:n})]})}let ra=0,Mi="",Li="",oa=0;function $i(){return Ri(!1)}function Ug(){return Ri(!0)}function Ri(e){const n=typeof document<"u";ra===0&&n&&(Mi=document.body.style.overflow,document.body.style.overflow="hidden"),e&&n&&(oa===0&&(Li=document.body.style.paddingRight),oa++,document.body.style.paddingRight="0px"),ra++;let a=!1;return()=>{a||(a=!0,ra=Math.max(0,ra-1),e&&n&&(oa=Math.max(0,oa-1),oa===0&&(document.body.style.paddingRight=Li)),ra===0&&n&&(document.body.style.overflow=Mi))}}function Gg(){return t.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round","aria-hidden":!0,children:t.jsx("path",{d:"M6 6l12 12M18 6 6 18"})})}function Kg({open:e,onClose:n,ariaLabel:a,title:r,children:o,size:i="md",closeOnBackdrop:l=!0,closeOnEscape:c=!0,showClose:u=!0,className:d,contentClassName:p}){const{t:h}=me.useTranslation(),m=s.useId(),b=s.useRef(null),g=s.useCallback(()=>n(),[n]);s.useEffect(()=>{if(!e)return;const x=document.activeElement,w=$i(),y=b.current;return y?.focus(),()=>{w();const k=document.activeElement;(!k||k===document.body||y&&y.contains(k))&&x?.focus?.()}},[e]);const f=s.useRef(g),C=s.useRef(c);s.useEffect(()=>{f.current=g,C.current=c}),s.useEffect(()=>{if(e)return An(()=>{C.current&&f.current()})},[e]);const v=s.useRef(!1);return rr(b,e),!e||typeof document>"u"?null:Ft.createPortal(t.jsx("div",{className:ye("dialog",d),onPointerDown:l?x=>{v.current=x.target===x.currentTarget}:void 0,onMouseDown:x=>{x.target===x.currentTarget&&x.preventDefault()},onClick:l?x=>{const w=v.current;v.current=!1,w&&x.target===x.currentTarget&&g()}:void 0,children:t.jsxs("div",{ref:b,role:"dialog","aria-modal":"true","aria-label":r?void 0:a,"aria-labelledby":r?m:void 0,tabIndex:-1,className:ye("dialog__surface",`dialog__surface--${i}`,p),onClick:x=>x.stopPropagation(),children:[r?t.jsx("div",{className:"dialog__header",children:t.jsx("h2",{id:m,className:"dialog__title h4b",children:r})}):null,u?t.jsx("button",{type:"button",className:"dialog__close","aria-label":h("common.close","\uB2EB\uAE30"),onClick:g,children:t.jsx(Gg,{})}):null,t.jsx("div",{className:"dialog__body",children:o})]})}),document.body)}function Yg({columns:e,rows:n,rowKey:a,title:r,toolbar:o,empty:i="\uB4F1\uB85D\uB41C \uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.",loading:l,caption:c,className:u=""}){const d=!l&&n.length===0;return t.jsxs("div",{className:ye("board",u),children:[r||o?t.jsxs("div",{className:"board__head",children:[r?t.jsx("h2",{className:"board__title",children:r}):t.jsx("span",{}),o?t.jsx("div",{className:"board__toolbar",children:o}):null]}):null,t.jsxs("table",{className:"board__table",children:[c?t.jsx("caption",{className:"board__caption",children:c}):null,t.jsx("thead",{children:t.jsx("tr",{children:e.map(p=>t.jsx("th",{scope:"col",className:ye("board__th",`board__cell--${p.headerAlign??p.align??"left"}`),style:p.width?{width:p.width}:void 0,children:p.header},p.key))})}),t.jsx("tbody",{children:l?t.jsx("tr",{children:t.jsx("td",{className:"board__state",colSpan:e.length,children:l})}):d?t.jsx("tr",{children:t.jsx("td",{className:"board__state",colSpan:e.length,children:i})}):n.map((p,h)=>t.jsx("tr",{className:"board__row",children:e.map(m=>t.jsx("td",{className:ye("board__td",`board__cell--${m.align??"left"}`),children:m.render(p,h)},m.key))},a(p,h)))})]})]})}function Zg({name:e,role:n,photo:a,media:r,credentials:o,size:i=190,className:l=""}){return t.jsxs("div",{className:ye("person-card",l),children:[t.jsx("div",{className:"person-card__photo",style:{width:i,height:i},children:r??(a?t.jsx("img",{src:a,alt:n?`${e} ${n}`:e}):null)}),t.jsx("h3",{className:"person-card__name",children:e}),n?t.jsx("p",{className:"person-card__role",children:n}):null,o?.length?t.jsx("ul",{className:"person-card__credentials",children:o.map(c=>t.jsx("li",{children:c},c))}):null]})}function Xg({groups:e,className:n=""}){return t.jsx("div",{className:ye("timeline",n),children:e.map(a=>t.jsxs("section",{className:"timeline__group",children:[t.jsx("h3",{className:"timeline__title",children:a.title}),t.jsx("ul",{className:"timeline__rows",children:a.entries.map((r,o)=>t.jsxs("li",{className:"timeline__row",children:[r.label?t.jsx("span",{className:"timeline__label",children:r.label}):null,t.jsx("div",{className:"timeline__items",children:r.items.map((i,l)=>t.jsx("p",{children:i},l))})]},`${r.label??""}-${o}`))})]},a.title))})}function Jg({title:e,kind:n,body:a,badge:r,badgeSrc:o,footer:i,width:l,className:c=""}){const u=r??(o?t.jsx("img",{src:o,alt:""}):null);return t.jsxs("div",{className:ye("publication-card",c),style:l?{width:l,flexShrink:0}:void 0,children:[u?t.jsx("div",{className:"publication-card__badge","aria-hidden":"true",children:u}):null,t.jsx("h3",{className:"publication-card__title",children:e}),n?t.jsx("p",{className:"publication-card__kind",children:n}):null,t.jsx("p",{className:"publication-card__body",children:a}),i?t.jsx("div",{className:"publication-card__footer",children:i}):null]})}function Qg({logo:e,alt:n,onDone:a,durationMs:r=3e3}){const o=ir(a);return s.useEffect(()=>{const i=setTimeout(()=>o.current?.(),r);return()=>clearTimeout(i)},[r,o]),t.jsx("div",{className:"splash-logo",style:{"--splash-logo-duration":`${r}ms`},"aria-hidden":"true",children:t.jsx("img",{src:e,alt:n,className:"splash-logo__image"})})}function e4({eyebrow:e,eyebrowIndex:n,title:a,description:r,level:o=2,tone:i="dark",className:l=""}){const c=o===1?"h1":"h2";return t.jsxs("div",{className:ye("section-header",`section-header--${i}`,l),children:[e?t.jsxs("p",{className:"section-header__eyebrow",children:[n?t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"section-header__index",children:n}),t.jsx("span",{"aria-hidden":!0,className:"section-header__rule"})]}):null,e]}):null,a?t.jsx(c,{className:"section-header__title",children:a}):null,r?t.jsx("div",{className:"section-header__description",children:r}):null]})}function t4({items:e,className:n=""}){return t.jsx("ul",{className:ye("company-meta",n),children:e.map((a,r)=>t.jsxs("li",{className:"company-meta__item",children:[r>0?t.jsx("span",{"aria-hidden":!0,className:"company-meta__divider",children:"|"}):null,a]},a))})}function Pi({value:e,onChange:n,suggestions:a,openOnFocus:r=!1}){const o=s.useId(),[i,l]=s.useState(!1),[c,u]=s.useState(-1),d=s.useRef(null),p=s.useMemo(()=>{if(!a.length)return[];const v=e??"";return v?a.filter(x=>x.toLowerCase().includes(v.toLowerCase())):r?a:[]},[a,e,r]);s.useEffect(()=>{i||u(-1)},[i]),s.useEffect(()=>()=>{d.current&&clearTimeout(d.current)},[]);const h=c<p.length?c:-1,m=s.useCallback(v=>{n?.(v),l(!1)},[n]),b=s.useCallback(()=>l(!0),[]),g=s.useCallback(()=>{l(!0),u(-1)},[]),f=s.useCallback(()=>{d.current=setTimeout(()=>l(!1),120)},[]),C=s.useCallback(v=>{v.key==="ArrowDown"?(v.preventDefault(),l(!0),u(x=>Math.min(p.length-1,(x<p.length?x:-1)+1))):v.key==="ArrowUp"?(v.preventDefault(),u(x=>Math.max(-1,(x<p.length?x:p.length)-1))):v.key==="Enter"?h>=0&&!v.nativeEvent.isComposing&&m(p[h]):v.key==="Escape"&&i&&(v.preventDefault(),l(!1))},[p,h,i,m]);return{listId:o,open:i,activeIdx:h,filtered:p,handleFocus:b,handleBlur:f,handleInput:g,handleKeyDown:C,handleSelect:m}}const n4=typeof window<"u"?s.useLayoutEffect:s.useEffect;function Dn(e){const{value:n,defaultValue:a,name:r,inputRef:o,onChange:i,label:l,ariaLabel:c,required:u,placeholder:d,type:p="text",disabled:h=!1,readOnly:m=!1,error:b,helperText:g,maxLength:f,size:C=48,variant:v="input",fullWidth:x=!1,newline:w=!1,multiline:y=!1,rows:k=3,leftIcon:_,rightIcon:A,clearable:T=!1,list:N,showCount:D=!0,className:H="",onFocus:F,onBlur:B,onKeyDown:I,onEnter:E,inputMode:te,autoComplete:L,autoFocus:O,suggestions:ee,openOnFocus:Y=!1}=e,{t:K}=me.useTranslation(),R=s.useId();!l&&!c&&zn(`TextField:unnamed:${R}`,"[ihab/TextField] \uC774\uB984\uC774 \uC5C6\uC2B5\uB2C8\uB2E4 \u2014 label \uC774\uB098 ariaLabel \uC911 \uD558\uB098\uB97C \uC8FC\uC138\uC694. placeholder \uB294 \uC774\uB984\uC744 \uB300\uC2E0\uD558\uC9C0 \uBABB\uD569\uB2C8\uB2E4.");const j=`tf-${R}`,M=`tf-helper-${R}`,V=s.useRef(null),P=Pi({value:n??"",onChange:i,suggestions:ee??[],openOnFocus:Y}),$=!!ee&&P.open&&P.filtered.length>0,W=s.useCallback(X=>{V.current=X,typeof o=="function"?o(X):o&&(o.current=X)},[o]),se=n!==void 0,ae=se&&p==="password",[le,he]=s.useState((a??"").length),ve=se?(n??"").length:le,Z=s.useRef(n);n4(()=>{Z.current=n}),s.useEffect(()=>{const X=V.current;if(!ae||!X)return;const pe=n??"";X.value!==pe&&(X.value=pe)},[ae,n]),s.useEffect(()=>{if(!w||!V.current)return;const X=V.current;X.style.height="",X.scrollHeight>X.clientHeight&&(X.style.height=`${X.scrollHeight}px`)},[n,le,w]);const ce=f!=null&&ve>f,J=C===32?16:20,ge=ye("text-field",`text-field--s${C}`,v==="display"?"text-field--display":"",x?"text-field--full-width":"",h?"text-field--disabled":"",m?"text-field--readonly":"",b?"text-field--error":"",_?"text-field--has-left-icon":"",A||T?"text-field--has-right-icon":"",H),we={id:j,...ae?{}:se?{value:n}:{defaultValue:a},ref:W,placeholder:d,name:r,disabled:h,readOnly:m,autoFocus:O,maxLength:f,list:N,inputMode:te,autoComplete:L,"aria-label":!l&&c?c:void 0,"aria-required":u,"aria-invalid":!!b,"aria-describedby":g||b?M:void 0,role:ee?"combobox":void 0,"aria-autocomplete":ee?"list":void 0,"aria-haspopup":ee?"listbox":void 0,"aria-expanded":ee?P.open:void 0,"aria-controls":$?P.listId:void 0,"aria-activedescendant":$&&P.activeIdx>=0?`${P.listId}-option-${P.activeIdx}`:void 0,onChange:X=>{const pe=X.target;se||he(pe.value.length),i?.(pe.value),ee&&P.handleInput(),ae&&queueMicrotask(()=>{const Ne=Z.current??"";pe.value!==Ne&&(pe.value=Ne)})},onFocus:(X=>{F?.(X),ee&&P.handleFocus()}),onBlur:(X=>{B?.(X),ee&&P.handleBlur()}),onKeyDown:(X=>{ee&&X.key==="Enter"&&!X.nativeEvent.isComposing&&P.activeIdx>=0?X.preventDefault():E&&X.key==="Enter"&&!X.nativeEvent.isComposing&&(X.preventDefault(),E()),I?.(X),ee&&P.handleKeyDown(X)})},de=T&&!h&&!m&&ve>0,Ce=()=>w?t.jsx("textarea",{...we,className:"text-field__input text-field__input--auto body-2",rows:1}):y?t.jsx("textarea",{...we,className:"text-field__input text-field__input--textarea body-2",rows:k}):t.jsx("input",{...we,type:p,className:"text-field__input body-2"}),xe=v==="display"&&!w&&!y&&!!d,je=()=>t.jsxs(t.Fragment,{children:[Ce(),xe&&t.jsx("span",{className:"text-field__placeholder","aria-hidden":"true",children:d})]});return t.jsxs("div",{className:ge,children:[l&&t.jsxs("label",{htmlFor:j,className:"text-field__label caption-1",children:[l,u&&t.jsx("span",{className:"text-field__required",children:"*"})]}),t.jsxs("div",{className:"text-field__wrap",children:[_&&t.jsx("span",{className:"text-field__icon text-field__icon--left",children:t.jsx(Ve,{icon:_,label:"",className:"",svgClassName:"text-field__icon-svg",size:J})}),je(),f!=null&&D&&t.jsxs("span",{className:`text-field__count caption-2${ce?" text-field__count--over":""}`,children:[ve,"/",f]}),de&&t.jsx(ie,{size:24,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,className:"text-field__clear",ariaLabel:K("textField.clearAriaLabel","\uC785\uB825\uAC12 \uC9C0\uC6B0\uAE30"),htmlType:"button",onMouseDown:X=>{X.preventDefault()},onClick:()=>{!se&&V.current&&(V.current.value="",he(0)),i?.("")},tabIndex:-1}),A&&!de&&t.jsx("span",{className:"text-field__icon text-field__icon--right",children:t.jsx(Ve,{icon:A,label:"",className:"",svgClassName:"text-field__icon-svg",size:J})})]}),ee&&P.open&&P.filtered.length>0&&t.jsx("ul",{id:P.listId,className:"text-field__suggestions",role:"listbox",children:P.filtered.map((X,pe)=>t.jsx("li",{id:`${P.listId}-option-${pe}`,role:"option","aria-selected":pe===P.activeIdx,className:`text-field__suggestion body-2${pe===P.activeIdx?" is-active":""}`,onMouseDown:Ne=>Ne.preventDefault(),onClick:()=>{P.handleSelect(X),V.current?.focus()},children:X},`${X}-${pe}`))}),(g||b)&&t.jsx("div",{className:"text-field__footer",children:t.jsx("span",{id:M,className:"text-field__helper caption-1",role:b?"alert":void 0,children:b||g})})]})}function Wt({options:e,value:n,onChange:a,placeholder:r,disabled:o=!1,block:i=!1,size:l=48,error:c=!1,className:u="",ariaLabel:d}){const{t:p}=me.useTranslation(),h=r??p("dropdown.placeholder","\uC120\uD0DD"),m=s.useId(),b=s.useRef(null),g=s.useCallback(B=>{const I=window.innerHeight-B.bottom<260&&B.top>260;return{position:"fixed",left:B.left,minWidth:B.width,...I?{bottom:window.innerHeight-B.top+6}:{top:B.bottom+6},zIndex:9999}},[]),{open:f,setOpen:C,toggle:v,style:x,triggerRef:w,menuRef:y}=ea({computeStyle:g}),[k,_]=s.useState(-1),A=s.useCallback(()=>_(-1),[]),T=e.find(B=>B.value===n);s.useEffect(()=>{if(f){const B=e.findIndex(I=>I.value===n);_(B>=0?B:0),requestAnimationFrame(()=>{const I=y.current;if(!I)return;const E=I.querySelectorAll(".dropdown__option")[B];E&&(I.scrollTop=Math.max(0,E.offsetTop-I.clientHeight/2+E.clientHeight/2))})}},[f]);const N=s.useCallback(()=>{o||v()},[o,v]),D=s.useCallback(B=>{B.disabled||(a?.(B.value),C(!1))},[a,C]),H=s.useCallback(B=>{if(!o){if(!f){(B.key==="Enter"||B.key===" "||B.key==="ArrowDown")&&(B.preventDefault(),C(!0));return}if(B.key==="Escape"){B.preventDefault(),C(!1);return}B.key==="ArrowDown"?(B.preventDefault(),_(I=>{let E=I+1;for(;E<e.length&&e[E].disabled;)E++;return E<e.length?E:I})):B.key==="ArrowUp"?(B.preventDefault(),_(I=>{let E=I-1;for(;E>=0&&e[E].disabled;)E--;return E>=0?E:I})):B.key==="Enter"&&k>=0&&(B.preventDefault(),D(e[k]))}},[o,f,e,k,D,C]),F=f?t.jsx("div",{ref:y,id:m,className:"dropdown__menu",role:"listbox",style:x,onMouseLeave:A,onMouseDown:B=>B.preventDefault(),children:e.map((B,I)=>t.jsxs("button",{id:`${m}-option-${I}`,type:"button",role:"option","aria-selected":B.value===n,className:ye("dropdown__option body-2",B.value===n?"dropdown__option--active":"",I===k?"dropdown__option--active":"",B.disabled?"dropdown__option--disabled":""),onMouseDown:E=>E.preventDefault(),onClick:()=>D(B),onMouseEnter:()=>_(I),disabled:B.disabled,children:[t.jsx("span",{className:"dropdown__option-check",children:B.value===n&&t.jsx("svg",{viewBox:"0 0 14 14",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:t.jsx("polyline",{points:"2 7 5.5 10.5 12 3.5"})})}),B.label]},B.value))}):null;return t.jsxs("div",{ref:b,className:ye("dropdown",`dropdown--s${l}`,f?"dropdown--open":"",i?"dropdown--block":"",c?"dropdown--error":"",u),onKeyDown:H,children:[t.jsxs("button",{ref:w,type:"button",className:"dropdown__trigger","aria-haspopup":"listbox","aria-expanded":f,"aria-controls":f?m:void 0,"aria-activedescendant":f&&k>=0?`${m}-option-${k}`:void 0,"aria-label":d,"aria-invalid":c||void 0,disabled:o,onClick:N,onBlur:B=>{f&&!y.current?.contains(B.relatedTarget)&&C(!1)},children:[t.jsx("span",{className:`dropdown__trigger-label body-2${T?"":" dropdown__trigger-label--placeholder"}`,children:T?T.label:h}),t.jsx("svg",{className:"dropdown__chevron",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:t.jsx("polyline",{points:"4 6 8 10 12 6"})})]}),typeof document<"u"&&Ft.createPortal(F,b.current?.closest(".ihabdevteam-core-scope")??document.body)]})}function wa({page:e,totalPages:n,onChange:a,prevLabel:r,nextLabel:o,className:i=""}){const{t:l}=me.useTranslation(),c=r??l("common.prevPage","\uC774\uC804 \uD398\uC774\uC9C0"),u=o??l("common.nextPage","\uB2E4\uC74C \uD398\uC774\uC9C0"),d=Math.max(1,n),p=()=>a(Math.max(1,Math.min(d,e-1))),h=()=>a(Math.min(d,e+1));return t.jsxs("div",{className:ye("pagination",i),children:[t.jsx(ie,{htmlType:"button",size:32,type:"dot",shape:"rounded",icon:"chevron-left",ariaLabel:c,disabled:e<=1,onClick:p}),t.jsxs("span",{className:"pagination__info body-3",children:[Math.min(Math.max(1,e),d)," / ",d]}),t.jsx(ie,{htmlType:"button",size:32,type:"dot",shape:"rounded",icon:"chevron-right",ariaLabel:u,disabled:e>=n,onClick:h})]})}function Tn(e){const{t:n}=me.useTranslation(),{options:a=[],value:r=a[0]?.key,onChange:o=C=>{},className:i="",size:l=48,shape:c="pill",useBG:u=!0,fullWidth:d=!1,ariaLabel:p}=e||{},h=s.useRef(null),m=a.filter(C=>!C.disabled),b=C=>{if(!m.length)return;const v=Math.max(0,m.findIndex(w=>w.key===r)),x=C==="first"?m[0]:C==="last"?m[m.length-1]:m[(v+C+m.length)%m.length];x&&(o(x.key),Array.from(h.current?.querySelectorAll("[data-segkey]")??[]).find(w=>w.dataset.segkey===x.key)?.focus())},g=C=>{switch(C.key){case"ArrowRight":case"ArrowDown":b(1);break;case"ArrowLeft":case"ArrowUp":b(-1);break;case"Home":b("first");break;case"End":b("last");break;default:return}C.preventDefault()},f=m.some(C=>C.key===r)?r:m[0]?.key;return t.jsx("div",{ref:h,onKeyDown:g,className:ye("segmented-control",`segmented-control--${c}`,`segmented-control--${l}`,d&&"segmented-control--full",!u&&"segmented-control--no-bg",i),role:"radiogroup","aria-label":p??n("segmentedControl.ariaLabel","\uC120\uD0DD \uD0ED"),children:a.map(C=>t.jsx(ie,{htmlType:"button",role:"radio","aria-checked":C.key===r,"data-segkey":C.key,tabIndex:C.key===f?0:-1,label:C.label,count:C.count,disabled:C.disabled,className:C.key===r?"is-selected":"",onClick:()=>{C.disabled||o(C.key)},size:l,shape:c,useBorder:!1,useBG:!1},C.key))})}function fr({count:e,search:n,segment:a,filters:r,pageSize:o,pagination:i,actions:l,className:c}){const{t:u}=me.useTranslation(),d=e!=null&&t.jsxs("p",{className:"toolbar__count body-1",children:[e.prefix??u("common.totalPrefix","\uCD1D "),t.jsx("span",{className:"toolbar__count-highlight",children:e.value}),e.unit,e.suffix]}),p=!!(n||r?.length||o||i||l);return t.jsxs("div",{className:ye("toolbar",c),children:[t.jsxs("div",{className:"toolbar__row",children:[d,a&&(Array.isArray(a)?a:[a]).map((h,m)=>t.jsx(Tn,{size:40,...h},h.ariaLabel??m))]}),p&&t.jsx("div",{className:"toolbar__row",children:t.jsxs("div",{className:"toolbar__row-end",children:[n&&t.jsx(Dn,{className:"toolbar__search",size:40,value:n.value,onChange:n.onChange,placeholder:n.placeholder??u("common.search","\uAC80\uC0C9"),ariaLabel:n.placeholder??u("common.search","\uAC80\uC0C9"),clearable:!0}),r?.map((h,m)=>t.jsx(Wt,{size:40,options:h.options,value:h.value,onChange:h.onChange,ariaLabel:h.ariaLabel},m)),o&&t.jsx(Wt,{size:40,options:o.options,value:o.value,onChange:o.onChange,ariaLabel:o.ariaLabel??u("common.pageSizeSelect","\uD398\uC774\uC9C0\uB2F9 \uD45C\uC2DC \uAC1C\uC218")}),i&&t.jsx(wa,{page:i.page,totalPages:i.total,onChange:i.onChange,prevLabel:i.prevLabel,nextLabel:i.nextLabel}),l]})})]})}function Ii(e){return typeof e=="string"?e:typeof e=="number"?String(e):Array.isArray(e)?e.map(Ii).join(""):""}function a4(e){let n=e.replace(/\r\n/g,`
833
833
  `).replace(/\r/g,`
834
834
  `);n=n.replace(/^\n+/,"").replace(/\n+$/,"");const a=n.split(`
835
- `).map(s=>s.replace(/\t/g," ")),r=a.filter(s=>s.trim().length>0),o=r.length>0?Math.min(...r.map(s=>s.match(/^ */)?.[0].length??0)):0;return a.map(s=>s.slice(o)).join(`
836
- `)}const Wg=new Set(["pnpm","npm","yarn","node","git","curl","docker","cat","ls","cd","rm","mv","cp","echo","export"]),qg=/^(?:const|let|var|function|return|if|else|for|while|switch|case|break|import|from|export|class|new|try|catch|finally|throw|await|async|null|true|false|this|typeof|instanceof)\b/;function Ug(e,n){let a=e;const r=[],o=/sh|bash/.test(n.toLowerCase()),s=(l,c)=>r.push({type:l,content:c});for(;a.length>0;){const l=a.match(/^\s+/);if(l){s("whitespace",l[0]),a=a.slice(l[0].length);continue}if(!o&&a.startsWith("//")){const f=a.indexOf(`
837
- `),g=f===-1?a:a.slice(0,f);s("comment",g),a=a.slice(g.length);continue}if(o&&a.startsWith("#")){const f=a.indexOf(`
838
- `),g=f===-1?a:a.slice(0,f);s("comment",g),a=a.slice(g.length);continue}const c=a.match(/^\/\*[\s\S]*?\*\//);if(c){s("comment",c[0]),a=a.slice(c[0].length);continue}const u=a.match(/^(`(?:\\.|[^`])*`|"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*')/);if(u){s("string",u[0]),a=a.slice(u[0].length);continue}const d=a.match(/^\d+(?:\.\d+)?/);if(d){s("number",d[0]),a=a.slice(d[0].length);continue}const p=a.match(qg);if(p){s("keyword",p[0]),a=a.slice(p[0].length);continue}const h=a.match(/^[A-Za-z_$][A-Za-z0-9_$-]*/);if(h){const f=h[0];s(o&&Wg.has(f)?"command":"identifier",f),a=a.slice(f.length);continue}const m=a.match(/^[=+\-*/%<>!&|^~?:]+/);if(m){s("operator",m[0]),a=a.slice(m[0].length);continue}const b=a.match(/^[()[\]{};.,]/);if(b){s("punctuation",b[0]),a=a.slice(1);continue}s("other",a[0]),a=a.slice(1)}return r}function Gg({children:e,language:n="bash",title:a="",showCopy:r=!0,size:o="default",className:s=""}){const{t:l}=me.useTranslation(),[c,u]=i.useState(!1),d=zg(Mi(e)),p=i.useRef(null);i.useEffect(()=>()=>{p.current&&clearTimeout(p.current)},[]);const h=async()=>{try{if(!await c0(d))return;u(!0),p.current&&clearTimeout(p.current),p.current=setTimeout(()=>u(!1),2e3)}catch{}},m=Ug(d,n),b=o==="small"?"caption-1":"body-3";return t.jsxs("div",{className:ve("code-box",o==="small"?"code-box--small":"",s),children:[(a||r)&&t.jsxs("div",{className:"code-box__header",role:"toolbar","aria-label":l("common.codeBlock","\uCF54\uB4DC \uBE14\uB85D"),children:[t.jsx("div",{className:"code-box__title caption-1",children:a}),r&&t.jsx(se,{htmlType:"button",className:"code-box__copy",size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:c?"check":"copy",onClick:h,ariaLabel:c?l("common.copied","\uBCF5\uC0AC\uB428"):l("common.copyCode","\uCF54\uB4DC \uBCF5\uC0AC")})]}),t.jsx("pre",{className:"code-box__inner","data-lang":n,children:t.jsx("code",{children:m.map((f,g)=>t.jsx("span",{className:`code-token ${f.type} ${b}`,children:f.content},g))})})]})}function sa(e){const{t:n}=me.useTranslation(),{variant:a="spinner",size:r=24,progress:o=null,label:s}=e||{},l=s||n("loader.loading","Loading");if(a==="bar"){const u=Math.max(0,Math.min(100,Number(o)||0));return t.jsx("div",{className:"loader-bar",role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":u,"aria-label":l,children:t.jsx("div",{className:"loader-bar__inner",style:{width:`${u}%`}})})}const c=typeof r=="number"?`${r}px`:r;return t.jsx("div",{className:"loader-spinner",style:{width:c,height:c},role:"status","aria-label":l,children:t.jsxs("svg",{className:"loader-spinner__svg",viewBox:"0 0 50 50",width:r,height:r,children:[t.jsx("circle",{className:"loader-spinner__bg",cx:"25",cy:"25",r:"20",fill:"none",strokeWidth:"4"}),t.jsx("circle",{className:"loader-spinner__fg",cx:"25",cy:"25",r:"20",fill:"none",strokeWidth:"4",strokeLinecap:"round"})]})})}function Li({checked:e,onChange:n,disabled:a=!1,label:r,ariaLabel:o,labelPosition:s="right",className:l="",id:c}){const u=r&&t.jsx("span",{className:"toggle__label body-3",children:r});return t.jsxs("label",{className:`toggle${a?" toggle--disabled":""} ${l}`.trim(),children:[s==="left"&&u,t.jsx("input",{id:c,type:"checkbox",role:"switch",checked:e,disabled:a,onChange:d=>n?.(d.target.checked),"aria-label":!r&&o?o:void 0}),t.jsx("span",{className:"toggle__slider"}),s==="right"&&u]})}function $i({checked:e=!1,onChange:n,disabled:a,indeterminate:r,label:o,size:s="medium",className:l,title:c,ariaLabel:u}){const d=i.useRef(null),p=i.useId();return i.useEffect(()=>{d.current&&(d.current.indeterminate=!!r)},[r]),t.jsxs("label",{className:ve("checkbox",s==="small"&&"checkbox--small",s==="large"&&"checkbox--large",a&&"checkbox--disabled",l),htmlFor:p,title:c,children:[t.jsx("input",{ref:d,id:p,type:"checkbox",className:"checkbox__input",checked:e,onChange:h=>n?.(h.target.checked),disabled:a,"aria-label":!o&&u?u:void 0}),t.jsx("span",{className:"checkbox__box"}),o&&t.jsx("span",{className:"checkbox__label body-3",children:o})]})}function Kg({count:e,actions:n,onClear:a,clearLabel:r,visible:o,content:s,max:l}){const{t:c}=me.useTranslation(),u=o!==void 0?o:e>0,d=r??c("bulkBar.clearSelection","\uC120\uD0DD \uD574\uC81C"),p=i.useRef(null),[h,m]=i.useState(!1);return i.useEffect(()=>{const b=p.current;if(!b)return;const f=()=>{const C=b.firstElementChild??b,v=Array.from(C.children);if(v.length<2){m(!1);return}const _=v[0].offsetTop;m(v.some(A=>A.offsetTop!==_))};if(f(),typeof ResizeObserver>"u")return;const g=new ResizeObserver(f);return g.observe(b),()=>g.disconnect()},[s,e]),t.jsxs("div",{className:`bulk-bar ${u?"bulk-bar--visible":""}`,inert:!u||void 0,"aria-hidden":u?void 0:!0,children:[t.jsx("span",{ref:p,className:"bulk-bar__count body-2",children:s??t.jsx("b",{children:c("common.selectedCount",{count:e})})}),l!==void 0&&t.jsx(rt,{size:"small",fill:"soft",variant:"main",label:`${e} / ${l}`}),t.jsxs("div",{className:`bulk-bar__actions${h?" bulk-bar__actions--stacked":""}`,children:[t.jsx(se,{htmlType:"button",size:40,label:d,onClick:a}),n.map((b,f)=>t.jsx(se,{htmlType:"button",size:40,variant:b.variant??"default",icon:b.icon,label:b.label,onClick:b.onClick},f))]})]})}function Ri(e){const n=()=>{if(e){const[h,m]=e.split("-");return{y:+h,m:+m-1}}const p=new Date;return{y:p.getFullYear(),m:p.getMonth()}},[a,r]=i.useState(()=>n().y),[o,s]=i.useState(()=>n().m),l=i.useRef(e);i.useEffect(()=>{if(e===l.current)return;l.current=e;const p=n();r(p.y),s(p.m)},[e]);const c=i.useCallback(()=>{o===0?(r(p=>p-1),s(11)):s(p=>p-1)},[o]),u=i.useCallback(()=>{o===11?(r(p=>p+1),s(0)):s(p=>p+1)},[o]),d=i.useCallback((p,h)=>{r(p),s(h)},[]);return{viewY:a,viewM:o,prevMonth:c,nextMonth:u,setViewYM:d}}function Cr(e,n){return new Date(e,n+1,0).getDate()}function Yg(e,n){return new Date(e,n,1).getDay()}function $n(e,n,a){return`${e}-${String(n+1).padStart(2,"0")}-${String(a).padStart(2,"0")}`}function Zg(e){if(!e)return"";const[n,a,r]=e.split("-");return`${n}. ${a}. ${r}.`}function Xg(e,n,a,r){const o=a?+a.split("-")[0]:e-10,s=r?+r.split("-")[0]:e+10,l=[];for(let c=o;c<=s;c++)for(let u=0;u<12;u++){const d=`${c}-${String(u+1).padStart(2,"0")}`;a&&d<a.slice(0,7)||r&&d>r.slice(0,7)||l.push({value:d,label:n(c,u+1)})}return l}function Jg({value:e,onChange:n,size:a=48,min:r,max:o,disabled:s,placeholder:l,className:c}){const{t:u}=me.useTranslation(),d=l??u("datePicker.chooseDate","\uB0A0\uC9DC \uC120\uD0DD"),p=i.useMemo(()=>u("calendar.dow",{returnObjects:!0}),[u]),h=new Date,{viewY:m,viewM:b,prevMonth:f,nextMonth:g,setViewYM:C}=Ri(e),v=i.useCallback(T=>{const E=window.innerHeight-T.bottom,$=300,K=E<$&&T.top>$;return{position:"fixed",left:T.left,width:T.width,minWidth:260,...K?{bottom:window.innerHeight-T.top+6}:{top:T.bottom+6},zIndex:9999}},[]),{open:_,setOpen:A,toggle:y,style:N,triggerRef:x,menuRef:w}=ea({computeStyle:v,onScroll:"reposition",onResize:"reposition",ignoreOutsideClickSelector:".dropdown__menu"});i.useEffect(()=>{if(!_)return;const T=w.current;return(T?.querySelector(".date-picker__day--selected:not(:disabled)")??T?.querySelector(".date-picker__day--today:not(:disabled)")??T?.querySelector(".date-picker__day:not(:disabled)")??T?.querySelector(wn)??T)?.focus?.(),()=>{const E=document.activeElement;(!E||E===document.body)&&x.current?.focus?.()}},[_,w,x]);const[j,k]=i.useState(1),S=i.useRef(null),F=i.useRef(null);i.useEffect(()=>{if(!_)return;const T=$n(h.getFullYear(),h.getMonth(),h.getDate()),E=e&&e.slice(0,7)===`${m}-${String(b+1).padStart(2,"0")}`?+e.slice(8):T.slice(0,7)===`${m}-${String(b+1).padStart(2,"0")}`?+T.slice(8):1;k(E)},[_]),i.useEffect(()=>{if(F.current==null)return;const T=F.current;F.current=null,S.current?.querySelector(`[data-day="${T}"]`)?.focus()}),i.useEffect(()=>{k(T=>Math.min(T,Cr(m,b)))},[m,b]);const P=i.useCallback(T=>{let E=$n(T.getFullYear(),T.getMonth(),T.getDate());r&&E<r&&(E=r),o&&E>o&&(E=o);const[$,K,R]=E.split("-").map(Number);($!==m||K-1!==b)&&C($,K-1),k(R),F.current=R},[r,o,m,b,C]),B=i.useCallback(T=>{const E=new Date(m,b,j),$=R=>{E.setDate(E.getDate()+R),P(E)},K=R=>{E.setMonth(E.getMonth()+R),P(E)};switch(T.key){case"ArrowLeft":$(-1);break;case"ArrowRight":$(1);break;case"ArrowUp":$(-7);break;case"ArrowDown":$(7);break;case"Home":$(-E.getDay());break;case"End":$(6-E.getDay());break;case"PageUp":T.shiftKey?K(-12):K(-1);break;case"PageDown":T.shiftKey?K(12):K(1);break;default:return}T.preventDefault()},[m,b,j,P]),I=i.useCallback(T=>{n($n(m,b,T)),A(!1)},[m,b,n,A]),M=T=>{const E=$n(m,b,T);return!!(r&&E<r||o&&E>o)},ne=(()=>{const T=Cr(m,b);if(j>=1&&j<=T&&!M(j))return j;for(let E=1;E<=T;E++)if(!M(E))return E;return-1})(),L=[];for(let T=0;T<Yg(m,b);T++)L.push(null);for(let T=1;T<=Cr(m,b);T++)L.push(T);const H=a===64?20:a===40?16:18,ee=Xg(m,(T,E)=>u("calendar.yearMonth",{year:T,month:E,defaultValue:"{{year}}\uB144 {{month}}\uC6D4"}),r,o),W=`${m}-${String(b+1).padStart(2,"0")}`,z=_?Ft.createPortal(t.jsxs("div",{ref:w,className:"date-picker__dropdown",style:N,role:"dialog","aria-label":u("datePicker.chooseDate","\uB0A0\uC9DC \uC120\uD0DD"),tabIndex:-1,children:[t.jsxs("div",{className:"date-picker__nav",children:[t.jsx("button",{type:"button",className:"date-picker__nav-btn",onClick:f,"aria-label":u("calendar.prevMonth","\uC774\uC804 \uB2EC"),children:t.jsx(ho,{size:16,strokeWidth:2})}),t.jsx(Wt,{className:"date-picker__nav-dropdown",ariaLabel:u("datePicker.selectYearMonth","\uC5F0\uC6D4 \uC120\uD0DD"),options:ee,value:W,onChange:T=>{const[E,$]=T.split("-");C(+E,+$-1)},block:!0,size:40}),t.jsx("button",{type:"button",className:"date-picker__nav-btn",onClick:g,"aria-label":u("calendar.nextMonth","\uB2E4\uC74C \uB2EC"),children:t.jsx(mo,{size:16,strokeWidth:2})})]}),t.jsxs("div",{className:"date-picker__grid",ref:S,onKeyDown:B,children:[p.map(T=>t.jsx("div",{className:"date-picker__dow caption-1",children:T},T)),L.map((T,E)=>{if(T===null)return t.jsx("div",{},`e${E}`);const $=$n(m,b,T),K=$===e,R=$===$n(h.getFullYear(),h.getMonth(),h.getDate()),V=M(T),q=E%7;return t.jsx("button",{type:"button",disabled:V,"data-day":T,tabIndex:T===ne?0:-1,"aria-current":R?"date":void 0,onClick:()=>!V&&I(T),className:ve("date-picker__day caption-1",K&&"date-picker__day--selected",R&&!K&&"date-picker__day--today",V&&"date-picker__day--disabled",q===0&&"date-picker__day--sun",q===6&&"date-picker__day--sat"),children:T},T)})]})]}),document.body):null;return t.jsxs("div",{className:ve("date-picker",`date-picker--s${a}`,_&&"date-picker--open",c),children:[t.jsxs("button",{ref:x,type:"button",className:"date-picker__trigger body-2",onClick:()=>!s&&y(),disabled:s,"aria-haspopup":"true","aria-expanded":_,children:[t.jsx("span",{className:e?"date-picker__value":"date-picker__placeholder",children:e?Zg(e):d}),t.jsx(wo,{size:H,className:"date-picker__icon",strokeWidth:1.5})]}),z]})}function gr({items:e,className:n}){return t.jsx("div",{className:n?`manager-bar-chart-legend ${n}`:"manager-bar-chart-legend",children:e.map((a,r)=>t.jsxs("span",{className:"manager-bar-chart-legend-item",children:[t.jsx("span",{className:"manager-bar-chart-legend-dot",style:{background:a.color}}),a.label]},r))})}function ka({label:e,children:n}){return e?t.jsxs("div",{className:"barchart-total barchart-total--stacked",children:[t.jsx("span",{className:"barchart-total__label body-3",children:e}),t.jsx("span",{className:"barchart-total__value",children:n})]}):t.jsx("div",{className:"barchart-total",children:n})}function br({title:e,titleClassName:n="h3",headRight:a,subRow:r,className:o,inGrid:s=!1,children:l}){return t.jsxs("section",{className:["manager-section",s&&"manager-section--grid",o].filter(Boolean).join(" "),children:[t.jsxs("div",{className:"manager-section__head",children:[t.jsx("div",{className:n,children:e}),a]}),r&&t.jsx("div",{className:"barchart-sub-row",children:r}),l]})}function nn(e,n){const a=new Date(e,n,1).getDay();return 1+(8-(a===0?7:a))%7}function Qg(){const e=new Date;let n=e.getFullYear(),a=e.getMonth(),r=e.getDate();if(r<nn(n,a)){const l=new Date(n,a,0);n=l.getFullYear(),a=l.getMonth(),r=l.getDate()}const o=Math.floor((r-nn(n,a))/7),s=`${n}\uB144 ${a+1}\uC6D4`;return{monthKey:s,value:`${s}#${o}`}}function e4(e){const n=new Date,a=`${n.getFullYear()}\uB144 ${n.getMonth()+1}\uC6D4`,r=(u,d)=>`${u}\uB144 ${d+1}\uC6D4`,o=new Map;o.set(a,[]);for(const u of e){if(isNaN(u.date.getTime()))continue;const d=r(u.date.getFullYear(),u.date.getMonth());o.has(d)||o.set(d,[]),o.get(d).push(u)}for(const[u,d]of[...o.entries()]){const p=u.match(/^(\d+)년 (\d+)월$/);if(!p)continue;const h=Number(p[1]),m=Number(p[2])-1,b=nn(h,m);if(!(u===a&&n.getDate()<b)&&!d.some(C=>C.date.getDate()<b))continue;const f=new Date(h,m,0),g=r(f.getFullYear(),f.getMonth());o.has(g)||o.set(g,[])}const s=new Map;for(const[u,d]of o){const p=u.match(/^(\d+)년 (\d+)월$/);if(!p)continue;const h=Number(p[1]),m=Number(p[2])-1,b=new Date(h,m+1,0).getDate(),f=d.reduce((_,A)=>Math.max(_,A.parts?.length??0),0),g=new Array(b+1).fill(0),C=new Array(b+1).fill(0),v=Array.from({length:b+1},()=>new Array(f).fill(0));for(const _ of d){const A=_.date.getDate();if(g[A]+=_.a,C[A]+=_.b,_.parts)for(let y=0;y<f;y++)v[A][y]+=_.parts[y]??0}s.set(u,{year:h,month:m,daysInMonth:b,partsLen:f,dayA:g,dayB:C,dayParts:v})}const l=(u,d,p)=>new Date(u,d,p).getTime()>new Date(n.getFullYear(),n.getMonth(),n.getDate()).getTime(),c={};for(const[u,d]of s){const{year:p,month:h,daysInMonth:m,dayA:b,dayB:f,dayParts:g}=d,C=p===n.getFullYear()&&h===n.getMonth(),v=n.getDate(),_=s.get(r(h===11?p+1:p,(h+1)%12)),A=d.partsLen,y=[];for(let x=1;x<=m;x++){const w=C&&x>v;y.push({label:String(x),a:w&&b[x]===0&&f[x]===0?-1:b[x],b:f[x],...A?{parts:g[x]}:{}})}const N=[];for(let x=nn(p,h);x<=m;x+=7){const w=Math.max(0,x+6-m),j=w&&_?Math.max(A,_.partsLen):A;let k=0,S=0;const F=new Array(j).fill(0);for(let B=x;B<=Math.min(x+6,m);B++){k+=b[B],S+=f[B];for(let I=0;I<A;I++)F[I]+=g[B][I]}if(w&&_)for(let B=1;B<=w&&!l(_.year,_.month,B);B++){k+=_.dayA[B],S+=_.dayB[B];for(let I=0;I<_.partsLen;I++)F[I]+=_.dayParts[B][I]}const P=w?`${(h+1)%12+1}/${w}`:`${x+6}`;N.push({label:`${N.length+1}\uC8FC`,sublabel:`[${x}\uC77C~${P}\uC77C]`,a:k,b:S,...j?{parts:F}:{}})}c[u]={weekly:N,daily:y}}return c}function Pi(){const e=new Date,n=e.getFullYear(),a=e.getMonth()+1,r=[];for(let o=2024;o<=n;o++){const s=o===n?a:12;for(let l=1;l<=s;l++){const c=`${o}\uB144 ${l}\uC6D4`;r.push({value:c,label:c,year:o,month:l})}}return r.reverse()}Pi();function t4(){return Pi()}const Ii=["\uCCAB\uC9F8","\uB458\uC9F8","\uC14B\uC9F8","\uB137\uC9F8","\uB2E4\uC12F\uC9F8","\uC5EC\uC12F\uC9F8","\uC77C\uACF1\uC9F8"];function Fi(e){const{t:n,i18n:a}=me.useTranslation(),[r,o]=i.useState("week"),s=i.useMemo(()=>t4().filter(k=>k.value in e),[e]),l=i.useMemo(()=>{const k=[];for(const S of s){const F=new Date(S.year,S.month,0).getDate(),P=nn(S.year,S.month-1),B=Math.ceil((F-P+1)/7);for(let I=B-1;I>=0;I--)k.push({value:`${S.value}#${I}`,monthKey:S.value,year:S.year,month:S.month,week:I})}return k},[s]),c=i.useCallback(k=>{const S=n("calendar.yearMonth",{year:k.year,month:k.month});return a.language?.startsWith("ko")?`${S} ${Ii[k.week]??`${k.week+1}`}\uC8FC`:`${S} Week ${k.week+1}`},[n,a.language]),u=i.useMemo(()=>s.map(k=>({value:k.value,label:n("calendar.yearMonth",{year:k.year,month:k.month})})),[n,s]),d=i.useMemo(()=>l.map(k=>({value:k.value,label:c(k)})),[l,c]),p=i.useMemo(()=>Qg(),[e]),h=i.useMemo(()=>s.find(k=>k.value===p.monthKey)?.value??s[0]?.value??"",[s,p]),m=i.useMemo(()=>l.find(k=>k.value===p.value)?.value??l[0]?.value??"",[l,p]),[b,f]=i.useState(""),[g,C]=i.useState("");i.useEffect(()=>{s.find(k=>k.value===b)||f(h)},[s,b,h]),i.useEffect(()=>{l.find(k=>k.value===g)||C(m)},[l,g,m]);const v=r==="month"?u:d,_=r==="month"?b:g,A=r==="month"?f:C,y=i.useMemo(()=>{const k=n("calendar.dow",{returnObjects:!0});return Array.isArray(k)?k:["\uC77C","\uC6D4","\uD654","\uC218","\uBAA9","\uAE08","\uD1A0"]},[n]),N=v.findIndex(k=>k.value===_),x=i.useCallback(()=>{const k=v.findIndex(S=>S.value===_);k<v.length-1&&A(v[k+1].value)},[v,_,A]),w=i.useCallback(()=>{const k=v.findIndex(S=>S.value===_);k>0&&A(v[k-1].value)},[v,_,A]),j=i.useMemo(()=>[{key:"week",label:n("manager.chart.periodWeek","\uC8FC")},{key:"month",label:n("manager.chart.periodMonth","\uC6D4")}],[n]);return{period:r,setPeriod:o,range:_,setRange:A,activeOptions:v,activeIdx:N,handlePrev:x,handleNext:w,periodOptions:j,monthRange:b,weekRange:g,weekRanges:l,DOW:y}}const qt=e=>typeof e=="number"&&Number.isFinite(e)?e:0;function n4({data:e,colorA:n,colorB:a,labelA:r,labelB:o,barWidth:s=10,height:l=140,maxOverride:c,tightMax:u,seriesColors:d,seriesLabels:p,rateLabels:h}){const m=!a,b=!!(d&&d.length>0),f=i.useMemo(()=>b?Math.max(0,...e.filter(w=>w.a!==-1).map(w=>(w.parts??[]).reduce((j,k)=>j+Math.max(0,qt(k)),0))):Math.max(0,...e.filter(w=>w.a!==-1).flatMap(w=>m?[qt(w.a)]:[qt(w.a),qt(w.b)])),[e,m,b]),g=i.useMemo(()=>c??(u?f>0?f:10:Math.ceil(f/10)*10||10),[f,c,u]),C=l,v=b||m?1:2,_={"--bar-width":`${i.useMemo(()=>{const w=Math.max(1,e.length);return Math.max(8,Math.min(s,Math.round(120/(w*v)+6)))},[e.length,v,s])}px`},A=i.useMemo(()=>{const w=Math.round(g/2);return w!==g?[g,w,0]:[g,0]},[g]),[y,N]=i.useState(null),x=i.useCallback(()=>N(null),[]);return t.jsxs("div",{className:"manager-bar-chart-wrap",children:[t.jsx("div",{className:"manager-bar-chart-inner",children:t.jsx("div",{className:"manager-bar-chart-scroll",children:t.jsxs("div",{className:"manager-bar-chart-area",children:[t.jsxs("div",{className:"manager-bar-chart-plot",style:{height:C},children:[A.slice(0,-1).map((w,j)=>t.jsx("div",{className:"manager-bar-chart-gridline",style:{top:(1-w/g)*C},children:t.jsx("span",{className:"manager-bar-chart-gridline__label caption-1",children:w})},j)),e.map((w,j)=>{const k=w.a===-1,S=I=>Math.min(C,Math.max(0,qt(I)/g*C)),F=k?0:S(w.a),P=k?0:S(w.b),B=(w.parts??[]).map(qt);return t.jsx("div",{className:"manager-bar-chart-col",style:{cursor:k?"default":"pointer"},onMouseEnter:k?void 0:I=>{const M=I.currentTarget.getBoundingClientRect(),ne=[w.label,w.sublabel].filter(Boolean).join(" ");let L;if(b){const H=(p??[]).map((W,z)=>({text:`${W}: ${B[z]??0}`,color:(d??[])[z]})),ee=H.filter((W,z)=>(B[z]??0)>0);L=ee.length?ee:H}else h&&!m?L=[{text:`${r} ${qt(w.a)}%`,color:n},{text:`${o} ${qt(w.b)}%`,color:a}]:h&&w.rawB!==void 0?L=[{text:`${h.total} ${w.rawB}`},{text:`${h.done} ${w.rawA??0}`,color:n}]:m?L=[{text:`${r}: ${qt(w.a)}`,color:n}]:L=[{text:`${r}: ${qt(w.a)}`,color:n},{text:`${o}: ${qt(w.b)}`,color:a}];N({rect:{left:M.left,top:M.top,right:M.right,bottom:M.bottom,width:M.width,height:M.height},title:ne,items:L})},onMouseLeave:x,children:!k&&(b?t.jsx("div",{className:"manager-bar-chart-stack",style:_,children:(()=>{const I=B.reduce((ne,L,H)=>L>0?H:ne,-1);let M=C;return B.map((ne,L)=>{if(ne<=0)return null;const H=Math.min(M,ne/g*C);return M-=H,t.jsx("div",{className:"manager-bar-chart-stack-segment",style:{height:H,background:(d??[])[L],borderRadius:L===I?"6px 6px 0 0":void 0}},L)})})()}):t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"manager-bar-chart-bar",style:{..._,height:F,background:n}}),!m&&t.jsx("div",{className:"manager-bar-chart-bar",style:{..._,height:P,background:a}})]}))},j)})]}),t.jsx("div",{className:"manager-bar-chart-x-axis",children:e.map((w,j)=>{const k=w.a===-1;return t.jsxs("span",{className:`manager-bar-chart-x-axis__label${k?" manager-bar-chart-x-axis__label--future":""}`,children:[t.jsxs("span",{className:"caption-1 manager-bar-chart-x-axis__main",children:[w.isToday&&t.jsx("span",{className:"manager-bar-chart-x-axis__today-dot",style:{background:n}}),w.label]}),w.sublabel&&t.jsx("span",{className:"caption-1",children:w.sublabel})]},j)})})]})})}),y&&t.jsx(An,{anchorRect:y.rect,title:y.title,items:y.items,showIndex:!1,closeOnOutsideClick:!1})]})}function Oi({control:e}){const{t:n}=me.useTranslation(),{activeOptions:a,activeIdx:r,range:o,setRange:s,handlePrev:l,handleNext:c,periodOptions:u,period:d,setPeriod:p}=e,h=d==="week"?n("calendar.prevWeek","\uC774\uC804 \uC8FC"):n("calendar.prevMonth","\uC774\uC804 \uB2EC"),m=d==="week"?n("calendar.nextWeek","\uB2E4\uC74C \uC8FC"):n("calendar.nextMonth","\uB2E4\uC74C \uB2EC");return t.jsxs("div",{className:"manager-section-controls",children:[t.jsx(se,{htmlType:"button",size:32,type:"dot",icon:"chevron-left",ariaLabel:h,showTooltipInfo:h,disabled:r===a.length-1,onClick:l}),t.jsx(Wt,{value:o,onChange:s,options:a,size:40,className:"month-dropdown",ariaLabel:n("calendar.rangeSelect","\uAE30\uAC04 \uC120\uD0DD")}),t.jsx(se,{htmlType:"button",size:32,type:"dot",icon:"chevron-right",ariaLabel:m,showTooltipInfo:m,disabled:r<=0,onClick:c}),t.jsx(Sn,{ariaLabel:n("calendar.periodSelect","\uAE30\uAC04 \uB2E8\uC704"),options:u,value:d,onChange:b=>p(b),size:32})]})}function Hi(e,n,a){const r=new Date(a.getFullYear(),a.getMonth(),a.getDate());return Array.from({length:7},(o,s)=>{const l=new Date(n);l.setDate(n.getDate()+s);const c=(e[`${l.getFullYear()}\uB144 ${l.getMonth()+1}\uC6D4`]?.daily??[])[l.getDate()-1],u=c?.a===-1||l>r;return{dt:l,entry:c,isFuture:u}})}function a4(e,n,a,r){const{period:o,monthRange:s,weekRange:l,weekRanges:c,DOW:u}=n,d=r?.startsWith("ko"),p=new Date,h=p.getFullYear(),m=p.getMonth()+1,b=p.getDate();if(o==="month"){const C=e[s]??{weekly:[],daily:[]},v=s.match(/^(\d+)년 (\d+)월$/),_=v?Number(v[1]):null,A=v?Number(v[2]):null,y=_&&A?nn(_,A-1):1;return C.weekly.map((N,x)=>{const w=x+1;let j=N.label,k=!1,S=!1;if(_&&A){const F=y+x*7,P=new Date(_,A-1,F+6),B=P.getMonth()+1,I=P.getDate(),M=B===A?`${I}`:`${B}/${I}`;j=a("manager.chart.weekRange",{start:F,end:M});const ne=new Date(h,m-1,b).getTime();k=ne>=new Date(_,A-1,F).getTime()&&ne<=P.getTime(),S=_>h||_===h&&(A>m||A===m&&F>b)}return{...N,label:j,sublabel:d?`${Ii[w-1]??w}\uC8FC`:`Week ${w}`,isToday:k,a:S?-1:N.a,b:S?0:N.b}})}const f=c.find(C=>C.value===l);if(!f)return[];const g=new Date(f.year,f.month-1,nn(f.year,f.month-1)+f.week*7);return Hi(e,g,p).map(({dt:C,entry:v,isFuture:_})=>{const A=C.getMonth()+1,y=C.getDate(),N=C.getFullYear();return{label:A===f.month&&N===f.year?`${y}`:`${A}/${y}`,sublabel:u[C.getDay()]??"",a:_?-1:v&&v.a>0?v.a:0,b:_?0:v&&v.b>0?v.b:0,isToday:N===h&&A===m&&y===b,...v?.parts?{parts:_?v.parts.map(()=>0):v.parts}:{}}})}const r4={small:{height:100,barWidth:16},medium:{height:140,barWidth:20},large:{height:180,barWidth:24}};function o4({size:e="medium",barWidth:n,titleKey:a,data:r,colorA:o,colorB:s,labelAKey:l,labelBKey:c,showTotal:u=!1,totalUnitKey:d,totalLabelKey:p,control:h,hideControls:m=!1,rate:b=!1,tightMax:f=!1,avgMode:g=!1,totalFormat:C,series:v,loading:_=!1,onDetail:A,inGrid:y=!1}){const{t:N,i18n:x}=me.useTranslation(),w=r4[e],j=Fi(r),k=h??j,S=i.useMemo(()=>a4(r,k,N,x.language),[r,k,N,x.language]),F=i.useMemo(()=>{if(!b)return S;const M=k.period==="month"?k.monthRange.match(/^(\d+)년 (\d+)월$/):null,ne=new Date;return S.map((L,H)=>{let ee=L.a===-1?-1:L.b>0?Math.round(L.a/L.b*100):0;if(M&&L.a!==-1){const W=Number(M[1]),z=Number(M[2])-1,T=Hi(r,new Date(W,z,nn(W,z)+H*7),ne).filter(E=>!E.isFuture);ee=T.length?Math.round(T.reduce((E,{entry:$})=>E+($&&$.b>0?$.a/$.b*100:0),0)/T.length):0}return{...L,a:ee,b:L.a===-1?0:c&&L.parts&&L.parts[1]>0?Math.round(L.parts[0]/L.parts[1]*100):0,rawA:L.a===-1?-1:L.a,rawB:L.b}})},[S,b,c,k.period,k.monthRange,r]),P=i.useMemo(()=>{if(b||g){const M=(k.period==="week"?S:r[k.monthRange]?.daily??[]).filter(L=>L.a!==-1);if(M.length===0)return 0;const ne=b?M.reduce((L,H)=>L+(H.b>0?H.a/H.b*100:0),0):M.reduce((L,H)=>L+(H.a>0?H.a:0),0);return Math.round(ne/M.length)}return F.reduce((M,ne)=>M+(ne.a>0?ne.a:0)+(c&&ne.b>0?ne.b:0),0)},[F,S,b,g,c,k.period,k.monthRange,r]),B=v&&v.length>0?v.map(M=>({color:M.color,label:M.label})):[{color:o,label:N(l)},...c?[{color:s,label:N(c)}]:[]],I=e==="small";return t.jsx(br,{className:I?"manager-section--compact":e==="large"?"manager-section--full":void 0,inGrid:y,title:N(a),titleClassName:I?"h5 chart-section-title--small":void 0,headRight:I?void 0:t.jsxs(t.Fragment,{children:[!m&&t.jsx(Oi,{control:k}),A&&t.jsx("span",{className:"manager-bar-chart-detail-btn",children:t.jsx(se,{htmlType:"button",size:32,type:"dot",icon:"list",ariaLabel:N("trainingStatus.detail","\uC0C1\uC138\uBCF4\uAE30"),onClick:A})})]}),subRow:t.jsxs(t.Fragment,{children:[u?b||g||p&&C?t.jsx(ka,{label:I?void 0:`${N(k.period==="week"?"manager.chart.weeklyPrefix":"manager.chart.monthlyPrefix")} ${N(p??l)}`,children:C?(C(P).match(/(\d+|[^\d]+)/g)??[]).map((M,ne)=>/\d/.test(M)?t.jsx("span",{className:"barchart-total__num h0",children:M},ne):t.jsx("span",{className:"barchart-total__unit h5",children:M},ne)):t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"barchart-total__num h0",children:P}),d&&t.jsx("span",{className:"barchart-total__unit h5",children:N(d)})]})}):t.jsxs(ka,{children:[t.jsx("span",{className:"barchart-total__num h0",children:P}),t.jsx("span",{className:"barchart-total__unit h5",children:N(l)}),d&&t.jsx("span",{className:"barchart-total__unit h5",children:N(d)})]}):t.jsx("span",{}),t.jsx(gr,{items:B,className:"caption-1"})]}),children:_?t.jsx("div",{className:"manager-bar-chart-loading",children:t.jsx(sa,{size:32})}):t.jsx(n4,{data:F,colorA:o,colorB:c?s:void 0,labelA:N(l),labelB:c?N(c):void 0,barWidth:n??w.barWidth,height:w.height,maxOverride:b?100:void 0,tightMax:f,seriesColors:v?.map(M=>M.color),seriesLabels:v?.map(M=>M.label),rateLabels:b?{total:N("trainingStatus.today.tooltipTotal","\uC804\uCCB4"),done:N("trainingStatus.today.tooltipDone","\uC644\uB8CC")}:void 0})})}function s4(e){if(e.period==="month"){const s=e.monthRange.match(/^(\d+)년 (\d+)월$/),l=new Date,c=s?Number(s[1]):l.getFullYear(),u=s?Number(s[2]):l.getMonth()+1;return{from:new Date(c,u-1,1,0,0,0),to:new Date(c,u,0,23,59,59)}}const n=e.weekRanges.find(s=>s.value===e.weekRange);if(!n){const s=new Date;return{from:s,to:s}}const a=nn(n.year,n.month-1),r=new Date(n.year,n.month-1,a+n.week*7,0,0,0),o=new Date(r);return o.setDate(r.getDate()+6),o.setHours(23,59,59),{from:r,to:o}}const Vi={small:{diameter:96,strokeWidth:16},medium:{diameter:120,strokeWidth:18},large:{diameter:160,strokeWidth:22}};function zi(e){return!Number.isFinite(e)||e<=0?0:e>=1?100:Math.min(99,Math.max(1,Math.round(e*100)))}function Wi({done:e,total:n,segments:a,color:r="var(--color-main)",size:o="medium",strokeWidth:s,label:l="%",hideCenter:c=!1,hideLabel:u=!1}){const d=typeof o=="number"?o:Vi[o].diameter,p=s??(typeof o=="number"?12:Vi[o].strokeWidth),h=d/2,m=(d-p)/2,b=2*Math.PI*m;if(a&&a.length>0){const v=a.reduce((_,A)=>{const y=_.length>0?_[_.length-1].acc:0,N=Number.isFinite(A.ratio)?A.ratio:0,x=Math.max(0,Math.min(N,1-y));return _.push({color:A.color,rotate:-90+y*360,dash:b*x,acc:y+x}),_},[]);return t.jsx("div",{className:"ring-chart",style:{width:d,height:d},children:t.jsxs("svg",{width:d,height:d,viewBox:`0 0 ${d} ${d}`,"aria-hidden":"true",children:[t.jsx("circle",{cx:h,cy:h,r:m,fill:"none",stroke:"var(--color-whiteLine)",strokeWidth:p}),v.map((_,A)=>_.dash>0&&t.jsx("circle",{cx:h,cy:h,r:m,fill:"none",stroke:_.color,strokeWidth:p,strokeDasharray:`${_.dash} ${b}`,strokeLinecap:"round",transform:`rotate(${_.rotate} ${h} ${h})`},A))]})})}const f=(n??0)>0?Math.min((e??0)/n,1):0,g=b*f,C=b-g;return t.jsxs("div",{className:"ring-chart",style:{width:d,height:d},children:[t.jsxs("svg",{width:d,height:d,viewBox:`0 0 ${d} ${d}`,"aria-hidden":"true",children:[t.jsx("circle",{cx:h,cy:h,r:m,fill:"none",stroke:"var(--color-whiteLine)",strokeWidth:p}),f>0&&t.jsx("circle",{cx:h,cy:h,r:m,fill:"none",stroke:r,strokeWidth:p,strokeDasharray:`${g} ${C}`,strokeLinecap:f<.02||f>.98?"butt":"round",transform:`rotate(-90 ${h} ${h})`})]}),!c&&t.jsxs("div",{className:`ring-chart__center${u?"":` ${d<=96?"ring-chart__center--small":o==="medium"?"ring-chart__center--medium":"ring-chart__center--large"}`}`,children:[t.jsx("span",{className:`ring-chart__pct ${d<=96?"h2":"h1"}`,children:zi(f)}),!u&&t.jsx("span",{className:`ring-chart__label ${d<=96?"caption-2":"caption-1"}${d<=96||o==="medium"?" ring-chart__label--tight":""}`,children:l})]})]})}function i4({titleKey:e,headRight:n,icon:a,showTotal:r,totalLabelKey:o,legend:s,loading:l,className:c,inGrid:u=!1,...d}){const{t:p}=me.useTranslation();if(!e)return t.jsx(Wi,{...d});const h=(d.total??0)>0?zi(Math.min((d.done??0)/d.total,1)):0,m=d.size==="small",b=d.size==="large",f=[c,m?"manager-section--compact":b?"manager-section--full":""].filter(Boolean).join(" ")||void 0,g=a&&t.jsx("span",{className:"chart-section-icon",children:t.jsx(Ve,{icon:a,className:"chart-section-icon-inner"})});return t.jsx(br,{className:f,inGrid:u,title:p(e),titleClassName:m?"h5 chart-section-title--small":void 0,headRight:g||(m?void 0:n),subRow:(r||s)&&t.jsxs(t.Fragment,{children:[r?t.jsxs(ka,{label:!m&&o?p(o):void 0,children:[t.jsx("span",{className:"barchart-total__num h0",children:h}),t.jsx("span",{className:"barchart-total__unit h5",children:"%"})]}):t.jsx("span",{}),s&&t.jsx(gr,{items:s})]}),children:l?t.jsx("div",{className:"manager-bar-chart-loading",children:t.jsx(sa,{size:32})}):t.jsx("div",{className:"ring-chart-section-body ring-chart-section-body--offset",children:t.jsx(Wi,{...d,hideCenter:m||d.hideCenter})})})}function l4({label:e,value:n,change:a,changeType:r,icon:o,tooltip:s,onClick:l}){const c=i.useRef(null),{anchorRect:u,openAt:d,close:p}=xa(),h=i.useCallback(()=>{s&&c.current&&d(c.current)},[s,d]),m=r??(a===void 0?void 0:a>0?"up":a<0?"down":"neutral"),b=a===void 0?void 0:a>0?`+${a}`:`${a}`,f=i.useCallback(g=>{l&&(g.key==="Enter"||g.key===" ")&&(g.preventDefault(),l())},[l]);return t.jsxs("div",{ref:c,className:`manager-stat-card${l?" manager-stat-card--clickable":""}`,onClick:l,onKeyDown:l?f:void 0,onPointerEnter:h,onPointerLeave:p,onFocus:h,onBlur:p,role:l?"button":void 0,tabIndex:l?0:void 0,"aria-label":l?`${e} ${n}`:void 0,children:[s&&u&&t.jsx(hn,{anchorRect:{left:u.left,top:u.top+21,right:u.right,bottom:u.bottom,width:u.width,height:u.height},text:s}),t.jsxs("div",{className:"manager-stat-card__label-row",children:[t.jsx("span",{className:"manager-stat-card__label h5",children:e}),o&&t.jsx("span",{className:"manager-stat-card__icon",children:t.jsx(Ve,{icon:o,className:"manager-stat-card__icon-inner"})})]}),t.jsx("div",{className:"manager-stat-card__content",children:t.jsxs("div",{className:"manager-stat-card__left",children:[t.jsx("div",{className:"manager-stat-card__value h2",children:n}),b&&t.jsx("div",{className:`manager-stat-card__change manager-stat-card__change--${m??"neutral"} caption-1`,children:b})]})})]})}function qi({value:e,onChange:n,min:a=0,max:r=100,step:o=1,orientation:s="horizontal",size:l=24,disabled:c=!1,ariaLabel:u,length:d,className:p,label:h,formatValue:m,labelPos:b,labelAlign:f="right",showMinMax:g=!1,minLabel:C,maxLabel:v,showBgTick:_=!1,showFillTick:A=!1,tickStep:y,tickShape:N="dot"}){n&&!u&&zn("Slider:unnamed","[ihab/Slider] \uC774\uB984\uC774 \uC5C6\uC2B5\uB2C8\uB2E4 \u2014 ariaLabel \uC744 \uC8FC\uC138\uC694. label prop \uC740 \uAC12 \uD45C\uAE30 \uBC29\uC2DD\uC774\uC9C0 \uC774\uB984\uC774 \uC544\uB2D9\uB2C8\uB2E4.");const x=Math.min(r,Math.max(a,e)),w=r>a?(x-a)/(r-a):0,j=s==="vertical",k=!n,S=E=>n?.(Number(E.target.value)),F=typeof d=="number"?`${d}px`:d,P={"--slider-ratio":String(w),"--slider-thumb":`${l}px`,...F?j?{height:F}:{width:F}:{}},B=y??o,I=(_||A)&&B>0&&r>a?Math.floor((r-a)/B+1e-6):0;if(I>0&&I<=100){const E=N!=="dash",$=re=>E?`radial-gradient(circle, ${re} 0.5px, transparent 1px)`:j?`linear-gradient(to bottom, transparent calc(50% - 2px), ${re} calc(50% - 2px), ${re} calc(50% + 2px), transparent calc(50% + 2px))`:`linear-gradient(to right, transparent calc(50% - 2px), ${re} calc(50% - 2px), ${re} calc(50% + 2px), transparent calc(50% + 2px))`,K=E?"2px":"4px",R=[],V=[],q=[];for(let re=0;re<=I;re++){const ie=re*B/(r-a);if(ie>1+1e-6)break;const ue=`${((j?1-ie:ie)*100).toFixed(4)}%`,Ce=ie<=w+1e-6;if(Ce?!A:!_)continue;const be=Ce?"var(--slider-tick-color-on-fill, var(--color-deepWhite))":"var(--slider-tick-color, var(--color-lightGray))";R.push($(be)),V.push(j?`${K} var(--slider-thumb)`:`var(--slider-thumb) ${K}`),q.push(j?`center ${ue}`:`${ue} center`)}R.push(j?"linear-gradient(to top, var(--slider-fill-color) var(--slider-fill), var(--color-darkWhite) var(--slider-fill))":"linear-gradient(to right, var(--slider-fill-color) var(--slider-fill), var(--color-darkWhite) var(--slider-fill))"),V.push("100% 100%"),q.push("0 0"),P.backgroundImage=R.join(", "),P.backgroundSize=V.join(", "),P.backgroundPosition=q.join(", "),P.backgroundRepeat="no-repeat"}const M=t.jsx("input",{type:"range",className:ve("slider",`slider--${s}`,k&&"slider--static",!h&&!g&&p),min:a,max:r,step:o,value:x,disabled:c,readOnly:k,tabIndex:k?-1:void 0,"aria-label":u,"aria-orientation":s,onChange:S,style:P});if(!h&&!g)return M;const ne=t.jsx("span",{className:"slider-wrap__minmax caption-1",children:C??a}),L=t.jsx("span",{className:"slider-wrap__minmax caption-1",children:v??r}),H=g?t.jsxs("div",{className:ve("slider-track-group",`slider-track-group--${s}`,!h&&p),children:[j?L:ne,M,j?ne:L]}):M;if(!h)return H;const ee=b??(j?"bottom":"right"),W=`${Math.round(r>a?(x-a)/(r-a)*100:0)}%`,z=m?m(x):h==="percent"?W:h==="count"?`${x} / ${r}`:String(x),T=t.jsx("span",{className:"slider-wrap__value body-3b",children:z});return t.jsxs("div",{className:ve("slider-wrap",`slider-wrap--${s}`,`slider-wrap--label-${ee}`,`slider-wrap--align-${f}`,p),children:[H,T]})}const c4=.86,u4=250,yr=(e,n,a,r)=>Math.round(Math.min(r,Math.max(a,e-n))),vr=(e,n,a,r)=>{const o=yr(e,n,a,r);return`${o<0?"-":"+"}${Math.abs(o)} dB`};function xr({analyser:e,audioElement:n,orientation:a="horizontal",length:r,label:o,labelPos:s,labelAlign:l="right",floorDb:c=-60,refDb:u=-35,displayMin:d=-5,displayMax:p=25,className:h,ariaLabel:m}){const b=i.useRef(null),f=i.useRef(null),g=i.useRef(null),C=i.useRef(null),[v,_]=i.useState(null);i.useEffect(()=>{const x=ne=>{const L=vr(ne,u,d,p);g.current&&(g.current.textContent=L);const H=b.current;H&&(H.setAttribute("aria-valuenow",String(yr(ne,u,d,p))),H.setAttribute("aria-valuetext",L))},w=e??Lm(n)??(v&&v.el===n?v.node:null),j=f.current;if(!w||!j){j?.style.setProperty("--meter-level","0"),x(c);let ne=!1;return!e&&n&&ma(n).then(L=>{!ne&&L&&_({el:n,node:L})}),()=>{ne=!0}}Xa();const k=new Float32Array(w.fftSize);let S=0,F=0,P=0,B=0,I=null;const M=ne=>{const L=$m(w,k);S=L>S?L:S*c4;const H=S>1e-5?20*Math.log10(S):-1/0,ee=Math.max(c,H),W=ee-u,z=Math.min(1,Math.max(0,(W-d)/(p-d)));if(j.style.setProperty("--meter-level",z.toFixed(3)),F+=ee,P+=1,ne-B>=u4){const T=F/P;I=I==null?T:I*.6+T*.4,x(I),F=0,P=0,B=ne}C.current=requestAnimationFrame(M)};return C.current=requestAnimationFrame(M),()=>{C.current!=null&&cancelAnimationFrame(C.current),C.current=null}},[e,n,v,c,u,d,p]);const A=typeof r=="number"?`${r}px`:r,y=t.jsx("div",{className:"audio-meter__track",style:A?a==="vertical"?{height:A}:{width:A}:{},children:t.jsx("div",{ref:f,className:"audio-meter__fill"})}),N=s??(a==="vertical"?"bottom":"right");return t.jsxs("div",{ref:b,className:ve("audio-meter",`audio-meter--${a}`,o&&`audio-meter--label-${N}`,o&&`audio-meter--align-${l}`,h),role:"meter","aria-label":m,"aria-valuemin":d,"aria-valuemax":p,"aria-valuenow":yr(c,u,d,p),"aria-valuetext":vr(c,u,d,p),children:[y,o&&t.jsx("span",{ref:g,className:"audio-meter__value caption-2",children:vr(c,u,d,p)})]})}const Ui=500;function Gi({message:e,position:n,duration:a,onClose:r}){const[o,s]=i.useState(!1),[l,c]=i.useState(!1),u=i.useRef(l),d=i.useRef(o);i.useEffect(()=>{u.current=l},[l]),i.useEffect(()=>{d.current=o},[o]);const p=i.useRef(null),h=i.useRef(""),m=i.useRef(r);i.useEffect(()=>{m.current=r});const b=a,f=i.useRef(null),g=i.useRef(0),C=i.useRef(0),v=i.useRef(!1),_=i.useRef(null),A=i.useRef(null),y=i.useRef(null),N=i.useRef(null),x=i.useRef(()=>{});x.current=k=>{k<0||(g.current=Date.now(),C.current=k,f.current=setTimeout(()=>{f.current=null,s(!1),_.current=setTimeout(()=>{c(!1);try{m.current()}catch{}},Ui)},k))};const w=i.useCallback(()=>{v.current||!f.current||(v.current=!0,clearTimeout(f.current),f.current=null,C.current=Math.max(0,C.current-(Date.now()-g.current)))},[]),j=i.useCallback(()=>{v.current&&(v.current=!1,x.current(C.current))},[]);return i.useEffect(()=>{if(e!==h.current&&(f.current&&(clearTimeout(f.current),f.current=null),_.current&&(clearTimeout(_.current),_.current=null)),e){if(d.current)return b>0&&!f.current&&(v.current=!1,x.current(b)),h.current=e,()=>{f.current&&(clearTimeout(f.current),f.current=null)};const k=()=>{const S=p.current;if(S)try{S.classList.remove("is-visible"),S.style.transition="none",n==="top"?S.style.transform="translateX(-50%) translateY(-16px)":S.style.transform="translateX(-50%) translateY(16px)",S.style.opacity="0",S.offsetWidth,S.style.transition="",S.classList.add("is-visible"),N.current&&clearTimeout(N.current),N.current=setTimeout(()=>{N.current=null;try{S.style.opacity="",S.style.transform="",S.style.transition=""}catch{}},60)}catch{}};u.current?(k(),s(!0)):(c(!0),A.current=requestAnimationFrame(()=>{y.current=requestAnimationFrame(()=>{k(),s(!0)})})),b>0&&(v.current=!1,x.current(b))}else s(!1),_.current=setTimeout(()=>c(!1),Ui);return h.current=e,()=>{f.current&&clearTimeout(f.current),_.current&&clearTimeout(_.current),A.current&&cancelAnimationFrame(A.current),y.current&&cancelAnimationFrame(y.current),N.current&&clearTimeout(N.current),f.current=null,_.current=null,A.current=null,y.current=null,N.current=null}},[e,b,n]),{mounted:l,showing:o,popupRef:p,pause:w,resume:j}}function Rn({message:e="",position:n="top",type:a="normal",onClose:r=()=>{},duration:o=2e3}){const{mounted:s,showing:l,popupRef:c,pause:u,resume:d}=Gi({message:e,position:n,duration:o,onClose:r});if(!s)return null;const p=a==="notice"||a==="warning"?a:"normal",h=t.jsx("div",{ref:c,className:`toast toast--${n} ${l?"is-visible":""}`,role:"status","aria-live":"polite",onMouseEnter:u,onMouseLeave:d,onFocusCapture:u,onBlurCapture:d,children:t.jsx("div",{className:`toast__inner toast__inner--${p} body-2`,children:e})});return typeof document<"u"?Ft.createPortal(h,document.body):h}const d4=24;function p4({value:e,max:n=100,size:a=8,color:r,trackColor:o,label:s,formatValue:l,labelPos:c,labelAlign:u="right",ariaLabel:d,className:p}){const h=Number.isFinite(n)&&n>0?n:1,m=Math.max(0,Math.min(Number.isFinite(e)?e:0,h)),b=m/h*100,f=c??(a>=d4?"inside":"bottom"),g=f==="center"?"inside":f,C=g==="inside"&&(u==="left"?b>=15:u==="center"?b>=50:b>=85),v={};return r&&(v["--progress-bar-fill"]=r),o&&(v["--progress-bar-track"]=o),t.jsxs("div",{className:ve("progress-bar",`progress-bar--${a}`,`progress-bar--label-${g}`,s&&`progress-bar--align-${u}`,s&&C&&"progress-bar--label-on-fill",p),style:v,children:[t.jsx("div",{className:"progress-bar__track",role:"progressbar","aria-valuenow":m,"aria-valuemin":0,"aria-valuemax":h,"aria-label":d,children:t.jsx("div",{className:"progress-bar__fill",style:{width:`${b}%`}})}),s&&t.jsx("span",{className:"progress-bar__label caption-1b",children:l?l(m):s==="percent"?`${Math.round(b)}%`:s==="raw"?String(m):`${m} / ${h}`})]})}const h4="rgba(255, 255, 255, 0.16)";function Ki({max:e,index:n,inactiveBg:a,inactiveColor:r,transparent:o,variant:s="numbered",announce:l=!1,ariaLabel:c}){const{t:u}=me.useTranslation(),d=Ut("(max-width: 767px)");if(!Number.isInteger(e)||e<=0)return null;const p=Number.isInteger(n)?Math.max(0,Math.min(n,e-1)):0,h=c??u("progress.steps",{current:p+1,total:e,defaultValue:"\uC9C4\uD589 \uB2E8\uACC4 {{current}} / {{total}}"}),m={};return a&&(m["--pi-inactive-bg"]=a),r&&(m["--pi-inactive-color"]=r),o&&(a||(m["--pi-inactive-bg"]=h4),r||(m["--pi-inactive-color"]="var(--color-white)")),s==="dot"?t.jsx("div",{className:"progress-indicator progress-indicator--dot",style:m,role:l?"status":"img","aria-label":h,children:Array.from({length:e}).map((b,f)=>t.jsx("span",{"aria-hidden":"true",className:`progress-indicator-dot--dot${f<p?" done":f===p?" active":""}`},f))}):d?t.jsx("div",{className:"progress-indicator progress-indicator--mobile",style:m,role:"list","aria-label":h,children:t.jsxs("span",{role:"listitem",className:"progress-indicator-dot active body-3",children:[p+1," / ",e]})}):t.jsx("div",{className:"progress-indicator",style:m,role:"list","aria-label":h,children:Array.from({length:e}).map((b,f)=>t.jsx("span",{role:"listitem","aria-current":f===p?"step":void 0,className:`progress-indicator-dot ${f<p?" done":f===p?" active":""} body-3`,children:f+1},f))})}function m4(e){if(!e)return[];const n=[];let a=0,r="";for(const o of e.trim()){if(o==="("?a++:o===")"&&a--,/\s/.test(o)&&a===0){r&&(n.push(r),r="");continue}r+=o}return r&&n.push(r),n}function f4({children:e,className:n,style:a}){return t.jsx("div",{className:n?`table-cell ${n}`:"table-cell",style:a,children:e})}function _r({variant:e="default",children:n,className:a,draggable:r,onClick:o,onMouseEnter:s,onMouseLeave:l,onDragStart:c,onDragEnd:u,expandedContent:d}){const p=i.useCallback(h=>{o&&h.target===h.currentTarget&&(h.key==="Enter"||h.key===" ")&&(h.preventDefault(),o())},[o]);return e==="loading"?t.jsx("div",{className:"table-row-wrap",children:t.jsx("div",{className:"table-row table-row--loading",children:t.jsx(sa,{size:28})})}):e==="empty"?t.jsx("div",{className:"table-row-wrap",children:t.jsx("div",{className:"table-row table-row--empty body-3",children:n})}):t.jsxs("div",{className:"table-row-wrap",children:[t.jsx("div",{className:a?`table-row ${a}`:"table-row",draggable:r,onClick:o,onKeyDown:o?p:void 0,onMouseEnter:s,onMouseLeave:l,onDragStart:c,onDragEnd:u,role:o?"button":void 0,tabIndex:o?0:void 0,children:n}),d&&t.jsx("div",{className:"table-row-expand",children:d})]})}function C4({dir:e}){return t.jsx(e==="asc"?Ao:ko,{className:"table-field__sort-arrow",size:16,strokeWidth:2})}function g4({children:e,onClick:n,className:a,sortDir:r,onResizeStart:o}){const s=i.useCallback(l=>{n&&l.target===l.currentTarget&&(l.key==="Enter"||l.key===" ")&&(l.preventDefault(),n())},[n]);return t.jsxs("div",{onClick:n,onKeyDown:n?s:void 0,role:n?"button":void 0,tabIndex:n?0:void 0,"aria-sort":r?r==="asc"?"ascending":"descending":void 0,className:ve("table-field body-3",a,r?"table-field--sorted":"",o?"table-field--resizable":""),children:[e,r&&t.jsx(C4,{dir:r}),o&&t.jsx("span",{className:"table-field__resizer",onPointerDown:o,onClick:l=>l.stopPropagation(),"aria-hidden":"true"})]})}function wr({fields:e=[],headerGroups:n,items:a=[],renderRow:r,onRowClick:o,isRowClickable:s,onRowMouseEnter:l,onRowMouseLeave:c,onRowDragStart:u,onRowDragEnd:d,draggingId:p,gridTemplateColumns:h,mobileGridTemplateColumns:m,resizable:b=!1,resizeMode:f="grow",resizeStorageKey:g,size:C="small",title:v,icon:_,count:A,collapsed:y=!1,onToggleCollapse:N,headerActions:x,empty:w,loading:j,dragOver:k=!1,onDragOver:S,onDragLeave:F,onDrop:P,renderExpandedRow:B,expandedId:I}){const{t:M}=me.useTranslation(),ne=Ut("(max-width: 767px)"),L=m&&ne?m:null,H=b&&!L,ee=48,W=g?`table-cols:${g}`:null,z=i.useRef(null),T=i.useRef(()=>!1),E=i.useRef([]),$=i.useRef(null),K=X=>{if(!X||typeof window>"u")return null;try{const pe=JSON.parse(window.localStorage.getItem(X)??"null");return Array.isArray(pe)&&pe.length>0&&pe.every(Ne=>typeof Ne=="number"&&Number.isFinite(Ne)&&Ne>0)?pe:null}catch{return null}},[R,V]=i.useState(()=>K(W)),[q,re]=i.useState(W);q!==W&&(re(W),V(K(W)));const ie=i.useRef(R);i.useEffect(()=>{ie.current=R},[R]);const ue=i.useCallback(X=>{const pe=$.current;pe&&V(Ne=>{if(!Ne)return Ne;const Te=[...Ne];if(pe.next!=null&&pe.startWNext!=null){const Ie=X.clientX-pe.startX,Ae=Math.max(ee-pe.startW,Math.min(pe.startWNext-ee,Ie));Te[pe.index]=pe.startW+Ae,Te[pe.next]=pe.startWNext-Ae}else Te[pe.index]=Math.max(ee,pe.startW+(X.clientX-pe.startX));return Te})},[]),Ce=i.useCallback(()=>{if($.current=null,window.removeEventListener("pointermove",ue),window.removeEventListener("pointerup",Ce),document.body.style.cursor="",document.body.style.userSelect="",W&&ie.current)try{window.localStorage.setItem(W,JSON.stringify(ie.current))}catch{}},[ue,W]),be=i.useCallback((X,pe)=>{pe.preventDefault(),pe.stopPropagation();const Ne=z.current;if(!Ne)return;const Te=Array.from(Ne.children).map(Ae=>Ae.getBoundingClientRect().width),Ie=f==="fit"?e.findIndex((Ae,Ue)=>Ue>X&&Ae.resizable!==!1):-1;$.current=Ie>=0?{index:X,startX:pe.clientX,startW:Te[X],next:Ie,startWNext:Te[Ie]}:{index:X,startX:pe.clientX,startW:Te[X]},V(Te),window.addEventListener("pointermove",ue),window.addEventListener("pointerup",Ce),document.body.style.cursor="col-resize",document.body.style.userSelect="none"},[ue,Ce,f,e]),Z=i.useCallback(()=>{const X=z.current,pe=X?.closest(".table-wrap");if(!X||!pe)return;const Ne=pe.style.getPropertyValue("--table-grid-cols");pe.style.setProperty("--table-grid-cols",e.map((Oe,We)=>T.current(We)?E.current[We]:"max-content").join(" "));const Te=Array.from(pe.querySelectorAll(".table-row")).filter(Oe=>!Oe.classList.contains("table-row--loading")&&!Oe.classList.contains("table-row--empty")),Ie=e.map((Oe,We)=>{let He=X.children[We]?.getBoundingClientRect().width??0;for(const je of Te){const Re=je.children[We];Re&&(He=Math.max(He,Re.getBoundingClientRect().width))}return Math.max(ee,Math.ceil(He))}),Ae=window.getComputedStyle(X),Ue=X.clientWidth-(parseFloat(Ae.paddingLeft)||0)-(parseFloat(Ae.paddingRight)||0);Ne?pe.style.setProperty("--table-grid-cols",Ne):pe.style.removeProperty("--table-grid-cols");let Le=Ie;const ye=Ie.reduce((Oe,We,He)=>Oe+(T.current(He)?We:0),0),ze=Ie.reduce((Oe,We,He)=>Oe+(T.current(He)?0:We),0),Fe=Ue-ye;if(Ue>0&&ze>0&&Fe>0){const Oe=Fe/ze;Le=Ie.map((He,je)=>T.current(je)?He:Math.max(ee,Math.round(He*Oe)));const We=Math.round(Fe-Le.reduce((He,je,Re)=>He+(T.current(Re)?0:je),0));if(We!==0){let He=-1;Le.forEach((je,Re)=>{!T.current(Re)&&(He<0||je>Le[He])&&(He=Re)}),He>=0&&(Le[He]=Math.max(ee,Le[He]+We))}}if(V(Le),W)try{window.localStorage.setItem(W,JSON.stringify(Le))}catch{}},[e,f,W]);i.useEffect(()=>()=>{$.current&&(window.removeEventListener("pointermove",ue),window.removeEventListener("pointerup",Ce),document.body.style.cursor="",document.body.style.userSelect="")},[ue,Ce]);const ce=m4(h),J=ce.filter(X=>/\b(auto|min-content|max-content)\b|fit-content\(/.test(X));J.length>0&&zn(`table-content-track:${h}`,`[ihabdevteam-core] Table \uC758 gridTemplateColumns \uC5D0 \uB0B4\uC6A9\uC73C\uB85C \uD06C\uAE30\uAC00 \uC815\uD574\uC9C0\uB294 \uD2B8\uB799(${J.join(", ")})\uC774 \uC788\uC2B5\uB2C8\uB2E4. \uBA38\uB9AC\uC640 \uBAB8\uD1B5\uC740 \uC11C\uB85C \uB2E4\uB978 \uACA9\uC790\uB77C \uADF8 \uD2B8\uB799\uC774 \uAC01\uC790 \uB2E4\uB974\uAC8C \uD480\uB824 \uC5F4\uC774 \uC5B4\uAE0B\uB0A9\uB2C8\uB2E4. px \uC774\uB098 fr \uC744 \uC4F0\uC138\uC694. (\uBC1B\uC740 \uAC12: ${h})`);const ge=X=>/^\d+(\.\d+)?px$/.test(ce[X]??"");T.current=ge,E.current=ce;const xe=X=>f==="fit"&&!ge(X)?"fr":"px",de=R&&R.length===e.length&&(f==="fit"||a.length>0),fe=L??(de?e.map((X,pe)=>X.resizable===!1&&ce[pe]?ce[pe]:`${R[pe]}${xe(pe)}`).join(" "):h),_e=fe?{"--table-grid-cols":fe}:void 0,De=v!==void 0;return t.jsx("div",{className:`table-wrap table-wrap--${C}${H?" table-wrap--resizable":""}${k?" table-wrap--dragover":""}${y?" table-wrap--collapsed":""}`,style:_e,onDragOver:S,onDragLeave:F,onDrop:P,children:t.jsxs("div",{className:"table body-2",children:[De&&t.jsxs("div",{className:"table-header",onClick:N,role:N?"button":void 0,tabIndex:N?0:void 0,"aria-expanded":N?!y:void 0,onKeyDown:N?X=>{(X.key==="Enter"||X.key===" ")&&(X.preventDefault(),N())}:void 0,children:[N&&t.jsx(se,{htmlType:"button",size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:y?"chevron-right":"chevron-down",ariaLabel:y?M("common.expand","\uD3BC\uCE58\uAE30"):M("common.collapse","\uC811\uAE30"),className:"table-header__chevron"}),_&&t.jsx(Ve,{icon:_,label:typeof v=="string"?v:void 0,className:"table-header__icon"}),t.jsx("span",{className:"table-header__title h5b",children:v}),A!==void 0&&t.jsx("span",{className:"table-header__count body-3b",children:A}),x&&t.jsx("span",{className:"table-header__actions",onClick:X=>X.stopPropagation(),children:x})]}),!y&&t.jsxs(t.Fragment,{children:[n&&n.length>0&&t.jsx("div",{className:"table-fields table-fields--groups",children:n.map((X,pe)=>t.jsx("div",{className:ve("table-field body-3",X.className),style:{gridColumn:`span ${X.span}`},children:X.label},pe))}),t.jsxs("div",{className:ve("table-fields-strip",H&&"table-fields-strip--resizable"),children:[t.jsx("div",{className:"table-fields",ref:z,children:e.map((X,pe)=>t.jsx(g4,{onClick:X.onClick,className:X.className,sortDir:X.sortDir,onResizeStart:H&&pe<e.length-1&&X.resizable!==!1&&(f!=="fit"||e.some((Ne,Te)=>Te>pe&&Ne.resizable!==!1))?Ne=>be(pe,Ne):void 0,children:X.label},pe))}),H&&t.jsx(se,{htmlType:"button",size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:"chevrons-left-right-ellipsis",ariaLabel:M("table.resetColumns","\uCE78 \uB108\uBE44 \uCD08\uAE30\uD654"),showTooltipInfo:M("table.resetColumns","\uCE78 \uB108\uBE44 \uCD08\uAE30\uD654"),className:"table-fields__reset",onClick:Z})]}),t.jsx("div",{className:"table-body",children:j?t.jsx(_r,{variant:"loading"}):a.length===0&&w?t.jsx(_r,{variant:"empty",children:w}):a.map((X,pe)=>{const Ne=p!=null&&X.id===p,Te=!!o&&(s?s(X):!0),Ie=I!=null&&(I instanceof Set?I.has(X.id):X.id===I);return t.jsx(_r,{className:`${Te?" table-row--clickable":""}${u?" table-row--draggable":""}${Ne?" table-row--dragging":""}`.trim(),draggable:!!u,onClick:Te?()=>o(X):void 0,onMouseEnter:l?Ae=>l(X,Ae):void 0,onMouseLeave:c?Ae=>c(X,Ae):void 0,onDragStart:u?Ae=>u(X,Ae):void 0,onDragEnd:d?Ae=>d(X,Ae):void 0,expandedContent:Ie&&B?B(X):void 0,children:r(X).map((Ae,Ue)=>t.jsx(f4,{className:Ae.className,style:Ae.style,children:Ae.content},Ue))},String(X.id??pe))})})]})]})})}function Yi(e){switch(e){case"\uBCF4\uCCAD\uAE30":return"main";case"\uC778\uACF5\uC640\uC6B0":return"sub";default:return"default"}}function Zi(e,n){return n!=="wornAt"?String(e[n]??""):e.wornYear?`${e.wornYear}-${e.wornMonth.padStart(2,"0")}-${e.wornDay.padStart(2,"0")}`:""}function b4({rows:e,onSelect:n,onDelete:a,onWear:r,onRelease:o,onAdd:s}){const{t:l}=me.useTranslation(),c=f=>f==="\uC88C"?l("device.direction.left","\uC88C"):l("device.direction.right","\uC6B0"),{\uC815\uB82C:u,\uCE78:d}=L0(),p=i.useMemo(()=>{if(!u)return e;const{key:f,asc:g}=u;return[...e].sort((C,v)=>{const _=f==="worn"?Number(v.worn)-Number(C.worn):Zi(C,f).localeCompare(Zi(v,f),"ko");return g?_:-_})},[e,u]),{pageRows:h,pageSizeProps:m,paginationProps:b}=M0(p,u);return t.jsxs("div",{className:"dlp-side-table",children:[t.jsx(fr,{count:{value:e.length,unit:l("customers.device.unit","\uAC1C")},pageSize:m,pagination:b,actions:s&&t.jsx(se,{htmlType:"button",size:40,type:"bar",variant:"main",icon:"plus",label:l("customers.device.addButton","\uAE30\uAE30 \uCD94\uAC00"),onClick:s})}),t.jsx(wr,{resizable:!0,resizeMode:"fit",resizeStorageKey:"customer-device-history-v2",fields:[{...d(l("customers.device.wearingNow","\uCC29\uC6A9"),"worn"),resizable:!1},d(l("device.direction.label","\uBC29\uD5A5"),"side"),d(l("device.deviceType","\uC885\uB958"),"device"),d(l("device.brand","\uBE0C\uB79C\uB4DC"),"brand"),d(l("device.fitType","\uCC29\uC6A9\uD615\uD0DC"),"fitType"),d(l("device.productName","\uC81C\uD488\uBA85"),"productName"),d(l("device.wornDate","\uCC29\uC6A9\uC77C"),"wornAt"),...a?[{label:"",resizable:!1}]:[]],items:h.map((f,g)=>({id:f.id??`${f.side}-${g}`,row:f})),gridTemplateColumns:`56px 110px 110px minmax(120px, 1fr) 100px minmax(120px, 1fr) 110px${a?" 80px":""}`,renderRow:({row:f})=>[{content:t.jsx("span",{className:"dlp-worn-check",onClick:g=>g.stopPropagation(),children:t.jsx($i,{checked:f.worn,disabled:!r||!o,ariaLabel:f.worn?l("customers.device.unwear","\uCC29\uC6A9 \uD574\uC81C"):l("customers.device.wear","\uCC29\uC6A9"),onChange:g=>{g?r?.(f):o?.(f)}})})},{content:t.jsx("span",{children:c(f.side)})},{content:f.device?t.jsx(rt,{size:"small",variant:Yi(f.device),fill:"soft",label:f.device}):t.jsx("span",{})},{content:t.jsx("span",{children:f.brand})},{content:t.jsx("span",{children:f.fitType||"-"})},{content:t.jsx("span",{children:f.productName||"-"})},{content:t.jsx("span",{className:"dlp-date",children:f.wornYear?`${f.wornYear}.${f.wornMonth}.${f.wornDay}`:"-"})},...a?[{content:t.jsx("span",{className:"dlp-row-actions",children:t.jsx(se,{htmlType:"button",size:28,type:"bar",variant:"transparent-gray",label:l("common.delete","\uC0AD\uC81C"),onClick:g=>{g?.stopPropagation(),a(f)}})})}]:[]],onRowClick:({row:f})=>n(f),empty:l("customers.device.historyEmpty","\uB4F1\uB85D\uB41C \uAE30\uAE30 \uC774\uB825\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.")})]})}function Xi(e,n){return e?{role:n?.role??"button",tabIndex:0,...n?.selected===void 0?{}:{"aria-selected":n.selected},onKeyDown:a=>{a.target===a.currentTarget&&(a.key!=="Enter"&&a.key!==" "||(a.preventDefault(),e(a)))}}:{}}function y4(e,n){return new Date(e,n+1,0).getDate()}function v4(e,n){return new Date(e,n,1).getDay()}function x4({visits:e=[],onVisitClick:n,onVisitMove:a,onDayClick:r}){const{t:o}=me.useTranslation(),s=i.useMemo(()=>o("calendar.dow",{returnObjects:!0}),[o]),[l,c]=i.useState(new Date().getFullYear()),[u,d]=i.useState(new Date().getMonth()),[p,h]=i.useState(null),m=i.useRef(null),b=new Date,f=i.useMemo(()=>{const y={};return e.forEach(N=>{y[N.date]||(y[N.date]=[]),y[N.date].push(N)}),y},[e]),g=i.useMemo(()=>{const y=y4(l,u),N=v4(l,u),x=[];for(let w=0;w<N;w++)x.push(null);for(let w=1;w<=y;w++)x.push(w);for(;x.length<35;)x.push(null);return x},[l,u]),C=i.useCallback(()=>{u===0?(c(y=>y-1),d(11)):d(y=>y-1)},[u]),v=i.useCallback(()=>{u===11?(c(y=>y+1),d(0)):d(y=>y+1)},[u]),_=y=>`${l}-${String(u+1).padStart(2,"0")}-${String(y).padStart(2,"0")}`,A=y=>b.getFullYear()===l&&b.getMonth()===u&&b.getDate()===y;return t.jsxs("div",{children:[t.jsxs("div",{className:"calendar-nav",children:[t.jsx("button",{type:"button",className:"calendar-nav__button",onClick:C,"aria-label":o("calendar.prevMonth","\uC774\uC804 \uB2EC"),children:t.jsx(Ve,{icon:"chevron-left",label:"",className:"",svgClassName:"calendar-nav__button-icon",size:18})}),t.jsx("span",{className:"calendar-nav__title h5",children:o("calendar.yearMonth",{year:l,month:u+1})}),t.jsx("button",{type:"button",className:"calendar-nav__button",onClick:v,"aria-label":o("calendar.nextMonth","\uB2E4\uC74C \uB2EC"),children:t.jsx(Ve,{icon:"chevron-right",label:"",className:"",svgClassName:"calendar-nav__button-icon",size:18})}),t.jsxs("div",{className:"calendar-nav__legend",children:[t.jsx("span",{className:"calendar-nav__legend-dot calendar-nav__legend-dot--main"}),t.jsx("span",{className:"caption-1",children:o("calendar.legend.visited","\uBC29\uBB38")}),t.jsx("span",{className:"calendar-nav__legend-dot calendar-nav__legend-dot--sub"}),t.jsx("span",{className:"caption-1",children:o("calendar.legend.scheduled","\uC608\uC57D")}),t.jsx("span",{className:"calendar-nav__legend-dot calendar-nav__legend-dot--disabled"}),t.jsx("span",{className:"caption-1",children:o("calendar.legend.noVisit","\uBBF8\uBC29\uBB38")})]})]}),t.jsxs("div",{className:"calendar-grid",children:[s.map(y=>t.jsx("div",{className:"calendar-day-header body-3",children:y},y)),g.map((y,N)=>{if(y===null)return t.jsx("div",{className:"calendar-cell empty"},`empty-${N}`);const x=y,w=_(x),j=f[w]??[],k=p===w;return t.jsxs("div",{className:`calendar-cell${A(x)?" today":""}${k?" drag-over":""}${r?" calendar-cell--clickable":""}`,role:r?"button":void 0,tabIndex:r?0:void 0,"aria-label":r?o("calendar.addOnDate",{date:w}):void 0,onClick:r?()=>r(w):void 0,onKeyDown:r?S=>{S.target===S.currentTarget&&(S.key!=="Enter"&&S.key!==" "||(S.preventDefault(),r(w)))}:void 0,onDragOver:a?S=>{S.preventDefault(),h(w)}:void 0,onDragLeave:a?S=>{S.currentTarget.contains(S.relatedTarget)||h(null)}:void 0,onDrop:a?S=>{S.preventDefault(),m.current!=null&&(a(m.current,w),m.current=null),h(null)}:void 0,children:[t.jsx("div",{className:"calendar-cell__number body-3",children:x}),t.jsx("div",{className:"calendar-cell__badges",children:j.map((S,F)=>t.jsxs("div",{draggable:!!a,className:`calendar-visit-badge${S.status==="noVisit"?" calendar-visit-badge--no-visit":S.status==="scheduled"?" calendar-visit-badge--scheduled":""}${n?" calendar-visit-badge--clickable":""}${a?" calendar-visit-badge--draggable":""}`,onDragStart:a?P=>{m.current=S.id,P.dataTransfer.effectAllowed="move"}:void 0,onDragEnd:a?()=>{m.current=null,h(null)}:void 0,onClick:n?P=>{P.stopPropagation(),n(S)}:void 0,...Xi(n?()=>n(S):void 0),"aria-label":[S.time?fs(S.time,o):null,S.customer,o(S.status==="noVisit"?"calendar.legend.noVisit":S.status==="scheduled"?"calendar.legend.scheduled":"calendar.legend.visited")].filter(Boolean).join(" "),children:[S.time&&t.jsx("span",{className:"calendar-visit-badge__time body-3",children:fs(S.time,o)}),t.jsx("span",{className:"calendar-visit-badge__name body-3",children:S.customer}),S.status==="noVisit"&&t.jsx("span",{className:"calendar-visit-badge__no-visit caption-1",children:o("calendar.legend.noVisit","\uBBF8\uBC29\uBB38")})]},S.id??F))})]},x)})]})]})}const _4={page:"h3",pagePopup:"h4",popup:"h5"};function Pn({type:e="page",title:n,headingLevel:a,icon:r,action:o,disc:s,children:l,className:c,style:u}){const d=_4[e],p=n||s,h=a?`h${a}`:"div";return t.jsxs("div",{className:ve("section",`section--${e}`,c),style:u,children:[p&&t.jsxs("div",{className:"section__header",children:[t.jsxs("div",{className:"section__title-row",children:[r&&t.jsx(Ve,{icon:r,label:typeof n=="string"?n:void 0,className:"section__icon"}),t.jsxs("div",{className:"section__title-group",children:[n&&t.jsx(h,{className:`section__title ${d}`,children:n}),s&&t.jsx("div",{className:"section__disc body-3",children:s})]})]}),o&&t.jsx("div",{className:"section__action",children:o})]}),l]})}function Ji({icon:e,label:n,tooltip:a,wrapperStyle:r,color:o,bgColor:s,useHover:l=!0,iconSize:c="medium"}){const u=c==="small",d=ve("category-icon",u?"category-icon--small":""),p=u?16:20,h=i.useRef(null),[m,b]=i.useState(!1),f=i.useMemo(()=>{const x=r&&typeof r=="object"?{...r}:{};return!o&&!s?x:{...x,...o?{color:o,"--t-item-fg":o}:{},...s?{"--t-item-bg":s}:{}}},[r,o,s]),g=a||n,[C,v]=i.useState(null);i.useLayoutEffect(()=>{m&&v(h.current?.getBoundingClientRect()??null)},[m]),i.useEffect(()=>{if(!l&&m)try{b(!1)}catch{}},[l,m]),i.useEffect(()=>{if(!m)return;const x=w=>{const j=h.current;if(!j)return;const k=w.target;k&&!j.contains(k)&&b(!1)};return document.addEventListener("pointerdown",x,!0),()=>document.removeEventListener("pointerdown",x,!0)},[m]);const _=i.useCallback(()=>{l&&b(!0)},[l]),A=i.useCallback(()=>{l&&b(!1)},[l]),y=i.useCallback(()=>b(!1),[]),N=i.useCallback(x=>{if(x.key==="Escape"){b(!1);return}(x.key==="Enter"||x.key===" ")&&(x.preventDefault(),b(w=>!w))},[]);return t.jsxs("span",{ref:h,className:"category-icon__wrap",onPointerEnter:_,onPointerLeave:A,onFocus:_,onBlur:A,onKeyDown:N,role:"button",tabIndex:0,"aria-label":typeof g=="string"?g:void 0,"aria-haspopup":!!g,"aria-expanded":m,"data-tooltip-ignore":!0,children:[t.jsx(Ve,{icon:e,label:n,className:d,imgClassName:"category-icon__image",maskClassName:"category-icon__mask",svgClassName:"category-icon__svg",wrapperStyle:f,size:p}),m&&g&&t.jsx(hn,{anchorRect:C,text:typeof g=="string"?g:void 0,offset:8,onClose:y,className:"category-icon__tooltip",ariaLabel:typeof g=="string"?g:void 0})]})}function w4(e,n){if(!e)return{previewCodes:[],previewBucket:null};const a=e,r=l=>l.map(c=>c?.contextCode||c?.context_code).filter(Boolean).map(String);if(n==="LISTEN_IN_NOISE"){const l=a.sentences||a.items||[],c=Array.isArray(l)&&l.length>0?r(l):[];return c.length===0&&(a.contextCode||a.context_code)&&c.push(String(a.contextCode||a.context_code)),{previewCodes:c,previewBucket:"LIN_D"}}if(n==="SHORT_STORY"){const l=a.items||a.sentences||[],c=Array.isArray(l)&&l.length>0?r(l):[];return c.length===0&&(a.contextCode||a.context_code)&&c.push(String(a.contextCode||a.context_code)),{previewCodes:c,previewBucket:"SHORT_S"}}if(n==="LONG_STORY"){const l=a.items||a.sentences||[],c=Array.isArray(l)&&l.length>0?r(l):[];return c.length===0&&(a.contextCode||a.context_code)&&c.push(String(a.contextCode||a.context_code)),{previewCodes:c,previewBucket:"LONG"}}if(n==="ORDERING_SENTENCE"){const l=a.sentences||a.items||[],c=Array.isArray(l)&&l.length>0?r(l):[];return c.length===0&&(a.contextCode||a.context_code)&&c.push(String(a.contextCode||a.context_code)),{previewCodes:c,previewBucket:"LIN_D"}}const o=a.sentences||a.items||[],s=r(Array.isArray(o)?o:[]);return s.length===0&&(a.contextCode||a.context_code)&&s.push(String(a.contextCode||a.context_code)),{previewCodes:s,previewBucket:null}}function k4(e,n){const[a,r]=i.useState(!1),[o,s]=i.useState(-1),[l,c]=i.useState({key:"",urls:[]}),u=i.useRef(null),d=i.useRef(!1),p=i.useRef(null),[h,m]=i.useState(!1),b=i.useRef([]),{previewCodes:f,previewBucket:g}=w4(e,n),C=`${f.join(",")}|${g??""}`,v=i.useMemo(()=>l.key===C?l.urls:[],[l,C]);i.useEffect(()=>{if(!f.length)return;let A=!1;return(async()=>{const y=[],N=[];for(const x of f)try{const w=Zo(x,g);if(!w){y.push("");continue}let j=null;try{j=await Xo(w)}catch{}if(!j)try{const k=await Jo(w);k&&(j=URL.createObjectURL(k),N.push(j))}catch{}y.push(j??"")}catch{y.push("")}A?N.forEach(x=>{try{URL.revokeObjectURL(x)}catch{}}):(b.current.forEach(x=>{try{URL.revokeObjectURL(x)}catch{}}),b.current=N,c({key:C,urls:y}))})(),()=>{A=!0}},[f.join(","),g]),i.useEffect(()=>()=>{b.current.forEach(A=>{try{URL.revokeObjectURL(A)}catch{}}),b.current=[]},[]);const _=i.useCallback(async A=>{if(A.stopPropagation(),A.preventDefault(),d.current){d.current=!1;try{u.current?.pause()}catch{}r(!1),s(-1);return}if(v.filter(Boolean).length){d.current=!0,r(!0);for(let y=0;y<v.length&&d.current;y++){const N=v[y];if(N){s(y);try{await new Promise((x,w)=>{const j=new Audio(N);u.current=j,j.onended=()=>x(),j.onerror=()=>w(),j.play().catch(w)})}catch{break}}}d.current=!1,r(!1),s(-1)}},[v]);return i.useEffect(()=>()=>{d.current=!1;try{u.current?.pause()}catch{}u.current=null},[]),{playing:a,playingIndex:o,previewUrls:v,previewHover:h,setPreviewHover:m,previewBtnRef:p,handlePreview:_}}const A4=e=>{if(!e)return[];const n=typeof e.context=="string"&&e.context.trim()||typeof e.sentence=="string"&&e.sentence.trim()||typeof e.text=="string"&&e.text.trim()||"";if(n)return[String(n)];const a=e.sentences||e.items||e.questions||[];return Array.isArray(a)&&a.length>0?a.map(r=>{if(typeof r=="string")return r;if(r&&typeof r=="object"){const o=r;return o.sentence||o.text||o.context||o.question||o.title||""}return""}).filter(r=>typeof r=="string"&&r.trim().length>0).map(r=>r.trim()):[]};function kr(e){const{index:n,type:a,trainingData:r,ariaLabel:o,depth:s,renderPopup:l,completed:c,completedIds:u,selectedIds:d,tooltipText:p,useDescriptionTooltip:h=!1,onRemove:m,hideCheckBadge:b=!1,showTypeLabel:f=!1,onComplete:g,onSelect:C,onMore:v,countLabelOverride:_,size:A="square"}=e||{},{t:y}=me.useTranslation(),[N,x]=i.useState(!1),w=i.useRef(null),[j,k]=i.useState(!1);i.useEffect(()=>{w.current?.matches(":hover")&&k(!0)},[]);const{playing:S,playingIndex:F,previewUrls:P,previewHover:B,setPreviewHover:I,previewBtnRef:M,handlePreview:ne}=k4(r,a?.key),L=i.useCallback(()=>{C?C():x(!0)},[C]),H=i.useCallback(()=>x(!1),[]),ee=i.useCallback(()=>k(!0),[]),W=i.useCallback(()=>k(!1),[]),z=i.useCallback(()=>I(!0),[I]),T=i.useCallback(()=>I(!1),[I]),[E,$]=i.useState(null);i.useLayoutEffect(()=>{B&&$(M.current?.getBoundingClientRect()??null)},[B,M]);const[K,R]=i.useState(null);i.useLayoutEffect(()=>{j&&!N&&h&&R(w.current?.getBoundingClientRect()??null)},[j,N,h]);const V=i.useCallback(ye=>{ye.target===ye.currentTarget&&(ye.key==="Enter"||ye.key===" ")&&(ye.preventDefault(),L())},[L]),q=r||null,re=i.useMemo(()=>{if(!h)return null;const ye=p?(Array.isArray(p)?p:[p]).filter(Boolean):null,ze=ye&&ye.length>0?ye:A4(q);return ze&&ze.length>0?ze:null},[h,p,q]),ie=i.useCallback(ye=>{ye.stopPropagation(),m?.()},[m]),ue=i.useCallback(ye=>ye.stopPropagation(),[]),Ce=i.useCallback(ye=>{typeof g=="function"&&g(ye)},[g]),be=c||(u&&r?.id!=null?u.has(String(r.id)):!1),Z=!be&&(d!=null&&r?.id!=null?d.has(String(r.id)):!1);Xs("speechear.popup.close",H);const ce=Cs(),J=`${a?.label||""} ${n+1}`,ge=q?.title||q?.name||J;let xe=a?.icon,de,fe="",_e="";try{const ye=q?.category_0||q?.category_main_code||q?.category_main,ze=q?.category_1||q?.category_sub_code||q?.category_sub,Fe=ce.find(Oe=>Oe.key===ye);Fe?.icon&&(xe=Fe.icon),!de&&Fe?.color&&(de={"--t-item-fg":Fe.color}),!de&&q?.iconColor&&(de={"--t-item-fg":q.iconColor}),fe=Fe?.label||"";try{_e=Fe?.subs?.find(Oe=>Oe.key===ze)?.label||""}catch{}}catch{}const De=_e?`${fe} / ${_e}`:fe||a?.label||ge,X=ye=>y("training.countQuestions",{n:ye}),pe=ye=>y("training.countSentences",{n:ye});let Ne="";try{if(q)if(a?.key==="LISTEN_IN_NOISE"){let ye=0;Array.isArray(q.items)&&q.items.length>0?ye=q.items.length:Array.isArray(q.sentences)&&q.sentences.length>0?ye=q.sentences.length:q.sentences&&(ye=1),Ne=pe(ye)}else if(a?.key==="SHORT_STORY"){let ye=1;Array.isArray(r?.items)?ye=r.items.length:Array.isArray(r?.raw&&r.raw?.items)?ye=r.raw.items.length:Array.isArray(q?.questions)?ye=q.questions.length:Array.isArray(q?.sentences)&&(ye=q.sentences.length),Ne=X(ye)}else if(a?.key==="LONG_STORY"){let ye=1;if(Array.isArray(q.items)&&q.items.length>0){const ze=q.items.reduce((Fe,Oe)=>{const We=Oe.questionItems;return Array.isArray(We)?Fe+We.length:Array.isArray(Oe.questions)?Fe+Oe.questions.length:Fe},0);ye=ze>0?ze:q.items.length}else Array.isArray(q.questions)&&q.questions.length>0?ye=q.questions.length:Array.isArray(q.sentences)&&q.sentences.length>0&&(ye=q.sentences.length);Ne=X(ye)}else if(a?.key==="ORDERING_SENTENCE"){let ye=1;Array.isArray(q.items)&&q.items.length>0?ye=q.items.length:Array.isArray(q.sentences)&&q.sentences.length>0&&(ye=q.sentences.length),Ne=pe(ye)}else Array.isArray(q.items)&&(Ne=q.items.length>0?X(q.items.length):"")}catch{}const Te=A==="list",Ie=A==="compact",Ae=A==="small",Ue=Ae&&a?.key?h0().find(ye=>ye.key===a.key)?.label??"":"",Le=!!f&&!!a?.label&&a.label!==String(ge)||Ae&&!!Ue&&Ue!==String(ge);return t.jsxs(t.Fragment,{children:[t.jsxs("div",{ref:w,className:`training-block-button${Te?" training-block-button--list":""}${Ie?" training-block-button--compact":""}${Ae?" training-block-button--small":""}${be?" training-block-button--completed":""}${Z?" training-block-button--selected":""}${Le&&!Ae?" training-block-button--withType":""}${Ae&&!Le?" training-block-button--no-type-label":""}`,onClick:L,onPointerEnter:ee,onPointerLeave:W,role:"button",tabIndex:0,onKeyDown:V,"aria-label":typeof o=="string"?o:typeof ge=="string"?ge:void 0,children:[t.jsxs("div",{className:"training-block-button__left",children:[f&&a?.label&&a.label!==String(ge)&&t.jsx("span",{className:"training-block-button__type-label caption-1",children:a.label}),Ae&&Ue&&Ue!==String(ge)&&t.jsx("span",{className:"training-block-button__type-label caption-2",children:Ue}),t.jsx(Ji,{icon:xe,label:ge,tooltip:De,wrapperStyle:de,iconSize:Ae||Ie?"small":"medium"}),!b&&(be||Z)&&!(m&&j)&&t.jsx(rt,{type:"dot",icon:"check",position:"top-left",size:"medium","aria-label":be?y("training.completed","\uD6C8\uB828 \uC644\uB8CC"):y("training.selected","\uC120\uD0DD\uB428")}),m&&j&&t.jsx(rt,{type:"dot",icon:"remove",position:"top-left",size:"medium","aria-label":y("common.remove","\uC81C\uAC70"),onClick:ie}),t.jsx("div",{className:`training-block-button__title ${Ie?"body-3":Ae?"body-3b":"h3"}`,children:String(ge)}),t.jsxs("div",{className:"training-block-button__description",children:[(()=>{const ye=_!==void 0?_:Ne;return ye?t.jsx("div",{className:`training-block-button__count ${Ae?"caption-2":"caption-1"}`,children:ye}):null})(),t.jsx("div",{className:"training-block-button__chevron",children:t.jsx(Ve,{icon:"chevron-right",label:y("training.next","\uB2E4\uC74C"),className:"training-block-button__chevron-icon",imgClassName:"training-block-button__chevron-icon-image",maskClassName:"training-block-button__chevron-icon-mask",svgClassName:"training-block-button__chevron-icon-svg",size:Ae?12:20})})]}),(Te||Ae)&&P.length>0&&t.jsx("div",{ref:M,className:"training-block-button__preview","data-tooltip-ignore":!0,onClick:ue,onPointerEnter:z,onPointerLeave:T,children:t.jsx(se,{htmlType:"button",size:Ae?28:32,type:"dot",icon:S?"pause":"play",variant:Ae?"transparent-lightGray":"default",useBorder:!1,selected:S,ariaLabel:S?y("training.stop","\uC815\uC9C0"):y("training.preview","\uBBF8\uB9AC \uB4E3\uAE30"),onClick:ne})})]}),v&&t.jsx("div",{className:"training-block-button__more","data-tooltip-ignore":!0,onClick:ye=>{ye.stopPropagation(),v(ye)},children:t.jsx(se,{htmlType:"button",size:40,type:"dot",icon:"more-horizontal",variant:"transparent-lightGray",useBorder:!1,ariaLabel:y("common.more","\uB354\uBCF4\uAE30")})})]}),B&&t.jsx(hn,{anchorRect:E,text:S?y("training.stop","\uC815\uC9C0"):y("training.preview","\uBBF8\uB9AC \uB4E3\uAE30"),offset:8,onClose:T}),j&&!N&&h&&(re?t.jsx(An,{anchorRect:K,items:re,activeIndex:F,onClose:W}):q?.subTitle?t.jsx(hn,{anchorRect:K,text:q.subTitle,offset:8,onClose:W}):null),N&&l&&l({trainingData:q,typeKey:a?.key??"",onClose:H,onComplete:Ce,popupTitle:String(ge),popupSubTitle:a?.subTitle,depth:s!=null?String(s):void 0,popupIcon:xe,popupIconTooltip:String(De),popupWrapperStyle:de})]})}const Aa=20;function N4(e){const{t:n}=me.useTranslation(),{type:a,trainingDatas:r,depth:o,renderPopup:s,completedIds:l,selectedIds:c,onItemComplete:u,size:d,useDescriptionTooltip:p,onRemove:h,onMore:m,sectionType:b="page"}=e||{},[,f]=i.useState(0),g=typeof r<"u"?Array.isArray(r)?r:[]:[],C=g.length,[v,_]=i.useState(Math.min(C,Aa)),A=i.useMemo(()=>Array.isArray(o)?[...o,a?.label].filter(Boolean).join(" \xB7 "):[o||"",a?.label].filter(Boolean).join(" \xB7 "),[o,a?.label]);i.useEffect(()=>{_(Math.min(C,Aa))},[C]),Xs("speechear.data.updated",()=>f(N=>N+1));function y(){_(N=>Math.min(C,N+Aa))}return t.jsxs(Pn,{type:b,title:a?.label,icon:a?.icon,disc:a?.desc,className:"training-block",children:[t.jsx("div",{className:"training-list",children:(g||[]).slice(0,v).map((N,x)=>{const w=N;return t.jsx(kr,{index:x,type:a,trainingData:w,depth:A,renderPopup:s,completedIds:l,selectedIds:c,size:d,useDescriptionTooltip:p,onRemove:typeof h=="function"&&c!=null&&w?.id!=null&&c.has(String(w.id))?()=>h(w):void 0,onComplete:typeof u=="function"&&w?.id!=null?()=>u(String(w.id)):void 0,onMore:typeof m=="function"?j=>m(w,j):void 0},w?.id!=null?`${a?.key||"t"}-${String(w.id)}`:`${a?.key||"t"}-${x}`)})}),C>Aa&&v<C&&t.jsx("div",{className:"training-block__more",children:t.jsx(se,{htmlType:"button",size:48,type:"bar",icon:"plus",onClick:y,ariaLabel:n("common.loadMore","\uB354\uBCF4\uAE30"),label:n("common.loadMore","\uB354\uBCF4\uAE30"),variant:"main"})})]})}function Ar(e){const n=i.useRef(null),[a,r]=i.useState(!!e),[o,s]=i.useState(!1);i.useEffect(()=>{s(!1);const u=n.current;r(!!e&&!(u?.complete&&u.naturalWidth>0))},[e]);const l=i.useCallback(()=>r(!1),[]),c=i.useCallback(()=>{r(!1),s(!0)},[]);return{imgRef:n,loading:a,failed:o,hasImage:!!e&&!o,onLoad:l,onError:c}}let In=null;function B4(e){if(In&&In!==e)try{In()}catch{}return In=e,()=>{In===e&&(In=null)}}var D4='data:image/svg+xml,<svg width="100" height="100" viewBox="0 0 100 100" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_2256_7437)">%0A<g opacity="0.1">%0A<path d="M35.7143 25C29.7964 25 25 29.7964 25 35.7143V64.2857C25 67.3786 25.7893 70.2893 27.1714 72.8286C29.7071 74.2143 32.6179 75 35.7143 75H64.2857C70.2036 75 75 70.2036 75 64.2857V35.7143C75 32.6214 74.2107 29.7107 72.8286 27.1714C70.2929 25.7857 67.3821 25 64.2857 25H35.7143Z" fill="%23111111"/>%0A</g>%0A<path d="M57.1426 17.8571H35.7141C25.8533 17.8571 17.8569 25.8536 17.8569 35.7143V44.0643L10.9926 51.6179C10.5819 52.0679 10.6283 52.775 11.0998 53.1643C13.1783 54.8929 15.4641 56.2214 17.8569 57.1679C17.8676 63.925 21.6283 69.8 27.1712 72.825C25.7855 70.2893 24.9998 67.3786 24.9998 64.2821V35.7107C24.9998 29.7929 29.7962 24.9964 35.7141 24.9964H64.2855C67.3783 24.9964 70.2891 25.7857 72.8283 27.1679C69.7998 21.6179 63.9105 17.8536 57.1426 17.8536V17.8571Z" fill="%23111111"/>%0A<path d="M72.8285 27.1714C74.2142 29.7072 75 32.6179 75 35.7143V64.2857C75 70.2036 70.2035 75 64.2857 75H35.7142C32.6214 75 29.7107 74.2107 27.1714 72.8286C30.2 78.3786 36.0892 82.1429 42.8571 82.1429H58.9678C59.9321 82.1429 60.7142 82.925 60.7142 83.8893C60.7142 84.9107 61.5892 85.7215 62.6071 85.6322C73.5535 84.675 82.1428 75.4822 82.1428 64.2857V42.8572C82.1428 36.0893 78.3785 30.2 72.8285 27.1714Z" fill="%23111111"/>%0A<path d="M36.0714 40.7143C36.0714 39.5308 35.112 38.5714 33.9285 38.5714C32.745 38.5714 31.7856 39.5308 31.7856 40.7143V45C31.7856 46.1834 32.745 47.1428 33.9285 47.1428C35.112 47.1428 36.0714 46.1834 36.0714 45V40.7143Z" fill="%23111111"/>%0A<path d="M46.7859 57.1429C45.743 57.1429 44.6966 56.875 43.7502 56.3286C42.8966 55.8357 42.6037 54.7429 43.1002 53.8893C43.593 53.0357 44.6859 52.7429 45.5395 53.2393C46.518 53.8036 47.7573 53.6429 48.5537 52.8464C48.9395 52.4607 49.1823 51.9714 49.2573 51.4357C49.5787 49.1607 50.5823 47 52.1645 45.1857C53.1073 44.1071 53.6037 42.7214 53.568 41.2857C53.493 38.3536 51.1466 35.9107 48.2216 35.7286C47.2323 35.6679 46.2859 35.8464 45.4073 36.2679C44.518 36.6929 43.4502 36.3107 43.0287 35.4214C42.6037 34.5321 42.9859 33.4643 43.8752 33.0429C45.2895 32.3714 46.868 32.0679 48.4466 32.1643C53.2037 32.4607 57.0216 36.4286 57.1395 41.1964C57.1966 43.5286 56.3859 45.7786 54.8573 47.5357C53.7323 48.825 53.018 50.3464 52.7966 51.9357C52.6109 53.2464 52.018 54.4357 51.0823 55.375C49.9145 56.5429 48.3609 57.15 46.7895 57.15L46.7859 57.1429Z" fill="%23111111"/>%0A</g>%0A<defs>%0A<clipPath id="clip0_2256_7437">%0A<rect width="100" height="100" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A';const S4=D4,Nr=i.forwardRef(function({item:e,disabled:n=!1,onPlayDone:a,selectable:r=!1,selected:o=!1,onSelect:s,flipDelay:l=0,hideLabel:c=!1,hideAudio:u=!1,orderRank:d=null},p){const{t:h}=me.useTranslation(),m=e.word||e.title||"",b=n||!m,f=e.audio??e.sound??e.audioKey,g=e.subLabel||e.pronunciation||"",C=e.colloquialLabel||"",[v,_]=i.useState({label:m,subLabel:g,colloquialLabel:C,homonum:e.homonum});m&&v.label!==m&&_({label:m,subLabel:g,colloquialLabel:C,homonum:e.homonum});const A=i.useRef(null),y=Ut("(max-width: 767px)"),[N,x]=i.useState(!1),w=`${typeof f=="string"?f:f?.src??""}\0${m}`,[j,k]=i.useState({for:"",url:""}),S=j.for===w?j.url:"",F=Mn()?.(v.label,v.homonum)??e.image??"",{imgRef:P,loading:B,hasImage:I,onLoad:M,onError:ne}=Ar(F);i.useEffect(()=>{let E=!1;return(async()=>{if(f){if(typeof f=="string"){if(f.startsWith("http")||f.includes("/")){k({for:w,url:f});return}}else if(typeof f=="object"&&!Array.isArray(f)){const K=f.src;if(K){k({for:w,url:K});return}}}const $=Ka();if($&&m)try{const K=await Promise.resolve($(m));!E&&K&&k({for:w,url:K})}catch{}})(),()=>{E=!0}},[f,m,w]),i.useEffect(()=>()=>{try{A.current?.pause()}catch{}A.current=null},[]);const L=i.useCallback(()=>new Promise(E=>{if(typeof window<"u"&&window.speechSynthesis&&m){x(!0),window.speechSynthesis.cancel();const $=new SpeechSynthesisUtterance(m);$.lang="ko-KR",$.onend=()=>{x(!1);try{a?.()}catch{}E()},$.onerror=()=>{x(!1),E()},window.speechSynthesis.speak($)}else E()}),[m,a]),H=i.useCallback(E=>new Promise($=>{let K=!1;const R=()=>{K||(K=!0,x(!1),$(!1))};try{const V=new Audio(E);A.current=V,V.onended=()=>{if(!K){K=!0,x(!1);try{a?.()}catch{}$(!0)}},V.onerror=R,V.play().catch(R)}catch{R()}}),[a]),ee=i.useCallback(async()=>{if(n)return;const E=B4(()=>{try{A.current?.pause()}catch{}try{window.speechSynthesis?.cancel()}catch{}x(!1)});try{window.speechSynthesis?.cancel()}catch{}try{if(S&&(x(!0),await H(S)))return;const $=jm();if($&&m)try{const K=await Promise.resolve($(m));if(K&&(x(!0),await H(K)))return}catch{}await L()}finally{E()}},[n,S,m,H,L]);i.useImperativeHandle(p,()=>({play:()=>ee()}),[ee]);const W=E=>E.stopPropagation(),z=i.useCallback(E=>{if(E.stopPropagation(),!n){if(N){try{A.current?.pause()}catch{}try{window.speechSynthesis?.cancel()}catch{}x(!1);return}ee()}},[n,N,ee]),T=ve("training-word-card",n?"training-word-card--disabled":"",b?"training-word-card--flipped":"",r?"training-word-card--selectable":"",o?"training-word-card--selected":"");return t.jsx("div",{className:T,onClick:r&&!n?s:void 0,role:r?"button":void 0,"aria-pressed":r?o:void 0,tabIndex:r&&!n?0:void 0,"aria-disabled":r&&n?!0:void 0,onKeyDown:r&&!n?E=>{E.target===E.currentTarget&&(E.key==="Enter"||E.key===" "||E.key==="Spacebar")&&(E.preventDefault(),s?.())}:void 0,children:t.jsxs("div",{className:"training-word-card__flipper",style:{transitionDelay:b?"0ms":`${l}ms`},children:[t.jsxs("div",{className:"training-word-card__front",children:[o&&t.jsx("div",{className:"training-word-card__selected-badge",onClick:W,children:t.jsx(rt,{type:"dot",size:40,position:"inline",animate:!0,icon:d!=null?void 0:"check",number:d??void 0,"aria-label":d!=null?h("training.nthSelected",{n:d}):h("training.selected","\uC120\uD0DD\uB428")})}),t.jsx("div",{className:"training-word-card__image-wrap",children:I?t.jsxs(t.Fragment,{children:[B&&t.jsx("div",{className:"training-word-card__spinner"}),t.jsx("img",{ref:P,className:"training-word-card__image",src:F,alt:v.label||h("common.image","\uC774\uBBF8\uC9C0"),style:{opacity:B?0:1},onLoad:M,onError:ne})]}):t.jsx("div",{className:"training-word-card__placeholder"})}),!c&&t.jsxs("div",{className:"training-word-card__body",children:[t.jsx("div",{className:"training-word-card__word",children:v.label}),v.subLabel&&t.jsxs("div",{className:"training-word-card__pronunciation",children:["[",v.subLabel,"]"]}),v.colloquialLabel&&t.jsxs("div",{className:"training-word-card__colloquial caption-1",children:["[",v.colloquialLabel,"]"]})]}),!u&&t.jsx("div",{className:"training-word-card__bottom",onClick:r?W:void 0,children:t.jsx(se,{htmlType:"button",size:y?40:48,type:y?"dot":"bar",icon:N?"pause":"play",label:y?void 0:h("training.playSound","\uC18C\uB9AC \uB4E3\uAE30"),selected:N,onClick:z,disabled:n,ariaLabel:h("training.playSound","\uC18C\uB9AC \uB4E3\uAE30")})})]}),t.jsx("div",{className:"training-word-card__back","aria-hidden":"true",children:t.jsx("img",{src:S4,className:"training-word-card__disabled-symbol",alt:"",draggable:!1})})]})})}),j4=260;function mn(e){const{t:n}=me.useTranslation(),{title:a,subtitle:r,headerActions:o,children:s,buttons:l,footer:c,footerClassName:u="",onClose:d,closeDisabled:p=!1,beforeClose:h,closeOnBackdrop:m=!0,className:b="",ariaLabel:f,useTitle:g=!0,inline:C=!1,size:v,height:_,resetScrollKey:A}=e||{},[y,N]=i.useState(!1),x=i.useRef(!1),w=i.useRef(null),j=i.useId(),k=i.useRef(null);i.useEffect(()=>{},[C,a,f,b]),i.useEffect(()=>{A!==void 0&&k.current&&(k.current.scrollTop=0)},[A]);const[S,F]=i.useState(!1);i.useEffect(()=>{const z=k.current;if(!z)return;const T=()=>F(z.scrollHeight>z.clientHeight+1);if(T(),typeof ResizeObserver>"u")return;const E=new ResizeObserver(T);E.observe(z);const $=z.firstElementChild;return $&&E.observe($),()=>E.disconnect()},[s,A]),i.useEffect(()=>{if(!C)return ji()},[C]),i.useEffect(()=>{if(C)return;const z=document.activeElement,T=w.current;return T&&!T.contains(document.activeElement)&&(T.querySelector(wn)??T).focus(),()=>{const E=document.activeElement;(!E||E===document.body||T&&T.contains(E))&&z?.focus?.()}},[C]),rr(w,!C);const P=i.useCallback(z=>{x.current||(x.current=!0,N(!0),setTimeout(()=>{try{z&&z()}catch{}},j4))},[]),B=i.useCallback(()=>{p||h&&h()===!1||P(d)},[P,d,p,h]),I=i.useRef(B);i.useEffect(()=>{I.current=B});const M=!C&&!!d;i.useEffect(()=>{if(M)return kn(()=>I.current())},[M]);const ne=M&&m,L=i.useRef(!1),H=z=>{L.current=z.target===z.currentTarget},ee=z=>{const T=L.current;L.current=!1,T&&z.target===z.currentTarget&&B()},W=t.jsx("div",{className:`popup ${C?"popup--inline":""} ${y?"popup--closing":""} ${b}`,onPointerDown:ne?H:void 0,onClick:ne?ee:void 0,onMouseDown:C?void 0:z=>{z.target===z.currentTarget&&z.preventDefault()},children:t.jsxs("div",{ref:w,className:`popup-panel${v?` popup-panel--${v}`:""}`,style:_!=null?{height:_}:void 0,tabIndex:-1,role:C?void 0:"dialog","aria-modal":C?void 0:!0,"aria-labelledby":!C&&a?j:void 0,"aria-label":!C&&!a&&f?f:void 0,children:[!g&&(o||d)?t.jsxs("div",{className:"popup-close-float",children:[o,d&&t.jsx(se,{htmlType:"button",size:40,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,onClick:B,disabled:p,ariaLabel:n("common.close","\uB2EB\uAE30")})]}):a||o||d?t.jsxs("div",{className:`popup-header${r?" popup-header--with-subtitle":""}`,children:[t.jsxs("div",{className:"popup-header-main",children:[t.jsx("span",{id:j,className:"popup-title popup-title--left h2",children:a}),r&&t.jsx("span",{className:"popup-subtitle body-3",children:r})]}),t.jsxs("div",{className:"popup-header-actions",children:[o,d&&t.jsx(se,{htmlType:"button",size:40,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,onClick:B,disabled:p,ariaLabel:n("common.close","\uB2EB\uAE30")})]})]}):null,t.jsx("div",{className:"popup-content",ref:k,tabIndex:S?0:void 0,children:t.jsx("div",{className:"popup-content__inner",children:typeof s=="function"?s({animateThen:P,closeWithAnimation:B}):s})}),l?.length?t.jsx("div",{className:"popup-footer popup-footer--buttons",children:l.map((z,T)=>t.jsx(se,{htmlType:"button",size:48,variant:z.variant??"default",label:z.label,disabled:z.disabled,onClick:()=>z.onClick?.({animateThen:P,closeWithAnimation:B})},T))}):c?t.jsx("div",{className:`popup-footer${u?` ${u}`:""}`,children:typeof c=="function"?c({animateThen:P,closeWithAnimation:B}):c}):null]})});return C||typeof document>"u"?W:Ft.createPortal(W,document.body)}function Na(e){return String(e)}const Qi=["o","triangle","x"];function el(e,n){return e===n?null:n}const tl={o:"circle",triangle:"triangle",x:"x"},nl={o:"main",triangle:"warn",x:"danger"};function T4(e){let n=0,a=0,r=0;for(const s of Object.values(e))s==="o"?n++:s==="triangle"?a++:s==="x"&&r++;const o=n+a+r;return{marked:o,o:n,triangle:a,x:r,rate:o===0?null:(n+a*.5)/o}}function Br(e){const n={};for(const[a,r]of Object.entries(e))(r==="o"||r==="triangle"||r==="x")&&(n[a]=r);return n}function al(e){const n=[];let a=0;for(const r of e)n.push(a),a+=r;return n}function E4(e,n){return!n&&e>0}const Fn={landscape:{width:1123,height:794,printSize:"A4 landscape",printW:"297mm",printH:"210mm"},portrait:{width:794,height:1123,printSize:"A4 portrait",printW:"210mm",printH:"297mm"}};function M4(e="landscape"){const{printSize:n,printW:a,printH:r}=Fn[e],o=document.createElement("style");o.textContent=`@page { size: ${n}; margin: 0; } .word-table { width: ${a} !important; height: ${r} !important; }`,document.head.appendChild(o);const s=()=>{document.head.removeChild(o),window.removeEventListener("afterprint",s)};window.addEventListener("afterprint",s),window.print()}function rl(e,n){if(e.length===0)return[[]];const a=Math.max(1,Math.floor(n)),r=[];for(let o=0;o<e.length;o+=a)r.push(e.slice(o,o+a));return r}const L4={landscape:{1:{cols:1,rows:1},2:{cols:2,rows:1},3:{cols:3,rows:1},4:{cols:2,rows:2},5:{cols:3,rows:2},6:{cols:3,rows:2},7:{cols:4,rows:2},8:{cols:4,rows:2},9:{cols:5,rows:2},10:{cols:5,rows:2},11:{cols:4,rows:3},12:{cols:4,rows:3}},portrait:{1:{cols:1,rows:1},2:{cols:1,rows:2},3:{cols:1,rows:3},4:{cols:1,rows:4},5:{cols:1,rows:5},6:{cols:2,rows:3},7:{cols:2,rows:4},8:{cols:2,rows:4},9:{cols:2,rows:5},10:{cols:2,rows:5},11:{cols:3,rows:4},12:{cols:3,rows:4}}};function $4(e,n){const a=L4[e][n];if(a)return a;const r=Math.max(1,Math.ceil(n)),o=Math.max(1,Math.ceil(Math.sqrt(r*.707)));let s,l;return e==="landscape"?(l=o,s=Math.ceil(r/l)):(s=o,l=Math.ceil(r/s)),(e==="landscape"?s<l:l<s)&&([s,l]=[l,s]),{cols:s,rows:l}}const R4={\uD45C\uC2DC:"word-table-block__content--cut-show",\uC810\uC120:"",\uCF54\uB108:"word-table-block__content--cut-corner",\uBBF8\uD45C\uC2DC:""},ol={\uBA85:"\uBA85\uC0AC",\uB3D9:"\uB3D9\uC0AC",\uD615:"\uD615\uC6A9\uC0AC",\uBD80:"\uBD80\uC0AC",\uC218:"\uC218\uC0AC",\uAD00:"\uAD00\uD615\uC0AC",\uAC10:"\uAC10\uD0C4\uC0AC",\uC870:"\uC870\uC0AC",\uC811:"\uC811\uC0AC",\uC758:"\uC758\uC874\uBA85\uC0AC",\uB300:"\uB300\uBA85\uC0AC",\uBCF4\uB3D9:"\uBCF4\uC870\uB3D9\uC0AC",\uBCF4\uD615:"\uBCF4\uC870\uD615\uC6A9\uC0AC"},sl={\uACE0\uC720:"\uACE0\uC720\uC5B4",\uD55C\uC790:"\uD55C\uC790\uC5B4",\uC678\uB798:"\uC678\uB798\uC5B4",\uD63C\uC885:"\uD63C\uC885\uC5B4"};function Dr(e,n){return e?e.split("/").map(a=>n[a]??a).join("/"):""}function il(e,n,a,r){if(r!=="\uC810\uC120")return{};const o=e%n,s=Math.floor(e/n),l=o<n-1,c=s<a-1;if(!l&&!c)return{};const u="#ddd",d=b=>`repeating-linear-gradient(to ${b}, ${u} 0, ${u} 5px, transparent 5px, transparent 10px)`,p=[],h=[],m=[];return l&&(p.push(d("bottom")),h.push("1px 100%"),m.push("right center")),c&&(p.push(d("right")),h.push("100% 1px"),m.push("center bottom")),{backgroundImage:p.join(", "),backgroundSize:h.join(", "),backgroundPosition:m.join(", "),backgroundRepeat:"no-repeat",printColorAdjust:"exact",WebkitPrintColorAdjust:"exact"}}const P4=280,I4=240,F4=280,O4=400,H4=120,V4=280;function ll(e,n){const a=i.useRef(null),[r,o]=i.useState(1),[s,l]=i.useState(0),c=i.useCallback((u,d)=>{const p=u/e,h=n?d/n:1/0,m=Math.min(1,p,h);o(m),l(Math.max(0,(u-e*m)/2))},[e,n]);return i.useEffect(()=>{const u=a.current;if(!u)return;const d=n?u.parentElement??u:u;if(c(d.clientWidth,d.clientHeight),typeof ResizeObserver>"u")return;const p=new ResizeObserver(([h])=>c(h.contentRect.width,h.contentRect.height));return p.observe(d),()=>p.disconnect()},[c,n]),{scalerRef:a,scale:r,offset:s}}let an=null;function cl({label:e,subLabel:n,colloquialLabel:a,homonum:r,showWord:o=!0,showImage:s=!0,showPronunciation:l=!0,showColloquial:c=!0,buttonSize:u=40,wordInfo:d}){const{t:p}=me.useTranslation(),h=i.useRef(null),m=i.useRef(null),b=i.useRef(null),[f,g]=i.useState(1),[C,v]=i.useState(!1),[_,A]=i.useState(""),[y,N]=i.useState(null),x=n&&n.length>0?n:Em()?.(e,r)??"",w=Mn()?.(e,r)??"",{imgRef:j,loading:k,failed:S,onLoad:F,onError:P}=Ar(w),B=i.useCallback(()=>N(m.current?.getBoundingClientRect()??null),[]),I=i.useCallback(()=>N(null),[]),M=i.useMemo(()=>{if(!d)return null;const W=[];return d.grade&&W.push(`\uB09C\uC774\uB3C4: ${d.grade}\uB4F1\uAE09`),d.syllables&&W.push(`\uC74C\uC808 \uC218: ${d.syllables}\uC74C\uC808`),d.pos&&W.push(`\uD488\uC0AC: ${Dr(d.pos,ol)}`),d.wordType&&W.push(`\uC720\uD615: ${Dr(d.wordType,sl)}`),W.length?W:null},[d]);i.useEffect(()=>{const W=Ka(),z=x||e;if(!W||!z)return;let T=!1;return Promise.resolve(W(z)).then(E=>{!T&&E&&A(E)}),()=>{T=!0}},[x,e]),i.useEffect(()=>()=>{b.current?.pause(),an?.audio===b.current&&(an=null)},[]);const ne=i.useCallback(async W=>{if(W.stopPropagation(),C){b.current?.pause(),v(!1),an=null;return}if(_){an?.stop(),v(!0);try{const z=new Audio(_);b.current=z;const T=()=>{v(!1),an?.audio===z&&(an=null)};an={audio:z,stop:()=>{z.pause(),T()}},z.onended=T,z.onerror=T,await z.play()}catch{v(!1),an?.audio===b.current&&(an=null)}}},[C,_]),L=s&&!!w&&!S,H=L&&o?P4:L?F4:I4,ee=L&&o?O4:L?V4:H4;return i.useEffect(()=>{const W=h.current;if(!W||typeof ResizeObserver>"u")return;const z=new ResizeObserver(([T])=>{const{width:E,height:$}=T.contentRect;g(Math.min(E/H,$/ee))});return z.observe(W),()=>z.disconnect()},[H,ee]),t.jsxs("div",{ref:h,className:"word-table-cell",children:[t.jsxs("div",{className:"word-table-cell__inner",style:{transform:`scale(${f})`},children:[L&&t.jsxs("div",{className:"word-table-cell__image-wrap",children:[k&&t.jsx("div",{className:"word-table-cell__spinner"}),t.jsx("img",{ref:j,className:"word-table-cell__image",src:w,alt:e,draggable:!1,style:{opacity:k?0:1},onLoad:F,onError:P})]}),o&&t.jsx("span",{className:"word-table-cell__word h0",children:e}),l&&x&&t.jsxs("span",{className:"word-table-cell__sub h3",children:["[",x,"]"]}),c&&a&&t.jsxs("span",{className:"word-table-cell__colloquial h5",children:["[",a,"]"]})]}),t.jsxs("div",{className:"word-table-cell__play-button","data-audio-src":_,children:[t.jsx("span",{"data-play-state":"play",style:{display:C?"none":void 0},children:t.jsx(se,{htmlType:"button",size:u,type:"dot",icon:"play",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:p("common.play","\uC7AC\uC0DD"),onClick:ne})}),t.jsx("span",{"data-play-state":"pause",style:{display:C?void 0:"none"},children:t.jsx(se,{htmlType:"button",size:u,type:"dot",icon:"pause",useBorder:!1,selected:!0,showTooltipInfo:p("common.pause","\uBA48\uCDA4"),onClick:ne})})]}),d&&t.jsxs("div",{ref:m,className:"word-table-cell__info-button",onPointerEnter:B,onPointerLeave:I,onFocus:B,onBlur:I,children:[t.jsx(se,{htmlType:"button",size:u,type:"dot",icon:"info",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:!1,ariaLabel:p("wordTable.wordInfo","{{word}} \uB0B1\uB9D0 \uC815\uBCF4",{word:e}),onClick:W=>W.stopPropagation()}),y&&M&&t.jsx(An,{anchorRect:y,items:M,showIndex:!1})]})]})}function On({title:e,titleIcon:n,disc:a,className:r,orientation:o="landscape",contentTypes:s=["\uC774\uBBF8\uC9C0","\uB2E8\uC5B4","\uD45C\uC900 \uBC1C\uC74C"],cutLine:l="\uD45C\uC2DC",showOutline:c=!0,showDivLine:u=!0,items:d,editCells:p,count:h,activeCell:m=null,onActivateCell:b,onRemoveCell:f,onRemoveItem:g,onReorder:C,showFillerAdd:v=!1,contentRef:_,buttonSize:A=40,pageNumber:y,pageNumberPosition:N="right",fitHeight:x=!1,scoring:w=!1,marks:j,onMarkClick:k,scoreIndexOffset:S=0}){const F=i.useCallback((Ce,be)=>{k?.(S+Ce,be)},[k,S]),P=(Ce,be)=>{const Z=j?.[Na(S+Ce)]??null;return t.jsx("div",{className:ve("word-table-cell__score",Z?"word-table-cell__score--marked":""),children:Qi.map(ce=>t.jsx("span",{className:ve("word-table-cell__score-slot",Z===ce?"word-table-cell__score-slot--on":""),children:t.jsx(se,{htmlType:"button",size:A,type:"dot",icon:tl[ce],variant:Z===ce?nl[ce]:"default",selected:Z===ce,useBorder:!1,showTooltipInfo:!1,ariaLabel:B(`wordTable.scoring.${ce}`,{word:be,defaultValue:`${be} ${ce}`}),onClick:J=>{J.stopPropagation(),F(Ce,ce)}})},ce))})},{t:B}=me.useTranslation(),I=p!==void 0,M=i.useRef(null),[ne,L]=i.useState(null),{width:H,height:ee}=Fn[o],{scalerRef:W,scale:z,offset:T}=ll(H,x?ee:void 0),E=I?p?.length??0:d?.length??0,$=Math.max(h??E,1),{cols:K,rows:R}=$4(o,$),V={word:s.length===0||s.includes("\uB2E8\uC5B4"),image:s.length===0||s.includes("\uC774\uBBF8\uC9C0"),pron:s.length===0||s.includes("\uD45C\uC900 \uBC1C\uC74C"),colloq:s.length===0||s.includes("\uAD6C\uC5B4\uCCB4 \uBC1C\uC74C")},q=I?(p??[]).some(Ce=>Ce!==null&&Ce.length>1):(d??[]).some(Ce=>Ce.words.length>1),re=ve("word-table-block__content",R4[l],c&&"word-table-block__content--outline",u&&q&&"word-table-block__content--div-line"),ie={transform:`scale(${1/z})`,transformOrigin:"center center"},ue=t.jsx("div",{ref:W,className:"word-table__scaler",style:{height:ee*z},children:t.jsx("div",{className:ve("word-table",r),style:{width:H,height:ee,transform:`scale(${z})`,transformOrigin:"top left",marginLeft:T},children:t.jsxs("div",{ref:_,className:re,style:{gridTemplateColumns:`repeat(${K}, 1fr)`,gridTemplateRows:`repeat(${R}, 1fr)`},children:[I?t.jsx(t.Fragment,{children:(p??[]).map((Ce,be)=>t.jsx("div",{className:ve("word-table-block__edit-cell",Ce?"word-table-block__edit-cell--filled":"word-table-block__edit-cell--empty",m===be?"word-table-block__edit-cell--active":""),style:il(be,K,R,l),children:Ce?t.jsxs(t.Fragment,{children:[Ce.map((Z,ce)=>t.jsxs(i.Fragment,{children:[ce>0&&t.jsx("div",{className:"word-table-block__pair-divider"}),t.jsx(cl,{label:Z.word,subLabel:Z.pronunciation,colloquialLabel:Z.colloquialPronunciation,homonum:Z.homonum,showWord:V.word,showImage:V.image,showPronunciation:V.pron,showColloquial:V.colloq,buttonSize:A})]},ce)),w&&P(be,Ce.map(Z=>Z.word).join(" / ")),f&&t.jsx("div",{className:"word-table-block__card-close",children:t.jsx(se,{htmlType:"button",size:A,type:"dot",icon:"x",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:Ce.length>1?B("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):B("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),ariaLabel:Ce.length>1?B("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):B("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),onClick:()=>f(be)})})]}):b&&t.jsx("div",{style:ie,children:t.jsx(se,{htmlType:"button",size:"48",type:"bar",icon:"plus",label:B("wordTable.addWord","\uCD94\uAC00\uD558\uAE30"),onClick:()=>b(be)})})},be))}):t.jsxs(t.Fragment,{children:[(d??[]).map((Ce,be)=>t.jsxs("div",{className:`word-table-block__card${C?" word-table-block__card--draggable":""}${ne===be?" word-table-block__card--drag-over":""}`,style:il(be,K,R,l),draggable:!!C,onDragStart:C?()=>{M.current=be}:void 0,onDragOver:C?Z=>{Z.preventDefault(),L(be)}:void 0,onDragLeave:C?()=>L(null):void 0,onDrop:C?Z=>{Z.preventDefault(),M.current!==null&&M.current!==be&&C(M.current,be),M.current=null,L(null)}:void 0,onDragEnd:C?()=>{M.current=null,L(null)}:void 0,children:[Ce.words.map((Z,ce)=>t.jsxs(i.Fragment,{children:[ce>0&&t.jsx("div",{className:"word-table-block__pair-divider"}),t.jsx(cl,{label:Z.label,subLabel:Z.subLabel,colloquialLabel:Z.colloquialLabel,homonum:Z.homonum,showWord:V.word,showImage:V.image,showPronunciation:V.pron,showColloquial:V.colloq,buttonSize:A,wordInfo:Z.grade||Z.syllables!=null||Z.pos||Z.wordType?{grade:Z.grade,syllables:Z.syllables,pos:Z.pos,wordType:Z.wordType}:void 0})]},ce)),w&&P(be,Ce.words.map(Z=>Z.label).join(" / ")),g&&t.jsx("div",{className:"word-table-block__card-close",children:t.jsx(se,{htmlType:"button",size:A,type:"dot",icon:"x",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:Ce.words.length>1?B("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):B("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),ariaLabel:Ce.words.length>1?B("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):B("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),onClick:()=>g(Ce.id)})})]},Ce.id)),Array.from({length:Math.max(0,K*R-(d?.length??0))}).map((Ce,be)=>{const Z=(d?.length??0)+be<$;return t.jsx("div",{className:"word-table-block__card word-table-block__card--filler",children:v&&b&&Z&&t.jsx("div",{style:ie,children:t.jsx(se,{htmlType:"button",size:A,type:"bar",icon:"plus",label:B("wordTable.addWord","\uCD94\uAC00\uD558\uAE30"),onClick:()=>b((d?.length??0)+be)})})},`filler-${be}`)})]}),y&&N!=="none"&&t.jsx("span",{className:`word-table__page-number body-3 word-table__page-number--${N}`,children:B("wordTable.filter.pageIndicator",{current:y.current,total:y.total})})]})})});return e!=null||n||a?t.jsx(Pn,{type:"page",icon:n,title:e,disc:a,className:ve("word-table-block",r),children:ue}):ue}function rn({title:e,headerAction:n,collapsible:a=!1,defaultCollapsed:r=!1,collapsed:o,onCollapsedChange:s,footer:l,sections:c,selected:u={},onSelect:d,align:p,sectionAlign:h,className:m}){const b=(p??(h==="vertical"?"newline":"inline"))==="inline",{t:f}=me.useTranslation(),[g,C]=i.useState(r),v=o??g,_=()=>{const y=!v;C(y),s?.(y)},A=e||n||a;return t.jsxs("div",{className:ve("filter-panel",a?"filter-panel--collapsible":"",v?"filter-panel--collapsed":"",m),children:[A&&t.jsxs("div",{className:"filter-panel__header",children:[t.jsxs("div",{className:"filter-panel__title-row",children:[a&&t.jsx(se,{htmlType:"button",size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:v?"chevron-down":"chevron-up",ariaLabel:v?f("common.expand","\uD3BC\uCE58\uAE30"):f("common.collapse","\uC811\uAE30"),"aria-expanded":!v,onClick:_}),e&&t.jsx("span",{className:"filter-panel__title h4",children:e})]}),t.jsx("div",{className:"filter-panel__header-actions",children:!v&&n})]}),!v&&t.jsxs(t.Fragment,{children:[t.jsx("div",{className:ve("filter-panel__sections",b?"filter-panel__sections--row":""),children:c.map(y=>{const N=u[y.label],x=N===void 0||(Array.isArray(N)?N.length===0:!1),w=(y.items??[]).filter(k=>k!=null);y.allOption&&w.some(k=>(typeof k=="string"?k:k.value)===Gt)&&zn(`filter-panel-all-value:${y.label}`,`[FilterPanel] '${y.label}' \uC808\uC5D0 allOption \uACFC \uAC12 '${Gt}' \uC778 \uBCF4\uAE30\uAC00 \uD568\uAED8 \uC788\uB2E4 \u2014 \uB450 \uC120\uD0DD\uC774 \uAD6C\uBCC4\uB418\uC9C0 \uC54A\uB294\uB2E4. \uBCF4\uAE30 \uAC12\uC744 \uBC14\uAFD4\uB77C.`);const j=k=>{const S=typeof k=="string"?k:k.value,F=typeof k!="string"&&!!k.disabled,P=typeof k!="string"?k.labels:void 0,B=typeof k!="string"?k.displayLabel:void 0,I=typeof k!="string"?k.tooltip:void 0,M=typeof k!="string"?k.descriptionTooltip:void 0,ne=typeof k!="string"?k.shape:void 0,L=Array.isArray(N)?N.includes(S):N===S;return t.jsx(se,{htmlType:"button",size:"keyboard",label:P??B??S,type:y.itemType??(P?"bar":S.length===1?"dot":void 0),selected:L,disabled:F,shape:ne,showTooltipInfo:!!I,tooltipInfoText:I,tooltipDescription:M,onClick:()=>d?.(S,y.label)},S)};return t.jsxs(i.Fragment,{children:[y.groupLabel&&t.jsxs("div",{className:"filter-panel__group-label-row",children:[t.jsx("div",{className:"filter-panel__group-label body-2",children:y.groupLabel}),y.groupAction]}),t.jsxs("div",{className:ve("filter-panel__section",y.layout==="row"?"filter-panel__section--row":"",y.block?"filter-panel__section--block":""),children:[t.jsxs("div",{className:"filter-panel__section-label-row",children:[t.jsx("span",{className:"filter-panel__section-label body-3",children:y.displayLabel??y.label}),y.labelAction??(y.labelInfo?t.jsx(aa,{...y.labelInfo}):null)]}),y.type==="note"?t.jsx("div",{className:"filter-panel__note body-3",children:y.content}):y.type==="input"?t.jsx(Dn,{className:"filter-panel__textfield",placeholder:y.placeholder,ariaLabel:y.displayLabel??y.label,value:u[y.label]??"",onChange:k=>d?.(k,y.label),error:y.error}):!y.multiple&&y.display==="segmented"?t.jsx(Sn,{ariaLabel:y.displayLabel??y.label,options:[...y.allOption?[{key:Gt,label:y.allLabel??f("common.all","\uC804\uCCB4")}]:[],...w.map(k=>{const S=typeof k=="string"?k:k.value,F=typeof k!="string"?k.displayLabel:void 0,P=typeof k!="string"?k.disabled:void 0;return{key:S,label:F??S,disabled:P}})],value:x&&y.allOption?Gt:u[y.label]??"",onChange:k=>d?.(k,y.label),size:32}):!y.multiple&&y.display==="dropdown"?t.jsx(Wt,{className:"filter-panel__dropdown",size:40,options:[...y.allOption?[{value:Gt,label:y.allLabel??f("common.all","\uC804\uCCB4")}]:[],...w.map(k=>{const S=typeof k=="string"?k:k.value,F=typeof k!="string"?k.displayLabel:void 0,P=typeof k!="string"?k.disabled:void 0;return{value:S,label:F??S,disabled:P}})],value:x&&y.allOption?Gt:u[y.label],onChange:k=>d?.(k,y.label)}):t.jsxs("div",{className:y.groups?"filter-panel__item-groups":"filter-panel__items",children:[y.allOption&&!y.groups&&t.jsx(se,{htmlType:"button",size:"keyboard",label:y.allLabel??f("common.all","\uC804\uCCB4"),selected:x,disabled:y.allOptionDisabled,onClick:()=>d?.(Gt,y.label)}),y.groups?y.groups.map((k,S)=>t.jsxs("div",{className:"filter-panel__item-group",children:[S===0&&y.allOption&&t.jsx(se,{htmlType:"button",size:"keyboard",label:y.allLabel??f("common.all","\uC804\uCCB4"),selected:x,disabled:y.allOptionDisabled,onClick:()=>d?.(Gt,y.label)}),k.filter(F=>F!=null).map(j)]},S)):w.map(j)]})]})]},y.label)})}),l!=null&&l!==!1&&t.jsx("div",{className:"filter-panel__footer body-3",children:l})]})]})}const z4=[1,2,3,4,5,6,7,8,9,10,11,12],W4=[8,4,2,1];function ul(e,n){return{label:e("wordTable.filter.composition","\uAD6C\uC131"),items:[{value:"\uC774\uBBF8\uC9C0",disabled:!n.hasImage,displayLabel:e("wordTable.filter.image","\uC774\uBBF8\uC9C0")},{value:"\uB2E8\uC5B4",displayLabel:e("wordTable.filter.word","\uB2E8\uC5B4")},{value:"\uD45C\uC900 \uBC1C\uC74C",displayLabel:e("wordTable.filter.standardPron","\uD45C\uC900 \uBC1C\uC74C")},{value:"\uAD6C\uC5B4\uCCB4 \uBC1C\uC74C",disabled:!n.hasColloquial,displayLabel:e("wordTable.filter.colloquialPron","\uAD6C\uC5B4\uCCB4 \uBC1C\uC74C")}],multiple:!0,allOption:!0}}function dl(e){return{label:e("wordTable.filter.paperOrientation","\uC6A9\uC9C0 \uBC29\uD5A5"),items:[{value:"\uAC00\uB85C",displayLabel:e("wordTable.filter.landscape","\uAC00\uB85C")},{value:"\uC138\uB85C",displayLabel:e("wordTable.filter.portrait","\uC138\uB85C")}],display:"segmented"}}function pl(e){return{label:e("wordTable.filter.border","\uC678\uACFD\uC120"),items:[{value:"\uD45C\uC2DC",displayLabel:e("wordTable.filter.show","\uD45C\uC2DC")},{value:"\uBBF8\uD45C\uC2DC",displayLabel:e("wordTable.filter.hide","\uBBF8\uD45C\uC2DC")}],display:"segmented"}}function hl(e){return{label:e("wordTable.filter.cutLine","\uC808\uCDE8\uC120"),items:[{value:"\uD45C\uC2DC",displayLabel:e("wordTable.filter.show","\uD45C\uC2DC")},{value:"\uC810\uC120",displayLabel:e("wordTable.filter.dotted","\uC810\uC120")},{value:"\uCF54\uB108",displayLabel:e("wordTable.filter.corner","\uCF54\uB108")},{value:"\uBBF8\uD45C\uC2DC",displayLabel:e("wordTable.filter.hide","\uBBF8\uD45C\uC2DC")}],display:"segmented"}}function ml(e){return{label:e("wordPrint.divLine","\uB300\uB9BD\uC120"),items:[{value:"\uD45C\uC2DC",displayLabel:e("wordTable.filter.show","\uD45C\uC2DC")},{value:"\uBBF8\uD45C\uC2DC",displayLabel:e("wordTable.filter.hide","\uBBF8\uD45C\uC2DC")}],display:"segmented"}}function fl(e,n){return{label:e(n.hasPairs?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord"),items:[n.itemCount,...W4.filter(a=>a<n.itemCount)].map(a=>({value:`${a}\uAC1C`,displayLabel:e("wordTable.filter.itemsPerPageOption",{count:a})})),display:"segmented"}}function Cl(e){return{label:e("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638"),items:[{value:"\uC67C\uCABD",displayLabel:e("wordTable.filter.pageNumberLeft","\uC67C\uCABD")},{value:"\uC911\uC559",displayLabel:e("wordTable.filter.pageNumberCenter","\uC911\uC559")},{value:"\uC624\uB978\uCABD",displayLabel:e("wordTable.filter.pageNumberRight","\uC624\uB978\uCABD")},{value:"\uBBF8\uD45C\uC2DC",displayLabel:e("wordTable.filter.hide","\uBBF8\uD45C\uC2DC")}],display:"segmented"}}const gl={left:"\uC67C\uCABD",center:"\uC911\uC559",right:"\uC624\uB978\uCABD",none:"\uBBF8\uD45C\uC2DC"};function bl(e){return e==="\uC67C\uCABD"?"left":e==="\uC911\uC559"?"center":e==="\uC624\uB978\uCABD"?"right":"none"}function yl(e,n){return{[e("wordTable.filter.composition","\uAD6C\uC131")]:n.contentTypes,[e("wordTable.filter.paperOrientation","\uC6A9\uC9C0 \uBC29\uD5A5")]:n.orientation==="landscape"?"\uAC00\uB85C":"\uC138\uB85C",[e("wordTable.filter.border","\uC678\uACFD\uC120")]:n.showOutline?"\uD45C\uC2DC":"\uBBF8\uD45C\uC2DC",[e("wordTable.filter.cutLine","\uC808\uCDE8\uC120")]:n.cutLine,[e("wordPrint.divLine","\uB300\uB9BD\uC120")]:n.showDivLine?"\uD45C\uC2DC":"\uBBF8\uD45C\uC2DC"}}function vl(e,n,a,r){return a===e("wordTable.filter.composition","\uAD6C\uC131")?n===Gt?(r.setContentTypes(()=>[]),!0):(r.setContentTypes(o=>o.includes(n)?o.filter(s=>s!==n):[...o,n]),!0):a===e("wordTable.filter.paperOrientation","\uC6A9\uC9C0 \uBC29\uD5A5")?(r.setOrientation(n==="\uAC00\uB85C"?"landscape":"portrait"),!0):a===e("wordTable.filter.border","\uC678\uACFD\uC120")?(r.setShowOutline(n==="\uD45C\uC2DC"),!0):a===e("wordTable.filter.cutLine","\uC808\uCDE8\uC120")?(r.setCutLine(n),!0):a===e("wordPrint.divLine","\uB300\uB9BD\uC120")?(r.setShowDivLine(n==="\uD45C\uC2DC"),!0):!1}function q4(e){return"sections"in e}function Sr(e){const{t:n}=me.useTranslation(),{title:a,className:r}=e;if(q4(e))return t.jsx(rn,{className:r,title:a??n("wordTable.filterTitle","\uD45C \uC124\uC815"),sections:e.sections,selected:e.selected,onSelect:e.onSelect,align:"inline"});const{hasImage:o,hasColloquial:s,contentTypes:l,orientation:c,showOutline:u,cutLine:d,showDivLine:p,setters:h,showCutLine:m=!1,showDivLine2:b=!1,middleSections:f=[],extraSelected:g={},onExtraSelect:C}=e,v=[ul(n,{hasImage:o,hasColloquial:s}),dl(n),...f,pl(n),...m?[hl(n)]:[],...b?[ml(n)]:[]],_={...yl(n,{contentTypes:l,orientation:c,showOutline:u,cutLine:d,showDivLine:p}),...g},A=(y,N)=>{vl(n,y,N,h)||C?.(y,N)};return t.jsx(rn,{className:r,title:a??n("wordTable.filterTitle","\uD45C \uC124\uC815"),sections:v,selected:_,onSelect:A,sectionAlign:"horizontal"})}function xl(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function jr(e){return e.replace(/[\\/:*?"<>|]/g,"_").trim()}function U4(e,n,a,r="",o=""){if(e.length===0)return;const s=r?jr(r):"";if(s){const u=document.title;document.title=s;const d=()=>{document.title=u,window.removeEventListener("afterprint",d)};window.addEventListener("afterprint",d)}const l=document.createElement("iframe");l.style.cssText="position:fixed;left:-10000px;top:0;width:1200px;height:900px;border:0;",document.body.appendChild(l);const c=l.contentDocument;if(!c){l.remove();return}c.open(),c.write(Tr(e,n,a,!0,s,o)),c.close(),l.contentWindow?.addEventListener("afterprint",()=>setTimeout(()=>l.remove(),0))}function Tr(e,n,a,r=!1,o="",s=""){o=o?jr(o):"";const l=Array.from(document.styleSheets).flatMap(p=>{try{return Array.from(p.cssRules).map(h=>h.cssText)}catch{return[]}}).join(`
839
- `),c=document.documentElement.getAttribute("data-theme")||"light",u=s?`<div class="paper-head">${xl(s)}</div>`:"",d=e.map(p=>{const h=p.cloneNode(!0);return h.querySelectorAll('[data-play-state="play"]').forEach(m=>m.style.display=""),h.querySelectorAll('[data-play-state="pause"]').forEach(m=>m.style.display="none"),h.querySelectorAll(".word-table-cell__score-slot:not(.word-table-cell__score-slot--on)").forEach(m=>m.remove()),`<div class="paper-wrap">${u}${h.outerHTML}</div>`}).join(`
835
+ `).map(i=>i.replace(/\t/g," ")),r=a.filter(i=>i.trim().length>0),o=r.length>0?Math.min(...r.map(i=>i.match(/^ */)?.[0].length??0)):0;return a.map(i=>i.slice(o)).join(`
836
+ `)}const r4=new Set(["pnpm","npm","yarn","node","git","curl","docker","cat","ls","cd","rm","mv","cp","echo","export"]),o4=/^(?:const|let|var|function|return|if|else|for|while|switch|case|break|import|from|export|class|new|try|catch|finally|throw|await|async|null|true|false|this|typeof|instanceof)\b/;function s4(e,n){let a=e;const r=[],o=/^(?:sh|bash|zsh|shell|console)$/.test(n.toLowerCase()),i=(l,c)=>r.push({type:l,content:c});for(;a.length>0;){const l=a.match(/^\s+/);if(l){i("whitespace",l[0]),a=a.slice(l[0].length);continue}if(!o&&a.startsWith("//")){const g=a.indexOf(`
837
+ `),f=g===-1?a:a.slice(0,g);i("comment",f),a=a.slice(f.length);continue}if(o&&a.startsWith("#")){const g=a.indexOf(`
838
+ `),f=g===-1?a:a.slice(0,g);i("comment",f),a=a.slice(f.length);continue}const c=a.match(/^\/\*[\s\S]*?\*\//);if(c){i("comment",c[0]),a=a.slice(c[0].length);continue}const u=a.match(/^(`(?:\\.|[^`])*`|"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*')/);if(u){i("string",u[0]),a=a.slice(u[0].length);continue}const d=a.match(/^\d+(?:\.\d+)?/);if(d){i("number",d[0]),a=a.slice(d[0].length);continue}const p=a.match(o4);if(p){i("keyword",p[0]),a=a.slice(p[0].length);continue}const h=a.match(/^[A-Za-z_$][A-Za-z0-9_$-]*/);if(h){const g=h[0];i(o&&r4.has(g)?"command":"identifier",g),a=a.slice(g.length);continue}const m=a.match(/^[=+\-*/%<>!&|^~?:]+/);if(m){i("operator",m[0]),a=a.slice(m[0].length);continue}const b=a.match(/^[()[\]{};.,]/);if(b){i("punctuation",b[0]),a=a.slice(1);continue}i("other",a[0]),a=a.slice(1)}return r}function i4({children:e,language:n="bash",title:a="",showCopy:r=!0,size:o="default",className:i=""}){const{t:l}=me.useTranslation(),[c,u]=s.useState(!1),d=a4(Ii(e)),p=s.useRef(null);s.useEffect(()=>()=>{p.current&&clearTimeout(p.current)},[]);const h=async()=>{try{if(!await b0(d))return;u(!0),p.current&&clearTimeout(p.current),p.current=setTimeout(()=>u(!1),2e3)}catch{}},m=s4(d,n),b=o==="small"?"caption-1":"body-3";return t.jsxs("div",{className:ye("code-box",o==="small"?"code-box--small":"",i),children:[(a||r)&&t.jsxs("div",{className:"code-box__header",role:"toolbar","aria-label":l("common.codeBlock","\uCF54\uB4DC \uBE14\uB85D"),children:[t.jsx("div",{className:"code-box__title caption-1",children:a}),r&&t.jsx(ie,{htmlType:"button",className:"code-box__copy",size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:c?"check":"copy",onClick:h,ariaLabel:c?l("common.copied","\uBCF5\uC0AC\uB428"):l("common.copyCode","\uCF54\uB4DC \uBCF5\uC0AC")})]}),t.jsx("pre",{className:"code-box__inner","data-lang":n,children:t.jsx("code",{children:m.map((g,f)=>t.jsx("span",{className:`code-token ${g.type} ${b}`,children:g.content},f))})})]})}function sa(e){const{t:n}=me.useTranslation(),{variant:a="spinner",size:r=24,progress:o=null,label:i}=e||{},l=i||n("loader.loading","Loading");if(a==="bar"){const u=Math.max(0,Math.min(100,Number(o)||0));return t.jsx("div",{className:"loader-bar",role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":u,"aria-label":l,children:t.jsx("div",{className:"loader-bar__inner",style:{width:`${u}%`}})})}const c=typeof r=="number"?`${r}px`:r;return t.jsx("div",{className:"loader-spinner",style:{width:c,height:c},role:"status","aria-label":l,children:t.jsxs("svg",{className:"loader-spinner__svg",viewBox:"0 0 50 50",width:r,height:r,children:[t.jsx("circle",{className:"loader-spinner__bg",cx:"25",cy:"25",r:"20",fill:"none",strokeWidth:"4"}),t.jsx("circle",{className:"loader-spinner__fg",cx:"25",cy:"25",r:"20",fill:"none",strokeWidth:"4",strokeLinecap:"round"})]})})}function Fi({checked:e,onChange:n,disabled:a=!1,label:r,ariaLabel:o,labelPosition:i="right",className:l="",id:c}){const u=r&&t.jsx("span",{className:"toggle__label body-3",children:r});return t.jsxs("label",{className:`toggle${a?" toggle--disabled":""} ${l}`.trim(),children:[i==="left"&&u,t.jsx("input",{id:c,type:"checkbox",role:"switch",checked:e,disabled:a,onChange:d=>n?.(d.target.checked),"aria-label":!r&&o?o:void 0}),t.jsx("span",{className:"toggle__slider"}),i==="right"&&u]})}function Oi({checked:e=!1,onChange:n,disabled:a,indeterminate:r,label:o,size:i="medium",className:l,title:c,ariaLabel:u}){const d=s.useRef(null),p=s.useId(),h=s.useRef(!!r);return h.current=!!r,s.useEffect(()=>{d.current&&(d.current.indeterminate=!!r)}),t.jsxs("label",{className:ye("checkbox",i==="small"&&"checkbox--small",i==="large"&&"checkbox--large",a&&"checkbox--disabled",l),htmlFor:p,title:c,children:[t.jsx("input",{ref:d,id:p,type:"checkbox",className:"checkbox__input",checked:e,onChange:m=>{n?.(m.target.checked),d.current&&(d.current.indeterminate=h.current)},disabled:a,"aria-label":!o&&u?u:void 0}),t.jsx("span",{className:"checkbox__box"}),o&&t.jsx("span",{className:"checkbox__label body-3",children:o})]})}function l4({count:e,actions:n,onClear:a,clearLabel:r,visible:o,content:i,max:l}){const{t:c}=me.useTranslation(),u=o!==void 0?o:e>0,d=r??c("bulkBar.clearSelection","\uC120\uD0DD \uD574\uC81C"),p=s.useRef(null),[h,m]=s.useState(!1);return s.useEffect(()=>{const b=p.current;if(!b)return;const g=()=>{const C=b.firstElementChild??b,v=Array.from(C.children);if(v.length<2){m(!1);return}const x=v[0].offsetTop;m(v.some(w=>w.offsetTop!==x))};if(g(),typeof ResizeObserver>"u")return;const f=new ResizeObserver(g);return f.observe(b),()=>f.disconnect()},[i,e]),t.jsxs("div",{className:`bulk-bar ${u?"bulk-bar--visible":""}`,inert:!u||void 0,"aria-hidden":u?void 0:!0,children:[t.jsx("span",{ref:p,className:"bulk-bar__count body-2",children:i??t.jsx("b",{children:c("common.selectedCount",{count:e})})}),l!==void 0&&t.jsx(rt,{size:"small",fill:"soft",variant:"main",label:`${e} / ${l}`}),t.jsxs("div",{className:`bulk-bar__actions${h?" bulk-bar__actions--stacked":""}`,children:[t.jsx(ie,{htmlType:"button",size:40,label:d,onClick:a}),n.map((b,g)=>t.jsx(ie,{htmlType:"button",size:40,variant:b.variant??"default",icon:b.icon,label:b.label,onClick:b.onClick},g))]})]})}function Hi(e){const n=()=>{if(e){const[b,g]=e.split("-");return{y:+b,m:+g-1}}const m=new Date;return{y:m.getFullYear(),m:m.getMonth()}},[a,r]=s.useState(()=>n().y),[o,i]=s.useState(()=>n().m),l=s.useRef(e);s.useEffect(()=>{if(e===l.current)return;l.current=e;const m=n();r(m.y),i(m.m)},[e]);const c=s.useRef({y:a,m:o});s.useEffect(()=>{c.current={y:a,m:o}},[a,o]);const u=s.useCallback(m=>{const b=c.current.y*12+c.current.m+m,g=Math.floor(b/12),f=b-g*12;c.current={y:g,m:f},r(g),i(f)},[]),d=s.useCallback(()=>u(-1),[u]),p=s.useCallback(()=>u(1),[u]),h=s.useCallback((m,b)=>{c.current={y:m,m:b},r(m),i(b)},[]);return{viewY:a,viewM:o,prevMonth:d,nextMonth:p,setViewYM:h}}function Cr(e,n){return new Date(e,n+1,0).getDate()}function c4(e,n){return new Date(e,n,1).getDay()}function Rn(e,n,a){return`${e}-${String(n+1).padStart(2,"0")}-${String(a).padStart(2,"0")}`}function u4(e){if(!e)return"";const[n,a,r]=e.split("-");return`${n}. ${a}. ${r}.`}function d4(e,n,a,r){const o=a?+a.split("-")[0]:e-10,i=r?+r.split("-")[0]:e+10,l=[];for(let c=o;c<=i;c++)for(let u=0;u<12;u++){const d=`${c}-${String(u+1).padStart(2,"0")}`;a&&d<a.slice(0,7)||r&&d>r.slice(0,7)||l.push({value:d,label:n(c,u+1)})}return l}function p4({value:e,onChange:n,size:a=48,min:r,max:o,disabled:i,placeholder:l,className:c}){const{t:u}=me.useTranslation(),d=l??u("datePicker.chooseDate","\uB0A0\uC9DC \uC120\uD0DD"),p=s.useMemo(()=>u("calendar.dow",{returnObjects:!0}),[u]),h=new Date,{viewY:m,viewM:b,prevMonth:g,nextMonth:f,setViewYM:C}=Hi(e),v=s.useCallback(R=>{const j=window.innerHeight-R.bottom,M=300,V=j<M&&R.top>M;return{position:"fixed",left:R.left,width:R.width,minWidth:260,...V?{bottom:window.innerHeight-R.top+6}:{top:R.bottom+6},zIndex:9999}},[]),{open:x,setOpen:w,toggle:y,style:k,triggerRef:_,menuRef:A}=ea({computeStyle:v,onScroll:"reposition",onResize:"reposition",ignoreOutsideClickSelector:".dropdown__menu"});s.useEffect(()=>{if(!x)return;const R=A.current;return(R?.querySelector(".date-picker__day--selected:not(:disabled)")??R?.querySelector(".date-picker__day--today:not(:disabled)")??R?.querySelector(".date-picker__day:not(:disabled)")??R?.querySelector(kn)??R)?.focus?.(),()=>{const j=document.activeElement;(!j||j===document.body)&&_.current?.focus?.()}},[x,A,_]);const[T,N]=s.useState(1),D=s.useRef(null),H=s.useRef(null);s.useEffect(()=>{if(!x)return;const R=Rn(h.getFullYear(),h.getMonth(),h.getDate()),j=e&&e.slice(0,7)===`${m}-${String(b+1).padStart(2,"0")}`?+e.slice(8):R.slice(0,7)===`${m}-${String(b+1).padStart(2,"0")}`?+R.slice(8):1;N(j)},[x]),s.useEffect(()=>{if(H.current==null)return;const R=H.current;H.current=null,D.current?.querySelector(`[data-day="${R}"]`)?.focus()}),s.useEffect(()=>{N(R=>Math.min(R,Cr(m,b)))},[m,b]);const F=s.useCallback(R=>{let j=Rn(R.getFullYear(),R.getMonth(),R.getDate());r&&j<r&&(j=r),o&&j>o&&(j=o);const[M,V,P]=j.split("-").map(Number);(M!==m||V-1!==b)&&C(M,V-1),N(P),H.current=P},[r,o,m,b,C]),B=s.useCallback(R=>{const j=new Date(m,b,T),M=P=>{j.setDate(j.getDate()+P),F(j)},V=P=>{j.setMonth(j.getMonth()+P),F(j)};switch(R.key){case"ArrowLeft":M(-1);break;case"ArrowRight":M(1);break;case"ArrowUp":M(-7);break;case"ArrowDown":M(7);break;case"Home":M(-j.getDay());break;case"End":M(6-j.getDay());break;case"PageUp":R.shiftKey?V(-12):V(-1);break;case"PageDown":R.shiftKey?V(12):V(1);break;default:return}R.preventDefault()},[m,b,T,F]),I=s.useCallback(R=>{n(Rn(m,b,R)),w(!1)},[m,b,n,w]),E=R=>{const j=Rn(m,b,R);return!!(r&&j<r||o&&j>o)},te=(()=>{const R=Cr(m,b);if(T>=1&&T<=R&&!E(T))return T;for(let j=1;j<=R;j++)if(!E(j))return j;return-1})(),L=[];for(let R=0;R<c4(m,b);R++)L.push(null);for(let R=1;R<=Cr(m,b);R++)L.push(R);const O=a===64?20:a===40?16:18,ee=d4(m,(R,j)=>u("calendar.yearMonth",{year:R,month:j,defaultValue:"{{year}}\uB144 {{month}}\uC6D4"}),r,o),Y=`${m}-${String(b+1).padStart(2,"0")}`,K=x?Ft.createPortal(t.jsxs("div",{ref:A,className:"date-picker__dropdown",style:k,role:"dialog","aria-label":u("datePicker.chooseDate","\uB0A0\uC9DC \uC120\uD0DD"),tabIndex:-1,children:[t.jsxs("div",{className:"date-picker__nav",children:[t.jsx("button",{type:"button",className:"date-picker__nav-btn",onClick:g,"aria-label":u("calendar.prevMonth","\uC774\uC804 \uB2EC"),children:t.jsx(Co,{size:16,strokeWidth:2})}),t.jsx(Wt,{className:"date-picker__nav-dropdown",ariaLabel:u("datePicker.selectYearMonth","\uC5F0\uC6D4 \uC120\uD0DD"),options:ee,value:Y,onChange:R=>{const[j,M]=R.split("-");C(+j,+M-1)},block:!0,size:40}),t.jsx("button",{type:"button",className:"date-picker__nav-btn",onClick:f,"aria-label":u("calendar.nextMonth","\uB2E4\uC74C \uB2EC"),children:t.jsx(go,{size:16,strokeWidth:2})})]}),t.jsxs("div",{className:"date-picker__grid",ref:D,onKeyDown:B,children:[p.map(R=>t.jsx("div",{className:"date-picker__dow caption-1",children:R},R)),L.map((R,j)=>{if(R===null)return t.jsx("div",{},`e${j}`);const M=Rn(m,b,R),V=M===e,P=M===Rn(h.getFullYear(),h.getMonth(),h.getDate()),$=E(R),W=j%7;return t.jsx("button",{type:"button",disabled:$,"data-day":R,tabIndex:R===te?0:-1,"aria-current":P?"date":void 0,onClick:()=>!$&&I(R),className:ye("date-picker__day caption-1",V&&"date-picker__day--selected",P&&!V&&"date-picker__day--today",$&&"date-picker__day--disabled",W===0&&"date-picker__day--sun",W===6&&"date-picker__day--sat"),children:R},R)})]})]}),document.body):null;return t.jsxs("div",{className:ye("date-picker",`date-picker--s${a}`,x&&"date-picker--open",c),children:[t.jsxs("button",{ref:_,type:"button",className:"date-picker__trigger body-2",onClick:()=>!i&&y(),disabled:i,"aria-haspopup":"true","aria-expanded":x,children:[t.jsx("span",{className:e?"date-picker__value":"date-picker__placeholder",children:e?u4(e):d}),t.jsx(No,{size:O,className:"date-picker__icon",strokeWidth:1.5})]}),K]})}function gr({items:e,className:n}){return t.jsx("div",{className:n?`manager-bar-chart-legend ${n}`:"manager-bar-chart-legend",children:e.map((a,r)=>t.jsxs("span",{className:"manager-bar-chart-legend-item",children:[t.jsx("span",{className:"manager-bar-chart-legend-dot",style:{background:a.color}}),a.label]},r))})}function ka({label:e,children:n}){return e?t.jsxs("div",{className:"barchart-total barchart-total--stacked",children:[t.jsx("span",{className:"barchart-total__label body-3",children:e}),t.jsx("span",{className:"barchart-total__value",children:n})]}):t.jsx("div",{className:"barchart-total",children:n})}function br({title:e,titleClassName:n="h3",headRight:a,subRow:r,className:o,inGrid:i=!1,children:l}){return t.jsxs("section",{className:["manager-section",i&&"manager-section--grid",o].filter(Boolean).join(" "),children:[t.jsxs("div",{className:"manager-section__head",children:[t.jsx("div",{className:n,children:e}),a]}),r&&t.jsx("div",{className:"barchart-sub-row",children:r}),l]})}function nn(e,n){const a=new Date(e,n,1).getDay();return 1+(8-(a===0?7:a))%7}function h4(){const e=new Date;let n=e.getFullYear(),a=e.getMonth(),r=e.getDate();if(r<nn(n,a)){const l=new Date(n,a,0);n=l.getFullYear(),a=l.getMonth(),r=l.getDate()}const o=Math.floor((r-nn(n,a))/7),i=`${n}\uB144 ${a+1}\uC6D4`;return{monthKey:i,value:`${i}#${o}`}}function m4(e){const n=new Date,a=`${n.getFullYear()}\uB144 ${n.getMonth()+1}\uC6D4`,r=(u,d)=>`${u}\uB144 ${d+1}\uC6D4`,o=new Map;o.set(a,[]);for(const u of e){if(isNaN(u.date.getTime()))continue;const d=r(u.date.getFullYear(),u.date.getMonth());o.has(d)||o.set(d,[]),o.get(d).push(u)}for(const[u,d]of[...o.entries()]){const p=u.match(/^(\d+)년 (\d+)월$/);if(!p)continue;const h=Number(p[1]),m=Number(p[2])-1,b=nn(h,m);if(!(u===a&&n.getDate()<b)&&!d.some(C=>C.date.getDate()<b))continue;const g=new Date(h,m,0),f=r(g.getFullYear(),g.getMonth());o.has(f)||o.set(f,[])}const i=new Map;for(const[u,d]of o){const p=u.match(/^(\d+)년 (\d+)월$/);if(!p)continue;const h=Number(p[1]),m=Number(p[2])-1,b=new Date(h,m+1,0).getDate(),g=d.reduce((x,w)=>Math.max(x,w.parts?.length??0),0),f=new Array(b+1).fill(0),C=new Array(b+1).fill(0),v=Array.from({length:b+1},()=>new Array(g).fill(0));for(const x of d){const w=x.date.getDate();if(f[w]+=x.a,C[w]+=x.b,x.parts)for(let y=0;y<g;y++)v[w][y]+=x.parts[y]??0}i.set(u,{year:h,month:m,daysInMonth:b,partsLen:g,dayA:f,dayB:C,dayParts:v})}const l=(u,d,p)=>new Date(u,d,p).getTime()>new Date(n.getFullYear(),n.getMonth(),n.getDate()).getTime(),c={};for(const[u,d]of i){const{year:p,month:h,daysInMonth:m,dayA:b,dayB:g,dayParts:f}=d,C=p===n.getFullYear()&&h===n.getMonth(),v=n.getDate(),x=i.get(r(h===11?p+1:p,(h+1)%12)),w=d.partsLen,y=[];for(let _=1;_<=m;_++){const A=C&&_>v;y.push({label:String(_),a:A&&b[_]===0&&g[_]===0?-1:b[_],b:g[_],...w?{parts:f[_]}:{}})}const k=[];for(let _=nn(p,h);_<=m;_+=7){const A=Math.max(0,_+6-m),T=A&&x?Math.max(w,x.partsLen):w;let N=0,D=0;const H=new Array(T).fill(0);for(let B=_;B<=Math.min(_+6,m);B++){N+=b[B],D+=g[B];for(let I=0;I<w;I++)H[I]+=f[B][I]}if(A&&x)for(let B=1;B<=A&&!l(x.year,x.month,B);B++){N+=x.dayA[B],D+=x.dayB[B];for(let I=0;I<x.partsLen;I++)H[I]+=x.dayParts[B][I]}const F=A?`${(h+1)%12+1}/${A}`:`${_+6}`;k.push({label:`${k.length+1}\uC8FC`,sublabel:`[${_}\uC77C~${F}\uC77C]`,a:N,b:D,...T?{parts:H}:{}})}c[u]={weekly:k,daily:y}}return c}function Vi(){const e=new Date,n=e.getFullYear(),a=e.getMonth()+1,r=[];for(let o=2024;o<=n;o++){const i=o===n?a:12;for(let l=1;l<=i;l++){const c=`${o}\uB144 ${l}\uC6D4`;r.push({value:c,label:c,year:o,month:l})}}return r.reverse()}Vi();function f4(){return Vi()}const zi=["\uCCAB\uC9F8","\uB458\uC9F8","\uC14B\uC9F8","\uB137\uC9F8","\uB2E4\uC12F\uC9F8","\uC5EC\uC12F\uC9F8","\uC77C\uACF1\uC9F8"];function Wi(e){const{t:n,i18n:a}=me.useTranslation(),[r,o]=s.useState("week"),i=s.useMemo(()=>f4().filter(N=>N.value in e),[e]),l=s.useMemo(()=>{const N=[];for(const D of i){const H=new Date(D.year,D.month,0).getDate(),F=nn(D.year,D.month-1),B=Math.ceil((H-F+1)/7);for(let I=B-1;I>=0;I--)N.push({value:`${D.value}#${I}`,monthKey:D.value,year:D.year,month:D.month,week:I})}return N},[i]),c=s.useCallback(N=>{const D=n("calendar.yearMonth",{year:N.year,month:N.month});return a.language?.startsWith("ko")?`${D} ${zi[N.week]??`${N.week+1}`}\uC8FC`:`${D} Week ${N.week+1}`},[n,a.language]),u=s.useMemo(()=>i.map(N=>({value:N.value,label:n("calendar.yearMonth",{year:N.year,month:N.month})})),[n,i]),d=s.useMemo(()=>l.map(N=>({value:N.value,label:c(N)})),[l,c]),p=s.useMemo(()=>h4(),[e]),h=s.useMemo(()=>i.find(N=>N.value===p.monthKey)?.value??i[0]?.value??"",[i,p]),m=s.useMemo(()=>l.find(N=>N.value===p.value)?.value??l[0]?.value??"",[l,p]),[b,g]=s.useState(""),[f,C]=s.useState("");s.useEffect(()=>{i.find(N=>N.value===b)||g(h)},[i,b,h]),s.useEffect(()=>{l.find(N=>N.value===f)||C(m)},[l,f,m]);const v=r==="month"?u:d,x=r==="month"?b:f,w=r==="month"?g:C,y=s.useMemo(()=>{const N=n("calendar.dow",{returnObjects:!0});return Array.isArray(N)?N:["\uC77C","\uC6D4","\uD654","\uC218","\uBAA9","\uAE08","\uD1A0"]},[n]),k=v.findIndex(N=>N.value===x),_=s.useCallback(()=>{const N=v.findIndex(D=>D.value===x);N<v.length-1&&w(v[N+1].value)},[v,x,w]),A=s.useCallback(()=>{const N=v.findIndex(D=>D.value===x);N>0&&w(v[N-1].value)},[v,x,w]),T=s.useMemo(()=>[{key:"week",label:n("manager.chart.periodWeek","\uC8FC")},{key:"month",label:n("manager.chart.periodMonth","\uC6D4")}],[n]);return{period:r,setPeriod:o,range:x,setRange:w,activeOptions:v,activeIdx:k,handlePrev:_,handleNext:A,periodOptions:T,monthRange:b,weekRange:f,weekRanges:l,DOW:y}}const qt=e=>typeof e=="number"&&Number.isFinite(e)?e:0;function C4({data:e,colorA:n,colorB:a,labelA:r,labelB:o,barWidth:i=10,height:l=140,maxOverride:c,tightMax:u,seriesColors:d,seriesLabels:p,rateLabels:h}){const m=!a,b=!!(d&&d.length>0),g=s.useMemo(()=>b?Math.max(0,...e.filter(A=>A.a!==-1).map(A=>(A.parts??[]).reduce((T,N)=>T+Math.max(0,qt(N)),0))):Math.max(0,...e.filter(A=>A.a!==-1).flatMap(A=>m?[qt(A.a)]:[qt(A.a),qt(A.b)])),[e,m,b]),f=s.useMemo(()=>c??(u?g>0?g:10:Math.ceil(g/10)*10||10),[g,c,u]),C=l,v=b||m?1:2,x={"--bar-width":`${s.useMemo(()=>{const A=Math.max(1,e.length);return Math.max(8,Math.min(i,Math.round(120/(A*v)+6)))},[e.length,v,i])}px`},w=s.useMemo(()=>{const A=Math.round(f/2);return A!==f?[f,A,0]:[f,0]},[f]),[y,k]=s.useState(null),_=s.useCallback(()=>k(null),[]);return t.jsxs("div",{className:"manager-bar-chart-wrap",children:[t.jsx("div",{className:"manager-bar-chart-inner",children:t.jsx("div",{className:"manager-bar-chart-scroll",children:t.jsxs("div",{className:"manager-bar-chart-area",children:[t.jsxs("div",{className:"manager-bar-chart-plot",style:{height:C},children:[w.slice(0,-1).map((A,T)=>t.jsx("div",{className:"manager-bar-chart-gridline",style:{top:(1-A/f)*C},children:t.jsx("span",{className:"manager-bar-chart-gridline__label caption-1",children:A})},T)),e.map((A,T)=>{const N=A.a===-1,D=I=>Math.min(C,Math.max(0,qt(I)/f*C)),H=N?0:D(A.a),F=N?0:D(A.b),B=(A.parts??[]).map(qt);return t.jsx("div",{className:"manager-bar-chart-col",style:{cursor:N?"default":"pointer"},onMouseEnter:N?void 0:I=>{const E=I.currentTarget.getBoundingClientRect(),te=[A.label,A.sublabel].filter(Boolean).join(" ");let L;if(b){const O=(p??[]).map((Y,K)=>({text:`${Y}: ${B[K]??0}`,color:(d??[])[K]})),ee=O.filter((Y,K)=>(B[K]??0)>0);L=ee.length?ee:O}else h&&!m?L=[{text:`${r} ${qt(A.a)}%`,color:n},{text:`${o} ${qt(A.b)}%`,color:a}]:h&&A.rawB!==void 0?L=[{text:`${h.total} ${A.rawB}`},{text:`${h.done} ${A.rawA??0}`,color:n}]:m?L=[{text:`${r}: ${qt(A.a)}`,color:n}]:L=[{text:`${r}: ${qt(A.a)}`,color:n},{text:`${o}: ${qt(A.b)}`,color:a}];k({rect:{left:E.left,top:E.top,right:E.right,bottom:E.bottom,width:E.width,height:E.height},title:te,items:L})},onMouseLeave:_,children:!N&&(b?t.jsx("div",{className:"manager-bar-chart-stack",style:x,children:(()=>{const I=B.reduce((te,L,O)=>L>0?O:te,-1);let E=C;return B.map((te,L)=>{if(te<=0)return null;const O=Math.min(E,te/f*C);return E-=O,t.jsx("div",{className:"manager-bar-chart-stack-segment",style:{height:O,background:(d??[])[L],borderRadius:L===I?"6px 6px 0 0":void 0}},L)})})()}):t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"manager-bar-chart-bar",style:{...x,height:H,background:n}}),!m&&t.jsx("div",{className:"manager-bar-chart-bar",style:{...x,height:F,background:a}})]}))},T)})]}),t.jsx("div",{className:"manager-bar-chart-x-axis",children:e.map((A,T)=>{const N=A.a===-1;return t.jsxs("span",{className:`manager-bar-chart-x-axis__label${N?" manager-bar-chart-x-axis__label--future":""}`,children:[t.jsxs("span",{className:"caption-1 manager-bar-chart-x-axis__main",children:[A.isToday&&t.jsx("span",{className:"manager-bar-chart-x-axis__today-dot",style:{background:n}}),A.label]}),A.sublabel&&t.jsx("span",{className:"caption-1",children:A.sublabel})]},T)})})]})})}),y&&t.jsx(Nn,{anchorRect:y.rect,title:y.title,items:y.items,showIndex:!1,closeOnOutsideClick:!1})]})}function qi({control:e}){const{t:n}=me.useTranslation(),{activeOptions:a,activeIdx:r,range:o,setRange:i,handlePrev:l,handleNext:c,periodOptions:u,period:d,setPeriod:p}=e,h=d==="week"?n("calendar.prevWeek","\uC774\uC804 \uC8FC"):n("calendar.prevMonth","\uC774\uC804 \uB2EC"),m=d==="week"?n("calendar.nextWeek","\uB2E4\uC74C \uC8FC"):n("calendar.nextMonth","\uB2E4\uC74C \uB2EC");return t.jsxs("div",{className:"manager-section-controls",children:[t.jsx(ie,{htmlType:"button",size:32,type:"dot",icon:"chevron-left",ariaLabel:h,showTooltipInfo:h,disabled:r===a.length-1,onClick:l}),t.jsx(Wt,{value:o,onChange:i,options:a,size:40,className:"month-dropdown",ariaLabel:n("calendar.rangeSelect","\uAE30\uAC04 \uC120\uD0DD")}),t.jsx(ie,{htmlType:"button",size:32,type:"dot",icon:"chevron-right",ariaLabel:m,showTooltipInfo:m,disabled:r<=0,onClick:c}),t.jsx(Tn,{ariaLabel:n("calendar.periodSelect","\uAE30\uAC04 \uB2E8\uC704"),options:u,value:d,onChange:b=>p(b),size:32})]})}function Ui(e,n,a){const r=new Date(a.getFullYear(),a.getMonth(),a.getDate());return Array.from({length:7},(o,i)=>{const l=new Date(n);l.setDate(n.getDate()+i);const c=(e[`${l.getFullYear()}\uB144 ${l.getMonth()+1}\uC6D4`]?.daily??[])[l.getDate()-1],u=c?.a===-1||l>r;return{dt:l,entry:c,isFuture:u}})}function g4(e,n,a,r){const{period:o,monthRange:i,weekRange:l,weekRanges:c,DOW:u}=n,d=r?.startsWith("ko"),p=new Date,h=p.getFullYear(),m=p.getMonth()+1,b=p.getDate();if(o==="month"){const C=e[i]??{weekly:[],daily:[]},v=i.match(/^(\d+)년 (\d+)월$/),x=v?Number(v[1]):null,w=v?Number(v[2]):null,y=x&&w?nn(x,w-1):1;return C.weekly.map((k,_)=>{const A=_+1;let T=k.label,N=!1,D=!1;if(x&&w){const H=y+_*7,F=new Date(x,w-1,H+6),B=F.getMonth()+1,I=F.getDate(),E=B===w?`${I}`:`${B}/${I}`;T=a("manager.chart.weekRange",{start:H,end:E});const te=new Date(h,m-1,b).getTime();N=te>=new Date(x,w-1,H).getTime()&&te<=F.getTime(),D=x>h||x===h&&(w>m||w===m&&H>b)}return{...k,label:T,sublabel:d?`${zi[A-1]??A}\uC8FC`:`Week ${A}`,isToday:N,a:D?-1:k.a,b:D?0:k.b}})}const g=c.find(C=>C.value===l);if(!g)return[];const f=new Date(g.year,g.month-1,nn(g.year,g.month-1)+g.week*7);return Ui(e,f,p).map(({dt:C,entry:v,isFuture:x})=>{const w=C.getMonth()+1,y=C.getDate(),k=C.getFullYear();return{label:w===g.month&&k===g.year?`${y}`:`${w}/${y}`,sublabel:u[C.getDay()]??"",a:x?-1:v&&v.a>0?v.a:0,b:x?0:v&&v.b>0?v.b:0,isToday:k===h&&w===m&&y===b,...v?.parts?{parts:x?v.parts.map(()=>0):v.parts}:{}}})}const b4={small:{height:100,barWidth:16},medium:{height:140,barWidth:20},large:{height:180,barWidth:24}};function y4({size:e="medium",barWidth:n,titleKey:a,data:r,colorA:o,colorB:i,labelAKey:l,labelBKey:c,showTotal:u=!1,totalUnitKey:d,totalLabelKey:p,control:h,hideControls:m=!1,rate:b=!1,tightMax:g=!1,avgMode:f=!1,totalFormat:C,series:v,loading:x=!1,onDetail:w,inGrid:y=!1}){const{t:k,i18n:_}=me.useTranslation(),A=b4[e],T=Wi(r),N=h??T,D=s.useMemo(()=>g4(r,N,k,_.language),[r,N,k,_.language]),H=s.useMemo(()=>{if(!b)return D;const E=N.period==="month"?N.monthRange.match(/^(\d+)년 (\d+)월$/):null,te=new Date;return D.map((L,O)=>{let ee=L.a===-1?-1:L.b>0?Math.round(L.a/L.b*100):0;if(E&&L.a!==-1){const Y=Number(E[1]),K=Number(E[2])-1,R=Ui(r,new Date(Y,K,nn(Y,K)+O*7),te).filter(j=>!j.isFuture);ee=R.length?Math.round(R.reduce((j,{entry:M})=>j+(M&&M.b>0?M.a/M.b*100:0),0)/R.length):0}return{...L,a:ee,b:L.a===-1?0:c&&L.parts&&L.parts[1]>0?Math.round(L.parts[0]/L.parts[1]*100):0,rawA:L.a===-1?-1:L.a,rawB:L.b}})},[D,b,c,N.period,N.monthRange,r]),F=s.useMemo(()=>{if(b||f){const E=(N.period==="week"?D:r[N.monthRange]?.daily??[]).filter(L=>L.a!==-1);if(E.length===0)return 0;const te=b?E.reduce((L,O)=>L+(O.b>0?O.a/O.b*100:0),0):E.reduce((L,O)=>L+(O.a>0?O.a:0),0);return Math.round(te/E.length)}return H.reduce((E,te)=>E+(te.a>0?te.a:0)+(c&&te.b>0?te.b:0),0)},[H,D,b,f,c,N.period,N.monthRange,r]),B=v&&v.length>0?v.map(E=>({color:E.color,label:E.label})):[{color:o,label:k(l)},...c?[{color:i,label:k(c)}]:[]],I=e==="small";return t.jsx(br,{className:I?"manager-section--compact":e==="large"?"manager-section--full":void 0,inGrid:y,title:k(a),titleClassName:I?"h5 chart-section-title--small":void 0,headRight:I?void 0:t.jsxs(t.Fragment,{children:[!m&&t.jsx(qi,{control:N}),w&&t.jsx("span",{className:"manager-bar-chart-detail-btn",children:t.jsx(ie,{htmlType:"button",size:32,type:"dot",icon:"list",ariaLabel:k("trainingStatus.detail","\uC0C1\uC138\uBCF4\uAE30"),onClick:w})})]}),subRow:t.jsxs(t.Fragment,{children:[u?b||f||p&&C?t.jsx(ka,{label:I?void 0:`${k(N.period==="week"?"manager.chart.weeklyPrefix":"manager.chart.monthlyPrefix")} ${k(p??l)}`,children:C?(C(F).match(/(\d+|[^\d]+)/g)??[]).map((E,te)=>/\d/.test(E)?t.jsx("span",{className:"barchart-total__num h0",children:E},te):t.jsx("span",{className:"barchart-total__unit h5",children:E},te)):t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"barchart-total__num h0",children:F}),d&&t.jsx("span",{className:"barchart-total__unit h5",children:k(d)})]})}):t.jsxs(ka,{children:[t.jsx("span",{className:"barchart-total__num h0",children:F}),t.jsx("span",{className:"barchart-total__unit h5",children:k(l)}),d&&t.jsx("span",{className:"barchart-total__unit h5",children:k(d)})]}):t.jsx("span",{}),t.jsx(gr,{items:B,className:"caption-1"})]}),children:x?t.jsx("div",{className:"manager-bar-chart-loading",children:t.jsx(sa,{size:32})}):t.jsx(C4,{data:H,colorA:o,colorB:c?i:void 0,labelA:k(l),labelB:c?k(c):void 0,barWidth:n??A.barWidth,height:A.height,maxOverride:b?100:void 0,tightMax:g,seriesColors:v?.map(E=>E.color),seriesLabels:v?.map(E=>E.label),rateLabels:b?{total:k("trainingStatus.today.tooltipTotal","\uC804\uCCB4"),done:k("trainingStatus.today.tooltipDone","\uC644\uB8CC")}:void 0})})}function v4(e){if(e.period==="month"){const i=e.monthRange.match(/^(\d+)년 (\d+)월$/),l=new Date,c=i?Number(i[1]):l.getFullYear(),u=i?Number(i[2]):l.getMonth()+1;return{from:new Date(c,u-1,1,0,0,0),to:new Date(c,u,0,23,59,59)}}const n=e.weekRanges.find(i=>i.value===e.weekRange);if(!n){const i=new Date;return{from:i,to:i}}const a=nn(n.year,n.month-1),r=new Date(n.year,n.month-1,a+n.week*7,0,0,0),o=new Date(r);return o.setDate(r.getDate()+6),o.setHours(23,59,59),{from:r,to:o}}const Gi={small:{diameter:96,strokeWidth:16},medium:{diameter:120,strokeWidth:18},large:{diameter:160,strokeWidth:22}};function Ki(e){return!Number.isFinite(e)||e<=0?0:e>=1?100:Math.min(99,Math.max(1,Math.round(e*100)))}function Yi({done:e,total:n,segments:a,color:r="var(--color-main)",size:o="medium",strokeWidth:i,label:l="%",hideCenter:c=!1,hideLabel:u=!1}){const d=typeof o=="number"?o:Gi[o].diameter,p=i??(typeof o=="number"?12:Gi[o].strokeWidth),h=d/2,m=(d-p)/2,b=2*Math.PI*m;if(a&&a.length>0){const v=a.reduce((x,w)=>{const y=x.length>0?x[x.length-1].acc:0,k=Number.isFinite(w.ratio)?w.ratio:0,_=Math.max(0,Math.min(k,1-y));return x.push({color:w.color,rotate:-90+y*360,dash:b*_,acc:y+_}),x},[]);return t.jsx("div",{className:"ring-chart",style:{width:d,height:d},children:t.jsxs("svg",{width:d,height:d,viewBox:`0 0 ${d} ${d}`,"aria-hidden":"true",children:[t.jsx("circle",{cx:h,cy:h,r:m,fill:"none",stroke:"var(--color-whiteLine)",strokeWidth:p}),v.map((x,w)=>x.dash>0&&t.jsx("circle",{cx:h,cy:h,r:m,fill:"none",stroke:x.color,strokeWidth:p,strokeDasharray:`${x.dash} ${b}`,strokeLinecap:"round",transform:`rotate(${x.rotate} ${h} ${h})`},w))]})})}const g=(n??0)>0?Math.min((e??0)/n,1):0,f=b*g,C=b-f;return t.jsxs("div",{className:"ring-chart",style:{width:d,height:d},children:[t.jsxs("svg",{width:d,height:d,viewBox:`0 0 ${d} ${d}`,"aria-hidden":"true",children:[t.jsx("circle",{cx:h,cy:h,r:m,fill:"none",stroke:"var(--color-whiteLine)",strokeWidth:p}),g>0&&t.jsx("circle",{cx:h,cy:h,r:m,fill:"none",stroke:r,strokeWidth:p,strokeDasharray:`${f} ${C}`,strokeLinecap:g<.02||g>.98?"butt":"round",transform:`rotate(-90 ${h} ${h})`})]}),!c&&t.jsxs("div",{className:`ring-chart__center${u?"":` ${d<=96?"ring-chart__center--small":o==="medium"?"ring-chart__center--medium":"ring-chart__center--large"}`}`,children:[t.jsx("span",{className:`ring-chart__pct ${d<=96?"h2":"h1"}`,children:Ki(g)}),!u&&t.jsx("span",{className:`ring-chart__label ${d<=96?"caption-2":"caption-1"}${d<=96||o==="medium"?" ring-chart__label--tight":""}`,children:l})]})]})}function x4({titleKey:e,headRight:n,icon:a,showTotal:r,totalLabelKey:o,legend:i,loading:l,className:c,inGrid:u=!1,...d}){const{t:p}=me.useTranslation();if(!e)return t.jsx(Yi,{...d});const h=(d.total??0)>0?Ki(Math.min((d.done??0)/d.total,1)):0,m=d.size==="small",b=d.size==="large",g=[c,m?"manager-section--compact":b?"manager-section--full":""].filter(Boolean).join(" ")||void 0,f=a&&t.jsx("span",{className:"chart-section-icon",children:t.jsx(Ve,{icon:a,className:"chart-section-icon-inner"})});return t.jsx(br,{className:g,inGrid:u,title:p(e),titleClassName:m?"h5 chart-section-title--small":void 0,headRight:f||(m?void 0:n),subRow:(r||i)&&t.jsxs(t.Fragment,{children:[r?t.jsxs(ka,{label:!m&&o?p(o):void 0,children:[t.jsx("span",{className:"barchart-total__num h0",children:h}),t.jsx("span",{className:"barchart-total__unit h5",children:"%"})]}):t.jsx("span",{}),i&&t.jsx(gr,{items:i})]}),children:l?t.jsx("div",{className:"manager-bar-chart-loading",children:t.jsx(sa,{size:32})}):t.jsx("div",{className:"ring-chart-section-body ring-chart-section-body--offset",children:t.jsx(Yi,{...d,hideCenter:m||d.hideCenter})})})}function _4({label:e,value:n,change:a,changeType:r,icon:o,tooltip:i,onClick:l}){const c=s.useRef(null),{anchorRect:u,openAt:d,close:p}=xa(),h=s.useCallback(()=>{i&&c.current&&d(c.current)},[i,d]),m=r??(a===void 0?void 0:a>0?"up":a<0?"down":"neutral"),b=a===void 0?void 0:a>0?`+${a}`:`${a}`,g=s.useCallback(f=>{l&&(f.key==="Enter"||f.key===" ")&&(f.preventDefault(),l())},[l]);return t.jsxs("div",{ref:c,className:`manager-stat-card${l?" manager-stat-card--clickable":""}`,onClick:l,onKeyDown:l?g:void 0,onPointerEnter:h,onPointerLeave:p,onFocus:h,onBlur:p,role:l?"button":void 0,tabIndex:l?0:void 0,"aria-label":l?[e,n,b].filter(f=>f!==void 0&&f!=="").join(" "):void 0,children:[i&&u&&t.jsx(hn,{anchorRect:{left:u.left,top:u.top+21,right:u.right,bottom:u.bottom,width:u.width,height:u.height},text:i}),t.jsxs("div",{className:"manager-stat-card__label-row",children:[t.jsx("span",{className:"manager-stat-card__label h5",children:e}),o&&t.jsx("span",{className:"manager-stat-card__icon",children:t.jsx(Ve,{icon:o,className:"manager-stat-card__icon-inner"})})]}),t.jsx("div",{className:"manager-stat-card__content",children:t.jsxs("div",{className:"manager-stat-card__left",children:[t.jsx("div",{className:"manager-stat-card__value h2",children:n}),b&&t.jsx("div",{className:`manager-stat-card__change manager-stat-card__change--${m??"neutral"} caption-1`,children:b})]})})]})}function Zi({value:e,onChange:n,min:a=0,max:r=100,step:o=1,orientation:i="horizontal",size:l=24,disabled:c=!1,ariaLabel:u,length:d,className:p,label:h,formatValue:m,labelPos:b,labelAlign:g="right",showMinMax:f=!1,minLabel:C,maxLabel:v,showBgTick:x=!1,showFillTick:w=!1,tickStep:y,tickShape:k="dot"}){n&&!u&&zn("Slider:unnamed","[ihab/Slider] \uC774\uB984\uC774 \uC5C6\uC2B5\uB2C8\uB2E4 \u2014 ariaLabel \uC744 \uC8FC\uC138\uC694. label prop \uC740 \uAC12 \uD45C\uAE30 \uBC29\uC2DD\uC774\uC9C0 \uC774\uB984\uC774 \uC544\uB2D9\uB2C8\uB2E4.");const _=Math.min(r,Math.max(a,e)),A=r>a?(_-a)/(r-a):0,T=i==="vertical",N=!n,D=j=>n?.(Number(j.target.value)),H=typeof d=="number"?`${d}px`:d,F={"--slider-ratio":String(A),"--slider-thumb":`${l}px`,...H?T?{height:H}:{width:H}:{}},B=y??o,I=(x||w)&&B>0&&r>a?Math.floor((r-a)/B+1e-6):0;if(I>0&&I<=100){const j=k!=="dash",M=se=>j?`radial-gradient(circle, ${se} 0.5px, transparent 1px)`:T?`linear-gradient(to bottom, transparent calc(50% - 2px), ${se} calc(50% - 2px), ${se} calc(50% + 2px), transparent calc(50% + 2px))`:`linear-gradient(to right, transparent calc(50% - 2px), ${se} calc(50% - 2px), ${se} calc(50% + 2px), transparent calc(50% + 2px))`,V=j?"2px":"4px",P=[],$=[],W=[];for(let se=0;se<=I;se++){const ae=se*B/(r-a);if(ae>1+1e-6)break;const le=`${((T?1-ae:ae)*100).toFixed(4)}%`,he=ae<=A+1e-6;if(he?!w:!x)continue;const ve=he?"var(--slider-tick-color-on-fill, var(--color-deepWhite))":"var(--slider-tick-color, var(--color-lightGray))";P.push(M(ve)),$.push(T?`${V} var(--slider-thumb)`:`var(--slider-thumb) ${V}`),W.push(T?`center ${le}`:`${le} center`)}P.push(T?"linear-gradient(to top, var(--slider-fill-color) var(--slider-fill), var(--color-darkWhite) var(--slider-fill))":"linear-gradient(to right, var(--slider-fill-color) var(--slider-fill), var(--color-darkWhite) var(--slider-fill))"),$.push("100% 100%"),W.push("0 0"),F.backgroundImage=P.join(", "),F.backgroundSize=$.join(", "),F.backgroundPosition=W.join(", "),F.backgroundRepeat="no-repeat"}const E=t.jsx("input",{type:"range",className:ye("slider",`slider--${i}`,N&&"slider--static",!h&&!f&&p),min:a,max:r,step:o,value:_,disabled:c,readOnly:N,tabIndex:N?-1:void 0,"aria-label":u,"aria-orientation":i,onChange:D,style:F});if(!h&&!f)return E;const te=t.jsx("span",{className:"slider-wrap__minmax caption-1",children:C??a}),L=t.jsx("span",{className:"slider-wrap__minmax caption-1",children:v??r}),O=f?t.jsxs("div",{className:ye("slider-track-group",`slider-track-group--${i}`,!h&&p),children:[T?L:te,E,T?te:L]}):E;if(!h)return O;const ee=b??(T?"bottom":"right"),Y=`${Math.round(r>a?(_-a)/(r-a)*100:0)}%`,K=m?m(_):h==="percent"?Y:h==="count"?`${_} / ${r}`:String(_),R=t.jsx("span",{className:"slider-wrap__value body-3b",children:K});return t.jsxs("div",{className:ye("slider-wrap",`slider-wrap--${i}`,`slider-wrap--label-${ee}`,`slider-wrap--align-${g}`,p),children:[O,R]})}const w4=.86,k4=250,yr=(e,n,a,r)=>Math.round(Math.min(r,Math.max(a,e-n))),vr=(e,n,a,r)=>{const o=yr(e,n,a,r);return`${o<0?"-":"+"}${Math.abs(o)} dB`};function xr({analyser:e,audioElement:n,orientation:a="horizontal",length:r,label:o,labelPos:i,labelAlign:l="right",floorDb:c=-60,refDb:u=-35,displayMin:d=-5,displayMax:p=25,className:h,ariaLabel:m}){const b=s.useRef(null),g=s.useRef(null),f=s.useRef(null),C=s.useRef(null),[v,x]=s.useState(null);s.useEffect(()=>{const _=te=>{const L=vr(te,u,d,p);f.current&&(f.current.textContent=L);const O=b.current;O&&(O.setAttribute("aria-valuenow",String(yr(te,u,d,p))),O.setAttribute("aria-valuetext",L))},A=e??zm(n)??(v&&v.el===n?v.node:null),T=g.current;if(!A||!T){T?.style.setProperty("--meter-level","0"),_(c);let te=!1;return!e&&n&&ma(n).then(L=>{!te&&L&&x({el:n,node:L})}),()=>{te=!0}}Xa();const N=new Float32Array(A.fftSize);let D=0,H=0,F=0,B=0,I=null;const E=te=>{const L=Wm(A,N);D=L>D?L:D*w4;const O=D>1e-5?20*Math.log10(D):-1/0,ee=Math.max(c,O),Y=ee-u,K=Math.min(1,Math.max(0,(Y-d)/(p-d)));if(T.style.setProperty("--meter-level",K.toFixed(3)),H+=ee,F+=1,te-B>=k4){const R=H/F;I=I==null?R:I*.6+R*.4,_(I),H=0,F=0,B=te}C.current=requestAnimationFrame(E)};return C.current=requestAnimationFrame(E),()=>{C.current!=null&&cancelAnimationFrame(C.current),C.current=null}},[e,n,v,c,u,d,p]);const w=typeof r=="number"?`${r}px`:r,y=t.jsx("div",{className:"audio-meter__track",style:w?a==="vertical"?{height:w}:{width:w}:{},children:t.jsx("div",{ref:g,className:"audio-meter__fill"})}),k=i??(a==="vertical"?"bottom":"right");return t.jsxs("div",{ref:b,className:ye("audio-meter",`audio-meter--${a}`,o&&`audio-meter--label-${k}`,o&&`audio-meter--align-${l}`,h),role:"meter","aria-label":m,"aria-valuemin":d,"aria-valuemax":p,"aria-valuenow":yr(c,u,d,p),"aria-valuetext":vr(c,u,d,p),children:[y,o&&t.jsx("span",{ref:f,className:"audio-meter__value caption-2",children:vr(c,u,d,p)})]})}const Xi=500;function Ji({message:e,position:n,duration:a,onClose:r}){const[o,i]=s.useState(!1),[l,c]=s.useState(!1),u=s.useRef(l),d=s.useRef(o);s.useEffect(()=>{u.current=l},[l]),s.useEffect(()=>{d.current=o},[o]);const p=s.useRef(null),h=s.useRef(""),m=s.useRef(r);s.useEffect(()=>{m.current=r});const b=a,g=s.useRef(null),f=s.useRef(0),C=s.useRef(0),v=s.useRef(!1),x=s.useRef(null),w=s.useRef(null),y=s.useRef(null),k=s.useRef(null),_=s.useRef(()=>{});_.current=N=>{N<0||(f.current=Date.now(),C.current=N,g.current=setTimeout(()=>{g.current=null,i(!1),x.current=setTimeout(()=>{c(!1);try{m.current()}catch{}},Xi)},N))};const A=s.useCallback(()=>{v.current||!g.current||(v.current=!0,clearTimeout(g.current),g.current=null,C.current=Math.max(0,C.current-(Date.now()-f.current)))},[]),T=s.useCallback(()=>{v.current&&(v.current=!1,_.current(C.current))},[]);return s.useEffect(()=>{if(e!==h.current&&(g.current&&(clearTimeout(g.current),g.current=null),x.current&&(clearTimeout(x.current),x.current=null)),e){if(d.current)return b>0&&!g.current&&(v.current?C.current=b:_.current(b)),h.current=e,()=>{g.current&&(clearTimeout(g.current),g.current=null)};const N=()=>{const D=p.current;if(D)try{D.classList.remove("is-visible"),D.style.transition="none",n==="top"?D.style.transform="translateX(-50%) translateY(-16px)":D.style.transform="translateX(-50%) translateY(16px)",D.style.opacity="0",D.offsetWidth,D.style.transition="",D.classList.add("is-visible"),k.current&&clearTimeout(k.current),k.current=setTimeout(()=>{k.current=null;try{D.style.opacity="",D.style.transform="",D.style.transition=""}catch{}},60)}catch{}};u.current?(N(),i(!0)):(c(!0),w.current=requestAnimationFrame(()=>{y.current=requestAnimationFrame(()=>{N(),i(!0)})})),b>0&&(v.current=!1,_.current(b))}else i(!1),x.current=setTimeout(()=>c(!1),Xi);return h.current=e,()=>{g.current&&clearTimeout(g.current),x.current&&clearTimeout(x.current),w.current&&cancelAnimationFrame(w.current),y.current&&cancelAnimationFrame(y.current),k.current&&clearTimeout(k.current),g.current=null,x.current=null,w.current=null,y.current=null,k.current=null}},[e,b,n]),{mounted:l,showing:o,popupRef:p,pause:A,resume:T}}function Pn({message:e="",position:n="top",type:a="normal",onClose:r=()=>{},duration:o=2e3}){const{mounted:i,showing:l,popupRef:c,pause:u,resume:d}=Ji({message:e,position:n,duration:o,onClose:r});if(!i)return null;const p=a==="notice"||a==="warning"?a:"normal",h=t.jsx("div",{ref:c,className:`toast toast--${n} ${l?"is-visible":""}`,role:"status","aria-live":"polite",onMouseEnter:u,onMouseLeave:d,onFocusCapture:u,onBlurCapture:d,children:t.jsx("div",{className:`toast__inner toast__inner--${p} body-2`,children:e})});return typeof document<"u"?Ft.createPortal(h,document.body):h}const A4=24;function N4({value:e,max:n=100,size:a=8,color:r,trackColor:o,label:i,formatValue:l,labelPos:c,labelAlign:u="right",ariaLabel:d,className:p}){const h=Number.isFinite(n)&&n>0?n:1,m=Math.max(0,Math.min(Number.isFinite(e)?e:0,h)),b=m/h*100,g=Number.isFinite(n)&&n>0?n:0,f=c??(a>=A4?"inside":"bottom"),C=f==="center"?"inside":f,v=C==="inside"&&(u==="left"?b>=15:u==="center"?b>=50:b>=85),x={};return r&&(x["--progress-bar-fill"]=r),o&&(x["--progress-bar-track"]=o),t.jsxs("div",{className:ye("progress-bar",`progress-bar--${a}`,`progress-bar--label-${C}`,i&&`progress-bar--align-${u}`,i&&v&&"progress-bar--label-on-fill",p),style:x,children:[t.jsx("div",{className:"progress-bar__track",role:"progressbar","aria-valuenow":m,"aria-valuemin":0,"aria-valuemax":g,"aria-label":d,children:t.jsx("div",{className:"progress-bar__fill",style:{width:`${b}%`}})}),i&&t.jsx("span",{className:"progress-bar__label caption-1b",children:l?l(m):i==="percent"?`${Math.round(b)}%`:i==="raw"?String(m):`${m} / ${g}`})]})}const B4={position:"absolute",width:1,height:1,margin:-1,padding:0,overflow:"hidden",clipPath:"inset(50%)",whiteSpace:"nowrap",border:0},S4="rgba(255, 255, 255, 0.16)";function Qi({max:e,index:n,inactiveBg:a,inactiveColor:r,transparent:o,variant:i="numbered",announce:l=!1,ariaLabel:c}){const{t:u}=me.useTranslation(),d=Ut("(max-width: 767px)");if(!Number.isInteger(e)||e<=0)return null;const p=Number.isInteger(n)?Math.max(0,Math.min(n,e-1)):0,h=c??u("progress.steps",{current:p+1,total:e,defaultValue:"\uC9C4\uD589 \uB2E8\uACC4 {{current}} / {{total}}"}),m={};return a&&(m["--pi-inactive-bg"]=a),r&&(m["--pi-inactive-color"]=r),o&&(a||(m["--pi-inactive-bg"]=S4),r||(m["--pi-inactive-color"]="var(--color-white)")),i==="dot"?t.jsxs("div",{className:"progress-indicator progress-indicator--dot",style:m,role:l?"status":"img","aria-label":l?void 0:h,children:[l&&t.jsx("span",{style:B4,children:h}),Array.from({length:e}).map((b,g)=>t.jsx("span",{"aria-hidden":"true",className:`progress-indicator-dot--dot${g<p?" done":g===p?" active":""}`},g))]}):d?t.jsx("div",{className:"progress-indicator progress-indicator--mobile",style:m,role:"list","aria-label":h,children:t.jsxs("span",{role:"listitem",className:"progress-indicator-dot active body-3",children:[p+1," / ",e]})}):t.jsx("div",{className:"progress-indicator",style:m,role:"list","aria-label":h,children:Array.from({length:e}).map((b,g)=>t.jsx("span",{role:"listitem","aria-current":g===p?"step":void 0,className:`progress-indicator-dot ${g<p?" done":g===p?" active":""} body-3`,children:g+1},g))})}function D4(e){if(!e)return[];const n=[];let a=0,r="";for(const o of e.trim()){if(o==="("?a++:o===")"&&a--,/\s/.test(o)&&a===0){r&&(n.push(r),r="");continue}r+=o}return r&&n.push(r),n}function T4({children:e,className:n,style:a}){return t.jsx("div",{className:n?`table-cell ${n}`:"table-cell",style:a,children:e})}function _r({variant:e="default",children:n,className:a,draggable:r,onClick:o,onMouseEnter:i,onMouseLeave:l,onDragStart:c,onDragEnd:u,expandedContent:d}){const p=s.useCallback(h=>{o&&h.target===h.currentTarget&&(h.key==="Enter"||h.key===" ")&&(h.preventDefault(),o())},[o]);return e==="loading"?t.jsx("div",{className:"table-row-wrap",children:t.jsx("div",{className:"table-row table-row--loading",children:t.jsx(sa,{size:28})})}):e==="empty"?t.jsx("div",{className:"table-row-wrap",children:t.jsx("div",{className:"table-row table-row--empty body-3",children:n})}):t.jsxs("div",{className:"table-row-wrap",children:[t.jsx("div",{className:a?`table-row ${a}`:"table-row",draggable:r,onClick:o,onKeyDown:o?p:void 0,onMouseEnter:i,onMouseLeave:l,onDragStart:c,onDragEnd:u,role:o?"button":void 0,tabIndex:o?0:void 0,children:n}),d&&t.jsx("div",{className:"table-row-expand",children:d})]})}function j4({dir:e}){return t.jsx(e==="asc"?So:Bo,{className:"table-field__sort-arrow",size:16,strokeWidth:2})}function E4({children:e,onClick:n,className:a,sortDir:r,onResizeStart:o}){const i=s.useCallback(l=>{n&&l.target===l.currentTarget&&(l.key==="Enter"||l.key===" ")&&(l.preventDefault(),n())},[n]);return t.jsxs("div",{onClick:n,onKeyDown:n?i:void 0,role:n?"button":void 0,tabIndex:n?0:void 0,"aria-sort":r?r==="asc"?"ascending":"descending":void 0,className:ye("table-field body-3",a,r?"table-field--sorted":"",o?"table-field--resizable":""),children:[e,r&&t.jsx(j4,{dir:r}),o&&t.jsx("span",{className:"table-field__resizer",onPointerDown:o,onClick:l=>l.stopPropagation(),"aria-hidden":"true"})]})}function wr({fields:e=[],headerGroups:n,items:a=[],renderRow:r,onRowClick:o,isRowClickable:i,onRowMouseEnter:l,onRowMouseLeave:c,onRowDragStart:u,onRowDragEnd:d,draggingId:p,gridTemplateColumns:h,mobileGridTemplateColumns:m,resizable:b=!1,resizeMode:g="grow",resizeStorageKey:f,size:C="small",title:v,icon:x,count:w,collapsed:y=!1,onToggleCollapse:k,headerActions:_,empty:A,loading:T,dragOver:N=!1,onDragOver:D,onDragLeave:H,onDrop:F,renderExpandedRow:B,expandedId:I}){const{t:E}=me.useTranslation(),te=Ut("(max-width: 767px)"),L=m&&te?m:null,O=b&&!L,ee=48,Y=f?`table-cols:${f}`:null,K=s.useRef(null),R=s.useRef(()=>!1),j=s.useRef([]),M=s.useRef(null),V=X=>{if(!X||typeof window>"u")return null;try{const pe=JSON.parse(window.localStorage.getItem(X)??"null");return Array.isArray(pe)&&pe.length>0&&pe.every(Ne=>typeof Ne=="number"&&Number.isFinite(Ne)&&Ne>0)?pe:null}catch{return null}},[P,$]=s.useState(()=>V(Y)),[W,se]=s.useState(Y);W!==Y&&(se(Y),$(V(Y)));const ae=s.useRef(P);s.useEffect(()=>{ae.current=P},[P]);const le=s.useCallback(X=>{const pe=M.current;pe&&$(Ne=>{if(!Ne)return Ne;const Me=[...Ne];if(pe.next!=null&&pe.startWNext!=null){const He=X.clientX-pe.startX,Se=Math.max(ee-pe.startW,Math.min(pe.startWNext-ee,He));Me[pe.index]=pe.startW+Se,Me[pe.next]=pe.startWNext-Se}else Me[pe.index]=Math.max(ee,pe.startW+(X.clientX-pe.startX));return Me})},[]),he=s.useCallback(()=>{if(M.current=null,window.removeEventListener("pointermove",le),window.removeEventListener("pointerup",he),document.body.style.cursor="",document.body.style.userSelect="",Y&&ae.current)try{window.localStorage.setItem(Y,JSON.stringify(ae.current))}catch{}},[le,Y]),ve=s.useCallback((X,pe)=>{pe.preventDefault(),pe.stopPropagation();const Ne=K.current;if(!Ne)return;const Me=Array.from(Ne.children).map(Se=>Se.getBoundingClientRect().width),He=g==="fit"?e.findIndex((Se,Ie)=>Ie>X&&Se.resizable!==!1):-1;M.current=He>=0?{index:X,startX:pe.clientX,startW:Me[X],next:He,startWNext:Me[He]}:{index:X,startX:pe.clientX,startW:Me[X]},$(Me),window.addEventListener("pointermove",le),window.addEventListener("pointerup",he),document.body.style.cursor="col-resize",document.body.style.userSelect="none"},[le,he,g,e]),Z=s.useCallback(()=>{const X=K.current,pe=X?.closest(".table-wrap");if(!X||!pe)return;const Ne=pe.style.getPropertyValue("--table-grid-cols");pe.style.setProperty("--table-grid-cols",e.map((be,Fe)=>R.current(Fe)?j.current[Fe]:"max-content").join(" "));const Me=Array.from(pe.querySelectorAll(".table-row")).filter(be=>!be.classList.contains("table-row--loading")&&!be.classList.contains("table-row--empty")),He=e.map((be,Fe)=>{let De=X.children[Fe]?.getBoundingClientRect().width??0;for(const Pe of Me){const Ae=Pe.children[Fe];Ae&&(De=Math.max(De,Ae.getBoundingClientRect().width))}return Math.max(ee,Math.ceil(De))}),Se=window.getComputedStyle(X),Ie=X.clientWidth-(parseFloat(Se.paddingLeft)||0)-(parseFloat(Se.paddingRight)||0);Ne?pe.style.setProperty("--table-grid-cols",Ne):pe.style.removeProperty("--table-grid-cols");let Le=He;const Ke=He.reduce((be,Fe,De)=>be+(R.current(De)?Fe:0),0),qe=He.reduce((be,Fe,De)=>be+(R.current(De)?0:Fe),0),ze=Ie-Ke;if(Ie>0&&qe>0&&ze>0){const be=ze/qe;Le=He.map((De,Pe)=>R.current(Pe)?De:Math.max(ee,Math.round(De*be)));const Fe=Math.round(ze-Le.reduce((De,Pe,Ae)=>De+(R.current(Ae)?0:Pe),0));if(Fe!==0){let De=-1;Le.forEach((Pe,Ae)=>{!R.current(Ae)&&(De<0||Pe>Le[De])&&(De=Ae)}),De>=0&&(Le[De]=Math.max(ee,Le[De]+Fe))}}if($(Le),Y)try{window.localStorage.setItem(Y,JSON.stringify(Le))}catch{}},[e,g,Y]);s.useEffect(()=>()=>{M.current&&(window.removeEventListener("pointermove",le),window.removeEventListener("pointerup",he),document.body.style.cursor="",document.body.style.userSelect="")},[le,he]);const ce=D4(h),J=ce.filter(X=>/\b(auto|min-content|max-content)\b|fit-content\(/.test(X));J.length>0&&zn(`table-content-track:${h}`,`[ihabdevteam-core] Table \uC758 gridTemplateColumns \uC5D0 \uB0B4\uC6A9\uC73C\uB85C \uD06C\uAE30\uAC00 \uC815\uD574\uC9C0\uB294 \uD2B8\uB799(${J.join(", ")})\uC774 \uC788\uC2B5\uB2C8\uB2E4. \uBA38\uB9AC\uC640 \uBAB8\uD1B5\uC740 \uC11C\uB85C \uB2E4\uB978 \uACA9\uC790\uB77C \uADF8 \uD2B8\uB799\uC774 \uAC01\uC790 \uB2E4\uB974\uAC8C \uD480\uB824 \uC5F4\uC774 \uC5B4\uAE0B\uB0A9\uB2C8\uB2E4. px \uC774\uB098 fr \uC744 \uC4F0\uC138\uC694. (\uBC1B\uC740 \uAC12: ${h})`);const ge=X=>/^\d+(\.\d+)?px$/.test(ce[X]??"");R.current=ge,j.current=ce;const we=X=>g==="fit"&&!ge(X)?"fr":"px",de=P&&P.length===e.length&&(g==="fit"||a.length>0),Ce=L??(de?e.map((X,pe)=>X.resizable===!1&&ce[pe]?ce[pe]:`${P[pe]}${we(pe)}`).join(" "):h),xe=Ce?{"--table-grid-cols":Ce}:void 0,je=v!==void 0;return t.jsx("div",{className:`table-wrap table-wrap--${C}${O?" table-wrap--resizable":""}${N?" table-wrap--dragover":""}${y?" table-wrap--collapsed":""}`,style:xe,onDragOver:D,onDragLeave:H,onDrop:F,children:t.jsxs("div",{className:"table body-2",children:[je&&t.jsxs("div",{className:"table-header",onClick:k,role:k?"button":void 0,tabIndex:k?0:void 0,"aria-expanded":k?!y:void 0,onKeyDown:k?X=>{(X.key==="Enter"||X.key===" ")&&(X.preventDefault(),k())}:void 0,children:[k&&t.jsx(ie,{htmlType:"button",size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:y?"chevron-right":"chevron-down",ariaLabel:y?E("common.expand","\uD3BC\uCE58\uAE30"):E("common.collapse","\uC811\uAE30"),className:"table-header__chevron"}),x&&t.jsx(Ve,{icon:x,label:typeof v=="string"?v:void 0,className:"table-header__icon"}),t.jsx("span",{className:"table-header__title h5b",children:v}),w!==void 0&&t.jsx("span",{className:"table-header__count body-3b",children:w}),_&&t.jsx("span",{className:"table-header__actions",onClick:X=>X.stopPropagation(),children:_})]}),!y&&t.jsxs(t.Fragment,{children:[n&&n.length>0&&t.jsx("div",{className:"table-fields table-fields--groups",children:n.map((X,pe)=>t.jsx("div",{className:ye("table-field body-3",X.className),style:{gridColumn:`span ${X.span}`},children:X.label},pe))}),t.jsxs("div",{className:ye("table-fields-strip",O&&"table-fields-strip--resizable"),children:[t.jsx("div",{className:"table-fields",ref:K,children:e.map((X,pe)=>t.jsx(E4,{onClick:X.onClick,className:X.className,sortDir:X.sortDir,onResizeStart:O&&pe<e.length-1&&X.resizable!==!1&&(g!=="fit"||e.some((Ne,Me)=>Me>pe&&Ne.resizable!==!1))?Ne=>ve(pe,Ne):void 0,children:X.label},pe))}),O&&t.jsx(ie,{htmlType:"button",size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:"chevrons-left-right-ellipsis",ariaLabel:E("table.resetColumns","\uCE78 \uB108\uBE44 \uCD08\uAE30\uD654"),showTooltipInfo:E("table.resetColumns","\uCE78 \uB108\uBE44 \uCD08\uAE30\uD654"),className:"table-fields__reset",onClick:Z})]}),t.jsx("div",{className:"table-body",children:T?t.jsx(_r,{variant:"loading"}):a.length===0&&A?t.jsx(_r,{variant:"empty",children:A}):a.map((X,pe)=>{const Ne=p!=null&&X.id===p,Me=!!o&&(i?i(X):!0),He=I!=null&&(I instanceof Set?I.has(X.id):X.id===I);return t.jsx(_r,{className:`${Me?" table-row--clickable":""}${u?" table-row--draggable":""}${Ne?" table-row--dragging":""}`.trim(),draggable:!!u,onClick:Me?()=>o(X):void 0,onMouseEnter:l?Se=>l(X,Se):void 0,onMouseLeave:c?Se=>c(X,Se):void 0,onDragStart:u?Se=>u(X,Se):void 0,onDragEnd:d?Se=>d(X,Se):void 0,expandedContent:He&&B?B(X):void 0,children:r(X).map((Se,Ie)=>t.jsx(T4,{className:Se.className,style:Se.style,children:Se.content},Ie))},String(X.id??pe))})})]})]})})}function el(e){switch(e){case"\uBCF4\uCCAD\uAE30":return"main";case"\uC778\uACF5\uC640\uC6B0":return"sub";default:return"default"}}const M4={\uBCF4\uCCAD\uAE30:"hearingAid",\uC778\uACF5\uC640\uC6B0:"cochlearImplant"};function L4(e,n){const a=M4[e];return a?n(`device.type.${a}`,{defaultValue:e}):e}function tl(e,n){return n!=="wornAt"?String(e[n]??""):e.wornYear?`${e.wornYear}-${e.wornMonth.padStart(2,"0")}-${e.wornDay.padStart(2,"0")}`:""}function $4({rows:e,onSelect:n,onDelete:a,onWear:r,onRelease:o,onAdd:i}){const{t:l}=me.useTranslation(),c=g=>g==="\uC88C"?l("device.direction.left","\uC88C"):l("device.direction.right","\uC6B0"),{\uC815\uB82C:u,\uCE78:d}=G0(),p=s.useMemo(()=>{if(!u)return e;const{key:g,asc:f}=u;return[...e].sort((C,v)=>{const x=g==="worn"?Number(v.worn)-Number(C.worn):tl(C,g).localeCompare(tl(v,g),"ko");return f?x:-x})},[e,u]),{pageRows:h,pageSizeProps:m,paginationProps:b}=U0(p,u);return t.jsxs("div",{className:"dlp-side-table",children:[t.jsx(fr,{count:{value:e.length,unit:l("customers.device.unit","\uAC1C")},pageSize:m,pagination:b,actions:i&&t.jsx(ie,{htmlType:"button",size:40,type:"bar",variant:"main",icon:"plus",label:l("customers.device.addButton","\uAE30\uAE30 \uCD94\uAC00"),onClick:i})}),t.jsx(wr,{resizable:!0,resizeMode:"fit",resizeStorageKey:"customer-device-history-v2",fields:[{...d(l("customers.device.wearingNow","\uCC29\uC6A9"),"worn"),resizable:!1},d(l("device.direction.label","\uBC29\uD5A5"),"side"),d(l("device.deviceType","\uC885\uB958"),"device"),d(l("device.brand","\uBE0C\uB79C\uB4DC"),"brand"),d(l("device.fitType","\uCC29\uC6A9\uD615\uD0DC"),"fitType"),d(l("device.productName","\uC81C\uD488\uBA85"),"productName"),d(l("device.wornDate","\uCC29\uC6A9\uC77C"),"wornAt"),...a?[{label:"",resizable:!1}]:[]],items:h.map((g,f)=>({id:g.id??`${g.side}-${f}`,row:g})),gridTemplateColumns:`56px 110px 110px minmax(120px, 1fr) 100px minmax(120px, 1fr) 110px${a?" 80px":""}`,renderRow:({row:g})=>[{content:t.jsx("span",{className:"dlp-worn-check",onClick:f=>f.stopPropagation(),children:t.jsx(Oi,{checked:g.worn,disabled:!r||!o,ariaLabel:g.worn?l("customers.device.unwear","\uCC29\uC6A9 \uD574\uC81C"):l("customers.device.wear","\uCC29\uC6A9"),onChange:f=>{f?r?.(g):o?.(g)}})})},{content:t.jsx("span",{children:c(g.side)})},{content:g.device?t.jsx(rt,{size:"small",variant:el(g.device),fill:"soft",label:L4(g.device,l)}):t.jsx("span",{})},{content:t.jsx("span",{children:g.brand})},{content:t.jsx("span",{children:g.fitType||"-"})},{content:t.jsx("span",{children:g.productName||"-"})},{content:t.jsx("span",{className:"dlp-date",children:g.wornYear?`${g.wornYear}.${g.wornMonth}.${g.wornDay}`:"-"})},...a?[{content:t.jsx("span",{className:"dlp-row-actions",children:t.jsx(ie,{htmlType:"button",size:28,type:"bar",variant:"transparent-gray",label:l("common.delete","\uC0AD\uC81C"),onClick:f=>{f?.stopPropagation(),a(g)}})})}]:[]],onRowClick:({row:g})=>n(g),empty:l("customers.device.historyEmpty","\uB4F1\uB85D\uB41C \uAE30\uAE30 \uC774\uB825\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.")})]})}function nl(e,n){return e?{role:n?.role??"button",tabIndex:0,...n?.selected===void 0?{}:{"aria-selected":n.selected},onKeyDown:a=>{a.target===a.currentTarget&&(a.key!=="Enter"&&a.key!==" "||(a.preventDefault(),e(a)))}}:{}}function R4(e,n){return new Date(e,n+1,0).getDate()}function P4(e,n){return new Date(e,n,1).getDay()}function I4({visits:e=[],onVisitClick:n,onVisitMove:a,onDayClick:r}){const{t:o}=me.useTranslation(),i=s.useMemo(()=>o("calendar.dow",{returnObjects:!0}),[o]),[l,c]=s.useState(new Date().getFullYear()),[u,d]=s.useState(new Date().getMonth()),[p,h]=s.useState(null),m=s.useRef(null),b=new Date,g=s.useMemo(()=>{const y={};return e.forEach(k=>{y[k.date]||(y[k.date]=[]),y[k.date].push(k)}),y},[e]),f=s.useMemo(()=>{const y=R4(l,u),k=P4(l,u),_=[];for(let A=0;A<k;A++)_.push(null);for(let A=1;A<=y;A++)_.push(A);for(;_.length<35;)_.push(null);return _},[l,u]),C=s.useCallback(()=>{u===0?(c(y=>y-1),d(11)):d(y=>y-1)},[u]),v=s.useCallback(()=>{u===11?(c(y=>y+1),d(0)):d(y=>y+1)},[u]),x=y=>`${l}-${String(u+1).padStart(2,"0")}-${String(y).padStart(2,"0")}`,w=y=>b.getFullYear()===l&&b.getMonth()===u&&b.getDate()===y;return t.jsxs("div",{children:[t.jsxs("div",{className:"calendar-nav",children:[t.jsx("button",{type:"button",className:"calendar-nav__button",onClick:C,"aria-label":o("calendar.prevMonth","\uC774\uC804 \uB2EC"),children:t.jsx(Ve,{icon:"chevron-left",label:"",className:"",svgClassName:"calendar-nav__button-icon",size:18})}),t.jsx("span",{className:"calendar-nav__title h5",children:o("calendar.yearMonth",{year:l,month:u+1})}),t.jsx("button",{type:"button",className:"calendar-nav__button",onClick:v,"aria-label":o("calendar.nextMonth","\uB2E4\uC74C \uB2EC"),children:t.jsx(Ve,{icon:"chevron-right",label:"",className:"",svgClassName:"calendar-nav__button-icon",size:18})}),t.jsxs("div",{className:"calendar-nav__legend",children:[t.jsx("span",{className:"calendar-nav__legend-dot calendar-nav__legend-dot--main"}),t.jsx("span",{className:"caption-1",children:o("calendar.legend.visited","\uBC29\uBB38")}),t.jsx("span",{className:"calendar-nav__legend-dot calendar-nav__legend-dot--sub"}),t.jsx("span",{className:"caption-1",children:o("calendar.legend.scheduled","\uC608\uC57D")}),t.jsx("span",{className:"calendar-nav__legend-dot calendar-nav__legend-dot--disabled"}),t.jsx("span",{className:"caption-1",children:o("calendar.legend.noVisit","\uBBF8\uBC29\uBB38")})]})]}),t.jsxs("div",{className:"calendar-grid",children:[i.map(y=>t.jsx("div",{className:"calendar-day-header body-3",children:y},y)),f.map((y,k)=>{if(y===null)return t.jsx("div",{className:"calendar-cell empty"},`empty-${k}`);const _=y,A=x(_),T=g[A]??[],N=p===A;return t.jsxs("div",{className:`calendar-cell${w(_)?" today":""}${N?" drag-over":""}${r?" calendar-cell--clickable":""}`,role:r?"button":void 0,tabIndex:r?0:void 0,"aria-label":r?o("calendar.addOnDate",{date:A}):void 0,onClick:r?()=>r(A):void 0,onKeyDown:r?D=>{D.target===D.currentTarget&&(D.key!=="Enter"&&D.key!==" "||(D.preventDefault(),r(A)))}:void 0,onDragOver:a?D=>{D.preventDefault(),h(A)}:void 0,onDragLeave:a?D=>{D.currentTarget.contains(D.relatedTarget)||h(null)}:void 0,onDrop:a?D=>{D.preventDefault(),m.current!=null&&(a(m.current,A),m.current=null),h(null)}:void 0,children:[t.jsx("div",{className:"calendar-cell__number body-3",children:_}),t.jsx("div",{className:"calendar-cell__badges",children:T.map((D,H)=>t.jsxs("div",{draggable:!!a,className:`calendar-visit-badge${D.status==="noVisit"?" calendar-visit-badge--no-visit":D.status==="scheduled"?" calendar-visit-badge--scheduled":""}${n?" calendar-visit-badge--clickable":""}${a?" calendar-visit-badge--draggable":""}`,onDragStart:a?F=>{m.current=D.id,F.dataTransfer.effectAllowed="move"}:void 0,onDragEnd:a?()=>{m.current=null,h(null)}:void 0,onClick:n?F=>{F.stopPropagation(),n(D)}:void 0,...nl(n?()=>n(D):void 0),"aria-label":[D.time?bs(D.time,o):null,D.customer,o(D.status==="noVisit"?"calendar.legend.noVisit":D.status==="scheduled"?"calendar.legend.scheduled":"calendar.legend.visited")].filter(Boolean).join(" "),children:[D.time&&t.jsx("span",{className:"calendar-visit-badge__time body-3",children:bs(D.time,o)}),t.jsx("span",{className:"calendar-visit-badge__name body-3",children:D.customer}),D.status==="noVisit"&&t.jsx("span",{className:"calendar-visit-badge__no-visit caption-1",children:o("calendar.legend.noVisit","\uBBF8\uBC29\uBB38")})]},D.id??H))})]},_)})]})]})}const F4={page:"h3",pagePopup:"h4",popup:"h5"};function In({type:e="page",title:n,headingLevel:a,icon:r,action:o,disc:i,children:l,className:c,style:u}){const d=F4[e],p=n||i,h=a?`h${a}`:"div";return t.jsxs("div",{className:ye("section",`section--${e}`,c),style:u,children:[p&&t.jsxs("div",{className:"section__header",children:[t.jsxs("div",{className:"section__title-row",children:[r&&t.jsx(Ve,{icon:r,label:typeof n=="string"?n:void 0,className:"section__icon"}),t.jsxs("div",{className:"section__title-group",children:[n&&t.jsx(h,{className:`section__title ${d}`,children:n}),i&&t.jsx("div",{className:"section__disc body-3",children:i})]})]}),o&&t.jsx("div",{className:"section__action",children:o})]}),l]})}function al({icon:e,label:n,tooltip:a,wrapperStyle:r,color:o,bgColor:i,useHover:l=!0,iconSize:c="medium"}){const u=c==="small",d=ye("category-icon",u?"category-icon--small":""),p=u?16:20,h=s.useRef(null),[m,b]=s.useState(!1),g=s.useMemo(()=>{const _=r&&typeof r=="object"?{...r}:{};return!o&&!i?_:{..._,...o?{color:o,"--t-item-fg":o}:{},...i?{"--t-item-bg":i}:{}}},[r,o,i]),f=a||n,[C,v]=s.useState(null);s.useLayoutEffect(()=>{m&&v(h.current?.getBoundingClientRect()??null)},[m]),s.useEffect(()=>{if(!l&&m)try{b(!1)}catch{}},[l,m]),s.useEffect(()=>{if(!m)return;const _=A=>{const T=h.current;if(!T)return;const N=A.target;N&&!T.contains(N)&&b(!1)};return document.addEventListener("pointerdown",_,!0),()=>document.removeEventListener("pointerdown",_,!0)},[m]);const x=s.useCallback(()=>{l&&b(!0)},[l]),w=s.useCallback(()=>{l&&b(!1)},[l]),y=s.useCallback(()=>b(!1),[]),k=s.useCallback(_=>{if(_.key==="Escape"){b(!1);return}(_.key==="Enter"||_.key===" ")&&(_.preventDefault(),b(A=>!A))},[]);return t.jsxs("span",{ref:h,className:"category-icon__wrap",onPointerEnter:x,onPointerLeave:w,onFocus:x,onBlur:w,onKeyDown:k,role:"button",tabIndex:0,"aria-label":typeof f=="string"?f:void 0,"aria-haspopup":!!f,"aria-expanded":m,"data-tooltip-ignore":!0,children:[t.jsx(Ve,{icon:e,label:n,className:d,imgClassName:"category-icon__image",maskClassName:"category-icon__mask",svgClassName:"category-icon__svg",wrapperStyle:g,size:p}),m&&f&&t.jsx(hn,{anchorRect:C,text:typeof f=="string"?f:void 0,offset:8,onClose:y,className:"category-icon__tooltip",ariaLabel:typeof f=="string"?f:void 0})]})}function O4(e,n){if(!e)return{previewCodes:[],previewBucket:null};const a=e,r=l=>l.map(c=>c?.contextCode||c?.context_code).filter(Boolean).map(String);if(n==="LISTEN_IN_NOISE"){const l=a.sentences||a.items||[],c=Array.isArray(l)&&l.length>0?r(l):[];return c.length===0&&(a.contextCode||a.context_code)&&c.push(String(a.contextCode||a.context_code)),{previewCodes:c,previewBucket:"LIN_D"}}if(n==="SHORT_STORY"){const l=a.items||a.sentences||[],c=Array.isArray(l)&&l.length>0?r(l):[];return c.length===0&&(a.contextCode||a.context_code)&&c.push(String(a.contextCode||a.context_code)),{previewCodes:c,previewBucket:"SHORT_S"}}if(n==="LONG_STORY"){const l=a.items||a.sentences||[],c=Array.isArray(l)&&l.length>0?r(l):[];return c.length===0&&(a.contextCode||a.context_code)&&c.push(String(a.contextCode||a.context_code)),{previewCodes:c,previewBucket:"LONG"}}if(n==="ORDERING_SENTENCE"){const l=a.sentences||a.items||[],c=Array.isArray(l)&&l.length>0?r(l):[];return c.length===0&&(a.contextCode||a.context_code)&&c.push(String(a.contextCode||a.context_code)),{previewCodes:c,previewBucket:"LIN_D"}}const o=a.sentences||a.items||[],i=r(Array.isArray(o)?o:[]);return i.length===0&&(a.contextCode||a.context_code)&&i.push(String(a.contextCode||a.context_code)),{previewCodes:i,previewBucket:null}}function H4(e,n){const[a,r]=s.useState(!1),[o,i]=s.useState(-1),[l,c]=s.useState({key:"",urls:[]}),u=s.useRef(null),d=s.useRef(!1),p=s.useRef(null),[h,m]=s.useState(!1),b=s.useRef([]),{previewCodes:g,previewBucket:f}=O4(e,n),C=`${g.join(",")}|${f??""}`,v=s.useMemo(()=>l.key===C?l.urls:[],[l,C]);s.useEffect(()=>{if(!g.length)return;let w=!1;return(async()=>{const y=[],k=[];for(const _ of g)try{const A=Qo(_,f);if(!A){y.push("");continue}let T=null;try{T=await es(A)}catch{}if(!T)try{const N=await ts(A);N&&(T=URL.createObjectURL(N),k.push(T))}catch{}y.push(T??"")}catch{y.push("")}w?k.forEach(_=>{try{URL.revokeObjectURL(_)}catch{}}):(b.current.forEach(_=>{try{URL.revokeObjectURL(_)}catch{}}),b.current=k,c({key:C,urls:y}))})(),()=>{w=!0}},[g.join(","),f]),s.useEffect(()=>()=>{b.current.forEach(w=>{try{URL.revokeObjectURL(w)}catch{}}),b.current=[]},[]);const x=s.useCallback(async w=>{if(w.stopPropagation(),w.preventDefault(),d.current){d.current=!1;try{u.current?.pause()}catch{}r(!1),i(-1);return}if(v.filter(Boolean).length){d.current=!0,r(!0);for(let y=0;y<v.length&&d.current;y++){const k=v[y];if(k){i(y);try{await new Promise((_,A)=>{const T=new Audio(k);u.current=T,T.onended=()=>_(),T.onerror=()=>A(),T.play().catch(A)})}catch{break}}}d.current=!1,r(!1),i(-1)}},[v]);return s.useEffect(()=>()=>{d.current=!1;try{u.current?.pause()}catch{}u.current=null},[]),{playing:a,playingIndex:o,previewUrls:v,previewHover:h,setPreviewHover:m,previewBtnRef:p,handlePreview:x}}const V4=e=>{if(!e)return[];const n=typeof e.context=="string"&&e.context.trim()||typeof e.sentence=="string"&&e.sentence.trim()||typeof e.text=="string"&&e.text.trim()||"";if(n)return[String(n)];const a=e.sentences||e.items||e.questions||[];return Array.isArray(a)&&a.length>0?a.map(r=>{if(typeof r=="string")return r;if(r&&typeof r=="object"){const o=r;return o.sentence||o.text||o.context||o.question||o.title||""}return""}).filter(r=>typeof r=="string"&&r.trim().length>0).map(r=>r.trim()):[]};function kr(e){const{index:n,type:a,trainingData:r,ariaLabel:o,depth:i,renderPopup:l,completed:c,completedIds:u,selectedIds:d,tooltipText:p,useDescriptionTooltip:h=!1,onRemove:m,hideCheckBadge:b=!1,showTypeLabel:g=!1,onComplete:f,onSelect:C,onMore:v,countLabelOverride:x,size:w="square"}=e||{},{t:y}=me.useTranslation(),[k,_]=s.useState(!1),A=s.useRef(null),[T,N]=s.useState(!1);s.useEffect(()=>{A.current?.matches(":hover")&&N(!0)},[]);const{playing:D,playingIndex:H,previewUrls:F,previewHover:B,setPreviewHover:I,previewBtnRef:E,handlePreview:te}=H4(r,a?.key),L=s.useCallback(()=>{C?C():_(!0)},[C]),O=s.useCallback(()=>_(!1),[]),ee=s.useCallback(()=>N(!0),[]),Y=s.useCallback(()=>N(!1),[]),K=s.useCallback(()=>I(!0),[I]),R=s.useCallback(()=>I(!1),[I]),[j,M]=s.useState(null);s.useLayoutEffect(()=>{B&&M(E.current?.getBoundingClientRect()??null)},[B,E]);const[V,P]=s.useState(null);s.useLayoutEffect(()=>{T&&!k&&h&&P(A.current?.getBoundingClientRect()??null)},[T,k,h]);const $=s.useCallback(be=>{be.target===be.currentTarget&&(be.key==="Enter"||be.key===" ")&&(be.preventDefault(),L())},[L]),W=r||null,se=s.useMemo(()=>{if(!h)return null;const be=p?(Array.isArray(p)?p:[p]).filter(Boolean):null,Fe=be&&be.length>0?be:V4(W);return Fe&&Fe.length>0?Fe:null},[h,p,W]),ae=s.useCallback(be=>{be.stopPropagation(),m?.()},[m]),le=s.useCallback(be=>be.stopPropagation(),[]),he=s.useCallback(be=>{typeof f=="function"&&f(be)},[f]),ve=c||(u&&r?.id!=null?u.has(String(r.id)):!1),Z=!ve&&(d!=null&&r?.id!=null?d.has(String(r.id)):!1);ni("speechear.popup.close",O);const ce=ys(),J=`${a?.label||""} ${n+1}`,ge=W?.title||W?.name||J;let we=a?.icon,de,Ce="",xe="";try{const be=W?.category_0||W?.category_main_code||W?.category_main,Fe=W?.category_1||W?.category_sub_code||W?.category_sub,De=ce.find(Pe=>Pe.key===be);De?.icon&&(we=De.icon),!de&&De?.color&&(de={"--t-item-fg":De.color}),!de&&W?.iconColor&&(de={"--t-item-fg":W.iconColor}),Ce=De?y(`topic.${De.key}`,{defaultValue:De.label||""}):"";try{const Pe=De?.subs?.find(Ae=>Ae.key===Fe);xe=Pe?y(`topic.sub.${Pe.key}`,{defaultValue:Pe.label||""}):""}catch{}}catch{}const je=xe?`${Ce} / ${xe}`:Ce||a?.label||ge,X=be=>y("training.countQuestions",{n:be}),pe=be=>y("training.countSentences",{n:be});let Ne="";try{if(W)if(a?.key==="LISTEN_IN_NOISE"){let be=0;Array.isArray(W.items)&&W.items.length>0?be=W.items.length:Array.isArray(W.sentences)&&W.sentences.length>0?be=W.sentences.length:W.sentences&&(be=1),Ne=pe(be)}else if(a?.key==="SHORT_STORY"){let be=1;Array.isArray(r?.items)?be=r.items.length:Array.isArray(r?.raw&&r.raw?.items)?be=r.raw.items.length:Array.isArray(W?.questions)?be=W.questions.length:Array.isArray(W?.sentences)&&(be=W.sentences.length),Ne=X(be)}else if(a?.key==="LONG_STORY"){let be=1;if(Array.isArray(W.items)&&W.items.length>0){const Fe=W.items.reduce((De,Pe)=>{const Ae=Pe.questionItems;return Array.isArray(Ae)?De+Ae.length:Array.isArray(Pe.questions)?De+Pe.questions.length:De},0);be=Fe>0?Fe:W.items.length}else Array.isArray(W.questions)&&W.questions.length>0?be=W.questions.length:Array.isArray(W.sentences)&&W.sentences.length>0&&(be=W.sentences.length);Ne=X(be)}else if(a?.key==="ORDERING_SENTENCE"){let be=1;Array.isArray(W.items)&&W.items.length>0?be=W.items.length:Array.isArray(W.sentences)&&W.sentences.length>0&&(be=W.sentences.length),Ne=pe(be)}else Array.isArray(W.items)&&(Ne=W.items.length>0?X(W.items.length):"")}catch{}const Me=w==="row",He=w==="list"||Me,Se=w==="compact",Ie=w==="small",Le=Ie&&a?.key?_0().find(be=>be.key===a.key):void 0,Ke=Le?vs[Le.key]:void 0,qe=Le?Ke?y(`trainingType.${Ke}.title`,{defaultValue:Le.label}):Le.label??"":"",ze=!!g&&!!a?.label&&a.label!==String(ge)||Ie&&!!qe&&qe!==String(ge);return t.jsxs(t.Fragment,{children:[t.jsxs("div",{ref:A,className:`training-block-button${He?" training-block-button--list":""}${Me?" training-block-button--row":""}${Se?" training-block-button--compact":""}${Ie?" training-block-button--small":""}${ve?" training-block-button--completed":""}${Z?" training-block-button--selected":""}${ze&&!Ie?" training-block-button--withType":""}${Ie&&!ze?" training-block-button--no-type-label":""}`,onClick:L,onPointerEnter:ee,onPointerLeave:Y,role:"button",tabIndex:0,onKeyDown:$,"aria-label":typeof o=="string"?o:typeof ge=="string"?ge:void 0,children:[t.jsxs("div",{className:"training-block-button__left",children:[g&&a?.label&&a.label!==String(ge)&&t.jsx("span",{className:"training-block-button__type-label caption-1",children:a.label}),Ie&&qe&&qe!==String(ge)&&t.jsx("span",{className:"training-block-button__type-label caption-2",children:qe}),t.jsx(al,{icon:we,label:ge,tooltip:je,wrapperStyle:de,iconSize:Ie||Se?"small":"medium"}),!b&&(ve||Z)&&!(m&&T)&&t.jsx(rt,{type:"dot",icon:"check",position:"top-left",size:"medium","aria-label":ve?y("training.completed","\uD6C8\uB828 \uC644\uB8CC"):y("training.selected","\uC120\uD0DD\uB428")}),m&&T&&t.jsx(rt,{type:"dot",icon:"remove",position:"top-left",size:"medium","aria-label":y("common.remove","\uC81C\uAC70"),onClick:ae}),t.jsx("div",{className:`training-block-button__title ${Se?"body-3":Ie?"body-3b":"h3"}`,children:String(ge)}),t.jsxs("div",{className:"training-block-button__description",children:[(()=>{const be=x!==void 0?x:Ne;return be?t.jsx("div",{className:`training-block-button__count ${Ie?"caption-2":"caption-1"}`,children:be}):null})(),t.jsx("div",{className:"training-block-button__chevron",children:t.jsx(Ve,{icon:"chevron-right",label:y("training.next","\uB2E4\uC74C"),className:"training-block-button__chevron-icon",imgClassName:"training-block-button__chevron-icon-image",maskClassName:"training-block-button__chevron-icon-mask",svgClassName:"training-block-button__chevron-icon-svg",size:Ie?12:20})})]}),(He&&!Me||Ie)&&F.length>0&&t.jsx("div",{ref:E,className:"training-block-button__preview","data-tooltip-ignore":!0,onClick:le,onPointerEnter:K,onPointerLeave:R,children:t.jsx(ie,{htmlType:"button",size:Ie?28:32,type:"dot",icon:D?"pause":"play",variant:Ie?"transparent-lightGray":"default",useBorder:!1,selected:D,ariaLabel:D?y("training.stop","\uC815\uC9C0"):y("training.preview","\uBBF8\uB9AC \uB4E3\uAE30"),onClick:te})})]}),v&&t.jsx("div",{className:"training-block-button__more","data-tooltip-ignore":!0,onClick:be=>{be.stopPropagation(),v(be)},children:t.jsx(ie,{htmlType:"button",size:40,type:"dot",icon:"more-horizontal",variant:"transparent-lightGray",useBorder:!1,ariaLabel:y("common.more","\uB354\uBCF4\uAE30")})})]}),B&&t.jsx(hn,{anchorRect:j,text:D?y("training.stop","\uC815\uC9C0"):y("training.preview","\uBBF8\uB9AC \uB4E3\uAE30"),offset:8,onClose:R}),T&&!k&&h&&(se?t.jsx(Nn,{anchorRect:V,items:se,activeIndex:H,onClose:Y}):W?.subTitle?t.jsx(hn,{anchorRect:V,text:W.subTitle,offset:8,onClose:Y}):null),k&&l&&l({trainingData:W,typeKey:a?.key??"",onClose:O,onComplete:he,popupTitle:String(ge),popupSubTitle:a?.subTitle,depth:i!=null?String(i):void 0,popupIcon:we,popupIconTooltip:String(je),popupWrapperStyle:de})]})}const Aa=20;function z4(e){const{t:n}=me.useTranslation(),{type:a,trainingDatas:r,depth:o,renderPopup:i,completedIds:l,selectedIds:c,onItemComplete:u,size:d,useDescriptionTooltip:p,onRemove:h,onMore:m,sectionType:b="page"}=e||{},[,g]=s.useState(0),f=typeof r<"u"?Array.isArray(r)?r:[]:[],C=f.length,[v,x]=s.useState(Math.min(C,Aa)),w=s.useMemo(()=>Array.isArray(o)?[...o,a?.label].filter(Boolean).join(" \xB7 "):[o||"",a?.label].filter(Boolean).join(" \xB7 "),[o,a?.label]);s.useEffect(()=>{x(Math.min(C,Aa))},[C]),ni("speechear.data.updated",()=>g(k=>k+1));function y(){x(k=>Math.min(C,k+Aa))}return t.jsxs(In,{type:b,title:a?.label,icon:a?.icon,disc:a?.desc,className:"training-block",children:[t.jsx("div",{className:"training-list",children:(f||[]).slice(0,v).map((k,_)=>{const A=k;return t.jsx(kr,{index:_,type:a,trainingData:A,depth:w,renderPopup:i,completedIds:l,selectedIds:c,size:d,useDescriptionTooltip:p,onRemove:typeof h=="function"&&c!=null&&A?.id!=null&&c.has(String(A.id))?()=>h(A):void 0,onComplete:typeof u=="function"&&A?.id!=null?()=>u(String(A.id)):void 0,onMore:typeof m=="function"?T=>m(A,T):void 0},A?.id!=null?`${a?.key||"t"}-${String(A.id)}`:`${a?.key||"t"}-${_}`)})}),C>Aa&&v<C&&t.jsx("div",{className:"training-block__more",children:t.jsx(ie,{htmlType:"button",size:48,type:"bar",icon:"plus",onClick:y,ariaLabel:n("common.loadMore","\uB354\uBCF4\uAE30"),label:n("common.loadMore","\uB354\uBCF4\uAE30"),variant:"main"})})]})}function Ar(e){const n=s.useRef(null),[a,r]=s.useState(!!e),[o,i]=s.useState(!1);s.useEffect(()=>{i(!1);const u=n.current;r(!!e&&!(u?.complete&&u.naturalWidth>0))},[e]);const l=s.useCallback(()=>r(!1),[]),c=s.useCallback(()=>{r(!1),i(!0)},[]);return{imgRef:n,loading:a,failed:o,hasImage:!!e&&!o,onLoad:l,onError:c}}let mn=null;function W4(e){if(mn&&mn!==e)try{mn()}catch{}return mn=e,()=>{mn===e&&(mn=null)}}function q4(e){if(mn===e){mn=null;try{e()}catch{}}}var U4='data:image/svg+xml,<svg width="100" height="100" viewBox="0 0 100 100" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_2256_7437)">%0A<g opacity="0.1">%0A<path d="M35.7143 25C29.7964 25 25 29.7964 25 35.7143V64.2857C25 67.3786 25.7893 70.2893 27.1714 72.8286C29.7071 74.2143 32.6179 75 35.7143 75H64.2857C70.2036 75 75 70.2036 75 64.2857V35.7143C75 32.6214 74.2107 29.7107 72.8286 27.1714C70.2929 25.7857 67.3821 25 64.2857 25H35.7143Z" fill="%23111111"/>%0A</g>%0A<path d="M57.1426 17.8571H35.7141C25.8533 17.8571 17.8569 25.8536 17.8569 35.7143V44.0643L10.9926 51.6179C10.5819 52.0679 10.6283 52.775 11.0998 53.1643C13.1783 54.8929 15.4641 56.2214 17.8569 57.1679C17.8676 63.925 21.6283 69.8 27.1712 72.825C25.7855 70.2893 24.9998 67.3786 24.9998 64.2821V35.7107C24.9998 29.7929 29.7962 24.9964 35.7141 24.9964H64.2855C67.3783 24.9964 70.2891 25.7857 72.8283 27.1679C69.7998 21.6179 63.9105 17.8536 57.1426 17.8536V17.8571Z" fill="%23111111"/>%0A<path d="M72.8285 27.1714C74.2142 29.7072 75 32.6179 75 35.7143V64.2857C75 70.2036 70.2035 75 64.2857 75H35.7142C32.6214 75 29.7107 74.2107 27.1714 72.8286C30.2 78.3786 36.0892 82.1429 42.8571 82.1429H58.9678C59.9321 82.1429 60.7142 82.925 60.7142 83.8893C60.7142 84.9107 61.5892 85.7215 62.6071 85.6322C73.5535 84.675 82.1428 75.4822 82.1428 64.2857V42.8572C82.1428 36.0893 78.3785 30.2 72.8285 27.1714Z" fill="%23111111"/>%0A<path d="M36.0714 40.7143C36.0714 39.5308 35.112 38.5714 33.9285 38.5714C32.745 38.5714 31.7856 39.5308 31.7856 40.7143V45C31.7856 46.1834 32.745 47.1428 33.9285 47.1428C35.112 47.1428 36.0714 46.1834 36.0714 45V40.7143Z" fill="%23111111"/>%0A<path d="M46.7859 57.1429C45.743 57.1429 44.6966 56.875 43.7502 56.3286C42.8966 55.8357 42.6037 54.7429 43.1002 53.8893C43.593 53.0357 44.6859 52.7429 45.5395 53.2393C46.518 53.8036 47.7573 53.6429 48.5537 52.8464C48.9395 52.4607 49.1823 51.9714 49.2573 51.4357C49.5787 49.1607 50.5823 47 52.1645 45.1857C53.1073 44.1071 53.6037 42.7214 53.568 41.2857C53.493 38.3536 51.1466 35.9107 48.2216 35.7286C47.2323 35.6679 46.2859 35.8464 45.4073 36.2679C44.518 36.6929 43.4502 36.3107 43.0287 35.4214C42.6037 34.5321 42.9859 33.4643 43.8752 33.0429C45.2895 32.3714 46.868 32.0679 48.4466 32.1643C53.2037 32.4607 57.0216 36.4286 57.1395 41.1964C57.1966 43.5286 56.3859 45.7786 54.8573 47.5357C53.7323 48.825 53.018 50.3464 52.7966 51.9357C52.6109 53.2464 52.018 54.4357 51.0823 55.375C49.9145 56.5429 48.3609 57.15 46.7895 57.15L46.7859 57.1429Z" fill="%23111111"/>%0A</g>%0A<defs>%0A<clipPath id="clip0_2256_7437">%0A<rect width="100" height="100" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A';const G4=U4,Nr=s.forwardRef(function({item:e,disabled:n=!1,onPlayDone:a,selectable:r=!1,selected:o=!1,onSelect:i,flipDelay:l=0,hideLabel:c=!1,hideAudio:u=!1,orderRank:d=null},p){const{t:h}=me.useTranslation(),m=e.word||e.title||"",b=n||!m,g=e.audio??e.sound??e.audioKey,f=e.subLabel||e.pronunciation||"",C=e.colloquialLabel||"",[v,x]=s.useState({label:m,subLabel:f,colloquialLabel:C,homonum:e.homonum});m&&v.label!==m&&x({label:m,subLabel:f,colloquialLabel:C,homonum:e.homonum});const w=s.useRef(null),y=Ut("(max-width: 767px)"),[k,_]=s.useState(!1),A=`${typeof g=="string"?g:g?.src??""}\0${m}`,[T,N]=s.useState({for:"",url:""}),D=T.for===A?T.url:"",H=Ln()?.(v.label,v.homonum)??e.image??"",{imgRef:F,loading:B,hasImage:I,onLoad:E,onError:te}=Ar(H);s.useEffect(()=>{let V=!1;return(async()=>{if(g){if(typeof g=="string"){if(g.startsWith("http")||g.includes("/")){N({for:A,url:g});return}}else if(typeof g=="object"&&!Array.isArray(g)){const $=g.src;if($){N({for:A,url:$});return}}}const P=Ka();if(P&&m)try{const $=await Promise.resolve(P(m));!V&&$&&N({for:A,url:$})}catch{}})(),()=>{V=!0}},[g,m,A]);const L=s.useRef(!0),O=s.useRef(null);s.useEffect(()=>(L.current=!0,()=>{L.current=!1,O.current&&q4(O.current),O.current=null;try{w.current?.pause()}catch{}w.current=null}),[]);const ee=s.useCallback(()=>new Promise(V=>{if(typeof window<"u"&&window.speechSynthesis&&m){_(!0),window.speechSynthesis.cancel();const P=new SpeechSynthesisUtterance(m);P.lang="ko-KR",P.onend=()=>{_(!1);try{a?.()}catch{}V()},P.onerror=()=>{_(!1),V()},window.speechSynthesis.speak(P)}else V()}),[m,a]),Y=s.useCallback(V=>new Promise(P=>{let $=!1;const W=()=>{$||($=!0,_(!1),P(!1))};try{const se=new Audio(V);w.current=se,se.onended=()=>{if(!$){$=!0,_(!1);try{a?.()}catch{}P(!0)}},se.onerror=W,se.play().catch(W)}catch{W()}}),[a]),K=s.useCallback(async()=>{if(n||!L.current)return;const V=()=>{try{w.current?.pause()}catch{}try{window.speechSynthesis?.cancel()}catch{}_(!1)},P=W4(V);O.current=V;try{window.speechSynthesis?.cancel()}catch{}try{if(D&&(_(!0),await Y(D)))return;const $=Fm();if($&&m)try{const W=await Promise.resolve($(m));if(!L.current||W&&(_(!0),await Y(W)))return}catch{}if(!L.current)return;await ee()}finally{P(),O.current===V&&(O.current=null)}},[n,D,m,Y,ee]);s.useImperativeHandle(p,()=>({play:()=>K()}),[K]);const R=V=>V.stopPropagation(),j=s.useCallback(V=>{if(V.stopPropagation(),!n){if(k){try{w.current?.pause()}catch{}try{window.speechSynthesis?.cancel()}catch{}_(!1);return}K()}},[n,k,K]),M=ye("training-word-card",n?"training-word-card--disabled":"",b?"training-word-card--flipped":"",r?"training-word-card--selectable":"",o?"training-word-card--selected":"");return t.jsx("div",{className:M,onClick:r&&!n?i:void 0,role:r?"button":void 0,"aria-pressed":r?o:void 0,tabIndex:r&&!n?0:void 0,"aria-disabled":r&&n?!0:void 0,onKeyDown:r&&!n?V=>{V.target===V.currentTarget&&(V.key==="Enter"||V.key===" "||V.key==="Spacebar")&&(V.preventDefault(),i?.())}:void 0,children:t.jsxs("div",{className:"training-word-card__flipper",style:{transitionDelay:b?"0ms":`${l}ms`},children:[t.jsxs("div",{className:"training-word-card__front",children:[o&&t.jsx("div",{className:"training-word-card__selected-badge",onClick:R,children:t.jsx(rt,{type:"dot",size:40,position:"inline",animate:!0,icon:d!=null?void 0:"check",number:d??void 0,"aria-label":d!=null?h("training.nthSelected",{n:d}):h("training.selected","\uC120\uD0DD\uB428")})}),t.jsx("div",{className:"training-word-card__image-wrap",children:I?t.jsxs(t.Fragment,{children:[B&&t.jsx("div",{className:"training-word-card__spinner"}),t.jsx("img",{ref:F,className:"training-word-card__image",src:H,alt:v.label||h("common.image","\uC774\uBBF8\uC9C0"),style:{opacity:B?0:1},onLoad:E,onError:te})]}):t.jsx("div",{className:"training-word-card__placeholder"})}),!c&&t.jsxs("div",{className:"training-word-card__body",children:[t.jsx("div",{className:"training-word-card__word",children:v.label}),v.subLabel&&t.jsxs("div",{className:"training-word-card__pronunciation",children:["[",v.subLabel,"]"]}),v.colloquialLabel&&t.jsxs("div",{className:"training-word-card__colloquial caption-1",children:["[",v.colloquialLabel,"]"]})]}),!u&&t.jsx("div",{className:"training-word-card__bottom",onClick:r?R:void 0,children:t.jsx(ie,{htmlType:"button",size:y?40:48,type:y?"dot":"bar",icon:k?"pause":"play",label:y?void 0:h("training.playSound","\uC18C\uB9AC \uB4E3\uAE30"),selected:k,onClick:j,disabled:n,ariaLabel:h("training.playSound","\uC18C\uB9AC \uB4E3\uAE30")})})]}),t.jsx("div",{className:"training-word-card__back","aria-hidden":"true",children:t.jsx("img",{src:G4,className:"training-word-card__disabled-symbol",alt:"",draggable:!1})})]})})}),K4=260;function fn(e){const{t:n}=me.useTranslation(),{title:a,subtitle:r,headerActions:o,children:i,buttons:l,footer:c,footerClassName:u="",onClose:d,closeDisabled:p=!1,beforeClose:h,closeOnBackdrop:m=!0,className:b="",ariaLabel:g,useTitle:f=!0,inline:C=!1,size:v,layer:x="modal",height:w,fillBody:y=!1,resetScrollKey:k}=e||{},[_,A]=s.useState(!1),T=s.useRef(!1),N=s.useRef(null),D=s.useId(),H=s.useRef(null);s.useEffect(()=>{},[C,a,g,b]),s.useEffect(()=>{k!==void 0&&H.current&&(H.current.scrollTop=0)},[k]);const[F,B]=s.useState(!1);s.useEffect(()=>{const j=H.current;if(!j)return;const M=()=>B(j.scrollHeight>j.clientHeight+1);if(M(),typeof ResizeObserver>"u")return;const V=new ResizeObserver(M);V.observe(j);const P=j.firstElementChild;return P&&V.observe(P),()=>V.disconnect()},[i,k]),s.useEffect(()=>{if(!C)return $i()},[C]),s.useEffect(()=>{if(C)return;const j=document.activeElement,M=N.current;return M&&!M.contains(document.activeElement)&&(M.querySelector(kn)??M).focus(),()=>{const V=document.activeElement;(!V||V===document.body||M&&M.contains(V))&&j?.focus?.()}},[C]),rr(N,!C);const I=s.useCallback(j=>{T.current||(T.current=!0,A(!0),setTimeout(()=>{try{j&&j()}catch{}},K4))},[]),E=s.useCallback(()=>{p||h&&h()===!1||I(d)},[I,d,p,h]),te=s.useRef(E);s.useEffect(()=>{te.current=E});const L=!C&&!!d;s.useEffect(()=>{if(L)return An(()=>te.current())},[L]);const O=L&&m,ee=s.useRef(!1),Y=j=>{ee.current=j.target===j.currentTarget},K=j=>{const M=ee.current;ee.current=!1,M&&j.target===j.currentTarget&&E()},R=t.jsx("div",{className:`popup ${C?"popup--inline":""} ${x==="belowPagePopup"?"popup--below-page-popup":""} ${_?"popup--closing":""} ${b}`,onPointerDown:O?Y:void 0,onClick:O?K:void 0,onMouseDown:C?void 0:j=>{j.target===j.currentTarget&&j.preventDefault()},children:t.jsxs("div",{ref:N,className:`popup-panel${v?` popup-panel--${v}`:""}${w!=null?" popup-panel--has-height":""}${y?" popup-panel--fill-body":""}`,style:w!=null?{"--popup-height":typeof w=="number"?`${w}px`:w}:void 0,tabIndex:-1,role:C?void 0:"dialog","aria-modal":C?void 0:!0,"aria-labelledby":!C&&a?D:void 0,"aria-label":!C&&!a&&g?g:void 0,children:[!f&&(o||d)?t.jsxs("div",{className:"popup-close-float",children:[o,d&&t.jsx(ie,{htmlType:"button",size:40,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,onClick:E,disabled:p,ariaLabel:n("common.close","\uB2EB\uAE30")})]}):a||o||d?t.jsxs("div",{className:`popup-header${r?" popup-header--with-subtitle":""}`,children:[t.jsxs("div",{className:"popup-header-main",children:[t.jsx("span",{id:D,className:"popup-title popup-title--left h2",children:a}),r&&t.jsx("span",{className:"popup-subtitle body-3",children:r})]}),t.jsxs("div",{className:"popup-header-actions",children:[o,d&&t.jsx(ie,{htmlType:"button",size:40,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,onClick:E,disabled:p,ariaLabel:n("common.close","\uB2EB\uAE30")})]})]}):null,t.jsx("div",{className:"popup-content",ref:H,tabIndex:F?0:void 0,children:t.jsx("div",{className:"popup-content__inner",children:typeof i=="function"?i({animateThen:I,closeWithAnimation:E}):i})}),l?.length?t.jsx("div",{className:"popup-footer popup-footer--buttons",children:l.map((j,M)=>t.jsx(ie,{htmlType:"button",size:48,variant:j.variant??"default",label:j.label,disabled:j.disabled,onClick:()=>j.onClick?.({animateThen:I,closeWithAnimation:E})},M))}):c?t.jsx("div",{className:`popup-footer${u?` ${u}`:""}`,children:typeof c=="function"?c({animateThen:I,closeWithAnimation:E}):c}):null]})});return C||typeof document>"u"?R:Ft.createPortal(R,document.body)}function Na(e){return String(e)}const rl=["o","triangle","x"];function ol(e,n){return e===n?null:n}const sl={o:"circle",triangle:"triangle",x:"x"},il={o:"main",triangle:"warn",x:"danger"};function Y4(e){let n=0,a=0,r=0;for(const i of Object.values(e))i==="o"?n++:i==="triangle"?a++:i==="x"&&r++;const o=n+a+r;return{marked:o,o:n,triangle:a,x:r,rate:o===0?null:(n+a*.5)/o}}function Br(e){const n={};for(const[a,r]of Object.entries(e))(r==="o"||r==="triangle"||r==="x")&&(n[a]=r);return n}function ll(e){const n=[];let a=0;for(const r of e)n.push(a),a+=r;return n}function Z4(e,n){return!n&&e>0}const Fn={landscape:{width:1123,height:794,printSize:"A4 landscape",printW:"297mm",printH:"210mm"},portrait:{width:794,height:1123,printSize:"A4 portrait",printW:"210mm",printH:"297mm"}};function X4(e="landscape"){const{printSize:n,printW:a,printH:r}=Fn[e],o=document.createElement("style");o.textContent=`@page { size: ${n}; margin: 0; } .word-table { width: ${a} !important; height: ${r} !important; }`,document.head.appendChild(o);const i=()=>{document.head.removeChild(o),window.removeEventListener("afterprint",i)};window.addEventListener("afterprint",i),window.print()}function cl(e,n){if(e.length===0)return[[]];const a=Math.max(1,Math.floor(n)),r=[];for(let o=0;o<e.length;o+=a)r.push(e.slice(o,o+a));return r}const J4={landscape:{1:{cols:1,rows:1},2:{cols:2,rows:1},3:{cols:3,rows:1},4:{cols:2,rows:2},5:{cols:3,rows:2},6:{cols:3,rows:2},7:{cols:4,rows:2},8:{cols:4,rows:2},9:{cols:5,rows:2},10:{cols:5,rows:2},11:{cols:4,rows:3},12:{cols:4,rows:3}},portrait:{1:{cols:1,rows:1},2:{cols:1,rows:2},3:{cols:1,rows:3},4:{cols:1,rows:4},5:{cols:1,rows:5},6:{cols:2,rows:3},7:{cols:2,rows:4},8:{cols:2,rows:4},9:{cols:2,rows:5},10:{cols:2,rows:5},11:{cols:3,rows:4},12:{cols:3,rows:4}}};function Q4(e,n){const a=J4[e][n];if(a)return a;const r=Math.max(1,Math.ceil(n)),o=Math.max(1,Math.ceil(Math.sqrt(r*.707)));let i,l;return e==="landscape"?(l=o,i=Math.ceil(r/l)):(i=o,l=Math.ceil(r/i)),(e==="landscape"?i<l:l<i)&&([i,l]=[l,i]),{cols:i,rows:l}}const eb={\uD45C\uC2DC:"word-table-block__content--cut-show",\uC810\uC120:"",\uCF54\uB108:"word-table-block__content--cut-corner",\uBBF8\uD45C\uC2DC:""},ul={\uBA85:"\uBA85\uC0AC",\uB3D9:"\uB3D9\uC0AC",\uD615:"\uD615\uC6A9\uC0AC",\uBD80:"\uBD80\uC0AC",\uC218:"\uC218\uC0AC",\uAD00:"\uAD00\uD615\uC0AC",\uAC10:"\uAC10\uD0C4\uC0AC",\uC870:"\uC870\uC0AC",\uC811:"\uC811\uC0AC",\uC758:"\uC758\uC874\uBA85\uC0AC",\uB300:"\uB300\uBA85\uC0AC",\uBCF4\uB3D9:"\uBCF4\uC870\uB3D9\uC0AC",\uBCF4\uD615:"\uBCF4\uC870\uD615\uC6A9\uC0AC"},dl={\uACE0\uC720:"\uACE0\uC720\uC5B4",\uD55C\uC790:"\uD55C\uC790\uC5B4",\uC678\uB798:"\uC678\uB798\uC5B4",\uD63C\uC885:"\uD63C\uC885\uC5B4"};function Sr(e,n){return e?e.split("/").map(a=>n[a]??a).join("/"):""}function pl(e,n,a,r){if(r!=="\uC810\uC120")return{};const o=e%n,i=Math.floor(e/n),l=o<n-1,c=i<a-1;if(!l&&!c)return{};const u="#ddd",d=b=>`repeating-linear-gradient(to ${b}, ${u} 0, ${u} 5px, transparent 5px, transparent 10px)`,p=[],h=[],m=[];return l&&(p.push(d("bottom")),h.push("1px 100%"),m.push("right center")),c&&(p.push(d("right")),h.push("100% 1px"),m.push("center bottom")),{backgroundImage:p.join(", "),backgroundSize:h.join(", "),backgroundPosition:m.join(", "),backgroundRepeat:"no-repeat",printColorAdjust:"exact",WebkitPrintColorAdjust:"exact"}}const tb=280,nb=240,ab=280,rb=400,ob=120,sb=280;function hl(e,n){const a=s.useRef(null),[r,o]=s.useState(1),[i,l]=s.useState(0),c=s.useCallback((u,d)=>{const p=u/e,h=n?d/n:1/0,m=Math.min(1,p,h);o(m),l(Math.max(0,(u-e*m)/2))},[e,n]);return s.useEffect(()=>{const u=a.current;if(!u)return;const d=n?u.parentElement??u:u;if(c(d.clientWidth,d.clientHeight),typeof ResizeObserver>"u")return;const p=new ResizeObserver(([h])=>c(h.contentRect.width,h.contentRect.height));return p.observe(d),()=>p.disconnect()},[c,n]),{scalerRef:a,scale:r,offset:i}}let an=null;function ml({label:e,subLabel:n,colloquialLabel:a,homonum:r,showWord:o=!0,showImage:i=!0,showPronunciation:l=!0,showColloquial:c=!0,buttonSize:u=40,wordInfo:d}){const{t:p}=me.useTranslation(),h=s.useRef(null),m=s.useRef(null),b=s.useRef(null),[g,f]=s.useState(1),[C,v]=s.useState(!1),[x,w]=s.useState(""),[y,k]=s.useState(null),_=n&&n.length>0?n:Hm()?.(e,r)??"",A=Ln()?.(e,r)??"",{imgRef:T,loading:N,failed:D,onLoad:H,onError:F}=Ar(A),B=s.useCallback(()=>k(m.current?.getBoundingClientRect()??null),[]),I=s.useCallback(()=>k(null),[]),E=s.useMemo(()=>{if(!d)return null;const Y=[];return d.grade&&Y.push(p("wordTable.info.grade",{n:d.grade,defaultValue:"\uB09C\uC774\uB3C4: {{n}}\uB4F1\uAE09"})),d.syllables&&Y.push(p("wordTable.info.syllables",{n:d.syllables,defaultValue:"\uC74C\uC808 \uC218: {{n}}\uC74C\uC808"})),d.pos&&Y.push(p("wordTable.info.pos",{v:Sr(d.pos,ib(p)),defaultValue:"\uD488\uC0AC: {{v}}"})),d.wordType&&Y.push(p("wordTable.info.wordType",{v:Sr(d.wordType,lb(p)),defaultValue:"\uC720\uD615: {{v}}"})),Y.length?Y:null},[d,p]);s.useEffect(()=>{const Y=Ka(),K=_||e;if(!Y||!K)return;let R=!1;return Promise.resolve(Y(K)).then(j=>{!R&&j&&w(j)}),()=>{R=!0}},[_,e]),s.useEffect(()=>()=>{b.current?.pause(),an?.audio===b.current&&(an=null)},[]);const te=s.useCallback(async Y=>{if(Y.stopPropagation(),C){b.current?.pause(),v(!1),an=null;return}if(x){an?.stop(),v(!0);try{const K=new Audio(x);b.current=K;const R=()=>{v(!1),an?.audio===K&&(an=null)};an={audio:K,stop:()=>{K.pause(),R()}},K.onended=R,K.onerror=R,await K.play()}catch{v(!1),an?.audio===b.current&&(an=null)}}},[C,x]),L=i&&!!A&&!D,O=L&&o?tb:L?ab:nb,ee=L&&o?rb:L?sb:ob;return s.useEffect(()=>{const Y=h.current;if(!Y||typeof ResizeObserver>"u")return;const K=new ResizeObserver(([R])=>{const{width:j,height:M}=R.contentRect;f(Math.min(j/O,M/ee))});return K.observe(Y),()=>K.disconnect()},[O,ee]),t.jsxs("div",{ref:h,className:"word-table-cell",children:[t.jsxs("div",{className:"word-table-cell__inner",style:{transform:`scale(${g})`},children:[L&&t.jsxs("div",{className:"word-table-cell__image-wrap",children:[N&&t.jsx("div",{className:"word-table-cell__spinner"}),t.jsx("img",{ref:T,className:"word-table-cell__image",src:A,alt:e,draggable:!1,style:{opacity:N?0:1},onLoad:H,onError:F})]}),o&&t.jsx("span",{className:"word-table-cell__word h0",children:e}),l&&_&&t.jsxs("span",{className:"word-table-cell__sub h3",children:["[",_,"]"]}),c&&a&&t.jsxs("span",{className:"word-table-cell__colloquial h5",children:["[",a,"]"]})]}),t.jsxs("div",{className:"word-table-cell__play-button","data-audio-src":x,children:[t.jsx("span",{"data-play-state":"play",style:{display:C?"none":void 0},children:t.jsx(ie,{htmlType:"button",size:u,type:"dot",icon:"play",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:p("common.play","\uC7AC\uC0DD"),onClick:te})}),t.jsx("span",{"data-play-state":"pause",style:{display:C?void 0:"none"},children:t.jsx(ie,{htmlType:"button",size:u,type:"dot",icon:"pause",useBorder:!1,selected:!0,showTooltipInfo:p("common.pause","\uBA48\uCDA4"),onClick:te})})]}),d&&t.jsxs("div",{ref:m,className:"word-table-cell__info-button",onPointerEnter:B,onPointerLeave:I,onFocus:B,onBlur:I,children:[t.jsx(ie,{htmlType:"button",size:u,type:"dot",icon:"info",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:!1,ariaLabel:p("wordTable.wordInfo","{{word}} \uB0B1\uB9D0 \uC815\uBCF4",{word:e}),onClick:Y=>Y.stopPropagation()}),y&&E&&t.jsx(Nn,{anchorRect:y,items:E,showIndex:!1})]})]})}const fl={\uBA85:"noun",\uB3D9:"verb",\uD615:"adjective",\uBD80:"adverb",\uC218:"numeral",\uAD00:"determiner",\uAC10:"interjection",\uC870:"particle",\uC811:"affix",\uC758:"dependentNoun",\uB300:"pronoun",\uBCF4\uB3D9:"auxVerb",\uBCF4\uD615:"auxAdjective"},Cl={\uACE0\uC720:"native",\uD55C\uC790:"sino",\uC678\uB798:"foreign",\uD63C\uC885:"mixed"};function ib(e){return Object.fromEntries(Object.entries(ul).map(([n,a])=>[n,fl[n]?e(`wordTable.pos.${fl[n]}`,{defaultValue:a}):a]))}function lb(e){return Object.fromEntries(Object.entries(dl).map(([n,a])=>[n,Cl[n]?e(`wordSearch.filter.type.${Cl[n]}`,{defaultValue:a}):a]))}function On({title:e,titleIcon:n,disc:a,className:r,orientation:o="landscape",contentTypes:i=["\uC774\uBBF8\uC9C0","\uB2E8\uC5B4","\uD45C\uC900 \uBC1C\uC74C"],cutLine:l="\uD45C\uC2DC",showOutline:c=!0,showDivLine:u=!0,items:d,editCells:p,count:h,activeCell:m=null,onActivateCell:b,onRemoveCell:g,onRemoveItem:f,onReorder:C,showFillerAdd:v=!1,contentRef:x,buttonSize:w=40,pageNumber:y,pageNumberPosition:k="right",fitHeight:_=!1,scoring:A=!1,marks:T,onMarkClick:N,scoreIndexOffset:D=0}){const H=s.useCallback((he,ve)=>{N?.(D+he,ve)},[N,D]),F=(he,ve)=>{const Z=T?.[Na(D+he)]??null;return t.jsx("div",{className:ye("word-table-cell__score",Z?"word-table-cell__score--marked":""),children:rl.map(ce=>t.jsx("span",{className:ye("word-table-cell__score-slot",Z===ce?"word-table-cell__score-slot--on":""),children:t.jsx(ie,{htmlType:"button",size:w,type:"dot",icon:sl[ce],variant:Z===ce?il[ce]:"default",selected:Z===ce,useBorder:!1,showTooltipInfo:!1,ariaLabel:B(`wordTable.scoring.${ce}`,{word:ve,defaultValue:`${ve} ${ce}`}),onClick:J=>{J.stopPropagation(),H(he,ce)}})},ce))})},{t:B}=me.useTranslation(),I=p!==void 0,E=s.useRef(null),[te,L]=s.useState(null),{width:O,height:ee}=Fn[o],{scalerRef:Y,scale:K,offset:R}=hl(O,_?ee:void 0),j=I?p?.length??0:d?.length??0,M=Math.max(h??j,1),{cols:V,rows:P}=Q4(o,M),$={word:i.length===0||i.includes("\uB2E8\uC5B4"),image:i.length===0||i.includes("\uC774\uBBF8\uC9C0"),pron:i.length===0||i.includes("\uD45C\uC900 \uBC1C\uC74C"),colloq:i.length===0||i.includes("\uAD6C\uC5B4\uCCB4 \uBC1C\uC74C")},W=I?(p??[]).some(he=>he!==null&&he.length>1):(d??[]).some(he=>he.words.length>1),se=ye("word-table-block__content",eb[l],c&&"word-table-block__content--outline",u&&W&&"word-table-block__content--div-line"),ae={transform:`scale(${1/K})`,transformOrigin:"center center"},le=t.jsx("div",{ref:Y,className:"word-table__scaler",style:{height:ee*K},children:t.jsx("div",{className:ye("word-table",r),style:{width:O,height:ee,transform:`scale(${K})`,transformOrigin:"top left",marginLeft:R},children:t.jsxs("div",{ref:x,className:se,style:{gridTemplateColumns:`repeat(${V}, 1fr)`,gridTemplateRows:`repeat(${P}, 1fr)`},children:[I?t.jsx(t.Fragment,{children:(p??[]).map((he,ve)=>t.jsx("div",{className:ye("word-table-block__edit-cell",he?"word-table-block__edit-cell--filled":"word-table-block__edit-cell--empty",m===ve?"word-table-block__edit-cell--active":""),style:pl(ve,V,P,l),children:he?t.jsxs(t.Fragment,{children:[he.map((Z,ce)=>t.jsxs(s.Fragment,{children:[ce>0&&t.jsx("div",{className:"word-table-block__pair-divider"}),t.jsx(ml,{label:Z.word,subLabel:Z.pronunciation,colloquialLabel:Z.colloquialPronunciation,homonum:Z.homonum,showWord:$.word,showImage:$.image,showPronunciation:$.pron,showColloquial:$.colloq,buttonSize:w})]},ce)),A&&F(ve,he.map(Z=>Z.word).join(" / ")),g&&t.jsx("div",{className:"word-table-block__card-close",children:t.jsx(ie,{htmlType:"button",size:w,type:"dot",icon:"x",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:he.length>1?B("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):B("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),ariaLabel:he.length>1?B("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):B("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),onClick:()=>g(ve)})})]}):b&&t.jsx("div",{style:ae,children:t.jsx(ie,{htmlType:"button",size:"48",type:"bar",icon:"plus",label:B("wordTable.addWord","\uCD94\uAC00\uD558\uAE30"),onClick:()=>b(ve)})})},ve))}):t.jsxs(t.Fragment,{children:[(d??[]).map((he,ve)=>t.jsxs("div",{className:`word-table-block__card${C?" word-table-block__card--draggable":""}${te===ve?" word-table-block__card--drag-over":""}`,style:pl(ve,V,P,l),draggable:!!C,onDragStart:C?()=>{E.current=ve}:void 0,onDragOver:C?Z=>{Z.preventDefault(),L(ve)}:void 0,onDragLeave:C?()=>L(null):void 0,onDrop:C?Z=>{Z.preventDefault(),E.current!==null&&E.current!==ve&&C(E.current,ve),E.current=null,L(null)}:void 0,onDragEnd:C?()=>{E.current=null,L(null)}:void 0,children:[he.words.map((Z,ce)=>t.jsxs(s.Fragment,{children:[ce>0&&t.jsx("div",{className:"word-table-block__pair-divider"}),t.jsx(ml,{label:Z.label,subLabel:Z.subLabel,colloquialLabel:Z.colloquialLabel,homonum:Z.homonum,showWord:$.word,showImage:$.image,showPronunciation:$.pron,showColloquial:$.colloq,buttonSize:w,wordInfo:Z.grade||Z.syllables!=null||Z.pos||Z.wordType?{grade:Z.grade,syllables:Z.syllables,pos:Z.pos,wordType:Z.wordType}:void 0})]},ce)),A&&F(ve,he.words.map(Z=>Z.label).join(" / ")),f&&t.jsx("div",{className:"word-table-block__card-close",children:t.jsx(ie,{htmlType:"button",size:w,type:"dot",icon:"x",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:he.words.length>1?B("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):B("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),ariaLabel:he.words.length>1?B("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):B("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),onClick:()=>f(he.id)})})]},he.id)),Array.from({length:Math.max(0,V*P-(d?.length??0))}).map((he,ve)=>{const Z=(d?.length??0)+ve<M;return t.jsx("div",{className:"word-table-block__card word-table-block__card--filler",children:v&&b&&Z&&t.jsx("div",{style:ae,children:t.jsx(ie,{htmlType:"button",size:w,type:"bar",icon:"plus",label:B("wordTable.addWord","\uCD94\uAC00\uD558\uAE30"),onClick:()=>b((d?.length??0)+ve)})})},`filler-${ve}`)})]}),y&&k!=="none"&&t.jsx("span",{className:`word-table__page-number body-3 word-table__page-number--${k}`,children:B("wordTable.filter.pageIndicator",{current:y.current,total:y.total})})]})})});return e!=null||n||a?t.jsx(In,{type:"page",icon:n,title:e,disc:a,className:ye("word-table-block",r),children:le}):le}function rn({title:e,headerAction:n,collapsible:a=!1,defaultCollapsed:r=!1,collapsed:o,onCollapsedChange:i,footer:l,sections:c,selected:u={},onSelect:d,align:p,sectionAlign:h,className:m}){const b=(p??(h==="vertical"?"newline":"inline"))==="inline",{t:g}=me.useTranslation(),[f,C]=s.useState(r),v=o??f,x=()=>{const y=!v;C(y),i?.(y)},w=e||n||a;return t.jsxs("div",{className:ye("filter-panel",a?"filter-panel--collapsible":"",v?"filter-panel--collapsed":"",m),children:[w&&t.jsxs("div",{className:"filter-panel__header",children:[t.jsxs("div",{className:"filter-panel__title-row",children:[a&&t.jsx(ie,{htmlType:"button",size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:v?"chevron-down":"chevron-up",ariaLabel:v?g("common.expand","\uD3BC\uCE58\uAE30"):g("common.collapse","\uC811\uAE30"),"aria-expanded":!v,onClick:x}),e&&t.jsx("span",{className:"filter-panel__title h4",children:e})]}),t.jsx("div",{className:"filter-panel__header-actions",children:!v&&n})]}),!v&&t.jsxs(t.Fragment,{children:[t.jsx("div",{className:ye("filter-panel__sections",b?"filter-panel__sections--row":""),children:c.map(y=>{const k=u[y.label],_=k===void 0||(Array.isArray(k)?k.length===0:!1),A=(y.items??[]).filter(N=>N!=null);y.allOption&&A.some(N=>(typeof N=="string"?N:N.value)===Gt)&&zn(`filter-panel-all-value:${y.label}`,`[FilterPanel] '${y.label}' \uC808\uC5D0 allOption \uACFC \uAC12 '${Gt}' \uC778 \uBCF4\uAE30\uAC00 \uD568\uAED8 \uC788\uB2E4 \u2014 \uB450 \uC120\uD0DD\uC774 \uAD6C\uBCC4\uB418\uC9C0 \uC54A\uB294\uB2E4. \uBCF4\uAE30 \uAC12\uC744 \uBC14\uAFD4\uB77C.`);const T=N=>{const D=typeof N=="string"?N:N.value,H=typeof N!="string"&&!!N.disabled,F=typeof N!="string"?N.labels:void 0,B=typeof N!="string"?N.displayLabel:void 0,I=typeof N!="string"?N.tooltip:void 0,E=typeof N!="string"?N.descriptionTooltip:void 0,te=typeof N!="string"?N.shape:void 0,L=Array.isArray(k)?k.includes(D):k===D;return t.jsx(ie,{htmlType:"button",size:"keyboard",label:F??B??D,type:y.itemType??(F?"bar":D.length===1?"dot":void 0),selected:L,disabled:H,shape:te,showTooltipInfo:!!I,tooltipInfoText:I,tooltipDescription:E,onClick:()=>d?.(D,y.label)},D)};return t.jsxs(s.Fragment,{children:[y.groupLabel&&t.jsxs("div",{className:"filter-panel__group-label-row",children:[t.jsx("div",{className:"filter-panel__group-label body-2",children:y.groupLabel}),y.groupAction]}),t.jsxs("div",{className:ye("filter-panel__section",y.layout==="row"?"filter-panel__section--row":"",y.block?"filter-panel__section--block":""),children:[t.jsxs("div",{className:"filter-panel__section-label-row",children:[t.jsx("span",{className:"filter-panel__section-label body-3",children:y.displayLabel??y.label}),y.labelAction??(y.labelInfo?t.jsx(aa,{...y.labelInfo}):null)]}),y.type==="note"?t.jsx("div",{className:"filter-panel__note body-3",children:y.content}):y.type==="input"?t.jsx(Dn,{className:"filter-panel__textfield",placeholder:y.placeholder,ariaLabel:y.displayLabel??y.label,value:u[y.label]??"",onChange:N=>d?.(N,y.label),error:y.error}):!y.multiple&&y.display==="segmented"?t.jsx(Tn,{ariaLabel:y.displayLabel??y.label,options:[...y.allOption?[{key:Gt,label:y.allLabel??g("common.all","\uC804\uCCB4")}]:[],...A.map(N=>{const D=typeof N=="string"?N:N.value,H=typeof N!="string"?N.displayLabel:void 0,F=typeof N!="string"?N.disabled:void 0;return{key:D,label:H??D,disabled:F}})],value:_&&y.allOption?Gt:u[y.label]??"",onChange:N=>d?.(N,y.label),size:32}):!y.multiple&&y.display==="dropdown"?t.jsx(Wt,{className:"filter-panel__dropdown",size:40,options:[...y.allOption?[{value:Gt,label:y.allLabel??g("common.all","\uC804\uCCB4")}]:[],...A.map(N=>{const D=typeof N=="string"?N:N.value,H=typeof N!="string"?N.displayLabel:void 0,F=typeof N!="string"?N.disabled:void 0;return{value:D,label:H??D,disabled:F}})],value:_&&y.allOption?Gt:u[y.label],onChange:N=>d?.(N,y.label)}):t.jsxs("div",{className:y.groups?"filter-panel__item-groups":"filter-panel__items",children:[y.allOption&&!y.groups&&t.jsx(ie,{htmlType:"button",size:"keyboard",label:y.allLabel??g("common.all","\uC804\uCCB4"),selected:_,disabled:y.allOptionDisabled,onClick:()=>d?.(Gt,y.label)}),y.groups?y.groups.map((N,D)=>t.jsxs("div",{className:"filter-panel__item-group",children:[D===0&&y.allOption&&t.jsx(ie,{htmlType:"button",size:"keyboard",label:y.allLabel??g("common.all","\uC804\uCCB4"),selected:_,disabled:y.allOptionDisabled,onClick:()=>d?.(Gt,y.label)}),N.filter(H=>H!=null).map(T)]},D)):A.map(T)]})]})]},y.label)})}),l!=null&&l!==!1&&t.jsx("div",{className:"filter-panel__footer body-3",children:l})]})]})}const cb=[1,2,3,4,5,6,7,8,9,10,11,12],Dr=[8,4,2,1];function gl(e,n){return{label:e("wordTable.filter.composition","\uAD6C\uC131"),items:[{value:"\uC774\uBBF8\uC9C0",disabled:!n.hasImage,displayLabel:e("wordTable.filter.image","\uC774\uBBF8\uC9C0")},{value:"\uB2E8\uC5B4",displayLabel:e("wordTable.filter.word","\uB2E8\uC5B4")},{value:"\uD45C\uC900 \uBC1C\uC74C",displayLabel:e("wordTable.filter.standardPron","\uD45C\uC900 \uBC1C\uC74C")},{value:"\uAD6C\uC5B4\uCCB4 \uBC1C\uC74C",disabled:!n.hasColloquial,displayLabel:e("wordTable.filter.colloquialPron","\uAD6C\uC5B4\uCCB4 \uBC1C\uC74C")}],multiple:!0,allOption:!0}}function bl(e){return{label:e("wordTable.filter.paperOrientation","\uC6A9\uC9C0 \uBC29\uD5A5"),items:[{value:"\uAC00\uB85C",displayLabel:e("wordTable.filter.landscape","\uAC00\uB85C")},{value:"\uC138\uB85C",displayLabel:e("wordTable.filter.portrait","\uC138\uB85C")}],display:"segmented"}}function yl(e){return{label:e("wordTable.filter.border","\uC678\uACFD\uC120"),items:[{value:"\uD45C\uC2DC",displayLabel:e("wordTable.filter.show","\uD45C\uC2DC")},{value:"\uBBF8\uD45C\uC2DC",displayLabel:e("wordTable.filter.hide","\uBBF8\uD45C\uC2DC")}],display:"segmented"}}function vl(e){return{label:e("wordTable.filter.cutLine","\uC808\uCDE8\uC120"),items:[{value:"\uD45C\uC2DC",displayLabel:e("wordTable.filter.show","\uD45C\uC2DC")},{value:"\uC810\uC120",displayLabel:e("wordTable.filter.dotted","\uC810\uC120")},{value:"\uCF54\uB108",displayLabel:e("wordTable.filter.corner","\uCF54\uB108")},{value:"\uBBF8\uD45C\uC2DC",displayLabel:e("wordTable.filter.hide","\uBBF8\uD45C\uC2DC")}],display:"segmented"}}function xl(e){return{label:e("wordPrint.divLine","\uB300\uB9BD\uC120"),items:[{value:"\uD45C\uC2DC",displayLabel:e("wordTable.filter.show","\uD45C\uC2DC")},{value:"\uBBF8\uD45C\uC2DC",displayLabel:e("wordTable.filter.hide","\uBBF8\uD45C\uC2DC")}],display:"segmented"}}function _l(e,n){return{label:e(n.hasPairs?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord"),items:[n.itemCount,...Dr.filter(a=>a<n.itemCount)].map(a=>({value:`${a}\uAC1C`,displayLabel:e("wordTable.filter.itemsPerPageOption",{count:a})})),display:"segmented"}}function wl(e){return{label:e("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638"),items:[{value:"\uC67C\uCABD",displayLabel:e("wordTable.filter.pageNumberLeft","\uC67C\uCABD")},{value:"\uC911\uC559",displayLabel:e("wordTable.filter.pageNumberCenter","\uC911\uC559")},{value:"\uC624\uB978\uCABD",displayLabel:e("wordTable.filter.pageNumberRight","\uC624\uB978\uCABD")},{value:"\uBBF8\uD45C\uC2DC",displayLabel:e("wordTable.filter.hide","\uBBF8\uD45C\uC2DC")}],display:"segmented"}}const kl={left:"\uC67C\uCABD",center:"\uC911\uC559",right:"\uC624\uB978\uCABD",none:"\uBBF8\uD45C\uC2DC"};function Al(e){return e==="\uC67C\uCABD"?"left":e==="\uC911\uC559"?"center":e==="\uC624\uB978\uCABD"?"right":"none"}function Nl(e,n){return{[e("wordTable.filter.composition","\uAD6C\uC131")]:n.contentTypes,[e("wordTable.filter.paperOrientation","\uC6A9\uC9C0 \uBC29\uD5A5")]:n.orientation==="landscape"?"\uAC00\uB85C":"\uC138\uB85C",[e("wordTable.filter.border","\uC678\uACFD\uC120")]:n.showOutline?"\uD45C\uC2DC":"\uBBF8\uD45C\uC2DC",[e("wordTable.filter.cutLine","\uC808\uCDE8\uC120")]:n.cutLine,[e("wordPrint.divLine","\uB300\uB9BD\uC120")]:n.showDivLine?"\uD45C\uC2DC":"\uBBF8\uD45C\uC2DC"}}function Bl(e,n,a,r){return a===e("wordTable.filter.composition","\uAD6C\uC131")?n===Gt?(r.setContentTypes(()=>[]),!0):(r.setContentTypes(o=>o.includes(n)?o.filter(i=>i!==n):[...o,n]),!0):a===e("wordTable.filter.paperOrientation","\uC6A9\uC9C0 \uBC29\uD5A5")?(r.setOrientation(n==="\uAC00\uB85C"?"landscape":"portrait"),!0):a===e("wordTable.filter.border","\uC678\uACFD\uC120")?(r.setShowOutline(n==="\uD45C\uC2DC"),!0):a===e("wordTable.filter.cutLine","\uC808\uCDE8\uC120")?(r.setCutLine(n),!0):a===e("wordPrint.divLine","\uB300\uB9BD\uC120")?(r.setShowDivLine(n==="\uD45C\uC2DC"),!0):!1}function ub(e){return"sections"in e}function Tr(e){const{t:n}=me.useTranslation(),{title:a,className:r}=e;if(ub(e))return t.jsx(rn,{className:r,title:a??n("wordTable.filterTitle","\uD45C \uC124\uC815"),sections:e.sections,selected:e.selected,onSelect:e.onSelect,align:"inline"});const{hasImage:o,hasColloquial:i,contentTypes:l,orientation:c,showOutline:u,cutLine:d,showDivLine:p,setters:h,showCutLine:m=!1,showDivLine2:b=!1,middleSections:g=[],extraSelected:f={},onExtraSelect:C}=e,v=[gl(n,{hasImage:o,hasColloquial:i}),bl(n),...g,yl(n),...m?[vl(n)]:[],...b?[xl(n)]:[]],x={...Nl(n,{contentTypes:l,orientation:c,showOutline:u,cutLine:d,showDivLine:p}),...f},w=(y,k)=>{Bl(n,y,k,h)||C?.(y,k)};return t.jsx(rn,{className:r,title:a??n("wordTable.filterTitle","\uD45C \uC124\uC815"),sections:v,selected:x,onSelect:w,sectionAlign:"horizontal"})}function Sl(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function jr(e){return e.replace(/[\\/:*?"<>|]/g,"_").trim()}let Ba=null;function db(e,n,a,r="",o=""){if(e.length===0)return;const i=r?jr(r):"";Ba?.();let l=null;if(i){const d=document.title;document.title=i,l=()=>{document.title=d,window.removeEventListener("afterprint",l),Ba===l&&(Ba=null)},Ba=l,window.addEventListener("afterprint",l)}const c=document.createElement("iframe");c.style.cssText="position:fixed;left:-10000px;top:0;width:1200px;height:900px;border:0;",document.body.appendChild(c);const u=c.contentDocument;if(!u){c.remove();return}u.open(),u.write(Er(e,n,a,!0,i,o)),u.close(),c.contentWindow?.addEventListener("afterprint",()=>{l?.(),setTimeout(()=>c.remove(),0)})}function Er(e,n,a,r=!1,o="",i=""){o=o?jr(o):"";const l=Array.from(document.styleSheets).flatMap(p=>{try{return Array.from(p.cssRules).map(h=>h.cssText)}catch{return[]}}).join(`
839
+ `),c=document.documentElement.getAttribute("data-theme")||"light",u=i?`<div class="paper-head">${Sl(i)}</div>`:"",d=e.map(p=>{const h=p.cloneNode(!0);return h.querySelectorAll('[data-play-state="play"]').forEach(m=>m.style.display=""),h.querySelectorAll('[data-play-state="pause"]').forEach(m=>m.style.display="none"),h.querySelectorAll(".word-table-cell__score-slot:not(.word-table-cell__score-slot--on)").forEach(m=>m.remove()),`<div class="paper-wrap">${u}${h.outerHTML}</div>`}).join(`
840
840
  `);return`<!DOCTYPE html>
841
841
  <html data-theme="${c}">
842
842
  <head>
843
843
  <meta charset="utf-8">
844
- ${o?`<title>${xl(o)}</title>`:""}
844
+ ${o?`<title>${Sl(o)}</title>`:""}
845
845
  <style>${l}</style>
846
846
  <style>
847
847
  * { box-sizing: border-box; }
@@ -962,17 +962,17 @@ ${y.badge}`:y.badge:void 0;if(x&&u(y.code))return null;if(!y.badge&&!p)return h(
962
962
  `:""}
963
963
  <\/script>
964
964
  </body>
965
- </html>`}function Er({getElements:e,paperW:n,paperH:a,fileName:r="",onPopupBlocked:o,header:s=""}){const l=i.useCallback(()=>{U4(e(),n,a,r,s)},[e,n,a,r,s]),c=i.useCallback(()=>{const d=e();if(d.length===0)return;const p=window.open("","_blank");if(!p){o?.();return}p.document.write(Tr(d,n,a,!1,r,s)),p.document.close()},[e,n,a,r,o,s]),u=i.useCallback(()=>{const d=e();if(d.length===0)return;const p=Tr(d,n,a,!1,r,s),h=new Blob([p],{type:"text/html;charset=utf-8"}),m=URL.createObjectURL(h),b=r&&jr(r),f=Object.assign(document.createElement("a"),{href:m,download:`${b}.html`});document.body.appendChild(f),f.click(),document.body.removeChild(f),URL.revokeObjectURL(m)},[e,n,a,r,s]);return{print:l,openNewWindow:c,downloadHtml:u}}function _l(e){const{t:n}=me.useTranslation(),[a,r]=i.useState("landscape"),[o,s]=i.useState(["\uC774\uBBF8\uC9C0","\uB2E8\uC5B4","\uD45C\uC900 \uBC1C\uC74C"]),[l,c]=i.useState("\uD45C\uC2DC"),[u,d]=i.useState(!0),[p,h]=i.useState(!0),[m,b]=i.useState(8),[f,g]=i.useState("right"),C=e.length,v=e.some(P=>P.words.length>1),_=e.some(P=>P.words.some(B=>!!B.colloquialLabel)),A=Math.min(m,Math.max(C,1)),y=i.useMemo(()=>rl(e,A),[e,A]),N=y.length>1,x=A,[w,j]=i.useState(!1);i.useEffect(()=>{let P=!1;if(!Mn()){j(!1);return}return Promise.all(e.flatMap(B=>B.words.map(I=>os(I.label,I.homonum)))).then(B=>{P||j(B.some(Boolean))}),()=>{P=!0}},[e]);const k=i.useMemo(()=>[ul(n,{hasImage:w,hasColloquial:_}),dl(n),...C>0?[fl(n,{hasPairs:v,itemCount:C})]:[],...N?[Cl(n)]:[],pl(n),...x>1?[hl(n)]:[],...v?[ml(n)]:[]],[n,w,_,C,v,N,x]),S={...yl(n,{contentTypes:o,orientation:a,showOutline:u,cutLine:l,showDivLine:p}),...C>0?{[n(v?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord")]:`${A}\uAC1C`}:{},...N?{[n("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")]:gl[f]}:{}},F=i.useCallback((P,B)=>{vl(n,P,B,{setContentTypes:s,setOrientation:r,setShowOutline:d,setCutLine:c,setShowDivLine:h})||(B===n("wordTable.filter.itemsPerPagePair","\uD398\uC774\uC9C0\uB2F9 \uB300\uB9BD\uC30D \uC218")||B===n("wordTable.filter.itemsPerPageWord","\uD398\uC774\uC9C0\uB2F9 \uB2E8\uC5B4 \uC218")?b(parseInt(P)):B===n("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")&&g(bl(P)))},[n]);return{settings:{orientation:a,contentTypes:o,cutLine:l,showOutline:u,showDivLine:p,count:x},filterSections:k,filterSelected:S,handleSelect:F,pages:y,isPaginated:N,pageNumberPosition:f}}function G4({items:e,words:n,title:a,subtitle:r,emptyText:o,buttons:s,renderButtons:l,renderFooter:c,footerClassName:u,printFileName:d,showSettings:p,autoPrint:h,className:m,onClose:b,scoring:f=!1,onScoreChange:g,printHeader:C,beforeClose:v}){const{t:_}=me.useTranslation(),A=i.useMemo(()=>Array.isArray(e)?e:(Array.isArray(n)?n:[]).filter(re=>typeof re=="string"&&re.length>0).map((re,ie)=>({id:`${re}-${ie}`,words:[{label:re}]})),[e,n]),{settings:y,filterSections:N,filterSelected:x,handleSelect:w,pages:j,isPaginated:k,pageNumberPosition:S}=_l(A),F=i.useMemo(()=>al(j.map(re=>re.length)),[j]),[P,B]=i.useState({}),I=i.useCallback((re,ie)=>{B(ue=>({...ue,[Na(re)]:el(ue[Na(re)]??null,ie)}))},[]),M=i.useRef(g);i.useEffect(()=>{M.current=g}),i.useEffect(()=>{M.current?.(Br(P))},[P]);const ne=i.useMemo(()=>Br(P),[P]),L=i.useRef(null),{toastMessage:H,toastKey:ee,showWarning:W,clearToast:z}=ai("warning"),T=i.useRef([]),E=i.useCallback(()=>k?T.current.filter(re=>re!==null):L.current?[L.current]:[],[k]),{print:$,openNewWindow:K}=Er({getElements:E,paperW:Fn[y.orientation].width,paperH:Fn[y.orientation].height,fileName:d??"",header:C??"",onPopupBlocked:()=>W(_("wordTable.popupBlocked","\uD31D\uC5C5\uC774 \uCC28\uB2E8\uB418\uC5C8\uC2B5\uB2C8\uB2E4. \uBE0C\uB77C\uC6B0\uC800 \uC124\uC815\uC5D0\uC11C \uD31D\uC5C5\uC744 \uD5C8\uC6A9\uD574 \uC8FC\uC138\uC694."))}),R=i.useMemo(()=>c?void 0:l?l({print:$,openNewWindow:K}):d?[{label:_("wordTable.openNewWindow","\uC0C8 \uCC3D\uC73C\uB85C \uBCF4\uAE30"),variant:"default",onClick:()=>K()},{label:_("wordTable.print","\uC778\uC1C4\uD558\uAE30"),variant:"default",onClick:()=>$()},...s??[]]:s,[c,l,d,s,_,$,K]),V=i.useMemo(()=>c?c({print:$,openNewWindow:K}):void 0,[c,$,K]),q=i.useRef(!1);return i.useEffect(()=>{if(!h||q.current)return;q.current=!0;const re=window.setTimeout(()=>$(),100);return()=>window.clearTimeout(re)},[h,$]),t.jsxs(mn,{title:a??_("keyWords.title","\uC8FC\uC694 \uB2E8\uC5B4"),subtitle:r,size:"large",className:ve("word-table-popup",m),buttons:R,footer:V,footerClassName:u,beforeClose:v,onClose:b,children:[A.length>0?t.jsxs("div",{className:"word-table-popup__body",children:[p&&t.jsx(Sr,{sections:N,selected:x,onSelect:w}),k?t.jsx("div",{className:"word-table-popup__pages",children:j.map((re,ie)=>t.jsx(On,{items:re,orientation:y.orientation,contentTypes:y.contentTypes,cutLine:y.cutLine,showOutline:y.showOutline,showDivLine:y.showDivLine,count:y.count,contentRef:ue=>{T.current[ie]=ue},pageNumber:{current:ie+1,total:j.length},pageNumberPosition:S,scoring:f,scoreIndexOffset:F[ie],marks:ne,onMarkClick:I},ie))}):t.jsx("div",{className:"word-table-popup__table",children:t.jsx(On,{items:A,orientation:y.orientation,contentTypes:y.contentTypes,cutLine:y.cutLine,showOutline:y.showOutline,showDivLine:y.showDivLine,count:y.count,contentRef:L,fitHeight:!0,scoring:f,marks:ne,onMarkClick:I})})]}):t.jsx("p",{className:"word-table-popup__empty body-3",children:o??_("keyWords.empty","\uCD94\uCD9C\uB41C \uC8FC\uC694 \uB2E8\uC5B4\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")}),t.jsx(Rn,{message:H,position:"top",onClose:z},ee)]})}const K4=new Set(["x","triangle"]);function Y4(e,n){const a=[];for(let r=0;r<e.length;r++){const o=n[String(r)];o&&K4.has(o)&&a.push(e[r])}return a}function Z4(e,n){const[,a,r]=nr(n).split("-"),o=`${a}.${r}`,s=/\s*(?:(\d+)차\s*)?복습\s*\d{2}\.\d{2}$/;let l=e.trim(),c=1;for(;;){const d=s.exec(l);if(!d)break;c=Math.max(c,(d[1]?Number(d[1]):1)+1),l=l.slice(0,d.index).trim()}const u=c>=2?`${c}\uCC28 `:"";return`${l||"\uB2E8\uC5B4\uD45C"} ${u}\uBCF5\uC2B5 ${o}`}function X4(e,n){const a={};for(const[r,o]of Object.entries(n)){if(o!=="o"&&o!=="triangle"&&o!=="x")continue;const s=Number(r),l=e[s];l&&(a[r]=l)}return a}function J4(e){return e.map(n=>n.label).join(" / ")}function Q4(e,n,a){const r=ms(a);return[e.trim(),r,n.trim()].filter(Boolean).join(" \xB7 ")}const eb=(()=>{let e=null;return()=>(e||(e=new Intl.Collator("ko")),e)})();function Ba(e,n){return eb().compare(e,n)}const tb=/^-?\d+(\.\d+)?$/;function nb(e,n){const a=s=>typeof s=="number"&&!Number.isNaN(s)?s:typeof s=="string"&&tb.test(s.trim())?Number(s):null,r=a(e),o=a(n);return r!==null&&o!==null?r-o:Ba(e==null?"":String(e),n==null?"":String(n))}function wl(e,n,a){return a===0?0:(e+n*.5)/a}function ab(e){const n=new Map,a=[...e].sort((o,s)=>o.scoredAt.localeCompare(s.scoredAt));for(const o of a)for(const[s,l]of Object.entries(o.marks)){const c=o.labels?.[s];if(!c)continue;const u=n.get(c)??{o:0,triangle:0,x:0,latest:l,latestAt:o.scoredAt};if(l==="o")u.o++;else if(l==="triangle")u.triangle++;else if(l==="x")u.x++;else continue;u.latest=l,u.latestAt=o.scoredAt,n.set(c,u)}const r=[];for(const[o,s]of n){const l=s.o+s.triangle+s.x;r.push({label:o,tried:l,o:s.o,triangle:s.triangle,x:s.x,rate:wl(s.o,s.triangle,l),latest:s.latest,latestAt:s.latestAt})}return r.sort((o,s)=>o.rate-s.rate||s.tried-o.tried||Ba(o.label,s.label)),r}function rb(e){const n=new Map;for(const r of e){const o=r.tableId??`name:${r.tableName}`,s=n.get(o)??{tableName:r.tableName,tableId:r.tableId,rows:[]};s.rows.push(r),n.set(o,s)}const a=[];for(const r of n.values()){const o=[...r.rows].sort((l,c)=>l.scoredAt.localeCompare(c.scoredAt)),s=o.map(l=>{const c=Object.values(l.marks),u=c.filter(p=>p==="o").length,d=c.filter(p=>p==="triangle").length;return wl(u,d,c.filter(p=>p==="o"||p==="triangle"||p==="x").length)});a.push({tableName:r.tableName,tableId:r.tableId,rates:s,times:o.map(l=>l.scoredAt),delta:s.length>=2?s[s.length-1]-s[0]:null})}return a.sort((r,o)=>(o.times[o.times.length-1]??"").localeCompare(r.times[r.times.length-1]??"")),a}function ob(e,n=8){return e.filter(a=>a.latest!=="o").slice(0,n)}function sb(e){const n=new Map;let a=0,r=0;const o=[...e].sort((l,c)=>l.answeredAt.localeCompare(c.answeredAt));for(const l of o){if(l.isCorrect==null)continue;const c=l.itemTitle?.trim();if(!c){r++;continue}a++;const u=l.itemId?.trim()||c,d=`${l.trainingType}|${u}`,p=n.get(d)??{trainingType:l.trainingType,itemId:u,title:c,tried:0,wrong:0,latestCorrect:l.isCorrect,latestAt:l.answeredAt,lastSelected:l.selected,setIds:[]};p.tried++,l.isCorrect||p.wrong++,p.title=c,p.latestCorrect=l.isCorrect,p.latestAt=l.answeredAt,p.lastSelected=l.selected,l.setId&&!p.setIds.includes(l.setId)&&p.setIds.unshift(l.setId),n.set(d,p)}const s=[...n.entries()].map(([l,c])=>({key:l,trainingType:c.trainingType,itemId:c.itemId,title:c.title,tried:c.tried,wrong:c.wrong,rate:c.tried===0?0:(c.tried-c.wrong)/c.tried,latestCorrect:c.latestCorrect,latestAt:c.latestAt,lastSelected:c.lastSelected,setIds:c.setIds}));return s.sort((l,c)=>l.rate-c.rate||c.tried-l.tried||Ba(l.title,c.title)),{items:s,counted:a,skippedNoTitle:r}}function ib(e,n=8){return e.filter(a=>!a.latestCorrect).slice(0,n)}function lb(e){const n=new Map;for(const r of e){const o=n.get(r.trainingType)??[];o.push(r),n.set(r.trainingType,o)}const a=[...n.entries()].map(([r,o])=>({trainingType:r,items:o,pending:o.filter(s=>!s.latestCorrect).length}));return a.sort((r,o)=>o.pending-r.pending||r.trainingType.localeCompare(o.trainingType)),a}const Mr=["LISTEN_IN_NOISE","SHORT_STORY","LONG_STORY","ORDERING_SENTENCE"];function cb(e){const n=new Map;let a=0;for(const s of e){if(s.latestCorrect)continue;const l=s.setIds[0];if(!l){a++;continue}const c=`${s.trainingType}|${l}`,u=n.get(c)??{setId:l,trainingType:s.trainingType,pending:0};u.pending++,n.set(c,u)}const r=(s,l)=>l.pending-s.pending||s.trainingType.localeCompare(l.trainingType)||s.setId.localeCompare(l.setId),o=[...n.values()];return{sentence:o.filter(s=>Mr.includes(s.trainingType)).sort(r),word:o.filter(s=>!Mr.includes(s.trainingType)).sort(r),noSet:a}}function ub(e,n,a=5){const r=new Set(n);if(r.size===0)return[];const o=[];for(const s of e){const l=new Set,c=[];for(const u of s.cellLabels)r.has(u)&&!l.has(u)&&(l.add(u),c.push(u));c.length!==0&&o.push({id:s.id,name:s.name,kind:s.kind,covered:c,totalCells:s.cellLabels.length})}return o.sort((s,l)=>l.covered.length-s.covered.length||s.totalCells-l.totalCells||Ba(s.name,l.name)),o.slice(0,Math.max(0,a))}function db(e,n){const a=new Set(e.flatMap(r=>r.covered));return n.filter(r=>!a.has(r))}function pb(e,n){const a=new Map;for(const o of e)for(const s of o.cells){const l=o.labelOf(s);a.has(l)||a.set(l,s)}const r=[];for(const o of n){const s=a.get(o);s!==void 0&&r.push(s)}return r}function Lr(e,n,a){return typeof e=="string"&&e?e:n.replace(/\{\{(\w+)\}\}/g,(r,o)=>String(a[o]))}function hb(e,n){if(!e||e<=0)return"-";const a=Math.floor(e/60),r=e%60;return n?n(a,r):a>0&&r>0?Lr(It.t("customers.duration.minSec",{m:a,s:r,defaultValue:"{{m}}\uBD84 {{s}}\uCD08"}),"{{m}}\uBD84 {{s}}\uCD08",{m:a,s:r}):a>0?Lr(It.t("customers.duration.min",{m:a,defaultValue:"{{m}}\uBD84"}),"{{m}}\uBD84",{m:a}):Lr(It.t("customers.duration.sec",{s:r,defaultValue:"{{s}}\uCD08"}),"{{s}}\uCD08",{s:r})}function mb(e,n){const a=[],r=new Set;for(const o of e){const s=n(o);r.has(s)||(r.add(s),a.push({key:s,value:o,pinned:!1}))}return a}function fb(e,n){return e.map(a=>a.key===n?{...a,pinned:!a.pinned}:a)}function Cb(e,n){return e.filter(a=>a.key!==n)}function gb(e,n,a){const r=e.filter(d=>d.pinned),o=new Set(r.map(d=>d.key)),s=e.length-r.length,l=[],c=new Set(o);for(const d of n){if(l.length>=s)break;const p=a(d);c.has(p)||(c.add(p),l.push({key:p,value:d,pinned:!1}))}const u=[...l];return e.map(d=>d.pinned?d:u.shift()).filter(d=>d!==void 0)}function bb(e){return e.map(n=>n.value)}function yb(e){const{category:n={},isSelected:a=!1,onClick:r}=e||{},o=n?.key?` icon-grid-menu__button--${n.key}`:"",s=i.useId();return t.jsxs("div",{className:`icon-grid-menu__button-wrapper${o}`,children:[t.jsx("button",{className:`icon-grid-menu__button${a?" icon-grid-menu__button--selected":""}`,"data-key":n?.key,type:"button",onClick:a?void 0:r,"aria-pressed":a,"aria-labelledby":s,children:t.jsx(Ve,{icon:n.icon,label:n.label,className:"icon-grid-menu__button-icon",imgClassName:"icon-grid-menu__button-icon-image",maskClassName:"icon-grid-menu__button-icon-mask",svgClassName:"icon-grid-menu__button-icon-svg"})}),t.jsx("span",{id:s,className:"icon-grid-menu__button-label button-1",children:n.label})]})}function vb(e){const{categories:n=[],selected:a,onSelect:r,size:o="medium"}=e||{},s=a!==void 0?a:(n&&n[0]?.key)??null,[l,c]=i.useState(s??null);i.useEffect(()=>{a!==void 0&&c(a)},[a]);const u=i.useRef(r),d=i.useRef(l),p=i.useRef(a!==void 0);i.useEffect(()=>{!p.current&&d.current&&typeof u.current=="function"&&u.current(d.current)},[]);const h=i.useCallback(m=>{const b=l===m?null:m;c(b),r?.(b)},[l,r]);return t.jsx("div",{className:`icon-grid-menu icon-grid-menu--${o}`,children:(n||[]).map(m=>t.jsx(yb,{category:m,isSelected:l===m.key,onClick:()=>h(m.key)},m.key))})}function xb({subs:e=[],selected:n,onSelect:a,size:r="medium"}){const o=r==="small"?32:40;return t.jsx("div",{className:`choice-chips choice-chips--${r}`,children:t.jsx("div",{className:"choice-chips__list",children:e.map(s=>t.jsx(se,{htmlType:"button",size:o,type:"bar",label:s.label,selected:n===s.key,className:"choice-chips__button",onClick:()=>a?.(s.key)},s.key))})})}function _b({onTermsClick:e,onPrivacyClick:n,contact:a}={}){const r=a?.email??"support@ihab.co.kr",o=a?.tel??"031-380-3724",{t:s}=me.useTranslation();return t.jsx("footer",{className:"site-footer",children:t.jsxs("div",{className:"safearea",children:[t.jsxs("div",{className:"site-footer__top",children:[t.jsx("div",{className:"site-footer__brand",children:t.jsx("div",{className:"site-footer__lead h3",children:s("footer.lead",`\uC544\uC774\uD574\uBE0C\uB294 \uC18C\uB9AC\uB97C \uD1B5\uD574
965
+ </html>`}function Mr({getElements:e,paperW:n,paperH:a,fileName:r="",onPopupBlocked:o,header:i=""}){const l=s.useCallback(()=>{db(e(),n,a,r,i)},[e,n,a,r,i]),c=s.useCallback(()=>{const d=e();if(d.length===0)return;const p=window.open("","_blank");if(!p){o?.();return}p.document.write(Er(d,n,a,!1,r,i)),p.document.close()},[e,n,a,r,o,i]),u=s.useCallback(()=>{const d=e();if(d.length===0)return;const p=Er(d,n,a,!1,r,i),h=new Blob([p],{type:"text/html;charset=utf-8"}),m=URL.createObjectURL(h),b=r&&jr(r),g=Object.assign(document.createElement("a"),{href:m,download:`${b}.html`});document.body.appendChild(g),g.click(),document.body.removeChild(g),URL.revokeObjectURL(m)},[e,n,a,r,i]);return{print:l,openNewWindow:c,downloadHtml:u}}function Dl(e){const{t:n}=me.useTranslation(),[a,r]=s.useState("landscape"),[o,i]=s.useState(["\uC774\uBBF8\uC9C0","\uB2E8\uC5B4","\uD45C\uC900 \uBC1C\uC74C"]),[l,c]=s.useState("\uD45C\uC2DC"),[u,d]=s.useState(!0),[p,h]=s.useState(!0),[m,b]=s.useState(8),[g,f]=s.useState("right"),C=e.length,v=e.some(F=>F.words.length>1),x=e.some(F=>F.words.some(B=>!!B.colloquialLabel)),w=Math.min(m,Math.max(C,1)),y=s.useMemo(()=>cl(e,w),[e,w]),k=y.length>1,_=w,[A,T]=s.useState(!1);s.useEffect(()=>{let F=!1;if(!Ln()){T(!1);return}return Promise.all(e.flatMap(B=>B.words.map(I=>ls(I.label,I.homonum)))).then(B=>{F||T(B.some(Boolean))}),()=>{F=!0}},[e]);const N=s.useMemo(()=>[gl(n,{hasImage:A,hasColloquial:x}),bl(n),...C>0?[_l(n,{hasPairs:v,itemCount:C})]:[],...k?[wl(n)]:[],yl(n),..._>1?[vl(n)]:[],...v?[xl(n)]:[]],[n,A,x,C,v,k,_]),D={...Nl(n,{contentTypes:o,orientation:a,showOutline:u,cutLine:l,showDivLine:p}),...C>0?{[n(v?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord")]:`${w}\uAC1C`}:{},...k?{[n("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")]:kl[g]}:{}},H=s.useCallback((F,B)=>{if(!Bl(n,F,B,{setContentTypes:i,setOrientation:r,setShowOutline:d,setCutLine:c,setShowDivLine:h}))if(B===n("wordTable.filter.itemsPerPagePair","\uD398\uC774\uC9C0\uB2F9 \uB300\uB9BD\uC30D \uC218")||B===n("wordTable.filter.itemsPerPageWord","\uD398\uC774\uC9C0\uB2F9 \uB2E8\uC5B4 \uC218")){const I=parseInt(F);b(Dr.includes(I)?I:Number.POSITIVE_INFINITY)}else B===n("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")&&f(Al(F))},[n]);return{settings:{orientation:a,contentTypes:o,cutLine:l,showOutline:u,showDivLine:p,count:_},filterSections:N,filterSelected:D,handleSelect:H,pages:y,isPaginated:k,pageNumberPosition:g}}function pb({items:e,words:n,title:a,subtitle:r,emptyText:o,buttons:i,renderButtons:l,renderFooter:c,footerClassName:u,printFileName:d,showSettings:p,autoPrint:h,className:m,onClose:b,scoring:g=!1,onScoreChange:f,printHeader:C,beforeClose:v}){const{t:x}=me.useTranslation(),w=s.useMemo(()=>Array.isArray(e)?e:(Array.isArray(n)?n:[]).filter(ae=>typeof ae=="string"&&ae.length>0).map((ae,le)=>({id:`${ae}-${le}`,words:[{label:ae}]})),[e,n]),{settings:y,filterSections:k,filterSelected:_,handleSelect:A,pages:T,isPaginated:N,pageNumberPosition:D}=Dl(w),H=s.useMemo(()=>ll(T.map(ae=>ae.length)),[T]),[F,B]=s.useState({}),I=s.useCallback((ae,le)=>{B(he=>({...he,[Na(ae)]:ol(he[Na(ae)]??null,le)}))},[]),E=s.useRef(f);s.useEffect(()=>{E.current=f}),s.useEffect(()=>{E.current?.(Br(F))},[F]);const te=s.useMemo(()=>Br(F),[F]),L=s.useRef(null),{toastMessage:O,toastKey:ee,showWarning:Y,clearToast:K}=li("warning"),R=s.useRef([]),j=s.useCallback(()=>N?R.current.filter(ae=>ae!==null):L.current?[L.current]:[],[N]),{print:M,openNewWindow:V}=Mr({getElements:j,paperW:Fn[y.orientation].width,paperH:Fn[y.orientation].height,fileName:d??"",header:C??"",onPopupBlocked:()=>Y(x("wordTable.popupBlocked","\uD31D\uC5C5\uC774 \uCC28\uB2E8\uB418\uC5C8\uC2B5\uB2C8\uB2E4. \uBE0C\uB77C\uC6B0\uC800 \uC124\uC815\uC5D0\uC11C \uD31D\uC5C5\uC744 \uD5C8\uC6A9\uD574 \uC8FC\uC138\uC694."))}),P=s.useMemo(()=>c?void 0:l?l({print:M,openNewWindow:V}):d?[{label:x("wordTable.openNewWindow","\uC0C8 \uCC3D\uC73C\uB85C \uBCF4\uAE30"),variant:"default",onClick:()=>V()},{label:x("wordTable.print","\uC778\uC1C4\uD558\uAE30"),variant:"default",onClick:()=>M()},...i??[]]:i,[c,l,d,i,x,M,V]),$=s.useMemo(()=>c?c({print:M,openNewWindow:V}):void 0,[c,M,V]),W=s.useRef(!1),se=s.useRef(M);return s.useEffect(()=>{se.current=M},[M]),s.useEffect(()=>{if(!h||W.current)return;const ae=window.setTimeout(()=>{W.current=!0,se.current()},100);return()=>window.clearTimeout(ae)},[h]),t.jsxs(fn,{title:a??x("keyWords.title","\uC8FC\uC694 \uB2E8\uC5B4"),subtitle:r,size:"large",className:ye("word-table-popup",m),buttons:P,footer:$,footerClassName:u,beforeClose:v,onClose:b,children:[w.length>0?t.jsxs("div",{className:"word-table-popup__body",children:[p&&t.jsx(Tr,{sections:k,selected:_,onSelect:A}),N?t.jsx("div",{className:"word-table-popup__pages",children:T.map((ae,le)=>t.jsx(On,{items:ae,orientation:y.orientation,contentTypes:y.contentTypes,cutLine:y.cutLine,showOutline:y.showOutline,showDivLine:y.showDivLine,count:y.count,contentRef:he=>{R.current[le]=he},pageNumber:{current:le+1,total:T.length},pageNumberPosition:D,scoring:g,scoreIndexOffset:H[le],marks:te,onMarkClick:I},le))}):t.jsx("div",{className:"word-table-popup__table",children:t.jsx(On,{items:w,orientation:y.orientation,contentTypes:y.contentTypes,cutLine:y.cutLine,showOutline:y.showOutline,showDivLine:y.showDivLine,count:y.count,contentRef:L,fitHeight:!0,scoring:g,marks:te,onMarkClick:I})})]}):t.jsx("p",{className:"word-table-popup__empty body-3",children:o??x("keyWords.empty","\uCD94\uCD9C\uB41C \uC8FC\uC694 \uB2E8\uC5B4\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")}),t.jsx(Pn,{message:O,position:"top",onClose:K},ee)]})}const hb=new Set(["x","triangle"]);function mb(e,n){const a=[];for(let r=0;r<e.length;r++){const o=n[String(r)];o&&hb.has(o)&&a.push(e[r])}return a}function fb(e,n){const[,a,r]=nr(n).split("-"),o=`${a}.${r}`,i=/\s*(?:(\d+)차\s*)?복습\s*\d{2}\.\d{2}$/;let l=e.trim(),c=1;for(;;){const d=i.exec(l);if(!d)break;c=Math.max(c,(d[1]?Number(d[1]):1)+1),l=l.slice(0,d.index).trim()}const u=c>=2?`${c}\uCC28 `:"";return`${l||"\uB2E8\uC5B4\uD45C"} ${u}\uBCF5\uC2B5 ${o}`}function Cb(e,n){const a={};for(const[r,o]of Object.entries(n)){if(o!=="o"&&o!=="triangle"&&o!=="x")continue;const i=Number(r),l=e[i];l&&(a[r]=l)}return a}function gb(e){return e.map(n=>n.label).join(" / ")}function bb(e,n,a){const r=gs(a);return[e.trim(),r,n.trim()].filter(Boolean).join(" \xB7 ")}const yb=(()=>{let e=null;return()=>(e||(e=new Intl.Collator("ko")),e)})();function Lr(e,n){return yb().compare(e,n)}const vb=/^-?\d+(\.\d+)?$/,xb=(()=>{let e=null;return()=>(e||(e=new Intl.Collator("ko",{numeric:!0})),e)})();function _b(e,n){const a=i=>typeof i=="number"&&!Number.isNaN(i)?i:typeof i=="string"&&vb.test(i.trim())?Number(i):null,r=a(e),o=a(n);return r!==null&&o!==null?r-o:xb().compare(e==null?"":String(e),n==null?"":String(n))}function Tl(e,n,a){return a===0?0:(e+n*.5)/a}function wb(e){const n=new Map,a=[...e].sort((o,i)=>o.scoredAt.localeCompare(i.scoredAt));for(const o of a)for(const[i,l]of Object.entries(o.marks)){const c=o.labels?.[i];if(!c)continue;const u=n.get(c)??{o:0,triangle:0,x:0,latest:l,latestAt:o.scoredAt};if(l==="o")u.o++;else if(l==="triangle")u.triangle++;else if(l==="x")u.x++;else continue;u.latest=l,u.latestAt=o.scoredAt,n.set(c,u)}const r=[];for(const[o,i]of n){const l=i.o+i.triangle+i.x;r.push({label:o,tried:l,o:i.o,triangle:i.triangle,x:i.x,rate:Tl(i.o,i.triangle,l),latest:i.latest,latestAt:i.latestAt})}return r.sort((o,i)=>o.rate-i.rate||i.tried-o.tried||Lr(o.label,i.label)),r}function kb(e){const n=new Map;for(const r of e){const o=r.tableId??`name:${r.tableName}`,i=n.get(o)??{tableName:r.tableName,tableId:r.tableId,rows:[]};i.rows.push(r),n.set(o,i)}const a=[];for(const r of n.values()){const o=c=>Object.values(c.marks).filter(u=>u==="o"||u==="triangle"||u==="x").length,i=r.rows.filter(c=>o(c)>0).sort((c,u)=>c.scoredAt.localeCompare(u.scoredAt));if(i.length===0)continue;const l=i.map(c=>{const u=Object.values(c.marks),d=u.filter(h=>h==="o").length,p=u.filter(h=>h==="triangle").length;return Tl(d,p,o(c))});a.push({tableName:r.tableName,tableId:r.tableId,rates:l,times:i.map(c=>c.scoredAt),delta:l.length>=2?l[l.length-1]-l[0]:null})}return a.sort((r,o)=>(o.times[o.times.length-1]??"").localeCompare(r.times[r.times.length-1]??"")),a}function Ab(e,n=8){return e.filter(a=>a.latest!=="o").slice(0,n)}function Nb(e){const n=new Map;let a=0,r=0;const o=[...e].sort((l,c)=>l.answeredAt.localeCompare(c.answeredAt));for(const l of o){if(l.isCorrect==null)continue;const c=l.itemTitle?.trim();if(!c){r++;continue}a++;const u=l.itemId?.trim()||c,d=`${l.trainingType}|${u}`,p=n.get(d)??{trainingType:l.trainingType,itemId:u,title:c,tried:0,wrong:0,latestCorrect:l.isCorrect,latestAt:l.answeredAt,lastSelected:l.selected,setIds:[]};if(p.tried++,l.isCorrect||p.wrong++,p.title=c,p.latestCorrect=l.isCorrect,p.latestAt=l.answeredAt,p.lastSelected=l.selected,l.setId){const h=p.setIds.indexOf(l.setId);h>0&&p.setIds.splice(h,1),h!==0&&p.setIds.unshift(l.setId)}n.set(d,p)}const i=[...n.entries()].map(([l,c])=>({key:l,trainingType:c.trainingType,itemId:c.itemId,title:c.title,tried:c.tried,wrong:c.wrong,rate:c.tried===0?0:(c.tried-c.wrong)/c.tried,latestCorrect:c.latestCorrect,latestAt:c.latestAt,lastSelected:c.lastSelected,setIds:c.setIds}));return i.sort((l,c)=>l.rate-c.rate||c.tried-l.tried||Lr(l.title,c.title)),{items:i,counted:a,skippedNoTitle:r}}function Bb(e,n=8){return e.filter(a=>!a.latestCorrect).slice(0,n)}function Sb(e){const n=new Map;for(const r of e){const o=n.get(r.trainingType)??[];o.push(r),n.set(r.trainingType,o)}const a=[...n.entries()].map(([r,o])=>({trainingType:r,items:o,pending:o.filter(i=>!i.latestCorrect).length}));return a.sort((r,o)=>o.pending-r.pending||r.trainingType.localeCompare(o.trainingType)),a}const $r=["LISTEN_IN_NOISE","SHORT_STORY","LONG_STORY","ORDERING_SENTENCE"];function Db(e){const n=new Map;let a=0;for(const i of e){if(i.latestCorrect)continue;const l=i.setIds[0];if(!l){a++;continue}const c=`${i.trainingType}|${l}`,u=n.get(c)??{setId:l,trainingType:i.trainingType,pending:0};u.pending++,n.set(c,u)}const r=(i,l)=>l.pending-i.pending||i.trainingType.localeCompare(l.trainingType)||i.setId.localeCompare(l.setId),o=[...n.values()];return{sentence:o.filter(i=>$r.includes(i.trainingType)).sort(r),word:o.filter(i=>!$r.includes(i.trainingType)).sort(r),noSet:a}}function Tb(e,n,a=5){const r=new Set(n);if(r.size===0)return[];const o=[];for(const i of e){const l=new Set,c=[];for(const u of i.cellLabels)r.has(u)&&!l.has(u)&&(l.add(u),c.push(u));c.length!==0&&o.push({id:i.id,name:i.name,kind:i.kind,covered:c,totalCells:i.cellLabels.length})}return o.sort((i,l)=>l.covered.length-i.covered.length||i.totalCells-l.totalCells||Lr(i.name,l.name)),o.slice(0,Math.max(0,a))}function jb(e,n){const a=new Set(e.flatMap(r=>r.covered));return n.filter(r=>!a.has(r))}function Eb(e,n){const a=new Map;for(const o of e)for(const i of o.cells){const l=o.labelOf(i);a.has(l)||a.set(l,i)}const r=[];for(const o of n){const i=a.get(o);i!==void 0&&r.push(i)}return r}function Rr(e,n,a){return typeof e=="string"&&e?e:n.replace(/\{\{(\w+)\}\}/g,(r,o)=>String(a[o]))}function Mb(e,n){const a=Number.isFinite(e)?Math.round(e):0;if(!a||a<=0)return"-";const r=Math.floor(a/60),o=a%60;return n?n(r,o):r>0&&o>0?Rr(Tt.t("customers.duration.minSec",{m:r,s:o,defaultValue:"{{m}}\uBD84 {{s}}\uCD08"}),"{{m}}\uBD84 {{s}}\uCD08",{m:r,s:o}):r>0?Rr(Tt.t("customers.duration.min",{m:r,defaultValue:"{{m}}\uBD84"}),"{{m}}\uBD84",{m:r}):Rr(Tt.t("customers.duration.sec",{s:o,defaultValue:"{{s}}\uCD08"}),"{{s}}\uCD08",{s:o})}function Lb(e,n){const a=[],r=new Set;for(const o of e){const i=n(o);r.has(i)||(r.add(i),a.push({key:i,value:o,pinned:!1}))}return a}function $b(e,n){return e.map(a=>a.key===n?{...a,pinned:!a.pinned}:a)}function Rb(e,n){return e.filter(a=>a.key!==n)}function Pb(e,n,a){const r=e.filter(d=>d.pinned),o=new Set(r.map(d=>d.key)),i=e.length-r.length,l=[],c=new Set(o);for(const d of n){if(l.length>=i)break;const p=a(d);c.has(p)||(c.add(p),l.push({key:p,value:d,pinned:!1}))}const u=[...l];return e.map(d=>d.pinned?d:u.shift()).filter(d=>d!==void 0)}function Ib(e){return e.map(n=>n.value)}function Fb(e){const{category:n={},isSelected:a=!1,onClick:r}=e||{},o=n?.key?` icon-grid-menu__button--${n.key}`:"",i=s.useId();return t.jsxs("div",{className:`icon-grid-menu__button-wrapper${o}`,children:[t.jsx("button",{className:`icon-grid-menu__button${a?" icon-grid-menu__button--selected":""}`,"data-key":n?.key,type:"button",onClick:a?void 0:r,"aria-pressed":a,"aria-labelledby":i,children:t.jsx(Ve,{icon:n.icon,label:n.label,className:"icon-grid-menu__button-icon",imgClassName:"icon-grid-menu__button-icon-image",maskClassName:"icon-grid-menu__button-icon-mask",svgClassName:"icon-grid-menu__button-icon-svg"})}),t.jsx("span",{id:i,className:"icon-grid-menu__button-label button-1",children:n.label})]})}function Ob(e){const{categories:n=[],selected:a,onSelect:r,size:o="medium"}=e||{},i=a!==void 0,[l,c]=s.useState(()=>i?null:(n&&n[0]?.key)??null),u=i?a:l,d=s.useRef(r);s.useEffect(()=>{d.current=r});const p=s.useRef(!1),h=(n&&n[0]?.key)??null;s.useEffect(()=>{if(i||p.current||!h)return;p.current=!0;const b=l??h;l==null&&c(b),d.current?.(b)},[i,h]);const m=s.useCallback(b=>{const g=u===b?null:b;p.current=!0,i||c(g),r?.(g)},[u,i,r]);return t.jsx("div",{className:`icon-grid-menu icon-grid-menu--${o}`,children:(n||[]).map(b=>t.jsx(Fb,{category:b,isSelected:u===b.key,onClick:()=>m(b.key)},b.key))})}function Hb({subs:e=[],selected:n,onSelect:a,size:r="medium"}){const o=r==="small"?32:40;return t.jsx("div",{className:`choice-chips choice-chips--${r}`,children:t.jsx("div",{className:"choice-chips__list",children:e.map(i=>t.jsx(ie,{htmlType:"button",size:o,type:"bar",label:i.label,selected:n===i.key,className:"choice-chips__button",onClick:()=>a?.(i.key)},i.key))})})}function Vb({onTermsClick:e,onPrivacyClick:n,contact:a}={}){const r=a?.email??"support@ihab.co.kr",o=a?.tel??"031-380-3724",{t:i}=me.useTranslation();return t.jsx("footer",{className:"site-footer",children:t.jsxs("div",{className:"safearea",children:[t.jsxs("div",{className:"site-footer__top",children:[t.jsx("div",{className:"site-footer__brand",children:t.jsx("div",{className:"site-footer__lead h3",children:i("footer.lead",`\uC544\uC774\uD574\uBE0C\uB294 \uC18C\uB9AC\uB97C \uD1B5\uD574
966
966
  \uC2E0\uB8B0\uB97C \uC313\uACE0
967
967
  \uD68C\uBCF5\uC744 \uB3D5\uC2B5\uB2C8\uB2E4.`).split(`
968
- `).map((l,c,u)=>t.jsxs(i.Fragment,{children:[l,c<u.length-1&&t.jsx("br",{})]},c))})}),t.jsxs("div",{className:"site-footer__links",children:[t.jsxs("div",{className:"site-footer__column",children:[t.jsx("div",{className:"site-footer__column-title footer-title",children:s("footer.site.title","\uC0AC\uC774\uD2B8")}),t.jsxs("ul",{children:[t.jsx("li",{children:t.jsx("a",{className:"footer-link",href:"https://www.ihab.co.kr/",target:"_blank",rel:"noopener noreferrer",children:"IHAB"})}),t.jsx("li",{children:t.jsx("a",{className:"footer-link",href:"https://speechear.ihab.co.kr/",target:"_blank",rel:"noopener noreferrer",children:s("footer.site.malgwi","\uB9D0\uADC0")})}),t.jsx("li",{children:t.jsx("a",{className:"footer-link",href:"https://ihab-offcial-web.vercel.app/product/sound-localization",target:"_blank",rel:"noopener noreferrer",children:s("footer.site.soundDirection","\uC18C\uB9AC\uBC29\uD5A5\uC131\uC2DC\uC2A4\uD15C")})}),t.jsx("li",{children:t.jsx("a",{className:"footer-link",href:"https://ihab-offcial-web.vercel.app/product/vr-sound-localization",target:"_blank",rel:"noopener noreferrer",children:s("footer.site.vrSoundDirection","VR\uC18C\uB9AC\uBC29\uD5A5\uC131\uC2DC\uC2A4\uD15C")})}),t.jsx("li",{children:t.jsx("a",{className:"footer-link",href:"https://ihab-offcial-web.vercel.app/product/hearing-test-pro",target:"_blank",rel:"noopener noreferrer",children:s("footer.site.hearingTest","\uCCAD\uB825\uD14C\uC2A4\uD2B8 \uD504\uB85C")})})]})]}),t.jsxs("div",{className:"site-footer__column",children:[t.jsx("div",{className:"site-footer__column-title footer-title",children:s("footer.sns.title","SNS")}),t.jsxs("ul",{children:[t.jsx("li",{children:t.jsx("a",{className:"footer-link",href:"https://blog.naver.com/ihab_official",target:"_blank",rel:"noopener noreferrer",children:s("footer.sns.naverBlog","\uB124\uC774\uBC84 \uBE14\uB85C\uADF8")})}),t.jsx("li",{children:t.jsx("a",{className:"footer-link",href:"https://www.instagram.com/ihab.official.yt/",target:"_blank",rel:"noopener noreferrer",children:"Instagram"})}),t.jsx("li",{children:t.jsx("a",{className:"footer-link",href:"https://www.youtube.com/@%EC%95%84%EC%9D%B4%ED%95%B4%EB%B8%8C-%EA%B3%B5%EC%8B%9D%EC%B1%84%EB%84%90",target:"_blank",rel:"noopener noreferrer",children:"Youtube"})})]})]}),t.jsxs("div",{className:"site-footer__column",children:[t.jsx("div",{className:"site-footer__column-title footer-title",children:s("footer.policy.title","\uC815\uCC45")}),t.jsxs("ul",{children:[t.jsx("li",{children:t.jsx("a",{className:"footer-link",href:"#",onClick:l=>{e&&(l.preventDefault(),e())},children:s("footer.policy.terms","\uC774\uC6A9\uC57D\uAD00")})}),t.jsx("li",{children:t.jsx("a",{className:"footer-link",href:"#",onClick:l=>{n&&(l.preventDefault(),n())},children:s("footer.policy.privacy","\uAC1C\uC778\uC815\uBCF4 \uCC98\uB9AC\uBC29\uCE68")})})]})]})]})]}),t.jsx("hr",{className:"site-footer__rule"}),t.jsxs("div",{className:"site-footer__bottom",children:[t.jsx("div",{className:"site-footer__brand",children:t.jsx("img",{src:mr,alt:"IHAB",className:"site-footer__logo"})}),t.jsxs("div",{className:"site-footer__meta",children:[t.jsxs("div",{children:[t.jsx("span",{className:"footer-title",children:s("footer.ceo","\uB300\uD45C")}),t.jsx("span",{className:"footer-meta caption-1",children:s("footer.ceoName","\uD55C\uC9C0\uD61C")})]}),t.jsxs("div",{children:[t.jsx("span",{className:"footer-title",children:s("footer.address","\uC8FC\uC18C")}),t.jsx("span",{className:"footer-meta caption-1",children:s("footer.addressValue","\uAC15\uC6D0\uB3C4 \uCD98\uCC9C\uC2DC \uC2DC\uCCAD\uAE38 32 \uD574\uCC2C\uBE4C\uB529 3\uCE35 302\uD638")})]}),t.jsxs("div",{children:[t.jsx("span",{className:"footer-title",children:s("footer.support","\uACE0\uAC1D\uC13C\uD130")}),t.jsxs("span",{className:"footer-meta caption-1",children:[r," \xA0 ",o]})]})]})]}),t.jsx("div",{className:"site-footer__copyright footer-copyright caption-1",children:"\xA9 IHAB, Inc. All rights reserved."})]})})}function wb({logo:e,logoAlt:n="",logoHref:a,links:r=[],actions:o,className:s,containerClassName:l,renderLink:c,menuLabel:u={open:"\uBA54\uB274 \uC5F4\uAE30",close:"\uBA54\uB274 \uB2EB\uAE30"}}){const[d,p]=i.useState(!1),h=i.useId();i.useEffect(()=>{if(!d)return;const f=kn(()=>p(!1)),g=typeof window<"u"&&window.matchMedia?window.matchMedia("(min-width: 961px)"):null,C=v=>{v.matches&&p(!1)};return g&&(g.matches&&p(!1),g.addEventListener?.("change",C)),()=>{f(),g?.removeEventListener?.("change",C)}},[d]);const m=l?`${l} landing-header__inner`:"landing-header__inner",b=(f,g)=>c?c(f,{onClick:g}):t.jsx("a",{href:f.href,onClick:g,"aria-current":f.current?"page":void 0,children:f.label});return t.jsxs("header",{className:s?`landing-header ${s}`:"landing-header",children:[t.jsxs("div",{className:m,children:[e!=null&&(()=>{const f=typeof e=="string"?t.jsx("img",{src:e,alt:n,className:"landing-header__logo"}):e;return a?t.jsx("a",{href:a,className:"landing-header__brand",children:f}):t.jsx("div",{className:"landing-header__brand",children:f})})(),r.length>0&&t.jsx("nav",{className:"landing-header__links",children:r.map(f=>t.jsx("span",{children:b(f)},f.href))}),t.jsxs("div",{className:"landing-header__actions",children:[o,r.length>0&&t.jsx("button",{type:"button",onClick:()=>p(f=>!f),"aria-expanded":d,"aria-controls":h,"aria-label":d?u.close:u.open,className:d?"landing-header__toggle landing-header__toggle--open":"landing-header__toggle",children:t.jsxs("span",{className:"landing-header__burger",children:[t.jsx("span",{}),t.jsx("span",{}),t.jsx("span",{})]})})]})]}),r.length>0&&t.jsx("nav",{id:h,hidden:!d,className:"landing-header__drawer",children:t.jsx("div",{className:l??void 0,children:r.map(f=>t.jsx("span",{className:"landing-header__drawer-item",children:b(f,()=>p(!1))},f.href))})})]})}function kb({children:e,action:n,onClick:a,className:r}){const o=a?"bottom-sticky__inner bottom-sticky__inner--clickable":"bottom-sticky__inner";return t.jsx("div",{className:r?`bottom-sticky ${r}`:"bottom-sticky",children:t.jsxs("div",{className:o,onClick:a,...Xi(a),children:[t.jsx("div",{className:"bottom-sticky__content",children:e}),n]})})}const Hn=9,Ab=e=>Math.round(Math.min(Hn,Math.max(0,e))/Hn*100),Nb=e=>e/100*Hn,Da=2,kl=.1,Al=e=>Math.min(Da,Math.max(0,e)),Bb=e=>Math.round(e*10)/10;function ia(e){const{noiseRatio:n}=e;if(typeof n=="number"&&Number.isFinite(n))return Al(n);const a=Math.min(Hn,Math.max(0,Number(e.level)||0))/Hn,r=Number(e.mainVolume);return r>0?Bb(Al(a/r)):1}const Nl=e=>Math.min(1,Math.max(0,Number(e.mainVolume)||0));function Bl(e){return Nl(e)}function $r(e){return Nl(e)*ia(e)}function Rr(e,n=Qo()){const a=Number.isFinite(n)&&n>0?n:1;return Math.min(1,$r(e)/a)}function la(e,n){const a={...e,...n??{}};return n&&"level"in n&&typeof n.noiseRatio!="number"&&(a.noiseRatio=ia({level:a.level,mainVolume:a.mainVolume})),a}const ca={enabled:!0,type:"defaultNoise",level:4.5,noiseRatio:1,speed:1,mainVolume:1,mainSpeed:1},Pr=i.createContext(null);function Sa(){return i.useContext(Pr)}const Ir=e=>`${Sm()}/${e}`,Dl=e=>Array.from({length:10},(n,a)=>Ir(`${e}-${String(a+1).padStart(2,"0")}.mp3`)),ja={get defaultNoise(){return Ir("noise1.mp3")},get street(){return Dl("noise2")},get restaurant(){return Dl("noise3")},get buzz(){return Ir("noise4.mp3")}};function Db(e){const n=Math.floor(Math.random()*10);switch(e){case"defaultNoise":return ja.defaultNoise;case"street":return ja.street[n];case"restaurant":return ja.restaurant[n];case"buzz":return ja.buzz;default:return null}}function Sb({noisePlayer:e,audioRef:n,playbackStateRef:a}){const r=i.useRef(e?.registerAnalyser);r.current=e?.registerAnalyser;const o=i.useRef(null),[s,l]=i.useState(null),c=i.useRef(null),u=i.useRef(null),d=i.useRef(null),p=i.useRef(null),h=i.useRef(0),m=i.useRef(null),b=i.useCallback(()=>{p.current!==null&&(cancelAnimationFrame(p.current),p.current=null),m.current!==null&&(clearTimeout(m.current),m.current=null)},[]),f=i.useCallback((_,A=250)=>{const y=o.current;if(!y)return;const N=u.current;if(N){u.current=null;try{y.pause()}catch{}y.src=N,y.load()}if(!y.src)return;h.current+=1,b();try{Xa(),ma(y).then(k=>{try{r.current?.("noise",k)}catch{}})}catch{}const x=y.paused?0:fa(y);y.paused&&dn(y,0),y.play().catch(()=>{});const w=performance.now(),j=()=>{const k=Math.min(1,(performance.now()-w)/A);try{dn(y,x+(_-x)*k)}catch{}k<1?p.current=requestAnimationFrame(j):p.current=null};p.current=requestAnimationFrame(j)},[b]),g=i.useCallback((_=250,A)=>{const y=o.current;if(!y||y.paused){A?.();return}const N=++h.current;b();const x=performance.now(),w=fa(y),j=()=>{const k=Math.min(1,(performance.now()-x)/_);try{dn(y,w*(1-k))}catch{}if(k<1)p.current=requestAnimationFrame(j);else{p.current=null,m.current!==null&&(clearTimeout(m.current),m.current=null);try{y.pause()}catch{}A?.()}};p.current=requestAnimationFrame(j),m.current=setTimeout(()=>{if(m.current=null,h.current===N){p.current!==null&&(cancelAnimationFrame(p.current),p.current=null);try{y.paused||(dn(y,0),y.pause(),A?.())}catch{}}},_+150)},[b]);i.useEffect(()=>{const _=document.createElement("audio");return _.loop=!0,_.crossOrigin="anonymous",o.current=_,()=>{b();try{_.pause(),_.src=""}catch{}o.current=null}},[b]);const C=e?Rr(e.settings):0,v=!!e?.settings.enabled&&C>0;return i.useEffect(()=>{if(!v)return;let _=0;const A=setInterval(()=>{const y=o.current;if(!y||y.paused){_=0;return}const N=n.current;if(N&&!N.paused&&!N.ended||a.current==="playing"){_=0;return}_+=1,_>=2&&(_=0,g())},400);return()=>clearInterval(A)},[g,v,n,a]),i.useEffect(()=>{const _=()=>{if(!document.hidden)return;const A=o.current;if(A&&!A.paused){b();try{A.pause()}catch{}}};return document.addEventListener("visibilitychange",_),()=>document.removeEventListener("visibilitychange",_)},[b]),i.useEffect(()=>{d.current=e?{enabled:e.settings.enabled,volume:C,type:e.settings.type}:null},[e,e?.settings.enabled,C,e?.settings.type]),i.useEffect(()=>{const _=e?.settings,A=o.current;if(!A)return;const y=_?Rr(_):0;if(!_||!_.enabled||y===0){g();return}if(c.current!==_.type){const N=Db(_.type);N&&(c.current=_.type,l(N),u.current=N,g(150,()=>{if(u.current!==N)return;u.current=null,A.src=N,A.load();const x=n.current;x&&!x.paused&&A.addEventListener("canplay",function w(){A.removeEventListener("canplay",w);const j=n.current;j&&!j.paused&&!j.ended&&f(y)})}))}else{const N=n.current,x=!!N&&!N.paused&&!N.ended;if(x&&A.paused&&A.src)f(y);else if(!A.paused)if(!x)g();else{b();const w=fa(A),j=performance.now(),k=()=>{const S=Math.min(1,(performance.now()-j)/150);try{dn(A,w+(y-w)*S)}catch{}S<1?p.current=requestAnimationFrame(k):p.current=null};p.current=requestAnimationFrame(k)}}},[e?.settings,e?.settings.enabled,C,e?.settings.type,b,f,g,n]),i.useEffect(()=>{const _=o.current;if(_)try{_.playbackRate=Math.min(1.25,Math.max(.75,e?.settings.speed??1))}catch{}},[e?.settings.speed]),{noiseAudioRef:o,activeNoiseUrl:s,noiseSettingsRef:d,cancelNoiseFade:b,fadeInNoise:f,fadeOutNoise:g}}function jb({ttsText:e,playbackRate:n,mainVolume:a,fillRef:r,waveProgressRef:o,setProgress:s,setPlaybackState:l,setStateLocal:c,fadeInNoise:u,fadeOutNoise:d,noiseSettingsRef:p,onDoneRef:h,handleEndRef:m}){const b=i.useRef(null),f=i.useRef(0),g=i.useRef(null),C=i.useRef(0);i.useEffect(()=>()=>{C.current++;try{if(g.current&&(cancelAnimationFrame(g.current),g.current=null),window.speechSynthesis)try{window.speechSynthesis.cancel()}catch{}}catch{}},[]);const v=(y,N=1)=>{try{const x=(y||"").trim().split(/\s+/).filter(Boolean).length||Math.max(1,(y||"").length);return Math.max(700,Math.round(x*300/Math.max(.25,N)))}catch{return 1200}},_=i.useCallback(y=>{if(typeof window>"u"||!window.speechSynthesis){try{typeof h.current=="function"&&h.current(!0)}catch{}return}const N=window.speechSynthesis,x=++C.current;try{try{N.cancel()}catch{}const w=y??e,j=(Array.isArray(w)?w[0]??"":w)||"",k=new SpeechSynthesisUtterance(j);try{k.rate=Math.max(.3,Math.min(3,n))}catch{}try{k.volume=Math.max(0,Math.min(1,a))}catch{}f.current=v(j,k.rate||1),b.current=performance.now(),s(0),l("playing"),c("playMode");const S=p.current;S?.enabled&&(S?.volume??0)>0&&u(S.volume);const F=()=>{try{const P=b.current||performance.now(),B=performance.now()-P,I=f.current||1200,M=Math.min(1,B/I);s(M);try{r.current&&(r.current.style.left=`${M*100}%`),o.current&&o.current.style.setProperty("--progress",String(M))}catch{}M<1&&(g.current=requestAnimationFrame(F))}catch{}};k.onend=()=>{if(x===C.current)try{g.current&&(cancelAnimationFrame(g.current),g.current=null),s(1),l("stopped");try{m.current?.()}catch{try{typeof h.current=="function"&&h.current(!0)}catch{}}}catch{}},k.onstart=()=>{try{g.current&&(cancelAnimationFrame(g.current),g.current=null),g.current=requestAnimationFrame(F)}catch{}};try{N.speak(k)}catch{try{typeof h.current=="function"&&h.current(!0)}catch{}}}catch{try{typeof h.current=="function"&&h.current(!0)}catch{}}},[e,n,a,u,r,o,s,l,c,p,h,m]),A=i.useCallback(()=>{C.current++;try{if(window.speechSynthesis)try{window.speechSynthesis.cancel()}catch{}g.current&&(cancelAnimationFrame(g.current),g.current=null),d(),b.current=null}catch{}l("stopped"),c("active"),s(0)},[d,l,c,s]);return{startTTS:_,stopTTS:A}}async function Tb(e,n,a){let r=null;try{const o=window.AudioContext||window.webkitAudioContext;r=new o;const s=await r.decodeAudioData(e.slice(0)),l=s.numberOfChannels>0?s.getChannelData(0):null;if(!l)return null;const c=a&&a>0?Math.min(l.length,Math.floor(a*s.sampleRate)):l.length,u=Math.max(n,c),d=Math.floor(u/n)||1;return new Array(n).fill(0).map((p,h)=>{const m=h*d,b=Math.min(m+d,u);let f=0;for(let g=m;g<b;g++){const C=Math.abs(l[g]);C>f&&(f=C)}return f})}catch{return null}finally{try{r?.close?.()}catch{}}}async function Sl(e,n,a){try{const r=await fetch(e);if(r.ok===!1)return null;const o=await r.arrayBuffer();return await Tb(o,n,a)}catch(r){try{const o=cs(r)}catch{}return null}}const jl=45,Eb=74,Mb=2;function ua(e){const n=Math.min(2,Math.max(0,Number(e)||0));return n<=1?n*45:45+(n-1)*29}function Fr(e){return ua(e)/45}const Tl=4;function Lb(e){const{src:n,segments:a,progress:r=0,waveProgressRef:o,noiseSrc:s,noiseRatio:l=0,noiseSpeed:c=1,totalDuration:u=0,mainVolume:d=1,onReadyChange:p,showSoundWaveForm:h=!0}=e,m=i.useRef(null),b=i.useRef(null),[f,g]=i.useState(null),[C,v]=i.useState(!1),[_,A]=i.useState(null),[y,N]=i.useState(2),[x,w]=i.useState(0),[j,k]=i.useState(null),[S,F]=i.useState(!1),P=3,B=3,I=1,M=300,ne=i.useRef(0),L=i.useCallback(async(ie,ue)=>{const Ce=++ne.current,be=()=>ne.current===Ce;try{if(v(!1),!ie){be()&&g(null);return}let Z=ue;if(!Z)try{for(let pe=0;pe<4&&!(m.current||b.current);pe++)await new Promise(Ne=>requestAnimationFrame(Ne));await new Promise(pe=>requestAnimationFrame(pe));const J=m.current,ge=b&&b.current?b.current:J?J.closest(".audio-player__wave"):null,xe=ge?ge.getBoundingClientRect():J?J.getBoundingClientRect():null,de=xe?Math.max(100,xe.width):320,fe=xe?xe.height:0;fe>0&&w(fe),Z=Math.max(I,Math.min(M,Math.floor((de+B)/(P+B))));const _e=Z*P,De=Math.max(0,Z-1),X=De>0?(de-_e)/De:B;N(Math.max(0,X))}catch{Z=120}const ce=await Sl(ie,Z);if(!be())return;if(!ce){g(null),v(!1);return}g(ce),A(Z),v(!0)}catch{if(!be())return;g(null),v(!1)}},[v,g,w,N,A]);i.useEffect(()=>{const ie=a&&a[0]&&a[0].src||n||a&&a.length===1&&a[0]&&a[0].src;L(typeof ie=="string"?ie:void 0).catch(()=>{}),F(!1)},[n,a,L]),i.useEffect(()=>{let ie=!1;if(!s||!_){k(null);return}const ue=u>0?u*(c||1):void 0;return Sl(s,_,ue).then(Ce=>{ie||k(Ce)}).catch(()=>{ie||k(null)}),()=>{ie=!0}},[s,_,u,c]);const H=Math.max(0,Math.min(1,d)),ee=i.useMemo(()=>f&&f.length&&Math.max(...f)||1,[f]),W=_||40,z=i.useMemo(()=>Array.from({length:W}).map((ie,ue)=>{const Ce=f&&f[ue]!=null?f[ue]:null,be=Ce==null?null:Math.min(1,Ce/ee*H),Z=be!=null&&x>0&&ua(be)<=Tl,ce=be==null?.15:Z?0:Fr(be),J=W>1?ue/(W-1):0;return t.jsx("div",{className:Z?"audio-player__bar audio-player__bar--hidden":"audio-player__bar",style:{"--val":ce,"--i":ue,"--mix":J}},ue)}),[W,f,ee,H,x]),T={"--progress":String(Math.max(0,Math.min(1,r)))},E=s?Math.max(1,l):1,$={"--bar-gap":`${y}px`,"--wave-h":`${ua(E)}px`,"--wave-h1":`${jl}px`},K=H*Math.max(0,l)/Qo(),R=C&&(s?!!j:!0);i.useEffect(()=>{R&&F(!0)},[R]);const V=S?C:R;i.useEffect(()=>{p?.(V)},[V,p]);const q=_||40,re=i.useMemo(()=>Array.from({length:q}).map((ie,ue)=>{const Ce=j&&j[ue]!=null?j[ue]:null,be=Ce==null?0:Ce/ee*K,Z=x>0&&ua(be)<=Tl,ce=Z?0:Fr(be),J=q>1?ue/(q-1):0;return t.jsx("div",{className:Z?"audio-player__bar audio-player__bar--hidden":"audio-player__bar",style:{"--val":ce,"--i":ue,"--mix":J}},ue)}),[q,j,ee,K,x]);return t.jsxs("div",{className:"audio-player__wave",ref:b,style:$,children:[s&&t.jsx("div",{className:`audio-player__wave-noise ${R?"is-ready":""}`,"aria-hidden":"true",children:re}),h&&t.jsxs(t.Fragment,{children:[t.jsx("div",{className:`audio-player__wave-inner audio-player__wave-unplayed ${V?"is-ready":""}`,ref:m,children:z}),t.jsx("div",{className:`audio-player__wave-inner audio-player__wave-played ${V?"is-ready":""}`,ref:o,style:T,children:z})]})]})}const $b={idle:"\uB300\uAE30",resolving:"\uB9AC\uC18C\uC2A4 \uB9E4\uD551 \uC911\u2026",checking_exists:"\uD30C\uC77C \uC874\uC7AC \uD655\uC778\u2026",getting_signed_url:"\uC11C\uBA85 URL \uC870\uD68C\u2026",downloading:"\uB2E4\uC6B4\uB85C\uB4DC \uC911\u2026",measuring_duration:"\uC624\uB514\uC624 \uAE38\uC774 \uCE21\uC815\u2026",ready:"\uC900\uBE44 \uC644\uB8CC",error:"\uC624\uB958 \uBC1C\uC0DD"};function Or(e,n){return new Promise((a,r)=>{const o=document.createElement("audio");let s=!1;const l=()=>{try{o.src=""}catch{}},c=()=>{if(s)return;s=!0;const d=isFinite(o.duration)&&o.duration||0;l(),a(d)},u=d=>{s||(s=!0,l(),n.rejectOnError?r(new Error(d)):a(0))};o.addEventListener("loadedmetadata",c),o.addEventListener("error",()=>u("audio load failed")),setTimeout(()=>u("audio load timeout"),n.timeoutMs),o.src=e})}const Rb=2e3;function El(e,n=Rb){return new Promise(a=>{let r=!1;const o=()=>{r||(r=!0,a())};e.addEventListener("canplay",o,{once:!0}),e.addEventListener("error",o,{once:!0}),setTimeout(o,n)})}function Pb({showSoundWaveForm:e,showNoiseWaveForm:n,timeoutMs:a=2500}){const r=i.useRef(!1),o=i.useRef([]),s=i.useCallback(u=>{if(r.current=u,!u||!o.current.length)return;const d=o.current;o.current=[];for(const p of d)p()},[]),l=i.useCallback(()=>{r.current=!1},[]),c=i.useCallback(()=>!e&&!n||r.current?Promise.resolve():new Promise(u=>{const d=setTimeout(u,a);o.current.push(()=>{clearTimeout(d),u()})}),[e,n,a]);return i.useEffect(()=>()=>{const u=o.current;o.current=[];for(const d of u)d()},[]),{onReadyChange:s,waitForReady:c,markNotReady:l}}function Ib(){const e=i.useRef([]),n=i.useCallback(o=>(e.current.push(o),o),[]),a=i.useCallback(o=>{const s=new Set([...o].filter(Boolean));e.current=e.current.filter(l=>{if(s.has(l))return!0;try{URL.revokeObjectURL(l)}catch{}return!1})},[]),r=i.useCallback(()=>{a([])},[a]);return i.useEffect(()=>()=>{for(const o of e.current)try{URL.revokeObjectURL(o)}catch{}e.current=[]},[]),{track:n,keepOnly:a,revokeAll:r}}function Fb({offsetY:e=8}={}){const n=i.useRef(null),[a,r]=i.useState(null),o=i.useCallback(()=>r(null),[]),s=i.useCallback(()=>{try{const l=n.current?.getBoundingClientRect();if(!l)return;r({left:l.left,right:l.right,width:l.width,height:l.height,x:l.x,top:l.top+e,bottom:l.bottom+e,y:l.y+e,toJSON:l.toJSON.bind(l)})}catch{}},[e]);return i.useEffect(()=>{if(a)return document.addEventListener("mousedown",o),()=>document.removeEventListener("mousedown",o)},[a,o]),{ref:n,rect:a,show:s,hide:o}}function Ob({currentTime:e,sources:n,index:a,audioDuration:r}){const o=a||0,s=Array.isArray(n)&&n.length>0?n[o]:void 0,l=s?s.duration||r||0:r||0;if(!(l>0))return 0;const c=Number.isFinite(e)?e:0;return Math.max(0,Math.min(1,c/l))}function Hb(e,n){if(!Array.isArray(e))return null;const a=n||0;return a<e.length-1?a+1:null}function Vb({ended:e,completedByEnd:n}){return!!e||!!n}function zb(e){return e.map((n,a)=>({src:n.src,label:String(a+1),color:void 0,duration:n.duration||0}))}function Wb(e){return e.reduce((n,a)=>n+(a.duration||0),0)}function qb(e,n,a){const r=Array.isArray(e)?e:e?[e]:[],o=[];for(const s of r)if(s){if(typeof s=="object"&&s!==null&&"src"in s&&s.src){const l=s;o.push({code:l.code??null,src:l.src});continue}if(typeof s=="string"&&(s.startsWith("http")||s.includes("/"))){o.push({code:null,src:s});continue}if(typeof s=="string"||typeof s=="number"){const l=String(s),c=a(l,n);c&&o.push({code:l,resolvedPath:c})}}return o}function Ub({audioRef:e,fillRef:n,waveProgressRef:a,sourcesRef:r,currentIndexRef:o}){const s=i.useRef(null),l=i.useCallback(()=>{s.current!==null&&(cancelAnimationFrame(s.current),s.current=null)},[]),c=i.useCallback(()=>{if(s.current!==null)return;const d=()=>{try{const p=e.current,h=Ob({currentTime:p&&typeof p.currentTime=="number"?p.currentTime:0,sources:r.current,index:o.current,audioDuration:p&&p.duration?p.duration:0});try{n.current&&(n.current.style.left=`${h*100}%`)}catch{}try{a.current?.style.setProperty("--progress",String(h))}catch{}}catch{}s.current=requestAnimationFrame(d)};s.current=requestAnimationFrame(d)},[e,n,a,r,o]),u=i.useCallback(d=>{l();try{n.current&&(n.current.style.left=`${d*100}%`)}catch{}try{a.current?.style.setProperty("--progress",String(d))}catch{}},[l,n,a]);return i.useEffect(()=>l,[l]),{start:c,stop:l,settleTo:u}}function Hr({btnLabel:e,soundSrc:n,bucketPath:a,onDone:r,disabled:o=!1,ttsText:s=null,className:l,showSoundWaveForm:c=!0,showNoiseWaveForm:u=!0}){const{t:d}=me.useTranslation(),p=e,h=Sa(),m=i.useRef(h?.registerAnalyser);i.useEffect(()=>{m.current=h?.registerAnalyser});const b=i.useRef(null),f=i.useRef(null),g=i.useRef(null),C=Ib(),v=i.useRef(null),_=i.useRef(!1),A=i.useRef(0),y=i.useRef(null),{ref:N,rect:x,show:w,hide:j}=Fb();i.useEffect(()=>()=>{m.current?.("main",null),m.current?.("noise",null)},[]);const[k,S]=i.useState(!1),[F,P]=i.useState("idle"),[B,I]=i.useState("stopped"),M=i.useRef("stopped");i.useEffect(()=>{M.current=B},[B]);const[ne,L]=i.useState(0),[H,ee]=i.useState("active"),[W,z]=i.useState(null),[T,E]=i.useState(null),[$,K]=i.useState(0),[R,V]=i.useState(!1),[q,re]=i.useState(0),ie=h?.playbackRate??1,ue=h?.mainVolume??1,Ce=h?$r(h.settings):0,be=h?Bl(h.settings):ue,[Z,ce]=i.useState("idle"),[J,ge]=i.useState(""),[xe]=i.useState("top"),de=i.useRef(null),fe=i.useRef(0),_e=i.useRef(null),{start:De,stop:X,settleTo:pe}=Ub({audioRef:b,fillRef:f,waveProgressRef:_e,sourcesRef:de,currentIndexRef:fe}),{onReadyChange:Ne,waitForReady:Te,markNotReady:Ie}=Pb({showSoundWaveForm:c,showNoiseWaveForm:u}),Ae=i.useRef(null),Ue=i.useRef(o),Le=i.useRef(r),ye=i.useRef(null),ze=i.useRef(!1),[Fe,Oe]=i.useState(!1),We=i.useCallback(oe=>{ze.current=oe,Oe(oe)},[]),He=i.useRef(null),{activeNoiseUrl:je,noiseSettingsRef:Re,fadeInNoise:it,fadeOutNoise:Qe}=Sb({noisePlayer:h,audioRef:b,playbackStateRef:M}),{startTTS:Ze,stopTTS:qe}=jb({ttsText:s,playbackRate:ie,mainVolume:be,fillRef:f,waveProgressRef:_e,setProgress:L,setPlaybackState:I,setStateLocal:ee,fadeInNoise:it,fadeOutNoise:Qe,noiseSettingsRef:Re,onDoneRef:Le,handleEndRef:He}),Pe=Array.isArray(n)?n.filter(Boolean):n?[n]:[],nt=(!Pe||Pe.length===0)&&!!s,Je=Array.isArray(W)&&W.length>0?W:Array.isArray(T)&&T.length>0?T:null,et=Math.max(Array.isArray(Je)?Je.length:0,Pe.length),$e=i.useRef(!0);i.useEffect(()=>($e.current=!0,()=>{$e.current=!1}),[]);const Ke=i.useCallback(async(oe,O=3,Q=50)=>{for(let te=0;te<O;te++){if(!$e.current)return!1;try{return await oe.play(),!0}catch(G){if((G instanceof Error||typeof G=="object"&&G&&"name"in G?G.name:void 0)==="AbortError"){await new Promise(ae=>setTimeout(ae,Q));continue}try{ge(d("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."))}catch{}return!1}}try{ge(d("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."))}catch{}return!1},[d]),Tt=i.useCallback(()=>{const oe=b.current;if(!oe)return;const O=()=>{I("playing"),ee("playMode"),V(!0),De();try{Xa(),ma(oe).then(ae=>{try{m.current?.("main",ae)}catch{}})}catch{}const G=Re.current;G?.enabled&&(G?.volume??0)>0&&it(G.volume)},Q=()=>{Vb({ended:!!oe?.ended,completedByEnd:ze.current})||(I("paused"),X(),Qe())},te=()=>{try{const G=de.current,ae=Hb(G,fe.current);if(ae!==null){fe.current=ae,K(ae),V(!0);const ke=G?.[ae]&&G[ae].src;if(ke&&oe){oe.src=ke,oe.load(),Ke(oe).catch(()=>{});return}}}catch{}I("stopped"),L(1);try{if(oe)try{oe.currentTime=0}catch{}}catch{}X(),V(!1),Qe();try{!Ue.current&&He.current&&He.current()}catch{}};return oe.addEventListener("play",O),oe.addEventListener("pause",Q),oe.addEventListener("ended",te),()=>{try{oe.removeEventListener("play",O),oe.removeEventListener("pause",Q),oe.removeEventListener("ended",te),X()}catch{}}},[it,Qe,Ke,Re,De,X]);i.useEffect(()=>Tt(),[Tt]),i.useEffect(()=>{Ue.current=o},[o]),i.useEffect(()=>{Le.current=r},[r]),i.useEffect(()=>{if(o||H!=="active")return;const oe=y.current;if(!oe)return;let O=null;const Q=requestAnimationFrame(()=>{try{const te=oe.getTotalLength();if(!te)return;const G=te*.2;oe.style.strokeDasharray=`${te-G} ${G}`;const ae="triFlow_"+Math.random().toString(36).slice(2);O=document.createElement("style"),O.textContent=`@keyframes ${ae}{from{stroke-dashoffset:0}to{stroke-dashoffset:-${te}}}`,document.head.appendChild(O),oe.style.animation=`${ae} 2.4s linear infinite`}catch{}});return()=>{cancelAnimationFrame(Q),O?.remove()}},[H,o]),i.useEffect(()=>{de.current=W},[W]),i.useEffect(()=>{fe.current=$},[$]),i.useEffect(()=>{const oe=g.current,O=v.current;if(!oe||!O)return;let Q=null;const te=32,G=60,ae=()=>{try{const Ee=Array.from(oe.querySelectorAll(":scope > .button"));let Se=0;Ee.forEach(Bt=>{if(Bt===O)return;const Pt=Bt.getBoundingClientRect();Se+=Pt.width});const lt=oe.getBoundingClientRect().width,mt=Math.max(0,Math.floor(lt-Se-8)),ct=et;if(!ct||mt<=0){Array.from(O.children).forEach(Bt=>{try{Bt.style.width=""}catch{}});return}let st=Math.floor(mt/ct);st>G&&(st=G),st<te&&(st=Math.max(te,Math.floor(mt/ct))),Array.from(O.querySelectorAll(".button")).forEach(Bt=>{try{Bt.style.width=`${st}px`}catch{}})}catch{}},ke=requestAnimationFrame(ae);try{Q=new ResizeObserver(()=>{requestAnimationFrame(ae)}),Q.observe(oe),Q.observe(O),window.addEventListener("resize",ae)}catch{}return()=>{try{cancelAnimationFrame(ke)}catch{}try{Q&&(Q.disconnect(),Q=null)}catch{}try{window.removeEventListener("resize",ae)}catch{}}},[W,T,et]),i.useEffect(()=>()=>{try{Ae.current&&(clearTimeout(Ae.current),Ae.current=null),ye.current&&(clearTimeout(ye.current),ye.current=null)}catch{}},[]);const dt=(oe,O)=>{z(oe),re(O),Ie(),E(zb(oe)),de.current=oe},ot=async(oe,O)=>{We(!1),_.current=!1,oe.src=O,oe.load(),await El(oe),await Te(),S(!1),await Ke(oe),ee("playMode"),K(0),V(!0)},bt=async(oe,O=!1)=>{const Q=b.current;S(!0),P("measuring_duration");try{const te=await Or(oe,{timeoutMs:1e4,rejectOnError:!0});dt([{src:oe,objectUrl:null,duration:te}],te),P("ready"),O&&Q&&await ot(Q,oe)}finally{_.current=!1,S(!1)}},Kt=async(oe,O=!1)=>{const Q=b.current;S(!0),P("measuring_duration");try{const te=await Promise.all(oe.map(ae=>Or(ae,{timeoutMs:1e4}))),G=oe.map((ae,ke)=>({src:ae,objectUrl:null,duration:te[ke]||0}));dt(G,Wb(G)),P("ready"),O&&Q&&G.length>0&&await ot(Q,G[0].src)}finally{_.current=!1,S(!1)}},gn=async(oe=!1,O=!0)=>{const Q=b.current,te=n?Array.isArray(n)?n:[n]:[];if(!te||te.length===0||!te.some(Boolean))return!1;if(_.current)return null;_.current=!0,O&&S(!0),P("resolving");try{const G=qb(n,a,Zo),ae=[];let ke=0;for(const Ee of G){let Se=Ee.src??null,lt=null;if(!Se&&Ee.resolvedPath){try{P("getting_signed_url"),Se=await Xo(Ee.resolvedPath)}catch{Se=null}if(!Se)try{P("downloading");const ct=await Jo(Ee.resolvedPath);if(ct){const st=ct instanceof Blob?ct:new Blob([ct]);lt=C.track(URL.createObjectURL(st)),Se=lt}}catch{P("error");try{ge(d("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.")),ee("active")}catch{}}}if(!Se)continue;let mt=0;try{P("measuring_duration"),mt=await Or(Se,{timeoutMs:3e3})}catch{mt=0}ke+=mt||0,ae.push({...Ee,src:Se,objectUrl:lt,duration:mt})}if(dt(ae,ke),ae.length>0&&oe&&Q){const Ee=ae[0];We(!1);try{C.keepOnly(ae.map(Se=>Se.objectUrl))}catch{}if(P("ready"),_.current=!1,Ee.src&&Q)try{Q.src=Ee.src,Q.load(),await El(Q),await Te(),O&&S(!1),Q&&await Ke(Q)}catch{O&&S(!1)}else O&&S(!1);ee("playMode"),K(0),V(!0)}return ae.length>0}finally{_.current=!1,O&&S(!1),P(G=>G==="ready"?"ready":"idle")}},Ct=async()=>{const oe=b.current;if(!(!oe&&!nt)){if(nt){const O=window.speechSynthesis;if(H==="active"){const Q=Ka(),te=Array.isArray(s)?s.filter(Boolean):s?[s]:[];if(Q&&te.length>0){ee("load"),S(!0),P("resolving"),_.current=!0;try{const G=await Promise.all(te.map(ae=>Promise.resolve(Q(ae))));G.length>1?await Kt(G,!0):await bt(G[0],!0)}catch{_.current=!1,S(!1),ee("active"),Ze(te[0]||void 0)}return}Ze(te[0]||void 0);return}if(H==="playMode"){if(oe){if(oe.paused){if(ze.current){await kt();return}await Ke(oe),I("playing")}else oe.pause(),I("paused");return}try{if(O&&O.paused)try{O.resume(),I("playing")}catch{}else try{O.pause(),I("paused")}catch{}}catch{}}return}if(H==="active"){if(o&&Array.isArray(de.current)&&de.current.length>0){const O=de.current[0];try{if(O.src&&oe)try{oe.src=O.src,oe.load(),oe&&await Ke(oe)}catch{}ee("playMode"),K(0),V(!0);return}catch{}}if(ee("load"),await gn(!0)===!1&&$e.current){try{ge(d("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."))}catch{}ee("active")}return}if(H!=="load"&&(H==="playMode"||H==="active"))try{if(oe&&oe.paused){if(ze.current){await kt();return}oe&&await Ke(oe),I("playing")}else oe&&(oe.pause(),I("paused"))}catch(O){(O instanceof Error||typeof O=="object"&&O&&"name"in O)&&O.name}}},kt=async()=>{const oe=b.current;if(oe)try{const O=de.current;if(Array.isArray(O)&&O.length>1){await Ye(0);return}We(!1);try{oe.currentTime=0}catch{}oe&&await Ke(oe),I("playing"),ee("playMode")}catch{}},Lt=()=>{if(nt){qe();return}const oe=b.current;try{if(oe){try{oe.pause()}catch{}try{oe.currentTime=0}catch{}}}catch{}Qe(),I("stopped"),ee("active"),L(0),V(!1)},At=async(oe,{sameSegment:O=!1}={})=>{const Q=++A.current,te=b.current,G=de.current?.[oe]?.src;try{if(We(!1),K(oe),V(!0),fe.current=oe,!G||!te||(O||Ie(),te.src=G,te.load(),O||await Te(),Q!==A.current)||(await Ke(te),Q!==A.current))return;I("playing"),ee("playMode")}catch{}},bn=async()=>{const oe=de.current,O=fe.current||0;if(!oe||O<=0){await kt();return}await At(O-1)},Ot=async()=>{const oe=de.current,O=fe.current||0;if(!oe||O>=oe.length-1){Lt();return}await At(O+1)},on=()=>{if(ze.current)return;const oe=200,O=340;We(!0);try{L(1)}catch{}pe(1);try{ce("hold")}catch{}try{const Q=b.current,te=nt&&!!Q?.src;if(!nt||te){if(Q){Q.pause();try{Q.currentTime=0}catch{}}}else qe();Qe()}catch{}try{I("stopped")}catch{}if(V(!1),!Ue.current)try{ye.current&&(clearTimeout(ye.current),ye.current=null),ye.current=setTimeout(()=>{try{ce("out")}catch{}ye.current=setTimeout(()=>{try{typeof Le.current=="function"&&Le.current(!0)}catch{}try{ce("idle")}catch{}ye.current=null},O)},oe)}catch{}};i.useEffect(()=>{He.current=on});const yn=i.useCallback(()=>ge(""),[]),Ye=async oe=>{(de.current||[])[oe]&&await At(oe,{sameSegment:oe===fe.current})},Nt=B==="playing",yt=i.useMemo(()=>{if(!T||T.length<=1)return T;const oe=T[$];return oe?[oe]:T},[T,$]),Yt=o===!0;i.useEffect(()=>{try{const oe=b.current;oe&&typeof oe.playbackRate=="number"&&(oe.playbackRate=ie||1)}catch{}},[ie]);const Zt=i.useRef({raf:null,timer:null});i.useEffect(()=>{const oe=b.current;if(!oe)return;const O=Math.max(0,Math.min(1,be)),Q=Zt.current,te=()=>{Q.raf!==null&&(cancelAnimationFrame(Q.raf),Q.raf=null),Q.timer!==null&&(clearTimeout(Q.timer),Q.timer=null)};te();const G=fa(oe);if(oe.paused||Math.abs(G-O)<.001||typeof requestAnimationFrame!="function"){try{dn(oe,O)}catch{}return}const ae=performance.now(),ke=()=>{const Ee=Math.min(1,(performance.now()-ae)/150);try{dn(oe,G+(O-G)*Ee)}catch{}Q.raf=Ee<1?requestAnimationFrame(ke):null};return Q.raf=requestAnimationFrame(ke),Q.timer=setTimeout(()=>{te();try{dn(oe,O)}catch{}},200),te},[be]);const $t=Z==="hold",Ht=Z==="out",sn=H==="playMode"&&!k&&!Fe||$t||Ht,Rt=B!=="stopped"||$t||Ht,Xt=B==="paused",ln=Math.max(0,Math.min(100,(ne||0)*100)),vt=ve("audio-player__fill",sn?"is-visible":"",Rt?"is-expanded":"",Xt?"is-paused":"",Ht?"is-out":"");return t.jsxs("div",{className:`audio-player ${Yt?"is-disabled":""}${l?` ${l}`:""}`,role:"group","aria-label":typeof p=="string"?p:void 0,children:[t.jsxs("div",{className:`audio-player__panel ${Nt?"is-playing":""} ${k?"is-loading":""} ${H!=="default"?"is-revealed":""}`,children:[k?t.jsxs("div",{className:"audio-player__loading",role:"status","aria-live":"polite",children:[t.jsx("span",{className:"audio-player__loading-spinner","aria-hidden":"true"}),t.jsx("span",{className:"audio-player__loading-text",children:$b[F]})]}):null,H==="active"?t.jsx("button",{className:"audio-player__button",type:"button",onClick:()=>{j(),Ct()},"aria-label":typeof p=="string"?p:d("training.listen","\uB4E3\uAE30"),onMouseEnter:w,onMouseLeave:j,onFocus:w,onBlur:j,children:t.jsx("span",{ref:N,className:"audio-player__button-triangle-wrap",children:t.jsx("svg",{className:"audio-player__button-triangle",viewBox:"0 0 24 24","aria-hidden":"true",children:t.jsx("path",{ref:y,d:"M13.2 7.7 L16.5 9.85 Q20.2 12 16.5 14.15 L10 18.3 Q7 19.7 7 16.3 L7 7.7 Q7 4.3 10 5.7 L13.2 7.7"})})})}):null,x&&t.jsx(hn,{anchorRect:x,text:typeof p=="string"&&p?p:d("training.listenLabel","\uBB38\uC7A5 \uB4E3\uAE30"),offset:8}),t.jsxs("div",{className:`audio-player__play ${H==="playMode"||Nt?"is-visible":""}`,children:[t.jsxs("div",{ref:g,className:"audio-player__buttons",children:[t.jsx(se,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"skip-back",onClick:bn,ariaLabel:d("training.prev","\uC774\uC804"),width:"60px",variant:"transparent-white","aria-hidden":"true",tabIndex:-1,disabled:H!=="playMode"}),t.jsx(se,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:Nt?"pause":"play",onClick:Ct,ariaLabel:d("common.playPause","\uC7AC\uC0DD / \uBA48\uCDA4"),width:"60px",variant:"transparent-white",disabled:H!=="playMode"}),t.jsx(se,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"square",onClick:Lt,ariaLabel:d("training.stop","\uC815\uC9C0"),width:"60px",variant:"transparent-white","aria-hidden":"true",tabIndex:-1,disabled:H!=="playMode"}),et>1?t.jsx("div",{ref:v,className:"audio-player__source-buttons",children:Array.from({length:et}).map((oe,O)=>t.jsx(se,{htmlType:"button",size:32,type:"dot",shape:"pill",useBorder:!1,label:String(O+1),onClick:()=>{try{Ye(O)}catch{}},ariaLabel:d("training.sourcePlay",{n:O+1}),variant:"transparent-white",selected:R&&$===O,disabled:H!=="playMode"||!(Array.isArray(W)&&W[O]),showTooltipInfo:!0},O))}):null,!Array.isArray(W)||W.length<=1?t.jsx(se,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"repeat",onClick:kt,ariaLabel:d("common.replay","\uB2E4\uC2DC\uB4E3\uAE30"),width:"60px",variant:"transparent-white",disabled:H!=="playMode"}):null,t.jsx(se,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"skip-forward",onClick:Ot,ariaLabel:d("training.next","\uB2E4\uC74C"),width:"60px",variant:"transparent-white","aria-hidden":!0,tabIndex:-1,disabled:H!=="playMode"}),t.jsx(se,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"check",onClick:on,ariaLabel:d("common.done","\uC644\uB8CC"),width:"60px",variant:"transparent-white",disabled:H!=="playMode"})]}),t.jsxs("div",{className:"audio-player__slider",children:[t.jsx("div",{className:vt,ref:f,style:{left:`${ln}%`},"aria-hidden":"true"}),(c||u)&&t.jsx(Lb,{segments:yt,progress:ne,totalDuration:q,onSegmentClick:Ye,waveProgressRef:_e,showSoundWaveForm:c,noiseSrc:u&&h?.settings.enabled&&Ce>0?je:null,noiseRatio:h?ia(h.settings):0,noiseSpeed:h?.settings.speed??1,mainVolume:ue,onReadyChange:Ne})]})]}),t.jsx("audio",{ref:b,crossOrigin:"anonymous",preload:"auto"})]}),!c&&t.jsxs("p",{className:"audio-player__no-waveform caption-1",children:[t.jsx(Ve,{icon:"triangle-alert",size:14}),d("training.noSoundWaveform","\uC18C\uB9AC \uBE44\uAD50 \uBB38\uC81C\uB294 \uC6E8\uC774\uBE0C\uD3FC\uC744 \uD45C\uD604\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.")]}),t.jsx(Rn,{message:J,position:xe,onClose:yn})]})}function Ta(e){const{t:n}=me.useTranslation(),{text:a,label:r,anchorRect:o=null,onClose:s,closeOnOutsideClick:l=!0,isMobilePopup:c=!1}=e||{},[u,d]=i.useState(()=>{try{return localStorage.getItem("tooltip-theme")||"light"}catch{return"light"}});i.useEffect(()=>{try{localStorage.setItem("tooltip-theme",u)}catch{}},[u]);const{increase:p,decrease:h,canIncrease:m,canDecrease:b,fontSize:f,lineHeight:g}=Ys({storageKey:"tooltip-fontScale"}),C=i.useCallback(()=>d(N=>N==="dark"?"light":"dark"),[]),v=i.useCallback(N=>{try{N.stopPropagation()}catch{}try{typeof s=="function"&&s()}catch{}},[s]),_=Array.isArray(a)?a:typeof a>"u"||a===null?[]:[a],A={fontSize:`${f}px`,lineHeight:`${g}px`,"--tt-line-height":`${g}px`,"--tt-marker-size":"28px"},y=t.jsxs("div",{className:`tooltip-textbox__root ${u==="dark"?"is-dark":""}`,children:[t.jsxs("div",{className:"tooltip-textbox__box",children:[r&&t.jsx("div",{className:"tooltip-textbox__label body-2b",children:r}),t.jsx("div",{className:"tooltip-textbox__text body-1",style:A,children:_.map((N,x)=>t.jsxs("div",{className:"tooltip-textbox__line",children:[_.length>1?t.jsx("div",{className:"tooltip-textbox__marker",children:t.jsx("span",{className:"tooltip-textbox__line-number button-1",children:x+1})}):null,t.jsx("span",{className:"tooltip-textbox__line-text",children:N})]},x))})]}),t.jsxs("div",{className:"tooltip-textbox__buttons",children:[t.jsx(se,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:"minus",onClick:h,ariaLabel:n("training.fontSizeDecrease","\uAE00\uC790 \uD06C\uAE30 \uAC10\uC18C"),variant:u==="dark"?"transparent-white":"transparent-gray",disabled:!b}),t.jsx(se,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:"plus",onClick:p,ariaLabel:n("training.fontSizeIncrease","\uAE00\uC790 \uD06C\uAE30 \uC99D\uAC00"),variant:u==="dark"?"transparent-white":"transparent-gray",disabled:!m}),t.jsx(se,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:u==="dark"?"moon":"sun-medium",onClick:C,ariaLabel:n("training.toggleBackground","\uBC30\uACBD \uC804\uD658"),variant:u==="dark"?"transparent-white":"transparent-gray"}),t.jsx(se,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:"x",onClick:v,ariaLabel:n("common.close","\uB2EB\uAE30"),variant:u==="dark"?"transparent-white":"transparent-gray"})]})]});return o?t.jsx(pn,{anchorRect:o,className:`tooltip-textbox ${u==="dark"?"is-dark":""}`,onClose:s,closeOnOutsideClick:l,isMobilePopup:c,ariaLabel:r||n("tooltip.textbox","\uBCF8\uBB38"),children:y}):t.jsx("div",{className:`tooltip-textbox ${u==="dark"?"is-dark":""}`,children:y})}function Ml({state:e="disabled"}){const{t:n}=me.useTranslation();return t.jsxs("div",{className:`ts-bullet ts-bullet--${e}`,"aria-hidden":!0,children:[t.jsx("div",{className:"bullet__dot",children:t.jsx(Ve,{icon:"chevron-right",label:n("training.next","\uB2E4\uC74C"),className:"bullet__icon",imgClassName:"bullet__icon-img",maskClassName:"bullet__icon-mask",svgClassName:"bullet__icon-svg",wrapperStyle:{},size:20})}),t.jsx("div",{className:"ts-bullet__line"})]})}function Ll({title:e,children:n,className:a="",state:r="disabled",usePreviewTextBtn:o=!1,onPreviewTextBtn:s,previewText:l=null,useFaded:c,usePlayAllBtn:u=!1,onPlayAll:d,playAllActive:p=!1}){const{t:h}=me.useTranslation(),m=Ut("(max-width: 767px)"),b=`training-step__title h4 ${c&&r==="disabled"?"training-step__title--faded":""} ${a}`.trim(),f=`training-step__title-row training-step__title-row--${r}`.trim(),g=i.useRef(null),[C,v]=i.useState(!1),[_,A]=i.useState(null),[y,N]=i.useState(null),x=i.useRef(s);i.useEffect(()=>{x.current=s});const w=i.useMemo(()=>l==null?"":typeof l=="string"||typeof l=="number"?String(l):Array.isArray(l)&&l.every(S=>typeof S=="string"||typeof S=="number")?l.join(""):"",[l]),j=i.useCallback(()=>{v(!1),A(null),N(null)},[]);i.useEffect(()=>{if(!C)return;let S;try{typeof x.current=="function"&&(S=x.current())}catch{}if(S===!1){j();return}N(typeof S<"u"&&S!==null?S:null)},[w]);const k=i.useCallback(()=>{let S;try{typeof s=="function"&&(S=s())}catch{}if(S!==!1){if(N(typeof S<"u"&&S!==null?S:l),!g.current){v(F=>!F);return}if(C)v(!1),A(null),N(null);else{const F=g.current.getBoundingClientRect();A(F),v(!0)}}},[s,l,C]);return t.jsxs("div",{className:f,children:[t.jsx("p",{className:b,children:t.jsx("span",{className:"training-step__title-text",children:e??n})}),o||u?t.jsxs("div",{className:"title-controls",children:[t.jsxs("div",{className:"title-buttons",children:[u&&t.jsx(se,{htmlType:"button",size:32,type:m?"dot":"bar",icon:"play-circle",label:m?void 0:h("training.playAll","\uBAA8\uB450 \uB4E3\uAE30"),ariaLabel:h("training.playAll","\uBAA8\uB450 \uB4E3\uAE30"),selected:p,onClick:d,variant:r==="disabled"?"disabled":"default",disabled:r==="disabled"||p}),o&&t.jsx("div",{ref:g,children:t.jsx(se,{htmlType:"button",size:32,type:m?"dot":"bar",icon:"eye",label:m?void 0:h("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),ariaLabel:h("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),selected:C,onClick:k,variant:r==="disabled"?"disabled":"default",disabled:!l&&typeof s!="function"})})]}),C&&t.jsx(Ta,{text:y??l,label:h("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),anchorRect:_,onClose:j,closeOnOutsideClick:!1,isMobilePopup:!0})]}):null]})}function Vr(e,n){return typeof n!="number"||typeof e!="number"?"disabled":e<n?"done":e===n?"active":"disabled"}function jn({index:e,stepIndex:n,isLast:a=!1,title:r="",titleProps:o={},children:s,className:l="",onDone:c=void 0,useTitleFaded:u=void 0}){const{t:d}=me.useTranslation(),[p,h]=i.useState(()=>Vr(e,n));i.useEffect(()=>{const N=Vr(e,n);if(N!==p){const x=setTimeout(()=>h(N),0);return()=>clearTimeout(x)}},[e,n,p]);const m=i.useCallback((...N)=>{Vr(e,n)==="done"||p==="done"||typeof c=="function"&&c(...N)},[e,n,p,c]),[b,f]=i.useState(!1),[g,C]=i.useState({text:"",label:"\uBB38\uC7A5 \uB4E3\uAE30",anchorRect:null,backdrop:!1,alignX:null,alignY:null}),v=i.useCallback(N=>{if(!N)return null;try{const x=N;if(typeof N=="object"&&(x.currentTarget||x.target)&&(x.nativeEvent||x.type)){const k=x.currentTarget??x.target;if(k&&typeof k.getBoundingClientRect=="function")return k.getBoundingClientRect()}if(N instanceof DOMRect)return N;const w=N;if(w&&typeof w.getBoundingClientRect=="function")return w.getBoundingClientRect();const j=N?.current;return j&&typeof j.getBoundingClientRect=="function"?j.getBoundingClientRect():null}catch{return null}},[]),_=i.useCallback((N,{text:x="",label:w="\uBB38\uC7A5 \uB4E3\uAE30",backdrop:j=!1,alignX:k="center",alignY:S="top"}={})=>{const F=v(N);C({text:x,label:w,anchorRect:F,backdrop:j,alignX:k,alignY:S}),f(!0)},[v]),A=i.useCallback(()=>{f(!1),C(N=>({...N,anchorRect:null}))},[]),y=i.Children.map(s,N=>{if(i.isValidElement(N)){const x=N;if(typeof x.type=="string")return x;const w=x.props??{},j=typeof w.onDone=="function"?w.onDone:m,k=typeof w.disabled=="boolean";let S=p==="disabled";return k&&(S=!!w.disabled),i.cloneElement(x,{onDone:j,disabled:S,showTooltip:_,hideTooltip:A})}return N});return t.jsxs("div",{className:`training-step training-step--${p} ${a?"training-step--last":""} ${l}`,"aria-current":p==="active",children:[t.jsx(Ml,{state:p}),t.jsxs("div",{className:"training-step__content",children:[t.jsx(Ll,{state:p,title:r,...o,useFaded:u}),y]}),b?t.jsx(pn,{anchorRect:g.anchorRect,backdrop:g.backdrop,onClose:A,ariaLabel:d("tooltip.textbox","\uBCF8\uBB38"),children:t.jsx(Ta,{text:g.text,onClose:A})}):null]})}function $l({context:e,state:n="disabled",theme:a="light"}){const{t:r}=me.useTranslation(),[o,s]=i.useState("disabled"),[l,c]=i.useState(()=>{try{return localStorage.getItem("tooltip-theme")||a}catch{return a}});i.useEffect(()=>{try{localStorage.setItem("tooltip-theme",l)}catch{}},[l]);const u=()=>c(k=>k==="dark"?"light":"dark"),{increase:d,decrease:p,canIncrease:h,canDecrease:m,fontSize:b,lineHeight:f}=Ys({storageKey:"textbox_fontScale"}),[g,C]=i.useState(""),v=i.useCallback(()=>s("active"),[]),_=i.useCallback(()=>C(""),[]),A=k=>{try{C(k)}catch{}},y=typeof navigator<"u"&&/Mobi|Android/i.test(navigator.userAgent||"");i.useEffect(()=>{if(n!=="disabled"){const k=setTimeout(()=>s(n),0);return()=>clearTimeout(k)}},[n]);const N=i.useMemo(()=>e&&typeof e=="object"?String(e.sentence??e.text??""):typeof e=="string"?e:"",[e]);i.useEffect(()=>{const k=setTimeout(()=>s("disabled"),0);return()=>clearTimeout(k)},[N]);const x=n==="disabled"?o:n,w=x==="disabled"?"training-text-box--disabled":x==="active"?"training-text-box--active":x==="done"?"training-text-box--done":"",j=i.useMemo(()=>({fontSize:`${b}px`,lineHeight:`${f}px`}),[b,f]);return t.jsxs("div",{className:`training-text-box ${w} ${x!=="disabled"&&l==="dark"?"is-dark":""}`,children:[x==="disabled"&&t.jsx("div",{className:"training-text-box__preview",children:t.jsx(se,{htmlType:"button",size:48,type:"bar",onClick:v,icon:"eye",ariaLabel:r("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),label:r("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),useBorder:!1})}),t.jsx("div",{className:"training-text-box__area","aria-hidden":x==="disabled",children:t.jsx("span",{className:"training-text-box__inner h3",style:j,children:N})}),x!=="disabled"&&t.jsxs("div",{className:"training-text-box__buttons","aria-hidden":x==="disabled",children:[t.jsx(se,{htmlType:"button",size:32,type:"dot",onClick:p,onDisabledClick:()=>A(r("training.fontSizeMin","\uAE00\uC528 \uD06C\uAE30\uAC00 \uCD5C\uC18C\uC785\uB2C8\uB2E4.")),ariaLabel:r("training.fontSizeDecrease","\uAE00\uC790 \uD06C\uAE30 \uAC10\uC18C"),icon:"minus",variant:l==="dark"?"transparent-white":"transparent-gray",disabled:!m,useBorder:!1,showTooltipInfo:!0,...!y&&{width:"60px"}}),t.jsx(se,{htmlType:"button",size:32,type:"dot",onClick:d,onDisabledClick:()=>A(r("training.fontSizeMax","\uAE00\uC528 \uD06C\uAE30\uAC00 \uCD5C\uB300\uC785\uB2C8\uB2E4.")),ariaLabel:r("training.fontSizeIncrease","\uAE00\uC790 \uD06C\uAE30 \uC99D\uAC00"),icon:"plus",variant:l==="dark"?"transparent-white":"transparent-gray",disabled:!h,useBorder:!1,showTooltipInfo:!0,...!y&&{width:"60px"}}),t.jsx(se,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:l==="dark"?"moon":"sun-medium",onClick:u,ariaLabel:r("training.toggleBackground","\uBC30\uACBD \uC804\uD658"),variant:l==="dark"?"transparent-white":"transparent-gray"})]}),t.jsx(Rn,{message:g,position:"top",onClose:_})]})}function zr({index:e,stepIndex:n,isLast:a=!1,title:r,useTitleFaded:o,onDone:s,onChange:l,answer:c,wrongAnswers:u,choices:d,multiSelect:p=!1,correctCount:h=0,useDisabledCovered:m=!1,choiceIcons:b,shuffleChoices:f=!0}){const{t:g}=me.useTranslation(),C=r??g("training.selectConfirm","\uBB38\uC81C\uB97C \uBCF4\uACE0 \uD574\uB2F9\uD558\uB294 \uB0B4\uC6A9\uC744 \uC120\uD0DD\uD558\uC138\uC694."),v=typeof e=="number"?e:-1,_=typeof n!="number"?"disabled":v<n?"done":v===n?"active":"disabled",A=Array.isArray(d)&&d.length?d:typeof c<"u"?[c].concat(Array.isArray(u)?u:[]):void 0,y=u?u.join("||"):"",N=d?d.join("||"):"",[x,w]=i.useState(()=>Array.isArray(A)?f?Xn(A):A.slice():void 0);i.useEffect(()=>{Array.isArray(A)&&A.length?w(f?Xn(A):A.slice()):w(void 0)},[c,y,N,f]);const[j,k]=i.useState(null),[S,F]=i.useState(()=>new Set);i.useEffect(()=>{k(null),F(new Set)},[N]);const P=i.useRef(void 0);i.useEffect(()=>{const M=P.current;typeof M=="number"&&typeof n=="number"&&typeof e=="number"&&M>=e&&n<e&&(k(null),F(new Set)),P.current=n},[n,e]);const B=i.useCallback(M=>{if(_!=="active")return;const ne=x?.[M];if(ne==null)return;const L=ne,H=_==="active"||_==="done";if(p){const ee=new Set(S),W=ee.has(L);W?ee.delete(L):ee.add(L),F(ee),typeof l=="function"&&l({selectedValues:[...ee],__ts:Date.now()}),H&&(typeof h=="number"&&h>0?ee.size>=h:!W)&&typeof s=="function"&&_==="active"&&s({selectedValues:[...ee],__ts:Date.now()})}else k(L),typeof l=="function"&&l({selectedIndex:M,selectedValue:L,__ts:Date.now()}),H&&typeof s=="function"&&_==="active"&&s({selectedIndex:M,selectedValue:L,__ts:Date.now()})},[x,_,p,l,s,h,S]),I=`training-step__buttons${Array.isArray(x)&&x.length>3?" training-step__buttons--wrap-3":""}`;return t.jsx(jn,{index:e,stepIndex:n,isLast:a,title:C,useTitleFaded:o,children:t.jsx("div",{className:I,children:Array.isArray(x)&&x.length>0?x.map((M,ne)=>t.jsx(se,{htmlType:"button",size:56,type:"bar",onClick:()=>B(ne),ariaLabel:String(M),label:M,useLabel:!0,icon:b?b[String(M)]:void 0,variant:"default",disabled:_==="disabled",selected:p?S.has(M):j===M,useDisabledCovered:m,minWidth:0},String(M))):null})})}function Wr({index:e,stepIndex:n,isLast:a=!1,title:r,onDone:o,onChange:s,context:l,demoSelected:c}){const{t:u}=me.useTranslation(),d=r??u("training.confirmTitle","\uBB38\uC7A5\uC744 \uD655\uC778\uD558\uACE0 \uC798 \uB4E4\uB838\uB294\uC9C0 \uC120\uD0DD\uD558\uC138\uC694."),p=typeof e=="number"?e:-1,h=typeof n!="number"?"disabled":p<n?"done":p===n?"active":"disabled",m=l&&typeof l=="object"?l.sentence||"":typeof l=="string"?l:"",b=l&&typeof l=="object"?l.choices:void 0,[f,g]=i.useState(c??null),[C,v]=i.useState(m);C!==m&&(v(m),c==null&&g(null));const _=i.useCallback(N=>{const x=typeof N=="object"&&N!==null?Object.assign({},N,{__ts:Date.now()}):{value:N,__ts:Date.now()};typeof s=="function"&&s(x),h==="active"&&typeof o=="function"&&o(x)},[s,h,o]),A=i.useCallback(()=>{h==="active"&&(g(!1),_(!1))},[_,h]),y=i.useCallback(()=>{h==="active"&&(g(!0),_(!0))},[_,h]);return t.jsxs(jn,{index:e,stepIndex:n,isLast:a,title:d,onDone:o,useTitleFaded:!1,children:[t.jsx($l,{context:l,state:h}),t.jsx("div",{className:"training-step__buttons",children:Array.isArray(b)&&b.length>0?b.slice(0,6).map((N,x)=>t.jsx(se,{htmlType:"button",size:56,type:"bar",onClick:()=>{h==="active"&&(g(x),_&&_(x))},disabled:h==="disabled",ariaLabel:String(N),label:N,variant:h,selected:f===x},x)):t.jsxs(t.Fragment,{children:[t.jsx(se,{htmlType:"button",size:56,type:"bar",onClick:A,disabled:h==="disabled",icon:"x",ariaLabel:u("training.notHeard","\uC548 \uB4E4\uB838\uC5B4\uC694."),label:u("training.notHeard","\uC548 \uB4E4\uB838\uC5B4\uC694."),variant:"default",selected:f===!1}),t.jsx(se,{htmlType:"button",size:56,type:"bar",onClick:y,disabled:h==="disabled",icon:"circle",ariaLabel:u("training.heardWell","\uC798 \uB4E4\uB838\uC5B4\uC694."),label:u("training.heardWell","\uC798 \uB4E4\uB838\uC5B4\uC694."),variant:"default",selected:f===!0})]})})]})}function qr({index:e,stepIndex:n,isLast:a=!1,title:r,onDone:o,btnLabel:s,soundSrc:l,bucketPath:c,usePreviewTextBtn:u,previewText:d=null,onPreviewTextBtn:p,disabled:h,_pageIndex:m,showSoundWaveForm:b,showNoiseWaveForm:f}){const{t:g}=me.useTranslation(),C=r??g("training.listenTitle","\uC81C\uC2DC\uD558\uB294 \uBB38\uC7A5\uC744 \uB4E4\uC5B4\uC8FC\uC138\uC694."),v=h??(typeof n=="number"&&typeof e=="number"?e>n:!1);return t.jsx(jn,{index:e,stepIndex:n,isLast:a,title:C,onDone:o,titleProps:{usePreviewTextBtn:u,previewText:d,onPreviewTextBtn:p},children:t.jsx(Hr,{soundSrc:l,ttsText:l?null:d??C,bucketPath:c,btnLabel:s||g("training.listenButton","\uBB38\uC7A5 \uB4E3\uAE30"),disabled:v,className:"training-step__listen-sticky",showSoundWaveForm:b,showNoiseWaveForm:f},`audio-p${m??0}-s${e}`)})}function Ur({index:e,stepIndex:n,isLast:a=!1,title:r,onDone:o,onChange:s,context:l=[]}){const{t:c}=me.useTranslation(),u=r??c("training.orderListDefault","\uBB38\uC7A5\uC744 \uB4E4\uC740 \uC21C\uC11C\uB300\uB85C \uBC30\uCE58\uD558\uC138\uC694."),d=T=>typeof T=="string"?T:T&&(T.context||T.sentence||T.question||"")||"",[p,h]=i.useState(Array.isArray(l)?l:[]),[m,b]=i.useState(()=>(p||[]).map((T,E)=>({id:E,text:d(T)}))),f=i.useMemo(()=>typeof n!="number"||typeof e!="number"?"disabled":e<n?"done":e===n?"active":"disabled",[n,e]),g=f!=="disabled";i.useEffect(()=>{const T=Array.isArray(l)?l:[];h(T);const E=($=>{const K=($||[]).map((re,ie)=>({id:ie,text:d(re)}));if(K.length<=1)return K;const R=(re,ie)=>{if(re.length!==ie.length)return!1;for(let ue=0;ue<re.length;ue++)if(re[ue].text!==ie[ue].text)return!1;return!0};let V=Xn(K),q=0;for(;R(V,K)&&q<20;)V=Xn(K),q+=1;return V})(T);b(E);try{if(typeof s=="function"){const $=E.filter((K,R)=>K.text===d(T[R])).length;s({shuffled:E,score:$,total:(T||[]).length,initial:!0,__ts:Date.now()})}if(typeof o=="function"&&f==="active"){const $=E.filter((K,R)=>K.text===d(T[R])).length;o({shuffled:E,score:$,total:(T||[]).length,initial:!0,__ts:Date.now()})}}catch{}},[l]);const C=(T,E)=>{const $=[...m],K=T+E;if(K<0||K>=$.length)return;const R=$[K];$[K]=$[T],$[T]=R,M($);try{if(typeof o=="function"&&f==="active"){const V=$.filter((q,re)=>q.text===d(p[re])).length;o({shuffled:$,score:V,total:(p||[]).length,__ts:Date.now()})}}catch{}},[v,_]=i.useState(null),A=i.useRef(null),y=i.useRef(null),N=i.useRef(null),x=i.useRef(null),w=i.useRef(null),j=i.useRef({x:0,y:0}),k=i.useRef(null),S=i.useRef({dx:0,dy:0}),F=()=>{if(k.current!==null)return;const T=()=>{k.current=requestAnimationFrame(T);const E=j.current,$=S.current||{dx:0,dy:0};A.current&&(A.current.style.transform=`translate3d(${E.x-$.dx}px, ${E.y-$.dy}px, 0)`)};k.current=requestAnimationFrame(T)},P=i.useRef(new Map),B=i.useRef(new Map),I=()=>{const T=new Map;return P.current.forEach((E,$)=>{E&&E.getBoundingClientRect&&T.set($,E.getBoundingClientRect())}),T},M=T=>{const E=I();b(T);try{if(typeof s=="function"){const $=T.filter((K,R)=>K.text===d(p[R])).length;s({shuffled:T,score:$,total:(p||[]).length,__ts:Date.now()})}}catch{}requestAnimationFrame(()=>{const $=I();T.forEach(K=>{const R=E.get(K.id),V=$.get(K.id),q=P.current.get(K.id);if(!q||!R||!V)return;const re=R.top-V.top;re&&(q.style.transition="none",q.style.transform=`translateY(${re}px)`,requestAnimationFrame(()=>{q.style.transition="transform 420ms cubic-bezier(.22,.9,.39,1)",q.style.transform="";const ie=()=>{q.style.transition="",q.removeEventListener("transitionend",ie)};q.addEventListener("transitionend",ie)}))})})},ne=(T,E)=>{try{try{E.dataTransfer?.setData("text/plain",String(T))}catch{}try{E.dataTransfer&&(E.dataTransfer.effectAllowed="move")}catch{}try{const $=document.createElement("div");$.style.cssText="position:absolute;top:-9999px;left:-9999px;width:1px;height:1px;opacity:0;pointer-events:none;",document.body.appendChild($),E.dataTransfer?.setDragImage($,0,0),requestAnimationFrame(()=>{try{document.body.removeChild($)}catch{}})}catch{}}catch{}_(T);try{const $=m[T],K=document.createElement("div");K.className="order-list__dragging-object order-list__dragging-object--visible",K.textContent=$&&$.text?$.text:"",document.body.appendChild(K),A.current=K;const R=P.current.get($.id);let V=E.clientX||0,q=E.clientY||0;try{if(R&&R.getBoundingClientRect){const Z=R.getBoundingClientRect();V=Z.left+Z.width/2,q=Z.top+Z.height/2}}catch{}const re=K.getBoundingClientRect(),ie=re.width/2,ue=re.height/2;S.current={dx:ie,dy:ue},K.style.transition="none",j.current={x:V,y:q},K.style.transform=`translate3d(${V-ie}px, ${q-ue}px, 0)`,requestAnimationFrame(()=>{try{K.style.transition=""}catch{}F()});const Ce=Z=>{const ce=Z;j.current={x:ce.clientX,y:ce.clientY},F()};N.current=Ce,document.addEventListener("mousemove",Ce);const be=Z=>{const ce=Z;j.current={x:ce.clientX,y:ce.clientY},F()};y.current=be,document.addEventListener("dragover",be);try{E.dataTransfer?.setData("text/plain",String(T));try{E.dataTransfer?.setData("application/json",JSON.stringify({idx:T}))}catch{}}catch{}}catch{}},L=(T,E)=>{E.preventDefault();try{E.dataTransfer&&(E.dataTransfer.dropEffect="move")}catch{}try{w.current!==null&&(clearTimeout(w.current),w.current=null);const $=E.currentTarget&&E.currentTarget.closest?E.currentTarget.closest(".order-list__item"):null;if($&&x.current!==$){if(x.current)try{x.current.classList.remove("drag-over")}catch{}try{$.classList.add("drag-over")}catch{}x.current=$}}catch{}},H=(T,E)=>{E.preventDefault();const $=E.dataTransfer?.getData("text/plain")||"",K=$?parseInt($,10):v,R=T;if(typeof K!="number"||isNaN(K)||K===R){_(null),z(),ee();return}const V=e0(m,K,R);M(V),_(null),ee();try{if(typeof o=="function"&&f==="active"){const q=V.filter((re,ie)=>re.text===d(p[ie])).length;o({shuffled:V,score:q,total:(p||[]).length,__ts:Date.now()})}}catch{}try{requestAnimationFrame(()=>{const q=document.querySelectorAll(".order-list .order-list__item")[R];if(!q)return;const re=q.querySelector(".order-list__slot")||q;try{re.classList.add("pulse"),re.offsetHeight,re.classList.add("to-dark");const ie=()=>{re.classList.remove("pulse","to-dark"),re.removeEventListener("transitionend",ie)};re.addEventListener("transitionend",ie)}catch{}})}catch{}z()},ee=()=>{if(A.current){try{document.body.removeChild(A.current)}catch{}A.current=null}y.current&&(document.removeEventListener("dragover",y.current),y.current=null),N.current&&(document.removeEventListener("mousemove",N.current),N.current=null),k.current!==null&&(cancelAnimationFrame(k.current),k.current=null)},W=()=>{_(null),z(),ee()};i.useEffect(()=>()=>ee(),[]);const z=()=>{try{if(w.current!==null&&(clearTimeout(w.current),w.current=null),x.current){try{x.current.classList.remove("drag-over")}catch{}x.current=null}document.querySelectorAll(".order-list .order-list__item").forEach(T=>T.classList.remove("drag-over"))}catch{}};return i.useEffect(()=>{try{const T=Math.max(1,(m||[]).length);m.forEach((E,$)=>{const K=B.current.get(E.id);if(!K)return;let R=50;T>1&&(R=Math.round($/(T-1)*100));try{K.style.setProperty("--marker-pos",R+"%")}catch{}})}catch{}},[m]),i.useEffect(()=>()=>{ee(),w.current!==null&&(clearTimeout(w.current),w.current=null)},[]),t.jsx(jn,{index:e,stepIndex:n,isLast:a,title:u,children:t.jsx("div",{className:"order-list",children:m.map((T,E)=>{const $=Math.max(1,(m||[]).length),K=$>1?Math.round(E/($-1)*100):50;return t.jsx("div",{className:"order-list__item",children:t.jsxs("div",{className:"order-list__slot","data-disabled":f==="disabled","aria-disabled":f==="disabled",children:[f!=="disabled"?t.jsx("div",{className:"order-list__marker caption-1",style:{"--marker-pos":K+"%"},ref:R=>{const V=B.current;R?V.set(T.id,R):V.delete(T.id)},children:t.jsx("span",{className:"order-list__slot-number button-1",children:E+1})}):null,t.jsxs("div",{ref:R=>{const V=P.current;R?V.set(T.id,R):V.delete(T.id)},className:`order-list__draggable ${v===E?"dragging":""}`,"data-disabled":f==="disabled","aria-disabled":f==="disabled",tabIndex:f==="disabled"?-1:0,draggable:g,onDragStart:g?R=>ne(E,R):void 0,onDragEnter:g?R=>L(E,R):void 0,onDragOver:g?R=>L(E,R):void 0,onDragLeave:g?()=>{try{w.current!==null&&clearTimeout(w.current),w.current=setTimeout(()=>{try{const R=document.querySelectorAll(".order-list .order-list__item");R&&R[E]&&(R[E].classList.remove("drag-over"),x.current===R[E]&&(x.current=null))}catch{}},80)}catch{}}:void 0,onDrop:g?R=>H(E,R):void 0,onDragEnd:g?W:void 0,children:[t.jsx("span",{className:"order-list__item-text body-2",children:T.text}),g?t.jsxs("span",{className:"order-list__item-buttons",children:[t.jsx(se,{htmlType:"button",size:32,type:"dot",onClick:()=>C(E,-1),ariaLabel:c("training.up"),icon:"chevron-up",variant:"transparent-gray",width:48,useFaded:"true",disabled:E===0,useBorder:!1,useDisabledInvisible:!0}),t.jsx(se,{htmlType:"button",size:32,type:"dot",onClick:()=>C(E,1),ariaLabel:c("training.down"),icon:"chevron-down",variant:"transparent-gray",width:48,useFaded:"true",disabled:E===m.length-1,useBorder:!1,useDisabledInvisible:!0})]}):null]})]})},T.id)})})})}const Gb=8e3;function Kb(e,n){return new Promise(a=>{let r=!1;const o=()=>{r||(r=!0,a())};e.then(o,o),setTimeout(o,n)})}function Rl({index:e,stepIndex:n,isLast:a=!1,title:r,onDone:o,onChange:s,context:l=[],selectable:c=!1,hideLabel:u=!1,hideAudio:d=!1,maxCards:p}){const{t:h}=me.useTranslation(),m=r??h("training.cardInstructions","\uB0B1\uB9D0 \uCE74\uB4DC\uB97C \uBCF4\uACE0 \uC18C\uB9AC\uB97C \uB4E3\uACE0 \uD655\uC778\uD558\uC138\uC694."),b=i.useMemo(()=>Array.isArray(l)?l:l&&l.items||[],[l]),f=p??3,g=(b||[]).slice(0,f);(b||[]).length>f&&console.warn(`TrainingStepCard: ${b.length} items passed but only ${f} shown`);const C=typeof e=="number"?e:-1,v=typeof n!="number"?"disabled":C<n?"done":C===n?"active":"disabled",[_,A]=i.useState(null),y=i.useRef([]),[N,x]=i.useState(!1),w=i.useMemo(()=>b.map(F=>F?.id??F?.word??"").join("|"),[b]);i.useEffect(()=>{A(null),y.current=[]},[w]);const j=i.useCallback((F,P)=>{if(c)return;const B={item:F,index:P,__ts:Date.now()};try{typeof s=="function"&&s(B)}catch{}if(v==="active"&&typeof o=="function")try{o(B)}catch{}},[c,s,v,o]),k=i.useCallback(async()=>{if(!(N||v==="disabled")){x(!0);try{for(const F of y.current)F&&await Kb(F.play(),Gb)}finally{x(!1)}}},[N,v]),S=i.useCallback((F,P)=>{if(v!=="active")return;A(P);const B={selectedValue:F.word||F.title||"",selectedIndex:P,item:F,__ts:Date.now()};try{typeof s=="function"&&s(B)}catch{}if(v==="active"&&typeof o=="function")try{o(B)}catch{}},[s,v,o]);return t.jsx(jn,{index:e,stepIndex:n,isLast:a,title:m,onDone:o,titleProps:{usePlayAllBtn:!d&&g.length>0,onPlayAll:k,playAllActive:N},children:t.jsx("div",{className:"training-step__cards",children:g.length===0?t.jsx("div",{className:"training-step__empty",children:h("training.noCards","\uCE74\uB4DC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")}):g.map((F,P)=>t.jsx(Nr,{ref:B=>{y.current[P]=B},item:F,disabled:v==="disabled",onPlayDone:()=>j(F,P),selectable:c,selected:c&&_===P,onSelect:c?()=>S(F,P):void 0,flipDelay:P*120,hideLabel:u,hideAudio:d},F&&F.id||P))})})}const Yb=160,Pl=()=>{};function fn(e){const n=i.useId();if(!("variant"in e)){const{label:C,sub:v,onClick:_,children:A,align:y="horizontal",icon:N}=e,x=w=>{_&&w.target===w.currentTarget&&(w.key==="Enter"||w.key===" ")&&(w.preventDefault(),_())};return t.jsxs("div",{className:ve("panel-row",y==="vertical"?"panel-row--vertical":"",_?"panel-row--clickable":""),onClick:_,onKeyDown:_?x:void 0,role:_?"button":void 0,tabIndex:_?0:void 0,children:[N!=null&&t.jsx("div",{className:"panel-row__icon",children:N}),C!=null&&t.jsxs("div",{className:"panel-row__left",children:[t.jsx("div",{className:"panel-row__label body-3",children:C}),v&&t.jsx("div",{className:"panel-row__sub caption-1",children:v})]}),t.jsx("div",{className:"panel-row__right",children:A})]})}if(e.variant==="description")return t.jsx("div",{className:"panel-row panel-row--block",children:t.jsx("p",{className:"panel-row__description body-3",children:e.children})});if(e.variant==="empty")return t.jsx("div",{className:"panel-row panel-row--empty body-3",children:e.children});if(e.variant==="loading")return t.jsx("div",{className:"panel-row panel-row--loading",children:t.jsx(sa,{size:28})});if(e.variant==="custom"&&!e.label)return t.jsx("div",{className:"panel-row panel-row--block",children:e.children});const{variant:a,label:r,sub:o,onClick:s,required:l,error:c,align:u="horizontal",useFullWidth:d=!1,icon:p}=e,h=a==="button"?void 0:s;let m=null;const b=a==="toggle"?`panel-toggle-${n}`:void 0;if(a==="toggle"){const C=e;m=t.jsx(Li,{checked:C.checked,onChange:C.onChange,id:b})}else if(a==="segmented"){const C=e;m=t.jsx(Sn,{options:C.options,value:C.value,onChange:C.onChange,size:C.size??40,ariaLabel:r})}else if(a==="dropdown"){const C=e,v=C.dropdowns?.length?t.jsx("div",{className:`panel-row__dropdown-group${d?" panel-row__dropdown-group--full":""}`,children:C.dropdowns.map((_,A)=>t.jsx("div",{className:d?"panel-row__dropdown-item--full":void 0,children:t.jsx(Wt,{options:_.options,value:_.value,onChange:_.onChange,placeholder:_.placeholder,block:d,error:!!c,ariaLabel:_.ariaLabel??([r,_.placeholder].filter(Boolean).join(" ")||void 0)})},A))}):t.jsx(Wt,{options:C.options??[],value:C.value??"",onChange:C.onChange??Pl,block:d,error:!!c,ariaLabel:r});m=c?t.jsxs("div",{className:`panel-row__dropdown-error-wrap${d?" panel-row__dropdown-error-wrap--full":""}`,children:[v,t.jsx("span",{className:"caption-1 panel-row__error",role:"alert",children:c})]}):v}else if(a==="button"){const C=e;C.buttons?.length?m=t.jsx("div",{className:"panel-row__button-group",children:C.buttons.map((v,_)=>t.jsx(se,{htmlType:"button",size:v.btnSize??40,variant:v.btnVariant??"default",disabled:v.disabled,onClick:v.onClick,children:v.label},_))}):m=t.jsx(se,{htmlType:"button",size:C.btnSize??40,variant:C.btnVariant??"default",disabled:C.disabled,onClick:C.onClick,children:C.buttonLabel})}else if(a==="text"){const C=e;m=t.jsx("span",{className:`panel-row__text body-2${d?" panel-row__text--full":""}`,style:C.valueColor?{color:C.valueColor}:void 0,children:C.value})}else if(a==="input"){const C=e;m=t.jsxs("div",{className:`panel-row__input-wrap${d?" panel-row__input-wrap--full":""}`,children:[t.jsx(Dn,{value:C.value,onChange:C.onChange??Pl,onKeyDown:C.onKeyDown,onEnter:C.onEnter,placeholder:C.placeholder,inputMode:C.inputMode,readOnly:C.readOnly,disabled:C.disabled,type:C.type,autoComplete:C.autoComplete,maxLength:C.maxLength,showCount:C.showCount,multiline:C.multiline,rows:C.rows,fullWidth:d,error:c,ariaLabel:r,required:l}),C.helperText&&t.jsx("div",{className:"panel-row__helper caption-1",children:C.helperText})]})}else a==="custom"&&(m=e.children);const f=a==="input"||a==="dropdown"||(a==="text"||a==="custom")&&d,g=C=>{h&&C.target===C.currentTarget&&(C.key==="Enter"||C.key===" ")&&(C.preventDefault(),h())};return t.jsxs("div",{className:ve("panel-row",u==="vertical"?"panel-row--vertical":"",f?"panel-row--label-fixed":"",a==="text"?"panel-row--text":"",h?"panel-row--clickable":""),onClick:h,onKeyDown:h?g:void 0,role:h?"button":void 0,tabIndex:h?0:void 0,children:[p!=null&&t.jsx("div",{className:"panel-row__icon",children:p}),t.jsxs("div",{className:"panel-row__left",children:[b?t.jsxs("label",{htmlFor:b,className:"panel-row__label body-3",children:[r,l&&t.jsx("span",{className:"required-mark",children:"*"})]}):t.jsxs("div",{className:"panel-row__label body-3",children:[r,l&&t.jsx("span",{className:"required-mark",children:"*"})]}),o&&t.jsx("div",{className:"panel-row__sub caption-1",children:o})]}),t.jsx("div",{className:"panel-row__right",children:m})]})}function Il(e){const n=e.productName||e.brand,a=[e.brand,e.fitType].filter(r=>!!r&&r!==n);return[...new Set(a)].join(" \xB7 ")}function Zb({devices:e,onRelease:n,emptyLabel:a}){const{t:r}=me.useTranslation();return t.jsx("div",{className:"panel-row panel-row--device",children:["\uC88C","\uC6B0"].map(o=>{const s=e[o],l=o==="\uC88C"?r("device.direction.left","\uC88C"):r("device.direction.right","\uC6B0");return t.jsxs("div",{className:"panel-row__device-column",children:[t.jsxs("div",{className:"panel-row__device-head",children:[t.jsx("span",{className:"panel-row__device-side body-2b",children:l}),s&&n&&t.jsx(se,{htmlType:"button",size:32,type:"dot",icon:"x",ariaLabel:r("customers.device.unwear","\uCC29\uC6A9 \uD574\uC81C"),showTooltipInfo:r("customers.device.unwear","\uCC29\uC6A9 \uD574\uC81C"),onClick:()=>n(o)})]}),s?t.jsxs("div",{className:"panel-row__device-info",children:[t.jsxs("span",{className:"panel-row__device-kind",children:[s.device&&t.jsx(rt,{size:"small",variant:Yi(s.device),fill:"soft",label:s.device}),Il(s)&&t.jsx("span",{className:"panel-row__device-detail body-3",children:Il(s)})]}),t.jsx("span",{className:"panel-row__device-name body-2b",children:s.productName||s.brand}),t.jsx("span",{className:"panel-row__device-date caption-1",children:r("customers.device.wornSince",{date:`${s.wornYear}.${s.wornMonth}.${s.wornDay}`})})]}):t.jsx("span",{className:"panel-row__device-empty body-3",children:a??r("customers.device.notRegistered","\uBBF8\uB4F1\uB85D")})]},o)})})}function Ea({title:e,icon:n,disc:a,actions:r,size:o="medium",minHeight:s,maxWidth:l,className:c,scrollable:u,useBorder:d=!0,useBg:p=!0,useRowBorder:h=!0,labelWidth:m,form:b=!1,loading:f,empty:g,children:C}){const v=ve("panel",`panel--${o}`,b?"panel--form":"",s!==void 0?"panel--fill":"",d?"":"panel--no-border",p?"":"panel--no-bg",h?"":"panel--no-row-border",c),_={};return s!==void 0&&(_.minHeight=s),l!==void 0&&(_.maxWidth=typeof l=="number"?`${l}px`:l),m!==void 0&&(_["--panel-label-width"]=typeof m=="number"?`${m}px`:m),t.jsxs("div",{className:v,style:Object.keys(_).length?_:void 0,children:[(e!=null||a!=null)&&t.jsxs("div",{className:ve("panel__header",a!=null?"panel__header--with-disc":""),children:[n&&t.jsx(Ve,{icon:n,label:typeof e=="string"?e:void 0,className:"panel__icon"}),t.jsxs("div",{className:"panel__title-group",children:[e!=null&&t.jsx("h2",{className:`panel__title ${a!=null?"body-3b":"h5b"}`,children:e}),a!=null&&t.jsx("p",{className:"panel__disc caption-1",children:a})]}),r&&t.jsx("div",{className:"panel__actions",children:r})]}),f?t.jsx(fn,{variant:"loading"}):g!=null&&i.Children.toArray(C).length===0?t.jsx(fn,{variant:"empty",children:g}):u?t.jsx("div",{className:"panel__body--scroll",children:C}):C]})}function Xb({cols:e=2,children:n}){return t.jsx("div",{className:"panel-grid",style:{"--panel-grid-cols":e},children:n})}function Jb(e){return[{label:e("training.noise.level.none","\uC5C6\uC74C"),value:0},{label:e("training.noise.level.weak","\uC57D\uD568"),value:1},{label:e("training.noise.level.medium","\uBCF4\uD1B5"),value:2},{label:e("training.noise.level.strong","\uAC15\uD568"),value:3},{label:e("training.noise.level.veryStrong","\uB9E4\uC6B0 \uAC15\uD568"),value:4}]}function Fl(e){return[{label:e("training.noise.type.default","\uAE30\uBCF8"),value:"defaultNoise",icon:"party-popper"},{label:e("training.noise.type.street","\uAE38\uAC70\uB9AC"),value:"street",icon:"car"},{label:e("training.noise.type.buzz","\uC640\uAE00\uC640\uAE00"),value:"buzz",icon:"message-square-more"},{label:e("training.noise.type.restaurant","\uC2DD\uB2F9"),value:"restaurant",icon:"coffee"}]}Jb(It.t.bind(It)),Fl(It.t.bind(It));const Gr="none",Qb=.5,ey=1.5,ty=.25;function Kr({title:e,valueLabel:n,value:a,min:r,max:o,step:s,tickStep:l,size:c,onChange:u}){return t.jsxs(fn,{variant:"custom",label:e,useFullWidth:!0,children:[t.jsx(qi,{value:a,onChange:u,min:r,max:o,step:s,size:c,showBgTick:!0,tickStep:l,ariaLabel:e,className:"noise-settings__slider-input"}),t.jsx("div",{className:"noise-settings__value button-1",children:n})]})}function Ol({anchorRect:e,onClose:n}){const{t:a}=me.useTranslation(),r=Ut("(max-width: 767px)")?40:24,o=Sa(),s=ia(o?.settings??ca),l=o?.settings.type??"defaultNoise",c=o?.settings.enabled??!0,u=o?.playbackRate??1,d=o?.mainVolume??1,p=Math.round(d*100),h=i.useCallback(g=>{try{o?.setMainVolume(Math.max(0,Math.min(1,g/100)))}catch{}},[o]),m=i.useCallback(g=>{try{o?.setPlaybackRate(g)}catch{}},[o]),b=i.useCallback(g=>{const C=Math.min(Da,Math.max(0,Math.round(g*10)/10));try{o?.setSettings({noiseRatio:C})}catch{}},[o]),f=i.useCallback(g=>{try{g===Gr?o?.setSettings({enabled:!1}):o?.setSettings({type:g,enabled:!0})}catch{}},[o]);return t.jsx(pn,{anchorRect:e,offset:12,onClose:n,ariaLabel:a("training.trainingSettingsTitle","\uD6C8\uB828 \uC124\uC815"),isMobilePopup:!1,closeOnOutsideClick:!1,header:t.jsxs("div",{className:"noise-settings__header",children:[t.jsx("span",{children:a("training.trainingSettingsTitle","\uD6C8\uB828 \uC124\uC815")}),t.jsx(se,{htmlType:"button",size:40,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,ariaLabel:a("common.close","\uB2EB\uAE30"),onClick:n})]}),children:t.jsxs(Ea,{className:"noise-settings",useBorder:!1,labelWidth:72,children:[t.jsx(Kr,{title:a("training.playVolumeTitle","\uC804\uCCB4 \uC18C\uB9AC"),valueLabel:`${p}%`,value:p,min:0,max:100,step:10,size:r,onChange:h}),t.jsx(Kr,{title:a("training.playSpeedTitle","\uC7AC\uC0DD \uC18D\uB3C4"),valueLabel:`${u.toFixed(2)}x`,value:u,min:Qb,max:ey,step:ty,size:r,onChange:m}),t.jsx(fn,{variant:"custom",label:a("training.noiseTypeTitle","\uC18C\uC74C \uC885\uB958"),useFullWidth:!0,children:t.jsx(Sn,{ariaLabel:a("training.noiseTypeTitle","\uC18C\uC74C \uC885\uB958"),size:40,shape:"rounded",options:[{key:Gr,label:a("training.noise.type.none","\uC5C6\uC74C")},...Fl(a).map(g=>({key:g.value,label:g.label}))],value:c?l:Gr,onChange:f})}),t.jsx(Kr,{title:a("training.noiseRatioTitle","\uC18C\uC74C \uBE44\uC728"),valueLabel:a("training.noiseRatioValue","{{ratio}}\uBC30",{ratio:s.toFixed(1)}),value:s,min:0,max:Da,step:kl,size:r,onChange:b})]})})}function Hl({useNoiseSettingBtn:e=!1,onSettings:n,onNext:a,onResult:r,stepIndex:o=0,stepCount:s=0,pageIndex:l=0,pageCount:c=1}){const{t:u}=me.useTranslation(),[d,p]=i.useState(!1),[h,m]=i.useState(null),[b,f]=i.useState(!1),g=i.useRef(null),C=i.useRef(null),v=Sa(),_=l<c-1,A=l===c-1,y=o===Math.max(0,s);i.useEffect(()=>{e||(p(!1),m(null))},[e]);const N=i.useCallback(()=>{p(!1),m(null)},[]),x=i.useCallback(()=>{if(d){p(!1),m(null);return}const k=g?.current?.getBoundingClientRect();k&&m(k),n?.(),p(!0)},[d,n]),w=i.useCallback(()=>{if(d){p(!1),m(null);return}const k=C?.current?.getBoundingClientRect();k&&m(k),n?.(),p(!0)},[d,n]),j=i.useCallback(()=>f(k=>!k),[]);return t.jsxs("div",{className:"pp-bottom",children:[t.jsxs("div",{className:"pp-bottom__left",children:[e?t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"pp-bottom__settings--desktop",children:t.jsx("div",{ref:g,className:"pp-bottom__tooltip-trigger","data-tooltip-ignore":!0,children:t.jsx(se,{htmlType:"button",size:56,type:"bar",icon:"settings",onClick:x,selected:d,ariaLabel:u("training.trainingSettingsTitle","\uD6C8\uB828 \uC124\uC815"),label:u("training.trainingSettingsTitle","\uD6C8\uB828 \uC124\uC815"),minWidth:140})})}),t.jsx("div",{className:"pp-bottom__settings--mobile",children:t.jsx("div",{ref:C,className:"pp-bottom__tooltip-trigger","data-tooltip-ignore":!0,children:t.jsx(se,{htmlType:"button",size:56,type:"dot",icon:"settings",onClick:w,selected:d,ariaLabel:u("training.settings","\uC124\uC815"),minWidth:52})})})]}):null,e&&t.jsx(se,{htmlType:"button",size:40,type:"dot",shape:"pill",icon:"audio-lines",onClick:j,selected:b,ariaLabel:u("training.meter.toggle","\uC624\uB514\uC624 \uBBF8\uD130 \uD45C\uC2DC")}),e&&b&&t.jsxs("div",{className:"pp-bottom__meters",children:[t.jsxs("div",{className:"pp-bottom__meter",children:[t.jsx("span",{className:"pp-bottom__meter-label caption-1",children:u("training.meter.sentence","\uC7AC\uC0DD")}),t.jsx(xr,{analyser:v?.mainAnalyser??null,orientation:"horizontal",length:112,label:"db",labelPos:"left",ariaLabel:u("training.meter.sentence","\uC7AC\uC0DD")})]}),t.jsxs("div",{className:"pp-bottom__meter",children:[t.jsx("span",{className:"pp-bottom__meter-label caption-1",children:u("training.meter.noise","\uC18C\uC74C")}),t.jsx(xr,{analyser:v?.noiseAnalyser??null,orientation:"horizontal",length:112,label:"db",labelPos:"left",ariaLabel:u("training.meter.noise","\uC18C\uC74C")})]})]})]}),t.jsxs("div",{className:"pp-bottom__right",children:[A&&t.jsx(se,{htmlType:"button",size:56,type:"bar",icon:"check",onClick:typeof r=="function"?r:a,ariaLabel:u("training.viewResult","\uACB0\uACFC\uBCF4\uAE30"),label:u("training.viewResult","\uACB0\uACFC\uBCF4\uAE30"),variant:"main",disabled:!y}),_&&t.jsx(se,{htmlType:"button",size:56,type:"bar",rightIcon:"chevron-right",align:"right",onClick:a,ariaLabel:u("training.nextQuestion","\uB2E4\uC74C \uBB38\uC81C"),label:u("training.nextQuestion","\uB2E4\uC74C \uBB38\uC81C"),variant:"main",disabled:!y})]}),e&&d&&t.jsx(Ol,{anchorRect:h,onClose:N})]})}function Vl({title:e,subtitle:n,desc:a,depth:r,icon:o,wrapperStyle:s,iconTooltip:l,pageIndex:c,pageCount:u,progressMax:d,progressIndex:p,onBack:h,onClose:m}){const{t:b}=me.useTranslation(),f=Ut("(max-width: 767px)"),g=Number.isInteger(p)?p:c||0,C=Number.isInteger(d)?d:u||0,v=h||m,_=Array.isArray(r)?f?r[r.length-1]:r.join(" / "):r,A=typeof e=="string"?e.trim():e,y=typeof n=="string"?n.trim():n,N=!!(A||y),x=N?A||y:b("common.emptyTrainingName","\uD6C8\uB828 \uC774\uB984\uC774 \uBE44\uC5B4 \uC788\uC2B5\uB2C8\uB2E4."),w=_||n,j=f&&typeof w=="string"&&(w.includes(" \xB7 ")||w.includes(" / "))?w.split(/\s[·/]\s/).pop():w,k=i.useMemo(()=>{const S=s&&typeof s=="object"?{...s}:{};return!("width"in S)&&!("height"in S)&&(S.width="40px",S.height="40px"),S},[s]);return t.jsxs("header",{className:"pp-title training-popup-title",children:[t.jsxs("div",{className:"pp-title__left",children:[v?t.jsx(se,{htmlType:"button",size:48,type:"dot",icon:"chevron-left",ariaLabel:b("common.back","\uB4A4\uB85C"),onClick:v,useBorder:!1,iconSize:"large",iconColor:"--color-black",variant:"transparent-gray"}):null,t.jsx("div",{children:o?t.jsx(Ji,{icon:o,label:e,tooltip:l,wrapperStyle:k}):null}),t.jsxs("div",{className:"pp-title__text",children:[j?t.jsx("span",{className:"pp-title__depth caption-1",children:j}):null,t.jsx("span",{className:`pp-title__title h2${N?"":" pp-title__title--empty"}`,children:x}),a?t.jsx("span",{className:"pp-title__description caption-1",children:a}):null]})]}),t.jsx(Ki,{max:Math.max(0,C??0),index:Math.max(0,g??0)})]})}function ny(){typeof window<"u"&&window.dispatchEvent(new CustomEvent("speechear.popup.close"))}function ay(e){return!e&&e!==0?[]:Array.isArray(e)?e.flatMap(n=>typeof n=="string"?n.split("|").map(a=>a.trim()).filter(Boolean):n||n===0?[String(n)]:[]):typeof e=="string"?e.split("|").map(n=>n.trim()).filter(Boolean):[String(e)]}function zl(e,n,a){const r=e,o=r?.title||r?.name||(Array.isArray(n)?n[n.length-1]:void 0)||a||"\uD6C8\uB828",s=Cs().find(c=>c.key===(r?.category_0||r?.category_main_code)),l=s?.subs?.find(c=>c.key===(r?.category_1||r?.category_sub_code));return{title:o,label:r?.title||o,depth:n,icon:s?.icon,wrapperStyle:s?.color?{"--t-item-fg":s.color}:void 0,iconTooltip:[s?.label,l?.label].filter(Boolean).join(" / ")||void 0}}function Yr(e){return e&&typeof e=="object"&&typeof e.__ts=="number"?e.__ts:0}function ry(e){const n=e;return Array.isArray(n?.items)?n.items:Array.isArray(e)?e:e?[e]:[]}function oy({idPrefix:e,trainingData:n,depth:a,fallbackTitle:r="\uD6C8\uB828",pages:o=[],emptyMessage:s,buildResults:l,metaPatch:c}){const u=zl(n,a,r),d=typeof c=="function"?c(u)||{}:c||{},p=n?.id||n?.title||o.length;return{id:`${e}:${p}`,meta:{...u,...d},pages:o,emptyMessage:s,buildResults:l}}function sy(e){if(typeof e=="string")return e;if(e&&typeof e=="object"){const n=e;return n.context||n.sentence||n.question||""||""}return""}function iy(e){if(e&&typeof e=="object"){const n=e;if(Array.isArray(n.selectedValues))return n.selectedValues;if(n.selectedValue!==void 0)return n.selectedValue;if(n.selectedIndex!==void 0)return n.selectedIndex;if(n.value!==void 0)return n.value}return e}function ly(e,n=[]){if(Array.isArray(e))return e.join(", ");if(typeof e=="number"&&Array.isArray(n))return String(n[e]??"");if(typeof e=="string")return e}function Wl(e,n){if(!(!e||typeof e!="object"))return e[`step-${n}`]}function cy(e,n,a,r){return Wl(e,n*a+r)}function uy({payload:e,selected:n,choices:a=[],correctAnswers:r=[]}){if(e&&typeof e=="object"){const o=e;if(Array.isArray(o.selectedValues))return r.every(s=>o.selectedValues.includes(s))&&o.selectedValues.every(s=>r.includes(s));if(typeof o.correct=="boolean")return o.correct}if(r.length){if(typeof n=="number"&&Array.isArray(a)&&a.length)return r.some(o=>String(o)===String(a[n]));if(typeof n<"u")return r.some(o=>String(o)===String(n))}}function dy(e){return e?Array.isArray(e.items)?e.items.map(n=>{const a=n;return typeof n=="string"?{sentence:n}:{sentence:a.context||a.sentence||"",contextCode:a.contextCode||a.context_code}}):Array.isArray(e.sentences)?e.sentences.map(n=>{const a=n;return typeof n=="string"?{sentence:n}:{sentence:a.sentence||a.context||"",contextCode:a.contextCode}}):Array.isArray(e.contexts)?e.contexts:e.contextCode?[{contextCode:e.contextCode}]:[]:[]}const ql=i.createContext(null);function py(){const e=i.useContext(ql);if(!e)throw new Error("useTrainingPagePopupContext must be used inside TrainingPagePopup");return e}function hy({index:e,stepIndex:n,isLast:a=!1,title:r="\uB4E4\uC740 \uC21C\uC11C\uB300\uB85C \uCE74\uB4DC\uB97C \uC120\uD0DD\uD558\uC138\uC694.",choices:o=[],onDone:s,onChange:l}){const c=typeof e=="number"?e:-1,u=typeof n!="number"?"disabled":c<n?"done":c===n?"active":"disabled",[d,p]=i.useState(()=>o.map(()=>null)),h=o.join("|");i.useEffect(()=>{p(h?h.split("|").map(()=>null):[])},[h]);const m=i.useMemo(()=>d.filter(f=>f!==null).length+1,[d]),b=i.useCallback(f=>{u==="active"&&p(g=>{const C=[...g];if(C[f]!==null){const _=C[f];return C.map(A=>A!==null&&A>=_?null:A)}C[f]=m;const v={selectedOrder:C,words:o,__ts:Date.now()};try{typeof l=="function"&&l(v)}catch{}if(C.every(_=>_!==null))try{typeof s=="function"&&s(v)}catch{}return C})},[u,m,l,s,o]);return t.jsx(jn,{index:e,stepIndex:n,isLast:a,title:r,onDone:s,children:t.jsx("div",{className:"training-step__cards",children:o.map((f,g)=>t.jsx(Nr,{item:{word:f},disabled:u==="disabled",selectable:!0,selected:d[g]!==null,orderRank:d[g],onSelect:()=>b(g),flipDelay:g*120,hideLabel:!1,hideAudio:!0},`${f}-${g}`))})})}function Ma(e){return null}Ma.__isTrainingPage=!0;function Vn(e,n){const a=py();return{ctx:a,index:e,stepIndex:a.currentStepIndex,isLast:typeof e=="number"&&typeof n=="number"?e===n-1:!1,onDone:r=>a.handleStepDone(r,e),onChange:r=>a.handleStepChange(r,e)}}function Ul({_stepIndex:e,_totalSteps:n,...a}){const{index:r,stepIndex:o,isLast:s,onDone:l}=Vn(e,n);return t.jsx(qr,{...a,index:r,stepIndex:o,isLast:s,onDone:l})}function Gl({_stepIndex:e,_totalSteps:n,...a}){const{index:r,stepIndex:o,isLast:s,onDone:l,onChange:c}=Vn(e,n);return t.jsx(zr,{...a,index:r,stepIndex:o,isLast:s,onDone:l,onChange:c})}function Kl({_stepIndex:e,_totalSteps:n,...a}){const{index:r,stepIndex:o,isLast:s,onDone:l,onChange:c}=Vn(e,n);return t.jsx(Wr,{...a,index:r,stepIndex:o,isLast:s,onDone:l,onChange:c})}function Yl({_stepIndex:e,_totalSteps:n,...a}){const{index:r,stepIndex:o,isLast:s,onDone:l,onChange:c}=Vn(e,n);return t.jsx(Ur,{...a,index:r,stepIndex:o,isLast:s,onDone:l,onChange:c})}function Zl({_stepIndex:e,_totalSteps:n,...a}){const{index:r,stepIndex:o,isLast:s,onDone:l,onChange:c}=Vn(e,n);return t.jsx(Rl,{...a,index:r,stepIndex:o,isLast:s,onDone:l,onChange:c})}function my({_stepIndex:e,_totalSteps:n,...a}){const{index:r,stepIndex:o,isLast:s,onDone:l,onChange:c}=Vn(e,n);return t.jsx(hy,{...a,index:r,stepIndex:o,isLast:s,onDone:l,onChange:c})}function Zr(...e){for(const n of e)if(typeof n=="string"){const a=n.trim();if(a.length)return a}else{if(typeof n=="number"||typeof n=="boolean")return String(n);if(Array.isArray(n)&&n.length)return n.join(", ");if(n&&typeof n=="object"){const a=n,r=[a.text,a.label,a.value];for(const o of r){if(typeof o=="string"&&o.trim().length)return o.trim();if(typeof o=="number"||typeof o=="boolean")return String(o)}}}return null}function fy(e){return Zr(e?.question,e?.q,e?.sentence,e?.text,e?.prompt,e?.wording)}function Xl(e){if(!e)return;if(typeof e.decision=="boolean")return e.decision;if(typeof e.correct=="boolean")return e.correct;if(typeof e.heard=="boolean")return e.heard;if(typeof e.judgement=="boolean")return e.judgement;const n=Zr(e?.status,e?.result,e?.judge,e?.note);if(n){const a=n.toLowerCase();if(["ok","true","\uB9DE\uC74C","\uC815\uB2F5"].some(r=>a.includes(r)))return!0;if(["ng","false","\uD2C0\uB9BC","\uC624\uB2F5"].some(r=>a.includes(r)))return!1}}function Jl(e){const{score:n,contextsLength:a,results:r=[],subtitle:o,onReplay:s,onClose:l,inline:c=!1}=e||{},{t:u}=me.useTranslation();i.useEffect(()=>{const g=a??0;n!=null&&g>0&&n/g>.5&&window.dispatchEvent(new CustomEvent("party:trigger",{detail:{count:140,strength:1.6,duration:2200}}))},[n,a]);const d=i.useCallback(g=>{const C=Xl(g),v=Zr(g?.wording,g?.label);return C===!0?{variant:"main",label:v??u("training.result.heardWell","\uC798 \uB4E4\uC5C8\uC5B4\uC694")}:C===!1?{variant:"danger",label:v??u("training.result.notHeard","\uBABB \uB4E4\uC5C8\uC5B4\uC694")}:{variant:"disabled",label:v??u("training.result.notJudged","\uBBF8\uD310\uC815")}},[u]),p=a??0,h=n??0,m=i.useMemo(()=>Array.isArray(r)?r:[],[r]),b=i.useMemo(()=>m.map(g=>{const C=g??{},v=fy(C)||u("training.result.noContent","(\uB0B4\uC6A9\uC5C6\uC74C)"),{variant:_,label:A}=d(C),y=Array.isArray(C.corrects)?C.corrects:[],N=y.length?y.join(", "):C.answer!=null&&C.answer!==""?String(C.answer):null,x=typeof C.selectedText=="string"?C.selectedText:null,w=Xl(C)===!0;return{problem:v,variant:_,label:A,answer:N,selectedText:x,isCorrect:w}}),[m,d,u]),f=i.useMemo(()=>b.some(g=>g.answer!==null||g.selectedText!==null),[b]);return t.jsx(mn,{onClose:l,closeOnBackdrop:!1,inline:c,ariaLabel:u("training.result.title","\uD6C8\uB828\uC744 \uBAA8\uB450 \uB9C8\uCCE4\uC2B5\uB2C8\uB2E4."),className:"popup--training-result",footerClassName:"trp-result__foot",footer:({animateThen:g,closeWithAnimation:C})=>t.jsxs("div",{className:"trp-actions",children:[t.jsx(se,{htmlType:"button",size:56,type:"bar",label:u("training.result.replay","\uB2E4\uC2DC\uD558\uAE30"),onClick:()=>g(s)}),t.jsx(se,{htmlType:"button",size:56,type:"bar",label:u("training.result.done","\uC644\uB8CC"),variant:"main",onClick:C})]}),children:()=>t.jsxs("div",{className:"trp-result is-on",children:[t.jsxs("header",{className:"trp-result__head",children:[t.jsx("p",{className:"trp-result__eyebrow caption-1",children:u("training.result.eyebrow","\uD6C8\uB828 \uC644\uB8CC")}),t.jsx("h1",{className:"trp-result__title h2",children:u("training.result.title","\uD6C8\uB828\uC744 \uBAA8\uB450 \uB9C8\uCCE4\uC2B5\uB2C8\uB2E4.")}),o&&t.jsx("p",{className:"trp-result__subtitle body-3",children:o}),t.jsx("div",{className:"trp-score",children:t.jsxs("div",{className:"trp-score__figure","aria-label":u("training.result.scoreAria",{correct:h,total:p}),children:[t.jsx("span",{className:"trp-score__big",children:h}),t.jsx("span",{className:"trp-score__sep",children:"/"}),t.jsx("span",{className:"trp-score__total",children:p})]})})]}),b.length>0&&t.jsx("section",{className:"trp-result__body",children:t.jsxs("div",{className:`result-table${f?" result-table--answer":""}`,role:"table","aria-label":u("training.result.tableAriaLabel","\uBB38\uD56D\uBCC4 \uD310\uC815"),children:[t.jsxs("div",{className:"result-table__head caption-1",role:"row",children:[t.jsx("span",{role:"columnheader",children:u("common.col.problem","\uBB38\uC81C")}),f&&t.jsx("span",{role:"columnheader",children:u("training.result.colAnswerSelected","\uC815\uB2F5 \xB7 \uC120\uD0DD")}),t.jsx("span",{className:"col-right",role:"columnheader",children:u("training.result.colJudge","\uD310\uC815")})]}),b.map((g,C)=>t.jsxs("div",{className:"result-table__row",role:"row",children:[t.jsxs("div",{className:"trp-row__problem",children:[t.jsx("span",{className:"trp-row__no caption-1",children:String(C+1).padStart(2,"0")}),t.jsx("div",{className:"trp-row__q body-2",children:g.problem})]}),f&&t.jsxs("div",{className:"trp-row__answers",children:[g.answer!==null&&t.jsxs("div",{className:"trp-row__answer-line",children:[t.jsx("span",{className:"trp-row__answer-label answer-correct caption-1",children:u("training.result.colAnswer","\uC815\uB2F5")}),t.jsx("span",{className:"trp-row__answer-value body-2",children:g.answer})]}),t.jsxs("div",{className:"trp-row__answer-line",children:[t.jsx("span",{className:`trp-row__answer-label answer-selected caption-1 ${g.isCorrect?"is-correct":"is-wrong"}`,children:u("training.result.colSelected","\uC120\uD0DD")}),t.jsx("span",{className:`trp-row__answer-value body-2 ${g.isCorrect?"is-correct":"is-wrong"}`,children:g.selectedText??"\u2014"})]})]}),t.jsx("div",{className:"trp-row__judge",children:t.jsx(rt,{variant:g.variant,label:g.label,fill:"soft",minWidth:80})})]},C))]})})]})})}function Cy(e){i.useEffect(()=>{if(!e)return;const n=new Date;return()=>{const a=new Date;a.getTime()-n.getTime()<5e3||r0({trainingType:e,startedAt:n.toISOString(),endedAt:a.toISOString()})}},[e])}function Xr(e,n){return e&&e.id||`page-${n??0}`}function Jr(e,n){return e&&e.key||`step-${n??0}`}function La(){return{pageIndex:0,stepIndex:0,answersByPage:{}}}function gy(e,n){return typeof e?.props=="function"?e.props(n)||{}:e?.props||{}}const Ql=new Set(["LISTEN_IN_NOISE","SHORT_STORY","LONG_STORY","ORDERING_SENTENCE"]),by=e=>t.jsx(Jl,{score:e.score,contextsLength:e.contextsLength,results:e.results,onReplay:e.onReplay,onClose:e.onClose});function yy(e){const{scenario:n,title:a,subTitle:r,depth:o,icon:s,wrapperStyle:l,iconTooltip:c,pageIndex:u,pageCount:d,stepIndex:p,stepCount:h,onBack:m,onComplete:b,onNext:f,onSettings:g,useNoiseSetting:C=!0,children:v,ariaLabel:_,label:A,buildResults:y,onResult:N,typeKey:x,entryPoint:w,dailyTotal:j,itemRef:k,renderResultPopup:S,noiseOverride:F}=e;Cy(x&&!Ql.has(x)?x:"");const P=i.useRef(0);i.useEffect(()=>{P.current=Date.now()},[]);const{t:B}=me.useTranslation(),I=N,M=!!n,ne=n?.id||null,L=n?.meta||{},H=Array.isArray(n?.pages)?n.pages:[],ee=Array.isArray(v)||i.isValidElement(v)&&typeof v!="function"?i.Children.toArray(v).filter(i.isValidElement):[],W=ee.length>0,z=O=>O===Ma||O?.__isTrainingPage===!0,T=W&&ee.some(O=>z(O.type)),E=T?ee.filter(O=>z(O.type)).map((O,Q)=>{const te=O.props||{};return{id:`children-page-${Q}`,steps:i.Children.toArray(te.children).filter(i.isValidElement),pageTop:te.pageTop||te.top||null,pageBottom:te.pageBottom||te.bottom||null}}):[{id:"children-page-0",steps:ee}],$=W&&!M&&typeof v!="function",K=$?Math.max(1,E.length):0;i.useEffect(()=>{if(!(typeof document>"u"||!document.body)&&!document.body.classList.contains("ihabdevteam-core-scope"))return document.body.classList.add("ihabdevteam-core-scope"),()=>{document.body.classList.remove("ihabdevteam-core-scope")}},[]),i.useEffect(()=>{if(typeof document>"u"||!document.body)return;const O=document.body;return O.dataset.ihabTrainingPopupCount=String(Number(O.dataset.ihabTrainingPopupCount||"0")+1),O.classList.add("ihab-training-popup-open"),()=>{const Q=Number(O.dataset.ihabTrainingPopupCount||"1")-1;Q>0?O.dataset.ihabTrainingPopupCount=String(Q):(delete O.dataset.ihabTrainingPopupCount,O.classList.remove("ihab-training-popup-open"))}},[]),i.useEffect(()=>{if(!(typeof document>"u"||!document.body))return Mg()},[]);const[R,V]=i.useState({...ca,enabled:!1}),q=i.useRef(R);i.useEffect(()=>{q.current=R},[R]);const re=i.useRef(F),ie=i.useRef(!1),ue=i.useRef(null);i.useEffect(()=>{let O=!1;const Q=te=>{if(O)return;ie.current=!0;const G=te?la({...ca,enabled:!1},te):{...ca},ae=ue.current;ue.current=null;const ke=ae?la(G,ae):G;q.current=ke,V(ke),ae&&!re.current&&ps(ke),ba(ke);const Ee=re.current;if(Ee){const Se=typeof Ee=="function"?Ee(ke):Ee,lt=la(ke,Se);q.current=lt,V(lt),ba(lt)}};return l0().then(Q),()=>{O=!0}},[]);const[Ce,be]=i.useState(null),[Z,ce]=i.useState(null),J=i.useCallback((O,Q)=>{O==="main"?be(Q):ce(Q)},[]),ge=i.useCallback(O=>{const Q=la(q.current,O);if(q.current=Q,V(Q),!ie.current){ue.current={...ue.current??{},...O},ba(Q);return}re.current||ps(Q),ba(Q)},[]),xe=R.mainSpeed,de=R.mainVolume,fe=i.useCallback(O=>ge({mainSpeed:O}),[ge]),_e=i.useCallback(O=>ge({mainVolume:O}),[ge]),De=i.useMemo(()=>({settings:R,setSettings:ge,registerAnalyser:J,mainAnalyser:Ce,noiseAnalyser:Z,playbackRate:xe,setPlaybackRate:fe,mainVolume:de,setMainVolume:_e}),[R,ge,J,Ce,Z,xe,fe,de,_e]),X=i.useRef(null),[pe,Ne]=i.useState(0),[Te,Ie]=i.useState("center"),[Ae,Ue]=i.useState(!1),Le=i.useRef(!1),ye=i.useRef(null),ze=i.useCallback(O=>{Le.current||(Le.current=!0,Ue(!0),ye.current=setTimeout(O,Yb))},[]);i.useEffect(()=>()=>{ye.current&&clearTimeout(ye.current)},[]);const Fe=i.useRef(m);i.useEffect(()=>{Fe.current=m}),i.useEffect(()=>{const O=X.current,Q=document.activeElement;if(O){const te=Array.from(O.querySelectorAll(wn)).filter(G=>!G.closest('[aria-hidden="true"]'))[0];if(te)try{te.focus()}catch{}}return()=>{const te=document.activeElement;if(!te||te===document.body||O&&O.contains(te))try{Q?.focus?.()}catch{}}},[]),i.useEffect(()=>kn(()=>ze(()=>{const O=Fe.current;typeof O=="function"&&O()})),[ze]),rr(X,!0);const[Oe,We]=i.useState(!1),He=i.useRef(!1),[je,Re]=i.useState(null),[it,Qe]=i.useState(""),[Ze,qe]=i.useState(()=>La()),Pe=i.useRef(typeof u=="number"?u:null);i.useEffect(()=>{!M&&!$||(qe(La()),Re(null))},[M,ne,$]),i.useEffect(()=>{$&&qe(O=>{const Q=Math.max(0,Math.min(O.pageIndex,Math.max(0,K-1)));return Q!==O.pageIndex?{...O,pageIndex:Q,stepIndex:0}:O})},[$,K]);const nt=$?Math.max(0,Math.min(Ze.pageIndex,K-1)):0,Je=$?E[nt]:null,et=$&&Je&&Array.isArray(Je.steps)?Je.steps:[],$e=M?Ze.pageIndex:$?nt:typeof u=="number"?u:0,Ke=M?H[Math.max(0,Math.min(Ze.pageIndex,Math.max(0,H.length-1)))]:null,Tt=M&&Ke&&Array.isArray(Ke.steps)?Ke.steps:[],dt=M?Tt.length:$?et.length:typeof h=="number"?h:0,ot=M||$?Math.max(0,Math.min(Ze.stepIndex,Math.max(0,dt))):typeof p=="number"?p:0,bt=M?H.length:$?K:typeof d=="number"?d:0;i.useLayoutEffect(()=>{const O=Pe.current;if(typeof $e=="number"&&O!==null&&$e!==O&&$e>O)try{Qe(B("training.problemNotice",{n:$e+1}))}catch{}Pe.current=typeof $e=="number"?$e:Pe.current},[$e,u,B]),i.useLayoutEffect(()=>{const O=X.current;if(!O)return;const Q=()=>O.querySelector(".page-popup__scroll");let te=null,G=null,ae=null;const ke=ct=>{const st=Q();if(!st)return;const Bt=st.scrollHeight<=st.clientHeight;if(Ie(Bt?"center":"top"),ct&&!He.current){He.current=!0;try{We(!0)}catch{}try{lt.disconnect()}catch{}}},Ee=()=>{te!==null&&cancelAnimationFrame(te),te=requestAnimationFrame(()=>{G!==null&&clearTimeout(G),G=setTimeout(()=>ke(!0),60)})},Se=()=>{ae!==null&&cancelAnimationFrame(ae),ae=requestAnimationFrame(()=>ke(!1))};Ee(),window.addEventListener("resize",Se);const lt=new MutationObserver(Ee);lt.observe(O,{childList:!0,subtree:!0,attributes:!0});const mt=setTimeout(()=>{He.current||ke(!0)},400);return()=>{window.removeEventListener("resize",Se),te!==null&&cancelAnimationFrame(te),G!==null&&clearTimeout(G),ae!==null&&cancelAnimationFrame(ae),clearTimeout(mt);try{lt.disconnect()}catch{}}},[X]);const Kt=i.useCallback(O=>{X.current&&(X.current._childOnNext=O)},[]),gn=i.useCallback(O=>{X.current&&(X.current._childOnResult=O)},[]),Ct=i.useCallback((O,Q,te)=>{qe(G=>{const ae=G.answersByPage[O]||{},ke=ae[Q],Ee=Yr(te),Se=Yr(ke);return ke&&Se>Ee?G:{...G,answersByPage:{...G.answersByPage,[O]:{...ae,[Q]:te}}}})},[qe]),kt=i.useCallback((O,Q,te)=>{const G=Xr(Ke,$e),ae=Jr(O,Q);Ct(G,ae,te)},[Ke,$e,Ct]),Lt=i.useCallback((O,Q,te)=>{const G=Xr(Ke,$e),ae=Jr(O,Q);Ct(G,ae,te),!te?.allowChange&&O?.autoAdvance!==!1&&qe(ke=>({...ke,stepIndex:Math.max(ke.stepIndex,Q+1)}))},[Ke,$e,Ct,qe]),At=i.useCallback((O,Q)=>{const te=Je?.id||`children-page-${$e??0}`,G=typeof Q=="number"?Q:ot??0,ae=`step-${G}`;Ct(te,ae,O),O?.allowChange||qe(ke=>({...ke,stepIndex:Math.max(ke.stepIndex,G+1)}))},[Je,$e,ot,Ct,qe]),bn=i.useCallback((O,Q)=>{const te=Je?.id||`children-page-${$e??0}`,G=`step-${typeof Q=="number"?Q:ot??0}`;Ct(te,G,O)},[Je,$e,ot,Ct]),Ot=$?{currentPageIndex:$e??0,currentStepIndex:ot??0,totalStepsInPage:et.length,handleStepDone:At,handleStepChange:bn}:null,on=async()=>{const O=typeof n?.buildResults=="function"?await Promise.resolve(n.buildResults({scenario:n,pages:H,flowState:Ze,answersByPage:Ze.answersByPage})):null;return typeof I=="function"&&await Promise.resolve(I(O))||O},yn=async()=>{const O=Je?.id||`children-page-${Ze.pageIndex}`,Q=Ze.answersByPage[O]||{},te=T?(()=>{const ke={};let Ee=0;return E.forEach(Se=>{const lt=Ze.answersByPage[Se.id]||{},mt=Array.isArray(Se.steps)?Se.steps.length:0;for(let ct=0;ct<mt;ct+=1){const st=lt[`step-${ct}`];typeof st<"u"&&(ke[`step-${Ee+ct}`]=st)}Ee+=mt}),ke})():Q;if(typeof y=="function"){const ke=await Promise.resolve(y(te,{pageAnswers:Q,answersByPage:Ze.answersByPage,pages:E,currentPageId:O}));return typeof I=="function"&&await Promise.resolve(I(ke))||ke}const G=Object.entries(Q).map(([ke,Ee],Se)=>({index:Se,key:ke,payload:Ee})),ae={results:G,answers:G,score:0};return typeof I=="function"&&await Promise.resolve(I(ae))||ae},Ye=()=>{try{if(typeof document<"u"&&document.body){try{document.dispatchEvent(new CustomEvent("speechear-close-tooltips"))}catch{}document.dispatchEvent(new PointerEvent("pointerdown",{bubbles:!0,cancelable:!0})),document.dispatchEvent(new MouseEvent("click",{bubbles:!0,cancelable:!0}))}}catch{}if(M){const te=on();Re({});const G=te;Promise.resolve(G).then(ae=>{Re(ae||{isEmpty:!0})}).catch(ae=>{Re({isEmpty:!0})});return}if($){const te=yn();Re({});const G=te;Promise.resolve(G).then(ae=>{Re(ae||{isEmpty:!0})}).catch(ae=>{Re({isEmpty:!0})});return}const O=X.current&&X.current._childOnResult,Q=te=>{try{return te?te():void 0}catch{return}};if(typeof O=="function"){const te=Q(O);try{typeof document>"u"?require("url").pathToFileURL(__filename).href:Jt&&Jt.tagName.toUpperCase()==="SCRIPT"&&Jt.src||new URL("components.cjs.js",document.baseURI).href}catch{}te&&typeof te.then!="function"?Re(te):Re(te&&typeof te.then=="function"?{}:{}),Promise.resolve(te).then(G=>{G&&Re(G)}).catch(G=>{});return}if(typeof I=="function"){const te=Q(I);try{typeof document>"u"?require("url").pathToFileURL(__filename).href:Jt&&Jt.tagName.toUpperCase()==="SCRIPT"&&Jt.src||new URL("components.cjs.js",document.baseURI).href}catch{}te&&typeof te.then!="function"?Re(te):Re(te&&typeof te.then=="function"?{}:{}),Promise.resolve(te).then(G=>{try{typeof document>"u"?require("url").pathToFileURL(__filename).href:Jt&&Jt.tagName.toUpperCase()==="SCRIPT"&&Jt.src||new URL("components.cjs.js",document.baseURI).href}catch{}G&&Re(G)}).catch(G=>{console.error("viewResults external handler failed",G)});return}},Nt=()=>{if(M){if(typeof $e=="number"&&typeof bt=="number"&&$e<bt-1){qe(Q=>({...Q,pageIndex:Q.pageIndex+1,stepIndex:0}));return}return Ye()}if($){const Q=et.length;if(typeof ot=="number"&&ot<Q-1){qe(te=>({...te,stepIndex:te.stepIndex+1}));return}if(typeof $e=="number"&&typeof bt=="number"&&$e<bt-1){qe(te=>({...te,pageIndex:te.pageIndex+1,stepIndex:0}));return}return Ye()}if(typeof f=="function"){try{f()}catch{}return}const O=X.current&&X.current._childOnNext;if(typeof O=="function"){try{O()}catch{}return}},yt=M?L.title||L.label||_||B("common.popup","\uD31D\uC5C5"):a||A||(Array.isArray(o)?o[o.length-1]:void 0)||_||B("common.popup","\uD31D\uC5C5"),Yt=M?L.title??L.label??yt:a??A??yt,Zt=(O,Q)=>{const te=Xr(Ke,$e),G=Jr(O,Q),ae=Ze.answersByPage[te]?.[G],ke=gy(O,{page:Ke,pageIndex:$e,step:O,stepIndex:Q,storedPayload:ae,answersByPage:Ze.answersByPage,flowState:Ze}),Ee={key:G,index:Q,stepIndex:ot,isLast:Q===Tt.length-1};switch(O?.type){case"listen":return t.jsx(qr,{...Ee,...ke,onDone:Se=>Lt(O,Q,Se)});case"confirm":return t.jsx(zr,{...Ee,...ke,onDone:Se=>Lt(O,Q,Se),onChange:Se=>kt(O,Q,Se)});case"confirmWithText":return t.jsx(Wr,{...Ee,...ke,onDone:Se=>Lt(O,Q,Se),onChange:Se=>kt(O,Q,Se)});case"orderList":return t.jsx(Ur,{...Ee,...ke,onDone:Se=>Lt(O,Q,Se),onChange:Se=>kt(O,Q,Se)});default:return null}},$t=i.useRef(void 0);i.useEffect(()=>{const O=$t.current;if($t.current=$e,O===void 0||O===$e)return;const Q=X.current;if(!Q)return;const te=document.activeElement;if(!(!te||te===document.body||!Q.contains(te)||te.disabled===!0))return;const G=Q.querySelector(`.training-steps ${wn.split(", ").join(", .training-steps ")}`)??Array.from(Q.querySelectorAll(wn)).find(ae=>!ae.closest('[aria-hidden="true"]'));try{G?.focus()}catch{}},[$e]);const Ht=M?H.length>0?t.jsx("div",{className:"training-steps",children:Tt.map((O,Q)=>Zt(O,Q))},`replay-${pe}`):t.jsx("div",{className:"page-popup__content page-popup__content--center",children:t.jsx("div",{className:"pp-empty",children:n?.emptyMessage||B("training.noQuestions","\uBB38\uC81C\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")})}):null,sn=$?t.jsxs(ql.Provider,{value:Ot,children:[Je?.pageTop?t.jsx("div",{className:"training-page-top",children:Je.pageTop}):null,t.jsx("div",{className:"training-steps",children:et.map((O,Q)=>{const te=O;return i.cloneElement(te,{...te.props,_stepIndex:Q,_totalSteps:et.length,_stepKey:`step-${Q}`,_pageIndex:$e})})},`replay-${pe}`),Je?.pageBottom?t.jsx("div",{className:"training-page-bottom",children:Je.pageBottom}):null]}):null,Rt=i.useCallback(()=>{let O;if(x){const Q=je,te=Q?.results||Q?.answers||[],G=Array.isArray(te)&&te.length>0?te.length:null,ae=Array.isArray(te)?te.filter(Ee=>Ee?.correct===!0||Ee?.isCorrect===!0||Ee?.score===1||Ee?.heard===!0||Ee?.judgement===!0).length:null,ke=G!=null?ae:null;o0({items:i0(te),category:Ql.has(x)?"sentence":"word",trainingType:x,entryPoint:w??"sentence",itemRef:k??null,correct:ke,total:G,score:typeof Q?.score=="number"?Q.score:null,durationSeconds:Math.max(0,Math.round((Date.now()-P.current)/1e3)),dailyTotal:j??null}),O={correct:ke,total:G}}Re(null),ze(()=>{typeof b=="function"&&b(O),typeof m=="function"&&m()})},[b,m,x,w,j,k,je,Re,ze]),Xt=i.useCallback(()=>Qe(""),[Qe]),ln=i.useCallback(()=>{ze(()=>{typeof m=="function"&&m()})},[m,ze]),vt=t.jsxs("div",{className:`page-popup${Ae?" page-popup--closing":""}`,role:"dialog","aria-modal":"true","aria-label":yt,children:[t.jsxs("div",{ref:X,className:`page-popup__panel ${Oe?"":"page-popup__panel--measuring"} ${Te==="center"?"page-popup__panel--center":Te==="top"?"page-popup__panel--top":""}`,children:[t.jsx(Vl,{title:Yt,subtitle:M?L.subtitle||L.label:Array.isArray(o)?o.join(" / "):void 0,desc:M?void 0:r,depth:M?L.depth:o,icon:M?L.icon:s,wrapperStyle:M?L.wrapperStyle:l,iconTooltip:M?L.iconTooltip:c,progressMax:bt,progressIndex:$e,pageIndex:$e,pageCount:bt,onBack:ln,onClose:ln}),t.jsx("div",{className:"page-popup__scroll",children:t.jsx("div",{className:`page-popup__content ${Te==="center"?"page-popup__content--center":"page-popup__content--top"}`,children:$?sn:M?Ht:typeof v=="function"?v({registerOnNext:Kt,registerOnResult:gn,panelRef:X,setResultOverlay:Re}):v})}),t.jsx(Hl,{onSettings:g,onNext:Nt,onResult:Ye,useNoiseSettingBtn:!!(M?L.useNoiseSetting??!0:C),stepIndex:ot,stepCount:dt,pageIndex:$e,pageCount:bt})]}),je&&!je.isEmpty&&(S??by)({score:je.score,results:je.results||je.answers||[],contextsLength:je.results?je.results.length:je.answers?je.answers.length:0,onReplay:()=>{if(Re(null),Ne(O=>O+1),M){if(qe(La()),typeof n?.onReplay=="function")try{n.onReplay()}catch{}return}if($){qe(La());return}try{const O=X.current&&X.current._childOnResult;typeof O=="function"&&O({replay:!0})}catch{}},onClose:Rt}),je?.isEmpty&&t.jsx("div",{className:"page-popup page-popup--result-empty",role:"dialog","aria-modal":"true","aria-label":B("training.result.eyebrow","\uD6C8\uB828 \uC644\uB8CC"),children:t.jsxs("div",{className:"page-popup__panel page-popup__panel--center",children:[t.jsx("div",{className:"page-popup__scroll",children:t.jsx("div",{className:"page-popup__content page-popup__content--center",children:t.jsx("div",{className:"page-popup__empty",children:B("training.result.eyebrow","\uD6C8\uB828 \uC644\uB8CC")})})}),t.jsx("div",{className:"page-popup__bottom",children:t.jsx(se,{htmlType:"button",variant:"main",size:48,onClick:Rt,label:B("training.result.done","\uC644\uB8CC")})})]})}),t.jsx(Rn,{message:it,position:"top",onClose:Xt})]}),oe=t.jsx(Pr.Provider,{value:De,children:vt});return typeof document<"u"&&document.body?Ft.createPortal(oe,document.body):oe}const Cn=yy;Cn.Page=Ma,Cn.ListenStep=Ul,Cn.ConfirmStep=Gl,Cn.ConfirmWithTextStep=Kl,Cn.OrderListStep=Yl,Cn.CardStep=Zl,Cn.CardOrderStep=my;function vy({label:e,homonum:n}){const a=Mn()?.(e,n)??"",{imgRef:r,loading:o,hasImage:s,onLoad:l,onError:c}=Ar(a);return s?t.jsxs("div",{className:"tooltip-word-image__cell",children:[o&&t.jsx("div",{className:"tooltip-word-image__spinner"}),t.jsx("img",{ref:r,src:a,alt:e,draggable:!1,style:{opacity:o?0:1},onLoad:l,onError:c})]}):t.jsx("div",{className:"tooltip-word-image__cell tooltip-word-image__cell--text h3",children:t.jsx("span",{children:e})})}function ec({words:e,anchorRect:n}){const a=i.useRef(null),[r,o]=i.useState(null);return i.useLayoutEffect(()=>{if(!n||!a.current)return;const{offsetWidth:s,offsetHeight:l}=a.current,c=window.innerWidth;let u=n.left+n.width/2-s/2,d=n.top-l-8;d<8&&(d=n.bottom+8),u=Math.max(8,Math.min(u,c-s-8)),o({left:u,top:d})},[n]),!n||e.length===0?null:Ft.createPortal(t.jsx("div",{ref:a,className:"tooltip-word-image",style:{visibility:r?"visible":"hidden",left:r?.left??0,top:r?.top??-9999},children:t.jsx("div",{className:"tooltip-word-image__cells",children:e.map(s=>t.jsx(vy,{label:s.label,homonum:s.homonum},`${s.label}_${s.homonum??1}`))})}),document.body)}function xy({titleIcon:e,resultCount:n,resultUnit:a,searchQuery:r,items:o,groups:s,selected:l=[],onSelect:c,maxSelect:u,onClearSelection:d,onPrint:p,onPrintEmpty:h,className:m,emptyHint:b,sectionType:f="page",disc:g,notice:C}){const{t:v,i18n:_}=me.useTranslation(),A=_.language?.startsWith("ko")??!1,{anchorRect:y,openAt:N,close:x}=xa(),[w,j]=i.useState(null),k=i.useCallback(()=>{x(),j(null)},[x]);V0(k,!!w);const S=(r??"").trim(),F=/^[^,[\]\s]+$/.test(S)?S:"",P=F.length>0,[B,I]=i.useState(()=>P?"match":"ganada"),[M,ne]=i.useState("50"),[L,H]=i.useState(1),[ee,W]=i.useState(P);ee!==P&&(W(P),I(P?"match":"ganada"));const z=B==="match"&&!P?"ganada":B,T=i.useMemo(()=>[...P?[{value:"match",label:v("wordSearch.sort.match",{defaultValue:"\uC2DC\uC791 \uC6B0\uC120"})}]:[],{value:"ganada",label:v("wordSearch.sort.ganada",{defaultValue:"\uAC00\uB098\uB2E4\uC21C \u2191"})},{value:"ganada_desc",label:v("wordSearch.sort.ganadaDesc",{defaultValue:"\uAC00\uB098\uB2E4\uC21C \u2193"})},{value:"syllable",label:v("wordSearch.sort.syllable",{defaultValue:"\uC74C\uC808 \uC218 \u2191"})},{value:"syllable_desc",label:v("wordSearch.sort.syllableDesc",{defaultValue:"\uC74C\uC808 \uC218 \u2193"})},{value:"grade",label:v("wordSearch.sort.grade",{defaultValue:"\uB4F1\uAE09\uC21C \u2191"})},{value:"grade_desc",label:v("wordSearch.sort.gradeDesc",{defaultValue:"\uB4F1\uAE09\uC21C \u2193"})}],[v,P]),E=i.useMemo(()=>["10","25","50","100"].map(de=>({value:de,label:v("wordSearch.pageSize",{count:Number(de),defaultValue:`${de}\uAC1C\uC529 \uBCF4\uAE30`})})),[v]),$=de=>de.words[0],K=i.useCallback((de,fe)=>{const _e=pe=>$(pe)?.label??"",De=pe=>$(pe)?.syllables??[..._e(pe)].length,X=pe=>{const Ne=parseInt($(pe)?.grade??"",10);return Number.isFinite(Ne)?Ne:999};switch(z){case"match":{const pe=[...F].length,Ne=Te=>Vm(_e(Te).slice(0,pe),F)?0:1;return Ne(de)-Ne(fe)||_e(de).localeCompare(_e(fe),"ko")}case"ganada":return _e(de).localeCompare(_e(fe),"ko");case"ganada_desc":return _e(fe).localeCompare(_e(de),"ko");case"syllable":return De(de)-De(fe)||_e(de).localeCompare(_e(fe),"ko");case"syllable_desc":return De(fe)-De(de)||_e(de).localeCompare(_e(fe),"ko");case"grade":return X(de)-X(fe)||_e(de).localeCompare(_e(fe),"ko");case"grade_desc":return X(fe)-X(de)||_e(de).localeCompare(_e(fe),"ko");default:return 0}},[z,F]),R=i.useMemo(()=>o.slice().sort(K),[o,K]),V=Number(M)||10,q=i.useMemo(()=>(s??[]).flatMap(de=>de.items.slice().sort(K).map(fe=>({item:fe,label:de.label}))),[s,K]),re=s?q.length:R.length,ie=Math.max(1,Math.ceil(re/V)),ue=Math.min(L,ie),Ce=i.useMemo(()=>R.slice((ue-1)*V,ue*V),[R,ue,V]),be=i.useMemo(()=>{if(!s)return null;const de=q.slice((ue-1)*V,ue*V),fe=new Map;for(const{item:_e,label:De}of de)fe.has(De)||fe.set(De,[]),fe.get(De).push(_e);return[...fe.entries()].map(([_e,De])=>({label:_e,items:De}))},[s,q,ue,V]);i.useEffect(()=>{H(1)},[B,M,re,r]);const Z=re>0?t.jsxs("div",{className:"word-search-result-block__toolbar",children:[t.jsx(Wt,{size:40,options:T,value:z,onChange:I,ariaLabel:v("wordSearch.sort.aria",{defaultValue:"\uC815\uB82C"})}),t.jsx(Wt,{size:40,options:E,value:M,onChange:ne,ariaLabel:v("wordSearch.pageSizeAria",{defaultValue:"\uD398\uC774\uC9C0 \uD06C\uAE30"})}),t.jsx(wa,{page:ue,totalPages:ie,onChange:H})]}):void 0,ce=de=>{c&&c(de)},J=n!==void 0&&a?t.jsxs(t.Fragment,{children:[v("wordSearch.resultTitlePrefix","\uCD1D "),t.jsx("span",{style:{color:"var(--color-main)"},children:n}),v("wordSearch.resultTitleSuffix",{unit:A?Xm(a):a})]}):void 0,ge=n!==void 0&&n>0&&u!==void 0&&a?v("wordSearch.resultDisc",{unit:A?Qm(a):a,max:u,selected:l.length}):void 0,xe=g??(C?t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"word-search-result-block__notice",children:C}),ge?t.jsx("span",{className:"word-search-result-block__disc",children:ge}):null]}):ge);return t.jsxs(Pn,{type:f,icon:e,title:J,action:Z,disc:xe,className:ve("word-search-result-block",m),children:[t.jsxs("div",{className:"word-search-result-block__inner",children:[(s?s.length===0:o.length===0)&&t.jsxs("div",{className:"word-search-result-block__empty-wrap",children:[t.jsx("p",{className:"word-search-result-block__empty body-3",children:v("wordSearch.emptyResult","\uAC80\uC0C9 \uACB0\uACFC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")}),b&&t.jsx("p",{className:"word-search-result-block__empty-hint body-3",children:b})]}),s?(be??[]).map(de=>t.jsx("div",{className:"word-search-result-block__group",children:t.jsx("div",{className:"word-search-result-block__items",children:de.items.map(fe=>{const _e=l.includes(fe.id);return t.jsx("div",{onMouseEnter:De=>{N(De.currentTarget),j(fe.words)},onMouseLeave:k,children:t.jsx(se,{htmlType:"button",size:"word",align:"grid",label:fe.words.map(De=>De.label),subLabel:fe.words.map(De=>De.subLabel).filter(Boolean).length>0?fe.words.map(De=>De.subLabel):void 0,selected:_e,onClick:()=>ce(fe.id),minWidth:200})},fe.id)})})},de.label)):t.jsx("div",{className:"word-search-result-block__items",children:Ce.map(de=>{const fe=l.includes(de.id);return t.jsx("div",{onMouseEnter:_e=>{N(_e.currentTarget),j(de.words)},onMouseLeave:k,children:t.jsx(se,{htmlType:"button",size:"word",align:"grid",label:de.words.map(_e=>_e.label),subLabel:de.words.map(_e=>_e.subLabel).filter(Boolean).length>0?de.words.map(_e=>_e.subLabel):void 0,selected:fe,onClick:()=>ce(de.id),minWidth:200})},de.id)})}),w&&y&&t.jsx(ec,{words:w,anchorRect:y})]}),ie>1&&t.jsx("div",{className:"word-search-result-block__pagination-bottom",children:t.jsx(wa,{page:ue,totalPages:ie,onChange:H})}),(d||p)&&t.jsxs("div",{className:"word-search-result-block__actions",children:[d&&t.jsx(se,{htmlType:"button",size:"56",type:"bar",label:v("common.resetSelection","\uC120\uD0DD \uCD08\uAE30\uD654"),selected:!1,disabled:l.length===0,onClick:l.length===0?void 0:d}),p&&t.jsx("div",{onClick:l.length===0?h:void 0,children:t.jsx(se,{htmlType:"button",size:"56",type:"bar",variant:"main",label:v("wordTable.title","\uB2E8\uC5B4 \uD45C \uB9CC\uB4E4\uAE30"),disabled:l.length===0,onClick:l.length===0?void 0:p})})]})]})}function _y(e,n){return n.map(a=>{const r=typeof a=="string"?a:a.label,o=typeof a=="string"?void 0:a.displayLabel;return{label:r,value:e[r]??"",displayLabel:o}})}function wy({sections:e,selectedList:n,count:a,onCountChange:r,maxCount:o=4,minCount:s=1,combinationSections:l,combinationSectionsForSlot:c,onSelect:u,placeholder:d="-",className:p,title:h,titleIcon:m,disc:b,showInfoButton:f=!1,onClearPhoneme:g,onSearch:C,onSearchEmpty:v,searchDisabled:_=!1,searchLabel:A,searchChecking:y=!1,pairMode:N=!1,sectionType:x="page",beforeSearchContent:w,beforeContent:j,afterContent:k,hideCountControl:S=!1,ordinal:F=!1}){const{t:P}=me.useTranslation(),B=i.useMemo(()=>P("wordPairs.infoNotes",{returnObjects:!0}),[P]),I=i.useMemo(()=>Array.from({length:o-s+1},(R,V)=>{const q=s+V;return{key:String(q),label:P("wordPairs.count",{n:q})}}),[P,o,s]),M=i.useMemo(()=>P("wordPairs.ordinals",{returnObjects:!0}),[P]),ne=i.useCallback(R=>F?P("wordPairs.phonemeOrdinalLabel",{ordinal:M[R-1]??R}):a===1?P("wordPairs.phonemeSingleLabel","\uC74C\uC808"):P("wordPairs.phonemeN",{n:R}),[F,M,a,P]),L=i.useCallback(R=>F?P("wordPairs.phonemeContrastOrdinalLabel",{ordinal:M[R-1]??R}):a===1?P("wordPairs.phonemeContrastSingleLabel","\uB300\uB9BD \uC74C\uC808"):P("wordPairs.phonemeContrast",{n:R}),[F,M,a,P]),H=i.useCallback((R,V)=>V?t.jsxs(t.Fragment,{children:[R,t.jsx("span",{className:"phoneme-select-block__required",children:"*"})]}):R,[]),{anchorRect:ee,toggleAt:W,close:z}=xa(),T=i.useCallback(R=>r(Number(R)),[r]),E=Ut("(max-width: 767px)"),$=i.useCallback(R=>_y(R,e).map(({label:V,value:q,displayLabel:re})=>{const ie=!!q&&q!=="\uC5C6\uC74C";return t.jsxs("span",{className:ve("phoneme-select-block__cell-jamo-part",q?"":"phoneme-select-block__cell-jamo-part--empty",ie?"":"phoneme-select-block__cell-jamo-part--no-label"),children:[t.jsx("span",{className:`phoneme-select-block__cell-jamo-char h1${q==="\uC5C6\uC74C"?" phoneme-select-block__cell-jamo-char--excluded":""}`,children:q==="\uC5C6\uC74C"?"x":q||d}),ie&&t.jsx("span",{className:"phoneme-select-block__cell-jamo-label caption-2",children:re??V})]},V)}),[e,d]),K=t.jsxs(t.Fragment,{children:[t.jsx("div",{"data-tooltip-ignore":!0,children:t.jsx(se,{htmlType:"button",size:40,type:E?"dot":void 0,icon:"info",label:E?void 0:P("wordPairs.caution","\uC720\uC758\uC0AC\uD56D"),selected:!!ee,onClick:R=>W(R.currentTarget)})}),ee&&t.jsx(An,{title:P("wordPairs.caution","\uC720\uC758\uC0AC\uD56D"),items:B,anchorRect:ee,onClose:z})]});return t.jsxs(Pn,{type:x,title:h,icon:m,disc:b,action:K,className:ve("phoneme-select-block",p),children:[j,(!S||f&&!(h||b))&&t.jsxs("div",{className:"phoneme-select-block__controls",children:[!S&&t.jsx(Sn,{options:I,value:String(a),onChange:T,size:40,className:"phoneme-select-block__count-control"}),f&&!(h||b)&&K]}),t.jsx("div",{className:"phoneme-select-block__cells",children:N?t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"phoneme-select-block__cell-group",children:Array.from({length:a}).map((R,V)=>{const q=n[V*2]??{};return t.jsxs("div",{className:"phoneme-select-block__cell",children:[t.jsx("div",{className:"phoneme-select-block__cell-circle",children:t.jsx("div",{className:"phoneme-select-block__cell-jamo",children:$(q)})}),t.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:ne(V+1)})]},V)})}),t.jsx("span",{className:"phoneme-select-block__cell-vs h3",children:P("wordPairs.phonemeSelect.vs","\uB300")}),t.jsx("div",{className:"phoneme-select-block__cell-group",children:Array.from({length:a}).map((R,V)=>{const q=n[V*2+1]??{};return t.jsxs("div",{className:"phoneme-select-block__cell",children:[t.jsx("div",{className:"phoneme-select-block__cell-circle",children:t.jsx("div",{className:"phoneme-select-block__cell-jamo",children:$(q)})}),t.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:L(V+1)})]},V)})})]}):n.map((R,V)=>t.jsxs("div",{className:"phoneme-select-block__cell",children:[t.jsx("div",{className:"phoneme-select-block__cell-circle",children:t.jsx("div",{className:"phoneme-select-block__cell-jamo",children:$(R)})}),t.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:ne(V+1)})]},V))}),(l||c)&&t.jsx("div",{className:"phoneme-select-block__panels",children:t.jsx("div",{className:"phoneme-select-block__detail",children:N?t.jsxs("div",{className:"phoneme-select-block__pair-panels",children:[t.jsx("div",{className:"phoneme-select-block__panel-group",children:Array.from({length:a}).map((R,V)=>{const q=n[V*2]??{};return t.jsx(rn,{title:H(ne(V+1),V===0),sections:c?c(q,V*2):l,selected:q,onSelect:u?.(V*2),align:"newline"},V)})}),t.jsx("div",{className:"phoneme-select-block__panel-group",children:Array.from({length:a}).map((R,V)=>{const q=n[V*2+1]??{};return t.jsx(rn,{title:L(V+1),sections:c?c(q,V*2+1):l,selected:q,onSelect:u?.(V*2+1),align:"newline"},V)})})]}):n.map((R,V)=>t.jsx(rn,{title:H(ne(V+1),V===0),sections:c?c(R,V):l,selected:R,onSelect:u?.(V),align:"newline"},V))})}),w&&t.jsx("div",{className:"phoneme-select-block__before-search",children:w}),(g||C||y)&&(()=>{const R=n.every(V=>Object.entries(V).every(([q,re])=>!re||q==="\uC885\uC131"&&re==="\uC5C6\uC74C"));return t.jsxs("div",{className:"phoneme-select-block__search-row",onClick:R?v:void 0,children:[g&&t.jsx(se,{htmlType:"button",size:"56",type:"bar",label:P("wordPairs.resetOptions","\uAC80\uC0C9 \uC635\uC158 \uCD08\uAE30\uD654"),selected:!1,disabled:R,onClick:R?void 0:g}),y?t.jsxs("div",{className:"phoneme-select-block__checking",children:[t.jsx("div",{className:"phoneme-select-block__spinner"}),t.jsx("span",{className:"button-1 phoneme-select-block__checking-label",children:A??P("wordSearch.searchButton","\uAC80\uC0C9\uD558\uAE30")})]}):C&&t.jsx(se,{htmlType:"button",size:"56",type:"bar",variant:"main",label:A??P("wordSearch.searchButton","\uAC80\uC0C9\uD558\uAE30"),disabled:R||_,onClick:R||_?void 0:C})]})})(),k]})}function ky({title:e,sections:n,selected:a,onSelect:r,className:o}){const{t:s}=me.useTranslation();return t.jsx(rn,{className:o,title:e??s("wordSearch.filterTitle","\uB2E8\uC5B4 \uAC80\uC0C9 \uC124\uC815"),sections:n,selected:a,onSelect:r,align:"inline"})}function Ay({title:e,headerAction:n,sections:a,selected:r,onSelect:o,className:s}){const{t:l}=me.useTranslation();return a.length===0?null:t.jsx(rn,{className:s,title:e??l("training.filter.phonemeGroup",{defaultValue:"\uD6C8\uB828 \uC74C\uC808"}),headerAction:n,sections:a,selected:r,onSelect:o,align:"newline"})}function Ny({title:e,mode:n,onModeChange:a,matchMode:r,onMatchModeChange:o,positionCount:s,onPositionCountChange:l,inputMode:c,onInputModeChange:u,className:d}){const{t:p}=me.useTranslation(),h={searchMode:p("wordPairs.filter.searchModeLabel","\uB300\uB9BD \uBC29\uC2DD"),phonemeOrder:p("wordPairs.filter.phonemeOrder","\uC785\uB825 \uC74C\uC808 \uC704\uCE58"),count:p("wordPairs.filter.countLabel","\uC785\uB825 \uC74C\uC808 \uAC2F\uC218"),inputMode:p("wordPairs.filter.inputModeLabel","\uC785\uB825 \uBC29\uC2DD"),orderAny:p("wordPairs.filter.orderAny","\uBB34\uAD00"),orderMatch:p("wordPairs.filter.orderMatch","\uC77C\uCE58"),include:p("wordPairs.mode.include","\uC74C\uC18C \uD3EC\uD568"),pick:p("wordPairs.mode.pick","\uC74C\uC18C \uB300\uB9BD"),explicit:p("wordPairs.mode.contrast","\uC74C\uC18C \uB300\uB9BD \uC9C0\uC815"),charInput:p("wordPairs.input.char","\uAE00\uC790 \uC120\uD0DD"),pronInput:p("wordPairs.input.pron","\uBC1C\uC74C \uC120\uD0DD")},m=C=>p("wordPairs.count",{n:C}),b=[{label:h.searchMode,items:[h.include,h.pick,h.explicit],display:"segmented",labelAction:t.jsx(aa,{title:p("wordPairs.mode.infoTitle","\uB300\uB9BD \uBC29\uC2DD"),items:[p("wordPairs.mode.infoInclude","\uC74C\uC18C \uD3EC\uD568 \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uAC00 \uBAA8\uB450 \uB4E4\uC5B4\uAC04 \uB2E8\uC5B4\uC640 \uADF8 \uB300\uB9BD\uC30D\uC744 \uCC3E\uC544\uC694."),p("wordPairs.mode.infoPick","\uC74C\uC18C \uB300\uB9BD \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uAC00 \uB300\uB9BD\uC30D \uB450 \uB2E8\uC5B4\uC758 \uC2E4\uC81C \uCC28\uC774\uC810\uC77C \uB54C\uB9CC \uB9E4\uCE6D\uB3FC\uC694."),p("wordPairs.mode.infoContrast","\uC74C\uC18C \uB300\uB9BD \uC9C0\uC815 \u2014 \uAE30\uC900 \uB2E8\uC5B4\uC640 \uB300\uB9BD \uB2E8\uC5B4\uC758 \uC74C\uC18C\uB97C \uAC01\uAC01 \uC9C1\uC811 \uC120\uD0DD\uD574 \uB300\uB9BD\uC30D\uC744 \uCC3E\uC544\uC694.")]})},{label:h.phonemeOrder,items:[h.orderAny,h.orderMatch],display:"segmented",labelAction:t.jsx(aa,{items:p("wordPairs.filter.phonemeOrderInfo",{returnObjects:!0})})},{label:h.count,items:[m(1),m(2)],display:"segmented"},{label:h.inputMode,items:[h.charInput,h.pronInput],display:"segmented",labelAction:t.jsx(aa,{title:p("wordPairs.input.infoTitle","\uC785\uB825 \uBC29\uC2DD"),items:[p("wordPairs.input.infoChar","\uAE00\uC790 \uC120\uD0DD \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uB85C \uB2E8\uC5B4(\uAE00\uC790 \uAE30\uC900)\uB97C \uCC3E\uC740 \uD6C4, \uB2E8\uC5B4\uC758 \uD45C\uC900 \uBC1C\uC74C \uB300\uB9BD\uC30D\uC744 \uCC3E\uC2B5\uB2C8\uB2E4."),p("wordPairs.input.infoPron","\uBC1C\uC74C \uC120\uD0DD \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uB85C \uD45C\uC900 \uBC1C\uC74C \uB300\uB9BD\uC30D\uC744 \uCC3E\uC2B5\uB2C8\uB2E4.")]})}],f={[h.searchMode]:n==="explicit"?h.explicit:n==="pick"?h.pick:h.include,[h.phonemeOrder]:r==="ordered"?h.orderMatch:h.orderAny,[h.count]:m(s),[h.inputMode]:c==="phoneme"?h.pronInput:h.charInput},g=(C,v)=>{v===h.searchMode?a(C===h.explicit?"explicit":C===h.pick?"pick":"include"):v===h.phonemeOrder?o(C===h.orderMatch?"ordered":"unordered"):v===h.count?l(C===m(2)?2:1):v===h.inputMode&&u(C===h.pronInput?"phoneme":"word")};return t.jsx(rn,{className:d,title:e??p("wordPairs.filter.searchOptionsTitle","\uB300\uB9BD \uC124\uC815"),sections:b,selected:f,onSelect:g,align:"inline"})}function By(e){const{title:n,items:a,columns:r,gridTemplateColumns:o,searchPlaceholder:s,searchFn:l,defaultSortKey:c,defaultSortAsc:u=!0,selectedId:d,selectedIds:p,onSelect:h,onClose:m,pageSizeOptions:b=[10,25,50,100],initialPageSize:f,emptyText:g,countLabel:C,topContent:v,className:_=""}=e,{t:A}=me.useTranslation(),y=s??A("common.search","\uAC80\uC0C9"),N=g??A("common.emptyList","\uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4."),[x,w]=i.useState(""),[j,k]=i.useState(c??r[0]?.key??""),[S,F]=i.useState(u),[P,B]=i.useState(String(f??b[0]??10)),[I,M]=i.useState(1);i.useEffect(()=>{M(1)},[x,P]);const ne=l!==null,L=i.useCallback((V,q)=>{if(!q)return!0;const re=q.toLowerCase();return r.some(ie=>{const ue=V[ie.key];return ue==null?!1:String(ue).toLowerCase().includes(re)})},[r]),H=l??L,ee=i.useMemo(()=>{const V=ne?a.filter(q=>H(q,x)):a;return j?[...V].sort((q,re)=>{const ie=q[j]??"",ue=re[j]??"";if(ie===ue)return 0;const Ce=nb(ie,ue);return S?Ce:-Ce}):V},[a,x,j,S,ne,H]),W=Math.max(1,Math.ceil(ee.length/Number(P)));I>W&&M(W);const z=Math.min(I,W),T=ee.slice((z-1)*Number(P),z*Number(P)),E=i.useCallback(V=>{j===V?F(q=>!q):(k(V),F(!0))},[j]),$=i.useMemo(()=>{if(typeof C=="function"){const V=ee.length,q=C(V);if(typeof q=="string"){const re=q.lastIndexOf(String(V));if(re>=0)return{prefix:q.slice(0,re),suffix:q.slice(re+String(V).length)}}return{label:q}}if(typeof C=="string"&&C.includes("{n}")){const[V,q]=C.split("{n}");return{prefix:V,suffix:q}}return{prefix:A("common.totalCountPrefix","\uCD1D "),suffix:A("common.totalCountSuffix","\uAC1C")}},[C,ee.length,A]),K=i.useMemo(()=>r.map(V=>({label:V.label,onClick:V.sortable!==!1?()=>E(V.key):void 0,className:V.className,sortDir:V.sortable!==!1&&j===V.key?S?"asc":"desc":null})),[r,j,S,E]),R=i.useMemo(()=>b.map(V=>({value:String(V),label:A("common.pageSizeLabel",{n:V})})),[b,A]);return t.jsxs(mn,{className:`popup-list ${_}`,title:n,onClose:m,children:[v,"label"in $&&t.jsx("p",{className:"toolbar__count body-1",children:$.label}),t.jsx(fr,{count:"label"in $?void 0:{value:ee.length,prefix:$.prefix,suffix:$.suffix},search:ne?{value:x,onChange:w,placeholder:y}:void 0,pageSize:{options:R,value:P,onChange:B},pagination:{page:z,total:W,onChange:M}}),t.jsx(wr,{size:"medium",gridTemplateColumns:o,resizable:!0,fields:K,items:T,onRowClick:h,renderRow:V=>{const q=p!=null?V.id!=null&&p.has(V.id):d!=null&&V.id===d;return r.map(re=>({content:re.render?re.render(V):V[re.key]??"",className:q?"popup-list__row--selected":re.className}))},empty:N})]})}function Dy(e){const{title:n,message:a,topContent:r,details:o,children:s,confirmLabel:l,cancelLabel:c,hideCancel:u=!1,extraAction:d,confirmVariant:p="main",confirmDisabled:h=!1,onConfirm:m,closeOnConfirm:b=!0,onClose:f,inline:g,size:C="small",className:v}=e,{t:_}=me.useTranslation(),A=i.useRef(!1),[y,N]=i.useState(!1),x=async w=>{if(A.current)return;A.current=!0;const j=typeof document<"u"?document.activeElement:null;N(!0);let k=!1;try{k=await w()}finally{k||(A.current=!1,N(!1),requestAnimationFrame(()=>{const S=document.activeElement;(!S||S===document.body)&&j?.isConnected&&j.focus()}))}};return t.jsxs(mn,{title:n,onClose:f,closeDisabled:y,inline:g,size:C,className:ve("confirm-popup",v),buttons:[...d?[{label:d.label,variant:d.variant??"default",disabled:d.disabled||y,onClick:async({closeWithAnimation:w})=>{await x(async()=>{await d.onClick(w);const j=d.closeOnClick??!0;return j&&w(),j})}}]:[],...u?[]:[{label:c??_("common.cancel","\uCDE8\uC18C"),variant:"default",disabled:y,onClick:({closeWithAnimation:w})=>w()}],{label:l??_("common.confirm","\uD655\uC778"),variant:p,disabled:h||y,onClick:async({closeWithAnimation:w})=>{await x(async()=>(await m(w),b&&w(),b))}}],children:[r!=null&&t.jsx("div",{className:"confirm-popup__top",children:r}),o&&o.length>0&&t.jsx(Ea,{children:o.map((w,j)=>t.jsx(fn,{label:w.label,children:t.jsx("span",{className:"panel-row__text body-2",children:w.value})},j))}),t.jsx("p",{className:"body-2 confirm-popup__message",children:a}),s]})}function Sy({onApply:e,onCancel:n}){const{t:a}=me.useTranslation(),[r,o]=i.useState(""),[s,l]=i.useState(!1),[c,u]=i.useState(null),d=i.useRef(null);i.useEffect(()=>{d.current?.focus()},[]);const p=i.useCallback(async b=>{const f=r.trim();if(f){l(!0),u(null);try{await e(f),b()}catch(g){u(cs(g)),l(!1),requestAnimationFrame(()=>d.current?.focus())}}},[r,e]),h=i.useCallback((b,f)=>{b.key==="Enter"&&!b.nativeEvent.isComposing&&p(f)},[p]),m=b=>{o(b.target.value),u(null)};return t.jsx(mn,{className:"coupon-input-popup",title:a("usage.couponButton","\uCFE0\uD3F0 \uC785\uB825"),size:"small",onClose:n,closeDisabled:s,buttons:[{label:a("common.cancel","\uCDE8\uC18C"),variant:"default",disabled:s,onClick:({closeWithAnimation:b})=>b()},{label:a("coupons.applyButton","\uC801\uC6A9"),variant:"main",disabled:!r.trim()||s,onClick:({closeWithAnimation:b})=>{p(b)}}],children:({closeWithAnimation:b})=>t.jsxs(t.Fragment,{children:[t.jsx("input",{ref:d,className:"coupon-input-popup__input body-2","aria-label":a("coupons.input.label","\uCFE0\uD3F0 \uCF54\uB4DC"),placeholder:a("coupons.input.placeholder","\uCFE0\uD3F0 \uCF54\uB4DC \uC785\uB825"),value:r,onChange:m,onKeyDown:f=>h(f,b),disabled:s,autoComplete:"off",spellCheck:!1}),c&&t.jsx("p",{className:"coupon-input-popup__error caption-1",role:"alert",children:c})]})})}const jy=200;function Ty(e){return e.itemId?(b0()[e.trainingType]??[]).find(n=>n?.id!=null&&String(n.id)===String(e.itemId))??null:null}function Ey({plan:e,anchorRect:n,offset:a=12,onClose:r}){const{t:o}=me.useTranslation(),s=i.useMemo(()=>y0.map(c=>({type:c,items:(e.items??[]).filter(u=>u.trainingType===c.key)})).filter(c=>c.items.length>0),[e.items]);if(s.length===0)return null;const l=t.jsx("div",{className:"tooltip-training__box",children:t.jsx("div",{className:"tooltip-training__groups",children:s.flatMap(({type:c,items:u},d)=>[d>0?t.jsx("div",{className:"tooltip-training__divider"},`div-${c.key}`):null,t.jsxs("div",{className:"tooltip-training__section",children:[t.jsx("div",{className:"tooltip-training__section-header",children:t.jsx("span",{className:"tooltip-training__type-label body-3b",children:c.label})}),t.jsx("div",{className:"tooltip-training__items",children:u.map((p,h)=>{const m=Ty(p);return m?t.jsx(kr,{index:h,type:c,trainingData:m,size:"compact",hideCheckBadge:!0},p.itemId??h):null})})]},c.key)])})});return n?t.jsx(pn,{anchorRect:n,offset:a,onClose:r,closeOnOutsideClick:!1,className:"tooltip-training",ariaLabel:o("tooltip.training","\uD6C8\uB828 \uC548\uB0B4"),children:l}):l}const tc=["var(--color-main)","var(--color-sub)"],My=2e3;function Ly(e,n){if(!n.startsWith("var("))return n;try{const a=n.slice(4,-1).trim();return getComputedStyle(e).getPropertyValue(a).trim()||null}catch{return null}}function nc({active:e=!1,count:n=40,duration:a=2e3,strength:r=1,onComplete:o,trigger:s=0}){const l=i.useMemo(()=>{const g=Math.floor(n/2),C=n-g,v=(_,A)=>Array.from({length:_}).map((y,N)=>{const x=6+Math.random()*12,w=Math.round(Math.min(18,x*Math.min(1.5,1+r*.4))),j=tc[Math.floor(Math.random()*tc.length)],k=Math.random()*300,S=(360+Math.random()*260)*r*1.2,F=(A==="left"?-95+Math.random()*40:-85-Math.random()*40)*Math.PI/180,P=Math.cos(F)*S,B=Math.sin(F)*S*1.35,I=Math.random()*720-360,M=(1200+Math.random()*3e3)*Math.min(1.6,1+r*.3),ne=Math.random()>.7?"50%":"3px";return{id:`${A}-${N}`,side:A,size:w,color:j,delay:k,vx:P,vy:B,angularVel:I,life:M,borderRadius:ne}});return[...v(g,"left"),...v(C,"right")]},[n,r]),c=i.useRef(null),u=i.useRef({}),d=i.useRef(null),p=i.useRef(o);i.useEffect(()=>{p.current=o},[o]);const h=i.useRef(null),m=i.useRef(null),b=()=>{if(typeof document>"u")return null;let g=document.querySelector("[data-ihab-effect-root]");return g||(g=document.createElement("div"),g.className="app-effect",g.dataset.ihabEffectRoot="",g.style.position="fixed",g.style.inset="0",g.style.pointerEvents="none",g.style.zIndex="99998",document.body.appendChild(g)),g};if(typeof document<"u"&&m.current==null&&(m.current=b()),i.useEffect(()=>{if(!e)return;if(typeof window<"u"&&window.matchMedia?.("(prefers-reduced-motion: reduce)").matches){p.current?.();return}const g=1200,C=performance.now(),v=m.current&&m.current!==document.body?m.current.getBoundingClientRect():null,_=Math.max(60,(window.innerHeight||800)*.05),A=z=>Math.max(40,(z||window.innerWidth)*.02),y=v?.width||window.innerWidth||375,N=v?.height||window.innerHeight||812,x=z=>{const T=[...z].sort((E,$)=>E-$);return T[Math.floor(T.length/2)]||1},w=x(l.map(z=>Math.abs(z.vy))),j=x(l.map(z=>Math.abs(z.vx))),k=Math.sqrt(2*g*(N*.72+_))/w,S=w*k/g,F=y*.5/(j*S),P=(z,T,E)=>Math.min(E,Math.max(T,z)),B=P(k,.8,2.4),I=P(F,.7,2.2),M=a>0?a/My:1,ne=l.map(z=>({...z,life:z.life*M,vx:z.vx*I,vy:z.vy*B,startTime:C+z.delay,ended:!1})),L=v?{x:v.left-A(v.width),y:v.top+v.height+_}:{x:-A(window.innerWidth),y:window.innerHeight+_},H=v?{x:v.left+v.width+A(v.width),y:v.top+v.height+_}:{x:window.innerWidth+A(window.innerWidth),y:window.innerHeight+_},ee=z=>{let T=!1;for(const E of ne){const $=u.current[E.id];if(!$||!$)continue;if(z<E.startTime){$.style.display="none";continue}if(!E._inited){const Z=E.side==="left"?L.x:H.x,ce=E.side==="left"?L.y:H.y;$.style.left=`${Z}px`,$.style.top=`${ce}px`,$.style.transform="translate3d(0px, 0px, 0)",$.style.display="block",$.style.zIndex="100000",typeof E.color=="string"&&E.color.startsWith("var(")&&($.style.background=Ly($,E.color)??"#FF0060"),E._inited=!0}const K=(z-E.startTime)/1e3;if(K<0)continue;const R=E.life/1e3;if(K>=R){$.style.opacity="0",$.style.display="none",E.ended=!0;continue}T=!0;const V=E.side==="left"?L.x:H.x,q=E.side==="left"?L.y:H.y,re=V+E.vx*K,ie=q+E.vy*K+.5*g*K*K,ue=(E.angularVel||0)*K,Ce=re-V,be=ie-q;$.style.transform=`translate3d(${Ce}px, ${be}px, 0) rotate(${ue}deg)`,$.style.opacity=`${Math.max(0,1-K/R)}`}T?d.current=requestAnimationFrame(ee):p.current?.()};d.current=requestAnimationFrame(ee);const W=setTimeout(()=>{try{if((m.current?m.current.querySelectorAll(".confetti"):document.querySelectorAll(".confetti")).length===0&&!document.querySelector(".party-container")){const z=document.createElement("div");z.className="party-container",z.style.position="fixed",z.style.inset="0",z.style.pointerEvents="none",z.style.overflow="visible",z.style.zIndex="2147483647";for(const T of l){const E=document.createElement("span");E.className=`confetti confetti--${T.side}`,E.setAttribute("aria-hidden","true"),E.style.display="none",E.style.position="fixed",E.style.left="0px",E.style.top="0px",E.style.width=`${T.size}px`,E.style.height=`${Math.max(4,T.size*.6)}px`,E.style.background=T.color,E.style.borderRadius=T.borderRadius,E.style.transform="translate3d(0,0,0)",E.style.opacity="0",z.appendChild(E),u.current[T.id]=E}(document.body||m.current).appendChild(z),h.current=z}}catch{}},300);return()=>{if(d.current&&cancelAnimationFrame(d.current),clearTimeout(W),h.current){try{h.current.remove()}catch{}h.current=null}}},[e,a,s,l]),!e)return null;const f=t.jsx("div",{className:"party-container",ref:c,children:l.map(g=>t.jsx("span",{"aria-hidden":!0,ref:C=>{u.current[g.id]=C},className:`confetti confetti--${g.side}`,style:{width:`${g.size}px`,height:`${Math.max(4,g.size*.6)}px`,background:g.color,borderRadius:g.borderRadius}},`${g.id}-${s}`))});return typeof document<"u"?Ft.createPortal(f,m.current||document.body):f}function $y({trigger:e=0,active:n=!1}){const a=i.useRef(0);return i.useEffect(()=>{a.current=e},[e]),t.jsx(nc,{active:n,trigger:e})}function Ry({title:e,sub:n,rightAction:a,titleAction:r,badge:o,badgeVariant:s="default",documentTitle:l,onBack:c,backLabel:u,wrap:d=!1}){const{t:p}=me.useTranslation();E0(typeof e=="string"?e:l??null);const h=u??p("common.back","\uB4A4\uB85C");return t.jsxs("div",{className:d?"page-title page-title--wrap":"page-title",children:[t.jsxs("div",{className:"page-title__main",children:[t.jsxs("div",{className:"page-title__title-row",children:[c&&t.jsx(se,{htmlType:"button",className:"page-title__back",size:48,type:"dot",icon:"chevron-left",iconSize:"large",useBorder:!1,iconColor:"var(--color-text-primary)",ariaLabel:h,showTooltipInfo:h,onClick:c}),t.jsx("h1",{className:"page-title__title h1",children:e}),o&&t.jsx("div",{className:"page-title__badge",children:t.jsx(rt,{label:o,size:"small",variant:s,fill:"outline"})}),r?t.jsx("div",{className:"page-title__title-action",children:r}):null]}),n&&t.jsx("p",{className:"page-title__sub body-2",children:n})]}),a?t.jsx("div",{className:"page-title__action",children:a}):null]})}function Py(e){return e??""}const ac=i.createContext({words:[],loading:!1});function Iy(){return i.useContext(ac)}function Fy({words:e,loading:n,error:a,statusMessage:r,localVersion:o,remoteVersion:s,progress:l,clearAndRefetch:c,checkRemoteVersion:u,children:d}){return t.jsx(ac.Provider,{value:{words:e,loading:n,error:a,statusMessage:r,localVersion:o,remoteVersion:s,progress:l,clearAndRefetch:c,checkRemoteVersion:u},children:d})}function Oy({items:e,actions:n,columns:a,flat:r=!1,className:o,style:s}){const l=a??e.length;return t.jsx("section",{className:ve("summary-strip",r&&"summary-strip--flat",o),style:{"--summary-strip-cols":String(l),...s},children:t.jsxs("div",{className:"summary-strip__row",children:[t.jsx("div",{className:"summary-strip__items",children:e.map((c,u)=>t.jsxs("div",{className:"summary-strip__item",children:[t.jsx("p",{className:"summary-strip__label caption-1",children:c.label}),t.jsx("p",{className:"summary-strip__value body-3b",children:c.value})]},u))}),n&&t.jsx("div",{className:"summary-strip__actions",children:n})]})})}const Hy=(e,n)=>`${e} / ${n}`;function Vy({blocks:e,sectionTitles:n,logo:a,footer:r,pageLabel:o=Hy,pageWidth:s,pageHeight:l,margin:c,className:u,style:d}){const{t:p}=me.useTranslation(),h=i.useRef(null),m=i.useRef(null),b=i.useRef(null),f=i.useRef(null),[g,C]=i.useState(null),[v,_]=i.useState(!1);i.useEffect(()=>{const B=h.current;if(!B)return;const I=()=>_(B.scrollWidth>B.clientWidth+1);if(I(),typeof ResizeObserver>"u")return;const M=new ResizeObserver(I);return M.observe(B),()=>M.disconnect()},[g]);const A=e.map(B=>`${B.id}\0${B.section??""}\0${B.group??""}`).join(""),y=g&&g.shape===A?g.pages:null,[N,x]=i.useState(0);i.useEffect(()=>{const B=f.current;if(!B||typeof ResizeObserver>"u")return;const I=new ResizeObserver(()=>x(B.offsetHeight));return I.observe(B),()=>I.disconnect()},[]),i.useLayoutEffect(()=>{const B=m.current,I=f.current;if(!B||!I)return;const M=new Map;b.current?.querySelectorAll("[data-chrome-section]").forEach(E=>{M.set(E.dataset.chromeSection??"",E.offsetHeight)});const ne=E=>I.offsetHeight-(M.get(E??"")??0),L=Array.from(B.children).map(E=>E.offsetHeight),H=[];e.forEach((E,$)=>{const K=H[H.length-1],R=K?e[K[0]]:void 0;R&&E.group!=null&&R.group===E.group?K.push($):H.push([$])});const ee=[];let W=[],z=0;const T=()=>{W.length&&ee.push(W),W=[],z=0};H.forEach(E=>{const $=E.reduce((R,V)=>R+L[V],0),K=ne(e[E[0]].section);W.length&&e[W[0]].section!==e[E[0]].section&&T(),W.length&&z+$>K&&T(),$>K?E.forEach(R=>{W.length&&z+L[R]>K&&T(),W.push(R),z+=L[R]}):(E.forEach(R=>W.push(R)),z+=$)}),T(),C({shape:A,pages:ee})},[A,N]);const w=mr,j=w,k=r??t.jsxs(t.Fragment,{children:[t.jsx("img",{src:j,alt:"IHAB",className:"report-doc__logo"}),"\xA9 IHAB, Inc. All rights reserved."]}),S=(B,I,M)=>({header:t.jsxs("div",{className:"report-doc__header",children:[t.jsx("h2",{className:"report-doc__title h3b",children:M!=null&&n?.[M]||null}),a]}),footer:t.jsxs("div",{className:"report-doc__footer caption-1",children:[t.jsx("span",{className:"report-doc__footer-left",children:k}),t.jsx("span",{className:"report-doc__page-no",children:o(B,I)})]})}),F=Array.from(new Set(e.map(B=>B.section??""))),P={...s?{"--report-page-w":s}:null,...l?{"--report-page-h":l}:null,...c?{"--report-margin":c}:null,...d};return t.jsxs("div",{ref:h,className:ve("report-doc",u),style:P,tabIndex:v?0:void 0,role:v?"group":void 0,"aria-label":v?p("report.previewRegion","\uBCF4\uACE0\uC11C \uBBF8\uB9AC\uBCF4\uAE30"):void 0,children:[t.jsxs("div",{className:"report-doc__measure","aria-hidden":!0,children:[t.jsx("div",{ref:f,className:"report-doc__ruler"}),t.jsx("div",{ref:b,children:F.map(B=>{const I=S(1,1,B||void 0);return t.jsxs("div",{"data-chrome-section":B,children:[I.header,I.footer]},B)})}),t.jsx("div",{ref:m,className:"report-doc__measure-blocks",children:e.map(B=>t.jsx("div",{children:B.content},B.id))})]}),y&&t.jsx("div",{className:"report-doc__pages",children:y.map((B,I)=>{const{header:M,footer:ne}=S(I+1,y.length,e[B[0]].section);return t.jsxs("section",{className:"report-doc__page",children:[M,B.map(L=>t.jsx("div",{children:e[L].content},e[L].id)),ne]},I)})})]})}function zy({title:e,fields:n,columns:a=4,className:r,style:o}){return t.jsxs("div",{className:ve("report-info",r),style:{"--report-info-cols":String(a),...o},children:[e&&t.jsx("p",{className:"report-info__title h5b",children:e}),t.jsx("div",{className:"report-info__grid",children:n.map((s,l)=>t.jsxs("div",{className:"report-info__field body-2",children:[t.jsx("span",{className:"report-info__label body-3",children:s.label}),t.jsx("span",{className:"report-info__value",children:s.value})]},l))})]})}function Wy({title:e,message:n,actionLabel:a,onAction:r,icon:o,onClose:s,className:l=""}){const{t:c}=me.useTranslation(),u=a??c("common.update","\uC5C5\uB370\uC774\uD2B8");return t.jsxs("div",{className:ve("update-alert",l),role:"alert",children:[s&&t.jsx("button",{type:"button",className:"update-alert__close",onClick:s,"aria-label":c("common.close","\uB2EB\uAE30"),children:"\xD7"}),t.jsxs("div",{className:"update-alert__top",children:[t.jsx("div",{className:"update-alert__icon",children:o??t.jsx(Co,{size:20,strokeWidth:2})}),t.jsxs("div",{className:"update-alert__body",children:[t.jsx("div",{className:"update-alert__title h4",children:e}),t.jsx("div",{className:"update-alert__message body-3",children:n})]})]}),r&&t.jsx(se,{htmlType:"button",size:32,variant:"main",shape:"pill",className:"update-alert__action",onClick:r,children:u})]})}function qy({title:e,description:n,topActions:a,children:r,footerLeft:o,footerRight:s,onClick:l,draggable:c,onDragStart:u,onDragEnd:d,className:p}){const h=o!=null||s!=null,m=r!=null&&r!==!1,b=i.useCallback(f=>{l&&f.target===f.currentTarget&&(f.key==="Enter"||f.key===" ")&&(f.preventDefault(),l())},[l]);return t.jsxs("div",{className:ve("training-card",l?"training-card--clickable":"",p),onClick:l,onKeyDown:l?b:void 0,role:l?"button":void 0,tabIndex:l?0:void 0,draggable:c,onDragStart:u,onDragEnd:d,children:[t.jsxs("div",{className:"training-card__header",children:[t.jsxs("div",{className:"training-card__title-row",children:[typeof e=="string"?t.jsx("h3",{className:"training-card__title h4",children:e}):e,a!=null&&t.jsx("div",{className:"training-card__top-actions",onClick:f=>f.stopPropagation(),children:a})]}),n!=null?typeof n=="string"?t.jsx("p",{className:"training-card__description body-3",children:n}):n:t.jsx("p",{className:"training-card__description body-3","aria-hidden":"true",children:" "})]}),m&&t.jsx("div",{className:"training-card__body",children:r}),h&&t.jsxs("div",{className:"training-card__footer",children:[o!=null&&t.jsx("div",{className:"training-card__footer-left",children:o}),s!=null&&t.jsx("div",{className:"training-card__meta",children:s})]})]})}function Uy({title:e,count:n,collapsed:a=!1,onToggle:r,sort:o,actions:s,empty:l=!1,emptyContent:c,dragOver:u=!1,onDragOver:d,onDragLeave:p,onDrop:h,children:m,className:b}){const{t:f}=me.useTranslation(),g=r!=null,C=ve("training-card-group",u&&"training-card-group--dragover",a&&"training-card-group--collapsed",g&&"training-card-group--collapsible",b);return t.jsxs("div",{className:C,onDragOver:d,onDragLeave:p,onDrop:h,children:[t.jsxs("header",{className:"training-card-group__header",children:[g&&t.jsx(se,{htmlType:"button",size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:a?"chevron-right":"chevron-down",ariaLabel:a?f("common.expand","\uD3BC\uCE58\uAE30"):f("common.collapse","\uC811\uAE30"),className:"training-card-group__chevron",onClick:r}),typeof e=="string"?t.jsx("span",{className:"training-card-group__title h5b",children:e}):e,n!==void 0&&t.jsx("span",{className:"training-card-group__count body-3b",children:n}),(o||s!=null)&&t.jsxs("span",{className:"training-card-group__actions",onClick:v=>v.stopPropagation(),children:[o&&t.jsx(Wt,{size:40,options:o.options,value:o.value,placeholder:o.placeholder,onChange:o.onChange}),s]})]}),!a&&(l?t.jsx("div",{className:"training-card-group__empty body-3",children:c}):t.jsx("div",{className:"training-card-group__grid",children:m}))]})}const Gy="speechear:saved_word_tables";function Ky(e){if(typeof e!="object"||e===null)return!1;const n=e;return typeof n.id=="string"&&typeof n.name=="string"&&Array.isArray(n.items)}function Yy(){try{const e=localStorage.getItem(Gy);if(!e)return[];const n=JSON.parse(e);return Array.isArray(n)?n.filter(Ky):[]}catch{return[]}}function Zy({title:e,titleIcon:n,disc:a,items:r,onSaveComplete:o,onLoad:s,onRemoveItem:l,onReset:c,resetLabel:u,saveButtonLabel:d,secondarySaveButtonLabel:p,onReorder:h,showCellCount:m,onAddItem:b,className:f,renderSavePopup:g,renderWordSearch:C,hideControls:v,saveOnly:_,tableName:A,nameValue:y,onNameChange:N,descriptionValue:x,onDescriptionChange:w,namePlaceholder:j,descriptionPlaceholder:k,existingNames:S,editingName:F,onCancel:P}){const{t:B}=me.useTranslation(),I=u??B("wordPrint.clearAllSelection","\uBAA8\uB450 \uC120\uD0DD \uD574\uC81C"),M=r===void 0,ne=!!N,[L,H]=i.useState([]),ee=(y??"").trim(),W=ee||(j??"").trim(),z=(x??"").trim()||(k??"").trim(),T=(S??[]).map(G=>G.trim().toLowerCase()),E=[F?.trim().toLowerCase(),...L].filter(G=>!!G),$=[...T];for(const G of E){const ae=$.indexOf(G);ae!==-1&&$.splice(ae,1)}const K=ee!==""&&$.includes(ee.toLowerCase()),[R,V]=i.useState(Array(4).fill(null)),[q,re]=i.useState(4),[ie,ue]=i.useState(null),[Ce,be]=i.useState("landscape"),[Z,ce]=i.useState(["\uC774\uBBF8\uC9C0","\uB2E8\uC5B4","\uD45C\uC900 \uBC1C\uC74C"]),[J,ge]=i.useState("\uD45C\uC2DC"),[xe,de]=i.useState(!0),[fe,_e]=i.useState(!0),De=i.useRef(null),X=i.useRef([]),[pe,Ne]=i.useState(8),[Te,Ie]=i.useState("right"),[Ae,Ue]=i.useState(!1),[Le,ye]=i.useState(!1),{toastMessage:ze,toastType:Fe,showWarning:Oe,clearToast:We}=ai("warning"),He=i.useCallback(()=>ue(null),[ue]);b&&!M&&!m&&zn("word-table-block-add-without-cell-count",'[WordTableBlock] \uD45C\uC2DC \uBAA8\uB4DC\uC5D0\uC11C onAddItem \uC740 showCellCount \uC640 \uD568\uAED8 \uC918\uC57C "\uCD94\uAC00\uD558\uAE30" \uCE78\uC774 \uC0DD\uAE34\uB2E4.');const[je,Re]=i.useState(()=>Math.max(r?.length??1,1));i.useEffect(()=>{M||Re(G=>Math.max(G,r?.length??1))},[r?.length,M]);const it=M?q:m?Math.max(je,r?.length??1):Math.max(r?.length??0,1),{width:Qe,height:Ze}=Fn[Ce],qe=!M&&!m,Pe=r?.length??0,nt=Math.min(pe,Math.max(Pe,1)),Je=qe?nt:it,et=qe?rl(r??[],Je):null,$e=!!et&&et.length>1,Ke=M?R.some(G=>G!==null&&G.length>1):(r??[]).some(G=>G.words.length>1),Tt=A?.trim()||`${ms(u0())} ${Ke?B("wordTable.printFileNamePair","\uB300\uB9BD\uC30D\uD45C"):B("wordTable.printFileNameSingle","\uB2E8\uC5B4\uD45C")}`,dt=i.useCallback(()=>$e?X.current.filter(G=>G!==null):De.current?[De.current]:[],[$e]),{print:ot,openNewWindow:bt,downloadHtml:Kt}=Er({getElements:dt,paperW:Qe,paperH:Ze,fileName:Tt,onPopupBlocked:()=>{Oe(B("wordTable.popupBlocked","\uD31D\uC5C5\uC774 \uCC28\uB2E8\uB418\uC5C8\uC2B5\uB2C8\uB2E4. \uBE0C\uB77C\uC6B0\uC800 \uC124\uC815\uC5D0\uC11C \uD31D\uC5C5\uC744 \uD5C8\uC6A9\uD574 \uC8FC\uC138\uC694."))}}),gn=G=>{re(G),V(ae=>{const ke=Array(G).fill(null);return ae.slice(0,G).forEach((Ee,Se)=>{ke[Se]=Ee}),ke}),ue(null)},Ct=G=>{V(ae=>{const ke=[...ae];return ke[G]=null,ke}),ie===G&&ue(null)},kt=G=>{if(ie===null)return;const ae=ie;V(Ee=>{const Se=[...Ee];return Se[ae]=G,Se});const ke=R.findIndex((Ee,Se)=>Se>ae&&Ee===null);ue(ke!==-1?ke:null)},Lt=M?R.some(G=>G?.some(ae=>!!ae.colloquialPronunciation)):(r??[]).some(G=>G.words.some(ae=>!!ae.colloquialLabel)),At=i.useMemo(()=>Mn()?M?R.flatMap(G=>(G??[]).map(ae=>[ae.word,ae.homonum])):(r??[]).flatMap(G=>G.words.map(ae=>[ae.label,ae.homonum])):[],[M,R,r]),[bn,Ot]=i.useState(!1);i.useEffect(()=>{if(At.length===0)return;let G=!1;return Promise.all(At.map(([ae,ke])=>os(ae,ke))).then(ae=>{G||Ot(ae.some(Boolean))}),()=>{G=!0}},[At]);const on=At.length>0&&bn,yn=i.useMemo(()=>[...M||m?[{label:B("wordTable.filter.columns","\uCE78 \uC218"),items:z4.map(G=>({value:`${G}\uCE78`,displayLabel:B("wordTable.filter.column",{count:G})})),display:"segmented"}]:[],...qe&&(r?.length??0)>0?[fl(B,{hasPairs:Ke,itemCount:Pe})]:[],...$e?[Cl(B)]:[]],[B,M,m,qe,r?.length,Ke,Pe,$e]),Ye={...M||m?{[B("wordTable.filter.columns","\uCE78 \uC218")]:`${M?q:je}\uCE78`}:{},...qe&&(r?.length??0)>0?{[B(Ke?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord")]:`${nt}\uAC1C`}:{},...$e?{[B("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")]:gl[Te]}:{}},Nt=(G,ae)=>{ae===B("wordTable.filter.columns","\uCE78 \uC218")?M?gn(parseInt(G)):Re(parseInt(G)):ae===B(Ke?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord")?Ne(parseInt(G)):ae===B("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")&&Ie(bl(G))},yt=M?R.filter(G=>G!==null).map(G=>({id:G[0].word,words:G.map(ae=>({label:ae.word,subLabel:ae.pronunciation,homonum:ae.homonum}))})):r??[],Yt=(G=!1)=>{if(ye(G),ne&&o){const ae=W.trim().toLowerCase();ae&&H(ke=>ke.includes(ae)?ke:[...ke,ae]),o(W,yt,z||void 0,G);return}if(_&&o){o("",yt,void 0,G);return}if(o){Ue(!0);return}Kt()},[Zt,$t]=i.useState(!1),[Ht,sn]=i.useState(""),Rt=Ht.trim(),Xt=Rt!==""&&T.includes(Rt.toLowerCase()),ln=()=>{sn(W?B("wordTable.save.copyName",{name:W,defaultValue:"{{name}} (\uBCF5\uC0AC)"}):""),$t(!0)},vt=()=>{!Rt||Xt||!o||(o(Rt,yt,z||void 0,!0),$t(!1))},oe=yt.length===0,O=oe||ne&&(W===""||K),Q=()=>{if(oe){Oe(B("wordTable.emptyItems","\uB2E8\uC5B4\uB97C 1\uAC1C \uC774\uC0C1 \uCD94\uAC00\uD574\uC8FC\uC138\uC694."));return}if(ne&&W===""){Oe(B("wordTable.save.nameRequired","\uD45C \uC774\uB984\uC744 \uC785\uB825\uD574 \uC8FC\uC138\uC694."));return}ne&&K&&Oe(B("wordTable.save.duplicateName","\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4."))},te=t.jsx(On,{items:yt,orientation:Ce,contentTypes:Z,cutLine:J,showOutline:xe,showDivLine:fe,count:it});return t.jsxs(t.Fragment,{children:[t.jsxs(Pn,{type:"page",icon:n,title:e,disc:a,className:ve("word-table-block",f),children:[Zt&&t.jsx(mn,{size:"small",title:p??B("wordTable.saveAsNewButton","\uB2E4\uB978 \uC774\uB984\uC73C\uB85C \uC800\uC7A5"),onClose:()=>$t(!1),footer:({closeWithAnimation:G})=>t.jsxs(t.Fragment,{children:[t.jsx(se,{htmlType:"button",size:48,type:"bar",label:B("common.cancel","\uCDE8\uC18C"),onClick:G}),t.jsx(se,{htmlType:"button",size:48,type:"bar",variant:"main",label:B("common.save","\uC800\uC7A5"),disabled:!Rt||Xt,onClick:vt})]}),children:t.jsx(Dn,{label:B("wordTable.save.nameLabel","\uC774\uB984"),value:Ht,onChange:sn,placeholder:B("wordTable.save.placeholder","\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC81C\uBAA9\uC744 \uC785\uB825\uD558\uC138\uC694."),maxLength:40,size:48,fullWidth:!0,autoFocus:!0,onEnter:vt,error:Xt?B("wordTable.save.duplicateName","\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4."):void 0})}),Ae&&o&&g?.({defaultName:typeof e=="string"?e:B("wordTable.defaultName","\uB2E8\uC5B4 \uD45C"),preview:te,previewW:Qe,previewH:Ze,items:yt,existingNames:Yy().map(G=>G.name),saveAsNew:Le,onSave:(G,ae)=>{o(G,yt,ae,Le),Ue(!1)},onCancel:()=>Ue(!1)}),(M||b)&&ie!==null&&C?.({cellIndex:ie,onConfirm:M?kt:G=>{if(b){const ae=G[0];ae&&b({id:ae.word,words:[{label:ae.word,subLabel:ae.pronunciation,homonum:ae.homonum}]})}ue(null)},onClose:He}),!v&&t.jsx(Sr,{hasImage:on,hasColloquial:Lt,contentTypes:Z,orientation:Ce,showOutline:xe,cutLine:J,showDivLine:fe,setters:{setContentTypes:ce,setOrientation:be,setShowOutline:de,setCutLine:ge,setShowDivLine:_e},showCutLine:(qe?Je:it)>1,showDivLine2:Ke,middleSections:yn,extraSelected:Ye,onExtraSelect:Nt}),$e&&et?t.jsx("div",{className:"word-table-block__pages",children:et.map((G,ae)=>t.jsx(On,{orientation:Ce,contentTypes:Z,cutLine:J,showOutline:xe,showDivLine:fe,count:Je,items:G,onRemoveItem:l,contentRef:ke=>{X.current[ae]=ke},pageNumber:{current:ae+1,total:et.length},pageNumberPosition:Te},ae))}):t.jsx(On,{orientation:Ce,contentTypes:Z,cutLine:J,showOutline:xe,showDivLine:fe,count:it,items:M?void 0:r??[],editCells:M?R:void 0,activeCell:ie,onActivateCell:M||b?ue:void 0,onRemoveCell:M?Ct:void 0,onRemoveItem:M?void 0:l,onReorder:M?void 0:h,showFillerAdd:!!b,contentRef:De}),ne&&!v&&t.jsxs(Ea,{size:"medium",labelWidth:64,useBorder:!1,useRowBorder:!1,className:"word-table-block__meta",children:[t.jsx(fn,{variant:"custom",label:B("wordTable.save.nameLabel","\uC774\uB984"),required:!0,align:"vertical",useFullWidth:!0,children:t.jsx(Dn,{required:!0,value:y??"",onChange:N,placeholder:j?j+B("wordTable.save.autoFillHint"," (Tab \uB610\uB294 space \uC785\uB825\uC2DC \uC790\uB3D9 \uC785\uB825)"):B("wordTable.save.placeholder","\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC81C\uBAA9\uC744 \uC785\uB825\uD558\uC138\uC694."),ariaLabel:B("wordTable.save.nameLabel","\uC774\uB984"),maxLength:40,size:48,fullWidth:!0,error:K?B("wordTable.save.duplicateName","\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4."):void 0,onKeyDown:G=>{(G.key==="Tab"&&!G.shiftKey||G.key===" ")&&!(y??"").trim()&&(j??"").trim()&&(G.preventDefault(),N?.(j??""))}})}),t.jsx(fn,{variant:"custom",label:B("wordTable.save.descriptionLabel","\uC124\uBA85"),align:"vertical",useFullWidth:!0,children:t.jsx(Dn,{value:x??"",onChange:w,placeholder:k?k+B("wordTable.save.autoFillHint"," (Tab \uB610\uB294 space \uC785\uB825\uC2DC \uC790\uB3D9 \uC785\uB825)"):B("wordTable.save.descriptionPlaceholder","\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC124\uBA85\uC744 \uC785\uB825\uD558\uC138\uC694."),ariaLabel:B("wordTable.save.descriptionLabel","\uC124\uBA85"),maxLength:200,multiline:!0,rows:2,fullWidth:!0,onKeyDown:G=>{(G.key==="Tab"&&!G.shiftKey||G.key===" ")&&!(x??"").trim()&&(k??"").trim()&&(G.preventDefault(),w?.(k??""))}})})]})]}),!v&&t.jsxs("div",{className:"word-table-block__actions",children:[t.jsxs("div",{className:"word-table-block__actions-left",children:[!_&&c&&t.jsx(se,{htmlType:"button",size:40,type:"bar",label:I,onClick:c}),!_&&s&&t.jsx(se,{htmlType:"button",size:40,type:"bar",label:B("wordTable.load","\uBD88\uB7EC\uC624\uAE30"),onClick:s}),!_&&t.jsx(se,{htmlType:"button",size:40,type:"bar",label:B("wordTable.openNewWindow","\uC0C8 \uCC3D\uC73C\uB85C \uBCF4\uAE30"),onClick:bt})]}),t.jsxs("div",{className:"word-table-block__actions-right",children:[P&&t.jsx(se,{htmlType:"button",size:"56",type:"bar",label:B("common.cancel","\uCDE8\uC18C"),onClick:P}),!_&&t.jsx(se,{htmlType:"button",size:"56",type:"bar",label:B("wordTable.print","\uC778\uC1C4\uD558\uAE30"),onClick:ot}),p&&t.jsx(se,{htmlType:"button",size:"56",type:"bar",label:p,onClick:()=>ne?ln():Yt(!0),disabled:oe,onDisabledClick:()=>{Oe(B("wordTable.emptyItems","\uB2E8\uC5B4\uB97C 1\uAC1C \uC774\uC0C1 \uCD94\uAC00\uD574\uC8FC\uC138\uC694."))}}),t.jsx(se,{htmlType:"button",size:"56",type:"bar",variant:"main",label:d??B("wordTable.saveButton","\uC800\uC7A5\uD558\uAE30"),onClick:()=>Yt(!1),disabled:O,onDisabledClick:Q})]})]}),t.jsx(Rn,{message:ze,type:Fe,onClose:We})]})}function rc({items:e,className:n}){const a=e.length,r=a<=3?1:2,o=Math.ceil(a/r)||1,s=r*o;return t.jsx("div",{className:ve("word-table-thumb",n),style:{gridTemplateColumns:`repeat(${r}, 1fr)`},children:Array.from({length:s},(l,c)=>{const u=e[c];return u?t.jsx("div",{className:"word-table-thumb__cell",children:(u.words.length?u.words:[{label:u.id}]).map((d,p)=>t.jsxs(i.Fragment,{children:[p>0&&t.jsx("span",{className:"word-table-thumb__divider"}),t.jsx("span",{className:"word-table-thumb__word body-3",children:d.label})]},p))},c):t.jsx("div",{className:"word-table-thumb__cell word-table-thumb__cell--empty"},c)})})}function Xy({items:e,name:n,description:a,createdAt:r,published:o,publishedLabel:s,shared:l,sharedLabel:c,isNew:u,publisherName:d,publishedAt:p,likeCount:h,downloadCount:m,onPublisherClick:b,selected:f,onClick:g,onMore:C,titleNode:v,className:_}){const{t:A}=me.useTranslation(),y=v!=null,N=d!=null||p!=null||h!=null||m!=null,x=w=>{!y&&(w.key==="Enter"||w.key===" ")&&(w.preventDefault(),g?.())};return t.jsxs("div",{className:ve("word-table-button",f?"word-table-button--selected":"",N?"":"word-table-button--no-footer",_),role:"button",tabIndex:0,"aria-label":n,onClick:y?void 0:g,onKeyDown:x,children:[u&&t.jsx("span",{className:"word-table-button__new-dot","aria-label":A("myWordTable.newBadge","\uC0C8\uB85C \uB9CC\uB4E0 \uD45C")}),t.jsx(rc,{items:e,className:"word-table-button__thumb"}),t.jsxs("div",{className:"word-table-button__info",children:[t.jsxs("div",{className:"word-table-button__info-text",children:[v??t.jsx("div",{className:"word-table-button__title h4",children:n}),a&&t.jsx("div",{className:"word-table-button__desc body-3",children:a})]}),C&&!y&&t.jsx(se,{htmlType:"button",className:"word-table-button__more",size:32,type:"dot",variant:"transparent-gray",useBorder:!1,icon:"ellipsis",ariaLabel:A("common.moreFor",{name:n}),onClick:w=>{w.stopPropagation(),C(w)}})]}),(r||o||l)&&t.jsxs("div",{className:"word-table-button__meta-row",children:[t.jsx("span",{className:"word-table-button__meta caption-1",children:r?hs(r,A):""}),t.jsxs("span",{className:"word-table-button__badges",children:[o&&t.jsx(rt,{className:"word-table-button__badge",size:"small",variant:"main",fill:"soft",iconLeft:"book-marked",label:s??A("myWordTable.publishedBadge","\uBC1C\uD589\uB428")}),l&&t.jsx(rt,{className:"word-table-button__badge",size:"small",fill:"soft",iconLeft:"link",label:c??A("myWordTable.sharedBadge","\uACF5\uC720 \uC911")})]})]}),N&&t.jsxs("div",{className:"word-table-button__footer",children:[t.jsxs("span",{className:"word-table-button__store-by",children:[d&&t.jsx("button",{className:"training-card__publisher body-4",type:"button",onClick:w=>{w.stopPropagation(),b?.()},children:d}),p&&t.jsx("span",{className:"training-card__date body-4",children:hs(p,A)})]}),t.jsxs("span",{className:"word-table-button__store-stats",children:[h!=null&&t.jsx(rt,{size:"small",fill:"soft",variant:"like",iconLeft:"heart",label:String(h)}),m!=null&&t.jsx(rt,{size:"small",fill:"soft",variant:"main",iconLeft:"download",label:String(m)})]})]})]})}/**
968
+ `).map((l,c,u)=>t.jsxs(s.Fragment,{children:[l,c<u.length-1&&t.jsx("br",{})]},c))})}),t.jsxs("div",{className:"site-footer__links",children:[t.jsxs("div",{className:"site-footer__column",children:[t.jsx("div",{className:"site-footer__column-title footer-title",children:i("footer.site.title","\uC0AC\uC774\uD2B8")}),t.jsxs("ul",{children:[t.jsx("li",{children:t.jsx("a",{className:"footer-link",href:"https://www.ihab.co.kr/",target:"_blank",rel:"noopener noreferrer",children:"IHAB"})}),t.jsx("li",{children:t.jsx("a",{className:"footer-link",href:"https://speechear.ihab.co.kr/",target:"_blank",rel:"noopener noreferrer",children:i("footer.site.malgwi","\uB9D0\uADC0")})}),t.jsx("li",{children:t.jsx("a",{className:"footer-link",href:"https://ihab-offcial-web.vercel.app/product/sound-localization",target:"_blank",rel:"noopener noreferrer",children:i("footer.site.soundDirection","\uC18C\uB9AC\uBC29\uD5A5\uC131\uC2DC\uC2A4\uD15C")})}),t.jsx("li",{children:t.jsx("a",{className:"footer-link",href:"https://ihab-offcial-web.vercel.app/product/vr-sound-localization",target:"_blank",rel:"noopener noreferrer",children:i("footer.site.vrSoundDirection","VR\uC18C\uB9AC\uBC29\uD5A5\uC131\uC2DC\uC2A4\uD15C")})}),t.jsx("li",{children:t.jsx("a",{className:"footer-link",href:"https://ihab-offcial-web.vercel.app/product/hearing-test-pro",target:"_blank",rel:"noopener noreferrer",children:i("footer.site.hearingTest","\uCCAD\uB825\uD14C\uC2A4\uD2B8 \uD504\uB85C")})})]})]}),t.jsxs("div",{className:"site-footer__column",children:[t.jsx("div",{className:"site-footer__column-title footer-title",children:i("footer.sns.title","SNS")}),t.jsxs("ul",{children:[t.jsx("li",{children:t.jsx("a",{className:"footer-link",href:"https://blog.naver.com/ihab_official",target:"_blank",rel:"noopener noreferrer",children:i("footer.sns.naverBlog","\uB124\uC774\uBC84 \uBE14\uB85C\uADF8")})}),t.jsx("li",{children:t.jsx("a",{className:"footer-link",href:"https://www.instagram.com/ihab.official.yt/",target:"_blank",rel:"noopener noreferrer",children:"Instagram"})}),t.jsx("li",{children:t.jsx("a",{className:"footer-link",href:"https://www.youtube.com/@%EC%95%84%EC%9D%B4%ED%95%B4%EB%B8%8C-%EA%B3%B5%EC%8B%9D%EC%B1%84%EB%84%90",target:"_blank",rel:"noopener noreferrer",children:"Youtube"})})]})]}),t.jsxs("div",{className:"site-footer__column",children:[t.jsx("div",{className:"site-footer__column-title footer-title",children:i("footer.policy.title","\uC815\uCC45")}),t.jsxs("ul",{children:[t.jsx("li",{children:t.jsx("a",{className:"footer-link",href:"#",onClick:l=>{e&&(l.preventDefault(),e())},children:i("footer.policy.terms","\uC774\uC6A9\uC57D\uAD00")})}),t.jsx("li",{children:t.jsx("a",{className:"footer-link",href:"#",onClick:l=>{n&&(l.preventDefault(),n())},children:i("footer.policy.privacy","\uAC1C\uC778\uC815\uBCF4 \uCC98\uB9AC\uBC29\uCE68")})})]})]})]})]}),t.jsx("hr",{className:"site-footer__rule"}),t.jsxs("div",{className:"site-footer__bottom",children:[t.jsx("div",{className:"site-footer__brand",children:t.jsx("img",{src:mr,alt:"IHAB",className:"site-footer__logo"})}),t.jsxs("div",{className:"site-footer__meta",children:[t.jsxs("div",{children:[t.jsx("span",{className:"footer-title",children:i("footer.ceo","\uB300\uD45C")}),t.jsx("span",{className:"footer-meta caption-1",children:i("footer.ceoName","\uD55C\uC9C0\uD61C")})]}),t.jsxs("div",{children:[t.jsx("span",{className:"footer-title",children:i("footer.address","\uC8FC\uC18C")}),t.jsx("span",{className:"footer-meta caption-1",children:i("footer.addressValue","\uAC15\uC6D0\uB3C4 \uCD98\uCC9C\uC2DC \uC2DC\uCCAD\uAE38 32 \uD574\uCC2C\uBE4C\uB529 3\uCE35 302\uD638")})]}),t.jsxs("div",{children:[t.jsx("span",{className:"footer-title",children:i("footer.support","\uACE0\uAC1D\uC13C\uD130")}),t.jsxs("span",{className:"footer-meta caption-1",children:[r," \xA0 ",o]})]})]})]}),t.jsx("div",{className:"site-footer__copyright footer-copyright caption-1",children:"\xA9 IHAB, Inc. All rights reserved."})]})})}function zb({logo:e,logoAlt:n="",logoHref:a,links:r=[],actions:o,className:i,containerClassName:l,renderLink:c,menuLabel:u}){const{t:d}=me.useTranslation(),p=u??{open:d("header.menuOpen","\uBA54\uB274 \uC5F4\uAE30"),close:d("header.menuClose","\uBA54\uB274 \uB2EB\uAE30")},[h,m]=s.useState(!1),b=s.useId();s.useEffect(()=>{if(!h)return;const C=An(()=>m(!1)),v=typeof window<"u"&&window.matchMedia?window.matchMedia("(min-width: 961px)"):null,x=w=>{w.matches&&m(!1)};return v&&(v.matches&&m(!1),v.addEventListener?.("change",x)),()=>{C(),v?.removeEventListener?.("change",x)}},[h]);const g=l?`${l} landing-header__inner`:"landing-header__inner",f=(C,v)=>c?c(C,{onClick:v}):t.jsx("a",{href:C.href,onClick:v,"aria-current":C.current?"page":void 0,children:C.label});return t.jsxs("header",{className:i?`landing-header ${i}`:"landing-header",children:[t.jsxs("div",{className:g,children:[e!=null&&(()=>{const C=typeof e=="string"?t.jsx("img",{src:e,alt:n,className:"landing-header__logo"}):e;return a?t.jsx("a",{href:a,className:"landing-header__brand",children:C}):t.jsx("div",{className:"landing-header__brand",children:C})})(),r.length>0&&t.jsx("nav",{className:"landing-header__links",children:r.map(C=>t.jsx("span",{children:f(C)},C.href))}),t.jsxs("div",{className:"landing-header__actions",children:[o,r.length>0&&t.jsx("button",{type:"button",onClick:()=>m(C=>!C),"aria-expanded":h,"aria-controls":b,"aria-label":h?p.close:p.open,className:h?"landing-header__toggle landing-header__toggle--open":"landing-header__toggle",children:t.jsxs("span",{className:"landing-header__burger",children:[t.jsx("span",{}),t.jsx("span",{}),t.jsx("span",{})]})})]})]}),r.length>0&&t.jsx("nav",{id:b,hidden:!h,className:"landing-header__drawer",children:t.jsx("div",{className:l??void 0,children:r.map(C=>t.jsx("span",{className:"landing-header__drawer-item",children:f(C,()=>m(!1))},C.href))})})]})}function Wb({children:e,action:n,onClick:a,className:r}){const o=a?"bottom-sticky__inner bottom-sticky__inner--clickable":"bottom-sticky__inner";return t.jsx("div",{className:r?`bottom-sticky ${r}`:"bottom-sticky",children:t.jsxs("div",{className:o,onClick:a,...nl(a),children:[t.jsx("div",{className:"bottom-sticky__content",children:e}),n]})})}const Hn=9,qb=e=>Math.round(Math.min(Hn,Math.max(0,e))/Hn*100),Ub=e=>e/100*Hn,Sa=2,jl=.1,El=e=>Math.min(Sa,Math.max(0,e)),Gb=e=>Math.round(e*10)/10;function ia(e){const{noiseRatio:n}=e;if(typeof n=="number"&&Number.isFinite(n))return El(n);const a=Math.min(Hn,Math.max(0,Number(e.level)||0))/Hn,r=Number(e.mainVolume);return r>0?Gb(El(a/r)):1}const Ml=e=>Math.min(1,Math.max(0,Number(e.mainVolume)||0));function Ll(e){return Ml(e)}function Pr(e){return Ml(e)*ia(e)}function Ir(e,n=ns()){const a=Number.isFinite(n)&&n>0?n:1;return Math.min(1,Pr(e)/a)}function la(e,n){const a={...e,...n??{}};return n&&"level"in n&&typeof n.noiseRatio!="number"&&(a.noiseRatio=ia({level:a.level,mainVolume:a.mainVolume})),a}const ca={enabled:!0,type:"defaultNoise",level:4.5,noiseRatio:1,speed:1,mainVolume:1,mainSpeed:1},Fr=s.createContext(null);function Da(){return s.useContext(Fr)}const Or=e=>`${Im()}/${e}`,$l=e=>Array.from({length:10},(n,a)=>Or(`${e}-${String(a+1).padStart(2,"0")}.mp3`)),Ta={get defaultNoise(){return Or("noise1.mp3")},get street(){return $l("noise2")},get restaurant(){return $l("noise3")},get buzz(){return Or("noise4.mp3")}};function Kb(e){const n=Math.floor(Math.random()*10);switch(e){case"defaultNoise":return Ta.defaultNoise;case"street":return Ta.street[n];case"restaurant":return Ta.restaurant[n];case"buzz":return Ta.buzz;default:return null}}function Yb({noisePlayer:e,audioRef:n,playbackStateRef:a}){const r=s.useRef(e?.registerAnalyser);r.current=e?.registerAnalyser;const o=s.useRef(null),[i,l]=s.useState(null),c=s.useRef(null),u=s.useRef(null),d=s.useRef(null),p=s.useRef(null),h=s.useRef(0),m=s.useRef(null),b=s.useCallback(()=>{p.current!==null&&(cancelAnimationFrame(p.current),p.current=null),m.current!==null&&(clearTimeout(m.current),m.current=null)},[]),g=s.useCallback((x,w=250)=>{const y=o.current;if(!y)return;const k=u.current;if(k){u.current=null;try{y.pause()}catch{}y.src=k,y.load()}if(!y.src)return;h.current+=1,b();try{Xa(),ma(y).then(N=>{try{r.current?.("noise",N)}catch{}})}catch{}const _=y.paused?0:fa(y);y.paused&&dn(y,0),y.play().catch(()=>{});const A=performance.now(),T=()=>{const N=Math.min(1,(performance.now()-A)/w);try{dn(y,_+(x-_)*N)}catch{}N<1?p.current=requestAnimationFrame(T):p.current=null};p.current=requestAnimationFrame(T)},[b]),f=s.useCallback((x=250,w)=>{const y=o.current;if(!y||y.paused){w?.();return}const k=++h.current;b();const _=performance.now(),A=fa(y),T=()=>{const N=Math.min(1,(performance.now()-_)/x);try{dn(y,A*(1-N))}catch{}if(N<1)p.current=requestAnimationFrame(T);else{p.current=null,m.current!==null&&(clearTimeout(m.current),m.current=null);try{y.pause()}catch{}w?.()}};p.current=requestAnimationFrame(T),m.current=setTimeout(()=>{if(m.current=null,h.current===k){p.current!==null&&(cancelAnimationFrame(p.current),p.current=null);try{y.paused||(dn(y,0),y.pause(),w?.())}catch{}}},x+150)},[b]);s.useEffect(()=>{const x=document.createElement("audio");return x.loop=!0,x.crossOrigin="anonymous",o.current=x,()=>{b();try{x.pause(),x.src=""}catch{}o.current=null,c.current=null,u.current=null}},[b]);const C=e?Ir(e.settings):0,v=!!e?.settings.enabled&&C>0;return s.useEffect(()=>{if(!v)return;let x=0;const w=setInterval(()=>{const y=o.current;if(!y||y.paused){x=0;return}const k=n.current;if(k&&!k.paused&&!k.ended||a.current==="playing"){x=0;return}x+=1,x>=2&&(x=0,f())},400);return()=>clearInterval(w)},[f,v,n,a]),s.useEffect(()=>{const x=()=>{if(!document.hidden)return;const w=o.current;if(w&&!w.paused){b();try{w.pause()}catch{}}};return document.addEventListener("visibilitychange",x),()=>document.removeEventListener("visibilitychange",x)},[b]),s.useEffect(()=>{d.current=e?{enabled:e.settings.enabled,volume:C,type:e.settings.type}:null},[e,e?.settings.enabled,C,e?.settings.type]),s.useEffect(()=>{const x=e?.settings,w=o.current;if(!w)return;const y=x?Ir(x):0;if(!x||!x.enabled||y===0){f();return}if(c.current!==x.type){const k=Kb(x.type);k&&(c.current=x.type,l(k),u.current=k,f(150,()=>{if(u.current!==k)return;u.current=null,w.src=k,w.load();const _=n.current;_&&!_.paused&&w.addEventListener("canplay",function A(){w.removeEventListener("canplay",A);const T=n.current;T&&!T.paused&&!T.ended&&g(y)})}))}else{const k=n.current,_=!!k&&!k.paused&&!k.ended;if(_&&w.paused&&w.src)g(y);else if(!w.paused)if(!_)f();else{b();const A=fa(w),T=performance.now(),N=()=>{const D=Math.min(1,(performance.now()-T)/150);try{dn(w,A+(y-A)*D)}catch{}D<1?p.current=requestAnimationFrame(N):p.current=null};p.current=requestAnimationFrame(N)}}},[e?.settings,e?.settings.enabled,C,e?.settings.type,b,g,f,n]),s.useEffect(()=>{const x=o.current;if(x)try{x.playbackRate=Math.min(1.25,Math.max(.75,e?.settings.speed??1))}catch{}},[e?.settings.speed]),{noiseAudioRef:o,activeNoiseUrl:i,noiseSettingsRef:d,cancelNoiseFade:b,fadeInNoise:g,fadeOutNoise:f}}function Zb({ttsText:e,playbackRate:n,mainVolume:a,fillRef:r,waveProgressRef:o,setProgress:i,setPlaybackState:l,setStateLocal:c,fadeInNoise:u,fadeOutNoise:d,noiseSettingsRef:p,onDoneRef:h,handleEndRef:m}){const b=s.useRef(null),g=s.useRef(0),f=s.useRef(null),C=s.useRef(0),v=s.useRef(!1);s.useEffect(()=>()=>{C.current++;try{if(f.current&&(cancelAnimationFrame(f.current),f.current=null),v.current&&window.speechSynthesis){try{window.speechSynthesis.cancel()}catch{}v.current=!1}}catch{}},[]);const x=(k,_=1)=>{try{const A=(k||"").trim().split(/\s+/).filter(Boolean).length||Math.max(1,(k||"").length);return Math.max(700,Math.round(A*300/Math.max(.25,_)))}catch{return 1200}},w=s.useCallback(k=>{if(typeof window>"u"||!window.speechSynthesis){try{typeof h.current=="function"&&h.current(!0)}catch{}return}const _=window.speechSynthesis,A=++C.current;try{try{_.cancel()}catch{}const T=k??e,N=(Array.isArray(T)?T[0]??"":T)||"",D=new SpeechSynthesisUtterance(N);try{D.rate=Math.max(.3,Math.min(3,n))}catch{}try{D.volume=Math.max(0,Math.min(1,a))}catch{}g.current=x(N,D.rate||1),b.current=performance.now(),i(0),l("playing"),c("playMode");const H=p.current;H?.enabled&&(H?.volume??0)>0&&u(H.volume);const F=()=>{try{const B=b.current||performance.now(),I=performance.now()-B,E=g.current||1200,te=Math.min(1,I/E);i(te);try{r.current&&(r.current.style.left=`${te*100}%`),o.current&&o.current.style.setProperty("--progress",String(te))}catch{}te<1&&(f.current=requestAnimationFrame(F))}catch{}};D.onend=()=>{if(A===C.current)try{f.current&&(cancelAnimationFrame(f.current),f.current=null),i(1),l("stopped");try{m.current?.()}catch{try{typeof h.current=="function"&&h.current(!0)}catch{}}}catch{}},D.onstart=()=>{try{f.current&&(cancelAnimationFrame(f.current),f.current=null),f.current=requestAnimationFrame(F)}catch{}};try{v.current=!0,_.speak(D)}catch{try{typeof h.current=="function"&&h.current(!0)}catch{}}}catch{try{typeof h.current=="function"&&h.current(!0)}catch{}}},[e,n,a,u,r,o,i,l,c,p,h,m]),y=s.useCallback(()=>{C.current++;try{if(window.speechSynthesis)try{window.speechSynthesis.cancel()}catch{}f.current&&(cancelAnimationFrame(f.current),f.current=null),d(),b.current=null}catch{}l("stopped"),c("active"),i(0)},[d,l,c,i]);return{startTTS:w,stopTTS:y}}async function Xb(e,n,a){let r=null;try{const o=window.AudioContext||window.webkitAudioContext;r=new o;const i=await r.decodeAudioData(e.slice(0)),l=i.numberOfChannels>0?i.getChannelData(0):null;if(!l)return null;const c=a&&a>0?Math.min(l.length,Math.floor(a*i.sampleRate)):l.length,u=Math.max(n,c),d=Math.floor(u/n)||1;return new Array(n).fill(0).map((p,h)=>{const m=h*d,b=Math.min(m+d,u);let g=0;for(let f=m;f<b;f++){const C=Math.abs(l[f]);C>g&&(g=C)}return g})}catch{return null}finally{try{r?.close?.()}catch{}}}async function Rl(e,n,a){try{const r=await fetch(e);if(r.ok===!1)return null;const o=await r.arrayBuffer();return await Xb(o,n,a)}catch(r){try{const o=ps(r)}catch{}return null}}const Pl=45,Jb=74,Qb=2;function ua(e){const n=Math.min(2,Math.max(0,Number(e)||0));return n<=1?n*45:45+(n-1)*29}function Hr(e){return ua(e)/45}const Il=4;function ey(e){const{src:n,segments:a,progress:r=0,waveProgressRef:o,noiseSrc:i,noiseRatio:l=0,noiseSpeed:c=1,totalDuration:u=0,mainVolume:d=1,onReadyChange:p,showSoundWaveForm:h=!0}=e,m=s.useRef(null),b=s.useRef(null),[g,f]=s.useState(null),[C,v]=s.useState(!1),[x,w]=s.useState(null),[y,k]=s.useState(2),[_,A]=s.useState(0),[T,N]=s.useState(null),[D,H]=s.useState(!1),F=3,B=3,I=1,E=300,te=s.useRef(0),L=s.useCallback(async(ae,le)=>{const he=++te.current,ve=()=>te.current===he;try{if(v(!1),!ae){ve()&&f(null);return}let Z=le;if(!Z)try{for(let pe=0;pe<4&&!(m.current||b.current);pe++)await new Promise(Ne=>requestAnimationFrame(Ne));await new Promise(pe=>requestAnimationFrame(pe));const J=m.current,ge=b&&b.current?b.current:J?J.closest(".audio-player__wave"):null,we=ge?ge.getBoundingClientRect():J?J.getBoundingClientRect():null,de=we?Math.max(100,we.width):320,Ce=we?we.height:0;Ce>0&&A(Ce),Z=Math.max(I,Math.min(E,Math.floor((de+B)/(F+B))));const xe=Z*F,je=Math.max(0,Z-1),X=je>0?(de-xe)/je:B;k(Math.max(0,X))}catch{Z=120}const ce=await Rl(ae,Z);if(!ve())return;if(!ce){f(null),v(!1);return}f(ce),w(Z),v(!0)}catch{if(!ve())return;f(null),v(!1)}},[v,f,A,k,w]);s.useEffect(()=>{const ae=a&&a[0]&&a[0].src||n||a&&a.length===1&&a[0]&&a[0].src;L(typeof ae=="string"?ae:void 0).catch(()=>{}),H(!1)},[n,a,L]),s.useEffect(()=>{let ae=!1;if(!i||!x){N(null);return}const le=u>0?u*(c||1):void 0;return Rl(i,x,le).then(he=>{ae||N(he)}).catch(()=>{ae||N(null)}),()=>{ae=!0}},[i,x,u,c]);const O=Math.max(0,Math.min(1,d)),ee=s.useMemo(()=>g&&g.length&&Math.max(...g)||1,[g]),Y=x||40,K=s.useMemo(()=>Array.from({length:Y}).map((ae,le)=>{const he=g&&g[le]!=null?g[le]:null,ve=he==null?null:Math.min(1,he/ee*O),Z=ve!=null&&_>0&&ua(ve)<=Il,ce=ve==null?.15:Z?0:Hr(ve),J=Y>1?le/(Y-1):0;return t.jsx("div",{className:Z?"audio-player__bar audio-player__bar--hidden":"audio-player__bar",style:{"--val":ce,"--i":le,"--mix":J}},le)}),[Y,g,ee,O,_]),R={"--progress":String(Math.max(0,Math.min(1,r)))},j=i?Math.max(1,l):1,M={"--bar-gap":`${y}px`,"--wave-h":`${ua(j)}px`,"--wave-h1":`${Pl}px`},V=O*Math.max(0,l)/ns(),P=C&&(i?!!T:!0);s.useEffect(()=>{P&&H(!0)},[P]);const $=D?C:P;s.useEffect(()=>{p?.($)},[$,p]);const W=x||40,se=s.useMemo(()=>Array.from({length:W}).map((ae,le)=>{const he=T&&T[le]!=null?T[le]:null,ve=he==null?0:he/ee*V,Z=_>0&&ua(ve)<=Il,ce=Z?0:Hr(ve),J=W>1?le/(W-1):0;return t.jsx("div",{className:Z?"audio-player__bar audio-player__bar--hidden":"audio-player__bar",style:{"--val":ce,"--i":le,"--mix":J}},le)}),[W,T,ee,V,_]);return t.jsxs("div",{className:"audio-player__wave",ref:b,style:M,children:[i&&t.jsx("div",{className:`audio-player__wave-noise ${P?"is-ready":""}`,"aria-hidden":"true",children:se}),h&&t.jsxs(t.Fragment,{children:[t.jsx("div",{className:`audio-player__wave-inner audio-player__wave-unplayed ${$?"is-ready":""}`,ref:m,children:K}),t.jsx("div",{className:`audio-player__wave-inner audio-player__wave-played ${$?"is-ready":""}`,ref:o,style:R,children:K})]})]})}const ty={idle:"\uB300\uAE30",resolving:"\uB9AC\uC18C\uC2A4 \uB9E4\uD551 \uC911\u2026",checking_exists:"\uD30C\uC77C \uC874\uC7AC \uD655\uC778\u2026",getting_signed_url:"\uC11C\uBA85 URL \uC870\uD68C\u2026",downloading:"\uB2E4\uC6B4\uB85C\uB4DC \uC911\u2026",measuring_duration:"\uC624\uB514\uC624 \uAE38\uC774 \uCE21\uC815\u2026",ready:"\uC900\uBE44 \uC644\uB8CC",error:"\uC624\uB958 \uBC1C\uC0DD"};function Vr(e,n){return new Promise((a,r)=>{const o=document.createElement("audio");let i=!1;const l=()=>{try{o.src=""}catch{}},c=()=>{if(i)return;i=!0;const d=isFinite(o.duration)&&o.duration||0;l(),a(d)},u=d=>{i||(i=!0,l(),n.rejectOnError?r(new Error(d)):a(0))};o.addEventListener("loadedmetadata",c),o.addEventListener("error",()=>u("audio load failed")),setTimeout(()=>u("audio load timeout"),n.timeoutMs),o.src=e})}const ny=2e3;function Fl(e,n=ny){return new Promise(a=>{let r=!1;const o=()=>{r||(r=!0,a())};e.addEventListener("canplay",o,{once:!0}),e.addEventListener("error",o,{once:!0}),setTimeout(o,n)})}function ay({showSoundWaveForm:e,showNoiseWaveForm:n,timeoutMs:a=2500}){const r=s.useRef(!1),o=s.useRef([]),i=s.useCallback(u=>{if(r.current=u,!u||!o.current.length)return;const d=o.current;o.current=[];for(const p of d)p()},[]),l=s.useCallback(()=>{r.current=!1},[]),c=s.useCallback(()=>!e&&!n||r.current?Promise.resolve():new Promise(u=>{const d=setTimeout(u,a);o.current.push(()=>{clearTimeout(d),u()})}),[e,n,a]);return s.useEffect(()=>()=>{const u=o.current;o.current=[];for(const d of u)d()},[]),{onReadyChange:i,waitForReady:c,markNotReady:l}}function ry(){const e=s.useRef([]),n=s.useCallback(o=>(e.current.push(o),o),[]),a=s.useCallback(o=>{const i=new Set([...o].filter(Boolean));e.current=e.current.filter(l=>{if(i.has(l))return!0;try{URL.revokeObjectURL(l)}catch{}return!1})},[]),r=s.useCallback(()=>{a([])},[a]);return s.useEffect(()=>()=>{for(const o of e.current)try{URL.revokeObjectURL(o)}catch{}e.current=[]},[]),{track:n,keepOnly:a,revokeAll:r}}function oy({offsetY:e=8}={}){const n=s.useRef(null),[a,r]=s.useState(null),o=s.useCallback(()=>r(null),[]),i=s.useCallback(()=>{try{const l=n.current?.getBoundingClientRect();if(!l)return;r({left:l.left,right:l.right,width:l.width,height:l.height,x:l.x,top:l.top+e,bottom:l.bottom+e,y:l.y+e,toJSON:l.toJSON.bind(l)})}catch{}},[e]);return s.useEffect(()=>{if(a)return document.addEventListener("mousedown",o),()=>document.removeEventListener("mousedown",o)},[a,o]),{ref:n,rect:a,show:i,hide:o}}function sy({currentTime:e,sources:n,index:a,audioDuration:r}){const o=a||0,i=Array.isArray(n)&&n.length>0?n[o]:void 0,l=i?i.duration||r||0:r||0;if(!(l>0))return 0;const c=Number.isFinite(e)?e:0;return Math.max(0,Math.min(1,c/l))}function iy(e,n){if(!Array.isArray(e))return null;const a=n||0;return a<e.length-1?a+1:null}function ly({ended:e,completedByEnd:n}){return!!e||!!n}function cy(e){return e.map((n,a)=>({src:n.src,label:String(a+1),color:void 0,duration:n.duration||0}))}function uy(e){return e.reduce((n,a)=>n+(a.duration||0),0)}function dy(e,n,a){const r=Array.isArray(e)?e:e?[e]:[],o=[];for(const i of r)if(i){if(typeof i=="object"&&i!==null&&"src"in i&&i.src){const l=i;o.push({code:l.code??null,src:l.src});continue}if(typeof i=="string"&&(i.startsWith("http")||i.includes("/"))){o.push({code:null,src:i});continue}if(typeof i=="string"||typeof i=="number"){const l=String(i),c=a(l,n);c&&o.push({code:l,resolvedPath:c})}}return o}function py({audioRef:e,fillRef:n,waveProgressRef:a,sourcesRef:r,currentIndexRef:o}){const i=s.useRef(null),l=s.useCallback(()=>{i.current!==null&&(cancelAnimationFrame(i.current),i.current=null)},[]),c=s.useCallback(()=>{if(i.current!==null)return;const d=()=>{try{const p=e.current,h=sy({currentTime:p&&typeof p.currentTime=="number"?p.currentTime:0,sources:r.current,index:o.current,audioDuration:p&&p.duration?p.duration:0});try{n.current&&(n.current.style.left=`${h*100}%`)}catch{}try{a.current?.style.setProperty("--progress",String(h))}catch{}}catch{}i.current=requestAnimationFrame(d)};i.current=requestAnimationFrame(d)},[e,n,a,r,o]),u=s.useCallback(d=>{l();try{n.current&&(n.current.style.left=`${d*100}%`)}catch{}try{a.current?.style.setProperty("--progress",String(d))}catch{}},[l,n,a]);return s.useEffect(()=>l,[l]),{start:c,stop:l,settleTo:u}}function zr({btnLabel:e,soundSrc:n,bucketPath:a,onDone:r,disabled:o=!1,ttsText:i=null,className:l,showSoundWaveForm:c=!0,showNoiseWaveForm:u=!0}){const{t:d}=me.useTranslation(),p=e,h=Da(),m=s.useRef(h?.registerAnalyser);s.useEffect(()=>{m.current=h?.registerAnalyser});const b=s.useRef(null),g=s.useRef(null),f=s.useRef(null),C=ry(),v=s.useRef(null),x=s.useRef(!1),w=s.useRef(0),y=s.useRef(null),{ref:k,rect:_,show:A,hide:T}=oy();s.useEffect(()=>()=>{m.current?.("main",null),m.current?.("noise",null)},[]);const[N,D]=s.useState(!1),[H,F]=s.useState("idle"),[B,I]=s.useState("stopped"),E=s.useRef("stopped");s.useEffect(()=>{E.current=B},[B]);const[te,L]=s.useState(0),[O,ee]=s.useState("active"),[Y,K]=s.useState(null),[R,j]=s.useState(null),[M,V]=s.useState(0),[P,$]=s.useState(!1),[W,se]=s.useState(0),ae=h?.playbackRate??1,le=h?.mainVolume??1,he=h?Pr(h.settings):0,ve=h?Ll(h.settings):le,[Z,ce]=s.useState("idle"),[J,ge]=s.useState(""),[we]=s.useState("top"),de=s.useRef(null),Ce=s.useRef(0),xe=s.useRef(null),{start:je,stop:X,settleTo:pe}=py({audioRef:b,fillRef:g,waveProgressRef:xe,sourcesRef:de,currentIndexRef:Ce}),{onReadyChange:Ne,waitForReady:Me,markNotReady:He}=ay({showSoundWaveForm:c,showNoiseWaveForm:u}),Se=s.useRef(null),Ie=s.useRef(o),Le=s.useRef(r),Ke=s.useRef(null),qe=s.useRef(!1),[ze,be]=s.useState(!1),Fe=s.useCallback(oe=>{qe.current=oe,be(oe)},[]),De=s.useRef(null),{activeNoiseUrl:Pe,noiseSettingsRef:Ae,fadeInNoise:ot,fadeOutNoise:lt}=Yb({noisePlayer:h,audioRef:b,playbackStateRef:E}),{startTTS:Ue,stopTTS:Ge}=Zb({ttsText:i,playbackRate:ae,mainVolume:ve,fillRef:g,waveProgressRef:xe,setProgress:L,setPlaybackState:I,setStateLocal:ee,fadeInNoise:ot,fadeOutNoise:lt,noiseSettingsRef:Ae,onDoneRef:Le,handleEndRef:De}),pt=Array.isArray(n)?n.filter(Boolean):n?[n]:[],Oe=(!pt||pt.length===0)&&!!i,Xe=Array.isArray(Y)&&Y.length>0?Y:Array.isArray(R)&&R.length>0?R:null,tt=Math.max(Array.isArray(Xe)?Xe.length:0,pt.length),Te=s.useRef(!0);s.useEffect(()=>(Te.current=!0,()=>{Te.current=!1}),[]);const Ye=s.useCallback(async(oe,z=3,Q=50)=>{for(let ne=0;ne<z;ne++){if(!Te.current)return!1;try{return await oe.play(),!0}catch(U){if((U instanceof Error||typeof U=="object"&&U&&"name"in U?U.name:void 0)==="AbortError"){await new Promise(re=>setTimeout(re,Q));continue}try{ge(d("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."))}catch{}return!1}}try{ge(d("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."))}catch{}return!1},[d]),Et=s.useCallback(()=>{const oe=b.current;if(!oe)return;const z=()=>{I("playing"),ee("playMode"),$(!0),je();try{Xa(),ma(oe).then(re=>{try{m.current?.("main",re)}catch{}})}catch{}const U=Ae.current;U?.enabled&&(U?.volume??0)>0&&ot(U.volume)},Q=()=>{ly({ended:!!oe?.ended,completedByEnd:qe.current})||(I("paused"),X(),lt())},ne=()=>{try{const U=de.current,re=iy(U,Ce.current);if(re!==null){Ce.current=re,V(re),$(!0);const ke=U?.[re]&&U[re].src;if(ke&&oe){oe.src=ke,oe.load(),Ye(oe).catch(()=>{});return}}}catch{}I("stopped"),L(1);try{if(oe)try{oe.currentTime=0}catch{}}catch{}X(),$(!1),lt();try{!Ie.current&&De.current&&De.current()}catch{}};return oe.addEventListener("play",z),oe.addEventListener("pause",Q),oe.addEventListener("ended",ne),()=>{try{oe.removeEventListener("play",z),oe.removeEventListener("pause",Q),oe.removeEventListener("ended",ne),X()}catch{}}},[ot,lt,Ye,Ae,je,X]);s.useEffect(()=>Et(),[Et]),s.useEffect(()=>{Ie.current=o},[o]),s.useEffect(()=>{Le.current=r},[r]),s.useEffect(()=>{if(o||O!=="active")return;const oe=y.current;if(!oe)return;let z=null;const Q=requestAnimationFrame(()=>{try{const ne=oe.getTotalLength();if(!ne)return;const U=ne*.2;oe.style.strokeDasharray=`${ne-U} ${U}`;const re="triFlow_"+Math.random().toString(36).slice(2);z=document.createElement("style"),z.textContent=`@keyframes ${re}{from{stroke-dashoffset:0}to{stroke-dashoffset:-${ne}}}`,document.head.appendChild(z),oe.style.animation=`${re} 2.4s linear infinite`}catch{}});return()=>{cancelAnimationFrame(Q),z?.remove()}},[O,o]),s.useEffect(()=>{de.current=Y},[Y]),s.useEffect(()=>{Ce.current=M},[M]),s.useEffect(()=>{const oe=f.current,z=v.current;if(!oe||!z)return;let Q=null;const ne=32,U=60,re=()=>{try{const $e=Array.from(oe.querySelectorAll(":scope > .button"));let Ee=0;$e.forEach(Bt=>{if(Bt===z)return;const It=Bt.getBoundingClientRect();Ee+=It.width});const nt=oe.getBoundingClientRect().width,mt=Math.max(0,Math.floor(nt-Ee-8)),Qe=tt;if(!Qe||mt<=0){Array.from(z.children).forEach(Bt=>{try{Bt.style.width=""}catch{}});return}let it=Math.floor(mt/Qe);it>U&&(it=U),it<ne&&(it=Math.max(ne,Math.floor(mt/Qe))),Array.from(z.querySelectorAll(".button")).forEach(Bt=>{try{Bt.style.width=`${it}px`}catch{}})}catch{}},ke=requestAnimationFrame(re);try{Q=new ResizeObserver(()=>{requestAnimationFrame(re)}),Q.observe(oe),Q.observe(z),window.addEventListener("resize",re)}catch{}return()=>{try{cancelAnimationFrame(ke)}catch{}try{Q&&(Q.disconnect(),Q=null)}catch{}try{window.removeEventListener("resize",re)}catch{}}},[Y,R,tt]),s.useEffect(()=>()=>{try{Se.current&&(clearTimeout(Se.current),Se.current=null),Ke.current&&(clearTimeout(Ke.current),Ke.current=null)}catch{}},[]);const ut=(oe,z)=>{K(oe),se(z),He(),j(cy(oe)),de.current=oe},st=async(oe,z)=>{Fe(!1),x.current=!1,oe.src=z,oe.load(),await Fl(oe),await Me(),D(!1),await Ye(oe),ee("playMode"),V(0),$(!0)},bt=async(oe,z=!1)=>{const Q=b.current;D(!0),F("measuring_duration");try{const ne=await Vr(oe,{timeoutMs:1e4,rejectOnError:!0});ut([{src:oe,objectUrl:null,duration:ne}],ne),F("ready"),z&&Q&&await st(Q,oe)}finally{x.current=!1,D(!1)}},Kt=async(oe,z=!1)=>{const Q=b.current;D(!0),F("measuring_duration");try{const ne=await Promise.all(oe.map(re=>Vr(re,{timeoutMs:1e4})));if(!Te.current)return;const U=oe.map((re,ke)=>({src:re,objectUrl:null,duration:ne[ke]||0}));ut(U,uy(U)),F("ready"),z&&Q&&U.length>0&&await st(Q,U[0].src)}finally{x.current=!1,D(!1)}},bn=async(oe=!1,z=!0)=>{const Q=b.current,ne=n?Array.isArray(n)?n:[n]:[];if(!ne||ne.length===0||!ne.some(Boolean))return!1;if(x.current)return null;x.current=!0,z&&D(!0),F("resolving");try{const U=dy(n,a,Qo),re=[];let ke=0;for(const $e of U){let Ee=$e.src??null,nt=null;if(!Ee&&$e.resolvedPath){try{F("getting_signed_url"),Ee=await es($e.resolvedPath)}catch{Ee=null}if(!Te.current)return!1;if(!Ee)try{F("downloading");const Qe=await ts($e.resolvedPath);if(!Te.current)return!1;if(Qe){const it=Qe instanceof Blob?Qe:new Blob([Qe]);nt=C.track(URL.createObjectURL(it)),Ee=nt}}catch{F("error");try{ge(d("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.")),ee("active")}catch{}}}if(!Ee)continue;let mt=0;try{F("measuring_duration"),mt=await Vr(Ee,{timeoutMs:3e3})}catch{mt=0}if(!Te.current){if(nt)try{URL.revokeObjectURL(nt)}catch{}for(const Qe of re)if(Qe.objectUrl)try{URL.revokeObjectURL(Qe.objectUrl)}catch{}return!1}ke+=mt||0,re.push({...$e,src:Ee,objectUrl:nt,duration:mt})}if(ut(re,ke),re.length>0&&oe&&Q){const $e=re[0];Fe(!1);try{C.keepOnly(re.map(Ee=>Ee.objectUrl))}catch{}if(F("ready"),x.current=!1,$e.src&&Q)try{Q.src=$e.src,Q.load(),await Fl(Q),await Me(),z&&D(!1),Q&&await Ye(Q)}catch{z&&D(!1)}else z&&D(!1);ee("playMode"),V(0),$(!0)}return re.length>0}finally{x.current=!1,z&&D(!1),F(U=>U==="ready"?"ready":"idle")}},Ct=async()=>{const oe=b.current;if(!(!oe&&!Oe)){if(Oe){const z=window.speechSynthesis;if(O==="active"){const Q=Ka(),ne=Array.isArray(i)?i.filter(Boolean):i?[i]:[];if(Q&&ne.length>0){ee("load"),D(!0),F("resolving"),x.current=!0;try{const U=await Promise.all(ne.map(re=>Promise.resolve(Q(re))));U.length>1?await Kt(U,!0):await bt(U[0],!0)}catch{x.current=!1,D(!1),ee("active"),Ue(ne[0]||void 0)}return}Ue(ne[0]||void 0);return}if(O==="playMode"){if(oe){if(oe.paused){if(qe.current){await kt();return}await Ye(oe),I("playing")}else oe.pause(),I("paused");return}try{if(z&&z.paused)try{z.resume(),I("playing")}catch{}else try{z.pause(),I("paused")}catch{}}catch{}}return}if(O==="active"){if(o&&Array.isArray(de.current)&&de.current.length>0){const z=de.current[0];try{if(z.src&&oe)try{oe.src=z.src,oe.load(),oe&&await Ye(oe)}catch{}ee("playMode"),V(0),$(!0);return}catch{}}if(ee("load"),await bn(!0)===!1&&Te.current){try{ge(d("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."))}catch{}ee("active")}return}if(O!=="load"&&(O==="playMode"||O==="active"))try{if(oe&&oe.paused){if(qe.current){await kt();return}oe&&await Ye(oe),I("playing")}else oe&&(oe.pause(),I("paused"))}catch(z){(z instanceof Error||typeof z=="object"&&z&&"name"in z)&&z.name}}},kt=async()=>{const oe=b.current;if(oe)try{const z=de.current;if(Array.isArray(z)&&z.length>1){await Ze(0);return}Fe(!1);try{oe.currentTime=0}catch{}oe&&await Ye(oe),I("playing"),ee("playMode")}catch{}},$t=()=>{if(Oe){Ge();return}const oe=b.current;try{if(oe){try{oe.pause()}catch{}try{oe.currentTime=0}catch{}}}catch{}lt(),I("stopped"),ee("active"),L(0),$(!1)},At=async(oe,{sameSegment:z=!1}={})=>{const Q=++w.current,ne=b.current,U=de.current?.[oe]?.src;try{if(Fe(!1),V(oe),$(!0),Ce.current=oe,!U||!ne||(z||He(),ne.src=U,ne.load(),z||await Me(),Q!==w.current)||(await Ye(ne),Q!==w.current))return;I("playing"),ee("playMode")}catch{}},yn=async()=>{const oe=de.current,z=Ce.current||0;if(!oe||z<=0){await kt();return}await At(z-1)},Ot=async()=>{const oe=de.current,z=Ce.current||0;if(!oe||z>=oe.length-1){$t();return}await At(z+1)},on=()=>{if(qe.current)return;const oe=200,z=340;Fe(!0);try{L(1)}catch{}pe(1);try{ce("hold")}catch{}try{const Q=b.current,ne=Oe&&!!Q?.src;if(!Oe||ne){if(Q){Q.pause();try{Q.currentTime=0}catch{}}}else Ge();lt()}catch{}try{I("stopped")}catch{}if($(!1),!Ie.current)try{Ke.current&&(clearTimeout(Ke.current),Ke.current=null),Ke.current=setTimeout(()=>{try{ce("out")}catch{}Ke.current=setTimeout(()=>{try{typeof Le.current=="function"&&Le.current(!0)}catch{}try{ce("idle")}catch{}Ke.current=null},z)},oe)}catch{}};s.useEffect(()=>{De.current=on});const vn=s.useCallback(()=>ge(""),[]),Ze=async oe=>{(de.current||[])[oe]&&await At(oe,{sameSegment:oe===Ce.current})},Nt=B==="playing",yt=s.useMemo(()=>{if(!R||R.length<=1)return R;const oe=R[M];return oe?[oe]:R},[R,M]),Yt=o===!0;s.useEffect(()=>{try{const oe=b.current;oe&&typeof oe.playbackRate=="number"&&(oe.playbackRate=ae||1)}catch{}},[ae]);const Zt=s.useRef({raf:null,timer:null});s.useEffect(()=>{const oe=b.current;if(!oe)return;const z=Math.max(0,Math.min(1,ve)),Q=Zt.current,ne=()=>{Q.raf!==null&&(cancelAnimationFrame(Q.raf),Q.raf=null),Q.timer!==null&&(clearTimeout(Q.timer),Q.timer=null)};ne();const U=fa(oe);if(oe.paused||Math.abs(U-z)<.001||typeof requestAnimationFrame!="function"){try{dn(oe,z)}catch{}return}const re=performance.now(),ke=()=>{const $e=Math.min(1,(performance.now()-re)/150);try{dn(oe,U+(z-U)*$e)}catch{}Q.raf=$e<1?requestAnimationFrame(ke):null};return Q.raf=requestAnimationFrame(ke),Q.timer=setTimeout(()=>{ne();try{dn(oe,z)}catch{}},200),ne},[ve]);const Rt=Z==="hold",Ht=Z==="out",sn=O==="playMode"&&!N&&!ze||Rt||Ht,Pt=B!=="stopped"||Rt||Ht,Xt=B==="paused",ln=Math.max(0,Math.min(100,(te||0)*100)),vt=ye("audio-player__fill",sn?"is-visible":"",Pt?"is-expanded":"",Xt?"is-paused":"",Ht?"is-out":"");return t.jsxs("div",{className:`audio-player ${Yt?"is-disabled":""}${l?` ${l}`:""}`,role:"group","aria-label":typeof p=="string"?p:void 0,children:[t.jsxs("div",{className:`audio-player__panel ${Nt?"is-playing":""} ${N?"is-loading":""} ${O!=="default"?"is-revealed":""}`,children:[N?t.jsxs("div",{className:"audio-player__loading",role:"status","aria-live":"polite",children:[t.jsx("span",{className:"audio-player__loading-spinner","aria-hidden":"true"}),t.jsx("span",{className:"audio-player__loading-text",children:d(`training.audioStatus.${H}`,{defaultValue:ty[H]})})]}):null,O==="active"?t.jsx("button",{className:"audio-player__button",type:"button",onClick:()=>{T(),Ct()},"aria-label":typeof p=="string"?p:d("training.listen","\uB4E3\uAE30"),onMouseEnter:A,onMouseLeave:T,onFocus:A,onBlur:T,children:t.jsx("span",{ref:k,className:"audio-player__button-triangle-wrap",children:t.jsx("svg",{className:"audio-player__button-triangle",viewBox:"0 0 24 24","aria-hidden":"true",children:t.jsx("path",{ref:y,d:"M13.2 7.7 L16.5 9.85 Q20.2 12 16.5 14.15 L10 18.3 Q7 19.7 7 16.3 L7 7.7 Q7 4.3 10 5.7 L13.2 7.7"})})})}):null,_&&t.jsx(hn,{anchorRect:_,text:typeof p=="string"&&p?p:d("training.listenLabel","\uBB38\uC7A5 \uB4E3\uAE30"),offset:8}),t.jsxs("div",{className:`audio-player__play ${O==="playMode"||Nt?"is-visible":""}`,children:[t.jsxs("div",{ref:f,className:"audio-player__buttons",children:[t.jsx(ie,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"skip-back",onClick:yn,ariaLabel:d("training.prev","\uC774\uC804"),width:"60px",variant:"transparent-white","aria-hidden":"true",tabIndex:-1,disabled:O!=="playMode"}),t.jsx(ie,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:Nt?"pause":"play",onClick:Ct,ariaLabel:d("common.playPause","\uC7AC\uC0DD / \uBA48\uCDA4"),width:"60px",variant:"transparent-white",disabled:O!=="playMode"}),t.jsx(ie,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"square",onClick:$t,ariaLabel:d("training.stop","\uC815\uC9C0"),width:"60px",variant:"transparent-white","aria-hidden":"true",tabIndex:-1,disabled:O!=="playMode"}),tt>1?t.jsx("div",{ref:v,className:"audio-player__source-buttons",children:Array.from({length:tt}).map((oe,z)=>t.jsx(ie,{htmlType:"button",size:32,type:"dot",shape:"pill",useBorder:!1,label:String(z+1),onClick:()=>{try{Ze(z)}catch{}},ariaLabel:d("training.sourcePlay",{n:z+1}),variant:"transparent-white",selected:P&&M===z,disabled:O!=="playMode"||!(Array.isArray(Y)&&Y[z]),showTooltipInfo:!0},z))}):null,!Array.isArray(Y)||Y.length<=1?t.jsx(ie,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"repeat",onClick:kt,ariaLabel:d("common.replay","\uB2E4\uC2DC\uB4E3\uAE30"),width:"60px",variant:"transparent-white",disabled:O!=="playMode"}):null,t.jsx(ie,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"skip-forward",onClick:Ot,ariaLabel:d("training.next","\uB2E4\uC74C"),width:"60px",variant:"transparent-white","aria-hidden":!0,tabIndex:-1,disabled:O!=="playMode"}),t.jsx(ie,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"check",onClick:on,ariaLabel:d("common.done","\uC644\uB8CC"),width:"60px",variant:"transparent-white",disabled:O!=="playMode"})]}),t.jsxs("div",{className:"audio-player__slider",children:[t.jsx("div",{className:vt,ref:g,style:{left:`${ln}%`},"aria-hidden":"true"}),(c||u)&&t.jsx(ey,{segments:yt,progress:te,totalDuration:W,onSegmentClick:Ze,waveProgressRef:xe,showSoundWaveForm:c,noiseSrc:u&&h?.settings.enabled&&he>0?Pe:null,noiseRatio:h?ia(h.settings):0,noiseSpeed:h?.settings.speed??1,mainVolume:le,onReadyChange:Ne})]})]}),t.jsx("audio",{ref:b,crossOrigin:"anonymous",preload:"auto"})]}),!c&&t.jsxs("p",{className:"audio-player__no-waveform caption-1",children:[t.jsx(Ve,{icon:"triangle-alert",size:14}),d("training.noSoundWaveform","\uC18C\uB9AC \uBE44\uAD50 \uBB38\uC81C\uB294 \uC6E8\uC774\uBE0C\uD3FC\uC744 \uD45C\uD604\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.")]}),t.jsx(Pn,{message:J,position:we,onClose:vn})]})}function ja(e){const{t:n}=me.useTranslation(),{text:a,label:r,anchorRect:o=null,onClose:i,closeOnOutsideClick:l=!0,isMobilePopup:c=!1}=e||{},[u,d]=s.useState(()=>{try{return localStorage.getItem("tooltip-theme")||"light"}catch{return"light"}});s.useEffect(()=>{try{localStorage.setItem("tooltip-theme",u)}catch{}},[u]);const{increase:p,decrease:h,canIncrease:m,canDecrease:b,fontSize:g,lineHeight:f}=Qs({storageKey:"tooltip-fontScale"}),C=s.useCallback(()=>d(k=>k==="dark"?"light":"dark"),[]),v=s.useCallback(k=>{try{k.stopPropagation()}catch{}try{typeof i=="function"&&i()}catch{}},[i]),x=Array.isArray(a)?a:typeof a>"u"||a===null?[]:[a],w={fontSize:`${g}px`,lineHeight:`${f}px`,"--tt-line-height":`${f}px`,"--tt-marker-size":"28px"},y=t.jsxs("div",{className:`tooltip-textbox__root ${u==="dark"?"is-dark":""}`,children:[t.jsxs("div",{className:"tooltip-textbox__box",children:[r&&t.jsx("div",{className:"tooltip-textbox__label body-2b",children:r}),t.jsx("div",{className:"tooltip-textbox__text body-1",style:w,children:x.map((k,_)=>t.jsxs("div",{className:"tooltip-textbox__line",children:[x.length>1?t.jsx("div",{className:"tooltip-textbox__marker",children:t.jsx("span",{className:"tooltip-textbox__line-number button-1",children:_+1})}):null,t.jsx("span",{className:"tooltip-textbox__line-text",children:k})]},_))})]}),t.jsxs("div",{className:"tooltip-textbox__buttons",children:[t.jsx(ie,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:"minus",onClick:h,ariaLabel:n("training.fontSizeDecrease","\uAE00\uC790 \uD06C\uAE30 \uAC10\uC18C"),variant:u==="dark"?"transparent-white":"transparent-gray",disabled:!b}),t.jsx(ie,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:"plus",onClick:p,ariaLabel:n("training.fontSizeIncrease","\uAE00\uC790 \uD06C\uAE30 \uC99D\uAC00"),variant:u==="dark"?"transparent-white":"transparent-gray",disabled:!m}),t.jsx(ie,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:u==="dark"?"moon":"sun-medium",onClick:C,ariaLabel:n("training.toggleBackground","\uBC30\uACBD \uC804\uD658"),variant:u==="dark"?"transparent-white":"transparent-gray"}),t.jsx(ie,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:"x",onClick:v,ariaLabel:n("common.close","\uB2EB\uAE30"),variant:u==="dark"?"transparent-white":"transparent-gray"})]})]});return o?t.jsx(pn,{anchorRect:o,className:`tooltip-textbox ${u==="dark"?"is-dark":""}`,onClose:i,closeOnOutsideClick:l,isMobilePopup:c,ariaLabel:r||n("tooltip.textbox","\uBCF8\uBB38"),children:y}):t.jsx("div",{className:`tooltip-textbox ${u==="dark"?"is-dark":""}`,children:y})}function Ol({state:e="disabled"}){const{t:n}=me.useTranslation();return t.jsxs("div",{className:`ts-bullet ts-bullet--${e}`,"aria-hidden":!0,children:[t.jsx("div",{className:"bullet__dot",children:t.jsx(Ve,{icon:"chevron-right",label:n("training.next","\uB2E4\uC74C"),className:"bullet__icon",imgClassName:"bullet__icon-img",maskClassName:"bullet__icon-mask",svgClassName:"bullet__icon-svg",wrapperStyle:{},size:20})}),t.jsx("div",{className:"ts-bullet__line"})]})}function Hl({title:e,children:n,className:a="",state:r="disabled",usePreviewTextBtn:o=!1,onPreviewTextBtn:i,previewText:l=null,useFaded:c,usePlayAllBtn:u=!1,onPlayAll:d,playAllActive:p=!1}){const{t:h}=me.useTranslation(),m=Ut("(max-width: 767px)"),b=`training-step__title h4 ${c&&r==="disabled"?"training-step__title--faded":""} ${a}`.trim(),g=`training-step__title-row training-step__title-row--${r}`.trim(),f=s.useRef(null),[C,v]=s.useState(!1),[x,w]=s.useState(null),[y,k]=s.useState(null),_=s.useRef(i);s.useEffect(()=>{_.current=i});const A=s.useMemo(()=>l==null?"":typeof l=="string"||typeof l=="number"?String(l):Array.isArray(l)&&l.every(D=>typeof D=="string"||typeof D=="number")?l.join(""):"",[l]),T=s.useCallback(()=>{v(!1),w(null),k(null)},[]);s.useEffect(()=>{if(!C)return;let D;try{typeof _.current=="function"&&(D=_.current())}catch{}if(D===!1){T();return}k(typeof D<"u"&&D!==null?D:null)},[A]);const N=s.useCallback(()=>{let D;try{typeof i=="function"&&(D=i())}catch{}if(D!==!1){if(k(typeof D<"u"&&D!==null?D:l),!f.current){v(H=>!H);return}if(C)v(!1),w(null),k(null);else{const H=f.current.getBoundingClientRect();w(H),v(!0)}}},[i,l,C]);return t.jsxs("div",{className:g,children:[t.jsx("p",{className:b,children:t.jsx("span",{className:"training-step__title-text",children:e??n})}),o||u?t.jsxs("div",{className:"title-controls",children:[t.jsxs("div",{className:"title-buttons",children:[u&&t.jsx(ie,{htmlType:"button",size:32,type:m?"dot":"bar",icon:"play-circle",label:m?void 0:h("training.playAll","\uBAA8\uB450 \uB4E3\uAE30"),ariaLabel:h("training.playAll","\uBAA8\uB450 \uB4E3\uAE30"),selected:p,onClick:d,variant:r==="disabled"?"disabled":"default",disabled:r==="disabled"||p,onDisabledClick:p&&r!=="disabled"?()=>{}:void 0}),o&&t.jsx("div",{ref:f,children:t.jsx(ie,{htmlType:"button",size:32,type:m?"dot":"bar",icon:"eye",label:m?void 0:h("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),ariaLabel:h("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),selected:C,onClick:N,variant:r==="disabled"?"disabled":"default",disabled:!l&&typeof i!="function"})})]}),C&&t.jsx(ja,{text:y??l,label:h("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),anchorRect:x,onClose:T,closeOnOutsideClick:!1,isMobilePopup:!0})]}):null]})}function Wr(e,n){return typeof n!="number"||typeof e!="number"?"disabled":e<n?"done":e===n?"active":"disabled"}function jn({index:e,stepIndex:n,isLast:a=!1,title:r="",titleProps:o={},children:i,className:l="",onDone:c=void 0,useTitleFaded:u=void 0}){const{t:d}=me.useTranslation(),[p,h]=s.useState(()=>Wr(e,n));s.useEffect(()=>{const k=Wr(e,n);if(k!==p){const _=setTimeout(()=>h(k),0);return()=>clearTimeout(_)}},[e,n,p]);const m=s.useCallback((...k)=>{Wr(e,n)==="done"||p==="done"||typeof c=="function"&&c(...k)},[e,n,p,c]),[b,g]=s.useState(!1),[f,C]=s.useState({text:"",label:"\uBB38\uC7A5 \uB4E3\uAE30",anchorRect:null,backdrop:!1,alignX:null,alignY:null}),v=s.useCallback(k=>{if(!k)return null;try{const _=k;if(typeof k=="object"&&(_.currentTarget||_.target)&&(_.nativeEvent||_.type)){const N=_.currentTarget??_.target;if(N&&typeof N.getBoundingClientRect=="function")return N.getBoundingClientRect()}if(k instanceof DOMRect)return k;const A=k;if(A&&typeof A.getBoundingClientRect=="function")return A.getBoundingClientRect();const T=k?.current;return T&&typeof T.getBoundingClientRect=="function"?T.getBoundingClientRect():null}catch{return null}},[]),x=s.useCallback((k,{text:_="",label:A="\uBB38\uC7A5 \uB4E3\uAE30",backdrop:T=!1,alignX:N="center",alignY:D="top"}={})=>{const H=v(k);C({text:_,label:A,anchorRect:H,backdrop:T,alignX:N,alignY:D}),g(!0)},[v]),w=s.useCallback(()=>{g(!1),C(k=>({...k,anchorRect:null}))},[]),y=s.Children.map(i,k=>{if(s.isValidElement(k)){const _=k;if(typeof _.type=="string")return _;const A=_.props??{},T=typeof A.onDone=="function"?A.onDone:m,N=typeof A.disabled=="boolean";let D=p==="disabled";return N&&(D=!!A.disabled),s.cloneElement(_,{onDone:T,disabled:D,showTooltip:x,hideTooltip:w})}return k});return t.jsxs("div",{className:`training-step training-step--${p} ${a?"training-step--last":""} ${l}`,"aria-current":p==="active",children:[t.jsx(Ol,{state:p}),t.jsxs("div",{className:"training-step__content",children:[t.jsx(Hl,{state:p,title:r,...o,useFaded:u}),y]}),b?t.jsx(pn,{anchorRect:f.anchorRect,backdrop:f.backdrop,onClose:w,ariaLabel:d("tooltip.textbox","\uBCF8\uBB38"),children:t.jsx(ja,{text:f.text,onClose:w})}):null]})}function Vl({context:e,state:n="disabled",theme:a="light"}){const{t:r}=me.useTranslation(),[o,i]=s.useState("disabled"),[l,c]=s.useState(()=>{try{return localStorage.getItem("tooltip-theme")||a}catch{return a}});s.useEffect(()=>{try{localStorage.setItem("tooltip-theme",l)}catch{}},[l]);const u=()=>c(H=>H==="dark"?"light":"dark"),{increase:d,decrease:p,canIncrease:h,canDecrease:m,fontSize:b,lineHeight:g}=Qs({storageKey:"textbox_fontScale"}),[f,C]=s.useState(""),v=s.useCallback(()=>i("active"),[]),x=s.useCallback(()=>C(""),[]),w=H=>{try{C(H)}catch{}},y=typeof navigator<"u"&&/Mobi|Android/i.test(navigator.userAgent||"");s.useEffect(()=>{if(n!=="disabled"){const H=setTimeout(()=>i(n),0);return()=>clearTimeout(H)}},[n]);const k=s.useMemo(()=>e&&typeof e=="object"?String(e.sentence??e.text??""):typeof e=="string"?e:"",[e]),[_,A]=s.useState(k);_!==k&&(A(k),i("disabled"));const T=n==="disabled"?o:n,N=T==="disabled"?"training-text-box--disabled":T==="active"?"training-text-box--active":T==="done"?"training-text-box--done":"",D=s.useMemo(()=>({fontSize:`${b}px`,lineHeight:`${g}px`}),[b,g]);return t.jsxs("div",{className:`training-text-box ${N} ${T!=="disabled"&&l==="dark"?"is-dark":""}`,children:[T==="disabled"&&t.jsx("div",{className:"training-text-box__preview",children:t.jsx(ie,{htmlType:"button",size:48,type:"bar",onClick:v,icon:"eye",ariaLabel:r("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),label:r("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),useBorder:!1})}),t.jsx("div",{className:"training-text-box__area","aria-hidden":T==="disabled",children:t.jsx("span",{className:"training-text-box__inner h3",style:D,children:k})}),T!=="disabled"&&t.jsxs("div",{className:"training-text-box__buttons","aria-hidden":T==="disabled",children:[t.jsx(ie,{htmlType:"button",size:32,type:"dot",onClick:p,onDisabledClick:()=>w(r("training.fontSizeMin","\uAE00\uC528 \uD06C\uAE30\uAC00 \uCD5C\uC18C\uC785\uB2C8\uB2E4.")),ariaLabel:r("training.fontSizeDecrease","\uAE00\uC790 \uD06C\uAE30 \uAC10\uC18C"),icon:"minus",variant:l==="dark"?"transparent-white":"transparent-gray",disabled:!m,useBorder:!1,showTooltipInfo:!0,...!y&&{width:"60px"}}),t.jsx(ie,{htmlType:"button",size:32,type:"dot",onClick:d,onDisabledClick:()=>w(r("training.fontSizeMax","\uAE00\uC528 \uD06C\uAE30\uAC00 \uCD5C\uB300\uC785\uB2C8\uB2E4.")),ariaLabel:r("training.fontSizeIncrease","\uAE00\uC790 \uD06C\uAE30 \uC99D\uAC00"),icon:"plus",variant:l==="dark"?"transparent-white":"transparent-gray",disabled:!h,useBorder:!1,showTooltipInfo:!0,...!y&&{width:"60px"}}),t.jsx(ie,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:l==="dark"?"moon":"sun-medium",onClick:u,ariaLabel:r("training.toggleBackground","\uBC30\uACBD \uC804\uD658"),variant:l==="dark"?"transparent-white":"transparent-gray"})]}),t.jsx(Pn,{message:f,position:"top",onClose:x})]})}function qr({index:e,stepIndex:n,isLast:a=!1,title:r,useTitleFaded:o,onDone:i,onChange:l,answer:c,wrongAnswers:u,choices:d,multiSelect:p=!1,correctCount:h=0,useDisabledCovered:m=!1,choiceIcons:b,shuffleChoices:g=!0}){const{t:f}=me.useTranslation(),C=r??f("training.selectConfirm","\uBB38\uC81C\uB97C \uBCF4\uACE0 \uD574\uB2F9\uD558\uB294 \uB0B4\uC6A9\uC744 \uC120\uD0DD\uD558\uC138\uC694."),v=typeof e=="number"?e:-1,x=typeof n!="number"?"disabled":v<n?"done":v===n?"active":"disabled",w=Array.isArray(d)&&d.length?d:typeof c<"u"?[c].concat(Array.isArray(u)?u:[]):void 0,y=u?u.join("||"):"",k=d?d.join("||"):"",[_,A]=s.useState(()=>Array.isArray(w)?g?Xn(w):w.slice():void 0);s.useEffect(()=>{Array.isArray(w)&&w.length?A(g?Xn(w):w.slice()):A(void 0)},[c,y,k,g]);const[T,N]=s.useState(null),[D,H]=s.useState(()=>new Set);s.useEffect(()=>{N(null),H(new Set)},[k]);const F=s.useRef(void 0);s.useEffect(()=>{const E=F.current;typeof E=="number"&&typeof n=="number"&&typeof e=="number"&&E>=e&&n<e&&(N(null),H(new Set)),F.current=n},[n,e]);const B=s.useCallback(E=>{if(x!=="active")return;const te=_?.[E];if(te==null)return;const L=te,O=x==="active"||x==="done";if(p){const ee=new Set(D),Y=ee.has(L);Y?ee.delete(L):ee.add(L),H(ee),typeof l=="function"&&l({selectedValues:[...ee],__ts:Date.now()}),O&&(typeof h=="number"&&h>0?ee.size>=h:!Y)&&typeof i=="function"&&x==="active"&&i({selectedValues:[...ee],__ts:Date.now()})}else N(L),typeof l=="function"&&l({selectedIndex:E,selectedValue:L,__ts:Date.now()}),O&&typeof i=="function"&&x==="active"&&i({selectedIndex:E,selectedValue:L,__ts:Date.now()})},[_,x,p,l,i,h,D]),I=`training-step__buttons${Array.isArray(_)&&_.length>3?" training-step__buttons--wrap-3":""}`;return t.jsx(jn,{index:e,stepIndex:n,isLast:a,title:C,useTitleFaded:o,children:t.jsx("div",{className:I,children:Array.isArray(_)&&_.length>0?_.map((E,te)=>t.jsx(ie,{htmlType:"button",size:56,type:"bar",onClick:()=>B(te),ariaLabel:String(E),label:E,useLabel:!0,icon:b?b[String(E)]:void 0,variant:"default",disabled:x==="disabled",selected:p?D.has(E):T===E,useDisabledCovered:m,minWidth:0},String(E))):null})})}function Ur({index:e,stepIndex:n,isLast:a=!1,title:r,onDone:o,onChange:i,context:l,demoSelected:c}){const{t:u}=me.useTranslation(),d=r??u("training.confirmTitle","\uBB38\uC7A5\uC744 \uD655\uC778\uD558\uACE0 \uC798 \uB4E4\uB838\uB294\uC9C0 \uC120\uD0DD\uD558\uC138\uC694."),p=typeof e=="number"?e:-1,h=typeof n!="number"?"disabled":p<n?"done":p===n?"active":"disabled",m=l&&typeof l=="object"?l.sentence||"":typeof l=="string"?l:"",b=l&&typeof l=="object"?l.choices:void 0,[g,f]=s.useState(c??null),[C,v]=s.useState(m);C!==m&&(v(m),c==null&&f(null));const x=s.useCallback(k=>{const _=typeof k=="object"&&k!==null?Object.assign({},k,{__ts:Date.now()}):{value:k,__ts:Date.now()};typeof i=="function"&&i(_),h==="active"&&typeof o=="function"&&o(_)},[i,h,o]),w=s.useCallback(()=>{h==="active"&&(f(!1),x(!1))},[x,h]),y=s.useCallback(()=>{h==="active"&&(f(!0),x(!0))},[x,h]);return t.jsxs(jn,{index:e,stepIndex:n,isLast:a,title:d,onDone:o,useTitleFaded:!1,children:[t.jsx(Vl,{context:l,state:h}),t.jsx("div",{className:"training-step__buttons",children:Array.isArray(b)&&b.length>0?b.slice(0,6).map((k,_)=>t.jsx(ie,{htmlType:"button",size:56,type:"bar",onClick:()=>{h==="active"&&(f(_),x&&x(_))},disabled:h==="disabled",ariaLabel:String(k),label:k,variant:h,selected:g===_},_)):t.jsxs(t.Fragment,{children:[t.jsx(ie,{htmlType:"button",size:56,type:"bar",onClick:w,disabled:h==="disabled",icon:"x",ariaLabel:u("training.notHeard","\uC548 \uB4E4\uB838\uC5B4\uC694."),label:u("training.notHeard","\uC548 \uB4E4\uB838\uC5B4\uC694."),variant:"default",selected:g===!1}),t.jsx(ie,{htmlType:"button",size:56,type:"bar",onClick:y,disabled:h==="disabled",icon:"circle",ariaLabel:u("training.heardWell","\uC798 \uB4E4\uB838\uC5B4\uC694."),label:u("training.heardWell","\uC798 \uB4E4\uB838\uC5B4\uC694."),variant:"default",selected:g===!0})]})})]})}function Gr({index:e,stepIndex:n,isLast:a=!1,title:r,onDone:o,btnLabel:i,soundSrc:l,bucketPath:c,usePreviewTextBtn:u,previewText:d=null,onPreviewTextBtn:p,disabled:h,_pageIndex:m,showSoundWaveForm:b,showNoiseWaveForm:g}){const{t:f}=me.useTranslation(),C=r??f("training.listenTitle","\uC81C\uC2DC\uD558\uB294 \uBB38\uC7A5\uC744 \uB4E4\uC5B4\uC8FC\uC138\uC694."),v=h??(typeof n=="number"&&typeof e=="number"?e>n:!1);return t.jsx(jn,{index:e,stepIndex:n,isLast:a,title:C,onDone:o,titleProps:{usePreviewTextBtn:u,previewText:d,onPreviewTextBtn:p},children:t.jsx(zr,{soundSrc:l,ttsText:l?null:d??C,bucketPath:c,btnLabel:i||f("training.listenButton","\uBB38\uC7A5 \uB4E3\uAE30"),disabled:v,className:"training-step__listen-sticky",showSoundWaveForm:b,showNoiseWaveForm:g},`audio-p${m??0}-s${e}`)})}const hy=[];function Kr({index:e,stepIndex:n,isLast:a=!1,title:r,onDone:o,onChange:i,context:l=hy}){const{t:c}=me.useTranslation(),u=r??c("training.orderListDefault","\uBB38\uC7A5\uC744 \uB4E4\uC740 \uC21C\uC11C\uB300\uB85C \uBC30\uCE58\uD558\uC138\uC694."),d=j=>typeof j=="string"?j:j&&(j.context||j.sentence||j.question||"")||"",[p,h]=s.useState(Array.isArray(l)?l:[]),[m,b]=s.useState(()=>(p||[]).map((j,M)=>({id:M,text:d(j)}))),g=s.useMemo(()=>typeof n!="number"||typeof e!="number"?"disabled":e<n?"done":e===n?"active":"disabled",[n,e]),f=g!=="disabled",C=s.useRef(void 0);s.useEffect(()=>{if(C.current===l)return;C.current=l;const j=Array.isArray(l)?l:[];h(j);const M=(V=>{const P=(V||[]).map((ae,le)=>({id:le,text:d(ae)}));if(P.length<=1)return P;const $=(ae,le)=>{if(ae.length!==le.length)return!1;for(let he=0;he<ae.length;he++)if(ae[he].text!==le[he].text)return!1;return!0};let W=Xn(P),se=0;for(;$(W,P)&&se<20;)W=Xn(P),se+=1;return W})(j);b(M);try{if(typeof i=="function"){const V=M.filter((P,$)=>P.text===d(j[$])).length;i({shuffled:M,score:V,total:(j||[]).length,initial:!0,__ts:Date.now()})}if(typeof o=="function"&&g==="active"){const V=M.filter((P,$)=>P.text===d(j[$])).length;o({shuffled:M,score:V,total:(j||[]).length,initial:!0,__ts:Date.now()})}}catch{}},[l]);const v=(j,M)=>{const V=[...m],P=j+M;if(P<0||P>=V.length)return;const $=V[P];V[P]=V[j],V[j]=$,te(V);try{if(typeof o=="function"&&g==="active"){const W=V.filter((se,ae)=>se.text===d(p[ae])).length;o({shuffled:V,score:W,total:(p||[]).length,__ts:Date.now()})}}catch{}},[x,w]=s.useState(null),y=s.useRef(null),k=s.useRef(null),_=s.useRef(null),A=s.useRef(null),T=s.useRef(null),N=s.useRef({x:0,y:0}),D=s.useRef(null),H=s.useRef({dx:0,dy:0}),F=()=>{if(D.current!==null)return;const j=()=>{if(!y.current){D.current=null;return}D.current=requestAnimationFrame(j);const M=N.current,V=H.current||{dx:0,dy:0};y.current&&(y.current.style.transform=`translate3d(${M.x-V.dx}px, ${M.y-V.dy}px, 0)`)};D.current=requestAnimationFrame(j)},B=s.useRef(new Map),I=s.useRef(new Map),E=()=>{const j=new Map;return B.current.forEach((M,V)=>{M&&M.getBoundingClientRect&&j.set(V,M.getBoundingClientRect())}),j},te=j=>{const M=E();b(j);try{if(typeof i=="function"){const V=j.filter((P,$)=>P.text===d(p[$])).length;i({shuffled:j,score:V,total:(p||[]).length,__ts:Date.now()})}}catch{}requestAnimationFrame(()=>{const V=E();j.forEach(P=>{const $=M.get(P.id),W=V.get(P.id),se=B.current.get(P.id);if(!se||!$||!W)return;const ae=$.top-W.top;ae&&(se.style.transition="none",se.style.transform=`translateY(${ae}px)`,requestAnimationFrame(()=>{se.style.transition="transform 420ms cubic-bezier(.22,.9,.39,1)",se.style.transform="";const le=()=>{se.style.transition="",se.removeEventListener("transitionend",le)};se.addEventListener("transitionend",le)}))})})},L=(j,M)=>{try{try{M.dataTransfer?.setData("text/plain",String(j))}catch{}try{M.dataTransfer&&(M.dataTransfer.effectAllowed="move")}catch{}try{const V=document.createElement("div");V.style.cssText="position:absolute;top:-9999px;left:-9999px;width:1px;height:1px;opacity:0;pointer-events:none;",document.body.appendChild(V),M.dataTransfer?.setDragImage(V,0,0),requestAnimationFrame(()=>{try{document.body.removeChild(V)}catch{}})}catch{}}catch{}w(j);try{const V=m[j],P=document.createElement("div");P.className="order-list__dragging-object order-list__dragging-object--visible",P.textContent=V&&V.text?V.text:"",document.body.appendChild(P),y.current=P;const $=B.current.get(V.id);let W=M.clientX||0,se=M.clientY||0;try{if($&&$.getBoundingClientRect){const ce=$.getBoundingClientRect();W=ce.left+ce.width/2,se=ce.top+ce.height/2}}catch{}const ae=P.getBoundingClientRect(),le=ae.width/2,he=ae.height/2;H.current={dx:le,dy:he},P.style.transition="none",N.current={x:W,y:se},P.style.transform=`translate3d(${W-le}px, ${se-he}px, 0)`,requestAnimationFrame(()=>{try{P.style.transition=""}catch{}F()});const ve=ce=>{const J=ce;N.current={x:J.clientX,y:J.clientY},F()};_.current=ve,document.addEventListener("mousemove",ve);const Z=ce=>{const J=ce;N.current={x:J.clientX,y:J.clientY},F()};k.current=Z,document.addEventListener("dragover",Z);try{M.dataTransfer?.setData("text/plain",String(j));try{M.dataTransfer?.setData("application/json",JSON.stringify({idx:j}))}catch{}}catch{}}catch{}},O=(j,M)=>{M.preventDefault();try{M.dataTransfer&&(M.dataTransfer.dropEffect="move")}catch{}try{T.current!==null&&(clearTimeout(T.current),T.current=null);const V=M.currentTarget&&M.currentTarget.closest?M.currentTarget.closest(".order-list__item"):null;if(V&&A.current!==V){if(A.current)try{A.current.classList.remove("drag-over")}catch{}try{V.classList.add("drag-over")}catch{}A.current=V}}catch{}},ee=(j,M)=>{M.preventDefault();const V=M.dataTransfer?.getData("text/plain")||"",P=V?parseInt(V,10):x,$=j;if(typeof P!="number"||isNaN(P)||P===$){w(null),R(),Y();return}const W=c0(m,P,$);te(W),w(null),Y();try{if(typeof o=="function"&&g==="active"){const se=W.filter((ae,le)=>ae.text===d(p[le])).length;o({shuffled:W,score:se,total:(p||[]).length,__ts:Date.now()})}}catch{}try{requestAnimationFrame(()=>{const se=document.querySelectorAll(".order-list .order-list__item")[$];if(!se)return;const ae=se.querySelector(".order-list__slot")||se;try{ae.classList.add("pulse"),ae.offsetHeight,ae.classList.add("to-dark");const le=()=>{ae.classList.remove("pulse","to-dark"),ae.removeEventListener("transitionend",le)};ae.addEventListener("transitionend",le)}catch{}})}catch{}R()},Y=()=>{if(y.current){try{document.body.removeChild(y.current)}catch{}y.current=null}k.current&&(document.removeEventListener("dragover",k.current),k.current=null),_.current&&(document.removeEventListener("mousemove",_.current),_.current=null),D.current!==null&&(cancelAnimationFrame(D.current),D.current=null)},K=()=>{w(null),R(),Y()};s.useEffect(()=>()=>Y(),[]);const R=()=>{try{if(T.current!==null&&(clearTimeout(T.current),T.current=null),A.current){try{A.current.classList.remove("drag-over")}catch{}A.current=null}document.querySelectorAll(".order-list .order-list__item").forEach(j=>j.classList.remove("drag-over"))}catch{}};return s.useEffect(()=>{try{const j=Math.max(1,(m||[]).length);m.forEach((M,V)=>{const P=I.current.get(M.id);if(!P)return;let $=50;j>1&&($=Math.round(V/(j-1)*100));try{P.style.setProperty("--marker-pos",$+"%")}catch{}})}catch{}},[m]),s.useEffect(()=>()=>{Y(),T.current!==null&&(clearTimeout(T.current),T.current=null)},[]),t.jsx(jn,{index:e,stepIndex:n,isLast:a,title:u,children:t.jsx("div",{className:"order-list",children:m.map((j,M)=>{const V=Math.max(1,(m||[]).length),P=V>1?Math.round(M/(V-1)*100):50;return t.jsx("div",{className:"order-list__item",children:t.jsxs("div",{className:"order-list__slot","data-disabled":g==="disabled","aria-disabled":g==="disabled",children:[g!=="disabled"?t.jsx("div",{className:"order-list__marker caption-1",style:{"--marker-pos":P+"%"},ref:$=>{const W=I.current;$?W.set(j.id,$):W.delete(j.id)},children:t.jsx("span",{className:"order-list__slot-number button-1",children:M+1})}):null,t.jsxs("div",{ref:$=>{const W=B.current;$?W.set(j.id,$):W.delete(j.id)},className:`order-list__draggable ${x===M?"dragging":""}`,"data-disabled":g==="disabled","aria-disabled":g==="disabled",tabIndex:g==="disabled"?-1:0,draggable:f,onDragStart:f?$=>L(M,$):void 0,onDragEnter:f?$=>O(M,$):void 0,onDragOver:f?$=>O(M,$):void 0,onDragLeave:f?()=>{try{T.current!==null&&clearTimeout(T.current),T.current=setTimeout(()=>{try{const $=document.querySelectorAll(".order-list .order-list__item");$&&$[M]&&($[M].classList.remove("drag-over"),A.current===$[M]&&(A.current=null))}catch{}},80)}catch{}}:void 0,onDrop:f?$=>ee(M,$):void 0,onDragEnd:f?K:void 0,children:[t.jsx("span",{className:"order-list__item-text body-2",children:j.text}),f?t.jsxs("span",{className:"order-list__item-buttons",children:[t.jsx(ie,{htmlType:"button",size:32,type:"dot",onClick:()=>v(M,-1),ariaLabel:c("training.up"),icon:"chevron-up",variant:"transparent-gray",width:48,useFaded:"true",disabled:M===0,useBorder:!1,useDisabledInvisible:!0}),t.jsx(ie,{htmlType:"button",size:32,type:"dot",onClick:()=>v(M,1),ariaLabel:c("training.down"),icon:"chevron-down",variant:"transparent-gray",width:48,useFaded:"true",disabled:M===m.length-1,useBorder:!1,useDisabledInvisible:!0})]}):null]})]})},j.id)})})})}const my=8e3;function fy(e,n){return new Promise(a=>{let r=!1;const o=()=>{r||(r=!0,a())};e.then(o,o),setTimeout(o,n)})}function zl({index:e,stepIndex:n,isLast:a=!1,title:r,onDone:o,onChange:i,context:l=[],selectable:c=!1,hideLabel:u=!1,hideAudio:d=!1,maxCards:p}){const{t:h}=me.useTranslation(),m=r??h("training.cardInstructions","\uB0B1\uB9D0 \uCE74\uB4DC\uB97C \uBCF4\uACE0 \uC18C\uB9AC\uB97C \uB4E3\uACE0 \uD655\uC778\uD558\uC138\uC694."),b=s.useMemo(()=>Array.isArray(l)?l:l&&l.items||[],[l]),g=p??3,f=(b||[]).slice(0,g);(b||[]).length>g&&console.warn(`TrainingStepCard: ${b.length} items passed but only ${g} shown`);const C=typeof e=="number"?e:-1,v=typeof n!="number"?"disabled":C<n?"done":C===n?"active":"disabled",[x,w]=s.useState(null),y=s.useRef([]),[k,_]=s.useState(!1),A=s.useRef(!0);s.useEffect(()=>(A.current=!0,()=>{A.current=!1}),[]);const T=s.useMemo(()=>b.map(F=>F?.id??F?.word??"").join("|"),[b]);s.useEffect(()=>{w(null)},[T]);const N=s.useCallback((F,B)=>{if(c)return;const I={item:F,index:B,__ts:Date.now()};try{typeof i=="function"&&i(I)}catch{}if(v==="active"&&typeof o=="function")try{o(I)}catch{}},[c,i,v,o]),D=s.useCallback(async()=>{if(!(k||v==="disabled")){_(!0);try{for(let F=0;F<f.length&&A.current;F++){const B=y.current[F];B&&await fy(B.play(),my)}}finally{_(!1)}}},[k,v,f.length]),H=s.useCallback((F,B)=>{if(v!=="active")return;w(B);const I={selectedValue:F.word||F.title||"",selectedIndex:B,item:F,__ts:Date.now()};try{typeof i=="function"&&i(I)}catch{}if(v==="active"&&typeof o=="function")try{o(I)}catch{}},[i,v,o]);return t.jsx(jn,{index:e,stepIndex:n,isLast:a,title:m,onDone:o,titleProps:{usePlayAllBtn:!d&&f.length>0,onPlayAll:D,playAllActive:k},children:t.jsx("div",{className:"training-step__cards",children:f.length===0?t.jsx("div",{className:"training-step__empty",children:h("training.noCards","\uCE74\uB4DC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")}):f.map((F,B)=>t.jsx(Nr,{ref:I=>{y.current[B]=I},item:F,disabled:v==="disabled",onPlayDone:()=>N(F,B),selectable:c,selected:c&&x===B,onSelect:c?()=>H(F,B):void 0,flipDelay:B*120,hideLabel:u,hideAudio:d},F&&F.id||B))})})}const Cy=160,gy={\uBCF4\uCCAD\uAE30:"hearingAid",\uC778\uACF5\uC640\uC6B0:"cochlearImplant"};function by(e,n){const a=gy[e];return a?n(`device.type.${a}`,{defaultValue:e}):e}const Wl=()=>{};function Cn(e){const n=s.useId();if(!("variant"in e)){const{label:C,sub:v,onClick:x,children:w,align:y="horizontal",icon:k}=e,_=A=>{x&&A.target===A.currentTarget&&(A.key==="Enter"||A.key===" ")&&(A.preventDefault(),x())};return t.jsxs("div",{className:ye("panel-row",y==="vertical"?"panel-row--vertical":"",x?"panel-row--clickable":""),onClick:x,onKeyDown:x?_:void 0,role:x?"button":void 0,tabIndex:x?0:void 0,children:[k!=null&&t.jsx("div",{className:"panel-row__icon",children:k}),C!=null&&t.jsxs("div",{className:"panel-row__left",children:[t.jsx("div",{className:"panel-row__label body-3",children:C}),v&&t.jsx("div",{className:"panel-row__sub caption-1",children:v})]}),t.jsx("div",{className:"panel-row__right",children:w})]})}if(e.variant==="description")return t.jsx("div",{className:"panel-row panel-row--block",children:t.jsx("p",{className:"panel-row__description body-3",children:e.children})});if(e.variant==="empty")return t.jsx("div",{className:"panel-row panel-row--empty body-3",children:e.children});if(e.variant==="loading")return t.jsx("div",{className:"panel-row panel-row--loading",children:t.jsx(sa,{size:28})});if(e.variant==="custom"&&!e.label)return t.jsx("div",{className:"panel-row panel-row--block",children:e.children});const{variant:a,label:r,sub:o,onClick:i,required:l,error:c,align:u="horizontal",useFullWidth:d=!1,icon:p}=e,h=a==="button"?void 0:i;let m=null;const b=a==="toggle"?`panel-toggle-${n}`:void 0;if(a==="toggle"){const C=e;m=t.jsx(Fi,{checked:C.checked,onChange:C.onChange,id:b})}else if(a==="segmented"){const C=e;m=t.jsx(Tn,{options:C.options,value:C.value,onChange:C.onChange,size:C.size??40,ariaLabel:r})}else if(a==="dropdown"){const C=e,v=C.dropdowns?.length?t.jsx("div",{className:`panel-row__dropdown-group${d?" panel-row__dropdown-group--full":""}`,children:C.dropdowns.map((x,w)=>t.jsx("div",{className:d?"panel-row__dropdown-item--full":void 0,children:t.jsx(Wt,{options:x.options,value:x.value,onChange:x.onChange,placeholder:x.placeholder,block:d,error:!!c,ariaLabel:x.ariaLabel??([r,x.placeholder].filter(Boolean).join(" ")||void 0)})},w))}):t.jsx(Wt,{options:C.options??[],value:C.value??"",onChange:C.onChange??Wl,block:d,error:!!c,ariaLabel:r});m=c?t.jsxs("div",{className:`panel-row__dropdown-error-wrap${d?" panel-row__dropdown-error-wrap--full":""}`,children:[v,t.jsx("span",{className:"caption-1 panel-row__error",role:"alert",children:c})]}):v}else if(a==="button"){const C=e;C.buttons?.length?m=t.jsx("div",{className:"panel-row__button-group",children:C.buttons.map((v,x)=>t.jsx(ie,{htmlType:"button",size:v.btnSize??40,variant:v.btnVariant??"default",disabled:v.disabled,onClick:v.onClick,children:v.label},x))}):m=t.jsx(ie,{htmlType:"button",size:C.btnSize??40,variant:C.btnVariant??"default",disabled:C.disabled,onClick:C.onClick,children:C.buttonLabel})}else if(a==="text"){const C=e;m=t.jsx("span",{className:`panel-row__text body-2${d?" panel-row__text--full":""}`,style:C.valueColor?{color:C.valueColor}:void 0,children:C.value})}else if(a==="input"){const C=e;m=t.jsxs("div",{className:`panel-row__input-wrap${d?" panel-row__input-wrap--full":""}`,children:[t.jsx(Dn,{value:C.value,onChange:C.onChange??Wl,onKeyDown:C.onKeyDown,onEnter:C.onEnter,placeholder:C.placeholder,inputMode:C.inputMode,readOnly:C.readOnly,disabled:C.disabled,type:C.type,autoComplete:C.autoComplete,maxLength:C.maxLength,showCount:C.showCount,multiline:C.multiline,rows:C.rows,fullWidth:d,error:c,ariaLabel:r,required:l}),C.helperText&&t.jsx("div",{className:"panel-row__helper caption-1",children:C.helperText})]})}else a==="custom"&&(m=e.children);const g=a==="input"||a==="dropdown"||(a==="text"||a==="custom")&&d,f=C=>{h&&C.target===C.currentTarget&&(C.key==="Enter"||C.key===" ")&&(C.preventDefault(),h())};return t.jsxs("div",{className:ye("panel-row",u==="vertical"?"panel-row--vertical":"",g?"panel-row--label-fixed":"",a==="text"?"panel-row--text":"",h?"panel-row--clickable":""),onClick:h,onKeyDown:h?f:void 0,role:h?"button":void 0,tabIndex:h?0:void 0,children:[p!=null&&t.jsx("div",{className:"panel-row__icon",children:p}),t.jsxs("div",{className:"panel-row__left",children:[b?t.jsxs("label",{htmlFor:b,className:"panel-row__label body-3",children:[r,l&&t.jsx("span",{className:"required-mark",children:"*"})]}):t.jsxs("div",{className:"panel-row__label body-3",children:[r,l&&t.jsx("span",{className:"required-mark",children:"*"})]}),o&&t.jsx("div",{className:"panel-row__sub caption-1",children:o})]}),t.jsx("div",{className:"panel-row__right",children:m})]})}function ql(e){const n=e.productName||e.brand,a=[e.brand,e.fitType].filter(r=>!!r&&r!==n);return[...new Set(a)].join(" \xB7 ")}function yy({devices:e,onRelease:n,emptyLabel:a}){const{t:r}=me.useTranslation();return t.jsx("div",{className:"panel-row panel-row--device",children:["\uC88C","\uC6B0"].map(o=>{const i=e[o],l=o==="\uC88C"?r("device.direction.left","\uC88C"):r("device.direction.right","\uC6B0");return t.jsxs("div",{className:"panel-row__device-column",children:[t.jsxs("div",{className:"panel-row__device-head",children:[t.jsx("span",{className:"panel-row__device-side body-2b",children:l}),i&&n&&t.jsx(ie,{htmlType:"button",size:32,type:"dot",icon:"x",ariaLabel:r("customers.device.unwear","\uCC29\uC6A9 \uD574\uC81C"),showTooltipInfo:r("customers.device.unwear","\uCC29\uC6A9 \uD574\uC81C"),onClick:()=>n(o)})]}),i?t.jsxs("div",{className:"panel-row__device-info",children:[t.jsxs("span",{className:"panel-row__device-kind",children:[i.device&&t.jsx(rt,{size:"small",variant:el(i.device),fill:"soft",label:by(i.device,r)}),ql(i)&&t.jsx("span",{className:"panel-row__device-detail body-3",children:ql(i)})]}),t.jsx("span",{className:"panel-row__device-name body-2b",children:i.productName||i.brand}),t.jsx("span",{className:"panel-row__device-date caption-1",children:r("customers.device.wornSince",{date:`${i.wornYear}.${i.wornMonth}.${i.wornDay}`})})]}):t.jsx("span",{className:"panel-row__device-empty body-3",children:a??r("customers.device.notRegistered","\uBBF8\uB4F1\uB85D")})]},o)})})}function Ea({title:e,icon:n,disc:a,actions:r,size:o="medium",minHeight:i,maxWidth:l,className:c,scrollable:u,scrollbarGutter:d="auto",compactRows:p=!1,useBorder:h=!0,useBg:m=!0,useRowBorder:b=!0,labelWidth:g,form:f=!1,loading:C,empty:v,children:x}){const w=ye("panel",`panel--${o}`,f?"panel--form":"",i!==void 0?"panel--fill":"",h?"":"panel--no-border",m?"":"panel--no-bg",b?"":"panel--no-row-border",p?"panel--compact-rows":"",c),y={};return i!==void 0&&(y.minHeight=i),l!==void 0&&(y.maxWidth=typeof l=="number"?`${l}px`:l),g!==void 0&&(y["--panel-label-width"]=typeof g=="number"?`${g}px`:g),t.jsxs("div",{className:w,style:Object.keys(y).length?y:void 0,children:[(e!=null||a!=null)&&t.jsxs("div",{className:ye("panel__header",a!=null?"panel__header--with-disc":""),children:[n&&t.jsx(Ve,{icon:n,label:typeof e=="string"?e:void 0,className:"panel__icon"}),t.jsxs("div",{className:"panel__title-group",children:[e!=null&&t.jsx("h2",{className:`panel__title ${a!=null?"body-3b":"h5b"}`,children:e}),a!=null&&t.jsx("p",{className:"panel__disc caption-1",children:a})]}),r&&t.jsx("div",{className:"panel__actions",children:r})]}),C?t.jsx(Cn,{variant:"loading"}):v!=null&&s.Children.toArray(x).length===0?t.jsx(Cn,{variant:"empty",children:v}):u?t.jsx("div",{className:ye("panel__body--scroll",d==="stable"&&"panel__body--gutter-stable"),children:x}):x]})}function vy({cols:e=2,children:n}){return t.jsx("div",{className:"panel-grid",style:{"--panel-grid-cols":e},children:n})}function xy(e){return[{label:e("training.noise.level.none","\uC5C6\uC74C"),value:0},{label:e("training.noise.level.weak","\uC57D\uD568"),value:1},{label:e("training.noise.level.medium","\uBCF4\uD1B5"),value:2},{label:e("training.noise.level.strong","\uAC15\uD568"),value:3},{label:e("training.noise.level.veryStrong","\uB9E4\uC6B0 \uAC15\uD568"),value:4}]}function Ul(e){return[{label:e("training.noise.type.default","\uAE30\uBCF8"),value:"defaultNoise",icon:"party-popper"},{label:e("training.noise.type.street","\uAE38\uAC70\uB9AC"),value:"street",icon:"car"},{label:e("training.noise.type.buzz","\uC640\uAE00\uC640\uAE00"),value:"buzz",icon:"message-square-more"},{label:e("training.noise.type.restaurant","\uC2DD\uB2F9"),value:"restaurant",icon:"coffee"}]}xy(Tt.t.bind(Tt)),Ul(Tt.t.bind(Tt));const Yr="none",_y=.5,wy=1.5,ky=.25;function Zr({title:e,valueLabel:n,value:a,min:r,max:o,step:i,tickStep:l,size:c,onChange:u}){return t.jsxs(Cn,{variant:"custom",label:e,useFullWidth:!0,children:[t.jsx(Zi,{value:a,onChange:u,min:r,max:o,step:i,size:c,showBgTick:!0,tickStep:l,ariaLabel:e,className:"noise-settings__slider-input"}),t.jsx("div",{className:"noise-settings__value button-1",children:n})]})}function Gl({anchorRect:e,onClose:n}){const{t:a}=me.useTranslation(),r=Ut("(max-width: 767px)")?40:24,o=Da(),i=ia(o?.settings??ca),l=o?.settings.type??"defaultNoise",c=o?.settings.enabled??!0,u=o?.playbackRate??1,d=o?.mainVolume??1,p=Math.round(d*100),h=s.useCallback(f=>{try{o?.setMainVolume(Math.max(0,Math.min(1,f/100)))}catch{}},[o]),m=s.useCallback(f=>{try{o?.setPlaybackRate(f)}catch{}},[o]),b=s.useCallback(f=>{const C=Math.min(Sa,Math.max(0,Math.round(f*10)/10));try{o?.setSettings({noiseRatio:C})}catch{}},[o]),g=s.useCallback(f=>{try{f===Yr?o?.setSettings({enabled:!1}):o?.setSettings({type:f,enabled:!0})}catch{}},[o]);return t.jsx(pn,{anchorRect:e,offset:12,onClose:n,ariaLabel:a("training.trainingSettingsTitle","\uD6C8\uB828 \uC124\uC815"),isMobilePopup:!1,closeOnOutsideClick:!1,header:t.jsxs("div",{className:"noise-settings__header",children:[t.jsx("span",{children:a("training.trainingSettingsTitle","\uD6C8\uB828 \uC124\uC815")}),t.jsx(ie,{htmlType:"button",size:40,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,ariaLabel:a("common.close","\uB2EB\uAE30"),onClick:n})]}),children:t.jsxs(Ea,{className:"noise-settings",useBorder:!1,labelWidth:72,children:[t.jsx(Zr,{title:a("training.playVolumeTitle","\uC804\uCCB4 \uC18C\uB9AC"),valueLabel:`${p}%`,value:p,min:0,max:100,step:10,size:r,onChange:h}),t.jsx(Zr,{title:a("training.playSpeedTitle","\uC7AC\uC0DD \uC18D\uB3C4"),valueLabel:`${u.toFixed(2)}x`,value:u,min:_y,max:wy,step:ky,size:r,onChange:m}),t.jsx(Cn,{variant:"custom",label:a("training.noiseTypeTitle","\uC18C\uC74C \uC885\uB958"),useFullWidth:!0,children:t.jsx(Tn,{ariaLabel:a("training.noiseTypeTitle","\uC18C\uC74C \uC885\uB958"),size:40,shape:"rounded",options:[{key:Yr,label:a("training.noise.type.none","\uC5C6\uC74C")},...Ul(a).map(f=>({key:f.value,label:f.label}))],value:c?l:Yr,onChange:g})}),t.jsx(Zr,{title:a("training.noiseRatioTitle","\uC18C\uC74C \uBE44\uC728"),valueLabel:a("training.noiseRatioValue","{{ratio}}\uBC30",{ratio:i.toFixed(1)}),value:i,min:0,max:Sa,step:jl,size:r,onChange:b})]})})}function Kl({useNoiseSettingBtn:e=!1,onSettings:n,onNext:a,onResult:r,stepIndex:o=0,stepCount:i=0,pageIndex:l=0,pageCount:c=1}){const{t:u}=me.useTranslation(),[d,p]=s.useState(!1),[h,m]=s.useState(null),[b,g]=s.useState(!1),f=s.useRef(null),C=s.useRef(null),v=Da(),x=l<c-1,w=l===c-1,y=o===Math.max(0,i);s.useEffect(()=>{e||(p(!1),m(null))},[e]);const k=s.useCallback(()=>{p(!1),m(null)},[]),_=s.useCallback(()=>{if(d){p(!1),m(null);return}const N=f?.current?.getBoundingClientRect();N&&m(N),n?.(),p(!0)},[d,n]),A=s.useCallback(()=>{if(d){p(!1),m(null);return}const N=C?.current?.getBoundingClientRect();N&&m(N),n?.(),p(!0)},[d,n]),T=s.useCallback(()=>g(N=>!N),[]);return t.jsxs("div",{className:"pp-bottom",children:[t.jsxs("div",{className:"pp-bottom__left",children:[e?t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"pp-bottom__settings--desktop",children:t.jsx("div",{ref:f,className:"pp-bottom__tooltip-trigger","data-tooltip-ignore":!0,children:t.jsx(ie,{htmlType:"button",size:56,type:"bar",icon:"settings",onClick:_,selected:d,ariaLabel:u("training.trainingSettingsTitle","\uD6C8\uB828 \uC124\uC815"),label:u("training.trainingSettingsTitle","\uD6C8\uB828 \uC124\uC815"),minWidth:140})})}),t.jsx("div",{className:"pp-bottom__settings--mobile",children:t.jsx("div",{ref:C,className:"pp-bottom__tooltip-trigger","data-tooltip-ignore":!0,children:t.jsx(ie,{htmlType:"button",size:56,type:"dot",icon:"settings",onClick:A,selected:d,ariaLabel:u("training.settings","\uC124\uC815"),minWidth:52})})})]}):null,e&&t.jsx(ie,{htmlType:"button",size:40,type:"dot",shape:"pill",icon:"audio-lines",onClick:T,selected:b,ariaLabel:u("training.meter.toggle","\uC624\uB514\uC624 \uBBF8\uD130 \uD45C\uC2DC")}),e&&b&&t.jsxs("div",{className:"pp-bottom__meters",children:[t.jsxs("div",{className:"pp-bottom__meter",children:[t.jsx("span",{className:"pp-bottom__meter-label caption-1",children:u("training.meter.sentence","\uC7AC\uC0DD")}),t.jsx(xr,{analyser:v?.mainAnalyser??null,orientation:"horizontal",length:112,label:"db",labelPos:"left",ariaLabel:u("training.meter.sentence","\uC7AC\uC0DD")})]}),t.jsxs("div",{className:"pp-bottom__meter",children:[t.jsx("span",{className:"pp-bottom__meter-label caption-1",children:u("training.meter.noise","\uC18C\uC74C")}),t.jsx(xr,{analyser:v?.noiseAnalyser??null,orientation:"horizontal",length:112,label:"db",labelPos:"left",ariaLabel:u("training.meter.noise","\uC18C\uC74C")})]})]})]}),t.jsxs("div",{className:"pp-bottom__right",children:[w&&t.jsx(ie,{htmlType:"button",size:56,type:"bar",icon:"check",onClick:typeof r=="function"?r:a,ariaLabel:u("training.viewResult","\uACB0\uACFC\uBCF4\uAE30"),label:u("training.viewResult","\uACB0\uACFC\uBCF4\uAE30"),variant:"main",disabled:!y}),x&&t.jsx(ie,{htmlType:"button",size:56,type:"bar",rightIcon:"chevron-right",align:"right",onClick:a,ariaLabel:u("training.nextQuestion","\uB2E4\uC74C \uBB38\uC81C"),label:u("training.nextQuestion","\uB2E4\uC74C \uBB38\uC81C"),variant:"main",disabled:!y})]}),e&&d&&t.jsx(Gl,{anchorRect:h,onClose:k})]})}function Yl({title:e,subtitle:n,desc:a,depth:r,icon:o,wrapperStyle:i,iconTooltip:l,pageIndex:c,pageCount:u,progressMax:d,progressIndex:p,onBack:h,onClose:m}){const{t:b}=me.useTranslation(),g=Ut("(max-width: 767px)"),f=Number.isInteger(p)?p:c||0,C=Number.isInteger(d)?d:u||0,v=h||m,x=Array.isArray(r)?g?r[r.length-1]:r.join(" / "):r,w=typeof e=="string"?e.trim():e,y=typeof n=="string"?n.trim():n,k=!!(w||y),_=k?w||y:b("common.emptyTrainingName","\uD6C8\uB828 \uC774\uB984\uC774 \uBE44\uC5B4 \uC788\uC2B5\uB2C8\uB2E4."),A=x||(w?n:void 0),T=g&&typeof A=="string"&&(A.includes(" \xB7 ")||A.includes(" / "))?A.split(/\s[·/]\s/).pop():A,N=s.useMemo(()=>{const D=i&&typeof i=="object"?{...i}:{};return!("width"in D)&&!("height"in D)&&(D.width="40px",D.height="40px"),D},[i]);return t.jsxs("header",{className:"pp-title training-popup-title",children:[t.jsxs("div",{className:"pp-title__left",children:[v?t.jsx(ie,{htmlType:"button",size:48,type:"dot",icon:"chevron-left",ariaLabel:b("common.back","\uB4A4\uB85C"),onClick:v,useBorder:!1,iconSize:"large",iconColor:"--color-black",variant:"transparent-gray"}):null,t.jsx("div",{children:o?t.jsx(al,{icon:o,label:e,tooltip:l,wrapperStyle:N}):null}),t.jsxs("div",{className:"pp-title__text",children:[T?t.jsx("span",{className:"pp-title__depth caption-1",children:T}):null,t.jsx("span",{className:`pp-title__title h2${k?"":" pp-title__title--empty"}`,children:_}),a?t.jsx("span",{className:"pp-title__description caption-1",children:a}):null]})]}),t.jsx(Qi,{max:Math.max(0,C??0),index:Math.max(0,f??0)})]})}function Ay(){typeof window<"u"&&window.dispatchEvent(new CustomEvent("speechear.popup.close"))}function Ny(e){return!e&&e!==0?[]:Array.isArray(e)?e.flatMap(n=>typeof n=="string"?n.split("|").map(a=>a.trim()).filter(Boolean):n||n===0?[String(n)]:[]):typeof e=="string"?e.split("|").map(n=>n.trim()).filter(Boolean):[String(e)]}const Zl=(e,n)=>{if(!n)return n;const a=typeof Tt?.t=="function"?Tt.t(e,{defaultValue:n}):void 0;return typeof a=="string"&&a?a:n};function Xl(e,n,a){const r=e,o=r?.title||r?.name||(Array.isArray(n)?n[n.length-1]:void 0)||a||"\uD6C8\uB828",i=ys().find(c=>c.key===(r?.category_0||r?.category_main_code)),l=i?.subs?.find(c=>c.key===(r?.category_1||r?.category_sub_code));return{title:o,label:r?.title||o,depth:n,icon:i?.icon,wrapperStyle:i?.color?{"--t-item-fg":i.color}:void 0,iconTooltip:[i?Zl(`topic.${i.key}`,i.label):void 0,l?Zl(`topic.sub.${l.key}`,l.label):void 0].filter(Boolean).join(" / ")||void 0}}function Xr(e){return e&&typeof e=="object"&&typeof e.__ts=="number"?e.__ts:0}function By(e){const n=e;return Array.isArray(n?.items)?n.items:Array.isArray(e)?e:e?[e]:[]}function Sy({idPrefix:e,trainingData:n,depth:a,fallbackTitle:r="\uD6C8\uB828",pages:o=[],emptyMessage:i,buildResults:l,metaPatch:c}){const u=Xl(n,a,r),d=typeof c=="function"?c(u)||{}:c||{},p=n?.id||n?.title||o.length;return{id:`${e}:${p}`,meta:{...u,...d},pages:o,emptyMessage:i,buildResults:l}}function Dy(e){if(typeof e=="string")return e;if(e&&typeof e=="object"){const n=e;return n.context||n.sentence||n.question||""||""}return""}function Ty(e){if(e&&typeof e=="object"){const n=e;if(Array.isArray(n.selectedValues))return n.selectedValues;if(n.selectedValue!==void 0)return n.selectedValue;if(n.selectedIndex!==void 0)return n.selectedIndex;if(n.value!==void 0)return n.value}return e}function jy(e,n=[]){if(Array.isArray(e))return e.join(", ");if(typeof e=="number"&&Array.isArray(n))return String(n[e]??"");if(typeof e=="string")return e}function Jl(e,n){if(!(!e||typeof e!="object"))return e[`step-${n}`]}function Ey(e,n,a,r){return Jl(e,n*a+r)}function My({payload:e,selected:n,choices:a=[],correctAnswers:r=[]}){if(e&&typeof e=="object"){const o=e;if(Array.isArray(o.selectedValues))return r.every(i=>o.selectedValues.includes(i))&&o.selectedValues.every(i=>r.includes(i));if(typeof o.correct=="boolean")return o.correct}if(r.length){if(typeof n=="number"&&Array.isArray(a)&&a.length)return r.some(o=>String(o)===String(a[n]));if(typeof n<"u")return r.some(o=>String(o)===String(n))}}function Ly(e){return e?Array.isArray(e.items)?e.items.map(n=>{const a=n;return typeof n=="string"?{sentence:n}:{sentence:a.context||a.sentence||"",contextCode:a.contextCode||a.context_code}}):Array.isArray(e.sentences)?e.sentences.map(n=>{const a=n;return typeof n=="string"?{sentence:n}:{sentence:a.sentence||a.context||"",contextCode:a.contextCode}}):Array.isArray(e.contexts)?e.contexts:e.contextCode?[{contextCode:e.contextCode}]:[]:[]}const Ql=s.createContext(null);function $y(){const e=s.useContext(Ql);if(!e)throw new Error("useTrainingPagePopupContext must be used inside TrainingPagePopup");return e}function Ry({index:e,stepIndex:n,isLast:a=!1,title:r,choices:o=[],onDone:i,onChange:l}){const{t:c}=me.useTranslation(),u=typeof e=="number"?e:-1,d=typeof n!="number"?"disabled":u<n?"done":u===n?"active":"disabled",[p,h]=s.useState(()=>o.map(()=>null)),m=JSON.stringify(o),b=o.length;s.useEffect(()=>{h(Array.from({length:b},()=>null))},[m]);const g=s.useMemo(()=>p.filter(v=>v!==null).length+1,[p]),f=s.useCallback(v=>{if(d!=="active")return;const x=p;let w;if(x[v]!=null){const k=x[v];w=x.map(_=>_!==null&&_>=k?null:_)}else w=[...x],w[v]=g;h(w);const y={selectedOrder:w,words:o,__ts:Date.now()};try{typeof l=="function"&&l(y)}catch{}if(x[v]==null&&w.length>0&&w.every(k=>k!==null))try{typeof i=="function"&&i(y)}catch{}},[d,p,g,l,i,o]),C=r??c("training.selectInOrder","\uB4E4\uC740 \uC21C\uC11C\uB300\uB85C \uCE74\uB4DC\uB97C \uC120\uD0DD\uD558\uC138\uC694.");return t.jsx(jn,{index:e,stepIndex:n,isLast:a,title:C,onDone:i,children:t.jsx("div",{className:"training-step__cards",children:o.map((v,x)=>t.jsx(Nr,{item:{word:v},disabled:d==="disabled",selectable:!0,selected:p[x]!==null,orderRank:p[x],onSelect:()=>f(x),flipDelay:x*120,hideLabel:!1,hideAudio:!0},`${v}-${x}`))})})}function Ma(e){return null}Ma.__isTrainingPage=!0;function Vn(e,n){const a=$y();return{ctx:a,index:e,stepIndex:a.currentStepIndex,isLast:typeof e=="number"&&typeof n=="number"?e===n-1:!1,onDone:r=>a.handleStepDone(r,e),onChange:r=>a.handleStepChange(r,e)}}function ec({_stepIndex:e,_totalSteps:n,...a}){const{index:r,stepIndex:o,isLast:i,onDone:l}=Vn(e,n);return t.jsx(Gr,{...a,index:r,stepIndex:o,isLast:i,onDone:l})}function tc({_stepIndex:e,_totalSteps:n,...a}){const{index:r,stepIndex:o,isLast:i,onDone:l,onChange:c}=Vn(e,n);return t.jsx(qr,{...a,index:r,stepIndex:o,isLast:i,onDone:l,onChange:c})}function nc({_stepIndex:e,_totalSteps:n,...a}){const{index:r,stepIndex:o,isLast:i,onDone:l,onChange:c}=Vn(e,n);return t.jsx(Ur,{...a,index:r,stepIndex:o,isLast:i,onDone:l,onChange:c})}function ac({_stepIndex:e,_totalSteps:n,...a}){const{index:r,stepIndex:o,isLast:i,onDone:l,onChange:c}=Vn(e,n);return t.jsx(Kr,{...a,index:r,stepIndex:o,isLast:i,onDone:l,onChange:c})}function rc({_stepIndex:e,_totalSteps:n,...a}){const{index:r,stepIndex:o,isLast:i,onDone:l,onChange:c}=Vn(e,n);return t.jsx(zl,{...a,index:r,stepIndex:o,isLast:i,onDone:l,onChange:c})}function Py({_stepIndex:e,_totalSteps:n,...a}){const{index:r,stepIndex:o,isLast:i,onDone:l,onChange:c}=Vn(e,n);return t.jsx(Ry,{...a,index:r,stepIndex:o,isLast:i,onDone:l,onChange:c})}function Jr(...e){for(const n of e)if(typeof n=="string"){const a=n.trim();if(a.length)return a}else{if(typeof n=="number"||typeof n=="boolean")return String(n);if(Array.isArray(n)&&n.length)return n.join(", ");if(n&&typeof n=="object"){const a=n,r=[a.text,a.label,a.value];for(const o of r){if(typeof o=="string"&&o.trim().length)return o.trim();if(typeof o=="number"||typeof o=="boolean")return String(o)}}}return null}function Iy(e){return Jr(e?.question,e?.q,e?.sentence,e?.text,e?.prompt,e?.wording)}function oc(e){if(!e)return;if(typeof e.decision=="boolean")return e.decision;if(typeof e.correct=="boolean")return e.correct;if(typeof e.heard=="boolean")return e.heard;if(typeof e.judgement=="boolean")return e.judgement;const n=Jr(e?.status,e?.result,e?.judge,e?.note);if(n){const a=n.toLowerCase();if(["ok","true","\uB9DE\uC74C","\uC815\uB2F5"].some(r=>a.includes(r)))return!0;if(["ng","false","\uD2C0\uB9BC","\uC624\uB2F5"].some(r=>a.includes(r)))return!1}}function sc(e){const{score:n,contextsLength:a,results:r=[],subtitle:o,onReplay:i,onClose:l,inline:c=!1}=e||{},{t:u}=me.useTranslation();s.useEffect(()=>{const f=a??0;if(n!=null&&f>0&&n/f>.5){const C=window.setTimeout(()=>{window.dispatchEvent(new CustomEvent("party:trigger",{detail:{count:140,strength:1.6,duration:2200}}))},0);return()=>window.clearTimeout(C)}},[n,a]);const d=s.useCallback(f=>{const C=oc(f),v=Jr(f?.wording,f?.label);return C===!0?{variant:"main",label:v??u("training.result.heardWell","\uC798 \uB4E4\uC5C8\uC5B4\uC694")}:C===!1?{variant:"danger",label:v??u("training.result.notHeard","\uBABB \uB4E4\uC5C8\uC5B4\uC694")}:{variant:"disabled",label:v??u("training.result.notJudged","\uBBF8\uD310\uC815")}},[u]),p=a??0,h=n??0,m=s.useMemo(()=>Array.isArray(r)?r:[],[r]),b=s.useMemo(()=>m.map(f=>{const C=f??{},v=Iy(C)||u("training.result.noContent","(\uB0B4\uC6A9\uC5C6\uC74C)"),{variant:x,label:w}=d(C),y=Array.isArray(C.corrects)?C.corrects:[],k=y.length?y.join(", "):C.answer!=null&&C.answer!==""?String(C.answer):null,_=typeof C.selectedText=="string"?C.selectedText:null,A=oc(C)===!0;return{problem:v,variant:x,label:w,answer:k,selectedText:_,isCorrect:A}}),[m,d,u]),g=s.useMemo(()=>b.some(f=>f.answer!==null||f.selectedText!==null),[b]);return t.jsx(fn,{onClose:l,closeOnBackdrop:!1,inline:c,ariaLabel:u("training.result.title","\uD6C8\uB828\uC744 \uBAA8\uB450 \uB9C8\uCCE4\uC2B5\uB2C8\uB2E4."),className:"popup--training-result",footerClassName:"trp-result__foot",footer:({animateThen:f,closeWithAnimation:C})=>t.jsxs("div",{className:"trp-actions",children:[t.jsx(ie,{htmlType:"button",size:56,type:"bar",label:u("training.result.replay","\uB2E4\uC2DC\uD558\uAE30"),onClick:()=>f(i)}),t.jsx(ie,{htmlType:"button",size:56,type:"bar",label:u("training.result.done","\uC644\uB8CC"),variant:"main",onClick:C})]}),children:()=>t.jsxs("div",{className:"trp-result is-on",children:[t.jsxs("header",{className:"trp-result__head",children:[t.jsx("p",{className:"trp-result__eyebrow caption-1",children:u("training.result.eyebrow","\uD6C8\uB828 \uC644\uB8CC")}),t.jsx("h1",{className:"trp-result__title h2",children:u("training.result.title","\uD6C8\uB828\uC744 \uBAA8\uB450 \uB9C8\uCCE4\uC2B5\uB2C8\uB2E4.")}),o&&t.jsx("p",{className:"trp-result__subtitle body-3",children:o}),t.jsx("div",{className:"trp-score",children:t.jsxs("div",{className:"trp-score__figure","aria-label":u("training.result.scoreAria",{correct:h,total:p}),children:[t.jsx("span",{className:"trp-score__big",children:h}),t.jsx("span",{className:"trp-score__sep",children:"/"}),t.jsx("span",{className:"trp-score__total",children:p})]})})]}),b.length>0&&t.jsx("section",{className:"trp-result__body",children:t.jsxs("div",{className:`result-table${g?" result-table--answer":""}`,role:"table","aria-label":u("training.result.tableAriaLabel","\uBB38\uD56D\uBCC4 \uD310\uC815"),children:[t.jsxs("div",{className:"result-table__head caption-1",role:"row",children:[t.jsx("span",{role:"columnheader",children:u("common.col.problem","\uBB38\uC81C")}),g&&t.jsx("span",{role:"columnheader",children:u("training.result.colAnswerSelected","\uC815\uB2F5 \xB7 \uC120\uD0DD")}),t.jsx("span",{className:"col-right",role:"columnheader",children:u("training.result.colJudge","\uD310\uC815")})]}),b.map((f,C)=>t.jsxs("div",{className:"result-table__row",role:"row",children:[t.jsxs("div",{className:"trp-row__problem",children:[t.jsx("span",{className:"trp-row__no caption-1",children:String(C+1).padStart(2,"0")}),t.jsx("div",{className:"trp-row__q body-2",children:f.problem})]}),g&&t.jsxs("div",{className:"trp-row__answers",children:[f.answer!==null&&t.jsxs("div",{className:"trp-row__answer-line",children:[t.jsx("span",{className:"trp-row__answer-label answer-correct caption-1",children:u("training.result.colAnswer","\uC815\uB2F5")}),t.jsx("span",{className:"trp-row__answer-value body-2",children:f.answer})]}),t.jsxs("div",{className:"trp-row__answer-line",children:[t.jsx("span",{className:`trp-row__answer-label answer-selected caption-1 ${f.isCorrect?"is-correct":"is-wrong"}`,children:u("training.result.colSelected","\uC120\uD0DD")}),t.jsx("span",{className:`trp-row__answer-value body-2 ${f.isCorrect?"is-correct":"is-wrong"}`,children:f.selectedText??"\u2014"})]})]}),t.jsx("div",{className:"trp-row__judge",children:t.jsx(rt,{variant:f.variant,label:f.label,fill:"soft",minWidth:80})})]},C))]})})]})})}function Fy(e){s.useEffect(()=>{if(!e)return;const n=new Date;return()=>{const a=new Date;a.getTime()-n.getTime()<5e3||h0({trainingType:e,startedAt:n.toISOString(),endedAt:a.toISOString()})}},[e])}function Qr(e,n){return e&&e.id||`page-${n??0}`}function eo(e,n){return e&&e.key||`step-${n??0}`}function La(){return{pageIndex:0,stepIndex:0,answersByPage:{}}}function Oy(e,n){return typeof e?.props=="function"?e.props(n)||{}:e?.props||{}}const ic=new Set(["LISTEN_IN_NOISE","SHORT_STORY","LONG_STORY","ORDERING_SENTENCE"]),Hy=e=>t.jsx(sc,{score:e.score,contextsLength:e.contextsLength,results:e.results,onReplay:e.onReplay,onClose:e.onClose});function Vy(e){const{scenario:n,title:a,subTitle:r,depth:o,icon:i,wrapperStyle:l,iconTooltip:c,pageIndex:u,pageCount:d,stepIndex:p,stepCount:h,onBack:m,onComplete:b,onNext:g,onSettings:f,useNoiseSetting:C=!0,children:v,ariaLabel:x,label:w,buildResults:y,onResult:k,typeKey:_,entryPoint:A,dailyTotal:T,itemRef:N,renderResultPopup:D,noiseOverride:H}=e;Fy(_&&!ic.has(_)?_:"");const F=s.useRef(0);s.useEffect(()=>{F.current=Date.now()},[]);const{t:B}=me.useTranslation(),I=k,E=!!n,te=n?.id||null,L=n?.meta||{},O=Array.isArray(n?.pages)?n.pages:[],ee=Array.isArray(v)||s.isValidElement(v)&&typeof v!="function"?s.Children.toArray(v).filter(s.isValidElement):[],Y=ee.length>0,K=z=>z===Ma||z?.__isTrainingPage===!0,R=Y&&ee.some(z=>K(z.type)),j=R?ee.filter(z=>K(z.type)).map((z,Q)=>{const ne=z.props||{};return{id:`children-page-${Q}`,steps:s.Children.toArray(ne.children).filter(s.isValidElement),pageTop:ne.pageTop||ne.top||null,pageBottom:ne.pageBottom||ne.bottom||null}}):[{id:"children-page-0",steps:ee}],M=Y&&!E&&typeof v!="function",V=M?Math.max(1,j.length):0;s.useEffect(()=>{if(!(typeof document>"u"||!document.body)&&!document.body.classList.contains("ihabdevteam-core-scope"))return document.body.classList.add("ihabdevteam-core-scope"),()=>{document.body.classList.remove("ihabdevteam-core-scope")}},[]),s.useEffect(()=>{if(typeof document>"u"||!document.body)return;const z=document.body;return z.dataset.ihabTrainingPopupCount=String(Number(z.dataset.ihabTrainingPopupCount||"0")+1),z.classList.add("ihab-training-popup-open"),()=>{const Q=Number(z.dataset.ihabTrainingPopupCount||"1")-1;Q>0?z.dataset.ihabTrainingPopupCount=String(Q):(delete z.dataset.ihabTrainingPopupCount,z.classList.remove("ihab-training-popup-open"))}},[]),s.useEffect(()=>{if(!(typeof document>"u"||!document.body))return Ug()},[]);const[P,$]=s.useState({...ca,enabled:!1}),W=s.useRef(P);s.useEffect(()=>{W.current=P},[P]);const se=s.useRef(H),ae=s.useRef(!1),le=s.useRef(null);s.useEffect(()=>{let z=!1;const Q=ne=>{if(z)return;ae.current=!0;const U=ne?la({...ca,enabled:!1},ne):{...ca},re=le.current;le.current=null;const ke=re?la(U,re):U;W.current=ke,$(ke),re&&!se.current&&fs(ke),ba(ke);const $e=se.current;if($e){const Ee=typeof $e=="function"?$e(ke):$e,nt=la(ke,Ee);W.current=nt,$(nt),ba(nt)}};return g0().then(Q),()=>{z=!0}},[]);const[he,ve]=s.useState(null),[Z,ce]=s.useState(null),J=s.useCallback((z,Q)=>{z==="main"?ve(Q):ce(Q)},[]),ge=s.useCallback(z=>{const Q=la(W.current,z);if(W.current=Q,$(Q),!ae.current){le.current={...le.current??{},...z},ba(Q);return}se.current||fs(Q),ba(Q)},[]),we=P.mainSpeed,de=P.mainVolume,Ce=s.useCallback(z=>ge({mainSpeed:z}),[ge]),xe=s.useCallback(z=>ge({mainVolume:z}),[ge]),je=s.useMemo(()=>({settings:P,setSettings:ge,registerAnalyser:J,mainAnalyser:he,noiseAnalyser:Z,playbackRate:we,setPlaybackRate:Ce,mainVolume:de,setMainVolume:xe}),[P,ge,J,he,Z,we,Ce,de,xe]),X=s.useRef(null),[pe,Ne]=s.useState(0),[Me,He]=s.useState("center"),[Se,Ie]=s.useState(!1),Le=s.useRef(!1),Ke=s.useRef(null),qe=s.useCallback(z=>{Le.current||(Le.current=!0,Ie(!0),Ke.current=setTimeout(z,Cy))},[]);s.useEffect(()=>()=>{Ke.current&&clearTimeout(Ke.current)},[]);const ze=s.useRef(m);s.useEffect(()=>{ze.current=m}),s.useEffect(()=>{const z=X.current,Q=document.activeElement;if(z){const ne=Array.from(z.querySelectorAll(kn)).filter(U=>!U.closest('[aria-hidden="true"]'))[0];if(ne)try{ne.focus()}catch{}}return()=>{const ne=document.activeElement;if(!ne||ne===document.body||z&&z.contains(ne))try{Q?.focus?.()}catch{}}},[]),s.useEffect(()=>An(()=>qe(()=>{const z=ze.current;typeof z=="function"&&z()})),[qe]),rr(X,!0);const[be,Fe]=s.useState(!1),De=s.useRef(!1),[Pe,Ae]=s.useState(null),[ot,lt]=s.useState(""),[Ue,Ge]=s.useState(()=>La()),pt=s.useRef(typeof u=="number"?u:null);s.useEffect(()=>{!E&&!M||(Ge(La()),Ae(null))},[E,te,M]),s.useEffect(()=>{M&&Ge(z=>{const Q=Math.max(0,Math.min(z.pageIndex,Math.max(0,V-1)));return Q!==z.pageIndex?{...z,pageIndex:Q,stepIndex:0}:z})},[M,V]);const Oe=M?Math.max(0,Math.min(Ue.pageIndex,V-1)):0,Xe=M?j[Oe]:null,tt=M&&Xe&&Array.isArray(Xe.steps)?Xe.steps:[],Te=E?Ue.pageIndex:M?Oe:typeof u=="number"?u:0,Ye=E?O[Math.max(0,Math.min(Ue.pageIndex,Math.max(0,O.length-1)))]:null,Et=E&&Ye&&Array.isArray(Ye.steps)?Ye.steps:[],ut=E?Et.length:M?tt.length:typeof h=="number"?h:0,st=E||M?Math.max(0,Math.min(Ue.stepIndex,Math.max(0,ut))):typeof p=="number"?p:0,bt=E?O.length:M?V:typeof d=="number"?d:0;s.useLayoutEffect(()=>{const z=pt.current;if(typeof Te=="number"&&z!==null&&Te!==z&&Te>z)try{lt(B("training.problemNotice",{n:Te+1}))}catch{}pt.current=typeof Te=="number"?Te:pt.current},[Te,u,B]),s.useLayoutEffect(()=>{const z=X.current;if(!z)return;const Q=()=>z.querySelector(".page-popup__scroll");let ne=null,U=null,re=null;const ke=Qe=>{const it=Q();if(!it)return;const Bt=it.scrollHeight<=it.clientHeight;if(He(Bt?"center":"top"),Qe&&!De.current){De.current=!0;try{Fe(!0)}catch{}try{nt.disconnect()}catch{}}},$e=()=>{ne!==null&&cancelAnimationFrame(ne),ne=requestAnimationFrame(()=>{U!==null&&clearTimeout(U),U=setTimeout(()=>ke(!0),60)})},Ee=()=>{re!==null&&cancelAnimationFrame(re),re=requestAnimationFrame(()=>ke(!1))};$e(),window.addEventListener("resize",Ee);const nt=new MutationObserver($e);nt.observe(z,{childList:!0,subtree:!0,attributes:!0});const mt=setTimeout(()=>{De.current||ke(!0)},400);return()=>{window.removeEventListener("resize",Ee),ne!==null&&cancelAnimationFrame(ne),U!==null&&clearTimeout(U),re!==null&&cancelAnimationFrame(re),clearTimeout(mt);try{nt.disconnect()}catch{}}},[X]);const Kt=s.useCallback(z=>{X.current&&(X.current._childOnNext=z)},[]),bn=s.useCallback(z=>{X.current&&(X.current._childOnResult=z)},[]),Ct=s.useCallback((z,Q,ne)=>{Ge(U=>{const re=U.answersByPage[z]||{},ke=re[Q],$e=Xr(ne),Ee=Xr(ke);return ke&&Ee>$e?U:{...U,answersByPage:{...U.answersByPage,[z]:{...re,[Q]:ne}}}})},[Ge]),kt=s.useCallback((z,Q,ne)=>{const U=Qr(Ye,Te),re=eo(z,Q);Ct(U,re,ne)},[Ye,Te,Ct]),$t=s.useCallback((z,Q,ne)=>{const U=Qr(Ye,Te),re=eo(z,Q);Ct(U,re,ne),!ne?.allowChange&&z?.autoAdvance!==!1&&Ge(ke=>({...ke,stepIndex:Math.max(ke.stepIndex,Q+1)}))},[Ye,Te,Ct,Ge]),At=s.useCallback((z,Q)=>{const ne=Xe?.id||`children-page-${Te??0}`,U=typeof Q=="number"?Q:st??0,re=`step-${U}`;Ct(ne,re,z),z?.allowChange||Ge(ke=>({...ke,stepIndex:Math.max(ke.stepIndex,U+1)}))},[Xe,Te,st,Ct,Ge]),yn=s.useCallback((z,Q)=>{const ne=Xe?.id||`children-page-${Te??0}`,U=`step-${typeof Q=="number"?Q:st??0}`;Ct(ne,U,z)},[Xe,Te,st,Ct]),Ot=M?{currentPageIndex:Te??0,currentStepIndex:st??0,totalStepsInPage:tt.length,handleStepDone:At,handleStepChange:yn}:null,on=async()=>{const z=typeof n?.buildResults=="function"?await Promise.resolve(n.buildResults({scenario:n,pages:O,flowState:Ue,answersByPage:Ue.answersByPage})):null;return typeof I=="function"&&await Promise.resolve(I(z))||z},vn=async()=>{const z=Xe?.id||`children-page-${Ue.pageIndex}`,Q=Ue.answersByPage[z]||{},ne=R?(()=>{const ke={};let $e=0;return j.forEach(Ee=>{const nt=Ue.answersByPage[Ee.id]||{},mt=Array.isArray(Ee.steps)?Ee.steps.length:0;for(let Qe=0;Qe<mt;Qe+=1){const it=nt[`step-${Qe}`];typeof it<"u"&&(ke[`step-${$e+Qe}`]=it)}$e+=mt}),ke})():Q;if(typeof y=="function"){const ke=await Promise.resolve(y(ne,{pageAnswers:Q,answersByPage:Ue.answersByPage,pages:j,currentPageId:z}));return typeof I=="function"&&await Promise.resolve(I(ke))||ke}const U=Object.entries(Q).map(([ke,$e],Ee)=>({index:Ee,key:ke,payload:$e})),re={results:U,answers:U,score:0};return typeof I=="function"&&await Promise.resolve(I(re))||re},Ze=()=>{try{if(typeof document<"u"&&document.body){try{document.dispatchEvent(new CustomEvent("speechear-close-tooltips"))}catch{}document.dispatchEvent(new PointerEvent("pointerdown",{bubbles:!0,cancelable:!0})),document.dispatchEvent(new MouseEvent("click",{bubbles:!0,cancelable:!0}))}}catch{}if(E){const ne=on();Ae({});const U=ne;Promise.resolve(U).then(re=>{Ae(re||{isEmpty:!0})}).catch(re=>{Ae({isEmpty:!0})});return}if(M){const ne=vn();Ae({});const U=ne;Promise.resolve(U).then(re=>{Ae(re||{isEmpty:!0})}).catch(re=>{Ae({isEmpty:!0})});return}const z=X.current&&X.current._childOnResult,Q=ne=>{try{return ne?ne():void 0}catch{return}};if(typeof z=="function"){const ne=Q(z);try{typeof document>"u"?require("url").pathToFileURL(__filename).href:Jt&&Jt.tagName.toUpperCase()==="SCRIPT"&&Jt.src||new URL("components.cjs.js",document.baseURI).href}catch{}ne&&typeof ne.then!="function"?Ae(ne):Ae(ne&&typeof ne.then=="function"?{}:{}),Promise.resolve(ne).then(U=>{U&&Ae(U)}).catch(U=>{});return}if(typeof I=="function"){const ne=Q(I);try{typeof document>"u"?require("url").pathToFileURL(__filename).href:Jt&&Jt.tagName.toUpperCase()==="SCRIPT"&&Jt.src||new URL("components.cjs.js",document.baseURI).href}catch{}ne&&typeof ne.then!="function"?Ae(ne):Ae(ne&&typeof ne.then=="function"?{}:{}),Promise.resolve(ne).then(U=>{try{typeof document>"u"?require("url").pathToFileURL(__filename).href:Jt&&Jt.tagName.toUpperCase()==="SCRIPT"&&Jt.src||new URL("components.cjs.js",document.baseURI).href}catch{}U&&Ae(U)}).catch(U=>{console.error("viewResults external handler failed",U)});return}},Nt=()=>{if(E){if(typeof Te=="number"&&typeof bt=="number"&&Te<bt-1){Ge(Q=>({...Q,pageIndex:Q.pageIndex+1,stepIndex:0}));return}return Ze()}if(M){const Q=tt.length;if(typeof st=="number"&&st<Q-1){Ge(ne=>({...ne,stepIndex:ne.stepIndex+1}));return}if(typeof Te=="number"&&typeof bt=="number"&&Te<bt-1){Ge(ne=>({...ne,pageIndex:ne.pageIndex+1,stepIndex:0}));return}return Ze()}if(typeof g=="function"){try{g()}catch{}return}const z=X.current&&X.current._childOnNext;if(typeof z=="function"){try{z()}catch{}return}},yt=E?L.title||L.label||x||B("common.popup","\uD31D\uC5C5"):a||w||(Array.isArray(o)?o[o.length-1]:void 0)||x||B("common.popup","\uD31D\uC5C5"),Yt=E?L.title??L.label??yt:a??w??yt,Zt=(z,Q)=>{const ne=Qr(Ye,Te),U=eo(z,Q),re=Ue.answersByPage[ne]?.[U],ke=Oy(z,{page:Ye,pageIndex:Te,step:z,stepIndex:Q,storedPayload:re,answersByPage:Ue.answersByPage,flowState:Ue}),$e={key:U,index:Q,stepIndex:st,isLast:Q===Et.length-1};switch(z?.type){case"listen":return t.jsx(Gr,{...$e,...ke,onDone:Ee=>$t(z,Q,Ee)});case"confirm":return t.jsx(qr,{...$e,...ke,onDone:Ee=>$t(z,Q,Ee),onChange:Ee=>kt(z,Q,Ee)});case"confirmWithText":return t.jsx(Ur,{...$e,...ke,onDone:Ee=>$t(z,Q,Ee),onChange:Ee=>kt(z,Q,Ee)});case"orderList":return t.jsx(Kr,{...$e,...ke,onDone:Ee=>$t(z,Q,Ee),onChange:Ee=>kt(z,Q,Ee)});default:return null}},Rt=s.useRef(void 0);s.useEffect(()=>{const z=Rt.current;if(Rt.current=Te,z===void 0||z===Te)return;const Q=X.current;if(!Q)return;const ne=document.activeElement;if(!(!ne||ne===document.body||!Q.contains(ne)||ne.disabled===!0))return;const U=Q.querySelector(`.training-steps ${kn.split(", ").join(", .training-steps ")}`)??Array.from(Q.querySelectorAll(kn)).find(re=>!re.closest('[aria-hidden="true"]'));try{U?.focus()}catch{}},[Te]);const Ht=E?O.length>0?t.jsx("div",{className:"training-steps",children:Et.map((z,Q)=>Zt(z,Q))},`replay-${pe}`):t.jsx("div",{className:"page-popup__content page-popup__content--center",children:t.jsx("div",{className:"pp-empty",children:n?.emptyMessage||B("training.noQuestions","\uBB38\uC81C\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")})}):null,sn=M?t.jsxs(Ql.Provider,{value:Ot,children:[Xe?.pageTop?t.jsx("div",{className:"training-page-top",children:Xe.pageTop}):null,t.jsx("div",{className:"training-steps",children:tt.map((z,Q)=>{const ne=z;return s.cloneElement(ne,{...ne.props,_stepIndex:Q,_totalSteps:tt.length,_stepKey:`step-${Q}`,_pageIndex:Te})})},`replay-${pe}`),Xe?.pageBottom?t.jsx("div",{className:"training-page-bottom",children:Xe.pageBottom}):null]}):null,Pt=s.useCallback(()=>{let z;if(_){const Q=Pe,ne=Q?.results||Q?.answers||[],U=Array.isArray(ne)&&ne.length>0?ne.length:null,re=Array.isArray(ne)?ne.filter($e=>$e?.correct===!0||$e?.isCorrect===!0||$e?.score===1||$e?.heard===!0||$e?.judgement===!0).length:null,ke=U!=null?re:null;m0({items:C0(ne),category:ic.has(_)?"sentence":"word",trainingType:_,entryPoint:A??"sentence",itemRef:N??null,correct:ke,total:U,score:typeof Q?.score=="number"?Q.score:null,durationSeconds:Math.max(0,Math.round((Date.now()-F.current)/1e3)),dailyTotal:T??null}),z={correct:ke,total:U}}Ae(null),qe(()=>{typeof b=="function"&&b(z),typeof m=="function"&&m()})},[b,m,_,A,T,N,Pe,Ae,qe]),Xt=s.useCallback(()=>lt(""),[lt]),ln=s.useCallback(()=>{qe(()=>{typeof m=="function"&&m()})},[m,qe]),vt=t.jsxs("div",{className:`page-popup${Se?" page-popup--closing":""}`,role:"dialog","aria-modal":"true","aria-label":yt,children:[t.jsxs("div",{ref:X,className:`page-popup__panel ${be?"":"page-popup__panel--measuring"} ${Me==="center"?"page-popup__panel--center":Me==="top"?"page-popup__panel--top":""}`,children:[t.jsx(Yl,{title:Yt,subtitle:E?L.subtitle||L.label:Array.isArray(o)?o.join(" / "):void 0,desc:E?void 0:r,depth:E?L.depth:o,icon:E?L.icon:i,wrapperStyle:E?L.wrapperStyle:l,iconTooltip:E?L.iconTooltip:c,progressMax:bt,progressIndex:Te,pageIndex:Te,pageCount:bt,onBack:ln,onClose:ln}),t.jsx("div",{className:"page-popup__scroll",children:t.jsx("div",{className:`page-popup__content ${Me==="center"?"page-popup__content--center":"page-popup__content--top"}`,children:M?sn:E?Ht:typeof v=="function"?v({registerOnNext:Kt,registerOnResult:bn,panelRef:X,setResultOverlay:Ae}):v})}),t.jsx(Kl,{onSettings:f,onNext:Nt,onResult:Ze,useNoiseSettingBtn:!!(E?L.useNoiseSetting??!0:C),stepIndex:st,stepCount:ut,pageIndex:Te,pageCount:bt})]}),Pe&&!Pe.isEmpty&&(D??Hy)({score:Pe.score,results:Pe.results||Pe.answers||[],contextsLength:Pe.results?Pe.results.length:Pe.answers?Pe.answers.length:0,onReplay:()=>{if(Ae(null),Ne(z=>z+1),E){if(Ge(La()),typeof n?.onReplay=="function")try{n.onReplay()}catch{}return}if(M){Ge(La());return}try{const z=X.current&&X.current._childOnResult;typeof z=="function"&&z({replay:!0})}catch{}},onClose:Pt}),Pe?.isEmpty&&t.jsx("div",{className:"page-popup page-popup--result-empty",role:"dialog","aria-modal":"true","aria-label":B("training.result.eyebrow","\uD6C8\uB828 \uC644\uB8CC"),children:t.jsxs("div",{className:"page-popup__panel page-popup__panel--center",children:[t.jsx("div",{className:"page-popup__scroll",children:t.jsx("div",{className:"page-popup__content page-popup__content--center",children:t.jsx("div",{className:"page-popup__empty",children:B("training.result.eyebrow","\uD6C8\uB828 \uC644\uB8CC")})})}),t.jsx("div",{className:"page-popup__bottom",children:t.jsx(ie,{htmlType:"button",variant:"main",size:48,onClick:Pt,label:B("training.result.done","\uC644\uB8CC")})})]})}),t.jsx(Pn,{message:ot,position:"top",onClose:Xt})]}),oe=t.jsx(Fr.Provider,{value:je,children:vt});return typeof document<"u"&&document.body?Ft.createPortal(oe,document.body):oe}const gn=Vy;gn.Page=Ma,gn.ListenStep=ec,gn.ConfirmStep=tc,gn.ConfirmWithTextStep=nc,gn.OrderListStep=ac,gn.CardStep=rc,gn.CardOrderStep=Py;function zy({label:e,homonum:n}){const a=Ln()?.(e,n)??"",{imgRef:r,loading:o,hasImage:i,onLoad:l,onError:c}=Ar(a);return i?t.jsxs("div",{className:"tooltip-word-image__cell",children:[o&&t.jsx("div",{className:"tooltip-word-image__spinner"}),t.jsx("img",{ref:r,src:a,alt:e,draggable:!1,style:{opacity:o?0:1},onLoad:l,onError:c})]}):t.jsx("div",{className:"tooltip-word-image__cell tooltip-word-image__cell--text h3",children:t.jsx("span",{children:e})})}function lc({words:e,anchorRect:n}){const a=s.useRef(null),[r,o]=s.useState(null);return s.useLayoutEffect(()=>{if(!n||!a.current)return;const{offsetWidth:i,offsetHeight:l}=a.current,c=window.innerWidth;let u=n.left+n.width/2-i/2,d=n.top-l-8;d<8&&(d=n.bottom+8),u=Math.max(8,Math.min(u,c-i-8)),o({left:u,top:d})},[n]),!n||e.length===0?null:Ft.createPortal(t.jsx("div",{ref:a,className:"tooltip-word-image",style:{visibility:r?"visible":"hidden",left:r?.left??0,top:r?.top??-9999},children:t.jsx("div",{className:"tooltip-word-image__cells",children:e.map(i=>t.jsx(zy,{label:i.label,homonum:i.homonum},`${i.label}_${i.homonum??1}`))})}),document.body)}function Wy({titleIcon:e,resultCount:n,resultUnit:a,searchQuery:r,items:o,groups:i,selected:l=[],onSelect:c,maxSelect:u,onClearSelection:d,onPrint:p,onPrintEmpty:h,className:m,emptyHint:b,sectionType:g="page",disc:f,notice:C}){const{t:v,i18n:x}=me.useTranslation(),w=x.language?.startsWith("ko")??!1,{anchorRect:y,openAt:k,close:_}=xa(),[A,T]=s.useState(null),N=s.useCallback(()=>{_(),T(null)},[_]);t2(N,!!A);const D=(r??"").trim(),H=/^[^,[\]\s]+$/.test(D)?D:"",F=H.length>0,[B,I]=s.useState(()=>F?"match":"ganada"),[E,te]=s.useState("50"),[L,O]=s.useState(1),[ee,Y]=s.useState(F);ee!==F&&(Y(F),I(F?"match":"ganada"));const K=B==="match"&&!F?"ganada":B,R=s.useMemo(()=>[...F?[{value:"match",label:v("wordSearch.sort.match",{defaultValue:"\uC2DC\uC791 \uC6B0\uC120"})}]:[],{value:"ganada",label:v("wordSearch.sort.ganada",{defaultValue:"\uAC00\uB098\uB2E4\uC21C \u2191"})},{value:"ganada_desc",label:v("wordSearch.sort.ganadaDesc",{defaultValue:"\uAC00\uB098\uB2E4\uC21C \u2193"})},{value:"syllable",label:v("wordSearch.sort.syllable",{defaultValue:"\uC74C\uC808 \uC218 \u2191"})},{value:"syllable_desc",label:v("wordSearch.sort.syllableDesc",{defaultValue:"\uC74C\uC808 \uC218 \u2193"})},{value:"grade",label:v("wordSearch.sort.grade",{defaultValue:"\uB4F1\uAE09\uC21C \u2191"})},{value:"grade_desc",label:v("wordSearch.sort.gradeDesc",{defaultValue:"\uB4F1\uAE09\uC21C \u2193"})}],[v,F]),j=s.useMemo(()=>["10","25","50","100"].map(de=>({value:de,label:v("wordSearch.pageSize",{count:Number(de),defaultValue:`${de}\uAC1C\uC529 \uBCF4\uAE30`})})),[v]),M=de=>de.words[0],V=s.useCallback((de,Ce)=>{const xe=pe=>M(pe)?.label??"",je=pe=>M(pe)?.syllables??[...xe(pe)].length,X=pe=>{const Ne=parseInt(M(pe)?.grade??"",10);return Number.isFinite(Ne)?Ne:999};switch(K){case"match":{const pe=[...H].length,Ne=Me=>Xm(xe(Me).slice(0,pe),H)?0:1;return Ne(de)-Ne(Ce)||xe(de).localeCompare(xe(Ce),"ko")}case"ganada":return xe(de).localeCompare(xe(Ce),"ko");case"ganada_desc":return xe(Ce).localeCompare(xe(de),"ko");case"syllable":return je(de)-je(Ce)||xe(de).localeCompare(xe(Ce),"ko");case"syllable_desc":return je(Ce)-je(de)||xe(de).localeCompare(xe(Ce),"ko");case"grade":return X(de)-X(Ce)||xe(de).localeCompare(xe(Ce),"ko");case"grade_desc":return X(Ce)-X(de)||xe(de).localeCompare(xe(Ce),"ko");default:return 0}},[K,H]),P=s.useMemo(()=>o.slice().sort(V),[o,V]),$=Number(E)||10,W=s.useMemo(()=>(i??[]).flatMap(de=>de.items.slice().sort(V).map(Ce=>({item:Ce,label:de.label}))),[i,V]),se=i?W.length:P.length,ae=Math.max(1,Math.ceil(se/$)),le=Math.min(L,ae),he=s.useMemo(()=>P.slice((le-1)*$,le*$),[P,le,$]),ve=s.useMemo(()=>{if(!i)return null;const de=W.slice((le-1)*$,le*$),Ce=new Map;for(const{item:xe,label:je}of de)Ce.has(je)||Ce.set(je,[]),Ce.get(je).push(xe);return[...Ce.entries()].map(([xe,je])=>({label:xe,items:je}))},[i,W,le,$]);s.useEffect(()=>{O(1)},[B,E,se,r]);const Z=se>0?t.jsxs("div",{className:"word-search-result-block__toolbar",children:[t.jsx(Wt,{size:40,options:R,value:K,onChange:I,ariaLabel:v("wordSearch.sort.aria",{defaultValue:"\uC815\uB82C"})}),t.jsx(Wt,{size:40,options:j,value:E,onChange:te,ariaLabel:v("wordSearch.pageSizeAria",{defaultValue:"\uD398\uC774\uC9C0 \uD06C\uAE30"})}),t.jsx(wa,{page:le,totalPages:ae,onChange:O})]}):void 0,ce=de=>{c&&c(de)},J=n!==void 0&&a?t.jsxs(t.Fragment,{children:[v("wordSearch.resultTitlePrefix","\uCD1D "),t.jsx("span",{style:{color:"var(--color-main)"},children:n}),v("wordSearch.resultTitleSuffix",{unit:w?s0(a):a})]}):void 0,ge=n!==void 0&&n>0&&u!==void 0&&a?v("wordSearch.resultDisc",{unit:w?l0(a):a,max:u,selected:l.length}):void 0,we=f??(C?t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"word-search-result-block__notice",children:C}),ge?t.jsx("span",{className:"word-search-result-block__disc",children:ge}):null]}):ge);return t.jsxs(In,{type:g,icon:e,title:J,action:Z,disc:we,className:ye("word-search-result-block",m),children:[t.jsxs("div",{className:"word-search-result-block__inner",children:[(i?i.length===0:o.length===0)&&t.jsxs("div",{className:"word-search-result-block__empty-wrap",children:[t.jsx("p",{className:"word-search-result-block__empty body-3",children:v("wordSearch.emptyResult","\uAC80\uC0C9 \uACB0\uACFC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")}),b&&t.jsx("p",{className:"word-search-result-block__empty-hint body-3",children:b})]}),i?(ve??[]).map(de=>t.jsx("div",{className:"word-search-result-block__group",children:t.jsx("div",{className:"word-search-result-block__items",children:de.items.map(Ce=>{const xe=l.includes(Ce.id);return t.jsx("div",{onMouseEnter:je=>{k(je.currentTarget),T(Ce.words)},onMouseLeave:N,children:t.jsx(ie,{htmlType:"button",size:"word",align:"grid",label:Ce.words.map(je=>je.label),subLabel:Ce.words.map(je=>je.subLabel).filter(Boolean).length>0?Ce.words.map(je=>je.subLabel):void 0,selected:xe,onClick:()=>ce(Ce.id),minWidth:200})},Ce.id)})})},de.label)):t.jsx("div",{className:"word-search-result-block__items",children:he.map(de=>{const Ce=l.includes(de.id);return t.jsx("div",{onMouseEnter:xe=>{k(xe.currentTarget),T(de.words)},onMouseLeave:N,children:t.jsx(ie,{htmlType:"button",size:"word",align:"grid",label:de.words.map(xe=>xe.label),subLabel:de.words.map(xe=>xe.subLabel).filter(Boolean).length>0?de.words.map(xe=>xe.subLabel):void 0,selected:Ce,onClick:()=>ce(de.id),minWidth:200})},de.id)})}),A&&y&&t.jsx(lc,{words:A,anchorRect:y})]}),ae>1&&t.jsx("div",{className:"word-search-result-block__pagination-bottom",children:t.jsx(wa,{page:le,totalPages:ae,onChange:O})}),(d||p)&&t.jsxs("div",{className:"word-search-result-block__actions",children:[d&&t.jsx(ie,{htmlType:"button",size:"56",type:"bar",label:v("common.resetSelection","\uC120\uD0DD \uCD08\uAE30\uD654"),selected:!1,disabled:l.length===0,onClick:l.length===0?void 0:d}),p&&t.jsx("div",{onClick:l.length===0?h:void 0,children:t.jsx(ie,{htmlType:"button",size:"56",type:"bar",variant:"main",label:v("wordTable.title","\uB2E8\uC5B4 \uD45C \uB9CC\uB4E4\uAE30"),disabled:l.length===0,onClick:l.length===0?void 0:p})})]})]})}function qy(e,n){return n.map(a=>{const r=typeof a=="string"?a:a.label,o=typeof a=="string"?void 0:a.displayLabel;return{label:r,value:e[r]??"",displayLabel:o}})}function Uy({sections:e,selectedList:n,count:a,onCountChange:r,maxCount:o=4,minCount:i=1,combinationSections:l,combinationSectionsForSlot:c,onSelect:u,placeholder:d="-",className:p,title:h,titleIcon:m,disc:b,showInfoButton:g=!1,onClearPhoneme:f,onSearch:C,onSearchEmpty:v,searchDisabled:x=!1,searchLabel:w,searchChecking:y=!1,pairMode:k=!1,sectionType:_="page",beforeSearchContent:A,beforeContent:T,afterContent:N,hideCountControl:D=!1,ordinal:H=!1}){const{t:F}=me.useTranslation(),B=s.useMemo(()=>F("wordPairs.infoNotes",{returnObjects:!0}),[F]),I=s.useMemo(()=>Array.from({length:o-i+1},(P,$)=>{const W=i+$;return{key:String(W),label:F("wordPairs.count",{n:W})}}),[F,o,i]),E=s.useMemo(()=>F("wordPairs.ordinals",{returnObjects:!0}),[F]),te=s.useCallback(P=>H?F("wordPairs.phonemeOrdinalLabel",{ordinal:E[P-1]??P}):a===1?F("wordPairs.phonemeSingleLabel","\uC74C\uC808"):F("wordPairs.phonemeN",{n:P}),[H,E,a,F]),L=s.useCallback(P=>H?F("wordPairs.phonemeContrastOrdinalLabel",{ordinal:E[P-1]??P}):a===1?F("wordPairs.phonemeContrastSingleLabel","\uB300\uB9BD \uC74C\uC808"):F("wordPairs.phonemeContrast",{n:P}),[H,E,a,F]),O=s.useCallback((P,$)=>$?t.jsxs(t.Fragment,{children:[P,t.jsx("span",{className:"phoneme-select-block__required",children:"*"})]}):P,[]),{anchorRect:ee,toggleAt:Y,close:K}=xa(),R=s.useCallback(P=>r(Number(P)),[r]),j=Ut("(max-width: 767px)"),M=s.useCallback(P=>qy(P,e).map(({label:$,value:W,displayLabel:se})=>{const ae=!!W&&W!=="\uC5C6\uC74C";return t.jsxs("span",{className:ye("phoneme-select-block__cell-jamo-part",W?"":"phoneme-select-block__cell-jamo-part--empty",ae?"":"phoneme-select-block__cell-jamo-part--no-label"),children:[t.jsx("span",{className:`phoneme-select-block__cell-jamo-char h1${W==="\uC5C6\uC74C"?" phoneme-select-block__cell-jamo-char--excluded":""}`,children:W==="\uC5C6\uC74C"?"x":W||d}),ae&&t.jsx("span",{className:"phoneme-select-block__cell-jamo-label caption-2",children:se??$})]},$)}),[e,d]),V=t.jsxs(t.Fragment,{children:[t.jsx("div",{"data-tooltip-ignore":!0,children:t.jsx(ie,{htmlType:"button",size:40,type:j?"dot":void 0,icon:"info",label:j?void 0:F("wordPairs.caution","\uC720\uC758\uC0AC\uD56D"),selected:!!ee,onClick:P=>Y(P.currentTarget)})}),ee&&t.jsx(Nn,{title:F("wordPairs.caution","\uC720\uC758\uC0AC\uD56D"),items:B,anchorRect:ee,onClose:K})]});return t.jsxs(In,{type:_,title:h,icon:m,disc:b,action:V,className:ye("phoneme-select-block",p),children:[T,(!D||g&&!(h||b))&&t.jsxs("div",{className:"phoneme-select-block__controls",children:[!D&&t.jsx(Tn,{options:I,value:String(a),onChange:R,size:40,className:"phoneme-select-block__count-control"}),g&&!(h||b)&&V]}),t.jsx("div",{className:"phoneme-select-block__cells",children:k?t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"phoneme-select-block__cell-group",children:Array.from({length:a}).map((P,$)=>{const W=n[$*2]??{};return t.jsxs("div",{className:"phoneme-select-block__cell",children:[t.jsx("div",{className:"phoneme-select-block__cell-circle",children:t.jsx("div",{className:"phoneme-select-block__cell-jamo",children:M(W)})}),t.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:te($+1)})]},$)})}),t.jsx("span",{className:"phoneme-select-block__cell-vs h3",children:F("wordPairs.phonemeSelect.vs","\uB300")}),t.jsx("div",{className:"phoneme-select-block__cell-group",children:Array.from({length:a}).map((P,$)=>{const W=n[$*2+1]??{};return t.jsxs("div",{className:"phoneme-select-block__cell",children:[t.jsx("div",{className:"phoneme-select-block__cell-circle",children:t.jsx("div",{className:"phoneme-select-block__cell-jamo",children:M(W)})}),t.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:L($+1)})]},$)})})]}):n.map((P,$)=>t.jsxs("div",{className:"phoneme-select-block__cell",children:[t.jsx("div",{className:"phoneme-select-block__cell-circle",children:t.jsx("div",{className:"phoneme-select-block__cell-jamo",children:M(P)})}),t.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:te($+1)})]},$))}),(l||c)&&t.jsx("div",{className:"phoneme-select-block__panels",children:t.jsx("div",{className:"phoneme-select-block__detail",children:k?t.jsxs("div",{className:"phoneme-select-block__pair-panels",children:[t.jsx("div",{className:"phoneme-select-block__panel-group",children:Array.from({length:a}).map((P,$)=>{const W=n[$*2]??{};return t.jsx(rn,{title:O(te($+1),$===0),sections:c?c(W,$*2):l,selected:W,onSelect:u?.($*2),align:"newline"},$)})}),t.jsx("div",{className:"phoneme-select-block__panel-group",children:Array.from({length:a}).map((P,$)=>{const W=n[$*2+1]??{};return t.jsx(rn,{title:L($+1),sections:c?c(W,$*2+1):l,selected:W,onSelect:u?.($*2+1),align:"newline"},$)})})]}):n.map((P,$)=>t.jsx(rn,{title:O(te($+1),$===0),sections:c?c(P,$):l,selected:P,onSelect:u?.($),align:"newline"},$))})}),A&&t.jsx("div",{className:"phoneme-select-block__before-search",children:A}),(f||C||y)&&(()=>{const P=n.every($=>Object.entries($).every(([W,se])=>!se||W==="\uC885\uC131"&&se==="\uC5C6\uC74C"));return t.jsxs("div",{className:"phoneme-select-block__search-row",onClick:P?v:void 0,children:[f&&t.jsx(ie,{htmlType:"button",size:"56",type:"bar",label:F("wordPairs.resetOptions","\uAC80\uC0C9 \uC635\uC158 \uCD08\uAE30\uD654"),selected:!1,disabled:P,onClick:P?void 0:f}),y?t.jsxs("div",{className:"phoneme-select-block__checking",children:[t.jsx("div",{className:"phoneme-select-block__spinner"}),t.jsx("span",{className:"button-1 phoneme-select-block__checking-label",children:w??F("wordSearch.searchButton","\uAC80\uC0C9\uD558\uAE30")})]}):C&&t.jsx(ie,{htmlType:"button",size:"56",type:"bar",variant:"main",label:w??F("wordSearch.searchButton","\uAC80\uC0C9\uD558\uAE30"),disabled:P||x,onClick:P||x?void 0:C})]})})(),N]})}function Gy({title:e,sections:n,selected:a,onSelect:r,className:o}){const{t:i}=me.useTranslation();return t.jsx(rn,{className:o,title:e??i("wordSearch.filterTitle","\uB2E8\uC5B4 \uAC80\uC0C9 \uC124\uC815"),sections:n,selected:a,onSelect:r,align:"inline"})}function Ky({title:e,headerAction:n,sections:a,selected:r,onSelect:o,className:i}){const{t:l}=me.useTranslation();return a.length===0?null:t.jsx(rn,{className:i,title:e??l("training.filter.phonemeGroup",{defaultValue:"\uD6C8\uB828 \uC74C\uC808"}),headerAction:n,sections:a,selected:r,onSelect:o,align:"newline"})}function Yy({title:e,mode:n,onModeChange:a,matchMode:r,onMatchModeChange:o,positionCount:i,onPositionCountChange:l,inputMode:c,onInputModeChange:u,className:d}){const{t:p}=me.useTranslation(),h={searchMode:p("wordPairs.filter.searchModeLabel","\uB300\uB9BD \uBC29\uC2DD"),phonemeOrder:p("wordPairs.filter.phonemeOrder","\uC785\uB825 \uC74C\uC808 \uC704\uCE58"),count:p("wordPairs.filter.countLabel","\uC785\uB825 \uC74C\uC808 \uAC2F\uC218"),inputMode:p("wordPairs.filter.inputModeLabel","\uC785\uB825 \uBC29\uC2DD"),orderAny:p("wordPairs.filter.orderAny","\uBB34\uAD00"),orderMatch:p("wordPairs.filter.orderMatch","\uC77C\uCE58"),include:p("wordPairs.mode.include","\uC74C\uC18C \uD3EC\uD568"),pick:p("wordPairs.mode.pick","\uC74C\uC18C \uB300\uB9BD"),explicit:p("wordPairs.mode.contrast","\uC74C\uC18C \uB300\uB9BD \uC9C0\uC815"),charInput:p("wordPairs.input.char","\uAE00\uC790 \uC120\uD0DD"),pronInput:p("wordPairs.input.pron","\uBC1C\uC74C \uC120\uD0DD")},m=C=>p("wordPairs.count",{n:C}),b=[{label:h.searchMode,items:[h.include,h.pick,h.explicit],display:"segmented",labelAction:t.jsx(aa,{title:p("wordPairs.mode.infoTitle","\uB300\uB9BD \uBC29\uC2DD"),items:[p("wordPairs.mode.infoInclude","\uC74C\uC18C \uD3EC\uD568 \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uAC00 \uBAA8\uB450 \uB4E4\uC5B4\uAC04 \uB2E8\uC5B4\uC640 \uADF8 \uB300\uB9BD\uC30D\uC744 \uCC3E\uC544\uC694."),p("wordPairs.mode.infoPick","\uC74C\uC18C \uB300\uB9BD \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uAC00 \uB300\uB9BD\uC30D \uB450 \uB2E8\uC5B4\uC758 \uC2E4\uC81C \uCC28\uC774\uC810\uC77C \uB54C\uB9CC \uB9E4\uCE6D\uB3FC\uC694."),p("wordPairs.mode.infoContrast","\uC74C\uC18C \uB300\uB9BD \uC9C0\uC815 \u2014 \uAE30\uC900 \uB2E8\uC5B4\uC640 \uB300\uB9BD \uB2E8\uC5B4\uC758 \uC74C\uC18C\uB97C \uAC01\uAC01 \uC9C1\uC811 \uC120\uD0DD\uD574 \uB300\uB9BD\uC30D\uC744 \uCC3E\uC544\uC694.")]})},{label:h.phonemeOrder,items:[h.orderAny,h.orderMatch],display:"segmented",labelAction:t.jsx(aa,{items:p("wordPairs.filter.phonemeOrderInfo",{returnObjects:!0})})},{label:h.count,items:[m(1),m(2)],display:"segmented"},{label:h.inputMode,items:[h.charInput,h.pronInput],display:"segmented",labelAction:t.jsx(aa,{title:p("wordPairs.input.infoTitle","\uC785\uB825 \uBC29\uC2DD"),items:[p("wordPairs.input.infoChar","\uAE00\uC790 \uC120\uD0DD \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uB85C \uB2E8\uC5B4(\uAE00\uC790 \uAE30\uC900)\uB97C \uCC3E\uC740 \uD6C4, \uB2E8\uC5B4\uC758 \uD45C\uC900 \uBC1C\uC74C \uB300\uB9BD\uC30D\uC744 \uCC3E\uC2B5\uB2C8\uB2E4."),p("wordPairs.input.infoPron","\uBC1C\uC74C \uC120\uD0DD \u2014 \uC120\uD0DD\uD55C \uC74C\uC18C\uB85C \uD45C\uC900 \uBC1C\uC74C \uB300\uB9BD\uC30D\uC744 \uCC3E\uC2B5\uB2C8\uB2E4.")]})}],g={[h.searchMode]:n==="explicit"?h.explicit:n==="pick"?h.pick:h.include,[h.phonemeOrder]:r==="ordered"?h.orderMatch:h.orderAny,[h.count]:m(i),[h.inputMode]:c==="phoneme"?h.pronInput:h.charInput},f=(C,v)=>{v===h.searchMode?a(C===h.explicit?"explicit":C===h.pick?"pick":"include"):v===h.phonemeOrder?o(C===h.orderMatch?"ordered":"unordered"):v===h.count?l(C===m(2)?2:1):v===h.inputMode&&u(C===h.pronInput?"phoneme":"word")};return t.jsx(rn,{className:d,title:e??p("wordPairs.filter.searchOptionsTitle","\uB300\uB9BD \uC124\uC815"),sections:b,selected:g,onSelect:f,align:"inline"})}function Zy(e){const{title:n,items:a,columns:r,gridTemplateColumns:o,searchPlaceholder:i,searchFn:l,defaultSortKey:c,defaultSortAsc:u=!0,selectedId:d,selectedIds:p,onSelect:h,onClose:m,pageSizeOptions:b=[10,25,50,100],initialPageSize:g,emptyText:f,countLabel:C,topContent:v,className:x=""}=e,{t:w}=me.useTranslation(),y=i??w("common.search","\uAC80\uC0C9"),k=f??w("common.emptyList","\uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4."),[_,A]=s.useState(""),[T,N]=s.useState(c??r[0]?.key??""),[D,H]=s.useState(u),[F,B]=s.useState(String(g??b[0]??10)),[I,E]=s.useState(1);s.useEffect(()=>{E(1)},[_,F]);const te=l!==null,L=s.useCallback(($,W)=>{if(!W)return!0;const se=W.toLowerCase();return r.some(ae=>{const le=$[ae.key];return le==null?!1:String(le).toLowerCase().includes(se)})},[r]),O=l??L,ee=s.useMemo(()=>{const $=te?a.filter(W=>O(W,_)):a;return T?[...$].sort((W,se)=>{const ae=W[T]??"",le=se[T]??"";if(ae===le)return 0;const he=_b(ae,le);return D?he:-he}):$},[a,_,T,D,te,O]),Y=Math.max(1,Math.ceil(ee.length/Number(F)));I>Y&&E(Y);const K=Math.min(I,Y),R=ee.slice((K-1)*Number(F),K*Number(F)),j=s.useCallback($=>{T===$?H(W=>!W):(N($),H(!0))},[T]),M=s.useMemo(()=>{if(typeof C=="function"){const $=ee.length,W=C($);if(typeof W=="string"){const se=W.lastIndexOf(String($));if(se>=0)return{prefix:W.slice(0,se),suffix:W.slice(se+String($).length)}}return{label:W}}if(typeof C=="string"&&C.includes("{n}")){const[$,W]=C.split("{n}");return{prefix:$,suffix:W}}return{prefix:w("common.totalCountPrefix","\uCD1D "),suffix:w("common.totalCountSuffix","\uAC1C")}},[C,ee.length,w]),V=s.useMemo(()=>r.map($=>({label:$.label,onClick:$.sortable!==!1?()=>j($.key):void 0,className:$.className,sortDir:$.sortable!==!1&&T===$.key?D?"asc":"desc":null})),[r,T,D,j]),P=s.useMemo(()=>b.map($=>({value:String($),label:w("common.pageSizeLabel",{n:$})})),[b,w]);return t.jsxs(fn,{className:`popup-list ${x}`,title:n,onClose:m,children:[v,"label"in M&&t.jsx("p",{className:"toolbar__count body-1",children:M.label}),t.jsx(fr,{count:"label"in M?void 0:{value:ee.length,prefix:M.prefix,suffix:M.suffix},search:te?{value:_,onChange:A,placeholder:y}:void 0,pageSize:{options:P,value:F,onChange:B},pagination:{page:K,total:Y,onChange:E}}),t.jsx(wr,{size:"medium",gridTemplateColumns:o,resizable:!0,fields:V,items:R,onRowClick:h,renderRow:$=>{const W=p!=null?$.id!=null&&p.has($.id):d!=null&&$.id===d;return r.map(se=>({content:se.render?se.render($):$[se.key]??"",className:ye(se.className,W&&"popup-list__row--selected")}))},empty:k})]})}function Xy(e){const{title:n,message:a,topContent:r,details:o,children:i,confirmLabel:l,cancelLabel:c,hideCancel:u=!1,extraAction:d,confirmVariant:p="main",confirmDisabled:h=!1,onConfirm:m,closeOnConfirm:b=!0,onClose:g,inline:f,size:C="small",className:v}=e,{t:x}=me.useTranslation(),w=s.useRef(!1),[y,k]=s.useState(!1),_=async A=>{if(w.current)return;w.current=!0;const T=typeof document<"u"?document.activeElement:null;k(!0);let N=!1;try{N=await A()}finally{N||(w.current=!1,k(!1),requestAnimationFrame(()=>{const D=document.activeElement;(!D||D===document.body)&&T?.isConnected&&T.focus()}))}};return t.jsxs(fn,{title:n,onClose:g,closeDisabled:y,inline:f,size:C,className:ye("confirm-popup",v),buttons:[...d?[{label:d.label,variant:d.variant??"default",disabled:d.disabled||y,onClick:async({closeWithAnimation:A})=>{await _(async()=>{await d.onClick(A);const T=d.closeOnClick??!0;return T&&A(),T})}}]:[],...u?[]:[{label:c??x("common.cancel","\uCDE8\uC18C"),variant:"default",disabled:y,onClick:({closeWithAnimation:A})=>A()}],{label:l??x("common.confirm","\uD655\uC778"),variant:p,disabled:h||y,onClick:async({closeWithAnimation:A})=>{await _(async()=>(await m(A),b&&A(),b))}}],children:[r!=null&&t.jsx("div",{className:"confirm-popup__top",children:r}),o&&o.length>0&&t.jsx(Ea,{children:o.map((A,T)=>t.jsx(Cn,{label:A.label,children:t.jsx("span",{className:"panel-row__text body-2",children:A.value})},T))}),t.jsx("p",{className:"body-2 confirm-popup__message",children:a}),i]})}function Jy({onApply:e,onCancel:n}){const{t:a}=me.useTranslation(),[r,o]=s.useState(""),[i,l]=s.useState(!1),[c,u]=s.useState(null),d=s.useRef(null);s.useEffect(()=>{d.current?.focus()},[]);const p=s.useCallback(async b=>{const g=r.trim();if(g){l(!0),u(null);try{await e(g),b()}catch(f){u(ps(f)),l(!1),requestAnimationFrame(()=>d.current?.focus())}}},[r,e]),h=s.useCallback((b,g)=>{b.key==="Enter"&&!b.nativeEvent.isComposing&&p(g)},[p]),m=b=>{o(b.target.value),u(null)};return t.jsx(fn,{className:"coupon-input-popup",title:a("usage.couponButton","\uCFE0\uD3F0 \uC785\uB825"),size:"small",onClose:n,closeDisabled:i,buttons:[{label:a("common.cancel","\uCDE8\uC18C"),variant:"default",disabled:i,onClick:({closeWithAnimation:b})=>b()},{label:a("coupons.applyButton","\uC801\uC6A9"),variant:"main",disabled:!r.trim()||i,onClick:({closeWithAnimation:b})=>{p(b)}}],children:({closeWithAnimation:b})=>t.jsxs(t.Fragment,{children:[t.jsx("input",{ref:d,className:"coupon-input-popup__input body-2","aria-label":a("coupons.input.label","\uCFE0\uD3F0 \uCF54\uB4DC"),placeholder:a("coupons.input.placeholder","\uCFE0\uD3F0 \uCF54\uB4DC \uC785\uB825"),value:r,onChange:m,onKeyDown:g=>h(g,b),disabled:i,autoComplete:"off",spellCheck:!1}),c&&t.jsx("p",{className:"coupon-input-popup__error caption-1",role:"alert",children:c})]})})}const Qy=200;function e5(e){return e.itemId?(B0()[e.trainingType]??[]).find(n=>n?.id!=null&&String(n.id)===String(e.itemId))??null:null}function t5({plan:e,anchorRect:n,offset:a=12,onClose:r}){const{t:o}=me.useTranslation(),i=s.useMemo(()=>D0(o).map(c=>({type:c,items:(e.items??[]).filter(u=>u.trainingType===c.key)})).filter(c=>c.items.length>0),[e.items,o]);if(i.length===0)return null;const l=t.jsx("div",{className:"tooltip-training__box",children:t.jsx("div",{className:"tooltip-training__groups",children:i.flatMap(({type:c,items:u},d)=>[d>0?t.jsx("div",{className:"tooltip-training__divider"},`div-${c.key}`):null,t.jsxs("div",{className:"tooltip-training__section",children:[t.jsx("div",{className:"tooltip-training__section-header",children:t.jsx("span",{className:"tooltip-training__type-label body-3b",children:c.label})}),t.jsx("div",{className:"tooltip-training__items",children:u.map((p,h)=>{const m=e5(p);return m?t.jsx(kr,{index:h,type:c,trainingData:m,size:"compact",hideCheckBadge:!0},p.itemId??h):null})})]},c.key)])})});return n?t.jsx(pn,{anchorRect:n,offset:a,onClose:r,closeOnOutsideClick:!1,className:"tooltip-training",ariaLabel:o("tooltip.training","\uD6C8\uB828 \uC548\uB0B4"),children:l}):l}const cc=["var(--color-main)","var(--color-sub)"],n5=2e3;function a5(e,n){if(!n.startsWith("var("))return n;try{const a=n.slice(4,-1).trim();return getComputedStyle(e).getPropertyValue(a).trim()||null}catch{return null}}function uc({active:e=!1,count:n=40,duration:a=2e3,strength:r=1,onComplete:o,trigger:i=0}){const l=s.useMemo(()=>{const f=Math.floor(n/2),C=n-f,v=(x,w)=>Array.from({length:x}).map((y,k)=>{const _=6+Math.random()*12,A=Math.round(Math.min(18,_*Math.min(1.5,1+r*.4))),T=cc[Math.floor(Math.random()*cc.length)],N=Math.random()*300,D=(360+Math.random()*260)*r*1.2,H=(w==="left"?-95+Math.random()*40:-85-Math.random()*40)*Math.PI/180,F=Math.cos(H)*D,B=Math.sin(H)*D*1.35,I=Math.random()*720-360,E=(1200+Math.random()*3e3)*Math.min(1.6,1+r*.3),te=Math.random()>.7?"50%":"3px";return{id:`${w}-${k}`,side:w,size:A,color:T,delay:N,vx:F,vy:B,angularVel:I,life:E,borderRadius:te}});return[...v(f,"left"),...v(C,"right")]},[n,r]),c=s.useRef(null),u=s.useRef({}),d=s.useRef(null),p=s.useRef(o);s.useEffect(()=>{p.current=o},[o]);const h=s.useRef(null),m=s.useRef(null),b=()=>{if(typeof document>"u")return null;let f=document.querySelector("[data-ihab-effect-root]");return f||(f=document.createElement("div"),f.className="app-effect",f.dataset.ihabEffectRoot="",f.style.position="fixed",f.style.inset="0",f.style.pointerEvents="none",f.style.zIndex="99998",document.body.appendChild(f)),f};if(typeof document<"u"&&m.current==null&&(m.current=b()),s.useEffect(()=>{if(!e)return;if(typeof window<"u"&&window.matchMedia?.("(prefers-reduced-motion: reduce)").matches){const K=setTimeout(()=>p.current?.(),0);return()=>clearTimeout(K)}const f=1200,C=performance.now(),v=m.current&&m.current!==document.body?m.current.getBoundingClientRect():null,x=Math.max(60,(window.innerHeight||800)*.05),w=K=>Math.max(40,(K||window.innerWidth)*.02),y=v?.width||window.innerWidth||375,k=v?.height||window.innerHeight||812,_=K=>{const R=[...K].sort((j,M)=>j-M);return R[Math.floor(R.length/2)]||1},A=_(l.map(K=>Math.abs(K.vy))),T=_(l.map(K=>Math.abs(K.vx))),N=Math.sqrt(2*f*(k*.72+x))/A,D=A*N/f,H=y*.5/(T*D),F=(K,R,j)=>Math.min(j,Math.max(R,K)),B=F(N,.8,2.4),I=F(H,.7,2.2),E=a>0?a/n5:1,te=l.map(K=>({...K,life:K.life*E,vx:K.vx*I,vy:K.vy*B,startTime:C+K.delay,ended:!1})),L=v?{x:v.left-w(v.width),y:v.top+v.height+x}:{x:-w(window.innerWidth),y:window.innerHeight+x},O=v?{x:v.left+v.width+w(v.width),y:v.top+v.height+x}:{x:window.innerWidth+w(window.innerWidth),y:window.innerHeight+x},ee=K=>{let R=!1;for(const j of te){const M=u.current[j.id];if(!M||!M)continue;if(K<j.startTime){M.style.display="none",R=!0;continue}if(!j._inited){const Z=j.side==="left"?L.x:O.x,ce=j.side==="left"?L.y:O.y;M.style.left=`${Z}px`,M.style.top=`${ce}px`,M.style.transform="translate3d(0px, 0px, 0)",M.style.display="block",M.style.zIndex="100000",typeof j.color=="string"&&j.color.startsWith("var(")&&(M.style.background=a5(M,j.color)??"#FF0060"),j._inited=!0}const V=(K-j.startTime)/1e3;if(V<0)continue;const P=j.life/1e3;if(V>=P){M.style.opacity="0",M.style.display="none",j.ended=!0;continue}R=!0;const $=j.side==="left"?L.x:O.x,W=j.side==="left"?L.y:O.y,se=$+j.vx*V,ae=W+j.vy*V+.5*f*V*V,le=(j.angularVel||0)*V,he=se-$,ve=ae-W;M.style.transform=`translate3d(${he}px, ${ve}px, 0) rotate(${le}deg)`,M.style.opacity=`${Math.max(0,1-V/P)}`}R?d.current=requestAnimationFrame(ee):p.current?.()};d.current=requestAnimationFrame(ee);const Y=setTimeout(()=>{try{if((m.current?m.current.querySelectorAll(".confetti"):document.querySelectorAll(".confetti")).length===0&&!document.querySelector(".party-container")){const K=document.createElement("div");K.className="party-container",K.style.position="fixed",K.style.inset="0",K.style.pointerEvents="none",K.style.overflow="visible",K.style.zIndex="2147483647";for(const R of l){const j=document.createElement("span");j.className=`confetti confetti--${R.side}`,j.setAttribute("aria-hidden","true"),j.style.display="none",j.style.position="fixed",j.style.left="0px",j.style.top="0px",j.style.width=`${R.size}px`,j.style.height=`${Math.max(4,R.size*.6)}px`,j.style.background=R.color,j.style.borderRadius=R.borderRadius,j.style.transform="translate3d(0,0,0)",j.style.opacity="0",K.appendChild(j),u.current[R.id]=j}(document.body||m.current).appendChild(K),h.current=K}}catch{}},300);return()=>{if(d.current&&cancelAnimationFrame(d.current),clearTimeout(Y),h.current){try{h.current.remove()}catch{}h.current=null}}},[e,a,i,l]),!e)return null;const g=t.jsx("div",{className:"party-container",ref:c,children:l.map(f=>t.jsx("span",{"aria-hidden":!0,ref:C=>{u.current[f.id]=C},className:`confetti confetti--${f.side}`,style:{width:`${f.size}px`,height:`${Math.max(4,f.size*.6)}px`,background:f.color,borderRadius:f.borderRadius}},`${f.id}-${i}`))});return typeof document<"u"?Ft.createPortal(g,m.current||document.body):g}function r5({trigger:e=0,active:n=!1}){const a=s.useRef(0);return s.useEffect(()=>{a.current=e},[e]),t.jsx(uc,{active:n,trigger:e})}function o5({title:e,sub:n,rightAction:a,titleAction:r,badge:o,badgeVariant:i="default",documentTitle:l,onBack:c,backLabel:u,wrap:d=!1}){const{t:p}=me.useTranslation();q0(typeof e=="string"?e:l??null);const h=u??p("common.back","\uB4A4\uB85C");return t.jsxs("div",{className:d?"page-title page-title--wrap":"page-title",children:[t.jsxs("div",{className:"page-title__main",children:[t.jsxs("div",{className:"page-title__title-row",children:[c&&t.jsx(ie,{htmlType:"button",className:"page-title__back",size:48,type:"dot",icon:"chevron-left",iconSize:"large",useBorder:!1,iconColor:"var(--color-text-primary)",ariaLabel:h,showTooltipInfo:h,onClick:c}),t.jsx("h1",{className:"page-title__title h1",children:e}),o&&t.jsx("div",{className:"page-title__badge",children:t.jsx(rt,{label:o,size:"small",variant:i,fill:"outline"})}),r?t.jsx("div",{className:"page-title__title-action",children:r}):null]}),n&&t.jsx("p",{className:"page-title__sub body-2",children:n})]}),a?t.jsx("div",{className:"page-title__action",children:a}):null]})}function s5(e){return e??""}const dc=s.createContext({words:[],loading:!1});function i5(){return s.useContext(dc)}function l5({words:e,loading:n,error:a,statusMessage:r,localVersion:o,remoteVersion:i,progress:l,clearAndRefetch:c,checkRemoteVersion:u,children:d}){return t.jsx(dc.Provider,{value:{words:e,loading:n,error:a,statusMessage:r,localVersion:o,remoteVersion:i,progress:l,clearAndRefetch:c,checkRemoteVersion:u},children:d})}function c5({items:e,actions:n,columns:a,flat:r=!1,className:o,style:i}){const l=a??e.length;return t.jsx("section",{className:ye("summary-strip",r&&"summary-strip--flat",o),style:{"--summary-strip-cols":String(l),...i},children:t.jsxs("div",{className:"summary-strip__row",children:[t.jsx("div",{className:"summary-strip__items",children:e.map((c,u)=>t.jsxs("div",{className:"summary-strip__item",children:[t.jsx("p",{className:"summary-strip__label caption-1",children:c.label}),t.jsx("p",{className:"summary-strip__value body-3b",children:c.value})]},u))}),n&&t.jsx("div",{className:"summary-strip__actions",children:n})]})})}const u5=(e,n)=>`${e} / ${n}`;function d5({blocks:e,sectionTitles:n,logo:a,footer:r,pageLabel:o=u5,pageWidth:i,pageHeight:l,margin:c,className:u,style:d}){const{t:p}=me.useTranslation(),h=s.useRef(null),m=s.useRef(null),b=s.useRef(null),g=s.useRef(null),[f,C]=s.useState(null),[v,x]=s.useState(!1);s.useEffect(()=>{const B=h.current;if(!B)return;const I=()=>x(B.scrollWidth>B.clientWidth+1);if(I(),typeof ResizeObserver>"u")return;const E=new ResizeObserver(I);return E.observe(B),()=>E.disconnect()},[f]);const w=e.map(B=>`${B.id}\0${B.section??""}\0${B.group??""}`).join(""),y=f&&f.shape===w?f.pages:null,[k,_]=s.useState(0);s.useEffect(()=>{const B=g.current;if(!B||typeof ResizeObserver>"u")return;const I=new ResizeObserver(()=>_(B.offsetHeight));return I.observe(B),()=>I.disconnect()},[]),s.useLayoutEffect(()=>{const B=m.current,I=g.current;if(!B||!I)return;const E=new Map;b.current?.querySelectorAll("[data-chrome-section]").forEach(j=>{E.set(j.dataset.chromeSection??"",j.offsetHeight)});const te=j=>I.offsetHeight-(E.get(j??"")??0),L=Array.from(B.children).map(j=>j.offsetHeight),O=[];e.forEach((j,M)=>{const V=O[O.length-1],P=V?e[V[0]]:void 0;P&&j.group!=null&&P.group===j.group?V.push(M):O.push([M])});const ee=[];let Y=[],K=0;const R=()=>{Y.length&&ee.push(Y),Y=[],K=0};O.forEach(j=>{const M=j.reduce((P,$)=>P+L[$],0),V=te(e[j[0]].section);Y.length&&e[Y[0]].section!==e[j[0]].section&&R(),Y.length&&K+M>V&&R(),M>V?j.forEach(P=>{Y.length&&K+L[P]>V&&R(),Y.push(P),K+=L[P]}):(j.forEach(P=>Y.push(P)),K+=M)}),R(),C({shape:w,pages:ee})},[w,k]);const A=mr,T=A,N=r??t.jsxs(t.Fragment,{children:[t.jsx("img",{src:T,alt:"IHAB",className:"report-doc__logo"}),"\xA9 IHAB, Inc. All rights reserved."]}),D=(B,I,E)=>({header:t.jsxs("div",{className:"report-doc__header",children:[t.jsx("h2",{className:"report-doc__title h3b",children:E!=null&&n?.[E]||null}),a]}),footer:t.jsxs("div",{className:"report-doc__footer caption-1",children:[t.jsx("span",{className:"report-doc__footer-left",children:N}),t.jsx("span",{className:"report-doc__page-no",children:o(B,I)})]})}),H=Array.from(new Set(e.map(B=>B.section??""))),F={...i?{"--report-page-w":i}:null,...l?{"--report-page-h":l}:null,...c?{"--report-margin":c}:null,...d};return t.jsxs("div",{ref:h,className:ye("report-doc",u),style:F,tabIndex:v?0:void 0,role:v?"group":void 0,"aria-label":v?p("report.previewRegion","\uBCF4\uACE0\uC11C \uBBF8\uB9AC\uBCF4\uAE30"):void 0,children:[t.jsxs("div",{className:"report-doc__measure","aria-hidden":!0,children:[t.jsx("div",{ref:g,className:"report-doc__ruler"}),t.jsx("div",{ref:b,children:H.map(B=>{const I=D(1,1,B||void 0);return t.jsxs("div",{"data-chrome-section":B,children:[I.header,I.footer]},B)})}),t.jsx("div",{ref:m,className:"report-doc__measure-blocks",children:e.map(B=>t.jsx("div",{children:B.content},B.id))})]}),y&&t.jsx("div",{className:"report-doc__pages",children:y.map((B,I)=>{const{header:E,footer:te}=D(I+1,y.length,e[B[0]].section);return t.jsxs("section",{className:"report-doc__page",children:[E,B.map(L=>t.jsx("div",{children:e[L].content},e[L].id)),te]},I)})})]})}function p5({title:e,fields:n,columns:a=4,className:r,style:o}){return t.jsxs("div",{className:ye("report-info",r),style:{"--report-info-cols":String(a),...o},children:[e&&t.jsx("p",{className:"report-info__title h5b",children:e}),t.jsx("div",{className:"report-info__grid",children:n.map((i,l)=>t.jsxs("div",{className:"report-info__field body-2",children:[t.jsx("span",{className:"report-info__label body-3",children:i.label}),t.jsx("span",{className:"report-info__value",children:i.value})]},l))})]})}function h5({title:e,message:n,actionLabel:a,onAction:r,icon:o,onClose:i,className:l=""}){const{t:c}=me.useTranslation(),u=a??c("common.update","\uC5C5\uB370\uC774\uD2B8");return t.jsxs("div",{className:ye("update-alert",l),role:"alert",children:[i&&t.jsx("button",{type:"button",className:"update-alert__close",onClick:i,"aria-label":c("common.close","\uB2EB\uAE30"),children:"\xD7"}),t.jsxs("div",{className:"update-alert__top",children:[t.jsx("div",{className:"update-alert__icon",children:o??t.jsx(yo,{size:20,strokeWidth:2})}),t.jsxs("div",{className:"update-alert__body",children:[t.jsx("div",{className:"update-alert__title h4",children:e}),t.jsx("div",{className:"update-alert__message body-3",children:n})]})]}),r&&t.jsx(ie,{htmlType:"button",size:32,variant:"main",shape:"pill",className:"update-alert__action",onClick:r,children:u})]})}function m5({title:e,description:n,topActions:a,children:r,footerLeft:o,footerRight:i,onClick:l,draggable:c,onDragStart:u,onDragEnd:d,className:p}){const h=o!=null||i!=null,m=r!=null&&r!==!1,b=s.useCallback(g=>{l&&g.target===g.currentTarget&&(g.key==="Enter"||g.key===" ")&&(g.preventDefault(),l())},[l]);return t.jsxs("div",{className:ye("training-card",l?"training-card--clickable":"",p),onClick:l,onKeyDown:l?b:void 0,role:l?"button":void 0,tabIndex:l?0:void 0,draggable:c,onDragStart:u,onDragEnd:d,children:[t.jsxs("div",{className:"training-card__header",children:[t.jsxs("div",{className:"training-card__title-row",children:[typeof e=="string"?t.jsx("h3",{className:"training-card__title h4",children:e}):e,a!=null&&t.jsx("div",{className:"training-card__top-actions",onClick:g=>g.stopPropagation(),children:a})]}),n!=null?typeof n=="string"?t.jsx("p",{className:"training-card__description body-3",children:n}):n:t.jsx("p",{className:"training-card__description body-3","aria-hidden":"true",children:" "})]}),m&&t.jsx("div",{className:"training-card__body",children:r}),h&&t.jsxs("div",{className:"training-card__footer",children:[o!=null&&t.jsx("div",{className:"training-card__footer-left",children:o}),i!=null&&t.jsx("div",{className:"training-card__meta",children:i})]})]})}function f5({title:e,count:n,collapsed:a=!1,onToggle:r,sort:o,actions:i,empty:l=!1,emptyContent:c,dragOver:u=!1,onDragOver:d,onDragLeave:p,onDrop:h,children:m,className:b}){const{t:g}=me.useTranslation(),f=r!=null,C=ye("training-card-group",u&&"training-card-group--dragover",a&&"training-card-group--collapsed",f&&"training-card-group--collapsible",b);return t.jsxs("div",{className:C,onDragOver:d,onDragLeave:p,onDrop:h,children:[t.jsxs("header",{className:"training-card-group__header",children:[f&&t.jsx(ie,{htmlType:"button",size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:a?"chevron-right":"chevron-down",ariaLabel:a?g("common.expand","\uD3BC\uCE58\uAE30"):g("common.collapse","\uC811\uAE30"),className:"training-card-group__chevron",onClick:r}),typeof e=="string"?t.jsx("span",{className:"training-card-group__title h5b",children:e}):e,n!==void 0&&t.jsx("span",{className:"training-card-group__count body-3b",children:n}),(o||i!=null)&&t.jsxs("span",{className:"training-card-group__actions",onClick:v=>v.stopPropagation(),children:[o&&t.jsx(Wt,{size:40,options:o.options,value:o.value,placeholder:o.placeholder,onChange:o.onChange}),i]})]}),!a&&(l?t.jsx("div",{className:"training-card-group__empty body-3",children:c}):t.jsx("div",{className:"training-card-group__grid",children:m}))]})}const C5="speechear:saved_word_tables";function g5(e){if(typeof e!="object"||e===null)return!1;const n=e;return typeof n.id=="string"&&typeof n.name=="string"&&Array.isArray(n.items)}function b5(){try{const e=localStorage.getItem(C5);if(!e)return[];const n=JSON.parse(e);return Array.isArray(n)?n.filter(g5):[]}catch{return[]}}function y5({title:e,titleIcon:n,disc:a,items:r,onSaveComplete:o,onLoad:i,onRemoveItem:l,onReset:c,resetLabel:u,saveButtonLabel:d,secondarySaveButtonLabel:p,onReorder:h,showCellCount:m,onAddItem:b,className:g,renderSavePopup:f,renderWordSearch:C,hideControls:v,saveOnly:x,tableName:w,nameValue:y,onNameChange:k,descriptionValue:_,onDescriptionChange:A,namePlaceholder:T,descriptionPlaceholder:N,existingNames:D,editingName:H,onCancel:F}){const{t:B}=me.useTranslation(),I=u??B("wordPrint.clearAllSelection","\uBAA8\uB450 \uC120\uD0DD \uD574\uC81C"),E=r===void 0,te=!!k,[L,O]=s.useState([]),ee=(y??"").trim(),Y=ee||(T??"").trim(),K=(_??"").trim()||(N??"").trim(),R=(D??[]).map(U=>U.trim().toLowerCase()),j=[H?.trim().toLowerCase(),...L].filter(U=>!!U),M=[...R];for(const U of j){const re=M.indexOf(U);re!==-1&&M.splice(re,1)}const V=ee!==""&&M.includes(ee.toLowerCase()),[P,$]=s.useState(Array(4).fill(null)),[W,se]=s.useState(4),[ae,le]=s.useState(null),[he,ve]=s.useState("landscape"),[Z,ce]=s.useState(["\uC774\uBBF8\uC9C0","\uB2E8\uC5B4","\uD45C\uC900 \uBC1C\uC74C"]),[J,ge]=s.useState("\uD45C\uC2DC"),[we,de]=s.useState(!0),[Ce,xe]=s.useState(!0),je=s.useRef(null),X=s.useRef([]),[pe,Ne]=s.useState(8),[Me,He]=s.useState("right"),[Se,Ie]=s.useState(!1),[Le,Ke]=s.useState(!1),{toastMessage:qe,toastType:ze,showWarning:be,clearToast:Fe}=li("warning"),De=s.useCallback(()=>le(null),[le]);b&&!E&&!m&&zn("word-table-block-add-without-cell-count",'[WordTableBlock] \uD45C\uC2DC \uBAA8\uB4DC\uC5D0\uC11C onAddItem \uC740 showCellCount \uC640 \uD568\uAED8 \uC918\uC57C "\uCD94\uAC00\uD558\uAE30" \uCE78\uC774 \uC0DD\uAE34\uB2E4.');const[Pe,Ae]=s.useState(()=>Math.max(r?.length??1,1));s.useEffect(()=>{E||Ae(U=>Math.max(U,r?.length??1))},[r?.length,E]);const ot=E?W:m?Math.max(Pe,r?.length??1):Math.max(r?.length??0,1),{width:lt,height:Ue}=Fn[he],Ge=!E&&!m,pt=r?.length??0,Oe=Math.min(pe,Math.max(pt,1)),Xe=Ge?Oe:ot,tt=Ge?cl(r??[],Xe):null,Te=!!tt&&tt.length>1,Ye=E?P.some(U=>U!==null&&U.length>1):(r??[]).some(U=>U.words.length>1),Et=w?.trim()||`${gs(y0())} ${Ye?B("wordTable.printFileNamePair","\uB300\uB9BD\uC30D\uD45C"):B("wordTable.printFileNameSingle","\uB2E8\uC5B4\uD45C")}`,ut=s.useCallback(()=>Te?X.current.filter(U=>U!==null):je.current?[je.current]:[],[Te]),{print:st,openNewWindow:bt,downloadHtml:Kt}=Mr({getElements:ut,paperW:lt,paperH:Ue,fileName:Et,onPopupBlocked:()=>{be(B("wordTable.popupBlocked","\uD31D\uC5C5\uC774 \uCC28\uB2E8\uB418\uC5C8\uC2B5\uB2C8\uB2E4. \uBE0C\uB77C\uC6B0\uC800 \uC124\uC815\uC5D0\uC11C \uD31D\uC5C5\uC744 \uD5C8\uC6A9\uD574 \uC8FC\uC138\uC694."))}}),bn=U=>{se(U),$(re=>{const ke=Array(U).fill(null);return re.slice(0,U).forEach(($e,Ee)=>{ke[Ee]=$e}),ke}),le(null)},Ct=U=>{$(re=>{const ke=[...re];return ke[U]=null,ke}),ae===U&&le(null)},kt=U=>{if(ae===null)return;const re=ae;$($e=>{const Ee=[...$e];return Ee[re]=U,Ee});const ke=P.findIndex(($e,Ee)=>Ee>re&&$e===null);le(ke!==-1?ke:null)},$t=E?P.some(U=>U?.some(re=>!!re.colloquialPronunciation)):(r??[]).some(U=>U.words.some(re=>!!re.colloquialLabel)),At=s.useMemo(()=>Ln()?E?P.flatMap(U=>(U??[]).map(re=>[re.word,re.homonum])):(r??[]).flatMap(U=>U.words.map(re=>[re.label,re.homonum])):[],[E,P,r]),[yn,Ot]=s.useState(!1);s.useEffect(()=>{if(At.length===0)return;let U=!1;return Promise.all(At.map(([re,ke])=>ls(re,ke))).then(re=>{U||Ot(re.some(Boolean))}),()=>{U=!0}},[At]);const on=At.length>0&&yn,vn=s.useMemo(()=>[...E||m?[{label:B("wordTable.filter.columns","\uCE78 \uC218"),items:cb.map(U=>({value:`${U}\uCE78`,displayLabel:B("wordTable.filter.column",{count:U})})),display:"segmented"}]:[],...Ge&&(r?.length??0)>0?[_l(B,{hasPairs:Ye,itemCount:pt})]:[],...Te?[wl(B)]:[]],[B,E,m,Ge,r?.length,Ye,pt,Te]),Ze={...E||m?{[B("wordTable.filter.columns","\uCE78 \uC218")]:`${E?W:Pe}\uCE78`}:{},...Ge&&(r?.length??0)>0?{[B(Ye?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord")]:`${Oe}\uAC1C`}:{},...Te?{[B("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")]:kl[Me]}:{}},Nt=(U,re)=>{if(re===B("wordTable.filter.columns","\uCE78 \uC218"))E?bn(parseInt(U)):Ae(parseInt(U));else if(re===B(Ye?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord")){const ke=parseInt(U);Ne(Dr.includes(ke)?ke:Number.POSITIVE_INFINITY)}else re===B("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")&&He(Al(U))},yt=E?P.filter(U=>U!==null).map(U=>({id:U[0].word,words:U.map(re=>({label:re.word,subLabel:re.pronunciation,homonum:re.homonum}))})):r??[],Yt=(U=!1)=>{if(Ke(U),te&&o){const re=Y.trim().toLowerCase();re&&O(ke=>ke.includes(re)?ke:[...ke,re]),o(Y,yt,K||void 0,U);return}if(x&&o){o("",yt,void 0,U);return}if(o){Ie(!0);return}Kt()},[Zt,Rt]=s.useState(!1),[Ht,sn]=s.useState(""),Pt=Ht.trim(),Xt=Pt!==""&&R.includes(Pt.toLowerCase()),ln=()=>{sn(Y?B("wordTable.save.copyName",{name:Y,defaultValue:"{{name}} (\uBCF5\uC0AC)"}):""),Rt(!0)},vt=()=>{!Pt||Xt||!o||(o(Pt,yt,K||void 0,!0),Rt(!1))},oe=yt.length===0,z=oe||te&&(Y===""||V),Q=()=>{if(oe){be(B("wordTable.emptyItems","\uB2E8\uC5B4\uB97C 1\uAC1C \uC774\uC0C1 \uCD94\uAC00\uD574\uC8FC\uC138\uC694."));return}if(te&&Y===""){be(B("wordTable.save.nameRequired","\uD45C \uC774\uB984\uC744 \uC785\uB825\uD574 \uC8FC\uC138\uC694."));return}te&&V&&be(B("wordTable.save.duplicateName","\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4."))},ne=t.jsx(On,{items:yt,orientation:he,contentTypes:Z,cutLine:J,showOutline:we,showDivLine:Ce,count:ot});return t.jsxs(t.Fragment,{children:[t.jsxs(In,{type:"page",icon:n,title:e,disc:a,className:ye("word-table-block",g),children:[Zt&&t.jsx(fn,{size:"small",title:p??B("wordTable.saveAsNewButton","\uB2E4\uB978 \uC774\uB984\uC73C\uB85C \uC800\uC7A5"),onClose:()=>Rt(!1),footer:({closeWithAnimation:U})=>t.jsxs(t.Fragment,{children:[t.jsx(ie,{htmlType:"button",size:48,type:"bar",label:B("common.cancel","\uCDE8\uC18C"),onClick:U}),t.jsx(ie,{htmlType:"button",size:48,type:"bar",variant:"main",label:B("common.save","\uC800\uC7A5"),disabled:!Pt||Xt,onClick:vt})]}),children:t.jsx(Dn,{label:B("wordTable.save.nameLabel","\uC774\uB984"),value:Ht,onChange:sn,placeholder:B("wordTable.save.placeholder","\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC81C\uBAA9\uC744 \uC785\uB825\uD558\uC138\uC694."),maxLength:40,size:48,fullWidth:!0,autoFocus:!0,onEnter:vt,error:Xt?B("wordTable.save.duplicateName","\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4."):void 0})}),Se&&o&&f?.({defaultName:typeof e=="string"?e:B("wordTable.defaultName","\uB2E8\uC5B4 \uD45C"),preview:ne,previewW:lt,previewH:Ue,items:yt,existingNames:b5().map(U=>U.name),saveAsNew:Le,onSave:(U,re)=>{o(U,yt,re,Le),Ie(!1)},onCancel:()=>Ie(!1)}),(E||b)&&ae!==null&&C?.({cellIndex:ae,onConfirm:E?kt:U=>{if(b){const re=U[0];re&&b({id:re.word,words:[{label:re.word,subLabel:re.pronunciation,homonum:re.homonum}]})}le(null)},onClose:De}),!v&&t.jsx(Tr,{hasImage:on,hasColloquial:$t,contentTypes:Z,orientation:he,showOutline:we,cutLine:J,showDivLine:Ce,setters:{setContentTypes:ce,setOrientation:ve,setShowOutline:de,setCutLine:ge,setShowDivLine:xe},showCutLine:(Ge?Xe:ot)>1,showDivLine2:Ye,middleSections:vn,extraSelected:Ze,onExtraSelect:Nt}),Te&&tt?t.jsx("div",{className:"word-table-block__pages",children:tt.map((U,re)=>t.jsx(On,{orientation:he,contentTypes:Z,cutLine:J,showOutline:we,showDivLine:Ce,count:Xe,items:U,onRemoveItem:l,contentRef:ke=>{X.current[re]=ke},pageNumber:{current:re+1,total:tt.length},pageNumberPosition:Me},re))}):t.jsx(On,{orientation:he,contentTypes:Z,cutLine:J,showOutline:we,showDivLine:Ce,count:ot,items:E?void 0:r??[],editCells:E?P:void 0,activeCell:ae,onActivateCell:E||b?le:void 0,onRemoveCell:E?Ct:void 0,onRemoveItem:E?void 0:l,onReorder:E?void 0:h,showFillerAdd:!!b,contentRef:je}),te&&!v&&t.jsxs(Ea,{size:"medium",labelWidth:64,useBorder:!1,useRowBorder:!1,className:"word-table-block__meta",children:[t.jsx(Cn,{variant:"custom",label:B("wordTable.save.nameLabel","\uC774\uB984"),required:!0,align:"vertical",useFullWidth:!0,children:t.jsx(Dn,{required:!0,value:y??"",onChange:k,placeholder:T?T+B("wordTable.save.autoFillHint"," (Tab \uB610\uB294 space \uC785\uB825\uC2DC \uC790\uB3D9 \uC785\uB825)"):B("wordTable.save.placeholder","\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC81C\uBAA9\uC744 \uC785\uB825\uD558\uC138\uC694."),ariaLabel:B("wordTable.save.nameLabel","\uC774\uB984"),maxLength:40,size:48,fullWidth:!0,error:V?B("wordTable.save.duplicateName","\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4."):void 0,onKeyDown:U=>{(U.key==="Tab"&&!U.shiftKey||U.key===" ")&&!(y??"").trim()&&(T??"").trim()&&(U.preventDefault(),k?.(T??""))}})}),t.jsx(Cn,{variant:"custom",label:B("wordTable.save.descriptionLabel","\uC124\uBA85"),align:"vertical",useFullWidth:!0,children:t.jsx(Dn,{value:_??"",onChange:A,placeholder:N?N+B("wordTable.save.autoFillHint"," (Tab \uB610\uB294 space \uC785\uB825\uC2DC \uC790\uB3D9 \uC785\uB825)"):B("wordTable.save.descriptionPlaceholder","\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC124\uBA85\uC744 \uC785\uB825\uD558\uC138\uC694."),ariaLabel:B("wordTable.save.descriptionLabel","\uC124\uBA85"),maxLength:200,multiline:!0,rows:2,fullWidth:!0,onKeyDown:U=>{(U.key==="Tab"&&!U.shiftKey||U.key===" ")&&!(_??"").trim()&&(N??"").trim()&&(U.preventDefault(),A?.(N??""))}})})]})]}),!v&&t.jsxs("div",{className:"word-table-block__actions",children:[t.jsxs("div",{className:"word-table-block__actions-left",children:[!x&&c&&t.jsx(ie,{htmlType:"button",size:40,type:"bar",label:I,onClick:c}),!x&&i&&t.jsx(ie,{htmlType:"button",size:40,type:"bar",label:B("wordTable.load","\uBD88\uB7EC\uC624\uAE30"),onClick:i}),!x&&t.jsx(ie,{htmlType:"button",size:40,type:"bar",label:B("wordTable.openNewWindow","\uC0C8 \uCC3D\uC73C\uB85C \uBCF4\uAE30"),onClick:bt})]}),t.jsxs("div",{className:"word-table-block__actions-right",children:[F&&t.jsx(ie,{htmlType:"button",size:"56",type:"bar",label:B("common.cancel","\uCDE8\uC18C"),onClick:F}),!x&&t.jsx(ie,{htmlType:"button",size:"56",type:"bar",label:B("wordTable.print","\uC778\uC1C4\uD558\uAE30"),onClick:st}),p&&t.jsx(ie,{htmlType:"button",size:"56",type:"bar",label:p,onClick:()=>te?ln():Yt(!0),disabled:oe,onDisabledClick:()=>{be(B("wordTable.emptyItems","\uB2E8\uC5B4\uB97C 1\uAC1C \uC774\uC0C1 \uCD94\uAC00\uD574\uC8FC\uC138\uC694."))}}),t.jsx(ie,{htmlType:"button",size:"56",type:"bar",variant:"main",label:d??B("wordTable.saveButton","\uC800\uC7A5\uD558\uAE30"),onClick:()=>Yt(!1),disabled:z,onDisabledClick:Q})]})]}),t.jsx(Pn,{message:qe,type:ze,onClose:Fe})]})}function pc({items:e,className:n}){const a=e.length,r=a<=3?1:2,o=Math.ceil(a/r)||1,i=r*o;return t.jsx("div",{className:ye("word-table-thumb",n),style:{gridTemplateColumns:`repeat(${r}, 1fr)`},children:Array.from({length:i},(l,c)=>{const u=e[c];return u?t.jsx("div",{className:"word-table-thumb__cell",children:(u.words.length?u.words:[{label:u.id}]).map((d,p)=>t.jsxs(s.Fragment,{children:[p>0&&t.jsx("span",{className:"word-table-thumb__divider"}),t.jsx("span",{className:"word-table-thumb__word body-3",children:d.label})]},p))},c):t.jsx("div",{className:"word-table-thumb__cell word-table-thumb__cell--empty"},c)})})}function v5({items:e,name:n,description:a,createdAt:r,published:o,publishedLabel:i,shared:l,sharedLabel:c,isNew:u,publisherName:d,publishedAt:p,likeCount:h,downloadCount:m,onPublisherClick:b,selected:g,onClick:f,onMore:C,titleNode:v,className:x}){const{t:w}=me.useTranslation(),y=v!=null,k=d!=null||p!=null||h!=null||m!=null,_=A=>{A.target===A.currentTarget&&!y&&(A.key==="Enter"||A.key===" ")&&(A.preventDefault(),f?.())};return t.jsxs("div",{className:ye("word-table-button",g?"word-table-button--selected":"",k?"":"word-table-button--no-footer",x),role:"button",tabIndex:0,"aria-label":n,onClick:y?void 0:f,onKeyDown:_,children:[u&&t.jsx("span",{className:"word-table-button__new-dot","aria-label":w("myWordTable.newBadge","\uC0C8\uB85C \uB9CC\uB4E0 \uD45C")}),t.jsx(pc,{items:e,className:"word-table-button__thumb"}),t.jsxs("div",{className:"word-table-button__info",children:[t.jsxs("div",{className:"word-table-button__info-text",children:[v??t.jsx("div",{className:"word-table-button__title h4",children:n}),a&&t.jsx("div",{className:"word-table-button__desc body-3",children:a})]}),C&&!y&&t.jsx(ie,{htmlType:"button",className:"word-table-button__more",size:32,type:"dot",variant:"transparent-gray",useBorder:!1,icon:"ellipsis",ariaLabel:w("common.moreFor",{name:n}),onClick:A=>{A.stopPropagation(),C(A)}})]}),(r||o||l)&&t.jsxs("div",{className:"word-table-button__meta-row",children:[t.jsx("span",{className:"word-table-button__meta caption-1",children:r?Cs(r,w):""}),t.jsxs("span",{className:"word-table-button__badges",children:[o&&t.jsx(rt,{className:"word-table-button__badge",size:"small",variant:"main",fill:"soft",iconLeft:"book-marked",label:i??w("myWordTable.publishedBadge","\uBC1C\uD589\uB428")}),l&&t.jsx(rt,{className:"word-table-button__badge",size:"small",fill:"soft",iconLeft:"link",label:c??w("myWordTable.sharedBadge","\uACF5\uC720 \uC911")})]})]}),k&&t.jsxs("div",{className:"word-table-button__footer",children:[t.jsxs("span",{className:"word-table-button__store-by",children:[d&&t.jsx("button",{className:"training-card__publisher body-4",type:"button",onClick:A=>{A.stopPropagation(),b?.()},children:d}),p&&t.jsx("span",{className:"training-card__date body-4",children:Cs(p,w)})]}),t.jsxs("span",{className:"word-table-button__store-stats",children:[h!=null&&t.jsx(rt,{size:"small",fill:"soft",variant:"like",iconLeft:"heart",label:String(h)}),m!=null&&t.jsx(rt,{size:"small",fill:"soft",variant:"main",iconLeft:"download",label:String(m)})]})]})]})}/**
969
969
  * @license lucide-react v1.38.0 - ISC
970
970
  *
971
971
  * This source code is licensed under the ISC license.
972
972
  * See the LICENSE file in the root directory of this source tree.
973
- */const Jy=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]],Qy=Y("image",Jy);/**
973
+ */const x5=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]],_5=G("image",x5);/**
974
974
  * @license lucide-react v1.38.0 - ISC
975
975
  *
976
976
  * This source code is licensed under the ISC license.
977
977
  * See the LICENSE file in the root directory of this source tree.
978
- */const e5=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],t5=Y("circle-x",e5);function n5(e){return{idle:0,"word-download":1,"image-list":2,"image-match":2,"pair-build":3,done:4}[e]??0}function Qr({icon:e,label:n,state:a,pct:r,subText:o}){const{t:s}=me.useTranslation(),l=a==="done",c=a==="pending",u=a==="error",d=l?100:r??0;return t.jsxs("div",{className:"wdup-phase-card",children:[t.jsx("div",{className:`wdup-phase-card__icon${l?" wdup-phase-card__icon--done":u?" wdup-phase-card__icon--error":""}`,children:l?t.jsx(vo,{size:22,color:"white",strokeWidth:2.5}):u?t.jsx(t5,{size:22,color:"white",strokeWidth:2.5}):t.jsx("span",{className:`wdup-phase-card__icon-inner${c?" wdup-phase-card__icon-inner--pending":""}`,children:e})}),t.jsxs("div",{className:"wdup-phase-card__body",children:[t.jsxs("div",{className:"wdup-phase-card__top",children:[t.jsx("span",{className:`wdup-phase-card__label body-2${c?" wdup-phase-card__label--pending":""}`,children:n}),l?t.jsx(rt,{variant:"sub",fill:"soft",size:"small",label:s("common.done","\uC644\uB8CC")}):u?t.jsx(rt,{variant:"danger",fill:"soft",size:"small",label:s("common.failed","\uC2E4\uD328")}):(o||r!==void 0)&&t.jsxs("span",{className:"wdup-phase-card__sub body-3",children:[o,o&&r!==void 0?` \xB7 ${r}%`:r!==void 0?`${r}%`:""]})]}),!c&&t.jsx("div",{className:"wdup-bar",children:t.jsx("div",{className:`wdup-bar__fill${l?" wdup-bar__fill--done":u?" wdup-bar__fill--error":""}${a==="active"&&r===void 0?" wdup-bar__fill--indeterminate":""}`,style:{width:r!==void 0||l||u?`${u?100:d}%`:void 0}})})]})]})}function a5({title:e,progress:n,onDone:a,onRetry:r,onClose:o,inline:s}){const{t:l}=me.useTranslation(),{phase:c,error:u,wordCount:d,imagePage:p,imageDone:h,imageTotal:m,pairPercent:b}=n,f=n5(c),g=c==="done",C=!!u;function v(w){return C&&f===w?"error":f>w?"done":f===w?"active":"pending"}const _=v(1),A=v(2),y=v(3),N=c==="image-match"&&m?Math.round((h??0)/m*100):void 0,x=i.useMemo(()=>{if(A!=="done"){if(c==="image-list")return l("wordData.checkingPage",{page:p??1});if(c==="image-match"&&m)return l("wordData.imageCount",{done:ar(h),total:ar(m)})}},[A,c,p,m,h,l]);return t.jsx(mn,{inline:s,className:"popup--word-data-update",title:e,footer:C&&r?t.jsx(se,{htmlType:"button",size:56,variant:"main",onClick:r,children:l("common.retry","\uB2E4\uC2DC \uC2DC\uB3C4")}):C?t.jsx(se,{htmlType:"button",size:56,variant:"main",onClick:o??a,children:l("common.close","\uB2EB\uAE30")}):t.jsx(se,{htmlType:"button",size:56,variant:"main",disabled:!g,onClick:a,children:l("common.done","\uC644\uB8CC")}),children:t.jsxs("div",{className:"wdup-cards",children:[t.jsx(Qr,{icon:t.jsx(fo,{size:22,color:"var(--color-main, #29b6c8)",strokeWidth:1.8}),label:l("wordData.phaseWordDownload","\uB2E8\uC5B4 \uB370\uC774\uD130 \uB2E4\uC6B4\uB85C\uB4DC"),state:_,subText:_==="active"?l("wordData.downloadingCount",{n:ar(d)}):void 0}),t.jsx(Qr,{icon:t.jsx(Qy,{size:22,color:"var(--color-main, #29b6c8)",strokeWidth:1.8}),label:l("wordData.phaseImageCheck","\uC774\uBBF8\uC9C0 \uD655\uC778"),state:A,pct:N,subText:x}),t.jsx(Qr,{icon:t.jsx(bo,{size:22,color:"var(--color-main, #29b6c8)",strokeWidth:1.8}),label:l("wordData.phasePairAnalysis","\uB2E8\uC5B4\uC30D \uBD84\uC11D"),state:y,pct:y==="active"?b??0:void 0,subText:void 0})]})})}function r5({enabled:e=!1,renderResultPopup:n}={}){const{t:a}=me.useTranslation(),[r,o]=i.useState(null),[s,l]=i.useState(null),c=b=>{let f=null;b==="noise"?f={score:3,contextsLength:5,results:[{sentence:"\uBB38\uC7A5 A",judgement:!0,wording:"\uC798 \uB4E4\uB9BC",useAnswer:!1},{sentence:"\uBB38\uC7A5 B",judgement:!1,wording:"\uC548 \uB4E4\uB9BC",useAnswer:!1},{sentence:"\uBB38\uC7A5 C",judgement:!0,wording:"\uC798 \uB4E4\uB9BC",useAnswer:!1},{sentence:"\uBB38\uC7A5 D",judgement:null,wording:"\uC548 \uD568",useAnswer:!1},{sentence:"\uBB38\uC7A5 E",judgement:!1,wording:"\uC548 \uB4E4\uB9BC",useAnswer:!1}]}:b==="short"?f={score:2,contextsLength:3,results:[{sentence:"\uBE44\uBE54\uBC25 \uC124\uBA85",answer:"\uBE44\uBE54\uBC25",selected:"\uBE44\uBE54\uBC25",selectedText:"\uBE44\uBE54\uBC25",correct:!0},{sentence:"\uBCF4\uC308 \uC124\uBA85",answer:"\uBCF4\uC308",selected:"\uC871\uBC1C",selectedText:"\uC871\uBC1C",correct:!1},{sentence:"\uCE7C\uAD6D\uC218 \uC124\uBA85",answer:"\uCE7C\uAD6D\uC218",selected:void 0,selectedText:void 0,correct:void 0}]}:b==="long"?f={score:4,contextsLength:4,results:[{sentence:"\uAE34 \uC774\uC57C\uAE30 1",answer:"\uC815\uB2F5 \uD14D\uC2A4\uD2B8 1",selectedText:"\uC815\uB2F5 \uD14D\uC2A4\uD2B8 1",correct:!0},{sentence:"\uAE34 \uC774\uC57C\uAE30 2",answer:"\uC815\uB2F5 \uD14D\uC2A4\uD2B8 2",selectedText:"\uC120\uD0DD \uD14D\uC2A4\uD2B8 2",correct:!1},{sentence:"\uAE34 \uC774\uC57C\uAE30 3",answer:"\uC815\uB2F5 \uD14D\uC2A4\uD2B8 3",selectedText:void 0,correct:void 0},{sentence:"\uAE34 \uC774\uC57C\uAE30 4",answer:"\uC815\uB2F5 \uD14D\uC2A4\uD2B8 4",selectedText:"\uC815\uB2F5 \uD14D\uC2A4\uD2B8 4",correct:!0}]}:b==="order"&&(f={score:1,contextsLength:2,results:[{sentence:"\uC21C\uC11C \uBB38\uC81C 1",answer:"1,2,3",selectedText:"1,2,3",correct:!0},{sentence:"\uC21C\uC11C \uBB38\uC81C 2",answer:"A,B,C",selectedText:"B,A,C",correct:!1}]}),l(f),o(b)},u=i.useCallback(()=>{o(null),l(null)},[]),d=i.useCallback(()=>c("noise"),[]),p=i.useCallback(()=>c("short"),[]),h=i.useCallback(()=>c("long"),[]),m=i.useCallback(()=>c("order"),[]);return e?t.jsxs("div",{className:"debug-result-launcher",children:[t.jsxs("div",{className:"debug-buttons",children:[t.jsx("button",{type:"button",className:"debug-button",onClick:d,children:a("debug.showResult",{type:"Noise",defaultValue:"{{type}} \uACB0\uACFC\uBCF4\uAE30"})}),t.jsx("button",{type:"button",className:"debug-button",onClick:p,children:a("debug.showResult",{type:"ShortStory",defaultValue:"{{type}} \uACB0\uACFC\uBCF4\uAE30"})}),t.jsx("button",{type:"button",className:"debug-button",onClick:h,children:a("debug.showResult",{type:"LongStory",defaultValue:"{{type}} \uACB0\uACFC\uBCF4\uAE30"})}),t.jsx("button",{type:"button",className:"debug-button",onClick:m,children:a("debug.showResult",{type:"Order",defaultValue:"{{type}} \uACB0\uACFC\uBCF4\uAE30"})})]}),r&&s?n?.({score:s.score,contextsLength:s.contextsLength,results:s.results,onReplay:u,onClose:u}):null]}):null}exports.Accordion=G0,exports.ActionCard=N0,exports.Alert=Cg,exports.AppHeader=e2,exports.AudioMeter=xr,exports.AudioPlayer=Hr,exports.Avatar=wg,exports.Badge=rt,exports.BarChart=o4,exports.BarChartControls=Oi,exports.Board=Rg,exports.BottomNav=si,exports.BrandIdentity=ui,exports.Breadcrumb=Ng,exports.BulkBar=Kg,exports.Button=se,exports.CORE_VERSION=x0,exports.Calendar=x4,exports.CardStep=Zl,exports.ChartLegend=gr,exports.ChartSection=br,exports.ChartTotal=ka,exports.Checkbox=$i,exports.ChoiceChips=xb,exports.CircleBadge=pg,exports.CodeBox=Gg,exports.ColorPicker=Tg,exports.CompanyMeta=Vg,exports.ConfirmPopup=Dy,exports.ConfirmStep=Gl,exports.ConfirmWithTextStep=Kl,exports.ContrastFilterPanel=Ny,exports.CoreScope=B0,exports.CountTile=Eg,exports.CouponInputPopup=Sy,exports.DEFAULT_NOISE_SETTINGS=ca,exports.DatePicker=Jg,exports.DebugResultLauncher=r5,exports.DescriptionTooltip=An,exports.DeviceSideTable=b4,exports.Dialog=$g,exports.Divider=hg,exports.Dropdown=Wt,exports.EffectPartyPopper=nc,exports.EffectPartyPopperHost=$y,exports.EmptyState=k0,exports.ErrorState=A0,exports.FILTER_ALL_VALUE=Gt,exports.FileUpload=Ag,exports.FilterPanel=rn,exports.FilterSectionInfo=aa,exports.Footer=_b,exports.Header=di,exports.Icon=Ve,exports.IconGridMenu=vb,exports.IconRenderer=Ve,exports.InfoTooltip=hn,exports.LEVEL_MAX=Hn,exports.LandingBottomSticky=kb,exports.LandingHeader=wb,exports.ListPopup=By,exports.ListenStep=Ul,exports.Loader=sa,exports.MARKS=Qi,exports.MARK_ICON=tl,exports.MARK_VARIANT=nl,exports.MediaQueryOverrideContext=Zs,exports.MenuTooltip=_a,exports.NOISE_RATIO_MAX=Da,exports.NOISE_RATIO_STEP=kl,exports.NoisePlayerContext=Pr,exports.NoiseSettingsTooltip=Ol,exports.NoticeBox=D0,exports.OrderListStep=Yl,exports.PASS_CARD_BG_VARS=Bn,exports.POS_LABEL=ol,exports.PROMO_BANNER_BG_COMPONENTS=Ks,exports.PROMO_BANNER_BG_OPTIONS=S0,exports.PROMO_BANNER_BG_VARS=Qn,exports.Page=Ma,exports.PageTitle=Ry,exports.Pagination=wa,exports.Panel=Ea,exports.PanelGrid=Xb,exports.PanelRow=fn,exports.PanelRowDevice=Zb,exports.PassCard=wi,exports.PassCardBg=lg,exports.PassCardBgIHAB=cg,exports.PassCardBgLeftColorGrid=ug,exports.PassCardBgTwoCircle=yi,exports.PaymentPlan=ig,exports.PersonCard=Pg,exports.PhonemeFilterPanel=Ay,exports.PhonemeSelectBlock=wy,exports.Popup=mn,exports.ProgressBar=p4,exports.ProgressIndicator=Ki,exports.PromoBanner=W0,exports.PromoBannerBgDark=Ms,exports.PromoBannerBgDeep=Bs,exports.PromoBannerBgDiagonal=Ps,exports.PromoBannerBgDots=Fs,exports.PromoBannerBgInstagram=Gs,exports.PromoBannerBgMain=xs,exports.PromoBannerBgNaver=qs,exports.PromoBannerBgOutline=Hs,exports.PromoBannerBgRadial=$s,exports.PromoBannerBgSoft=ws,exports.PromoBannerBgSoftSub=Ss,exports.PromoBannerBgSub=As,exports.PromoBannerBgSuccess=zs,exports.PromoBannerBgWarm=Ts,exports.PublicationCard=Fg,exports.Radio=Bi,exports.RadioGroup=mg,exports.Rating=Dg,exports.ReportDocument=Vy,exports.ReportInfoPanel=zy,exports.RingChart=i4,exports.SENTENCE_TRAINING_TYPES=Mr,exports.SearchSummary=yg,exports.Section=Pn,exports.SectionHeader=Hg,exports.SegmentedControl=Sn,exports.ShortcutBadge=Ni,exports.SideNav=ci,exports.Slider=qi,exports.SoundCompass=dg,exports.SplashLogo=Og,exports.StatChart=l4,exports.SummaryStrip=Oy,exports.TRAINING_TOOLTIP_HOVER_DELAY_MS=jy,exports.Table=wr,exports.TableFilterPanel=Sr,exports.Tabs=vg,exports.TextBoxTooltip=Ta,exports.TextField=Dn,exports.Timeline=Ig,exports.Toast=Rn,exports.Toggle=Li,exports.Toolbar=fr,exports.Tooltip=pn,exports.TooltipInfo=hn,exports.TooltipTextBox=Ta,exports.TopBanner=q0,exports.TrainingBlock=N4,exports.TrainingBlockButton=kr,exports.TrainingCard=qy,exports.TrainingCardGroup=Uy,exports.TrainingPagePopup=Cn,exports.TrainingPagePopupBottom=Hl,exports.TrainingPagePopupTitle=Vl,exports.TrainingResultPopup=Jl,exports.TrainingStep=jn,exports.TrainingStepAudioPlayer=Hr,exports.TrainingStepBullet=Ml,exports.TrainingStepCard=Rl,exports.TrainingStepConfirm=zr,exports.TrainingStepConfirmWithText=Wr,exports.TrainingStepListen=qr,exports.TrainingStepOrderList=Ur,exports.TrainingStepTextBox=$l,exports.TrainingStepTitle=Ll,exports.TrainingTooltip=Ey,exports.TrainingWordCard=Nr,exports.UpdateAlert=Wy,exports.WAVE_A_MAX=Mb,exports.WAVE_H1_PX=jl,exports.WAVE_HMAX_PX=Eb,exports.WORD_TABLE_PAPER=Fn,exports.WORD_TYPE_LABEL=sl,exports.WordDataProvider=Fy,exports.WordDataUpdatePopup=a5,exports.WordImageTooltip=ec,exports.WordSearchFilterPanel=ky,exports.WordSearchResultBlock=xy,exports.WordTable=On,exports.WordTableBlock=Zy,exports.WordTableButton=Xy,exports.WordTablePopup=G4,exports.WordTableThumbnail=rc,exports.buildMonthChartData=e4,exports.cellLabel=J4,exports.cellsForLabels=pb,exports.clearPassCardBgTheme=tn,exports.clearPromoBannerBgTheme=wt,exports.closeTrainingPopup=ny,exports.companyTypeLabel=Py,exports.createTrainingScenario=oy,exports.cx=ve,exports.deriveNoiseContexts=dy,exports.derivePassCard=Ci,exports.draftValues=bb,exports.effectiveNoiseVolume=$r,exports.effectiveSpeechVolume=Bl,exports.expandSlashLabel=Dr,exports.formatDuration=hb,exports.getControlDateRange=s4,exports.getPayloadTimestamp=Yr,exports.getPromoBannerBgTheme=sr,exports.getSelectedFromPayload=iy,exports.getSelectedText=ly,exports.getStepPayload=Wl,exports.getSteppedPayload=cy,exports.injectPassCardBgTheme=en,exports.injectPromoBannerBgTheme=_t,exports.isSelectionCorrect=uy,exports.labelsForSave=X4,exports.levelToPct=Ab,exports.markAfterClick=el,exports.marksForSave=Br,exports.mergeNoiseSettings=la,exports.missesByType=lb,exports.nextFocus=ob,exports.nextMisses=ib,exports.noiseElementVolume=Rr,exports.noiseRatioOf=ia,exports.pageStartIndexes=al,exports.passCardBgIhabTheme=ki,exports.passCardBgLeftColorGridTheme=Ai,exports.passCardBgTwoCircleTheme=bi,exports.pctToLevel=Nb,exports.printWordTable=M4,exports.promoBannerBgDarkTheme=Es,exports.promoBannerBgDeepTheme=Ns,exports.promoBannerBgDiagonalTheme=Rs,exports.promoBannerBgDotsTheme=Is,exports.promoBannerBgInstagramTheme=Us,exports.promoBannerBgMainTheme=vs,exports.promoBannerBgNaverTheme=Ws,exports.promoBannerBgOutlineTheme=Os,exports.promoBannerBgRadialTheme=Ls,exports.promoBannerBgSoftSubTheme=Ds,exports.promoBannerBgSoftTheme=_s,exports.promoBannerBgSubTheme=ks,exports.promoBannerBgSuccessTheme=Vs,exports.promoBannerBgWarmTheme=js,exports.recommendTables=ub,exports.regenerateUnpinned=gb,exports.removeItem=Cb,exports.resolveTrainingItems=ry,exports.resolveTrainingPopupMeta=zl,exports.reviewCells=Y4,exports.reviewSetPlan=cb,exports.reviewTableName=Z4,exports.scoreKey=Na,exports.scoreSheetHeader=Q4,exports.shouldConfirmDiscard=E4,exports.splitTrainingVariants=ay,exports.summarize=T4,exports.summarizeMisses=sb,exports.tableTrends=rb,exports.toDraft=mb,exports.toTrainingText=sy,exports.togglePin=fb,exports.uncoveredLabels=db,exports.useAnchoredMenu=ea,exports.useBarChartControl=Fi,exports.useCalendarMonth=Ri,exports.useComboboxSuggestions=Ei,exports.useFitScale=ll,exports.useNoisePlayer=Sa,exports.useSoundCompassExam=z0,exports.useToastLifecycle=Gi,exports.useWordData=Iy,exports.useWordTableDisplaySettings=_l,exports.useWordTablePrint=Er,exports.waveBarPx=ua,exports.waveBarVal=Fr,exports.weakItems=ab;
978
+ */const w5=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],k5=G("circle-x",w5);function A5(e){return{idle:0,"word-download":1,"image-list":2,"image-match":2,"pair-build":3,done:4}[e]??0}function to({icon:e,label:n,state:a,pct:r,subText:o}){const{t:i}=me.useTranslation(),l=a==="done",c=a==="pending",u=a==="error",d=l?100:r??0;return t.jsxs("div",{className:"wdup-phase-card",children:[t.jsx("div",{className:`wdup-phase-card__icon${l?" wdup-phase-card__icon--done":u?" wdup-phase-card__icon--error":""}`,children:l?t.jsx(wo,{size:22,color:"white",strokeWidth:2.5}):u?t.jsx(k5,{size:22,color:"white",strokeWidth:2.5}):t.jsx("span",{className:`wdup-phase-card__icon-inner${c?" wdup-phase-card__icon-inner--pending":""}`,children:e})}),t.jsxs("div",{className:"wdup-phase-card__body",children:[t.jsxs("div",{className:"wdup-phase-card__top",children:[t.jsx("span",{className:`wdup-phase-card__label body-2${c?" wdup-phase-card__label--pending":""}`,children:n}),l?t.jsx(rt,{variant:"sub",fill:"soft",size:"small",label:i("common.done","\uC644\uB8CC")}):u?t.jsx(rt,{variant:"danger",fill:"soft",size:"small",label:i("common.failed","\uC2E4\uD328")}):(o||r!==void 0)&&t.jsxs("span",{className:"wdup-phase-card__sub body-3",children:[o,o&&r!==void 0?` \xB7 ${r}%`:r!==void 0?`${r}%`:""]})]}),!c&&t.jsx("div",{className:"wdup-bar",children:t.jsx("div",{className:`wdup-bar__fill${l?" wdup-bar__fill--done":u?" wdup-bar__fill--error":""}${a==="active"&&r===void 0?" wdup-bar__fill--indeterminate":""}`,style:{width:r!==void 0||l||u?`${u?100:d}%`:void 0}})})]})]})}function N5({title:e,progress:n,onDone:a,onRetry:r,onClose:o,inline:i}){const{t:l}=me.useTranslation(),{phase:c,error:u,wordCount:d,imagePage:p,imageDone:h,imageTotal:m,pairPercent:b}=n,g=A5(c),f=c==="done",C=!!u;function v(A){return C&&g===A?"error":g>A?"done":g===A?"active":"pending"}const x=v(1),w=v(2),y=v(3),k=c==="image-match"&&m?Math.round((h??0)/m*100):void 0,_=s.useMemo(()=>{if(w!=="done"){if(c==="image-list")return l("wordData.checkingPage",{page:p??1});if(c==="image-match"&&m)return l("wordData.imageCount",{done:ar(h),total:ar(m)})}},[w,c,p,m,h,l]);return t.jsx(fn,{inline:i,className:"popup--word-data-update",title:e,footer:C&&r?t.jsx(ie,{htmlType:"button",size:56,variant:"main",onClick:r,children:l("common.retry","\uB2E4\uC2DC \uC2DC\uB3C4")}):C?t.jsx(ie,{htmlType:"button",size:56,variant:"main",onClick:o??a,children:l("common.close","\uB2EB\uAE30")}):t.jsx(ie,{htmlType:"button",size:56,variant:"main",disabled:!f,onClick:a,children:l("common.done","\uC644\uB8CC")}),children:t.jsxs("div",{className:"wdup-cards",children:[t.jsx(to,{icon:t.jsx(bo,{size:22,color:"var(--color-main, #29b6c8)",strokeWidth:1.8}),label:l("wordData.phaseWordDownload","\uB2E8\uC5B4 \uB370\uC774\uD130 \uB2E4\uC6B4\uB85C\uB4DC"),state:x,subText:x==="active"?l("wordData.downloadingCount",{n:ar(d)}):void 0}),t.jsx(to,{icon:t.jsx(_5,{size:22,color:"var(--color-main, #29b6c8)",strokeWidth:1.8}),label:l("wordData.phaseImageCheck","\uC774\uBBF8\uC9C0 \uD655\uC778"),state:w,pct:k,subText:_}),t.jsx(to,{icon:t.jsx(xo,{size:22,color:"var(--color-main, #29b6c8)",strokeWidth:1.8}),label:l("wordData.phasePairAnalysis","\uB2E8\uC5B4\uC30D \uBD84\uC11D"),state:y,pct:y==="active"?b??0:void 0,subText:void 0})]})})}function B5({enabled:e=!1,renderResultPopup:n}={}){const{t:a}=me.useTranslation(),[r,o]=s.useState(null),[i,l]=s.useState(null),c=b=>{let g=null;b==="noise"?g={score:3,contextsLength:5,results:[{sentence:"\uBB38\uC7A5 A",judgement:!0,wording:"\uC798 \uB4E4\uB9BC",useAnswer:!1},{sentence:"\uBB38\uC7A5 B",judgement:!1,wording:"\uC548 \uB4E4\uB9BC",useAnswer:!1},{sentence:"\uBB38\uC7A5 C",judgement:!0,wording:"\uC798 \uB4E4\uB9BC",useAnswer:!1},{sentence:"\uBB38\uC7A5 D",judgement:null,wording:"\uC548 \uD568",useAnswer:!1},{sentence:"\uBB38\uC7A5 E",judgement:!1,wording:"\uC548 \uB4E4\uB9BC",useAnswer:!1}]}:b==="short"?g={score:2,contextsLength:3,results:[{sentence:"\uBE44\uBE54\uBC25 \uC124\uBA85",answer:"\uBE44\uBE54\uBC25",selected:"\uBE44\uBE54\uBC25",selectedText:"\uBE44\uBE54\uBC25",correct:!0},{sentence:"\uBCF4\uC308 \uC124\uBA85",answer:"\uBCF4\uC308",selected:"\uC871\uBC1C",selectedText:"\uC871\uBC1C",correct:!1},{sentence:"\uCE7C\uAD6D\uC218 \uC124\uBA85",answer:"\uCE7C\uAD6D\uC218",selected:void 0,selectedText:void 0,correct:void 0}]}:b==="long"?g={score:4,contextsLength:4,results:[{sentence:"\uAE34 \uC774\uC57C\uAE30 1",answer:"\uC815\uB2F5 \uD14D\uC2A4\uD2B8 1",selectedText:"\uC815\uB2F5 \uD14D\uC2A4\uD2B8 1",correct:!0},{sentence:"\uAE34 \uC774\uC57C\uAE30 2",answer:"\uC815\uB2F5 \uD14D\uC2A4\uD2B8 2",selectedText:"\uC120\uD0DD \uD14D\uC2A4\uD2B8 2",correct:!1},{sentence:"\uAE34 \uC774\uC57C\uAE30 3",answer:"\uC815\uB2F5 \uD14D\uC2A4\uD2B8 3",selectedText:void 0,correct:void 0},{sentence:"\uAE34 \uC774\uC57C\uAE30 4",answer:"\uC815\uB2F5 \uD14D\uC2A4\uD2B8 4",selectedText:"\uC815\uB2F5 \uD14D\uC2A4\uD2B8 4",correct:!0}]}:b==="order"&&(g={score:1,contextsLength:2,results:[{sentence:"\uC21C\uC11C \uBB38\uC81C 1",answer:"1,2,3",selectedText:"1,2,3",correct:!0},{sentence:"\uC21C\uC11C \uBB38\uC81C 2",answer:"A,B,C",selectedText:"B,A,C",correct:!1}]}),l(g),o(b)},u=s.useCallback(()=>{o(null),l(null)},[]),d=s.useCallback(()=>c("noise"),[]),p=s.useCallback(()=>c("short"),[]),h=s.useCallback(()=>c("long"),[]),m=s.useCallback(()=>c("order"),[]);return e?t.jsxs("div",{className:"debug-result-launcher",children:[t.jsxs("div",{className:"debug-buttons",children:[t.jsx("button",{type:"button",className:"debug-button",onClick:d,children:a("debug.showResult",{type:"Noise",defaultValue:"{{type}} \uACB0\uACFC\uBCF4\uAE30"})}),t.jsx("button",{type:"button",className:"debug-button",onClick:p,children:a("debug.showResult",{type:"ShortStory",defaultValue:"{{type}} \uACB0\uACFC\uBCF4\uAE30"})}),t.jsx("button",{type:"button",className:"debug-button",onClick:h,children:a("debug.showResult",{type:"LongStory",defaultValue:"{{type}} \uACB0\uACFC\uBCF4\uAE30"})}),t.jsx("button",{type:"button",className:"debug-button",onClick:m,children:a("debug.showResult",{type:"Order",defaultValue:"{{type}} \uACB0\uACFC\uBCF4\uAE30"})})]}),r&&i?n?.({score:i.score,contextsLength:i.contextsLength,results:i.results,onReplay:u,onClose:u}):null]}):null}exports.Accordion=s2,exports.ActionCard=R0,exports.Alert=Dg,exports.AppHeader=h2,exports.AudioMeter=xr,exports.AudioPlayer=zr,exports.Avatar=Rg,exports.Badge=rt,exports.BarChart=y4,exports.BarChartControls=qi,exports.Board=Yg,exports.BottomNav=di,exports.BrandIdentity=fi,exports.Breadcrumb=Fg,exports.BulkBar=l4,exports.Button=ie,exports.CORE_VERSION=j0,exports.Calendar=I4,exports.CardStep=rc,exports.ChartLegend=gr,exports.ChartSection=br,exports.ChartTotal=ka,exports.Checkbox=Oi,exports.ChoiceChips=Hb,exports.CircleBadge=Ag,exports.CodeBox=i4,exports.ColorPicker=Wg,exports.CompanyMeta=t4,exports.ConfirmPopup=Xy,exports.ConfirmStep=tc,exports.ConfirmWithTextStep=nc,exports.ContrastFilterPanel=Yy,exports.CoreScope=P0,exports.CountTile=qg,exports.CouponInputPopup=Jy,exports.DEFAULT_NOISE_SETTINGS=ca,exports.DatePicker=p4,exports.DebugResultLauncher=B5,exports.DescriptionTooltip=Nn,exports.DeviceSideTable=$4,exports.Dialog=Kg,exports.Divider=Ng,exports.Dropdown=Wt,exports.EffectPartyPopper=uc,exports.EffectPartyPopperHost=r5,exports.EmptyState=L0,exports.ErrorState=$0,exports.FILTER_ALL_VALUE=Gt,exports.FileUpload=Ig,exports.FilterPanel=rn,exports.FilterSectionInfo=aa,exports.Footer=Vb,exports.Header=Ci,exports.Icon=Ve,exports.IconGridMenu=Ob,exports.IconRenderer=Ve,exports.InfoTooltip=hn,exports.LEVEL_MAX=Hn,exports.LandingBottomSticky=Wb,exports.LandingHeader=zb,exports.ListPopup=Zy,exports.ListenStep=ec,exports.Loader=sa,exports.MARKS=rl,exports.MARK_ICON=sl,exports.MARK_VARIANT=il,exports.MediaQueryOverrideContext=ei,exports.MenuTooltip=_a,exports.NOISE_RATIO_MAX=Sa,exports.NOISE_RATIO_STEP=jl,exports.NoisePlayerContext=Fr,exports.NoiseSettingsTooltip=Gl,exports.NoticeBox=I0,exports.OrderListStep=ac,exports.PASS_CARD_BG_VARS=Sn,exports.POS_LABEL=ul,exports.PROMO_BANNER_BG_COMPONENTS=Js,exports.PROMO_BANNER_BG_OPTIONS=F0,exports.PROMO_BANNER_BG_VARS=Qn,exports.Page=Ma,exports.PageTitle=o5,exports.Pagination=wa,exports.Panel=Ea,exports.PanelGrid=vy,exports.PanelRow=Cn,exports.PanelRowDevice=yy,exports.PassCard=Si,exports.PassCardBg=xg,exports.PassCardBgIHAB=_g,exports.PassCardBgLeftColorGrid=wg,exports.PassCardBgTwoCircle=ki,exports.PaymentPlan=vg,exports.PersonCard=Zg,exports.PhonemeFilterPanel=Ky,exports.PhonemeSelectBlock=Uy,exports.Popup=fn,exports.ProgressBar=N4,exports.ProgressIndicator=Qi,exports.PromoBanner=a2,exports.PromoBannerBgDark=Ps,exports.PromoBannerBgDeep=js,exports.PromoBannerBgDiagonal=Hs,exports.PromoBannerBgDots=zs,exports.PromoBannerBgInstagram=Xs,exports.PromoBannerBgMain=As,exports.PromoBannerBgNaver=Ys,exports.PromoBannerBgOutline=qs,exports.PromoBannerBgRadial=Fs,exports.PromoBannerBgSoft=Bs,exports.PromoBannerBgSoftSub=Ms,exports.PromoBannerBgSub=Ds,exports.PromoBannerBgSuccess=Gs,exports.PromoBannerBgWarm=$s,exports.PublicationCard=Jg,exports.Radio=Ei,exports.RadioGroup=Bg,exports.Rating=Hg,exports.ReportDocument=d5,exports.ReportInfoPanel=p5,exports.RingChart=x4,exports.SENTENCE_TRAINING_TYPES=$r,exports.SearchSummary=Eg,exports.Section=In,exports.SectionHeader=e4,exports.SegmentedControl=Tn,exports.ShortcutBadge=ji,exports.SideNav=mi,exports.Slider=Zi,exports.SoundCompass=kg,exports.SplashLogo=Qg,exports.StatChart=_4,exports.SummaryStrip=c5,exports.TRAINING_TOOLTIP_HOVER_DELAY_MS=Qy,exports.Table=wr,exports.TableFilterPanel=Tr,exports.Tabs=Mg,exports.TextBoxTooltip=ja,exports.TextField=Dn,exports.Timeline=Xg,exports.Toast=Pn,exports.Toggle=Fi,exports.Toolbar=fr,exports.Tooltip=pn,exports.TooltipInfo=hn,exports.TooltipTextBox=ja,exports.TopBanner=r2,exports.TrainingBlock=z4,exports.TrainingBlockButton=kr,exports.TrainingCard=m5,exports.TrainingCardGroup=f5,exports.TrainingPagePopup=gn,exports.TrainingPagePopupBottom=Kl,exports.TrainingPagePopupTitle=Yl,exports.TrainingResultPopup=sc,exports.TrainingStep=jn,exports.TrainingStepAudioPlayer=zr,exports.TrainingStepBullet=Ol,exports.TrainingStepCard=zl,exports.TrainingStepConfirm=qr,exports.TrainingStepConfirmWithText=Ur,exports.TrainingStepListen=Gr,exports.TrainingStepOrderList=Kr,exports.TrainingStepTextBox=Vl,exports.TrainingStepTitle=Hl,exports.TrainingTooltip=t5,exports.TrainingWordCard=Nr,exports.UpdateAlert=h5,exports.WAVE_A_MAX=Qb,exports.WAVE_H1_PX=Pl,exports.WAVE_HMAX_PX=Jb,exports.WORD_TABLE_PAPER=Fn,exports.WORD_TYPE_LABEL=dl,exports.WordDataProvider=l5,exports.WordDataUpdatePopup=N5,exports.WordImageTooltip=lc,exports.WordSearchFilterPanel=Gy,exports.WordSearchResultBlock=Wy,exports.WordTable=On,exports.WordTableBlock=y5,exports.WordTableButton=v5,exports.WordTablePopup=pb,exports.WordTableThumbnail=pc,exports.buildMonthChartData=m4,exports.cellLabel=gb,exports.cellsForLabels=Eb,exports.clearPassCardBgTheme=tn,exports.clearPromoBannerBgTheme=wt,exports.closeTrainingPopup=Ay,exports.companyTypeLabel=s5,exports.createTrainingScenario=Sy,exports.cx=ye,exports.deriveNoiseContexts=Ly,exports.derivePassCard=xi,exports.draftValues=Ib,exports.effectiveNoiseVolume=Pr,exports.effectiveSpeechVolume=Ll,exports.expandSlashLabel=Sr,exports.formatDuration=Mb,exports.getControlDateRange=v4,exports.getPayloadTimestamp=Xr,exports.getPromoBannerBgTheme=sr,exports.getSelectedFromPayload=Ty,exports.getSelectedText=jy,exports.getStepPayload=Jl,exports.getSteppedPayload=Ey,exports.injectPassCardBgTheme=en,exports.injectPromoBannerBgTheme=_t,exports.isSelectionCorrect=My,exports.labelsForSave=Cb,exports.levelToPct=qb,exports.markAfterClick=ol,exports.marksForSave=Br,exports.mergeNoiseSettings=la,exports.missesByType=Sb,exports.nextFocus=Ab,exports.nextMisses=Bb,exports.noiseElementVolume=Ir,exports.noiseRatioOf=ia,exports.pageStartIndexes=ll,exports.passCardBgIhabTheme=Di,exports.passCardBgLeftColorGridTheme=Ti,exports.passCardBgTwoCircleTheme=wi,exports.pctToLevel=Ub,exports.printWordTable=X4,exports.promoBannerBgDarkTheme=Rs,exports.promoBannerBgDeepTheme=Ts,exports.promoBannerBgDiagonalTheme=Os,exports.promoBannerBgDotsTheme=Vs,exports.promoBannerBgInstagramTheme=Zs,exports.promoBannerBgMainTheme=ks,exports.promoBannerBgNaverTheme=Ks,exports.promoBannerBgOutlineTheme=Ws,exports.promoBannerBgRadialTheme=Is,exports.promoBannerBgSoftSubTheme=Es,exports.promoBannerBgSoftTheme=Ns,exports.promoBannerBgSubTheme=Ss,exports.promoBannerBgSuccessTheme=Us,exports.promoBannerBgWarmTheme=Ls,exports.recommendTables=Tb,exports.regenerateUnpinned=Pb,exports.removeItem=Rb,exports.resolveTrainingItems=By,exports.resolveTrainingPopupMeta=Xl,exports.reviewCells=mb,exports.reviewSetPlan=Db,exports.reviewTableName=fb,exports.scoreKey=Na,exports.scoreSheetHeader=bb,exports.shouldConfirmDiscard=Z4,exports.splitTrainingVariants=Ny,exports.summarize=Y4,exports.summarizeMisses=Nb,exports.tableTrends=kb,exports.toDraft=Lb,exports.toTrainingText=Dy,exports.togglePin=$b,exports.uncoveredLabels=jb,exports.useAnchoredMenu=ea,exports.useBarChartControl=Wi,exports.useCalendarMonth=Hi,exports.useComboboxSuggestions=Pi,exports.useFitScale=hl,exports.useNoisePlayer=Da,exports.useSoundCompassExam=n2,exports.useToastLifecycle=Ji,exports.useWordData=i5,exports.useWordTableDisplaySettings=Dl,exports.useWordTablePrint=Mr,exports.waveBarPx=ua,exports.waveBarVal=Hr,exports.weakItems=wb;