@ihabdevteam/core 0.246.0 → 0.247.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.
@@ -844,12 +844,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
844
844
  \uC124\uCE58 \uBA85\uB839\uC5B4 (\uC2A4\uD1A0\uB9AC\uC9C0 SDK \uBBF8\uC124\uCE58 \uC2DC):
845
845
  npm install @supabase/supabase-js
846
846
  pnpm add @supabase/supabase-js
847
- `),this.name="StorageNotConfiguredError"}};function J0(e){X0(e)}function Vs(e,n){if(!e)return null;const a=fa();return a?.resolvePath?a.resolvePath(e,n):n?`${n}/${e}.mp3`:null}async function Ws(e){if(!e)return null;const n=fa();if(!n)throw new zs("getSignedOrPublicUrl");try{return await n.resolveUrl(e)}catch{return null}}async function qs(e){const n=fa();if(!n)throw new zs("downloadSound");return n.download(e)}function Q0(){return fa()?.noiseBaseUrl??"/sounds/noise"}function Us(){const e=Number(fa()?.noiseFileGain);return Number.isFinite(e)&&e>0?e:1}function eC(e){const n=AbortSignal.timeout;if(typeof n=="function")return n.call(AbortSignal,e);const a=new AbortController;return setTimeout(()=>a.abort(),e),a.signal}const Gs="__ihab_core_tts_config__";function Er(){return globalThis[Gs]?.urlResolver??null}function tC(){return globalThis[Gs]?.fallbackUrlResolver??null}const nC="__ihab_core_pronunciation_resolver__";function aC(){return globalThis[nC]??null}let En=null;const ga=new WeakMap,Sr=new WeakMap,jr=new WeakMap;let Ks=!1;const Ys=e=>Math.max(0,Math.min(1,Number.isFinite(e)?e:0));function rC(){if(Ks||typeof document>"u")return;Ks=!0;const e=()=>{try{En&&En.state!=="running"&&En.resume()}catch{}};for(const n of["pointerdown","touchend","keydown"])document.addEventListener(n,e,{capture:!0,passive:!0})}function Zs(){if(En)return En;try{const e=window.AudioContext||window.webkitAudioContext;return e?(En=new e,rC(),En):null}catch{return null}}function Tr(){try{En?.resume()}catch{}}function Mr(e,n){const a=ga.get(n);if(a)return a;try{const r=e.createMediaElementSource(n),s=e.createGain(),i=e.createAnalyser();i.fftSize=1024,i.smoothingTimeConstant=.6,s.gain.value=Ys(Sr.get(n)??n.volume),r.connect(s),s.connect(i),s.connect(e.destination);try{n.volume=1}catch{}const l={gain:s,analyser:i};return ga.set(n,l),l}catch{return null}}function Oa(e){if(!e)return Promise.resolve(null);const n=ga.get(e);if(n)return Promise.resolve(n.analyser);const a=Zs();if(!a)return Promise.resolve(null);if(a.state==="running")return Promise.resolve(Mr(a,e)?.analyser??null);const r=jr.get(e);if(r)return r;const s=Promise.resolve().then(()=>a.resume()).then(()=>a.state==="running"?Mr(a,e)?.analyser??null:null).catch(()=>null).finally(()=>{jr.delete(e)});return jr.set(e,s),s}function oC(e){if(!e)return null;const n=ga.get(e);if(n)return n.analyser;const a=Zs();return a?a.state==="running"?Mr(a,e)?.analyser??null:(Oa(e),null):null}function Sn(e,n){const a=Ys(n);Sr.set(e,a);const r=ga.get(e);if(r){try{e.volume!==1&&(e.volume=1)}catch{}const s=r.gain.gain;try{const i=r.gain.context.currentTime;s.cancelScheduledValues(i),s.setTargetAtTime(a,i,.01)}catch{try{s.value=a}catch{}}return"gain"}try{e.volume=a}catch{}return"element"}function Ha(e){return Sr.get(e)??e.volume}function sC(e,n){e.getFloatTimeDomainData(n);let a=0;for(let r=0;r<n.length;r++){const s=n[r];a+=s*s}return Math.sqrt(a/n.length)}const iC="__ihab_core_image_config__";function Xn(){return globalThis[iC]??null}const Xs="word_image_existence_map_v1";let Hn=null;const za=new Map;function lC(){if(Hn)return Hn;try{const e=typeof localStorage<"u"?localStorage.getItem(Xs):null,n=e?JSON.parse(e):null;Hn=n&&typeof n=="object"&&!Array.isArray(n)?n:{}}catch{Hn={}}return Hn}let Lr=null;function uC(){Lr||(Lr=setTimeout(()=>{Lr=null;try{typeof localStorage<"u"&&Hn&&localStorage.setItem(Xs,JSON.stringify(Hn))}catch{}},200))}function cC(e,n){return`${e}_${n??1}`}async function Js(e,n){const a=lC(),r=cC(e,n);if(r in a)return a[r];if(za.has(r))return za.get(r);const s=Xn();if(!s)return!1;const i=s(e,n);if(!i)return!1;const l=fetch(i,{method:"HEAD",signal:eC(8e3)}).then(u=>u.status>=500?null:u.ok,()=>null).then(u=>(za.delete(r),u===null?!1:(a[r]=u,uC(),u)));return za.set(r,l),l}const dC={\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"}},Qs=["\u3131","\u3132","\u3134","\u3137","\u3138","\u3139","\u3141","\u3142","\u3143","\u3145","\u3146","\u3147","\u3148","\u3149","\u314A","\u314B","\u314C","\u314D","\u314E"],ei=["\u314F","\u3150","\u3151","\u3152","\u3153","\u3154","\u3155","\u3156","\u3157","\u3158","\u3159","\u315A","\u315B","\u315C","\u315D","\u315E","\u315F","\u3160","\u3161","\u3162","\u3163"],pC=["","\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 ba(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 mC(e){const n=ba(e[0]||"");return n?Qs[n.cho]:""}function hC(e){if(!e)return()=>!0;e=e.normalize("NFC");const n=[...e],a=l=>Qs.includes(l),r=l=>ei.includes(l),s=n.map(l=>a(l)?"cho":r(l)?"jung":ba(l)?"syl":"other"),i=n.map(l=>ba(l));if(s.includes("other")){const l=e.toLowerCase();return u=>u.normalize("NFC").toLowerCase().includes(l)}return l=>{const u=[...l.normalize("NFC")];for(let c=0;c+n.length<=u.length;c++){let d=!0;for(let p=0;p<n.length;p++){const m=u[c+p],h=s[p];if(h==="cho"){if(mC(m)!==n[p]){d=!1;break}}else if(h==="jung"){const g=ba(m);if(!g||ei[g.jung]!==n[p]){d=!1;break}}else{const g=i[p];if(g&&g.jong===0){const y=ba(m);if(!y||y.cho!==g.cho||y.jung!==g.jung){d=!1;break}}else if(m!==n[p]){d=!1;break}}}if(d)return!0}return!1}}const CC={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(CC).map(([e,n])=>[n.join(""),pC[Number(e)]]));const fC="word_pair_index_v2",gC="word_pair_index_sig_v2";let Va=null;function bC(){try{if(typeof localStorage>"u")return null;const e=localStorage.getItem(fC),n=localStorage.getItem(gC);return!e||!n?null:{index:JSON.parse(e),sig:n}}catch{return null}}function yC(){if(Va)return Va;const e=bC();return e?(Va=e.index,e.sig,Va):null}const $r=/[ㄱ-ㅎ]/,vC=/[ㅏ-ㅣ]/;function ti(e){e=e.normalize("NFC");for(let n=e.length-1;n>=0;n--){const a=e[n],r=a.charCodeAt(0);if(r>=44032&&r<=55203||$r.test(a)||vC.test(a))return a}return null}function xC(e){const n=ti(e);if(!n)return"\uAC00";const a=n.charCodeAt(0);return a>=44032&&a<=55203?(a-44032)%28!==0?"\uC774":"\uAC00":$r.test(n)?"\uC774":"\uAC00"}function _C(e){return`${e}${xC(e)}`}function wC(e){const n=ti(e);if(!n)return"\uB97C";const a=n.charCodeAt(0);return a>=44032&&a<=55203?(a-44032)%28!==0?"\uC744":"\uB97C":$r.test(n)?"\uC744":"\uB97C"}function AC(e){return`${e}${wC(e)}`}function kC(e,n,a){const r=e.slice(),[s]=r.splice(n,1);return r.splice(a,0,s),r}function ya(e,n=Math.random){const a=e.slice();for(let r=a.length-1;r>0;r--){const s=Math.floor(n()*(r+1));[a[r],a[s]]=[a[s],a[r]]}return a}const BC=()=>{const e="\uC54C \uC218 \uC5C6\uB294 \uC624\uB958",n=typeof Et?.t=="function"?Et.t("common.unknownError",{defaultValue:e}):void 0;return typeof n=="string"&&n?n:e};function ni(e,n){if(n===void 0&&(n=BC()),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 NC="__ihab_core_word_pool__";function ai(){return globalThis[NC]??null}const ri=globalThis;function oi(e,n){const a=r=>{};try{const r=n();r&&typeof r.catch=="function"&&r.catch(a)}catch(r){a(r)}}function DC(e){oi("time",()=>ri.__ihabTrainingTimeLogger?.(e))}function EC(e){oi("completion",()=>ri.__ihabTrainingCompletionLogger?.(e))}function Gt(e){return typeof e=="string"?e.trim()||null:typeof e=="number"?String(e):null}function SC(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 jC(e){return Array.isArray(e)?e.map((n,a)=>{const r=n??{};return{index:a,itemId:Gt(r.contextCode)??Gt(r.itemId)??Gt(r.itemCode)??Gt(r.id),question:Gt(r.question)??Gt(r.q)??Gt(r.sentence)??Gt(r.text)??Gt(r.prompt)??Gt(r.word)??Gt(r.targetSyllable),answer:Gt(r.answer),selected:Gt(r.selectedText)??Gt(r.selected),correct:SC(r)}}):[]}const Rr=globalThis;async function TC(){try{return await Rr.__ihabNoiseSettingsStore?.load()??null}catch{return null}}function si(e){const n=a=>{};try{const a=Rr.__ihabNoiseSettingsStore?.save(e);a&&typeof a.catch=="function"&&a.catch(n)}catch(a){n(a)}}function Wa(e){try{Rr.__ihabNoiseSettingsStore?.applied?.(e)}catch{}}async function MC(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}const LC=/^(\d{4}-\d{2}-\d{2})[T ](\d{2}:\d{2})(?::(\d{2})(?:\.(\d+))?)?$/;function ii(e){let n;if(e instanceof Date)n=e;else if(typeof e=="string"){const a=e.trim(),r=LC.exec(a);n=new Date(r?`${r[1]}T${r[2]}:${r[3]??"00"}${r[4]?`.${r[4].slice(0,3).padEnd(3,"0")}`:""}+09:00`:a)}else n=new Date(e);return Number.isNaN(n.getTime())?null:n}function va(){return Ir(new Date)}function Pr(e){return e&&/^\d{4}-\d{2}-\d{2}$/.test(e)?e:va()}function Jn(){return RC(va())}const $C=540*60*1e3;function li(e,n,a){return new Date(Date.UTC(e,n,a)-$C)}function RC(e){const[n,a,r]=e.split("-").map(Number);return new Date(n,(a||1)-1,r||1)}function Ir(e){if(e==null||e==="")return"";const n=ii(e);return n?new Intl.DateTimeFormat("fr-CA",{timeZone:"Asia/Seoul"}).format(n):""}function ui(e,n){if(!e)return"";const a=ii(e);if(!a)return"";const r=a.getTime(),s=Math.max(0,Math.floor((Date.now()-r)/1e3)),i=Math.floor(s/60),l=Math.floor(i/60),u=Math.floor(l/24),c=Math.floor(u/7),d=Math.floor(u/30),p=Math.floor(u/365);return i<1?n("store.time.justNow","\uBC29\uAE08 \uC804"):i<60?n("store.time.minutesAgo",{n:i}):l<24?n("store.time.hoursAgo",{n:l}):u<7?n("store.time.daysAgo",{n:u}):c<5?n("store.time.weeksAgo",{n:c}):u<365?n("store.time.monthsAgo",{n:Math.min(d,11)}):n("store.time.yearsAgo",{n:p})}function ci(e,n={}){const{sep:a=".",pad:r=!0,trailingDot:s=!1,fallback:i="\u2014"}=n;if(!e)return i;const l=Ir(e instanceof Date?e:String(e));if(!l)return i;const[u,c,d]=l.split("-"),p=r?c:String(Number(c)),m=r?d:String(Number(d));return`${u}${a}${p}${a}${m}${s?".":""}`}function Qn(e){if(!e)return e;const n=e.trim();return/^[₩$]/.test(n)?n:/원\s*$/.test(n)?"\u20A9"+n.replace(/\s*원\s*$/,"").trim():n}function di(e,n){if(!e)return"-";const a=/^(\d{1,2}):(\d{2})$/.exec(e.trim());if(!a)return e;const r=Number(a[1]),s=Number(a[2]),i=a[1].padStart(2,"0");return s===0?n("date.timeH",{h:r,hh:i,mm:a[2]}):n("date.timeHM",{h:r,hh:i,m:s,mm:a[2]})}function Fr(e){return(e??0).toLocaleString("ko-KR")}const PC=[{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"}]}],IC=[{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 pi(){return PC}function FC(){return IC}const OC=[],HC=[],zC=[],VC=[];function WC(){return{LISTEN_IN_NOISE:OC,SHORT_STORY:HC,LONG_STORY:zC,ORDERING_SENTENCE:VC}}const qC=[{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."}],mi={LISTEN_IN_NOISE:"listenInNoise",SHORT_STORY:"shortStory",LONG_STORY:"longStory",ORDERING_SENTENCE:"orderingSentence"};function UC(e){return qC.map(n=>{const a=mi[n.key];return a?{...n,label:e(`trainingType.${a}.title`),desc:e(`trainingType.${a}.desc`)}:n})}let qa=null,hi=null,Ci=null;function GC(){const e=ai();if(e&&e.entries.length>0){const n=yC();if(qa&&hi===e&&Ci===n)return qa;const a=new Set,r=[];for(const s of e.entries)!s.word||a.has(s.word)||(a.add(s.word),r.push({w:s.word,s:s.syllables,p:n?.[s.word]?[...n[s.word].cho??[],...n[s.word].jung??[],...n[s.word].jong??[]]:[],pron:s.pronunciation||s.word,grade:s.grade}));return qa=r,hi=e,Ci=n,qa}return[]}new Proxy([],{get(e,n){const a=GC(),r=a[n];return typeof r=="function"?r.bind(a):r}});const KC="0.246.0";function YC(e){if(e.includes("\\")&&e.includes("("))return!0;if(!/url\s*\(/i.test(e))return!1;const n=e.replace(/url\(\s*(['"]?)#[^)'"]*\1\s*\)/gi,"");return/url\s*\(/i.test(n)}function ZC(e){if(typeof window>"u")return"";const n=(a,r)=>{typeof r.attrValue=="string"&&YC(r.attrValue)&&(r.keepAttr=!1)};Nr.addHook("uponSanitizeAttribute",n);try{return Nr.sanitize(e,{USE_PROFILES:{svg:!0,svgFilters:!0},FORBID_TAGS:["script","use","style"],FORBID_ATTR:["xlink:href","href"]})}finally{Nr.removeHook("uponSanitizeAttribute",n)}}function XC(e){const[n,a]=o.useState(null),[r,s]=o.useState(null),[i,l]=o.useState(null),[u,c]=o.useState(null);return o.useEffect(()=>{if(!e||typeof e!="string"||!e.endsWith(".svg")){a(null),s(null),l(null);return}const d=e.split("/").pop();let p=e;d&&(e.startsWith("/")?p=Dr(e):/^(Logo|Symbol)/i.test(d)?p=Dr(`logo/${d}`):(/^https?:\/\//i.test(e)||e.startsWith("data:"),p=e)),s(null),l(null),a(p)},[e]),o.useEffect(()=>{if(!n)return;let d=!1;async function p(){try{let m=await fetch(n);m.ok||(m=await fetch(n));const h=m.headers.get("content-type")||"";if(d)return;if(h.includes("svg")){s("mask");return}if(h.startsWith("image/")){s("img");return}const g=await fetch(n);if(!g.ok)throw new Error("not ok");const y=await g.text();if(d)return;if(/^\s*<svg[\s>]/i.test(y)){const f=ZC(y);if(!f){s("none");return}l(f),s("inline");return}s("none")}catch{d||s("none")}}return p(),()=>{d=!0}},[n]),o.useEffect(()=>{let d=!1,p=null;return r==="mask"&&n&&fetch(n).then(m=>{if(!m.ok)throw new Error("fetch failed");return m.blob()}).then(m=>{d||(p=URL.createObjectURL(m),c(p))}).catch(()=>{d||s("img")}),()=>{d=!0,p&&URL.revokeObjectURL(p),c(null)}},[r,n]),{iconToUse:n,mode:r,svgText:i,blobUrl:u}}function Ke(e){const{icon:n,label:a,className:r,imgClassName:s,maskClassName:i,svgClassName:l,wrapperStyle:u,size:c}=e||{},d=r??"iconRenderer-icon",p=s??"iconRenderer-icon-image",m=i??"iconRenderer-icon-mask",h=l??"iconRenderer-icon-svg",g=typeof n=="string"?n:null,y=m0(g),{iconToUse:f,mode:x,svgText:b,blobUrl:C}=XC(g),_=(k,B={})=>t.jsx("span",{className:d,style:u,...B,children:k}),v=typeof c=="number"?{width:c,height:c,objectFit:"contain"}:null,A=(k,B={})=>t.jsx("img",{src:k,alt:typeof a=="string"?a:typeof a=="number"?String(a):"",className:p,...B,style:v?{...B.style,...v}:B.style});if(!n)return null;if(typeof n!="string")return _(n);if(n==="none")return _(t.jsx("span",{className:h,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(y)try{return _(o.createElement(y,{className:h,size:typeof c=="number"?c:20}),{"aria-hidden":"true"})}catch{}if(f&&f.endsWith(".svg")){if(x==="mask"){const k={"--icon-url":C?`url(${C})`:`url(${f})`,...typeof c=="number"?{"--icon-size":`${c}px`}:null};return _(t.jsx("span",{className:m,style:k}),{"aria-hidden":"true"})}return x==="img"?_(A(f,{onError:k=>{k.currentTarget.onerror=null,k.currentTarget.style.display="none"}}),{"aria-hidden":"true"}):x==="inline"?_(t.jsx("span",{className:h,dangerouslySetInnerHTML:b?{__html:b}:void 0}),{"aria-hidden":"true"}):_(null,{"aria-hidden":"true"})}if(n.startsWith("/")||n.includes("/assets/")||n.match(/\.(png|jpg|jpeg|webp|gif)$/i))return A(Dr(n),{style:u,onError:k=>{k.currentTarget.onerror=null,k.currentTarget.style.display="none"}});const w=typeof c=="number"?c:20,N=`<svg width="${w}" height="${w}" 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 _(t.jsx("span",{className:h,dangerouslySetInnerHTML:{__html:N}}),{"aria-hidden":"true"})}function fi(e){const[n,a]=o.useState(!1),r=o.useRef(!1),s=o.useRef(!0);o.useEffect(()=>(s.current=!0,()=>{s.current=!1}),[]);const i=o.useCallback(()=>{if(!e||r.current)return;const l=e();if(l&&typeof l.then=="function"){r.current=!0,a(!0);const u=()=>{r.current=!1,s.current&&a(!1)};l.then(u,u)}},[e]);return{pending:n,press:i}}function JC({icon:e,title:n,message:a,action:r,className:s}){const{pending:i,press:l}=fi(r?.onClick);return t.jsxs("div",{className:De("empty-state",s),children:[e&&t.jsx(Ke,{icon:e,size:48,className:"empty-state__icon"}),n&&t.jsx("p",{className:"empty-state__title h4",children:n}),a&&t.jsx("p",{className:"empty-state__message body-3",children:a}),r&&t.jsxs("button",{type:"button",className:"empty-state__action button button40 button40--bar button--variant-main button--align-center button--shape-rounded",onClick:l,disabled:i,"aria-busy":i||void 0,children:[r.icon&&t.jsx(Ke,{icon:r.icon,className:"button__icon"}),t.jsx("span",{className:"button__label button-1",children:r.label})]})]})}function QC({message:e,hint:n,icon:a="triangle-alert",onRetry:r,retryLabel:s,className:i}){const{t:l}=ye.useTranslation(),{pending:u,press:c}=fi(r);return t.jsxs("div",{className:De("empty-state","error-state",i),role:"alert",children:[t.jsx(Ke,{icon:a,size:48,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:"error-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:c,disabled:u,"aria-busy":u||void 0,children:[t.jsx(Ke,{icon:"rotate-cw",className:"button__icon"}),t.jsx("span",{className:"button__label button-1",children:s??l("common.errorState.retry",{defaultValue:"\uB2E4\uC2DC \uC2DC\uB3C4"})})]})]})}function ef({icon:e,title:n,description:a,cta:r,tone:s="main",disabled:i=!1,onClick:l,className:u=""}){const c=o.useId(),d=`${c}-title`,p=`${c}-desc`,m=`${c}-cta`,h=()=>{i||l?.()};return t.jsx("section",{role:"button",tabIndex:i?-1:0,"aria-disabled":i||void 0,"aria-labelledby":d,"aria-describedby":`${p} ${m}`,onClick:h,onKeyDown:g=>{(g.key==="Enter"||g.key===" ")&&(g.preventDefault(),h())},className:De("action-card",`action-card--${s}`,i&&"action-card--disabled",u),children:t.jsxs("div",{className:"action-card__body",children:[t.jsx("span",{"aria-hidden":!0,className:"action-card__chip",children:t.jsx(Ke,{icon:e,size:34})}),t.jsxs("div",{className:"action-card__text",children:[t.jsx("h2",{id:d,className:"action-card__title",children:n}),t.jsx("p",{id:p,className:"action-card__desc",children:a})]}),t.jsxs("div",{className:"action-card__cta",children:[t.jsx("span",{id:m,children:r}),t.jsx("span",{"aria-hidden":!0,className:"action-card__arrow",children:t.jsx(Ke,{icon:"arrow-right",size:18})})]})]})})}function tf({as:e="div",className:n="",children:a,storage:r,...s}){r&&J0({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=De("ihabdevteam-core-scope",n);return t.jsx(e,{className:i,...s,children:a})}function Or(e,n=!0){o.useEffect(()=>{if(!n)return;const a=e.current;if(!a)return;const r=s=>{if(s.key!=="Tab")return;const i=Array.from(a.querySelectorAll(mn)).filter(p=>!p.closest('[aria-hidden="true"]'));if(!i.length){s.preventDefault();return}const l=i[0],u=i[i.length-1],c=document.activeElement,d=c===a;s.shiftKey&&(c===l||d)?(s.preventDefault(),u.focus()):!s.shiftKey&&c===u&&(s.preventDefault(),l.focus())};return a.addEventListener("keydown",r),()=>a.removeEventListener("keydown",r)},[e,n])}const mn='a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])',Hr=new WeakMap;function zr(e,n){e&&Hr.set(e,n)}function Vr(e){let n=e;for(let a=0;n&&!n.isConnected&&a<10;a++){let r=n;for(;r&&!Hr.has(r);)r=r.parentElement;if(!r)return n;n=Hr.get(r)??null}return n}function gi(e){return!(!e||!e.isConnected||e===document.body||typeof e.focus!="function"||e.disabled||e instanceof HTMLInputElement&&e.type==="hidden"||e.closest('[inert],[aria-hidden="true"],[hidden]'))}function Ua(e,n,a){const r=e?.isConnected?e:a?.isConnected?a:null;if(gi(n)&&!(e&&e.contains(n)))return n.focus(),n;if(!r)return null;const s=Array.from(document.querySelectorAll(mn)).filter(c=>!(e&&e.contains(c))&&gi(c));let i=null,l=null;for(const c of s)r.compareDocumentPosition(c)&Node.DOCUMENT_POSITION_PRECEDING?i=c:l||(l=c);const u=i??l;return u?.focus(),u}function nf({title:e="",lines:n=[],notices:a=null,children:r,variant:s="default",dismissible:i=!1,className:l=""}){const{t:u}=ye.useTranslation(),[c,d]=o.useState(!1),p=o.useRef(null),m=o.useCallback(()=>{const f=p.current;f&&f.contains(document.activeElement)&&Ua(f),d(!0)},[]);if(c)return null;const h=`notice-box notice-box--${s} body-2 ${l}`.trim(),g=i&&t.jsx("button",{type:"button",className:"notice-box__dismiss",onClick:m,"aria-label":u("common.close","\uB2EB\uAE30"),children:"\xD7"});if(a&&Array.isArray(a)&&a.length)return t.jsxs("div",{className:h,role:"note",children:[a.map((f,x)=>t.jsxs("div",{className:"notice-box__inner",children:[f.title?t.jsx("span",{className:"notice-box__title body-3",children:f.title}):null,t.jsx("div",{className:"notice-box__body",children:f.lines&&f.lines.length?t.jsx("div",{children:f.lines.map((b,C)=>t.jsx("span",{className:"notice-box__line body-3",children:b},C))}):f.children??null})]},x)),g]});const y=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((f,x)=>t.jsx("li",{className:"notice-box__line",children:f},x))}):r})]}):t.jsx("div",{className:"notice-box__inner",children:r});return t.jsxs("div",{ref:p,className:h,role:"note",children:[y,g]})}const ea=[];let Ga=!1;function bi(e){if(e.key!=="Escape"||e.defaultPrevented||e.isComposing||e.keyCode===229)return;const n=ea[ea.length-1];n&&(e.stopPropagation(),n())}function zn(e){return ea.push(e),!Ga&&typeof document<"u"&&(document.addEventListener("keydown",bi),Ga=!0),()=>{const n=ea.lastIndexOf(e);n>=0&&ea.splice(n,1),ea.length===0&&Ga&&typeof document<"u"&&(document.removeEventListener("keydown",bi),Ga=!1)}}const yi=o.createContext(null);function af(e){return/max-width:\s*7[0-9][0-9]px/.test(e)}const vi=e=>typeof window>"u"||!window.matchMedia?!1:window.matchMedia(e).matches;function rf(e){const n=o.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 Qo.useSyncExternalStore(n,()=>vi(e),()=>!1)}function of(e){const[n,a]=o.useState(vi(e));return o.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const r=window.matchMedia(e),s=l=>a(l.matches),i=r;return i.addEventListener?i.addEventListener("change",s):i.addListener&&i.addListener(s),a(r.matches),()=>{i.removeEventListener?i.removeEventListener("change",s):i.removeListener&&i.removeListener(s)}},[e]),n}const sf=typeof Qo.useSyncExternalStore=="function"?rf:of;function tn(e){const n=o.useContext(yi),a=sf(e);return n&&typeof n.mobile=="boolean"&&af(e)?n.mobile:a}const lf="(prefers-reduced-motion: reduce)";function Wr(){return tn(lf)}function rn(e){const{anchorRect:n,anchorEl:a,offset:r=20,edgeMargin:s=20,onClose:i,closeOnOutsideClick:l=!0,className:u="",role:c="dialog",ariaLabel:d="",children:p,backdrop:m=!1,isMobilePopup:h=!1,useBorder:g=!0,header:y,focusOnOpen:f}=e||{},x=o.useRef(null),[b,C]=o.useState({position:"fixed",left:0,top:-9999}),[_,v]=o.useState(!1),[A,w]=o.useState("bottom"),[N,k]=o.useState(!1),[B,S]=o.useState(!1),E=!n&&!a,H=o.useCallback((P=!1)=>{if(B&&h)return;const W=a?a.getBoundingClientRect():n;if(!W||!x.current)return;const R=x.current,{offsetWidth:D,offsetHeight:I}=R,j=window.innerWidth,O=window.innerHeight,$=j-W.right,Y=W.left,ae=W.top,K=O-W.bottom;let ne=0,be=0,ue="top";if(ae>=I+r)ue="top",be=W.top-r-I,ne=W.left+W.width/2-D/2;else if(K>=I+r)ue="bottom",be=W.bottom+r,ne=W.left+W.width/2-D/2;else if($>=D+r)ue="right",ne=W.right+r,be=W.top+W.height/2-I/2;else if(Y>=D+r)ue="left",ne=W.left-r-D,be=W.top+W.height/2-I/2;else{const ie=Math.max(ae,K,$,Y);ie===ae?(ue="top",be=W.top-r-I,ne=W.left+W.width/2-D/2):ie===K?(ue="bottom",be=W.bottom+r,ne=W.left+W.width/2-D/2):ie===$?(ue="right",ne=W.right+r,be=W.top+W.height/2-I/2):(ue="left",ne=W.left-r-D,be=W.top+W.height/2-I/2)}const pe=Number.isFinite(Number(s))?Number(s):8;ne=Math.min(Math.max(ne,pe),j-D-pe),be=Math.min(Math.max(be,pe),O-I-pe);const q=Math.round(ne),ee=Math.round(be);P&&x.current?(x.current.style.left=`${q}px`,x.current.style.top=`${ee}px`,x.current.dataset.placement=ue):(w(ue||A),C({position:"fixed",left:q,top:ee}),k(!0))},[B,h,a,n,r,s,A]);o.useLayoutEffect(()=>{if(E)return;if(B&&h){C({position:"fixed",left:"50%",top:"50%",transform:"translate(-50%, -50%)",width:"calc(100% - 40px)",maxWidth:"calc(100% - 40px)"}),k(!0);return}H();const P=requestAnimationFrame(()=>H());return()=>cancelAnimationFrame(P)},[n,a,r,p,s,E,B,h,H]),o.useEffect(()=>{if(E||B&&h||!x.current||typeof ResizeObserver>"u")return;const P=new ResizeObserver(()=>{n&&H()});return P.observe(x.current),()=>P.disconnect()},[n,p,s,E,B,h,H]),o.useEffect(()=>{if(E||B&&h)return;const P=()=>H(!0),W=R=>{if(!a&&i){const D=R.target;if(D&&x.current&&x.current.contains(D))return;try{if(D&&D.closest&&D.closest("[data-tooltip-ignore]"))return}catch{}F.current(!0);return}P()};return window.addEventListener("resize",P),document.addEventListener("scroll",W,{passive:!0,capture:!0}),()=>{window.removeEventListener("resize",P),document.removeEventListener("scroll",W,{capture:!0})}},[n,a,i,r,p,s,E,B,h,H]),o.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const P=window.matchMedia("(max-width: 768px)"),W=()=>S(!!P.matches);W();try{P.addEventListener?P.addEventListener("change",W):P.addListener(W)}catch{try{P.addListener(W)}catch{}}return()=>{try{P.removeEventListener?P.removeEventListener("change",W):P.removeListener(W)}catch{}}},[]);const z=o.useRef(!1),U=o.useRef(null),T=Wr(),L=o.useCallback((P=!1)=>{if(i&&!(_||z.current)){if(z.current=!0,P){v(!0);try{i&&i()}catch{z.current=!1,v(!1)}return}v(!0),U.current=setTimeout(()=>{U.current=null;try{i&&i()}catch{z.current=!1,v(!1)}},T?0:200)}},[_,i,v,T]);o.useEffect(()=>()=>{U.current&&clearTimeout(U.current)},[]),o.useEffect(()=>{if(E)return;const P=D=>{const I=x.current;if(!I)return;const j=D.target;if(j&&!I.contains(j)){try{if(j.closest&&j.closest("[data-tooltip-ignore]"))return}catch{}l&&L(!0)}},W=D=>{const I=x.current;if(!I)return;const j=D.target;if(j&&!I.contains(j)){try{if(j.closest&&j.closest("[data-tooltip-ignore]"))return}catch{}l&&L(!0)}},R=D=>{if(D.key==="Tab"){const I=x.current;if(!I)return;const j=I.querySelectorAll(mn);if(!j||j.length===0)return;const O=j[0],$=j[j.length-1],Y=document.activeElement;D.shiftKey?Y===O&&(D.preventDefault(),$.focus()):Y===$&&(D.preventDefault(),O.focus())}};return document.addEventListener("pointerdown",P,!0),document.addEventListener("click",W,!0),document.addEventListener("keydown",R),()=>{document.removeEventListener("pointerdown",P,!0),document.removeEventListener("click",W,!0),document.removeEventListener("keydown",R)}},[i,l,L,E]);const F=o.useRef(L);o.useEffect(()=>{F.current=L});const Z=!!i;o.useEffect(()=>{if(!(E||!Z))return zn(()=>F.current())},[E,Z]),o.useEffect(()=>{const P=()=>{L(!0)};return typeof document<"u"&&document.addEventListener("speechear-close-tooltips",P),()=>{typeof document<"u"&&document.removeEventListener("speechear-close-tooltips",P)}},[L]);const J=o.useRef(null);o.useEffect(()=>{if(E||f===!1||!N)return;const P=x.current;if(!P)return;const W=P.querySelector(mn);if(W)return J.current=document.activeElement,W.focus(),()=>{const R=J.current;J.current=null,R&&document.contains(R)&&R.focus()}},[E,f,N]),o.useEffect(()=>{c==="dialog"&&!d&&pn("tooltip-no-name",'[ihab/Tooltip] \uC774\uB984 \uC5C6\uB294 role="dialog" \uC785\uB2C8\uB2E4 \u2014 ariaLabel \uC744 \uC8FC\uC138\uC694. \uB0AD\uB3C5\uAE30\uAC00 "\uB300\uD654\uC0C1\uC790" \uB77C\uACE0\uB9CC \uC77D\uC2B5\uB2C8\uB2E4.')},[c,d]);const V=t.jsxs("div",{ref:x,className:`tooltip-content ${E?"tooltip-content--inline":""} ${g?"tooltip-content--bordered":""} ${_?"is-closing":""} ${u} ${B&&h?"is-mobile":""}`,role:c,"aria-label":d||void 0,style:E?{}:{...b,visibility:N?"visible":"hidden"},tabIndex:-1,"data-placement":A,"data-left":E?"":b.left,"data-top":E?"":b.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:[y!=null&&t.jsx("div",{className:"tooltip-content__header h5",children:y}),p]});if(E||typeof document>"u")return V;if(m||B&&h){const P=t.jsxs("div",{className:"tooltip-portal",children:[t.jsx("div",{className:"tooltip-backdrop",onClick:()=>{l&&L(!0)}}),V]});return Xt.createPortal(P,document.body)}return Xt.createPortal(V,document.body)}function vn(e){const{anchorRect:n,text:a,offset:r=8,onClose:s,className:i="",ariaLabel:l}=e||{};return a?t.jsx(rn,{anchorRect:n,offset:r,onClose:s,closeOnOutsideClick:!1,className:`tooltip-info ${i}`,ariaLabel:l||a,children:t.jsx("div",{className:"tooltip-info__content body-3",children:a})}):null}function Vn(e){const{t:n}=ye.useTranslation(),{anchorRect:a,title:r,items:s,activeIndex:i=-1,showIndex:l=!0,onClose:u,offset:c=12,closeOnOutsideClick:d=!0}=e||{},p=(Array.isArray(s)?s:s?[s]:[]).map(m=>typeof m=="string"?{text:m}:m);return!p.length&&!r?null:t.jsx(rn,{anchorRect:a,offset:c,onClose:u,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((m,h)=>t.jsxs("li",{className:`tooltip-description__item body-3${h===i?" tooltip-description__item--active":""}`,children:[l&&p.length>1&&t.jsxs("span",{className:"tooltip-description__index button-1",children:[h+1,"."]}),m.color&&t.jsx("span",{className:"tooltip-description__dot",style:{background:m.color},"aria-hidden":"true"}),t.jsx("span",{children:m.text})]},h))})]})})}function xa(e){const n=o.useRef(e);return o.useEffect(()=>{n.current=e}),n}let qr=0,xi=!1;function _i(){xi||typeof document>"u"||(xi=!0,document.addEventListener("pointerdown",e=>{e.pointerType==="touch"&&(qr=Date.now())},!0),document.addEventListener("touchstart",()=>{qr=Date.now()},{capture:!0,passive:!0}))}_i();function ta(e){return!!e&&e.pointerType==="touch"}function na(e=1e3){return _i(),Date.now()-qr<e}function Ur(e,n,a,{enabled:r=!0,fallbackOnParent:s=!1}={}){const i=xa(e),l=xa(n),u=o.useRef(null),c=o.useRef(0);o.useEffect(()=>{if(!r||typeof document>"u")return;const p=m=>{const h=m,g=m.target,y=a.current,f=!!(g&&y&&y.contains(g));if(h.pointerType!=="touch"){f&&(u.current=null);return}if(f){u.current=i.current;return}u.current=null,i.current&&!(g&&g.closest?.(".tooltip-content"))&&l.current(!1,y)};return document.addEventListener("pointerdown",p,!0),()=>document.removeEventListener("pointerdown",p,!0)},[r,a,i,l]);const d=o.useCallback(p=>{const m=u.current;return m===null?!1:(u.current=null,c.current=Date.now(),l.current(!m,p??a.current),!0)},[a,l]);return o.useEffect(()=>{if(!r||!s)return;const p=a.current,m=p?.parentElement;if(!p||!m)return;let h=null;const g=x=>{const b=x.changedTouches?.[0];if(!b)return!1;const C=p.getBoundingClientRect();return b.clientX>=C.left&&b.clientX<=C.right&&b.clientY>=C.top&&b.clientY<=C.bottom},y=x=>{h=g(x)?i.current:null},f=x=>{const b=h;h=null,!(b===null||Date.now()-c.current<700||!g(x))&&(u.current=null,c.current=Date.now(),l.current(!b,p))};return m.addEventListener("touchstart",y,{passive:!0}),m.addEventListener("touchend",f),()=>{m.removeEventListener("touchstart",y),m.removeEventListener("touchend",f)}},[r,s,a,i,l]),{touchPress:d}}function uf(e,n){const{size:a=48,type:r,htmlType:s,href:i,target:l,rel:u,icon:c,rightIcon:d,label:p,count:m,subLabel:h,children:g,ariaLabel:y,variant:f="default",align:x="center",nowrap:b=!1,selected:C,toggleable:_=!1,ariaExpanded:v,ariaControls:A,disabled:w=!1,useLabel:N=!0,useBorder:k=!0,useBG:B=!0,useDisabledCovered:S=!1,useDisabledInvisible:E=!1,width:H,minWidth:z,onClick:U,onDisabledClick:T,showTooltipInfo:L=!1,tooltipInfoText:F=null,tooltipDescription:Z=null,tooltipOnly:J=!1,iconSize:V="medium",iconColor:P,shape:W="rounded",color:R,className:D,...I}=e,j=typeof a=="string"&&isNaN(Number(a))?a.toLowerCase():String(Number(a)||48),O=j.match(/^\d+$/)?`button${j}`:`button-${j}`,$=Number(a),Y=!isNaN($)&&$<40?"button-2":"button-1",ae=p??g,K=w||!!I.disabled,ne=K?S?"disabled-covered":E?"disabled-invisibled":"disabled":f,be=ne?`button--variant-${ne}`:"",ue=x?`button--align-${x}`:"",pe=b?"button--nowrap":"",q=W?`button--shape-${W}`:"",ee=typeof P=="string"&&P.startsWith("--")?`var(${P})`:P,ie={...H?{width:typeof H=="number"?`${H}px`:H}:{},...z?{minWidth:typeof z=="number"?`${z}px`:z}:{},...k?{}:{"--button-border":K?"0":"1px solid transparent"},...ee?{"--button-icon-color":ee}:{},...R?{"--color-main":R}:{}},ve=N===!1?"":ae,me=Array.isArray(ve)?ve.length>0:!!ve,oe=!!d,fe=r??(me||c||oe?"bar":"dot"),ge=`${O}--${fe}`,Ee=o.useRef(null),Ie=o.useRef(n);Ie.current=n;const Le=o.useCallback(Oe=>{Ee.current=Oe;const at=Ie.current;typeof at=="function"?at(Oe):at&&(at.current=Oe)},[]),Je=o.useRef(K),[et,Ve]=o.useState(!!C),[He,it]=o.useState(!1),[Qe,Ye]=o.useState(null),re=o.useCallback(()=>it(!1),[]),[Re,te]=o.useState(!1),we=o.useId();o.useEffect(()=>{typeof C=="boolean"&&Ve(C)},[C]),o.useEffect(()=>{if(Je.current&&!K&&Ee.current){const Oe=Ee.current;let at=!1;try{at=Oe.matches(":focus:not(:focus-visible)")}catch{at=!1}at&&Oe.blur(),Oe.style.pointerEvents="none";const ht=requestAnimationFrame(()=>{requestAnimationFrame(()=>{Ee.current&&(Ee.current.style.pointerEvents="")})});return()=>cancelAnimationFrame(ht)}Je.current=K},[K]);const We=typeof C=="boolean"?!!C:et,Be=typeof v=="boolean"?void 0:_||typeof C=="boolean"?We?"true":"false":I["aria-pressed"],Se=De("button",O,ge,be,ue,pe,q,We?"is-selected":null,B?null:"button--no-bg",J?"button--tooltip-only":null,D),he=`button__icon button__icon--${V}`,Me=Array.isArray(h)?h:h!==void 0?[h]:[],nt=()=>{if(Array.isArray(ve))return ve.map((at,ht)=>{const Ot=Me[ht];return t.jsxs("span",{className:`button__label-text${Ot!==void 0?" button__label-text--has-sub":""}`,children:[at,Ot!==void 0&&t.jsx("span",{className:"button__sub-label-text caption-1",children:Ot})]},ht)});const Oe=h!==void 0;return t.jsxs("span",{className:`button__label-text${Oe?" button__label-text--has-sub":""}`,children:[ve,m!=null&&t.jsx("span",{className:"button__count",children:m}),Oe&&t.jsx("span",{className:"button__sub-label-text caption-1",children:h})]})},_t=Oe=>{typeof C!="boolean"&&!_&&Ve(!1),Oe.currentTarget.blur()},kt=Oe=>{K||(typeof I.onMouseLeave=="function"&&I.onMouseLeave(Oe),_t(Oe))},dt=Oe=>{if(J&&$e&&Xe.touchPress(Oe.currentTarget),K){$e&&Xe.touchPress(Oe.currentTarget),Oe.preventDefault(),T?.(Oe);return}typeof C!="boolean"&&_&&Ve(at=>!at),U?.(Oe)},Ze=o.useCallback(()=>{(L||Z)&&(it(!0),Ye(Ee.current?.getBoundingClientRect()??null))},[L,Z]),qe=o.useCallback(()=>{(L||Z)&&(it(!1),Ye(null))},[L,Z]),$e=!!(L||Z),Xe=Ur(He,Oe=>{Oe?Ze():qe()},Ee,{enabled:$e&&(K||J),fallbackOnParent:$e&&K}),Fe={...I};delete Fe.disabled,delete Fe.className,delete Fe.faded,delete Fe.useFaded,delete Fe.loading,delete Fe.onMouseLeave,delete Fe.onPointerEnter,delete Fe.onPointerLeave,delete Fe.onPointerUp,delete Fe.onFocus,delete Fe.onBlur,K&&(Object.keys(Fe).forEach(Oe=>{/^on[A-Z]/.test(Oe)&&typeof Fe[Oe]=="function"&&delete Fe[Oe]}),Fe["aria-disabled"]="true");const st=(typeof L=="string"?L:null)??(typeof F=="string"?F:null)??(typeof y=="string"?y:null)??(typeof ae=="string"?ae:null)??void 0,Ge=typeof y=="string"?y:typeof ae=="string"?ae:st,ft=Z?[Z.title,...Z.items??[]].filter(Boolean).join(". "):L&&st&&st!==Ge?st:"",jt=[typeof I["aria-describedby"]=="string"?I["aria-describedby"]:void 0,ft?we:null].filter(Boolean).join(" ")||void 0,Bt=(Oe,at)=>t.jsx(Ke,{icon:Oe,label:at??Ge,className:he,imgClassName:"button__icon-img",maskClassName:"button__icon-mask",svgClassName:"button__icon-svg"}),mt=()=>fe==="dot"?t.jsxs(t.Fragment,{children:[Bt(c),me&&t.jsx("span",{className:`button__label ${Y}`,children:nt()})]}):x==="center"&&c?t.jsxs(t.Fragment,{children:[t.jsxs("span",{className:"button__center-group",children:[t.jsx("span",{className:"button__left",children:Bt(c)}),me&&t.jsx("span",{className:`button__label ${Y}`,children:nt()})]}),oe&&t.jsx("span",{className:"button__right",children:Bt(d)})]}):t.jsxs(t.Fragment,{children:[c&&t.jsx("span",{className:"button__left",children:Bt(c,y??ae)}),me&&t.jsx("span",{className:`button__label ${Y}`,children:nt()}),oe&&t.jsx("span",{className:"button__right",children:Bt(d)})]}),lt=!!i&&!K;return t.jsxs(t.Fragment,{children:[t.jsxs(lt?"a":"button",{...Fe,ref:Le,...lt?{href:i,target:l,rel:u??(l==="_blank"?"noreferrer":void 0)}:{type:s,disabled:K&&!T&&!Re},className:Se,"aria-pressed":Be,"aria-expanded":typeof v=="boolean"?v:I["aria-expanded"],"aria-controls":A??I["aria-controls"],"aria-label":Ge,"aria-disabled":K&&(lt||T||Re)?!0:void 0,"aria-describedby":jt,style:ie,onClick:dt,onMouseLeave:kt,onPointerEnter:Oe=>{ta(Oe)||Ze(),!K&&typeof I.onPointerEnter=="function"&&I.onPointerEnter(Oe)},onPointerLeave:Oe=>{ta(Oe)||qe(),!K&&typeof I.onPointerLeave=="function"&&I.onPointerLeave(Oe)},onPointerUp:Oe=>{K&&$e&&Xe.touchPress(Oe.currentTarget),!K&&typeof I.onPointerUp=="function"&&I.onPointerUp(Oe)},onFocus:Oe=>{te(!0),na()||Ze(),!K&&typeof I.onFocus=="function"&&I.onFocus(Oe)},onBlur:Oe=>{te(!1),K||_t(Oe),qe(),!K&&typeof I.onBlur=="function"&&I.onBlur(Oe)},children:[mt(),ft?t.jsx("span",{id:we,hidden:!0,"aria-label":ft}):null]}),He&&Z?t.jsx(Vn,{anchorRect:Qe,title:Z.title,items:Z.items,onClose:re}):He&&st?t.jsx(vn,{anchorRect:Qe,text:st,onClose:re}):null]})}const de=o.forwardRef(uf);de.displayName="Button";var cf={statusFilter:"\uC0C1\uD0DC \uD544\uD130",pageSizeSelect:"\uD398\uC774\uC9C0\uB2F9 \uD45C\uC2DC \uAC1C\uC218",selectedCount:"{{count}}\uAC1C \uC120\uD0DD\uB428",selectedOfMax:"\uCD5C\uB300 {{max}}\uAC1C \uC911 {{count}}\uAC1C",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",discardConfirm:{title:"\uC785\uB825\uC744 \uCDE8\uC18C\uD560\uAE4C\uC694?",body:"\uC800\uC7A5\uD558\uC9C0 \uC54A\uC73C\uBA74 \uC9C0\uAE08\uAE4C\uC9C0 \uC785\uB825\uD55C \uB0B4\uC6A9\uC774 \uC0AC\uB77C\uC9D1\uB2C8\uB2E4.",confirm:"\uC785\uB825 \uCDE8\uC18C"},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",likeCount:"\uC88B\uC544\uC694 {{count}}",downloadCount:"\uAC00\uC838\uAC04 \uC218 {{count}}",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",playFor:"{{name}} \uC7AC\uC0DD",pauseFor:"{{name}} \uBA48\uCDA4",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.",noMatches:"\uB9DE\uB294 \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."},df={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",visitCount:"\uBC29\uBB38 {{count}}\uAC74"},pf={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",expired:"\uB9CC\uB8CC\uB428",menu:{use:"\uC0AC\uC6A9\uD558\uAE30",refund:"\uD658\uBD88\uD558\uAE30",delete:"\uC0AD\uC81C\uD558\uAE30"}},mf={clearAriaLabel:"\uAC80\uC0C9\uC5B4 \uC9C0\uC6B0\uAE30"},hf={starLabel:"{{n}}\uBC88\uC9F8 \uBCC4 \uC120\uD0DD",valueLabel:"{{max}}\uC810 \uB9CC\uC810\uC5D0 {{value}}\uC810",groupLabel:"\uBCC4\uC810"},Cf={selected:"\uC120\uD0DD\uB428"},ff={placeholder:"\uC120\uD0DD"},gf={collapse:"\uC811\uAE30",expand:"\uD3BC\uCE58\uAE30"},bf={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"},yf={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",feedback:"\uBC84\uADF8\uC2E0\uACE0",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"},vf={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."}}},xf={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."}},_f={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"}}},wf={guide:{faq:{title:"\uC790\uC8FC \uBB3B\uB294 \uC9C8\uBB38",desc:"FAQ \uBAA8\uC544\uBCF4\uAE30"}}},Af={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",previewFor:"{{name}} \uBBF8\uB9AC \uB4E3\uAE30",stopFor:"{{name}} \uC815\uC9C0",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.",ttsUnavailable:"\uC774 \uAE30\uAE30\uC5D0\uC11C\uB294 \uC74C\uC131\uC744 \uB4E4\uB824\uC904 \uC218 \uC5C6\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:{pendingDone:"\uACB0\uACFC\uB97C \uACC4\uC0B0\uD558\uB294 \uC911\uC774\uB77C \uC544\uC9C1 \uC644\uB8CC\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.",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"}},kf={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"},Bf={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"}},Nf={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"}}}},Df={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"}},Ef={unitVisit:"\uAC74",periodAll:"\uC804\uCCB4",showN:"{{n}}\uAC1C\uC529"},Sf={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"}},jf={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."}},Tf={comingSoon:"\uB2E8\uC5B4\uD6C8\uB828 \uAE30\uB2A5\uC744 \uC900\uBE44 \uC911\uC785\uB2C8\uB2E4."},Mf={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"},Lf={title:"\uC8FC\uC694 \uB2E8\uC5B4",empty:"\uCD94\uCD9C\uB41C \uC8FC\uC694 \uB2E8\uC5B4\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4."},$f={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",topInfo:"\uC0C1\uB2E8 \uC815\uBCF4",bottomInfo:"\uD558\uB2E8 \uC815\uBCF4",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:"{{name}} \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",markName:{o:"\uB9DE\uC74C",triangle:"\uC560\uB9E4",x:"\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 \uC544\uB798 \u25CB \xB7 \u25B3 \xB7 \u2715 \uB97C \uB20C\uB7EC \uB9E4\uAE30\uC138\uC694. \uB9C8\uC6B0\uC2A4\uB85C\uB294 \uCE78\uC5D0 \uC190\uC744 \uC5B9\uC73C\uBA74 \uB098\uD0C0\uB0A9\uB2C8\uB2E4.",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"},reorder:{moved:"{{total}}\uCE78 \uAC00\uC6B4\uB370 {{n}}\uBC88\uC9F8\uB85C \uC62E\uAE40",handle:"{{word}} \uC21C\uC11C \uBC14\uAFB8\uAE30 (Alt + \uD654\uC0B4\uD45C)",hint:"Alt + \u2190 \u2192 \uB85C \uC21C\uC11C \uBC14\uAFB8\uAE30"}},Rf={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",original:"\uBC1B\uC740 \uC21C\uC11C"},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"}},Pf={clearAllSelection:"\uBAA8\uB450 \uC120\uD0DD \uD574\uC81C",divLine:"\uB300\uB9BD\uC120",removePair:"\uB300\uB9BD\uC30D \uBE7C\uAE30",removeWord:"\uB2E8\uC5B4 \uBE7C\uAE30"},If={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"}},Ff={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"}},Of={passwordPlaceholder:"\uBE44\uBC00\uBC88\uD638 \uC785\uB825"},Hf={subtitle:"\uC8FC\uC81C\uB97C \uC120\uD0DD\uD558\uC5EC \uB4E3\uAE30 \uC5F0\uC2B5\uC744 \uC9C4\uD589\uD558\uC138\uC694."},zf={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"}},Vf={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"}},Wf={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."]},qf={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"}},Uf={lead:`\uC544\uC774\uD574\uBE0C\uB294 \uC18C\uB9AC\uB97C \uD1B5\uD574
847
+ `),this.name="StorageNotConfiguredError"}};function J0(e){X0(e)}function Vs(e,n){if(!e)return null;const a=fa();return a?.resolvePath?a.resolvePath(e,n):n?`${n}/${e}.mp3`:null}async function Ws(e){if(!e)return null;const n=fa();if(!n)throw new zs("getSignedOrPublicUrl");try{return await n.resolveUrl(e)}catch{return null}}async function qs(e){const n=fa();if(!n)throw new zs("downloadSound");return n.download(e)}function Q0(){return fa()?.noiseBaseUrl??"/sounds/noise"}function Us(){const e=Number(fa()?.noiseFileGain);return Number.isFinite(e)&&e>0?e:1}function eC(e){const n=AbortSignal.timeout;if(typeof n=="function")return n.call(AbortSignal,e);const a=new AbortController;return setTimeout(()=>a.abort(),e),a.signal}const Gs="__ihab_core_tts_config__";function Er(){return globalThis[Gs]?.urlResolver??null}function tC(){return globalThis[Gs]?.fallbackUrlResolver??null}const nC="__ihab_core_pronunciation_resolver__";function aC(){return globalThis[nC]??null}let En=null;const ga=new WeakMap,Sr=new WeakMap,jr=new WeakMap;let Ks=!1;const Ys=e=>Math.max(0,Math.min(1,Number.isFinite(e)?e:0));function rC(){if(Ks||typeof document>"u")return;Ks=!0;const e=()=>{try{En&&En.state!=="running"&&En.resume()}catch{}};for(const n of["pointerdown","touchend","keydown"])document.addEventListener(n,e,{capture:!0,passive:!0})}function Zs(){if(En)return En;try{const e=window.AudioContext||window.webkitAudioContext;return e?(En=new e,rC(),En):null}catch{return null}}function Tr(){try{En?.resume()}catch{}}function Mr(e,n){const a=ga.get(n);if(a)return a;try{const r=e.createMediaElementSource(n),s=e.createGain(),i=e.createAnalyser();i.fftSize=1024,i.smoothingTimeConstant=.6,s.gain.value=Ys(Sr.get(n)??n.volume),r.connect(s),s.connect(i),s.connect(e.destination);try{n.volume=1}catch{}const l={gain:s,analyser:i};return ga.set(n,l),l}catch{return null}}function Oa(e){if(!e)return Promise.resolve(null);const n=ga.get(e);if(n)return Promise.resolve(n.analyser);const a=Zs();if(!a)return Promise.resolve(null);if(a.state==="running")return Promise.resolve(Mr(a,e)?.analyser??null);const r=jr.get(e);if(r)return r;const s=Promise.resolve().then(()=>a.resume()).then(()=>a.state==="running"?Mr(a,e)?.analyser??null:null).catch(()=>null).finally(()=>{jr.delete(e)});return jr.set(e,s),s}function oC(e){if(!e)return null;const n=ga.get(e);if(n)return n.analyser;const a=Zs();return a?a.state==="running"?Mr(a,e)?.analyser??null:(Oa(e),null):null}function Sn(e,n){const a=Ys(n);Sr.set(e,a);const r=ga.get(e);if(r){try{e.volume!==1&&(e.volume=1)}catch{}const s=r.gain.gain;try{const i=r.gain.context.currentTime;s.cancelScheduledValues(i),s.setTargetAtTime(a,i,.01)}catch{try{s.value=a}catch{}}return"gain"}try{e.volume=a}catch{}return"element"}function Ha(e){return Sr.get(e)??e.volume}function sC(e,n){e.getFloatTimeDomainData(n);let a=0;for(let r=0;r<n.length;r++){const s=n[r];a+=s*s}return Math.sqrt(a/n.length)}const iC="__ihab_core_image_config__";function Xn(){return globalThis[iC]??null}const Xs="word_image_existence_map_v1";let Hn=null;const za=new Map;function lC(){if(Hn)return Hn;try{const e=typeof localStorage<"u"?localStorage.getItem(Xs):null,n=e?JSON.parse(e):null;Hn=n&&typeof n=="object"&&!Array.isArray(n)?n:{}}catch{Hn={}}return Hn}let Lr=null;function uC(){Lr||(Lr=setTimeout(()=>{Lr=null;try{typeof localStorage<"u"&&Hn&&localStorage.setItem(Xs,JSON.stringify(Hn))}catch{}},200))}function cC(e,n){return`${e}_${n??1}`}async function Js(e,n){const a=lC(),r=cC(e,n);if(r in a)return a[r];if(za.has(r))return za.get(r);const s=Xn();if(!s)return!1;const i=s(e,n);if(!i)return!1;const l=fetch(i,{method:"HEAD",signal:eC(8e3)}).then(u=>u.status>=500?null:u.ok,()=>null).then(u=>(za.delete(r),u===null?!1:(a[r]=u,uC(),u)));return za.set(r,l),l}const dC={\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"}},Qs=["\u3131","\u3132","\u3134","\u3137","\u3138","\u3139","\u3141","\u3142","\u3143","\u3145","\u3146","\u3147","\u3148","\u3149","\u314A","\u314B","\u314C","\u314D","\u314E"],ei=["\u314F","\u3150","\u3151","\u3152","\u3153","\u3154","\u3155","\u3156","\u3157","\u3158","\u3159","\u315A","\u315B","\u315C","\u315D","\u315E","\u315F","\u3160","\u3161","\u3162","\u3163"],pC=["","\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 ba(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 mC(e){const n=ba(e[0]||"");return n?Qs[n.cho]:""}function hC(e){if(!e)return()=>!0;e=e.normalize("NFC");const n=[...e],a=l=>Qs.includes(l),r=l=>ei.includes(l),s=n.map(l=>a(l)?"cho":r(l)?"jung":ba(l)?"syl":"other"),i=n.map(l=>ba(l));if(s.includes("other")){const l=e.toLowerCase();return u=>u.normalize("NFC").toLowerCase().includes(l)}return l=>{const u=[...l.normalize("NFC")];for(let c=0;c+n.length<=u.length;c++){let d=!0;for(let p=0;p<n.length;p++){const m=u[c+p],h=s[p];if(h==="cho"){if(mC(m)!==n[p]){d=!1;break}}else if(h==="jung"){const g=ba(m);if(!g||ei[g.jung]!==n[p]){d=!1;break}}else{const g=i[p];if(g&&g.jong===0){const y=ba(m);if(!y||y.cho!==g.cho||y.jung!==g.jung){d=!1;break}}else if(m!==n[p]){d=!1;break}}}if(d)return!0}return!1}}const CC={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(CC).map(([e,n])=>[n.join(""),pC[Number(e)]]));const fC="word_pair_index_v2",gC="word_pair_index_sig_v2";let Va=null;function bC(){try{if(typeof localStorage>"u")return null;const e=localStorage.getItem(fC),n=localStorage.getItem(gC);return!e||!n?null:{index:JSON.parse(e),sig:n}}catch{return null}}function yC(){if(Va)return Va;const e=bC();return e?(Va=e.index,e.sig,Va):null}const $r=/[ㄱ-ㅎ]/,vC=/[ㅏ-ㅣ]/;function ti(e){e=e.normalize("NFC");for(let n=e.length-1;n>=0;n--){const a=e[n],r=a.charCodeAt(0);if(r>=44032&&r<=55203||$r.test(a)||vC.test(a))return a}return null}function xC(e){const n=ti(e);if(!n)return"\uAC00";const a=n.charCodeAt(0);return a>=44032&&a<=55203?(a-44032)%28!==0?"\uC774":"\uAC00":$r.test(n)?"\uC774":"\uAC00"}function _C(e){return`${e}${xC(e)}`}function wC(e){const n=ti(e);if(!n)return"\uB97C";const a=n.charCodeAt(0);return a>=44032&&a<=55203?(a-44032)%28!==0?"\uC744":"\uB97C":$r.test(n)?"\uC744":"\uB97C"}function AC(e){return`${e}${wC(e)}`}function kC(e,n,a){const r=e.slice(),[s]=r.splice(n,1);return r.splice(a,0,s),r}function ya(e,n=Math.random){const a=e.slice();for(let r=a.length-1;r>0;r--){const s=Math.floor(n()*(r+1));[a[r],a[s]]=[a[s],a[r]]}return a}const BC=()=>{const e="\uC54C \uC218 \uC5C6\uB294 \uC624\uB958",n=typeof Et?.t=="function"?Et.t("common.unknownError",{defaultValue:e}):void 0;return typeof n=="string"&&n?n:e};function ni(e,n){if(n===void 0&&(n=BC()),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 NC="__ihab_core_word_pool__";function ai(){return globalThis[NC]??null}const ri=globalThis;function oi(e,n){const a=r=>{};try{const r=n();r&&typeof r.catch=="function"&&r.catch(a)}catch(r){a(r)}}function DC(e){oi("time",()=>ri.__ihabTrainingTimeLogger?.(e))}function EC(e){oi("completion",()=>ri.__ihabTrainingCompletionLogger?.(e))}function Gt(e){return typeof e=="string"?e.trim()||null:typeof e=="number"?String(e):null}function SC(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 jC(e){return Array.isArray(e)?e.map((n,a)=>{const r=n??{};return{index:a,itemId:Gt(r.contextCode)??Gt(r.itemId)??Gt(r.itemCode)??Gt(r.id),question:Gt(r.question)??Gt(r.q)??Gt(r.sentence)??Gt(r.text)??Gt(r.prompt)??Gt(r.word)??Gt(r.targetSyllable),answer:Gt(r.answer),selected:Gt(r.selectedText)??Gt(r.selected),correct:SC(r)}}):[]}const Rr=globalThis;async function TC(){try{return await Rr.__ihabNoiseSettingsStore?.load()??null}catch{return null}}function si(e){const n=a=>{};try{const a=Rr.__ihabNoiseSettingsStore?.save(e);a&&typeof a.catch=="function"&&a.catch(n)}catch(a){n(a)}}function Wa(e){try{Rr.__ihabNoiseSettingsStore?.applied?.(e)}catch{}}async function MC(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}const LC=/^(\d{4}-\d{2}-\d{2})[T ](\d{2}:\d{2})(?::(\d{2})(?:\.(\d+))?)?$/;function ii(e){let n;if(e instanceof Date)n=e;else if(typeof e=="string"){const a=e.trim(),r=LC.exec(a);n=new Date(r?`${r[1]}T${r[2]}:${r[3]??"00"}${r[4]?`.${r[4].slice(0,3).padEnd(3,"0")}`:""}+09:00`:a)}else n=new Date(e);return Number.isNaN(n.getTime())?null:n}function va(){return Ir(new Date)}function Pr(e){return e&&/^\d{4}-\d{2}-\d{2}$/.test(e)?e:va()}function Jn(){return RC(va())}const $C=540*60*1e3;function li(e,n,a){return new Date(Date.UTC(e,n,a)-$C)}function RC(e){const[n,a,r]=e.split("-").map(Number);return new Date(n,(a||1)-1,r||1)}function Ir(e){if(e==null||e==="")return"";const n=ii(e);return n?new Intl.DateTimeFormat("fr-CA",{timeZone:"Asia/Seoul"}).format(n):""}function ui(e,n){if(!e)return"";const a=ii(e);if(!a)return"";const r=a.getTime(),s=Math.max(0,Math.floor((Date.now()-r)/1e3)),i=Math.floor(s/60),l=Math.floor(i/60),u=Math.floor(l/24),c=Math.floor(u/7),d=Math.floor(u/30),p=Math.floor(u/365);return i<1?n("store.time.justNow","\uBC29\uAE08 \uC804"):i<60?n("store.time.minutesAgo",{n:i}):l<24?n("store.time.hoursAgo",{n:l}):u<7?n("store.time.daysAgo",{n:u}):c<5?n("store.time.weeksAgo",{n:c}):u<365?n("store.time.monthsAgo",{n:Math.min(d,11)}):n("store.time.yearsAgo",{n:p})}function ci(e,n={}){const{sep:a=".",pad:r=!0,trailingDot:s=!1,fallback:i="\u2014"}=n;if(!e)return i;const l=Ir(e instanceof Date?e:String(e));if(!l)return i;const[u,c,d]=l.split("-"),p=r?c:String(Number(c)),m=r?d:String(Number(d));return`${u}${a}${p}${a}${m}${s?".":""}`}function Qn(e){if(!e)return e;const n=e.trim();return/^[₩$]/.test(n)?n:/원\s*$/.test(n)?"\u20A9"+n.replace(/\s*원\s*$/,"").trim():n}function di(e,n){if(!e)return"-";const a=/^(\d{1,2}):(\d{2})$/.exec(e.trim());if(!a)return e;const r=Number(a[1]),s=Number(a[2]),i=a[1].padStart(2,"0");return s===0?n("date.timeH",{h:r,hh:i,mm:a[2]}):n("date.timeHM",{h:r,hh:i,m:s,mm:a[2]})}function Fr(e){return(e??0).toLocaleString("ko-KR")}const PC=[{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"}]}],IC=[{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 pi(){return PC}function FC(){return IC}const OC=[],HC=[],zC=[],VC=[];function WC(){return{LISTEN_IN_NOISE:OC,SHORT_STORY:HC,LONG_STORY:zC,ORDERING_SENTENCE:VC}}const qC=[{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."}],mi={LISTEN_IN_NOISE:"listenInNoise",SHORT_STORY:"shortStory",LONG_STORY:"longStory",ORDERING_SENTENCE:"orderingSentence"};function UC(e){return qC.map(n=>{const a=mi[n.key];return a?{...n,label:e(`trainingType.${a}.title`),desc:e(`trainingType.${a}.desc`)}:n})}let qa=null,hi=null,Ci=null;function GC(){const e=ai();if(e&&e.entries.length>0){const n=yC();if(qa&&hi===e&&Ci===n)return qa;const a=new Set,r=[];for(const s of e.entries)!s.word||a.has(s.word)||(a.add(s.word),r.push({w:s.word,s:s.syllables,p:n?.[s.word]?[...n[s.word].cho??[],...n[s.word].jung??[],...n[s.word].jong??[]]:[],pron:s.pronunciation||s.word,grade:s.grade}));return qa=r,hi=e,Ci=n,qa}return[]}new Proxy([],{get(e,n){const a=GC(),r=a[n];return typeof r=="function"?r.bind(a):r}});const KC="0.247.0";function YC(e){if(e.includes("\\")&&e.includes("("))return!0;if(!/url\s*\(/i.test(e))return!1;const n=e.replace(/url\(\s*(['"]?)#[^)'"]*\1\s*\)/gi,"");return/url\s*\(/i.test(n)}function ZC(e){if(typeof window>"u")return"";const n=(a,r)=>{typeof r.attrValue=="string"&&YC(r.attrValue)&&(r.keepAttr=!1)};Nr.addHook("uponSanitizeAttribute",n);try{return Nr.sanitize(e,{USE_PROFILES:{svg:!0,svgFilters:!0},FORBID_TAGS:["script","use","style"],FORBID_ATTR:["xlink:href","href"]})}finally{Nr.removeHook("uponSanitizeAttribute",n)}}function XC(e){const[n,a]=o.useState(null),[r,s]=o.useState(null),[i,l]=o.useState(null),[u,c]=o.useState(null);return o.useEffect(()=>{if(!e||typeof e!="string"||!e.endsWith(".svg")){a(null),s(null),l(null);return}const d=e.split("/").pop();let p=e;d&&(e.startsWith("/")?p=Dr(e):/^(Logo|Symbol)/i.test(d)?p=Dr(`logo/${d}`):(/^https?:\/\//i.test(e)||e.startsWith("data:"),p=e)),s(null),l(null),a(p)},[e]),o.useEffect(()=>{if(!n)return;let d=!1;async function p(){try{let m=await fetch(n);m.ok||(m=await fetch(n));const h=m.headers.get("content-type")||"";if(d)return;if(h.includes("svg")){s("mask");return}if(h.startsWith("image/")){s("img");return}const g=await fetch(n);if(!g.ok)throw new Error("not ok");const y=await g.text();if(d)return;if(/^\s*<svg[\s>]/i.test(y)){const f=ZC(y);if(!f){s("none");return}l(f),s("inline");return}s("none")}catch{d||s("none")}}return p(),()=>{d=!0}},[n]),o.useEffect(()=>{let d=!1,p=null;return r==="mask"&&n&&fetch(n).then(m=>{if(!m.ok)throw new Error("fetch failed");return m.blob()}).then(m=>{d||(p=URL.createObjectURL(m),c(p))}).catch(()=>{d||s("img")}),()=>{d=!0,p&&URL.revokeObjectURL(p),c(null)}},[r,n]),{iconToUse:n,mode:r,svgText:i,blobUrl:u}}function Ke(e){const{icon:n,label:a,className:r,imgClassName:s,maskClassName:i,svgClassName:l,wrapperStyle:u,size:c}=e||{},d=r??"iconRenderer-icon",p=s??"iconRenderer-icon-image",m=i??"iconRenderer-icon-mask",h=l??"iconRenderer-icon-svg",g=typeof n=="string"?n:null,y=m0(g),{iconToUse:f,mode:x,svgText:b,blobUrl:C}=XC(g),_=(k,B={})=>t.jsx("span",{className:d,style:u,...B,children:k}),v=typeof c=="number"?{width:c,height:c,objectFit:"contain"}:null,A=(k,B={})=>t.jsx("img",{src:k,alt:typeof a=="string"?a:typeof a=="number"?String(a):"",className:p,...B,style:v?{...B.style,...v}:B.style});if(!n)return null;if(typeof n!="string")return _(n);if(n==="none")return _(t.jsx("span",{className:h,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(y)try{return _(o.createElement(y,{className:h,size:typeof c=="number"?c:20}),{"aria-hidden":"true"})}catch{}if(f&&f.endsWith(".svg")){if(x==="mask"){const k={"--icon-url":C?`url(${C})`:`url(${f})`,...typeof c=="number"?{"--icon-size":`${c}px`}:null};return _(t.jsx("span",{className:m,style:k}),{"aria-hidden":"true"})}return x==="img"?_(A(f,{onError:k=>{k.currentTarget.onerror=null,k.currentTarget.style.display="none"}}),{"aria-hidden":"true"}):x==="inline"?_(t.jsx("span",{className:h,dangerouslySetInnerHTML:b?{__html:b}:void 0}),{"aria-hidden":"true"}):_(null,{"aria-hidden":"true"})}if(n.startsWith("/")||n.includes("/assets/")||n.match(/\.(png|jpg|jpeg|webp|gif)$/i))return A(Dr(n),{style:u,onError:k=>{k.currentTarget.onerror=null,k.currentTarget.style.display="none"}});const w=typeof c=="number"?c:20,N=`<svg width="${w}" height="${w}" 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 _(t.jsx("span",{className:h,dangerouslySetInnerHTML:{__html:N}}),{"aria-hidden":"true"})}function fi(e){const[n,a]=o.useState(!1),r=o.useRef(!1),s=o.useRef(!0);o.useEffect(()=>(s.current=!0,()=>{s.current=!1}),[]);const i=o.useCallback(()=>{if(!e||r.current)return;const l=e();if(l&&typeof l.then=="function"){r.current=!0,a(!0);const u=()=>{r.current=!1,s.current&&a(!1)};l.then(u,u)}},[e]);return{pending:n,press:i}}function JC({icon:e,title:n,message:a,action:r,className:s}){const{pending:i,press:l}=fi(r?.onClick);return t.jsxs("div",{className:De("empty-state",s),children:[e&&t.jsx(Ke,{icon:e,size:48,className:"empty-state__icon"}),n&&t.jsx("p",{className:"empty-state__title h4",children:n}),a&&t.jsx("p",{className:"empty-state__message body-3",children:a}),r&&t.jsxs("button",{type:"button",className:"empty-state__action button button40 button40--bar button--variant-main button--align-center button--shape-rounded",onClick:l,disabled:i,"aria-busy":i||void 0,children:[r.icon&&t.jsx(Ke,{icon:r.icon,className:"button__icon"}),t.jsx("span",{className:"button__label button-1",children:r.label})]})]})}function QC({message:e,hint:n,icon:a="triangle-alert",onRetry:r,retryLabel:s,className:i}){const{t:l}=ye.useTranslation(),{pending:u,press:c}=fi(r);return t.jsxs("div",{className:De("empty-state","error-state",i),role:"alert",children:[t.jsx(Ke,{icon:a,size:48,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:"error-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:c,disabled:u,"aria-busy":u||void 0,children:[t.jsx(Ke,{icon:"rotate-cw",className:"button__icon"}),t.jsx("span",{className:"button__label button-1",children:s??l("common.errorState.retry",{defaultValue:"\uB2E4\uC2DC \uC2DC\uB3C4"})})]})]})}function ef({icon:e,title:n,description:a,cta:r,tone:s="main",disabled:i=!1,onClick:l,className:u=""}){const c=o.useId(),d=`${c}-title`,p=`${c}-desc`,m=`${c}-cta`,h=()=>{i||l?.()};return t.jsx("section",{role:"button",tabIndex:i?-1:0,"aria-disabled":i||void 0,"aria-labelledby":d,"aria-describedby":`${p} ${m}`,onClick:h,onKeyDown:g=>{(g.key==="Enter"||g.key===" ")&&(g.preventDefault(),h())},className:De("action-card",`action-card--${s}`,i&&"action-card--disabled",u),children:t.jsxs("div",{className:"action-card__body",children:[t.jsx("span",{"aria-hidden":!0,className:"action-card__chip",children:t.jsx(Ke,{icon:e,size:34})}),t.jsxs("div",{className:"action-card__text",children:[t.jsx("h2",{id:d,className:"action-card__title",children:n}),t.jsx("p",{id:p,className:"action-card__desc",children:a})]}),t.jsxs("div",{className:"action-card__cta",children:[t.jsx("span",{id:m,children:r}),t.jsx("span",{"aria-hidden":!0,className:"action-card__arrow",children:t.jsx(Ke,{icon:"arrow-right",size:18})})]})]})})}function tf({as:e="div",className:n="",children:a,storage:r,...s}){r&&J0({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=De("ihabdevteam-core-scope",n);return t.jsx(e,{className:i,...s,children:a})}function Or(e,n=!0){o.useEffect(()=>{if(!n)return;const a=e.current;if(!a)return;const r=s=>{if(s.key!=="Tab")return;const i=Array.from(a.querySelectorAll(mn)).filter(p=>!p.closest('[aria-hidden="true"]'));if(!i.length){s.preventDefault();return}const l=i[0],u=i[i.length-1],c=document.activeElement,d=c===a;s.shiftKey&&(c===l||d)?(s.preventDefault(),u.focus()):!s.shiftKey&&c===u&&(s.preventDefault(),l.focus())};return a.addEventListener("keydown",r),()=>a.removeEventListener("keydown",r)},[e,n])}const mn='a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])',Hr=new WeakMap;function zr(e,n){e&&Hr.set(e,n)}function Vr(e){let n=e;for(let a=0;n&&!n.isConnected&&a<10;a++){let r=n;for(;r&&!Hr.has(r);)r=r.parentElement;if(!r)return n;n=Hr.get(r)??null}return n}function gi(e){return!(!e||!e.isConnected||e===document.body||typeof e.focus!="function"||e.disabled||e instanceof HTMLInputElement&&e.type==="hidden"||e.closest('[inert],[aria-hidden="true"],[hidden]'))}function Ua(e,n,a){const r=e?.isConnected?e:a?.isConnected?a:null;if(gi(n)&&!(e&&e.contains(n)))return n.focus(),n;if(!r)return null;const s=Array.from(document.querySelectorAll(mn)).filter(c=>!(e&&e.contains(c))&&gi(c));let i=null,l=null;for(const c of s)r.compareDocumentPosition(c)&Node.DOCUMENT_POSITION_PRECEDING?i=c:l||(l=c);const u=i??l;return u?.focus(),u}function nf({title:e="",lines:n=[],notices:a=null,children:r,variant:s="default",dismissible:i=!1,className:l=""}){const{t:u}=ye.useTranslation(),[c,d]=o.useState(!1),p=o.useRef(null),m=o.useCallback(()=>{const f=p.current;f&&f.contains(document.activeElement)&&Ua(f),d(!0)},[]);if(c)return null;const h=`notice-box notice-box--${s} body-2 ${l}`.trim(),g=i&&t.jsx("button",{type:"button",className:"notice-box__dismiss",onClick:m,"aria-label":u("common.close","\uB2EB\uAE30"),children:"\xD7"});if(a&&Array.isArray(a)&&a.length)return t.jsxs("div",{className:h,role:"note",children:[a.map((f,x)=>t.jsxs("div",{className:"notice-box__inner",children:[f.title?t.jsx("span",{className:"notice-box__title body-3",children:f.title}):null,t.jsx("div",{className:"notice-box__body",children:f.lines&&f.lines.length?t.jsx("div",{children:f.lines.map((b,C)=>t.jsx("span",{className:"notice-box__line body-3",children:b},C))}):f.children??null})]},x)),g]});const y=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((f,x)=>t.jsx("li",{className:"notice-box__line",children:f},x))}):r})]}):t.jsx("div",{className:"notice-box__inner",children:r});return t.jsxs("div",{ref:p,className:h,role:"note",children:[y,g]})}const ea=[];let Ga=!1;function bi(e){if(e.key!=="Escape"||e.defaultPrevented||e.isComposing||e.keyCode===229)return;const n=ea[ea.length-1];n&&(e.stopPropagation(),n())}function zn(e){return ea.push(e),!Ga&&typeof document<"u"&&(document.addEventListener("keydown",bi),Ga=!0),()=>{const n=ea.lastIndexOf(e);n>=0&&ea.splice(n,1),ea.length===0&&Ga&&typeof document<"u"&&(document.removeEventListener("keydown",bi),Ga=!1)}}const yi=o.createContext(null);function af(e){return/max-width:\s*7[0-9][0-9]px/.test(e)}const vi=e=>typeof window>"u"||!window.matchMedia?!1:window.matchMedia(e).matches;function rf(e){const n=o.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 Qo.useSyncExternalStore(n,()=>vi(e),()=>!1)}function of(e){const[n,a]=o.useState(vi(e));return o.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const r=window.matchMedia(e),s=l=>a(l.matches),i=r;return i.addEventListener?i.addEventListener("change",s):i.addListener&&i.addListener(s),a(r.matches),()=>{i.removeEventListener?i.removeEventListener("change",s):i.removeListener&&i.removeListener(s)}},[e]),n}const sf=typeof Qo.useSyncExternalStore=="function"?rf:of;function tn(e){const n=o.useContext(yi),a=sf(e);return n&&typeof n.mobile=="boolean"&&af(e)?n.mobile:a}const lf="(prefers-reduced-motion: reduce)";function Wr(){return tn(lf)}function rn(e){const{anchorRect:n,anchorEl:a,offset:r=20,edgeMargin:s=20,onClose:i,closeOnOutsideClick:l=!0,className:u="",role:c="dialog",ariaLabel:d="",children:p,backdrop:m=!1,isMobilePopup:h=!1,useBorder:g=!0,header:y,focusOnOpen:f}=e||{},x=o.useRef(null),[b,C]=o.useState({position:"fixed",left:0,top:-9999}),[_,v]=o.useState(!1),[A,w]=o.useState("bottom"),[N,k]=o.useState(!1),[B,S]=o.useState(!1),E=!n&&!a,H=o.useCallback((P=!1)=>{if(B&&h)return;const W=a?a.getBoundingClientRect():n;if(!W||!x.current)return;const R=x.current,{offsetWidth:D,offsetHeight:I}=R,j=window.innerWidth,O=window.innerHeight,$=j-W.right,Y=W.left,ae=W.top,K=O-W.bottom;let ne=0,be=0,ue="top";if(ae>=I+r)ue="top",be=W.top-r-I,ne=W.left+W.width/2-D/2;else if(K>=I+r)ue="bottom",be=W.bottom+r,ne=W.left+W.width/2-D/2;else if($>=D+r)ue="right",ne=W.right+r,be=W.top+W.height/2-I/2;else if(Y>=D+r)ue="left",ne=W.left-r-D,be=W.top+W.height/2-I/2;else{const ie=Math.max(ae,K,$,Y);ie===ae?(ue="top",be=W.top-r-I,ne=W.left+W.width/2-D/2):ie===K?(ue="bottom",be=W.bottom+r,ne=W.left+W.width/2-D/2):ie===$?(ue="right",ne=W.right+r,be=W.top+W.height/2-I/2):(ue="left",ne=W.left-r-D,be=W.top+W.height/2-I/2)}const pe=Number.isFinite(Number(s))?Number(s):8;ne=Math.min(Math.max(ne,pe),j-D-pe),be=Math.min(Math.max(be,pe),O-I-pe);const q=Math.round(ne),ee=Math.round(be);P&&x.current?(x.current.style.left=`${q}px`,x.current.style.top=`${ee}px`,x.current.dataset.placement=ue):(w(ue||A),C({position:"fixed",left:q,top:ee}),k(!0))},[B,h,a,n,r,s,A]);o.useLayoutEffect(()=>{if(E)return;if(B&&h){C({position:"fixed",left:"50%",top:"50%",transform:"translate(-50%, -50%)",width:"calc(100% - 40px)",maxWidth:"calc(100% - 40px)"}),k(!0);return}H();const P=requestAnimationFrame(()=>H());return()=>cancelAnimationFrame(P)},[n,a,r,p,s,E,B,h,H]),o.useEffect(()=>{if(E||B&&h||!x.current||typeof ResizeObserver>"u")return;const P=new ResizeObserver(()=>{n&&H()});return P.observe(x.current),()=>P.disconnect()},[n,p,s,E,B,h,H]),o.useEffect(()=>{if(E||B&&h)return;const P=()=>H(!0),W=R=>{if(!a&&i){const D=R.target;if(D&&x.current&&x.current.contains(D))return;try{if(D&&D.closest&&D.closest("[data-tooltip-ignore]"))return}catch{}F.current(!0);return}P()};return window.addEventListener("resize",P),document.addEventListener("scroll",W,{passive:!0,capture:!0}),()=>{window.removeEventListener("resize",P),document.removeEventListener("scroll",W,{capture:!0})}},[n,a,i,r,p,s,E,B,h,H]),o.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const P=window.matchMedia("(max-width: 768px)"),W=()=>S(!!P.matches);W();try{P.addEventListener?P.addEventListener("change",W):P.addListener(W)}catch{try{P.addListener(W)}catch{}}return()=>{try{P.removeEventListener?P.removeEventListener("change",W):P.removeListener(W)}catch{}}},[]);const z=o.useRef(!1),U=o.useRef(null),T=Wr(),L=o.useCallback((P=!1)=>{if(i&&!(_||z.current)){if(z.current=!0,P){v(!0);try{i&&i()}catch{z.current=!1,v(!1)}return}v(!0),U.current=setTimeout(()=>{U.current=null;try{i&&i()}catch{z.current=!1,v(!1)}},T?0:200)}},[_,i,v,T]);o.useEffect(()=>()=>{U.current&&clearTimeout(U.current)},[]),o.useEffect(()=>{if(E)return;const P=D=>{const I=x.current;if(!I)return;const j=D.target;if(j&&!I.contains(j)){try{if(j.closest&&j.closest("[data-tooltip-ignore]"))return}catch{}l&&L(!0)}},W=D=>{const I=x.current;if(!I)return;const j=D.target;if(j&&!I.contains(j)){try{if(j.closest&&j.closest("[data-tooltip-ignore]"))return}catch{}l&&L(!0)}},R=D=>{if(D.key==="Tab"){const I=x.current;if(!I)return;const j=I.querySelectorAll(mn);if(!j||j.length===0)return;const O=j[0],$=j[j.length-1],Y=document.activeElement;D.shiftKey?Y===O&&(D.preventDefault(),$.focus()):Y===$&&(D.preventDefault(),O.focus())}};return document.addEventListener("pointerdown",P,!0),document.addEventListener("click",W,!0),document.addEventListener("keydown",R),()=>{document.removeEventListener("pointerdown",P,!0),document.removeEventListener("click",W,!0),document.removeEventListener("keydown",R)}},[i,l,L,E]);const F=o.useRef(L);o.useEffect(()=>{F.current=L});const Z=!!i;o.useEffect(()=>{if(!(E||!Z))return zn(()=>F.current())},[E,Z]),o.useEffect(()=>{const P=()=>{L(!0)};return typeof document<"u"&&document.addEventListener("speechear-close-tooltips",P),()=>{typeof document<"u"&&document.removeEventListener("speechear-close-tooltips",P)}},[L]);const J=o.useRef(null);o.useEffect(()=>{if(E||f===!1||!N)return;const P=x.current;if(!P)return;const W=P.querySelector(mn);if(W)return J.current=document.activeElement,W.focus(),()=>{const R=J.current;J.current=null,R&&document.contains(R)&&R.focus()}},[E,f,N]),o.useEffect(()=>{c==="dialog"&&!d&&pn("tooltip-no-name",'[ihab/Tooltip] \uC774\uB984 \uC5C6\uB294 role="dialog" \uC785\uB2C8\uB2E4 \u2014 ariaLabel \uC744 \uC8FC\uC138\uC694. \uB0AD\uB3C5\uAE30\uAC00 "\uB300\uD654\uC0C1\uC790" \uB77C\uACE0\uB9CC \uC77D\uC2B5\uB2C8\uB2E4.')},[c,d]);const V=t.jsxs("div",{ref:x,className:`tooltip-content ${E?"tooltip-content--inline":""} ${g?"tooltip-content--bordered":""} ${_?"is-closing":""} ${u} ${B&&h?"is-mobile":""}`,role:c,"aria-label":d||void 0,style:E?{}:{...b,visibility:N?"visible":"hidden"},tabIndex:-1,"data-placement":A,"data-left":E?"":b.left,"data-top":E?"":b.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:[y!=null&&t.jsx("div",{className:"tooltip-content__header h5",children:y}),p]});if(E||typeof document>"u")return V;if(m||B&&h){const P=t.jsxs("div",{className:"tooltip-portal",children:[t.jsx("div",{className:"tooltip-backdrop",onClick:()=>{l&&L(!0)}}),V]});return Xt.createPortal(P,document.body)}return Xt.createPortal(V,document.body)}function vn(e){const{anchorRect:n,text:a,offset:r=8,onClose:s,className:i="",ariaLabel:l}=e||{};return a?t.jsx(rn,{anchorRect:n,offset:r,onClose:s,closeOnOutsideClick:!1,className:`tooltip-info ${i}`,ariaLabel:l||a,children:t.jsx("div",{className:"tooltip-info__content body-3",children:a})}):null}function Vn(e){const{t:n}=ye.useTranslation(),{anchorRect:a,title:r,items:s,activeIndex:i=-1,showIndex:l=!0,onClose:u,offset:c=12,closeOnOutsideClick:d=!0}=e||{},p=(Array.isArray(s)?s:s?[s]:[]).map(m=>typeof m=="string"?{text:m}:m);return!p.length&&!r?null:t.jsx(rn,{anchorRect:a,offset:c,onClose:u,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((m,h)=>t.jsxs("li",{className:`tooltip-description__item body-3${h===i?" tooltip-description__item--active":""}`,children:[l&&p.length>1&&t.jsxs("span",{className:"tooltip-description__index button-1",children:[h+1,"."]}),m.color&&t.jsx("span",{className:"tooltip-description__dot",style:{background:m.color},"aria-hidden":"true"}),t.jsx("span",{children:m.text})]},h))})]})})}function xa(e){const n=o.useRef(e);return o.useEffect(()=>{n.current=e}),n}let qr=0,xi=!1;function _i(){xi||typeof document>"u"||(xi=!0,document.addEventListener("pointerdown",e=>{e.pointerType==="touch"&&(qr=Date.now())},!0),document.addEventListener("touchstart",()=>{qr=Date.now()},{capture:!0,passive:!0}))}_i();function ta(e){return!!e&&e.pointerType==="touch"}function na(e=1e3){return _i(),Date.now()-qr<e}function Ur(e,n,a,{enabled:r=!0,fallbackOnParent:s=!1}={}){const i=xa(e),l=xa(n),u=o.useRef(null),c=o.useRef(0);o.useEffect(()=>{if(!r||typeof document>"u")return;const p=m=>{const h=m,g=m.target,y=a.current,f=!!(g&&y&&y.contains(g));if(h.pointerType!=="touch"){f&&(u.current=null);return}if(f){u.current=i.current;return}u.current=null,i.current&&!(g&&g.closest?.(".tooltip-content"))&&l.current(!1,y)};return document.addEventListener("pointerdown",p,!0),()=>document.removeEventListener("pointerdown",p,!0)},[r,a,i,l]);const d=o.useCallback(p=>{const m=u.current;return m===null?!1:(u.current=null,c.current=Date.now(),l.current(!m,p??a.current),!0)},[a,l]);return o.useEffect(()=>{if(!r||!s)return;const p=a.current,m=p?.parentElement;if(!p||!m)return;let h=null;const g=x=>{const b=x.changedTouches?.[0];if(!b)return!1;const C=p.getBoundingClientRect();return b.clientX>=C.left&&b.clientX<=C.right&&b.clientY>=C.top&&b.clientY<=C.bottom},y=x=>{h=g(x)?i.current:null},f=x=>{const b=h;h=null,!(b===null||Date.now()-c.current<700||!g(x))&&(u.current=null,c.current=Date.now(),l.current(!b,p))};return m.addEventListener("touchstart",y,{passive:!0}),m.addEventListener("touchend",f),()=>{m.removeEventListener("touchstart",y),m.removeEventListener("touchend",f)}},[r,s,a,i,l]),{touchPress:d}}function uf(e,n){const{size:a=48,type:r,htmlType:s,href:i,target:l,rel:u,icon:c,rightIcon:d,label:p,count:m,subLabel:h,children:g,ariaLabel:y,variant:f="default",align:x="center",nowrap:b=!1,selected:C,toggleable:_=!1,ariaExpanded:v,ariaControls:A,disabled:w=!1,useLabel:N=!0,useBorder:k=!0,useBG:B=!0,useDisabledCovered:S=!1,useDisabledInvisible:E=!1,width:H,minWidth:z,onClick:U,onDisabledClick:T,showTooltipInfo:L=!1,tooltipInfoText:F=null,tooltipDescription:Z=null,tooltipOnly:J=!1,iconSize:V="medium",iconColor:P,shape:W="rounded",color:R,className:D,...I}=e,j=typeof a=="string"&&isNaN(Number(a))?a.toLowerCase():String(Number(a)||48),O=j.match(/^\d+$/)?`button${j}`:`button-${j}`,$=Number(a),Y=!isNaN($)&&$<40?"button-2":"button-1",ae=p??g,K=w||!!I.disabled,ne=K?S?"disabled-covered":E?"disabled-invisibled":"disabled":f,be=ne?`button--variant-${ne}`:"",ue=x?`button--align-${x}`:"",pe=b?"button--nowrap":"",q=W?`button--shape-${W}`:"",ee=typeof P=="string"&&P.startsWith("--")?`var(${P})`:P,ie={...H?{width:typeof H=="number"?`${H}px`:H}:{},...z?{minWidth:typeof z=="number"?`${z}px`:z}:{},...k?{}:{"--button-border":K?"0":"1px solid transparent"},...ee?{"--button-icon-color":ee}:{},...R?{"--color-main":R}:{}},ve=N===!1?"":ae,me=Array.isArray(ve)?ve.length>0:!!ve,oe=!!d,fe=r??(me||c||oe?"bar":"dot"),ge=`${O}--${fe}`,Ee=o.useRef(null),Ie=o.useRef(n);Ie.current=n;const Le=o.useCallback(Oe=>{Ee.current=Oe;const at=Ie.current;typeof at=="function"?at(Oe):at&&(at.current=Oe)},[]),Je=o.useRef(K),[et,Ve]=o.useState(!!C),[He,it]=o.useState(!1),[Qe,Ye]=o.useState(null),re=o.useCallback(()=>it(!1),[]),[Re,te]=o.useState(!1),we=o.useId();o.useEffect(()=>{typeof C=="boolean"&&Ve(C)},[C]),o.useEffect(()=>{if(Je.current&&!K&&Ee.current){const Oe=Ee.current;let at=!1;try{at=Oe.matches(":focus:not(:focus-visible)")}catch{at=!1}at&&Oe.blur(),Oe.style.pointerEvents="none";const ht=requestAnimationFrame(()=>{requestAnimationFrame(()=>{Ee.current&&(Ee.current.style.pointerEvents="")})});return()=>cancelAnimationFrame(ht)}Je.current=K},[K]);const We=typeof C=="boolean"?!!C:et,Be=typeof v=="boolean"?void 0:_||typeof C=="boolean"?We?"true":"false":I["aria-pressed"],Se=De("button",O,ge,be,ue,pe,q,We?"is-selected":null,B?null:"button--no-bg",J?"button--tooltip-only":null,D),he=`button__icon button__icon--${V}`,Me=Array.isArray(h)?h:h!==void 0?[h]:[],nt=()=>{if(Array.isArray(ve))return ve.map((at,ht)=>{const Ot=Me[ht];return t.jsxs("span",{className:`button__label-text${Ot!==void 0?" button__label-text--has-sub":""}`,children:[at,Ot!==void 0&&t.jsx("span",{className:"button__sub-label-text caption-1",children:Ot})]},ht)});const Oe=h!==void 0;return t.jsxs("span",{className:`button__label-text${Oe?" button__label-text--has-sub":""}`,children:[ve,m!=null&&t.jsx("span",{className:"button__count",children:m}),Oe&&t.jsx("span",{className:"button__sub-label-text caption-1",children:h})]})},_t=Oe=>{typeof C!="boolean"&&!_&&Ve(!1),Oe.currentTarget.blur()},kt=Oe=>{K||(typeof I.onMouseLeave=="function"&&I.onMouseLeave(Oe),_t(Oe))},dt=Oe=>{if(J&&$e&&Xe.touchPress(Oe.currentTarget),K){$e&&Xe.touchPress(Oe.currentTarget),Oe.preventDefault(),T?.(Oe);return}typeof C!="boolean"&&_&&Ve(at=>!at),U?.(Oe)},Ze=o.useCallback(()=>{(L||Z)&&(it(!0),Ye(Ee.current?.getBoundingClientRect()??null))},[L,Z]),qe=o.useCallback(()=>{(L||Z)&&(it(!1),Ye(null))},[L,Z]),$e=!!(L||Z),Xe=Ur(He,Oe=>{Oe?Ze():qe()},Ee,{enabled:$e&&(K||J),fallbackOnParent:$e&&K}),Fe={...I};delete Fe.disabled,delete Fe.className,delete Fe.faded,delete Fe.useFaded,delete Fe.loading,delete Fe.onMouseLeave,delete Fe.onPointerEnter,delete Fe.onPointerLeave,delete Fe.onPointerUp,delete Fe.onFocus,delete Fe.onBlur,K&&(Object.keys(Fe).forEach(Oe=>{/^on[A-Z]/.test(Oe)&&typeof Fe[Oe]=="function"&&delete Fe[Oe]}),Fe["aria-disabled"]="true");const st=(typeof L=="string"?L:null)??(typeof F=="string"?F:null)??(typeof y=="string"?y:null)??(typeof ae=="string"?ae:null)??void 0,Ge=typeof y=="string"?y:typeof ae=="string"?ae:st,ft=Z?[Z.title,...Z.items??[]].filter(Boolean).join(". "):L&&st&&st!==Ge?st:"",jt=[typeof I["aria-describedby"]=="string"?I["aria-describedby"]:void 0,ft?we:null].filter(Boolean).join(" ")||void 0,Bt=(Oe,at)=>t.jsx(Ke,{icon:Oe,label:at??Ge,className:he,imgClassName:"button__icon-img",maskClassName:"button__icon-mask",svgClassName:"button__icon-svg"}),mt=()=>fe==="dot"?t.jsxs(t.Fragment,{children:[Bt(c),me&&t.jsx("span",{className:`button__label ${Y}`,children:nt()})]}):x==="center"&&c?t.jsxs(t.Fragment,{children:[t.jsxs("span",{className:"button__center-group",children:[t.jsx("span",{className:"button__left",children:Bt(c)}),me&&t.jsx("span",{className:`button__label ${Y}`,children:nt()})]}),oe&&t.jsx("span",{className:"button__right",children:Bt(d)})]}):t.jsxs(t.Fragment,{children:[c&&t.jsx("span",{className:"button__left",children:Bt(c,y??ae)}),me&&t.jsx("span",{className:`button__label ${Y}`,children:nt()}),oe&&t.jsx("span",{className:"button__right",children:Bt(d)})]}),lt=!!i&&!K;return t.jsxs(t.Fragment,{children:[t.jsxs(lt?"a":"button",{...Fe,ref:Le,...lt?{href:i,target:l,rel:u??(l==="_blank"?"noreferrer":void 0)}:{type:s,disabled:K&&!T&&!Re},className:Se,"aria-pressed":Be,"aria-expanded":typeof v=="boolean"?v:I["aria-expanded"],"aria-controls":A??I["aria-controls"],"aria-label":Ge,"aria-disabled":K&&(lt||T||Re)?!0:void 0,"aria-describedby":jt,style:ie,onClick:dt,onMouseLeave:kt,onPointerEnter:Oe=>{ta(Oe)||Ze(),!K&&typeof I.onPointerEnter=="function"&&I.onPointerEnter(Oe)},onPointerLeave:Oe=>{ta(Oe)||qe(),!K&&typeof I.onPointerLeave=="function"&&I.onPointerLeave(Oe)},onPointerUp:Oe=>{K&&$e&&Xe.touchPress(Oe.currentTarget),!K&&typeof I.onPointerUp=="function"&&I.onPointerUp(Oe)},onFocus:Oe=>{te(!0),na()||Ze(),!K&&typeof I.onFocus=="function"&&I.onFocus(Oe)},onBlur:Oe=>{te(!1),K||_t(Oe),qe(),!K&&typeof I.onBlur=="function"&&I.onBlur(Oe)},children:[mt(),ft?t.jsx("span",{id:we,hidden:!0,"aria-label":ft}):null]}),He&&Z?t.jsx(Vn,{anchorRect:Qe,title:Z.title,items:Z.items,onClose:re}):He&&st?t.jsx(vn,{anchorRect:Qe,text:st,onClose:re}):null]})}const de=o.forwardRef(uf);de.displayName="Button";var cf={statusFilter:"\uC0C1\uD0DC \uD544\uD130",pageSizeSelect:"\uD398\uC774\uC9C0\uB2F9 \uD45C\uC2DC \uAC1C\uC218",selectedCount:"{{count}}\uAC1C \uC120\uD0DD\uB428",selectedOfMax:"\uCD5C\uB300 {{max}}\uAC1C \uC911 {{count}}\uAC1C",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",discardConfirm:{title:"\uC785\uB825\uC744 \uCDE8\uC18C\uD560\uAE4C\uC694?",body:"\uC800\uC7A5\uD558\uC9C0 \uC54A\uC73C\uBA74 \uC9C0\uAE08\uAE4C\uC9C0 \uC785\uB825\uD55C \uB0B4\uC6A9\uC774 \uC0AC\uB77C\uC9D1\uB2C8\uB2E4.",confirm:"\uC785\uB825 \uCDE8\uC18C"},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",likeCount:"\uC88B\uC544\uC694 {{count}}",downloadCount:"\uAC00\uC838\uAC04 \uC218 {{count}}",descriptionFor:"{{name}} \uC124\uBA85",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",playFor:"{{name}} \uC7AC\uC0DD",pauseFor:"{{name}} \uBA48\uCDA4",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.",noMatches:"\uB9DE\uB294 \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."},df={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",visitCount:"\uBC29\uBB38 {{count}}\uAC74"},pf={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",expired:"\uB9CC\uB8CC\uB428",menu:{use:"\uC0AC\uC6A9\uD558\uAE30",refund:"\uD658\uBD88\uD558\uAE30",delete:"\uC0AD\uC81C\uD558\uAE30"}},mf={clearAriaLabel:"\uAC80\uC0C9\uC5B4 \uC9C0\uC6B0\uAE30"},hf={starLabel:"{{n}}\uBC88\uC9F8 \uBCC4 \uC120\uD0DD",valueLabel:"{{max}}\uC810 \uB9CC\uC810\uC5D0 {{value}}\uC810",groupLabel:"\uBCC4\uC810"},Cf={selected:"\uC120\uD0DD\uB428"},ff={placeholder:"\uC120\uD0DD"},gf={collapse:"\uC811\uAE30",expand:"\uD3BC\uCE58\uAE30"},bf={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"},yf={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",feedback:"\uBC84\uADF8\uC2E0\uACE0",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"},vf={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."}}},xf={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."}},_f={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"}}},wf={guide:{faq:{title:"\uC790\uC8FC \uBB3B\uB294 \uC9C8\uBB38",desc:"FAQ \uBAA8\uC544\uBCF4\uAE30"}}},Af={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",previewFor:"{{name}} \uBBF8\uB9AC \uB4E3\uAE30",stopFor:"{{name}} \uC815\uC9C0",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.",ttsUnavailable:"\uC774 \uAE30\uAE30\uC5D0\uC11C\uB294 \uC74C\uC131\uC744 \uB4E4\uB824\uC904 \uC218 \uC5C6\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:{pendingDone:"\uACB0\uACFC\uB97C \uACC4\uC0B0\uD558\uB294 \uC911\uC774\uB77C \uC544\uC9C1 \uC644\uB8CC\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.",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"}},kf={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"},Bf={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"}},Nf={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"}}}},Df={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"}},Ef={unitVisit:"\uAC74",periodAll:"\uC804\uCCB4",showN:"{{n}}\uAC1C\uC529"},Sf={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"}},jf={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."}},Tf={comingSoon:"\uB2E8\uC5B4\uD6C8\uB828 \uAE30\uB2A5\uC744 \uC900\uBE44 \uC911\uC785\uB2C8\uB2E4."},Mf={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"},Lf={title:"\uC8FC\uC694 \uB2E8\uC5B4",empty:"\uCD94\uCD9C\uB41C \uC8FC\uC694 \uB2E8\uC5B4\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4."},$f={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",topInfo:"\uC0C1\uB2E8 \uC815\uBCF4",bottomInfo:"\uD558\uB2E8 \uC815\uBCF4",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:"{{name}} \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",markName:{o:"\uB9DE\uC74C",triangle:"\uC560\uB9E4",x:"\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 \uC544\uB798 \u25CB \xB7 \u25B3 \xB7 \u2715 \uB97C \uB20C\uB7EC \uB9E4\uAE30\uC138\uC694. \uB9C8\uC6B0\uC2A4\uB85C\uB294 \uCE78\uC5D0 \uC190\uC744 \uC5B9\uC73C\uBA74 \uB098\uD0C0\uB0A9\uB2C8\uB2E4.",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"},reorder:{moved:"{{total}}\uCE78 \uAC00\uC6B4\uB370 {{n}}\uBC88\uC9F8\uB85C \uC62E\uAE40",handle:"{{word}} \uC21C\uC11C \uBC14\uAFB8\uAE30 (Alt + \uD654\uC0B4\uD45C)",hint:"Alt + \u2190 \u2192 \uB85C \uC21C\uC11C \uBC14\uAFB8\uAE30"}},Rf={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",original:"\uBC1B\uC740 \uC21C\uC11C"},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"}},Pf={clearAllSelection:"\uBAA8\uB450 \uC120\uD0DD \uD574\uC81C",divLine:"\uB300\uB9BD\uC120",removePair:"\uB300\uB9BD\uC30D \uBE7C\uAE30",removeWord:"\uB2E8\uC5B4 \uBE7C\uAE30"},If={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"}},Ff={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"}},Of={passwordPlaceholder:"\uBE44\uBC00\uBC88\uD638 \uC785\uB825"},Hf={subtitle:"\uC8FC\uC81C\uB97C \uC120\uD0DD\uD558\uC5EC \uB4E3\uAE30 \uC5F0\uC2B5\uC744 \uC9C4\uD589\uD558\uC138\uC694."},zf={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"}},Vf={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"}},Wf={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."]},qf={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"}},Uf={lead:`\uC544\uC774\uD574\uBE0C\uB294 \uC18C\uB9AC\uB97C \uD1B5\uD574
848
848
  \uC2E0\uB8B0\uB97C \uC313\uACE0
849
- \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"},Gf={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"}}},Kf={timeHM:"{{h}}\uC2DC {{m}}\uBD84",timeH:"{{h}}\uC2DC"},Yf={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"}},Zf={answer:"\uC815\uB2F5",distractor:"\uC624\uB2F5"},Xf={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"},Jf={clearAriaLabel:"\uC785\uB825\uAC12 \uC9C0\uC6B0\uAE30"},Qf={ariaLabel:"\uC120\uD0DD \uD0ED"},e2={ariaLabel:"\uD0ED"},t2={dragPrompt:"\uD30C\uC77C\uC744 \uC774\uACF3\uC5D0 \uB4DC\uB798\uADF8\uD558\uC5EC \uC5C5\uB85C\uB4DC",browseButton:"\uD30C\uC77C \uC120\uD0DD",removeAriaLabel:"{{name}} \uC81C\uAC70"},n2={ariaLabel:"\uC0AC\uC6A9\uC790 \uC544\uBC14\uD0C0"},a2={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"}},r2={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"}},o2={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"}},s2={manage:{unit:"\uAC74"}},i2={cancelLabel:"\uCDE8\uC18C"},l2={steps:"\uC9C4\uD589 \uB2E8\uACC4 {{current}} / {{total}}"},u2={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"},c2={resetColumns:"\uCE78 \uB108\uBE44 \uCD08\uAE30\uD654",scrollRegion:"\uAC00\uB85C\uB85C \uAD74\uB9B4 \uC218 \uC788\uB294 \uD45C"},d2={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"},p2={ariaLabel:"\uBC30\uB108",dotAriaLabel:"{{count}}\uAC1C \uC911 {{index}}\uBC88\uC9F8 \uBC30\uB108"},m2={selectYearMonth:"\uC5F0\uC6D4 \uC120\uD0DD",chooseDate:"\uB0A0\uC9DC \uC120\uD0DD"},h2={previewRegion:"\uBCF4\uACE0\uC11C \uBBF8\uB9AC\uBCF4\uAE30 \u2014 \uC88C\uC6B0\uB85C \uAD74\uB824 \uBCFC \uC218 \uC788\uC2B5\uB2C8\uB2E4"},C2={description:"\uC124\uBA85",textbox:"\uBCF8\uBB38",training:"\uD6C8\uB828 \uC548\uB0B4",menu:"\uBA54\uB274"},f2={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"}},g2={clearSelection:"\uC120\uD0DD \uD574\uC81C"},b2={showResult:"{{type}} \uACB0\uACFC\uBCF4\uAE30"},y2={selected:"\uC120\uD0DD\uB428",remove:"\uC81C\uAC70",exclude:"\uC81C\uC678",nthSelected:"{{n}}\uBC88\uC9F8 \uC120\uD0DD"},v2={loading:"\uBD88\uB7EC\uC624\uB294 \uC911\u2026"},x2={state:{active:"\uC18C\uB9AC \uB098\uB294 \uC911",played:"\uB4E4\uC74C",correct:"\uC815\uB2F5",wrong:"\uC624\uB2F5"}},_2={ariaLabel:"\uC774\uB3D9 \uACBD\uB85C"},w2={empty:"\uB4F1\uB85D\uB41C \uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4."},A2={main:"\uBA54\uC778 \uADF8\uB77C\uB514\uC5B8\uD2B8",soft:"\uC18C\uD504\uD2B8",sub:"\uC11C\uBE0C \uCEEC\uB7EC",deep:"\uB525 \uADF8\uB77C\uB514\uC5B8\uD2B8",softSub:"\uC18C\uD504\uD2B8 \uC11C\uBE0C",warm:"\uC6DC(\uAC15\uC870)",dark:"\uB2E4\uD06C",radial:"\uBC29\uC0AC\uD615 \uADF8\uB77C\uB514\uC5B8\uD2B8",diagonal:"\uB300\uAC01\uC120 \uD328\uD134",dots:"\uB3C4\uD2B8 \uD328\uD134",outline:"\uC544\uC6C3\uB77C\uC778",success:"\uC131\uACF5/\uC644\uB8CC",naver:"\uB124\uC774\uBC84 \uBE14\uB85C\uADF8 \uC548\uB0B4",instagram:"\uC778\uC2A4\uD0C0\uADF8\uB7A8 \uC548\uB0B4"},k2={common:cf,calendar:df,passCard:pf,searchField:mf,rating:hf,colorPicker:Cf,dropdown:ff,accordion:gf,header:bf,nav:yf,settings:vf,usage:xf,account:_f,help:wf,training:Af,trainingSettings:kf,customers:Bf,payment:Nf,coupons:Df,visits:Ef,company:Sf,trainingType:jf,myWordTraining:Tf,myWordTable:Mf,keyWords:Lf,wordTable:$f,wordSearch:Rf,wordPrint:Pf,topic:If,accessLinkManager:Ff,login:Of,trainingPlanRun:Hf,device:zf,manager:Vf,wordPairs:Wf,game:qf,footer:Uf,landing:Gf,date:Kf,trainingSetPage:Yf,wordTrainingPreview:Zf,wordData:Xf,textField:Jf,segmentedControl:Qf,tabs:e2,fileUpload:t2,avatar:n2,myHomework:a2,trainingStatus:r2,store:o2,homework:s2,inquiry:i2,progress:l2,trainingMiss:u2,table:c2,wordScore:d2,topBanner:p2,datePicker:m2,report:h2,tooltip:C2,phonemeProfile:f2,bulkBar:g2,debug:b2,badge:y2,loader:v2,soundCompass:x2,breadcrumb:_2,board:w2,promoBannerBg:A2},B2={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",discardConfirm:{title:"Discard your changes?",body:"If you do not save, everything you have entered will be lost.",confirm:"Discard"},close:"Close",back:"Back",emptyTrainingName:"Training name is empty.",remove:"Remove",image:"Image",delete:"Delete",reset:"Reset",update:"Update",download:"Download",likeCount:"{{count}} likes",selectedOfMax:"{{count}} of {{max}}",downloadCount:"{{count}} downloads",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",playFor:"Play {{name}}",pauseFor:"Pause {{name}}",pause:"Pause",playPause:"Play / Pause",replay:"Replay",subscription:"Subscription",done:"Done",failed:"Failed",continue:"Continue",notification:"Notice",emptyList:"No items",noMatches:"No matching 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."},N2={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",visitCount:"{{count}} visit(s)"},D2={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",expired:"Expired",menu:{use:"Activate",refund:"Refund",delete:"Delete"}},E2={clearAriaLabel:"Clear search"},S2={starLabel:"Select star {{n}}",valueLabel:"{{value}} out of {{max}}",groupLabel:"Rating"},j2={selected:"selected"},T2={placeholder:"Select"},M2={collapse:"Collapse",expand:"Expand"},L2={biArea:"BI area",biSymbol:"BI symbol",logoMalgwi:"Malgwi logo",logoManager:"Malgwi Manager logo",menuOpen:"Open menu",utilMenu:"Utility menu",menuClose:"Close menu"},$2={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",feedback:"Report a bug",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}}"},R2={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."}}},P2={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"}},I2={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"}}},F2={guide:{faq:{title:"FAQ",desc:"View all frequently asked questions"}}},O2={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",previewFor:"Preview {{name}}",stopFor:"Stop {{name}}",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.",ttsUnavailable:"Speech playback isn't available on this device.",selectConfirm:"Look at the question and select the answer.",orderListDefault:"Arrange the sentences in the order you heard.",result:{pendingDone:"Results are still being calculated, so you can't finish yet.",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"}},H2={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"},z2={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"}},V2={plan:{recommendedFor:"Recommended for",features:"Key Features",freePrice:"Free",contact:"Contact Us",tierFallback:"Plan",openPromo:"Launch offer"},products:{mgrEnterprise:{tier:{price:"Contact us"}}}},W2={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"}},q2={unitVisit:"",periodAll:"All",showN:"Show {{n}}"},U2={subtitle:"Manage company and business information",editButton:"Edit Info",basicInfo:{title:"Basic Info"},contactInfo:{title:"Contact Info"}},G2={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."}},K2={comingSoon:"Word training is coming soon."},Y2={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"},Z2={title:"Key Words",empty:"No key words available."},X2={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",topInfo:"Header",bottomInfo:"Footer",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 {{name}}",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",markName:{o:"Correct",triangle:"Partial",x:"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 \u25CB \xB7 \u25B3 \xB7 \u2715 under a cell to mark it. With a mouse, hover the cell to reveal them.",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"},reorder:{moved:"Moved to position {{n}} of {{total}}",handle:"Reorder {{word}} (Alt + arrow keys)",hint:"Alt + \u2190 \u2192 to reorder"}},J2={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",original:"Original order"},pageSize:"Show {{count}}",pageSizeAria:"Page size",popup:{title:"Select a word for cell {{n}}"}},Q2={clearAllSelection:"Clear All Selections",divLine:"Contrast Line",removePair:"Remove pair",removeWord:"Remove word"},eg={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"}},tg={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"}},ng={passwordPlaceholder:"Enter password"},ag={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"}},rg={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"}},og={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."]},sg={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"}},ig={lead:`IHAB builds trust
849
+ \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"},Gf={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"}}},Kf={timeHM:"{{h}}\uC2DC {{m}}\uBD84",timeH:"{{h}}\uC2DC"},Yf={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"}},Zf={answer:"\uC815\uB2F5",distractor:"\uC624\uB2F5"},Xf={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"},Jf={clearAriaLabel:"\uC785\uB825\uAC12 \uC9C0\uC6B0\uAE30"},Qf={ariaLabel:"\uC120\uD0DD \uD0ED"},e2={ariaLabel:"\uD0ED"},t2={dragPrompt:"\uD30C\uC77C\uC744 \uC774\uACF3\uC5D0 \uB4DC\uB798\uADF8\uD558\uC5EC \uC5C5\uB85C\uB4DC",browseButton:"\uD30C\uC77C \uC120\uD0DD",removeAriaLabel:"{{name}} \uC81C\uAC70"},n2={ariaLabel:"\uC0AC\uC6A9\uC790 \uC544\uBC14\uD0C0"},a2={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"}},r2={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"}},o2={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"}},s2={manage:{unit:"\uAC74"}},i2={cancelLabel:"\uCDE8\uC18C"},l2={steps:"\uC9C4\uD589 \uB2E8\uACC4 {{current}} / {{total}}"},u2={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"},c2={resetColumns:"\uCE78 \uB108\uBE44 \uCD08\uAE30\uD654",scrollRegion:"\uAC00\uB85C\uB85C \uAD74\uB9B4 \uC218 \uC788\uB294 \uD45C"},d2={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"},p2={ariaLabel:"\uBC30\uB108",dotAriaLabel:"{{count}}\uAC1C \uC911 {{index}}\uBC88\uC9F8 \uBC30\uB108"},m2={selectYearMonth:"\uC5F0\uC6D4 \uC120\uD0DD",chooseDate:"\uB0A0\uC9DC \uC120\uD0DD"},h2={previewRegion:"\uBCF4\uACE0\uC11C \uBBF8\uB9AC\uBCF4\uAE30 \u2014 \uC88C\uC6B0\uB85C \uAD74\uB824 \uBCFC \uC218 \uC788\uC2B5\uB2C8\uB2E4"},C2={description:"\uC124\uBA85",textbox:"\uBCF8\uBB38",training:"\uD6C8\uB828 \uC548\uB0B4",menu:"\uBA54\uB274"},f2={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"}},g2={clearSelection:"\uC120\uD0DD \uD574\uC81C"},b2={showResult:"{{type}} \uACB0\uACFC\uBCF4\uAE30"},y2={selected:"\uC120\uD0DD\uB428",remove:"\uC81C\uAC70",exclude:"\uC81C\uC678",nthSelected:"{{n}}\uBC88\uC9F8 \uC120\uD0DD"},v2={loading:"\uBD88\uB7EC\uC624\uB294 \uC911\u2026"},x2={state:{active:"\uC18C\uB9AC \uB098\uB294 \uC911",played:"\uB4E4\uC74C",correct:"\uC815\uB2F5",wrong:"\uC624\uB2F5"}},_2={ariaLabel:"\uC774\uB3D9 \uACBD\uB85C"},w2={empty:"\uB4F1\uB85D\uB41C \uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4."},A2={main:"\uBA54\uC778 \uADF8\uB77C\uB514\uC5B8\uD2B8",soft:"\uC18C\uD504\uD2B8",sub:"\uC11C\uBE0C \uCEEC\uB7EC",deep:"\uB525 \uADF8\uB77C\uB514\uC5B8\uD2B8",softSub:"\uC18C\uD504\uD2B8 \uC11C\uBE0C",warm:"\uC6DC(\uAC15\uC870)",dark:"\uB2E4\uD06C",radial:"\uBC29\uC0AC\uD615 \uADF8\uB77C\uB514\uC5B8\uD2B8",diagonal:"\uB300\uAC01\uC120 \uD328\uD134",dots:"\uB3C4\uD2B8 \uD328\uD134",outline:"\uC544\uC6C3\uB77C\uC778",success:"\uC131\uACF5/\uC644\uB8CC",naver:"\uB124\uC774\uBC84 \uBE14\uB85C\uADF8 \uC548\uB0B4",instagram:"\uC778\uC2A4\uD0C0\uADF8\uB7A8 \uC548\uB0B4"},k2={common:cf,calendar:df,passCard:pf,searchField:mf,rating:hf,colorPicker:Cf,dropdown:ff,accordion:gf,header:bf,nav:yf,settings:vf,usage:xf,account:_f,help:wf,training:Af,trainingSettings:kf,customers:Bf,payment:Nf,coupons:Df,visits:Ef,company:Sf,trainingType:jf,myWordTraining:Tf,myWordTable:Mf,keyWords:Lf,wordTable:$f,wordSearch:Rf,wordPrint:Pf,topic:If,accessLinkManager:Ff,login:Of,trainingPlanRun:Hf,device:zf,manager:Vf,wordPairs:Wf,game:qf,footer:Uf,landing:Gf,date:Kf,trainingSetPage:Yf,wordTrainingPreview:Zf,wordData:Xf,textField:Jf,segmentedControl:Qf,tabs:e2,fileUpload:t2,avatar:n2,myHomework:a2,trainingStatus:r2,store:o2,homework:s2,inquiry:i2,progress:l2,trainingMiss:u2,table:c2,wordScore:d2,topBanner:p2,datePicker:m2,report:h2,tooltip:C2,phonemeProfile:f2,bulkBar:g2,debug:b2,badge:y2,loader:v2,soundCompass:x2,breadcrumb:_2,board:w2,promoBannerBg:A2},B2={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",discardConfirm:{title:"Discard your changes?",body:"If you do not save, everything you have entered will be lost.",confirm:"Discard"},close:"Close",back:"Back",emptyTrainingName:"Training name is empty.",remove:"Remove",image:"Image",delete:"Delete",reset:"Reset",update:"Update",download:"Download",likeCount:"{{count}} likes",selectedOfMax:"{{count}} of {{max}}",downloadCount:"{{count}} downloads",descriptionFor:"About {{name}}",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",playFor:"Play {{name}}",pauseFor:"Pause {{name}}",pause:"Pause",playPause:"Play / Pause",replay:"Replay",subscription:"Subscription",done:"Done",failed:"Failed",continue:"Continue",notification:"Notice",emptyList:"No items",noMatches:"No matching 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."},N2={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",visitCount:"{{count}} visit(s)"},D2={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",expired:"Expired",menu:{use:"Activate",refund:"Refund",delete:"Delete"}},E2={clearAriaLabel:"Clear search"},S2={starLabel:"Select star {{n}}",valueLabel:"{{value}} out of {{max}}",groupLabel:"Rating"},j2={selected:"selected"},T2={placeholder:"Select"},M2={collapse:"Collapse",expand:"Expand"},L2={biArea:"BI area",biSymbol:"BI symbol",logoMalgwi:"Malgwi logo",logoManager:"Malgwi Manager logo",menuOpen:"Open menu",utilMenu:"Utility menu",menuClose:"Close menu"},$2={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",feedback:"Report a bug",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}}"},R2={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."}}},P2={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"}},I2={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"}}},F2={guide:{faq:{title:"FAQ",desc:"View all frequently asked questions"}}},O2={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",previewFor:"Preview {{name}}",stopFor:"Stop {{name}}",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.",ttsUnavailable:"Speech playback isn't available on this device.",selectConfirm:"Look at the question and select the answer.",orderListDefault:"Arrange the sentences in the order you heard.",result:{pendingDone:"Results are still being calculated, so you can't finish yet.",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"}},H2={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"},z2={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"}},V2={plan:{recommendedFor:"Recommended for",features:"Key Features",freePrice:"Free",contact:"Contact Us",tierFallback:"Plan",openPromo:"Launch offer"},products:{mgrEnterprise:{tier:{price:"Contact us"}}}},W2={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"}},q2={unitVisit:"",periodAll:"All",showN:"Show {{n}}"},U2={subtitle:"Manage company and business information",editButton:"Edit Info",basicInfo:{title:"Basic Info"},contactInfo:{title:"Contact Info"}},G2={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."}},K2={comingSoon:"Word training is coming soon."},Y2={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"},Z2={title:"Key Words",empty:"No key words available."},X2={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",topInfo:"Header",bottomInfo:"Footer",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 {{name}}",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",markName:{o:"Correct",triangle:"Partial",x:"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 \u25CB \xB7 \u25B3 \xB7 \u2715 under a cell to mark it. With a mouse, hover the cell to reveal them.",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"},reorder:{moved:"Moved to position {{n}} of {{total}}",handle:"Reorder {{word}} (Alt + arrow keys)",hint:"Alt + \u2190 \u2192 to reorder"}},J2={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",original:"Original order"},pageSize:"Show {{count}}",pageSizeAria:"Page size",popup:{title:"Select a word for cell {{n}}"}},Q2={clearAllSelection:"Clear All Selections",divLine:"Contrast Line",removePair:"Remove pair",removeWord:"Remove word"},eg={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"}},tg={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"}},ng={passwordPlaceholder:"Enter password"},ag={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"}},rg={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"}},og={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."]},sg={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"}},ig={lead:`IHAB builds trust
850
850
  through sound
851
851
  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"},lg={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"}}},ug={timeHM:"{{hh}}:{{mm}}",timeH:"{{hh}}:{{mm}}"},cg={options:"Training Options",difficulty:"Difficulty",exclude:"Exclude",chosung:"Initial Consonant",excludeOptions:{none:"None",noImage:"No Image"}},dg={answer:"Answer",distractor:"Distractor"},pg={phaseWordDownload:"Download Word Data",phaseImageCheck:"Check Images",phasePairAnalysis:"Analyze Word Pairs",downloadingCount:"Downloading {{n}} words",checkingPage:"Checking page {{page}} list",imageCount:"{{done}} / {{total}} items"},mg={clearAriaLabel:"Clear input"},hg={ariaLabel:"Select tab"},Cg={ariaLabel:"Tabs"},fg={dragPrompt:"Drag and drop files here",browseButton:"Choose Files",removeAriaLabel:"Remove {{name}}"},gg={ariaLabel:"User avatar"},bg={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"}},yg={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"}},vg={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)"}},xg={manage:{unit:"item(s)"}},_g={cancelLabel:"Cancel"},wg={subtitle:"Select a topic to start listening practice."},Ag={steps:"Step {{current}} of {{total}}"},kg={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"},Bg={resetColumns:"Reset column widths",scrollRegion:"Horizontally scrollable table"},Ng={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}}"},Dg={ariaLabel:"Banner",dotAriaLabel:"Banner {{index}} of {{count}}"},Eg={selectYearMonth:"Select year and month",chooseDate:"Choose a date"},Sg={previewRegion:"Report preview \u2014 scrollable sideways"},jg={description:"Description",textbox:"Text",training:"Training guide",menu:"Menu"},Tg={devNone:"No acquisition data",place:{labial:"Bilabial",alveolar:"Alveolar",palatal:"Palatal",velar:"Velar",glottal:"Glottal"}},Mg={clearSelection:"Clear selection"},Lg={showResult:"Show {{type}} result"},$g={selected:"Selected",remove:"Remove",exclude:"Excluded",nthSelected:"Selection {{n}}"},Rg={loading:"Loading"},Pg={state:{active:"playing",played:"heard",correct:"correct",wrong:"wrong"}},Ig={ariaLabel:"Breadcrumb"},Fg={empty:"No items yet."},Og={main:"Main gradient",soft:"Soft",sub:"Sub color",deep:"Deep gradient",softSub:"Soft sub",warm:"Warm (accent)",dark:"Dark",radial:"Radial gradient",diagonal:"Diagonal pattern",dots:"Dot pattern",outline:"Outline",success:"Success / done",naver:"Naver blog notice",instagram:"Instagram notice"},Hg={common:B2,calendar:N2,passCard:D2,searchField:E2,rating:S2,colorPicker:j2,dropdown:T2,accordion:M2,header:L2,nav:$2,settings:R2,usage:P2,account:I2,help:F2,training:O2,trainingSettings:H2,customers:z2,payment:V2,coupons:W2,visits:q2,company:U2,trainingType:G2,myWordTraining:K2,myWordTable:Y2,keyWords:Z2,wordTable:X2,wordSearch:J2,wordPrint:Q2,topic:eg,accessLinkManager:tg,login:ng,device:ag,manager:rg,wordPairs:og,game:sg,footer:ig,landing:lg,date:ug,trainingSetPage:cg,wordTrainingPreview:dg,wordData:pg,textField:mg,segmentedControl:hg,tabs:Cg,fileUpload:fg,avatar:gg,myHomework:bg,trainingStatus:yg,store:vg,homework:xg,inquiry:_g,trainingPlanRun:wg,progress:Ag,trainingMiss:kg,table:Bg,wordScore:Ng,topBanner:Dg,datePicker:Eg,report:Sg,tooltip:jg,phonemeProfile:Tg,bulkBar:Mg,debug:Lg,badge:$g,loader:Rg,soundCompass:Pg,breadcrumb:Ig,board:Fg,promoBannerBg:Og};const zg=[{code:"ko",label:"\uD55C\uAD6D\uC5B4"},{code:"en",label:"English"}],Gr="ko",Vg="ihab_display_language";function wi(){if(typeof window>"u")return Gr;try{const e=localStorage.getItem(Vg);if(e&&zg.some(n=>n.code===e))return e}catch{}return Gr}function Ai(e){try{document.documentElement.lang=e}catch{}}Et.on("languageChanged",Ai),Ai(wi()),Et.use(ye.initReactI18next).init({resources:{ko:{translation:k2},en:{translation:Hg}},lng:wi(),fallbackLng:Gr,interpolation:{escapeValue:!1},react:{useSuspense:!1}});function bt(e,n,a){const r=o.useRef(null);return o.useLayoutEffect(()=>{const s=r.current?.parentElement??null;return n(s,e),()=>a(s)},[e,n,a]),r}const _a={title:"--promo-banner-bg-title",description:"--promo-banner-bg-description"},Kr=new WeakMap;function Yr(e){if(e)return Kr.get(e)}function It(e,n){e&&(e.style.setProperty(_a.title,n.title),e.style.setProperty(_a.description,n.description),Kr.set(e,n))}function Ft(e){e&&(e.style.removeProperty(_a.title),e.style.removeProperty(_a.description),Kr.delete(e))}const ki={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"default"};function Bi(){const e=bt(ki,It,Ft);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-main","aria-hidden":"true"})}const Ni={title:"var(--color-main)",description:"var(--color-gray)",actionVariant:"main"};function Di(){const e=bt(Ni,It,Ft);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-soft","aria-hidden":"true"})}const Ei={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function Si(){const e=bt(Ei,It,Ft);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-sub","aria-hidden":"true"})}const ji={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function Ti(){const e=bt(ji,It,Ft);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-deep","aria-hidden":"true"})}const Mi={title:"var(--color-darkSub)",description:"var(--color-gray)",actionVariant:"main"};function Li(){const e=bt(Mi,It,Ft);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-soft-sub","aria-hidden":"true"})}const $i={title:"var(--color-black)",description:"var(--color-darkGray)",actionVariant:"main"};function Ri(){const e=bt($i,It,Ft);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-warm","aria-hidden":"true"})}const Pi={title:"var(--color-white)",description:"var(--color-lightGray)",actionVariant:"main"};function Ii(){const e=bt(Pi,It,Ft);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-dark","aria-hidden":"true"})}const Fi={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function Oi(){const e=bt(Fi,It,Ft);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-radial","aria-hidden":"true"})}const Hi={title:"var(--color-darkMain)",description:"var(--color-gray)",actionVariant:"main"};function zi(){const e=bt(Hi,It,Ft);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-diagonal","aria-hidden":"true"})}const Vi={title:"var(--color-darkSub)",description:"var(--color-gray)",actionVariant:"main"};function Wi(){const e=bt(Vi,It,Ft);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-dots","aria-hidden":"true"})}const qi={title:"var(--color-black)",description:"var(--color-gray)",actionVariant:"main"};function Ui(){const e=bt(qi,It,Ft);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 Gi={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function Ki(){const e=bt(Gi,It,Ft);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-success","aria-hidden":"true"})}const Yi={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"sub"};function Zi(){const e=bt(Yi,It,Ft);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-naver","aria-hidden":"true"})}const Xi={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"transparent-white"};function Ji(){const e=bt(Xi,It,Ft);return t.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-instagram","aria-hidden":"true"})}const Kt=(e,n,a)=>({key:e,get label(){return Et.t(`promoBannerBg.${e}`,n)},textTone:a}),Wg=[Kt("main","\uBA54\uC778 \uADF8\uB77C\uB514\uC5B8\uD2B8","light"),Kt("soft","\uC18C\uD504\uD2B8","dark"),Kt("sub","\uC11C\uBE0C \uCEEC\uB7EC","light"),Kt("deep","\uB525 \uADF8\uB77C\uB514\uC5B8\uD2B8","light"),Kt("softSub","\uC18C\uD504\uD2B8 \uC11C\uBE0C","dark"),Kt("warm","\uC6DC(\uAC15\uC870)","dark"),Kt("dark","\uB2E4\uD06C","light"),Kt("radial","\uBC29\uC0AC\uD615 \uADF8\uB77C\uB514\uC5B8\uD2B8","light"),Kt("diagonal","\uB300\uAC01\uC120 \uD328\uD134","dark"),Kt("dots","\uB3C4\uD2B8 \uD328\uD134","dark"),Kt("outline","\uC544\uC6C3\uB77C\uC778","dark"),Kt("success","\uC131\uACF5/\uC644\uB8CC","light"),Kt("naver","\uB124\uC774\uBC84 \uBE14\uB85C\uADF8 \uC548\uB0B4","light"),Kt("instagram","\uC778\uC2A4\uD0C0\uADF8\uB7A8 \uC548\uB0B4","light")],Qi={main:Bi,soft:Di,sub:Si,deep:Ti,softSub:Li,warm:Ri,dark:Ii,radial:Oi,diagonal:zi,dots:Wi,outline:Ui,success:Ki,naver:Zi,instagram:Ji};function el({storageKey:e="fontScale",baseFont:n=20,minScale:a=.8,maxScale:r=1.4,step:s=.1,lineHeightRatio:i=1.4}={}){const l=_=>Math.max(a,Math.min(r,Number(_))),u=_=>{try{const v=localStorage.getItem(_),A=v?Number(v):1;return Number.isFinite(A)?l(A):l(1)}catch{return l(1)}},[c,d]=o.useState(()=>u(e)),[p,m]=o.useState(e);p!==e&&(m(e),d(u(e))),o.useEffect(()=>{try{localStorage.setItem(e,String(c))}catch{}},[e,c]);const h=_=>{d(typeof _=="function"?v=>l(_(v)):l(_))},g=()=>h(_=>+(_+s).toFixed(6)),y=()=>h(_=>+(_-s).toFixed(6)),f=c<r-Number.EPSILON,x=c>a+Number.EPSILON,b=Math.round(n*c),C=Math.round(b*i);return{scale:c,setScale:h,increase:g,decrease:y,canIncrease:f,canDecrease:x,fontSize:b,lineHeight:C}}function tl(e,n){const a=xa(n);o.useEffect(()=>{const r=()=>a.current();try{window.addEventListener(e,r)}catch{}return()=>{try{window.removeEventListener(e,r)}catch{}}},[e,a])}const Zr=" \xB7 ",nl=(()=>{if(typeof document>"u")return"";const e=document.title;return e.includes(Zr)?e.split(Zr).pop()??e:e})(),qg=o.createContext(!1),Wn=[];let al=null;function Ug(e){const n=o.useContext(qg);o.useEffect(()=>{if(n||typeof e!="string"||!e)return;Wn.length===0&&(al=document.title);const a={text:nl?`${e}${Zr}${nl}`:e};return Wn.push(a),document.title=a.text,()=>{const r=Wn.lastIndexOf(a);r>=0&&Wn.splice(r,1),document.title=Wn.length?Wn[Wn.length-1].text:al??document.title}},[e,n])}const rl=[{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"}],Gg=(()=>{let e=null;return()=>(e||(e=new Intl.Collator("ko")),e)})();function aa(e,n){return Gg().compare(e,n)}const Ka=new Map;function Kg(e){const n=Ka.get(e);if(n)return n;const a=[],r=/-?\d+(?:\.\d+)?/g;let s=0;for(let i=r.exec(e);i;i=r.exec(e)){let l=i.index,u=i[0];u[0]==="-"&&l>0&&!/\s/.test(e[l-1])&&(l+=1,u=u.slice(1)),l>s&&a.push(e.slice(s,l)),a.push(Number(u)),s=i.index+i[0].length}return s<e.length&&a.push(e.slice(s)),Ka.size>5e3&&Ka.clear(),Ka.set(e,a),a}function Yg(e){if(!/^[\d\s-]+$/.test(e))return null;const n=e.replace(/\D/g,"");return n.length<9||n.length>11?null:n[0]==="0"||n[0]==="1"&&e!==n?n:null}function Zg(e,n){const a=d=>d==null||typeof d=="number"&&Number.isNaN(d)?"":String(d).trim(),r=a(e),s=a(n);if(r===s)return 0;const i=(d,p)=>{if(typeof d=="number"&&!Number.isNaN(d))return[d];const m=Yg(p);return m!==null?[m]:Kg(p)},l=i(e,r),u=i(n,s),c=Math.min(l.length,u.length);for(let d=0;d<c;d++){const p=l[d],m=u[d];if(typeof p=="number"&&typeof m=="number"){if(p!==m)return p-m;continue}if(typeof p=="number")return-1;if(typeof m=="number")return 1;const h=aa(p,m);if(h!==0)return h}return l.length!==u.length?l.length-u.length:aa(r,s)}const ol=e=>e==null||typeof e=="number"&&Number.isNaN(e)||typeof e=="string"&&e.trim()==="";function Xr(e,n,a){const r=ol(e),s=ol(n);if(r||s)return r===s?0:r?1:-1;const i=Zg(e,n);return a?i:-i}function Xg(e,n,a){const{t:r}=ye.useTranslation(),[s,i]=o.useState(()=>{const y=a?.initialPageSize;return y&&rl.some(f=>f.value===y)?y:"25"}),[l,u]=o.useState(1),[c,d]=o.useState(n);Object.is(c,n)||(d(n),l!==1&&u(1));const p=o.useMemo(()=>rl.map(y=>({...y,label:r("visits.showN",{n:y.value})})),[r]),m=o.useCallback(y=>{i(y),u(1)},[]),h=Math.max(1,Math.ceil(e.length/Number(s)));(l>h||l<1||!Number.isFinite(l))&&u(Math.min(Math.max(1,Number.isFinite(l)?l:1),h));const g=Math.min(Math.max(1,Number.isFinite(l)?l:1),h);return{pageRows:o.useMemo(()=>e.slice((g-1)*Number(s),g*Number(s)),[e,g,s]),pageSizeProps:{options:p,value:s,onChange:m},paginationProps:{page:g,total:h,onChange:u},setPage:u}}function Jg(e){const[n,a]=o.useState(null),r=o.useRef(n),s=o.useRef(e?.onSortChange);s.current=e?.onSortChange;const i=o.useCallback(c=>{const d=r.current,p=d?.key===c?{key:c,asc:!d.asc}:{key:c,asc:!0};r.current=p,a(p),s.current?.(p)},[]),l=o.useCallback((c,d)=>({label:c,sortDir:n?.key===d?n.asc?"asc":"desc":null,onClick:()=>i(d)}),[n,i]),u=o.useCallback((c,d)=>{if(!n)return c;const{key:p,asc:m}=n;return[...c].sort((h,g)=>Xr(d(h,p),d(g,p),m))},[n]);return{\uC815\uB82C:n,\uCE78:l,sortRows:u}}const on="\uC804\uCCB4",Qg=new Map;try{Et.store?.on?.("added",()=>Qg.clear())}catch{}Object.fromEntries(Object.entries(dC).map(([e,{nucleus:n}])=>[e,n]));const eb={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"})},tb={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"})},nb={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 ab(e,n){if("place"in n)return eb[n.place](e);const a=tb[n.vowel](e);return n.glide?`${a} \xB7 ${nb[n.glide](e)}`:a}const rb=(e,{defaultValue:n})=>n,sl=(e,n)=>({jamos:e,phonetic:n,tooltip:ab(rb,n)}),xn=(e,n)=>n.map(a=>sl([a],{place:e})),St=(e,n,a)=>sl([...e],a?{vowel:n,glide:a}:{vowel:n}),Jr={cho:[xn("labial",["\u3142","\u3143","\u314D","\u3141"]),xn("alveolar",["\u3137","\u3138","\u314C","\u3134","\u3139"]),xn("alveolar",["\u3145","\u3146"]),xn("palatal",["\u3148","\u3149","\u314A"]),xn("velar",["\u3131","\u3132","\u314B"]),xn("glottal",["\u314E"])],jung:[[St("\u3163","frontHigh"),St("\u315F","frontHigh","w"),St("\u3162","frontHigh","velar")],[St("\u3161","backHighUnrounded")],[St("\u315C","backHighRounded"),St("\u3160","backHighRounded","j")],[St("\u3154\u3150","frontMid"),St("\u3156\u3152","frontMid","j"),St("\u3159\u315A\u315E","frontMid","w")],[St("\u3153","backMidUnrounded"),St("\u3155","backMidUnrounded","j"),St("\u315D","backMidUnrounded","w")],[St("\u3157","backMidRounded"),St("\u315B","backMidRounded","j")],[St("\u314F","low"),St("\u3151","low","j"),St("\u3158","low","w")]],jong:[xn("labial",["\u3142","\u3141"]),xn("alveolar",["\u3137","\u3134","\u3139"]),xn("velar",["\u3131","\u3147"])]},ob=e=>e===sb?[]:Array.from(e),sb="__NO_CODA__",Qr=e=>e.map(n=>n.map(({jamos:a,phonetic:r,tooltip:s})=>({v:a.join(""),phonetic:r,tooltip:s}))),il={cho:Qr(Jr.cho),jung:Qr(Jr.jung),jong:Qr(Jr.jong)};il.jung.flat().forEach(({v:e})=>{for(const n of ob(e));}),new Set(il.cho.flat().map(e=>e.v));function ib(e,n=!0){const a=xa(e);o.useEffect(()=>{if(n)return zn(()=>{a.current?.()})},[n,a])}function wa(){const[e,n]=o.useState(null),a=o.useCallback(i=>n(i.getBoundingClientRect()),[]),r=o.useCallback(()=>n(null),[]),s=o.useCallback(i=>{const l=i.getBoundingClientRect();n(u=>u?null:l)},[]);return{anchorRect:e,isOpen:e!=null,openAt:a,close:r,toggleAt:s}}function lb(e){const[n,a]=o.useState(null),[r,s]=o.useState(null),i=o.useRef(null);o.useEffect(()=>()=>{i.current&&clearTimeout(i.current)},[]);const l=o.useCallback((c,d)=>{i.current&&clearTimeout(i.current),i.current=setTimeout(()=>{a(c),s(d)},e)},[e]),u=o.useCallback(()=>{i.current&&clearTimeout(i.current),a(null),s(null)},[]);return{payload:n,anchorRect:r,openAfterDelay:l,close:u}}function ll(e="warning"){const[n,a]=o.useState(""),[r,s]=o.useState(e),[i,l]=o.useState(0),u=o.useCallback((m,h)=>{s(h),a(m),l(g=>g+1)},[]),c=o.useCallback(m=>u(m,"warning"),[u]),d=o.useCallback(m=>u(m,"normal"),[u]),p=o.useCallback(()=>a(""),[]);return{toastMessage:n,toastType:r,toastKey:i,showToast:u,showWarning:c,showNormal:d,clearToast:p}}function Aa(e){let n=0;if(e&&typeof window<"u"&&typeof window.getComputedStyle=="function")for(let a=e;a&&a!==document.body&&a!==document.documentElement;a=a.parentElement){const r=parseInt(window.getComputedStyle(a).zIndex,10);!Number.isNaN(r)&&r>n&&(n=r)}return n>0?`max(var(--z-menu, 1500), ${n+1})`:"var(--z-menu, 1500)"}function ka({computeStyle:e,onScroll:n="close",onResize:a="close",ignoreOutsideClickSelector:r}){const[s,i]=o.useState(!1),[l,u]=o.useState({}),c=o.useRef(null),d=o.useRef(null),p=o.useCallback(()=>{c.current&&u(e(c.current.getBoundingClientRect(),c.current))},[e]);o.useEffect(()=>{if(!s)return;p();let g=d.current?.offsetHeight??0;g>0&&p();let y=0,f=null;typeof ResizeObserver<"u"&&d.current&&(f=new ResizeObserver(()=>{const A=d.current?.offsetHeight??0;if(A!==g){if(g=A,++y>4){f?.disconnect(),f=null;return}p()}}),f.observe(d.current));const x=A=>{const w=A.target;r&&w.closest?.(r)||c.current?.contains(w)||d.current?.contains(w)||i(!1)};document.addEventListener("mousedown",x),document.addEventListener("pointerdown",x);const b=A=>{d.current?.contains(A.target)||(n==="reposition"?p():n==="close"&&i(!1))};n!=="ignore"&&window.addEventListener("scroll",b,!0);const C=()=>{a==="reposition"?p():a==="close"&&i(!1)};let _=null;const v=()=>{C(),_&&clearTimeout(_),_=setTimeout(()=>{_=null,a==="reposition"&&p()},250)};return a!=="ignore"&&(window.addEventListener("resize",C),window.addEventListener("orientationchange",v)),()=>{f?.disconnect(),document.removeEventListener("mousedown",x),document.removeEventListener("pointerdown",x),n!=="ignore"&&window.removeEventListener("scroll",b,!0),a!=="ignore"&&(window.removeEventListener("resize",C),window.removeEventListener("orientationchange",v)),_&&clearTimeout(_)}},[s,p,n,a,r]),o.useEffect(()=>{if(s)return zn(()=>i(!1))},[s]);const m=o.useCallback(()=>i(g=>!g),[]),h=o.useCallback(()=>i(!1),[]);return{open:s,setOpen:i,toggle:m,close:h,style:l,triggerRef:c,menuRef:d}}function ub(e,{mode:n="playback",autoStart:a=!1,onPlaySpeaker:r,onComplete:s,playMs:i=1100,feedbackMs:l=1500}={}){const[u,c]=o.useState([]),[d,p]=o.useState(0),[m,h]=o.useState("idle"),[g,y]=o.useState(null),[f,x]=o.useState([]),[b,C]=o.useState(null),[_,v]=o.useState(0),A=o.useRef(0),w=o.useCallback(W=>{A.current=typeof W=="function"?W(A.current):W,v(A.current)},[]),N=o.useRef(r),k=o.useRef(s);o.useEffect(()=>{N.current=r,k.current=s},[r,s]);const B=o.useRef([]),S=()=>{B.current.forEach(clearTimeout),B.current=[]},E=(W,R)=>{B.current.push(setTimeout(R,W))};o.useEffect(()=>()=>S(),[]);const H=u[d]?.id??null,z=o.useRef(null),U=o.useCallback(()=>{S(),h("playing"),x([]),C(null),w(0);let W=0;e.forEach((R,D)=>{E(W,()=>{p(D),y(R.id),N.current?.(R)}),E(W+1e3,()=>{y(null),x(I=>[...I,R.id])}),W+=1300}),E(W,()=>{h("done"),k.current?.({score:0,total:e.length})})},[e,w]),T=o.useCallback((W,R)=>{if(R>=W.length){h("done"),k.current?.({score:A.current,total:W.length});return}z.current=null,p(R),C(null),h("playing"),y(W[R].id),N.current?.(W[R]),E(i,()=>{y(null),h("waiting")})},[i]),L=o.useCallback(()=>{S();const W=ya(e);c(W),w(0),x([]),T(W,0)},[e,T,w]),F=o.useCallback(()=>{n==="playback"?(c(e),U()):L()},[n,e,U,L]),Z=o.useCallback(()=>{S(),h("idle"),y(null),x([]),C(null),p(0),w(0),c([])},[w]),J=e.map(W=>W.id).join("|");o.useEffect(()=>(a?F():Z(),()=>S()),[n,J,a]);const V=o.useCallback(W=>{m!=="waiting"||n==="playback"||z.current===d||(z.current=d,C(W),W===u[d]?.id&&w(R=>R+1),n==="exam"?(h("playing"),E(400,()=>T(u,d+1))):(h("feedback"),E(l,()=>T(u,d+1))))},[m,n,u,d,T,l,w]),P=n==="playback"?e.length:u.length;return{bind:{activeSpeakerId:g,playedIds:f,selectedId:b,answerId:H,showFeedback:m==="feedback",clickable:m==="waiting",onSelectSpeaker:V},index:d,total:P,score:_,phase:m,done:m==="done",start:F,reset:Z}}function cb({title:e,description:n,actionLabel:a,onAction:r,bg:s,color:i,size:l="medium",actionVariant:u,titleColor:c,descriptionColor:d,className:p=""}){const m=s??i??"main",h=o.useRef(null),[g,y]=o.useState("main"),f=tn("(max-width: 767px)"),x=o.useRef({title:!1,description:!1});o.useLayoutEffect(()=>{const _=h.current;if(!_)return;const v=Yr(_),A=(w,N,k)=>{if(k!==void 0)_.style.setProperty(N,k),x.current[w]=!0;else if(x.current[w]){const B=v?.[w];B?_.style.setProperty(N,B):_.style.removeProperty(N),x.current[w]=!1}};A("title","--promo-banner-bg-title",c),A("description","--promo-banner-bg-description",d)},[c,d,m]),o.useLayoutEffect(()=>{const _=h.current;if(!_)return;const v=Yr(_);y(v?.actionVariant??"main")},[m]);const b=De("promo-banner",`promo-banner--${l}`,p),C=Qi[m];return t.jsxs("div",{ref:h,className:b,role:"note",children:[t.jsx(C,{}),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(de,{htmlType:"button",size:40,variant:u??g,shape:"pill",useBorder:!0,onClick:r,ariaLabel:a,...f?{type:"dot",icon:"arrow-right"}:{rightIcon:"arrow-right",label:a,minWidth:140}})]})}function db({children:e,interval:n=5e3,dotTone:a,className:r="","aria-label":s}){const{t:i}=ye.useTranslation(),l=s??i("topBanner.ariaLabel","\uBC30\uB108"),u=o.Children.toArray(e),c=u.length,[d,p]=o.useState(0),[m,h]=o.useState(!1),[g,y]=o.useState(!1),[f,x]=o.useState(!1),b=o.useRef(null),C=o.useRef(null),_=o.useRef(null),v=Wr(),A=m||g||f,w=c>0?Math.min(d,c-1):0;o.useEffect(()=>{if(c<2||n<=0||A||v)return;const k=window.setInterval(()=>p(B=>(Math.min(B,c-1)+1)%c),n);return()=>window.clearInterval(k)},[c,n,A,v]);const N=k=>{C.current!=null&&window.clearTimeout(C.current),C.current=window.setTimeout(()=>{C.current=null,x(!1)},k)};return o.useEffect(()=>()=>{C.current!=null&&window.clearTimeout(C.current)},[]),o.useEffect(()=>{if(!f)return;const k=B=>{B.pointerType==="touch"&&(_.current&&_.current.contains(B.target)||(C.current!=null&&(window.clearTimeout(C.current),C.current=null),x(!1)))};return document.addEventListener("pointerdown",k,!0),()=>document.removeEventListener("pointerdown",k,!0)},[f]),c===0?null:t.jsxs("section",{ref:_,className:De("top-banner",r),"aria-label":l,"aria-roledescription":"carousel",onPointerEnter:k=>{b.current=k.pointerType},onPointerDown:k=>{b.current=k.pointerType,k.pointerType==="touch"&&(C.current!=null&&(window.clearTimeout(C.current),C.current=null),x(!0))},onPointerUp:k=>{k.pointerType==="touch"&&N(5e3)},onPointerCancel:k=>{k.pointerType==="touch"&&N(5e3)},onMouseEnter:()=>{b.current!=="touch"&&h(!0)},onMouseLeave:()=>h(!1),onFocus:k=>{let B=!0;try{B=k.target.matches(":focus-visible")}catch{B=!0}y(B)},onBlur:k=>{k.currentTarget.contains(k.relatedTarget)||y(!1)},children:[t.jsx("div",{className:"top-banner__viewport",children:t.jsx("div",{className:"top-banner__track",style:{transform:`translateX(-${w*100}%)`},children:u.map((k,B)=>t.jsx("div",{className:"top-banner__slide","aria-hidden":B!==w,...B!==w?{inert:!0}:{},children:k},B))})}),c>1&&t.jsx("div",{className:`top-banner__dots${(a?.[w]??"light")==="dark"?" top-banner__dots--dark":""}`,children:u.map((k,B)=>t.jsx("button",{type:"button",className:`top-banner__dot${B===w?" top-banner__dot--active":""}`,"aria-label":i("topBanner.dotAriaLabel",{count:c,index:B+1,defaultValue:`${c}\uAC1C \uC911 ${B+1}\uBC88\uC9F8 \uBC30\uB108`}),"aria-current":B===w,onClick:()=>p(B)},B))})]})}function pb({title:e,body:n,open:a=!1,onToggle:r,avatar:s,titleClassName:i="body-2",bodyClassName:l="body-2",className:u=""}){const{t:c}=ye.useTranslation();return t.jsxs("div",{className:`accordion-item ${a?"accordion-item--open":""} ${u}`.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 m=Array.from(p.querySelectorAll("[data-accordion-header]")),h=m.indexOf(d.currentTarget);(d.key==="ArrowDown"?m[h+1]:m[h-1])?.focus()}},children:[s&&t.jsx("div",{className:"accordion-item__avatar",children:s}),t.jsx("div",{className:`accordion-item__title ${i}`,children:e}),t.jsx("div",{className:"accordion-item__chevron",children:t.jsx(Ke,{icon:a?"chevron-up":"chevron-down",label:a?c("accordion.collapse","\uC811\uAE30"):c("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 mb({items:e=[],defaultOpenIndex:n=0,size:a=72,className:r="",bodyClassName:s}){const[i,l]=o.useState({index:n}),u=(c,d)=>i.id!=null&&c.id!=null?c.id===i.id:i.id==null&&d===i.index;return t.jsx("div",{className:`accordion-group accordion-group--s${a} ${r}`.trim(),role:"list",children:e.map((c,d)=>t.jsx(pb,{title:c.title,body:c.body,avatar:c.avatar,open:u(c,d),onToggle:()=>l(u(c,d)?{index:-1}:{index:d,id:c.id}),bodyClassName:s},c.id??d))})}function hb(){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 Cb(){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 fb(){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 yt(e){const{t:n}=ye.useTranslation(),{type:a="bar",size:r,className:s="","aria-label":i,"aria-hidden":l}=e;if(a==="dot"){const{icon:A,number:w,position:N="top-right",onClick:k,animate:B=!1}=e,S=A??"check",E=w!==void 0?"number":S,H=typeof r=="number"?r:32,z=De("circle-badge",`circle-badge--${E}`,`circle-badge--${N}`,`circle-badge--${H}`,B?"circle-badge--animate":"",k?"circle-badge--clickable":"",s),U=w!==void 0?n("badge.nthSelected",{n:w,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:z,onClick:k,onKeyDown:k?T=>{T.key!=="Enter"&&T.key!==" "||(T.preventDefault(),T.currentTarget.click())}:void 0,"aria-label":l?void 0:i??U,"aria-hidden":l||void 0,role:k?"button":l?void 0:"img",tabIndex:k?0:void 0,children:[w!==void 0&&w,w===void 0&&S==="check"&&t.jsx(hb,{}),w===void 0&&S==="remove"&&t.jsx(Cb,{}),w===void 0&&S==="minus"&&t.jsx(fb,{})]})}const{label:u,children:c,variant:d="default",fill:p="filled",minWidth:m,iconLeft:h,iconRight:g,color:y}=e,f=typeof r=="number"?"medium":r??"medium",x={small:"caption-2b",medium:"body-3b",large:"body-2b"}[f]??"body-2b",b={small:12,medium:14,large:16}[f]??14,C=De("badge",`badge--${d}`,`badge--${f}`,p!=="filled"?`badge--${p}`:"",x,s),_=y?.startsWith("--")?`var(${y})`:y,v=m!==void 0||_?{...m!==void 0?{minWidth:typeof m=="number"?`${m}px`:m}:{},..._?{"--badge-color":_}:{}}:void 0;return t.jsxs("span",{className:C,style:v,"aria-label":l?void 0:i,role:i&&!l?"img":void 0,"aria-hidden":l||void 0,children:[h&&t.jsx(Ke,{icon:h,size:b,className:"badge__icon"}),u??c,g&&t.jsx(Ke,{icon:g,size:b,className:"badge__icon"})]})}function Ba({columns:e=[],onClose:n,className:a="",size:r="medium"}){const{t:s}=ye.useTranslation(),i=r==="small"?40:48,[l,u]=o.useState([]),c=o.useMemo(()=>{const x=[{title:null,columns:e}];let b=e;for(const C of l){const _=b?.[C.ci]?.items?.[C.ii];if(!_||!Array.isArray(_.children)||!_.children.length)break;b=[{title:null,items:_.children}],x.push({title:_.label||null,columns:b})}return x},[e,l]),d=c[c.length-1],p=c.length-1,m=o.useCallback(()=>u(x=>x.slice(0,Math.max(0,Math.min(x.length,p)-1))),[p]),h=o.useRef(null),g=o.useRef(null),y=c.length;o.useEffect(()=>{g.current||(g.current=document.activeElement);let x=0,b=0;const C=()=>{const _=h.current?.querySelector("button:not([disabled])");if(_&&_.offsetParent){_.focus({preventScroll:!0});return}b++<20&&(x=requestAnimationFrame(C))};return x=requestAnimationFrame(C),()=>cancelAnimationFrame(x)},[y]),o.useEffect(()=>()=>{g.current?.focus?.({preventScroll:!0})},[]);const f=o.useCallback((x,b,C)=>{if(x){if(Array.isArray(x.children)&&x.children.length){u(_=>[..._.slice(0,p),{ci:b,ii:C}]);return}try{typeof x.onClick=="function"&&x.onClick()}catch{}try{x&&x.closeOnSelect&&typeof n=="function"&&n()}catch{}}},[n,p]);return t.jsxs("div",{className:`tooltip-menu tooltip-menu--${r} ${a}`,children:[(c.length>1||d.title)&&t.jsxs("div",{className:"tooltip-menu__header",children:[c.length>1?t.jsx(de,{htmlType:"button",size:i,type:"dot",icon:"chevron-left",ariaLabel:s("common.back","\uB4A4\uB85C"),onClick:m,variant:"transparent-gray",useBorder:!1}):null,t.jsx("div",{className:"tooltip-menu__title button-1",children:d.title})]}),t.jsx("div",{className:"tooltip-menu__columns",ref:h,children:d.columns&&d.columns.map((x,b)=>t.jsxs("div",{className:"tooltip-menu__column",children:[x.title?t.jsx("div",{className:"tooltip-menu__column-title body-3",children:x.title}):null,t.jsx("div",{className:"tooltip-menu__items",children:(x.items||[]).map((C,_)=>t.jsxs(o.Fragment,{children:[C.separatorBefore&&_>0&&t.jsx("div",{className:"tooltip-menu__separator",role:"separator"}),t.jsx(de,{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(yt,{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?s("nav.badgeLabel",{label:C.label,count:C.badgeCount,defaultValue:"{{label}}, {{count}}\uAC1C"}):C.label,onClick:()=>f(C,b,_),selected:C.selected,disabled:C.disabled,showTooltipInfo:C.tooltip||!1,useBorder:!1,align:"left"})]},_))})]},b))})]})}const ul=".content-area";function eo(e,n="Nav"){try{const a=typeof e=="string"?document.querySelector(e):e?.current??document.querySelector(ul);if(a){a.scrollTop=0;return}const r=document.scrollingElement??document.documentElement;r&&r.scrollHeight<=r.clientHeight&&pn("nav-scroll-container",`[${n}] \uBCF8\uBB38\uC744 \uB9E8 \uC704\uB85C \uB418\uB3CC\uB9B4 \uD1B5\uC744 \uBABB \uCC3E\uC558\uB2E4(\uAE30\uBCF8 ${ul}) \u2014 \uCC3D\uB3C4 \uAD6C\uB97C \uC218 \uC5C6\uC5B4 \uC544\uBB34 \uC77C\uB3C4 \uD558\uC9C0 \uC54A\uB294\uB2E4. scrollContainer \uB85C \uD1B5\uC744 \uC54C\uB824 \uC900\uB2E4.`),window.scrollTo({top:0})}catch{}}const to=52,Ya=10,cl=e=>e&&e>0?e:0;function dl({items:e=[],activeKey:n,onChange:a,appMode:r,onAppModeChange:s,moreItems:i=[],scrollContainer:l}){const{t:u}=ye.useTranslation(),c=r==="manager"?"malgwi":"manager",d=r==="manager"?"arrow-left":"arrow-right",p=r==="manager"?u("nav.modeLabelMalgwi","\uB9D0\uADC0"):u("nav.modeLabelManager","\uB9D0\uADC0 \uB9E4\uB2C8\uC800"),m=o.useRef(null),[h,g]=o.useState(0),y=e.length;o.useEffect(()=>{const P=m.current;if(!P)return;const W=()=>{const D=typeof getComputedStyle=="function"?getComputedStyle(P):null,I=P.clientWidth-(parseFloat(D?.paddingLeft??"")||0)-(parseFloat(D?.paddingRight??"")||0),j=P.querySelector(".bottom-nav__left"),O=j?.nextElementSibling,$=(j?.offsetWidth??0)+(j&&O?.classList.contains("bottom-nav__divider")?O.offsetWidth:0);g(Math.max(0,I-$))};if(W(),typeof ResizeObserver>"u")return;const R=new ResizeObserver(W);return R.observe(P),()=>R.disconnect()},[]);const f=to+1,x=P=>Math.max(0,Math.floor((P+Ya)/(to+Ya))),b=y*(to+Ya)-Ya<=h,C=h<=0||i.length===0&&b?y:Math.min(y,x(h-f)),_=h>0&&C<y,v=_?C:y,A=e.slice(0,v),w=e.slice(v),N=_||i.length>0,k=o.useCallback((P,W)=>({position:"fixed",bottom:window.innerHeight-P.top+8,right:window.innerWidth-P.right,zIndex:Aa(W)}),[]),B=o.useId(),{open:S,toggle:E,close:H,style:z,triggerRef:U,menuRef:T}=ka({computeStyle:k,onScroll:"ignore",onResize:"reposition"}),L=o.useCallback((P,W)=>W>0?u("nav.badgeLabel",{label:P,count:W,defaultValue:"{{label}}, {{count}}\uAC1C"}):P,[u]),F=o.useCallback(()=>s?.(c),[s,c]),Z=o.useMemo(()=>w.find(P=>!!P.key&&P.key===n)??i.find(P=>P.selected||P.key&&P.key===n),[w,n,i]),J=o.useMemo(()=>[{items:[...w.map(P=>({label:P.label,icon:P.icon,badgeCount:P.badgeCount,selected:!!P.key&&P.key===n,closeOnSelect:!0,disabled:P.state==="disabled",onClick:()=>{P.state!=="disabled"&&(P.key&&a&&(a(P.key),eo(l,"BottomNav")),H())}})),...i.map(P=>({label:P.label,icon:P.icon,badgeCount:P.badgeCount,selected:P.selected??(!!P.key&&P.key===n),closeOnSelect:!0,onClick:()=>{P.onClick?.(),H()}}))]}],[w,i,n,a,H]),V=[...w,...i].reduce((P,W)=>P+cl(W.badgeCount),0);return t.jsxs("nav",{className:"bottom-nav",ref:m,"aria-label":u("nav.bottomNav","\uD558\uB2E8 \uB124\uBE44\uAC8C\uC774\uC158"),children:[s&&t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"bottom-nav__left",children:t.jsx(de,{htmlType:"button",size:52,type:"dot",icon:d,ariaLabel:p,className:"bottom-nav-item",onClick:F})}),t.jsx("div",{className:"bottom-nav__divider","aria-hidden":"true"})]}),t.jsx("div",{className:"bottom-nav__items",children:A.map((P,W)=>{const R=cl(P.badgeCount);return t.jsxs("span",{className:"bottom-nav__slot",children:[t.jsx(de,{htmlType:"button",size:52,type:"dot",icon:P.icon,ariaLabel:L(P.label,R),selected:!!P.key&&P.key===n,disabled:P.state==="disabled",className:"bottom-nav-item",onClick:()=>{P.key&&(a?.(P.key),eo(l,"BottomNav"))}}),R>0&&t.jsx("span",{"aria-hidden":"true",children:t.jsx(yt,{type:"dot",position:"top-right",number:Math.min(R,99),size:24})})]},P.key??`__slot-${W}`)})}),N&&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:U,className:"bottom-nav__slot",children:[t.jsx(de,{htmlType:"button",size:52,type:"dot",icon:Z?.icon??"ellipsis",ariaLabel:L(Z?.label??u("nav.more","\uB354\uBCF4\uAE30"),V),selected:!!Z,className:"bottom-nav-item",onClick:E,"aria-expanded":S,"aria-controls":S?B:void 0}),V>0&&t.jsx("span",{"aria-hidden":"true",children:t.jsx(yt,{type:"dot",position:"top-right",number:Math.min(V,99),size:24})}),S&&Xt.createPortal(t.jsx("div",{id:B,role:"group","aria-label":u("nav.moreMenu","\uB354\uBCF4\uAE30 \uBA54\uB274"),className:"tooltip-content",style:z,ref:T,children:t.jsx(Ba,{columns:J,onClose:H})}),document.body)]})})]})]})}function pl(e){if(typeof e!="string")return!1;let n="";for(const r of e){const s=r.charCodeAt(0);s<=32||s>=127&&s<=159||(n+=r)}if(!n)return!1;const a=/^([a-zA-Z][a-zA-Z0-9+.-]*):/.exec(n);return a?["http","https","mailto","tel"].includes(a[1].toLowerCase()):!0}function ml(e,n,a){return a&&a>0?e("nav.badgeLabel",{label:n,count:a,defaultValue:"{{label}}, {{count}}\uAC1C"}):n}function gb(e){const{t:n}=ye.useTranslation(),{activeKey:a,unreadCount:r,onDebug:s,onNotification:i,onSetting:l,onHelp:u,onFeedback:c,onAccount:d}=e||{},p="default";return s||i||l||u||c||d?t.jsxs("div",{className:"side-nav__footer",children:[s&&t.jsx(de,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:p,icon:"terminal",ariaLabel:n("nav.debug","\uB514\uBC84\uADF8"),onClick:s,selected:a==="debug"}),i&&t.jsxs("span",{className:"side-nav__notification-wrap",children:[t.jsx(de,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:p,icon:"bell",ariaLabel:ml(n,n("nav.notifications","\uC54C\uB9BC"),r),onClick:i,selected:a==="notifications"}),!!r&&r>0&&t.jsx(yt,{type:"dot",number:Math.min(r,99),size:24,"aria-hidden":!0})]}),l&&t.jsx(de,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:p,icon:"settings",ariaLabel:n("nav.settings","\uC124\uC815"),onClick:l,selected:a==="settings"}),u&&t.jsx(de,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:p,icon:"message-circle-question-mark",ariaLabel:n("nav.help","\uB3C4\uC6C0\uB9D0"),onClick:u,selected:a==="help"}),c&&t.jsx(de,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:p,icon:"bug",ariaLabel:n("nav.feedback","\uBC84\uADF8\uC2E0\uACE0"),onClick:c,selected:a==="feedback"}),d&&t.jsx(de,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:p,icon:"user-round",ariaLabel:n("nav.account","\uACC4\uC815"),onClick:d,selected:a==="account"})]}):null}function hl(e){const{t:n}=ye.useTranslation(),{item:a,itemKey:r,label:s,icon:i,active:l,onClick:u,style:c,state:d,labelStyle:p}=e||{},m=a?.key??r??"",h=a?.label??s??"",g=a?.icon??i??"",y=a?.badge??0,f=t.jsx("span",{className:"side-nav__icon-wrap",children:t.jsx(Ke,{icon:g,label:typeof h=="string"?h:void 0,className:"side-nav__icon",maskClassName:"side-nav__icon-image",imgClassName:void 0,svgClassName:void 0})}),x=d==="disabled",b=`side-nav__item ${l?"active":""} ${d||""} ${x?"disabled":""} ${a?.child?"side-nav__item--child":""}`,C=o.useCallback(_=>{if(x)return;const v=_.detail>0;if(v)try{_.currentTarget.blur()}catch{}u?.(m,_.currentTarget,v)},[x,m,u]);return t.jsxs("button",{type:"button",className:b,onClick:C,"aria-label":typeof h=="string"?ml(n,h,y):void 0,"aria-current":l?"page":void 0,style:c,"aria-disabled":x,children:[f,t.jsx("span",{className:"side-nav__label button-1 f",style:p,children:h}),y>0&&t.jsx(yt,{type:"dot",position:"inline",number:Math.min(y,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 Cl(e){const{t:n}=ye.useTranslation(),{items:a=[],activeKey:r,onChange:s,unreadCount:i,onDebug:l,onNotification:u,onAccount:c,onSetting:d,onHelp:p,onFeedback:m,appMode:h,onAppModeChange:g,scrollContainer:y}=e||{},f=h==="manager",x=o.useCallback(()=>g?.(f?"malgwi":"manager"),[g,f]),b=o.useRef(null),[C,_]=o.useState(null);o.useEffect(()=>{const k=b.current;if(!k)return;const B=()=>{const{scrollHeight:E,clientHeight:H,scrollTop:z}=k;if(E<=H+1){_(null);return}const U=Math.max(24,H/E*H),T=H-U,L=E-H;_({top:Math.round(z/L*T),height:Math.round(U)})};B(),k.addEventListener("scroll",B,{passive:!0});const S=typeof ResizeObserver<"u"?new ResizeObserver(B):null;S?.observe(k);for(const E of Array.from(k.children))S?.observe(E);return()=>{k.removeEventListener("scroll",B),S?.disconnect()}},[a]);const v=o.useRef(null),A=o.useCallback(k=>{const B=b.current;B&&(k.preventDefault(),v.current={y:k.clientY,top:B.scrollTop},k.currentTarget.setPointerCapture(k.pointerId))},[]),w=o.useCallback(k=>{const B=b.current,S=v.current;!B||!S||(B.scrollTop=S.top+(k.clientY-S.y)*(B.scrollHeight/B.clientHeight))},[]),N=o.useCallback(k=>{v.current=null,k.currentTarget.hasPointerCapture(k.pointerId)&&k.currentTarget.releasePointerCapture(k.pointerId)},[]);return t.jsxs("nav",{ref:b,"aria-label":n("nav.mainMenu","\uBA54\uC778 \uBA54\uB274"),className:"side-nav__menu",children:[C&&t.jsx("div",{className:"side-nav__scroll","aria-hidden":"true",children:t.jsx("div",{className:"side-nav__scroll-thumb",style:{top:C.top,height:C.height},onPointerDown:A,onPointerMove:w,onPointerUp:N,onPointerCancel:N})}),t.jsxs("div",{className:"side-nav__menu-list",children:[(a||[]).filter(k=>!k.section&&(k.key||k.label)).map((k,B)=>t.jsxs(o.Fragment,{children:[k.divider&&t.jsx("div",{className:"side-nav__separator"}),t.jsx(hl,{item:k,active:!!k.key&&k.key===r,state:k.disabled?"disabled":void 0,onClick:(S,E,H)=>{if(k.disabled)return;if(k.href){if(pl(k.href)&&window.open(k.href,"_blank","noopener,noreferrer"),H)try{E?.blur()}catch{}return}if(s?.(k.key),eo(y,"SideNav"),!H)return;try{E?.blur()}catch{}if(typeof window<"u"&&window.matchMedia){if(!window.matchMedia("(min-width: 768px) and (max-width: 1023px)").matches)return}else return;const z=document.querySelector(".header");if(z){const U=typeof z.matches=="function";if(!(window.matchMedia("(hover: hover)").matches&&U&&z.matches(":hover"))){z.classList.add("header--force-collapsed");const T=()=>{z.classList.remove("header--force-collapsed"),z.removeEventListener("mouseenter",T)};z.addEventListener("mouseenter",T)}}}})]},k.key??`side-nav__item-${B}`)),g&&t.jsx("div",{className:"side-nav__separator side-nav__separator--short"}),g&&t.jsx(hl,{item:{key:"__mode-switch__",label:f?n("nav.goToMalgwi","\uB9D0\uADC0\uB85C \uC774\uB3D9"):n("nav.goToManager","\uB9D0\uADC0\uB9E4\uB2C8\uC800\uB85C \uC774\uB3D9"),icon:f?"arrow-left":"arrow-right"},onClick:x})]}),t.jsx(gb,{activeKey:r,unreadCount:i,onDebug:l,onNotification:u,onAccount:c,onSetting:d,onHelp:p,onFeedback:m})]})}var Za='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',no='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',bb='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 fl({appMode:e}){const{t:n}=ye.useTranslation(),a=e==="manager",r=a?no:Za,s=bb;return t.jsxs("div",{className:"brand-identity__root","aria-label":n("header.biArea","BI \uC601\uC5ED"),children:[t.jsx("img",{src:s,alt:n("header.biSymbol","BI \uC2EC\uBCFC"),className:"brand-identity__image brand-identity__image--symbol"}),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 brand-identity__image--logo"})]})}function gl({activeKey:e,onChange:n,items:a,malgwiItems:r,managerItems:s,unreadCount:i,onDebug:l,onNotification:u,onAccount:c,onSetting:d,onHelp:p,onFeedback:m,appMode:h,onAppModeChange:g,scrollContainer:y}){const{t:f}=ye.useTranslation(),x=tn("(max-width: 767px)"),b=o.useMemo(()=>(a??[]).filter(z=>!z.section&&(z.key||z.label)).map(z=>({key:z.key,label:typeof z.label=="string"?z.label:void 0,icon:z.icon,state:z.disabled?"disabled":void 0,badgeCount:z.badge})),[a]),C=o.useCallback(z=>{const U=a?.find(T=>T.key===z);if(!U?.disabled){if(U?.href){pl(U.href)&&window.open(U.href,"_blank","noopener,noreferrer");return}n?.(z)}},[a,n]),_=o.useMemo(()=>{const z=[];return l&&z.push({key:"debug",icon:"terminal",label:f("nav.debug","\uB514\uBC84\uADF8"),onClick:l}),u&&z.push({key:"notifications",icon:"bell",label:f("nav.notifications","\uC54C\uB9BC"),badgeCount:i,onClick:u}),d&&z.push({key:"settings",icon:"settings",label:f("nav.settings","\uC124\uC815"),onClick:d}),p&&z.push({key:"help",icon:"message-circle-question-mark",label:f("nav.help","\uB3C4\uC6C0\uB9D0"),onClick:p}),m&&z.push({key:"feedback",icon:"bug",label:f("nav.feedback","\uBC84\uADF8\uC2E0\uACE0"),onClick:m}),c&&z.push({key:"account",icon:"user-round",label:f("nav.account","\uACC4\uC815"),onClick:c}),z},[f,l,u,d,p,m,c,i]),v=o.useCallback((z,U)=>({position:"fixed",top:z.bottom+8,right:Math.max(8,window.innerWidth-z.right),zIndex:Aa(U)}),[]),A=o.useId(),{open:w,toggle:N,close:k,style:B,triggerRef:S,menuRef:E}=ka({computeStyle:v,onScroll:"ignore",onResize:"reposition"}),H=o.useMemo(()=>[{items:_.map(z=>({label:z.label,icon:z.icon,badgeCount:z.badgeCount,selected:z.selected??(!!z.key&&z.key===e),closeOnSelect:!0,onClick:()=>{z.onClick?.(),k()}}))}],[_,e,k]);return t.jsxs("aside",{className:`header${h==="manager"?" header--manager":""}`,children:[t.jsxs("div",{className:"header__bi",children:[t.jsx(fl,{appMode:h}),t.jsxs("div",{className:"header__menu-button",ref:S,children:[t.jsx(de,{htmlType:"button",size:48,type:"dot",shape:"pill",variant:"default",useBorder:!1,icon:"menu",ariaLabel:u&&i&&i>0?f("nav.badgeLabel",{label:f("header.menuOpen","\uBA54\uB274 \uC5F4\uAE30"),count:i,defaultValue:"{{label}}, {{count}}\uAC1C"}):f("header.menuOpen","\uBA54\uB274 \uC5F4\uAE30"),onClick:N,"aria-expanded":w,"aria-controls":w?A:void 0}),!!u&&!!i&&i>0&&t.jsx(yt,{type:"dot",number:Math.min(i,99),size:24,"aria-hidden":!0}),w&&Xt.createPortal(t.jsx("div",{id:A,role:"group","aria-label":f("header.utilMenu","\uC720\uD2F8\uB9AC\uD2F0 \uBA54\uB274"),className:"tooltip-content",style:B,ref:E,children:t.jsx(Ba,{columns:H,onClose:k})}),document.body)]})]}),t.jsx(Cl,{scrollContainer:y,items:a,activeKey:e??void 0,onChange:n,unreadCount:i,onDebug:l,onNotification:u,onAccount:c,onSetting:d,onHelp:p,onFeedback:m,appMode:h,onAppModeChange:g}),x&&t.jsx(dl,{items:b,activeKey:e??void 0,onChange:C,scrollContainer:y,appMode:h,onAppModeChange:g})]})}const yb=gl,vb=()=>Et.t("passCard.planSuffix","\uC774\uC6A9\uAD8C");function bl(e){if(!(e==null||e==="")){if(typeof e=="string"&&/^\s*\d[\d,]*\s*$/.test(e)){const n=Number(e.replace(/[,\s]/g,""));if(Number.isFinite(n))return Qn(`${n.toLocaleString("ko-KR")}\uC6D0`)}return Qn(typeof e=="number"?`${e.toLocaleString("ko-KR")}\uC6D0`:e)}}function xb(e){const n=`${e.code??""} ${e.name??""}`.toLowerCase();return/manager|매니저/.test(n)?"manager":"speechear"}function _b(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 s=a.match(/(\d+)\s*-?\s*(day|year)s?\b/i);return s?s[2].toLowerCase()==="year"?`${s[1]}\uB144`:`${s[1]}\uC77C`:a||vb()}function wb(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 yl(e){return{type:e.type??xb(e),plan:_b(e),label:e.label,price:bl(e.price),originalPrice:bl(e.originalPrice),discountLabel:e.discountLabel}}var Ab='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',kb='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>',Bb='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',Nb='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',Db='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>',Eb='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',vl='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 qn={text:"--pass-card-text",sub:"--pass-card-sub",copyright:"--pass-card-copyright"},ao=new WeakMap;function Sb(e){if(e)return ao.get(e)}function _n(e,n){e&&(e.style.setProperty(qn.text,n.text),e.style.setProperty(qn.sub,n.sub),n.copyrightColor&&e.style.setProperty(qn.copyright,n.copyrightColor),ao.set(e,n))}function wn(e){e&&(e.style.removeProperty(qn.text),e.style.removeProperty(qn.sub),e.style.removeProperty(qn.copyright),ao.delete(e))}const xl={text:"var(--color-pureBlack)",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"#1a1a1a"};function _l(e={}){const n=bt(xl,_n,wn);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("${vl}")`}})]})}const wl="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 Na='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 jb={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"var(--color-main)"},Tb=[{scale:1,opacity:.55},{scale:2,opacity:.4},{scale:3.1,opacity:.28},{scale:4.5,opacity:.18},{scale:6,opacity:.1}];function Al(e={}){const n=bt(jb,_n,wn),a="var(--color-main)",r=270,s=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:Tb.map(({scale:i,opacity:l},u)=>t.jsx("g",{transform:`translate(${r} ${s}) scale(${i}) translate(-50 -50)`,opacity:l,children:t.jsx("path",{d:wl,fill:"none",stroke:a,strokeWidth:"1.5",vectorEffect:"non-scaling-stroke"})},u))}),t.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-sound-move__symbol",style:{"--symbol-url":`url("${Na}")`}})]})}const Mb={text:"#ffffff",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",logoColor:"_white",copyrightColor:"#ffffff"},Lb=[{scale:1,opacity:.55},{scale:2,opacity:.4},{scale:3.1,opacity:.28},{scale:4.5,opacity:.18},{scale:6,opacity:.1}];function $b(e={}){const n=bt(Mb,_n,wn),a="#ffffff",r=270,s=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:Lb.map(({scale:i,opacity:l},u)=>t.jsx("g",{transform:`translate(${r} ${s}) scale(${i}) translate(-50 -50)`,opacity:l,children:t.jsx("path",{d:wl,fill:"none",stroke:a,strokeWidth:"1.5",vectorEffect:"non-scaling-stroke"})},u))}),t.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-sound-move-v1__symbol",style:{"--symbol-url":`url("${vl}")`}})]})}const Rb={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"var(--color-main)"};function Pb(e={}){const n=bt(Rb,_n,wn);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("${Na}")`}})]})}const Ib={Logo_speechear_kr:{"":Za,_white:Ab,_textWhite:kb,_black:Bb},Logo_speechearManager_kr:{"":no,_white:Nb,_textWhite:Db,_black:Eb}};function Fb(e,n){if(e)return Ib[e]?.[n??""]??void 0}const Ob={speechear:Za,manager:no},Hb={speechear:"Logo_speechear_kr",manager:"Logo_speechearManager_kr"},kl=10;function Bl(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 s=Math.floor(e/60);return s>0?n("passCard.remainingMinute",{n:s}):n("passCard.remainingSecond",{n:Math.floor(e)})}function zb(e,n,a){if(e==="manager"){const r=/년/.test(n)||/yr|year/i.test(n)||/1년|365/.test(n),s=a==="\uC624\uD508\uD2B9\uAC00"||a===Et.t("passCard.specialLabel");return r?t.jsx(Pb,{}):s?t.jsx($b,{}):t.jsx(Al,{})}return t.jsx(_l,{})}function Nl({ariaLabel:e,product:n,showPrice:a=!1,plan:r,type:s,endDate:i,remainingSeconds:l,endInclusive:u=!1,state:c="active",bg:d,bgOnly:p=!1,textColor:m,subColor:h,copyrightColor:g,logoSrc:y,label:f,price:x,originalPrice:b,discountLabel:C,onUse:_,onRefund:v,onDelete:A}){const{t:w}=ye.useTranslation(),N=n?yl(n):void 0,k=s??N?.type??"speechear",B=r??N?.plan??w("passCard.planSuffix","\uC774\uC6A9\uAD8C"),S=f??N?.label,E=x??(a?N?.price:void 0),H=b??(a?N?.originalPrice:void 0),z=C??N?.discountLabel,U=o.useMemo(()=>{if(E)return null;const q=n?.durationDays??wb(n?.code);if(!q||q<=0)return l!=null?{percent:null,remainingLabel:Bl(l,w)}:null;const ee=q*86400;let ie;if(l!=null)ie=l;else if((c==="active"||c==="expired")&&i){const me=new Date(i).getTime();if(Number.isNaN(me))return null;const oe=/^(\d{4})-(\d{2})-(\d{2})/.exec(String(i)),fe=/^(\d{4})-(\d{2})-(\d{2})/.exec(va()),ge=Math.round(oe&&fe?(Date.UTC(+oe[1],+oe[2]-1,+oe[3])-Date.UTC(+fe[1],+fe[2]-1,+fe[3]))/864e5:(me-Date.now())/864e5);ie=Math.max(0,u?ge+1:ge)*86400}else c==="expired"?ie=0:ie=ee;const ve=Math.max(0,Math.min(100,Math.floor(Math.min(ie,ee)/ee*100)));return c==="pending"&&ve>=100?null:{percent:ve,remainingLabel:c==="expired"?w("passCard.expired","\uB9CC\uB8CC\uB428"):Bl(ie,w)}},[E,c,i,l,u,n?.durationDays,n?.code,w]),T=o.useRef(null),[L,F]=o.useState({}),[Z,J]=o.useState(null),V=!!(_||v||A),P=o.useRef(!1),W=o.useRef(void 0),[R,D]=o.useState(y);o.useLayoutEffect(()=>{D(y)},[y]),o.useLayoutEffect(()=>{const q=T.current;q&&(m!==void 0&&q.style.setProperty("--pass-card-text",m),h!==void 0&&q.style.setProperty("--pass-card-sub",h),g!==void 0&&q.style.setProperty("--pass-card-copyright",g))},[m,h,g]),o.useLayoutEffect(()=>{const q=T.current;if(!q)return;const ee=Sb(q);if(!y){const ie=Hb[k],ve=c==="expired"?"_black":ee?.logoColor??"",me=Fb(ie,ve);D(me)}},[d,y,k,c]);const I=q=>{const ee=T.current;if(!ee)return null;const{left:ie,top:ve,width:me,height:oe}=ee.getBoundingClientRect(),fe=(q.clientX-ie)/me-.5;return{rotateX:-((q.clientY-ve)/oe-.5)*kl,rotateY:fe*kl}},j=(q,ee)=>{const ie=ee*-.7,ve=q*.7+10,me=20+(Math.abs(q)+Math.abs(ee))*.4;return`${ie}px ${ve}px ${me}px rgba(0, 0, 0, 0.18)`},O=o.useCallback(q=>{if(na())return;P.current=!0,clearTimeout(W.current),W.current=setTimeout(()=>{P.current=!1},200);const ee=I(q);ee&&F({transform:`perspective(800px) rotateX(${ee.rotateX}deg) rotateY(${ee.rotateY}deg) scale3d(1.03, 1.03, 1.03)`,boxShadow:j(ee.rotateX,ee.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)"})},[]),$=o.useCallback(q=>{if(na())return;const ee=I(q);if(!ee)return;const ie=P.current?"transform 0.2s ease, box-shadow 0.2s ease":"none";F({transform:`perspective(800px) rotateX(${ee.rotateX}deg) rotateY(${ee.rotateY}deg) scale3d(1.03, 1.03, 1.03)`,boxShadow:j(ee.rotateX,ee.rotateY),transition:ie})},[]),Y=o.useCallback(()=>{clearTimeout(W.current),P.current=!1,F({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)"})},[]),ae=o.useCallback(()=>J(null),[]),K=o.useMemo(()=>{const q=w("passCard.planSuffix","\uC774\uC6A9\uAD8C"),ee=B.replace("\uC774\uC6A9\uAD8C","").replace(q==="\uC774\uC6A9\uAD8C"?"":q,"").trim(),ie=ee.match(/^(.*?)(일|년)$/);return ie?t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"h0 pass-card__plan-number",children:ie[1]}),t.jsx("span",{className:"h5b pass-card__plan-unit",children:ie[2]==="\uB144"?w("passCard.unitYear","\uB144"):w("passCard.unitDay","\uC77C")})]}):t.jsx("span",{className:"h0",children:ee})},[B,w]),ne=o.useMemo(()=>{const q=Qn(E);if(!q)return null;const ee=q.match(/^([^\d]*)([\d.,]+)(.*)$/);if(!ee)return t.jsx("span",{className:"h1",children:q});const[,ie,ve,me]=ee;return t.jsxs(t.Fragment,{children:[ie&&t.jsx("span",{className:"h5 pass-card__price-symbol",children:ie}),t.jsx("span",{className:"h1 pass-card__price-amount",children:ve}),me.trim()&&t.jsx("span",{className:"h5 pass-card__price-symbol",children:me.trim()})]})},[E]),be=o.useCallback(()=>{V&&J(q=>{if(q)return null;const ee=T.current?.getBoundingClientRect();if(!ee)return null;const ie=50;return{left:ee.left,right:ee.right,width:ee.width,height:ee.height,x:ee.x,y:ee.y+ie,top:ee.top+ie,bottom:ee.bottom+ie}})},[V]),ue=o.useCallback(q=>{V&&(q.key==="Enter"||q.key===" ")&&(q.preventDefault(),be())},[V,be]),pe=[{items:[..._?[{label:w("passCard.menu.use","\uC0AC\uC6A9\uD558\uAE30"),icon:"play",onClick:()=>{_(),J(null)},closeOnSelect:!0}]:[],...v?[{label:w("passCard.menu.refund","\uD658\uBD88\uD558\uAE30"),icon:"rotate-ccw",onClick:()=>{v(),J(null)},closeOnSelect:!0}]:[],...A?[{label:w("passCard.menu.delete","\uC0AD\uC81C\uD558\uAE30"),icon:"trash-2",onClick:()=>{A(),J(null)},closeOnSelect:!0}]:[]]}];return t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"pass-card-frame",children:t.jsxs("div",{ref:T,className:`pass-card pass-card--${c}${V?" pass-card--clickable":""}`,style:L,onMouseEnter:O,onMouseMove:$,onMouseLeave:Y,onPointerUp:q=>{q.pointerType==="touch"&&Y()},onPointerCancel:q=>{q.pointerType==="touch"&&Y()},onClick:be,onKeyDown:V?ue:void 0,role:V?"button":void 0,tabIndex:V?0:void 0,"aria-label":e,"aria-haspopup":V?"menu":void 0,"aria-expanded":V?!!Z:void 0,children:[d??zb(k,B,S),!p&&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:R??Ob[k],className:"pass-card__logo",alt:k==="manager"?w("header.logoManager","\uB9D0\uADC0\uB9E4\uB2C8\uC800 \uB85C\uACE0"):w("header.logoMalgwi","\uB9D0\uADC0 \uB85C\uACE0")}),t.jsxs("div",{className:"pass-card__plan",children:[t.jsx("div",{children:K}),t.jsx("span",{className:"h5b pass-card__plan-suffix",children:S?w("passCard.labeledPlan",{label:S}):w("passCard.planSuffix","\uC774\uC6A9\uAD8C")})]})]})}),E?t.jsxs("div",{className:"pass-card__price-area",children:[z&&t.jsx("span",{className:"pass-card__discount body-3",children:z}),t.jsxs("div",{className:"pass-card__price",children:[H&&t.jsx("span",{className:"pass-card__price-original body-3",children:Qn(H)}),ne]})]}):U?t.jsxs("div",{className:"pass-card__usage",children:[t.jsx("span",{className:"h5b pass-card__usage-remaining",children:U.remainingLabel}),U.percent!=null&&t.jsxs("span",{className:"pass-card__usage-percent",children:[t.jsx("span",{className:"h1 pass-card__usage-value",children:U.percent}),t.jsx("span",{className:"h5b pass-card__usage-symbol",children:"%"})]})]}):t.jsx("div",{className:"pass-card__copyright caption-2","aria-hidden":"true",children:"\xA9 IHAB Corp. All rights reserved."})]})]})}),Z&&t.jsx(rn,{anchorRect:Z,onClose:ae,ariaLabel:w("tooltip.menu","\uBA54\uB274"),children:t.jsx(Ba,{columns:pe,onClose:ae,size:"small"})})]})}const Vb={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"#1a1a1a"};function Wb(e={}){const n=`passcard-sound-line-grad-${o.useId()}`,a=bt(Vb,_n,wn);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("${Na}")`}})]})}const qb={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"var(--color-main)"};function Ub(e={}){const n=bt(qb,_n,wn);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("${Na}")`}})]})}function Gb(e,n){if(e){if(n==="manager_pro")return t.jsx(Ub,{});if(n==="manager_standard")return t.jsx(Wb,{});if(n==="manager_lite")return t.jsx(Al,{})}}function Kb(e){const n=Qn(e);if(!n)return null;const a=n.match(/^([^\d]*)([\d.,]+)(.*)$/);if(!a)return n;const[,r,s,i]=a;return t.jsxs(t.Fragment,{children:[r&&t.jsx("span",{className:"payment-plan__pricing-symbol h4",children:r}),s,i.trim()&&t.jsx("span",{className:"payment-plan__pricing-symbol h4",children:i.trim()})]})}function Yb(e){const{t:n}=ye.useTranslation(),a=n("payment.plan.tierFallback",{defaultValue:"\uC774\uC6A9\uAD8C"}),r=n("payment.plan.openPromo",{defaultValue:"\uC624\uD508 \uD2B9\uAC00"}),{plan:s,onSelect:i,period:l="monthly",ownedCodes:u}=e||{},c=v=>!!v&&!!u?.includes(v),d=v=>v.onceOnly??/오픈\s*특가/.test(v.label??""),p=(s.tiers||[]).some(v=>d(v)&&c(v.code)),m=v=>{const A=v.prices?v.prices[l]:v.price;return A?(s.tiers||[]).some(w=>!!w.badge&&w.originals?.[l]===A):!1},h=s.colorToken?`var(--color-${s.colorToken})`:"var(--color-gray)",g=n("payment.plan.freePrice","\uBB34\uB8CC"),y=n("payment.products.mgrEnterprise.tier.price","\uBB38\uC758"),f=v=>v.prices?v.prices[l]:v.price,x=(s.tiers||[]).length>0&&(s.tiers||[]).every(v=>{const A=f(v);return A==="\uBB34\uB8CC"||A===g||A==="0\uC6D0"||typeof A=="string"&&/\d/.test(A)&&!/[1-9]/.test(A)}),b=(s.tiers||[]).length>0&&(s.tiers||[]).every(v=>{const A=f(v);return A==="\uBB38\uC758"||A===y}),C=s.group==="org",_=C?"manager":"speechear";return t.jsxs("div",{className:"payment-plan__card",style:{borderColor:h,"--plan-color":h},children:[s.cardBadge&&t.jsx("div",{className:"payment-plan__card-badge",children:t.jsx(yt,{label:s.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:h},children:s.quote||"\xA0"}),t.jsx("h3",{className:"payment-plan__title-heading h1",children:s.tier??s.title}),t.jsx("p",{className:"payment-plan__subtitle body-3",children:s.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:(s.recommendedFor||[]).map((v,A)=>t.jsxs("li",{className:"payment-plan__feature-item body-3",children:[t.jsx(Ke,{icon:"check",size:18,className:"payment-plan__feature-check",wrapperStyle:{color:h}}),v]},A))})]}),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:(s.features||[]).map((v,A)=>t.jsxs("li",{className:"payment-plan__feature-item body-3",children:[t.jsx(Ke,{icon:"check",size:18,className:"payment-plan__feature-check",wrapperStyle:{color:h}}),v]},A))})]}),t.jsx("div",{className:"payment-plan__card-pricing",children:x?null:b?t.jsx(de,{htmlType:"button",className:"payment-plan__contact-button",label:n("payment.plan.contact",{defaultValue:"\uBB38\uC758\uD558\uAE30"}),variant:"main",size:56,onClick:()=>s.tiers?.[0]&&i?.({...s.tiers[0],productId:s.id,productTitle:s.title})}):t.jsx(t.Fragment,{children:t.jsx("div",{className:"payment-plan__pricing-list",children:(s.tiers||[]).map(v=>{const A=v.label||a,w=d(v),N=w||v.openPromo===!0,k=A.replace(/^오픈\s*특가\s*/,"")||a,B=v.prices?v.prices[l]:v.price,S=v.badge?N?`${r}
852
- ${v.badge}`:v.badge:void 0;if(w&&c(v.code))return null;if(!v.badge&&!p)return m(v)?null:t.jsxs("div",{className:`payment-plan__pricing-row payment-plan__pricing-row--static${v.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:v.label})}),t.jsx("div",{className:"payment-plan__pricing-row-price",children:t.jsx("span",{className:"payment-plan__pricing-current h1",children:Kb(B)})})]},v.id);const E=s.tier??(C?s.title:void 0),H=t.jsx(Nl,{showPrice:!0,product:{type:_,code:v.code,name:k,label:E,price:B,originalPrice:v.originals?.[l]??void 0,discountLabel:S},bg:Gb(C,s.id)}),z=()=>i?.({...v,productId:s.id,productTitle:s.title,preview:H});return t.jsx("div",{className:"payment-plan__pricing-card",onClick:z,onKeyDown:i?U=>{U.target===U.currentTarget&&(U.key==="Enter"||U.key===" ")&&(U.preventDefault(),z())}:void 0,role:i?"button":void 0,tabIndex:i?0:void 0,children:H},v.id)})})})})]})}function Zb({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 ro='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 Dl={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"#c9c9c9"};function Xb(){const e=bt(Dl,_n,wn);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("${ro}")`}})})}const El={text:"#ffffff",sub:"var(--color-lightGray)",logoBase:"Logo_speechearManager_kr",logoColor:"_white",copyrightColor:"#ffffff"};function Jb(e={}){const n=bt(El,_n,wn);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("${Na}")`}})]})}function Sl({keys:e,anchor:n="top-right",scale:a,className:r=""}){const s=Array.isArray(e)?e:[e];return t.jsx("span",{className:De("shortcut-badge",`shortcut-badge--${n}`,r),style:a===void 0?void 0:{"--shortcut-badge-scale":String(a)},children:s.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 Da=(e,n,a)=>e+(n-e)*a;function Qb({speakers:e,size:n=300,viewT:a=0,activeSpeakerId:r=null,playedIds:s,selectedId:i=null,answerId:l=null,showFeedback:u=!1,pulseSelected:c=!1,pulseSelectedDuration:d,pulseScale:p,clickable:m=!1,onSelectSpeaker:h,buttonSize:g=40,showIcon:y=!0,onCenterClick:f,centerLabel:x,centerDisabled:b=!1,centerAttention:C=!1,shortcutAnchor:_="top-right",shortcutScale:v,scaleShortcut:A=!1}){const{t:w}=ye.useTranslation(),N=Math.max(0,Math.min(1,a)),k=n/2,B=110/300,S=.18,E=q=>n*(B+(q-1)*S),H=q=>{const ee=E(q.row??1),ie=q.angleDeg*Math.PI/180;return{x:k+ee*Math.cos(ie),y:k+ee*Math.sin(ie)}},z=Math.max(...e.map(q=>q.row??1),1),U=n*.08,T=n*.1,L=n*.24,F=n-2*U,Z=n-T-L,J=n-L/2,V=o.useMemo(()=>[...new Set(e.map(q=>q.deg))].sort((q,ee)=>q-ee),[e]),P=V.length,W=Math.max(68,P>1?F/(P-1):0),R=o.useMemo(()=>new Map(V.map((q,ee)=>[q,ee])),[V]),D=q=>{const ee=R.get(q.deg)??0,ie=k+(ee-(P-1)/2)*W,ve=z>1?Math.min(68,Z/(z-1)):0,me=ve*(z-1),oe=T+(Z-me)/2,fe=z===1?T+Z*.4:oe+(z-(q.row??1))*ve;return{x:ie,y:fe}},I=q=>{const ee=H(q),ie=D(q);return{x:Da(ee.x,ie.x,N),y:Da(ee.y,ie.y,N)}},j={x:k,y:Da(k,J,N)},O=Math.round(g*1.2),$=Math.round(Math.max(16,Math.min(80,g*.7))),Y=[],ae=new Map;for(const q of e){const ee=q.row??1;ae.has(ee)||ae.set(ee,[]),ae.get(ee).push(q)}for(const[q,ee]of ae.entries()){if(ee.length<2)continue;const ie=[...ee].sort((He,it)=>He.deg-it.deg),ve=ie.map(He=>I(He)),me=ie.map(He=>He.deg),oe=me[me.length-1]-me[0],fe=oe/(me.length-1),ge=360-oe,Ee=ie.length>=3&&fe>0&&ge<=fe*1.5,Ie=Math.round(E(q)*1e3)/1e3,Le=(He,it,Qe,Ye)=>{const re=(it.angleDeg-He.angleDeg+540)%360-180;if(re===0)return`L ${Ye.x} ${Ye.y}`;if(N===0)return`A ${Ie} ${Ie} 0 0 ${re>0?1:0} ${Ye.x} ${Ye.y}`;const Re=(He.angleDeg+re/2)*Math.PI/180,te={x:k+Ie*Math.cos(Re),y:k+Ie*Math.sin(Re)},we={x:(Qe.x+Ye.x)/2,y:(Qe.y+Ye.y)/2},We={x:Da(te.x,we.x,N),y:Da(te.y,we.y,N)},Be={x:2*We.x-we.x,y:2*We.y-we.y};return`Q ${Be.x} ${Be.y} ${Ye.x} ${Ye.y}`},Je=Ee?[...ie,ie[0]]:ie,et=Ee?[...ve,ve[0]]:ve;let Ve=`M ${et[0].x} ${et[0].y}`;for(let He=1;He<et.length;He++)Ve+=" "+Le(Je[He-1],Je[He],et[He-1],et[He]);Y.push({key:`arc-${q}`,d:Ve})}const K=o.useMemo(()=>new Set(s??[]),[s]),ne=q=>({idle:"",active:w("soundCompass.state.active","\uC18C\uB9AC \uB098\uB294 \uC911"),played:w("soundCompass.state.played","\uB4E4\uC74C"),correct:w("soundCompass.state.correct","\uC815\uB2F5"),wrong:w("soundCompass.state.wrong","\uC624\uB2F5")})[q],be=q=>{if(r===q.id)return"active";if(u){if(q.id===l)return"correct";if(q.id===i&&i!==l)return"wrong"}return K.has(q.id)?"played":"idle"},ue=q=>r===q.id?"loop":u?q.id===l?"loop":null:c&&q.id===i?"once":null,pe=(q,ee)=>{switch(q){case"played":case"correct":return t.jsx(os,{size:ee});case"wrong":return t.jsx(Cs,{size:ee});default:return t.jsx(hs,{size:ee})}};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:[N===0&&e.map(q=>{const{x:ee,y:ie}=I(q);return t.jsx("line",{x1:j.x,y1:j.y,x2:ee,y2:ie,stroke:"#dde3ec",strokeWidth:"1"},q.id)}),Y.map(q=>t.jsx("path",{d:q.d,fill:"none",stroke:"#dde3ec",strokeWidth:"1"},q.key))]}),C&&!b&&t.jsx("div",{className:"sound-compass__pulse sound-compass__pulse--active sound-compass__pulse--center",style:{width:O,height:O,left:j.x-O/2,top:j.y-O/2}}),f?t.jsx("button",{type:"button",className:`sound-compass__center sound-compass__center--button${b?" sound-compass__center--disabled":""}`,style:{width:O,height:O,left:j.x,top:j.y},"aria-label":x,"aria-disabled":b||void 0,tabIndex:b?-1:0,onClick:b?void 0:f,children:t.jsx(br,{size:$,color:"currentColor",strokeWidth:1.5})}):t.jsx("div",{className:"sound-compass__center",style:{width:O,height:O,left:j.x,top:j.y},children:t.jsx(br,{size:$,color:"currentColor",strokeWidth:1.5})}),e.map((q,ee)=>{const{x:ie,y:ve}=I(q),me=be(q),oe=ue(q),fe={...v!==void 0||A?{"--shortcut-badge-scale":String(v??Math.max(.75,Math.min(3,g/56)))}:null,pointerEvents:m?"auto":"none",cursor:m?"pointer":"default",zIndex:me!=="idle"?10:1},ge=g,Ee=Math.round(Math.max(10,Math.min(56,ge*.38))),Ie=Math.round(Math.max(7,Math.min(18,ge*.2))),Le=Math.round(Math.max(10,Math.min(56,ge*.4))),Je=y==="answered"&&(me==="played"||me==="correct"||me==="wrong"),et=y===!0||Je,Ve=!Je;return t.jsxs("div",{className:"sound-compass__speaker-pos",style:{...fe,left:ie-ge/2,top:ve-ge/2},children:[oe&&t.jsx("div",{className:`sound-compass__pulse sound-compass__pulse--${me}`+(oe==="once"?" sound-compass__pulse--once":""),style:{width:ge,height:ge,...oe==="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:m?0:-1,"aria-disabled":m?void 0:!0,onClick:m?()=>h?.(q.id):void 0,className:`sound-compass__speaker-btn sound-compass__speaker-btn--${me}`,style:{width:ge,height:ge},"aria-label":ne(me)?`${q.label}, ${ne(me)}`:q.label,"aria-pressed":i!=null?q.id===i:void 0,children:[et&&pe(me,Ee),Ve&&t.jsx("span",{className:"sound-compass__speaker-number",style:{fontSize:y===!0?Ie:Le},children:ee+1})]}),q.shortcut&&t.jsx(Sl,{keys:q.shortcut,anchor:_,className:"sound-compass__speaker-shortcut"})]},q.id)})]})})}function e4({children:e,position:n="top-left",size:a=24,className:r=""}){return t.jsx("span",{className:De("circle-badge","circle-badge--number",`circle-badge--${a}`,`circle-badge--${n}`,r),children:e})}function t4({orientation:e="horizontal",label:n,className:a=""}){const r=De("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 jl({checked:e,onChange:n,name:a,value:r,disabled:s=!1,label:i,className:l=""}){const u=o.useId();return t.jsxs("label",{className:`radio${s?" radio--disabled":""} ${l}`.trim(),htmlFor:u,children:[t.jsx("input",{id:u,type:"radio",name:a,value:r,checked:e,disabled:s,onChange:c=>n?.(c.target.checked)}),t.jsx("span",{className:"radio__dot"}),i&&t.jsx("span",{className:"radio__label body-2",children:i})]})}function n4({options:e,value:n,onChange:a,name:r,disabled:s=!1,direction:i="vertical",className:l="",ariaLabel:u}){const c=o.useId(),d=r??`radio-group-${c}`;return t.jsx("div",{className:`radio-group radio-group--${i} ${l}`.trim(),role:"radiogroup","aria-label":u,children:e.map(p=>t.jsx(jl,{name:d,value:p.value,checked:n===p.value,disabled:s||p.disabled,label:p.label,onChange:m=>{m&&a?.(p.value)}},p.value))})}const a4={info:"info",success:"check-circle",warning:"alert-triangle",danger:"alert-circle"};function r4({tone:e="info",title:n,message:a,children:r,dismissible:s=!1,onDismiss:i,live:l,className:u=""}){const{t:c}=ye.useTranslation(),[d,p]=o.useState(!1),m=o.useRef(null),h=o.useCallback(()=>{const C=m.current;C&&C.contains(document.activeElement)&&Ua(C),p(!0),i?.()},[i]);if(d)return null;const g=De("alert",`alert--${e}`,u),y=l??(e==="danger"||e==="warning"?"assertive":"polite"),f=y==="assertive"?"alert":y==="polite"?"status":void 0,x=!!n,b=!!(a||r);return t.jsxs("div",{ref:m,className:g,role:f,children:[t.jsxs("div",{className:"alert__body",children:[t.jsxs("div",{className:"alert__header",children:[t.jsx(Ke,{icon:a4[e],size:20,className:"alert__icon"}),x&&t.jsx("span",{className:"alert__title body-2",children:n}),!x&&b&&t.jsx("div",{className:"alert__message body-3",children:a||r})]}),x&&b&&t.jsx("div",{className:"alert__message alert__message--indented body-3",children:a||r})]}),s&&t.jsx("button",{type:"button",className:"alert__dismiss",onClick:h,"aria-label":c("common.close","\uB2EB\uAE30"),children:"\xD7"})]})}const o4={ready:"search",guide:"info",error:"circle-alert"};function s4(e,n){const a=n.filter(Boolean);if(a.length===0)return e;const r=[];let s=0,i=0;for(const l of a){const u=e.indexOf(l,s);u<0||(u>s&&r.push(e.slice(s,u)),r.push(t.jsx("strong",{className:"search-summary__em body-2",children:l},i++)),s=u+l.length)}return s<e.length&&r.push(e.slice(s)),r}function i4({status:e="guide",label:n,children:a,emphasis:r,icon:s,className:i=""}){const l=s===!1?null:s??o4[e],u=De("search-summary",`search-summary--${e}`,i),c=n??a,d=typeof c=="string"&&r&&r.length>0?s4(c,r):c;return t.jsxs("div",{className:u,role:"status","aria-live":"polite",children:[l!=null&&t.jsx(Ke,{icon:l,size:18,className:"search-summary__icon"}),t.jsx("span",{className:"search-summary__text body-2",children:d})]})}function Ea({title:e,items:n}){const{t:a}=ye.useTranslation(),{anchorRect:r,openAt:s,close:i}=wa(),l=o.useRef(null),u=Ur(!!r,(c,d)=>{c&&d?s(l.current?.querySelector("button")??d):i()},l);return t.jsxs("span",{ref:l,style:{display:"contents"},children:[t.jsx(de,{htmlType:"button",size:24,type:"dot",icon:"info",variant:"transparent-gray",useBorder:!1,selected:!!r,ariaLabel:a("common.info","\uC124\uBA85"),onPointerEnter:c=>{ta(c)||s(c.currentTarget)},onPointerLeave:c=>{ta(c)||i()},onClick:c=>{u.touchPress(c.currentTarget)},onFocus:c=>{na()||s(c.currentTarget)},onBlur:i}),r&&t.jsx(Vn,{title:e,items:n,showIndex:n.length>1,anchorRect:r,onClose:i})]})}function l4({items:e=[],value:n,onChange:a,className:r="",size:s=40}){const i=o.useId(),{t:l}=ye.useTranslation(),u=o.useRef(null),c=e.find(f=>!f.disabled)?.key,d=e.some(f=>f.key===n)?n:c??e[0]?.key,p=e.find(f=>f.key===d&&!f.disabled)?.key??c,m=()=>Array.from(u.current?.querySelectorAll('[role="tab"]:not(:disabled)')??[]),h=(f,x=m())=>{if(x.length===0)return;const b=(f%x.length+x.length)%x.length;x[b]?.focus(),x[b]?.click()},g=f=>{if(!["ArrowRight","ArrowDown","ArrowLeft","ArrowUp","Home","End"].includes(f.key))return;f.preventDefault();const x=m(),b=x.indexOf(f.currentTarget);f.key==="ArrowRight"||f.key==="ArrowDown"?h(b+1,x):f.key==="ArrowLeft"||f.key==="ArrowUp"?h(b-1,x):f.key==="Home"?h(0,x):h(x.length-1,x)},y=e.find(f=>f.key===d);return t.jsxs("div",{className:`tabs ${r}`.trim(),children:[t.jsx("div",{ref:u,className:`tabs__list tabs__list--${s}`,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:()=>{f.key!==n&&a?.(f.key)},onKeyDown:g,children:f.label},f.key))}),y&&t.jsx("div",{id:`tabs__panel-${i}-${y.key}`,role:"tabpanel","aria-labelledby":`tabs__tab-${i}-${y.key}`,tabIndex:0,className:"tabs__panel",children:y.panel},y.key)]})}const u4={xs:12,sm:16,md:20,lg:28,xl:36};function c4(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 d4({src:e,name:n,size:a="md",shape:r="circle",className:s=""}){const{t:i}=ye.useTranslation(),[l,u]=o.useState(null),c=!!e&&l===e,d=n?c4(n):"",p=!!e&&!c,m=!p&&!!d,h=n||i("avatar.ariaLabel","\uC0AC\uC6A9\uC790 \uC544\uBC14\uD0C0");return t.jsxs("span",{className:`avatar avatar--${a} avatar--${r} ${s}`.trim(),role:"img","aria-label":h,children:[p&&t.jsx("img",{className:"avatar__image",src:e,alt:h,onError:()=>u(e??null)}),!p&&m&&t.jsx("span",{className:"avatar__initials","aria-hidden":"true",children:d}),!p&&!m&&t.jsx(Ke,{icon:"user-round",size:u4[a],className:"avatar__icon"})]})}function p4(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(),s=e.type.toLowerCase();return a.some(i=>{const l=i.toLowerCase();return l.startsWith(".")?r.endsWith(l):l.endsWith("/*")?s.startsWith(l.slice(0,-1)):s===l})}function m4({onFilesSelected:e,accept:n,multiple:a=!1,disabled:r=!1,showFileList:s=!0,files:i,onRemove:l,className:u=""}){const{t:c}=ye.useTranslation(),d=o.useRef(null),[p,m]=o.useState(!1),[h,g]=o.useState([]),y=i??h,f=w=>{if(!w||w.length===0)return;const N=Array.from(w).filter(B=>p4(B,n));if(N.length===0)return;const k=a?N:N.slice(0,1);if(i===void 0){const B=a?[...y,...k]:k;g(B),e?.(B)}else e?.(k)},x=w=>{w.preventDefault(),!r&&m(!0)},b=w=>{w.preventDefault(),m(!1)},C=w=>{w.preventDefault(),m(!1),!r&&f(w.dataTransfer.files)},_=w=>{const N=w.target;try{f(N.files)}finally{N.value=""}},v=()=>{r||d.current?.click()},A=w=>{if(!r&&(l?.(w),i===void 0)){const N=y.filter((k,B)=>B!==w);g(N),l||e?.(N)}};return t.jsxs("div",{className:`file-upload ${u}`.trim(),children:[t.jsxs("div",{className:De("file-upload__dropzone",p&&"file-upload__dropzone--dragging",r&&"file-upload__dropzone--disabled"),role:"button",tabIndex:r?-1:0,"aria-disabled":r,onClick:v,onKeyDown:w=>{(w.key==="Enter"||w.key===" ")&&(w.preventDefault(),v())},onDragOver:x,onDragLeave:b,onDrop:C,children:[t.jsx(Ke,{icon:"upload",size:24,className:"file-upload__icon"}),t.jsx("span",{className:"file-upload__prompt body-2",children:c("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:w=>{w.stopPropagation(),v()},children:c("fileUpload.browseButton","\uD30C\uC77C \uC120\uD0DD")}),t.jsx("input",{ref:d,type:"file",className:"file-upload__input",accept:n,multiple:a,disabled:r,onChange:_,tabIndex:-1})]}),s&&y.length>0&&t.jsx("ul",{className:"file-upload__list",children:y.map((w,N)=>t.jsxs("li",{className:"file-upload__list-item body-3",children:[t.jsx("span",{className:"file-upload__file-name body-3",children:w.name}),t.jsx("button",{type:"button",className:"file-upload__remove-button","aria-label":c("fileUpload.removeAriaLabel",{name:w.name}),disabled:r,onClick:()=>A(N),children:t.jsx(Ke,{icon:"x",size:14})})]},`${w.name}-${N}`))})]})}function h4({items:e,className:n=""}){const{t:a}=ye.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,s)=>{const i=s===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}):r.href?t.jsx("a",{className:"breadcrumb__link body-3",href:r.href,target:r.target,rel:r.rel??(r.target==="_blank"?"noopener noreferrer":void 0),onClick:r.onClick,children:r.label}):r.onClick?t.jsx("button",{type:"button",className:"breadcrumb__link body-3",onClick:r.onClick,children:r.label}):t.jsx("span",{className:"breadcrumb__text body-3",children:r.label}),!i&&t.jsx(Ke,{icon:"chevron-right",size:14,className:"breadcrumb__separator"})]},s)})})})}const C4={small:14,medium:20,large:28};function f4({value:e,onChange:n,max:a=5,readOnly:r=!1,size:s="medium",ariaLabel:i,className:l=""}){const{t:u}=ye.useTranslation(),c=r||!n,[d,p]=o.useState(null),m=c?e:Number.isFinite(e)?Math.round(e):0,h=d??m,g=C4[s],y=w=>{w!==e&&n?.(w)},f=w=>{c||y(w)},x=w=>{c||na()||p(w)},b=o.useRef(null),C=w=>{const N=Math.min(a,Math.max(1,w));y(N),Array.from(b.current?.querySelectorAll("[data-star]")??[]).find(k=>k.dataset.star===String(N))?.focus()},_=w=>{if(!c){switch(w.key){case"ArrowRight":case"ArrowUp":C((m||0)+1);break;case"ArrowLeft":case"ArrowDown":C((m||1)-1);break;case"Home":C(1);break;case"End":C(a);break;default:return}w.preventDefault()}},v=m>=1&&m<=a?Math.round(m):1,A=()=>{c||p(null)};return t.jsx("div",{className:`rating rating--${s}${c?" rating--readOnly":""} ${l}`.trim(),ref:b,onKeyDown:_,role:c?"img":"radiogroup","aria-label":c?u("rating.valueLabel",{value:e,max:a}):i??u("rating.groupLabel","\uBCC4\uC810"),onMouseLeave:A,onPointerUp:w=>{w.pointerType==="touch"&&A()},onPointerCancel:w=>{w.pointerType==="touch"&&A()},children:Array.from({length:a},(w,N)=>{const k=N+1,B=Math.max(0,Math.min(1,h-N)),S=B>0&&B<1,E=t.jsxs("span",{className:"rating__star-wrap",children:[t.jsx(Ke,{icon:"star",size:g,className:"rating__star rating__star--empty"}),B>0&&t.jsx("span",{className:`rating__star-fill${S?" rating__star-fill--half":""}`,style:S?{width:`${B*100}%`}:void 0,children:t.jsx(Ke,{icon:"star",size:g,className:"rating__star rating__star--filled"})})]});return c?t.jsx("span",{className:"rating__item","aria-hidden":"true",children:E},k):t.jsx("button",{type:"button",className:"rating__item rating__item--interactive",role:"radio","aria-checked":m===k,"aria-label":u("rating.starLabel",{n:k}),"data-star":k,tabIndex:k===v?0:-1,onClick:()=>f(k),onMouseEnter:()=>x(k),children:E},k)})})}const g4=20,b4=["#499cdf","#4dcdc0","#2fae9e","#e6b94e","#d9534f","#e06b68","#bfc7d1"];function y4({value:e,onChange:n,palette:a=b4,size:r=40,className:s="",ariaLabel:i}){const{t:l}=ye.useTranslation();return t.jsx("div",{className:`color-picker ${s}`.trim(),role:"group","aria-label":i,children:a.map(u=>{const c=e?.toLowerCase()===u.toLowerCase();return t.jsx("button",{type:"button",className:`color-picker__swatch color-picker__swatch--${r}`,style:{backgroundColor:u},onClick:()=>n(u),"aria-pressed":c,"aria-label":c?`${u} ${l("colorPicker.selected","\uC120\uD0DD\uB428")}`:u,children:c&&t.jsx(Ke,{icon:"check",size:g4,className:"color-picker__check"})},u)})})}function Tl({icon:e,label:n,tooltip:a,wrapperStyle:r,color:s,bgColor:i,useHover:l=!0,iconSize:u="medium"}){const c=u==="small",d=De("category-icon",c?"category-icon--small":""),p=c?16:20,m=o.useRef(null),[h,g]=o.useState(!1),y=o.useMemo(()=>{const w=r&&typeof r=="object"?{...r}:{};return!s&&!i?w:{...w,...s?{color:s,"--t-item-fg":s}:{},...i?{"--t-item-bg":i}:{}}},[r,s,i]),f=a||n,[x,b]=o.useState(null);o.useLayoutEffect(()=>{h&&b(m.current?.getBoundingClientRect()??null)},[h]),o.useEffect(()=>{if(!l&&h)try{g(!1)}catch{}},[l,h]),o.useEffect(()=>{if(!h)return;const w=N=>{const k=m.current;if(!k)return;const B=N.target;B&&!k.contains(B)&&g(!1)};return document.addEventListener("pointerdown",w,!0),()=>document.removeEventListener("pointerdown",w,!0)},[h]);const C=o.useCallback(()=>{l&&g(!0)},[l]),_=o.useCallback(()=>{l&&g(!1)},[l]),v=o.useCallback(()=>g(!1),[]),A=o.useCallback(w=>{if(w.key==="Escape"){g(!1);return}(w.key==="Enter"||w.key===" ")&&(w.preventDefault(),g(N=>!N))},[]);return t.jsxs("span",{ref:m,className:"category-icon__wrap",onPointerEnter:C,onPointerLeave:_,onFocus:C,onBlur:_,onKeyDown:A,role:"button",tabIndex:0,"aria-label":typeof f=="string"?f:void 0,"aria-haspopup":!!f,"aria-expanded":h,"data-tooltip-ignore":!0,children:[t.jsx(Ke,{icon:e,label:n,className:d,imgClassName:"category-icon__image",maskClassName:"category-icon__mask",svgClassName:"category-icon__svg",wrapperStyle:y,size:p}),h&&f&&t.jsx(vn,{anchorRect:x,text:typeof f=="string"?f:void 0,offset:8,onClose:v,className:"category-icon__tooltip",ariaLabel:typeof f=="string"?f:void 0})]})}let jn=null;function Xa(e){if(jn&&jn!==e)try{jn()}catch{}return jn=e,()=>{jn===e&&(jn=null)}}function Ja(e){if(jn===e){jn=null;try{e()}catch{}}}function v4(e,n){if(!e)return{previewCodes:[],previewBucket:null};const a=e,r=l=>l.map(u=>u?.contextCode||u?.context_code).filter(Boolean).map(String);if(n==="LISTEN_IN_NOISE"){const l=a.sentences||a.items||[],u=Array.isArray(l)&&l.length>0?r(l):[];return u.length===0&&(a.contextCode||a.context_code)&&u.push(String(a.contextCode||a.context_code)),{previewCodes:u,previewBucket:"LIN_D"}}if(n==="SHORT_STORY"){const l=a.items||a.sentences||[],u=Array.isArray(l)&&l.length>0?r(l):[];return u.length===0&&(a.contextCode||a.context_code)&&u.push(String(a.contextCode||a.context_code)),{previewCodes:u,previewBucket:"SHORT_S"}}if(n==="LONG_STORY"){const l=a.items||a.sentences||[],u=Array.isArray(l)&&l.length>0?r(l):[];return u.length===0&&(a.contextCode||a.context_code)&&u.push(String(a.contextCode||a.context_code)),{previewCodes:u,previewBucket:"LONG"}}if(n==="ORDERING_SENTENCE"){const l=a.sentences||a.items||[],u=Array.isArray(l)&&l.length>0?r(l):[];return u.length===0&&(a.contextCode||a.context_code)&&u.push(String(a.contextCode||a.context_code)),{previewCodes:u,previewBucket:"LIN_D"}}const s=a.sentences||a.items||[],i=r(Array.isArray(s)?s:[]);return i.length===0&&(a.contextCode||a.context_code)&&i.push(String(a.contextCode||a.context_code)),{previewCodes:i,previewBucket:null}}function x4(e,n){const[a,r]=o.useState(!1),[s,i]=o.useState(-1),[l,u]=o.useState({key:"",urls:[]}),c=o.useRef(null),d=o.useRef(!1),p=o.useRef(null),m=o.useRef(null),[h,g]=o.useState(!1),y=o.useRef([]),{previewCodes:f,previewBucket:x}=v4(e,n),b=`${f.join(",")}|${x??""}`,C=o.useMemo(()=>l.key===b?l.urls:[],[l,b]);o.useEffect(()=>{if(!f.length)return;let v=!1;return(async()=>{const A=[],w=[];for(const N of f)try{const k=Vs(N,x);if(!k){A.push("");continue}let B=null;try{B=await Ws(k)}catch{}if(!B)try{const S=await qs(k);S&&(B=URL.createObjectURL(S),w.push(B))}catch{}A.push(B??"")}catch{A.push("")}v?w.forEach(N=>{try{URL.revokeObjectURL(N)}catch{}}):(y.current.forEach(N=>{try{URL.revokeObjectURL(N)}catch{}}),y.current=w,u({key:b,urls:A}))})(),()=>{v=!0}},[f.join(","),x]),o.useEffect(()=>()=>{y.current.forEach(v=>{try{URL.revokeObjectURL(v)}catch{}}),y.current=[]},[]);const _=o.useCallback(async v=>{if(v.stopPropagation(),v.preventDefault(),d.current){p.current&&Ja(p.current),d.current=!1;try{c.current?.pause()}catch{}r(!1),i(-1);return}if(!C.filter(Boolean).length)return;let A=null;const w=()=>{d.current=!1;try{c.current?.pause()}catch{}A?.()};p.current=w;const N=Xa(w);d.current=!0,r(!0);for(let k=0;k<C.length&&d.current;k++){const B=C[k];if(B){i(k);try{await new Promise((S,E)=>{A=S;const H=new Audio(B);c.current=H,H.onended=()=>S(),H.onerror=()=>E(),H.play().catch(E)})}catch{break}}}N(),p.current===w&&(p.current=null,d.current=!1,r(!1),i(-1))},[C]);return o.useEffect(()=>()=>{p.current&&Ja(p.current),d.current=!1;try{c.current?.pause()}catch{}c.current=null},[]),{playing:a,playingIndex:s,previewUrls:C,previewHover:h,setPreviewHover:g,previewBtnRef:m,handlePreview:_}}const _4=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 s=r;return s.sentence||s.text||s.context||s.question||s.title||""}return""}).filter(r=>typeof r=="string"&&r.trim().length>0).map(r=>r.trim()):[]};function oo(e){const{index:n,type:a,trainingData:r,ariaLabel:s,depth:i,renderPopup:l,completed:u,completedIds:c,selectedIds:d,tooltipText:p,useDescriptionTooltip:m=!1,onRemove:h,hideCheckBadge:g=!1,showTypeLabel:y=!1,onComplete:f,onSelect:x,onMore:b,countLabelOverride:C,size:_="square"}=e||{},{t:v}=ye.useTranslation(),[A,w]=o.useState(!1),N=o.useRef(null),[k,B]=o.useState(!1);o.useEffect(()=>{N.current?.matches(":hover")&&B(!0)},[]);const{playing:S,playingIndex:E,previewUrls:H,previewHover:z,setPreviewHover:U,previewBtnRef:T,handlePreview:L}=x4(r,a?.key),F=o.useCallback(()=>{x?x():w(!0)},[x]),Z=o.useCallback(()=>w(!1),[]),J=o.useCallback(()=>B(!0),[]),V=o.useCallback(()=>B(!1),[]),P=o.useCallback(()=>U(!0),[U]),W=o.useCallback(()=>U(!1),[U]),[R,D]=o.useState(null);o.useLayoutEffect(()=>{z&&D(T.current?.getBoundingClientRect()??null)},[z,T]);const[I,j]=o.useState(null);o.useLayoutEffect(()=>{k&&!A&&m&&j(N.current?.getBoundingClientRect()??null)},[k,A,m]);const O=o.useCallback(re=>{re.target===re.currentTarget&&(re.key==="Enter"||re.key===" ")&&(re.preventDefault(),F())},[F]),$=r||null,Y=o.useMemo(()=>{if(!m)return null;const re=p?(Array.isArray(p)?p:[p]).filter(Boolean):null,Re=re&&re.length>0?re:_4($);return Re&&Re.length>0?Re:null},[m,p,$]),ae=o.useCallback(re=>{re.stopPropagation(),h?.()},[h]),K=o.useCallback(re=>re.stopPropagation(),[]),ne=o.useCallback(re=>{typeof f=="function"&&f(re)},[f]),be=u||(c&&r?.id!=null?c.has(String(r.id)):!1),ue=!be&&(d!=null&&r?.id!=null?d.has(String(r.id)):!1);tl("speechear.popup.close",Z);const pe=pi(),q=`${a?.label||""} ${n+1}`,ee=$?.title||$?.name||q;let ie=a?.icon,ve,me="",oe="";try{const re=$?.category_0||$?.category_main_code||$?.category_main,Re=$?.category_1||$?.category_sub_code||$?.category_sub,te=pe.find(we=>we.key===re);te?.icon&&(ie=te.icon),!ve&&te?.color&&(ve={"--t-item-fg":te.color}),!ve&&$?.iconColor&&(ve={"--t-item-fg":$.iconColor}),me=te?v(`topic.${te.key}`,{defaultValue:te.label||""}):"";try{const we=te?.subs?.find(We=>We.key===Re);oe=we?v(`topic.sub.${we.key}`,{defaultValue:we.label||""}):""}catch{}}catch{}const fe=oe?`${me} / ${oe}`:me||a?.label||ee,ge=re=>v("training.countQuestions",{n:re}),Ee=re=>v("training.countSentences",{n:re});let Ie="";try{if($)if(a?.key==="LISTEN_IN_NOISE"){let re=0;Array.isArray($.items)&&$.items.length>0?re=$.items.length:Array.isArray($.sentences)&&$.sentences.length>0?re=$.sentences.length:$.sentences&&(re=1),Ie=Ee(re)}else if(a?.key==="SHORT_STORY"){let re=1;Array.isArray(r?.items)?re=r.items.length:Array.isArray(r?.raw&&r.raw?.items)?re=r.raw.items.length:Array.isArray($?.questions)?re=$.questions.length:Array.isArray($?.sentences)&&(re=$.sentences.length),Ie=ge(re)}else if(a?.key==="LONG_STORY"){let re=1;if(Array.isArray($.items)&&$.items.length>0){const Re=$.items.reduce((te,we)=>{const We=we.questionItems;return Array.isArray(We)?te+We.length:Array.isArray(we.questions)?te+we.questions.length:te},0);re=Re>0?Re:$.items.length}else Array.isArray($.questions)&&$.questions.length>0?re=$.questions.length:Array.isArray($.sentences)&&$.sentences.length>0&&(re=$.sentences.length);Ie=ge(re)}else if(a?.key==="ORDERING_SENTENCE"){let re=1;Array.isArray($.items)&&$.items.length>0?re=$.items.length:Array.isArray($.sentences)&&$.sentences.length>0&&(re=$.sentences.length),Ie=Ee(re)}else Array.isArray($.items)&&(Ie=$.items.length>0?ge($.items.length):"")}catch{}const Le=_==="row",Je=_==="list"||Le,et=_==="compact",Ve=_==="small",He=Ve&&a?.key?FC().find(re=>re.key===a.key):void 0,it=He?mi[He.key]:void 0,Qe=He?it?v(`trainingType.${it}.title`,{defaultValue:He.label}):He.label??"":"",Ye=!!y&&!!a?.label&&a.label!==String(ee)||Ve&&!!Qe&&Qe!==String(ee);return t.jsxs(t.Fragment,{children:[t.jsxs("div",{ref:N,className:`training-block-button${Je?" training-block-button--list":""}${Le?" training-block-button--row":""}${et?" training-block-button--compact":""}${Ve?" training-block-button--small":""}${be?" training-block-button--completed":""}${ue?" training-block-button--selected":""}${Ye&&!Ve?" training-block-button--withType":""}${Ve&&!Ye?" training-block-button--no-type-label":""}`,onClick:F,onPointerEnter:J,onPointerLeave:V,role:"button",tabIndex:0,onKeyDown:O,"aria-label":typeof s=="string"?s:typeof ee=="string"?ee:void 0,title:!m&&p&&(Array.isArray(p)?p.filter(Boolean).join(`
852
+ ${v.badge}`:v.badge:void 0;if(w&&c(v.code))return null;if(!v.badge&&!p)return m(v)?null:t.jsxs("div",{className:`payment-plan__pricing-row payment-plan__pricing-row--static${v.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:v.label})}),t.jsx("div",{className:"payment-plan__pricing-row-price",children:t.jsx("span",{className:"payment-plan__pricing-current h1",children:Kb(B)})})]},v.id);const E=s.tier??(C?s.title:void 0),H=t.jsx(Nl,{showPrice:!0,product:{type:_,code:v.code,name:k,label:E,price:B,originalPrice:v.originals?.[l]??void 0,discountLabel:S},bg:Gb(C,s.id)}),z=()=>i?.({...v,productId:s.id,productTitle:s.title,preview:H});return t.jsx("div",{className:"payment-plan__pricing-card",onClick:z,onKeyDown:i?U=>{U.target===U.currentTarget&&(U.key==="Enter"||U.key===" ")&&(U.preventDefault(),z())}:void 0,role:i?"button":void 0,tabIndex:i?0:void 0,children:H},v.id)})})})})]})}function Zb({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 ro='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 Dl={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"#c9c9c9"};function Xb(){const e=bt(Dl,_n,wn);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("${ro}")`}})})}const El={text:"#ffffff",sub:"var(--color-lightGray)",logoBase:"Logo_speechearManager_kr",logoColor:"_white",copyrightColor:"#ffffff"};function Jb(e={}){const n=bt(El,_n,wn);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("${Na}")`}})]})}function Sl({keys:e,anchor:n="top-right",scale:a,className:r=""}){const s=Array.isArray(e)?e:[e];return t.jsx("span",{className:De("shortcut-badge",`shortcut-badge--${n}`,r),style:a===void 0?void 0:{"--shortcut-badge-scale":String(a)},children:s.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 Da=(e,n,a)=>e+(n-e)*a;function Qb({speakers:e,size:n=300,viewT:a=0,activeSpeakerId:r=null,playedIds:s,selectedId:i=null,answerId:l=null,showFeedback:u=!1,pulseSelected:c=!1,pulseSelectedDuration:d,pulseScale:p,clickable:m=!1,onSelectSpeaker:h,buttonSize:g=40,showIcon:y=!0,onCenterClick:f,centerLabel:x,centerDisabled:b=!1,centerAttention:C=!1,shortcutAnchor:_="top-right",shortcutScale:v,scaleShortcut:A=!1}){const{t:w}=ye.useTranslation(),N=Math.max(0,Math.min(1,a)),k=n/2,B=110/300,S=.18,E=q=>n*(B+(q-1)*S),H=q=>{const ee=E(q.row??1),ie=q.angleDeg*Math.PI/180;return{x:k+ee*Math.cos(ie),y:k+ee*Math.sin(ie)}},z=Math.max(...e.map(q=>q.row??1),1),U=n*.08,T=n*.1,L=n*.24,F=n-2*U,Z=n-T-L,J=n-L/2,V=o.useMemo(()=>[...new Set(e.map(q=>q.deg))].sort((q,ee)=>q-ee),[e]),P=V.length,W=Math.max(68,P>1?F/(P-1):0),R=o.useMemo(()=>new Map(V.map((q,ee)=>[q,ee])),[V]),D=q=>{const ee=R.get(q.deg)??0,ie=k+(ee-(P-1)/2)*W,ve=z>1?Math.min(68,Z/(z-1)):0,me=ve*(z-1),oe=T+(Z-me)/2,fe=z===1?T+Z*.4:oe+(z-(q.row??1))*ve;return{x:ie,y:fe}},I=q=>{const ee=H(q),ie=D(q);return{x:Da(ee.x,ie.x,N),y:Da(ee.y,ie.y,N)}},j={x:k,y:Da(k,J,N)},O=Math.round(g*1.2),$=Math.round(Math.max(16,Math.min(80,g*.7))),Y=[],ae=new Map;for(const q of e){const ee=q.row??1;ae.has(ee)||ae.set(ee,[]),ae.get(ee).push(q)}for(const[q,ee]of ae.entries()){if(ee.length<2)continue;const ie=[...ee].sort((He,it)=>He.deg-it.deg),ve=ie.map(He=>I(He)),me=ie.map(He=>He.deg),oe=me[me.length-1]-me[0],fe=oe/(me.length-1),ge=360-oe,Ee=ie.length>=3&&fe>0&&ge<=fe*1.5,Ie=Math.round(E(q)*1e3)/1e3,Le=(He,it,Qe,Ye)=>{const re=(it.angleDeg-He.angleDeg+540)%360-180;if(re===0)return`L ${Ye.x} ${Ye.y}`;if(N===0)return`A ${Ie} ${Ie} 0 0 ${re>0?1:0} ${Ye.x} ${Ye.y}`;const Re=(He.angleDeg+re/2)*Math.PI/180,te={x:k+Ie*Math.cos(Re),y:k+Ie*Math.sin(Re)},we={x:(Qe.x+Ye.x)/2,y:(Qe.y+Ye.y)/2},We={x:Da(te.x,we.x,N),y:Da(te.y,we.y,N)},Be={x:2*We.x-we.x,y:2*We.y-we.y};return`Q ${Be.x} ${Be.y} ${Ye.x} ${Ye.y}`},Je=Ee?[...ie,ie[0]]:ie,et=Ee?[...ve,ve[0]]:ve;let Ve=`M ${et[0].x} ${et[0].y}`;for(let He=1;He<et.length;He++)Ve+=" "+Le(Je[He-1],Je[He],et[He-1],et[He]);Y.push({key:`arc-${q}`,d:Ve})}const K=o.useMemo(()=>new Set(s??[]),[s]),ne=q=>({idle:"",active:w("soundCompass.state.active","\uC18C\uB9AC \uB098\uB294 \uC911"),played:w("soundCompass.state.played","\uB4E4\uC74C"),correct:w("soundCompass.state.correct","\uC815\uB2F5"),wrong:w("soundCompass.state.wrong","\uC624\uB2F5")})[q],be=q=>{if(r===q.id)return"active";if(u){if(q.id===l)return"correct";if(q.id===i&&i!==l)return"wrong"}return K.has(q.id)?"played":"idle"},ue=q=>r===q.id?"loop":u?q.id===l?"loop":null:c&&q.id===i?"once":null,pe=(q,ee)=>{switch(q){case"played":case"correct":return t.jsx(os,{size:ee});case"wrong":return t.jsx(Cs,{size:ee});default:return t.jsx(hs,{size:ee})}};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:[N===0&&e.map(q=>{const{x:ee,y:ie}=I(q);return t.jsx("line",{x1:j.x,y1:j.y,x2:ee,y2:ie,stroke:"#dde3ec",strokeWidth:"1"},q.id)}),Y.map(q=>t.jsx("path",{d:q.d,fill:"none",stroke:"#dde3ec",strokeWidth:"1"},q.key))]}),C&&!b&&t.jsx("div",{className:"sound-compass__pulse sound-compass__pulse--active sound-compass__pulse--center",style:{width:O,height:O,left:j.x-O/2,top:j.y-O/2}}),f?t.jsx("button",{type:"button",className:`sound-compass__center sound-compass__center--button${b?" sound-compass__center--disabled":""}`,style:{width:O,height:O,left:j.x,top:j.y},"aria-label":x,"aria-disabled":b||void 0,tabIndex:b?-1:0,onClick:b?void 0:f,children:t.jsx(br,{size:$,color:"currentColor",strokeWidth:1.5})}):t.jsx("div",{className:"sound-compass__center",style:{width:O,height:O,left:j.x,top:j.y},children:t.jsx(br,{size:$,color:"currentColor",strokeWidth:1.5})}),e.map((q,ee)=>{const{x:ie,y:ve}=I(q),me=be(q),oe=ue(q),fe={...v!==void 0||A?{"--shortcut-badge-scale":String(v??Math.max(.75,Math.min(3,g/56)))}:null,pointerEvents:m?"auto":"none",cursor:m?"pointer":"default",zIndex:me!=="idle"?10:1},ge=g,Ee=Math.round(Math.max(10,Math.min(56,ge*.38))),Ie=Math.round(Math.max(7,Math.min(18,ge*.2))),Le=Math.round(Math.max(10,Math.min(56,ge*.4))),Je=y==="answered"&&(me==="played"||me==="correct"||me==="wrong"),et=y===!0||Je,Ve=!Je;return t.jsxs("div",{className:"sound-compass__speaker-pos",style:{...fe,left:ie-ge/2,top:ve-ge/2},children:[oe&&t.jsx("div",{className:`sound-compass__pulse sound-compass__pulse--${me}`+(oe==="once"?" sound-compass__pulse--once":""),style:{width:ge,height:ge,...oe==="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:m?0:-1,"aria-disabled":m?void 0:!0,onClick:m?()=>h?.(q.id):void 0,className:`sound-compass__speaker-btn sound-compass__speaker-btn--${me}`,style:{width:ge,height:ge},"aria-label":ne(me)?`${q.label}, ${ne(me)}`:q.label,"aria-pressed":i!=null?q.id===i:void 0,children:[et&&pe(me,Ee),Ve&&t.jsx("span",{className:"sound-compass__speaker-number",style:{fontSize:y===!0?Ie:Le},children:ee+1})]}),q.shortcut&&t.jsx(Sl,{keys:q.shortcut,anchor:_,className:"sound-compass__speaker-shortcut"})]},q.id)})]})})}function e4({children:e,position:n="top-left",size:a=24,className:r=""}){return t.jsx("span",{className:De("circle-badge","circle-badge--number",`circle-badge--${a}`,`circle-badge--${n}`,r),children:e})}function t4({orientation:e="horizontal",label:n,className:a=""}){const r=De("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 jl({checked:e,onChange:n,name:a,value:r,disabled:s=!1,label:i,className:l=""}){const u=o.useId();return t.jsxs("label",{className:`radio${s?" radio--disabled":""} ${l}`.trim(),htmlFor:u,children:[t.jsx("input",{id:u,type:"radio",name:a,value:r,checked:e,disabled:s,onChange:c=>n?.(c.target.checked)}),t.jsx("span",{className:"radio__dot"}),i&&t.jsx("span",{className:"radio__label body-2",children:i})]})}function n4({options:e,value:n,onChange:a,name:r,disabled:s=!1,direction:i="vertical",className:l="",ariaLabel:u}){const c=o.useId(),d=r??`radio-group-${c}`;return t.jsx("div",{className:`radio-group radio-group--${i} ${l}`.trim(),role:"radiogroup","aria-label":u,children:e.map(p=>t.jsx(jl,{name:d,value:p.value,checked:n===p.value,disabled:s||p.disabled,label:p.label,onChange:m=>{m&&a?.(p.value)}},p.value))})}const a4={info:"info",success:"check-circle",warning:"alert-triangle",danger:"alert-circle"};function r4({tone:e="info",title:n,message:a,children:r,dismissible:s=!1,onDismiss:i,live:l,className:u=""}){const{t:c}=ye.useTranslation(),[d,p]=o.useState(!1),m=o.useRef(null),h=o.useCallback(()=>{const C=m.current;C&&C.contains(document.activeElement)&&Ua(C),p(!0),i?.()},[i]);if(d)return null;const g=De("alert",`alert--${e}`,u),y=l??(e==="danger"||e==="warning"?"assertive":"polite"),f=y==="assertive"?"alert":y==="polite"?"status":void 0,x=!!n,b=!!(a||r);return t.jsxs("div",{ref:m,className:g,role:f,children:[t.jsxs("div",{className:"alert__body",children:[t.jsxs("div",{className:"alert__header",children:[t.jsx(Ke,{icon:a4[e],size:20,className:"alert__icon"}),x&&t.jsx("span",{className:"alert__title body-2",children:n}),!x&&b&&t.jsx("div",{className:"alert__message body-3",children:a||r})]}),x&&b&&t.jsx("div",{className:"alert__message alert__message--indented body-3",children:a||r})]}),s&&t.jsx("button",{type:"button",className:"alert__dismiss",onClick:h,"aria-label":c("common.close","\uB2EB\uAE30"),children:"\xD7"})]})}const o4={ready:"search",guide:"info",error:"circle-alert"};function s4(e,n){const a=n.filter(Boolean);if(a.length===0)return e;const r=[];let s=0,i=0;for(const l of a){const u=e.indexOf(l,s);u<0||(u>s&&r.push(e.slice(s,u)),r.push(t.jsx("strong",{className:"search-summary__em body-2",children:l},i++)),s=u+l.length)}return s<e.length&&r.push(e.slice(s)),r}function i4({status:e="guide",label:n,children:a,emphasis:r,icon:s,className:i=""}){const l=s===!1?null:s??o4[e],u=De("search-summary",`search-summary--${e}`,i),c=n??a,d=typeof c=="string"&&r&&r.length>0?s4(c,r):c;return t.jsxs("div",{className:u,role:"status","aria-live":"polite",children:[l!=null&&t.jsx(Ke,{icon:l,size:18,className:"search-summary__icon"}),t.jsx("span",{className:"search-summary__text body-2",children:d})]})}function Ea({title:e,items:n}){const{t:a}=ye.useTranslation(),{anchorRect:r,openAt:s,close:i}=wa(),l=o.useRef(null),u=Ur(!!r,(c,d)=>{c&&d?s(l.current?.querySelector("button")??d):i()},l);return t.jsxs("span",{ref:l,style:{display:"contents"},children:[t.jsx(de,{htmlType:"button",size:24,type:"dot",icon:"info",variant:"transparent-gray",useBorder:!1,selected:!!r,ariaLabel:a("common.info","\uC124\uBA85"),onPointerEnter:c=>{ta(c)||s(c.currentTarget)},onPointerLeave:c=>{ta(c)||i()},onClick:c=>{u.touchPress(c.currentTarget)},onFocus:c=>{na()||s(c.currentTarget)},onBlur:i}),r&&t.jsx(Vn,{title:e,items:n,showIndex:n.length>1,anchorRect:r,onClose:i})]})}function l4({items:e=[],value:n,onChange:a,className:r="",size:s=40}){const i=o.useId(),{t:l}=ye.useTranslation(),u=o.useRef(null),c=e.find(f=>!f.disabled)?.key,d=e.some(f=>f.key===n)?n:c??e[0]?.key,p=e.find(f=>f.key===d&&!f.disabled)?.key??c,m=()=>Array.from(u.current?.querySelectorAll('[role="tab"]:not(:disabled)')??[]),h=(f,x=m())=>{if(x.length===0)return;const b=(f%x.length+x.length)%x.length;x[b]?.focus(),x[b]?.click()},g=f=>{if(!["ArrowRight","ArrowDown","ArrowLeft","ArrowUp","Home","End"].includes(f.key))return;f.preventDefault();const x=m(),b=x.indexOf(f.currentTarget);f.key==="ArrowRight"||f.key==="ArrowDown"?h(b+1,x):f.key==="ArrowLeft"||f.key==="ArrowUp"?h(b-1,x):f.key==="Home"?h(0,x):h(x.length-1,x)},y=e.find(f=>f.key===d);return t.jsxs("div",{className:`tabs ${r}`.trim(),children:[t.jsx("div",{ref:u,className:`tabs__list tabs__list--${s}`,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:()=>{f.key!==n&&a?.(f.key)},onKeyDown:g,children:f.label},f.key))}),y&&t.jsx("div",{id:`tabs__panel-${i}-${y.key}`,role:"tabpanel","aria-labelledby":`tabs__tab-${i}-${y.key}`,tabIndex:0,className:"tabs__panel",children:y.panel},y.key)]})}const u4={xs:12,sm:16,md:20,lg:28,xl:36};function c4(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 d4({src:e,name:n,size:a="md",shape:r="circle",className:s=""}){const{t:i}=ye.useTranslation(),[l,u]=o.useState(null),c=!!e&&l===e,d=n?c4(n):"",p=!!e&&!c,m=!p&&!!d,h=n||i("avatar.ariaLabel","\uC0AC\uC6A9\uC790 \uC544\uBC14\uD0C0");return t.jsxs("span",{className:`avatar avatar--${a} avatar--${r} ${s}`.trim(),role:"img","aria-label":h,children:[p&&t.jsx("img",{className:"avatar__image",src:e,alt:h,onError:()=>u(e??null)}),!p&&m&&t.jsx("span",{className:"avatar__initials","aria-hidden":"true",children:d}),!p&&!m&&t.jsx(Ke,{icon:"user-round",size:u4[a],className:"avatar__icon"})]})}function p4(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(),s=e.type.toLowerCase();return a.some(i=>{const l=i.toLowerCase();return l.startsWith(".")?r.endsWith(l):l.endsWith("/*")?s.startsWith(l.slice(0,-1)):s===l})}function m4({onFilesSelected:e,accept:n,multiple:a=!1,disabled:r=!1,showFileList:s=!0,files:i,onRemove:l,className:u=""}){const{t:c}=ye.useTranslation(),d=o.useRef(null),[p,m]=o.useState(!1),[h,g]=o.useState([]),y=i??h,f=w=>{if(!w||w.length===0)return;const N=Array.from(w).filter(B=>p4(B,n));if(N.length===0)return;const k=a?N:N.slice(0,1);if(i===void 0){const B=a?[...y,...k]:k;g(B),e?.(B)}else e?.(k)},x=w=>{w.preventDefault(),!r&&m(!0)},b=w=>{w.preventDefault(),m(!1)},C=w=>{w.preventDefault(),m(!1),!r&&f(w.dataTransfer.files)},_=w=>{const N=w.target;try{f(N.files)}finally{N.value=""}},v=()=>{r||d.current?.click()},A=w=>{if(!r&&(l?.(w),i===void 0)){const N=y.filter((k,B)=>B!==w);g(N),l||e?.(N)}};return t.jsxs("div",{className:`file-upload ${u}`.trim(),children:[t.jsxs("div",{className:De("file-upload__dropzone",p&&"file-upload__dropzone--dragging",r&&"file-upload__dropzone--disabled"),role:"button",tabIndex:r?-1:0,"aria-disabled":r,onClick:v,onKeyDown:w=>{(w.key==="Enter"||w.key===" ")&&(w.preventDefault(),v())},onDragOver:x,onDragLeave:b,onDrop:C,children:[t.jsx(Ke,{icon:"upload",size:24,className:"file-upload__icon"}),t.jsx("span",{className:"file-upload__prompt body-2",children:c("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:w=>{w.stopPropagation(),v()},children:c("fileUpload.browseButton","\uD30C\uC77C \uC120\uD0DD")}),t.jsx("input",{ref:d,type:"file",className:"file-upload__input",accept:n,multiple:a,disabled:r,onChange:_,tabIndex:-1})]}),s&&y.length>0&&t.jsx("ul",{className:"file-upload__list",children:y.map((w,N)=>t.jsxs("li",{className:"file-upload__list-item body-3",children:[t.jsx("span",{className:"file-upload__file-name body-3",children:w.name}),t.jsx("button",{type:"button",className:"file-upload__remove-button","aria-label":c("fileUpload.removeAriaLabel",{name:w.name}),disabled:r,onClick:()=>A(N),children:t.jsx(Ke,{icon:"x",size:14})})]},`${w.name}-${N}`))})]})}function h4({items:e,className:n=""}){const{t:a}=ye.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,s)=>{const i=s===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}):r.href?t.jsx("a",{className:"breadcrumb__link body-3",href:r.href,target:r.target,rel:r.rel??(r.target==="_blank"?"noopener noreferrer":void 0),onClick:r.onClick,children:r.label}):r.onClick?t.jsx("button",{type:"button",className:"breadcrumb__link body-3",onClick:r.onClick,children:r.label}):t.jsx("span",{className:"breadcrumb__text body-3",children:r.label}),!i&&t.jsx(Ke,{icon:"chevron-right",size:14,className:"breadcrumb__separator"})]},s)})})})}const C4={small:14,medium:20,large:28};function f4({value:e,onChange:n,max:a=5,readOnly:r=!1,size:s="medium",ariaLabel:i,className:l=""}){const{t:u}=ye.useTranslation(),c=r||!n,[d,p]=o.useState(null),m=c?e:Number.isFinite(e)?Math.round(e):0,h=d??m,g=C4[s],y=w=>{w!==e&&n?.(w)},f=w=>{c||y(w)},x=w=>{c||na()||p(w)},b=o.useRef(null),C=w=>{const N=Math.min(a,Math.max(1,w));y(N),Array.from(b.current?.querySelectorAll("[data-star]")??[]).find(k=>k.dataset.star===String(N))?.focus()},_=w=>{if(!c){switch(w.key){case"ArrowRight":case"ArrowUp":C((m||0)+1);break;case"ArrowLeft":case"ArrowDown":C((m||1)-1);break;case"Home":C(1);break;case"End":C(a);break;default:return}w.preventDefault()}},v=m>=1&&m<=a?Math.round(m):1,A=()=>{c||p(null)};return t.jsx("div",{className:`rating rating--${s}${c?" rating--readOnly":""} ${l}`.trim(),ref:b,onKeyDown:_,role:c?"img":"radiogroup","aria-label":c?u("rating.valueLabel",{value:e,max:a}):i??u("rating.groupLabel","\uBCC4\uC810"),onMouseLeave:A,onPointerUp:w=>{w.pointerType==="touch"&&A()},onPointerCancel:w=>{w.pointerType==="touch"&&A()},children:Array.from({length:a},(w,N)=>{const k=N+1,B=Math.max(0,Math.min(1,h-N)),S=B>0&&B<1,E=t.jsxs("span",{className:"rating__star-wrap",children:[t.jsx(Ke,{icon:"star",size:g,className:"rating__star rating__star--empty"}),B>0&&t.jsx("span",{className:`rating__star-fill${S?" rating__star-fill--half":""}`,style:S?{width:`${B*100}%`}:void 0,children:t.jsx(Ke,{icon:"star",size:g,className:"rating__star rating__star--filled"})})]});return c?t.jsx("span",{className:"rating__item","aria-hidden":"true",children:E},k):t.jsx("button",{type:"button",className:"rating__item rating__item--interactive",role:"radio","aria-checked":m===k,"aria-label":u("rating.starLabel",{n:k}),"data-star":k,tabIndex:k===v?0:-1,onClick:()=>f(k),onMouseEnter:()=>x(k),children:E},k)})})}const g4=20,b4=["#499cdf","#4dcdc0","#2fae9e","#e6b94e","#d9534f","#e06b68","#bfc7d1"];function y4({value:e,onChange:n,palette:a=b4,size:r=40,className:s="",ariaLabel:i}){const{t:l}=ye.useTranslation();return t.jsx("div",{className:`color-picker ${s}`.trim(),role:"group","aria-label":i,children:a.map(u=>{const c=e?.toLowerCase()===u.toLowerCase();return t.jsx("button",{type:"button",className:`color-picker__swatch color-picker__swatch--${r}`,style:{backgroundColor:u},onClick:()=>n(u),"aria-pressed":c,"aria-label":c?`${u} ${l("colorPicker.selected","\uC120\uD0DD\uB428")}`:u,children:c&&t.jsx(Ke,{icon:"check",size:g4,className:"color-picker__check"})},u)})})}function Tl({icon:e,label:n,tooltip:a,wrapperStyle:r,color:s,bgColor:i,useHover:l=!0,iconSize:u="medium"}){const{t:c}=ye.useTranslation(),d=u==="small",p=De("category-icon",d?"category-icon--small":""),m=d?16:20,h=o.useRef(null),[g,y]=o.useState(!1),f=o.useMemo(()=>{const N=r&&typeof r=="object"?{...r}:{};return!s&&!i?N:{...N,...s?{color:s,"--t-item-fg":s}:{},...i?{"--t-item-bg":i}:{}}},[r,s,i]),x=a||n,[b,C]=o.useState(null);o.useLayoutEffect(()=>{g&&C(h.current?.getBoundingClientRect()??null)},[g]),o.useEffect(()=>{if(!l&&g)try{y(!1)}catch{}},[l,g]),o.useEffect(()=>{if(!g)return;const N=k=>{const B=h.current;if(!B)return;const S=k.target;S&&!B.contains(S)&&y(!1)};return document.addEventListener("pointerdown",N,!0),()=>document.removeEventListener("pointerdown",N,!0)},[g]);const _=o.useCallback(()=>{l&&y(!0)},[l]),v=o.useCallback(()=>{l&&y(!1)},[l]),A=o.useCallback(()=>y(!1),[]),w=o.useCallback(N=>{if(N.key==="Escape"){y(!1);return}(N.key==="Enter"||N.key===" ")&&(N.preventDefault(),y(k=>!k))},[]);return t.jsxs("span",{ref:h,className:"category-icon__wrap",onPointerEnter:_,onPointerLeave:v,onFocus:_,onBlur:v,onKeyDown:w,role:"button",tabIndex:0,"aria-label":typeof x=="string"?c("common.descriptionFor",{name:x,defaultValue:`${x} \uC124\uBA85`}):void 0,"aria-haspopup":!!x,"aria-expanded":g,"data-tooltip-ignore":!0,children:[t.jsx(Ke,{icon:e,label:n,className:p,imgClassName:"category-icon__image",maskClassName:"category-icon__mask",svgClassName:"category-icon__svg",wrapperStyle:f,size:m}),g&&x&&t.jsx(vn,{anchorRect:b,text:typeof x=="string"?x:void 0,offset:8,onClose:A,className:"category-icon__tooltip",ariaLabel:typeof x=="string"?x:void 0})]})}let jn=null;function Xa(e){if(jn&&jn!==e)try{jn()}catch{}return jn=e,()=>{jn===e&&(jn=null)}}function Ja(e){if(jn===e){jn=null;try{e()}catch{}}}function v4(e,n){if(!e)return{previewCodes:[],previewBucket:null};const a=e,r=l=>l.map(u=>u?.contextCode||u?.context_code).filter(Boolean).map(String);if(n==="LISTEN_IN_NOISE"){const l=a.sentences||a.items||[],u=Array.isArray(l)&&l.length>0?r(l):[];return u.length===0&&(a.contextCode||a.context_code)&&u.push(String(a.contextCode||a.context_code)),{previewCodes:u,previewBucket:"LIN_D"}}if(n==="SHORT_STORY"){const l=a.items||a.sentences||[],u=Array.isArray(l)&&l.length>0?r(l):[];return u.length===0&&(a.contextCode||a.context_code)&&u.push(String(a.contextCode||a.context_code)),{previewCodes:u,previewBucket:"SHORT_S"}}if(n==="LONG_STORY"){const l=a.items||a.sentences||[],u=Array.isArray(l)&&l.length>0?r(l):[];return u.length===0&&(a.contextCode||a.context_code)&&u.push(String(a.contextCode||a.context_code)),{previewCodes:u,previewBucket:"LONG"}}if(n==="ORDERING_SENTENCE"){const l=a.sentences||a.items||[],u=Array.isArray(l)&&l.length>0?r(l):[];return u.length===0&&(a.contextCode||a.context_code)&&u.push(String(a.contextCode||a.context_code)),{previewCodes:u,previewBucket:"LIN_D"}}const s=a.sentences||a.items||[],i=r(Array.isArray(s)?s:[]);return i.length===0&&(a.contextCode||a.context_code)&&i.push(String(a.contextCode||a.context_code)),{previewCodes:i,previewBucket:null}}function x4(e,n){const[a,r]=o.useState(!1),[s,i]=o.useState(-1),[l,u]=o.useState({key:"",urls:[]}),c=o.useRef(null),d=o.useRef(!1),p=o.useRef(null),m=o.useRef(null),[h,g]=o.useState(!1),y=o.useRef([]),{previewCodes:f,previewBucket:x}=v4(e,n),b=`${f.join(",")}|${x??""}`,C=o.useMemo(()=>l.key===b?l.urls:[],[l,b]);o.useEffect(()=>{if(!f.length)return;let v=!1;return(async()=>{const A=[],w=[];for(const N of f)try{const k=Vs(N,x);if(!k){A.push("");continue}let B=null;try{B=await Ws(k)}catch{}if(!B)try{const S=await qs(k);S&&(B=URL.createObjectURL(S),w.push(B))}catch{}A.push(B??"")}catch{A.push("")}v?w.forEach(N=>{try{URL.revokeObjectURL(N)}catch{}}):(y.current.forEach(N=>{try{URL.revokeObjectURL(N)}catch{}}),y.current=w,u({key:b,urls:A}))})(),()=>{v=!0}},[f.join(","),x]),o.useEffect(()=>()=>{y.current.forEach(v=>{try{URL.revokeObjectURL(v)}catch{}}),y.current=[]},[]);const _=o.useCallback(async v=>{if(v.stopPropagation(),v.preventDefault(),d.current){p.current&&Ja(p.current),d.current=!1;try{c.current?.pause()}catch{}r(!1),i(-1);return}if(!C.filter(Boolean).length)return;let A=null;const w=()=>{d.current=!1;try{c.current?.pause()}catch{}A?.()};p.current=w;const N=Xa(w);d.current=!0,r(!0);for(let k=0;k<C.length&&d.current;k++){const B=C[k];if(B){i(k);try{await new Promise((S,E)=>{A=S;const H=new Audio(B);c.current=H,H.onended=()=>S(),H.onerror=()=>E(),H.play().catch(E)})}catch{break}}}N(),p.current===w&&(p.current=null,d.current=!1,r(!1),i(-1))},[C]);return o.useEffect(()=>()=>{p.current&&Ja(p.current),d.current=!1;try{c.current?.pause()}catch{}c.current=null},[]),{playing:a,playingIndex:s,previewUrls:C,previewHover:h,setPreviewHover:g,previewBtnRef:m,handlePreview:_}}const _4=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 s=r;return s.sentence||s.text||s.context||s.question||s.title||""}return""}).filter(r=>typeof r=="string"&&r.trim().length>0).map(r=>r.trim()):[]};function oo(e){const{index:n,type:a,trainingData:r,ariaLabel:s,depth:i,renderPopup:l,completed:u,completedIds:c,selectedIds:d,tooltipText:p,useDescriptionTooltip:m=!1,onRemove:h,hideCheckBadge:g=!1,showTypeLabel:y=!1,onComplete:f,onSelect:x,onMore:b,countLabelOverride:C,size:_="square"}=e||{},{t:v}=ye.useTranslation(),[A,w]=o.useState(!1),N=o.useRef(null),[k,B]=o.useState(!1);o.useEffect(()=>{N.current?.matches(":hover")&&B(!0)},[]);const{playing:S,playingIndex:E,previewUrls:H,previewHover:z,setPreviewHover:U,previewBtnRef:T,handlePreview:L}=x4(r,a?.key),F=o.useCallback(()=>{x?x():w(!0)},[x]),Z=o.useCallback(()=>w(!1),[]),J=o.useCallback(()=>B(!0),[]),V=o.useCallback(()=>B(!1),[]),P=o.useCallback(()=>U(!0),[U]),W=o.useCallback(()=>U(!1),[U]),[R,D]=o.useState(null);o.useLayoutEffect(()=>{z&&D(T.current?.getBoundingClientRect()??null)},[z,T]);const[I,j]=o.useState(null);o.useLayoutEffect(()=>{k&&!A&&m&&j(N.current?.getBoundingClientRect()??null)},[k,A,m]);const O=o.useCallback(re=>{re.target===re.currentTarget&&(re.key==="Enter"||re.key===" ")&&(re.preventDefault(),F())},[F]),$=r||null,Y=o.useMemo(()=>{if(!m)return null;const re=p?(Array.isArray(p)?p:[p]).filter(Boolean):null,Re=re&&re.length>0?re:_4($);return Re&&Re.length>0?Re:null},[m,p,$]),ae=o.useCallback(re=>{re.stopPropagation(),h?.()},[h]),K=o.useCallback(re=>re.stopPropagation(),[]),ne=o.useCallback(re=>{typeof f=="function"&&f(re)},[f]),be=u||(c&&r?.id!=null?c.has(String(r.id)):!1),ue=!be&&(d!=null&&r?.id!=null?d.has(String(r.id)):!1);tl("speechear.popup.close",Z);const pe=pi(),q=`${a?.label||""} ${n+1}`,ee=$?.title||$?.name||q;let ie=a?.icon,ve,me="",oe="";try{const re=$?.category_0||$?.category_main_code||$?.category_main,Re=$?.category_1||$?.category_sub_code||$?.category_sub,te=pe.find(we=>we.key===re);te?.icon&&(ie=te.icon),!ve&&te?.color&&(ve={"--t-item-fg":te.color}),!ve&&$?.iconColor&&(ve={"--t-item-fg":$.iconColor}),me=te?v(`topic.${te.key}`,{defaultValue:te.label||""}):"";try{const we=te?.subs?.find(We=>We.key===Re);oe=we?v(`topic.sub.${we.key}`,{defaultValue:we.label||""}):""}catch{}}catch{}const fe=oe?`${me} / ${oe}`:me||a?.label||ee,ge=re=>v("training.countQuestions",{n:re}),Ee=re=>v("training.countSentences",{n:re});let Ie="";try{if($)if(a?.key==="LISTEN_IN_NOISE"){let re=0;Array.isArray($.items)&&$.items.length>0?re=$.items.length:Array.isArray($.sentences)&&$.sentences.length>0?re=$.sentences.length:$.sentences&&(re=1),Ie=Ee(re)}else if(a?.key==="SHORT_STORY"){let re=1;Array.isArray(r?.items)?re=r.items.length:Array.isArray(r?.raw&&r.raw?.items)?re=r.raw.items.length:Array.isArray($?.questions)?re=$.questions.length:Array.isArray($?.sentences)&&(re=$.sentences.length),Ie=ge(re)}else if(a?.key==="LONG_STORY"){let re=1;if(Array.isArray($.items)&&$.items.length>0){const Re=$.items.reduce((te,we)=>{const We=we.questionItems;return Array.isArray(We)?te+We.length:Array.isArray(we.questions)?te+we.questions.length:te},0);re=Re>0?Re:$.items.length}else Array.isArray($.questions)&&$.questions.length>0?re=$.questions.length:Array.isArray($.sentences)&&$.sentences.length>0&&(re=$.sentences.length);Ie=ge(re)}else if(a?.key==="ORDERING_SENTENCE"){let re=1;Array.isArray($.items)&&$.items.length>0?re=$.items.length:Array.isArray($.sentences)&&$.sentences.length>0&&(re=$.sentences.length),Ie=Ee(re)}else Array.isArray($.items)&&(Ie=$.items.length>0?ge($.items.length):"")}catch{}const Le=_==="row",Je=_==="list"||Le,et=_==="compact",Ve=_==="small",He=Ve&&a?.key?FC().find(re=>re.key===a.key):void 0,it=He?mi[He.key]:void 0,Qe=He?it?v(`trainingType.${it}.title`,{defaultValue:He.label}):He.label??"":"",Ye=!!y&&!!a?.label&&a.label!==String(ee)||Ve&&!!Qe&&Qe!==String(ee);return t.jsxs(t.Fragment,{children:[t.jsxs("div",{ref:N,className:`training-block-button${Je?" training-block-button--list":""}${Le?" training-block-button--row":""}${et?" training-block-button--compact":""}${Ve?" training-block-button--small":""}${be?" training-block-button--completed":""}${ue?" training-block-button--selected":""}${Ye&&!Ve?" training-block-button--withType":""}${Ve&&!Ye?" training-block-button--no-type-label":""}`,onClick:F,onPointerEnter:J,onPointerLeave:V,role:"button",tabIndex:0,onKeyDown:O,"aria-label":typeof s=="string"?s:typeof ee=="string"?ee:void 0,title:!m&&p&&(Array.isArray(p)?p.filter(Boolean).join(`
853
853
  `):p)||void 0,children:[t.jsxs("div",{className:"training-block-button__left",children:[y&&a?.label&&a.label!==String(ee)&&t.jsx("span",{className:"training-block-button__type-label caption-1",children:a.label}),Ve&&Qe&&Qe!==String(ee)&&t.jsx("span",{className:"training-block-button__type-label caption-2",children:Qe}),t.jsx(Tl,{icon:ie,label:ee,tooltip:fe,wrapperStyle:ve,iconSize:Ve||et?"small":"medium"}),!g&&(be||ue)&&!(h&&k)&&t.jsx(yt,{className:h?"training-block-button__check--removable":void 0,type:"dot",icon:"check",position:"top-left",size:"medium","aria-label":be?v("training.completed","\uD6C8\uB828 \uC644\uB8CC"):v("training.selected","\uC120\uD0DD\uB428")}),h&&t.jsx(yt,{className:`training-block-button__remove${k?" is-hover":""}`,type:"dot",icon:"remove",position:"top-left",size:"medium","aria-label":v("common.remove","\uC81C\uAC70"),onClick:ae}),t.jsx("div",{className:`training-block-button__title ${et?"body-3":Ve?"body-3b":"h3"}`,children:String(ee)}),t.jsxs("div",{className:"training-block-button__description",children:[(()=>{const re=C!==void 0?C:Ie;return re?t.jsx("div",{className:`training-block-button__count ${Ve?"caption-2":"caption-1"}`,children:re}):null})(),t.jsx("div",{className:"training-block-button__chevron",children:t.jsx(Ke,{icon:"chevron-right",label:v("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:Ve?12:20})})]}),(Je&&!Le||Ve)&&H.length>0&&t.jsx("div",{ref:T,className:"training-block-button__preview","data-tooltip-ignore":!0,onClick:K,onPointerEnter:P,onPointerLeave:W,children:t.jsx(de,{htmlType:"button",size:Ve?28:32,type:"dot",icon:S?"pause":"play",variant:Ve?"transparent-lightGray":"default",useBorder:!1,selected:S,ariaLabel:String(ee).trim()?S?v("training.stopFor",{name:ee,defaultValue:`${ee} \uC815\uC9C0`}):v("training.previewFor",{name:ee,defaultValue:`${ee} \uBBF8\uB9AC \uB4E3\uAE30`}):S?v("training.stop","\uC815\uC9C0"):v("training.preview","\uBBF8\uB9AC \uB4E3\uAE30"),onClick:L})})]}),b&&t.jsx("div",{className:"training-block-button__more","data-tooltip-ignore":!0,onClick:re=>{re.stopPropagation(),b(re)},children:t.jsx(de,{htmlType:"button",size:40,type:"dot",icon:"more-horizontal",variant:"transparent-lightGray",useBorder:!1,ariaLabel:String(ee).trim()?v("common.moreFor",{name:ee}):v("common.more","\uB354\uBCF4\uAE30")})})]}),z&&t.jsx(vn,{anchorRect:R,text:S?v("training.stop","\uC815\uC9C0"):v("training.preview","\uBBF8\uB9AC \uB4E3\uAE30"),offset:8,onClose:W}),k&&!A&&m&&(Y?t.jsx(Vn,{anchorRect:I,items:Y,activeIndex:E,onClose:V}):$?.subTitle?t.jsx(vn,{anchorRect:I,text:$.subTitle,offset:8,onClose:V}):null),A&&l&&l({trainingData:$,typeKey:a?.key??"",onClose:Z,onComplete:ne,popupTitle:String(ee),popupSubTitle:a?.subTitle,depth:i!=null?String(i):void 0,popupIcon:ie,popupIconTooltip:String(fe),popupWrapperStyle:ve})]})}const Ml=200;function w4(e){return e.itemId?(WC()[e.trainingType]??[]).find(n=>n?.id!=null&&String(n.id)===String(e.itemId))??null:null}function Ll({plan:e,anchorRect:n,offset:a=12,onClose:r}){const{t:s}=ye.useTranslation(),i=o.useMemo(()=>UC(s).map(u=>({type:u,items:(e.items??[]).filter(c=>c.trainingType===u.key)})).filter(u=>u.items.length>0),[e.items,s]);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:u,items:c},d)=>[d>0?t.jsx("div",{className:"tooltip-training__divider"},`div-${u.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:u.label})}),t.jsx("div",{className:"tooltip-training__items",children:c.map((p,m)=>{const h=w4(p);return h?t.jsx(oo,{index:m,type:u,trainingData:h,size:"compact",hideCheckBadge:!0},p.itemId??m):null})})]},u.key)])})});return n?t.jsx(rn,{anchorRect:n,offset:a,onClose:r,closeOnOutsideClick:!1,className:"tooltip-training",ariaLabel:s("tooltip.training","\uD6C8\uB828 \uC548\uB0B4"),children:l}):l}const A4=200;function k4({icon:e,count:n,title:a,plan:r,tooltip:s=!0,className:i="",onClick:l,onMouseEnter:u,onMouseLeave:c}){const d=De("count-tile",l&&"count-tile--clickable",i),p=o.useRef(null),[m,h]=o.useState(null),g=o.useRef(null),y=o.useRef(null),f=!!(m&&r&&s),x=o.useCallback(()=>{g.current&&(clearTimeout(g.current),g.current=null),y.current&&(clearTimeout(y.current),y.current=null)},[]),b=o.useCallback(()=>{x(),h(null)},[x]),C=o.useCallback(()=>{!s||!r||(x(),g.current=setTimeout(()=>{g.current=null,h(p.current?.getBoundingClientRect()??null)},Ml))},[s,r,x]),_=o.useCallback(()=>{g.current&&(clearTimeout(g.current),g.current=null),!y.current&&(y.current=setTimeout(()=>{y.current=null,h(null)},A4))},[]);return o.useEffect(()=>()=>{x()},[x]),o.useEffect(()=>{(!s||!r)&&b()},[s,r,b]),o.useEffect(()=>{if(!f)return;const v=w=>w instanceof Element&&(p.current?.contains(w)||!!w.closest(".tooltip-training")),A=w=>{v(w.target)?x():_()};return document.addEventListener("pointerover",A,!0),()=>document.removeEventListener("pointerover",A,!0)},[f,x,_]),t.jsxs(t.Fragment,{children:[t.jsxs("div",{ref:p,className:d,onClick:l?v=>{b(),l(v)}:void 0,onKeyDown:l?v=>{v.key!=="Enter"&&v.key!==" "||(v.preventDefault(),v.currentTarget.click())}:void 0,onPointerEnter:v=>{v.pointerType==="touch"||v.pointerType==="pen"?b():C()},onMouseEnter:u,onMouseLeave:v=>{_(),c?.(v)},role:l?"button":"img",tabIndex:l?0:void 0,"aria-label":`${a} ${n}`,children:[t.jsx(Ke,{icon:e,size:20,className:"count-tile__icon"}),t.jsx("span",{className:"count-tile__count h5","aria-hidden":"true",children:n})]}),m&&r&&t.jsx(Ll,{plan:r,anchorRect:m,onClose:b})]})}let Sa=0,$l="",so="",ja=0;function Rl(){return Pl(!1)}function B4(){return Pl(!0)}function Pl(e){const n=typeof document<"u";Sa===0&&n&&($l=document.body.style.overflow,document.body.style.overflow="hidden"),e&&n&&(ja===0&&(so=document.body.style.paddingRight),ja++,document.body.style.paddingRight="0px"),Sa++;let a=!1;return()=>{a||(a=!0,Sa=Math.max(0,Sa-1),e&&n&&(ja=Math.max(0,ja-1),ja===0&&(so?document.body.style.paddingRight=so:document.body.style.removeProperty("padding-right"))),Sa===0&&n&&(document.body.style.overflow=$l))}}function N4(){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 D4({open:e,onClose:n,ariaLabel:a,title:r,children:s,size:i="md",closeOnBackdrop:l=!0,closeOnEscape:u=!0,showClose:c=!0,className:d,contentClassName:p}){const{t:m}=ye.useTranslation(),h=o.useId(),g=o.useRef(null),y=o.useCallback(()=>n(),[n]);o.useEffect(()=>{if(!e)return;const C=document.activeElement,_=Rl(),v=g.current;return zr(v,C),v?.focus(),()=>{_();const A=document.activeElement;(!A||A===document.body||v&&v.contains(A))&&Vr(C)?.focus?.()}},[e]);const f=o.useRef(y),x=o.useRef(u);o.useEffect(()=>{f.current=y,x.current=u}),o.useEffect(()=>{if(e)return zn(()=>{x.current&&f.current()})},[e]);const b=o.useRef(!1);return Or(g,e),!e||typeof document>"u"?null:Xt.createPortal(t.jsx("div",{className:De("dialog",d),onPointerDown:l?C=>{b.current=C.target===C.currentTarget}:void 0,onMouseDown:C=>{C.target===C.currentTarget&&C.preventDefault()},onClick:l?C=>{const _=b.current;b.current=!1,_&&C.target===C.currentTarget&&y()}:void 0,children:t.jsxs("div",{ref:g,role:"dialog","aria-modal":"true","aria-label":r?void 0:a,"aria-labelledby":r?h:void 0,tabIndex:-1,className:De("dialog__surface",`dialog__surface--${i}`,p),onClick:C=>C.stopPropagation(),children:[r?t.jsx("div",{className:"dialog__header",children:t.jsx("h2",{id:h,className:"dialog__title h4b",children:r})}):null,c?t.jsx("button",{type:"button",className:"dialog__close","aria-label":m("common.close","\uB2EB\uAE30"),onClick:y,children:t.jsx(N4,{})}):null,t.jsx("div",{className:"dialog__body",children:s})]})}),document.body)}function E4({columns:e,rows:n,rowKey:a,title:r,toolbar:s,empty:i,loading:l,caption:u,className:c=""}){const{t:d}=ye.useTranslation(),p=!l&&n.length===0;return t.jsxs("div",{className:De("board",c),children:[r||s?t.jsxs("div",{className:"board__head",children:[r?t.jsx("h2",{className:"board__title",children:r}):t.jsx("span",{}),s?t.jsx("div",{className:"board__toolbar",children:s}):null]}):null,t.jsxs("table",{className:"board__table",children:[u?t.jsx("caption",{className:"board__caption",children:u}):null,t.jsx("thead",{children:t.jsx("tr",{children:e.map(m=>t.jsx("th",{scope:"col",className:De("board__th",`board__cell--${m.headerAlign??m.align??"left"}`),style:m.width?{width:m.width}:void 0,children:m.header},m.key))})}),t.jsx("tbody",{children:l?t.jsx("tr",{children:t.jsx("td",{className:"board__state",colSpan:e.length,children:l})}):p?t.jsx("tr",{children:t.jsx("td",{className:"board__state",colSpan:e.length,children:i??d("board.empty","\uB4F1\uB85D\uB41C \uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.")})}):n.map((m,h)=>t.jsx("tr",{className:"board__row",children:e.map(g=>t.jsx("td",{className:De("board__td",`board__cell--${g.align??"left"}`),children:g.render(m,h)},g.key))},a(m,h)))})]})]})}function S4({name:e,role:n,photo:a,media:r,credentials:s,size:i=190,className:l=""}){return t.jsxs("div",{className:De("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,s?.length?t.jsx("ul",{className:"person-card__credentials",children:s.map(u=>t.jsx("li",{children:u},u))}):null]})}function j4({groups:e,className:n=""}){return t.jsx("div",{className:De("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,s)=>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??""}-${s}`))})]},a.title))})}function T4({title:e,kind:n,body:a,badge:r,badgeSrc:s,footer:i,width:l,className:u=""}){const c=r??(s?t.jsx("img",{src:s,alt:""}):null);return t.jsxs("div",{className:De("publication-card",u),style:l?{width:l,flexShrink:0}:void 0,children:[c?t.jsx("div",{className:"publication-card__badge","aria-hidden":"true",children:c}):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 M4({logo:e,alt:n,onDone:a,durationMs:r=3e3}){const s=xa(a);return o.useEffect(()=>{const i=setTimeout(()=>s.current?.(),r);return()=>clearTimeout(i)},[r,s]),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 L4({eyebrow:e,eyebrowIndex:n,title:a,description:r,level:s=2,tone:i="dark",className:l=""}){const u=s===1?"h1":"h2";return t.jsxs("div",{className:De("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(u,{className:"section-header__title",children:a}):null,r?t.jsx("div",{className:"section-header__description",children:r}):null]})}function $4({items:e,className:n=""}){return t.jsx("ul",{className:De("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 Il(e){return typeof e=="string"?e:e.label}function Fl({value:e,onChange:n,suggestions:a,openOnFocus:r=!1,filterSuggestions:s,onSelectSuggestion:i,autoActiveFirst:l=!1}){const u=o.useId(),[c,d]=o.useState(!1),[p,m]=o.useState(-1),h=o.useRef(null),g=o.useMemo(()=>{if(!a.length)return[];const E=e??"";return s===!1?a:E?typeof s=="function"?s(a,E):a.filter(H=>Il(H).toLowerCase().includes(E.toLowerCase())):r?a:[]},[a,e,r,s]),[y,f]=o.useState(!1),x=o.useRef([]),b=y&&g.length===0?x.current:g;o.useEffect(()=>{b.length&&(x.current=b)},[b]);const C=o.useCallback(()=>f(!0),[]),_=o.useCallback(()=>f(!1),[]),v=l?0:-1;o.useEffect(()=>{c||m(v)},[c,v]),o.useEffect(()=>()=>{h.current&&clearTimeout(h.current)},[]);const A=p<b.length?p:v<b.length?v:-1,w=o.useCallback(E=>{i?i(E):n?.(Il(E)),d(!1)},[n,i]),N=o.useCallback(()=>d(!0),[]),k=o.useCallback(()=>{d(!0),m(v)},[v]),B=o.useCallback(()=>{h.current=setTimeout(()=>d(!1),120)},[]),S=o.useCallback(E=>{E.nativeEvent.isComposing||E.keyCode===229||(E.key==="ArrowDown"?(E.preventDefault(),d(!0),m(H=>Math.min(b.length-1,(H<b.length?H:v)+1))):E.key==="ArrowUp"?(E.preventDefault(),m(H=>Math.max(v,(H<b.length?H:b.length)-1))):E.key==="Enter"?A>=0&&w(b[A]):E.key==="Escape"&&c&&(E.preventDefault(),d(!1)))},[b,A,c,w,v]);return{listId:u,open:c,activeIdx:A,filtered:b,handleFocus:N,handleBlur:B,handleInput:k,handleKeyDown:S,handleSelect:w,handleCompositionStart:C,handleCompositionEnd:_}}const io=typeof window<"u"?o.useLayoutEffect:o.useEffect;function Un(e){const{value:n,defaultValue:a,name:r,inputRef:s,onChange:i,label:l,ariaLabel:u,required:c,placeholder:d,ghostText:p,ghostHint:m,type:h="text",disabled:g=!1,readOnly:y=!1,error:f,helperText:x,maxLength:b,size:C=48,variant:_="input",fullWidth:v=!1,newline:A=!1,multiline:w=!1,rows:N=3,leftIcon:k,rightIcon:B,clearable:S=!1,list:E,showCount:H=!0,className:z="",onFocus:U,onBlur:T,onKeyDown:L,onEnter:F,inputMode:Z,autoComplete:J,autoFocus:V,suggestions:P,filterSuggestions:W,onSelectSuggestion:R,autoActiveFirst:D,openOnFocus:I=!1}=e,j=y||g?void 0:P,{t:O}=ye.useTranslation(),$=o.useId();!l&&!u&&pn(`TextField:unnamed:${$}`,"[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 Y=`tf-${$}`,ae=`tf-helper-${$}`,K=o.useRef(null),ne=Fl({value:n??"",onChange:i,suggestions:j??[],openOnFocus:I,filterSuggestions:W,onSelectSuggestion:R,autoActiveFirst:D}),be=!!j&&ne.open&&ne.filtered.length>0,ue=o.useRef(null),[pe,q]=o.useState(null),ee=o.useCallback(()=>{const re=ue.current;if(!re||typeof window>"u")return;const Re=re.getBoundingClientRect(),te=230,we=window.innerHeight-Re.bottom<te+8&&Re.top>te+8;q({position:"fixed",left:Re.left,width:Re.width,...we?{bottom:window.innerHeight-Re.top+8}:{top:Re.bottom+8},zIndex:Aa(re)})},[]);io(()=>{if(!be)return;ee();const re=Re=>{const te=Re.target;te&&te.nodeType===1&&te.closest?.(".text-field__suggestions")||ee()};return window.addEventListener("scroll",re,!0),window.addEventListener("resize",ee),()=>{window.removeEventListener("scroll",re,!0),window.removeEventListener("resize",ee)}},[be,ee]);const ie=o.useCallback(re=>{K.current=re,typeof s=="function"?s(re):s&&(s.current=re)},[s]),ve=p?`${p}${m??O("wordTable.save.autoFillHint"," (Tab \uB610\uB294 space \uC785\uB825\uC2DC \uC790\uB3D9 \uC785\uB825)")}`:d,me=n!==void 0,oe=me&&h==="password",[fe,ge]=o.useState((a??"").length),Ee=me?(n??"").length:fe,Ie=o.useRef(n);io(()=>{Ie.current=n}),o.useEffect(()=>{const re=K.current;if(!oe||!re)return;const Re=n??"";re.value!==Re&&(re.value=Re)},[oe,n]),o.useEffect(()=>{if(!A||!K.current)return;const re=K.current;re.style.height="",re.scrollHeight>re.clientHeight&&(re.style.height=`${re.scrollHeight}px`)},[n,fe,A]);const Le=b!=null&&Ee>b,Je=C===32?16:20,et=De("text-field",`text-field--s${C}`,_==="display"?"text-field--display":"",v?"text-field--full-width":"",g?"text-field--disabled":"",y?"text-field--readonly":"",f?"text-field--error":"",k?"text-field--has-left-icon":"",B||S?"text-field--has-right-icon":"",z),Ve={id:Y,...oe?{}:me?{value:n}:{defaultValue:a},ref:ie,placeholder:ve,name:r,disabled:g,readOnly:y,autoFocus:V,maxLength:b,list:E,inputMode:Z,autoComplete:J,"aria-label":!l&&u?u:void 0,"aria-required":c,"aria-invalid":!!f,"aria-describedby":x||f?ae:void 0,role:j?"combobox":void 0,"aria-autocomplete":j?"list":void 0,"aria-haspopup":j?"listbox":void 0,"aria-expanded":j?be:void 0,"aria-controls":be?ne.listId:void 0,"aria-activedescendant":be&&ne.activeIdx>=0?`${ne.listId}-option-${ne.activeIdx}`:void 0,onChange:re=>{const Re=re.target;me||ge(Re.value.length),i?.(Re.value),j&&ne.handleInput(),oe&&queueMicrotask(()=>{const te=Ie.current??"";Re.value!==te&&(Re.value=te)})},onCompositionStart:j?ne.handleCompositionStart:void 0,onCompositionEnd:j?ne.handleCompositionEnd:void 0,onFocus:(re=>{U?.(re),j&&ne.handleFocus()}),onBlur:(re=>{T?.(re),j&&ne.handleBlur()}),onKeyDown:(re=>{const Re=(re.key==="Tab"&&!re.shiftKey||re.key===" ")&&!re.nativeEvent.isComposing;if(p&&Re&&!y&&!g&&!(re.currentTarget.value??"").trim()){re.preventDefault();const te=re.currentTarget;me||(te.value=p,ge(p.length)),i?.(p);return}j&&re.key==="Enter"&&!re.nativeEvent.isComposing&&ne.activeIdx>=0?re.preventDefault():F&&re.key==="Enter"&&!re.nativeEvent.isComposing&&(re.preventDefault(),F()),L?.(re),j&&ne.handleKeyDown(re)})},He=S&&!g&&!y&&Ee>0,it=()=>A?t.jsx("textarea",{...Ve,className:"text-field__input text-field__input--auto body-2",rows:1}):w?t.jsx("textarea",{...Ve,className:"text-field__input text-field__input--textarea body-2",rows:N}):t.jsx("input",{...Ve,type:h,className:"text-field__input body-2"}),Qe=_==="display"&&!A&&!w&&!!ve,Ye=()=>t.jsxs(t.Fragment,{children:[it(),Qe&&t.jsx("span",{className:"text-field__placeholder","aria-hidden":"true",children:ve})]});return t.jsxs("div",{ref:ue,className:et,children:[l&&t.jsxs("label",{htmlFor:Y,className:"text-field__label caption-1",children:[l,c&&t.jsx("span",{className:"text-field__required",children:"*"})]}),t.jsxs("div",{className:"text-field__wrap",children:[k&&t.jsx("span",{className:"text-field__icon text-field__icon--left",children:t.jsx(Ke,{icon:k,label:"",className:"",svgClassName:"text-field__icon-svg",size:Je})}),Ye(),b!=null&&H&&t.jsxs("span",{className:`text-field__count caption-2${Le?" text-field__count--over":""}`,children:[Ee,"/",b]}),He&&t.jsx(de,{size:24,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,className:"text-field__clear",ariaLabel:O("textField.clearAriaLabel","\uC785\uB825\uAC12 \uC9C0\uC6B0\uAE30"),htmlType:"button",onMouseDown:re=>{re.preventDefault()},onClick:()=>{!me&&K.current&&(K.current.value="",ge(0)),i?.("")},tabIndex:-1}),B&&!He&&t.jsx("span",{className:"text-field__icon text-field__icon--right",children:t.jsx(Ke,{icon:B,label:"",className:"",svgClassName:"text-field__icon-svg",size:Je})})]}),!!j&&t.jsx("span",{className:"text-field__status",role:"status","aria-live":"polite",children:ne.open&&(n??"").length>0&&ne.filtered.length===0?O("common.noMatches","\uB9DE\uB294 \uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4"):""}),be&&(typeof document>"u"?null:Xt.createPortal(t.jsx("ul",{id:ne.listId,className:"text-field__suggestions",role:"listbox",style:pe??{position:"fixed",visibility:"hidden"},"data-tooltip-ignore":!0,children:ne.filtered.map((re,Re)=>t.jsx("li",{id:`${ne.listId}-option-${Re}`,role:"option","aria-selected":Re===ne.activeIdx,className:`text-field__suggestion body-2${Re===ne.activeIdx?" is-active":""}`,onMouseDown:te=>te.preventDefault(),onClick:()=>{ne.handleSelect(re),K.current?.focus()},children:typeof re=="string"?re:t.jsxs(t.Fragment,{children:[t.jsx("span",{className:"text-field__suggestion-label",children:re.label}),re.hint&&t.jsx("span",{className:"text-field__suggestion-hint caption-1",children:re.hint})]})},typeof re=="string"?`${re}-${Re}`:re.id))}),document.body)),(x||f)&&t.jsx("div",{className:"text-field__footer",children:t.jsx("span",{id:ae,className:"text-field__helper caption-1",role:f?"alert":void 0,children:f||x})})]})}function sn({options:e,value:n,onChange:a,placeholder:r,disabled:s=!1,block:i=!1,size:l=48,error:u=!1,className:c="",ariaLabel:d,ariaDescribedBy:p}){const{t:m}=ye.useTranslation(),h=r??m("dropdown.placeholder","\uC120\uD0DD"),g=o.useId(),y=o.useId(),f=o.useRef(null),x=o.useCallback((T,L)=>{const F=window.innerHeight-T.bottom<260&&T.top>260;return{position:"fixed",left:T.left,minWidth:T.width,...F?{bottom:window.innerHeight-T.top+6}:{top:T.bottom+6},zIndex:Aa(L)}},[]),{open:b,setOpen:C,toggle:_,style:v,triggerRef:A,menuRef:w}=ka({computeStyle:x}),[N,k]=o.useState(-1),B=o.useCallback(()=>k(-1),[]),S=e.find(T=>T.value===n);o.useEffect(()=>{if(b){const T=e.findIndex(L=>L.value===n);k(T>=0?T:e.length?0:-1),requestAnimationFrame(()=>{const L=w.current;if(!L)return;const F=L.querySelectorAll(".dropdown__option")[T];F&&(L.scrollTop=Math.max(0,F.offsetTop-L.clientHeight/2+F.clientHeight/2))})}},[b]),o.useEffect(()=>{b&&k(T=>{if(T>=0&&T<e.length)return T;const L=e.findIndex(F=>F.value===n);return L>=0?L:e.length?0:-1})},[b,e.length]);const E=o.useCallback(()=>{s||_()},[s,_]),H=o.useCallback(T=>{T.disabled||s||(T.value!==n&&a?.(T.value),C(!1))},[a,C,s,n]);o.useEffect(()=>{s&&C(!1)},[s,C]);const z=o.useCallback(T=>{if(!s){if(!b){(T.key==="Enter"||T.key===" "||T.key==="ArrowDown")&&(T.preventDefault(),C(!0));return}if(T.key==="Escape"){T.preventDefault(),C(!1);return}T.key==="ArrowDown"?(T.preventDefault(),k(L=>{let F=L+1;for(;F<e.length&&e[F].disabled;)F++;return F<e.length?F:L})):T.key==="ArrowUp"?(T.preventDefault(),k(L=>{let F=L-1;for(;F>=0&&e[F].disabled;)F--;return F>=0?F:L})):(T.key==="Enter"||T.key===" ")&&(T.preventDefault(),e[N]?H(e[N]):C(!1))}},[s,b,e,N,H,C]),U=b?t.jsx("div",{ref:w,id:g,className:"dropdown__menu","data-tooltip-ignore":!0,role:"listbox",style:v,onMouseLeave:B,onMouseDown:T=>T.preventDefault(),children:e.map((T,L)=>t.jsxs("button",{id:`${g}-option-${L}`,type:"button",role:"option","aria-selected":T.value===n,className:De("dropdown__option body-2",T.value===n?"dropdown__option--active":"",L===N?"dropdown__option--active":"",T.disabled?"dropdown__option--disabled":""),onMouseDown:F=>F.preventDefault(),onClick:()=>H(T),onMouseEnter:()=>k(L),disabled:T.disabled,children:[t.jsx("span",{className:"dropdown__option-check",children:T.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"})})}),T.label]},T.value))}):null;return t.jsxs("div",{ref:f,className:De("dropdown",`dropdown--s${l}`,b?"dropdown--open":"",i?"dropdown--block":"",u?"dropdown--error":"",c),onKeyDown:z,children:[t.jsxs("button",{ref:A,type:"button",className:"dropdown__trigger","aria-haspopup":"listbox","aria-expanded":b,"aria-controls":b?g:void 0,"aria-activedescendant":b&&N>=0?`${g}-option-${N}`:void 0,"aria-label":d,"aria-describedby":[d&&S?y:"",p??""].filter(Boolean).join(" ")||void 0,"aria-invalid":u||void 0,disabled:s,onClick:E,onBlur:T=>{b&&!w.current?.contains(T.relatedTarget)&&C(!1)},children:[t.jsx("span",{id:y,className:`dropdown__trigger-label body-2${S?"":" dropdown__trigger-label--placeholder"}`,children:S?S.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"&&Xt.createPortal(U,f.current?.closest(".ihabdevteam-core-scope")??document.body)]})}function Qa({page:e,totalPages:n,onChange:a,prevLabel:r,nextLabel:s,className:i=""}){const{t:l}=ye.useTranslation(),u=r??l("common.prevPage","\uC774\uC804 \uD398\uC774\uC9C0"),c=s??l("common.nextPage","\uB2E4\uC74C \uD398\uC774\uC9C0"),d=Math.max(1,n),p=()=>a(Math.max(1,Math.min(d,e-1))),m=()=>a(Math.min(d,e+1));return t.jsxs("div",{className:De("pagination",i),children:[t.jsx(de,{htmlType:"button",size:32,type:"dot",shape:"rounded",icon:"chevron-left",ariaLabel:u,disabled:e<=1,onClick:p}),t.jsxs("span",{className:"pagination__info body-3","aria-live":"polite","aria-atomic":"true",children:[Math.min(Math.max(1,e),d)," / ",d]}),t.jsx(de,{htmlType:"button",size:32,type:"dot",shape:"rounded",icon:"chevron-right",ariaLabel:c,disabled:e>=n,onClick:m})]})}function An(e){const{t:n}=ye.useTranslation(),{options:a=[],value:r=a.find(C=>!C.disabled)?.key??a[0]?.key,onChange:s=C=>{},className:i="",size:l=40,shape:u="pill",useBG:c=!0,fullWidth:d=!1,minButtonWidth:p,ariaLabel:m}=e||{},h=o.useRef(null),g=a.filter(C=>!C.disabled),y=C=>{if(!g.length)return;const _=Math.max(0,g.findIndex(A=>A.key===r)),v=C==="first"?g[0]:C==="last"?g[g.length-1]:g[(_+C+g.length)%g.length];v&&(s(v.key),Array.from(h.current?.querySelectorAll("[data-segkey]")??[]).find(A=>A.dataset.segkey===v.key)?.focus())},f=C=>{switch(C.key){case"ArrowRight":case"ArrowDown":y(1);break;case"ArrowLeft":case"ArrowUp":y(-1);break;case"Home":y("first");break;case"End":y("last");break;default:return}C.preventDefault()},x=C=>{const _=v=>typeof v=="string"||typeof v=="number";if(!(!_(C.label)||C.count==null||C.count===!1||!_(C.count)))return`${C.label}, ${C.count}`},b=g.some(C=>C.key===r)?r:g[0]?.key;return t.jsx("div",{ref:h,onKeyDown:f,className:De("segmented-control",`segmented-control--${u}`,`segmented-control--${l}`,d&&"segmented-control--full",!c&&"segmented-control--no-bg",p!=null&&"segmented-control--min",i),style:p!=null?{"--segmented-min-button-w":`${p}px`}:void 0,role:"radiogroup","aria-label":m??n("segmentedControl.ariaLabel","\uC120\uD0DD \uD0ED"),children:a.map(C=>t.jsx(de,{htmlType:"button",role:"radio","aria-checked":C.key===r,"data-segkey":C.key,tabIndex:C.key===b?0:-1,label:C.label,count:C.count,ariaLabel:x(C),disabled:C.disabled,className:C.key===r?"is-selected":"",onClick:()=>{C.disabled||s(C.key)},size:l,shape:u,useBorder:!1,useBG:!1},C.key))})}function lo({count:e,search:n,segment:a,filters:r,pageSize:s,pagination:i,actions:l,className:u}){const{t:c}=ye.useTranslation(),d=e!=null&&t.jsxs("p",{className:"toolbar__count body-1",role:"status","aria-atomic":"true",children:[e.prefix??c("common.totalPrefix","\uCD1D "),t.jsx("span",{className:"toolbar__count-highlight",children:e.value}),e.unit,e.suffix]}),p=!!(n||r?.length||s||i||l);return t.jsxs("div",{className:De("toolbar",u),children:[t.jsxs("div",{className:"toolbar__row",children:[d,a&&(Array.isArray(a)?a:[a]).map((m,h)=>t.jsx(An,{size:40,...m},m.ariaLabel??h))]}),p&&t.jsx("div",{className:"toolbar__row",children:t.jsxs("div",{className:"toolbar__row-end",children:[n&&t.jsx(Un,{className:"toolbar__search",size:40,value:n.value,onChange:n.onChange,placeholder:n.placeholder??c("common.search","\uAC80\uC0C9"),ariaLabel:n.placeholder??c("common.search","\uAC80\uC0C9"),autoFocus:n.autoFocus,clearable:!0}),r?.map((m,h)=>t.jsx(sn,{size:40,options:m.options,value:m.value,onChange:m.onChange,ariaLabel:m.ariaLabel},h)),(s||i)&&t.jsxs("div",{className:"toolbar__pager",children:[s&&t.jsx(sn,{size:40,options:s.options,value:s.value,onChange:s.onChange,ariaLabel:s.ariaLabel??c("common.pageSizeSelect","\uD398\uC774\uC9C0\uB2F9 \uD45C\uC2DC \uAC1C\uC218")}),i&&t.jsx(Qa,{page:i.page,totalPages:i.total,onChange:i.onChange,prevLabel:i.prevLabel,nextLabel:i.nextLabel})]}),l]})})]})}function Ol(e){return typeof e=="string"?e:typeof e=="number"?String(e):Array.isArray(e)?e.map(Ol).join(""):""}function R4(e){let n=e.replace(/\r\n/g,`
854
854
  `).replace(/\r/g,`
855
855
  `);n=n.replace(/^\n+/,"").replace(/\n+$/,"");const a=n.split(`
@@ -1045,7 +1045,7 @@ ${v.badge}`:v.badge:void 0;if(w&&c(v.code))return null;if(!v.badge&&!p)return m(
1045
1045
  </html>`}const Jy=1e3;function Do({getElements:e,paperW:n,paperH:a,fileName:r="",onPopupBlocked:s,header:i=""}){const{t:l}=ye.useTranslation(),u=o.useCallback(()=>{Xy(e(),n,a,r,i)},[e,n,a,r,i]),c=o.useCallback(()=>{const p=e();if(p.length===0)return;const m=window.open("","_blank");if(!m){s?.();return}m.document.write(No(p,n,a,!1,r,i)),m.document.close()},[e,n,a,r,s,i]),d=o.useCallback(()=>{const p=e();if(p.length===0)return;const m=No(p,n,a,!1,r,i),h=new Blob([m],{type:"text/html;charset=utf-8"}),g=URL.createObjectURL(h),y=(r?Bo(r):"")||l("wordTable.printFileNameSingle","\uB2E8\uC5B4\uD45C"),f=Object.assign(document.createElement("a"),{href:g,download:`${y}.html`});document.body.appendChild(f),f.click(),document.body.removeChild(f),setTimeout(()=>URL.revokeObjectURL(g),Jy)},[e,n,a,r,i,l]);return{print:u,openNewWindow:c,downloadHtml:d}}function Iu(e,n){const{t:a}=ye.useTranslation(),r=n?.paperBands===!0,[s,i]=o.useState("landscape"),[l,u]=o.useState(["\uC774\uBBF8\uC9C0","\uB2E8\uC5B4","\uD45C\uC900 \uBC1C\uC74C"]),[c,d]=o.useState("\uD45C\uC2DC"),[p,m]=o.useState(!0),[h,g]=o.useState(!0),[y,f]=o.useState(!0),[x,b]=o.useState(!0),[C,_]=o.useState(8),[v,A]=o.useState("right"),w=e.length,N=e.some(Z=>(Z.words??[]).length>1),k=e.some(Z=>(Z.words??[]).some(J=>!!J.colloquialLabel)),B=Math.min(C,Math.max(w,1)),S=o.useMemo(()=>hu(e,B),[e,B]),E=S.length>1,H=B,[z,U]=o.useState(!1);o.useEffect(()=>{let Z=!1;if(!Xn()){U(!1);return}return Promise.all(e.flatMap(J=>(J.words??[]).map(V=>Js(V.label,V.homonum)))).then(J=>{Z||U(J.some(Boolean))},()=>{}),()=>{Z=!0}},[e]);const T=o.useMemo(()=>[Au(a,{hasImage:z,hasColloquial:k}),ku(a),...w>0?[ju(a,{hasPairs:N,itemCount:w})]:[],Bu(a),...H>1?[Eu(a)]:[],...N?[Su(a)]:[],...r?[Nu(a),Du(a)]:[]],[a,z,k,w,N,E,H,r]),L={...$u(a,{contentTypes:l,orientation:s,showOutline:p,cutLine:c,showDivLine:x,showTopInfo:h,showBottomInfo:y}),...w>0?{[a(N?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord")]:`${B}\uAC1C`}:{},...E?{[a("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")]:Mu[v]}:{}},F=o.useCallback((Z,J)=>{Ru(a,Z,J,{setContentTypes:u,setOrientation:i,setShowOutline:m,setCutLine:d,setShowDivLine:b,setShowTopInfo:g,setShowBottomInfo:f})||(J===a("wordTable.filter.itemsPerPagePair","\uD398\uC774\uC9C0\uB2F9 \uB300\uB9BD\uC30D \uC218")||J===a("wordTable.filter.itemsPerPageWord","\uD398\uC774\uC9C0\uB2F9 \uB2E8\uC5B4 \uC218")?_(Tu(parseInt(Z),w)):J===a("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")&&A(Lu(Z)))},[a,w]);return{settings:{orientation:s,contentTypes:l,cutLine:c,showOutline:p,showDivLine:x,count:H,showTopInfo:h,showBottomInfo:y},filterSections:T,filterSelected:L,handleSelect:F,pages:S,isPaginated:E,pageNumberPosition:v}}function Qy({items:e,words:n,title:a,subtitle:r,emptyText:s,buttons:i,renderButtons:l,renderFooter:u,footerClassName:c,footerLayout:d,printFileName:p,showSettings:m,autoPrint:h,className:g,onClose:y,scoring:f=!1,onScoreChange:x,printHeader:b,brand:C,code:_,beforeClose:v}){const{t:A}=ye.useTranslation(),w=o.useMemo(()=>Array.isArray(e)?e:(Array.isArray(n)?n:[]).filter(ue=>typeof ue=="string"&&ue.length>0).map((ue,pe)=>({id:`${ue}-${pe}`,words:[{label:ue}]})),[e,n]),{settings:N,filterSections:k,filterSelected:B,handleSelect:S,pages:E,isPaginated:H,pageNumberPosition:z}=Iu(w,{paperBands:!!C?.show}),U=o.useMemo(()=>mu(E.map(ue=>ue.length)),[E]),[T,L]=o.useState({}),F=o.useCallback((ue,pe)=>{L(q=>({...q,[rr(ue)]:cu(q[rr(ue)]??null,pe)}))},[]),Z=o.useRef(x);o.useEffect(()=>{Z.current=x});const J=o.useRef(T);o.useEffect(()=>{J.current!==T&&(J.current=T,Z.current?.(wo(T)))},[T]);const V=o.useMemo(()=>wo(T),[T]),P=o.useRef(null),{toastMessage:W,toastKey:R,showWarning:D,clearToast:I}=ll("warning"),j=o.useRef([]),O=o.useCallback(()=>H?j.current.filter(ue=>ue!==null):P.current?[P.current]:[],[H]),{print:$,openNewWindow:Y}=Do({getElements:O,paperW:ia[N.orientation].width,paperH:ia[N.orientation].height,fileName:p??"",header:b??"",onPopupBlocked:()=>D(A("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."))}),ae=o.useMemo(()=>u?void 0:l?l({print:$,openNewWindow:Y}):p?[{label:A("wordTable.openNewWindow","\uC0C8 \uCC3D\uC73C\uB85C \uBCF4\uAE30"),variant:"default",onClick:()=>Y()},{label:A("wordTable.print","\uC778\uC1C4\uD558\uAE30"),variant:"default",onClick:()=>$()},...i??[]]:i,[u,l,p,i,A,$,Y]),K=o.useMemo(()=>u?u({print:$,openNewWindow:Y}):void 0,[u,$,Y]),ne=o.useRef(!1),be=o.useRef($);return o.useEffect(()=>{be.current=$},[$]),o.useEffect(()=>{if(!h||ne.current)return;const ue=window.setTimeout(()=>{ne.current=!0,be.current()},100);return()=>window.clearTimeout(ue)},[h]),t.jsxs(Tn,{title:a??A("keyWords.title","\uC8FC\uC694 \uB2E8\uC5B4"),subtitle:r,size:"large",className:De("word-table-popup",g),buttons:ae,footer:K,footerClassName:c,footerLayout:d,beforeClose:v,onClose:y,children:[w.length>0?t.jsxs("div",{className:"word-table-popup__body",children:[m&&t.jsx(ko,{sections:k,selected:B,onSelect:S}),H?t.jsx("div",{className:"word-table-popup__pages",children:E.map((ue,pe)=>t.jsx(la,{items:ue,orientation:N.orientation,contentTypes:N.contentTypes,cutLine:N.cutLine,showOutline:N.showOutline,showDivLine:N.showDivLine,count:N.count,contentRef:q=>{j.current[pe]=q},pageNumber:{current:pe+1,total:E.length},pageNumberPosition:z,brand:C&&{...C,top:N.showTopInfo,bottom:N.showBottomInfo},code:_,scoring:f,scoreIndexOffset:U[pe],marks:V,onMarkClick:F},pe))}):t.jsx("div",{className:"word-table-popup__table",children:t.jsx(la,{items:w,orientation:N.orientation,contentTypes:N.contentTypes,cutLine:N.cutLine,showOutline:N.showOutline,showDivLine:N.showDivLine,count:N.count,contentRef:P,fitHeight:!0,scoring:f,marks:V,onMarkClick:F,brand:C&&{...C,top:N.showTopInfo,bottom:N.showBottomInfo},code:_})})]}):t.jsx("p",{className:"word-table-popup__empty body-3",children:s??A("keyWords.empty","\uCD94\uCD9C\uB41C \uC8FC\uC694 \uB2E8\uC5B4\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")}),t.jsx(ra,{message:W,position:"top",onClose:I},R)]})}const e5=new Set(["x","triangle"]);function t5(e,n){const a=[];for(let r=0;r<e.length;r++){const s=n[String(r)];s&&e5.has(s)&&a.push(e[r])}return a}const n5=/\s*(?:(\d+)차\s*)?복습\s*\d{2}\.\d{2}$/;function Fu(e){const n=e.name.trim(),a=e.reviewRound;if(typeof a=="number"&&Number.isFinite(a)&&a>=0){const i=Math.floor(a);if(i===0)return{\uBC14\uD0D5:n,\uD68C\uCC28:1};const l=(i===1?/\s*복습\s*\d{2}\.\d{2}$/:new RegExp(`(?:^|\\s)${i}\uCC28\\s*\uBCF5\uC2B5\\s*\\d{2}\\.\\d{2}$`)).exec(n);return{\uBC14\uD0D5:l?n.slice(0,l.index).trim():n,\uD68C\uCC28:i+1}}let r=n,s=1;for(;;){const i=n5.exec(r);if(!i)break;s=Math.max(s,(i[1]?Number(i[1]):1)+1),r=r.slice(0,i.index).trim()}return{\uBC14\uD0D5:r,\uD68C\uCC28:s}}function a5(e,n){const[,a,r]=Ir(n).split("-"),s=`${a}.${r}`,{\uBC14\uD0D5:i,\uD68C\uCC28:l}=Fu(typeof e=="string"?{name:e}:e),u=l>=2?`${l}\uCC28 `:"";return`${i||"\uB2E8\uC5B4\uD45C"} ${u}\uBCF5\uC2B5 ${s}`}function r5(e){return{reviewOf:e.reviewOf??e.id??void 0,reviewRound:Fu(e).\uD68C\uCC28}}function o5(e,n){const a={};for(const[r,s]of Object.entries(n)){if(s!=="o"&&s!=="triangle"&&s!=="x")continue;const i=Number(r),l=e[i];l&&(a[r]=l)}return a}function s5(e){return e.map(n=>n.label).join(" / ")}function i5(e){return e.map(n=>n.homonum!=null?`${n.label}#${n.homonum}`:n.label).join(" / ")}function Ou(e){return e.split(" / ").map(n=>n.replace(/#\d+$/,"")).join(" / ")}function l5(e,n,a){const r=ci(a);return[e.trim(),r,n.trim()].filter(Boolean).join(" \xB7 ")}function Hu(e,n,a){return a===0?0:(e+n*.5)/a}function u5(e){const n=new Map,a=[...e].sort((s,i)=>s.scoredAt.localeCompare(i.scoredAt));for(const s of a)for(const[i,l]of Object.entries(s.marks)){const u=s.labels?.[i];if(!u)continue;const c=n.get(u)??{o:0,triangle:0,x:0,latest:l,latestAt:s.scoredAt};if(l==="o")c.o++;else if(l==="triangle")c.triangle++;else if(l==="x")c.x++;else continue;c.latest=l,c.latestAt=s.scoredAt,n.set(u,c)}const r=[];for(const[s,i]of n){const l=i.o+i.triangle+i.x;r.push({label:Ou(s),key:s,tried:l,o:i.o,triangle:i.triangle,x:i.x,rate:Hu(i.o,i.triangle,l),latest:i.latest,latestAt:i.latestAt})}return r.sort((s,i)=>s.rate-i.rate||i.tried-s.tried||aa(s.label,i.label)||aa(s.key??s.label,i.key??i.label)),r}function c5(e){const n=new Map;for(const r of e){const s=r.tableId??`name:${r.tableName}`,i=n.get(s)??{tableName:r.tableName,tableId:r.tableId,rows:[]};i.rows.push(r),n.set(s,i)}const a=[];for(const r of n.values()){const s=u=>Object.values(u.marks).filter(c=>c==="o"||c==="triangle"||c==="x").length,i=r.rows.filter(u=>s(u)>0).sort((u,c)=>u.scoredAt.localeCompare(c.scoredAt));if(i.length===0)continue;const l=i.map(u=>{const c=Object.values(u.marks),d=c.filter(m=>m==="o").length,p=c.filter(m=>m==="triangle").length;return Hu(d,p,s(u))});a.push({tableName:r.tableName,tableId:r.tableId,rates:l,times:i.map(u=>u.scoredAt),delta:l.length>=2?l[l.length-1]-l[0]:null})}return a.sort((r,s)=>(s.times[s.times.length-1]??"").localeCompare(r.times[r.times.length-1]??"")),a}function d5(e,n=8){return e.filter(a=>a.latest!=="o").slice(0,n)}function p5(e,n){if(e==null||n==null||e===""||n==="")return 0;if(typeof e=="number"&&typeof n=="number")return e-n;const a=String(e),r=String(n);return+(a>r)-+(a<r)}function m5(e){const n=new Map;let a=0,r=0;const s=e.map((l,u)=>({r:l,\uC790\uB9AC:u})).sort((l,u)=>l.r.answeredAt.localeCompare(u.r.answeredAt)||p5(l.r.id,u.r.id)||l.\uC790\uB9AC-u.\uC790\uB9AC).map(l=>l.r);for(const l of s){if(l.isCorrect==null)continue;const u=l.itemTitle?.trim();if(!u){r++;continue}a++;const c=l.itemId?.trim()||u,d=`${l.trainingType}|${c}`,p=n.get(d)??{trainingType:l.trainingType,itemId:c,title:u,tried:0,wrong:0,latestCorrect:l.isCorrect,latestAt:l.answeredAt,lastSelected:l.selected,setIds:[]};if(p.tried++,l.isCorrect||p.wrong++,p.title=u,p.latestCorrect=l.isCorrect,p.latestAt=l.answeredAt,p.lastSelected=l.selected,l.setId){const m=p.setIds.indexOf(l.setId);m>0&&p.setIds.splice(m,1),m!==0&&p.setIds.unshift(l.setId)}n.set(d,p)}const i=[...n.entries()].map(([l,u])=>({key:l,trainingType:u.trainingType,itemId:u.itemId,title:u.title,tried:u.tried,wrong:u.wrong,rate:u.tried===0?0:(u.tried-u.wrong)/u.tried,latestCorrect:u.latestCorrect,latestAt:u.latestAt,lastSelected:u.lastSelected,setIds:u.setIds}));return i.sort((l,u)=>l.rate-u.rate||u.tried-l.tried||aa(l.title,u.title)),{items:i,counted:a,skippedNoTitle:r}}function h5(e,n=8){return e.filter(a=>!a.latestCorrect).slice(0,n)}function C5(e){const n=new Map;for(const r of e){const s=n.get(r.trainingType)??[];s.push(r),n.set(r.trainingType,s)}const a=[...n.entries()].map(([r,s])=>({trainingType:r,items:s,pending:s.filter(i=>!i.latestCorrect).length}));return a.sort((r,s)=>s.pending-r.pending||r.trainingType.localeCompare(s.trainingType)),a}const Eo=["LISTEN_IN_NOISE","SHORT_STORY","LONG_STORY","ORDERING_SENTENCE"];function f5(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 u=`${i.trainingType}|${l}`,c=n.get(u)??{setId:l,trainingType:i.trainingType,pending:0};c.pending++,n.set(u,c)}const r=(i,l)=>l.pending-i.pending||i.trainingType.localeCompare(l.trainingType)||i.setId.localeCompare(l.setId),s=[...n.values()];return{sentence:s.filter(i=>Eo.includes(i.trainingType)).sort(r),word:s.filter(i=>!Eo.includes(i.trainingType)).sort(r),noSet:a}}function g5(e,n,a=5){const r=new Set(n);if(r.size===0)return[];const s=[];for(const i of e){const l=new Set,u=[];for(const c of i.cellLabels)r.has(c)&&!l.has(c)&&(l.add(c),u.push(c));u.length!==0&&s.push({id:i.id,name:i.name,kind:i.kind,covered:u,totalCells:i.cellLabels.length})}return s.sort((i,l)=>l.covered.length-i.covered.length||i.totalCells-l.totalCells||aa(i.name,l.name)),s.slice(0,Math.max(0,a))}function b5(e,n){const a=new Set(e.flatMap(r=>r.covered));return n.filter(r=>!a.has(r))}function y5(e,n){const a=new Map;for(const s of e)for(const i of s.cells){const l=s.labelOf(i);a.has(l)||a.set(l,i)}const r=[];for(const s of n){const i=a.get(s);i!==void 0&&r.push(i)}return r}function So(e,n,a){return typeof e=="string"&&e?e:n.replace(/\{\{(\w+)\}\}/g,(r,s)=>String(a[s]))}function v5(e,n){const a=Number.isFinite(e)?Math.round(e):0;if(!a||a<=0)return"-";const r=Math.floor(a/60),s=a%60;return n?n(r,s):r>0&&s>0?So(Et.t("customers.duration.minSec",{m:r,s,defaultValue:"{{m}}\uBD84 {{s}}\uCD08"}),"{{m}}\uBD84 {{s}}\uCD08",{m:r,s}):r>0?So(Et.t("customers.duration.min",{m:r,defaultValue:"{{m}}\uBD84"}),"{{m}}\uBD84",{m:r}):So(Et.t("customers.duration.sec",{s,defaultValue:"{{s}}\uCD08"}),"{{s}}\uCD08",{s})}function x5(e,n){const a=[],r=new Set;for(const s of e){const i=n(s);r.has(i)||(r.add(i),a.push({key:i,value:s,pinned:!1}))}return a}function _5(e,n){return e.map(a=>a.key===n?{...a,pinned:!a.pinned}:a)}function w5(e,n){return e.filter(a=>a.key!==n)}function A5(e,n,a){const r=e.filter(d=>d.pinned),s=new Set(r.map(d=>d.key)),i=e.length-r.length,l=[],u=new Set(s);for(const d of n){if(l.length>=i)break;const p=a(d);u.has(p)||(u.add(p),l.push({key:p,value:d,pinned:!1}))}const c=[...l];return e.map(d=>d.pinned?d:c.shift()).filter(d=>d!==void 0)}function k5(e){return e.map(n=>n.value)}function B5(e){const{category:n={},isSelected:a=!1,onClick:r}=e||{},s=n?.key?` icon-grid-menu__button--${n.key}`:"",i=o.useId();return t.jsxs("div",{className:`icon-grid-menu__button-wrapper${s}`,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(Ke,{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 N5(e){const{categories:n=[],selected:a,onSelect:r,size:s="medium"}=e||{},i=a!==void 0,[l,u]=o.useState(()=>i?null:(n&&n[0]?.key)??null),c=i?a:l,d=o.useRef(r);o.useEffect(()=>{d.current=r});const p=o.useRef(!1),m=(n&&n[0]?.key)??null;o.useEffect(()=>{if(i||p.current||!m)return;p.current=!0;const g=l??m;l==null&&u(g),d.current?.(g)},[i,m]);const h=o.useCallback(g=>{const y=c===g?null:g;p.current=!0,i||u(y),r?.(y)},[c,i,r]);return t.jsx("div",{className:`icon-grid-menu icon-grid-menu--${s}`,children:(n||[]).map(g=>t.jsx(B5,{category:g,isSelected:c===g.key,onClick:()=>h(g.key)},g.key))})}function D5({subs:e=[],selected:n,onSelect:a,size:r="medium"}){const s=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(de,{htmlType:"button",size:s,type:"bar",label:i.label,selected:n===i.key,className:"choice-chips__button",onClick:()=>a?.(i.key)},i.key))})})}function E5({onTermsClick:e,onPrivacyClick:n,contact:a}={}){const r=a?.email??"support@ihab.co.kr",s=a?.tel??"031-380-3724",{t:i}=ye.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
1046
1046
  \uC2E0\uB8B0\uB97C \uC313\uACE0
1047
1047
  \uD68C\uBCF5\uC744 \uB3D5\uC2B5\uB2C8\uB2E4.`).split(`
1048
- `).map((l,u,c)=>t.jsxs(o.Fragment,{children:[l,u<c.length-1&&t.jsx("br",{})]},u))})}),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:ro,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 ",s]})]})]})]}),t.jsx("div",{className:"site-footer__copyright footer-copyright caption-1",children:"\xA9 IHAB, Inc. All rights reserved."})]})})}function S5({logo:e,logoAlt:n="",logoHref:a,links:r=[],actions:s,className:i,containerClassName:l,renderLink:u,menuLabel:c}){const{t:d}=ye.useTranslation(),p=c??{open:d("header.menuOpen","\uBA54\uB274 \uC5F4\uAE30"),close:d("header.menuClose","\uBA54\uB274 \uB2EB\uAE30")},[m,h]=o.useState(!1),g=o.useId(),y=o.useRef(null);o.useEffect(()=>{if(!m)return;const b=zn(()=>{const v=document.getElementById(g);v&&v.contains(document.activeElement)&&y.current?.focus(),h(!1)}),C=typeof window<"u"&&window.matchMedia?window.matchMedia("(min-width: 961px)"):null,_=v=>{v.matches&&h(!1)};return C&&(C.matches&&h(!1),C.addEventListener?.("change",_)),()=>{b(),C?.removeEventListener?.("change",_)}},[m,g]);const f=l?`${l} landing-header__inner`:"landing-header__inner",x=(b,C)=>u?u(b,{onClick:C}):t.jsx("a",{href:b.href,onClick:C,"aria-current":b.current?"page":void 0,children:b.label});return t.jsxs("header",{className:i?`landing-header ${i}`:"landing-header",children:[t.jsxs("div",{className:f,children:[e!=null&&(()=>{const b=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:b}):t.jsx("div",{className:"landing-header__brand",children:b})})(),r.length>0&&t.jsx("nav",{className:"landing-header__links",children:r.map((b,C)=>t.jsx("span",{children:x(b)},`${C}:${b.href}`))}),t.jsxs("div",{className:"landing-header__actions",children:[s,r.length>0&&t.jsx("button",{ref:y,type:"button",onClick:()=>h(b=>!b),"aria-expanded":m,"aria-controls":g,"aria-label":m?p.close:p.open,className:m?"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:g,hidden:!m,className:"landing-header__drawer",children:t.jsx("div",{className:l??void 0,children:r.map((b,C)=>t.jsx("span",{className:"landing-header__drawer-item",children:x(b,()=>h(!1))},`${C}:${b.href}`))})})]})}function j5({children:e,action:n,onClick:a,className:r}){const s=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:s,onClick:a,...iu(a),children:[t.jsx("div",{className:"bottom-sticky__content",children:e}),n]})})}const ca=9,T5=e=>Math.round(Math.min(ca,Math.max(0,e))/ca*100),M5=e=>e/100*ca,La=2,zu=.1,L5=e=>Math.min(La,Math.max(0,e)),$5=.1,R5=e=>Math.round(e*1e6)/1e6;function $a(e){const{noiseRatio:n}=e;if(typeof n=="number"&&Number.isFinite(n))return L5(n);const a=Math.min(ca,Math.max(0,Number(e.level)||0))/ca,r=Number(e.mainVolume);return r>0?a>0?R5(Math.min(La,Math.max($5,a/r))):0:1}const Vu=e=>Math.min(1,Math.max(0,Number(e.mainVolume)||0));function Wu(e){return Vu(e)}function jo(e){return Vu(e)*$a(e)}function To(e,n=Us()){const a=Number.isFinite(n)&&n>0?n:1;return Math.min(1,jo(e)/a)}function Ra(e,n){const a={...e,...n??{}};return n&&"level"in n&&typeof n.noiseRatio!="number"&&(a.noiseRatio=$a({level:a.level,mainVolume:a.mainVolume})),a}const Pa={enabled:!0,type:"defaultNoise",level:4.5,noiseRatio:1,speed:1,mainVolume:1,mainSpeed:1},Mo=o.createContext(null);function ir(){return o.useContext(Mo)}const Lo=e=>`${Q0()}/${e}`,qu=e=>Array.from({length:10},(n,a)=>Lo(`${e}-${String(a+1).padStart(2,"0")}.mp3`)),lr={get defaultNoise(){return Lo("noise1.mp3")},get street(){return qu("noise2")},get restaurant(){return qu("noise3")},get buzz(){return Lo("noise4.mp3")}};function P5(e){const n=Math.floor(Math.random()*10);switch(e){case"defaultNoise":return lr.defaultNoise;case"street":return lr.street[n];case"restaurant":return lr.restaurant[n];case"buzz":return lr.buzz;default:return null}}function I5({noisePlayer:e,audioRef:n,playbackStateRef:a}){const r=o.useRef(e?.registerAnalyser);r.current=e?.registerAnalyser;const s=o.useRef(null),[i,l]=o.useState(null),u=o.useRef(null),c=o.useRef(null),d=o.useRef(null),p=o.useRef(null),m=o.useRef(0),h=o.useRef(null),g=o.useCallback(()=>{p.current!==null&&(cancelAnimationFrame(p.current),p.current=null),h.current!==null&&(clearTimeout(h.current),h.current=null)},[]),y=o.useCallback((_,v=250)=>{const A=s.current;if(!A)return;const w=c.current;if(w){c.current=null;try{A.pause()}catch{}A.src=w,A.load()}if(!A.src)return;m.current+=1,g();try{Tr(),Oa(A).then(S=>{if(s.current===A)try{r.current?.("noise",S)}catch{}})}catch{}const N=A.paused?0:Ha(A);A.paused&&Sn(A,0),A.play().catch(()=>{});const k=performance.now(),B=()=>{const S=Math.min(1,(performance.now()-k)/v);try{Sn(A,N+(_-N)*S)}catch{}S<1?p.current=requestAnimationFrame(B):p.current=null};p.current=requestAnimationFrame(B)},[g]),f=o.useCallback((_=250,v)=>{const A=s.current;if(!A||A.paused){v?.();return}const w=++m.current;g();const N=performance.now(),k=Ha(A),B=()=>{const S=Math.min(1,(performance.now()-N)/_);try{Sn(A,k*(1-S))}catch{}if(S<1)p.current=requestAnimationFrame(B);else{p.current=null,h.current!==null&&(clearTimeout(h.current),h.current=null);try{A.pause()}catch{}v?.()}};p.current=requestAnimationFrame(B),h.current=setTimeout(()=>{if(h.current=null,m.current===w){p.current!==null&&(cancelAnimationFrame(p.current),p.current=null);try{A.paused||(Sn(A,0),A.pause(),v?.())}catch{}}},_+150)},[g]);o.useEffect(()=>{const _=document.createElement("audio");return _.loop=!0,_.crossOrigin="anonymous",s.current=_,()=>{g();try{_.pause(),_.src=""}catch{}s.current=null,u.current=null,c.current=null}},[g]);const x=e?To(e.settings):0,b=!!e?.settings.enabled&&x>0;o.useEffect(()=>{if(!b)return;let _=0;const v=setInterval(()=>{const A=s.current;if(!A||A.paused){_=0;return}const w=n.current;if(w&&!w.paused&&!w.ended||a.current==="playing"){_=0;return}_+=1,_>=2&&(_=0,f())},400);return()=>clearInterval(v)},[f,b,n,a]),o.useEffect(()=>{const _=()=>{const v=s.current;if(document.hidden){if(v&&!v.paused){g();try{v.pause()}catch{}}return}if(!v||!v.paused)return;const A=n.current,w=!!A&&!A.paused&&!A.ended||a.current==="playing",N=d.current;w&&N?.enabled&&N.volume>0&&y(N.volume)};return document.addEventListener("visibilitychange",_),()=>document.removeEventListener("visibilitychange",_)},[g,y,n,a]),o.useEffect(()=>{d.current=e?{enabled:e.settings.enabled,volume:x,type:e.settings.type}:null},[e,e?.settings.enabled,x,e?.settings.type]);const C=o.useRef(null);return o.useEffect(()=>()=>{C.current?.(),C.current=null},[]),o.useEffect(()=>{const _=e?.settings,v=s.current;if(!v)return;const A=_?To(_):0;if(!_||!_.enabled||A===0){f();return}if(u.current!==_.type){const w=P5(_.type);w&&(u.current=_.type,l(w),c.current=w,f(150,()=>{if(c.current!==w)return;c.current=null,v.src=w,v.load();const N=n.current;if(N&&!N.paused){C.current?.();const k=()=>{v.removeEventListener("canplay",k),C.current===B&&(C.current=null);const S=n.current,E=d.current;S&&!S.paused&&!S.ended&&E?.enabled&&E.volume>0&&y(E.volume)},B=()=>v.removeEventListener("canplay",k);C.current=B,v.addEventListener("canplay",k)}}))}else{const w=n.current,N=!!w&&!w.paused&&!w.ended||a.current==="playing";if(N&&c.current)y(A);else if(N&&v.paused&&v.src)y(A);else if(!v.paused)if(!N)f();else{g();const k=Ha(v),B=performance.now(),S=()=>{const E=Math.min(1,(performance.now()-B)/150);try{Sn(v,k+(A-k)*E)}catch{}E<1?p.current=requestAnimationFrame(S):p.current=null};p.current=requestAnimationFrame(S)}}},[e?.settings,e?.settings.enabled,x,e?.settings.type,g,y,f,n,a,d]),o.useEffect(()=>{const _=s.current;if(_)try{_.playbackRate=Math.min(1.25,Math.max(.75,e?.settings.speed??1))}catch{}},[e?.settings.speed]),{noiseAudioRef:s,activeNoiseUrl:i,noiseSettingsRef:d,cancelNoiseFade:g,fadeInNoise:y,fadeOutNoise:f}}function F5({ttsText:e,playbackRate:n,mainVolume:a,fillRef:r,waveProgressRef:s,setProgress:i,setPlaybackState:l,setStateLocal:u,fadeInNoise:c,fadeOutNoise:d,noiseSettingsRef:p,onDoneRef:m,handleEndRef:h}){const g=o.useRef(null),y=o.useRef(0),f=o.useRef(null),x=o.useRef(0),b=o.useRef(!1);o.useEffect(()=>()=>{x.current++;try{if(f.current&&(cancelAnimationFrame(f.current),f.current=null),b.current&&window.speechSynthesis){try{window.speechSynthesis.cancel()}catch{}b.current=!1}}catch{}},[]);const C=(A,w=1)=>{try{const N=(A||"").trim().split(/\s+/).filter(Boolean).length||Math.max(1,(A||"").length);return Math.max(700,Math.round(N*300/Math.max(.25,w)))}catch{return 1200}},_=o.useCallback(A=>{if(typeof window>"u"||!window.speechSynthesis){try{typeof m.current=="function"&&m.current(!1)}catch{}return}const w=window.speechSynthesis,N=++x.current;try{try{w.cancel()}catch{}const k=A??e,B=Array.isArray(k)?k.filter(T=>!!T):[k||""];B.length===0&&B.push("");const S=Math.max(.3,Math.min(3,n));y.current=B.reduce((T,L)=>T+C(L,S||1),0),g.current=performance.now(),i(0),l("playing"),u("playMode");const E=p.current;E?.enabled&&(E?.volume??0)>0&&c(E.volume);const H=()=>{try{const T=g.current||performance.now(),L=performance.now()-T,F=y.current||1200,Z=Math.min(1,L/F);try{r.current&&(r.current.style.left=`${Z*100}%`),s.current&&s.current.style.setProperty("--progress",String(Z))}catch{}Z<1&&(f.current=requestAnimationFrame(H))}catch{}},z=()=>{if(N===x.current)try{f.current&&(cancelAnimationFrame(f.current),f.current=null),i(1),l("stopped");try{h.current?.()}catch{try{typeof m.current=="function"&&m.current(!0)}catch{}}}catch{}},U=T=>{const L=new SpeechSynthesisUtterance(B[T]);try{L.rate=S}catch{}try{L.volume=Math.max(0,Math.min(1,a))}catch{}L.onend=()=>{if(N===x.current){if(T<B.length-1){try{U(T+1)}catch{z()}return}z()}},L.onerror=()=>{z()},L.onstart=()=>{if(!(T>0))try{f.current&&(cancelAnimationFrame(f.current),f.current=null),f.current=requestAnimationFrame(H)}catch{}},b.current=!0,w.speak(L)};try{U(0)}catch{try{typeof m.current=="function"&&m.current(!0)}catch{}}}catch{try{typeof m.current=="function"&&m.current(!0)}catch{}}},[e,n,a,c,r,s,i,l,u,p,m,h]),v=o.useCallback(()=>{x.current++;try{if(window.speechSynthesis)try{window.speechSynthesis.cancel()}catch{}f.current&&(cancelAnimationFrame(f.current),f.current=null),d(),g.current=null}catch{}l("stopped"),u("active"),i(0)},[d,l,u,i]);return{startTTS:_,stopTTS:v}}async function O5(e,n,a){let r=null;try{const s=window.AudioContext||window.webkitAudioContext;r=new s;const i=await r.decodeAudioData(e.slice(0)),l=i.numberOfChannels>0?i.getChannelData(0):null;if(!l)return null;const u=a&&a>0?Math.min(l.length,Math.floor(a*i.sampleRate)):l.length,c=Math.max(n,u),d=Math.floor(c/n)||1;return new Array(n).fill(0).map((p,m)=>{const h=m*d,g=Math.min(h+d,c);let y=0;for(let f=h;f<g;f++){const x=Math.abs(l[f]);x>y&&(y=x)}return y})}catch{return null}finally{try{r?.close?.()}catch{}}}async function Uu(e,n,a){try{const r=await fetch(e);if(r.ok===!1)return null;const s=await r.arrayBuffer();return await O5(s,n,a)}catch(r){try{const s=ni(r)}catch{}return null}}const Gu=45,H5=74,z5=2;function Ia(e){const n=Math.min(2,Math.max(0,Number(e)||0));return n<=1?n*45:45+(n-1)*29}function $o(e){return Ia(e)/45}const Ku=4;function V5(e){const{src:n,segments:a,progress:r=0,waveProgressRef:s,noiseSrc:i,noiseRatio:l=0,noiseSpeed:u=1,totalDuration:c=0,mainVolume:d=1,onReadyChange:p,showSoundWaveForm:m=!0}=e,h=o.useRef(null),g=o.useRef(null),[y,f]=o.useState(null),[x,b]=o.useState(!1),[C,_]=o.useState(null),[v,A]=o.useState(2),[w,N]=o.useState(0),[k,B]=o.useState(null),[S,E]=o.useState(!1),[H,z]=o.useState(!1),U=3,T=3,L=1,F=300,Z=o.useRef(0),J=o.useCallback(()=>{const pe=h.current,q=g&&g.current?g.current:pe?pe.closest(".audio-player__wave"):null,ee=q?q.getBoundingClientRect():pe?pe.getBoundingClientRect():null,ie=ee?ee.width:0,ve=ee?Math.max(100,ee.width):320,me=ee?ee.height:0,oe=Math.max(L,Math.min(F,Math.floor((ve+T)/(U+T)))),fe=oe*U,ge=Math.max(0,oe-1),Ee=Math.max(0,ge>0?(ve-fe)/ge:T);return{bars:oe,gap:Ee,height:me,width:ie}},[]),V=o.useRef(void 0),P=o.useRef(null),W=o.useCallback(async(pe,q,{quiet:ee=!1}={})=>{const ie=++Z.current,ve=()=>Z.current===ie;try{if(ee||b(!1),V.current=pe,!pe){ve()&&f(null);return}let me=q;if(!me)try{for(let ge=0;ge<4&&!(h.current||g.current);ge++)await new Promise(Ee=>requestAnimationFrame(Ee));await new Promise(ge=>requestAnimationFrame(ge));const fe=J();fe.height>0&&N(fe.height),me=fe.bars,A(fe.gap)}catch{me=120}P.current=me;const oe=await Uu(pe,me);if(!ve())return;if(!oe){f(null),b(!1);return}f(oe),_(me),b(!0)}catch{if(!ve())return;f(null),b(!1)}},[b,f,N,A,_,J]);o.useEffect(()=>{const pe=g.current;if(!pe||typeof ResizeObserver>"u")return;let q=null;const ee=new ResizeObserver(()=>{q!==null&&cancelAnimationFrame(q),q=requestAnimationFrame(()=>{q=null;try{const ie=J();if(ie.width<=0||(ie.height>0&&N(ie.height),P.current===null||ie.bars===P.current))return;const ve=V.current;A(ie.gap),ve?W(ve,ie.bars,{quiet:!0}).catch(()=>{}):P.current=ie.bars}catch{}})});return ee.observe(pe),()=>{ee.disconnect(),q!==null&&cancelAnimationFrame(q)}},[J,W]),o.useEffect(()=>{const pe=a&&a[0]&&a[0].src||n||a&&a.length===1&&a[0]&&a[0].src;W(typeof pe=="string"?pe:void 0).catch(()=>{}),z(!1)},[n,a,W]),o.useEffect(()=>{let pe=!1;if(E(!1),!i||!C){B(null);return}const q=c>0?c*(u||1):void 0;return Uu(i,C,q).then(ee=>{pe||(B(ee),ee||E(!0))}).catch(()=>{pe||(B(null),E(!0))}),()=>{pe=!0}},[i,C,c,u]);const R=Math.max(0,Math.min(1,d)),D=o.useMemo(()=>y&&y.length&&Math.max(...y)||1,[y]),I=C||40,j=o.useMemo(()=>Array.from({length:I}).map((pe,q)=>{const ee=y&&y[q]!=null?y[q]:null,ie=ee==null?null:Math.min(1,ee/D*R),ve=ie!=null&&w>0&&Ia(ie)<=Ku,me=ie==null?.15:ve?0:$o(ie),oe=I>1?q/(I-1):0;return t.jsx("div",{className:ve?"audio-player__bar audio-player__bar--hidden":"audio-player__bar",style:{"--val":me,"--i":q,"--mix":oe}},q)}),[I,y,D,R,w]),O={"--progress":String(Math.max(0,Math.min(1,r)))},$=i?Math.max(1,l):1,Y={"--bar-gap":`${v}px`,"--wave-h":`${Ia($)}px`,"--wave-h1":`${Gu}px`},ae=R*Math.max(0,l)/Us(),K=x&&(i?!!k||S:!0);o.useEffect(()=>{K&&z(!0)},[K]);const ne=H?x:K;o.useEffect(()=>{p?.(ne)},[ne,p]);const be=C||40,ue=o.useMemo(()=>Array.from({length:be}).map((pe,q)=>{const ee=k&&k[q]!=null?k[q]:null,ie=ee==null?0:ee/D*ae,ve=w>0&&Ia(ie)<=Ku,me=ve?0:$o(ie),oe=be>1?q/(be-1):0;return t.jsx("div",{className:ve?"audio-player__bar audio-player__bar--hidden":"audio-player__bar",style:{"--val":me,"--i":q,"--mix":oe}},q)}),[be,k,D,ae,w]);return t.jsxs("div",{className:"audio-player__wave",ref:g,style:Y,children:[i&&t.jsx("div",{className:`audio-player__wave-noise ${K?"is-ready":""}`,"aria-hidden":"true",children:ue}),m&&t.jsxs(t.Fragment,{children:[t.jsx("div",{className:`audio-player__wave-inner audio-player__wave-unplayed ${ne?"is-ready":""}`,ref:h,children:j}),t.jsx("div",{className:`audio-player__wave-inner audio-player__wave-played ${ne?"is-ready":""}`,ref:s,style:O,children:j})]})]})}const W5={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 Ro(e,n){return new Promise((a,r)=>{const s=document.createElement("audio");let i=!1;const l=()=>{try{s.src=""}catch{}},u=()=>{if(i)return;i=!0;const d=isFinite(s.duration)&&s.duration||0;l(),a(d)},c=d=>{i||(i=!0,l(),n.rejectOnError?r(new Error(d)):a(0))};s.addEventListener("loadedmetadata",u),s.addEventListener("error",()=>c("audio load failed")),setTimeout(()=>c("audio load timeout"),n.timeoutMs),s.src=e})}const q5=2e3;function Yu(e,n=q5){return new Promise(a=>{let r=!1;const s=()=>{r||(r=!0,a())};e.addEventListener("canplay",s,{once:!0}),e.addEventListener("error",s,{once:!0}),setTimeout(s,n)})}function U5({showSoundWaveForm:e,showNoiseWaveForm:n,timeoutMs:a=2500}){const r=o.useRef(!1),s=o.useRef([]),i=o.useCallback(c=>{if(r.current=c,!c||!s.current.length)return;const d=s.current;s.current=[];for(const p of d)p(!0)},[]),l=o.useCallback(()=>{r.current=!1},[]),u=o.useCallback(()=>!e&&!n||r.current?Promise.resolve(!0):new Promise(c=>{const d=m=>{clearTimeout(p),s.current=s.current.filter(h=>h!==d),c(m)},p=setTimeout(()=>d(!0),a);s.current.push(d)}),[e,n,a]);return o.useEffect(()=>()=>{const c=s.current;s.current=[];for(const d of c)d(!1)},[]),{onReadyChange:i,waitForReady:u,markNotReady:l}}function G5(){const e=o.useRef([]),n=o.useCallback(s=>(e.current.push(s),s),[]),a=o.useCallback(s=>{const i=new Set([...s].filter(Boolean));e.current=e.current.filter(l=>{if(i.has(l))return!0;try{URL.revokeObjectURL(l)}catch{}return!1})},[]),r=o.useCallback(()=>{a([])},[a]);return o.useEffect(()=>()=>{for(const s of e.current)try{URL.revokeObjectURL(s)}catch{}e.current=[]},[]),{track:n,keepOnly:a,revokeAll:r}}function K5({offsetY:e=8}={}){const n=o.useRef(null),[a,r]=o.useState(null),s=o.useCallback(()=>r(null),[]),i=o.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 o.useEffect(()=>{if(a)return document.addEventListener("mousedown",s),()=>document.removeEventListener("mousedown",s)},[a,s]),{ref:n,rect:a,show:i,hide:s}}function Y5({currentTime:e,sources:n,index:a,audioDuration:r}){const s=a||0,i=Array.isArray(n)&&n.length>0?n[s]:void 0,l=i?i.duration||r||0:r||0;if(!(l>0))return 0;const u=Number.isFinite(e)?e:0;return Math.max(0,Math.min(1,u/l))}function Z5(e,n){if(!Array.isArray(e))return null;const a=n||0;return a<e.length-1?a+1:null}function X5({ended:e,completedByEnd:n}){return!!e||!!n}function J5(e){return e.map((n,a)=>({src:n.src,label:String(a+1),color:void 0,duration:n.duration||0}))}function Q5(e){return e.reduce((n,a)=>n+(a.duration||0),0)}function e3(e,n,a){const r=Array.isArray(e)?e:e?[e]:[],s=[];for(const i of r)if(i){if(typeof i=="object"&&i!==null&&"src"in i&&i.src){const l=i;s.push({code:l.code??null,src:l.src});continue}if(typeof i=="string"&&(i.startsWith("http")||i.includes("/"))){s.push({code:null,src:i});continue}if(typeof i=="string"||typeof i=="number"){const l=String(i),u=a(l,n);u&&s.push({code:l,resolvedPath:u})}}return s}function t3(e){if(!e)return 0;const n=e.duration;if(Number.isFinite(n)&&n>0)return n;if(n===0)return 0;try{const a=e.seekable;if(a&&a.length>0){const r=a.end(a.length-1);if(Number.isFinite(r)&&r>0)return r}}catch{}return null}function n3({audioRef:e,fillRef:n,waveProgressRef:a,sourcesRef:r,currentIndexRef:s}){const i=o.useRef(null),l=o.useCallback(()=>{i.current!==null&&(cancelAnimationFrame(i.current),i.current=null)},[]),u=o.useCallback(()=>{if(i.current!==null)return;const d=()=>{try{const p=e.current,m=Array.isArray(r.current)?r.current[s.current||0]:void 0,h=m&&Number.isFinite(m.duration)&&(m.duration??0)>0?0:t3(p),g=n.current;if(h===null)try{g&&g.style.visibility!=="hidden"&&(g.style.visibility="hidden")}catch{}else{const y=Y5({currentTime:p&&typeof p.currentTime=="number"?p.currentTime:0,sources:r.current,index:s.current,audioDuration:h});try{g&&(g.style.visibility&&(g.style.visibility=""),g.style.left=`${y*100}%`)}catch{}try{a.current?.style.setProperty("--progress",String(y))}catch{}}}catch{}i.current=requestAnimationFrame(d)};i.current=requestAnimationFrame(d)},[e,n,a,r,s]),c=o.useCallback(d=>{l();try{n.current&&(n.current.style.visibility="",n.current.style.left=`${d*100}%`)}catch{}try{a.current?.style.setProperty("--progress",String(d))}catch{}},[l,n,a]);return o.useEffect(()=>l,[l]),{start:u,stop:l,settleTo:c}}function Po({btnLabel:e,soundSrc:n,bucketPath:a,onDone:r,disabled:s=!1,ttsText:i=null,className:l,showSoundWaveForm:u=!0,showNoiseWaveForm:c=!0}){const{t:d}=ye.useTranslation(),p=e,m=ir(),h=o.useRef(m?.registerAnalyser);o.useEffect(()=>{h.current=m?.registerAnalyser});const g=o.useRef(null),y=o.useRef(null),f=o.useRef(null),x=G5(),b=o.useRef(null),C=o.useRef(!1),_=o.useRef(0),v=o.useRef(null),{ref:A,rect:w,show:N,hide:k}=K5();o.useEffect(()=>()=>{h.current?.("main",null),h.current?.("noise",null)},[]);const[B,S]=o.useState(!1),[E,H]=o.useState("idle"),[z,U]=o.useState("stopped"),T=o.useRef("stopped");o.useEffect(()=>{T.current=z},[z]);const[L,F]=o.useState(0),[Z,J]=o.useState("active"),V=o.useRef(!1);o.useEffect(()=>{if(Z!=="playMode"||!V.current)return;V.current=!1;const G=typeof document<"u"?document.activeElement:null;if(G&&G!==document.body)return;const le=f.current?.querySelectorAll("button")[1];try{le?.focus()}catch{}},[Z]);const[P,W]=o.useState(null),[R,D]=o.useState(null),[I,j]=o.useState(0),[O,$]=o.useState(!1),[Y,ae]=o.useState(0),K=m?.playbackRate??1,ne=m?.mainVolume??1,be=m?jo(m.settings):0,ue=m?Wu(m.settings):ne,[pe,q]=o.useState("idle"),[ee,ie]=o.useState(""),[ve]=o.useState("top"),me=o.useRef(null),oe=o.useRef(0),fe=o.useRef(null),{start:ge,stop:Ee,settleTo:Ie}=n3({audioRef:g,fillRef:y,waveProgressRef:fe,sourcesRef:me,currentIndexRef:oe}),{onReadyChange:Le,waitForReady:Je,markNotReady:et}=U5({showSoundWaveForm:u,showNoiseWaveForm:c}),Ve=o.useRef(null),He=o.useRef(s),it=o.useRef(r),Qe=o.useRef(null),Ye=o.useRef(!1),[re,Re]=o.useState(!1),te=o.useCallback(G=>{Ye.current=G,Re(G)},[]),we=o.useRef(null),{activeNoiseUrl:We,noiseSettingsRef:Be,fadeInNoise:Se,fadeOutNoise:he}=I5({noisePlayer:m,audioRef:g,playbackStateRef:T}),{startTTS:Me,stopTTS:nt}=F5({ttsText:i,playbackRate:K,mainVolume:ue,fillRef:y,waveProgressRef:fe,setProgress:F,setPlaybackState:U,setStateLocal:J,fadeInNoise:Se,fadeOutNoise:he,noiseSettingsRef:Be,onDoneRef:it,handleEndRef:we});o.useEffect(()=>{st.current=nt});const _t=G=>{if(typeof window>"u"||!window.speechSynthesis){try{ie(d("training.ttsUnavailable","\uC774 \uAE30\uAE30\uC5D0\uC11C\uB294 \uC74C\uC131\uC744 \uB4E4\uB824\uC904 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4."))}catch{}Me(G);return}Bt("tts"),Me(G)},kt=Array.isArray(n)?n.filter(Boolean):n?[n]:[],dt=(!kt||kt.length===0)&&!!i,Ze=Array.isArray(P)&&P.length>0?P:Array.isArray(R)&&R.length>0?R:null,qe=Math.max(Array.isArray(Ze)?Ze.length:0,kt.length),$e=o.useRef(!0);o.useEffect(()=>($e.current=!0,()=>{$e.current=!1}),[]);const Xe=o.useRef(0),Fe=()=>{Xe.current+=1,_.current+=1},st=o.useRef(null),Ge=o.useRef(null),ft=o.useRef(null),jt=o.useRef(null);jt.current||(jt.current=()=>{ft.current=null;const G=g.current;if(Ge.current==="audio"&&G&&!G.paused){Xe.current+=1,_.current+=1;try{G.pause()}catch{}$e.current&&U("paused")}else if(Ge.current==="tts")try{st.current?.()}catch{}});const Bt=G=>{Ge.current=G,ft.current=Xa(jt.current)},mt=()=>{ft.current?.(),ft.current=null};o.useEffect(()=>()=>{jt.current&&Ja(jt.current)},[]);const lt=o.useCallback(async(G,le=3,ce=50)=>{const _e=Xe.current;for(let Ae=0;Ae<le;Ae++){if(!$e.current||_e!==Xe.current)return!1;try{return Bt("audio"),await G.play(),!0}catch(je){if((je instanceof Error||typeof je=="object"&&je&&"name"in je?je.name:void 0)==="AbortError"){if(_e!==Xe.current)return!1;await new Promise(rt=>setTimeout(rt,ce));continue}try{ie(d("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."))}catch{}return!1}}try{ie(d("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."))}catch{}return!1},[d]),Oe=o.useCallback(()=>{const G=g.current;if(!G)return;const le=()=>{U("playing"),J("playMode"),$(!0),ge();try{Tr(),Oa(G).then(je=>{if($e.current)try{h.current?.("main",je)}catch{}})}catch{}const Ae=Be.current;Ae?.enabled&&(Ae?.volume??0)>0&&Se(Ae.volume)},ce=()=>{X5({ended:!!G?.ended,completedByEnd:Ye.current})||(U("paused"),Ee(),he())},_e=()=>{try{const Ae=me.current,je=Z5(Ae,oe.current);if(je!==null){oe.current=je,j(je),$(!0);const rt=Ae?.[je]&&Ae[je].src;if(rt&&G){G.src=rt,G.load(),lt(G).catch(()=>{});return}}}catch{}U("stopped"),F(1);try{if(G)try{G.currentTime=0}catch{}}catch{}Ee(),$(!1),he();try{!He.current&&we.current&&we.current()}catch{}};return G.addEventListener("play",le),G.addEventListener("pause",ce),G.addEventListener("ended",_e),()=>{try{G.removeEventListener("play",le),G.removeEventListener("pause",ce),G.removeEventListener("ended",_e),Ee()}catch{}}},[Se,he,lt,Be,ge,Ee]);o.useEffect(()=>Oe(),[Oe]),o.useEffect(()=>{He.current=s},[s]),o.useEffect(()=>{it.current=r},[r]),o.useEffect(()=>{if(s||Z!=="active")return;const G=v.current;if(!G)return;let le=null;const ce=requestAnimationFrame(()=>{try{const _e=G.getTotalLength();if(!_e)return;const Ae=_e*.2;G.style.strokeDasharray=`${_e-Ae} ${Ae}`;const je="triFlow_"+Math.random().toString(36).slice(2);le=document.createElement("style"),le.textContent=`@keyframes ${je}{from{stroke-dashoffset:0}to{stroke-dashoffset:-${_e}}}`,document.head.appendChild(le),G.style.animation=`${je} 2.4s linear infinite`}catch{}});return()=>{cancelAnimationFrame(ce),le?.remove()}},[Z,s]),o.useEffect(()=>{me.current=P},[P]),o.useEffect(()=>{oe.current=I},[I]),o.useEffect(()=>{const G=f.current,le=b.current;if(!G||!le)return;let ce=null;const _e=32,Ae=60,je=()=>{try{const gt=Array.from(G.querySelectorAll(":scope > .button"));let ut=0;gt.forEach(Ne=>{if(Ne===le)return;const ze=Ne.getBoundingClientRect();ut+=ze.width});const vt=G.getBoundingClientRect().width,Rt=Math.max(0,Math.floor(vt-ut-8)),Lt=qe;if(!Lt||Rt<=0){Array.from(le.children).forEach(Ne=>{try{Ne.style.width=""}catch{}});return}let nn=Math.floor(Rt/Lt);nn>Ae&&(nn=Ae),nn<_e&&(nn=Math.max(_e,Math.floor(Rt/Lt))),Array.from(le.querySelectorAll(".button")).forEach(Ne=>{try{Ne.style.width=`${nn}px`}catch{}})}catch{}},rt=requestAnimationFrame(je);try{ce=new ResizeObserver(()=>{requestAnimationFrame(je)}),ce.observe(G),ce.observe(le),window.addEventListener("resize",je)}catch{}return()=>{try{cancelAnimationFrame(rt)}catch{}try{ce&&(ce.disconnect(),ce=null)}catch{}try{window.removeEventListener("resize",je)}catch{}}},[P,R,qe]),o.useEffect(()=>()=>{try{Ve.current&&(clearTimeout(Ve.current),Ve.current=null),Qe.current&&(clearTimeout(Qe.current),Qe.current=null)}catch{}},[]);const at=(G,le)=>{W(G),ae(le),et(),D(J5(G)),me.current=G},ht=async(G,le)=>{te(!1),C.current=!1,G.src=le,G.load(),await Yu(G),await Je()!==!1&&(S(!1),await lt(G),J("playMode"),j(0),$(!0))},Ot=async(G,le=!1)=>{const ce=g.current;S(!0),H("measuring_duration");try{const _e=await Ro(G,{timeoutMs:1e4,rejectOnError:!0});at([{src:G,objectUrl:null,duration:_e}],_e),H("ready"),le&&ce&&await ht(ce,G)}finally{C.current=!1,S(!1)}},tt=async(G,le=!1)=>{const ce=g.current;S(!0),H("measuring_duration");try{const _e=await Promise.all(G.map(je=>Ro(je,{timeoutMs:1e4})));if(!$e.current)return;const Ae=G.map((je,rt)=>({src:je,objectUrl:null,duration:_e[rt]||0}));at(Ae,Q5(Ae)),H("ready"),le&&ce&&Ae.length>0&&await ht(ce,Ae[0].src)}finally{C.current=!1,S(!1)}},Tt=async(G=!1,le=!0)=>{const ce=g.current,_e=n?Array.isArray(n)?n:[n]:[];if(!_e||_e.length===0||!_e.some(Boolean))return!1;if(C.current)return null;C.current=!0,le&&S(!0),H("resolving");try{const Ae=e3(n,a,Vs),je=[];let rt=0;for(const gt of Ae){let ut=gt.src??null,vt=null;if(!ut&&gt.resolvedPath){try{H("getting_signed_url"),ut=await Ws(gt.resolvedPath)}catch{ut=null}if(!$e.current)return!1;if(!ut)try{H("downloading");const Lt=await qs(gt.resolvedPath);if(!$e.current)return!1;if(Lt){const nn=Lt instanceof Blob?Lt:new Blob([Lt]);vt=x.track(URL.createObjectURL(nn)),ut=vt}}catch{H("error");try{ie(d("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.")),J("active")}catch{}}}if(!ut)continue;let Rt=0;try{H("measuring_duration"),Rt=await Ro(ut,{timeoutMs:3e3})}catch{Rt=0}if(!$e.current){if(vt)try{URL.revokeObjectURL(vt)}catch{}for(const Lt of je)if(Lt.objectUrl)try{URL.revokeObjectURL(Lt.objectUrl)}catch{}return!1}rt+=Rt||0,je.push({...gt,src:ut,objectUrl:vt,duration:Rt})}if(at(je,rt),je.length>0&&G&&ce){const gt=je[0];te(!1);try{x.keepOnly(je.map(ut=>ut.objectUrl))}catch{}if(H("ready"),C.current=!1,gt.src&&ce)try{if(ce.src=gt.src,ce.load(),await Yu(ce),await Je()===!1)return!1;le&&S(!1),ce&&await lt(ce)}catch{le&&S(!1)}else le&&S(!1);J("playMode"),j(0),$(!0)}return je.length>0}finally{C.current=!1,le&&S(!1),H(Ae=>Ae==="ready"?"ready":"idle")}},Yt=async()=>{const G=g.current;if(!(!G&&!dt)){if(dt){const le=window.speechSynthesis;if(Z==="active"){const ce=Er(),_e=Array.isArray(i)?i.filter(Boolean):i?[i]:[];if(ce&&_e.length>0){J("load"),S(!0),H("resolving"),C.current=!0;try{const Ae=await Promise.all(_e.map(je=>Promise.resolve(ce(je))));Ae.length>1?await tt(Ae,!0):await Ot(Ae[0],!0)}catch{C.current=!1,S(!1),J("active"),_t(_e.length>0?_e:void 0)}return}_t(_e.length>0?_e:void 0);return}if(Z==="playMode"){const ce=!!le&&(le.speaking||le.paused)&&!(G&&(G.currentSrc||G.getAttribute("src")));if(G&&!ce){if(G.paused){if(Ye.current){await Mt();return}await lt(G),U("playing")}else Fe(),G.pause(),U("paused");return}try{if(le&&le.paused)try{Bt("tts"),le.resume(),U("playing")}catch{}else try{le.pause(),U("paused")}catch{}}catch{}}return}if(Z==="active"){if(s&&Array.isArray(me.current)&&me.current.length>0){const ce=me.current[0];try{if(ce.src&&G)try{G.src=ce.src,G.load(),G&&await lt(G)}catch{}J("playMode"),j(0),$(!0);return}catch{}}J("load");let le;try{le=await Tt(!0)}catch{le=!1}if(le===!1&&$e.current){try{ie(d("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."))}catch{}J("active")}return}if(Z!=="load"&&(Z==="playMode"||Z==="active"))try{if(G&&G.paused){if(Ye.current){await Mt();return}G&&await lt(G),U("playing")}else G&&(Fe(),G.pause(),U("paused"))}catch(le){(le instanceof Error||typeof le=="object"&&le&&"name"in le)&&le.name}}},Mt=async()=>{const G=g.current;if(G)try{const le=me.current;if(Array.isArray(le)&&le.length>1){await Nn(0);return}te(!1);try{G.currentTime=0}catch{}G&&await lt(G),U("playing"),J("playMode")}catch{}},ln=()=>{if(Fe(),mt(),dt){nt();return}const G=g.current;try{if(G){try{G.pause()}catch{}try{G.currentTime=0}catch{}}}catch{}he(),U("stopped"),J("active"),F(0),$(!1)},un=async(G,{sameSegment:le=!1}={})=>{const ce=++_.current,_e=g.current,Ae=me.current?.[G]?.src;try{if(te(!1),j(G),$(!0),oe.current=G,!Ae||!_e||(le||et(),_e.src=Ae,_e.load(),!le&&await Je()===!1)||ce!==_.current||(await lt(_e),ce!==_.current))return;U("playing"),J("playMode")}catch{}},cn=async()=>{const G=me.current,le=oe.current||0;if(!G||le<=0){await Mt();return}await un(le-1)},Rn=async()=>{const G=me.current,le=oe.current||0;if(!G||le>=G.length-1){ln();return}await un(le+1)},dn=()=>{if(Ye.current)return;const G=200,le=340;te(!0),Fe(),mt();try{F(1)}catch{}Ie(1);try{q("hold")}catch{}try{const ce=g.current,_e=dt&&!!ce?.src;if(!dt||_e){if(ce){ce.pause();try{ce.currentTime=0}catch{}}}else nt();he()}catch{}try{U("stopped")}catch{}if($(!1),!He.current)try{Qe.current&&(clearTimeout(Qe.current),Qe.current=null),Qe.current=setTimeout(()=>{try{q("out")}catch{}Qe.current=setTimeout(()=>{try{typeof it.current=="function"&&it.current(!0)}catch{}try{q("idle")}catch{}Qe.current=null},le)},G)}catch{}};o.useEffect(()=>{we.current=dn});const Pn=o.useCallback(()=>ie(""),[]),Nn=async G=>{(me.current||[])[G]&&await un(G,{sameSegment:G===oe.current})},Nt=z==="playing",Cn=o.useMemo(()=>{if(!R||R.length<=1)return R;const G=R[I];return G?[G]:R},[R,I]),Ht=s===!0;o.useEffect(()=>{try{const G=g.current;G&&typeof G.playbackRate=="number"&&(G.playbackRate=K||1)}catch{}},[K]);const Zt=o.useRef({raf:null,timer:null});o.useEffect(()=>{const G=g.current;if(!G)return;const le=Math.max(0,Math.min(1,ue)),ce=Zt.current,_e=()=>{ce.raf!==null&&(cancelAnimationFrame(ce.raf),ce.raf=null),ce.timer!==null&&(clearTimeout(ce.timer),ce.timer=null)};_e();const Ae=Ha(G);if(G.paused||Math.abs(Ae-le)<.001||typeof requestAnimationFrame!="function"){try{Sn(G,le)}catch{}return}const je=performance.now(),rt=()=>{const gt=Math.min(1,(performance.now()-je)/150);try{Sn(G,Ae+(le-Ae)*gt)}catch{}ce.raf=gt<1?requestAnimationFrame(rt):null};return ce.raf=requestAnimationFrame(rt),ce.timer=setTimeout(()=>{_e();try{Sn(G,le)}catch{}},200),_e},[ue]);const fn=pe==="hold",en=pe==="out",gn=Z==="playMode"&&!B&&!re||fn||en,In=z!=="stopped"||fn||en,bn=z==="paused",se=Math.max(0,Math.min(100,(L||0)*100)),xe=De("audio-player__fill",gn?"is-visible":"",In?"is-expanded":"",bn?"is-paused":"",en?"is-out":"");return t.jsxs("div",{className:`audio-player ${Ht?"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":""} ${B?"is-loading":""} ${Z!=="default"?"is-revealed":""}`,children:[B?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.${E}`,{defaultValue:W5[E]})})]}):null,Z==="active"?t.jsx("button",{className:"audio-player__button",type:"button",disabled:Ht,onClick:()=>{V.current=nr(),k(),Yt()},"aria-label":typeof p=="string"?p:d("training.listen","\uB4E3\uAE30"),onMouseEnter:N,onMouseLeave:k,onFocus:N,onBlur:k,children:t.jsx("span",{ref:A,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:v,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,w&&t.jsx(vn,{anchorRect:w,text:typeof p=="string"&&p?p:d("training.listenLabel","\uBB38\uC7A5 \uB4E3\uAE30"),offset:8}),t.jsxs("div",{className:`audio-player__play ${Z==="playMode"||Nt?"is-visible":""}`,inert:!(Z==="playMode"||Nt)||void 0,children:[t.jsxs("div",{ref:f,className:"audio-player__buttons",children:[t.jsx(de,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"skip-back",onClick:cn,ariaLabel:d("training.prev","\uC774\uC804"),width:"60px",variant:"transparent-white","aria-hidden":"true",tabIndex:-1,disabled:Z!=="playMode"}),t.jsx(de,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:Nt?"pause":"play",onClick:Yt,ariaLabel:d("common.playPause","\uC7AC\uC0DD / \uBA48\uCDA4"),"aria-pressed":Nt,width:"60px",variant:"transparent-white",disabled:Z!=="playMode"}),t.jsx(de,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"square",onClick:ln,ariaLabel:d("training.stop","\uC815\uC9C0"),width:"60px",variant:"transparent-white","aria-hidden":"true",tabIndex:-1,disabled:Z!=="playMode"}),qe>1?t.jsx("div",{ref:b,className:"audio-player__source-buttons",children:Array.from({length:qe}).map((G,le)=>t.jsx(de,{htmlType:"button",size:32,type:"dot",shape:"pill",useBorder:!1,label:String(le+1),onClick:()=>{try{Nn(le)}catch{}},ariaLabel:d("training.sourcePlay",{n:le+1}),variant:"transparent-white",selected:O&&I===le,disabled:Z!=="playMode"||!(Array.isArray(P)&&P[le]),showTooltipInfo:!0},le))}):null,!Array.isArray(P)||P.length<=1?t.jsx(de,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"repeat",onClick:Mt,ariaLabel:d("common.replay","\uB2E4\uC2DC\uB4E3\uAE30"),width:"60px",variant:"transparent-white",disabled:Z!=="playMode"}):null,t.jsx(de,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"skip-forward",onClick:Rn,ariaLabel:d("training.next","\uB2E4\uC74C"),width:"60px",variant:"transparent-white","aria-hidden":!0,tabIndex:-1,disabled:Z!=="playMode"}),t.jsx(de,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"check",onClick:dn,ariaLabel:d("common.done","\uC644\uB8CC"),width:"60px",variant:"transparent-white",disabled:Z!=="playMode"})]}),t.jsxs("div",{className:"audio-player__slider",children:[t.jsx("div",{className:xe,ref:y,style:{left:`${se}%`},"aria-hidden":"true"}),(u||c)&&t.jsx(V5,{segments:Cn,progress:L,totalDuration:Y,waveProgressRef:fe,showSoundWaveForm:u,noiseSrc:c&&m?.settings.enabled&&be>0?We:null,noiseRatio:m?$a(m.settings):0,noiseSpeed:m?.settings.speed??1,mainVolume:ne,onReadyChange:Le})]})]}),t.jsx("audio",{ref:g,crossOrigin:"anonymous",preload:"auto"})]}),!u&&t.jsxs("p",{className:"audio-player__no-waveform caption-1",children:[t.jsx(Ke,{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(ra,{message:ee,position:ve,onClose:Pn})]})}function ur(e){const{t:n}=ye.useTranslation(),{text:a,label:r,anchorRect:s=null,onClose:i,closeOnOutsideClick:l=!0,isMobilePopup:u=!1}=e||{},[c,d]=o.useState(()=>{try{return localStorage.getItem("tooltip-theme")||"light"}catch{return"light"}});o.useEffect(()=>{try{localStorage.setItem("tooltip-theme",c)}catch{}},[c]);const{increase:p,decrease:m,canIncrease:h,canDecrease:g,fontSize:y,lineHeight:f}=el({storageKey:"tooltip-fontScale"}),x=o.useCallback(()=>d(A=>A==="dark"?"light":"dark"),[]),b=o.useCallback(A=>{try{A.stopPropagation()}catch{}try{typeof i=="function"&&i()}catch{}},[i]),C=Array.isArray(a)?a:typeof a>"u"||a===null?[]:[a],_={fontSize:`${y}px`,lineHeight:`${f}px`,"--tt-line-height":`${f}px`,"--tt-marker-size":"28px"},v=t.jsxs("div",{className:`tooltip-textbox__root ${c==="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:_,children:C.map((A,w)=>t.jsxs("div",{className:"tooltip-textbox__line",children:[C.length>1?t.jsx("div",{className:"tooltip-textbox__marker",children:t.jsx("span",{className:"tooltip-textbox__line-number button-1",children:w+1})}):null,t.jsx("span",{className:"tooltip-textbox__line-text",children:A})]},w))})]}),t.jsxs("div",{className:"tooltip-textbox__buttons",children:[t.jsx(de,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:"minus",onClick:m,ariaLabel:n("training.fontSizeDecrease","\uAE00\uC790 \uD06C\uAE30 \uAC10\uC18C"),variant:c==="dark"?"transparent-white":"transparent-gray",disabled:!g}),t.jsx(de,{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:c==="dark"?"transparent-white":"transparent-gray",disabled:!h}),t.jsx(de,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:c==="dark"?"moon":"sun-medium",onClick:x,ariaLabel:n("training.toggleBackground","\uBC30\uACBD \uC804\uD658"),variant:c==="dark"?"transparent-white":"transparent-gray"}),t.jsx(de,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:"x",onClick:b,ariaLabel:n("common.close","\uB2EB\uAE30"),variant:c==="dark"?"transparent-white":"transparent-gray"})]})]});return s?t.jsx(rn,{anchorRect:s,className:`tooltip-textbox ${c==="dark"?"is-dark":""}`,onClose:i,closeOnOutsideClick:l,isMobilePopup:u,ariaLabel:r||n("tooltip.textbox","\uBCF8\uBB38"),children:v}):t.jsx("div",{className:`tooltip-textbox ${c==="dark"?"is-dark":""}`,children:v})}function Zu({state:e="disabled"}){const{t:n}=ye.useTranslation();return t.jsxs("div",{className:`ts-bullet ts-bullet--${e}`,"aria-hidden":!0,children:[t.jsx("div",{className:"bullet__dot",children:t.jsx(Ke,{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 Xu(e,n,a){const r=o.useRef(n),s=o.useRef(a);o.useEffect(()=>{r.current=n,s.current=a}),o.useEffect(()=>{if(!e||typeof document>"u")return;let i=null,l=10;const u=()=>{i=null;const c=r.current(),d=c?Array.from(c.querySelectorAll(mn)).find(p=>!p.closest('[aria-hidden="true"]')):void 0;if(d){try{d.focus()}catch{}if(document.activeElement===d)return}--l>0&&(i=requestAnimationFrame(u))};return i=requestAnimationFrame(u),()=>{i!==null&&cancelAnimationFrame(i);const c=document.activeElement;if(!c||c===document.body||!document.contains(c)||c.closest(".tooltip-content")){const d=s.current();if(d)try{d.focus()}catch{}}}},[e])}function Ju({title:e,children:n,className:a="",state:r="disabled",usePreviewTextBtn:s=!1,onPreviewTextBtn:i,previewText:l=null,useFaded:u,usePlayAllBtn:c=!1,onPlayAll:d,playAllActive:p=!1}){const{t:m}=ye.useTranslation(),h=tn("(max-width: 767px)"),g=`training-step__title h4 ${u&&r==="disabled"?"training-step__title--faded":""} ${a}`.trim(),y=`training-step__title-row training-step__title-row--${r}`.trim(),f=o.useRef(null),[x,b]=o.useState(!1),[C,_]=o.useState(null),[v,A]=o.useState(null);Xu(x&&!!C,()=>{if(typeof document>"u")return null;const S=Array.from(document.querySelectorAll(".tooltip-content"));for(let E=S.length-1;E>=0;E--)if(S[E].querySelector(".tooltip-textbox__root"))return S[E];return null},()=>f.current?.querySelector("button")??null);const w=o.useRef(i);o.useEffect(()=>{w.current=i});const N=o.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]),k=o.useCallback(()=>{b(!1),_(null),A(null)},[]);o.useEffect(()=>{if(!x)return;let S;try{typeof w.current=="function"&&(S=w.current())}catch{}if(S===!1){k();return}A(typeof S<"u"&&S!==null?S:null)},[N]);const B=o.useCallback(()=>{let S;try{typeof i=="function"&&(S=i())}catch{}if(S!==!1){if(A(typeof S<"u"&&S!==null?S:l),!f.current){b(E=>!E);return}if(x)b(!1),_(null),A(null);else{const E=f.current.getBoundingClientRect();_(E),b(!0)}}},[i,l,x]);return t.jsxs("div",{className:y,children:[t.jsx("p",{className:g,children:t.jsx("span",{className:"training-step__title-text",children:e??n})}),s||c?t.jsxs("div",{className:"title-controls",children:[t.jsxs("div",{className:"title-buttons",children:[c&&t.jsx(de,{htmlType:"button",size:32,type:h?"dot":"bar",icon:"play-circle",label:h?void 0:m("training.playAll","\uBAA8\uB450 \uB4E3\uAE30"),ariaLabel:m("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}),s&&t.jsx("div",{ref:f,children:t.jsx(de,{htmlType:"button",size:32,type:h?"dot":"bar",icon:"eye",label:h?void 0:m("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),ariaLabel:m("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),onClick:B,className:x?"is-selected":void 0,"aria-expanded":x,"aria-haspopup":"dialog",variant:r==="disabled"?"disabled":"default",disabled:!l&&typeof i!="function"})})]}),x&&t.jsx(ur,{text:v??l,label:m("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),anchorRect:C,onClose:k,closeOnOutsideClick:!1,isMobilePopup:!0})]}):null]})}function Io(e,n){return typeof n!="number"||typeof e!="number"?"disabled":e<n?"done":e===n?"active":"disabled"}function Gn({index:e,stepIndex:n,isLast:a=!1,title:r="",titleProps:s={},children:i,className:l="",onDone:u=void 0,useTitleFaded:c=void 0}){const{t:d}=ye.useTranslation(),[p,m]=o.useState(()=>Io(e,n));o.useEffect(()=>{const A=Io(e,n);if(A!==p){const w=setTimeout(()=>m(A),0);return()=>clearTimeout(w)}},[e,n,p]);const h=o.useCallback((...A)=>{Io(e,n)==="done"||p==="done"||typeof u=="function"&&u(...A)},[e,n,p,u]),[g,y]=o.useState(!1),[f,x]=o.useState({text:"",label:"\uBB38\uC7A5 \uB4E3\uAE30",anchorRect:null,backdrop:!1,alignX:null,alignY:null}),b=o.useCallback(A=>{if(!A)return null;try{const w=A;if(typeof A=="object"&&(w.currentTarget||w.target)&&(w.nativeEvent||w.type)){const B=w.currentTarget??w.target;if(B&&typeof B.getBoundingClientRect=="function")return B.getBoundingClientRect()}if(A instanceof DOMRect)return A;const N=A;if(N&&typeof N.getBoundingClientRect=="function")return N.getBoundingClientRect();const k=A?.current;return k&&typeof k.getBoundingClientRect=="function"?k.getBoundingClientRect():null}catch{return null}},[]),C=o.useCallback((A,{text:w="",label:N="\uBB38\uC7A5 \uB4E3\uAE30",backdrop:k=!1,alignX:B="center",alignY:S="top"}={})=>{const E=b(A);x({text:w,label:N,anchorRect:E,backdrop:k,alignX:B,alignY:S}),y(!0)},[b]),_=o.useCallback(()=>{y(!1),x(A=>({...A,anchorRect:null}))},[]),v=o.Children.map(i,A=>{if(o.isValidElement(A)){const w=A;if(typeof w.type=="string")return w;const N=w.props??{},k=typeof N.onDone=="function"?N.onDone:h,B=typeof N.disabled=="boolean";let S=p==="disabled";return B&&(S=!!N.disabled),o.cloneElement(w,{onDone:k,disabled:S,showTooltip:C,hideTooltip:_})}return A});return t.jsxs("div",{className:`training-step training-step--${p} ${a?"training-step--last":""} ${l}`,"aria-current":p==="active",children:[t.jsx(Zu,{state:p}),t.jsxs("div",{className:"training-step__content",children:[t.jsx(Ju,{state:p,title:r,...s,useFaded:c}),v]}),g?t.jsx(rn,{anchorRect:f.anchorRect,backdrop:f.backdrop,onClose:_,ariaLabel:d("tooltip.textbox","\uBCF8\uBB38"),children:t.jsx(ur,{text:f.text,onClose:_})}):null]})}function Qu({context:e,state:n="disabled",theme:a="light"}){const{t:r}=ye.useTranslation(),[s,i]=o.useState("disabled"),[l,u]=o.useState(()=>{try{return localStorage.getItem("tooltip-theme")||a}catch{return a}});o.useEffect(()=>{try{localStorage.setItem("tooltip-theme",l)}catch{}},[l]);const c=()=>u(z=>z==="dark"?"light":"dark"),{increase:d,decrease:p,canIncrease:m,canDecrease:h,fontSize:g,lineHeight:y}=el({storageKey:"textbox_fontScale"}),[f,x]=o.useState(""),b=o.useRef(null),C=o.useRef(!1),_=o.useCallback(()=>{C.current=nr()&&!!b.current&&b.current.contains(document.activeElement),i("active")},[]),v=o.useCallback(()=>x(""),[]),A=z=>{try{x(z)}catch{}},w=typeof navigator<"u"&&/Mobi|Android/i.test(navigator.userAgent||"");o.useEffect(()=>{if(n!=="disabled"){const z=setTimeout(()=>i(n),0);return()=>clearTimeout(z)}},[n]);const N=o.useMemo(()=>e&&typeof e=="object"?String(e.sentence??e.text??""):typeof e=="string"?e:"",[e]),[k,B]=o.useState(N);k!==N&&(B(N),i("disabled"));const S=n==="disabled"?s:n,E=S==="disabled"?"training-text-box--disabled":S==="active"?"training-text-box--active":S==="done"?"training-text-box--done":"",H=o.useMemo(()=>({fontSize:`${g}px`,lineHeight:`${y}px`}),[g,y]);return o.useEffect(()=>{if(S==="disabled"||!C.current)return;C.current=!1;const z=document.activeElement;z&&z!==document.body||b.current?.querySelector(".training-text-box__buttons button")?.focus()},[S]),t.jsxs("div",{ref:b,className:`training-text-box ${E} ${S!=="disabled"&&l==="dark"?"is-dark":""}`,children:[S==="disabled"&&t.jsx("div",{className:"training-text-box__preview",children:t.jsx(de,{htmlType:"button",size:48,type:"bar",onClick:_,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":S==="disabled",children:t.jsx("span",{className:"training-text-box__inner h3",style:H,children:N})}),S!=="disabled"&&t.jsxs("div",{className:"training-text-box__buttons","aria-hidden":S==="disabled",children:[t.jsx(de,{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:!h,useBorder:!1,showTooltipInfo:!0,...!w&&{width:"60px"}}),t.jsx(de,{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:!m,useBorder:!1,showTooltipInfo:!0,...!w&&{width:"60px"}}),t.jsx(de,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:l==="dark"?"moon":"sun-medium",onClick:c,ariaLabel:r("training.toggleBackground","\uBC30\uACBD \uC804\uD658"),variant:l==="dark"?"transparent-white":"transparent-gray"})]}),t.jsx(ra,{message:f,position:"top",onClose:v})]})}function Fo({index:e,stepIndex:n,isLast:a=!1,title:r,useTitleFaded:s,onDone:i,onChange:l,answer:u,wrongAnswers:c,choices:d,multiSelect:p=!1,correctCount:m=0,useDisabledCovered:h=!1,choiceIcons:g,shuffleChoices:y=!0}){const{t:f}=ye.useTranslation(),x=r??f("training.selectConfirm","\uBB38\uC81C\uB97C \uBCF4\uACE0 \uD574\uB2F9\uD558\uB294 \uB0B4\uC6A9\uC744 \uC120\uD0DD\uD558\uC138\uC694."),b=typeof e=="number"?e:-1,C=typeof n!="number"?"disabled":b<n?"done":b===n?"active":"disabled",_=Array.isArray(d)&&d.length?d:typeof u<"u"?[u].concat(Array.isArray(c)?c:[]):void 0,v=c?c.join("||"):"",A=d?d.join("||"):"",[w,N]=o.useState(()=>Array.isArray(_)?y?ya(_):_.slice():void 0);o.useEffect(()=>{Array.isArray(_)&&_.length?N(y?ya(_):_.slice()):N(void 0)},[u,v,A,y]);const[k,B]=o.useState(null),[S,E]=o.useState(()=>new Set);o.useEffect(()=>{B(null),E(new Set)},[A,u,v]);const H=o.useRef(void 0);o.useEffect(()=>{const T=H.current;typeof T=="number"&&typeof n=="number"&&typeof e=="number"&&T>=e&&n<e&&(B(null),E(new Set)),H.current=n},[n,e]);const z=o.useCallback(T=>{if(C!=="active")return;const L=w?.[T];if(L==null)return;const F=L,Z=C==="active"||C==="done";if(p){const J=new Set(S),V=J.has(F);V?J.delete(F):J.add(F),E(J),typeof l=="function"&&l({selectedValues:[...J],__ts:Date.now()}),Z&&(typeof m=="number"&&m>0?J.size>=m:!V)&&typeof i=="function"&&C==="active"&&i({selectedValues:[...J],__ts:Date.now()})}else B(F),typeof l=="function"&&l({selectedIndex:T,selectedValue:F,__ts:Date.now()}),Z&&typeof i=="function"&&C==="active"&&i({selectedIndex:T,selectedValue:F,__ts:Date.now()})},[w,C,p,l,i,m,S]),U=`training-step__buttons${Array.isArray(w)&&w.length>3?" training-step__buttons--wrap-3":""}`;return t.jsx(Gn,{index:e,stepIndex:n,isLast:a,title:x,useTitleFaded:s,children:t.jsx("div",{className:U,children:Array.isArray(w)&&w.length>0?w.map((T,L)=>t.jsx(de,{htmlType:"button",size:56,type:"bar",onClick:()=>z(L),ariaLabel:String(T),label:T,useLabel:!0,icon:g?g[String(T)]:void 0,variant:"default",disabled:C==="disabled",selected:p?S.has(T):k===T,useDisabledCovered:h,minWidth:0},String(T))):null})})}function Oo({index:e,stepIndex:n,isLast:a=!1,title:r,onDone:s,onChange:i,context:l,demoSelected:u}){const{t:c}=ye.useTranslation(),d=r??c("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,m=typeof n!="number"?"disabled":p<n?"done":p===n?"active":"disabled",h=l&&typeof l=="object"?l.sentence||"":typeof l=="string"?l:"",g=l&&typeof l=="object"?l.choices:void 0,[y,f]=o.useState(u??null),x=`${String(h)}\0${JSON.stringify(g??null)}`,[b,C]=o.useState(x);b!==x&&(C(x),u==null&&f(null));const[_,v]=o.useState(u);Object.is(_,u)||(v(u),f(u??null));const A=o.useRef(void 0);o.useEffect(()=>{const B=A.current;typeof B=="number"&&typeof n=="number"&&typeof e=="number"&&B>=e&&n<e&&u==null&&f(null),A.current=n},[n,e,u]);const w=o.useCallback(B=>{const S=typeof B=="object"&&B!==null?Object.assign({},B,{__ts:Date.now()}):{value:B,__ts:Date.now()};typeof i=="function"&&i(S),m==="active"&&typeof s=="function"&&s(S)},[i,m,s]),N=o.useCallback(()=>{m==="active"&&(f(!1),w(!1))},[w,m]),k=o.useCallback(()=>{m==="active"&&(f(!0),w(!0))},[w,m]);return t.jsxs(Gn,{index:e,stepIndex:n,isLast:a,title:d,onDone:s,useTitleFaded:!1,children:[t.jsx(Qu,{context:l,state:m}),t.jsx("div",{className:"training-step__buttons",children:Array.isArray(g)&&g.length>0?g.slice(0,6).map((B,S)=>t.jsx(de,{htmlType:"button",size:56,type:"bar",onClick:()=>{m==="active"&&(f(S),w&&w(S))},disabled:m==="disabled",ariaLabel:String(B),label:B,variant:m,selected:y===S},S)):t.jsxs(t.Fragment,{children:[t.jsx(de,{htmlType:"button",size:56,type:"bar",onClick:N,disabled:m==="disabled",icon:"x",ariaLabel:c("training.notHeard","\uC548 \uB4E4\uB838\uC5B4\uC694."),label:c("training.notHeard","\uC548 \uB4E4\uB838\uC5B4\uC694."),variant:"default",selected:y===!1}),t.jsx(de,{htmlType:"button",size:56,type:"bar",onClick:k,disabled:m==="disabled",icon:"circle",ariaLabel:c("training.heardWell","\uC798 \uB4E4\uB838\uC5B4\uC694."),label:c("training.heardWell","\uC798 \uB4E4\uB838\uC5B4\uC694."),variant:"default",selected:y===!0})]})})]})}function Ho({index:e,stepIndex:n,isLast:a=!1,title:r,onDone:s,btnLabel:i,soundSrc:l,bucketPath:u,usePreviewTextBtn:c,previewText:d=null,onPreviewTextBtn:p,disabled:m,_pageIndex:h,showSoundWaveForm:g,showNoiseWaveForm:y}){const{t:f}=ye.useTranslation(),x=r??f("training.listenTitle","\uC81C\uC2DC\uD558\uB294 \uBB38\uC7A5\uC744 \uB4E4\uC5B4\uC8FC\uC138\uC694."),b=m??(typeof n=="number"&&typeof e=="number"?e>n:!1);return t.jsx(Gn,{index:e,stepIndex:n,isLast:a,title:x,onDone:s,titleProps:{usePreviewTextBtn:c,previewText:d,onPreviewTextBtn:p},children:t.jsx(Po,{soundSrc:l,ttsText:l?null:d??x,bucketPath:u,btnLabel:i||f("training.listenButton","\uBB38\uC7A5 \uB4E3\uAE30"),disabled:b,className:"training-step__listen-sticky",showSoundWaveForm:g,showNoiseWaveForm:y},`audio-p${h??0}-s${e}`)})}const a3=[];function zo({index:e,stepIndex:n,isLast:a=!1,title:r,onDone:s,onChange:i,context:l=a3}){const{t:u}=ye.useTranslation(),c=r??u("training.orderListDefault","\uBB38\uC7A5\uC744 \uB4E4\uC740 \uC21C\uC11C\uB300\uB85C \uBC30\uCE58\uD558\uC138\uC694."),d=R=>typeof R=="string"?R:R&&(R.context||R.sentence||R.question||"")||"",[p,m]=o.useState(Array.isArray(l)?l:[]),[h,g]=o.useState(()=>(p||[]).map((R,D)=>({id:D,text:d(R)}))),y=o.useMemo(()=>typeof n!="number"||typeof e!="number"?"disabled":e<n?"done":e===n?"active":"disabled",[n,e]),f=y!=="disabled",x=o.useRef(void 0);o.useEffect(()=>{if(x.current===l)return;x.current=l;const R=Array.isArray(l)?l:[];m(R);const D=(I=>{const j=(I||[]).map((ae,K)=>({id:K,text:d(ae)}));if(j.length<=1)return j;const O=(ae,K)=>{if(ae.length!==K.length)return!1;for(let ne=0;ne<ae.length;ne++)if(ae[ne].text!==K[ne].text)return!1;return!0};let $=ya(j),Y=0;for(;O($,j)&&Y<20;)$=ya(j),Y+=1;return $})(R);g(D);try{if(typeof i=="function"){const I=D.filter((j,O)=>j.text===d(R[O])).length;i({shuffled:D,score:I,total:(R||[]).length,initial:!0,__ts:Date.now()})}if(typeof s=="function"&&y==="active"){const I=D.filter((j,O)=>j.text===d(R[O])).length;s({shuffled:D,score:I,total:(R||[]).length,initial:!0,__ts:Date.now()})}}catch{}},[l]);const b=(R,D)=>{const I=[...h],j=R+D;if(j<0||j>=I.length)return;const O=I[j];I[j]=I[R],I[R]=O,L(I);try{if(typeof s=="function"&&y==="active"){const $=I.filter((Y,ae)=>Y.text===d(p[ae])).length;s({shuffled:I,score:$,total:(p||[]).length,__ts:Date.now()})}}catch{}},[C,_]=o.useState(null),v=o.useRef(null),A=o.useRef(null),w=o.useRef(null),N=o.useRef(null),k=o.useRef(null),B=o.useRef({x:0,y:0}),S=o.useRef(null),E=o.useRef({dx:0,dy:0}),H=()=>{if(S.current!==null)return;const R=()=>{if(!v.current){S.current=null;return}S.current=requestAnimationFrame(R);const D=B.current,I=E.current||{dx:0,dy:0};v.current&&(v.current.style.transform=`translate3d(${D.x-I.dx}px, ${D.y-I.dy}px, 0)`)};S.current=requestAnimationFrame(R)},z=o.useRef(new Map),U=o.useRef(new Map),T=()=>{const R=new Map;return z.current.forEach((D,I)=>{D&&D.getBoundingClientRect&&R.set(I,D.getBoundingClientRect())}),R},L=R=>{const D=T();g(R);try{if(typeof i=="function"){const I=R.filter((j,O)=>j.text===d(p[O])).length;i({shuffled:R,score:I,total:(p||[]).length,__ts:Date.now()})}}catch{}requestAnimationFrame(()=>{const I=T();R.forEach(j=>{const O=D.get(j.id),$=I.get(j.id),Y=z.current.get(j.id);if(!Y||!O||!$)return;const ae=O.top-$.top;ae&&(Y.style.transition="none",Y.style.transform=`translateY(${ae}px)`,requestAnimationFrame(()=>{Y.style.transition="transform 420ms cubic-bezier(.22,.9,.39,1)",Y.style.transform="";const K=()=>{Y.style.transition="",Y.removeEventListener("transitionend",K)};Y.addEventListener("transitionend",K)}))})})},F=(R,D)=>{try{try{D.dataTransfer?.setData("text/plain",String(R))}catch{}try{D.dataTransfer&&(D.dataTransfer.effectAllowed="move")}catch{}try{const I=document.createElement("div");I.style.cssText="position:absolute;top:-9999px;left:-9999px;width:1px;height:1px;opacity:0;pointer-events:none;",document.body.appendChild(I),D.dataTransfer?.setDragImage(I,0,0),requestAnimationFrame(()=>{try{document.body.removeChild(I)}catch{}})}catch{}}catch{}_(R);try{const I=h[R],j=document.createElement("div");j.className="order-list__dragging-object order-list__dragging-object--visible",j.textContent=I&&I.text?I.text:"",document.body.appendChild(j),v.current=j;const O=z.current.get(I.id);let $=D.clientX||0,Y=D.clientY||0;try{if(O&&O.getBoundingClientRect){const pe=O.getBoundingClientRect();$=pe.left+pe.width/2,Y=pe.top+pe.height/2}}catch{}const ae=j.getBoundingClientRect(),K=ae.width/2,ne=ae.height/2;E.current={dx:K,dy:ne},j.style.transition="none",B.current={x:$,y:Y},j.style.transform=`translate3d(${$-K}px, ${Y-ne}px, 0)`,requestAnimationFrame(()=>{try{j.style.transition=""}catch{}H()});const be=pe=>{const q=pe;B.current={x:q.clientX,y:q.clientY},H()};w.current=be,document.addEventListener("mousemove",be);const ue=pe=>{const q=pe;B.current={x:q.clientX,y:q.clientY},H()};A.current=ue,document.addEventListener("dragover",ue);try{D.dataTransfer?.setData("text/plain",String(R));try{D.dataTransfer?.setData("application/json",JSON.stringify({idx:R}))}catch{}}catch{}}catch{}},Z=(R,D)=>{D.preventDefault();try{D.dataTransfer&&(D.dataTransfer.dropEffect="move")}catch{}try{k.current!==null&&(clearTimeout(k.current),k.current=null);const I=D.currentTarget&&D.currentTarget.closest?D.currentTarget.closest(".order-list__item"):null;if(I&&N.current!==I){if(N.current)try{N.current.classList.remove("drag-over")}catch{}try{I.classList.add("drag-over")}catch{}N.current=I}}catch{}},J=(R,D)=>{D.preventDefault();const I=D.dataTransfer?.getData("text/plain")||"",j=I?parseInt(I,10):C,O=R;if(typeof j!="number"||isNaN(j)||j===O){_(null),W(),V();return}const $=kC(h,j,O);L($),_(null),V();try{if(typeof s=="function"&&y==="active"){const Y=$.filter((ae,K)=>ae.text===d(p[K])).length;s({shuffled:$,score:Y,total:(p||[]).length,__ts:Date.now()})}}catch{}try{requestAnimationFrame(()=>{const Y=document.querySelectorAll(".order-list .order-list__item")[O];if(!Y)return;const ae=Y.querySelector(".order-list__slot")||Y;try{ae.classList.add("pulse"),ae.offsetHeight,ae.classList.add("to-dark");const K=()=>{ae.classList.remove("pulse","to-dark"),ae.removeEventListener("transitionend",K)};ae.addEventListener("transitionend",K)}catch{}})}catch{}W()},V=()=>{if(v.current){try{document.body.removeChild(v.current)}catch{}v.current=null}A.current&&(document.removeEventListener("dragover",A.current),A.current=null),w.current&&(document.removeEventListener("mousemove",w.current),w.current=null),S.current!==null&&(cancelAnimationFrame(S.current),S.current=null)},P=()=>{_(null),W(),V()};o.useEffect(()=>()=>V(),[]);const W=()=>{try{if(k.current!==null&&(clearTimeout(k.current),k.current=null),N.current){try{N.current.classList.remove("drag-over")}catch{}N.current=null}document.querySelectorAll(".order-list .order-list__item").forEach(R=>R.classList.remove("drag-over"))}catch{}};return o.useEffect(()=>{try{const R=Math.max(1,(h||[]).length);h.forEach((D,I)=>{const j=U.current.get(D.id);if(!j)return;let O=50;R>1&&(O=Math.round(I/(R-1)*100));try{j.style.setProperty("--marker-pos",O+"%")}catch{}})}catch{}},[h]),o.useEffect(()=>()=>{V(),k.current!==null&&(clearTimeout(k.current),k.current=null)},[]),t.jsx(Gn,{index:e,stepIndex:n,isLast:a,title:c,children:t.jsx("div",{className:"order-list",children:h.map((R,D)=>{const I=Math.max(1,(h||[]).length),j=I>1?Math.round(D/(I-1)*100):50;return t.jsx("div",{className:"order-list__item",children:t.jsxs("div",{className:"order-list__slot","data-disabled":y==="disabled","aria-disabled":y==="disabled",children:[y!=="disabled"?t.jsx("div",{className:"order-list__marker caption-1",style:{"--marker-pos":j+"%"},ref:O=>{const $=U.current;O?$.set(R.id,O):$.delete(R.id)},children:t.jsx("span",{className:"order-list__slot-number button-1",children:D+1})}):null,t.jsxs("div",{ref:O=>{const $=z.current;O?$.set(R.id,O):$.delete(R.id)},className:`order-list__draggable ${C===D?"dragging":""}`,"data-disabled":y==="disabled","aria-disabled":y==="disabled",tabIndex:y==="disabled"?-1:0,draggable:f,onDragStart:f?O=>F(D,O):void 0,onDragEnter:f?O=>Z(D,O):void 0,onDragOver:f?O=>Z(D,O):void 0,onDragLeave:f?()=>{try{k.current!==null&&clearTimeout(k.current),k.current=setTimeout(()=>{try{const O=document.querySelectorAll(".order-list .order-list__item");O&&O[D]&&(O[D].classList.remove("drag-over"),N.current===O[D]&&(N.current=null))}catch{}},80)}catch{}}:void 0,onDrop:f?O=>J(D,O):void 0,onDragEnd:f?P:void 0,children:[t.jsx("span",{className:"order-list__item-text body-2",children:R.text}),f?t.jsxs("span",{className:"order-list__item-buttons",children:[t.jsx(de,{htmlType:"button",size:32,type:"dot",onClick:()=>b(D,-1),ariaLabel:u("training.up"),icon:"chevron-up",variant:"transparent-gray",width:48,useFaded:"true",disabled:D===0,useBorder:!1,useDisabledInvisible:!0}),t.jsx(de,{htmlType:"button",size:32,type:"dot",onClick:()=>b(D,1),ariaLabel:u("training.down"),icon:"chevron-down",variant:"transparent-gray",width:48,useFaded:"true",disabled:D===h.length-1,useBorder:!1,useDisabledInvisible:!0})]}):null]})]})},R.id)})})})}const r3=8e3;function o3(e,n){return new Promise(a=>{let r=!1;const s=()=>{r||(r=!0,a())};e.then(s,s),setTimeout(s,n)})}function ec({index:e,stepIndex:n,isLast:a=!1,title:r,onDone:s,onChange:i,context:l=[],selectable:u=!1,hideLabel:c=!1,hideAudio:d=!1,maxCards:p}){const{t:m}=ye.useTranslation(),h=r??m("training.cardInstructions","\uB0B1\uB9D0 \uCE74\uB4DC\uB97C \uBCF4\uACE0 \uC18C\uB9AC\uB97C \uB4E3\uACE0 \uD655\uC778\uD558\uC138\uC694."),g=o.useMemo(()=>Array.isArray(l)?l:l&&l.items||[],[l]),y=p??3,f=(g||[]).slice(0,y);(g||[]).length>y&&console.warn(`TrainingStepCard: ${g.length} items passed but only ${y} shown`);const x=typeof e=="number"?e:-1,b=typeof n!="number"?"disabled":x<n?"done":x===n?"active":"disabled",[C,_]=o.useState(null),v=o.useRef([]),[A,w]=o.useState(!1),N=o.useRef(null),k=o.useRef(!0);o.useEffect(()=>(k.current=!0,()=>{k.current=!1}),[]);const B=o.useMemo(()=>g.map(U=>U?.id??U?.word??"").join("|"),[g]);o.useEffect(()=>{_(null)},[B]);const S=o.useRef(void 0);o.useEffect(()=>{const U=S.current;typeof U=="number"&&typeof n=="number"&&typeof e=="number"&&U>=e&&n<e&&_(null),S.current=n},[n,e]);const E=o.useCallback((U,T)=>{if(u)return;const L={item:U,index:T,__ts:Date.now()};try{typeof i=="function"&&i(L)}catch{}if(b==="active"&&typeof s=="function")try{s(L)}catch{}},[u,i,b,s]),H=o.useCallback(async()=>{if(A||b==="disabled")return;w(!0);let U=!1;const T=new Promise(L=>{N.current=()=>{U=!0,L()}});try{for(let L=0;L<f.length&&!(!k.current||U);L++){const F=v.current[L];F&&await Promise.race([o3(F.play(),r3),T])}}finally{N.current=null,w(!1)}},[A,b,f.length]),z=o.useCallback((U,T)=>{if(b!=="active")return;_(T);const L={selectedValue:U.word||U.title||"",selectedIndex:T,item:U,__ts:Date.now()};try{typeof i=="function"&&i(L)}catch{}if(b==="active"&&typeof s=="function")try{s(L)}catch{}},[i,b,s]);return t.jsx(Gn,{index:e,stepIndex:n,isLast:a,title:h,onDone:s,titleProps:{usePlayAllBtn:!d&&f.length>0,onPlayAll:H,playAllActive:A},children:t.jsx("div",{className:"training-step__cards",onClickCapture:U=>{const T=N.current;if(!T)return;const L=U.target;L&&typeof L.closest=="function"&&L.closest(".training-word-card__bottom")&&T()},children:f.length===0?t.jsx("div",{className:"training-step__empty",children:m("training.noCards","\uCE74\uB4DC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")}):f.map((U,T)=>t.jsx(_o,{ref:L=>{v.current[T]=L},item:U,disabled:b==="disabled",onPlayDone:()=>E(U,T),selectable:u,selected:u&&C===T,onSelect:u?()=>z(U,T):void 0,flipDelay:T*120,hideLabel:c,hideAudio:d},U&&U.id||T))})})}const s3=160,i3={\uBCF4\uCCAD\uAE30:"hearingAid",\uC778\uACF5\uC640\uC6B0:"cochlearImplant"};function l3(e,n){const a=i3[e];return a?n(`device.type.${a}`,{defaultValue:e}):e}const tc=()=>{};function Mn(e){const n=o.useId();if(!("variant"in e)){const{label:b,sub:C,onClick:_,children:v,align:A="horizontal",icon:w,useFullWidth:N=!1}=e,k=B=>{_&&B.target===B.currentTarget&&(B.key==="Enter"||B.key===" ")&&(B.preventDefault(),_())};return t.jsxs("div",{className:De("panel-row",A==="vertical"?"panel-row--vertical":"",N?"panel-row--label-fixed panel-row--fill":"",_?"panel-row--clickable":""),onClick:_,onKeyDown:_?k:void 0,role:_?"button":void 0,tabIndex:_?0:void 0,children:[w!=null&&t.jsx("div",{className:"panel-row__icon",children:w}),b!=null&&t.jsxs("div",{className:"panel-row__left",children:[t.jsx("div",{className:"panel-row__label body-3",children:b}),C&&t.jsx("div",{className:"panel-row__sub caption-1",children:C})]}),t.jsx("div",{className:"panel-row__right",children:v})]})}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(Ta,{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:s,onClick:i,required:l,error:u,align:c="horizontal",useFullWidth:d=!1,icon:p}=e,m=a==="button"?void 0:i;let h=null;const g=a==="toggle"?`panel-toggle-${n}`:void 0,y=u?`panel-error-${n}`:void 0;if(a==="toggle"){const b=e;h=t.jsx(Hl,{checked:b.checked,onChange:b.onChange,id:g})}else if(a==="segmented"){const b=e;h=t.jsx(An,{options:b.options,value:b.value,onChange:b.onChange,size:b.size??40,ariaLabel:r})}else if(a==="dropdown"){const b=e,C=b.dropdowns?.length?t.jsx("div",{className:`panel-row__dropdown-group${d?" panel-row__dropdown-group--full":""}`,children:b.dropdowns.map((_,v)=>t.jsx("div",{className:d?"panel-row__dropdown-item--full":void 0,children:t.jsx(sn,{options:_.options,value:_.value,onChange:_.onChange,placeholder:_.placeholder,block:d,error:!!u,ariaDescribedBy:y,ariaLabel:_.ariaLabel??([r,_.placeholder].filter(Boolean).join(" ")||void 0)})},v))}):t.jsx(sn,{options:b.options??[],value:b.value??"",onChange:b.onChange??tc,block:d,error:!!u,ariaLabel:r,ariaDescribedBy:y});h=u?t.jsxs("div",{className:`panel-row__dropdown-error-wrap${d?" panel-row__dropdown-error-wrap--full":""}`,children:[C,t.jsx("span",{id:y,className:"caption-1 panel-row__error",role:"alert",children:u})]}):C}else if(a==="button"){const b=e;b.buttons?.length?h=t.jsx("div",{className:"panel-row__button-group",children:b.buttons.map((C,_)=>t.jsx(de,{htmlType:"button",size:C.btnSize??40,variant:C.btnVariant??"default",disabled:C.disabled,onClick:C.onClick,children:C.label},_))}):h=t.jsx(de,{htmlType:"button",size:b.btnSize??40,variant:b.btnVariant??"default",disabled:b.disabled,onClick:b.onClick,children:b.buttonLabel})}else if(a==="text"){const b=e;h=t.jsx("span",{className:`panel-row__text body-2${d?" panel-row__text--full":""}`,style:b.valueColor?{color:b.valueColor}:void 0,children:b.value})}else if(a==="input"){const b=e;h=t.jsxs("div",{className:`panel-row__input-wrap${d?" panel-row__input-wrap--full":""}`,children:[t.jsx(Un,{value:b.value,onChange:b.onChange??tc,onKeyDown:b.onKeyDown,onEnter:b.onEnter,placeholder:b.placeholder,ghostText:b.ghostText,ghostHint:b.ghostHint,inputMode:b.inputMode,readOnly:b.readOnly,disabled:b.disabled,type:b.type,autoComplete:b.autoComplete,maxLength:b.maxLength,showCount:b.showCount,multiline:b.multiline,rows:b.rows,fullWidth:d,error:u,ariaLabel:r,required:l}),b.helperText&&t.jsx("div",{className:"panel-row__helper caption-1",children:b.helperText})]})}else a==="custom"&&(h=e.children);u&&a!=="input"&&a!=="dropdown"&&(h=t.jsxs("div",{className:`panel-row__dropdown-error-wrap${d?" panel-row__dropdown-error-wrap--full":""}`,children:[h,t.jsx("span",{id:y,className:"caption-1 panel-row__error",role:"alert",children:u})]}));const f=a==="input"||a==="dropdown"||(a==="text"||a==="custom")&&d,x=b=>{m&&b.target===b.currentTarget&&(b.key==="Enter"||b.key===" ")&&(b.preventDefault(),m())};return t.jsxs("div",{className:De("panel-row",c==="vertical"?"panel-row--vertical":"",f?"panel-row--label-fixed":"",a==="text"?"panel-row--text":"",m?"panel-row--clickable":""),onClick:m,onKeyDown:m?x:void 0,role:m?"button":void 0,tabIndex:m?0:void 0,children:[p!=null&&t.jsx("div",{className:"panel-row__icon",children:p}),t.jsxs("div",{className:"panel-row__left",children:[g?t.jsxs("label",{htmlFor:g,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:"*"})]}),s&&t.jsx("div",{className:"panel-row__sub caption-1",children:s})]}),t.jsx("div",{className:"panel-row__right",children:h})]})}function nc(e){const n=e.productName||e.brand,a=[e.brand,e.fitType].filter(r=>!!r&&r!==n);return[...new Set(a)].join(" \xB7 ")}function u3({devices:e,onRelease:n,emptyLabel:a}){const{t:r}=ye.useTranslation();return t.jsx("div",{className:"panel-row panel-row--device",children:["\uC88C","\uC6B0"].map(s=>{const i=e[s],l=s==="\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(de,{htmlType:"button",size:32,type:"dot",icon:"x",ariaLabel:`${l} ${r("customers.device.unwear","\uCC29\uC6A9 \uD574\uC81C")}`,showTooltipInfo:r("customers.device.unwear","\uCC29\uC6A9 \uD574\uC81C"),onClick:()=>n(s)})]}),i?t.jsxs("div",{className:"panel-row__device-info",children:[t.jsxs("span",{className:"panel-row__device-kind",children:[i.device&&t.jsx(yt,{size:"small",variant:ou(i.device),fill:"soft",label:l3(i.device,r)}),nc(i)&&t.jsx("span",{className:"panel-row__device-detail body-3",children:nc(i)})]}),t.jsx("span",{className:"panel-row__device-name body-2b",children:i.productName||i.brand}),yo(i.wornYear,i.wornMonth,i.wornDay)&&t.jsx("span",{className:"panel-row__device-date caption-1",children:r("customers.device.wornSince",{date:yo(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")})]},s)})})}function cr({title:e,icon:n,disc:a,actions:r,size:s="medium",minHeight:i,maxWidth:l,className:u,scrollable:c,scrollbarGutter:d="auto",compactRows:p=!1,useBorder:m=!0,useBg:h=!0,useRowBorder:g=!0,labelWidth:y,form:f=!1,loading:x,empty:b,children:C}){const _=De("panel",`panel--${s}`,f?"panel--form":"",i!==void 0?"panel--fill":"",m?"":"panel--no-border",h?"":"panel--no-bg",g?"":"panel--no-row-border",p?"panel--compact-rows":"",u),v={};return i!==void 0&&(v.minHeight=i),l!==void 0&&(v.maxWidth=typeof l=="number"?`${l}px`:l),y!==void 0&&(v["--panel-label-width"]=typeof y=="number"?`${y}px`:y),t.jsxs("div",{className:_,style:Object.keys(v).length?v:void 0,children:[(!!e||a!=null)&&t.jsxs("div",{className:De("panel__header",a!=null?"panel__header--with-disc":""),children:[n&&t.jsx(Ke,{icon:n,label:typeof e=="string"?e:void 0,className:"panel__icon"}),t.jsxs("div",{className:"panel__title-group",children:[!!e&&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})]}),x?t.jsx(Mn,{variant:"loading"}):b!=null&&o.Children.toArray(C).length===0?t.jsx(Mn,{variant:"empty",children:b}):c?t.jsx("div",{className:De("panel__body--scroll",d==="stable"&&"panel__body--gutter-stable"),children:C}):C]})}function c3({cols:e=2,children:n}){return t.jsx("div",{className:"panel-grid",style:{"--panel-grid-cols":e},children:n})}function d3(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 ac(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"}]}d3(Et.t.bind(Et)),ac(Et.t.bind(Et));const Vo="none",p3=.5,m3=1.5,h3=.25;function Wo({title:e,valueLabel:n,value:a,min:r,max:s,step:i,tickStep:l,size:u,onChange:c}){return t.jsxs(Mn,{variant:"custom",label:e,useFullWidth:!0,children:[t.jsx(eu,{value:a,onChange:c,min:r,max:s,step:i,size:u,showBgTick:!0,tickStep:l,ariaLabel:e,className:"noise-settings__slider-input"}),t.jsx("div",{className:"noise-settings__value button-1",children:n})]})}function rc({anchorRect:e,onClose:n}){const{t:a}=ye.useTranslation(),r=tn("(max-width: 767px)")?40:24,s=ir(),i=$a(s?.settings??Pa),l=s?.settings.type??"defaultNoise",u=s?.settings.enabled??!0,c=s?.playbackRate??1,d=s?.mainVolume??1,p=Math.round(d*100),m=o.useCallback(f=>{try{s?.setMainVolume(Math.max(0,Math.min(1,f/100)))}catch{}},[s]),h=o.useCallback(f=>{try{s?.setPlaybackRate(f)}catch{}},[s]),g=o.useCallback(f=>{const x=Math.min(La,Math.max(0,Math.round(f*10)/10));try{s?.setSettings({noiseRatio:x})}catch{}},[s]),y=o.useCallback(f=>{try{f===Vo?s?.setSettings({enabled:!1}):s?.setSettings({type:f,enabled:!0})}catch{}},[s]);return t.jsx(rn,{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(de,{htmlType:"button",size:40,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,ariaLabel:a("common.close","\uB2EB\uAE30"),onClick:n})]}),children:t.jsxs(cr,{className:"noise-settings",useBorder:!1,labelWidth:72,children:[t.jsx(Wo,{title:a("training.playVolumeTitle","\uC804\uCCB4 \uC18C\uB9AC"),valueLabel:`${p}%`,value:p,min:0,max:100,step:10,size:r,onChange:m}),t.jsx(Wo,{title:a("training.playSpeedTitle","\uC7AC\uC0DD \uC18D\uB3C4"),valueLabel:`${c.toFixed(2)}x`,value:c,min:p3,max:m3,step:h3,size:r,onChange:h}),t.jsx(Mn,{variant:"custom",label:a("training.noiseTypeTitle","\uC18C\uC74C \uC885\uB958"),useFullWidth:!0,children:t.jsx(An,{ariaLabel:a("training.noiseTypeTitle","\uC18C\uC74C \uC885\uB958"),size:40,shape:"rounded",options:[{key:Vo,label:a("training.noise.type.none","\uC5C6\uC74C")},...ac(a).map(f=>({key:f.value,label:f.label}))],value:u?l:Vo,onChange:y})}),t.jsx(Wo,{title:a("training.noiseRatioTitle","\uC18C\uC74C \uBE44\uC728"),valueLabel:a("training.noiseRatioValue","{{ratio}}\uBC30",{ratio:i.toFixed(1)}),value:i,min:0,max:La,step:zu,size:r,onChange:g})]})})}function oc({useNoiseSettingBtn:e=!1,onSettings:n,onNext:a,onResult:r,stepIndex:s=0,stepCount:i=0,pageIndex:l=0,pageCount:u=1,resultOpen:c=!1}){const{t:d}=ye.useTranslation(),[p,m]=o.useState(!1),[h,g]=o.useState(null),[y,f]=o.useState(!1),x=o.useRef(null),b=o.useRef(null),C=ir(),_=u>0,v=_&&l<u-1,A=!_||l>=u-1,w=s===Math.max(0,i);o.useEffect(()=>{e||(m(!1),g(null))},[e]);const N=o.useCallback(()=>{m(!1),g(null)},[]),k=o.useCallback(()=>{if(p){m(!1),g(null);return}const F=x?.current?.getBoundingClientRect();F&&g(F),n?.(),m(!0)},[p,n]),B=o.useCallback(()=>{if(p){m(!1),g(null);return}const F=b?.current?.getBoundingClientRect();F&&g(F),n?.(),m(!0)},[p,n]),S=tn("(max-width: 767px)"),E=o.useRef(null),[H,z]=o.useState(null),U=o.useCallback(()=>{f(F=>{const Z=!F;return z(Z?E.current?.getBoundingClientRect()??null:null),Z})},[]),T=o.useCallback(()=>{f(!1),z(null)},[]);o.useEffect(()=>{c&&(f(!1),z(null))},[c]);const L=t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"pp-bottom__meter",children:[t.jsx("span",{className:"pp-bottom__meter-label caption-1",children:d("training.meter.sentence","\uC7AC\uC0DD")}),t.jsx(fo,{analyser:C?.mainAnalyser??null,orientation:"horizontal",length:112,label:"db",labelPos:"left",ariaLabel:d("training.meter.sentence","\uC7AC\uC0DD")})]}),t.jsxs("div",{className:"pp-bottom__meter",children:[t.jsx("span",{className:"pp-bottom__meter-label caption-1",children:d("training.meter.noise","\uC18C\uC74C")}),t.jsx(fo,{analyser:C?.noiseAnalyser??null,orientation:"horizontal",length:112,label:"db",labelPos:"left",ariaLabel:d("training.meter.noise","\uC18C\uC74C")})]})]});return Xu(e&&p,()=>typeof document<"u"?document.querySelector(".noise-settings__header")?.closest(".tooltip-content")??null:null,()=>[x.current,b.current].map(F=>F?.querySelector("button")??null).find(F=>!!F&&F.getClientRects().length>0)??x.current?.querySelector("button")??null),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:x,className:"pp-bottom__tooltip-trigger","data-tooltip-ignore":!0,children:t.jsx(de,{htmlType:"button",size:56,type:"bar",icon:"settings",onClick:k,className:p?"is-selected":void 0,"aria-expanded":p,"aria-haspopup":"dialog",ariaLabel:d("training.trainingSettingsTitle","\uD6C8\uB828 \uC124\uC815"),label:d("training.trainingSettingsTitle","\uD6C8\uB828 \uC124\uC815"),minWidth:140})})}),t.jsx("div",{className:"pp-bottom__settings--mobile",children:t.jsx("div",{ref:b,className:"pp-bottom__tooltip-trigger","data-tooltip-ignore":!0,children:t.jsx(de,{htmlType:"button",size:56,type:"dot",shape:"pill",icon:"settings",onClick:B,className:p?"is-selected":void 0,"aria-expanded":p,"aria-haspopup":"dialog",ariaLabel:d("training.settings","\uC124\uC815")})})})]}):null,e&&t.jsx("div",{ref:E,className:"pp-bottom__meter-trigger","data-tooltip-ignore":!0,children:t.jsx(de,{htmlType:"button",size:40,type:"dot",shape:"pill",icon:"audio-lines",onClick:U,selected:y,"aria-expanded":S?y:void 0,ariaLabel:d("training.meter.toggle","\uC624\uB514\uC624 \uBBF8\uD130 \uD45C\uC2DC")})}),e&&y&&!S&&t.jsx("div",{className:"pp-bottom__meters",children:L})]}),e&&y&&S&&H&&t.jsx(rn,{anchorRect:H,onClose:T,ariaLabel:d("training.meter.toggle","\uC624\uB514\uC624 \uBBF8\uD130 \uD45C\uC2DC"),children:t.jsx("div",{className:"pp-bottom__meters pp-bottom__meters--floating",children:L})}),t.jsxs("div",{className:"pp-bottom__right",children:[A&&t.jsx(de,{htmlType:"button",size:56,type:"bar",icon:"check",onClick:typeof r=="function"?r:a,ariaLabel:d("training.viewResult","\uACB0\uACFC\uBCF4\uAE30"),label:d("training.viewResult","\uACB0\uACFC\uBCF4\uAE30"),variant:"main",disabled:!w}),v&&t.jsx(de,{htmlType:"button",size:56,type:"bar",rightIcon:"chevron-right",align:"right",onClick:a,ariaLabel:d("training.nextQuestion","\uB2E4\uC74C \uBB38\uC81C"),label:d("training.nextQuestion","\uB2E4\uC74C \uBB38\uC81C"),variant:"main",disabled:!w})]}),e&&p&&t.jsx(rc,{anchorRect:h,onClose:N})]})}function sc({title:e,subtitle:n,desc:a,depth:r,icon:s,wrapperStyle:i,iconTooltip:l,pageIndex:u,pageCount:c,progressMax:d,progressIndex:p,onBack:m,onClose:h}){const{t:g}=ye.useTranslation(),y=tn("(max-width: 767px)"),f=Number.isInteger(p)?p:u||0,x=Number.isInteger(d)?d:c||0,b=m||h,C=Array.isArray(r)?y?r[r.length-1]:r.join(" / "):r,_=typeof e=="string"?e.trim():e,v=typeof n=="string"?n.trim():n,A=!!(_||v),w=A?_||v:g("common.emptyTrainingName","\uD6C8\uB828 \uC774\uB984\uC774 \uBE44\uC5B4 \uC788\uC2B5\uB2C8\uB2E4."),N=C||(_?n:void 0),k=y&&typeof N=="string"&&(N.includes(" \xB7 ")||N.includes(" / "))?N.split(/\s[·/]\s/).pop():N,B=o.useMemo(()=>{const S=i&&typeof i=="object"?{...i}:{};return!("width"in S)&&!("height"in S)&&(S.width="40px",S.height="40px"),S},[i]);return t.jsxs("header",{className:"pp-title training-popup-title",children:[t.jsxs("div",{className:"pp-title__left",children:[b?t.jsx(de,{htmlType:"button",size:48,type:"dot",icon:"chevron-left",ariaLabel:g("common.back","\uB4A4\uB85C"),onClick:b,useBorder:!1,iconSize:"large",iconColor:"--color-black",variant:"transparent-gray"}):null,t.jsx("div",{children:s?t.jsx(Tl,{icon:s,label:e,tooltip:l,wrapperStyle:B}):null}),t.jsxs("div",{className:"pp-title__text",children:[k?t.jsx("span",{className:"pp-title__depth caption-1",children:k}):null,t.jsx("span",{className:`pp-title__title h2${A?"":" pp-title__title--empty"}`,children:w}),a?t.jsx("span",{className:"pp-title__description caption-1",children:a}):null]})]}),t.jsx(ru,{max:Math.max(0,x??0),index:Math.max(0,f??0)})]})}function C3(){typeof window<"u"&&window.dispatchEvent(new CustomEvent("speechear.popup.close"))}function f3(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 ic=(e,n)=>{if(!n)return n;const a=typeof Et?.t=="function"?Et.t(e,{defaultValue:n}):void 0;return typeof a=="string"&&a?a:n};function lc(e,n,a){const r=e,s=r?.title||r?.name||(Array.isArray(n)?n[n.length-1]:void 0)||a||"\uD6C8\uB828",i=pi().find(u=>u.key===(r?.category_0||r?.category_main_code)),l=i?.subs?.find(u=>u.key===(r?.category_1||r?.category_sub_code));return{title:s,label:r?.title||s,depth:n,icon:i?.icon,wrapperStyle:i?.color?{"--t-item-fg":i.color}:void 0,iconTooltip:[i?ic(`topic.${i.key}`,i.label):void 0,l?ic(`topic.sub.${l.key}`,l.label):void 0].filter(Boolean).join(" / ")||void 0}}function qo(e){return e&&typeof e=="object"&&typeof e.__ts=="number"?e.__ts:0}function g3(e){const n=e;return Array.isArray(n?.items)?n.items:Array.isArray(e)?e:e?[e]:[]}function b3({idPrefix:e,trainingData:n,depth:a,fallbackTitle:r="\uD6C8\uB828",pages:s=[],emptyMessage:i,buildResults:l,metaPatch:u}){const c=lc(n,a,r),d=typeof u=="function"?u(c)||{}:u||{},p=n?.id||n?.title||s.length;return{id:`${e}:${p}`,meta:{...c,...d},pages:s,emptyMessage:i,buildResults:l}}function y3(e){if(typeof e=="string")return e;if(e&&typeof e=="object"){const n=e;return n.context||n.sentence||n.question||""||""}return""}function v3(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 x3(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 uc(e,n){if(!(!e||typeof e!="object"))return e[`step-${n}`]}function _3(e,n,a,r){return uc(e,n*a+r)}function w3({payload:e,selected:n,choices:a=[],correctAnswers:r=[]}){if(e&&typeof e=="object"){const s=e;if(Array.isArray(s.selectedValues))return r.every(i=>s.selectedValues.includes(i))&&s.selectedValues.every(i=>r.includes(i));if(typeof s.correct=="boolean")return s.correct}if(r.length){if(typeof n=="number"&&Array.isArray(a)&&a.length)return r.some(s=>String(s)===String(a[n]));if(typeof n<"u")return r.some(s=>String(s)===String(n))}}function A3(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 cc=o.createContext(null);function k3(){const e=o.useContext(cc);if(!e)throw new Error("useTrainingPagePopupContext must be used inside TrainingPagePopup");return e}function B3({index:e,stepIndex:n,isLast:a=!1,title:r,choices:s=[],onDone:i,onChange:l}){const{t:u}=ye.useTranslation(),c=typeof e=="number"?e:-1,d=typeof n!="number"?"disabled":c<n?"done":c===n?"active":"disabled",[p,m]=o.useState(()=>s.map(()=>null)),h=JSON.stringify(s),g=s.length;o.useEffect(()=>{m(Array.from({length:g},()=>null))},[h]);const y=o.useRef(void 0);o.useEffect(()=>{const C=y.current;typeof C=="number"&&typeof n=="number"&&typeof e=="number"&&C>=e&&n<e&&m(Array.from({length:g},()=>null)),y.current=n},[n,e,g]);const f=o.useMemo(()=>p.filter(C=>C!==null).length+1,[p]),x=o.useCallback(C=>{if(d!=="active")return;const _=p;let v;if(_[C]!=null){const w=_[C];v=_.map(N=>N!==null&&N>=w?null:N)}else v=[..._],v[C]=f;m(v);const A={selectedOrder:v,words:s,__ts:Date.now()};try{typeof l=="function"&&l(A)}catch{}if(_[C]==null&&v.length>0&&v.every(w=>w!==null))try{typeof i=="function"&&i(A)}catch{}},[d,p,f,l,i,s]),b=r??u("training.selectInOrder","\uB4E4\uC740 \uC21C\uC11C\uB300\uB85C \uCE74\uB4DC\uB97C \uC120\uD0DD\uD558\uC138\uC694.");return t.jsx(Gn,{index:e,stepIndex:n,isLast:a,title:b,onDone:i,children:t.jsx("div",{className:"training-step__cards",children:s.map((C,_)=>t.jsx(_o,{item:{word:C},disabled:d==="disabled",selectable:!0,selected:p[_]!==null,orderRank:p[_],onSelect:()=>x(_),flipDelay:_*120,hideLabel:!1,hideAudio:!0},`${C}-${_}`))})})}function dr(e){return null}dr.__isTrainingPage=!0;function da(e,n){const a=k3();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 dc({_stepIndex:e,_totalSteps:n,...a}){const{index:r,stepIndex:s,isLast:i,onDone:l}=da(e,n);return t.jsx(Ho,{...a,index:r,stepIndex:s,isLast:i,onDone:l})}function pc({_stepIndex:e,_totalSteps:n,...a}){const{index:r,stepIndex:s,isLast:i,onDone:l,onChange:u}=da(e,n);return t.jsx(Fo,{...a,index:r,stepIndex:s,isLast:i,onDone:l,onChange:u})}function mc({_stepIndex:e,_totalSteps:n,...a}){const{index:r,stepIndex:s,isLast:i,onDone:l,onChange:u}=da(e,n);return t.jsx(Oo,{...a,index:r,stepIndex:s,isLast:i,onDone:l,onChange:u})}function hc({_stepIndex:e,_totalSteps:n,...a}){const{index:r,stepIndex:s,isLast:i,onDone:l,onChange:u}=da(e,n);return t.jsx(zo,{...a,index:r,stepIndex:s,isLast:i,onDone:l,onChange:u})}function Cc({_stepIndex:e,_totalSteps:n,...a}){const{index:r,stepIndex:s,isLast:i,onDone:l,onChange:u}=da(e,n);return t.jsx(ec,{...a,index:r,stepIndex:s,isLast:i,onDone:l,onChange:u})}function N3({_stepIndex:e,_totalSteps:n,...a}){const{index:r,stepIndex:s,isLast:i,onDone:l,onChange:u}=da(e,n);return t.jsx(B3,{...a,index:r,stepIndex:s,isLast:i,onDone:l,onChange:u})}function Uo(...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 s of r){if(typeof s=="string"&&s.trim().length)return s.trim();if(typeof s=="number"||typeof s=="boolean")return String(s)}}}return null}function D3(e){return Uo(e?.question,e?.q,e?.sentence,e?.text,e?.prompt,e?.wording)}function fc(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=Uo(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 gc(e){const{score:n,contextsLength:a,results:r=[],subtitle:s,onReplay:i,onClose:l,inline:u=!1,pending:c=!1}=e||{},{t:d}=ye.useTranslation(),p=o.useId(),m=o.useCallback(()=>!c,[c]);o.useEffect(()=>{const C=a??0;if(n!=null&&C>0&&n/C>.5){const _=window.setTimeout(()=>{window.dispatchEvent(new CustomEvent("party:trigger",{detail:{count:140,strength:1.6,duration:2200}}))},0);return()=>window.clearTimeout(_)}},[n,a]);const h=o.useCallback(C=>{const _=fc(C),v=Uo(C?.wording,C?.label);return _===!0?{variant:"main",label:v??d("training.result.heardWell","\uC798 \uB4E4\uC5C8\uC5B4\uC694")}:_===!1?{variant:"danger",label:v??d("training.result.notHeard","\uBABB \uB4E4\uC5C8\uC5B4\uC694")}:{variant:"disabled",label:v??d("training.result.notJudged","\uBBF8\uD310\uC815")}},[d]),g=a??0,y=n??0,f=o.useMemo(()=>Array.isArray(r)?r:[],[r]),x=o.useMemo(()=>f.map(C=>{const _=C??{},v=D3(_)||d("training.result.noContent","(\uB0B4\uC6A9\uC5C6\uC74C)"),{variant:A,label:w}=h(_),N=Array.isArray(_.corrects)?_.corrects:[],k=N.length?N.join(", "):_.answer!=null&&_.answer!==""?String(_.answer):null,B=typeof _.selectedText=="string"?_.selectedText:null,S=fc(_)===!0;return{problem:v,variant:A,label:w,answer:k,selectedText:B,isCorrect:S}}),[f,h,d]),b=o.useMemo(()=>x.some(C=>C.answer!==null||C.selectedText!==null),[x]);return t.jsx(Tn,{onClose:l,closeOnBackdrop:!1,inline:u,ariaLabel:d("training.result.title","\uD6C8\uB828\uC744 \uBAA8\uB450 \uB9C8\uCCE4\uC2B5\uB2C8\uB2E4."),className:"popup--training-result",beforeClose:m,footerClassName:"trp-result__foot",footer:({animateThen:C,closeWithAnimation:_})=>t.jsxs(t.Fragment,{children:[c&&t.jsx("p",{id:p,className:"trp-actions__reason caption-1",role:"status",children:d("training.result.pendingDone","\uACB0\uACFC\uB97C \uACC4\uC0B0\uD558\uB294 \uC911\uC774\uB77C \uC544\uC9C1 \uC644\uB8CC\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.")}),t.jsxs("div",{className:"trp-actions",children:[t.jsx(de,{htmlType:"button",size:56,type:"bar",label:d("training.result.replay","\uB2E4\uC2DC\uD558\uAE30"),onClick:()=>C(i)}),t.jsx(de,{htmlType:"button",size:56,type:"bar",label:d("training.result.done","\uC644\uB8CC"),variant:"main",onClick:_,disabled:c,onDisabledClick:c?()=>{}:void 0,"aria-describedby":c?p:void 0})]})]}),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:d("training.result.eyebrow","\uD6C8\uB828 \uC644\uB8CC")}),t.jsx("h1",{className:"trp-result__title h2",children:d("training.result.title","\uD6C8\uB828\uC744 \uBAA8\uB450 \uB9C8\uCCE4\uC2B5\uB2C8\uB2E4.")}),s&&t.jsx("p",{className:"trp-result__subtitle body-3",children:s}),t.jsx("div",{className:"trp-score",children:t.jsxs("div",{className:"trp-score__figure","aria-label":d("training.result.scoreAria",{correct:y,total:g}),children:[t.jsx("span",{className:"trp-score__big",children:y}),t.jsx("span",{className:"trp-score__sep",children:"/"}),t.jsx("span",{className:"trp-score__total",children:g})]})})]}),x.length>0&&t.jsx("section",{className:"trp-result__body",children:t.jsxs("div",{className:`result-table${b?" result-table--answer":""}`,role:"table","aria-label":d("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:d("common.col.problem","\uBB38\uC81C")}),b&&t.jsx("span",{role:"columnheader",children:d("training.result.colAnswerSelected","\uC815\uB2F5 \xB7 \uC120\uD0DD")}),t.jsx("span",{className:"col-right",role:"columnheader",children:d("training.result.colJudge","\uD310\uC815")})]}),x.map((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(_+1).padStart(2,"0")}),t.jsx("div",{className:"trp-row__q body-2",children:C.problem})]}),b&&t.jsxs("div",{className:"trp-row__answers",children:[C.answer!==null&&t.jsxs("div",{className:"trp-row__answer-line",children:[t.jsx("span",{className:"trp-row__answer-label answer-correct caption-1",children:d("training.result.colAnswer","\uC815\uB2F5")}),t.jsx("span",{className:"trp-row__answer-value body-2",children:C.answer})]}),t.jsxs("div",{className:"trp-row__answer-line",children:[t.jsx("span",{className:`trp-row__answer-label answer-selected caption-1 ${C.isCorrect?"is-correct":"is-wrong"}`,children:d("training.result.colSelected","\uC120\uD0DD")}),t.jsx("span",{className:`trp-row__answer-value body-2 ${C.isCorrect?"is-correct":"is-wrong"}`,children:C.selectedText??"\u2014"})]})]}),t.jsx("div",{className:"trp-row__judge",children:t.jsx(yt,{variant:C.variant,label:C.label,fill:"soft",minWidth:80})})]},_))]})})]})})}function E3(e){o.useEffect(()=>{if(!e)return;const n=()=>typeof document>"u"||document.visibilityState!=="hidden";let a=null,r=null,s=0,i=0;const l=()=>{const p=Date.now();a==null&&(a=p),r==null&&(r=p)},u=()=>{r!=null&&(s+=Date.now()-r,r=null)};n()&&l();const c=()=>{if(u(),a==null||s-i<1e3||i===0&&s<5e3)return;const p=a+i;i=s,DC({trainingType:e,startedAt:new Date(p).toISOString(),endedAt:new Date(a+s).toISOString()})},d=()=>{n()?l():c()};return typeof document<"u"&&document.addEventListener("visibilitychange",d),typeof window<"u"&&window.addEventListener("pagehide",c),()=>{typeof document<"u"&&document.removeEventListener("visibilitychange",d),typeof window<"u"&&window.removeEventListener("pagehide",c),c()}},[e])}function Go(e,n){return e&&e.id||`page-${n??0}`}function Ko(e,n){return e&&e.key||`step-${n??0}`}function pr(){return{pageIndex:0,stepIndex:0,answersByPage:{}}}function S3(e,n){return typeof e?.props=="function"?e.props(n)||{}:e?.props||{}}const j3=300,T3=()=>{try{return typeof window<"u"&&!!window.matchMedia?.("(prefers-reduced-motion: reduce)").matches}catch{return!1}},Ln=Object.freeze({}),bc=new Set(["LISTEN_IN_NOISE","SHORT_STORY","LONG_STORY","ORDERING_SENTENCE"]);function yc(e){const n=e,a=n?.results||n?.answers||[],r=Array.isArray(a)&&a.length>0?a.length:null,s=Array.isArray(a)?a.filter(i=>i?.correct===!0||i?.isCorrect===!0||i?.score===1||i?.heard===!0||i?.judgement===!0).length:null;return{results:a,correct:r!=null?s:null,total:r}}const M3=e=>t.jsx(gc,{score:e.score,contextsLength:e.contextsLength,results:e.results,onReplay:e.onReplay,onClose:e.onClose,pending:e.pending});function L3(e){const{scenario:n,title:a,subTitle:r,depth:s,icon:i,wrapperStyle:l,iconTooltip:u,pageIndex:c,pageCount:d,stepIndex:p,stepCount:m,onBack:h,onComplete:g,onNext:y,onSettings:f,useNoiseSetting:x=!0,children:b,ariaLabel:C,label:_,buildResults:v,onResult:A,typeKey:w,entryPoint:N,dailyTotal:k,itemRef:B,renderResultPopup:S,noiseOverride:E}=e;E3(w&&!bc.has(w)?w:"");const H=o.useRef(0);o.useEffect(()=>{H.current=Date.now()},[]);const{t:z}=ye.useTranslation(),U=A,T=!!n,L=n?.id||null,F=n?.meta||{},Z=Array.isArray(n?.pages)?n.pages:[],J=Array.isArray(b)||o.isValidElement(b)&&typeof b!="function"?o.Children.toArray(b).filter(o.isValidElement):[],V=J.length>0,P=se=>se===dr||se?.__isTrainingPage===!0,W=V&&J.some(se=>P(se.type)),R=W?J.filter(se=>P(se.type)).map((se,xe)=>{const G=se.props||{};return{id:`children-page-${xe}`,steps:o.Children.toArray(G.children).filter(o.isValidElement),pageTop:G.pageTop||G.top||null,pageBottom:G.pageBottom||G.bottom||null}}):[{id:"children-page-0",steps:J}],D=V&&!T&&typeof b!="function",I=D?Math.max(1,R.length):0;o.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")}},[]),o.useEffect(()=>{if(typeof document>"u"||!document.body)return;const se=document.body;return se.dataset.ihabTrainingPopupCount=String(Number(se.dataset.ihabTrainingPopupCount||"0")+1),se.classList.add("ihab-training-popup-open"),()=>{const xe=Number(se.dataset.ihabTrainingPopupCount||"1")-1;xe>0?se.dataset.ihabTrainingPopupCount=String(xe):(delete se.dataset.ihabTrainingPopupCount,se.classList.remove("ihab-training-popup-open"))}},[]),o.useEffect(()=>{if(!(typeof document>"u"||!document.body))return B4()},[]);const[j,O]=o.useState({...Pa,enabled:!1}),$=o.useRef(j);o.useEffect(()=>{$.current=j},[j]);const Y=o.useRef(E),ae=o.useRef(!1),K=o.useRef(null);o.useEffect(()=>{let se=!1;const xe=G=>{if(se)return;ae.current=!0;const le=G?Ra({...Pa,enabled:!1},G):{...Pa},ce=K.current;K.current=null;const _e=ce?Ra(le,ce):le;$.current=_e,O(_e),ce&&!Y.current&&si(_e),Wa(_e);const Ae=Y.current;if(Ae){const je=typeof Ae=="function"?Ae(_e):Ae,rt=Ra(_e,je);$.current=rt,O(rt),Wa(rt)}};return TC().then(xe),()=>{se=!0}},[]);const[ne,be]=o.useState(null),[ue,pe]=o.useState(null),q=o.useCallback((se,xe)=>{se==="main"?be(xe):pe(xe)},[]),ee=o.useRef(null),ie=o.useRef(null),ve=o.useCallback(()=>{ie.current!==null&&(clearTimeout(ie.current),ie.current=null);const se=ee.current;ee.current=null,se&&si(se)},[]);o.useEffect(()=>{if(typeof window>"u")return;const se=()=>{document.visibilityState==="hidden"&&ve()};return window.addEventListener("pagehide",ve),document.addEventListener("visibilitychange",se),()=>{window.removeEventListener("pagehide",ve),document.removeEventListener("visibilitychange",se),ve()}},[ve]);const me=o.useCallback(se=>{const xe=Ra($.current,se);if($.current=xe,O(xe),!ae.current){K.current={...K.current??{},...se},Wa(xe);return}Y.current||(ee.current=xe,ie.current!==null&&clearTimeout(ie.current),ie.current=setTimeout(ve,j3)),Wa(xe)},[ve]),oe=j.mainSpeed,fe=j.mainVolume,ge=o.useCallback(se=>me({mainSpeed:se}),[me]),Ee=o.useCallback(se=>me({mainVolume:se}),[me]),Ie=o.useMemo(()=>({settings:j,setSettings:me,registerAnalyser:q,mainAnalyser:ne,noiseAnalyser:ue,playbackRate:oe,setPlaybackRate:ge,mainVolume:fe,setMainVolume:Ee}),[j,me,q,ne,ue,oe,ge,fe,Ee]),Le=o.useRef(null),[Je,et]=o.useState(0),Ve=o.useRef([]),[He,it]=o.useState("center"),[Qe,Ye]=o.useState(!1),re=o.useRef(!1),Re=o.useRef(null),te=o.useCallback(se=>{re.current||(re.current=!0,Ye(!0),Re.current=setTimeout(()=>{try{se()}catch{re.current=!1,Ye(!1)}},T3()?0:s3))},[]);o.useEffect(()=>()=>{Re.current&&clearTimeout(Re.current)},[]);const we=o.useRef(h);o.useEffect(()=>{we.current=h}),o.useEffect(()=>{const se=Le.current,xe=document.activeElement;if(zr(se,xe),se){const G=Array.from(se.querySelectorAll(mn)).filter(le=>!le.closest('[aria-hidden="true"]'))[0];if(G)try{G.focus()}catch{}}return()=>{const G=document.activeElement;if(!G||G===document.body||se&&se.contains(G))try{Vr(xe)?.focus?.()}catch{}}},[]),o.useEffect(()=>zn(()=>te(()=>{const se=we.current;typeof se=="function"&&se()})),[te]),Or(Le,!0);const[We,Be]=o.useState(!1),Se=o.useRef(!1),[he,Me]=o.useState(null),nt=o.useRef(0),_t=()=>{nt.current+=1,Me(null)},[kt,dt]=o.useState(""),[Ze,qe]=o.useState(()=>pr()),$e=o.useRef(typeof c=="number"?c:null);o.useEffect(()=>{!T&&!D||(qe(pr()),_t())},[T,L,D]),o.useEffect(()=>{D&&qe(se=>{const xe=Math.max(0,Math.min(se.pageIndex,Math.max(0,I-1)));return xe!==se.pageIndex?{...se,pageIndex:xe,stepIndex:0}:se})},[D,I]);const Xe=D?Math.max(0,Math.min(Ze.pageIndex,I-1)):0,Fe=D?R[Xe]:null,st=D&&Fe&&Array.isArray(Fe.steps)?Fe.steps:[],Ge=T?Ze.pageIndex:D?Xe:typeof c=="number"?c:0,ft=T?Z[Math.max(0,Math.min(Ze.pageIndex,Math.max(0,Z.length-1)))]:null,jt=T&&ft&&Array.isArray(ft.steps)?ft.steps:[],Bt=T?jt.length:D?st.length:typeof m=="number"?m:0,mt=T||D?Math.max(0,Math.min(Ze.stepIndex,Math.max(0,Bt))):typeof p=="number"?p:0,lt=T?Z.length:D?I:typeof d=="number"?d:0;o.useLayoutEffect(()=>{const se=$e.current;if(typeof Ge=="number"&&se!==null&&Ge!==se&&Ge>se)try{dt(z("training.problemNotice",{n:Ge+1}))}catch{}$e.current=typeof Ge=="number"?Ge:$e.current},[Ge,c,z]),o.useLayoutEffect(()=>{const se=Le.current;if(!se)return;const xe=()=>se.querySelector(".page-popup__scroll");let G=null,le=null,ce=null;const _e=ut=>{const vt=xe();if(!vt)return;const Rt=vt.scrollHeight<=vt.clientHeight;if(it(Rt?"center":"top"),ut&&!Se.current){Se.current=!0;try{Be(!0)}catch{}try{rt.disconnect()}catch{}}},Ae=()=>{G!==null&&cancelAnimationFrame(G),G=requestAnimationFrame(()=>{le!==null&&clearTimeout(le),le=setTimeout(()=>_e(!0),60)})},je=()=>{ce!==null&&cancelAnimationFrame(ce),ce=requestAnimationFrame(()=>_e(!1))};Ae(),window.addEventListener("resize",je);const rt=new MutationObserver(Ae);rt.observe(se,{childList:!0,subtree:!0,attributes:!0});const gt=setTimeout(()=>{Se.current||_e(!0)},400);return()=>{window.removeEventListener("resize",je),G!==null&&cancelAnimationFrame(G),le!==null&&clearTimeout(le),ce!==null&&cancelAnimationFrame(ce),clearTimeout(gt);try{rt.disconnect()}catch{}}},[Le]);const Oe=o.useCallback(se=>{Le.current&&(Le.current._childOnNext=se)},[]),at=o.useCallback(se=>{Le.current&&(Le.current._childOnResult=se)},[]),ht=o.useCallback((se,xe,G)=>{qe(le=>{const ce=le.answersByPage[se]||{},_e=ce[xe],Ae=qo(G),je=qo(_e);return _e&&je>Ae?le:{...le,answersByPage:{...le.answersByPage,[se]:{...ce,[xe]:G}}}})},[qe]),Ot=o.useCallback((se,xe,G)=>{const le=Go(ft,Ge),ce=Ko(se,xe);ht(le,ce,G)},[ft,Ge,ht]),tt=o.useCallback((se,xe,G)=>{const le=Go(ft,Ge),ce=Ko(se,xe);ht(le,ce,G),!G?.allowChange&&se?.autoAdvance!==!1&&qe(_e=>({..._e,stepIndex:Math.max(_e.stepIndex,xe+1)}))},[ft,Ge,ht,qe]),Tt=o.useCallback((se,xe)=>{const G=Fe?.id||`children-page-${Ge??0}`,le=typeof xe=="number"?xe:mt??0,ce=`step-${le}`;ht(G,ce,se),se?.allowChange||qe(_e=>({..._e,stepIndex:Math.max(_e.stepIndex,le+1)}))},[Fe,Ge,mt,ht,qe]),Yt=o.useCallback((se,xe)=>{const G=Fe?.id||`children-page-${Ge??0}`,le=`step-${typeof xe=="number"?xe:mt??0}`;ht(G,le,se)},[Fe,Ge,mt,ht]),Mt=D?{currentPageIndex:Ge??0,currentStepIndex:mt??0,totalStepsInPage:st.length,handleStepDone:Tt,handleStepChange:Yt}:null,ln=async()=>{const se=typeof n?.buildResults=="function"?await Promise.resolve(n.buildResults({scenario:n,pages:Z,flowState:Ze,answersByPage:Ze.answersByPage})):null;return typeof U=="function"&&await Promise.resolve(U(se))||se},un=async()=>{const se=Fe?.id||`children-page-${Ze.pageIndex}`,xe=Ze.answersByPage[se]||{},G=W?(()=>{const _e={};let Ae=0;return R.forEach(je=>{const rt=Ze.answersByPage[je.id]||{},gt=Array.isArray(je.steps)?je.steps.length:0;for(let ut=0;ut<gt;ut+=1){const vt=rt[`step-${ut}`];typeof vt<"u"&&(_e[`step-${Ae+ut}`]=vt)}Ae+=gt}),_e})():xe;if(typeof v=="function"){const _e=await Promise.resolve(v(G,{pageAnswers:xe,answersByPage:Ze.answersByPage,pages:R,currentPageId:se}));return typeof U=="function"&&await Promise.resolve(U(_e))||_e}const le=Object.entries(xe).map(([_e,Ae],je)=>({index:je,key:_e,payload:Ae})),ce={results:le,answers:le,score:0};return typeof U=="function"&&await Promise.resolve(U(ce))||ce},cn=()=>{const se=++nt.current,xe=()=>se!==nt.current;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(T){const ce=ln();Me(Ln);const _e=ce;Promise.resolve(_e).then(Ae=>{xe()||Me(Ae||{isEmpty:!0})}).catch(Ae=>{!xe()&&Me({isEmpty:!0})});return}if(D){const ce=un();Me(Ln);const _e=ce;Promise.resolve(_e).then(Ae=>{xe()||Me(Ae||{isEmpty:!0})}).catch(Ae=>{!xe()&&Me({isEmpty:!0})});return}const G=Le.current&&Le.current._childOnResult,le=ce=>{try{return ce?ce():void 0}catch{return}};if(typeof G=="function"){const ce=le(G);try{typeof document>"u"?require("url").pathToFileURL(__filename).href:yn&&yn.tagName.toUpperCase()==="SCRIPT"&&yn.src||new URL("components.cjs.js",document.baseURI).href}catch{}ce&&typeof ce.then!="function"?Me(ce):Me(ce&&typeof ce.then=="function"?Ln:{});const _e=()=>{xe()||Me(Ae=>Ae===Ln?{}:Ae)};Promise.resolve(ce).then(Ae=>{Ae&&!xe()?Me(Ae):_e()}).catch(Ae=>{_e()});return}if(typeof U=="function"){const ce=le(U);try{typeof document>"u"?require("url").pathToFileURL(__filename).href:yn&&yn.tagName.toUpperCase()==="SCRIPT"&&yn.src||new URL("components.cjs.js",document.baseURI).href}catch{}ce&&typeof ce.then!="function"?Me(ce):Me(ce&&typeof ce.then=="function"?Ln:{});const _e=()=>{xe()||Me(Ae=>Ae===Ln?{}:Ae)};Promise.resolve(ce).then(Ae=>{try{typeof document>"u"?require("url").pathToFileURL(__filename).href:yn&&yn.tagName.toUpperCase()==="SCRIPT"&&yn.src||new URL("components.cjs.js",document.baseURI).href}catch{}Ae&&!xe()?Me(Ae):_e()}).catch(Ae=>{console.error("viewResults external handler failed",Ae),_e()});return}},Rn=()=>{if(T){if(typeof Ge=="number"&&typeof lt=="number"&&Ge<lt-1){qe(xe=>({...xe,pageIndex:xe.pageIndex+1,stepIndex:0}));return}return cn()}if(D){const xe=st.length;if(typeof mt=="number"&&mt<xe-1){qe(G=>({...G,stepIndex:G.stepIndex+1}));return}if(typeof Ge=="number"&&typeof lt=="number"&&Ge<lt-1){qe(G=>({...G,pageIndex:G.pageIndex+1,stepIndex:0}));return}return cn()}if(typeof y=="function"){try{y()}catch{}return}const se=Le.current&&Le.current._childOnNext;if(typeof se=="function"){try{se()}catch{}return}},dn=T?F.title||F.label||C||z("common.popup","\uD31D\uC5C5"):a||_||(Array.isArray(s)?s[s.length-1]:void 0)||C||z("common.popup","\uD31D\uC5C5"),Pn=C||dn,Nn=T?F.title??F.label??dn:a??_??dn,Nt=(se,xe)=>{const G=Go(ft,Ge),le=Ko(se,xe),ce=Ze.answersByPage[G]?.[le],_e=S3(se,{page:ft,pageIndex:Ge,step:se,stepIndex:xe,storedPayload:ce,answersByPage:Ze.answersByPage,flowState:Ze}),Ae={key:le,index:xe,stepIndex:mt,isLast:xe===jt.length-1};switch(se?.type){case"listen":return t.jsx(Ho,{...Ae,..._e,onDone:je=>tt(se,xe,je)});case"confirm":return t.jsx(Fo,{...Ae,..._e,onDone:je=>tt(se,xe,je),onChange:je=>Ot(se,xe,je)});case"confirmWithText":return t.jsx(Oo,{...Ae,..._e,onDone:je=>tt(se,xe,je),onChange:je=>Ot(se,xe,je)});case"orderList":return t.jsx(zo,{...Ae,..._e,onDone:je=>tt(se,xe,je),onChange:je=>Ot(se,xe,je)});default:return null}},Cn=o.useRef(void 0);o.useEffect(()=>{const se=Cn.current;if(Cn.current=Ge,se===void 0||se===Ge||!nr())return;const xe=Le.current;if(!xe)return;const G=document.activeElement;if(!(!G||G===document.body||!xe.contains(G)||G.disabled===!0))return;const le=xe.querySelector(`.training-steps ${mn.split(", ").join(", .training-steps ")}`)??Array.from(xe.querySelectorAll(mn)).find(ce=>!ce.closest('[aria-hidden="true"]'));try{le?.focus()}catch{}},[Ge]);const Ht=T?Z.length>0?t.jsx("div",{className:"training-steps",children:jt.map((se,xe)=>Nt(se,xe))},`replay-${Je}`):t.jsx("div",{className:`page-popup__content page-popup__content--center${e.contentFull?" page-popup__content--full":""}`,children:t.jsx("div",{className:"pp-empty",children:n?.emptyMessage||z("training.noQuestions","\uBB38\uC81C\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")})}):null,Zt=D?t.jsxs(cc.Provider,{value:Mt,children:[Fe?.pageTop?t.jsx("div",{className:"training-page-top",children:Fe.pageTop}):null,t.jsx("div",{className:"training-steps",children:st.map((se,xe)=>{const G=se;return o.cloneElement(G,{...G.props,_stepIndex:xe,_totalSteps:st.length,_stepKey:`step-${xe}`,_pageIndex:Ge})})},`replay-${Je}`),Fe?.pageBottom?t.jsx("div",{className:"training-page-bottom",children:Fe.pageBottom}):null]}):null,fn=o.useCallback(()=>{let se;if(w){const xe=he,{results:G,correct:le,total:ce}=yc(he);EC({items:jC(G),category:bc.has(w)?"sentence":"word",trainingType:w,entryPoint:N??"sentence",itemRef:B??null,correct:le,total:ce,score:typeof xe?.score=="number"?xe.score:null,durationSeconds:Math.max(0,Math.round((Date.now()-H.current)/1e3)),dailyTotal:k??null}),se={correct:le,total:ce,attempt:Ve.current.length+1,previousAttempts:[...Ve.current]}}_t(),te(()=>{typeof g=="function"&&g(se),typeof h=="function"&&h()})},[g,h,w,N,k,B,he,Me,te]),en=o.useCallback(()=>dt(""),[dt]),gn=o.useCallback(()=>{te(()=>{typeof h=="function"&&h()})},[h,te]),In=t.jsxs("div",{className:`page-popup${Qe?" page-popup--closing":""}`,role:"dialog","aria-modal":"true","aria-label":Pn,children:[t.jsxs("div",{ref:Le,className:`page-popup__panel ${We?"":"page-popup__panel--measuring"} ${He==="center"?"page-popup__panel--center":He==="top"?"page-popup__panel--top":""}`,children:[t.jsx(sc,{title:Nn,subtitle:T?F.subtitle||F.label:Array.isArray(s)?s.join(" / "):void 0,desc:T?void 0:r,depth:T?F.depth:s,icon:T?F.icon:i,wrapperStyle:T?F.wrapperStyle:l,iconTooltip:T?F.iconTooltip:u,progressMax:lt,progressIndex:Ge,pageIndex:Ge,pageCount:lt,onBack:gn,onClose:gn}),t.jsx("div",{className:"page-popup__scroll",children:t.jsx("div",{className:`page-popup__content ${He==="center"?"page-popup__content--center":"page-popup__content--top"}${e.contentFull?" page-popup__content--full":""}`,children:D?Zt:T?Ht:typeof b=="function"?b({registerOnNext:Oe,registerOnResult:at,panelRef:Le,setResultOverlay:Me}):b})}),t.jsx(oc,{onSettings:f,onNext:Rn,onResult:cn,useNoiseSettingBtn:!!(T?F.useNoiseSetting??!0:x),stepIndex:mt,stepCount:Bt,pageIndex:Ge,pageCount:lt,resultOpen:!!(he&&!he.isEmpty)})]}),he&&!he.isEmpty&&(S??M3)({score:he.score,results:he.results||he.answers||[],contextsLength:he.results?he.results.length:he.answers?he.answers.length:0,onReplay:()=>{if(H.current=Date.now(),he!==Ln){const{correct:se,total:xe}=yc(he);Ve.current.push({correct:se,total:xe})}if(_t(),et(se=>se+1),T){if(qe(pr()),typeof n?.onReplay=="function")try{n.onReplay()}catch{}return}if(D){qe(pr());return}try{const se=Le.current&&Le.current._childOnResult;typeof se=="function"&&se({replay:!0})}catch{}},onClose:fn,pending:he===Ln}),he?.isEmpty&&t.jsx("div",{className:"page-popup page-popup--result-empty",role:"dialog","aria-modal":"true","aria-label":z("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${e.contentFull?" page-popup__content--full":""}`,children:t.jsx("div",{className:"page-popup__empty",children:z("training.result.eyebrow","\uD6C8\uB828 \uC644\uB8CC")})})}),t.jsx("div",{className:"page-popup__bottom",children:t.jsx(de,{htmlType:"button",variant:"main",size:48,onClick:fn,label:z("training.result.done","\uC644\uB8CC")})})]})}),t.jsx(ra,{message:kt,position:"top",onClose:en})]}),bn=t.jsx(Mo.Provider,{value:Ie,children:In});return typeof document<"u"&&document.body?Xt.createPortal(bn,document.body):bn}const $n=L3;$n.Page=dr,$n.ListenStep=dc,$n.ConfirmStep=pc,$n.ConfirmWithTextStep=mc,$n.OrderListStep=hc,$n.CardStep=Cc,$n.CardOrderStep=N3;function $3({label:e,homonum:n}){const a=Xn()?.(e,n)??"",{imgRef:r,loading:s,hasImage:i,onLoad:l,onError:u}=xo(a);return i?t.jsxs("div",{className:"tooltip-word-image__cell",children:[s&&t.jsx("div",{className:"tooltip-word-image__spinner"}),t.jsx("img",{ref:r,src:a,alt:e,draggable:!1,style:{opacity:s?0:1},onLoad:l,onError:u})]}):t.jsx("div",{className:"tooltip-word-image__cell tooltip-word-image__cell--text h3",children:t.jsx("span",{children:e})})}function vc({words:e,anchorRect:n}){const a=o.useRef(null),[r,s]=o.useState(null);return o.useLayoutEffect(()=>{if(!n||!a.current)return;const{offsetWidth:i,offsetHeight:l}=a.current,u=window.innerWidth;let c=n.left+n.width/2-i/2,d=n.top-l-8;d<8&&(d=n.bottom+8),c=Math.max(8,Math.min(c,u-i-8)),s({left:c,top:d})},[n]),!n||e.length===0?null:Xt.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($3,{label:i.label,homonum:i.homonum},`${i.label}_${i.homonum??1}`))})}),document.body)}const R3=new Intl.Collator("ko");function P3({titleIcon:e,resultCount:n,resultUnit:a,searchQuery:r,items:s,groups:i,selected:l=[],onSelect:u,maxSelect:c,onClearSelection:d,onPrint:p,onPrintEmpty:m,className:h,emptyHint:g,sectionType:y="page",disc:f}){const{t:x,i18n:b}=ye.useTranslation(),C=b.language?.startsWith("ko")??!1,{anchorRect:_,openAt:v,close:A}=wa(),[w,N]=o.useState(null),k=o.useCallback(()=>{A(),N(null)},[A]);ib(k,!!w);const B=(r??"").trim(),S=/^[^,[\]\s]+$/.test(B)?B:"",E=S.length>0,H=r===void 0&&n===void 0,z=E?"match":H?"original":"ganada",[U,T]=o.useState(()=>z),[L,F]=o.useState("50"),[Z,J]=o.useState(1),[V,P]=o.useState(E);V!==E&&(P(E),T(z));const W=U==="match"&&!E||U==="original"&&!H?z:U,R=o.useMemo(()=>[...E?[{value:"match",label:x("wordSearch.sort.match",{defaultValue:"\uC2DC\uC791 \uC6B0\uC120"})}]:[],...H?[{value:"original",label:x("wordSearch.sort.original",{defaultValue:"\uBC1B\uC740 \uC21C\uC11C"})}]:[],{value:"ganada",label:x("wordSearch.sort.ganada",{defaultValue:"\uAC00\uB098\uB2E4\uC21C \u2191"})},{value:"ganada_desc",label:x("wordSearch.sort.ganadaDesc",{defaultValue:"\uAC00\uB098\uB2E4\uC21C \u2193"})},{value:"syllable",label:x("wordSearch.sort.syllable",{defaultValue:"\uC74C\uC808 \uC218 \u2191"})},{value:"syllable_desc",label:x("wordSearch.sort.syllableDesc",{defaultValue:"\uC74C\uC808 \uC218 \u2193"})},{value:"grade",label:x("wordSearch.sort.grade",{defaultValue:"\uB4F1\uAE09\uC21C \u2191"})},{value:"grade_desc",label:x("wordSearch.sort.gradeDesc",{defaultValue:"\uB4F1\uAE09\uC21C \u2193"})}],[x,E,H]),D=o.useMemo(()=>["10","25","50","100"].map(oe=>({value:oe,label:x("wordSearch.pageSize",{count:Number(oe),defaultValue:`${oe}\uAC1C\uC529 \uBCF4\uAE30`})})),[x]),I=oe=>oe.words?.[0],j=o.useMemo(()=>{const oe=[...S].length,fe=hC(S),ge=new Map;return Ee=>{let Ie=ge.get(Ee);return Ie===void 0&&(Ie=fe((Ee.words?.[0]?.label??"").slice(0,oe))?0:1,ge.set(Ee,Ie)),Ie}},[S]),O=o.useCallback((oe,fe)=>{const ge=Le=>I(Le)?.label??"",Ee=Le=>I(Le)?.syllables??[...ge(Le)].length,Ie=Le=>(Le.words??[]).reduce((Je,et)=>{const Ve=parseInt(et.grade??"",10);return Number.isFinite(Ve)&&Ve<Je?Ve:Je},999);switch(W){case"match":return j(oe)-j(fe)||R3.compare(ge(oe),ge(fe));case"ganada":return ge(oe).localeCompare(ge(fe),"ko");case"ganada_desc":return ge(fe).localeCompare(ge(oe),"ko");case"syllable":return Ee(oe)-Ee(fe)||ge(oe).localeCompare(ge(fe),"ko");case"syllable_desc":return Ee(fe)-Ee(oe)||ge(oe).localeCompare(ge(fe),"ko");case"grade":return Ie(oe)-Ie(fe)||ge(oe).localeCompare(ge(fe),"ko");case"grade_desc":return Ie(fe)-Ie(oe)||ge(oe).localeCompare(ge(fe),"ko");default:return 0}},[W,j]),$=o.useMemo(()=>s.slice().sort(O),[s,O]),Y=Number(L)||10,ae=o.useMemo(()=>(i??[]).flatMap(oe=>oe.items.slice().sort(O).map(fe=>({item:fe,label:oe.label}))),[i,O]),K=i?ae.length:$.length,ne=Math.max(1,Math.ceil(K/Y)),be=Math.min(Z,ne),ue=o.useMemo(()=>$.slice((be-1)*Y,be*Y),[$,be,Y]),pe=o.useMemo(()=>{if(!i)return null;const oe=ae.slice((be-1)*Y,be*Y),fe=new Map;for(const{item:ge,label:Ee}of oe)fe.has(Ee)||fe.set(Ee,[]),fe.get(Ee).push(ge);return[...fe.entries()].map(([ge,Ee])=>({label:ge,items:Ee}))},[i,ae,be,Y]);o.useEffect(()=>{J(1)},[U,L,K,r]);const q=K>0?t.jsxs("div",{className:"word-search-result-block__toolbar",children:[t.jsx(sn,{size:40,options:R,value:W,onChange:T,ariaLabel:x("wordSearch.sort.aria",{defaultValue:"\uC815\uB82C"})}),t.jsx(sn,{size:40,options:D,value:L,onChange:F,ariaLabel:x("wordSearch.pageSizeAria",{defaultValue:"\uD398\uC774\uC9C0 \uD06C\uAE30"})}),t.jsx(Qa,{page:be,totalPages:ne,onChange:J})]}):void 0,ee=oe=>{u&&u(oe)},ie=n!==void 0&&a?t.jsxs(t.Fragment,{children:[x("wordSearch.resultTitlePrefix","\uCD1D "),t.jsx("span",{style:{color:"var(--color-main)"},children:n}),x("wordSearch.resultTitleSuffix",{unit:C?_C(a):a})]}):void 0,ve=n!==void 0&&n>0&&c!==void 0&&a?x("wordSearch.resultDisc",{unit:C?AC(a):a,max:c,selected:l.length}):void 0,me=f??ve;return t.jsxs(sa,{type:y,className:De("word-search-result-block",h),children:[t.jsxs("div",{className:"word-search-result-block__inner",children:[(ie||q||me)&&t.jsxs("div",{className:"word-search-result-block__head",children:[t.jsxs("div",{className:"word-search-result-block__head-main",children:[e&&t.jsx(Ke,{icon:e,className:"word-search-result-block__head-icon"}),ie&&t.jsx("span",{className:"word-search-result-block__title h3",children:ie})]}),q&&t.jsx("div",{className:"word-search-result-block__head-actions",children:q}),me&&t.jsx("div",{className:"word-search-result-block__head-disc body-3",children:me})]}),(i?i.length===0:s.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:x("wordSearch.emptyResult","\uAC80\uC0C9 \uACB0\uACFC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")}),g&&t.jsx("p",{className:"word-search-result-block__empty-hint body-3",children:g})]}),i?(pe??[]).map(oe=>t.jsx("div",{className:"word-search-result-block__group",children:t.jsx("div",{className:"word-search-result-block__items",children:oe.items.map(fe=>{const ge=l.includes(fe.id);return t.jsx("div",{onMouseEnter:Ee=>{v(Ee.currentTarget),N(fe.words??[])},onMouseLeave:k,children:t.jsx(de,{htmlType:"button",size:"word",align:"grid",label:(fe.words??[]).map(Ee=>Ee.label),subLabel:(fe.words??[]).some(Ee=>Ee.subLabel)?(fe.words??[]).map(Ee=>Ee.subLabel):void 0,selected:ge,onClick:()=>ee(fe.id),minWidth:200})},fe.id)})})},oe.label)):t.jsx("div",{className:"word-search-result-block__items",children:ue.map(oe=>{const fe=l.includes(oe.id);return t.jsx("div",{onMouseEnter:ge=>{v(ge.currentTarget),N(oe.words??[])},onMouseLeave:k,children:t.jsx(de,{htmlType:"button",size:"word",align:"grid",label:(oe.words??[]).map(ge=>ge.label),subLabel:(oe.words??[]).some(ge=>ge.subLabel)?(oe.words??[]).map(ge=>ge.subLabel):void 0,selected:fe,onClick:()=>ee(oe.id),minWidth:200})},oe.id)})}),w&&_&&t.jsx(vc,{words:w,anchorRect:_})]}),ne>1&&t.jsx("div",{className:"word-search-result-block__pagination-bottom",children:t.jsx(Qa,{page:be,totalPages:ne,onChange:J})}),(d||p)&&t.jsxs("div",{className:"word-search-result-block__actions",children:[d&&t.jsx(de,{htmlType:"button",size:"56",type:"bar",label:x("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?m:void 0,children:t.jsx(de,{htmlType:"button",size:"56",type:"bar",variant:"main",label:x("wordTable.title","\uB2E8\uC5B4 \uD45C \uB9CC\uB4E4\uAE30"),disabled:l.length===0,onClick:l.length===0?void 0:p})})]})]})}function I3(e,n){return n.map(a=>{const r=typeof a=="string"?a:a.label,s=typeof a=="string"?void 0:a.displayLabel;return{label:r,value:e[r]??"",displayLabel:s}})}function F3({sections:e,selectedList:n,count:a,onCountChange:r,maxCount:s=4,minCount:i=1,combinationSections:l,combinationSectionsForSlot:u,onSelect:c,placeholder:d="-",className:p,title:m,titleIcon:h,disc:g,showInfoButton:y=!0,onClearPhoneme:f,onSearch:x,onSearchEmpty:b,searchDisabled:C=!1,searchLabel:_,searchChecking:v=!1,pairMode:A=!1,sectionType:w="page",beforeSearchContent:N,beforeContent:k,afterContent:B,hideCountControl:S=!1,ordinal:E=!1}){const{t:H}=ye.useTranslation(),z=o.useMemo(()=>H("wordPairs.infoNotes",{returnObjects:!0}),[H]),U=o.useMemo(()=>Array.from({length:s-i+1},(j,O)=>{const $=i+O;return{key:String($),label:H("wordPairs.count",{n:$})}}),[H,s,i]),T=o.useMemo(()=>H("wordPairs.ordinals",{returnObjects:!0}),[H]),L=o.useCallback(j=>E?H("wordPairs.phonemeOrdinalLabel",{ordinal:T[j-1]??j}):a===1?H("wordPairs.phonemeSingleLabel","\uC74C\uC808"):H("wordPairs.phonemeN",{n:j}),[E,T,a,H]),F=o.useCallback(j=>E?H("wordPairs.phonemeContrastOrdinalLabel",{ordinal:T[j-1]??j}):a===1?H("wordPairs.phonemeContrastSingleLabel","\uB300\uB9BD \uC74C\uC808"):H("wordPairs.phonemeContrast",{n:j}),[E,T,a,H]),Z=o.useCallback((j,O)=>O?t.jsxs(t.Fragment,{children:[j,t.jsx("span",{className:"phoneme-select-block__required",children:"*"})]}):j,[]),{anchorRect:J,toggleAt:V,close:P}=wa(),W=o.useCallback(j=>r(Number(j)),[r]),R=tn("(max-width: 767px)"),D=o.useCallback(j=>I3(j,e).map(({label:O,value:$,displayLabel:Y})=>{const ae=!!$&&$!=="\uC5C6\uC74C";return t.jsxs("span",{className:De("phoneme-select-block__cell-jamo-part",$?"":"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${$==="\uC5C6\uC74C"?" phoneme-select-block__cell-jamo-char--excluded":""}`,children:$==="\uC5C6\uC74C"?"x":$||d}),ae&&t.jsx("span",{className:"phoneme-select-block__cell-jamo-label caption-2",children:Y??O})]},O)}),[e,d]),I=t.jsxs(t.Fragment,{children:[t.jsx("div",{"data-tooltip-ignore":!0,children:t.jsx(de,{htmlType:"button",size:40,type:R?"dot":void 0,icon:"info",label:R?void 0:H("wordPairs.caution","\uC720\uC758\uC0AC\uD56D"),ariaLabel:H("wordPairs.caution","\uC720\uC758\uC0AC\uD56D"),className:J?"is-selected":void 0,"aria-expanded":!!J,"aria-haspopup":"dialog",onClick:j=>V(j.currentTarget)})}),J&&t.jsx(Vn,{title:H("wordPairs.caution","\uC720\uC758\uC0AC\uD56D"),items:z,anchorRect:J,onClose:P})]});return t.jsxs(sa,{type:w,title:m,icon:h,disc:g,action:y?I:void 0,className:De("phoneme-select-block",p),children:[k,!S&&t.jsx("div",{className:"phoneme-select-block__controls",children:t.jsx(An,{options:U,value:String(a),onChange:W,size:40,className:"phoneme-select-block__count-control"})}),t.jsx("div",{className:"phoneme-select-block__cells",children:A?t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"phoneme-select-block__cell-group",children:Array.from({length:a}).map((j,O)=>{const $=n[O*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:D($)})}),t.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:L(O+1)})]},O)})}),t.jsx("span",{className:"phoneme-select-block__cell-vs h3",children:H("wordPairs.phonemeSelect.vs","\uB300")}),t.jsx("div",{className:"phoneme-select-block__cell-group",children:Array.from({length:a}).map((j,O)=>{const $=n[O*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:D($)})}),t.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:F(O+1)})]},O)})})]}):n.map((j,O)=>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:D(j)})}),t.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:L(O+1)})]},O))}),(l||u)&&t.jsx("div",{className:"phoneme-select-block__panels",children:t.jsx("div",{className:"phoneme-select-block__detail",children:A?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((j,O)=>{const $=n[O*2]??{};return t.jsx(Bn,{title:Z(L(O+1),O===0),sections:u?u($,O*2):l,selected:$,onSelect:c?.(O*2),align:"newline"},O)})}),t.jsx("div",{className:"phoneme-select-block__panel-group",children:Array.from({length:a}).map((j,O)=>{const $=n[O*2+1]??{};return t.jsx(Bn,{title:F(O+1),sections:u?u($,O*2+1):l,selected:$,onSelect:c?.(O*2+1),align:"newline"},O)})})]}):n.map((j,O)=>t.jsx(Bn,{title:Z(L(O+1),O===0),sections:u?u(j,O):l,selected:j,onSelect:c?.(O),align:"newline"},O))})}),N&&t.jsx("div",{className:"phoneme-select-block__before-search",children:N}),(f||x||v)&&(()=>{const j=n.every(O=>Object.entries(O).every(([$,Y])=>!Y||$==="\uC885\uC131"&&Y==="\uC5C6\uC74C"));return t.jsxs("div",{className:"phoneme-select-block__search-row",onClick:j?b:void 0,children:[f&&t.jsx(de,{htmlType:"button",size:"56",type:"bar",label:H("wordPairs.resetOptions","\uAC80\uC0C9 \uC635\uC158 \uCD08\uAE30\uD654"),selected:!1,disabled:j,onClick:j?void 0:f}),x?t.jsx(de,{htmlType:"button",size:"56",type:"bar",variant:"main",icon:v?t.jsx("span",{className:"phoneme-select-block__spinner","aria-hidden":"true"}):void 0,label:_??H("wordSearch.searchButton","\uAC80\uC0C9\uD558\uAE30"),disabled:j||C||v,onDisabledClick:v?()=>{}:void 0,"aria-busy":v||void 0,onClick:x}):v?t.jsxs("div",{className:"phoneme-select-block__checking","aria-busy":"true",children:[t.jsx("div",{className:"phoneme-select-block__spinner"}),t.jsx("span",{className:"button-1 phoneme-select-block__checking-label",children:_??H("wordSearch.searchButton","\uAC80\uC0C9\uD558\uAE30")})]}):null]})})(),B]})}function O3({title:e,sections:n,selected:a,onSelect:r,collapsible:s,defaultCollapsed:i,collapsed:l,onCollapsedChange:u,headerSummary:c,headerAction:d,className:p}){const{t:m}=ye.useTranslation();return t.jsx(Bn,{className:p,title:e??m("wordSearch.filterTitle","\uB2E8\uC5B4 \uAC80\uC0C9 \uC124\uC815"),sections:n,selected:a,onSelect:r,collapsible:s,defaultCollapsed:i,collapsed:l,onCollapsedChange:u,headerSummary:c,headerAction:d,align:"inline"})}function H3({title:e,headerAction:n,sections:a,selected:r,onSelect:s,className:i}){const{t:l}=ye.useTranslation();return a.length===0?null:t.jsx(Bn,{className:i,title:e??l("training.filter.phonemeGroup",{defaultValue:"\uD6C8\uB828 \uC74C\uC808"}),headerAction:n,sections:a,selected:r,onSelect:s,align:"newline"})}function z3({title:e,mode:n,onModeChange:a,matchMode:r,onMatchModeChange:s,positionCount:i,onPositionCountChange:l,inputMode:u,onInputModeChange:c,className:d}){const{t:p}=ye.useTranslation(),m={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")},h=x=>p("wordPairs.count",{n:x}),g=[{label:m.searchMode,items:[m.include,m.pick,m.explicit],display:"segmented",labelAction:t.jsx(Ea,{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:m.phonemeOrder,items:[m.orderAny,m.orderMatch],display:"segmented",labelAction:t.jsx(Ea,{items:p("wordPairs.filter.phonemeOrderInfo",{returnObjects:!0})})},{label:m.count,items:[h(1),h(2)],display:"segmented"},{label:m.inputMode,items:[m.charInput,m.pronInput],display:"segmented",labelAction:t.jsx(Ea,{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.")]})}],y={[m.searchMode]:n==="explicit"?m.explicit:n==="pick"?m.pick:m.include,[m.phonemeOrder]:r==="ordered"?m.orderMatch:m.orderAny,[m.count]:h(i),[m.inputMode]:u==="phoneme"?m.pronInput:m.charInput},f=(x,b)=>{b===m.searchMode?a(x===m.explicit?"explicit":x===m.pick?"pick":"include"):b===m.phonemeOrder?s(x===m.orderMatch?"ordered":"unordered"):b===m.count?l(x===h(2)?2:1):b===m.inputMode&&c(x===m.pronInput?"phoneme":"word")};return t.jsx(Bn,{className:d,title:e??p("wordPairs.filter.searchOptionsTitle","\uB300\uB9BD \uC124\uC815"),sections:g,selected:y,onSelect:f,align:"inline"})}function V3(e){const{title:n,items:a,columns:r,gridTemplateColumns:s,mobileGridTemplateColumns:i,searchPlaceholder:l,searchFn:u,defaultSortKey:c,defaultSortAsc:d=!0,selectedId:p,selectedIds:m,onSelect:h,onClose:g,pageSizeOptions:y=[10,25,50,100],initialPageSize:f,emptyText:x,countLabel:b,topContent:C,className:_=""}=e,{t:v}=ye.useTranslation(),A=l??v("common.search","\uAC80\uC0C9"),w=x??v("common.emptyList","\uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4."),[N,k]=o.useState(""),[B,S]=o.useState(c??r[0]?.key??""),[E,H]=o.useState(d),[z,U]=o.useState(String(f??y[0]??10)),[T,L]=o.useState(1);o.useEffect(()=>{L(1)},[N,z]);const F=u!==null,Z=o.useCallback(($,Y)=>{if(!Y)return!0;const ae=Y.toLowerCase();return r.some(K=>{const ne=$[K.key];return ne==null?!1:String(ne).toLowerCase().includes(ae)})},[r]),J=u??Z,V=o.useMemo(()=>{const $=F?a.filter(Y=>J(Y,N)):a;return B?[...$].sort((Y,ae)=>{const K=Y[B],ne=ae[B];return K===ne?0:Xr(K,ne,E)}):$},[a,N,B,E,F,J]),P=Math.max(1,Math.ceil(V.length/Number(z)));T>P&&L(P);const W=Math.min(T,P),R=V.slice((W-1)*Number(z),W*Number(z)),D=o.useCallback($=>{B===$?H(Y=>!Y):(S($),H(!0)),L(1)},[B]),I=o.useMemo(()=>{if(typeof b=="function"){const $=V.length,Y=b($);if(typeof Y=="string"){const ae=Y.lastIndexOf(String($));if(ae>=0)return{prefix:Y.slice(0,ae),suffix:Y.slice(ae+String($).length)}}return{label:Y}}if(typeof b=="string"&&b.includes("{n}")){const[$,Y]=b.split("{n}");return{prefix:$,suffix:Y}}return{prefix:v("common.totalCountPrefix","\uCD1D "),suffix:v("common.totalCountSuffix","\uAC1C")}},[b,V.length,v]),j=o.useMemo(()=>r.map($=>({label:$.label,onClick:$.sortable!==!1?()=>D($.key):void 0,className:$.className,sortDir:$.sortable!==!1&&B===$.key?E?"asc":"desc":null})),[r,B,E,D]),O=o.useMemo(()=>y.map($=>({value:String($),label:v("common.pageSizeLabel",{n:$})})),[y,v]);return t.jsxs(Tn,{className:`popup-list ${_}`,title:n,onClose:g,children:[C,"label"in I&&t.jsx("p",{className:"toolbar__count body-1",children:I.label}),t.jsx(lo,{count:"label"in I?void 0:{value:V.length,prefix:I.prefix,suffix:I.suffix},search:F?{value:N,onChange:k,placeholder:A}:void 0,pageSize:{options:O,value:z,onChange:U},pagination:{page:W,total:P,onChange:L}}),t.jsx(bo,{size:"medium",gridTemplateColumns:s,mobileGridTemplateColumns:i,resizable:!0,fields:j,items:R,onRowClick:h,renderRow:$=>{const Y=m!=null?$.id!=null&&m.has($.id):p!=null&&$.id===p;return r.map(ae=>({content:ae.render?ae.render($):$[ae.key]??"",className:De(ae.className,Y&&"popup-list__row--selected")}))},empty:w})]})}function xc(e){const{title:n,message:a,topContent:r,details:s,children:i,confirmLabel:l,cancelLabel:u,hideCancel:c=!1,extraAction:d,confirmVariant:p="main",confirmDisabled:m=!1,onConfirm:h,closeOnConfirm:g=!0,onClose:y,inline:f,size:x="small",className:b,initialFocus:C="close"}=e,{t:_}=ye.useTranslation(),v=o.useRef(null);o.useEffect(()=>{if(f||C==="close")return;const S=v.current?.closest(".popup-panel"),E=Array.from(S?.querySelectorAll(".popup-footer--buttons button")??[]),H=C==="confirm"?E[E.length-1]:c?void 0:E[d?1:0];H&&!H.disabled&&H.focus()},[]);const A=o.useRef(!1),[w,N]=o.useState(!1),k=S=>{let E=!1;return{close:()=>{E=!0,S()},\uB2EB\uC558\uB098:()=>E}},B=async S=>{if(A.current)return;A.current=!0;const E=typeof document<"u"?document.activeElement:null;N(!0);let H=!1;try{H=await S()}catch(z){typeof console<"u"&&console.error(z)}finally{H||(A.current=!1,N(!1),requestAnimationFrame(()=>{const z=document.activeElement;(!z||z===document.body)&&E?.isConnected&&E.focus()}))}};return t.jsxs(Tn,{title:n,onClose:y,closeDisabled:w,inline:f,size:x,className:De("confirm-popup",r!=null&&"confirm-popup--has-top",b),buttons:[...d?[{label:d.label,variant:d.variant??"default",disabled:d.disabled||w,onClick:async({closeWithAnimation:S})=>{await B(async()=>{const E=k(S);await d.onClick(E.close);const H=d.closeOnClick??!0;return H&&S(),H||E.\uB2EB\uC558\uB098()})}}]:[],...c?[]:[{label:u??_("common.cancel","\uCDE8\uC18C"),variant:"default",disabled:w,onClick:({closeWithAnimation:S})=>S()}],{label:l??_("common.confirm","\uD655\uC778"),variant:p,disabled:m||w,onClick:async({closeWithAnimation:S})=>{await B(async()=>{const E=k(S);return await h(E.close),g&&S(),g||E.\uB2EB\uC558\uB098()})}}],children:[r!=null&&t.jsx("div",{className:"confirm-popup__top",children:r}),s&&s.length>0&&t.jsx(cr,{children:s.map((S,E)=>t.jsx(Mn,{label:S.label,children:t.jsx("span",{className:"panel-row__text body-2",children:S.value})},E))}),t.jsx("p",{ref:v,className:"body-2 confirm-popup__message",children:a}),i]})}function W3(e,n,a={}){const{t:r}=ye.useTranslation(),[s,i]=o.useState(!1),l=o.useRef(!1),u=o.useCallback(()=>{l.current=!0},[]),c=o.useCallback(()=>l.current?(l.current=!1,!0):e?(i(!0),!1):!0,[e]),d=s?t.jsx(xc,{title:a.title??r("common.discardConfirm.title","\uC785\uB825\uC744 \uCDE8\uC18C\uD560\uAE4C\uC694?"),message:a.message??r("common.discardConfirm.body","\uC800\uC7A5\uD558\uC9C0 \uC54A\uC73C\uBA74 \uC9C0\uAE08\uAE4C\uC9C0 \uC785\uB825\uD55C \uB0B4\uC6A9\uC774 \uC0AC\uB77C\uC9D1\uB2C8\uB2E4."),confirmLabel:a.confirmLabel??r("common.discardConfirm.confirm","\uC785\uB825 \uCDE8\uC18C"),confirmVariant:"danger",onConfirm:()=>{i(!1),n()},onClose:()=>i(!1)}):null;return{beforeClose:c,discardPopup:d,allowClose:u}}function q3({onApply:e,onCancel:n}){const{t:a}=ye.useTranslation(),[r,s]=o.useState(""),[i,l]=o.useState(!1),[u,c]=o.useState(null),d=o.useRef(null);o.useEffect(()=>{d.current?.focus()},[]);const p=o.useCallback(async g=>{const y=r.trim();if(y){l(!0),c(null);try{await e(y),g()}catch(f){c(ni(f)),l(!1),requestAnimationFrame(()=>d.current?.focus())}}},[r,e]),m=o.useCallback((g,y)=>{g.key==="Enter"&&!g.nativeEvent.isComposing&&p(y)},[p]),h=g=>{s(g.target.value),c(null)};return t.jsx(Tn,{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:g})=>g()},{label:a("coupons.applyButton","\uC801\uC6A9"),variant:"main",disabled:!r.trim()||i,onClick:({closeWithAnimation:g})=>{p(g)}}],children:({closeWithAnimation:g})=>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:h,onKeyDown:y=>m(y,g),disabled:i,autoComplete:"off",spellCheck:!1}),u&&t.jsx("p",{className:"coupon-input-popup__error caption-1",role:"alert",children:u})]})})}const _c=["var(--color-main)","var(--color-sub)"],U3=2e3;function G3(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 Yo({active:e=!1,count:n=40,duration:a=2e3,strength:r=1,onComplete:s,trigger:i=0}){const l=o.useMemo(()=>{const f=Math.floor(n/2),x=n-f,b=(C,_)=>Array.from({length:C}).map((v,A)=>{const w=6+Math.random()*12,N=Math.round(Math.min(18,w*Math.min(1.5,1+r*.4))),k=_c[Math.floor(Math.random()*_c.length)],B=Math.random()*300,S=(360+Math.random()*260)*r*1.2,E=(_==="left"?-95+Math.random()*40:-85-Math.random()*40)*Math.PI/180,H=Math.cos(E)*S,z=Math.sin(E)*S*1.35,U=Math.random()*720-360,T=(1200+Math.random()*3e3)*Math.min(1.6,1+r*.3),L=Math.random()>.7?"50%":"3px";return{id:`${_}-${A}`,side:_,size:N,color:k,delay:B,vx:H,vy:z,angularVel:U,life:T,borderRadius:L}});return[...b(f,"left"),...b(x,"right")]},[n,r]),u=o.useRef(null),c=o.useRef({}),d=o.useRef(null),p=o.useRef(s);o.useEffect(()=>{p.current=s},[s]);const m=o.useRef(null),h=o.useRef(null),g=()=>{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"&&h.current==null&&(h.current=g()),o.useEffect(()=>{if(!e)return;if(typeof window<"u"&&window.matchMedia?.("(prefers-reduced-motion: reduce)").matches){const P=setTimeout(()=>p.current?.(),0);return()=>clearTimeout(P)}const f=1200,x=performance.now(),b=h.current&&h.current!==document.body?h.current.getBoundingClientRect():null,C=Math.max(60,(window.innerHeight||800)*.05),_=P=>Math.max(40,(P||window.innerWidth)*.02),v=b?.width||window.innerWidth||375,A=b?.height||window.innerHeight||812,w=P=>{const W=[...P].sort((R,D)=>R-D);return W[Math.floor(W.length/2)]||1},N=w(l.map(P=>Math.abs(P.vy))),k=w(l.map(P=>Math.abs(P.vx))),B=Math.sqrt(2*f*(A*.72+C))/N,S=N*B/f,E=v*.5/(k*S),H=(P,W,R)=>Math.min(R,Math.max(W,P)),z=H(B,.8,2.4),U=H(E,.7,2.2),T=a>0?a/U3:1,L=l.map(P=>({...P,life:P.life*T,vx:P.vx*U,vy:P.vy*z,startTime:x+P.delay,ended:!1})),F=b?{x:b.left-_(b.width),y:b.top+b.height+C}:{x:-_(window.innerWidth),y:window.innerHeight+C},Z=b?{x:b.left+b.width+_(b.width),y:b.top+b.height+C}:{x:window.innerWidth+_(window.innerWidth),y:window.innerHeight+C},J=P=>{let W=!1;for(const R of L){const D=c.current[R.id];if(!D||!D)continue;if(P<R.startTime){D.style.display="none",W=!0;continue}if(!R._inited){const ue=R.side==="left"?F.x:Z.x,pe=R.side==="left"?F.y:Z.y;D.style.left=`${ue}px`,D.style.top=`${pe}px`,D.style.transform="translate3d(0px, 0px, 0)",D.style.display="block",D.style.zIndex="100000",typeof R.color=="string"&&R.color.startsWith("var(")&&(D.style.background=G3(D,R.color)??"#FF0060"),R._inited=!0}const I=(P-R.startTime)/1e3;if(I<0)continue;const j=R.life/1e3;if(I>=j){D.style.opacity="0",D.style.display="none",R.ended=!0;continue}W=!0;const O=R.side==="left"?F.x:Z.x,$=R.side==="left"?F.y:Z.y,Y=O+R.vx*I,ae=$+R.vy*I+.5*f*I*I,K=(R.angularVel||0)*I,ne=Y-O,be=ae-$;D.style.transform=`translate3d(${ne}px, ${be}px, 0) rotate(${K}deg)`,D.style.opacity=`${Math.max(0,1-I/j)}`}W?d.current=requestAnimationFrame(J):p.current?.()};d.current=requestAnimationFrame(J);const V=setTimeout(()=>{try{if((h.current?h.current.querySelectorAll(".confetti"):document.querySelectorAll(".confetti")).length===0&&!document.querySelector(".party-container")){const P=document.createElement("div");P.className="party-container",P.style.position="fixed",P.style.inset="0",P.style.pointerEvents="none",P.style.overflow="visible",P.style.zIndex="2147483647";for(const W of l){const R=document.createElement("span");R.className=`confetti confetti--${W.side}`,R.setAttribute("aria-hidden","true"),R.style.display="none",R.style.position="fixed",R.style.left="0px",R.style.top="0px",R.style.width=`${W.size}px`,R.style.height=`${Math.max(4,W.size*.6)}px`,R.style.background=W.color,R.style.borderRadius=W.borderRadius,R.style.transform="translate3d(0,0,0)",R.style.opacity="0",P.appendChild(R),c.current[W.id]=R}(document.body||h.current).appendChild(P),m.current=P}}catch{}},300);return()=>{if(d.current&&cancelAnimationFrame(d.current),clearTimeout(V),m.current){try{m.current.remove()}catch{}m.current=null}}},[e,a,i,l]),!e)return null;const y=t.jsx("div",{className:"party-container",ref:u,children:l.map(f=>t.jsx("span",{"aria-hidden":!0,ref:x=>{c.current[f.id]=x},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"?Xt.createPortal(y,h.current||document.body):y}const Zo=e=>typeof e=="number"&&Number.isFinite(e)&&e>0?e:void 0;function K3({trigger:e=0,active:n=!1}){const[a,r]=o.useState(null);o.useEffect(()=>{if(typeof window>"u")return;const i=l=>{const u=l.detail??{};r(c=>({n:(c?.n??0)+1,count:Zo(u.count),strength:Zo(u.strength),duration:Zo(u.duration)}))};return window.addEventListener("party:trigger",i),()=>window.removeEventListener("party:trigger",i)},[]);const s=o.useCallback(()=>r(null),[]);return t.jsxs(t.Fragment,{children:[t.jsx(Yo,{active:n,trigger:e}),a&&t.jsx(Yo,{active:!0,trigger:a.n,count:a.count,strength:a.strength,duration:a.duration,onComplete:s})]})}function Y3({title:e,sub:n,rightAction:a,titleAction:r,badge:s,badgeVariant:i="default",documentTitle:l,onBack:u,backLabel:c,wrap:d=!1}){const{t:p}=ye.useTranslation();Ug(typeof e=="string"?e:l??null);const m=c??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:[u&&t.jsx(de,{htmlType:"button",className:"page-title__back",size:48,type:"dot",icon:"chevron-left",iconSize:"large",useBorder:!1,iconColor:"var(--color-text-primary)",ariaLabel:m,showTooltipInfo:m,onClick:u}),t.jsx("h1",{className:"page-title__title h1",children:e}),s&&t.jsx("div",{className:"page-title__badge",children:t.jsx(yt,{label:s,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 Z3(e){return e??""}const wc=o.createContext({words:[],loading:!1});function X3(){return o.useContext(wc)}function J3({words:e,loading:n,error:a,statusMessage:r,localVersion:s,remoteVersion:i,progress:l,clearAndRefetch:u,checkRemoteVersion:c,children:d}){return t.jsx(wc.Provider,{value:{words:e,loading:n,error:a,statusMessage:r,localVersion:s,remoteVersion:i,progress:l,clearAndRefetch:u,checkRemoteVersion:c},children:d})}function Q3({items:e,actions:n,columns:a,flat:r=!1,className:s,style:i}){const l=a??e.length;return t.jsx("section",{className:De("summary-strip",r&&"summary-strip--flat",s),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((u,c)=>t.jsxs("div",{className:"summary-strip__item",children:[t.jsx("p",{className:"summary-strip__label caption-1",children:u.label}),t.jsx("p",{className:"summary-strip__value body-3b",title:typeof u.value=="string"||typeof u.value=="number"?String(u.value):void 0,children:u.value})]},c))}),n&&t.jsx("div",{className:"summary-strip__actions",children:n})]})})}const e7=(e,n)=>`${e} / ${n}`;function t7({blocks:e,sectionTitles:n,logo:a,footer:r,pageLabel:s=e7,pageWidth:i,pageHeight:l,margin:u,className:c,style:d}){const{t:p}=ye.useTranslation(),m=o.useRef(null),h=o.useRef(null),g=o.useRef(null),y=o.useRef(null),[f,x]=o.useState(null),[b,C]=o.useState(!1);o.useEffect(()=>{const T=m.current;if(!T)return;const L=()=>C(T.scrollWidth>T.clientWidth+1);if(L(),typeof ResizeObserver>"u")return;const F=new ResizeObserver(L);return F.observe(T),()=>F.disconnect()},[f]);const _=e.map(T=>`${T.id}\0${T.section??""}\0${T.group??""}`).join(""),v=f&&f.shape===_?f.pages:null,[A,w]=o.useState(0);o.useEffect(()=>{const T=y.current;if(!T||typeof ResizeObserver>"u")return;const L=new ResizeObserver(()=>w(T.offsetHeight));return L.observe(T),()=>L.disconnect()},[]);const[N,k]=o.useState(0);o.useEffect(()=>{const T=h.current;if(!T||typeof ResizeObserver>"u")return;let L=null;const F=typeof requestAnimationFrame=="function"?V=>requestAnimationFrame(V):V=>setTimeout(V,16),Z=typeof cancelAnimationFrame=="function"?cancelAnimationFrame:V=>clearTimeout(V),J=new ResizeObserver(()=>{L==null&&(L=F(()=>{L=null,k(V=>V+1)}))});return Array.from(T.children).forEach(V=>J.observe(V)),()=>{J.disconnect(),L!=null&&Z(L)}},[_]),o.useLayoutEffect(()=>{const T=h.current,L=y.current;if(!T||!L)return;const F=j=>j.getBoundingClientRect().height||j.offsetHeight,Z=new Map;g.current?.querySelectorAll("[data-chrome-section]").forEach(j=>{Z.set(j.dataset.chromeSection??"",F(j))});const J=j=>F(L)-(Z.get(j??"")??0),V=Array.from(T.children).map(j=>F(j)),P=[];e.forEach((j,O)=>{const $=P[P.length-1],Y=$?e[$[0]]:void 0;Y&&j.group!=null&&Y.group===j.group&&Y.section===j.section?$.push(O):P.push([O])});const W=[];let R=[],D=0;const I=()=>{R.length&&W.push(R),R=[],D=0};P.forEach(j=>{const O=j.reduce((Y,ae)=>Y+V[ae],0),$=J(e[j[0]].section);R.length&&e[R[0]].section!==e[j[0]].section&&I(),O>$?j.forEach(Y=>{R.length&&D+V[Y]>$+.01&&I(),R.push(Y),D+=V[Y]}):(R.length&&D+O>$+.01&&I(),j.forEach(Y=>R.push(Y)),D+=O)}),I(),x(j=>j&&j.shape===_&&JSON.stringify(j.pages)===JSON.stringify(W)?j:{shape:_,pages:W})},[_,A,i,l,u,N]);const B=ro,S=B,E=r??t.jsxs(t.Fragment,{children:[t.jsx("img",{src:S,alt:"IHAB",className:"report-doc__logo"}),"\xA9 IHAB, Inc. All rights reserved."]}),H=(T,L,F)=>({header:t.jsxs("div",{className:"report-doc__header",children:[t.jsx("h2",{className:"report-doc__title h3b",children:F!=null&&n?.[F]||null}),a]}),footer:t.jsxs("div",{className:"report-doc__footer caption-1",children:[t.jsx("span",{className:"report-doc__footer-left",children:E}),t.jsx("span",{className:"report-doc__page-no",children:s(T,L)})]})}),z=Array.from(new Set(e.map(T=>T.section??""))),U={...i?{"--report-page-w":i}:null,...l?{"--report-page-h":l}:null,...u?{"--report-margin":u}:null,...d};return t.jsxs("div",{ref:m,className:De("report-doc",c),style:U,tabIndex:b?0:void 0,role:b?"group":void 0,"aria-label":b?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:y,className:"report-doc__ruler"}),t.jsx("div",{ref:g,children:z.map(T=>{const L=H(1,1,T||void 0);return t.jsxs("div",{"data-chrome-section":T,children:[L.header,L.footer]},T)})}),t.jsx("div",{ref:h,className:"report-doc__measure-blocks",children:e.map(T=>t.jsx("div",{children:T.content},T.id))})]}),v&&t.jsx("div",{className:"report-doc__pages",children:v.map((T,L)=>{const{header:F,footer:Z}=H(L+1,v.length,e[T[0]].section);return t.jsxs("section",{className:"report-doc__page",children:[F,T.map(J=>t.jsx("div",{children:e[J].content},e[J].id)),Z]},L)})})]})}function n7({title:e,fields:n,columns:a=4,className:r,style:s}){return t.jsxs("div",{className:De("report-info",r),style:{"--report-info-cols":String(a),...s},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))})]})}const Kn=new Map;let mr=null;const a7=12;function r7(e){for(let n=e.parentElement;n&&n!==document.body;n=n.parentElement){const a=window.getComputedStyle(n);if(a.transform&&a.transform!=="none"||a.filter&&a.filter!=="none"||a.perspective&&a.perspective!=="none"||/paint|layout|strict|content/.test(a.contain||""))return n}return document}function hr(){const e=new Map;for(const n of Kn.keys()){if(!n.isConnected)continue;const a=r7(n),r=e.get(a)??[];r.push(n),e.set(a,r)}for(const n of e.values()){n.sort((r,s)=>r.compareDocumentPosition(s)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1);let a=0;for(const r of n){a>0?r.style.setProperty("--update-alert-stack-offset",`${a}px`):r.style.removeProperty("--update-alert-stack-offset");const s=r.getBoundingClientRect().height;s>0&&(a+=s+a7)}}}function o7(e){return typeof window>"u"?()=>{}:(Kn.set(e,(Kn.get(e)??0)+1),Kn.get(e)===1&&typeof ResizeObserver<"u"&&(mr??(mr=new ResizeObserver(()=>hr())),mr.observe(e)),hr(),()=>{const n=(Kn.get(e)??1)-1;if(n>0){Kn.set(e,n),hr();return}Kn.delete(e),mr?.unobserve(e),e.style.removeProperty("--update-alert-stack-offset"),hr()})}function s7({title:e,message:n,actionLabel:a,onAction:r,icon:s,onClose:i,className:l=""}){const{t:u}=ye.useTranslation(),c=a??u("common.update","\uC5C5\uB370\uC774\uD2B8"),d=o.useRef(null),p=o.useRef(!1);return o.useLayoutEffect(()=>{const m=d.current,h=m?.parentElement?.closest(".update-alert-stack")??m,g=h?o7(h):null;return()=>{g?.(),p.current&&m&&m.contains(document.activeElement)&&Ua(m)}},[]),t.jsxs("div",{ref:d,className:De("update-alert",l),role:"alert",children:[i&&t.jsx("button",{type:"button",className:"update-alert__close",onClick:()=>{p.current=!0,i()},"aria-label":u("common.close","\uB2EB\uAE30"),children:"\xD7"}),t.jsxs("div",{className:"update-alert__top",children:[t.jsx("div",{className:"update-alert__icon",children:s??t.jsx(us,{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(de,{htmlType:"button",size:32,variant:"main",shape:"pill",className:"update-alert__action",onClick:r,children:c})]})}function i7({title:e,titleLevel:n=3,description:a,topActions:r,children:s,footerLeft:i,footerRight:l,onClick:u,draggable:c,onDragStart:d,onDragEnd:p,className:m}){const h=n?`h${n}`:"div",g=i!=null||l!=null,y=s!=null&&s!==!1,f=o.useCallback(x=>{u&&x.target===x.currentTarget&&(x.key==="Enter"||x.key===" ")&&(x.preventDefault(),u())},[u]);return t.jsxs("div",{className:De("training-card",u?"training-card--clickable":"",m),onClick:u,onKeyDown:u?f:void 0,role:u?"button":void 0,tabIndex:u?0:void 0,draggable:c,onDragStart:d,onDragEnd:p,children:[t.jsxs("div",{className:"training-card__header",children:[t.jsxs("div",{className:"training-card__title-row",children:[typeof e=="string"?t.jsx(h,{className:"training-card__title h4",children:e}):e,r!=null&&t.jsx("div",{className:"training-card__top-actions",onClick:x=>x.stopPropagation(),children:r})]}),a!=null?typeof a=="string"?t.jsx("p",{className:"training-card__description body-3",children:a}):a:t.jsx("p",{className:"training-card__description body-3","aria-hidden":"true",children:" "})]}),y&&t.jsx("div",{className:"training-card__body",children:s}),g&&t.jsxs("div",{className:"training-card__footer",children:[i!=null&&t.jsx("div",{className:"training-card__footer-left",children:i}),l!=null&&t.jsx("div",{className:"training-card__meta",children:l})]})]})}function l7({title:e,titleLevel:n=3,count:a,collapsed:r=!1,onToggle:s,sort:i,actions:l,empty:u=!1,emptyContent:c,dragOver:d=!1,onDragOver:p,onDragLeave:m,onDrop:h,children:g,className:y}){const{t:f}=ye.useTranslation(),x=o.useId(),b=n?`h${n}`:"span",C=s!=null,_=De("training-card-group",d&&"training-card-group--dragover",r&&"training-card-group--collapsed",C&&"training-card-group--collapsible",y);return t.jsxs("div",{className:_,onDragOver:p,onDragLeave:m,onDrop:h,role:typeof e=="string"&&e?"group":void 0,"aria-labelledby":typeof e=="string"&&e?x:void 0,children:[t.jsxs("header",{className:"training-card-group__header",children:[C&&t.jsx(de,{htmlType:"button",size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:r?"chevron-right":"chevron-down",ariaLabel:r?f("common.expand","\uD3BC\uCE58\uAE30"):f("common.collapse","\uC811\uAE30"),className:"training-card-group__chevron","aria-expanded":!r,onClick:s}),typeof e=="string"?t.jsx(b,{id:x,className:"training-card-group__title h5b",children:e}):e,a!==void 0&&t.jsx("span",{className:"training-card-group__count body-3b",children:a}),(i||l!=null)&&t.jsxs("span",{className:"training-card-group__actions",onClick:v=>v.stopPropagation(),children:[i&&t.jsx(sn,{size:40,options:i.options,value:i.value,placeholder:i.placeholder,onChange:i.onChange}),l]})]}),!r&&(u?t.jsx("div",{className:"training-card-group__empty body-3",children:c}):t.jsx("div",{className:"training-card-group__grid",children:g}))]})}const u7="speechear:saved_word_tables";function c7(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 d7(){try{const e=localStorage.getItem(u7);if(!e)return[];const n=JSON.parse(e);return Array.isArray(n)?n.filter(c7):[]}catch{return[]}}function Ac(e){return{label:e.word,subLabel:e.pronunciation,colloquialLabel:e.colloquialPronunciation,homonum:e.homonum,grade:e.grade,syllables:[...e.word].length,pos:e.pos,wordType:e.wordType}}function Xo(e){return e.map(n=>n.homonum!=null?`${n.word}#${n.homonum}`:n.word).join("|")}function p7(e){const n=new Set;return e.map(a=>{let r=a.id;for(let s=2;n.has(r);s++)r=`${a.id}~${s}`;return n.add(r),r===a.id?a:{...a,id:r}})}function m7({title:e,titleIcon:n,disc:a,filterTitle:r,filterCollapsible:s,filterDefaultCollapsed:i,filterCollapsed:l,onFilterCollapsedChange:u,filterHeaderSummary:c,brand:d,code:p,items:m,onSaveComplete:h,onLoad:g,onRemoveItem:y,onReset:f,resetLabel:x,saveButtonLabel:b,secondarySaveButtonLabel:C,onReorder:_,showCellCount:v,onAddItem:A,className:w,renderSavePopup:N,renderWordSearch:k,hideControls:B,saveOnly:S,tableName:E,nameValue:H,onNameChange:z,descriptionValue:U,onDescriptionChange:T,namePlaceholder:L,descriptionPlaceholder:F,existingNames:Z,editingName:J,onCancel:V,initialItemsPerPage:P,renderCellAction:W,actionsLeftExtra:R}){const{t:D}=ye.useTranslation(),I=x??D("wordPrint.clearAllSelection","\uBAA8\uB450 \uC120\uD0DD \uD574\uC81C"),j=m===void 0,O=!!z,[$,Y]=o.useState([]),ae=(H??"").trim(),K=ae||(L??"").trim(),ne=(U??"").trim()||(F??"").trim(),be=(Z??[]).map(Ne=>Ne.trim().toLowerCase()),ue=[J?.trim().toLowerCase(),...$].filter(Ne=>!!Ne),pe=[...be];for(const Ne of ue){const ze=pe.indexOf(Ne);ze!==-1&&pe.splice(ze,1)}const q=ae!==""&&pe.includes(ae.toLowerCase()),[ee,ie]=o.useState(Array(4).fill(null)),[ve,me]=o.useState(4),[oe,fe]=o.useState(null),ge=ee.slice(0,ve),Ee=!!d?.show,[Ie,Le]=o.useState(!0),[Je,et]=o.useState(!0),Ve=d&&{...d,top:Ie,bottom:Je},[He,it]=o.useState("landscape"),[Qe,Ye]=o.useState(["\uC774\uBBF8\uC9C0","\uB2E8\uC5B4","\uD45C\uC900 \uBC1C\uC74C"]),[re,Re]=o.useState("\uD45C\uC2DC"),[te,we]=o.useState(!0),[We,Be]=o.useState(!0),Se=o.useRef(null),he=o.useRef([]),[Me,nt]=o.useState(P==="all"?Number.POSITIVE_INFINITY:P??8),[_t,kt]=o.useState("right"),[dt,Ze]=o.useState(!1),[qe,$e]=o.useState(!1),{toastMessage:Xe,toastType:Fe,showWarning:st,clearToast:Ge}=ll("warning"),ft=o.useCallback(()=>fe(null),[fe]);A&&!j&&!v&&pn("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[jt,Bt]=o.useState(()=>Math.max(m?.length??1,1)),mt=j?ve:v?Math.max(jt,m?.length??1,1):Math.max(m?.length??0,1),{width:lt,height:Oe}=ia[He],at=!j&&!v,ht=m?.length??0,Ot=Math.min(Me,Math.max(ht,1)),tt=at?Ot:mt,Tt=at?hu(m??[],tt):null,Yt=!!Tt&&Tt.length>1,Mt=j?ge.some(Ne=>Ne!==null&&Ne.length>1):(m??[]).some(Ne=>(Ne.words??[]).length>1),ln=E?.trim()||`${ci(va())} ${Mt?D("wordTable.printFileNamePair","\uB300\uB9BD\uC30D\uD45C"):D("wordTable.printFileNameSingle","\uB2E8\uC5B4\uD45C")}`,un=o.useCallback(()=>Yt?he.current.filter(Ne=>Ne!==null):Se.current?[Se.current]:[],[Yt]),{print:cn,openNewWindow:Rn,downloadHtml:dn}=Do({getElements:un,paperW:lt,paperH:Oe,fileName:ln,onPopupBlocked:()=>{st(D("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."))}}),Pn=Ne=>{me(Ne),ie(ze=>ze.length>=Ne?ze:[...ze,...Array(Ne-ze.length).fill(null)]),fe(null)},Nn=Ne=>{ie(ze=>{const xt=[...ze];return xt[Ne]=null,xt}),oe===Ne&&fe(null)},Nt=Ne=>{if(oe===null)return;const ze=oe;ie(zt=>{const Vt=[...zt];return Vt[ze]=Ne.length>0?Ne:null,Vt});const xt=ge.findIndex((zt,Vt)=>Vt>ze&&zt===null);fe(xt!==-1?xt:null)},Cn=j?ge.some(Ne=>Ne?.some(ze=>!!ze.colloquialPronunciation)):(m??[]).some(Ne=>(Ne.words??[]).some(ze=>!!ze.colloquialLabel)),Ht=o.useMemo(()=>Xn()?j?ee.slice(0,ve).flatMap(Ne=>(Ne??[]).map(ze=>[ze.word,ze.homonum])):(m??[]).flatMap(Ne=>(Ne.words??[]).map(ze=>[ze.label,ze.homonum])):[],[j,ee,ve,m]),[Zt,fn]=o.useState(!1);o.useEffect(()=>{if(Ht.length===0)return;let Ne=!1;return Promise.all(Ht.map(([ze,xt])=>Js(ze,xt))).then(ze=>{Ne||fn(ze.some(Boolean))},()=>{}),()=>{Ne=!0}},[Ht]);const en=Ht.length>0&&Zt,gn=o.useMemo(()=>[...j||v?[{label:D("wordTable.filter.columns","\uCE78 \uC218"),items:Ky.map(Ne=>({value:`${Ne}\uCE78`,displayLabel:D("wordTable.filter.column",{count:Ne})})),display:"segmented"}]:[],...at&&(m?.length??0)>0?[ju(D,{hasPairs:Mt,itemCount:ht})]:[],...Yt?[Yy(D)]:[]],[D,j,v,at,m?.length,Mt,ht,Yt]),In={...j||v?{[D("wordTable.filter.columns","\uCE78 \uC218")]:`${mt}\uCE78`}:{},...at&&(m?.length??0)>0?{[D(Mt?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord")]:`${Ot}\uAC1C`}:{},...Yt?{[D("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")]:Mu[_t]}:{}},bn=(Ne,ze)=>{ze===D("wordTable.filter.columns","\uCE78 \uC218")?j?Pn(parseInt(Ne)):Bt(parseInt(Ne)):ze===D(Mt?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord")?nt(Tu(parseInt(Ne),ht)):ze===D("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")&&kt(Lu(Ne))},se=j?p7(ge.filter(Ne=>Ne!==null&&Ne.length>0).map(Ne=>({id:Xo(Ne),words:Ne.map(Ac)}))):m??[],xe=()=>{j&&ie(Ne=>Ne.length>ve?Ne.slice(0,ve):Ne)},G=(Ne=!1)=>{if($e(Ne),O&&h){const ze=K.trim().toLowerCase();ze&&Y(xt=>xt.includes(ze)?xt:[...xt,ze]),h(K,se,ne||void 0,Ne),xe();return}if(S&&h){h("",se,void 0,Ne),xe();return}if(h){Ze(!0);return}dn()},[le,ce]=o.useState(!1),[_e,Ae]=o.useState(""),je=_e.trim(),rt=je!==""&&be.includes(je.toLowerCase()),gt=()=>{Ae(K?D("wordTable.save.copyName",{name:K,defaultValue:"{{name}} (\uBCF5\uC0AC)"}):""),ce(!0)},ut=()=>{!je||rt||!h||(h(je,se,ne||void 0,!0),xe(),ce(!1))},vt=se.length===0,Rt=vt||O&&(K===""||q),Lt=()=>{if(vt){st(D("wordTable.emptyItems","\uB2E8\uC5B4\uB97C 1\uAC1C \uC774\uC0C1 \uCD94\uAC00\uD574\uC8FC\uC138\uC694."));return}if(O&&K===""){st(D("wordTable.save.nameRequired","\uD45C \uC774\uB984\uC744 \uC785\uB825\uD574 \uC8FC\uC138\uC694."));return}O&&q&&st(D("wordTable.save.duplicateName","\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4."))},nn=t.jsx(la,{items:se,orientation:He,contentTypes:Qe,cutLine:re,showOutline:te,showDivLine:We,count:mt});return t.jsxs(t.Fragment,{children:[t.jsxs(sa,{type:"page",icon:n,title:e,disc:a,className:De("word-table-block",w),children:[le&&t.jsx(Tn,{size:"small",title:C??D("wordTable.saveAsNewButton","\uB2E4\uB978 \uC774\uB984\uC73C\uB85C \uC800\uC7A5"),onClose:()=>ce(!1),footer:({closeWithAnimation:Ne})=>t.jsxs(t.Fragment,{children:[t.jsx(de,{htmlType:"button",size:48,type:"bar",label:D("common.cancel","\uCDE8\uC18C"),onClick:Ne}),t.jsx(de,{htmlType:"button",size:48,type:"bar",variant:"main",label:D("common.save","\uC800\uC7A5"),disabled:!je||rt,onClick:ut})]}),children:t.jsx(Un,{label:D("wordTable.save.nameLabel","\uC774\uB984"),value:_e,onChange:Ae,placeholder:D("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:ut,error:rt?D("wordTable.save.duplicateName","\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4."):void 0})}),dt&&h&&N?.({defaultName:typeof e=="string"?e:D("wordTable.defaultName","\uB2E8\uC5B4 \uD45C"),preview:nn,previewW:lt,previewH:Oe,items:se,existingNames:d7().map(Ne=>Ne.name),saveAsNew:qe,onSave:(Ne,ze)=>{h(Ne,se,ze,qe),xe(),Ze(!1)},onCancel:()=>Ze(!1)}),(j||A)&&oe!==null&&k?.({cellIndex:oe,onConfirm:j?Nt:Ne=>{if(A){const ze=Ne[0];if(ze){const xt=new Set((m??[]).map(Vt=>Vt.id));let zt=Xo([ze]);for(let Vt=2;xt.has(zt);Vt++)zt=`${Xo([ze])}~${Vt}`;A({id:zt,words:[Ac(ze)]})}}fe(null)},onClose:ft}),!B&&t.jsx(ko,{title:r,collapsible:s,defaultCollapsed:i,collapsed:l,onCollapsedChange:u,headerSummary:c,hasImage:en,hasColloquial:Cn,contentTypes:Qe,orientation:He,showOutline:te,cutLine:re,showDivLine:We,setters:{setContentTypes:Ye,setOrientation:it,setShowOutline:we,setCutLine:Re,setShowDivLine:Be,setShowTopInfo:Le,setShowBottomInfo:et},showCutLine:(at?tt:mt)>1,showDivLine2:Mt,middleSections:gn,extraSelected:In,onExtraSelect:bn,showPaperBands:Ee,showTopInfo:Ie,showBottomInfo:Je}),Yt&&Tt?t.jsx("div",{className:"word-table-block__pages",children:Tt.map((Ne,ze)=>t.jsx(la,{orientation:He,contentTypes:Qe,cutLine:re,showOutline:te,showDivLine:We,count:tt,items:Ne,onRemoveItem:y,onReorder:_&&((xt,zt)=>_(xt+ze*tt,zt+ze*tt)),renderCellAction:W&&((xt,zt)=>W(xt+ze*tt,zt)),brand:Ve,code:p,contentRef:xt=>{he.current[ze]=xt},pageNumber:{current:ze+1,total:Tt.length},pageNumberPosition:_t},ze))}):t.jsx(la,{orientation:He,contentTypes:Qe,cutLine:re,showOutline:te,showDivLine:We,count:mt,items:j?void 0:m??[],editCells:j?ge:void 0,activeCell:oe,onActivateCell:j||A?fe:void 0,onRemoveCell:j?Nn:void 0,onRemoveItem:j?void 0:y,onReorder:j?void 0:_,renderCellAction:j?void 0:W,brand:Ve,code:p,showFillerAdd:!!A,contentRef:Se}),O&&!B&&t.jsxs(cr,{size:"medium",labelWidth:64,useBorder:!1,useRowBorder:!1,className:"word-table-block__meta",children:[t.jsx(Mn,{variant:"custom",label:D("wordTable.save.nameLabel","\uC774\uB984"),required:!0,align:"vertical",useFullWidth:!0,children:t.jsx(Un,{required:!0,value:H??"",onChange:z,placeholder:L?L+D("wordTable.save.autoFillHint"," (Tab \uB610\uB294 space \uC785\uB825\uC2DC \uC790\uB3D9 \uC785\uB825)"):D("wordTable.save.placeholder","\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC81C\uBAA9\uC744 \uC785\uB825\uD558\uC138\uC694."),ariaLabel:D("wordTable.save.nameLabel","\uC774\uB984"),maxLength:40,size:48,fullWidth:!0,error:q?D("wordTable.save.duplicateName","\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4."):void 0,onKeyDown:Ne=>{(Ne.key==="Tab"&&!Ne.shiftKey||Ne.key===" ")&&!(H??"").trim()&&(L??"").trim()&&(Ne.preventDefault(),z?.(L??""))}})}),t.jsx(Mn,{variant:"custom",label:D("wordTable.save.descriptionLabel","\uC124\uBA85"),align:"vertical",useFullWidth:!0,children:t.jsx(Un,{value:U??"",onChange:T,placeholder:F?F+D("wordTable.save.autoFillHint"," (Tab \uB610\uB294 space \uC785\uB825\uC2DC \uC790\uB3D9 \uC785\uB825)"):D("wordTable.save.descriptionPlaceholder","\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC124\uBA85\uC744 \uC785\uB825\uD558\uC138\uC694."),ariaLabel:D("wordTable.save.descriptionLabel","\uC124\uBA85"),maxLength:200,multiline:!0,rows:2,fullWidth:!0,onKeyDown:Ne=>{(Ne.key==="Tab"&&!Ne.shiftKey||Ne.key===" ")&&!(U??"").trim()&&(F??"").trim()&&(Ne.preventDefault(),T?.(F??""))}})})]})]}),!B&&t.jsxs("div",{className:"word-table-block__actions",children:[t.jsxs("div",{className:"word-table-block__actions-left",children:[!S&&f&&t.jsx(de,{htmlType:"button",size:40,type:"bar",label:I,onClick:f}),!S&&R,!S&&g&&t.jsx(de,{htmlType:"button",size:40,type:"bar",label:D("wordTable.load","\uBD88\uB7EC\uC624\uAE30"),onClick:g}),!S&&t.jsx(de,{htmlType:"button",size:40,type:"bar",label:D("wordTable.openNewWindow","\uC0C8 \uCC3D\uC73C\uB85C \uBCF4\uAE30"),onClick:Rn})]}),t.jsxs("div",{className:"word-table-block__actions-right",children:[V&&t.jsx(de,{htmlType:"button",size:"56",type:"bar",label:D("common.cancel","\uCDE8\uC18C"),onClick:V}),!S&&t.jsx(de,{htmlType:"button",size:"56",type:"bar",label:D("wordTable.print","\uC778\uC1C4\uD558\uAE30"),onClick:cn}),C&&t.jsx(de,{htmlType:"button",size:"56",type:"bar",label:C,onClick:()=>O?gt():G(!0),disabled:vt,onDisabledClick:()=>{st(D("wordTable.emptyItems","\uB2E8\uC5B4\uB97C 1\uAC1C \uC774\uC0C1 \uCD94\uAC00\uD574\uC8FC\uC138\uC694."))}}),t.jsx(de,{htmlType:"button",size:"56",type:"bar",variant:"main",label:b??D("wordTable.saveButton","\uC800\uC7A5\uD558\uAE30"),onClick:()=>G(!1),disabled:Rt,onDisabledClick:Lt})]})]}),t.jsx(ra,{message:Xe,type:Fe,onClose:Ge})]})}function kc({items:e,className:n}){const a=e.length,r=a<=3?1:2,s=Math.ceil(a/r)||1,i=r*s;return t.jsx("div",{className:De("word-table-thumb",n),style:{gridTemplateColumns:`repeat(${r}, 1fr)`},children:Array.from({length:i},(l,u)=>{const c=e[u];return c?t.jsx("div",{className:"word-table-thumb__cell",children:(c.words?.length?c.words:[{label:c.id}]).map((d,p)=>t.jsxs(o.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))},u):t.jsx("div",{className:"word-table-thumb__cell word-table-thumb__cell--empty"},u)})})}function h7({items:e,name:n,description:a,createdAt:r,code:s,published:i,publishedLabel:l,shared:u,sharedLabel:c,isNew:d,publisherName:p,publishedAt:m,likeCount:h,downloadCount:g,onPublisherClick:y,selected:f,onClick:x,onMore:b,titleNode:C,className:_}){const{t:v}=ye.useTranslation(),A=C!=null,w=p!=null||m!=null||h!=null||g!=null,N=k=>{k.target===k.currentTarget&&!A&&(k.key==="Enter"||k.key===" ")&&(k.preventDefault(),x?.())};return t.jsxs("div",{className:De("word-table-button",f?"word-table-button--selected":"",w?"":"word-table-button--no-footer",_),role:"button",tabIndex:0,"aria-label":s?`${n} (${s})`:n,onClick:A?void 0:x,onKeyDown:N,children:[d&&t.jsx("span",{className:"word-table-button__new-dot","aria-label":v("myWordTable.newBadge","\uC0C8\uB85C \uB9CC\uB4E0 \uD45C")}),t.jsx(kc,{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:[C??t.jsx("div",{className:"word-table-button__title h4",children:n}),a&&t.jsx("div",{className:"word-table-button__desc body-3",children:a})]}),b&&!A&&t.jsx(de,{htmlType:"button",className:"word-table-button__more",size:32,type:"dot",variant:"transparent-gray",useBorder:!1,icon:"ellipsis",ariaLabel:v("common.moreFor",{name:n}),onClick:k=>{k.stopPropagation(),b(k)}})]}),(s||r||i||u)&&t.jsxs("div",{className:"word-table-button__meta-row",children:[t.jsx("span",{className:"word-table-button__meta-left",children:t.jsx("span",{className:"word-table-button__meta caption-1",children:r?ui(r,v):""})}),t.jsxs("span",{className:"word-table-button__meta-right",children:[(i||u)&&t.jsxs("span",{className:"word-table-button__badges",children:[i&&t.jsx(yt,{className:"word-table-button__badge",size:"small",variant:"main",fill:"soft",iconLeft:"book-marked",label:l??v("myWordTable.publishedBadge","\uBC1C\uD589\uB428")}),u&&t.jsx(yt,{className:"word-table-button__badge",size:"small",fill:"soft",iconLeft:"link",label:c??v("myWordTable.sharedBadge","\uACF5\uC720 \uC911")})]}),s&&t.jsx("span",{className:"word-table-button__code caption-1",children:s})]})]}),w&&t.jsxs("div",{className:"word-table-button__footer",children:[t.jsxs("span",{className:"word-table-button__store-by",children:[p&&t.jsx("button",{className:"training-card__publisher body-4",type:"button",onClick:k=>{k.stopPropagation(),y?.()},children:p}),m&&t.jsx("span",{className:"training-card__date body-4",children:ui(m,v)})]}),t.jsxs("span",{className:"word-table-button__store-stats",children:[h!=null&&t.jsx(yt,{size:"small",fill:"soft",variant:"like",iconLeft:"heart",label:String(h),"aria-label":v("common.likeCount",{count:h,defaultValue:`\uC88B\uC544\uC694 ${h}`})}),g!=null&&t.jsx(yt,{size:"small",fill:"soft",variant:"main",iconLeft:"download",label:String(g),"aria-label":v("common.downloadCount",{count:g,defaultValue:`\uAC00\uC838\uAC04 \uC218 ${g}`})})]})]})]})}/**
1048
+ `).map((l,u,c)=>t.jsxs(o.Fragment,{children:[l,u<c.length-1&&t.jsx("br",{})]},u))})}),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:ro,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 ",s]})]})]})]}),t.jsx("div",{className:"site-footer__copyright footer-copyright caption-1",children:"\xA9 IHAB, Inc. All rights reserved."})]})})}function S5({logo:e,logoAlt:n="",logoHref:a,links:r=[],actions:s,className:i,containerClassName:l,renderLink:u,menuLabel:c}){const{t:d}=ye.useTranslation(),p=c??{open:d("header.menuOpen","\uBA54\uB274 \uC5F4\uAE30"),close:d("header.menuClose","\uBA54\uB274 \uB2EB\uAE30")},[m,h]=o.useState(!1),g=o.useId(),y=o.useRef(null);o.useEffect(()=>{if(!m)return;const b=zn(()=>{const v=document.getElementById(g);v&&v.contains(document.activeElement)&&y.current?.focus(),h(!1)}),C=typeof window<"u"&&window.matchMedia?window.matchMedia("(min-width: 961px)"):null,_=v=>{v.matches&&h(!1)};return C&&(C.matches&&h(!1),C.addEventListener?.("change",_)),()=>{b(),C?.removeEventListener?.("change",_)}},[m,g]);const f=l?`${l} landing-header__inner`:"landing-header__inner",x=(b,C)=>u?u(b,{onClick:C}):t.jsx("a",{href:b.href,onClick:C,"aria-current":b.current?"page":void 0,children:b.label});return t.jsxs("header",{className:i?`landing-header ${i}`:"landing-header",children:[t.jsxs("div",{className:f,children:[e!=null&&(()=>{const b=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:b}):t.jsx("div",{className:"landing-header__brand",children:b})})(),r.length>0&&t.jsx("nav",{className:"landing-header__links",children:r.map((b,C)=>t.jsx("span",{children:x(b)},`${C}:${b.href}`))}),t.jsxs("div",{className:"landing-header__actions",children:[s,r.length>0&&t.jsx("button",{ref:y,type:"button",onClick:()=>h(b=>!b),"aria-expanded":m,"aria-controls":g,"aria-label":m?p.close:p.open,className:m?"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:g,hidden:!m,className:"landing-header__drawer",children:t.jsx("div",{className:l??void 0,children:r.map((b,C)=>t.jsx("span",{className:"landing-header__drawer-item",children:x(b,()=>h(!1))},`${C}:${b.href}`))})})]})}function j5({children:e,action:n,onClick:a,className:r}){const s=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:s,onClick:a,...iu(a),children:[t.jsx("div",{className:"bottom-sticky__content",children:e}),n]})})}const ca=9,T5=e=>Math.round(Math.min(ca,Math.max(0,e))/ca*100),M5=e=>e/100*ca,La=2,zu=.1,L5=e=>Math.min(La,Math.max(0,e)),$5=.1,R5=e=>Math.round(e*1e6)/1e6;function $a(e){const{noiseRatio:n}=e;if(typeof n=="number"&&Number.isFinite(n))return L5(n);const a=Math.min(ca,Math.max(0,Number(e.level)||0))/ca,r=Number(e.mainVolume);return r>0?a>0?R5(Math.min(La,Math.max($5,a/r))):0:1}const Vu=e=>Math.min(1,Math.max(0,Number(e.mainVolume)||0));function Wu(e){return Vu(e)}function jo(e){return Vu(e)*$a(e)}function To(e,n=Us()){const a=Number.isFinite(n)&&n>0?n:1;return Math.min(1,jo(e)/a)}function Ra(e,n){const a={...e,...n??{}};return n&&"level"in n&&typeof n.noiseRatio!="number"&&(a.noiseRatio=$a({level:a.level,mainVolume:a.mainVolume})),a}const Pa={enabled:!0,type:"defaultNoise",level:4.5,noiseRatio:1,speed:1,mainVolume:1,mainSpeed:1},Mo=o.createContext(null);function ir(){return o.useContext(Mo)}const Lo=e=>`${Q0()}/${e}`,qu=e=>Array.from({length:10},(n,a)=>Lo(`${e}-${String(a+1).padStart(2,"0")}.mp3`)),lr={get defaultNoise(){return Lo("noise1.mp3")},get street(){return qu("noise2")},get restaurant(){return qu("noise3")},get buzz(){return Lo("noise4.mp3")}};function P5(e){const n=Math.floor(Math.random()*10);switch(e){case"defaultNoise":return lr.defaultNoise;case"street":return lr.street[n];case"restaurant":return lr.restaurant[n];case"buzz":return lr.buzz;default:return null}}function I5({noisePlayer:e,audioRef:n,playbackStateRef:a}){const r=o.useRef(e?.registerAnalyser);r.current=e?.registerAnalyser;const s=o.useRef(null),[i,l]=o.useState(null),u=o.useRef(null),c=o.useRef(null),d=o.useRef(null),p=o.useRef(null),m=o.useRef(0),h=o.useRef(null),g=o.useCallback(()=>{p.current!==null&&(cancelAnimationFrame(p.current),p.current=null),h.current!==null&&(clearTimeout(h.current),h.current=null)},[]),y=o.useCallback((_,v=250)=>{const A=s.current;if(!A)return;const w=c.current;if(w){c.current=null;try{A.pause()}catch{}A.src=w,A.load()}if(!A.src)return;m.current+=1,g();try{Tr(),Oa(A).then(S=>{if(s.current===A)try{r.current?.("noise",S)}catch{}})}catch{}const N=A.paused?0:Ha(A);A.paused&&Sn(A,0),A.play().catch(()=>{});const k=performance.now(),B=()=>{const S=Math.min(1,(performance.now()-k)/v);try{Sn(A,N+(_-N)*S)}catch{}S<1?p.current=requestAnimationFrame(B):p.current=null};p.current=requestAnimationFrame(B)},[g]),f=o.useCallback((_=250,v)=>{const A=s.current;if(!A||A.paused){v?.();return}const w=++m.current;g();const N=performance.now(),k=Ha(A),B=()=>{const S=Math.min(1,(performance.now()-N)/_);try{Sn(A,k*(1-S))}catch{}if(S<1)p.current=requestAnimationFrame(B);else{p.current=null,h.current!==null&&(clearTimeout(h.current),h.current=null);try{A.pause()}catch{}v?.()}};p.current=requestAnimationFrame(B),h.current=setTimeout(()=>{if(h.current=null,m.current===w){p.current!==null&&(cancelAnimationFrame(p.current),p.current=null);try{A.paused||(Sn(A,0),A.pause(),v?.())}catch{}}},_+150)},[g]);o.useEffect(()=>{const _=document.createElement("audio");return _.loop=!0,_.crossOrigin="anonymous",s.current=_,()=>{g();try{_.pause(),_.src=""}catch{}s.current=null,u.current=null,c.current=null}},[g]);const x=e?To(e.settings):0,b=!!e?.settings.enabled&&x>0;o.useEffect(()=>{if(!b)return;let _=0;const v=setInterval(()=>{const A=s.current;if(!A||A.paused){_=0;return}const w=n.current;if(w&&!w.paused&&!w.ended||a.current==="playing"){_=0;return}_+=1,_>=2&&(_=0,f())},400);return()=>clearInterval(v)},[f,b,n,a]),o.useEffect(()=>{const _=()=>{const v=s.current;if(document.hidden){if(v&&!v.paused){g();try{v.pause()}catch{}}return}if(!v||!v.paused)return;const A=n.current,w=!!A&&!A.paused&&!A.ended||a.current==="playing",N=d.current;w&&N?.enabled&&N.volume>0&&y(N.volume)};return document.addEventListener("visibilitychange",_),()=>document.removeEventListener("visibilitychange",_)},[g,y,n,a]),o.useEffect(()=>{d.current=e?{enabled:e.settings.enabled,volume:x,type:e.settings.type}:null},[e,e?.settings.enabled,x,e?.settings.type]);const C=o.useRef(null);return o.useEffect(()=>()=>{C.current?.(),C.current=null},[]),o.useEffect(()=>{const _=e?.settings,v=s.current;if(!v)return;const A=_?To(_):0;if(!_||!_.enabled||A===0){f();return}if(u.current!==_.type){const w=P5(_.type);w&&(u.current=_.type,l(w),c.current=w,f(150,()=>{if(c.current!==w)return;c.current=null,v.src=w,v.load();const N=n.current;if(N&&!N.paused){C.current?.();const k=()=>{v.removeEventListener("canplay",k),C.current===B&&(C.current=null);const S=n.current,E=d.current;S&&!S.paused&&!S.ended&&E?.enabled&&E.volume>0&&y(E.volume)},B=()=>v.removeEventListener("canplay",k);C.current=B,v.addEventListener("canplay",k)}}))}else{const w=n.current,N=!!w&&!w.paused&&!w.ended||a.current==="playing";if(N&&c.current)y(A);else if(N&&v.paused&&v.src)y(A);else if(!v.paused)if(!N)f();else{g();const k=Ha(v),B=performance.now(),S=()=>{const E=Math.min(1,(performance.now()-B)/150);try{Sn(v,k+(A-k)*E)}catch{}E<1?p.current=requestAnimationFrame(S):p.current=null};p.current=requestAnimationFrame(S)}}},[e?.settings,e?.settings.enabled,x,e?.settings.type,g,y,f,n,a,d]),o.useEffect(()=>{const _=s.current;if(_)try{_.playbackRate=Math.min(1.25,Math.max(.75,e?.settings.speed??1))}catch{}},[e?.settings.speed]),{noiseAudioRef:s,activeNoiseUrl:i,noiseSettingsRef:d,cancelNoiseFade:g,fadeInNoise:y,fadeOutNoise:f}}function F5({ttsText:e,playbackRate:n,mainVolume:a,fillRef:r,waveProgressRef:s,setProgress:i,setPlaybackState:l,setStateLocal:u,fadeInNoise:c,fadeOutNoise:d,noiseSettingsRef:p,onDoneRef:m,handleEndRef:h}){const g=o.useRef(null),y=o.useRef(0),f=o.useRef(null),x=o.useRef(0),b=o.useRef(!1);o.useEffect(()=>()=>{x.current++;try{if(f.current&&(cancelAnimationFrame(f.current),f.current=null),b.current&&window.speechSynthesis){try{window.speechSynthesis.cancel()}catch{}b.current=!1}}catch{}},[]);const C=(A,w=1)=>{try{const N=(A||"").trim().split(/\s+/).filter(Boolean).length||Math.max(1,(A||"").length);return Math.max(700,Math.round(N*300/Math.max(.25,w)))}catch{return 1200}},_=o.useCallback(A=>{if(typeof window>"u"||!window.speechSynthesis){try{typeof m.current=="function"&&m.current(!1)}catch{}return}const w=window.speechSynthesis,N=++x.current;try{try{w.cancel()}catch{}const k=A??e,B=Array.isArray(k)?k.filter(T=>!!T):[k||""];B.length===0&&B.push("");const S=Math.max(.3,Math.min(3,n));y.current=B.reduce((T,L)=>T+C(L,S||1),0),g.current=performance.now(),i(0),l("playing"),u("playMode");const E=p.current;E?.enabled&&(E?.volume??0)>0&&c(E.volume);const H=()=>{try{const T=g.current||performance.now(),L=performance.now()-T,F=y.current||1200,Z=Math.min(1,L/F);try{r.current&&(r.current.style.left=`${Z*100}%`),s.current&&s.current.style.setProperty("--progress",String(Z))}catch{}Z<1&&(f.current=requestAnimationFrame(H))}catch{}},z=()=>{if(N===x.current)try{f.current&&(cancelAnimationFrame(f.current),f.current=null),i(1),l("stopped");try{h.current?.()}catch{try{typeof m.current=="function"&&m.current(!0)}catch{}}}catch{}},U=T=>{const L=new SpeechSynthesisUtterance(B[T]);try{L.rate=S}catch{}try{L.volume=Math.max(0,Math.min(1,a))}catch{}L.onend=()=>{if(N===x.current){if(T<B.length-1){try{U(T+1)}catch{z()}return}z()}},L.onerror=()=>{z()},L.onstart=()=>{if(!(T>0))try{f.current&&(cancelAnimationFrame(f.current),f.current=null),f.current=requestAnimationFrame(H)}catch{}},b.current=!0,w.speak(L)};try{U(0)}catch{try{typeof m.current=="function"&&m.current(!0)}catch{}}}catch{try{typeof m.current=="function"&&m.current(!0)}catch{}}},[e,n,a,c,r,s,i,l,u,p,m,h]),v=o.useCallback(()=>{x.current++;try{if(window.speechSynthesis)try{window.speechSynthesis.cancel()}catch{}f.current&&(cancelAnimationFrame(f.current),f.current=null),d(),g.current=null}catch{}l("stopped"),u("active"),i(0)},[d,l,u,i]);return{startTTS:_,stopTTS:v}}async function O5(e,n,a){let r=null;try{const s=window.AudioContext||window.webkitAudioContext;r=new s;const i=await r.decodeAudioData(e.slice(0)),l=i.numberOfChannels>0?i.getChannelData(0):null;if(!l)return null;const u=a&&a>0?Math.min(l.length,Math.floor(a*i.sampleRate)):l.length,c=Math.max(n,u),d=Math.floor(c/n)||1;return new Array(n).fill(0).map((p,m)=>{const h=m*d,g=Math.min(h+d,c);let y=0;for(let f=h;f<g;f++){const x=Math.abs(l[f]);x>y&&(y=x)}return y})}catch{return null}finally{try{r?.close?.()}catch{}}}async function Uu(e,n,a){try{const r=await fetch(e);if(r.ok===!1)return null;const s=await r.arrayBuffer();return await O5(s,n,a)}catch(r){try{const s=ni(r)}catch{}return null}}const Gu=45,H5=74,z5=2;function Ia(e){const n=Math.min(2,Math.max(0,Number(e)||0));return n<=1?n*45:45+(n-1)*29}function $o(e){return Ia(e)/45}const Ku=4;function V5(e){const{src:n,segments:a,progress:r=0,waveProgressRef:s,noiseSrc:i,noiseRatio:l=0,noiseSpeed:u=1,totalDuration:c=0,mainVolume:d=1,onReadyChange:p,showSoundWaveForm:m=!0}=e,h=o.useRef(null),g=o.useRef(null),[y,f]=o.useState(null),[x,b]=o.useState(!1),[C,_]=o.useState(null),[v,A]=o.useState(2),[w,N]=o.useState(0),[k,B]=o.useState(null),[S,E]=o.useState(!1),[H,z]=o.useState(!1),U=3,T=3,L=1,F=300,Z=o.useRef(0),J=o.useCallback(()=>{const pe=h.current,q=g&&g.current?g.current:pe?pe.closest(".audio-player__wave"):null,ee=q?q.getBoundingClientRect():pe?pe.getBoundingClientRect():null,ie=ee?ee.width:0,ve=ee?Math.max(100,ee.width):320,me=ee?ee.height:0,oe=Math.max(L,Math.min(F,Math.floor((ve+T)/(U+T)))),fe=oe*U,ge=Math.max(0,oe-1),Ee=Math.max(0,ge>0?(ve-fe)/ge:T);return{bars:oe,gap:Ee,height:me,width:ie}},[]),V=o.useRef(void 0),P=o.useRef(null),W=o.useCallback(async(pe,q,{quiet:ee=!1}={})=>{const ie=++Z.current,ve=()=>Z.current===ie;try{if(ee||b(!1),V.current=pe,!pe){ve()&&f(null);return}let me=q;if(!me)try{for(let ge=0;ge<4&&!(h.current||g.current);ge++)await new Promise(Ee=>requestAnimationFrame(Ee));await new Promise(ge=>requestAnimationFrame(ge));const fe=J();fe.height>0&&N(fe.height),me=fe.bars,A(fe.gap)}catch{me=120}P.current=me;const oe=await Uu(pe,me);if(!ve())return;if(!oe){f(null),b(!1);return}f(oe),_(me),b(!0)}catch{if(!ve())return;f(null),b(!1)}},[b,f,N,A,_,J]);o.useEffect(()=>{const pe=g.current;if(!pe||typeof ResizeObserver>"u")return;let q=null;const ee=new ResizeObserver(()=>{q!==null&&cancelAnimationFrame(q),q=requestAnimationFrame(()=>{q=null;try{const ie=J();if(ie.width<=0||(ie.height>0&&N(ie.height),P.current===null||ie.bars===P.current))return;const ve=V.current;A(ie.gap),ve?W(ve,ie.bars,{quiet:!0}).catch(()=>{}):P.current=ie.bars}catch{}})});return ee.observe(pe),()=>{ee.disconnect(),q!==null&&cancelAnimationFrame(q)}},[J,W]),o.useEffect(()=>{const pe=a&&a[0]&&a[0].src||n||a&&a.length===1&&a[0]&&a[0].src;W(typeof pe=="string"?pe:void 0).catch(()=>{}),z(!1)},[n,a,W]),o.useEffect(()=>{let pe=!1;if(E(!1),!i||!C){B(null);return}const q=c>0?c*(u||1):void 0;return Uu(i,C,q).then(ee=>{pe||(B(ee),ee||E(!0))}).catch(()=>{pe||(B(null),E(!0))}),()=>{pe=!0}},[i,C,c,u]);const R=Math.max(0,Math.min(1,d)),D=o.useMemo(()=>y&&y.length&&Math.max(...y)||1,[y]),I=C||40,j=o.useMemo(()=>Array.from({length:I}).map((pe,q)=>{const ee=y&&y[q]!=null?y[q]:null,ie=ee==null?null:Math.min(1,ee/D*R),ve=ie!=null&&w>0&&Ia(ie)<=Ku,me=ie==null?.15:ve?0:$o(ie),oe=I>1?q/(I-1):0;return t.jsx("div",{className:ve?"audio-player__bar audio-player__bar--hidden":"audio-player__bar",style:{"--val":me,"--i":q,"--mix":oe}},q)}),[I,y,D,R,w]),O={"--progress":String(Math.max(0,Math.min(1,r)))},$=i?Math.max(1,l):1,Y={"--bar-gap":`${v}px`,"--wave-h":`${Ia($)}px`,"--wave-h1":`${Gu}px`},ae=R*Math.max(0,l)/Us(),K=x&&(i?!!k||S:!0);o.useEffect(()=>{K&&z(!0)},[K]);const ne=H?x:K;o.useEffect(()=>{p?.(ne)},[ne,p]);const be=C||40,ue=o.useMemo(()=>Array.from({length:be}).map((pe,q)=>{const ee=k&&k[q]!=null?k[q]:null,ie=ee==null?0:ee/D*ae,ve=w>0&&Ia(ie)<=Ku,me=ve?0:$o(ie),oe=be>1?q/(be-1):0;return t.jsx("div",{className:ve?"audio-player__bar audio-player__bar--hidden":"audio-player__bar",style:{"--val":me,"--i":q,"--mix":oe}},q)}),[be,k,D,ae,w]);return t.jsxs("div",{className:"audio-player__wave",ref:g,style:Y,children:[i&&t.jsx("div",{className:`audio-player__wave-noise ${K?"is-ready":""}`,"aria-hidden":"true",children:ue}),m&&t.jsxs(t.Fragment,{children:[t.jsx("div",{className:`audio-player__wave-inner audio-player__wave-unplayed ${ne?"is-ready":""}`,ref:h,children:j}),t.jsx("div",{className:`audio-player__wave-inner audio-player__wave-played ${ne?"is-ready":""}`,ref:s,style:O,children:j})]})]})}const W5={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 Ro(e,n){return new Promise((a,r)=>{const s=document.createElement("audio");let i=!1;const l=()=>{try{s.src=""}catch{}},u=()=>{if(i)return;i=!0;const d=isFinite(s.duration)&&s.duration||0;l(),a(d)},c=d=>{i||(i=!0,l(),n.rejectOnError?r(new Error(d)):a(0))};s.addEventListener("loadedmetadata",u),s.addEventListener("error",()=>c("audio load failed")),setTimeout(()=>c("audio load timeout"),n.timeoutMs),s.src=e})}const q5=2e3;function Yu(e,n=q5){return new Promise(a=>{let r=!1;const s=()=>{r||(r=!0,a())};e.addEventListener("canplay",s,{once:!0}),e.addEventListener("error",s,{once:!0}),setTimeout(s,n)})}function U5({showSoundWaveForm:e,showNoiseWaveForm:n,timeoutMs:a=2500}){const r=o.useRef(!1),s=o.useRef([]),i=o.useCallback(c=>{if(r.current=c,!c||!s.current.length)return;const d=s.current;s.current=[];for(const p of d)p(!0)},[]),l=o.useCallback(()=>{r.current=!1},[]),u=o.useCallback(()=>!e&&!n||r.current?Promise.resolve(!0):new Promise(c=>{const d=m=>{clearTimeout(p),s.current=s.current.filter(h=>h!==d),c(m)},p=setTimeout(()=>d(!0),a);s.current.push(d)}),[e,n,a]);return o.useEffect(()=>()=>{const c=s.current;s.current=[];for(const d of c)d(!1)},[]),{onReadyChange:i,waitForReady:u,markNotReady:l}}function G5(){const e=o.useRef([]),n=o.useCallback(s=>(e.current.push(s),s),[]),a=o.useCallback(s=>{const i=new Set([...s].filter(Boolean));e.current=e.current.filter(l=>{if(i.has(l))return!0;try{URL.revokeObjectURL(l)}catch{}return!1})},[]),r=o.useCallback(()=>{a([])},[a]);return o.useEffect(()=>()=>{for(const s of e.current)try{URL.revokeObjectURL(s)}catch{}e.current=[]},[]),{track:n,keepOnly:a,revokeAll:r}}function K5({offsetY:e=8}={}){const n=o.useRef(null),[a,r]=o.useState(null),s=o.useCallback(()=>r(null),[]),i=o.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 o.useEffect(()=>{if(a)return document.addEventListener("mousedown",s),()=>document.removeEventListener("mousedown",s)},[a,s]),{ref:n,rect:a,show:i,hide:s}}function Y5({currentTime:e,sources:n,index:a,audioDuration:r}){const s=a||0,i=Array.isArray(n)&&n.length>0?n[s]:void 0,l=i?i.duration||r||0:r||0;if(!(l>0))return 0;const u=Number.isFinite(e)?e:0;return Math.max(0,Math.min(1,u/l))}function Z5(e,n){if(!Array.isArray(e))return null;const a=n||0;return a<e.length-1?a+1:null}function X5({ended:e,completedByEnd:n}){return!!e||!!n}function J5(e){return e.map((n,a)=>({src:n.src,label:String(a+1),color:void 0,duration:n.duration||0}))}function Q5(e){return e.reduce((n,a)=>n+(a.duration||0),0)}function e3(e,n,a){const r=Array.isArray(e)?e:e?[e]:[],s=[];for(const i of r)if(i){if(typeof i=="object"&&i!==null&&"src"in i&&i.src){const l=i;s.push({code:l.code??null,src:l.src});continue}if(typeof i=="string"&&(i.startsWith("http")||i.includes("/"))){s.push({code:null,src:i});continue}if(typeof i=="string"||typeof i=="number"){const l=String(i),u=a(l,n);u&&s.push({code:l,resolvedPath:u})}}return s}function t3(e){if(!e)return 0;const n=e.duration;if(Number.isFinite(n)&&n>0)return n;if(n===0)return 0;try{const a=e.seekable;if(a&&a.length>0){const r=a.end(a.length-1);if(Number.isFinite(r)&&r>0)return r}}catch{}return null}function n3({audioRef:e,fillRef:n,waveProgressRef:a,sourcesRef:r,currentIndexRef:s}){const i=o.useRef(null),l=o.useCallback(()=>{i.current!==null&&(cancelAnimationFrame(i.current),i.current=null)},[]),u=o.useCallback(()=>{if(i.current!==null)return;const d=()=>{try{const p=e.current,m=Array.isArray(r.current)?r.current[s.current||0]:void 0,h=m&&Number.isFinite(m.duration)&&(m.duration??0)>0?0:t3(p),g=n.current;if(h===null)try{g&&g.style.visibility!=="hidden"&&(g.style.visibility="hidden")}catch{}else{const y=Y5({currentTime:p&&typeof p.currentTime=="number"?p.currentTime:0,sources:r.current,index:s.current,audioDuration:h});try{g&&(g.style.visibility&&(g.style.visibility=""),g.style.left=`${y*100}%`)}catch{}try{a.current?.style.setProperty("--progress",String(y))}catch{}}}catch{}i.current=requestAnimationFrame(d)};i.current=requestAnimationFrame(d)},[e,n,a,r,s]),c=o.useCallback(d=>{l();try{n.current&&(n.current.style.visibility="",n.current.style.left=`${d*100}%`)}catch{}try{a.current?.style.setProperty("--progress",String(d))}catch{}},[l,n,a]);return o.useEffect(()=>l,[l]),{start:u,stop:l,settleTo:c}}function Po({btnLabel:e,soundSrc:n,bucketPath:a,onDone:r,disabled:s=!1,ttsText:i=null,className:l,showSoundWaveForm:u=!0,showNoiseWaveForm:c=!0}){const{t:d}=ye.useTranslation(),p=e,m=ir(),h=o.useRef(m?.registerAnalyser);o.useEffect(()=>{h.current=m?.registerAnalyser});const g=o.useRef(null),y=o.useRef(null),f=o.useRef(null),x=G5(),b=o.useRef(null),C=o.useRef(!1),_=o.useRef(0),v=o.useRef(null),{ref:A,rect:w,show:N,hide:k}=K5();o.useEffect(()=>()=>{h.current?.("main",null),h.current?.("noise",null)},[]);const[B,S]=o.useState(!1),[E,H]=o.useState("idle"),[z,U]=o.useState("stopped"),T=o.useRef("stopped");o.useEffect(()=>{T.current=z},[z]);const[L,F]=o.useState(0),[Z,J]=o.useState("active"),V=o.useRef(!1);o.useEffect(()=>{if(Z!=="playMode"||!V.current)return;V.current=!1;const G=typeof document<"u"?document.activeElement:null;if(G&&G!==document.body)return;const le=f.current?.querySelectorAll("button")[1];try{le?.focus()}catch{}},[Z]);const[P,W]=o.useState(null),[R,D]=o.useState(null),[I,j]=o.useState(0),[O,$]=o.useState(!1),[Y,ae]=o.useState(0),K=m?.playbackRate??1,ne=m?.mainVolume??1,be=m?jo(m.settings):0,ue=m?Wu(m.settings):ne,[pe,q]=o.useState("idle"),[ee,ie]=o.useState(""),[ve]=o.useState("top"),me=o.useRef(null),oe=o.useRef(0),fe=o.useRef(null),{start:ge,stop:Ee,settleTo:Ie}=n3({audioRef:g,fillRef:y,waveProgressRef:fe,sourcesRef:me,currentIndexRef:oe}),{onReadyChange:Le,waitForReady:Je,markNotReady:et}=U5({showSoundWaveForm:u,showNoiseWaveForm:c}),Ve=o.useRef(null),He=o.useRef(s),it=o.useRef(r),Qe=o.useRef(null),Ye=o.useRef(!1),[re,Re]=o.useState(!1),te=o.useCallback(G=>{Ye.current=G,Re(G)},[]),we=o.useRef(null),{activeNoiseUrl:We,noiseSettingsRef:Be,fadeInNoise:Se,fadeOutNoise:he}=I5({noisePlayer:m,audioRef:g,playbackStateRef:T}),{startTTS:Me,stopTTS:nt}=F5({ttsText:i,playbackRate:K,mainVolume:ue,fillRef:y,waveProgressRef:fe,setProgress:F,setPlaybackState:U,setStateLocal:J,fadeInNoise:Se,fadeOutNoise:he,noiseSettingsRef:Be,onDoneRef:it,handleEndRef:we});o.useEffect(()=>{st.current=nt});const _t=G=>{if(typeof window>"u"||!window.speechSynthesis){try{ie(d("training.ttsUnavailable","\uC774 \uAE30\uAE30\uC5D0\uC11C\uB294 \uC74C\uC131\uC744 \uB4E4\uB824\uC904 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4."))}catch{}Me(G);return}Bt("tts"),Me(G)},kt=Array.isArray(n)?n.filter(Boolean):n?[n]:[],dt=(!kt||kt.length===0)&&!!i,Ze=Array.isArray(P)&&P.length>0?P:Array.isArray(R)&&R.length>0?R:null,qe=Math.max(Array.isArray(Ze)?Ze.length:0,kt.length),$e=o.useRef(!0);o.useEffect(()=>($e.current=!0,()=>{$e.current=!1}),[]);const Xe=o.useRef(0),Fe=()=>{Xe.current+=1,_.current+=1},st=o.useRef(null),Ge=o.useRef(null),ft=o.useRef(null),jt=o.useRef(null);jt.current||(jt.current=()=>{ft.current=null;const G=g.current;if(Ge.current==="audio"&&G&&!G.paused){Xe.current+=1,_.current+=1;try{G.pause()}catch{}$e.current&&U("paused")}else if(Ge.current==="tts")try{st.current?.()}catch{}});const Bt=G=>{Ge.current=G,ft.current=Xa(jt.current)},mt=()=>{ft.current?.(),ft.current=null};o.useEffect(()=>()=>{jt.current&&Ja(jt.current)},[]);const lt=o.useCallback(async(G,le=3,ce=50)=>{const _e=Xe.current;for(let Ae=0;Ae<le;Ae++){if(!$e.current||_e!==Xe.current)return!1;try{return Bt("audio"),await G.play(),!0}catch(je){if((je instanceof Error||typeof je=="object"&&je&&"name"in je?je.name:void 0)==="AbortError"){if(_e!==Xe.current)return!1;await new Promise(rt=>setTimeout(rt,ce));continue}try{ie(d("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."))}catch{}return!1}}try{ie(d("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."))}catch{}return!1},[d]),Oe=o.useCallback(()=>{const G=g.current;if(!G)return;const le=()=>{U("playing"),J("playMode"),$(!0),ge();try{Tr(),Oa(G).then(je=>{if($e.current)try{h.current?.("main",je)}catch{}})}catch{}const Ae=Be.current;Ae?.enabled&&(Ae?.volume??0)>0&&Se(Ae.volume)},ce=()=>{X5({ended:!!G?.ended,completedByEnd:Ye.current})||(U("paused"),Ee(),he())},_e=()=>{try{const Ae=me.current,je=Z5(Ae,oe.current);if(je!==null){oe.current=je,j(je),$(!0);const rt=Ae?.[je]&&Ae[je].src;if(rt&&G){G.src=rt,G.load(),lt(G).catch(()=>{});return}}}catch{}U("stopped"),F(1);try{if(G)try{G.currentTime=0}catch{}}catch{}Ee(),$(!1),he();try{!He.current&&we.current&&we.current()}catch{}};return G.addEventListener("play",le),G.addEventListener("pause",ce),G.addEventListener("ended",_e),()=>{try{G.removeEventListener("play",le),G.removeEventListener("pause",ce),G.removeEventListener("ended",_e),Ee()}catch{}}},[Se,he,lt,Be,ge,Ee]);o.useEffect(()=>Oe(),[Oe]),o.useEffect(()=>{He.current=s},[s]),o.useEffect(()=>{it.current=r},[r]),o.useEffect(()=>{if(s||Z!=="active")return;const G=v.current;if(!G)return;let le=null;const ce=requestAnimationFrame(()=>{try{const _e=G.getTotalLength();if(!_e)return;const Ae=_e*.2;G.style.strokeDasharray=`${_e-Ae} ${Ae}`;const je="triFlow_"+Math.random().toString(36).slice(2);le=document.createElement("style"),le.textContent=`@keyframes ${je}{from{stroke-dashoffset:0}to{stroke-dashoffset:-${_e}}}`,document.head.appendChild(le),G.style.animation=`${je} 2.4s linear infinite`}catch{}});return()=>{cancelAnimationFrame(ce),le?.remove()}},[Z,s]),o.useEffect(()=>{me.current=P},[P]),o.useEffect(()=>{oe.current=I},[I]),o.useEffect(()=>{const G=f.current,le=b.current;if(!G||!le)return;let ce=null;const _e=32,Ae=60,je=()=>{try{const gt=Array.from(G.querySelectorAll(":scope > .button"));let ut=0;gt.forEach(Ne=>{if(Ne===le)return;const ze=Ne.getBoundingClientRect();ut+=ze.width});const vt=G.getBoundingClientRect().width,Rt=Math.max(0,Math.floor(vt-ut-8)),Lt=qe;if(!Lt||Rt<=0){Array.from(le.children).forEach(Ne=>{try{Ne.style.width=""}catch{}});return}let nn=Math.floor(Rt/Lt);nn>Ae&&(nn=Ae),nn<_e&&(nn=Math.max(_e,Math.floor(Rt/Lt))),Array.from(le.querySelectorAll(".button")).forEach(Ne=>{try{Ne.style.width=`${nn}px`}catch{}})}catch{}},rt=requestAnimationFrame(je);try{ce=new ResizeObserver(()=>{requestAnimationFrame(je)}),ce.observe(G),ce.observe(le),window.addEventListener("resize",je)}catch{}return()=>{try{cancelAnimationFrame(rt)}catch{}try{ce&&(ce.disconnect(),ce=null)}catch{}try{window.removeEventListener("resize",je)}catch{}}},[P,R,qe]),o.useEffect(()=>()=>{try{Ve.current&&(clearTimeout(Ve.current),Ve.current=null),Qe.current&&(clearTimeout(Qe.current),Qe.current=null)}catch{}},[]);const at=(G,le)=>{W(G),ae(le),et(),D(J5(G)),me.current=G},ht=async(G,le)=>{te(!1),C.current=!1,G.src=le,G.load(),await Yu(G),await Je()!==!1&&(S(!1),await lt(G),J("playMode"),j(0),$(!0))},Ot=async(G,le=!1)=>{const ce=g.current;S(!0),H("measuring_duration");try{const _e=await Ro(G,{timeoutMs:1e4,rejectOnError:!0});at([{src:G,objectUrl:null,duration:_e}],_e),H("ready"),le&&ce&&await ht(ce,G)}finally{C.current=!1,S(!1)}},tt=async(G,le=!1)=>{const ce=g.current;S(!0),H("measuring_duration");try{const _e=await Promise.all(G.map(je=>Ro(je,{timeoutMs:1e4})));if(!$e.current)return;const Ae=G.map((je,rt)=>({src:je,objectUrl:null,duration:_e[rt]||0}));at(Ae,Q5(Ae)),H("ready"),le&&ce&&Ae.length>0&&await ht(ce,Ae[0].src)}finally{C.current=!1,S(!1)}},Tt=async(G=!1,le=!0)=>{const ce=g.current,_e=n?Array.isArray(n)?n:[n]:[];if(!_e||_e.length===0||!_e.some(Boolean))return!1;if(C.current)return null;C.current=!0,le&&S(!0),H("resolving");try{const Ae=e3(n,a,Vs),je=[];let rt=0;for(const gt of Ae){let ut=gt.src??null,vt=null;if(!ut&&gt.resolvedPath){try{H("getting_signed_url"),ut=await Ws(gt.resolvedPath)}catch{ut=null}if(!$e.current)return!1;if(!ut)try{H("downloading");const Lt=await qs(gt.resolvedPath);if(!$e.current)return!1;if(Lt){const nn=Lt instanceof Blob?Lt:new Blob([Lt]);vt=x.track(URL.createObjectURL(nn)),ut=vt}}catch{H("error");try{ie(d("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.")),J("active")}catch{}}}if(!ut)continue;let Rt=0;try{H("measuring_duration"),Rt=await Ro(ut,{timeoutMs:3e3})}catch{Rt=0}if(!$e.current){if(vt)try{URL.revokeObjectURL(vt)}catch{}for(const Lt of je)if(Lt.objectUrl)try{URL.revokeObjectURL(Lt.objectUrl)}catch{}return!1}rt+=Rt||0,je.push({...gt,src:ut,objectUrl:vt,duration:Rt})}if(at(je,rt),je.length>0&&G&&ce){const gt=je[0];te(!1);try{x.keepOnly(je.map(ut=>ut.objectUrl))}catch{}if(H("ready"),C.current=!1,gt.src&&ce)try{if(ce.src=gt.src,ce.load(),await Yu(ce),await Je()===!1)return!1;le&&S(!1),ce&&await lt(ce)}catch{le&&S(!1)}else le&&S(!1);J("playMode"),j(0),$(!0)}return je.length>0}finally{C.current=!1,le&&S(!1),H(Ae=>Ae==="ready"?"ready":"idle")}},Yt=async()=>{const G=g.current;if(!(!G&&!dt)){if(dt){const le=window.speechSynthesis;if(Z==="active"){const ce=Er(),_e=Array.isArray(i)?i.filter(Boolean):i?[i]:[];if(ce&&_e.length>0){J("load"),S(!0),H("resolving"),C.current=!0;try{const Ae=await Promise.all(_e.map(je=>Promise.resolve(ce(je))));Ae.length>1?await tt(Ae,!0):await Ot(Ae[0],!0)}catch{C.current=!1,S(!1),J("active"),_t(_e.length>0?_e:void 0)}return}_t(_e.length>0?_e:void 0);return}if(Z==="playMode"){const ce=!!le&&(le.speaking||le.paused)&&!(G&&(G.currentSrc||G.getAttribute("src")));if(G&&!ce){if(G.paused){if(Ye.current){await Mt();return}await lt(G),U("playing")}else Fe(),G.pause(),U("paused");return}try{if(le&&le.paused)try{Bt("tts"),le.resume(),U("playing")}catch{}else try{le.pause(),U("paused")}catch{}}catch{}}return}if(Z==="active"){if(s&&Array.isArray(me.current)&&me.current.length>0){const ce=me.current[0];try{if(ce.src&&G)try{G.src=ce.src,G.load(),G&&await lt(G)}catch{}J("playMode"),j(0),$(!0);return}catch{}}J("load");let le;try{le=await Tt(!0)}catch{le=!1}if(le===!1&&$e.current){try{ie(d("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."))}catch{}J("active")}return}if(Z!=="load"&&(Z==="playMode"||Z==="active"))try{if(G&&G.paused){if(Ye.current){await Mt();return}G&&await lt(G),U("playing")}else G&&(Fe(),G.pause(),U("paused"))}catch(le){(le instanceof Error||typeof le=="object"&&le&&"name"in le)&&le.name}}},Mt=async()=>{const G=g.current;if(G)try{const le=me.current;if(Array.isArray(le)&&le.length>1){await Nn(0);return}te(!1);try{G.currentTime=0}catch{}G&&await lt(G),U("playing"),J("playMode")}catch{}},ln=()=>{if(Fe(),mt(),dt){nt();return}const G=g.current;try{if(G){try{G.pause()}catch{}try{G.currentTime=0}catch{}}}catch{}he(),U("stopped"),J("active"),F(0),$(!1)},un=async(G,{sameSegment:le=!1}={})=>{const ce=++_.current,_e=g.current,Ae=me.current?.[G]?.src;try{if(te(!1),j(G),$(!0),oe.current=G,!Ae||!_e||(le||et(),_e.src=Ae,_e.load(),!le&&await Je()===!1)||ce!==_.current||(await lt(_e),ce!==_.current))return;U("playing"),J("playMode")}catch{}},cn=async()=>{const G=me.current,le=oe.current||0;if(!G||le<=0){await Mt();return}await un(le-1)},Rn=async()=>{const G=me.current,le=oe.current||0;if(!G||le>=G.length-1){ln();return}await un(le+1)},dn=()=>{if(Ye.current)return;const G=200,le=340;te(!0),Fe(),mt();try{F(1)}catch{}Ie(1);try{q("hold")}catch{}try{const ce=g.current,_e=dt&&!!ce?.src;if(!dt||_e){if(ce){ce.pause();try{ce.currentTime=0}catch{}}}else nt();he()}catch{}try{U("stopped")}catch{}if($(!1),!He.current)try{Qe.current&&(clearTimeout(Qe.current),Qe.current=null),Qe.current=setTimeout(()=>{try{q("out")}catch{}Qe.current=setTimeout(()=>{try{typeof it.current=="function"&&it.current(!0)}catch{}try{q("idle")}catch{}Qe.current=null},le)},G)}catch{}};o.useEffect(()=>{we.current=dn});const Pn=o.useCallback(()=>ie(""),[]),Nn=async G=>{(me.current||[])[G]&&await un(G,{sameSegment:G===oe.current})},Nt=z==="playing",Cn=o.useMemo(()=>{if(!R||R.length<=1)return R;const G=R[I];return G?[G]:R},[R,I]),Ht=s===!0;o.useEffect(()=>{try{const G=g.current;G&&typeof G.playbackRate=="number"&&(G.playbackRate=K||1)}catch{}},[K]);const Zt=o.useRef({raf:null,timer:null});o.useEffect(()=>{const G=g.current;if(!G)return;const le=Math.max(0,Math.min(1,ue)),ce=Zt.current,_e=()=>{ce.raf!==null&&(cancelAnimationFrame(ce.raf),ce.raf=null),ce.timer!==null&&(clearTimeout(ce.timer),ce.timer=null)};_e();const Ae=Ha(G);if(G.paused||Math.abs(Ae-le)<.001||typeof requestAnimationFrame!="function"){try{Sn(G,le)}catch{}return}const je=performance.now(),rt=()=>{const gt=Math.min(1,(performance.now()-je)/150);try{Sn(G,Ae+(le-Ae)*gt)}catch{}ce.raf=gt<1?requestAnimationFrame(rt):null};return ce.raf=requestAnimationFrame(rt),ce.timer=setTimeout(()=>{_e();try{Sn(G,le)}catch{}},200),_e},[ue]);const fn=pe==="hold",en=pe==="out",gn=Z==="playMode"&&!B&&!re||fn||en,In=z!=="stopped"||fn||en,bn=z==="paused",se=Math.max(0,Math.min(100,(L||0)*100)),xe=De("audio-player__fill",gn?"is-visible":"",In?"is-expanded":"",bn?"is-paused":"",en?"is-out":"");return t.jsxs("div",{className:`audio-player ${Ht?"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":""} ${B?"is-loading":""} ${Z!=="default"?"is-revealed":""}`,children:[B?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.${E}`,{defaultValue:W5[E]})})]}):null,Z==="active"?t.jsx("button",{className:"audio-player__button",type:"button",disabled:Ht,onClick:()=>{V.current=nr(),k(),Yt()},"aria-label":typeof p=="string"?p:d("training.listen","\uB4E3\uAE30"),onMouseEnter:N,onMouseLeave:k,onFocus:N,onBlur:k,children:t.jsx("span",{ref:A,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:v,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,w&&t.jsx(vn,{anchorRect:w,text:typeof p=="string"&&p?p:d("training.listenLabel","\uBB38\uC7A5 \uB4E3\uAE30"),offset:8}),t.jsxs("div",{className:`audio-player__play ${Z==="playMode"||Nt?"is-visible":""}`,inert:!(Z==="playMode"||Nt)||void 0,children:[t.jsxs("div",{ref:f,className:"audio-player__buttons",children:[t.jsx(de,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"skip-back",onClick:cn,ariaLabel:d("training.prev","\uC774\uC804"),width:"60px",variant:"transparent-white","aria-hidden":"true",tabIndex:-1,disabled:Z!=="playMode"}),t.jsx(de,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:Nt?"pause":"play",onClick:Yt,ariaLabel:d("common.playPause","\uC7AC\uC0DD / \uBA48\uCDA4"),"aria-pressed":Nt,width:"60px",variant:"transparent-white",disabled:Z!=="playMode"}),t.jsx(de,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"square",onClick:ln,ariaLabel:d("training.stop","\uC815\uC9C0"),width:"60px",variant:"transparent-white","aria-hidden":"true",tabIndex:-1,disabled:Z!=="playMode"}),qe>1?t.jsx("div",{ref:b,className:"audio-player__source-buttons",children:Array.from({length:qe}).map((G,le)=>t.jsx(de,{htmlType:"button",size:32,type:"dot",shape:"pill",useBorder:!1,label:String(le+1),onClick:()=>{try{Nn(le)}catch{}},ariaLabel:d("training.sourcePlay",{n:le+1}),variant:"transparent-white",selected:O&&I===le,disabled:Z!=="playMode"||!(Array.isArray(P)&&P[le]),showTooltipInfo:!0},le))}):null,!Array.isArray(P)||P.length<=1?t.jsx(de,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"repeat",onClick:Mt,ariaLabel:d("common.replay","\uB2E4\uC2DC\uB4E3\uAE30"),width:"60px",variant:"transparent-white",disabled:Z!=="playMode"}):null,t.jsx(de,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"skip-forward",onClick:Rn,ariaLabel:d("training.next","\uB2E4\uC74C"),width:"60px",variant:"transparent-white","aria-hidden":!0,tabIndex:-1,disabled:Z!=="playMode"}),t.jsx(de,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"check",onClick:dn,ariaLabel:d("common.done","\uC644\uB8CC"),width:"60px",variant:"transparent-white",disabled:Z!=="playMode"})]}),t.jsxs("div",{className:"audio-player__slider",children:[t.jsx("div",{className:xe,ref:y,style:{left:`${se}%`},"aria-hidden":"true"}),(u||c)&&t.jsx(V5,{segments:Cn,progress:L,totalDuration:Y,waveProgressRef:fe,showSoundWaveForm:u,noiseSrc:c&&m?.settings.enabled&&be>0?We:null,noiseRatio:m?$a(m.settings):0,noiseSpeed:m?.settings.speed??1,mainVolume:ne,onReadyChange:Le})]})]}),t.jsx("audio",{ref:g,crossOrigin:"anonymous",preload:"auto"})]}),!u&&t.jsxs("p",{className:"audio-player__no-waveform caption-1",children:[t.jsx(Ke,{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(ra,{message:ee,position:ve,onClose:Pn})]})}function ur(e){const{t:n}=ye.useTranslation(),{text:a,label:r,anchorRect:s=null,onClose:i,closeOnOutsideClick:l=!0,isMobilePopup:u=!1}=e||{},[c,d]=o.useState(()=>{try{return localStorage.getItem("tooltip-theme")||"light"}catch{return"light"}});o.useEffect(()=>{try{localStorage.setItem("tooltip-theme",c)}catch{}},[c]);const{increase:p,decrease:m,canIncrease:h,canDecrease:g,fontSize:y,lineHeight:f}=el({storageKey:"tooltip-fontScale"}),x=o.useCallback(()=>d(A=>A==="dark"?"light":"dark"),[]),b=o.useCallback(A=>{try{A.stopPropagation()}catch{}try{typeof i=="function"&&i()}catch{}},[i]),C=Array.isArray(a)?a:typeof a>"u"||a===null?[]:[a],_={fontSize:`${y}px`,lineHeight:`${f}px`,"--tt-line-height":`${f}px`,"--tt-marker-size":"28px"},v=t.jsxs("div",{className:`tooltip-textbox__root ${c==="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:_,children:C.map((A,w)=>t.jsxs("div",{className:"tooltip-textbox__line",children:[C.length>1?t.jsx("div",{className:"tooltip-textbox__marker",children:t.jsx("span",{className:"tooltip-textbox__line-number button-1",children:w+1})}):null,t.jsx("span",{className:"tooltip-textbox__line-text",children:A})]},w))})]}),t.jsxs("div",{className:"tooltip-textbox__buttons",children:[t.jsx(de,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:"minus",onClick:m,ariaLabel:n("training.fontSizeDecrease","\uAE00\uC790 \uD06C\uAE30 \uAC10\uC18C"),variant:c==="dark"?"transparent-white":"transparent-gray",disabled:!g}),t.jsx(de,{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:c==="dark"?"transparent-white":"transparent-gray",disabled:!h}),t.jsx(de,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:c==="dark"?"moon":"sun-medium",onClick:x,ariaLabel:n("training.toggleBackground","\uBC30\uACBD \uC804\uD658"),variant:c==="dark"?"transparent-white":"transparent-gray"}),t.jsx(de,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:"x",onClick:b,ariaLabel:n("common.close","\uB2EB\uAE30"),variant:c==="dark"?"transparent-white":"transparent-gray"})]})]});return s?t.jsx(rn,{anchorRect:s,className:`tooltip-textbox ${c==="dark"?"is-dark":""}`,onClose:i,closeOnOutsideClick:l,isMobilePopup:u,ariaLabel:r||n("tooltip.textbox","\uBCF8\uBB38"),children:v}):t.jsx("div",{className:`tooltip-textbox ${c==="dark"?"is-dark":""}`,children:v})}function Zu({state:e="disabled"}){const{t:n}=ye.useTranslation();return t.jsxs("div",{className:`ts-bullet ts-bullet--${e}`,"aria-hidden":!0,children:[t.jsx("div",{className:"bullet__dot",children:t.jsx(Ke,{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 Xu(e,n,a){const r=o.useRef(n),s=o.useRef(a);o.useEffect(()=>{r.current=n,s.current=a}),o.useEffect(()=>{if(!e||typeof document>"u")return;let i=null,l=10;const u=()=>{i=null;const c=r.current(),d=c?Array.from(c.querySelectorAll(mn)).find(p=>!p.closest('[aria-hidden="true"]')):void 0;if(d){try{d.focus()}catch{}if(document.activeElement===d)return}--l>0&&(i=requestAnimationFrame(u))};return i=requestAnimationFrame(u),()=>{i!==null&&cancelAnimationFrame(i);const c=document.activeElement;if(!c||c===document.body||!document.contains(c)||c.closest(".tooltip-content")){const d=s.current();if(d)try{d.focus()}catch{}}}},[e])}function Ju({title:e,children:n,className:a="",state:r="disabled",usePreviewTextBtn:s=!1,onPreviewTextBtn:i,previewText:l=null,useFaded:u,usePlayAllBtn:c=!1,onPlayAll:d,playAllActive:p=!1}){const{t:m}=ye.useTranslation(),h=tn("(max-width: 767px)"),g=`training-step__title h4 ${u&&r==="disabled"?"training-step__title--faded":""} ${a}`.trim(),y=`training-step__title-row training-step__title-row--${r}`.trim(),f=o.useRef(null),[x,b]=o.useState(!1),[C,_]=o.useState(null),[v,A]=o.useState(null);Xu(x&&!!C,()=>{if(typeof document>"u")return null;const S=Array.from(document.querySelectorAll(".tooltip-content"));for(let E=S.length-1;E>=0;E--)if(S[E].querySelector(".tooltip-textbox__root"))return S[E];return null},()=>f.current?.querySelector("button")??null);const w=o.useRef(i);o.useEffect(()=>{w.current=i});const N=o.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]),k=o.useCallback(()=>{b(!1),_(null),A(null)},[]);o.useEffect(()=>{if(!x)return;let S;try{typeof w.current=="function"&&(S=w.current())}catch{}if(S===!1){k();return}A(typeof S<"u"&&S!==null?S:null)},[N]);const B=o.useCallback(()=>{let S;try{typeof i=="function"&&(S=i())}catch{}if(S!==!1){if(A(typeof S<"u"&&S!==null?S:l),!f.current){b(E=>!E);return}if(x)b(!1),_(null),A(null);else{const E=f.current.getBoundingClientRect();_(E),b(!0)}}},[i,l,x]);return t.jsxs("div",{className:y,children:[t.jsx("p",{className:g,children:t.jsx("span",{className:"training-step__title-text",children:e??n})}),s||c?t.jsxs("div",{className:"title-controls",children:[t.jsxs("div",{className:"title-buttons",children:[c&&t.jsx(de,{htmlType:"button",size:32,type:h?"dot":"bar",icon:"play-circle",label:h?void 0:m("training.playAll","\uBAA8\uB450 \uB4E3\uAE30"),ariaLabel:m("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}),s&&t.jsx("div",{ref:f,children:t.jsx(de,{htmlType:"button",size:32,type:h?"dot":"bar",icon:"eye",label:h?void 0:m("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),ariaLabel:m("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),onClick:B,className:x?"is-selected":void 0,"aria-expanded":x,"aria-haspopup":"dialog",variant:r==="disabled"?"disabled":"default",disabled:!l&&typeof i!="function"})})]}),x&&t.jsx(ur,{text:v??l,label:m("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),anchorRect:C,onClose:k,closeOnOutsideClick:!1,isMobilePopup:!0})]}):null]})}function Io(e,n){return typeof n!="number"||typeof e!="number"?"disabled":e<n?"done":e===n?"active":"disabled"}function Gn({index:e,stepIndex:n,isLast:a=!1,title:r="",titleProps:s={},children:i,className:l="",onDone:u=void 0,useTitleFaded:c=void 0}){const{t:d}=ye.useTranslation(),[p,m]=o.useState(()=>Io(e,n));o.useEffect(()=>{const A=Io(e,n);if(A!==p){const w=setTimeout(()=>m(A),0);return()=>clearTimeout(w)}},[e,n,p]);const h=o.useCallback((...A)=>{Io(e,n)==="done"||p==="done"||typeof u=="function"&&u(...A)},[e,n,p,u]),[g,y]=o.useState(!1),[f,x]=o.useState({text:"",label:"\uBB38\uC7A5 \uB4E3\uAE30",anchorRect:null,backdrop:!1,alignX:null,alignY:null}),b=o.useCallback(A=>{if(!A)return null;try{const w=A;if(typeof A=="object"&&(w.currentTarget||w.target)&&(w.nativeEvent||w.type)){const B=w.currentTarget??w.target;if(B&&typeof B.getBoundingClientRect=="function")return B.getBoundingClientRect()}if(A instanceof DOMRect)return A;const N=A;if(N&&typeof N.getBoundingClientRect=="function")return N.getBoundingClientRect();const k=A?.current;return k&&typeof k.getBoundingClientRect=="function"?k.getBoundingClientRect():null}catch{return null}},[]),C=o.useCallback((A,{text:w="",label:N="\uBB38\uC7A5 \uB4E3\uAE30",backdrop:k=!1,alignX:B="center",alignY:S="top"}={})=>{const E=b(A);x({text:w,label:N,anchorRect:E,backdrop:k,alignX:B,alignY:S}),y(!0)},[b]),_=o.useCallback(()=>{y(!1),x(A=>({...A,anchorRect:null}))},[]),v=o.Children.map(i,A=>{if(o.isValidElement(A)){const w=A;if(typeof w.type=="string")return w;const N=w.props??{},k=typeof N.onDone=="function"?N.onDone:h,B=typeof N.disabled=="boolean";let S=p==="disabled";return B&&(S=!!N.disabled),o.cloneElement(w,{onDone:k,disabled:S,showTooltip:C,hideTooltip:_})}return A});return t.jsxs("div",{className:`training-step training-step--${p} ${a?"training-step--last":""} ${l}`,"aria-current":p==="active",children:[t.jsx(Zu,{state:p}),t.jsxs("div",{className:"training-step__content",children:[t.jsx(Ju,{state:p,title:r,...s,useFaded:c}),v]}),g?t.jsx(rn,{anchorRect:f.anchorRect,backdrop:f.backdrop,onClose:_,ariaLabel:d("tooltip.textbox","\uBCF8\uBB38"),children:t.jsx(ur,{text:f.text,onClose:_})}):null]})}function Qu({context:e,state:n="disabled",theme:a="light"}){const{t:r}=ye.useTranslation(),[s,i]=o.useState("disabled"),[l,u]=o.useState(()=>{try{return localStorage.getItem("tooltip-theme")||a}catch{return a}});o.useEffect(()=>{try{localStorage.setItem("tooltip-theme",l)}catch{}},[l]);const c=()=>u(z=>z==="dark"?"light":"dark"),{increase:d,decrease:p,canIncrease:m,canDecrease:h,fontSize:g,lineHeight:y}=el({storageKey:"textbox_fontScale"}),[f,x]=o.useState(""),b=o.useRef(null),C=o.useRef(!1),_=o.useCallback(()=>{C.current=nr()&&!!b.current&&b.current.contains(document.activeElement),i("active")},[]),v=o.useCallback(()=>x(""),[]),A=z=>{try{x(z)}catch{}},w=typeof navigator<"u"&&/Mobi|Android/i.test(navigator.userAgent||"");o.useEffect(()=>{if(n!=="disabled"){const z=setTimeout(()=>i(n),0);return()=>clearTimeout(z)}},[n]);const N=o.useMemo(()=>e&&typeof e=="object"?String(e.sentence??e.text??""):typeof e=="string"?e:"",[e]),[k,B]=o.useState(N);k!==N&&(B(N),i("disabled"));const S=n==="disabled"?s:n,E=S==="disabled"?"training-text-box--disabled":S==="active"?"training-text-box--active":S==="done"?"training-text-box--done":"",H=o.useMemo(()=>({fontSize:`${g}px`,lineHeight:`${y}px`}),[g,y]);return o.useEffect(()=>{if(S==="disabled"||!C.current)return;C.current=!1;const z=document.activeElement;z&&z!==document.body||b.current?.querySelector(".training-text-box__buttons button")?.focus()},[S]),t.jsxs("div",{ref:b,className:`training-text-box ${E} ${S!=="disabled"&&l==="dark"?"is-dark":""}`,children:[S==="disabled"&&t.jsx("div",{className:"training-text-box__preview",children:t.jsx(de,{htmlType:"button",size:48,type:"bar",onClick:_,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":S==="disabled",children:t.jsx("span",{className:"training-text-box__inner h3",style:H,children:N})}),S!=="disabled"&&t.jsxs("div",{className:"training-text-box__buttons","aria-hidden":S==="disabled",children:[t.jsx(de,{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:!h,useBorder:!1,showTooltipInfo:!0,...!w&&{width:"60px"}}),t.jsx(de,{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:!m,useBorder:!1,showTooltipInfo:!0,...!w&&{width:"60px"}}),t.jsx(de,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:l==="dark"?"moon":"sun-medium",onClick:c,ariaLabel:r("training.toggleBackground","\uBC30\uACBD \uC804\uD658"),variant:l==="dark"?"transparent-white":"transparent-gray"})]}),t.jsx(ra,{message:f,position:"top",onClose:v})]})}function Fo({index:e,stepIndex:n,isLast:a=!1,title:r,useTitleFaded:s,onDone:i,onChange:l,answer:u,wrongAnswers:c,choices:d,multiSelect:p=!1,correctCount:m=0,useDisabledCovered:h=!1,choiceIcons:g,shuffleChoices:y=!0}){const{t:f}=ye.useTranslation(),x=r??f("training.selectConfirm","\uBB38\uC81C\uB97C \uBCF4\uACE0 \uD574\uB2F9\uD558\uB294 \uB0B4\uC6A9\uC744 \uC120\uD0DD\uD558\uC138\uC694."),b=typeof e=="number"?e:-1,C=typeof n!="number"?"disabled":b<n?"done":b===n?"active":"disabled",_=Array.isArray(d)&&d.length?d:typeof u<"u"?[u].concat(Array.isArray(c)?c:[]):void 0,v=c?c.join("||"):"",A=d?d.join("||"):"",[w,N]=o.useState(()=>Array.isArray(_)?y?ya(_):_.slice():void 0);o.useEffect(()=>{Array.isArray(_)&&_.length?N(y?ya(_):_.slice()):N(void 0)},[u,v,A,y]);const[k,B]=o.useState(null),[S,E]=o.useState(()=>new Set);o.useEffect(()=>{B(null),E(new Set)},[A,u,v]);const H=o.useRef(void 0);o.useEffect(()=>{const T=H.current;typeof T=="number"&&typeof n=="number"&&typeof e=="number"&&T>=e&&n<e&&(B(null),E(new Set)),H.current=n},[n,e]);const z=o.useCallback(T=>{if(C!=="active")return;const L=w?.[T];if(L==null)return;const F=L,Z=C==="active"||C==="done";if(p){const J=new Set(S),V=J.has(F);V?J.delete(F):J.add(F),E(J),typeof l=="function"&&l({selectedValues:[...J],__ts:Date.now()}),Z&&(typeof m=="number"&&m>0?J.size>=m:!V)&&typeof i=="function"&&C==="active"&&i({selectedValues:[...J],__ts:Date.now()})}else B(F),typeof l=="function"&&l({selectedIndex:T,selectedValue:F,__ts:Date.now()}),Z&&typeof i=="function"&&C==="active"&&i({selectedIndex:T,selectedValue:F,__ts:Date.now()})},[w,C,p,l,i,m,S]),U=`training-step__buttons${Array.isArray(w)&&w.length>3?" training-step__buttons--wrap-3":""}`;return t.jsx(Gn,{index:e,stepIndex:n,isLast:a,title:x,useTitleFaded:s,children:t.jsx("div",{className:U,children:Array.isArray(w)&&w.length>0?w.map((T,L)=>t.jsx(de,{htmlType:"button",size:56,type:"bar",onClick:()=>z(L),ariaLabel:String(T),label:T,useLabel:!0,icon:g?g[String(T)]:void 0,variant:"default",disabled:C==="disabled",selected:p?S.has(T):k===T,useDisabledCovered:h,minWidth:0},String(T))):null})})}function Oo({index:e,stepIndex:n,isLast:a=!1,title:r,onDone:s,onChange:i,context:l,demoSelected:u}){const{t:c}=ye.useTranslation(),d=r??c("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,m=typeof n!="number"?"disabled":p<n?"done":p===n?"active":"disabled",h=l&&typeof l=="object"?l.sentence||"":typeof l=="string"?l:"",g=l&&typeof l=="object"?l.choices:void 0,[y,f]=o.useState(u??null),x=`${String(h)}\0${JSON.stringify(g??null)}`,[b,C]=o.useState(x);b!==x&&(C(x),u==null&&f(null));const[_,v]=o.useState(u);Object.is(_,u)||(v(u),f(u??null));const A=o.useRef(void 0);o.useEffect(()=>{const B=A.current;typeof B=="number"&&typeof n=="number"&&typeof e=="number"&&B>=e&&n<e&&u==null&&f(null),A.current=n},[n,e,u]);const w=o.useCallback(B=>{const S=typeof B=="object"&&B!==null?Object.assign({},B,{__ts:Date.now()}):{value:B,__ts:Date.now()};typeof i=="function"&&i(S),m==="active"&&typeof s=="function"&&s(S)},[i,m,s]),N=o.useCallback(()=>{m==="active"&&(f(!1),w(!1))},[w,m]),k=o.useCallback(()=>{m==="active"&&(f(!0),w(!0))},[w,m]);return t.jsxs(Gn,{index:e,stepIndex:n,isLast:a,title:d,onDone:s,useTitleFaded:!1,children:[t.jsx(Qu,{context:l,state:m}),t.jsx("div",{className:"training-step__buttons",children:Array.isArray(g)&&g.length>0?g.slice(0,6).map((B,S)=>t.jsx(de,{htmlType:"button",size:56,type:"bar",onClick:()=>{m==="active"&&(f(S),w&&w(S))},disabled:m==="disabled",ariaLabel:String(B),label:B,variant:m,selected:y===S},S)):t.jsxs(t.Fragment,{children:[t.jsx(de,{htmlType:"button",size:56,type:"bar",onClick:N,disabled:m==="disabled",icon:"x",ariaLabel:c("training.notHeard","\uC548 \uB4E4\uB838\uC5B4\uC694."),label:c("training.notHeard","\uC548 \uB4E4\uB838\uC5B4\uC694."),variant:"default",selected:y===!1}),t.jsx(de,{htmlType:"button",size:56,type:"bar",onClick:k,disabled:m==="disabled",icon:"circle",ariaLabel:c("training.heardWell","\uC798 \uB4E4\uB838\uC5B4\uC694."),label:c("training.heardWell","\uC798 \uB4E4\uB838\uC5B4\uC694."),variant:"default",selected:y===!0})]})})]})}function Ho({index:e,stepIndex:n,isLast:a=!1,title:r,onDone:s,btnLabel:i,soundSrc:l,bucketPath:u,usePreviewTextBtn:c,previewText:d=null,onPreviewTextBtn:p,disabled:m,_pageIndex:h,showSoundWaveForm:g,showNoiseWaveForm:y}){const{t:f}=ye.useTranslation(),x=r??f("training.listenTitle","\uC81C\uC2DC\uD558\uB294 \uBB38\uC7A5\uC744 \uB4E4\uC5B4\uC8FC\uC138\uC694."),b=m??(typeof n=="number"&&typeof e=="number"?e>n:!1);return t.jsx(Gn,{index:e,stepIndex:n,isLast:a,title:x,onDone:s,titleProps:{usePreviewTextBtn:c,previewText:d,onPreviewTextBtn:p},children:t.jsx(Po,{soundSrc:l,ttsText:l?null:d??x,bucketPath:u,btnLabel:i||f("training.listenButton","\uBB38\uC7A5 \uB4E3\uAE30"),disabled:b,className:"training-step__listen-sticky",showSoundWaveForm:g,showNoiseWaveForm:y},`audio-p${h??0}-s${e}`)})}const a3=[];function zo({index:e,stepIndex:n,isLast:a=!1,title:r,onDone:s,onChange:i,context:l=a3}){const{t:u}=ye.useTranslation(),c=r??u("training.orderListDefault","\uBB38\uC7A5\uC744 \uB4E4\uC740 \uC21C\uC11C\uB300\uB85C \uBC30\uCE58\uD558\uC138\uC694."),d=R=>typeof R=="string"?R:R&&(R.context||R.sentence||R.question||"")||"",[p,m]=o.useState(Array.isArray(l)?l:[]),[h,g]=o.useState(()=>(p||[]).map((R,D)=>({id:D,text:d(R)}))),y=o.useMemo(()=>typeof n!="number"||typeof e!="number"?"disabled":e<n?"done":e===n?"active":"disabled",[n,e]),f=y!=="disabled",x=o.useRef(void 0);o.useEffect(()=>{if(x.current===l)return;x.current=l;const R=Array.isArray(l)?l:[];m(R);const D=(I=>{const j=(I||[]).map((ae,K)=>({id:K,text:d(ae)}));if(j.length<=1)return j;const O=(ae,K)=>{if(ae.length!==K.length)return!1;for(let ne=0;ne<ae.length;ne++)if(ae[ne].text!==K[ne].text)return!1;return!0};let $=ya(j),Y=0;for(;O($,j)&&Y<20;)$=ya(j),Y+=1;return $})(R);g(D);try{if(typeof i=="function"){const I=D.filter((j,O)=>j.text===d(R[O])).length;i({shuffled:D,score:I,total:(R||[]).length,initial:!0,__ts:Date.now()})}if(typeof s=="function"&&y==="active"){const I=D.filter((j,O)=>j.text===d(R[O])).length;s({shuffled:D,score:I,total:(R||[]).length,initial:!0,__ts:Date.now()})}}catch{}},[l]);const b=(R,D)=>{const I=[...h],j=R+D;if(j<0||j>=I.length)return;const O=I[j];I[j]=I[R],I[R]=O,L(I);try{if(typeof s=="function"&&y==="active"){const $=I.filter((Y,ae)=>Y.text===d(p[ae])).length;s({shuffled:I,score:$,total:(p||[]).length,__ts:Date.now()})}}catch{}},[C,_]=o.useState(null),v=o.useRef(null),A=o.useRef(null),w=o.useRef(null),N=o.useRef(null),k=o.useRef(null),B=o.useRef({x:0,y:0}),S=o.useRef(null),E=o.useRef({dx:0,dy:0}),H=()=>{if(S.current!==null)return;const R=()=>{if(!v.current){S.current=null;return}S.current=requestAnimationFrame(R);const D=B.current,I=E.current||{dx:0,dy:0};v.current&&(v.current.style.transform=`translate3d(${D.x-I.dx}px, ${D.y-I.dy}px, 0)`)};S.current=requestAnimationFrame(R)},z=o.useRef(new Map),U=o.useRef(new Map),T=()=>{const R=new Map;return z.current.forEach((D,I)=>{D&&D.getBoundingClientRect&&R.set(I,D.getBoundingClientRect())}),R},L=R=>{const D=T();g(R);try{if(typeof i=="function"){const I=R.filter((j,O)=>j.text===d(p[O])).length;i({shuffled:R,score:I,total:(p||[]).length,__ts:Date.now()})}}catch{}requestAnimationFrame(()=>{const I=T();R.forEach(j=>{const O=D.get(j.id),$=I.get(j.id),Y=z.current.get(j.id);if(!Y||!O||!$)return;const ae=O.top-$.top;ae&&(Y.style.transition="none",Y.style.transform=`translateY(${ae}px)`,requestAnimationFrame(()=>{Y.style.transition="transform 420ms cubic-bezier(.22,.9,.39,1)",Y.style.transform="";const K=()=>{Y.style.transition="",Y.removeEventListener("transitionend",K)};Y.addEventListener("transitionend",K)}))})})},F=(R,D)=>{try{try{D.dataTransfer?.setData("text/plain",String(R))}catch{}try{D.dataTransfer&&(D.dataTransfer.effectAllowed="move")}catch{}try{const I=document.createElement("div");I.style.cssText="position:absolute;top:-9999px;left:-9999px;width:1px;height:1px;opacity:0;pointer-events:none;",document.body.appendChild(I),D.dataTransfer?.setDragImage(I,0,0),requestAnimationFrame(()=>{try{document.body.removeChild(I)}catch{}})}catch{}}catch{}_(R);try{const I=h[R],j=document.createElement("div");j.className="order-list__dragging-object order-list__dragging-object--visible",j.textContent=I&&I.text?I.text:"",document.body.appendChild(j),v.current=j;const O=z.current.get(I.id);let $=D.clientX||0,Y=D.clientY||0;try{if(O&&O.getBoundingClientRect){const pe=O.getBoundingClientRect();$=pe.left+pe.width/2,Y=pe.top+pe.height/2}}catch{}const ae=j.getBoundingClientRect(),K=ae.width/2,ne=ae.height/2;E.current={dx:K,dy:ne},j.style.transition="none",B.current={x:$,y:Y},j.style.transform=`translate3d(${$-K}px, ${Y-ne}px, 0)`,requestAnimationFrame(()=>{try{j.style.transition=""}catch{}H()});const be=pe=>{const q=pe;B.current={x:q.clientX,y:q.clientY},H()};w.current=be,document.addEventListener("mousemove",be);const ue=pe=>{const q=pe;B.current={x:q.clientX,y:q.clientY},H()};A.current=ue,document.addEventListener("dragover",ue);try{D.dataTransfer?.setData("text/plain",String(R));try{D.dataTransfer?.setData("application/json",JSON.stringify({idx:R}))}catch{}}catch{}}catch{}},Z=(R,D)=>{D.preventDefault();try{D.dataTransfer&&(D.dataTransfer.dropEffect="move")}catch{}try{k.current!==null&&(clearTimeout(k.current),k.current=null);const I=D.currentTarget&&D.currentTarget.closest?D.currentTarget.closest(".order-list__item"):null;if(I&&N.current!==I){if(N.current)try{N.current.classList.remove("drag-over")}catch{}try{I.classList.add("drag-over")}catch{}N.current=I}}catch{}},J=(R,D)=>{D.preventDefault();const I=D.dataTransfer?.getData("text/plain")||"",j=I?parseInt(I,10):C,O=R;if(typeof j!="number"||isNaN(j)||j===O){_(null),W(),V();return}const $=kC(h,j,O);L($),_(null),V();try{if(typeof s=="function"&&y==="active"){const Y=$.filter((ae,K)=>ae.text===d(p[K])).length;s({shuffled:$,score:Y,total:(p||[]).length,__ts:Date.now()})}}catch{}try{requestAnimationFrame(()=>{const Y=document.querySelectorAll(".order-list .order-list__item")[O];if(!Y)return;const ae=Y.querySelector(".order-list__slot")||Y;try{ae.classList.add("pulse"),ae.offsetHeight,ae.classList.add("to-dark");const K=()=>{ae.classList.remove("pulse","to-dark"),ae.removeEventListener("transitionend",K)};ae.addEventListener("transitionend",K)}catch{}})}catch{}W()},V=()=>{if(v.current){try{document.body.removeChild(v.current)}catch{}v.current=null}A.current&&(document.removeEventListener("dragover",A.current),A.current=null),w.current&&(document.removeEventListener("mousemove",w.current),w.current=null),S.current!==null&&(cancelAnimationFrame(S.current),S.current=null)},P=()=>{_(null),W(),V()};o.useEffect(()=>()=>V(),[]);const W=()=>{try{if(k.current!==null&&(clearTimeout(k.current),k.current=null),N.current){try{N.current.classList.remove("drag-over")}catch{}N.current=null}document.querySelectorAll(".order-list .order-list__item").forEach(R=>R.classList.remove("drag-over"))}catch{}};return o.useEffect(()=>{try{const R=Math.max(1,(h||[]).length);h.forEach((D,I)=>{const j=U.current.get(D.id);if(!j)return;let O=50;R>1&&(O=Math.round(I/(R-1)*100));try{j.style.setProperty("--marker-pos",O+"%")}catch{}})}catch{}},[h]),o.useEffect(()=>()=>{V(),k.current!==null&&(clearTimeout(k.current),k.current=null)},[]),t.jsx(Gn,{index:e,stepIndex:n,isLast:a,title:c,children:t.jsx("div",{className:"order-list",children:h.map((R,D)=>{const I=Math.max(1,(h||[]).length),j=I>1?Math.round(D/(I-1)*100):50;return t.jsx("div",{className:"order-list__item",children:t.jsxs("div",{className:"order-list__slot","data-disabled":y==="disabled","aria-disabled":y==="disabled",children:[y!=="disabled"?t.jsx("div",{className:"order-list__marker caption-1",style:{"--marker-pos":j+"%"},ref:O=>{const $=U.current;O?$.set(R.id,O):$.delete(R.id)},children:t.jsx("span",{className:"order-list__slot-number button-1",children:D+1})}):null,t.jsxs("div",{ref:O=>{const $=z.current;O?$.set(R.id,O):$.delete(R.id)},className:`order-list__draggable ${C===D?"dragging":""}`,"data-disabled":y==="disabled","aria-disabled":y==="disabled",tabIndex:y==="disabled"?-1:0,draggable:f,onDragStart:f?O=>F(D,O):void 0,onDragEnter:f?O=>Z(D,O):void 0,onDragOver:f?O=>Z(D,O):void 0,onDragLeave:f?()=>{try{k.current!==null&&clearTimeout(k.current),k.current=setTimeout(()=>{try{const O=document.querySelectorAll(".order-list .order-list__item");O&&O[D]&&(O[D].classList.remove("drag-over"),N.current===O[D]&&(N.current=null))}catch{}},80)}catch{}}:void 0,onDrop:f?O=>J(D,O):void 0,onDragEnd:f?P:void 0,children:[t.jsx("span",{className:"order-list__item-text body-2",children:R.text}),f?t.jsxs("span",{className:"order-list__item-buttons",children:[t.jsx(de,{htmlType:"button",size:32,type:"dot",onClick:()=>b(D,-1),ariaLabel:u("training.up"),icon:"chevron-up",variant:"transparent-gray",width:48,useFaded:"true",disabled:D===0,useBorder:!1,useDisabledInvisible:!0}),t.jsx(de,{htmlType:"button",size:32,type:"dot",onClick:()=>b(D,1),ariaLabel:u("training.down"),icon:"chevron-down",variant:"transparent-gray",width:48,useFaded:"true",disabled:D===h.length-1,useBorder:!1,useDisabledInvisible:!0})]}):null]})]})},R.id)})})})}const r3=8e3;function o3(e,n){return new Promise(a=>{let r=!1;const s=()=>{r||(r=!0,a())};e.then(s,s),setTimeout(s,n)})}function ec({index:e,stepIndex:n,isLast:a=!1,title:r,onDone:s,onChange:i,context:l=[],selectable:u=!1,hideLabel:c=!1,hideAudio:d=!1,maxCards:p}){const{t:m}=ye.useTranslation(),h=r??m("training.cardInstructions","\uB0B1\uB9D0 \uCE74\uB4DC\uB97C \uBCF4\uACE0 \uC18C\uB9AC\uB97C \uB4E3\uACE0 \uD655\uC778\uD558\uC138\uC694."),g=o.useMemo(()=>Array.isArray(l)?l:l&&l.items||[],[l]),y=p??3,f=(g||[]).slice(0,y);(g||[]).length>y&&console.warn(`TrainingStepCard: ${g.length} items passed but only ${y} shown`);const x=typeof e=="number"?e:-1,b=typeof n!="number"?"disabled":x<n?"done":x===n?"active":"disabled",[C,_]=o.useState(null),v=o.useRef([]),[A,w]=o.useState(!1),N=o.useRef(null),k=o.useRef(!0);o.useEffect(()=>(k.current=!0,()=>{k.current=!1}),[]);const B=o.useMemo(()=>g.map(U=>U?.id??U?.word??"").join("|"),[g]);o.useEffect(()=>{_(null)},[B]);const S=o.useRef(void 0);o.useEffect(()=>{const U=S.current;typeof U=="number"&&typeof n=="number"&&typeof e=="number"&&U>=e&&n<e&&_(null),S.current=n},[n,e]);const E=o.useCallback((U,T)=>{if(u)return;const L={item:U,index:T,__ts:Date.now()};try{typeof i=="function"&&i(L)}catch{}if(b==="active"&&typeof s=="function")try{s(L)}catch{}},[u,i,b,s]),H=o.useCallback(async()=>{if(A||b==="disabled")return;w(!0);let U=!1;const T=new Promise(L=>{N.current=()=>{U=!0,L()}});try{for(let L=0;L<f.length&&!(!k.current||U);L++){const F=v.current[L];F&&await Promise.race([o3(F.play(),r3),T])}}finally{N.current=null,w(!1)}},[A,b,f.length]),z=o.useCallback((U,T)=>{if(b!=="active")return;_(T);const L={selectedValue:U.word||U.title||"",selectedIndex:T,item:U,__ts:Date.now()};try{typeof i=="function"&&i(L)}catch{}if(b==="active"&&typeof s=="function")try{s(L)}catch{}},[i,b,s]);return t.jsx(Gn,{index:e,stepIndex:n,isLast:a,title:h,onDone:s,titleProps:{usePlayAllBtn:!d&&f.length>0,onPlayAll:H,playAllActive:A},children:t.jsx("div",{className:"training-step__cards",onClickCapture:U=>{const T=N.current;if(!T)return;const L=U.target;L&&typeof L.closest=="function"&&L.closest(".training-word-card__bottom")&&T()},children:f.length===0?t.jsx("div",{className:"training-step__empty",children:m("training.noCards","\uCE74\uB4DC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")}):f.map((U,T)=>t.jsx(_o,{ref:L=>{v.current[T]=L},item:U,disabled:b==="disabled",onPlayDone:()=>E(U,T),selectable:u,selected:u&&C===T,onSelect:u?()=>z(U,T):void 0,flipDelay:T*120,hideLabel:c,hideAudio:d},U&&U.id||T))})})}const s3=160,i3={\uBCF4\uCCAD\uAE30:"hearingAid",\uC778\uACF5\uC640\uC6B0:"cochlearImplant"};function l3(e,n){const a=i3[e];return a?n(`device.type.${a}`,{defaultValue:e}):e}const tc=()=>{};function Mn(e){const n=o.useId();if(!("variant"in e)){const{label:b,sub:C,onClick:_,children:v,align:A="horizontal",icon:w,useFullWidth:N=!1}=e,k=B=>{_&&B.target===B.currentTarget&&(B.key==="Enter"||B.key===" ")&&(B.preventDefault(),_())};return t.jsxs("div",{className:De("panel-row",A==="vertical"?"panel-row--vertical":"",N?"panel-row--label-fixed panel-row--fill":"",_?"panel-row--clickable":""),onClick:_,onKeyDown:_?k:void 0,role:_?"button":void 0,tabIndex:_?0:void 0,children:[w!=null&&t.jsx("div",{className:"panel-row__icon",children:w}),b!=null&&t.jsxs("div",{className:"panel-row__left",children:[t.jsx("div",{className:"panel-row__label body-3",children:b}),C&&t.jsx("div",{className:"panel-row__sub caption-1",children:C})]}),t.jsx("div",{className:"panel-row__right",children:v})]})}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(Ta,{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:s,onClick:i,required:l,error:u,align:c="horizontal",useFullWidth:d=!1,icon:p}=e,m=a==="button"?void 0:i;let h=null;const g=a==="toggle"?`panel-toggle-${n}`:void 0,y=u?`panel-error-${n}`:void 0;if(a==="toggle"){const b=e;h=t.jsx(Hl,{checked:b.checked,onChange:b.onChange,id:g})}else if(a==="segmented"){const b=e;h=t.jsx(An,{options:b.options,value:b.value,onChange:b.onChange,size:b.size??40,ariaLabel:r})}else if(a==="dropdown"){const b=e,C=b.dropdowns?.length?t.jsx("div",{className:`panel-row__dropdown-group${d?" panel-row__dropdown-group--full":""}`,children:b.dropdowns.map((_,v)=>t.jsx("div",{className:d?"panel-row__dropdown-item--full":void 0,children:t.jsx(sn,{options:_.options,value:_.value,onChange:_.onChange,placeholder:_.placeholder,block:d,error:!!u,ariaDescribedBy:y,ariaLabel:_.ariaLabel??([r,_.placeholder].filter(Boolean).join(" ")||void 0)})},v))}):t.jsx(sn,{options:b.options??[],value:b.value??"",onChange:b.onChange??tc,block:d,error:!!u,ariaLabel:r,ariaDescribedBy:y});h=u?t.jsxs("div",{className:`panel-row__dropdown-error-wrap${d?" panel-row__dropdown-error-wrap--full":""}`,children:[C,t.jsx("span",{id:y,className:"caption-1 panel-row__error",role:"alert",children:u})]}):C}else if(a==="button"){const b=e;b.buttons?.length?h=t.jsx("div",{className:"panel-row__button-group",children:b.buttons.map((C,_)=>t.jsx(de,{htmlType:"button",size:C.btnSize??40,variant:C.btnVariant??"default",disabled:C.disabled,onClick:C.onClick,children:C.label},_))}):h=t.jsx(de,{htmlType:"button",size:b.btnSize??40,variant:b.btnVariant??"default",disabled:b.disabled,onClick:b.onClick,children:b.buttonLabel})}else if(a==="text"){const b=e;h=t.jsx("span",{className:`panel-row__text body-2${d?" panel-row__text--full":""}`,style:b.valueColor?{color:b.valueColor}:void 0,children:b.value})}else if(a==="input"){const b=e;h=t.jsxs("div",{className:`panel-row__input-wrap${d?" panel-row__input-wrap--full":""}`,children:[t.jsx(Un,{value:b.value,onChange:b.onChange??tc,onKeyDown:b.onKeyDown,onEnter:b.onEnter,placeholder:b.placeholder,ghostText:b.ghostText,ghostHint:b.ghostHint,inputMode:b.inputMode,readOnly:b.readOnly,disabled:b.disabled,type:b.type,autoComplete:b.autoComplete,maxLength:b.maxLength,showCount:b.showCount,multiline:b.multiline,rows:b.rows,fullWidth:d,error:u,ariaLabel:r,required:l}),b.helperText&&t.jsx("div",{className:"panel-row__helper caption-1",children:b.helperText})]})}else a==="custom"&&(h=e.children);u&&a!=="input"&&a!=="dropdown"&&(h=t.jsxs("div",{className:`panel-row__dropdown-error-wrap${d?" panel-row__dropdown-error-wrap--full":""}`,children:[h,t.jsx("span",{id:y,className:"caption-1 panel-row__error",role:"alert",children:u})]}));const f=a==="input"||a==="dropdown"||(a==="text"||a==="custom")&&d,x=b=>{m&&b.target===b.currentTarget&&(b.key==="Enter"||b.key===" ")&&(b.preventDefault(),m())};return t.jsxs("div",{className:De("panel-row",c==="vertical"?"panel-row--vertical":"",f?"panel-row--label-fixed":"",a==="text"?"panel-row--text":"",m?"panel-row--clickable":""),onClick:m,onKeyDown:m?x:void 0,role:m?"button":void 0,tabIndex:m?0:void 0,children:[p!=null&&t.jsx("div",{className:"panel-row__icon",children:p}),t.jsxs("div",{className:"panel-row__left",children:[g?t.jsxs("label",{htmlFor:g,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:"*"})]}),s&&t.jsx("div",{className:"panel-row__sub caption-1",children:s})]}),t.jsx("div",{className:"panel-row__right",children:h})]})}function nc(e){const n=e.productName||e.brand,a=[e.brand,e.fitType].filter(r=>!!r&&r!==n);return[...new Set(a)].join(" \xB7 ")}function u3({devices:e,onRelease:n,emptyLabel:a}){const{t:r}=ye.useTranslation();return t.jsx("div",{className:"panel-row panel-row--device",children:["\uC88C","\uC6B0"].map(s=>{const i=e[s],l=s==="\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(de,{htmlType:"button",size:32,type:"dot",icon:"x",ariaLabel:`${l} ${r("customers.device.unwear","\uCC29\uC6A9 \uD574\uC81C")}`,showTooltipInfo:r("customers.device.unwear","\uCC29\uC6A9 \uD574\uC81C"),onClick:()=>n(s)})]}),i?t.jsxs("div",{className:"panel-row__device-info",children:[t.jsxs("span",{className:"panel-row__device-kind",children:[i.device&&t.jsx(yt,{size:"small",variant:ou(i.device),fill:"soft",label:l3(i.device,r)}),nc(i)&&t.jsx("span",{className:"panel-row__device-detail body-3",children:nc(i)})]}),t.jsx("span",{className:"panel-row__device-name body-2b",children:i.productName||i.brand}),yo(i.wornYear,i.wornMonth,i.wornDay)&&t.jsx("span",{className:"panel-row__device-date caption-1",children:r("customers.device.wornSince",{date:yo(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")})]},s)})})}function cr({title:e,titleLevel:n=2,icon:a,disc:r,actions:s,size:i="medium",minHeight:l,maxWidth:u,className:c,scrollable:d,scrollbarGutter:p="auto",compactRows:m=!1,useBorder:h=!0,useBg:g=!0,useRowBorder:y=!0,labelWidth:f,form:x=!1,loading:b,empty:C,children:_}){const v=De("panel",`panel--${i}`,x?"panel--form":"",l!==void 0?"panel--fill":"",h?"":"panel--no-border",g?"":"panel--no-bg",y?"":"panel--no-row-border",m?"panel--compact-rows":"",c),A={};l!==void 0&&(A.minHeight=l),u!==void 0&&(A.maxWidth=typeof u=="number"?`${u}px`:u),f!==void 0&&(A["--panel-label-width"]=typeof f=="number"?`${f}px`:f);const w=n?`h${n}`:"div";return t.jsxs("div",{className:v,style:Object.keys(A).length?A:void 0,children:[(!!e||r!=null)&&t.jsxs("div",{className:De("panel__header",r!=null?"panel__header--with-disc":""),children:[a&&t.jsx(Ke,{icon:a,label:typeof e=="string"?e:void 0,className:"panel__icon"}),t.jsxs("div",{className:"panel__title-group",children:[!!e&&t.jsx(w,{className:`panel__title ${r!=null?"body-3b":"h5b"}`,children:e}),r!=null&&t.jsx("p",{className:"panel__disc caption-1",children:r})]}),s&&t.jsx("div",{className:"panel__actions",children:s})]}),b?t.jsx(Mn,{variant:"loading"}):C!=null&&o.Children.toArray(_).length===0?t.jsx(Mn,{variant:"empty",children:C}):d?t.jsx("div",{className:De("panel__body--scroll",p==="stable"&&"panel__body--gutter-stable"),children:_}):_]})}function c3({cols:e=2,children:n}){return t.jsx("div",{className:"panel-grid",style:{"--panel-grid-cols":e},children:n})}function d3(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 ac(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"}]}d3(Et.t.bind(Et)),ac(Et.t.bind(Et));const Vo="none",p3=.5,m3=1.5,h3=.25;function Wo({title:e,valueLabel:n,value:a,min:r,max:s,step:i,tickStep:l,size:u,onChange:c}){return t.jsxs(Mn,{variant:"custom",label:e,useFullWidth:!0,children:[t.jsx(eu,{value:a,onChange:c,min:r,max:s,step:i,size:u,showBgTick:!0,tickStep:l,ariaLabel:e,className:"noise-settings__slider-input"}),t.jsx("div",{className:"noise-settings__value button-1",children:n})]})}function rc({anchorRect:e,onClose:n}){const{t:a}=ye.useTranslation(),r=tn("(max-width: 767px)")?40:24,s=ir(),i=$a(s?.settings??Pa),l=s?.settings.type??"defaultNoise",u=s?.settings.enabled??!0,c=s?.playbackRate??1,d=s?.mainVolume??1,p=Math.round(d*100),m=o.useCallback(f=>{try{s?.setMainVolume(Math.max(0,Math.min(1,f/100)))}catch{}},[s]),h=o.useCallback(f=>{try{s?.setPlaybackRate(f)}catch{}},[s]),g=o.useCallback(f=>{const x=Math.min(La,Math.max(0,Math.round(f*10)/10));try{s?.setSettings({noiseRatio:x})}catch{}},[s]),y=o.useCallback(f=>{try{f===Vo?s?.setSettings({enabled:!1}):s?.setSettings({type:f,enabled:!0})}catch{}},[s]);return t.jsx(rn,{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(de,{htmlType:"button",size:40,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,ariaLabel:a("common.close","\uB2EB\uAE30"),onClick:n})]}),children:t.jsxs(cr,{className:"noise-settings",useBorder:!1,labelWidth:72,children:[t.jsx(Wo,{title:a("training.playVolumeTitle","\uC804\uCCB4 \uC18C\uB9AC"),valueLabel:`${p}%`,value:p,min:0,max:100,step:10,size:r,onChange:m}),t.jsx(Wo,{title:a("training.playSpeedTitle","\uC7AC\uC0DD \uC18D\uB3C4"),valueLabel:`${c.toFixed(2)}x`,value:c,min:p3,max:m3,step:h3,size:r,onChange:h}),t.jsx(Mn,{variant:"custom",label:a("training.noiseTypeTitle","\uC18C\uC74C \uC885\uB958"),useFullWidth:!0,children:t.jsx(An,{ariaLabel:a("training.noiseTypeTitle","\uC18C\uC74C \uC885\uB958"),size:40,shape:"rounded",options:[{key:Vo,label:a("training.noise.type.none","\uC5C6\uC74C")},...ac(a).map(f=>({key:f.value,label:f.label}))],value:u?l:Vo,onChange:y})}),t.jsx(Wo,{title:a("training.noiseRatioTitle","\uC18C\uC74C \uBE44\uC728"),valueLabel:a("training.noiseRatioValue","{{ratio}}\uBC30",{ratio:i.toFixed(1)}),value:i,min:0,max:La,step:zu,size:r,onChange:g})]})})}function oc({useNoiseSettingBtn:e=!1,onSettings:n,onNext:a,onResult:r,stepIndex:s=0,stepCount:i=0,pageIndex:l=0,pageCount:u=1,resultOpen:c=!1}){const{t:d}=ye.useTranslation(),[p,m]=o.useState(!1),[h,g]=o.useState(null),[y,f]=o.useState(!1),x=o.useRef(null),b=o.useRef(null),C=ir(),_=u>0,v=_&&l<u-1,A=!_||l>=u-1,w=s===Math.max(0,i);o.useEffect(()=>{e||(m(!1),g(null))},[e]);const N=o.useCallback(()=>{m(!1),g(null)},[]),k=o.useCallback(()=>{if(p){m(!1),g(null);return}const F=x?.current?.getBoundingClientRect();F&&g(F),n?.(),m(!0)},[p,n]),B=o.useCallback(()=>{if(p){m(!1),g(null);return}const F=b?.current?.getBoundingClientRect();F&&g(F),n?.(),m(!0)},[p,n]),S=tn("(max-width: 767px)"),E=o.useRef(null),[H,z]=o.useState(null),U=o.useCallback(()=>{f(F=>{const Z=!F;return z(Z?E.current?.getBoundingClientRect()??null:null),Z})},[]),T=o.useCallback(()=>{f(!1),z(null)},[]);o.useEffect(()=>{c&&(f(!1),z(null))},[c]);const L=t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"pp-bottom__meter",children:[t.jsx("span",{className:"pp-bottom__meter-label caption-1",children:d("training.meter.sentence","\uC7AC\uC0DD")}),t.jsx(fo,{analyser:C?.mainAnalyser??null,orientation:"horizontal",length:112,label:"db",labelPos:"left",ariaLabel:d("training.meter.sentence","\uC7AC\uC0DD")})]}),t.jsxs("div",{className:"pp-bottom__meter",children:[t.jsx("span",{className:"pp-bottom__meter-label caption-1",children:d("training.meter.noise","\uC18C\uC74C")}),t.jsx(fo,{analyser:C?.noiseAnalyser??null,orientation:"horizontal",length:112,label:"db",labelPos:"left",ariaLabel:d("training.meter.noise","\uC18C\uC74C")})]})]});return Xu(e&&p,()=>typeof document<"u"?document.querySelector(".noise-settings__header")?.closest(".tooltip-content")??null:null,()=>[x.current,b.current].map(F=>F?.querySelector("button")??null).find(F=>!!F&&F.getClientRects().length>0)??x.current?.querySelector("button")??null),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:x,className:"pp-bottom__tooltip-trigger","data-tooltip-ignore":!0,children:t.jsx(de,{htmlType:"button",size:56,type:"bar",icon:"settings",onClick:k,className:p?"is-selected":void 0,"aria-expanded":p,"aria-haspopup":"dialog",ariaLabel:d("training.trainingSettingsTitle","\uD6C8\uB828 \uC124\uC815"),label:d("training.trainingSettingsTitle","\uD6C8\uB828 \uC124\uC815"),minWidth:140})})}),t.jsx("div",{className:"pp-bottom__settings--mobile",children:t.jsx("div",{ref:b,className:"pp-bottom__tooltip-trigger","data-tooltip-ignore":!0,children:t.jsx(de,{htmlType:"button",size:56,type:"dot",shape:"pill",icon:"settings",onClick:B,className:p?"is-selected":void 0,"aria-expanded":p,"aria-haspopup":"dialog",ariaLabel:d("training.settings","\uC124\uC815")})})})]}):null,e&&t.jsx("div",{ref:E,className:"pp-bottom__meter-trigger","data-tooltip-ignore":!0,children:t.jsx(de,{htmlType:"button",size:40,type:"dot",shape:"pill",icon:"audio-lines",onClick:U,selected:y,"aria-expanded":S?y:void 0,ariaLabel:d("training.meter.toggle","\uC624\uB514\uC624 \uBBF8\uD130 \uD45C\uC2DC")})}),e&&y&&!S&&t.jsx("div",{className:"pp-bottom__meters",children:L})]}),e&&y&&S&&H&&t.jsx(rn,{anchorRect:H,onClose:T,ariaLabel:d("training.meter.toggle","\uC624\uB514\uC624 \uBBF8\uD130 \uD45C\uC2DC"),children:t.jsx("div",{className:"pp-bottom__meters pp-bottom__meters--floating",children:L})}),t.jsxs("div",{className:"pp-bottom__right",children:[A&&t.jsx(de,{htmlType:"button",size:56,type:"bar",icon:"check",onClick:typeof r=="function"?r:a,ariaLabel:d("training.viewResult","\uACB0\uACFC\uBCF4\uAE30"),label:d("training.viewResult","\uACB0\uACFC\uBCF4\uAE30"),variant:"main",disabled:!w}),v&&t.jsx(de,{htmlType:"button",size:56,type:"bar",rightIcon:"chevron-right",align:"right",onClick:a,ariaLabel:d("training.nextQuestion","\uB2E4\uC74C \uBB38\uC81C"),label:d("training.nextQuestion","\uB2E4\uC74C \uBB38\uC81C"),variant:"main",disabled:!w})]}),e&&p&&t.jsx(rc,{anchorRect:h,onClose:N})]})}function sc({title:e,subtitle:n,desc:a,depth:r,icon:s,wrapperStyle:i,iconTooltip:l,pageIndex:u,pageCount:c,progressMax:d,progressIndex:p,onBack:m,onClose:h}){const{t:g}=ye.useTranslation(),y=tn("(max-width: 767px)"),f=Number.isInteger(p)?p:u||0,x=Number.isInteger(d)?d:c||0,b=m||h,C=Array.isArray(r)?y?r[r.length-1]:r.join(" / "):r,_=typeof e=="string"?e.trim():e,v=typeof n=="string"?n.trim():n,A=!!(_||v),w=A?_||v:g("common.emptyTrainingName","\uD6C8\uB828 \uC774\uB984\uC774 \uBE44\uC5B4 \uC788\uC2B5\uB2C8\uB2E4."),N=C||(_?n:void 0),k=y&&typeof N=="string"&&(N.includes(" \xB7 ")||N.includes(" / "))?N.split(/\s[·/]\s/).pop():N,B=o.useMemo(()=>{const S=i&&typeof i=="object"?{...i}:{};return!("width"in S)&&!("height"in S)&&(S.width="40px",S.height="40px"),S},[i]);return t.jsxs("header",{className:"pp-title training-popup-title",children:[t.jsxs("div",{className:"pp-title__left",children:[b?t.jsx(de,{htmlType:"button",size:48,type:"dot",icon:"chevron-left",ariaLabel:g("common.back","\uB4A4\uB85C"),onClick:b,useBorder:!1,iconSize:"large",iconColor:"--color-black",variant:"transparent-gray"}):null,t.jsx("div",{children:s?t.jsx(Tl,{icon:s,label:e,tooltip:l,wrapperStyle:B}):null}),t.jsxs("div",{className:"pp-title__text",children:[k?t.jsx("span",{className:"pp-title__depth caption-1",children:k}):null,t.jsx("span",{className:`pp-title__title h2${A?"":" pp-title__title--empty"}`,children:w}),a?t.jsx("span",{className:"pp-title__description caption-1",children:a}):null]})]}),t.jsx(ru,{max:Math.max(0,x??0),index:Math.max(0,f??0)})]})}function C3(){typeof window<"u"&&window.dispatchEvent(new CustomEvent("speechear.popup.close"))}function f3(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 ic=(e,n)=>{if(!n)return n;const a=typeof Et?.t=="function"?Et.t(e,{defaultValue:n}):void 0;return typeof a=="string"&&a?a:n};function lc(e,n,a){const r=e,s=r?.title||r?.name||(Array.isArray(n)?n[n.length-1]:void 0)||a||"\uD6C8\uB828",i=pi().find(u=>u.key===(r?.category_0||r?.category_main_code)),l=i?.subs?.find(u=>u.key===(r?.category_1||r?.category_sub_code));return{title:s,label:r?.title||s,depth:n,icon:i?.icon,wrapperStyle:i?.color?{"--t-item-fg":i.color}:void 0,iconTooltip:[i?ic(`topic.${i.key}`,i.label):void 0,l?ic(`topic.sub.${l.key}`,l.label):void 0].filter(Boolean).join(" / ")||void 0}}function qo(e){return e&&typeof e=="object"&&typeof e.__ts=="number"?e.__ts:0}function g3(e){const n=e;return Array.isArray(n?.items)?n.items:Array.isArray(e)?e:e?[e]:[]}function b3({idPrefix:e,trainingData:n,depth:a,fallbackTitle:r="\uD6C8\uB828",pages:s=[],emptyMessage:i,buildResults:l,metaPatch:u}){const c=lc(n,a,r),d=typeof u=="function"?u(c)||{}:u||{},p=n?.id||n?.title||s.length;return{id:`${e}:${p}`,meta:{...c,...d},pages:s,emptyMessage:i,buildResults:l}}function y3(e){if(typeof e=="string")return e;if(e&&typeof e=="object"){const n=e;return n.context||n.sentence||n.question||""||""}return""}function v3(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 x3(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 uc(e,n){if(!(!e||typeof e!="object"))return e[`step-${n}`]}function _3(e,n,a,r){return uc(e,n*a+r)}function w3({payload:e,selected:n,choices:a=[],correctAnswers:r=[]}){if(e&&typeof e=="object"){const s=e;if(Array.isArray(s.selectedValues))return r.every(i=>s.selectedValues.includes(i))&&s.selectedValues.every(i=>r.includes(i));if(typeof s.correct=="boolean")return s.correct}if(r.length){if(typeof n=="number"&&Array.isArray(a)&&a.length)return r.some(s=>String(s)===String(a[n]));if(typeof n<"u")return r.some(s=>String(s)===String(n))}}function A3(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 cc=o.createContext(null);function k3(){const e=o.useContext(cc);if(!e)throw new Error("useTrainingPagePopupContext must be used inside TrainingPagePopup");return e}function B3({index:e,stepIndex:n,isLast:a=!1,title:r,choices:s=[],onDone:i,onChange:l}){const{t:u}=ye.useTranslation(),c=typeof e=="number"?e:-1,d=typeof n!="number"?"disabled":c<n?"done":c===n?"active":"disabled",[p,m]=o.useState(()=>s.map(()=>null)),h=JSON.stringify(s),g=s.length;o.useEffect(()=>{m(Array.from({length:g},()=>null))},[h]);const y=o.useRef(void 0);o.useEffect(()=>{const C=y.current;typeof C=="number"&&typeof n=="number"&&typeof e=="number"&&C>=e&&n<e&&m(Array.from({length:g},()=>null)),y.current=n},[n,e,g]);const f=o.useMemo(()=>p.filter(C=>C!==null).length+1,[p]),x=o.useCallback(C=>{if(d!=="active")return;const _=p;let v;if(_[C]!=null){const w=_[C];v=_.map(N=>N!==null&&N>=w?null:N)}else v=[..._],v[C]=f;m(v);const A={selectedOrder:v,words:s,__ts:Date.now()};try{typeof l=="function"&&l(A)}catch{}if(_[C]==null&&v.length>0&&v.every(w=>w!==null))try{typeof i=="function"&&i(A)}catch{}},[d,p,f,l,i,s]),b=r??u("training.selectInOrder","\uB4E4\uC740 \uC21C\uC11C\uB300\uB85C \uCE74\uB4DC\uB97C \uC120\uD0DD\uD558\uC138\uC694.");return t.jsx(Gn,{index:e,stepIndex:n,isLast:a,title:b,onDone:i,children:t.jsx("div",{className:"training-step__cards",children:s.map((C,_)=>t.jsx(_o,{item:{word:C},disabled:d==="disabled",selectable:!0,selected:p[_]!==null,orderRank:p[_],onSelect:()=>x(_),flipDelay:_*120,hideLabel:!1,hideAudio:!0},`${C}-${_}`))})})}function dr(e){return null}dr.__isTrainingPage=!0;function da(e,n){const a=k3();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 dc({_stepIndex:e,_totalSteps:n,...a}){const{index:r,stepIndex:s,isLast:i,onDone:l}=da(e,n);return t.jsx(Ho,{...a,index:r,stepIndex:s,isLast:i,onDone:l})}function pc({_stepIndex:e,_totalSteps:n,...a}){const{index:r,stepIndex:s,isLast:i,onDone:l,onChange:u}=da(e,n);return t.jsx(Fo,{...a,index:r,stepIndex:s,isLast:i,onDone:l,onChange:u})}function mc({_stepIndex:e,_totalSteps:n,...a}){const{index:r,stepIndex:s,isLast:i,onDone:l,onChange:u}=da(e,n);return t.jsx(Oo,{...a,index:r,stepIndex:s,isLast:i,onDone:l,onChange:u})}function hc({_stepIndex:e,_totalSteps:n,...a}){const{index:r,stepIndex:s,isLast:i,onDone:l,onChange:u}=da(e,n);return t.jsx(zo,{...a,index:r,stepIndex:s,isLast:i,onDone:l,onChange:u})}function Cc({_stepIndex:e,_totalSteps:n,...a}){const{index:r,stepIndex:s,isLast:i,onDone:l,onChange:u}=da(e,n);return t.jsx(ec,{...a,index:r,stepIndex:s,isLast:i,onDone:l,onChange:u})}function N3({_stepIndex:e,_totalSteps:n,...a}){const{index:r,stepIndex:s,isLast:i,onDone:l,onChange:u}=da(e,n);return t.jsx(B3,{...a,index:r,stepIndex:s,isLast:i,onDone:l,onChange:u})}function Uo(...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 s of r){if(typeof s=="string"&&s.trim().length)return s.trim();if(typeof s=="number"||typeof s=="boolean")return String(s)}}}return null}function D3(e){return Uo(e?.question,e?.q,e?.sentence,e?.text,e?.prompt,e?.wording)}function fc(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=Uo(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 gc(e){const{score:n,contextsLength:a,results:r=[],subtitle:s,onReplay:i,onClose:l,inline:u=!1,pending:c=!1}=e||{},{t:d}=ye.useTranslation(),p=o.useId(),m=o.useCallback(()=>!c,[c]);o.useEffect(()=>{const C=a??0;if(n!=null&&C>0&&n/C>.5){const _=window.setTimeout(()=>{window.dispatchEvent(new CustomEvent("party:trigger",{detail:{count:140,strength:1.6,duration:2200}}))},0);return()=>window.clearTimeout(_)}},[n,a]);const h=o.useCallback(C=>{const _=fc(C),v=Uo(C?.wording,C?.label);return _===!0?{variant:"main",label:v??d("training.result.heardWell","\uC798 \uB4E4\uC5C8\uC5B4\uC694")}:_===!1?{variant:"danger",label:v??d("training.result.notHeard","\uBABB \uB4E4\uC5C8\uC5B4\uC694")}:{variant:"disabled",label:v??d("training.result.notJudged","\uBBF8\uD310\uC815")}},[d]),g=a??0,y=n??0,f=o.useMemo(()=>Array.isArray(r)?r:[],[r]),x=o.useMemo(()=>f.map(C=>{const _=C??{},v=D3(_)||d("training.result.noContent","(\uB0B4\uC6A9\uC5C6\uC74C)"),{variant:A,label:w}=h(_),N=Array.isArray(_.corrects)?_.corrects:[],k=N.length?N.join(", "):_.answer!=null&&_.answer!==""?String(_.answer):null,B=typeof _.selectedText=="string"?_.selectedText:null,S=fc(_)===!0;return{problem:v,variant:A,label:w,answer:k,selectedText:B,isCorrect:S}}),[f,h,d]),b=o.useMemo(()=>x.some(C=>C.answer!==null||C.selectedText!==null),[x]);return t.jsx(Tn,{onClose:l,closeOnBackdrop:!1,inline:u,ariaLabel:d("training.result.title","\uD6C8\uB828\uC744 \uBAA8\uB450 \uB9C8\uCCE4\uC2B5\uB2C8\uB2E4."),className:"popup--training-result",beforeClose:m,footerClassName:"trp-result__foot",footer:({animateThen:C,closeWithAnimation:_})=>t.jsxs(t.Fragment,{children:[c&&t.jsx("p",{id:p,className:"trp-actions__reason caption-1",role:"status",children:d("training.result.pendingDone","\uACB0\uACFC\uB97C \uACC4\uC0B0\uD558\uB294 \uC911\uC774\uB77C \uC544\uC9C1 \uC644\uB8CC\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4.")}),t.jsxs("div",{className:"trp-actions",children:[t.jsx(de,{htmlType:"button",size:56,type:"bar",label:d("training.result.replay","\uB2E4\uC2DC\uD558\uAE30"),onClick:()=>C(i)}),t.jsx(de,{htmlType:"button",size:56,type:"bar",label:d("training.result.done","\uC644\uB8CC"),variant:"main",onClick:_,disabled:c,onDisabledClick:c?()=>{}:void 0,"aria-describedby":c?p:void 0})]})]}),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:d("training.result.eyebrow","\uD6C8\uB828 \uC644\uB8CC")}),t.jsx("h1",{className:"trp-result__title h2",children:d("training.result.title","\uD6C8\uB828\uC744 \uBAA8\uB450 \uB9C8\uCCE4\uC2B5\uB2C8\uB2E4.")}),s&&t.jsx("p",{className:"trp-result__subtitle body-3",children:s}),t.jsx("div",{className:"trp-score",children:t.jsxs("div",{className:"trp-score__figure","aria-label":d("training.result.scoreAria",{correct:y,total:g}),children:[t.jsx("span",{className:"trp-score__big",children:y}),t.jsx("span",{className:"trp-score__sep",children:"/"}),t.jsx("span",{className:"trp-score__total",children:g})]})})]}),x.length>0&&t.jsx("section",{className:"trp-result__body",children:t.jsxs("div",{className:`result-table${b?" result-table--answer":""}`,role:"table","aria-label":d("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:d("common.col.problem","\uBB38\uC81C")}),b&&t.jsx("span",{role:"columnheader",children:d("training.result.colAnswerSelected","\uC815\uB2F5 \xB7 \uC120\uD0DD")}),t.jsx("span",{className:"col-right",role:"columnheader",children:d("training.result.colJudge","\uD310\uC815")})]}),x.map((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(_+1).padStart(2,"0")}),t.jsx("div",{className:"trp-row__q body-2",children:C.problem})]}),b&&t.jsxs("div",{className:"trp-row__answers",children:[C.answer!==null&&t.jsxs("div",{className:"trp-row__answer-line",children:[t.jsx("span",{className:"trp-row__answer-label answer-correct caption-1",children:d("training.result.colAnswer","\uC815\uB2F5")}),t.jsx("span",{className:"trp-row__answer-value body-2",children:C.answer})]}),t.jsxs("div",{className:"trp-row__answer-line",children:[t.jsx("span",{className:`trp-row__answer-label answer-selected caption-1 ${C.isCorrect?"is-correct":"is-wrong"}`,children:d("training.result.colSelected","\uC120\uD0DD")}),t.jsx("span",{className:`trp-row__answer-value body-2 ${C.isCorrect?"is-correct":"is-wrong"}`,children:C.selectedText??"\u2014"})]})]}),t.jsx("div",{className:"trp-row__judge",children:t.jsx(yt,{variant:C.variant,label:C.label,fill:"soft",minWidth:80})})]},_))]})})]})})}function E3(e){o.useEffect(()=>{if(!e)return;const n=()=>typeof document>"u"||document.visibilityState!=="hidden";let a=null,r=null,s=0,i=0;const l=()=>{const p=Date.now();a==null&&(a=p),r==null&&(r=p)},u=()=>{r!=null&&(s+=Date.now()-r,r=null)};n()&&l();const c=()=>{if(u(),a==null||s-i<1e3||i===0&&s<5e3)return;const p=a+i;i=s,DC({trainingType:e,startedAt:new Date(p).toISOString(),endedAt:new Date(a+s).toISOString()})},d=()=>{n()?l():c()};return typeof document<"u"&&document.addEventListener("visibilitychange",d),typeof window<"u"&&window.addEventListener("pagehide",c),()=>{typeof document<"u"&&document.removeEventListener("visibilitychange",d),typeof window<"u"&&window.removeEventListener("pagehide",c),c()}},[e])}function Go(e,n){return e&&e.id||`page-${n??0}`}function Ko(e,n){return e&&e.key||`step-${n??0}`}function pr(){return{pageIndex:0,stepIndex:0,answersByPage:{}}}function S3(e,n){return typeof e?.props=="function"?e.props(n)||{}:e?.props||{}}const j3=300,T3=()=>{try{return typeof window<"u"&&!!window.matchMedia?.("(prefers-reduced-motion: reduce)").matches}catch{return!1}},Ln=Object.freeze({}),bc=new Set(["LISTEN_IN_NOISE","SHORT_STORY","LONG_STORY","ORDERING_SENTENCE"]);function yc(e){const n=e,a=n?.results||n?.answers||[],r=Array.isArray(a)&&a.length>0?a.length:null,s=Array.isArray(a)?a.filter(i=>i?.correct===!0||i?.isCorrect===!0||i?.score===1||i?.heard===!0||i?.judgement===!0).length:null;return{results:a,correct:r!=null?s:null,total:r}}const M3=e=>t.jsx(gc,{score:e.score,contextsLength:e.contextsLength,results:e.results,onReplay:e.onReplay,onClose:e.onClose,pending:e.pending});function L3(e){const{scenario:n,title:a,subTitle:r,depth:s,icon:i,wrapperStyle:l,iconTooltip:u,pageIndex:c,pageCount:d,stepIndex:p,stepCount:m,onBack:h,onComplete:g,onNext:y,onSettings:f,useNoiseSetting:x=!0,children:b,ariaLabel:C,label:_,buildResults:v,onResult:A,typeKey:w,entryPoint:N,dailyTotal:k,itemRef:B,renderResultPopup:S,noiseOverride:E}=e;E3(w&&!bc.has(w)?w:"");const H=o.useRef(0);o.useEffect(()=>{H.current=Date.now()},[]);const{t:z}=ye.useTranslation(),U=A,T=!!n,L=n?.id||null,F=n?.meta||{},Z=Array.isArray(n?.pages)?n.pages:[],J=Array.isArray(b)||o.isValidElement(b)&&typeof b!="function"?o.Children.toArray(b).filter(o.isValidElement):[],V=J.length>0,P=se=>se===dr||se?.__isTrainingPage===!0,W=V&&J.some(se=>P(se.type)),R=W?J.filter(se=>P(se.type)).map((se,xe)=>{const G=se.props||{};return{id:`children-page-${xe}`,steps:o.Children.toArray(G.children).filter(o.isValidElement),pageTop:G.pageTop||G.top||null,pageBottom:G.pageBottom||G.bottom||null}}):[{id:"children-page-0",steps:J}],D=V&&!T&&typeof b!="function",I=D?Math.max(1,R.length):0;o.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")}},[]),o.useEffect(()=>{if(typeof document>"u"||!document.body)return;const se=document.body;return se.dataset.ihabTrainingPopupCount=String(Number(se.dataset.ihabTrainingPopupCount||"0")+1),se.classList.add("ihab-training-popup-open"),()=>{const xe=Number(se.dataset.ihabTrainingPopupCount||"1")-1;xe>0?se.dataset.ihabTrainingPopupCount=String(xe):(delete se.dataset.ihabTrainingPopupCount,se.classList.remove("ihab-training-popup-open"))}},[]),o.useEffect(()=>{if(!(typeof document>"u"||!document.body))return B4()},[]);const[j,O]=o.useState({...Pa,enabled:!1}),$=o.useRef(j);o.useEffect(()=>{$.current=j},[j]);const Y=o.useRef(E),ae=o.useRef(!1),K=o.useRef(null);o.useEffect(()=>{let se=!1;const xe=G=>{if(se)return;ae.current=!0;const le=G?Ra({...Pa,enabled:!1},G):{...Pa},ce=K.current;K.current=null;const _e=ce?Ra(le,ce):le;$.current=_e,O(_e),ce&&!Y.current&&si(_e),Wa(_e);const Ae=Y.current;if(Ae){const je=typeof Ae=="function"?Ae(_e):Ae,rt=Ra(_e,je);$.current=rt,O(rt),Wa(rt)}};return TC().then(xe),()=>{se=!0}},[]);const[ne,be]=o.useState(null),[ue,pe]=o.useState(null),q=o.useCallback((se,xe)=>{se==="main"?be(xe):pe(xe)},[]),ee=o.useRef(null),ie=o.useRef(null),ve=o.useCallback(()=>{ie.current!==null&&(clearTimeout(ie.current),ie.current=null);const se=ee.current;ee.current=null,se&&si(se)},[]);o.useEffect(()=>{if(typeof window>"u")return;const se=()=>{document.visibilityState==="hidden"&&ve()};return window.addEventListener("pagehide",ve),document.addEventListener("visibilitychange",se),()=>{window.removeEventListener("pagehide",ve),document.removeEventListener("visibilitychange",se),ve()}},[ve]);const me=o.useCallback(se=>{const xe=Ra($.current,se);if($.current=xe,O(xe),!ae.current){K.current={...K.current??{},...se},Wa(xe);return}Y.current||(ee.current=xe,ie.current!==null&&clearTimeout(ie.current),ie.current=setTimeout(ve,j3)),Wa(xe)},[ve]),oe=j.mainSpeed,fe=j.mainVolume,ge=o.useCallback(se=>me({mainSpeed:se}),[me]),Ee=o.useCallback(se=>me({mainVolume:se}),[me]),Ie=o.useMemo(()=>({settings:j,setSettings:me,registerAnalyser:q,mainAnalyser:ne,noiseAnalyser:ue,playbackRate:oe,setPlaybackRate:ge,mainVolume:fe,setMainVolume:Ee}),[j,me,q,ne,ue,oe,ge,fe,Ee]),Le=o.useRef(null),[Je,et]=o.useState(0),Ve=o.useRef([]),[He,it]=o.useState("center"),[Qe,Ye]=o.useState(!1),re=o.useRef(!1),Re=o.useRef(null),te=o.useCallback(se=>{re.current||(re.current=!0,Ye(!0),Re.current=setTimeout(()=>{try{se()}catch{re.current=!1,Ye(!1)}},T3()?0:s3))},[]);o.useEffect(()=>()=>{Re.current&&clearTimeout(Re.current)},[]);const we=o.useRef(h);o.useEffect(()=>{we.current=h}),o.useEffect(()=>{const se=Le.current,xe=document.activeElement;if(zr(se,xe),se){const G=Array.from(se.querySelectorAll(mn)).filter(le=>!le.closest('[aria-hidden="true"]'))[0];if(G)try{G.focus()}catch{}}return()=>{const G=document.activeElement;if(!G||G===document.body||se&&se.contains(G))try{Vr(xe)?.focus?.()}catch{}}},[]),o.useEffect(()=>zn(()=>te(()=>{const se=we.current;typeof se=="function"&&se()})),[te]),Or(Le,!0);const[We,Be]=o.useState(!1),Se=o.useRef(!1),[he,Me]=o.useState(null),nt=o.useRef(0),_t=()=>{nt.current+=1,Me(null)},[kt,dt]=o.useState(""),[Ze,qe]=o.useState(()=>pr()),$e=o.useRef(typeof c=="number"?c:null);o.useEffect(()=>{!T&&!D||(qe(pr()),_t())},[T,L,D]),o.useEffect(()=>{D&&qe(se=>{const xe=Math.max(0,Math.min(se.pageIndex,Math.max(0,I-1)));return xe!==se.pageIndex?{...se,pageIndex:xe,stepIndex:0}:se})},[D,I]);const Xe=D?Math.max(0,Math.min(Ze.pageIndex,I-1)):0,Fe=D?R[Xe]:null,st=D&&Fe&&Array.isArray(Fe.steps)?Fe.steps:[],Ge=T?Ze.pageIndex:D?Xe:typeof c=="number"?c:0,ft=T?Z[Math.max(0,Math.min(Ze.pageIndex,Math.max(0,Z.length-1)))]:null,jt=T&&ft&&Array.isArray(ft.steps)?ft.steps:[],Bt=T?jt.length:D?st.length:typeof m=="number"?m:0,mt=T||D?Math.max(0,Math.min(Ze.stepIndex,Math.max(0,Bt))):typeof p=="number"?p:0,lt=T?Z.length:D?I:typeof d=="number"?d:0;o.useLayoutEffect(()=>{const se=$e.current;if(typeof Ge=="number"&&se!==null&&Ge!==se&&Ge>se)try{dt(z("training.problemNotice",{n:Ge+1}))}catch{}$e.current=typeof Ge=="number"?Ge:$e.current},[Ge,c,z]),o.useLayoutEffect(()=>{const se=Le.current;if(!se)return;const xe=()=>se.querySelector(".page-popup__scroll");let G=null,le=null,ce=null;const _e=ut=>{const vt=xe();if(!vt)return;const Rt=vt.scrollHeight<=vt.clientHeight;if(it(Rt?"center":"top"),ut&&!Se.current){Se.current=!0;try{Be(!0)}catch{}try{rt.disconnect()}catch{}}},Ae=()=>{G!==null&&cancelAnimationFrame(G),G=requestAnimationFrame(()=>{le!==null&&clearTimeout(le),le=setTimeout(()=>_e(!0),60)})},je=()=>{ce!==null&&cancelAnimationFrame(ce),ce=requestAnimationFrame(()=>_e(!1))};Ae(),window.addEventListener("resize",je);const rt=new MutationObserver(Ae);rt.observe(se,{childList:!0,subtree:!0,attributes:!0});const gt=setTimeout(()=>{Se.current||_e(!0)},400);return()=>{window.removeEventListener("resize",je),G!==null&&cancelAnimationFrame(G),le!==null&&clearTimeout(le),ce!==null&&cancelAnimationFrame(ce),clearTimeout(gt);try{rt.disconnect()}catch{}}},[Le]);const Oe=o.useCallback(se=>{Le.current&&(Le.current._childOnNext=se)},[]),at=o.useCallback(se=>{Le.current&&(Le.current._childOnResult=se)},[]),ht=o.useCallback((se,xe,G)=>{qe(le=>{const ce=le.answersByPage[se]||{},_e=ce[xe],Ae=qo(G),je=qo(_e);return _e&&je>Ae?le:{...le,answersByPage:{...le.answersByPage,[se]:{...ce,[xe]:G}}}})},[qe]),Ot=o.useCallback((se,xe,G)=>{const le=Go(ft,Ge),ce=Ko(se,xe);ht(le,ce,G)},[ft,Ge,ht]),tt=o.useCallback((se,xe,G)=>{const le=Go(ft,Ge),ce=Ko(se,xe);ht(le,ce,G),!G?.allowChange&&se?.autoAdvance!==!1&&qe(_e=>({..._e,stepIndex:Math.max(_e.stepIndex,xe+1)}))},[ft,Ge,ht,qe]),Tt=o.useCallback((se,xe)=>{const G=Fe?.id||`children-page-${Ge??0}`,le=typeof xe=="number"?xe:mt??0,ce=`step-${le}`;ht(G,ce,se),se?.allowChange||qe(_e=>({..._e,stepIndex:Math.max(_e.stepIndex,le+1)}))},[Fe,Ge,mt,ht,qe]),Yt=o.useCallback((se,xe)=>{const G=Fe?.id||`children-page-${Ge??0}`,le=`step-${typeof xe=="number"?xe:mt??0}`;ht(G,le,se)},[Fe,Ge,mt,ht]),Mt=D?{currentPageIndex:Ge??0,currentStepIndex:mt??0,totalStepsInPage:st.length,handleStepDone:Tt,handleStepChange:Yt}:null,ln=async()=>{const se=typeof n?.buildResults=="function"?await Promise.resolve(n.buildResults({scenario:n,pages:Z,flowState:Ze,answersByPage:Ze.answersByPage})):null;return typeof U=="function"&&await Promise.resolve(U(se))||se},un=async()=>{const se=Fe?.id||`children-page-${Ze.pageIndex}`,xe=Ze.answersByPage[se]||{},G=W?(()=>{const _e={};let Ae=0;return R.forEach(je=>{const rt=Ze.answersByPage[je.id]||{},gt=Array.isArray(je.steps)?je.steps.length:0;for(let ut=0;ut<gt;ut+=1){const vt=rt[`step-${ut}`];typeof vt<"u"&&(_e[`step-${Ae+ut}`]=vt)}Ae+=gt}),_e})():xe;if(typeof v=="function"){const _e=await Promise.resolve(v(G,{pageAnswers:xe,answersByPage:Ze.answersByPage,pages:R,currentPageId:se}));return typeof U=="function"&&await Promise.resolve(U(_e))||_e}const le=Object.entries(xe).map(([_e,Ae],je)=>({index:je,key:_e,payload:Ae})),ce={results:le,answers:le,score:0};return typeof U=="function"&&await Promise.resolve(U(ce))||ce},cn=()=>{const se=++nt.current,xe=()=>se!==nt.current;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(T){const ce=ln();Me(Ln);const _e=ce;Promise.resolve(_e).then(Ae=>{xe()||Me(Ae||{isEmpty:!0})}).catch(Ae=>{!xe()&&Me({isEmpty:!0})});return}if(D){const ce=un();Me(Ln);const _e=ce;Promise.resolve(_e).then(Ae=>{xe()||Me(Ae||{isEmpty:!0})}).catch(Ae=>{!xe()&&Me({isEmpty:!0})});return}const G=Le.current&&Le.current._childOnResult,le=ce=>{try{return ce?ce():void 0}catch{return}};if(typeof G=="function"){const ce=le(G);try{typeof document>"u"?require("url").pathToFileURL(__filename).href:yn&&yn.tagName.toUpperCase()==="SCRIPT"&&yn.src||new URL("components.cjs.js",document.baseURI).href}catch{}ce&&typeof ce.then!="function"?Me(ce):Me(ce&&typeof ce.then=="function"?Ln:{});const _e=()=>{xe()||Me(Ae=>Ae===Ln?{}:Ae)};Promise.resolve(ce).then(Ae=>{Ae&&!xe()?Me(Ae):_e()}).catch(Ae=>{_e()});return}if(typeof U=="function"){const ce=le(U);try{typeof document>"u"?require("url").pathToFileURL(__filename).href:yn&&yn.tagName.toUpperCase()==="SCRIPT"&&yn.src||new URL("components.cjs.js",document.baseURI).href}catch{}ce&&typeof ce.then!="function"?Me(ce):Me(ce&&typeof ce.then=="function"?Ln:{});const _e=()=>{xe()||Me(Ae=>Ae===Ln?{}:Ae)};Promise.resolve(ce).then(Ae=>{try{typeof document>"u"?require("url").pathToFileURL(__filename).href:yn&&yn.tagName.toUpperCase()==="SCRIPT"&&yn.src||new URL("components.cjs.js",document.baseURI).href}catch{}Ae&&!xe()?Me(Ae):_e()}).catch(Ae=>{console.error("viewResults external handler failed",Ae),_e()});return}},Rn=()=>{if(T){if(typeof Ge=="number"&&typeof lt=="number"&&Ge<lt-1){qe(xe=>({...xe,pageIndex:xe.pageIndex+1,stepIndex:0}));return}return cn()}if(D){const xe=st.length;if(typeof mt=="number"&&mt<xe-1){qe(G=>({...G,stepIndex:G.stepIndex+1}));return}if(typeof Ge=="number"&&typeof lt=="number"&&Ge<lt-1){qe(G=>({...G,pageIndex:G.pageIndex+1,stepIndex:0}));return}return cn()}if(typeof y=="function"){try{y()}catch{}return}const se=Le.current&&Le.current._childOnNext;if(typeof se=="function"){try{se()}catch{}return}},dn=T?F.title||F.label||C||z("common.popup","\uD31D\uC5C5"):a||_||(Array.isArray(s)?s[s.length-1]:void 0)||C||z("common.popup","\uD31D\uC5C5"),Pn=C||dn,Nn=T?F.title??F.label??dn:a??_??dn,Nt=(se,xe)=>{const G=Go(ft,Ge),le=Ko(se,xe),ce=Ze.answersByPage[G]?.[le],_e=S3(se,{page:ft,pageIndex:Ge,step:se,stepIndex:xe,storedPayload:ce,answersByPage:Ze.answersByPage,flowState:Ze}),Ae={key:le,index:xe,stepIndex:mt,isLast:xe===jt.length-1};switch(se?.type){case"listen":return t.jsx(Ho,{...Ae,..._e,onDone:je=>tt(se,xe,je)});case"confirm":return t.jsx(Fo,{...Ae,..._e,onDone:je=>tt(se,xe,je),onChange:je=>Ot(se,xe,je)});case"confirmWithText":return t.jsx(Oo,{...Ae,..._e,onDone:je=>tt(se,xe,je),onChange:je=>Ot(se,xe,je)});case"orderList":return t.jsx(zo,{...Ae,..._e,onDone:je=>tt(se,xe,je),onChange:je=>Ot(se,xe,je)});default:return null}},Cn=o.useRef(void 0);o.useEffect(()=>{const se=Cn.current;if(Cn.current=Ge,se===void 0||se===Ge||!nr())return;const xe=Le.current;if(!xe)return;const G=document.activeElement;if(!(!G||G===document.body||!xe.contains(G)||G.disabled===!0))return;const le=xe.querySelector(`.training-steps ${mn.split(", ").join(", .training-steps ")}`)??Array.from(xe.querySelectorAll(mn)).find(ce=>!ce.closest('[aria-hidden="true"]'));try{le?.focus()}catch{}},[Ge]);const Ht=T?Z.length>0?t.jsx("div",{className:"training-steps",children:jt.map((se,xe)=>Nt(se,xe))},`replay-${Je}`):t.jsx("div",{className:`page-popup__content page-popup__content--center${e.contentFull?" page-popup__content--full":""}`,children:t.jsx("div",{className:"pp-empty",children:n?.emptyMessage||z("training.noQuestions","\uBB38\uC81C\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")})}):null,Zt=D?t.jsxs(cc.Provider,{value:Mt,children:[Fe?.pageTop?t.jsx("div",{className:"training-page-top",children:Fe.pageTop}):null,t.jsx("div",{className:"training-steps",children:st.map((se,xe)=>{const G=se;return o.cloneElement(G,{...G.props,_stepIndex:xe,_totalSteps:st.length,_stepKey:`step-${xe}`,_pageIndex:Ge})})},`replay-${Je}`),Fe?.pageBottom?t.jsx("div",{className:"training-page-bottom",children:Fe.pageBottom}):null]}):null,fn=o.useCallback(()=>{let se;if(w){const xe=he,{results:G,correct:le,total:ce}=yc(he);EC({items:jC(G),category:bc.has(w)?"sentence":"word",trainingType:w,entryPoint:N??"sentence",itemRef:B??null,correct:le,total:ce,score:typeof xe?.score=="number"?xe.score:null,durationSeconds:Math.max(0,Math.round((Date.now()-H.current)/1e3)),dailyTotal:k??null}),se={correct:le,total:ce,attempt:Ve.current.length+1,previousAttempts:[...Ve.current]}}_t(),te(()=>{typeof g=="function"&&g(se),typeof h=="function"&&h()})},[g,h,w,N,k,B,he,Me,te]),en=o.useCallback(()=>dt(""),[dt]),gn=o.useCallback(()=>{te(()=>{typeof h=="function"&&h()})},[h,te]),In=t.jsxs("div",{className:`page-popup${Qe?" page-popup--closing":""}`,role:"dialog","aria-modal":"true","aria-label":Pn,children:[t.jsxs("div",{ref:Le,className:`page-popup__panel ${We?"":"page-popup__panel--measuring"} ${He==="center"?"page-popup__panel--center":He==="top"?"page-popup__panel--top":""}`,children:[t.jsx(sc,{title:Nn,subtitle:T?F.subtitle||F.label:Array.isArray(s)?s.join(" / "):void 0,desc:T?void 0:r,depth:T?F.depth:s,icon:T?F.icon:i,wrapperStyle:T?F.wrapperStyle:l,iconTooltip:T?F.iconTooltip:u,progressMax:lt,progressIndex:Ge,pageIndex:Ge,pageCount:lt,onBack:gn,onClose:gn}),t.jsx("div",{className:"page-popup__scroll",children:t.jsx("div",{className:`page-popup__content ${He==="center"?"page-popup__content--center":"page-popup__content--top"}${e.contentFull?" page-popup__content--full":""}`,children:D?Zt:T?Ht:typeof b=="function"?b({registerOnNext:Oe,registerOnResult:at,panelRef:Le,setResultOverlay:Me}):b})}),t.jsx(oc,{onSettings:f,onNext:Rn,onResult:cn,useNoiseSettingBtn:!!(T?F.useNoiseSetting??!0:x),stepIndex:mt,stepCount:Bt,pageIndex:Ge,pageCount:lt,resultOpen:!!(he&&!he.isEmpty)})]}),he&&!he.isEmpty&&(S??M3)({score:he.score,results:he.results||he.answers||[],contextsLength:he.results?he.results.length:he.answers?he.answers.length:0,onReplay:()=>{if(H.current=Date.now(),he!==Ln){const{correct:se,total:xe}=yc(he);Ve.current.push({correct:se,total:xe})}if(_t(),et(se=>se+1),T){if(qe(pr()),typeof n?.onReplay=="function")try{n.onReplay()}catch{}return}if(D){qe(pr());return}try{const se=Le.current&&Le.current._childOnResult;typeof se=="function"&&se({replay:!0})}catch{}},onClose:fn,pending:he===Ln}),he?.isEmpty&&t.jsx("div",{className:"page-popup page-popup--result-empty",role:"dialog","aria-modal":"true","aria-label":z("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${e.contentFull?" page-popup__content--full":""}`,children:t.jsx("div",{className:"page-popup__empty",children:z("training.result.eyebrow","\uD6C8\uB828 \uC644\uB8CC")})})}),t.jsx("div",{className:"page-popup__bottom",children:t.jsx(de,{htmlType:"button",variant:"main",size:48,onClick:fn,label:z("training.result.done","\uC644\uB8CC")})})]})}),t.jsx(ra,{message:kt,position:"top",onClose:en})]}),bn=t.jsx(Mo.Provider,{value:Ie,children:In});return typeof document<"u"&&document.body?Xt.createPortal(bn,document.body):bn}const $n=L3;$n.Page=dr,$n.ListenStep=dc,$n.ConfirmStep=pc,$n.ConfirmWithTextStep=mc,$n.OrderListStep=hc,$n.CardStep=Cc,$n.CardOrderStep=N3;function $3({label:e,homonum:n}){const a=Xn()?.(e,n)??"",{imgRef:r,loading:s,hasImage:i,onLoad:l,onError:u}=xo(a);return i?t.jsxs("div",{className:"tooltip-word-image__cell",children:[s&&t.jsx("div",{className:"tooltip-word-image__spinner"}),t.jsx("img",{ref:r,src:a,alt:e,draggable:!1,style:{opacity:s?0:1},onLoad:l,onError:u})]}):t.jsx("div",{className:"tooltip-word-image__cell tooltip-word-image__cell--text h3",children:t.jsx("span",{children:e})})}function vc({words:e,anchorRect:n}){const a=o.useRef(null),[r,s]=o.useState(null);return o.useLayoutEffect(()=>{if(!n||!a.current)return;const{offsetWidth:i,offsetHeight:l}=a.current,u=window.innerWidth;let c=n.left+n.width/2-i/2,d=n.top-l-8;d<8&&(d=n.bottom+8),c=Math.max(8,Math.min(c,u-i-8)),s({left:c,top:d})},[n]),!n||e.length===0?null:Xt.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($3,{label:i.label,homonum:i.homonum},`${i.label}_${i.homonum??1}`))})}),document.body)}const R3=new Intl.Collator("ko");function P3({titleIcon:e,resultCount:n,resultUnit:a,searchQuery:r,items:s,groups:i,selected:l=[],onSelect:u,maxSelect:c,onClearSelection:d,onPrint:p,onPrintEmpty:m,className:h,emptyHint:g,sectionType:y="page",disc:f}){const{t:x,i18n:b}=ye.useTranslation(),C=b.language?.startsWith("ko")??!1,{anchorRect:_,openAt:v,close:A}=wa(),[w,N]=o.useState(null),k=o.useCallback(()=>{A(),N(null)},[A]);ib(k,!!w);const B=(r??"").trim(),S=/^[^,[\]\s]+$/.test(B)?B:"",E=S.length>0,H=r===void 0&&n===void 0,z=E?"match":H?"original":"ganada",[U,T]=o.useState(()=>z),[L,F]=o.useState("50"),[Z,J]=o.useState(1),[V,P]=o.useState(E);V!==E&&(P(E),T(z));const W=U==="match"&&!E||U==="original"&&!H?z:U,R=o.useMemo(()=>[...E?[{value:"match",label:x("wordSearch.sort.match",{defaultValue:"\uC2DC\uC791 \uC6B0\uC120"})}]:[],...H?[{value:"original",label:x("wordSearch.sort.original",{defaultValue:"\uBC1B\uC740 \uC21C\uC11C"})}]:[],{value:"ganada",label:x("wordSearch.sort.ganada",{defaultValue:"\uAC00\uB098\uB2E4\uC21C \u2191"})},{value:"ganada_desc",label:x("wordSearch.sort.ganadaDesc",{defaultValue:"\uAC00\uB098\uB2E4\uC21C \u2193"})},{value:"syllable",label:x("wordSearch.sort.syllable",{defaultValue:"\uC74C\uC808 \uC218 \u2191"})},{value:"syllable_desc",label:x("wordSearch.sort.syllableDesc",{defaultValue:"\uC74C\uC808 \uC218 \u2193"})},{value:"grade",label:x("wordSearch.sort.grade",{defaultValue:"\uB4F1\uAE09\uC21C \u2191"})},{value:"grade_desc",label:x("wordSearch.sort.gradeDesc",{defaultValue:"\uB4F1\uAE09\uC21C \u2193"})}],[x,E,H]),D=o.useMemo(()=>["10","25","50","100"].map(oe=>({value:oe,label:x("wordSearch.pageSize",{count:Number(oe),defaultValue:`${oe}\uAC1C\uC529 \uBCF4\uAE30`})})),[x]),I=oe=>oe.words?.[0],j=o.useMemo(()=>{const oe=[...S].length,fe=hC(S),ge=new Map;return Ee=>{let Ie=ge.get(Ee);return Ie===void 0&&(Ie=fe((Ee.words?.[0]?.label??"").slice(0,oe))?0:1,ge.set(Ee,Ie)),Ie}},[S]),O=o.useCallback((oe,fe)=>{const ge=Le=>I(Le)?.label??"",Ee=Le=>I(Le)?.syllables??[...ge(Le)].length,Ie=Le=>(Le.words??[]).reduce((Je,et)=>{const Ve=parseInt(et.grade??"",10);return Number.isFinite(Ve)&&Ve<Je?Ve:Je},999);switch(W){case"match":return j(oe)-j(fe)||R3.compare(ge(oe),ge(fe));case"ganada":return ge(oe).localeCompare(ge(fe),"ko");case"ganada_desc":return ge(fe).localeCompare(ge(oe),"ko");case"syllable":return Ee(oe)-Ee(fe)||ge(oe).localeCompare(ge(fe),"ko");case"syllable_desc":return Ee(fe)-Ee(oe)||ge(oe).localeCompare(ge(fe),"ko");case"grade":return Ie(oe)-Ie(fe)||ge(oe).localeCompare(ge(fe),"ko");case"grade_desc":return Ie(fe)-Ie(oe)||ge(oe).localeCompare(ge(fe),"ko");default:return 0}},[W,j]),$=o.useMemo(()=>s.slice().sort(O),[s,O]),Y=Number(L)||10,ae=o.useMemo(()=>(i??[]).flatMap(oe=>oe.items.slice().sort(O).map(fe=>({item:fe,label:oe.label}))),[i,O]),K=i?ae.length:$.length,ne=Math.max(1,Math.ceil(K/Y)),be=Math.min(Z,ne),ue=o.useMemo(()=>$.slice((be-1)*Y,be*Y),[$,be,Y]),pe=o.useMemo(()=>{if(!i)return null;const oe=ae.slice((be-1)*Y,be*Y),fe=new Map;for(const{item:ge,label:Ee}of oe)fe.has(Ee)||fe.set(Ee,[]),fe.get(Ee).push(ge);return[...fe.entries()].map(([ge,Ee])=>({label:ge,items:Ee}))},[i,ae,be,Y]);o.useEffect(()=>{J(1)},[U,L,K,r]);const q=K>0?t.jsxs("div",{className:"word-search-result-block__toolbar",children:[t.jsx(sn,{size:40,options:R,value:W,onChange:T,ariaLabel:x("wordSearch.sort.aria",{defaultValue:"\uC815\uB82C"})}),t.jsx(sn,{size:40,options:D,value:L,onChange:F,ariaLabel:x("wordSearch.pageSizeAria",{defaultValue:"\uD398\uC774\uC9C0 \uD06C\uAE30"})}),t.jsx(Qa,{page:be,totalPages:ne,onChange:J})]}):void 0,ee=oe=>{u&&u(oe)},ie=n!==void 0&&a?t.jsxs(t.Fragment,{children:[x("wordSearch.resultTitlePrefix","\uCD1D "),t.jsx("span",{style:{color:"var(--color-main)"},children:n}),x("wordSearch.resultTitleSuffix",{unit:C?_C(a):a})]}):void 0,ve=n!==void 0&&n>0&&c!==void 0&&a?x("wordSearch.resultDisc",{unit:C?AC(a):a,max:c,selected:l.length}):void 0,me=f??ve;return t.jsxs(sa,{type:y,className:De("word-search-result-block",h),children:[t.jsxs("div",{className:"word-search-result-block__inner",children:[(ie||q||me)&&t.jsxs("div",{className:"word-search-result-block__head",children:[t.jsxs("div",{className:"word-search-result-block__head-main",children:[e&&t.jsx(Ke,{icon:e,className:"word-search-result-block__head-icon"}),ie&&t.jsx("span",{className:"word-search-result-block__title h3",children:ie})]}),q&&t.jsx("div",{className:"word-search-result-block__head-actions",children:q}),me&&t.jsx("div",{className:"word-search-result-block__head-disc body-3",children:me})]}),(i?i.length===0:s.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:x("wordSearch.emptyResult","\uAC80\uC0C9 \uACB0\uACFC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")}),g&&t.jsx("p",{className:"word-search-result-block__empty-hint body-3",children:g})]}),i?(pe??[]).map(oe=>t.jsx("div",{className:"word-search-result-block__group",children:t.jsx("div",{className:"word-search-result-block__items",children:oe.items.map(fe=>{const ge=l.includes(fe.id);return t.jsx("div",{onMouseEnter:Ee=>{v(Ee.currentTarget),N(fe.words??[])},onMouseLeave:k,children:t.jsx(de,{htmlType:"button",size:"word",align:"grid",label:(fe.words??[]).map(Ee=>Ee.label),subLabel:(fe.words??[]).some(Ee=>Ee.subLabel)?(fe.words??[]).map(Ee=>Ee.subLabel):void 0,selected:ge,onClick:()=>ee(fe.id),minWidth:200})},fe.id)})})},oe.label)):t.jsx("div",{className:"word-search-result-block__items",children:ue.map(oe=>{const fe=l.includes(oe.id);return t.jsx("div",{onMouseEnter:ge=>{v(ge.currentTarget),N(oe.words??[])},onMouseLeave:k,children:t.jsx(de,{htmlType:"button",size:"word",align:"grid",label:(oe.words??[]).map(ge=>ge.label),subLabel:(oe.words??[]).some(ge=>ge.subLabel)?(oe.words??[]).map(ge=>ge.subLabel):void 0,selected:fe,onClick:()=>ee(oe.id),minWidth:200})},oe.id)})}),w&&_&&t.jsx(vc,{words:w,anchorRect:_})]}),ne>1&&t.jsx("div",{className:"word-search-result-block__pagination-bottom",children:t.jsx(Qa,{page:be,totalPages:ne,onChange:J})}),(d||p)&&t.jsxs("div",{className:"word-search-result-block__actions",children:[d&&t.jsx(de,{htmlType:"button",size:"56",type:"bar",label:x("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?m:void 0,children:t.jsx(de,{htmlType:"button",size:"56",type:"bar",variant:"main",label:x("wordTable.title","\uB2E8\uC5B4 \uD45C \uB9CC\uB4E4\uAE30"),disabled:l.length===0,onClick:l.length===0?void 0:p})})]})]})}function I3(e,n){return n.map(a=>{const r=typeof a=="string"?a:a.label,s=typeof a=="string"?void 0:a.displayLabel;return{label:r,value:e[r]??"",displayLabel:s}})}function F3({sections:e,selectedList:n,count:a,onCountChange:r,maxCount:s=4,minCount:i=1,combinationSections:l,combinationSectionsForSlot:u,onSelect:c,placeholder:d="-",className:p,title:m,titleIcon:h,disc:g,showInfoButton:y=!0,onClearPhoneme:f,onSearch:x,onSearchEmpty:b,searchDisabled:C=!1,searchLabel:_,searchChecking:v=!1,pairMode:A=!1,sectionType:w="page",beforeSearchContent:N,beforeContent:k,afterContent:B,hideCountControl:S=!1,ordinal:E=!1}){const{t:H}=ye.useTranslation(),z=o.useMemo(()=>H("wordPairs.infoNotes",{returnObjects:!0}),[H]),U=o.useMemo(()=>Array.from({length:s-i+1},(j,O)=>{const $=i+O;return{key:String($),label:H("wordPairs.count",{n:$})}}),[H,s,i]),T=o.useMemo(()=>H("wordPairs.ordinals",{returnObjects:!0}),[H]),L=o.useCallback(j=>E?H("wordPairs.phonemeOrdinalLabel",{ordinal:T[j-1]??j}):a===1?H("wordPairs.phonemeSingleLabel","\uC74C\uC808"):H("wordPairs.phonemeN",{n:j}),[E,T,a,H]),F=o.useCallback(j=>E?H("wordPairs.phonemeContrastOrdinalLabel",{ordinal:T[j-1]??j}):a===1?H("wordPairs.phonemeContrastSingleLabel","\uB300\uB9BD \uC74C\uC808"):H("wordPairs.phonemeContrast",{n:j}),[E,T,a,H]),Z=o.useCallback((j,O)=>O?t.jsxs(t.Fragment,{children:[j,t.jsx("span",{className:"phoneme-select-block__required",children:"*"})]}):j,[]),{anchorRect:J,toggleAt:V,close:P}=wa(),W=o.useCallback(j=>r(Number(j)),[r]),R=tn("(max-width: 767px)"),D=o.useCallback(j=>I3(j,e).map(({label:O,value:$,displayLabel:Y})=>{const ae=!!$&&$!=="\uC5C6\uC74C";return t.jsxs("span",{className:De("phoneme-select-block__cell-jamo-part",$?"":"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${$==="\uC5C6\uC74C"?" phoneme-select-block__cell-jamo-char--excluded":""}`,children:$==="\uC5C6\uC74C"?"x":$||d}),ae&&t.jsx("span",{className:"phoneme-select-block__cell-jamo-label caption-2",children:Y??O})]},O)}),[e,d]),I=t.jsxs(t.Fragment,{children:[t.jsx("div",{"data-tooltip-ignore":!0,children:t.jsx(de,{htmlType:"button",size:40,type:R?"dot":void 0,icon:"info",label:R?void 0:H("wordPairs.caution","\uC720\uC758\uC0AC\uD56D"),ariaLabel:H("wordPairs.caution","\uC720\uC758\uC0AC\uD56D"),className:J?"is-selected":void 0,"aria-expanded":!!J,"aria-haspopup":"dialog",onClick:j=>V(j.currentTarget)})}),J&&t.jsx(Vn,{title:H("wordPairs.caution","\uC720\uC758\uC0AC\uD56D"),items:z,anchorRect:J,onClose:P})]});return t.jsxs(sa,{type:w,title:m,icon:h,disc:g,action:y?I:void 0,className:De("phoneme-select-block",p),children:[k,!S&&t.jsx("div",{className:"phoneme-select-block__controls",children:t.jsx(An,{options:U,value:String(a),onChange:W,size:40,className:"phoneme-select-block__count-control"})}),t.jsx("div",{className:"phoneme-select-block__cells",children:A?t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"phoneme-select-block__cell-group",children:Array.from({length:a}).map((j,O)=>{const $=n[O*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:D($)})}),t.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:L(O+1)})]},O)})}),t.jsx("span",{className:"phoneme-select-block__cell-vs h3",children:H("wordPairs.phonemeSelect.vs","\uB300")}),t.jsx("div",{className:"phoneme-select-block__cell-group",children:Array.from({length:a}).map((j,O)=>{const $=n[O*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:D($)})}),t.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:F(O+1)})]},O)})})]}):n.map((j,O)=>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:D(j)})}),t.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:L(O+1)})]},O))}),(l||u)&&t.jsx("div",{className:"phoneme-select-block__panels",children:t.jsx("div",{className:"phoneme-select-block__detail",children:A?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((j,O)=>{const $=n[O*2]??{};return t.jsx(Bn,{title:Z(L(O+1),O===0),sections:u?u($,O*2):l,selected:$,onSelect:c?.(O*2),align:"newline"},O)})}),t.jsx("div",{className:"phoneme-select-block__panel-group",children:Array.from({length:a}).map((j,O)=>{const $=n[O*2+1]??{};return t.jsx(Bn,{title:F(O+1),sections:u?u($,O*2+1):l,selected:$,onSelect:c?.(O*2+1),align:"newline"},O)})})]}):n.map((j,O)=>t.jsx(Bn,{title:Z(L(O+1),O===0),sections:u?u(j,O):l,selected:j,onSelect:c?.(O),align:"newline"},O))})}),N&&t.jsx("div",{className:"phoneme-select-block__before-search",children:N}),(f||x||v)&&(()=>{const j=n.every(O=>Object.entries(O).every(([$,Y])=>!Y||$==="\uC885\uC131"&&Y==="\uC5C6\uC74C"));return t.jsxs("div",{className:"phoneme-select-block__search-row",onClick:j?b:void 0,children:[f&&t.jsx(de,{htmlType:"button",size:"56",type:"bar",label:H("wordPairs.resetOptions","\uAC80\uC0C9 \uC635\uC158 \uCD08\uAE30\uD654"),selected:!1,disabled:j,onClick:j?void 0:f}),x?t.jsx(de,{htmlType:"button",size:"56",type:"bar",variant:"main",icon:v?t.jsx("span",{className:"phoneme-select-block__spinner","aria-hidden":"true"}):void 0,label:_??H("wordSearch.searchButton","\uAC80\uC0C9\uD558\uAE30"),disabled:j||C||v,onDisabledClick:v?()=>{}:void 0,"aria-busy":v||void 0,onClick:x}):v?t.jsxs("div",{className:"phoneme-select-block__checking","aria-busy":"true",children:[t.jsx("div",{className:"phoneme-select-block__spinner"}),t.jsx("span",{className:"button-1 phoneme-select-block__checking-label",children:_??H("wordSearch.searchButton","\uAC80\uC0C9\uD558\uAE30")})]}):null]})})(),B]})}function O3({title:e,sections:n,selected:a,onSelect:r,collapsible:s,defaultCollapsed:i,collapsed:l,onCollapsedChange:u,headerSummary:c,headerAction:d,className:p}){const{t:m}=ye.useTranslation();return t.jsx(Bn,{className:p,title:e??m("wordSearch.filterTitle","\uB2E8\uC5B4 \uAC80\uC0C9 \uC124\uC815"),sections:n,selected:a,onSelect:r,collapsible:s,defaultCollapsed:i,collapsed:l,onCollapsedChange:u,headerSummary:c,headerAction:d,align:"inline"})}function H3({title:e,headerAction:n,sections:a,selected:r,onSelect:s,className:i}){const{t:l}=ye.useTranslation();return a.length===0?null:t.jsx(Bn,{className:i,title:e??l("training.filter.phonemeGroup",{defaultValue:"\uD6C8\uB828 \uC74C\uC808"}),headerAction:n,sections:a,selected:r,onSelect:s,align:"newline"})}function z3({title:e,mode:n,onModeChange:a,matchMode:r,onMatchModeChange:s,positionCount:i,onPositionCountChange:l,inputMode:u,onInputModeChange:c,className:d}){const{t:p}=ye.useTranslation(),m={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")},h=x=>p("wordPairs.count",{n:x}),g=[{label:m.searchMode,items:[m.include,m.pick,m.explicit],display:"segmented",labelAction:t.jsx(Ea,{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:m.phonemeOrder,items:[m.orderAny,m.orderMatch],display:"segmented",labelAction:t.jsx(Ea,{items:p("wordPairs.filter.phonemeOrderInfo",{returnObjects:!0})})},{label:m.count,items:[h(1),h(2)],display:"segmented"},{label:m.inputMode,items:[m.charInput,m.pronInput],display:"segmented",labelAction:t.jsx(Ea,{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.")]})}],y={[m.searchMode]:n==="explicit"?m.explicit:n==="pick"?m.pick:m.include,[m.phonemeOrder]:r==="ordered"?m.orderMatch:m.orderAny,[m.count]:h(i),[m.inputMode]:u==="phoneme"?m.pronInput:m.charInput},f=(x,b)=>{b===m.searchMode?a(x===m.explicit?"explicit":x===m.pick?"pick":"include"):b===m.phonemeOrder?s(x===m.orderMatch?"ordered":"unordered"):b===m.count?l(x===h(2)?2:1):b===m.inputMode&&c(x===m.pronInput?"phoneme":"word")};return t.jsx(Bn,{className:d,title:e??p("wordPairs.filter.searchOptionsTitle","\uB300\uB9BD \uC124\uC815"),sections:g,selected:y,onSelect:f,align:"inline"})}function V3(e){const{title:n,items:a,columns:r,gridTemplateColumns:s,mobileGridTemplateColumns:i,searchPlaceholder:l,searchFn:u,defaultSortKey:c,defaultSortAsc:d=!0,selectedId:p,selectedIds:m,onSelect:h,onClose:g,pageSizeOptions:y=[10,25,50,100],initialPageSize:f,emptyText:x,countLabel:b,topContent:C,className:_=""}=e,{t:v}=ye.useTranslation(),A=l??v("common.search","\uAC80\uC0C9"),w=x??v("common.emptyList","\uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4."),[N,k]=o.useState(""),[B,S]=o.useState(c??r[0]?.key??""),[E,H]=o.useState(d),[z,U]=o.useState(String(f??y[0]??10)),[T,L]=o.useState(1);o.useEffect(()=>{L(1)},[N,z]);const F=u!==null,Z=o.useCallback(($,Y)=>{if(!Y)return!0;const ae=Y.toLowerCase();return r.some(K=>{const ne=$[K.key];return ne==null?!1:String(ne).toLowerCase().includes(ae)})},[r]),J=u??Z,V=o.useMemo(()=>{const $=F?a.filter(Y=>J(Y,N)):a;return B?[...$].sort((Y,ae)=>{const K=Y[B],ne=ae[B];return K===ne?0:Xr(K,ne,E)}):$},[a,N,B,E,F,J]),P=Math.max(1,Math.ceil(V.length/Number(z)));T>P&&L(P);const W=Math.min(T,P),R=V.slice((W-1)*Number(z),W*Number(z)),D=o.useCallback($=>{B===$?H(Y=>!Y):(S($),H(!0)),L(1)},[B]),I=o.useMemo(()=>{if(typeof b=="function"){const $=V.length,Y=b($);if(typeof Y=="string"){const ae=Y.lastIndexOf(String($));if(ae>=0)return{prefix:Y.slice(0,ae),suffix:Y.slice(ae+String($).length)}}return{label:Y}}if(typeof b=="string"&&b.includes("{n}")){const[$,Y]=b.split("{n}");return{prefix:$,suffix:Y}}return{prefix:v("common.totalCountPrefix","\uCD1D "),suffix:v("common.totalCountSuffix","\uAC1C")}},[b,V.length,v]),j=o.useMemo(()=>r.map($=>({label:$.label,onClick:$.sortable!==!1?()=>D($.key):void 0,className:$.className,sortDir:$.sortable!==!1&&B===$.key?E?"asc":"desc":null})),[r,B,E,D]),O=o.useMemo(()=>y.map($=>({value:String($),label:v("common.pageSizeLabel",{n:$})})),[y,v]);return t.jsxs(Tn,{className:`popup-list ${_}`,title:n,onClose:g,children:[C,"label"in I&&t.jsx("p",{className:"toolbar__count body-1",children:I.label}),t.jsx(lo,{count:"label"in I?void 0:{value:V.length,prefix:I.prefix,suffix:I.suffix},search:F?{value:N,onChange:k,placeholder:A}:void 0,pageSize:{options:O,value:z,onChange:U},pagination:{page:W,total:P,onChange:L}}),t.jsx(bo,{size:"medium",gridTemplateColumns:s,mobileGridTemplateColumns:i,resizable:!0,fields:j,items:R,onRowClick:h,renderRow:$=>{const Y=m!=null?$.id!=null&&m.has($.id):p!=null&&$.id===p;return r.map(ae=>({content:ae.render?ae.render($):$[ae.key]??"",className:De(ae.className,Y&&"popup-list__row--selected")}))},empty:w})]})}function xc(e){const{title:n,message:a,topContent:r,details:s,children:i,confirmLabel:l,cancelLabel:u,hideCancel:c=!1,extraAction:d,confirmVariant:p="main",confirmDisabled:m=!1,onConfirm:h,closeOnConfirm:g=!0,onClose:y,inline:f,size:x="small",className:b,initialFocus:C="close"}=e,{t:_}=ye.useTranslation(),v=o.useRef(null);o.useEffect(()=>{if(f||C==="close")return;const S=v.current?.closest(".popup-panel"),E=Array.from(S?.querySelectorAll(".popup-footer--buttons button")??[]),H=C==="confirm"?E[E.length-1]:c?void 0:E[d?1:0];H&&!H.disabled&&H.focus()},[]);const A=o.useRef(!1),[w,N]=o.useState(!1),k=S=>{let E=!1;return{close:()=>{E=!0,S()},\uB2EB\uC558\uB098:()=>E}},B=async S=>{if(A.current)return;A.current=!0;const E=typeof document<"u"?document.activeElement:null;N(!0);let H=!1;try{H=await S()}catch(z){typeof console<"u"&&console.error(z)}finally{H||(A.current=!1,N(!1),requestAnimationFrame(()=>{const z=document.activeElement;(!z||z===document.body)&&E?.isConnected&&E.focus()}))}};return t.jsxs(Tn,{title:n,onClose:y,closeDisabled:w,inline:f,size:x,className:De("confirm-popup",r!=null&&"confirm-popup--has-top",b),buttons:[...d?[{label:d.label,variant:d.variant??"default",disabled:d.disabled||w,onClick:async({closeWithAnimation:S})=>{await B(async()=>{const E=k(S);await d.onClick(E.close);const H=d.closeOnClick??!0;return H&&S(),H||E.\uB2EB\uC558\uB098()})}}]:[],...c?[]:[{label:u??_("common.cancel","\uCDE8\uC18C"),variant:"default",disabled:w,onClick:({closeWithAnimation:S})=>S()}],{label:l??_("common.confirm","\uD655\uC778"),variant:p,disabled:m||w,onClick:async({closeWithAnimation:S})=>{await B(async()=>{const E=k(S);return await h(E.close),g&&S(),g||E.\uB2EB\uC558\uB098()})}}],children:[r!=null&&t.jsx("div",{className:"confirm-popup__top",children:r}),s&&s.length>0&&t.jsx(cr,{children:s.map((S,E)=>t.jsx(Mn,{label:S.label,children:t.jsx("span",{className:"panel-row__text body-2",children:S.value})},E))}),t.jsx("p",{ref:v,className:"body-2 confirm-popup__message",children:a}),i]})}function W3(e,n,a={}){const{t:r}=ye.useTranslation(),[s,i]=o.useState(!1),l=o.useRef(!1),u=o.useCallback(()=>{l.current=!0},[]),c=o.useCallback(()=>l.current?(l.current=!1,!0):e?(i(!0),!1):!0,[e]),d=s?t.jsx(xc,{title:a.title??r("common.discardConfirm.title","\uC785\uB825\uC744 \uCDE8\uC18C\uD560\uAE4C\uC694?"),message:a.message??r("common.discardConfirm.body","\uC800\uC7A5\uD558\uC9C0 \uC54A\uC73C\uBA74 \uC9C0\uAE08\uAE4C\uC9C0 \uC785\uB825\uD55C \uB0B4\uC6A9\uC774 \uC0AC\uB77C\uC9D1\uB2C8\uB2E4."),confirmLabel:a.confirmLabel??r("common.discardConfirm.confirm","\uC785\uB825 \uCDE8\uC18C"),confirmVariant:"danger",onConfirm:()=>{i(!1),n()},onClose:()=>i(!1)}):null;return{beforeClose:c,discardPopup:d,allowClose:u}}function q3({onApply:e,onCancel:n}){const{t:a}=ye.useTranslation(),[r,s]=o.useState(""),[i,l]=o.useState(!1),[u,c]=o.useState(null),d=o.useRef(null);o.useEffect(()=>{d.current?.focus()},[]);const p=o.useCallback(async g=>{const y=r.trim();if(y){l(!0),c(null);try{await e(y),g()}catch(f){c(ni(f)),l(!1),requestAnimationFrame(()=>d.current?.focus())}}},[r,e]),m=o.useCallback((g,y)=>{g.key==="Enter"&&!g.nativeEvent.isComposing&&p(y)},[p]),h=g=>{s(g.target.value),c(null)};return t.jsx(Tn,{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:g})=>g()},{label:a("coupons.applyButton","\uC801\uC6A9"),variant:"main",disabled:!r.trim()||i,onClick:({closeWithAnimation:g})=>{p(g)}}],children:({closeWithAnimation:g})=>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:h,onKeyDown:y=>m(y,g),disabled:i,autoComplete:"off",spellCheck:!1}),u&&t.jsx("p",{className:"coupon-input-popup__error caption-1",role:"alert",children:u})]})})}const _c=["var(--color-main)","var(--color-sub)"],U3=2e3;function G3(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 Yo({active:e=!1,count:n=40,duration:a=2e3,strength:r=1,onComplete:s,trigger:i=0}){const l=o.useMemo(()=>{const f=Math.floor(n/2),x=n-f,b=(C,_)=>Array.from({length:C}).map((v,A)=>{const w=6+Math.random()*12,N=Math.round(Math.min(18,w*Math.min(1.5,1+r*.4))),k=_c[Math.floor(Math.random()*_c.length)],B=Math.random()*300,S=(360+Math.random()*260)*r*1.2,E=(_==="left"?-95+Math.random()*40:-85-Math.random()*40)*Math.PI/180,H=Math.cos(E)*S,z=Math.sin(E)*S*1.35,U=Math.random()*720-360,T=(1200+Math.random()*3e3)*Math.min(1.6,1+r*.3),L=Math.random()>.7?"50%":"3px";return{id:`${_}-${A}`,side:_,size:N,color:k,delay:B,vx:H,vy:z,angularVel:U,life:T,borderRadius:L}});return[...b(f,"left"),...b(x,"right")]},[n,r]),u=o.useRef(null),c=o.useRef({}),d=o.useRef(null),p=o.useRef(s);o.useEffect(()=>{p.current=s},[s]);const m=o.useRef(null),h=o.useRef(null),g=()=>{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"&&h.current==null&&(h.current=g()),o.useEffect(()=>{if(!e)return;if(typeof window<"u"&&window.matchMedia?.("(prefers-reduced-motion: reduce)").matches){const P=setTimeout(()=>p.current?.(),0);return()=>clearTimeout(P)}const f=1200,x=performance.now(),b=h.current&&h.current!==document.body?h.current.getBoundingClientRect():null,C=Math.max(60,(window.innerHeight||800)*.05),_=P=>Math.max(40,(P||window.innerWidth)*.02),v=b?.width||window.innerWidth||375,A=b?.height||window.innerHeight||812,w=P=>{const W=[...P].sort((R,D)=>R-D);return W[Math.floor(W.length/2)]||1},N=w(l.map(P=>Math.abs(P.vy))),k=w(l.map(P=>Math.abs(P.vx))),B=Math.sqrt(2*f*(A*.72+C))/N,S=N*B/f,E=v*.5/(k*S),H=(P,W,R)=>Math.min(R,Math.max(W,P)),z=H(B,.8,2.4),U=H(E,.7,2.2),T=a>0?a/U3:1,L=l.map(P=>({...P,life:P.life*T,vx:P.vx*U,vy:P.vy*z,startTime:x+P.delay,ended:!1})),F=b?{x:b.left-_(b.width),y:b.top+b.height+C}:{x:-_(window.innerWidth),y:window.innerHeight+C},Z=b?{x:b.left+b.width+_(b.width),y:b.top+b.height+C}:{x:window.innerWidth+_(window.innerWidth),y:window.innerHeight+C},J=P=>{let W=!1;for(const R of L){const D=c.current[R.id];if(!D||!D)continue;if(P<R.startTime){D.style.display="none",W=!0;continue}if(!R._inited){const ue=R.side==="left"?F.x:Z.x,pe=R.side==="left"?F.y:Z.y;D.style.left=`${ue}px`,D.style.top=`${pe}px`,D.style.transform="translate3d(0px, 0px, 0)",D.style.display="block",D.style.zIndex="100000",typeof R.color=="string"&&R.color.startsWith("var(")&&(D.style.background=G3(D,R.color)??"#FF0060"),R._inited=!0}const I=(P-R.startTime)/1e3;if(I<0)continue;const j=R.life/1e3;if(I>=j){D.style.opacity="0",D.style.display="none",R.ended=!0;continue}W=!0;const O=R.side==="left"?F.x:Z.x,$=R.side==="left"?F.y:Z.y,Y=O+R.vx*I,ae=$+R.vy*I+.5*f*I*I,K=(R.angularVel||0)*I,ne=Y-O,be=ae-$;D.style.transform=`translate3d(${ne}px, ${be}px, 0) rotate(${K}deg)`,D.style.opacity=`${Math.max(0,1-I/j)}`}W?d.current=requestAnimationFrame(J):p.current?.()};d.current=requestAnimationFrame(J);const V=setTimeout(()=>{try{if((h.current?h.current.querySelectorAll(".confetti"):document.querySelectorAll(".confetti")).length===0&&!document.querySelector(".party-container")){const P=document.createElement("div");P.className="party-container",P.style.position="fixed",P.style.inset="0",P.style.pointerEvents="none",P.style.overflow="visible",P.style.zIndex="2147483647";for(const W of l){const R=document.createElement("span");R.className=`confetti confetti--${W.side}`,R.setAttribute("aria-hidden","true"),R.style.display="none",R.style.position="fixed",R.style.left="0px",R.style.top="0px",R.style.width=`${W.size}px`,R.style.height=`${Math.max(4,W.size*.6)}px`,R.style.background=W.color,R.style.borderRadius=W.borderRadius,R.style.transform="translate3d(0,0,0)",R.style.opacity="0",P.appendChild(R),c.current[W.id]=R}(document.body||h.current).appendChild(P),m.current=P}}catch{}},300);return()=>{if(d.current&&cancelAnimationFrame(d.current),clearTimeout(V),m.current){try{m.current.remove()}catch{}m.current=null}}},[e,a,i,l]),!e)return null;const y=t.jsx("div",{className:"party-container",ref:u,children:l.map(f=>t.jsx("span",{"aria-hidden":!0,ref:x=>{c.current[f.id]=x},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"?Xt.createPortal(y,h.current||document.body):y}const Zo=e=>typeof e=="number"&&Number.isFinite(e)&&e>0?e:void 0;function K3({trigger:e=0,active:n=!1}){const[a,r]=o.useState(null);o.useEffect(()=>{if(typeof window>"u")return;const i=l=>{const u=l.detail??{};r(c=>({n:(c?.n??0)+1,count:Zo(u.count),strength:Zo(u.strength),duration:Zo(u.duration)}))};return window.addEventListener("party:trigger",i),()=>window.removeEventListener("party:trigger",i)},[]);const s=o.useCallback(()=>r(null),[]);return t.jsxs(t.Fragment,{children:[t.jsx(Yo,{active:n,trigger:e}),a&&t.jsx(Yo,{active:!0,trigger:a.n,count:a.count,strength:a.strength,duration:a.duration,onComplete:s})]})}function Y3({title:e,sub:n,rightAction:a,titleAction:r,badge:s,badgeVariant:i="default",documentTitle:l,onBack:u,backLabel:c,wrap:d=!1}){const{t:p}=ye.useTranslation();Ug(typeof e=="string"?e:l??null);const m=c??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:[u&&t.jsx(de,{htmlType:"button",className:"page-title__back",size:48,type:"dot",icon:"chevron-left",iconSize:"large",useBorder:!1,iconColor:"var(--color-text-primary)",ariaLabel:m,showTooltipInfo:m,onClick:u}),t.jsx("h1",{className:"page-title__title h1",children:e}),s&&t.jsx("div",{className:"page-title__badge",children:t.jsx(yt,{label:s,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 Z3(e){return e??""}const wc=o.createContext({words:[],loading:!1});function X3(){return o.useContext(wc)}function J3({words:e,loading:n,error:a,statusMessage:r,localVersion:s,remoteVersion:i,progress:l,clearAndRefetch:u,checkRemoteVersion:c,children:d}){return t.jsx(wc.Provider,{value:{words:e,loading:n,error:a,statusMessage:r,localVersion:s,remoteVersion:i,progress:l,clearAndRefetch:u,checkRemoteVersion:c},children:d})}function Q3({items:e,actions:n,columns:a,flat:r=!1,className:s,style:i}){const l=a??e.length;return t.jsx("section",{className:De("summary-strip",r&&"summary-strip--flat",s),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((u,c)=>t.jsxs("div",{className:"summary-strip__item",children:[t.jsx("p",{className:"summary-strip__label caption-1",children:u.label}),t.jsx("p",{className:"summary-strip__value body-3b",title:typeof u.value=="string"||typeof u.value=="number"?String(u.value):void 0,children:u.value})]},c))}),n&&t.jsx("div",{className:"summary-strip__actions",children:n})]})})}const e7=(e,n)=>`${e} / ${n}`;function t7({blocks:e,sectionTitles:n,logo:a,footer:r,pageLabel:s=e7,pageWidth:i,pageHeight:l,margin:u,className:c,style:d}){const{t:p}=ye.useTranslation(),m=o.useRef(null),h=o.useRef(null),g=o.useRef(null),y=o.useRef(null),[f,x]=o.useState(null),[b,C]=o.useState(!1);o.useEffect(()=>{const T=m.current;if(!T)return;const L=()=>C(T.scrollWidth>T.clientWidth+1);if(L(),typeof ResizeObserver>"u")return;const F=new ResizeObserver(L);return F.observe(T),()=>F.disconnect()},[f]);const _=e.map(T=>`${T.id}\0${T.section??""}\0${T.group??""}`).join(""),v=f&&f.shape===_?f.pages:null,[A,w]=o.useState(0);o.useEffect(()=>{const T=y.current;if(!T||typeof ResizeObserver>"u")return;const L=new ResizeObserver(()=>w(T.offsetHeight));return L.observe(T),()=>L.disconnect()},[]);const[N,k]=o.useState(0);o.useEffect(()=>{const T=h.current;if(!T||typeof ResizeObserver>"u")return;let L=null;const F=typeof requestAnimationFrame=="function"?V=>requestAnimationFrame(V):V=>setTimeout(V,16),Z=typeof cancelAnimationFrame=="function"?cancelAnimationFrame:V=>clearTimeout(V),J=new ResizeObserver(()=>{L==null&&(L=F(()=>{L=null,k(V=>V+1)}))});return Array.from(T.children).forEach(V=>J.observe(V)),()=>{J.disconnect(),L!=null&&Z(L)}},[_]),o.useLayoutEffect(()=>{const T=h.current,L=y.current;if(!T||!L)return;const F=j=>j.getBoundingClientRect().height||j.offsetHeight,Z=new Map;g.current?.querySelectorAll("[data-chrome-section]").forEach(j=>{Z.set(j.dataset.chromeSection??"",F(j))});const J=j=>F(L)-(Z.get(j??"")??0),V=Array.from(T.children).map(j=>F(j)),P=[];e.forEach((j,O)=>{const $=P[P.length-1],Y=$?e[$[0]]:void 0;Y&&j.group!=null&&Y.group===j.group&&Y.section===j.section?$.push(O):P.push([O])});const W=[];let R=[],D=0;const I=()=>{R.length&&W.push(R),R=[],D=0};P.forEach(j=>{const O=j.reduce((Y,ae)=>Y+V[ae],0),$=J(e[j[0]].section);R.length&&e[R[0]].section!==e[j[0]].section&&I(),O>$?j.forEach(Y=>{R.length&&D+V[Y]>$+.01&&I(),R.push(Y),D+=V[Y]}):(R.length&&D+O>$+.01&&I(),j.forEach(Y=>R.push(Y)),D+=O)}),I(),x(j=>j&&j.shape===_&&JSON.stringify(j.pages)===JSON.stringify(W)?j:{shape:_,pages:W})},[_,A,i,l,u,N]);const B=ro,S=B,E=r??t.jsxs(t.Fragment,{children:[t.jsx("img",{src:S,alt:"IHAB",className:"report-doc__logo"}),"\xA9 IHAB, Inc. All rights reserved."]}),H=(T,L,F)=>({header:t.jsxs("div",{className:"report-doc__header",children:[t.jsx("h2",{className:"report-doc__title h3b",children:F!=null&&n?.[F]||null}),a]}),footer:t.jsxs("div",{className:"report-doc__footer caption-1",children:[t.jsx("span",{className:"report-doc__footer-left",children:E}),t.jsx("span",{className:"report-doc__page-no",children:s(T,L)})]})}),z=Array.from(new Set(e.map(T=>T.section??""))),U={...i?{"--report-page-w":i}:null,...l?{"--report-page-h":l}:null,...u?{"--report-margin":u}:null,...d};return t.jsxs("div",{ref:m,className:De("report-doc",c),style:U,tabIndex:b?0:void 0,role:b?"group":void 0,"aria-label":b?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:y,className:"report-doc__ruler"}),t.jsx("div",{ref:g,children:z.map(T=>{const L=H(1,1,T||void 0);return t.jsxs("div",{"data-chrome-section":T,children:[L.header,L.footer]},T)})}),t.jsx("div",{ref:h,className:"report-doc__measure-blocks",children:e.map(T=>t.jsx("div",{children:T.content},T.id))})]}),v&&t.jsx("div",{className:"report-doc__pages",children:v.map((T,L)=>{const{header:F,footer:Z}=H(L+1,v.length,e[T[0]].section);return t.jsxs("section",{className:"report-doc__page",children:[F,T.map(J=>t.jsx("div",{children:e[J].content},e[J].id)),Z]},L)})})]})}function n7({title:e,fields:n,columns:a=4,className:r,style:s}){return t.jsxs("div",{className:De("report-info",r),style:{"--report-info-cols":String(a),...s},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))})]})}const Kn=new Map;let mr=null;const a7=12;function r7(e){for(let n=e.parentElement;n&&n!==document.body;n=n.parentElement){const a=window.getComputedStyle(n);if(a.transform&&a.transform!=="none"||a.filter&&a.filter!=="none"||a.perspective&&a.perspective!=="none"||/paint|layout|strict|content/.test(a.contain||""))return n}return document}function hr(){const e=new Map;for(const n of Kn.keys()){if(!n.isConnected)continue;const a=r7(n),r=e.get(a)??[];r.push(n),e.set(a,r)}for(const n of e.values()){n.sort((r,s)=>r.compareDocumentPosition(s)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1);let a=0;for(const r of n){a>0?r.style.setProperty("--update-alert-stack-offset",`${a}px`):r.style.removeProperty("--update-alert-stack-offset");const s=r.getBoundingClientRect().height;s>0&&(a+=s+a7)}}}function o7(e){return typeof window>"u"?()=>{}:(Kn.set(e,(Kn.get(e)??0)+1),Kn.get(e)===1&&typeof ResizeObserver<"u"&&(mr??(mr=new ResizeObserver(()=>hr())),mr.observe(e)),hr(),()=>{const n=(Kn.get(e)??1)-1;if(n>0){Kn.set(e,n),hr();return}Kn.delete(e),mr?.unobserve(e),e.style.removeProperty("--update-alert-stack-offset"),hr()})}function s7({title:e,message:n,actionLabel:a,onAction:r,icon:s,onClose:i,className:l=""}){const{t:u}=ye.useTranslation(),c=a??u("common.update","\uC5C5\uB370\uC774\uD2B8"),d=o.useRef(null),p=o.useRef(!1);return o.useLayoutEffect(()=>{const m=d.current,h=m?.parentElement?.closest(".update-alert-stack")??m,g=h?o7(h):null;return()=>{g?.(),p.current&&m&&m.contains(document.activeElement)&&Ua(m)}},[]),t.jsxs("div",{ref:d,className:De("update-alert",l),role:"alert",children:[i&&t.jsx("button",{type:"button",className:"update-alert__close",onClick:()=>{p.current=!0,i()},"aria-label":u("common.close","\uB2EB\uAE30"),children:"\xD7"}),t.jsxs("div",{className:"update-alert__top",children:[t.jsx("div",{className:"update-alert__icon",children:s??t.jsx(us,{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(de,{htmlType:"button",size:32,variant:"main",shape:"pill",className:"update-alert__action",onClick:r,children:c})]})}function i7({title:e,titleLevel:n=3,description:a,topActions:r,children:s,footerLeft:i,footerRight:l,onClick:u,draggable:c,onDragStart:d,onDragEnd:p,className:m}){const h=n?`h${n}`:"div",g=i!=null||l!=null,y=s!=null&&s!==!1,f=o.useCallback(x=>{u&&x.target===x.currentTarget&&(x.key==="Enter"||x.key===" ")&&(x.preventDefault(),u())},[u]);return t.jsxs("div",{className:De("training-card",u?"training-card--clickable":"",m),onClick:u,onKeyDown:u?f:void 0,role:u?"button":void 0,tabIndex:u?0:void 0,draggable:c,onDragStart:d,onDragEnd:p,children:[t.jsxs("div",{className:"training-card__header",children:[t.jsxs("div",{className:"training-card__title-row",children:[typeof e=="string"?t.jsx(h,{className:"training-card__title h4",children:e}):e,r!=null&&t.jsx("div",{className:"training-card__top-actions",onClick:x=>x.stopPropagation(),children:r})]}),a!=null?typeof a=="string"?t.jsx("p",{className:"training-card__description body-3",children:a}):a:t.jsx("p",{className:"training-card__description body-3","aria-hidden":"true",children:" "})]}),y&&t.jsx("div",{className:"training-card__body",children:s}),g&&t.jsxs("div",{className:"training-card__footer",children:[i!=null&&t.jsx("div",{className:"training-card__footer-left",children:i}),l!=null&&t.jsx("div",{className:"training-card__meta",children:l})]})]})}function l7({title:e,titleLevel:n=3,count:a,collapsed:r=!1,onToggle:s,sort:i,actions:l,empty:u=!1,emptyContent:c,dragOver:d=!1,onDragOver:p,onDragLeave:m,onDrop:h,children:g,className:y}){const{t:f}=ye.useTranslation(),x=o.useId(),b=n?`h${n}`:"span",C=s!=null,_=De("training-card-group",d&&"training-card-group--dragover",r&&"training-card-group--collapsed",C&&"training-card-group--collapsible",y);return t.jsxs("div",{className:_,onDragOver:p,onDragLeave:m,onDrop:h,role:typeof e=="string"&&e?"group":void 0,"aria-labelledby":typeof e=="string"&&e?x:void 0,children:[t.jsxs("header",{className:"training-card-group__header",children:[C&&t.jsx(de,{htmlType:"button",size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:r?"chevron-right":"chevron-down",ariaLabel:r?f("common.expand","\uD3BC\uCE58\uAE30"):f("common.collapse","\uC811\uAE30"),className:"training-card-group__chevron","aria-expanded":!r,onClick:s}),typeof e=="string"?t.jsx(b,{id:x,className:"training-card-group__title h5b",children:e}):e,a!==void 0&&t.jsx("span",{className:"training-card-group__count body-3b",children:a}),(i||l!=null)&&t.jsxs("span",{className:"training-card-group__actions",onClick:v=>v.stopPropagation(),children:[i&&t.jsx(sn,{size:40,options:i.options,value:i.value,placeholder:i.placeholder,onChange:i.onChange}),l]})]}),!r&&(u?t.jsx("div",{className:"training-card-group__empty body-3",children:c}):t.jsx("div",{className:"training-card-group__grid",children:g}))]})}const u7="speechear:saved_word_tables";function c7(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 d7(){try{const e=localStorage.getItem(u7);if(!e)return[];const n=JSON.parse(e);return Array.isArray(n)?n.filter(c7):[]}catch{return[]}}function Ac(e){return{label:e.word,subLabel:e.pronunciation,colloquialLabel:e.colloquialPronunciation,homonum:e.homonum,grade:e.grade,syllables:[...e.word].length,pos:e.pos,wordType:e.wordType}}function Xo(e){return e.map(n=>n.homonum!=null?`${n.word}#${n.homonum}`:n.word).join("|")}function p7(e){const n=new Set;return e.map(a=>{let r=a.id;for(let s=2;n.has(r);s++)r=`${a.id}~${s}`;return n.add(r),r===a.id?a:{...a,id:r}})}function m7({title:e,titleIcon:n,disc:a,filterTitle:r,filterCollapsible:s,filterDefaultCollapsed:i,filterCollapsed:l,onFilterCollapsedChange:u,filterHeaderSummary:c,brand:d,code:p,items:m,onSaveComplete:h,onLoad:g,onRemoveItem:y,onReset:f,resetLabel:x,saveButtonLabel:b,secondarySaveButtonLabel:C,onReorder:_,showCellCount:v,onAddItem:A,className:w,renderSavePopup:N,renderWordSearch:k,hideControls:B,saveOnly:S,tableName:E,nameValue:H,onNameChange:z,descriptionValue:U,onDescriptionChange:T,namePlaceholder:L,descriptionPlaceholder:F,existingNames:Z,editingName:J,onCancel:V,initialItemsPerPage:P,renderCellAction:W,actionsLeftExtra:R}){const{t:D}=ye.useTranslation(),I=x??D("wordPrint.clearAllSelection","\uBAA8\uB450 \uC120\uD0DD \uD574\uC81C"),j=m===void 0,O=!!z,[$,Y]=o.useState([]),ae=(H??"").trim(),K=ae||(L??"").trim(),ne=(U??"").trim()||(F??"").trim(),be=(Z??[]).map(Ne=>Ne.trim().toLowerCase()),ue=[J?.trim().toLowerCase(),...$].filter(Ne=>!!Ne),pe=[...be];for(const Ne of ue){const ze=pe.indexOf(Ne);ze!==-1&&pe.splice(ze,1)}const q=ae!==""&&pe.includes(ae.toLowerCase()),[ee,ie]=o.useState(Array(4).fill(null)),[ve,me]=o.useState(4),[oe,fe]=o.useState(null),ge=ee.slice(0,ve),Ee=!!d?.show,[Ie,Le]=o.useState(!0),[Je,et]=o.useState(!0),Ve=d&&{...d,top:Ie,bottom:Je},[He,it]=o.useState("landscape"),[Qe,Ye]=o.useState(["\uC774\uBBF8\uC9C0","\uB2E8\uC5B4","\uD45C\uC900 \uBC1C\uC74C"]),[re,Re]=o.useState("\uD45C\uC2DC"),[te,we]=o.useState(!0),[We,Be]=o.useState(!0),Se=o.useRef(null),he=o.useRef([]),[Me,nt]=o.useState(P==="all"?Number.POSITIVE_INFINITY:P??8),[_t,kt]=o.useState("right"),[dt,Ze]=o.useState(!1),[qe,$e]=o.useState(!1),{toastMessage:Xe,toastType:Fe,showWarning:st,clearToast:Ge}=ll("warning"),ft=o.useCallback(()=>fe(null),[fe]);A&&!j&&!v&&pn("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[jt,Bt]=o.useState(()=>Math.max(m?.length??1,1)),mt=j?ve:v?Math.max(jt,m?.length??1,1):Math.max(m?.length??0,1),{width:lt,height:Oe}=ia[He],at=!j&&!v,ht=m?.length??0,Ot=Math.min(Me,Math.max(ht,1)),tt=at?Ot:mt,Tt=at?hu(m??[],tt):null,Yt=!!Tt&&Tt.length>1,Mt=j?ge.some(Ne=>Ne!==null&&Ne.length>1):(m??[]).some(Ne=>(Ne.words??[]).length>1),ln=E?.trim()||`${ci(va())} ${Mt?D("wordTable.printFileNamePair","\uB300\uB9BD\uC30D\uD45C"):D("wordTable.printFileNameSingle","\uB2E8\uC5B4\uD45C")}`,un=o.useCallback(()=>Yt?he.current.filter(Ne=>Ne!==null):Se.current?[Se.current]:[],[Yt]),{print:cn,openNewWindow:Rn,downloadHtml:dn}=Do({getElements:un,paperW:lt,paperH:Oe,fileName:ln,onPopupBlocked:()=>{st(D("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."))}}),Pn=Ne=>{me(Ne),ie(ze=>ze.length>=Ne?ze:[...ze,...Array(Ne-ze.length).fill(null)]),fe(null)},Nn=Ne=>{ie(ze=>{const xt=[...ze];return xt[Ne]=null,xt}),oe===Ne&&fe(null)},Nt=Ne=>{if(oe===null)return;const ze=oe;ie(zt=>{const Vt=[...zt];return Vt[ze]=Ne.length>0?Ne:null,Vt});const xt=ge.findIndex((zt,Vt)=>Vt>ze&&zt===null);fe(xt!==-1?xt:null)},Cn=j?ge.some(Ne=>Ne?.some(ze=>!!ze.colloquialPronunciation)):(m??[]).some(Ne=>(Ne.words??[]).some(ze=>!!ze.colloquialLabel)),Ht=o.useMemo(()=>Xn()?j?ee.slice(0,ve).flatMap(Ne=>(Ne??[]).map(ze=>[ze.word,ze.homonum])):(m??[]).flatMap(Ne=>(Ne.words??[]).map(ze=>[ze.label,ze.homonum])):[],[j,ee,ve,m]),[Zt,fn]=o.useState(!1);o.useEffect(()=>{if(Ht.length===0)return;let Ne=!1;return Promise.all(Ht.map(([ze,xt])=>Js(ze,xt))).then(ze=>{Ne||fn(ze.some(Boolean))},()=>{}),()=>{Ne=!0}},[Ht]);const en=Ht.length>0&&Zt,gn=o.useMemo(()=>[...j||v?[{label:D("wordTable.filter.columns","\uCE78 \uC218"),items:Ky.map(Ne=>({value:`${Ne}\uCE78`,displayLabel:D("wordTable.filter.column",{count:Ne})})),display:"segmented"}]:[],...at&&(m?.length??0)>0?[ju(D,{hasPairs:Mt,itemCount:ht})]:[],...Yt?[Yy(D)]:[]],[D,j,v,at,m?.length,Mt,ht,Yt]),In={...j||v?{[D("wordTable.filter.columns","\uCE78 \uC218")]:`${mt}\uCE78`}:{},...at&&(m?.length??0)>0?{[D(Mt?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord")]:`${Ot}\uAC1C`}:{},...Yt?{[D("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")]:Mu[_t]}:{}},bn=(Ne,ze)=>{ze===D("wordTable.filter.columns","\uCE78 \uC218")?j?Pn(parseInt(Ne)):Bt(parseInt(Ne)):ze===D(Mt?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord")?nt(Tu(parseInt(Ne),ht)):ze===D("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")&&kt(Lu(Ne))},se=j?p7(ge.filter(Ne=>Ne!==null&&Ne.length>0).map(Ne=>({id:Xo(Ne),words:Ne.map(Ac)}))):m??[],xe=()=>{j&&ie(Ne=>Ne.length>ve?Ne.slice(0,ve):Ne)},G=(Ne=!1)=>{if($e(Ne),O&&h){const ze=K.trim().toLowerCase();ze&&Y(xt=>xt.includes(ze)?xt:[...xt,ze]),h(K,se,ne||void 0,Ne),xe();return}if(S&&h){h("",se,void 0,Ne),xe();return}if(h){Ze(!0);return}dn()},[le,ce]=o.useState(!1),[_e,Ae]=o.useState(""),je=_e.trim(),rt=je!==""&&be.includes(je.toLowerCase()),gt=()=>{Ae(K?D("wordTable.save.copyName",{name:K,defaultValue:"{{name}} (\uBCF5\uC0AC)"}):""),ce(!0)},ut=()=>{!je||rt||!h||(h(je,se,ne||void 0,!0),xe(),ce(!1))},vt=se.length===0,Rt=vt||O&&(K===""||q),Lt=()=>{if(vt){st(D("wordTable.emptyItems","\uB2E8\uC5B4\uB97C 1\uAC1C \uC774\uC0C1 \uCD94\uAC00\uD574\uC8FC\uC138\uC694."));return}if(O&&K===""){st(D("wordTable.save.nameRequired","\uD45C \uC774\uB984\uC744 \uC785\uB825\uD574 \uC8FC\uC138\uC694."));return}O&&q&&st(D("wordTable.save.duplicateName","\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4."))},nn=t.jsx(la,{items:se,orientation:He,contentTypes:Qe,cutLine:re,showOutline:te,showDivLine:We,count:mt});return t.jsxs(t.Fragment,{children:[t.jsxs(sa,{type:"page",icon:n,title:e,disc:a,className:De("word-table-block",w),children:[le&&t.jsx(Tn,{size:"small",title:C??D("wordTable.saveAsNewButton","\uB2E4\uB978 \uC774\uB984\uC73C\uB85C \uC800\uC7A5"),onClose:()=>ce(!1),footer:({closeWithAnimation:Ne})=>t.jsxs(t.Fragment,{children:[t.jsx(de,{htmlType:"button",size:48,type:"bar",label:D("common.cancel","\uCDE8\uC18C"),onClick:Ne}),t.jsx(de,{htmlType:"button",size:48,type:"bar",variant:"main",label:D("common.save","\uC800\uC7A5"),disabled:!je||rt,onClick:ut})]}),children:t.jsx(Un,{label:D("wordTable.save.nameLabel","\uC774\uB984"),value:_e,onChange:Ae,placeholder:D("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:ut,error:rt?D("wordTable.save.duplicateName","\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4."):void 0})}),dt&&h&&N?.({defaultName:typeof e=="string"?e:D("wordTable.defaultName","\uB2E8\uC5B4 \uD45C"),preview:nn,previewW:lt,previewH:Oe,items:se,existingNames:d7().map(Ne=>Ne.name),saveAsNew:qe,onSave:(Ne,ze)=>{h(Ne,se,ze,qe),xe(),Ze(!1)},onCancel:()=>Ze(!1)}),(j||A)&&oe!==null&&k?.({cellIndex:oe,onConfirm:j?Nt:Ne=>{if(A){const ze=Ne[0];if(ze){const xt=new Set((m??[]).map(Vt=>Vt.id));let zt=Xo([ze]);for(let Vt=2;xt.has(zt);Vt++)zt=`${Xo([ze])}~${Vt}`;A({id:zt,words:[Ac(ze)]})}}fe(null)},onClose:ft}),!B&&t.jsx(ko,{title:r,collapsible:s,defaultCollapsed:i,collapsed:l,onCollapsedChange:u,headerSummary:c,hasImage:en,hasColloquial:Cn,contentTypes:Qe,orientation:He,showOutline:te,cutLine:re,showDivLine:We,setters:{setContentTypes:Ye,setOrientation:it,setShowOutline:we,setCutLine:Re,setShowDivLine:Be,setShowTopInfo:Le,setShowBottomInfo:et},showCutLine:(at?tt:mt)>1,showDivLine2:Mt,middleSections:gn,extraSelected:In,onExtraSelect:bn,showPaperBands:Ee,showTopInfo:Ie,showBottomInfo:Je}),Yt&&Tt?t.jsx("div",{className:"word-table-block__pages",children:Tt.map((Ne,ze)=>t.jsx(la,{orientation:He,contentTypes:Qe,cutLine:re,showOutline:te,showDivLine:We,count:tt,items:Ne,onRemoveItem:y,onReorder:_&&((xt,zt)=>_(xt+ze*tt,zt+ze*tt)),renderCellAction:W&&((xt,zt)=>W(xt+ze*tt,zt)),brand:Ve,code:p,contentRef:xt=>{he.current[ze]=xt},pageNumber:{current:ze+1,total:Tt.length},pageNumberPosition:_t},ze))}):t.jsx(la,{orientation:He,contentTypes:Qe,cutLine:re,showOutline:te,showDivLine:We,count:mt,items:j?void 0:m??[],editCells:j?ge:void 0,activeCell:oe,onActivateCell:j||A?fe:void 0,onRemoveCell:j?Nn:void 0,onRemoveItem:j?void 0:y,onReorder:j?void 0:_,renderCellAction:j?void 0:W,brand:Ve,code:p,showFillerAdd:!!A,contentRef:Se}),O&&!B&&t.jsxs(cr,{size:"medium",labelWidth:64,useBorder:!1,useRowBorder:!1,className:"word-table-block__meta",children:[t.jsx(Mn,{variant:"custom",label:D("wordTable.save.nameLabel","\uC774\uB984"),required:!0,align:"vertical",useFullWidth:!0,children:t.jsx(Un,{required:!0,value:H??"",onChange:z,placeholder:L?L+D("wordTable.save.autoFillHint"," (Tab \uB610\uB294 space \uC785\uB825\uC2DC \uC790\uB3D9 \uC785\uB825)"):D("wordTable.save.placeholder","\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC81C\uBAA9\uC744 \uC785\uB825\uD558\uC138\uC694."),ariaLabel:D("wordTable.save.nameLabel","\uC774\uB984"),maxLength:40,size:48,fullWidth:!0,error:q?D("wordTable.save.duplicateName","\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4."):void 0,onKeyDown:Ne=>{(Ne.key==="Tab"&&!Ne.shiftKey||Ne.key===" ")&&!(H??"").trim()&&(L??"").trim()&&(Ne.preventDefault(),z?.(L??""))}})}),t.jsx(Mn,{variant:"custom",label:D("wordTable.save.descriptionLabel","\uC124\uBA85"),align:"vertical",useFullWidth:!0,children:t.jsx(Un,{value:U??"",onChange:T,placeholder:F?F+D("wordTable.save.autoFillHint"," (Tab \uB610\uB294 space \uC785\uB825\uC2DC \uC790\uB3D9 \uC785\uB825)"):D("wordTable.save.descriptionPlaceholder","\uC774 \uB2E8\uC5B4\uD45C\uC5D0 \uB300\uD55C \uC124\uBA85\uC744 \uC785\uB825\uD558\uC138\uC694."),ariaLabel:D("wordTable.save.descriptionLabel","\uC124\uBA85"),maxLength:200,multiline:!0,rows:2,fullWidth:!0,onKeyDown:Ne=>{(Ne.key==="Tab"&&!Ne.shiftKey||Ne.key===" ")&&!(U??"").trim()&&(F??"").trim()&&(Ne.preventDefault(),T?.(F??""))}})})]})]}),!B&&t.jsxs("div",{className:"word-table-block__actions",children:[t.jsxs("div",{className:"word-table-block__actions-left",children:[!S&&f&&t.jsx(de,{htmlType:"button",size:40,type:"bar",label:I,onClick:f}),!S&&R,!S&&g&&t.jsx(de,{htmlType:"button",size:40,type:"bar",label:D("wordTable.load","\uBD88\uB7EC\uC624\uAE30"),onClick:g}),!S&&t.jsx(de,{htmlType:"button",size:40,type:"bar",label:D("wordTable.openNewWindow","\uC0C8 \uCC3D\uC73C\uB85C \uBCF4\uAE30"),onClick:Rn})]}),t.jsxs("div",{className:"word-table-block__actions-right",children:[V&&t.jsx(de,{htmlType:"button",size:"56",type:"bar",label:D("common.cancel","\uCDE8\uC18C"),onClick:V}),!S&&t.jsx(de,{htmlType:"button",size:"56",type:"bar",label:D("wordTable.print","\uC778\uC1C4\uD558\uAE30"),onClick:cn}),C&&t.jsx(de,{htmlType:"button",size:"56",type:"bar",label:C,onClick:()=>O?gt():G(!0),disabled:vt,onDisabledClick:()=>{st(D("wordTable.emptyItems","\uB2E8\uC5B4\uB97C 1\uAC1C \uC774\uC0C1 \uCD94\uAC00\uD574\uC8FC\uC138\uC694."))}}),t.jsx(de,{htmlType:"button",size:"56",type:"bar",variant:"main",label:b??D("wordTable.saveButton","\uC800\uC7A5\uD558\uAE30"),onClick:()=>G(!1),disabled:Rt,onDisabledClick:Lt})]})]}),t.jsx(ra,{message:Xe,type:Fe,onClose:Ge})]})}function kc({items:e,className:n}){const a=e.length,r=a<=3?1:2,s=Math.ceil(a/r)||1,i=r*s;return t.jsx("div",{className:De("word-table-thumb",n),style:{gridTemplateColumns:`repeat(${r}, 1fr)`},children:Array.from({length:i},(l,u)=>{const c=e[u];return c?t.jsx("div",{className:"word-table-thumb__cell",children:(c.words?.length?c.words:[{label:c.id}]).map((d,p)=>t.jsxs(o.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))},u):t.jsx("div",{className:"word-table-thumb__cell word-table-thumb__cell--empty"},u)})})}function h7({items:e,name:n,description:a,createdAt:r,code:s,published:i,publishedLabel:l,shared:u,sharedLabel:c,isNew:d,publisherName:p,publishedAt:m,likeCount:h,downloadCount:g,onPublisherClick:y,selected:f,onClick:x,onMore:b,titleNode:C,className:_}){const{t:v}=ye.useTranslation(),A=C!=null,w=p!=null||m!=null||h!=null||g!=null,N=k=>{k.target===k.currentTarget&&!A&&(k.key==="Enter"||k.key===" ")&&(k.preventDefault(),x?.())};return t.jsxs("div",{className:De("word-table-button",f?"word-table-button--selected":"",w?"":"word-table-button--no-footer",_),role:"button",tabIndex:0,"aria-label":s?`${n} (${s})`:n,onClick:A?void 0:x,onKeyDown:N,children:[d&&t.jsx("span",{className:"word-table-button__new-dot","aria-label":v("myWordTable.newBadge","\uC0C8\uB85C \uB9CC\uB4E0 \uD45C")}),t.jsx(kc,{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:[C??t.jsx("div",{className:"word-table-button__title h4",children:n}),a&&t.jsx("div",{className:"word-table-button__desc body-3",children:a})]}),b&&!A&&t.jsx(de,{htmlType:"button",className:"word-table-button__more",size:32,type:"dot",variant:"transparent-gray",useBorder:!1,icon:"ellipsis",ariaLabel:v("common.moreFor",{name:n}),onClick:k=>{k.stopPropagation(),b(k)}})]}),(s||r||i||u)&&t.jsxs("div",{className:"word-table-button__meta-row",children:[t.jsx("span",{className:"word-table-button__meta-left",children:t.jsx("span",{className:"word-table-button__meta caption-1",children:r?ui(r,v):""})}),t.jsxs("span",{className:"word-table-button__meta-right",children:[(i||u)&&t.jsxs("span",{className:"word-table-button__badges",children:[i&&t.jsx(yt,{className:"word-table-button__badge",size:"small",variant:"main",fill:"soft",iconLeft:"book-marked",label:l??v("myWordTable.publishedBadge","\uBC1C\uD589\uB428")}),u&&t.jsx(yt,{className:"word-table-button__badge",size:"small",fill:"soft",iconLeft:"link",label:c??v("myWordTable.sharedBadge","\uACF5\uC720 \uC911")})]}),s&&t.jsx("span",{className:"word-table-button__code caption-1",children:s})]})]}),w&&t.jsxs("div",{className:"word-table-button__footer",children:[t.jsxs("span",{className:"word-table-button__store-by",children:[p&&t.jsx("button",{className:"training-card__publisher body-4",type:"button",onClick:k=>{k.stopPropagation(),y?.()},children:p}),m&&t.jsx("span",{className:"training-card__date body-4",children:ui(m,v)})]}),t.jsxs("span",{className:"word-table-button__store-stats",children:[h!=null&&t.jsx(yt,{size:"small",fill:"soft",variant:"like",iconLeft:"heart",label:String(h),"aria-label":v("common.likeCount",{count:h,defaultValue:`\uC88B\uC544\uC694 ${h}`})}),g!=null&&t.jsx(yt,{size:"small",fill:"soft",variant:"main",iconLeft:"download",label:String(g),"aria-label":v("common.downloadCount",{count:g,defaultValue:`\uAC00\uC838\uAC04 \uC218 ${g}`})})]})]})]})}/**
1049
1049
  * @license lucide-react v1.38.0 - ISC
1050
1050
  *
1051
1051
  * This source code is licensed under the ISC license.