@ihabdevteam/core 0.286.0 → 0.289.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +90 -0
- package/dist/components.cjs.js +12 -12
- package/dist/hooks.cjs.js +1 -1
- package/dist/i18n.cjs.js +1 -1
- package/dist/ihabdevteam-core.cjs.js +16 -16
- package/dist/ihabdevteam-core.d.ts +1 -1
- package/dist/packages/core/src/components/Training/TrainingStepAudioPlayer.js +17 -23
- package/dist/packages/core/src/components/Training/audioTimeline.d.ts +17 -1
- package/dist/packages/core/src/components/Training/audioTimeline.js +18 -2
- package/dist/packages/core/src/components/Training/useNoiseFade.js +6 -0
- package/dist/packages/core/src/components/Training/useProgressTicker.js +17 -4
- package/dist/packages/core/src/version.d.ts +1 -1
- package/dist/packages/core/src/version.js +1 -1
- package/dist/utils.cjs.js +1 -1
- package/package.json +1 -1
package/dist/components.cjs.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var n=require("react/jsx-runtime"),o=require("react")
|
|
1
|
+
"use strict";var n=require("react/jsx-runtime"),o=require("react"),$t=require("i18next"),ve=require("react-i18next"),Qt=require("react-dom"),vn=typeof document<"u"?document.currentScript:null;function Tc(e){var t=Object.create(null);return e&&Object.keys(e).forEach(function(a){if(a!=="default"){var r=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,r.get?r:{enumerable:!0,get:function(){return e[a]}})}}),t.default=e,Object.freeze(t)}var rs=Tc(o);function Ae(...e){return e.filter(Boolean).join(" ")}const os=new Set,Zn=(()=>{try{const e=globalThis;return e.process!=null&&e.process.env?.NODE_ENV!=="production"}catch{return!1}})();function Yt(e,...t){!Zn||os.has(e)||(os.add(e),console.warn(...t))}/**
|
|
2
2
|
* @license lucide-react v1.38.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|
|
@@ -823,9 +823,9 @@
|
|
|
823
823
|
*
|
|
824
824
|
* This source code is licensed under the ISC license.
|
|
825
825
|
* See the LICENSE file in the root directory of this source tree.
|
|
826
|
-
*/const m0=[["path",{d:"M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z",key:"emmmcr"}],["path",{d:"M7 10v12",key:"1qc93n"}]],h0=Q("thumbs-up",m0),ws={"alert-triangle":ls,"align-start-vertical":Hc,anchor:xh,armchair:wh,"arrow-down":Vc,"arrow-left":qc,"arrow-right":Gc,"arrow-right-left":Yc,"arrow-up-a-z":Ah,"audio-lines":Xc,baby:Qc,ban:td,"bar-chart-2":Nh,bell:ad,"book-marked":od,"book-open":id,"bow-arrow":ud,braces:dd,bug:md,calendar:vs,"calendar-check":Cd,"calendar-days":gd,camera:yd,car:Sh,"chart-column":xd,"chart-line":wd,"chart-pie":Ad,check:us,"chevron-down":xs,"chevron-left":cs,"chevron-right":ds,"chevron-up":_s,circle:s0,"clipboard-list":Sd,coffee:Th,combine:Td,copy:Ld,"chevrons-left-right-ellipsis":Rd,"credit-card":Id,database:ps,diff:Hd,download:ms,ear:Wd,edit:Ud,"edit-2":Kd,"edit-3":Zd,ellipsis:hs,eraser:Qd,"external-link":tp,eye:ap,"file-text":op,"flip-horizontal":ip,"folder-open":up,"folder-plus":dp,gamepad:mp,"gamepad-2":Lh,clock:Rh,target:Ih,percent:Oh,gavel:Cp,"git-merge":Cs,globe:bp,"grip-vertical":vp,headphones:_p,heart:Bp,home:kp,inbox:zh,info:Dp,"key-round":Sp,landmark:Tp,layers:Lp,"layout-dashboard":Rp,leaf:Ip,lightbulb:Op,link:zp,"link-2":Wp,"link-2-off":Up,list:Kp,"list-checks":Zp,"list-ordered":Jp,"list-tree":Wh,loader:e1,lock:n1,"log-out":r1,mail:s1,"map-pin":l1,menu:c0,"message-circle":c1,"message-circle-question-mark":p1,"message-square":h1,"message-square-more":Uh,"message-square-text":f1,minus:Kh,"minus-circle":b1,moon:p0,"more-horizontal":hs,package:v1,palette:_1,"party-popper":B1,pause:k1,pencil:D1,phone:S1,play:T1,"play-circle":L1,plus:R1,printer:I1,"refresh-cw":O1,repeat:z1,replace:W1,rocket:U1,"rotate-ccw":K1,"rotate-cw":Z1,salad:J1,"scan-search":em,search:rm,"circle-alert":fs,"alert-circle":fs,"check-circle":gs,scissors:sm,"search-x":lm,send:cm,settings:pm,"share-2":Zh,"shield-check":hm,"shopping-cart":fm,shuffle:bm,"skip-back":vm,"skip-forward":_m,sparkles:Jh,square:Bm,star:km,store:Dm,"sun-medium":Sm,table:Tm,"table-2":Lm,tag:Rm,terminal:Im,"text-cursor-input":Om,"text-initial":zm,"thumbs-up":h0,ticket:Wm,trash:Km,triangle:l0,"trash-2":Um,"trending-up":Zm,"triangle-alert":ls,trophy:Jm,type:e0,unlink:eh,upload:nh,user:Br,"user-plus":oh,"user-round":ih,"user-round-check":uh,users:dh,"users-round":mh,volume:n0,"volume-2":bs,wrench:fh,x:ys,zap:yh};function C0(e){return ws[e]??null}const Bs=new Set;function f0(e){return
|
|
827
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function w0(e,t){return v0(e)||x0(e,t)||B0(e,t)||_0()}function B0(e,t){if(e){if(typeof e=="string")return ks(e,t);var a={}.toString.call(e).slice(8,-1);return a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set"?Array.from(e):a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?ks(e,t):void 0}}const Ns=Object.entries,Ds=Object.setPrototypeOf,A0=Object.isFrozen,k0=Object.getPrototypeOf,N0=Object.getOwnPropertyDescriptor;let St=Object.freeze,jt=Object.seal,Zn=Object.create,Es=typeof Reflect<"u"&&Reflect,Ar=Es.apply,kr=Es.construct;St||(St=function(t){return t}),jt||(jt=function(t){return t}),Ar||(Ar=function(t,a){for(var r=arguments.length,s=new Array(r>2?r-2:0),i=2;i<r;i++)s[i-2]=arguments[i];return t.apply(a,s)}),kr||(kr=function(t){for(var a=arguments.length,r=new Array(a>1?a-1:0),s=1;s<a;s++)r[s-1]=arguments[s];return new t(...r)});const On=At(Array.prototype.forEach),D0=At(Array.prototype.lastIndexOf),Ss=At(Array.prototype.pop),ha=At(Array.prototype.push),E0=At(Array.prototype.splice),Xn=Array.isArray,Ca=At(String.prototype.toLowerCase),Nr=At(String.prototype.toString),js=At(String.prototype.match),fa=At(String.prototype.replace),Ts=At(String.prototype.indexOf),S0=At(String.prototype.trim),j0=At(Number.prototype.toString),T0=At(Boolean.prototype.toString),Ms=typeof BigInt>"u"?null:At(BigInt.prototype.toString),Ls=typeof Symbol>"u"?null:At(Symbol.prototype.toString),Yt=At(Object.prototype.hasOwnProperty),ga=At(Object.prototype.toString),Ft=At(RegExp.prototype.test),Hn=M0(TypeError);function At(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var a=arguments.length,r=new Array(a>1?a-1:0),s=1;s<a;s++)r[s-1]=arguments[s];return Ar(e,t,r)}}function M0(e){return function(){for(var t=arguments.length,a=new Array(t),r=0;r<t;r++)a[r]=arguments[r];return kr(e,a)}}function lt(e,t){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ca;if(Ds&&Ds(e,null),!Xn(t))return e;let r=t.length;for(;r--;){let s=t[r];if(typeof s=="string"){const i=a(s);i!==s&&(A0(t)||(t[r]=i),s=i)}e[s]=!0}return e}function L0(e){for(let t=0;t<e.length;t++)Yt(e,t)||(e[t]=null);return e}function nn(e){const t=Zn(null);for(const r of Ns(e)){var a=w0(r,2);const s=a[0],i=a[1];Yt(e,s)&&(Xn(i)?t[s]=L0(i):i&&typeof i=="object"&&i.constructor===Object?t[s]=nn(i):t[s]=i)}return t}function $0(e){switch(typeof e){case"string":return e;case"number":return j0(e);case"boolean":return T0(e);case"bigint":return Ms?Ms(e):"0";case"symbol":return Ls?Ls(e):"Symbol()";case"undefined":return ga(e);case"function":case"object":{if(e===null)return ga(e);const t=e,a=sn(t,"toString");if(typeof a=="function"){const r=a(t);return typeof r=="string"?r:ga(r)}return ga(e)}default:return ga(e)}}function sn(e,t){for(;e!==null;){const r=N0(e,t);if(r){if(r.get)return At(r.get);if(typeof r.value=="function")return At(r.value)}e=k0(e)}function a(){return null}return a}function R0(e){try{return Ft(e,""),!0}catch{return!1}}const $s=St(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Dr=St(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Er=St(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),P0=St(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Sr=St(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),I0=St(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Rs=St(["#text"]),Ps=St(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),jr=St(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","pointer-events","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","vector-effect","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Is=St(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Ha=St(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),F0=jt(/{{[\w\W]*|^[\w\W]*}}/g),O0=jt(/<%[\w\W]*|^[\w\W]*%>/g),H0=jt(/\${[\w\W]*/g),z0=jt(/^data-[\-\w.\u00B7-\uFFFF]+$/),V0=jt(/^aria-[\-\w]+$/),Fs=jt(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),W0=jt(/^(?:\w+script|data):/i),q0=jt(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),U0=jt(/^html$/i),G0=jt(/^[a-z][.\w]*(-[.\w]+)+$/i),Os=jt(/<[/\w!]/g),Hs=jt(/<[/\w]/g),K0=jt(/<\/no(script|embed|frames)/i),Y0=jt(/\/>/i),an={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},zs=["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"],Z0=St(lt({},zs)),X0=(function(){const e={};return On(zs,t=>{e[t]=jt(new RegExp("</"+t+"(?=[\\t\\n\\f\\r />])","i"))}),St(e)})(),J0=function(){return typeof window>"u"?null:window},Q0=function(t,a){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let r=null;const s="data-tt-policy-suffix";a&&a.hasAttribute(s)&&(r=a.getAttribute(s));const i="dompurify"+(r?"#"+r:"");try{return t.createPolicy(i,{createHTML(l){return l},createScriptURL(l){return l}})}catch{return console.warn("TrustedTypes policy "+i+" could not be created."),null}},Vs=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},Sn=function(t,a,r,s){return Yt(t,a)&&Xn(t[a])?lt(s.base?nn(s.base):{},t[a],s.transform):r},Tr=function(t,a,r){const s=Yt(t,a)?t[a]:void 0;return s&&typeof s=="object"?nn(s):r()};function Ws(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:J0();const t=ge=>Ws(ge);if(t.version="3.4.14",t.removed=[],!e||!e.document||e.document.nodeType!==an.document||!e.Element)return t.isSupported=!1,t;let a=e.document;const r=a,s=r.currentScript;e.DocumentFragment;const i=e.HTMLTemplateElement,l=e.Node,u=e.Element,c=e.NodeFilter,d=e.NamedNodeMap;d===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;const m=e.DOMParser,p=e.trustedTypes,f=u.prototype,b=sn(f,"cloneNode"),y=sn(f,"remove"),C=sn(f,"nextSibling"),v=sn(f,"childNodes"),_=sn(f,"parentNode"),h=sn(f,"shadowRoot"),w=sn(f,"attributes"),g=l&&l.prototype?sn(l.prototype,"nodeType"):null,B=l&&l.prototype?sn(l.prototype,"nodeName"):null,x=l&&l.prototype?sn(l.prototype,"ownerDocument"):null,A=function(M){return g?g(M):M.nodeType},N=function(M){return B?B(M):M.nodeName};if(typeof i=="function"){const ge=a.createElement("template");ge.content&&ge.content.ownerDocument&&(a=ge.content.ownerDocument)}let k,S="",E,F=!1,$=0;const U=function(){if($>0)throw Hn('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},j=function(M){U(),$++;try{return k.createHTML(M)}finally{$--}},T=function(M){U(),$++;try{return k.createScriptURL(M)}finally{$--}},I=function(){return F||(E=Q0(p,s),F=!0),E},K=a,ee=K.implementation,V=K.createNodeIterator,q=K.createDocumentFragment,P=K.getElementsByTagName,O=r.importNode;let D=Vs();t.isSupported=typeof Ns=="function"&&typeof _=="function"&&ee&&ee.createHTMLDocument!==void 0;const H=F0,L=O0,R=H0,z=z0,J=V0,Y=W0,Z=q0,ne=G0;let le=Fs,ue=null;const Ee=lt({},[...$s,...Dr,...Er,...Sr,...Rs]);let W=null;const te=lt({},[...Ps,...jr,...Is,...Ha]);let fe=Object.seal(Zn(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Se=null,Ce=null;const ie=Object.seal(Zn(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let ce=!0,de=!0,be=!1,_e=!0,Be=!1,Ze=!0,Oe=!1,Ie=!1,He=null,ut=null,nt=!1,rt=!1,pt=!1,Ne=!1,Fe=!0,Ae=!1;const at="user-content-";let X=!0,oe=!1,he={},je=null;const ot=lt({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let Ye=null;const bt=lt({},["audio","video","img","source","image","track"]);let Ct=null;const st=lt({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),et="http://www.w3.org/1998/Math/MathML",Xe="http://www.w3.org/2000/svg",tt="http://www.w3.org/1999/xhtml";let $e=tt,Ge=!1,Pe=null;const mt=lt({},[et,Xe,tt],Nr),Tt=St(["mi","mo","mn","ms","mtext"]);let kt=lt({},Tt);const ht=St(["annotation-xml"]);let vt=lt({},ht);const ze=lt({},["title","style","font","a","script"]);let it=null;const wt=["application/xhtml+xml","text/html"],Rt="text/html";let Qe=null,Nt=null;const Dt=a.createElement("form"),Mt=function(M){return M instanceof RegExp||M instanceof Function},Pt=function(){let M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Nt&&Nt===M)return;(!M||typeof M!="object")&&(M={}),M=nn(M),it=wt.indexOf(M.PARSER_MEDIA_TYPE)===-1?Rt:M.PARSER_MEDIA_TYPE,Qe=it==="application/xhtml+xml"?Nr:Ca,ue=Sn(M,"ALLOWED_TAGS",Ee,{transform:Qe}),W=Sn(M,"ALLOWED_ATTR",te,{transform:Qe}),Pe=Sn(M,"ALLOWED_NAMESPACES",mt,{transform:Nr}),Ct=Sn(M,"ADD_URI_SAFE_ATTR",st,{transform:Qe,base:st}),Ye=Sn(M,"ADD_DATA_URI_TAGS",bt,{transform:Qe,base:bt}),je=Sn(M,"FORBID_CONTENTS",ot,{transform:Qe}),Se=Sn(M,"FORBID_TAGS",nn({}),{transform:Qe}),Ce=Sn(M,"FORBID_ATTR",nn({}),{transform:Qe}),he=Yt(M,"USE_PROFILES")?M.USE_PROFILES&&typeof M.USE_PROFILES=="object"?nn(M.USE_PROFILES):M.USE_PROFILES:!1,ce=M.ALLOW_ARIA_ATTR!==!1,de=M.ALLOW_DATA_ATTR!==!1,be=M.ALLOW_UNKNOWN_PROTOCOLS||!1,_e=M.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Be=M.SAFE_FOR_TEMPLATES||!1,Ze=M.SAFE_FOR_XML!==!1,Oe=M.WHOLE_DOCUMENT||!1,rt=M.RETURN_DOM||!1,pt=M.RETURN_DOM_FRAGMENT||!1,Ne=M.RETURN_TRUSTED_TYPE||!1,nt=M.FORCE_BODY||!1,Fe=M.SANITIZE_DOM!==!1,Ae=M.SANITIZE_NAMED_PROPS||!1,X=M.KEEP_CONTENT!==!1,oe=M.IN_PLACE||!1,le=R0(M.ALLOWED_URI_REGEXP)?M.ALLOWED_URI_REGEXP:Fs,$e=typeof M.NAMESPACE=="string"?M.NAMESPACE:tt,kt=Tr(M,"MATHML_TEXT_INTEGRATION_POINTS",()=>lt({},Tt)),vt=Tr(M,"HTML_INTEGRATION_POINTS",()=>lt({},ht));const G=Tr(M,"CUSTOM_ELEMENT_HANDLING",()=>Zn(null));if(fe=Zn(null),Yt(G,"tagNameCheck")&&Mt(G.tagNameCheck)&&(fe.tagNameCheck=G.tagNameCheck),Yt(G,"attributeNameCheck")&&Mt(G.attributeNameCheck)&&(fe.attributeNameCheck=G.attributeNameCheck),Yt(G,"allowCustomizedBuiltInElements")&&typeof G.allowCustomizedBuiltInElements=="boolean"&&(fe.allowCustomizedBuiltInElements=G.allowCustomizedBuiltInElements),jt(fe),Be&&(de=!1),pt&&(rt=!0),he&&(ue=lt({},Rs),W=Zn(null),he.html===!0&&(lt(ue,$s),lt(W,Ps)),he.svg===!0&&(lt(ue,Dr),lt(W,jr),lt(W,Ha)),he.svgFilters===!0&&(lt(ue,Er),lt(W,jr),lt(W,Ha)),he.mathMl===!0&&(lt(ue,Sr),lt(W,Is),lt(W,Ha))),ie.tagCheck=null,ie.attributeCheck=null,Yt(M,"ADD_TAGS")&&(typeof M.ADD_TAGS=="function"?ie.tagCheck=M.ADD_TAGS:Xn(M.ADD_TAGS)&&(ue===Ee&&(ue=nn(ue)),lt(ue,M.ADD_TAGS,Qe))),Yt(M,"ADD_ATTR")&&(typeof M.ADD_ATTR=="function"?ie.attributeCheck=M.ADD_ATTR:Xn(M.ADD_ATTR)&&(W===te&&(W=nn(W)),lt(W,M.ADD_ATTR,Qe))),Yt(M,"ADD_FORBID_CONTENTS")&&Xn(M.ADD_FORBID_CONTENTS)&&(je===ot&&(je=nn(je)),lt(je,M.ADD_FORBID_CONTENTS,Qe)),X&&(ue["#text"]=!0),Oe&<(ue,["html","head","body"]),ue.table&&(lt(ue,["tbody"]),delete Se.tbody),M.TRUSTED_TYPES_POLICY){if(typeof M.TRUSTED_TYPES_POLICY.createHTML!="function")throw Hn('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof M.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Hn('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const pe=k;k=M.TRUSTED_TYPES_POLICY;try{S=j("")}catch(De){throw k=pe,De}}else M.TRUSTED_TYPES_POLICY===null?(k=void 0,S=""):(k===void 0&&(k=I()),k&&typeof S=="string"&&(S=j("")));St&&St(M),Nt=M},gn=lt({},[...Dr,...Er,...P0]),dn=lt({},[...Sr,...I0]),pn=function(M,G,pe){return G.namespaceURI===tt?M==="svg":G.namespaceURI===et?M==="svg"&&(pe==="annotation-xml"||kt[pe]):!!gn[M]},mn=function(M,G,pe){return G.namespaceURI===tt?M==="math":G.namespaceURI===Xe?M==="math"&&vt[pe]:!!dn[M]},In=function(M,G,pe){return G.namespaceURI===Xe&&!vt[pe]||G.namespaceURI===et&&!kt[pe]?!1:!dn[M]&&(ze[M]||!gn[M])},bn=function(M){let G=_(M);(!G||!G.tagName)&&(G={namespaceURI:$e,tagName:"template"});const pe=Ca(M.tagName),De=Ca(G.tagName);return Pe[M.namespaceURI]?M.namespaceURI===Xe?pn(pe,G,De):M.namespaceURI===et?mn(pe,G,De):M.namespaceURI===tt?In(pe,G,De):!!(it==="application/xhtml+xml"&&Pe[M.namespaceURI]):!1},Wt=function(M){ha(t.removed,{element:M});try{_(M).removeChild(M)}catch{if(y(M),!_(M))throw Hn("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},yn=function(M,G,pe){try{M.removeAttributeNode(G)}catch{try{M.removeAttribute(pe)}catch{}}},qt=function(M){rn(M);const G=v(M);if(G){const De=[];On(G,Le=>{ha(De,Le)}),On(De,Le=>{try{y(Le)}catch{}})}const pe=w(M);if(pe)for(let De=pe.length-1;De>=0;--De){const Le=pe[De],Ke=Le&&Le.name;typeof Ke=="string"&&yn(M,Le,Ke)}},It=function(M,G,pe){if(!pe)try{pe=G.getAttributeNode(M)}catch{pe=null}ha(t.removed,{attribute:pe||null,from:G});try{pe?G.removeAttributeNode(pe):G.removeAttribute(M)}catch{try{G.removeAttribute(M)}catch{}}if(M==="is")if(rt||pt)try{Wt(G)}catch{}else try{G.setAttribute(M,"")}catch{}},En=function(M){const G=w(M);if(G)for(let pe=G.length-1;pe>=0;--pe){const De=G[pe],Le=De&&De.name;typeof Le!="string"||W[Qe(Le)]||yn(M,De,Le)}},rn=function(M){const G=[M];for(;G.length>0;){const pe=G.pop();A(pe)===an.element&&En(pe);const Le=v(pe);if(Le)for(let Ke=Le.length-1;Ke>=0;--Ke)G.push(Le[Ke])}},vn=function(M,G){return Ze?M==="patchsrc"?!0:M==="for"&&G!=="label"&&G!=="output":!1},Fn=function(M){if(!Ze)return;const G=[M];for(;G.length>0;){const pe=G.pop(),De=A(pe);if(De===an.processingInstruction||De===an.comment&&Ft(Hs,pe.data)){try{y(pe)}catch{}continue}if(De===an.element){const Ke=pe,ft=Qe(N(pe));try{Ke.hasAttribute&&Ke.hasAttribute("patchsrc")&&Ke.removeAttribute("patchsrc"),Ke.hasAttribute&&Ke.hasAttribute("for")&&vn("for",ft)&&Ke.removeAttribute("for")}catch{}}const Le=v(pe);if(Le)for(let Ke=Le.length-1;Ke>=0;--Ke)G.push(Le[Ke])}},hn=function(M){let G=null,pe=null;if(nt)M="<remove></remove>"+M;else{const Ke=js(M,/^[\r\n\t ]+/);pe=Ke&&Ke[0]}it==="application/xhtml+xml"&&$e===tt&&(M='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+M+"</body></html>");const De=k?j(M):M;if($e===tt)try{G=new m().parseFromString(De,it)}catch{}if(!G||!G.documentElement){G=ee.createDocument($e,"template",null);try{G.documentElement.innerHTML=Ge?S:De}catch{}}const Le=G.body||G.documentElement;return M&&pe&&Le.insertBefore(a.createTextNode(pe),Le.childNodes[0]||null),$e===tt?P.call(G,Oe?"html":"body")[0]:Oe?G.documentElement:Le},Ut=function(M){const G=x?x(M):M.ownerDocument;return V.call(G||M,M,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},Ot=function(M){return M=fa(M,H," "),M=fa(M,L," "),M=fa(M,R," "),M},se=function(M){var G;M.normalize();const pe=x?x(M):M.ownerDocument,De=V.call(pe||M,M,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null);let Le=De.nextNode();for(;Le;)Le.data=Ot(Le.data),Le=De.nextNode();const Ke=(G=M.querySelectorAll)===null||G===void 0?void 0:G.call(M,"template");Ke&&On(Ke,ft=>{Te(ft.content)&&se(ft.content)})},ve=function(M){const G=B?B(M):null;return typeof G!="string"||Qe(G)!=="form"?!1:typeof M.nodeName!="string"||typeof M.textContent!="string"||typeof M.removeChild!="function"||M.attributes!==w(M)||typeof M.removeAttribute!="function"||typeof M.setAttribute!="function"||typeof M.namespaceURI!="string"||typeof M.insertBefore!="function"||typeof M.hasChildNodes!="function"||M.nodeType!==g(M)||M.childNodes!==v(M)},Te=function(M){if(!g||typeof M!="object"||M===null)return!1;try{return g(M)===an.documentFragment}catch{return!1}},Ue=function(M){if(!g||typeof M!="object"||M===null)return!1;try{return typeof g(M)=="number"}catch{return!1}};function Me(ge,M,G){ge.length!==0&&On(ge,pe=>{pe.call(t,M,G,Nt)})}const Ve=function(M,G){return!!(Ze&&M.hasChildNodes()&&!Ue(M.firstElementChild)&&Ft(Os,M.textContent)&&Ft(Os,M.innerHTML)||Ze&&M.namespaceURI===tt&&Z0[G]&&(Ue(M.firstElementChild)||typeof M.textContent=="string"&&Ft(X0[G],M.textContent))||M.nodeType===an.processingInstruction||Ze&&M.nodeType===an.comment&&Ft(Hs,M.data))},qe=function(M,G){if(M instanceof RegExp)return Ft(M,G);if(M instanceof Function){for(var pe=arguments.length,De=new Array(pe>2?pe-2:0),Le=2;Le<pe;Le++)De[Le-2]=arguments[Le];return!!M(G,...De)}return!1},ct=function(M,G,pe){if(!Se[G]&&re(G)&&qe(fe.tagNameCheck,G))return!1;if(X&&!je[G]){const De=_(M),Le=v(M);if(Le&&De){const Ke=Le.length;for(let ft=Ke-1;ft>=0;--ft){const yt=M===pe?b(Le[ft],!0):Le[ft];De.insertBefore(yt,C(M))}}}return Wt(M),!0},Et=function(M,G,pe,De){return M.length===0?G:G===pe||G===De?nn(G):G},Jt=function(M,G){return M===G||_(M)!==null?!1:(oe&&rn(M),!0)},Qt=function(M,G){if(Me(D.beforeSanitizeElements,M,null),Jt(M,G))return!0;if(ve(M))return Wt(M),!0;const pe=Qe(N(M));if(ue=Et(D.uponSanitizeElement,ue,Ee,He),Me(D.uponSanitizeElement,M,{tagName:pe,allowedTags:ue}),Jt(M,G))return!0;if(Ve(M,pe))return Wt(M),!0;if(Se[pe]||!(ie.tagCheck instanceof Function&&ie.tagCheck(pe))&&!ue[pe]){const Le=ct(M,pe,G);return Le===!1&&Me(D.afterSanitizeElements,M,null),Le}if(A(M)===an.element&&!bn(M)||(pe==="noscript"||pe==="noembed"||pe==="noframes")&&Ft(K0,M.innerHTML))return Wt(M),!0;if(Be&&M.nodeType===an.text){const Le=Ot(M.textContent);M.textContent!==Le&&(ha(t.removed,{element:M.cloneNode()}),M.textContent=Le)}return Me(D.afterSanitizeElements,M,null),!1},ae=function(M,G,pe){if(Ce[G]||vn(G,M)||Fe&&(G==="id"||G==="name")&&(pe in a||pe in Dt))return!1;const De=W[G]||ie.attributeCheck instanceof Function&&ie.attributeCheck(G,M);return de&&Ft(z,G)||ce&&Ft(J,G)?!0:De?Ct[G]||Ft(le,fa(pe,Z,""))||(G==="src"||G==="xlink:href"||G==="href")&&M!=="script"&&Ts(pe,"data:")===0&&Ye[M]||be&&!Ft(Y,fa(pe,Z,""))?!0:!pe:re(M)&&qe(fe.tagNameCheck,M)&&qe(fe.attributeNameCheck,G,M)||G==="is"&&fe.allowCustomizedBuiltInElements&&qe(fe.tagNameCheck,pe)},we=lt({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),re=function(M){return!we[Ca(M)]&&Ft(ne,M)},xe=function(M,G,pe,De){if(k&&typeof p=="object"&&typeof p.getAttributeType=="function"&&!pe)switch(p.getAttributeType(M,G)){case"TrustedHTML":return j(De);case"TrustedScriptURL":return T(De)}return De},Re=function(M,G,pe,De){try{pe?M.setAttributeNS(pe,G,De):M.setAttribute(G,De),ve(M)?Wt(M):Ss(t.removed)}catch{It(G,M)}},We=function(M){Me(D.beforeSanitizeAttributes,M,null);const G=M.attributes;if(!G||ve(M))return;W=Et(D.uponSanitizeAttribute,W,te,ut);const pe={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:W,forceKeepAttr:void 0};let De=G.length;const Le=Qe(M.nodeName);for(;De--;){const Ke=G[De],ft=Ke.name,yt=Ke.namespaceURI,Gt=Ke.value,Kt=Qe(ft),_r=Gt;let Ht=ft==="value"?_r:S0(_r);if(pe.attrName=Kt,pe.attrValue=Ht,pe.keepAttr=!0,pe.forceKeepAttr=void 0,Me(D.uponSanitizeAttribute,M,pe),Ht=pe.attrValue,Ae&&(Kt==="id"||Kt==="name")&&Ts(Ht,at)!==0&&(It(ft,M,Ke),Ht=at+Ht),Ze&&Ft(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,Ht)){It(ft,M,Ke);continue}if(Kt==="attributename"&&js(Ht,"href")){It(ft,M,Ke);continue}if(!pe.forceKeepAttr){if(!pe.keepAttr){It(ft,M,Ke);continue}if(!_e&&Ft(Y0,Ht)){It(ft,M,Ke);continue}if(Be&&(Ht=Ot(Ht)),!ae(Le,Kt,Ht)){It(ft,M,Ke);continue}Ht=xe(Le,Kt,yt,Ht),Ht!==_r&&Re(M,ft,yt,Ht)}}Me(D.afterSanitizeAttributes,M,null)},dt=function(M){let G=null;const pe=Ut(M);for(Me(D.beforeSanitizeShadowDOM,M,null);G=pe.nextNode();)if(Me(D.uponSanitizeShadowNode,G,null),Qt(G,M),We(G),Te(G.content)&&dt(G.content),A(G)===an.element){const De=h(G);Te(De)&&(Bt(De),dt(De))}Me(D.afterSanitizeShadowDOM,M,null)},Bt=function(M){const G=[{node:M,shadow:null}];for(;G.length>0;){const pe=G.pop();if(pe.shadow){dt(pe.shadow);continue}const De=pe.node,Ke=A(De)===an.element,ft=v(De);if(ft)for(let yt=ft.length-1;yt>=0;--yt)G.push({node:ft[yt],shadow:null});if(Ke){const yt=B?B(De):null;if(typeof yt=="string"&&Qe(yt)==="template"){const Gt=De.content;Te(Gt)&&G.push({node:Gt,shadow:null})}}if(Ke){const yt=h(De);Te(yt)&&G.push({node:null,shadow:yt},{node:yt,shadow:null})}}};return t.sanitize=function(ge){let M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},G=null,pe=null,De=null,Le=null;if(Ge=!ge,Ge&&(ge="<!-->"),typeof ge!="string"&&!Ue(ge)&&(ge=$0(ge),typeof ge!="string"))throw Hn("dirty is not a string, aborting");if(!t.isSupported)return ge;Ie?(ue=He,W=ut):Pt(M),(D.uponSanitizeElement.length>0||D.uponSanitizeAttribute.length>0)&&(ue=nn(ue)),D.uponSanitizeAttribute.length>0&&(W=nn(W)),t.removed=[];const Ke=oe&&typeof ge!="string"&&Ue(ge);if(Ke){Fn(ge);const Gt=N(ge);if(typeof Gt=="string"){const Kt=Qe(Gt);if(!ue[Kt]||Se[Kt])throw qt(ge),Hn("root node is forbidden and cannot be sanitized in-place")}if(ve(ge))throw qt(ge),Hn("root node is clobbered and cannot be sanitized in-place");try{Bt(ge)}catch(Kt){throw qt(ge),Kt}}else if(Ue(ge))G=hn("<!---->"),pe=G.ownerDocument.importNode(ge,!0),pe.nodeType===an.element&&pe.nodeName==="BODY"||pe.nodeName==="HTML"?G=pe:G.appendChild(pe),Bt(pe);else{if(!rt&&!Be&&!Oe&&ge.indexOf("<")===-1)return k&&Ne?j(ge):ge;if(G=hn(ge),!G)return rt?null:Ne?S:""}G&&nt&&Wt(G.firstChild);const ft=Ke?ge:G;try{const Gt=Ut(ft);for(;De=Gt.nextNode();)Qt(De,ft),We(De),Te(De.content)&&dt(De.content)}catch(Gt){throw Ke&&(qt(ge),On(t.removed,Kt=>{Kt.element&&rn(Kt.element)})),Gt}if(Ke)return On(t.removed,Gt=>{Gt.element&&rn(Gt.element)}),Be&&se(ge),ge;if(rt){if(Be&&se(G),pt)for(Le=q.call(G.ownerDocument);G.firstChild;)Le.appendChild(G.firstChild);else Le=G;return(W.shadowroot||W.shadowrootmode)&&(Le=O.call(r,Le,!0)),Le}let yt=Oe?G.outerHTML:G.innerHTML;return Oe&&ue["!doctype"]&&G.ownerDocument&&G.ownerDocument.doctype&&G.ownerDocument.doctype.name&&Ft(U0,G.ownerDocument.doctype.name)&&(yt="<!DOCTYPE "+G.ownerDocument.doctype.name+`>
|
|
828
|
-
`+
|
|
826
|
+
*/const m0=[["path",{d:"M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z",key:"emmmcr"}],["path",{d:"M7 10v12",key:"1qc93n"}]],h0=Q("thumbs-up",m0),ws={"alert-triangle":ls,"align-start-vertical":Hc,anchor:xh,armchair:wh,"arrow-down":Vc,"arrow-left":qc,"arrow-right":Gc,"arrow-right-left":Yc,"arrow-up-a-z":Ah,"audio-lines":Xc,baby:Qc,ban:td,"bar-chart-2":Nh,bell:ad,"book-marked":od,"book-open":id,"bow-arrow":ud,braces:dd,bug:md,calendar:vs,"calendar-check":Cd,"calendar-days":gd,camera:yd,car:Sh,"chart-column":xd,"chart-line":wd,"chart-pie":Ad,check:us,"chevron-down":xs,"chevron-left":cs,"chevron-right":ds,"chevron-up":_s,circle:s0,"clipboard-list":Sd,coffee:Th,combine:Td,copy:Ld,"chevrons-left-right-ellipsis":Rd,"credit-card":Id,database:ps,diff:Hd,download:ms,ear:Wd,edit:Ud,"edit-2":Kd,"edit-3":Zd,ellipsis:hs,eraser:Qd,"external-link":tp,eye:ap,"file-text":op,"flip-horizontal":ip,"folder-open":up,"folder-plus":dp,gamepad:mp,"gamepad-2":Lh,clock:Rh,target:Ih,percent:Oh,gavel:Cp,"git-merge":Cs,globe:bp,"grip-vertical":vp,headphones:_p,heart:Bp,home:kp,inbox:zh,info:Dp,"key-round":Sp,landmark:Tp,layers:Lp,"layout-dashboard":Rp,leaf:Ip,lightbulb:Op,link:zp,"link-2":Wp,"link-2-off":Up,list:Kp,"list-checks":Zp,"list-ordered":Jp,"list-tree":Wh,loader:e1,lock:n1,"log-out":r1,mail:s1,"map-pin":l1,menu:c0,"message-circle":c1,"message-circle-question-mark":p1,"message-square":h1,"message-square-more":Uh,"message-square-text":f1,minus:Kh,"minus-circle":b1,moon:p0,"more-horizontal":hs,package:v1,palette:_1,"party-popper":B1,pause:k1,pencil:D1,phone:S1,play:T1,"play-circle":L1,plus:R1,printer:I1,"refresh-cw":O1,repeat:z1,replace:W1,rocket:U1,"rotate-ccw":K1,"rotate-cw":Z1,salad:J1,"scan-search":em,search:rm,"circle-alert":fs,"alert-circle":fs,"check-circle":gs,scissors:sm,"search-x":lm,send:cm,settings:pm,"share-2":Zh,"shield-check":hm,"shopping-cart":fm,shuffle:bm,"skip-back":vm,"skip-forward":_m,sparkles:Jh,square:Bm,star:km,store:Dm,"sun-medium":Sm,table:Tm,"table-2":Lm,tag:Rm,terminal:Im,"text-cursor-input":Om,"text-initial":zm,"thumbs-up":h0,ticket:Wm,trash:Km,triangle:l0,"trash-2":Um,"trending-up":Zm,"triangle-alert":ls,trophy:Jm,type:e0,unlink:eh,upload:nh,user:Br,"user-plus":oh,"user-round":ih,"user-round-check":uh,users:dh,"users-round":mh,volume:n0,"volume-2":bs,wrench:fh,x:ys,zap:yh};function C0(e){return ws[e]??null}const Bs=new Set;function f0(e){return Zn&&!(e in ws)&&!Bs.has(e)&&(Bs.add(e),console.warn(`[ihabdevteam-core] lucide \uC544\uC774\uCF58 '${e}' \uC774 \uC815\uC801 \uBAA9\uB85D\uC5D0 \uC5C6\uC5B4 \uB80C\uB354\uB418\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4. utils/lucideIconSet.ts \uC758 STATIC_LUCIDE_ICONS \uC5D0 \uCD94\uAC00\uD558\uC138\uC694.`)),Promise.resolve(null)}const g0=e=>e.replace(/([A-Z]+)([A-Z][a-z])/g,"$1-$2").replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Za-z])([0-9])/g,"$1-$2").replace(/[_ ]+/g,"-").toLowerCase();function b0(e){const t=e.toLowerCase();if(t.startsWith("http://")||t.startsWith("https://")||t.startsWith("data:")||e.includes("/assets/")||/\.(png|jpe?g|gif|webp|avif|bmp|ico)$/i.test(t))return null;const a=(e.split("/").pop()||"").replace(/\.svg$/,"");return a?g0(a):null}const As=new Map;function y0(e){const t=typeof e=="string"?b0(e):null,a=t?C0(t)??As.get(t)??null:null,[r,s]=o.useState(null);return o.useEffect(()=>{if(!t||a)return;let i=!1;return f0(t).then(l=>{As.set(t,l),i||s(l)}),()=>{i=!0}},[t,a]),a??r}/*! @license DOMPurify 3.4.14 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.14/LICENSE */function ks(e,t){(t==null||t>e.length)&&(t=e.length);for(var a=0,r=Array(t);a<t;a++)r[a]=e[a];return r}function v0(e){if(Array.isArray(e))return e}function x0(e,t){var a=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(a!=null){var r,s,i,l,u=[],c=!0,d=!1;try{if(i=(a=a.call(e)).next,t!==0)for(;!(c=(r=i.call(a)).done)&&(u.push(r.value),u.length!==t);c=!0);}catch(m){d=!0,s=m}finally{try{if(!c&&a.return!=null&&(l=a.return(),Object(l)!==l))return}finally{if(d)throw s}}return u}}function _0(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
827
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function w0(e,t){return v0(e)||x0(e,t)||B0(e,t)||_0()}function B0(e,t){if(e){if(typeof e=="string")return ks(e,t);var a={}.toString.call(e).slice(8,-1);return a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set"?Array.from(e):a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?ks(e,t):void 0}}const Ns=Object.entries,Ds=Object.setPrototypeOf,A0=Object.isFrozen,k0=Object.getPrototypeOf,N0=Object.getOwnPropertyDescriptor;let St=Object.freeze,Lt=Object.seal,Xn=Object.create,Es=typeof Reflect<"u"&&Reflect,Ar=Es.apply,kr=Es.construct;St||(St=function(t){return t}),Lt||(Lt=function(t){return t}),Ar||(Ar=function(t,a){for(var r=arguments.length,s=new Array(r>2?r-2:0),i=2;i<r;i++)s[i-2]=arguments[i];return t.apply(a,s)}),kr||(kr=function(t){for(var a=arguments.length,r=new Array(a>1?a-1:0),s=1;s<a;s++)r[s-1]=arguments[s];return new t(...r)});const On=Dt(Array.prototype.forEach),D0=Dt(Array.prototype.lastIndexOf),Ss=Dt(Array.prototype.pop),ha=Dt(Array.prototype.push),E0=Dt(Array.prototype.splice),Jn=Array.isArray,Ca=Dt(String.prototype.toLowerCase),Nr=Dt(String.prototype.toString),js=Dt(String.prototype.match),fa=Dt(String.prototype.replace),Ts=Dt(String.prototype.indexOf),S0=Dt(String.prototype.trim),j0=Dt(Number.prototype.toString),T0=Dt(Boolean.prototype.toString),Ms=typeof BigInt>"u"?null:Dt(BigInt.prototype.toString),Ls=typeof Symbol>"u"?null:Dt(Symbol.prototype.toString),Zt=Dt(Object.prototype.hasOwnProperty),ga=Dt(Object.prototype.toString),It=Dt(RegExp.prototype.test),Hn=M0(TypeError);function Dt(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var a=arguments.length,r=new Array(a>1?a-1:0),s=1;s<a;s++)r[s-1]=arguments[s];return Ar(e,t,r)}}function M0(e){return function(){for(var t=arguments.length,a=new Array(t),r=0;r<t;r++)a[r]=arguments[r];return kr(e,a)}}function lt(e,t){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ca;if(Ds&&Ds(e,null),!Jn(t))return e;let r=t.length;for(;r--;){let s=t[r];if(typeof s=="string"){const i=a(s);i!==s&&(A0(t)||(t[r]=i),s=i)}e[s]=!0}return e}function L0(e){for(let t=0;t<e.length;t++)Zt(e,t)||(e[t]=null);return e}function en(e){const t=Xn(null);for(const r of Ns(e)){var a=w0(r,2);const s=a[0],i=a[1];Zt(e,s)&&(Jn(i)?t[s]=L0(i):i&&typeof i=="object"&&i.constructor===Object?t[s]=en(i):t[s]=i)}return t}function $0(e){switch(typeof e){case"string":return e;case"number":return j0(e);case"boolean":return T0(e);case"bigint":return Ms?Ms(e):"0";case"symbol":return Ls?Ls(e):"Symbol()";case"undefined":return ga(e);case"function":case"object":{if(e===null)return ga(e);const t=e,a=sn(t,"toString");if(typeof a=="function"){const r=a(t);return typeof r=="string"?r:ga(r)}return ga(e)}default:return ga(e)}}function sn(e,t){for(;e!==null;){const r=N0(e,t);if(r){if(r.get)return Dt(r.get);if(typeof r.value=="function")return Dt(r.value)}e=k0(e)}function a(){return null}return a}function R0(e){try{return It(e,""),!0}catch{return!1}}const $s=St(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Dr=St(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Er=St(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),P0=St(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Sr=St(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),I0=St(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Rs=St(["#text"]),Ps=St(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),jr=St(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","pointer-events","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","vector-effect","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Is=St(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Ha=St(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),F0=Lt(/{{[\w\W]*|^[\w\W]*}}/g),O0=Lt(/<%[\w\W]*|^[\w\W]*%>/g),H0=Lt(/\${[\w\W]*/g),z0=Lt(/^data-[\-\w.\u00B7-\uFFFF]+$/),V0=Lt(/^aria-[\-\w]+$/),Fs=Lt(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),W0=Lt(/^(?:\w+script|data):/i),q0=Lt(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),U0=Lt(/^html$/i),G0=Lt(/^[a-z][.\w]*(-[.\w]+)+$/i),Os=Lt(/<[/\w!]/g),Hs=Lt(/<[/\w]/g),K0=Lt(/<\/no(script|embed|frames)/i),Y0=Lt(/\/>/i),tn={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},zs=["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"],Z0=St(lt({},zs)),X0=(function(){const e={};return On(zs,t=>{e[t]=Lt(new RegExp("</"+t+"(?=[\\t\\n\\f\\r />])","i"))}),St(e)})(),J0=function(){return typeof window>"u"?null:window},Q0=function(t,a){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let r=null;const s="data-tt-policy-suffix";a&&a.hasAttribute(s)&&(r=a.getAttribute(s));const i="dompurify"+(r?"#"+r:"");try{return t.createPolicy(i,{createHTML(l){return l},createScriptURL(l){return l}})}catch{return console.warn("TrustedTypes policy "+i+" could not be created."),null}},Vs=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},Dn=function(t,a,r,s){return Zt(t,a)&&Jn(t[a])?lt(s.base?en(s.base):{},t[a],s.transform):r},Tr=function(t,a,r){const s=Zt(t,a)?t[a]:void 0;return s&&typeof s=="object"?en(s):r()};function Ws(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:J0();const t=be=>Ws(be);if(t.version="3.4.14",t.removed=[],!e||!e.document||e.document.nodeType!==tn.document||!e.Element)return t.isSupported=!1,t;let a=e.document;const r=a,s=r.currentScript;e.DocumentFragment;const i=e.HTMLTemplateElement,l=e.Node,u=e.Element,c=e.NodeFilter,d=e.NamedNodeMap;d===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;const m=e.DOMParser,p=e.trustedTypes,f=u.prototype,b=sn(f,"cloneNode"),y=sn(f,"remove"),C=sn(f,"nextSibling"),v=sn(f,"childNodes"),_=sn(f,"parentNode"),h=sn(f,"shadowRoot"),w=sn(f,"attributes"),g=l&&l.prototype?sn(l.prototype,"nodeType"):null,B=l&&l.prototype?sn(l.prototype,"nodeName"):null,x=l&&l.prototype?sn(l.prototype,"ownerDocument"):null,A=function(T){return g?g(T):T.nodeType},N=function(T){return B?B(T):T.nodeName};if(typeof i=="function"){const be=a.createElement("template");be.content&&be.content.ownerDocument&&(a=be.content.ownerDocument)}let k,S="",E,F=!1,$=0;const G=function(){if($>0)throw Hn('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},j=function(T){G(),$++;try{return k.createHTML(T)}finally{$--}},L=function(T){G(),$++;try{return k.createScriptURL(T)}finally{$--}},I=function(){return F||(E=Q0(p,s),F=!0),E},K=a,ee=K.implementation,V=K.createNodeIterator,q=K.createDocumentFragment,R=K.getElementsByTagName,O=r.importNode;let D=Vs();t.isSupported=typeof Ns=="function"&&typeof _=="function"&&ee&&ee.createHTMLDocument!==void 0;const H=F0,M=O0,P=H0,z=z0,Y=V0,X=W0,Z=q0,ne=G0;let le=Fs,ie=null;const Ee=lt({},[...$s,...Dr,...Er,...Sr,...Rs]);let W=null;const ae=lt({},[...Ps,...jr,...Is,...Ha]);let fe=Object.seal(Xn(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Ne=null,ge=null;const te=Object.seal(Xn(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let ce=!0,de=!0,he=!1,ye=!0,Se=!1,Ge=!0,ze=!1,Pe=!1,Ie=null,Ct=null,ut=!1,at=!1,ct=!1,ke=!1,Fe=!0,Be=!1;const Je="user-content-";let J=!0,se=!1,Ce={},De=null;const tt=lt({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let Ze=null;const yt=lt({},["audio","video","img","source","image","track"]);let mt=null;const rt=lt({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ot="http://www.w3.org/1998/Math/MathML",st="http://www.w3.org/2000/svg",nt="http://www.w3.org/1999/xhtml";let $e=nt,Ue=!1,He=null;const ht=lt({},[ot,st,nt],Nr),Nt=St(["mi","mo","mn","ms","mtext"]);let jt=lt({},Nt);const gt=St(["annotation-xml"]);let xt=lt({},gt);const Oe=lt({},["title","style","font","a","script"]);let it=null;const Tt=["application/xhtml+xml","text/html"],Vt="text/html";let Xe=null,wt=null;const Bt=a.createElement("form"),Wt=function(T){return T instanceof RegExp||T instanceof Function},an=function(){let T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(wt&&wt===T)return;(!T||typeof T!="object")&&(T={}),T=en(T),it=Tt.indexOf(T.PARSER_MEDIA_TYPE)===-1?Vt:T.PARSER_MEDIA_TYPE,Xe=it==="application/xhtml+xml"?Nr:Ca,ie=Dn(T,"ALLOWED_TAGS",Ee,{transform:Xe}),W=Dn(T,"ALLOWED_ATTR",ae,{transform:Xe}),He=Dn(T,"ALLOWED_NAMESPACES",ht,{transform:Nr}),mt=Dn(T,"ADD_URI_SAFE_ATTR",rt,{transform:Xe,base:rt}),Ze=Dn(T,"ADD_DATA_URI_TAGS",yt,{transform:Xe,base:yt}),De=Dn(T,"FORBID_CONTENTS",tt,{transform:Xe}),Ne=Dn(T,"FORBID_TAGS",en({}),{transform:Xe}),ge=Dn(T,"FORBID_ATTR",en({}),{transform:Xe}),Ce=Zt(T,"USE_PROFILES")?T.USE_PROFILES&&typeof T.USE_PROFILES=="object"?en(T.USE_PROFILES):T.USE_PROFILES:!1,ce=T.ALLOW_ARIA_ATTR!==!1,de=T.ALLOW_DATA_ATTR!==!1,he=T.ALLOW_UNKNOWN_PROTOCOLS||!1,ye=T.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Se=T.SAFE_FOR_TEMPLATES||!1,Ge=T.SAFE_FOR_XML!==!1,ze=T.WHOLE_DOCUMENT||!1,at=T.RETURN_DOM||!1,ct=T.RETURN_DOM_FRAGMENT||!1,ke=T.RETURN_TRUSTED_TYPE||!1,ut=T.FORCE_BODY||!1,Fe=T.SANITIZE_DOM!==!1,Be=T.SANITIZE_NAMED_PROPS||!1,J=T.KEEP_CONTENT!==!1,se=T.IN_PLACE||!1,le=R0(T.ALLOWED_URI_REGEXP)?T.ALLOWED_URI_REGEXP:Fs,$e=typeof T.NAMESPACE=="string"?T.NAMESPACE:nt,jt=Tr(T,"MATHML_TEXT_INTEGRATION_POINTS",()=>lt({},Nt)),xt=Tr(T,"HTML_INTEGRATION_POINTS",()=>lt({},gt));const U=Tr(T,"CUSTOM_ELEMENT_HANDLING",()=>Xn(null));if(fe=Xn(null),Zt(U,"tagNameCheck")&&Wt(U.tagNameCheck)&&(fe.tagNameCheck=U.tagNameCheck),Zt(U,"attributeNameCheck")&&Wt(U.attributeNameCheck)&&(fe.attributeNameCheck=U.attributeNameCheck),Zt(U,"allowCustomizedBuiltInElements")&&typeof U.allowCustomizedBuiltInElements=="boolean"&&(fe.allowCustomizedBuiltInElements=U.allowCustomizedBuiltInElements),Lt(fe),Se&&(de=!1),ct&&(at=!0),Ce&&(ie=lt({},Rs),W=Xn(null),Ce.html===!0&&(lt(ie,$s),lt(W,Ps)),Ce.svg===!0&&(lt(ie,Dr),lt(W,jr),lt(W,Ha)),Ce.svgFilters===!0&&(lt(ie,Er),lt(W,jr),lt(W,Ha)),Ce.mathMl===!0&&(lt(ie,Sr),lt(W,Is),lt(W,Ha))),te.tagCheck=null,te.attributeCheck=null,Zt(T,"ADD_TAGS")&&(typeof T.ADD_TAGS=="function"?te.tagCheck=T.ADD_TAGS:Jn(T.ADD_TAGS)&&(ie===Ee&&(ie=en(ie)),lt(ie,T.ADD_TAGS,Xe))),Zt(T,"ADD_ATTR")&&(typeof T.ADD_ATTR=="function"?te.attributeCheck=T.ADD_ATTR:Jn(T.ADD_ATTR)&&(W===ae&&(W=en(W)),lt(W,T.ADD_ATTR,Xe))),Zt(T,"ADD_FORBID_CONTENTS")&&Jn(T.ADD_FORBID_CONTENTS)&&(De===tt&&(De=en(De)),lt(De,T.ADD_FORBID_CONTENTS,Xe)),J&&(ie["#text"]=!0),ze&<(ie,["html","head","body"]),ie.table&&(lt(ie,["tbody"]),delete Ne.tbody),T.TRUSTED_TYPES_POLICY){if(typeof T.TRUSTED_TYPES_POLICY.createHTML!="function")throw Hn('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof T.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Hn('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const me=k;k=T.TRUSTED_TYPES_POLICY;try{S=j("")}catch(Te){throw k=me,Te}}else T.TRUSTED_TYPES_POLICY===null?(k=void 0,S=""):(k===void 0&&(k=I()),k&&typeof S=="string"&&(S=j("")));St&&St(T),wt=T},rn=lt({},[...Dr,...Er,...P0]),bn=lt({},[...Sr,...I0]),Rn=function(T,U,me){return U.namespaceURI===nt?T==="svg":U.namespaceURI===ot?T==="svg"&&(me==="annotation-xml"||jt[me]):!!rn[T]},yn=function(T,U,me){return U.namespaceURI===nt?T==="math":U.namespaceURI===st?T==="math"&&xt[me]:!!bn[T]},Pn=function(T,U,me){return U.namespaceURI===st&&!xt[me]||U.namespaceURI===ot&&!jt[me]?!1:!bn[T]&&(Oe[T]||!rn[T])},dn=function(T){let U=_(T);(!U||!U.tagName)&&(U={namespaceURI:$e,tagName:"template"});const me=Ca(T.tagName),Te=Ca(U.tagName);return He[T.namespaceURI]?T.namespaceURI===st?Rn(me,U,Te):T.namespaceURI===ot?yn(me,U,Te):T.namespaceURI===nt?Pn(me,U,Te):!!(it==="application/xhtml+xml"&&He[T.namespaceURI]):!1},Ft=function(T){ha(t.removed,{element:T});try{_(T).removeChild(T)}catch{if(y(T),!_(T))throw Hn("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},pn=function(T,U,me){try{T.removeAttributeNode(U)}catch{try{T.removeAttribute(me)}catch{}}},qt=function(T){mn(T);const U=v(T);if(U){const Te=[];On(U,Re=>{ha(Te,Re)}),On(Te,Re=>{try{y(Re)}catch{}})}const me=w(T);if(me)for(let Te=me.length-1;Te>=0;--Te){const Re=me[Te],Ke=Re&&Re.name;typeof Ke=="string"&&pn(T,Re,Ke)}},Pt=function(T,U,me){if(!me)try{me=U.getAttributeNode(T)}catch{me=null}ha(t.removed,{attribute:me||null,from:U});try{me?U.removeAttributeNode(me):U.removeAttribute(T)}catch{try{U.removeAttribute(T)}catch{}}if(T==="is")if(at||ct)try{Ft(U)}catch{}else try{U.setAttribute(T,"")}catch{}},In=function(T){const U=w(T);if(U)for(let me=U.length-1;me>=0;--me){const Te=U[me],Re=Te&&Te.name;typeof Re!="string"||W[Xe(Re)]||pn(T,Te,Re)}},mn=function(T){const U=[T];for(;U.length>0;){const me=U.pop();A(me)===tn.element&&In(me);const Re=v(me);if(Re)for(let Ke=Re.length-1;Ke>=0;--Ke)U.push(Re[Ke])}},hn=function(T,U){return Ge?T==="patchsrc"?!0:T==="for"&&U!=="label"&&U!=="output":!1},Fn=function(T){if(!Ge)return;const U=[T];for(;U.length>0;){const me=U.pop(),Te=A(me);if(Te===tn.processingInstruction||Te===tn.comment&&It(Hs,me.data)){try{y(me)}catch{}continue}if(Te===tn.element){const Ke=me,bt=Xe(N(me));try{Ke.hasAttribute&&Ke.hasAttribute("patchsrc")&&Ke.removeAttribute("patchsrc"),Ke.hasAttribute&&Ke.hasAttribute("for")&&hn("for",bt)&&Ke.removeAttribute("for")}catch{}}const Re=v(me);if(Re)for(let Ke=Re.length-1;Ke>=0;--Ke)U.push(Re[Ke])}},Cn=function(T){let U=null,me=null;if(ut)T="<remove></remove>"+T;else{const Ke=js(T,/^[\r\n\t ]+/);me=Ke&&Ke[0]}it==="application/xhtml+xml"&&$e===nt&&(T='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+T+"</body></html>");const Te=k?j(T):T;if($e===nt)try{U=new m().parseFromString(Te,it)}catch{}if(!U||!U.documentElement){U=ee.createDocument($e,"template",null);try{U.documentElement.innerHTML=Ue?S:Te}catch{}}const Re=U.body||U.documentElement;return T&&me&&Re.insertBefore(a.createTextNode(me),Re.childNodes[0]||null),$e===nt?R.call(U,ze?"html":"body")[0]:ze?U.documentElement:Re},Mt=function(T){const U=x?x(T):T.ownerDocument;return V.call(U||T,T,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},Ut=function(T){return T=fa(T,H," "),T=fa(T,M," "),T=fa(T,P," "),T},oe=function(T){var U;T.normalize();const me=x?x(T):T.ownerDocument,Te=V.call(me||T,T,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null);let Re=Te.nextNode();for(;Re;)Re.data=Ut(Re.data),Re=Te.nextNode();const Ke=(U=T.querySelectorAll)===null||U===void 0?void 0:U.call(T,"template");Ke&&On(Ke,bt=>{je(bt.content)&&oe(bt.content)})},xe=function(T){const U=B?B(T):null;return typeof U!="string"||Xe(U)!=="form"?!1:typeof T.nodeName!="string"||typeof T.textContent!="string"||typeof T.removeChild!="function"||T.attributes!==w(T)||typeof T.removeAttribute!="function"||typeof T.setAttribute!="function"||typeof T.namespaceURI!="string"||typeof T.insertBefore!="function"||typeof T.hasChildNodes!="function"||T.nodeType!==g(T)||T.childNodes!==v(T)},je=function(T){if(!g||typeof T!="object"||T===null)return!1;try{return g(T)===tn.documentFragment}catch{return!1}},Ve=function(T){if(!g||typeof T!="object"||T===null)return!1;try{return typeof g(T)=="number"}catch{return!1}};function Me(be,T,U){be.length!==0&&On(be,me=>{me.call(t,T,U,wt)})}const We=function(T,U){return!!(Ge&&T.hasChildNodes()&&!Ve(T.firstElementChild)&&It(Os,T.textContent)&&It(Os,T.innerHTML)||Ge&&T.namespaceURI===nt&&Z0[U]&&(Ve(T.firstElementChild)||typeof T.textContent=="string"&&It(X0[U],T.textContent))||T.nodeType===tn.processingInstruction||Ge&&T.nodeType===tn.comment&&It(Hs,T.data))},qe=function(T,U){if(T instanceof RegExp)return It(T,U);if(T instanceof Function){for(var me=arguments.length,Te=new Array(me>2?me-2:0),Re=2;Re<me;Re++)Te[Re-2]=arguments[Re];return!!T(U,...Te)}return!1},dt=function(T,U,me){if(!Ne[U]&&ue(U)&&qe(fe.tagNameCheck,U))return!1;if(J&&!De[U]){const Te=_(T),Re=v(T);if(Re&&Te){const Ke=Re.length;for(let bt=Ke-1;bt>=0;--bt){const _t=T===me?b(Re[bt],!0):Re[bt];Te.insertBefore(_t,C(T))}}}return Ft(T),!0},Et=function(T,U,me,Te){return T.length===0?U:U===me||U===Te?en(U):U},re=function(T,U){return T===U||_(T)!==null?!1:(se&&mn(T),!0)},_e=function(T,U){if(Me(D.beforeSanitizeElements,T,null),re(T,U))return!0;if(xe(T))return Ft(T),!0;const me=Xe(N(T));if(ie=Et(D.uponSanitizeElement,ie,Ee,Ie),Me(D.uponSanitizeElement,T,{tagName:me,allowedTags:ie}),re(T,U))return!0;if(We(T,me))return Ft(T),!0;if(Ne[me]||!(te.tagCheck instanceof Function&&te.tagCheck(me))&&!ie[me]){const Re=dt(T,me,U);return Re===!1&&Me(D.afterSanitizeElements,T,null),Re}if(A(T)===tn.element&&!dn(T)||(me==="noscript"||me==="noembed"||me==="noframes")&&It(K0,T.innerHTML))return Ft(T),!0;if(Se&&T.nodeType===tn.text){const Re=Ut(T.textContent);T.textContent!==Re&&(ha(t.removed,{element:T.cloneNode()}),T.textContent=Re)}return Me(D.afterSanitizeElements,T,null),!1},Le=function(T,U,me){if(ge[U]||hn(U,T)||Fe&&(U==="id"||U==="name")&&(me in a||me in Bt))return!1;const Te=W[U]||te.attributeCheck instanceof Function&&te.attributeCheck(U,T);return de&&It(z,U)||ce&&It(Y,U)?!0:Te?mt[U]||It(le,fa(me,Z,""))||(U==="src"||U==="xlink:href"||U==="href")&&T!=="script"&&Ts(me,"data:")===0&&Ze[T]||he&&!It(X,fa(me,Z,""))?!0:!me:ue(T)&&qe(fe.tagNameCheck,T)&&qe(fe.attributeNameCheck,U,T)||U==="is"&&fe.allowCustomizedBuiltInElements&&qe(fe.tagNameCheck,me)},Ye=lt({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),ue=function(T){return!Ye[Ca(T)]&&It(ne,T)},we=function(T,U,me,Te){if(k&&typeof p=="object"&&typeof p.getAttributeType=="function"&&!me)switch(p.getAttributeType(T,U)){case"TrustedHTML":return j(Te);case"TrustedScriptURL":return L(Te)}return Te},et=function(T,U,me,Te){try{me?T.setAttributeNS(me,U,Te):T.setAttribute(U,Te),xe(T)?Ft(T):Ss(t.removed)}catch{Pt(U,T)}},pt=function(T){Me(D.beforeSanitizeAttributes,T,null);const U=T.attributes;if(!U||xe(T))return;W=Et(D.uponSanitizeAttribute,W,ae,Ct);const me={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:W,forceKeepAttr:void 0};let Te=U.length;const Re=Xe(T.nodeName);for(;Te--;){const Ke=U[Te],bt=Ke.name,_t=Ke.namespaceURI,Gt=Ke.value,Kt=Xe(bt),_r=Gt;let Ot=bt==="value"?_r:S0(_r);if(me.attrName=Kt,me.attrValue=Ot,me.keepAttr=!0,me.forceKeepAttr=void 0,Me(D.uponSanitizeAttribute,T,me),Ot=me.attrValue,Be&&(Kt==="id"||Kt==="name")&&Ts(Ot,Je)!==0&&(Pt(bt,T,Ke),Ot=Je+Ot),Ge&&It(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,Ot)){Pt(bt,T,Ke);continue}if(Kt==="attributename"&&js(Ot,"href")){Pt(bt,T,Ke);continue}if(!me.forceKeepAttr){if(!me.keepAttr){Pt(bt,T,Ke);continue}if(!ye&&It(Y0,Ot)){Pt(bt,T,Ke);continue}if(Se&&(Ot=Ut(Ot)),!Le(Re,Kt,Ot)){Pt(bt,T,Ke);continue}Ot=we(Re,Kt,_t,Ot),Ot!==_r&&et(T,bt,_t,Ot)}}Me(D.afterSanitizeAttributes,T,null)},ft=function(T){let U=null;const me=Mt(T);for(Me(D.beforeSanitizeShadowDOM,T,null);U=me.nextNode();)if(Me(D.uponSanitizeShadowNode,U,null),_e(U,T),pt(U),je(U.content)&&ft(U.content),A(U)===tn.element){const Te=h(U);je(Te)&&(on(Te),ft(Te))}Me(D.afterSanitizeShadowDOM,T,null)},on=function(T){const U=[{node:T,shadow:null}];for(;U.length>0;){const me=U.pop();if(me.shadow){ft(me.shadow);continue}const Te=me.node,Ke=A(Te)===tn.element,bt=v(Te);if(bt)for(let _t=bt.length-1;_t>=0;--_t)U.push({node:bt[_t],shadow:null});if(Ke){const _t=B?B(Te):null;if(typeof _t=="string"&&Xe(_t)==="template"){const Gt=Te.content;je(Gt)&&U.push({node:Gt,shadow:null})}}if(Ke){const _t=h(Te);je(_t)&&U.push({node:null,shadow:_t},{node:_t,shadow:null})}}};return t.sanitize=function(be){let T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},U=null,me=null,Te=null,Re=null;if(Ue=!be,Ue&&(be="<!-->"),typeof be!="string"&&!Ve(be)&&(be=$0(be),typeof be!="string"))throw Hn("dirty is not a string, aborting");if(!t.isSupported)return be;Pe?(ie=Ie,W=Ct):an(T),(D.uponSanitizeElement.length>0||D.uponSanitizeAttribute.length>0)&&(ie=en(ie)),D.uponSanitizeAttribute.length>0&&(W=en(W)),t.removed=[];const Ke=se&&typeof be!="string"&&Ve(be);if(Ke){Fn(be);const Gt=N(be);if(typeof Gt=="string"){const Kt=Xe(Gt);if(!ie[Kt]||Ne[Kt])throw qt(be),Hn("root node is forbidden and cannot be sanitized in-place")}if(xe(be))throw qt(be),Hn("root node is clobbered and cannot be sanitized in-place");try{on(be)}catch(Kt){throw qt(be),Kt}}else if(Ve(be))U=Cn("<!---->"),me=U.ownerDocument.importNode(be,!0),me.nodeType===tn.element&&me.nodeName==="BODY"||me.nodeName==="HTML"?U=me:U.appendChild(me),on(me);else{if(!at&&!Se&&!ze&&be.indexOf("<")===-1)return k&&ke?j(be):be;if(U=Cn(be),!U)return at?null:ke?S:""}U&&ut&&Ft(U.firstChild);const bt=Ke?be:U;try{const Gt=Mt(bt);for(;Te=Gt.nextNode();)_e(Te,bt),pt(Te),je(Te.content)&&ft(Te.content)}catch(Gt){throw Ke&&(qt(be),On(t.removed,Kt=>{Kt.element&&mn(Kt.element)})),Gt}if(Ke)return On(t.removed,Gt=>{Gt.element&&mn(Gt.element)}),Se&&oe(be),be;if(at){if(Se&&oe(U),ct)for(Re=q.call(U.ownerDocument);U.firstChild;)Re.appendChild(U.firstChild);else Re=U;return(W.shadowroot||W.shadowrootmode)&&(Re=O.call(r,Re,!0)),Re}let _t=ze?U.outerHTML:U.innerHTML;return ze&&ie["!doctype"]&&U.ownerDocument&&U.ownerDocument.doctype&&U.ownerDocument.doctype.name&&It(U0,U.ownerDocument.doctype.name)&&(_t="<!DOCTYPE "+U.ownerDocument.doctype.name+`>
|
|
828
|
+
`+_t),Se&&(_t=Ut(_t)),k&&ke?j(_t):_t},t.setConfig=function(){let be=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};an(be),Pe=!0,Ie=ie,Ct=W},t.clearConfig=function(){wt=null,Pe=!1,Ie=null,Ct=null,k=E,S=""},t.isValidAttribute=function(be,T,U){wt||an({});const me=Xe(be),Te=Xe(T);return Le(me,Te,U)},t.addHook=function(be,T){typeof T=="function"&&Zt(D,be)&&ha(D[be],T)},t.removeHook=function(be,T){if(Zt(D,be)){if(T!==void 0){const U=D0(D[be],T);return U===-1?void 0:E0(D[be],U,1)[0]}return Ss(D[be])}},t.removeHooks=function(be){Zt(D,be)&&(D[be]=[])},t.removeAllHooks=function(){D=Vs()},t}var Mr=Ws();const eC=/^(?:[a-z]+:)?\/\//i,tC="__ihab_core_asset_base_url__";function nC(){return globalThis[tC]??""}function Lr(e){const t=String(e||"").trim();if(!t)return"";if(eC.test(t)||t.startsWith("data:")||t.startsWith("blob:"))return t;const a=t.startsWith("/")?t:`/${t}`,r=nC();return r?`${r}${a}`:a}const qs="__ihab_core_storage_resolvers__";function ba(){return globalThis[qs]??null}function aC(e){globalThis[qs]=e}let Us=class extends Error{constructor(t){super(`
|
|
829
829
|
[ihabdevteam-core] ${t}() \uD638\uCD9C \uC2E4\uD328 \u2014 configureStorage()\uAC00 \uC124\uC815\uB418\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4.
|
|
830
830
|
|
|
831
831
|
\uC571 \uCD08\uAE30\uD654 \uC2DC\uC810(main.tsx \uB4F1)\uC5D0 \uC544\uB798\uC640 \uAC19\uC774 \uD55C \uBC88 \uD638\uCD9C\uD558\uC138\uC694:
|
|
@@ -844,19 +844,19 @@ 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 rC(e){aC(e)}function Gs(e,t){if(!e)return null;const a=ba();return a?.resolvePath?a.resolvePath(e,t):t?`${t}/${e}.mp3`:null}async function Ks(e){if(!e)return null;const t=ba();if(!t)throw new Us("getSignedOrPublicUrl");try{return await t.resolveUrl(e)}catch{return null}}async function Ys(e){const t=ba();if(!t)throw new Us("downloadSound");return t.download(e)}function oC(){return ba()?.noiseBaseUrl??"/sounds/noise"}function sC(){const e=Number(ba()?.noiseFileGain);return Number.isFinite(e)&&e>0?e:1}function iC(e){const t=AbortSignal.timeout;if(typeof t=="function")return t.call(AbortSignal,e);const a=new AbortController;return setTimeout(()=>a.abort(),e),a.signal}const Zs="__ihab_core_tts_config__";function $r(){return globalThis[Zs]?.urlResolver??null}function lC(){return globalThis[Zs]?.fallbackUrlResolver??null}const uC="__ihab_core_pronunciation_resolver__";function cC(){return globalThis[uC]??null}let jn=null;const ya=new WeakMap,Rr=new WeakMap,Pr=new WeakMap;let Xs=!1;const Js=e=>Math.max(0,Math.min(1,Number.isFinite(e)?e:0));function dC(){if(Xs||typeof document>"u")return;Xs=!0;const e=()=>{try{jn&&jn.state!=="running"&&jn.resume()}catch{}};for(const t of["pointerdown","touchend","keydown"])document.addEventListener(t,e,{capture:!0,passive:!0})}function Qs(){if(jn)return jn;try{const e=window.AudioContext||window.webkitAudioContext;return e?(jn=new e,dC(),jn):null}catch{return null}}function Ir(){try{jn?.resume()}catch{}}function Fr(e,t){const a=ya.get(t);if(a)return a;try{const r=e.createMediaElementSource(t),s=e.createGain(),i=e.createAnalyser();i.fftSize=1024,i.smoothingTimeConstant=.6,s.gain.value=Js(Rr.get(t)??t.volume),r.connect(s),s.connect(i),s.connect(e.destination);try{t.volume=1}catch{}const l={gain:s,analyser:i};return ya.set(t,l),l}catch{return null}}function za(e){if(!e)return Promise.resolve(null);const t=ya.get(e);if(t)return Promise.resolve(t.analyser);const a=Qs();if(!a)return Promise.resolve(null);if(a.state==="running")return Promise.resolve(Fr(a,e)?.analyser??null);const r=Pr.get(e);if(r)return r;const s=Promise.resolve().then(()=>a.resume()).then(()=>a.state==="running"?Fr(a,e)?.analyser??null:null).catch(()=>null).finally(()=>{Pr.delete(e)});return Pr.set(e,s),s}function pC(e){if(!e)return null;const t=ya.get(e);if(t)return t.analyser;const a=Qs();return a?a.state==="running"?Fr(a,e)?.analyser??null:(za(e),null):null}function Tn(e,t){const a=Js(t);Rr.set(e,a);const r=ya.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 Va(e){return Rr.get(e)??e.volume}function mC(e,t){e.getFloatTimeDomainData(t);let a=0;for(let r=0;r<t.length;r++){const s=t[r];a+=s*s}return Math.sqrt(a/t.length)}const hC="__ihab_core_image_config__";function Jn(){return globalThis[hC]??null}const ei="word_image_existence_map_v1";let zn=null;const Wa=new Map;function CC(){if(zn)return zn;try{const e=typeof localStorage<"u"?localStorage.getItem(ei):null,t=e?JSON.parse(e):null;zn=t&&typeof t=="object"&&!Array.isArray(t)?t:{}}catch{zn={}}return zn}let Or=null;function fC(){Or||(Or=setTimeout(()=>{Or=null;try{typeof localStorage<"u"&&zn&&localStorage.setItem(ei,JSON.stringify(zn))}catch{}},200))}function gC(e,t){return`${e}_${t??1}`}async function ti(e,t){const a=CC(),r=gC(e,t);if(r in a)return a[r];if(Wa.has(r))return Wa.get(r);const s=Jn();if(!s)return!1;const i=s(e,t);if(!i)return!1;const l=fetch(i,{method:"HEAD",signal:iC(8e3)}).then(u=>u.status>=500?null:u.ok,()=>null).then(u=>(Wa.delete(r),u===null?!1:(a[r]=u,fC(),u)));return Wa.set(r,l),l}const bC={\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"}},ni=["\u3131","\u3132","\u3134","\u3137","\u3138","\u3139","\u3141","\u3142","\u3143","\u3145","\u3146","\u3147","\u3148","\u3149","\u314A","\u314B","\u314C","\u314D","\u314E"],ai=["\u314F","\u3150","\u3151","\u3152","\u3153","\u3154","\u3155","\u3156","\u3157","\u3158","\u3159","\u315A","\u315B","\u315C","\u315D","\u315E","\u315F","\u3160","\u3161","\u3162","\u3163"],yC=["","\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 va(e){if(!e)return null;const t=e.charCodeAt(0)-44032;return t<0||t>=11172?null:{cho:Math.floor(t/588),jung:Math.floor(t%588/28),jong:t%28}}function vC(e){const t=va(e[0]||"");return t?ni[t.cho]:""}function xC(e){if(!e)return()=>!0;e=e.normalize("NFC");const t=[...e],a=l=>ni.includes(l),r=l=>ai.includes(l),s=t.map(l=>a(l)?"cho":r(l)?"jung":va(l)?"syl":"other"),i=t.map(l=>va(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+t.length<=u.length;c++){let d=!0;for(let m=0;m<t.length;m++){const p=u[c+m],f=s[m];if(f==="cho"){if(vC(p)!==t[m]){d=!1;break}}else if(f==="jung"){const b=va(p);if(!b||ai[b.jung]!==t[m]){d=!1;break}}else{const b=i[m];if(b&&b.jong===0){const y=va(p);if(!y||y.cho!==b.cho||y.jung!==b.jung){d=!1;break}}else if(p!==t[m]){d=!1;break}}}if(d)return!0}return!1}}const _C={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(_C).map(([e,t])=>[t.join(""),yC[Number(e)]]));const wC="word_pair_index_v2",BC="word_pair_index_sig_v2";let qa=null;function AC(){try{if(typeof localStorage>"u")return null;const e=localStorage.getItem(wC),t=localStorage.getItem(BC);return!e||!t?null:{index:JSON.parse(e),sig:t}}catch{return null}}function kC(){if(qa)return qa;const e=AC();return e?(qa=e.index,e.sig,qa):null}const Hr=/[ㄱ-ㅎ]/,NC=/[ㅏ-ㅣ]/;function ri(e){e=e.normalize("NFC");for(let t=e.length-1;t>=0;t--){const a=e[t],r=a.charCodeAt(0);if(r>=44032&&r<=55203||Hr.test(a)||NC.test(a))return a}return null}function DC(e){const t=ri(e);if(!t)return"\uAC00";const a=t.charCodeAt(0);return a>=44032&&a<=55203?(a-44032)%28!==0?"\uC774":"\uAC00":Hr.test(t)?"\uC774":"\uAC00"}function EC(e){return`${e}${DC(e)}`}function SC(e){const t=ri(e);if(!t)return"\uB97C";const a=t.charCodeAt(0);return a>=44032&&a<=55203?(a-44032)%28!==0?"\uC744":"\uB97C":Hr.test(t)?"\uC744":"\uB97C"}function jC(e){return`${e}${SC(e)}`}function TC(e,t,a){const r=e.slice(),[s]=r.splice(t,1);return r.splice(a,0,s),r}function xa(e,t=Math.random){const a=e.slice();for(let r=a.length-1;r>0;r--){const s=Math.floor(t()*(r+1));[a[r],a[s]]=[a[s],a[r]]}return a}const MC=()=>{const e="\uC54C \uC218 \uC5C6\uB294 \uC624\uB958",t=typeof Lt?.t=="function"?Lt.t("common.unknownError",{defaultValue:e}):void 0;return typeof t=="string"&&t?t:e};function oi(e,t){if(t===void 0&&(t=MC()),e instanceof Error)return e.message||t;if(typeof e=="string")return e||t;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 t}const LC="__ihab_core_word_pool__";function si(){return globalThis[LC]??null}const ii=globalThis;function li(e,t){const a=r=>{};try{const r=t();r&&typeof r.catch=="function"&&r.catch(a)}catch(r){a(r)}}function $C(e){li("time",()=>ii.__ihabTrainingTimeLogger?.(e))}function RC(e){li("completion",()=>ii.__ihabTrainingCompletionLogger?.(e))}function Ua(e){if(typeof e=="string"){const t=e.trim();return t?Number.isNaN(new Date(t).getTime())?null:t:null}if(e instanceof Date)return Number.isNaN(e.getTime())?null:e.toISOString();if(typeof e=="number"&&Number.isFinite(e)){const t=new Date(e);return Number.isNaN(t.getTime())?null:t.toISOString()}return null}function Zt(e){return typeof e=="string"?e.trim()||null:typeof e=="number"?String(e):null}function PC(e){for(const t of["correct","isCorrect","heard","judgement"])if(typeof e[t]=="boolean")return e[t];return e.score===1?!0:e.score===0?!1:null}function IC(e){return Array.isArray(e)?e.map((t,a)=>{const r=t??{};return{index:a,itemId:Zt(r.contextCode)??Zt(r.itemId)??Zt(r.itemCode)??Zt(r.id),question:Zt(r.question)??Zt(r.q)??Zt(r.sentence)??Zt(r.text)??Zt(r.prompt)??Zt(r.word)??Zt(r.targetSyllable),answer:Zt(r.answer),selected:Zt(r.selectedText)??Zt(r.selected),correct:PC(r),shownAt:Ua(r.shownAt)??Ua(r.shown_at),answeredAt:Ua(r.answeredAt)??Ua(r.answered_at)}}):[]}const zr=globalThis;async function FC(){try{return await zr.__ihabNoiseSettingsStore?.load()??null}catch{return null}}function ui(e){const t=a=>{};try{const a=zr.__ihabNoiseSettingsStore?.save(e);a&&typeof a.catch=="function"&&a.catch(t)}catch(a){t(a)}}function Ga(e){try{zr.__ihabNoiseSettingsStore?.applied?.(e)}catch{}}async function OC(e){if(typeof document<"u"){const t=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),t&&t!==document.activeElement&&typeof t.focus=="function"&&t.isConnected)try{t.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 HC="Asia/Seoul",zC=/^(\d{4}-\d{2}-\d{2})[T ](\d{2}:\d{2})(?::(\d{2})(?:\.(\d+))?)?$/;function Vr(e){let t;if(e instanceof Date)t=e;else if(typeof e=="string"){const a=e.trim(),r=zC.exec(a);t=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 t=new Date(e);return Number.isNaN(t.getTime())?null:t}const VC=e=>Vr(e);function WC(e,t){const a=t.startsWith("ko")?"ko-KR":"en-US",r=VC(e);return r?r.toLocaleDateString(a,{timeZone:HC,year:"numeric",month:"short",day:"numeric"}):""}function _a(){return qr(new Date)}function Wr(e){return e&&/^\d{4}-\d{2}-\d{2}$/.test(e)?e:_a()}function Qn(){return UC(_a())}const qC=540*60*1e3;function ci(e,t,a){return new Date(Date.UTC(e,t,a)-qC)}function UC(e){const[t,a,r]=e.split("-").map(Number);return new Date(t,(a||1)-1,r||1)}function qr(e){if(e==null||e==="")return"";const t=Vr(e);return t?new Intl.DateTimeFormat("fr-CA",{timeZone:"Asia/Seoul"}).format(t):""}function di(e,t){if(!e)return"";const a=Vr(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),m=Math.floor(u/365);return i<1?t("store.time.justNow","\uBC29\uAE08 \uC804"):i<60?t("store.time.minutesAgo",{n:i}):l<24?t("store.time.hoursAgo",{n:l}):u<7?t("store.time.daysAgo",{n:u}):c<5?t("store.time.weeksAgo",{n:c}):u<365?t("store.time.monthsAgo",{n:Math.min(d,11)}):t("store.time.yearsAgo",{n:m})}function pi(e,t={}){const{sep:a=".",pad:r=!0,trailingDot:s=!1,fallback:i="\u2014"}=t;if(!e)return i;const l=qr(e instanceof Date?e:String(e));if(!l)return i;const[u,c,d]=l.split("-"),m=r?c:String(Number(c)),p=r?d:String(Number(d));return`${u}${a}${m}${a}${p}${s?".":""}`}function ea(e){if(!e)return e;const t=e.trim();return/^[₩$]/.test(t)?t:/원\s*$/.test(t)?"\u20A9"+t.replace(/\s*원\s*$/,"").trim():t}function mi(e,t){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?t("date.timeH",{h:r,hh:i,mm:a[2]}):t("date.timeHM",{h:r,hh:i,m:s,mm:a[2]})}function Ur(e){return(e??0).toLocaleString("ko-KR")}const GC=[{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"}]}],KC=[{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 hi(){return GC}function YC(){return KC}const ZC=[],XC=[],JC=[],QC=[];function ef(){return{LISTEN_IN_NOISE:ZC,SHORT_STORY:XC,LONG_STORY:JC,ORDERING_SENTENCE:QC}}const tf=[{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."}],Ci={LISTEN_IN_NOISE:"listenInNoise",SHORT_STORY:"shortStory",LONG_STORY:"longStory",ORDERING_SENTENCE:"orderingSentence"};function nf(e){return tf.map(t=>{const a=Ci[t.key];return a?{...t,label:e(`trainingType.${a}.title`),desc:e(`trainingType.${a}.desc`)}:t})}let Ka=null,fi=null,gi=null;function af(){const e=si();if(e&&e.entries.length>0){const t=kC();if(Ka&&fi===e&&gi===t)return Ka;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:t?.[s.word]?[...t[s.word].cho??[],...t[s.word].jung??[],...t[s.word].jong??[]]:[],pron:s.pronunciation||s.word,grade:s.grade}));return Ka=r,fi=e,gi=t,Ka}return[]}new Proxy([],{get(e,t){const a=af(),r=a[t];return typeof r=="function"?r.bind(a):r}});const rf="0.286.0";function of(e){if(e.includes("\\")&&e.includes("("))return!0;if(!/url\s*\(/i.test(e))return!1;const t=e.replace(/url\(\s*(['"]?)#[^)'"]*\1\s*\)/gi,"");return/url\s*\(/i.test(t)}function sf(e){if(typeof window>"u")return"";const t=(a,r)=>{typeof r.attrValue=="string"&&of(r.attrValue)&&(r.keepAttr=!1)};Mr.addHook("uponSanitizeAttribute",t);try{return Mr.sanitize(e,{USE_PROFILES:{svg:!0,svgFilters:!0},FORBID_TAGS:["script","use","style"],FORBID_ATTR:["xlink:href","href"]})}finally{Mr.removeHook("uponSanitizeAttribute",t)}}function lf(e){const[t,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 m=e;d&&(e.startsWith("/")?m=Lr(e):/^(Logo|Symbol)/i.test(d)?m=Lr(`logo/${d}`):(/^https?:\/\//i.test(e)||e.startsWith("data:"),m=e)),s(null),l(null),a(m)},[e]),o.useEffect(()=>{if(!t)return;let d=!1;async function m(){try{let p=await fetch(t);p.ok||(p=await fetch(t));const f=p.headers.get("content-type")||"";if(d)return;if(f.includes("svg")){s("mask");return}if(f.startsWith("image/")){s("img");return}const b=await fetch(t);if(!b.ok)throw new Error("not ok");const y=await b.text();if(d)return;if(/^\s*<svg[\s>]/i.test(y)){const C=sf(y);if(!C){s("none");return}l(C),s("inline");return}s("none")}catch{d||s("none")}}return m(),()=>{d=!0}},[t]),o.useEffect(()=>{let d=!1,m=null;return r==="mask"&&t&&fetch(t).then(p=>{if(!p.ok)throw new Error("fetch failed");return p.blob()}).then(p=>{d||(m=URL.createObjectURL(p),c(m))}).catch(()=>{d||s("img")}),()=>{d=!0,m&&URL.revokeObjectURL(m),c(null)}},[r,t]),{iconToUse:t,mode:r,svgText:i,blobUrl:u}}function Je(e){const{icon:t,label:a,className:r,imgClassName:s,maskClassName:i,svgClassName:l,wrapperStyle:u,size:c}=e||{},d=r??"iconRenderer-icon",m=s??"iconRenderer-icon-image",p=i??"iconRenderer-icon-mask",f=l??"iconRenderer-icon-svg",b=typeof t=="string"?t:null,y=y0(b),{iconToUse:C,mode:v,svgText:_,blobUrl:h}=lf(b),w=(N,k={})=>n.jsx("span",{className:d,style:u,...k,children:N}),g=typeof c=="number"?{width:c,height:c,objectFit:"contain"}:null,B=(N,k={})=>n.jsx("img",{src:N,alt:typeof a=="string"?a:typeof a=="number"?String(a):"",className:m,...k,style:g?{...k.style,...g}:k.style});if(!t)return null;if(typeof t!="string")return w(t);if(t==="none")return w(n.jsx("span",{className:f,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 w(o.createElement(y,{className:f,size:typeof c=="number"?c:20}),{"aria-hidden":"true"})}catch{}if(C&&C.endsWith(".svg")){if(v==="mask"){const N={"--icon-url":h?`url(${h})`:`url(${C})`,...typeof c=="number"?{"--icon-size":`${c}px`}:null};return w(n.jsx("span",{className:p,style:N}),{"aria-hidden":"true"})}return v==="img"?w(B(C,{onError:N=>{N.currentTarget.onerror=null,N.currentTarget.style.display="none"}}),{"aria-hidden":"true"}):v==="inline"?w(n.jsx("span",{className:f,dangerouslySetInnerHTML:_?{__html:_}:void 0}),{"aria-hidden":"true"}):w(null,{"aria-hidden":"true"})}if(t.startsWith("/")||t.includes("/assets/")||t.match(/\.(png|jpg|jpeg|webp|gif)$/i))return B(Lr(t),{style:u,onError:N=>{N.currentTarget.onerror=null,N.currentTarget.style.display="none"}});const x=typeof c=="number"?c:20,A=`<svg width="${x}" height="${x}" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><rect x="3" y="3" width="18" height="18" rx="2" ry="2" style="fill:none;stroke:currentColor;stroke-width:2"/></svg>`;return w(n.jsx("span",{className:f,dangerouslySetInnerHTML:{__html:A}}),{"aria-hidden":"true"})}function bi(e){const[t,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:t,press:i}}function uf({icon:e,title:t,message:a,action:r,className:s}){const{pending:i,press:l}=bi(r?.onClick);return n.jsxs("div",{className:ke("empty-state",s),children:[e&&n.jsx(Je,{icon:e,size:48,className:"empty-state__icon"}),t&&n.jsx("p",{className:"empty-state__title h4",children:t}),a&&n.jsx("p",{className:"empty-state__message body-3",children:a}),r&&n.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&&n.jsx(Je,{icon:r.icon,className:"button__icon"}),n.jsx("span",{className:"button__label button-1",children:r.label})]})]})}function cf({message:e,hint:t,icon:a="triangle-alert",onRetry:r,retryLabel:s,className:i}){const{t:l}=ye.useTranslation(),{pending:u,press:c}=bi(r);return n.jsxs("div",{className:ke("empty-state","error-state",i),role:"alert",children:[n.jsx(Je,{icon:a,size:48,className:"empty-state__icon error-state__icon"}),n.jsx("p",{className:"empty-state__message body-3",children:e??l("common.errorState.message",{defaultValue:"\uBD88\uB7EC\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."})}),t&&n.jsx("p",{className:"error-state__hint caption-1",children:t}),r&&n.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:[n.jsx(Je,{icon:"rotate-cw",className:"button__icon"}),n.jsx("span",{className:"button__label button-1",children:s??l("common.errorState.retry",{defaultValue:"\uB2E4\uC2DC \uC2DC\uB3C4"})})]})]})}function df({icon:e,title:t,description:a,cta:r,tone:s="main",disabled:i=!1,onClick:l,className:u=""}){const c=o.useId(),d=`${c}-title`,m=`${c}-desc`,p=`${c}-cta`,f=()=>{i||l?.()};return n.jsx("section",{role:"button",tabIndex:i?-1:0,"aria-disabled":i||void 0,"aria-labelledby":d,"aria-describedby":`${m} ${p}`,onClick:f,onKeyDown:b=>{(b.key==="Enter"||b.key===" ")&&(b.preventDefault(),f())},className:ke("action-card",`action-card--${s}`,i&&"action-card--disabled",u),children:n.jsxs("div",{className:"action-card__body",children:[n.jsx("span",{"aria-hidden":!0,className:"action-card__chip",children:n.jsx(Je,{icon:e,size:34})}),n.jsxs("div",{className:"action-card__text",children:[n.jsx("h2",{id:d,className:"action-card__title",children:t}),n.jsx("p",{id:m,className:"action-card__desc",children:a})]}),n.jsxs("div",{className:"action-card__cta",children:[n.jsx("span",{id:p,children:r}),n.jsx("span",{"aria-hidden":!0,className:"action-card__arrow",children:n.jsx(Je,{icon:"arrow-right",size:18})})]})]})})}function pf({as:e="div",className:t="",children:a,storage:r,...s}){r&&rC({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=ke("ihabdevteam-core-scope",t);return n.jsx(e,{className:i,...s,children:a})}function Gr(e,t=!0){o.useEffect(()=>{if(!t)return;const a=e.current;if(!a)return;const r=s=>{if(s.key!=="Tab")return;const i=Array.from(a.querySelectorAll(Cn)).filter(m=>!m.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,t])}const Cn='a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])',Kr=new WeakMap;function Yr(e,t){e&&Kr.set(e,t)}function Zr(e){let t=e;for(let a=0;t&&!t.isConnected&&a<10;a++){let r=t;for(;r&&!Kr.has(r);)r=r.parentElement;if(!r)return t;t=Kr.get(r)??null}return t}function yi(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 Ya(e,t,a){const r=e?.isConnected?e:a?.isConnected?a:null;if(yi(t)&&!(e&&e.contains(t)))return t.focus(),t;if(!r)return null;const s=Array.from(document.querySelectorAll(Cn)).filter(c=>!(e&&e.contains(c))&&yi(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 mf({title:e="",lines:t=[],notices:a=null,children:r,variant:s="default",dismissible:i=!1,className:l=""}){const{t:u}=ye.useTranslation(),[c,d]=o.useState(!1),m=o.useRef(null),p=o.useCallback(()=>{const C=m.current;C&&C.contains(document.activeElement)&&Ya(C),d(!0)},[]);if(c)return null;const f=`notice-box notice-box--${s} body-2 ${l}`.trim(),b=i&&n.jsx("button",{type:"button",className:"notice-box__dismiss",onClick:p,"aria-label":u("common.close","\uB2EB\uAE30"),children:"\xD7"});if(a&&Array.isArray(a)&&a.length)return n.jsxs("div",{className:f,role:"note",children:[a.map((C,v)=>n.jsxs("div",{className:"notice-box__inner",children:[C.title?n.jsx("span",{className:"notice-box__title body-3",children:C.title}):null,n.jsx("div",{className:"notice-box__body",children:C.lines&&C.lines.length?n.jsx("div",{children:C.lines.map((_,h)=>n.jsx("span",{className:"notice-box__line body-3",children:_},h))}):C.children??null})]},v)),b]});const y=e||t.length?n.jsxs("div",{className:"notice-box__inner",children:[e?n.jsx("span",{className:"notice-box__title body-1",children:e}):null,n.jsx("div",{className:"notice-box__body",children:t.length?n.jsx("ul",{children:t.map((C,v)=>n.jsx("li",{className:"notice-box__line",children:C},v))}):r})]}):n.jsx("div",{className:"notice-box__inner",children:r});return n.jsxs("div",{ref:m,className:f,role:"note",children:[y,b]})}const ta=[];let Za=!1;function vi(e){if(e.key!=="Escape"||e.defaultPrevented||e.isComposing||e.keyCode===229)return;const t=ta[ta.length-1];t&&(e.stopPropagation(),t())}function Vn(e){return ta.push(e),!Za&&typeof document<"u"&&(document.addEventListener("keydown",vi),Za=!0),()=>{const t=ta.lastIndexOf(e);t>=0&&ta.splice(t,1),ta.length===0&&Za&&typeof document<"u"&&(document.removeEventListener("keydown",vi),Za=!1)}}const xi=o.createContext(null);function hf(e){return/max-width:\s*7[0-9][0-9]px/.test(e)}const _i=e=>typeof window>"u"||!window.matchMedia?!1:window.matchMedia(e).matches;function Cf(e){const t=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 rs.useSyncExternalStore(t,()=>_i(e),()=>!1)}function ff(e){const[t,a]=o.useState(_i(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]),t}const gf=typeof rs.useSyncExternalStore=="function"?Cf:ff;function on(e){const t=o.useContext(xi),a=gf(e);return t&&typeof t.mobile=="boolean"&&hf(e)?t.mobile:a}const bf="(prefers-reduced-motion: reduce)";function Xr(){return on(bf)}function ln(e){const{anchorRect:t,anchorEl:a,offset:r=20,edgeMargin:s=20,onClose:i,closeOnOutsideClick:l=!0,className:u="",role:c="dialog",ariaLabel:d="",children:m,backdrop:p=!1,isMobilePopup:f=!1,useBorder:b=!0,header:y,focusOnOpen:C}=e||{},v=o.useRef(null),[_,h]=o.useState({position:"fixed",left:0,top:-9999}),[w,g]=o.useState(!1),[B,x]=o.useState("bottom"),[A,N]=o.useState(!1),[k,S]=o.useState(!1),E=!t&&!a,F=o.useCallback((q=!1)=>{if(k&&f)return;const P=a?a.getBoundingClientRect():t;if(!P||!v.current)return;const O=v.current,{offsetWidth:D,offsetHeight:H}=O,L=window.innerWidth,R=window.innerHeight,z=L-P.right,J=P.left,Y=P.top,Z=R-P.bottom;let ne=0,le=0,ue="top";if(Y>=H+r)ue="top",le=P.top-r-H,ne=P.left+P.width/2-D/2;else if(Z>=H+r)ue="bottom",le=P.bottom+r,ne=P.left+P.width/2-D/2;else if(z>=D+r)ue="right",ne=P.right+r,le=P.top+P.height/2-H/2;else if(J>=D+r)ue="left",ne=P.left-r-D,le=P.top+P.height/2-H/2;else{const fe=Math.max(Y,Z,z,J);fe===Y?(ue="top",le=P.top-r-H,ne=P.left+P.width/2-D/2):fe===Z?(ue="bottom",le=P.bottom+r,ne=P.left+P.width/2-D/2):fe===z?(ue="right",ne=P.right+r,le=P.top+P.height/2-H/2):(ue="left",ne=P.left-r-D,le=P.top+P.height/2-H/2)}const Ee=Number.isFinite(Number(s))?Number(s):8;ne=Math.min(Math.max(ne,Ee),L-D-Ee),le=Math.min(Math.max(le,Ee),R-H-Ee);const W=Math.round(ne),te=Math.round(le);q&&v.current?(v.current.style.left=`${W}px`,v.current.style.top=`${te}px`,v.current.dataset.placement=ue):(x(ue||B),h({position:"fixed",left:W,top:te}),N(!0))},[k,f,a,t,r,s,B]);o.useLayoutEffect(()=>{if(E)return;if(k&&f){h({position:"fixed",left:"50%",top:"50%",transform:"translate(-50%, -50%)",width:"calc(100% - 40px)",maxWidth:"calc(100% - 40px)"}),N(!0);return}F();const q=requestAnimationFrame(()=>F());return()=>cancelAnimationFrame(q)},[t,a,r,m,s,E,k,f,F]),o.useEffect(()=>{if(E||k&&f||!v.current||typeof ResizeObserver>"u")return;const q=new ResizeObserver(()=>{t&&F()});return q.observe(v.current),()=>q.disconnect()},[t,m,s,E,k,f,F]),o.useEffect(()=>{if(E||k&&f)return;const q=()=>F(!0),P=O=>{if(!a&&i){const D=O.target;if(D&&v.current&&v.current.contains(D))return;try{if(D&&D.closest&&D.closest("[data-tooltip-ignore]"))return}catch{}I.current(!0);return}q()};return window.addEventListener("resize",q),document.addEventListener("scroll",P,{passive:!0,capture:!0}),()=>{window.removeEventListener("resize",q),document.removeEventListener("scroll",P,{capture:!0})}},[t,a,i,r,m,s,E,k,f,F]),o.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const q=window.matchMedia("(max-width: 768px)"),P=()=>S(!!q.matches);P();try{q.addEventListener?q.addEventListener("change",P):q.addListener(P)}catch{try{q.addListener(P)}catch{}}return()=>{try{q.removeEventListener?q.removeEventListener("change",P):q.removeListener(P)}catch{}}},[]);const $=o.useRef(!1),U=o.useRef(null),j=Xr(),T=o.useCallback((q=!1)=>{if(i&&!(w||$.current)){if($.current=!0,q){g(!0);try{i&&i()}catch{$.current=!1,g(!1)}return}g(!0),U.current=setTimeout(()=>{U.current=null;try{i&&i()}catch{$.current=!1,g(!1)}},j?0:200)}},[w,i,g,j]);o.useEffect(()=>()=>{U.current&&clearTimeout(U.current)},[]),o.useEffect(()=>{if(E)return;const q=D=>{const H=v.current;if(!H)return;const L=D.target;if(L&&!H.contains(L)){try{if(L.closest&&L.closest("[data-tooltip-ignore]"))return}catch{}l&&T(!0)}},P=D=>{const H=v.current;if(!H)return;const L=D.target;if(L&&!H.contains(L)){try{if(L.closest&&L.closest("[data-tooltip-ignore]"))return}catch{}l&&T(!0)}},O=D=>{if(D.key==="Tab"){const H=v.current;if(!H)return;const L=H.querySelectorAll(Cn);if(!L||L.length===0)return;const R=L[0],z=L[L.length-1],J=document.activeElement;D.shiftKey?J===R&&(D.preventDefault(),z.focus()):J===z&&(D.preventDefault(),R.focus())}};return document.addEventListener("pointerdown",q,!0),document.addEventListener("click",P,!0),document.addEventListener("keydown",O),()=>{document.removeEventListener("pointerdown",q,!0),document.removeEventListener("click",P,!0),document.removeEventListener("keydown",O)}},[i,l,T,E]);const I=o.useRef(T);o.useEffect(()=>{I.current=T});const K=!!i;o.useEffect(()=>{if(!(E||!K))return Vn(()=>I.current())},[E,K]),o.useEffect(()=>{const q=()=>{T(!0)};return typeof document<"u"&&document.addEventListener("speechear-close-tooltips",q),()=>{typeof document<"u"&&document.removeEventListener("speechear-close-tooltips",q)}},[T]);const ee=o.useRef(null);o.useEffect(()=>{if(E||C===!1||!A)return;const q=v.current;if(!q)return;const P=q.querySelector(Cn);if(P)return ee.current=document.activeElement,P.focus(),()=>{const O=ee.current;ee.current=null,O&&document.contains(O)&&O.focus()}},[E,C,A]),o.useEffect(()=>{c==="dialog"&&!d&&tn("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=n.jsxs("div",{ref:v,className:`tooltip-content ${E?"tooltip-content--inline":""} ${b?"tooltip-content--bordered":""} ${w?"is-closing":""} ${u} ${k&&f?"is-mobile":""}`,role:c,"aria-label":d||void 0,style:E?{}:{..._,visibility:A?"visible":"hidden"},tabIndex:-1,"data-placement":B,"data-left":E?"":_.left,"data-top":E?"":_.top,"data-anchor-left":t?Math.round(t.left):"","data-anchor-top":t?Math.round(t.top):"","data-anchor-width":t?Math.round(t.width):"","data-anchor-height":t?Math.round(t.height):"",children:[y!=null&&n.jsx("div",{className:"tooltip-content__header h5",children:y}),m]});if(E||typeof document>"u")return V;if(p||k&&f){const q=n.jsxs("div",{className:"tooltip-portal",children:[n.jsx("div",{className:"tooltip-backdrop",onClick:()=>{l&&T(!0)}}),V]});return en.createPortal(q,document.body)}return en.createPortal(V,document.body)}function _n(e){const{anchorRect:t,text:a,offset:r=8,onClose:s,className:i="",ariaLabel:l}=e||{};return a?n.jsx(ln,{anchorRect:t,offset:r,onClose:s,closeOnOutsideClick:!1,className:`tooltip-info ${i}`,ariaLabel:l||a,children:n.jsx("div",{className:"tooltip-info__content body-3",children:a})}):null}function Wn(e){const{t}=ye.useTranslation(),{anchorRect:a,title:r,items:s,activeIndex:i=-1,showIndex:l=!0,onClose:u,offset:c=12,closeOnOutsideClick:d=!0}=e||{},m=(Array.isArray(s)?s:s?[s]:[]).map(p=>typeof p=="string"?{text:p}:p);return!m.length&&!r?null:n.jsx(ln,{anchorRect:a,offset:c,onClose:u,closeOnOutsideClick:d,useBorder:!1,className:"tooltip-description",ariaLabel:r||t("tooltip.description","\uC124\uBA85"),children:n.jsxs("div",{className:"tooltip-description__box",children:[r&&n.jsx("span",{className:"tooltip-description__title body-2",children:r}),n.jsx("ol",{className:"tooltip-description__items",children:m.map((p,f)=>n.jsxs("li",{className:`tooltip-description__item body-3${f===i?" tooltip-description__item--active":""}`,children:[l&&m.length>1&&n.jsxs("span",{className:"tooltip-description__index button-1",children:[f+1,"."]}),p.color&&n.jsx("span",{className:"tooltip-description__dot",style:{background:p.color},"aria-hidden":"true"}),n.jsx("span",{children:p.text})]},f))})]})})}function wa(e){const t=o.useRef(e);return o.useEffect(()=>{t.current=e}),t}let Jr=0,wi=!1;function Bi(){wi||typeof document>"u"||(wi=!0,document.addEventListener("pointerdown",e=>{e.pointerType==="touch"&&(Jr=Date.now())},!0),document.addEventListener("touchstart",()=>{Jr=Date.now()},{capture:!0,passive:!0}))}Bi();function na(e){return!!e&&e.pointerType==="touch"}function aa(e=1e3){return Bi(),Date.now()-Jr<e}function Qr(e,t,a,{enabled:r=!0,fallbackOnParent:s=!1}={}){const i=wa(e),l=wa(t),u=o.useRef(null),c=o.useRef(0);o.useEffect(()=>{if(!r||typeof document>"u")return;const m=p=>{const f=p,b=p.target,y=a.current,C=!!(b&&y&&y.contains(b));if(f.pointerType!=="touch"){C&&(u.current=null);return}if(C){u.current=i.current;return}u.current=null,i.current&&!(b&&b.closest?.(".tooltip-content"))&&l.current(!1,y)};return document.addEventListener("pointerdown",m,!0),()=>document.removeEventListener("pointerdown",m,!0)},[r,a,i,l]);const d=o.useCallback(m=>{const p=u.current;return p===null?!1:(u.current=null,c.current=Date.now(),l.current(!p,m??a.current),!0)},[a,l]);return o.useEffect(()=>{if(!r||!s)return;const m=a.current,p=m?.parentElement;if(!m||!p)return;let f=null;const b=v=>{const _=v.changedTouches?.[0];if(!_)return!1;const h=m.getBoundingClientRect();return _.clientX>=h.left&&_.clientX<=h.right&&_.clientY>=h.top&&_.clientY<=h.bottom},y=v=>{f=b(v)?i.current:null},C=v=>{const _=f;f=null,!(_===null||Date.now()-c.current<700||!b(v))&&(u.current=null,c.current=Date.now(),l.current(!_,m))};return p.addEventListener("touchstart",y,{passive:!0}),p.addEventListener("touchend",C),()=>{p.removeEventListener("touchstart",y),p.removeEventListener("touchend",C)}},[r,s,a,i,l]),{touchPress:d}}function yf(e,t){const{size:a=48,type:r,htmlType:s,href:i,target:l,rel:u,icon:c,rightIcon:d,label:m,count:p,subLabel:f,children:b,ariaLabel:y,variant:C="default",align:v="center",nowrap:_=!1,selected:h,toggleable:w=!1,ariaExpanded:g,ariaControls:B,disabled:x=!1,useLabel:A=!0,useBorder:N=!0,useBG:k=!0,useDisabledCovered:S=!1,useDisabledInvisible:E=!1,width:F,minWidth:$,onClick:U,onDisabledClick:j,showTooltipInfo:T=!1,tooltipInfoText:I=null,tooltipDescription:K=null,tooltipOnly:ee=!1,iconSize:V="medium",iconColor:q,shape:P="rounded",color:O,className:D,...H}=e,L=typeof a=="string"&&isNaN(Number(a))?a.toLowerCase():String(Number(a)||48),R=L.match(/^\d+$/)?`button${L}`:`button-${L}`,z=Number(a),J=!isNaN(z)&&z<40?"button-2":"button-1",Y=m??b,Z=x||!!H.disabled,ne=Z?S?"disabled-covered":E?"disabled-invisibled":"disabled":C,le=ne?`button--variant-${ne}`:"",ue=v?`button--align-${v}`:"",Ee=_?"button--nowrap":"",W=P?`button--shape-${P}`:"",te=typeof q=="string"&&q.startsWith("--")?`var(${q})`:q,fe={...F?{width:typeof F=="number"?`${F}px`:F}:{},...$?{minWidth:typeof $=="number"?`${$}px`:$}:{},...N?{}:{"--button-border":Z?"0":"1px solid transparent"},...te?{"--button-icon-color":te}:{},...O?{"--color-main":O}:{}},Se=A===!1?"":Y,Ce=Array.isArray(Se)?Se.length>0:!!Se,ie=!!d,ce=r??(Ce||c||ie?"bar":"dot"),de=`${R}--${ce}`,be=o.useRef(null);o.useEffect(()=>{!ma||s!==void 0||be.current?.closest("form")&&tn(`button-in-form:${typeof Y=="string"?Y:""}`,'[ihab/Button] <form> \uC548\uC778\uB370 htmlType \uC774 \uC5C6\uC2B5\uB2C8\uB2E4 \u2014 \uC774 \uB2E8\uCD94\uB294 type="button" \uC774\uB77C \uD3FC\uC744 \uBCF4\uB0B4\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4. \uBCF4\uB0B4\uB294 \uB2E8\uCD94\uBA74 htmlType="submit" \uC744 \uC8FC\uC138\uC694. \uD3FC\uC5D0 \uBCF4\uB0B4\uB294 \uB2E8\uCD94\uAC00 \uD558\uB098\uB3C4 \uC5C6\uC73C\uBA74 **Enter \uB85C\uB3C4 \uC548 \uBCF4\uB0B4\uC9D1\uB2C8\uB2E4**(\uCE78\uC774 \uB458 \uC774\uC0C1\uC77C \uB54C).'+(typeof Y=="string"&&Y?` \uB2E8\uCD94: ${Y}`:""))},[s,Y]);const _e=o.useRef(t);_e.current=t;const Be=o.useCallback(ze=>{be.current=ze;const it=_e.current;typeof it=="function"?it(ze):it&&(it.current=ze)},[]),Ze=o.useRef(Z),[Oe,Ie]=o.useState(!!h),[He,ut]=o.useState(!1),[nt,rt]=o.useState(null),pt=o.useCallback(()=>ut(!1),[]),[Ne,Fe]=o.useState(!1),Ae=o.useId();o.useEffect(()=>{typeof h=="boolean"&&Ie(h)},[h]),o.useEffect(()=>{if(Ze.current&&!Z&&be.current){const ze=be.current;let it=!1;try{it=ze.matches(":focus:not(:focus-visible)")}catch{it=!1}it&&ze.blur(),ze.style.pointerEvents="none";const wt=requestAnimationFrame(()=>{requestAnimationFrame(()=>{be.current&&(be.current.style.pointerEvents="")})});return()=>cancelAnimationFrame(wt)}Ze.current=Z},[Z]);const at=typeof h=="boolean"?!!h:Oe,X=typeof g=="boolean"?void 0:w||typeof h=="boolean"?at?"true":"false":H["aria-pressed"],oe=ke("button",R,de,le,ue,Ee,W,at?"is-selected":null,k?null:"button--no-bg",ee?"button--tooltip-only":null,D),he=`button__icon button__icon--${V}`,je=Array.isArray(f)?f:f!==void 0?[f]:[],ot=()=>{if(Array.isArray(Se))return Se.map((it,wt)=>{const Rt=je[wt];return n.jsxs("span",{className:`button__label-text${Rt!==void 0?" button__label-text--has-sub":""}`,children:[it,Rt!==void 0&&n.jsx("span",{className:"button__sub-label-text caption-1",children:Rt})]},wt)});const ze=f!==void 0;return n.jsxs("span",{className:`button__label-text${ze?" button__label-text--has-sub":""}`,children:[Se,p!=null&&n.jsx("span",{className:"button__count",children:p}),ze&&n.jsx("span",{className:"button__sub-label-text caption-1",children:f})]})},Ye=ze=>{typeof h!="boolean"&&!w&&Ie(!1),ze.currentTarget.blur()},bt=ze=>{Z||(typeof H.onMouseLeave=="function"&&H.onMouseLeave(ze),Ye(ze))},Ct=ze=>{if(ee&&Xe&&tt.touchPress(ze.currentTarget),Z){Xe&&tt.touchPress(ze.currentTarget),ze.preventDefault(),j?.(ze);return}typeof h!="boolean"&&w&&Ie(it=>!it),U?.(ze)},st=o.useCallback(()=>{(T||K)&&(ut(!0),rt(be.current?.getBoundingClientRect()??null))},[T,K]),et=o.useCallback(()=>{(T||K)&&(ut(!1),rt(null))},[T,K]),Xe=!!(T||K),tt=Qr(He,ze=>{ze?st():et()},be,{enabled:Xe&&(Z||ee),fallbackOnParent:Xe&&Z}),$e={...H};delete $e.disabled,delete $e.className,delete $e.faded,delete $e.useFaded,delete $e.loading,delete $e.onMouseLeave,delete $e.onPointerEnter,delete $e.onPointerLeave,delete $e.onPointerUp,delete $e.onFocus,delete $e.onBlur,Z&&(Object.keys($e).forEach(ze=>{/^on[A-Z]/.test(ze)&&typeof $e[ze]=="function"&&delete $e[ze]}),$e["aria-disabled"]="true");const Ge=(typeof T=="string"?T:null)??(typeof I=="string"?I:null)??(typeof y=="string"?y:null)??(typeof Y=="string"?Y:null)??void 0,Pe=typeof y=="string"?y:typeof Y=="string"?Y:Ge,mt=K?[K.title,...K.items??[]].filter(Boolean).join(". "):T&&Ge&&Ge!==Pe?Ge:"",Tt=[typeof H["aria-describedby"]=="string"?H["aria-describedby"]:void 0,mt?Ae:null].filter(Boolean).join(" ")||void 0,kt=(ze,it)=>n.jsx(Je,{icon:ze,label:it??Pe,className:he,imgClassName:"button__icon-img",maskClassName:"button__icon-mask",svgClassName:"button__icon-svg"}),ht=()=>ce==="dot"?n.jsxs(n.Fragment,{children:[kt(c),Ce&&n.jsx("span",{className:`button__label ${J}`,children:ot()})]}):v==="center"&&c?n.jsxs(n.Fragment,{children:[n.jsxs("span",{className:"button__center-group",children:[n.jsx("span",{className:"button__left",children:kt(c)}),Ce&&n.jsx("span",{className:`button__label ${J}`,children:ot()})]}),ie&&n.jsx("span",{className:"button__right",children:kt(d)})]}):n.jsxs(n.Fragment,{children:[c&&n.jsx("span",{className:"button__left",children:kt(c,y??Y)}),Ce&&n.jsx("span",{className:`button__label ${J}`,children:ot()}),ie&&n.jsx("span",{className:"button__right",children:kt(d)})]}),vt=!!i&&!Z;return n.jsxs(n.Fragment,{children:[n.jsxs(vt?"a":"button",{...$e,ref:Be,...vt?{href:i,target:l,rel:u??(l==="_blank"?"noreferrer":void 0)}:{type:s??"button",disabled:Z&&!j&&!Ne},className:oe,"aria-pressed":X,"aria-expanded":typeof g=="boolean"?g:H["aria-expanded"],"aria-controls":B??H["aria-controls"],"aria-label":Pe,"aria-disabled":Z&&(vt||j||Ne)?!0:void 0,"aria-describedby":Tt,style:fe,onClick:Ct,onMouseLeave:bt,onPointerEnter:ze=>{na(ze)||st(),!Z&&typeof H.onPointerEnter=="function"&&H.onPointerEnter(ze)},onPointerLeave:ze=>{na(ze)||et(),!Z&&typeof H.onPointerLeave=="function"&&H.onPointerLeave(ze)},onPointerUp:ze=>{Z&&Xe&&tt.touchPress(ze.currentTarget),!Z&&typeof H.onPointerUp=="function"&&H.onPointerUp(ze)},onFocus:ze=>{Fe(!0),aa()||st(),!Z&&typeof H.onFocus=="function"&&H.onFocus(ze)},onBlur:ze=>{Fe(!1),Z||Ye(ze),et(),!Z&&typeof H.onBlur=="function"&&H.onBlur(ze)},children:[ht(),mt?n.jsx("span",{id:Ae,hidden:!0,"aria-label":mt}):null]}),He&&K?n.jsx(Wn,{anchorRect:nt,title:K.title,items:K.items,onClose:pt}):He&&Ge?n.jsx(_n,{anchorRect:nt,text:Ge,onClose:pt}):null]})}const me=o.forwardRef(yf);me.displayName="Button";var vf={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",collapseFor:"{{name}} \uC811\uAE30",expandFor:"{{name}} \uD3BC\uCE58\uAE30",sortFor:"{{name}} \uC815\uB82C",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."},xf={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",statusCount:"{{label}} {{count}}\uAC74"},_f={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"}},wf={clearAriaLabel:"\uAC80\uC0C9\uC5B4 \uC9C0\uC6B0\uAE30"},Bf={starLabel:"{{n}}\uBC88\uC9F8 \uBCC4 \uC120\uD0DD",valueLabel:"{{max}}\uC810 \uB9CC\uC810\uC5D0 {{value}}\uC810",groupLabel:"\uBCC4\uC810"},Af={selected:"\uC120\uD0DD\uB428"},kf={placeholder:"\uC120\uD0DD"},Nf={collapse:"\uC811\uAE30",expand:"\uD3BC\uCE58\uAE30"},Df={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"},Ef={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",badgeInsideLabel:"{{label}}, \uC548\uC5D0 \uC54C\uB9BC {{count}}\uAC1C"},Sf={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."}}},jf={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."}},Tf={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"}}},Mf={guide:{faq:{title:"\uC790\uC8FC \uBB3B\uB294 \uC9C8\uBB38",desc:"FAQ \uBAA8\uC544\uBCF4\uAE30"}}},Lf={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",synthesizing:"\uC18C\uB9AC\uB97C \uB9CC\uB4E4\uACE0 \uC788\uC2B5\uB2C8\uB2E4\u2026"}},$f={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"},Rf={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"}},Pf={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"}}}},If={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"}},Ff={unitVisit:"\uAC74",periodAll:"\uC804\uCCB4",showN:"{{n}}\uAC1C\uC529"},Of={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"}},Hf={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."}},zf={comingSoon:"\uB2E8\uC5B4\uD6C8\uB828 \uAE30\uB2A5\uC744 \uC900\uBE44 \uC911\uC785\uB2C8\uB2E4."},Vf={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"},Wf={title:"\uC8FC\uC694 \uB2E8\uC5B4",empty:"\uCD94\uCD9C\uB41C \uC8FC\uC694 \uB2E8\uC5B4\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4."},qf={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",viewLabel:"\uBCF4\uAE30 \uBC29\uC2DD",sortLabel:"\uC815\uB82C",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"}},publisherFilter:"{{name}} \uAC8C\uC2DC\uD55C \uAC83\uB9CC \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, \uC790\uD310\uC73C\uB85C\uB294 \uCE78\uC5D0 \uCD08\uC810\uC774 \uAC00\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"}},Uf={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"}},Gf={clearAllSelection:"\uBAA8\uB450 \uC120\uD0DD \uD574\uC81C",divLine:"\uB300\uB9BD\uC120",removePair:"\uB300\uB9BD\uC30D \uBE7C\uAE30",removeWord:"\uB2E8\uC5B4 \uBE7C\uAE30"},Kf={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"}},Yf={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"}},Zf={passwordPlaceholder:"\uBE44\uBC00\uBC88\uD638 \uC785\uB825"},Xf={subtitle:"\uC8FC\uC81C\uB97C \uC120\uD0DD\uD558\uC5EC \uB4E3\uAE30 \uC5F0\uC2B5\uC744 \uC9C4\uD589\uD558\uC138\uC694."},Jf={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"}},Qf={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"}},e2={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",countLabel:"\uC74C\uC18C \uAC1C\uC218",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."]},t2={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"}},n2={lead:`\uC544\uC774\uD574\uBE0C\uB294 \uC18C\uB9AC\uB97C \uD1B5\uD574
|
|
847
|
+
`),this.name="StorageNotConfiguredError"}};function rC(e){aC(e)}function Gs(e,t){if(!e)return null;const a=ba();return a?.resolvePath?a.resolvePath(e,t):t?`${t}/${e}.mp3`:null}async function Ks(e){if(!e)return null;const t=ba();if(!t)throw new Us("getSignedOrPublicUrl");try{return await t.resolveUrl(e)}catch{return null}}async function Ys(e){const t=ba();if(!t)throw new Us("downloadSound");return t.download(e)}function oC(){return ba()?.noiseBaseUrl??"/sounds/noise"}function sC(){const e=Number(ba()?.noiseFileGain);return Number.isFinite(e)&&e>0?e:1}function iC(e){const t=AbortSignal.timeout;if(typeof t=="function")return t.call(AbortSignal,e);const a=new AbortController;return setTimeout(()=>a.abort(),e),a.signal}const Zs="__ihab_core_tts_config__";function $r(){return globalThis[Zs]?.urlResolver??null}function lC(){return globalThis[Zs]?.fallbackUrlResolver??null}const uC="__ihab_core_pronunciation_resolver__";function cC(){return globalThis[uC]??null}let En=null;const ya=new WeakMap,Rr=new WeakMap,Pr=new WeakMap;let Xs=!1;const Js=e=>Math.max(0,Math.min(1,Number.isFinite(e)?e:0));function dC(){if(Xs||typeof document>"u")return;Xs=!0;const e=()=>{try{En&&En.state!=="running"&&En.resume()}catch{}};for(const t of["pointerdown","touchend","keydown"])document.addEventListener(t,e,{capture:!0,passive:!0})}function Qs(){if(En)return En;try{const e=window.AudioContext||window.webkitAudioContext;return e?(En=new e,dC(),En):null}catch{return null}}function Ir(){try{En?.resume()}catch{}}function Fr(e,t){const a=ya.get(t);if(a)return a;try{const r=e.createMediaElementSource(t),s=e.createGain(),i=e.createAnalyser();i.fftSize=1024,i.smoothingTimeConstant=.6,s.gain.value=Js(Rr.get(t)??t.volume),r.connect(s),s.connect(i),s.connect(e.destination);try{t.volume=1}catch{}const l={gain:s,analyser:i};return ya.set(t,l),l}catch{return null}}function za(e){if(!e)return Promise.resolve(null);const t=ya.get(e);if(t)return Promise.resolve(t.analyser);const a=Qs();if(!a)return Promise.resolve(null);if(a.state==="running")return Promise.resolve(Fr(a,e)?.analyser??null);const r=Pr.get(e);if(r)return r;const s=Promise.resolve().then(()=>a.resume()).then(()=>a.state==="running"?Fr(a,e)?.analyser??null:null).catch(()=>null).finally(()=>{Pr.delete(e)});return Pr.set(e,s),s}function pC(e){if(!e)return null;const t=ya.get(e);if(t)return t.analyser;const a=Qs();return a?a.state==="running"?Fr(a,e)?.analyser??null:(za(e),null):null}function Sn(e,t){const a=Js(t);Rr.set(e,a);const r=ya.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 Va(e){return Rr.get(e)??e.volume}function mC(e,t){e.getFloatTimeDomainData(t);let a=0;for(let r=0;r<t.length;r++){const s=t[r];a+=s*s}return Math.sqrt(a/t.length)}const hC="__ihab_core_image_config__";function Qn(){return globalThis[hC]??null}const ei="word_image_existence_map_v1";let zn=null;const Wa=new Map;function CC(){if(zn)return zn;try{const e=typeof localStorage<"u"?localStorage.getItem(ei):null,t=e?JSON.parse(e):null;zn=t&&typeof t=="object"&&!Array.isArray(t)?t:{}}catch{zn={}}return zn}let Or=null;function fC(){Or||(Or=setTimeout(()=>{Or=null;try{typeof localStorage<"u"&&zn&&localStorage.setItem(ei,JSON.stringify(zn))}catch{}},200))}function gC(e,t){return`${e}_${t??1}`}async function ti(e,t){const a=CC(),r=gC(e,t);if(r in a)return a[r];if(Wa.has(r))return Wa.get(r);const s=Qn();if(!s)return!1;const i=s(e,t);if(!i)return!1;const l=fetch(i,{method:"HEAD",signal:iC(8e3)}).then(u=>u.status>=500?null:u.ok,()=>null).then(u=>(Wa.delete(r),u===null?!1:(a[r]=u,fC(),u)));return Wa.set(r,l),l}const bC={\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"}},ni=["\u3131","\u3132","\u3134","\u3137","\u3138","\u3139","\u3141","\u3142","\u3143","\u3145","\u3146","\u3147","\u3148","\u3149","\u314A","\u314B","\u314C","\u314D","\u314E"],ai=["\u314F","\u3150","\u3151","\u3152","\u3153","\u3154","\u3155","\u3156","\u3157","\u3158","\u3159","\u315A","\u315B","\u315C","\u315D","\u315E","\u315F","\u3160","\u3161","\u3162","\u3163"],yC=["","\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 va(e){if(!e)return null;const t=e.charCodeAt(0)-44032;return t<0||t>=11172?null:{cho:Math.floor(t/588),jung:Math.floor(t%588/28),jong:t%28}}function vC(e){const t=va(e[0]||"");return t?ni[t.cho]:""}function xC(e){if(!e)return()=>!0;e=e.normalize("NFC");const t=[...e],a=l=>ni.includes(l),r=l=>ai.includes(l),s=t.map(l=>a(l)?"cho":r(l)?"jung":va(l)?"syl":"other"),i=t.map(l=>va(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+t.length<=u.length;c++){let d=!0;for(let m=0;m<t.length;m++){const p=u[c+m],f=s[m];if(f==="cho"){if(vC(p)!==t[m]){d=!1;break}}else if(f==="jung"){const b=va(p);if(!b||ai[b.jung]!==t[m]){d=!1;break}}else{const b=i[m];if(b&&b.jong===0){const y=va(p);if(!y||y.cho!==b.cho||y.jung!==b.jung){d=!1;break}}else if(p!==t[m]){d=!1;break}}}if(d)return!0}return!1}}const _C={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(_C).map(([e,t])=>[t.join(""),yC[Number(e)]]));const wC="word_pair_index_v2",BC="word_pair_index_sig_v2";let qa=null;function AC(){try{if(typeof localStorage>"u")return null;const e=localStorage.getItem(wC),t=localStorage.getItem(BC);return!e||!t?null:{index:JSON.parse(e),sig:t}}catch{return null}}function kC(){if(qa)return qa;const e=AC();return e?(qa=e.index,e.sig,qa):null}const Hr=/[ㄱ-ㅎ]/,NC=/[ㅏ-ㅣ]/;function ri(e){e=e.normalize("NFC");for(let t=e.length-1;t>=0;t--){const a=e[t],r=a.charCodeAt(0);if(r>=44032&&r<=55203||Hr.test(a)||NC.test(a))return a}return null}function DC(e){const t=ri(e);if(!t)return"\uAC00";const a=t.charCodeAt(0);return a>=44032&&a<=55203?(a-44032)%28!==0?"\uC774":"\uAC00":Hr.test(t)?"\uC774":"\uAC00"}function EC(e){return`${e}${DC(e)}`}function SC(e){const t=ri(e);if(!t)return"\uB97C";const a=t.charCodeAt(0);return a>=44032&&a<=55203?(a-44032)%28!==0?"\uC744":"\uB97C":Hr.test(t)?"\uC744":"\uB97C"}function jC(e){return`${e}${SC(e)}`}function TC(e,t,a){const r=e.slice(),[s]=r.splice(t,1);return r.splice(a,0,s),r}function xa(e,t=Math.random){const a=e.slice();for(let r=a.length-1;r>0;r--){const s=Math.floor(t()*(r+1));[a[r],a[s]]=[a[s],a[r]]}return a}const MC=()=>{const e="\uC54C \uC218 \uC5C6\uB294 \uC624\uB958",t=typeof $t?.t=="function"?$t.t("common.unknownError",{defaultValue:e}):void 0;return typeof t=="string"&&t?t:e};function oi(e,t){if(t===void 0&&(t=MC()),e instanceof Error)return e.message||t;if(typeof e=="string")return e||t;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 t}const LC="__ihab_core_word_pool__";function si(){return globalThis[LC]??null}const ii=globalThis;function li(e,t){const a=r=>{};try{const r=t();r&&typeof r.catch=="function"&&r.catch(a)}catch(r){a(r)}}function $C(e){li("time",()=>ii.__ihabTrainingTimeLogger?.(e))}function RC(e){li("completion",()=>ii.__ihabTrainingCompletionLogger?.(e))}function Ua(e){if(typeof e=="string"){const t=e.trim();return t?Number.isNaN(new Date(t).getTime())?null:t:null}if(e instanceof Date)return Number.isNaN(e.getTime())?null:e.toISOString();if(typeof e=="number"&&Number.isFinite(e)){const t=new Date(e);return Number.isNaN(t.getTime())?null:t.toISOString()}return null}function Xt(e){return typeof e=="string"?e.trim()||null:typeof e=="number"?String(e):null}function PC(e){for(const t of["correct","isCorrect","heard","judgement"])if(typeof e[t]=="boolean")return e[t];return e.score===1?!0:e.score===0?!1:null}function IC(e){return Array.isArray(e)?e.map((t,a)=>{const r=t??{};return{index:a,itemId:Xt(r.contextCode)??Xt(r.itemId)??Xt(r.itemCode)??Xt(r.id),question:Xt(r.question)??Xt(r.q)??Xt(r.sentence)??Xt(r.text)??Xt(r.prompt)??Xt(r.word)??Xt(r.targetSyllable),answer:Xt(r.answer),selected:Xt(r.selectedText)??Xt(r.selected),correct:PC(r),shownAt:Ua(r.shownAt)??Ua(r.shown_at),answeredAt:Ua(r.answeredAt)??Ua(r.answered_at)}}):[]}const zr=globalThis;async function FC(){try{return await zr.__ihabNoiseSettingsStore?.load()??null}catch{return null}}function ui(e){const t=a=>{};try{const a=zr.__ihabNoiseSettingsStore?.save(e);a&&typeof a.catch=="function"&&a.catch(t)}catch(a){t(a)}}function Ga(e){try{zr.__ihabNoiseSettingsStore?.applied?.(e)}catch{}}async function OC(e){if(typeof document<"u"){const t=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),t&&t!==document.activeElement&&typeof t.focus=="function"&&t.isConnected)try{t.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 HC="Asia/Seoul",zC=/^(\d{4}-\d{2}-\d{2})[T ](\d{2}:\d{2})(?::(\d{2})(?:\.(\d+))?)?$/;function Vr(e){let t;if(e instanceof Date)t=e;else if(typeof e=="string"){const a=e.trim(),r=zC.exec(a);t=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 t=new Date(e);return Number.isNaN(t.getTime())?null:t}const VC=e=>Vr(e);function WC(e,t){const a=t.startsWith("ko")?"ko-KR":"en-US",r=VC(e);return r?r.toLocaleDateString(a,{timeZone:HC,year:"numeric",month:"short",day:"numeric"}):""}function _a(){return qr(new Date)}function Wr(e){return e&&/^\d{4}-\d{2}-\d{2}$/.test(e)?e:_a()}function ea(){return UC(_a())}const qC=540*60*1e3;function ci(e,t,a){return new Date(Date.UTC(e,t,a)-qC)}function UC(e){const[t,a,r]=e.split("-").map(Number);return new Date(t,(a||1)-1,r||1)}function qr(e){if(e==null||e==="")return"";const t=Vr(e);return t?new Intl.DateTimeFormat("fr-CA",{timeZone:"Asia/Seoul"}).format(t):""}function di(e,t){if(!e)return"";const a=Vr(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),m=Math.floor(u/365);return i<1?t("store.time.justNow","\uBC29\uAE08 \uC804"):i<60?t("store.time.minutesAgo",{n:i}):l<24?t("store.time.hoursAgo",{n:l}):u<7?t("store.time.daysAgo",{n:u}):c<5?t("store.time.weeksAgo",{n:c}):u<365?t("store.time.monthsAgo",{n:Math.min(d,11)}):t("store.time.yearsAgo",{n:m})}function pi(e,t={}){const{sep:a=".",pad:r=!0,trailingDot:s=!1,fallback:i="\u2014"}=t;if(!e)return i;const l=qr(e instanceof Date?e:String(e));if(!l)return i;const[u,c,d]=l.split("-"),m=r?c:String(Number(c)),p=r?d:String(Number(d));return`${u}${a}${m}${a}${p}${s?".":""}`}function ta(e){if(!e)return e;const t=e.trim();return/^[₩$]/.test(t)?t:/원\s*$/.test(t)?"\u20A9"+t.replace(/\s*원\s*$/,"").trim():t}function mi(e,t){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?t("date.timeH",{h:r,hh:i,mm:a[2]}):t("date.timeHM",{h:r,hh:i,m:s,mm:a[2]})}function Ur(e){return(e??0).toLocaleString("ko-KR")}const GC=[{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"}]}],KC=[{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 hi(){return GC}function YC(){return KC}const ZC=[],XC=[],JC=[],QC=[];function ef(){return{LISTEN_IN_NOISE:ZC,SHORT_STORY:XC,LONG_STORY:JC,ORDERING_SENTENCE:QC}}const tf=[{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."}],Ci={LISTEN_IN_NOISE:"listenInNoise",SHORT_STORY:"shortStory",LONG_STORY:"longStory",ORDERING_SENTENCE:"orderingSentence"};function nf(e){return tf.map(t=>{const a=Ci[t.key];return a?{...t,label:e(`trainingType.${a}.title`),desc:e(`trainingType.${a}.desc`)}:t})}let Ka=null,fi=null,gi=null;function af(){const e=si();if(e&&e.entries.length>0){const t=kC();if(Ka&&fi===e&&gi===t)return Ka;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:t?.[s.word]?[...t[s.word].cho??[],...t[s.word].jung??[],...t[s.word].jong??[]]:[],pron:s.pronunciation||s.word,grade:s.grade}));return Ka=r,fi=e,gi=t,Ka}return[]}new Proxy([],{get(e,t){const a=af(),r=a[t];return typeof r=="function"?r.bind(a):r}});const rf="0.289.0";function of(e){if(e.includes("\\")&&e.includes("("))return!0;if(!/url\s*\(/i.test(e))return!1;const t=e.replace(/url\(\s*(['"]?)#[^)'"]*\1\s*\)/gi,"");return/url\s*\(/i.test(t)}function sf(e){if(typeof window>"u")return"";const t=(a,r)=>{typeof r.attrValue=="string"&&of(r.attrValue)&&(r.keepAttr=!1)};Mr.addHook("uponSanitizeAttribute",t);try{return Mr.sanitize(e,{USE_PROFILES:{svg:!0,svgFilters:!0},FORBID_TAGS:["script","use","style"],FORBID_ATTR:["xlink:href","href"]})}finally{Mr.removeHook("uponSanitizeAttribute",t)}}function lf(e){const[t,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 m=e;d&&(e.startsWith("/")?m=Lr(e):/^(Logo|Symbol)/i.test(d)?m=Lr(`logo/${d}`):(/^https?:\/\//i.test(e)||e.startsWith("data:"),m=e)),s(null),l(null),a(m)},[e]),o.useEffect(()=>{if(!t)return;let d=!1;async function m(){try{let p=await fetch(t);p.ok||(p=await fetch(t));const f=p.headers.get("content-type")||"";if(d)return;if(f.includes("svg")){s("mask");return}if(f.startsWith("image/")){s("img");return}const b=await fetch(t);if(!b.ok)throw new Error("not ok");const y=await b.text();if(d)return;if(/^\s*<svg[\s>]/i.test(y)){const C=sf(y);if(!C){s("none");return}l(C),s("inline");return}s("none")}catch{d||s("none")}}return m(),()=>{d=!0}},[t]),o.useEffect(()=>{let d=!1,m=null;return r==="mask"&&t&&fetch(t).then(p=>{if(!p.ok)throw new Error("fetch failed");return p.blob()}).then(p=>{d||(m=URL.createObjectURL(p),c(m))}).catch(()=>{d||s("img")}),()=>{d=!0,m&&URL.revokeObjectURL(m),c(null)}},[r,t]),{iconToUse:t,mode:r,svgText:i,blobUrl:u}}function Qe(e){const{icon:t,label:a,className:r,imgClassName:s,maskClassName:i,svgClassName:l,wrapperStyle:u,size:c}=e||{},d=r??"iconRenderer-icon",m=s??"iconRenderer-icon-image",p=i??"iconRenderer-icon-mask",f=l??"iconRenderer-icon-svg",b=typeof t=="string"?t:null,y=y0(b),{iconToUse:C,mode:v,svgText:_,blobUrl:h}=lf(b),w=(N,k={})=>n.jsx("span",{className:d,style:u,...k,children:N}),g=typeof c=="number"?{width:c,height:c,objectFit:"contain"}:null,B=(N,k={})=>n.jsx("img",{src:N,alt:typeof a=="string"?a:typeof a=="number"?String(a):"",className:m,...k,style:g?{...k.style,...g}:k.style});if(!t)return null;if(typeof t!="string")return w(t);if(t==="none")return w(n.jsx("span",{className:f,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 w(o.createElement(y,{className:f,size:typeof c=="number"?c:20}),{"aria-hidden":"true"})}catch{}if(C&&C.endsWith(".svg")){if(v==="mask"){const N={"--icon-url":h?`url(${h})`:`url(${C})`,...typeof c=="number"?{"--icon-size":`${c}px`}:null};return w(n.jsx("span",{className:p,style:N}),{"aria-hidden":"true"})}return v==="img"?w(B(C,{onError:N=>{N.currentTarget.onerror=null,N.currentTarget.style.display="none"}}),{"aria-hidden":"true"}):v==="inline"?w(n.jsx("span",{className:f,dangerouslySetInnerHTML:_?{__html:_}:void 0}),{"aria-hidden":"true"}):w(null,{"aria-hidden":"true"})}if(t.startsWith("/")||t.includes("/assets/")||t.match(/\.(png|jpg|jpeg|webp|gif)$/i))return B(Lr(t),{style:u,onError:N=>{N.currentTarget.onerror=null,N.currentTarget.style.display="none"}});const x=typeof c=="number"?c:20,A=`<svg width="${x}" height="${x}" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><rect x="3" y="3" width="18" height="18" rx="2" ry="2" style="fill:none;stroke:currentColor;stroke-width:2"/></svg>`;return w(n.jsx("span",{className:f,dangerouslySetInnerHTML:{__html:A}}),{"aria-hidden":"true"})}function bi(e){const[t,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:t,press:i}}function uf({icon:e,title:t,message:a,action:r,className:s}){const{pending:i,press:l}=bi(r?.onClick);return n.jsxs("div",{className:Ae("empty-state",s),children:[e&&n.jsx(Qe,{icon:e,size:48,className:"empty-state__icon"}),t&&n.jsx("p",{className:"empty-state__title h4",children:t}),a&&n.jsx("p",{className:"empty-state__message body-3",children:a}),r&&n.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&&n.jsx(Qe,{icon:r.icon,className:"button__icon"}),n.jsx("span",{className:"button__label button-1",children:r.label})]})]})}function cf({message:e,hint:t,icon:a="triangle-alert",onRetry:r,retryLabel:s,className:i}){const{t:l}=ve.useTranslation(),{pending:u,press:c}=bi(r);return n.jsxs("div",{className:Ae("empty-state","error-state",i),role:"alert",children:[n.jsx(Qe,{icon:a,size:48,className:"empty-state__icon error-state__icon"}),n.jsx("p",{className:"empty-state__message body-3",children:e??l("common.errorState.message",{defaultValue:"\uBD88\uB7EC\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."})}),t&&n.jsx("p",{className:"error-state__hint caption-1",children:t}),r&&n.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:[n.jsx(Qe,{icon:"rotate-cw",className:"button__icon"}),n.jsx("span",{className:"button__label button-1",children:s??l("common.errorState.retry",{defaultValue:"\uB2E4\uC2DC \uC2DC\uB3C4"})})]})]})}function df({icon:e,title:t,description:a,cta:r,tone:s="main",disabled:i=!1,onClick:l,className:u=""}){const c=o.useId(),d=`${c}-title`,m=`${c}-desc`,p=`${c}-cta`,f=()=>{i||l?.()};return n.jsx("section",{role:"button",tabIndex:i?-1:0,"aria-disabled":i||void 0,"aria-labelledby":d,"aria-describedby":`${m} ${p}`,onClick:f,onKeyDown:b=>{(b.key==="Enter"||b.key===" ")&&(b.preventDefault(),f())},className:Ae("action-card",`action-card--${s}`,i&&"action-card--disabled",u),children:n.jsxs("div",{className:"action-card__body",children:[n.jsx("span",{"aria-hidden":!0,className:"action-card__chip",children:n.jsx(Qe,{icon:e,size:34})}),n.jsxs("div",{className:"action-card__text",children:[n.jsx("h2",{id:d,className:"action-card__title",children:t}),n.jsx("p",{id:m,className:"action-card__desc",children:a})]}),n.jsxs("div",{className:"action-card__cta",children:[n.jsx("span",{id:p,children:r}),n.jsx("span",{"aria-hidden":!0,className:"action-card__arrow",children:n.jsx(Qe,{icon:"arrow-right",size:18})})]})]})})}function pf({as:e="div",className:t="",children:a,storage:r,...s}){r&&rC({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=Ae("ihabdevteam-core-scope",t);return n.jsx(e,{className:i,...s,children:a})}function Gr(e,t=!0){o.useEffect(()=>{if(!t)return;const a=e.current;if(!a)return;const r=s=>{if(s.key!=="Tab")return;const i=Array.from(a.querySelectorAll(fn)).filter(m=>!m.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,t])}const fn='a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])',Kr=new WeakMap;function Yr(e,t){e&&Kr.set(e,t)}function Zr(e){let t=e;for(let a=0;t&&!t.isConnected&&a<10;a++){let r=t;for(;r&&!Kr.has(r);)r=r.parentElement;if(!r)return t;t=Kr.get(r)??null}return t}function yi(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 Ya(e,t,a){const r=e?.isConnected?e:a?.isConnected?a:null;if(yi(t)&&!(e&&e.contains(t)))return t.focus(),t;if(!r)return null;const s=Array.from(document.querySelectorAll(fn)).filter(c=>!(e&&e.contains(c))&&yi(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 mf({title:e="",lines:t=[],notices:a=null,children:r,variant:s="default",dismissible:i=!1,className:l=""}){const{t:u}=ve.useTranslation(),[c,d]=o.useState(!1),m=o.useRef(null),p=o.useCallback(()=>{const C=m.current;C&&C.contains(document.activeElement)&&Ya(C),d(!0)},[]);if(c)return null;const f=`notice-box notice-box--${s} body-2 ${l}`.trim(),b=i&&n.jsx("button",{type:"button",className:"notice-box__dismiss",onClick:p,"aria-label":u("common.close","\uB2EB\uAE30"),children:"\xD7"});if(a&&Array.isArray(a)&&a.length)return n.jsxs("div",{className:f,role:"note",children:[a.map((C,v)=>n.jsxs("div",{className:"notice-box__inner",children:[C.title?n.jsx("span",{className:"notice-box__title body-3",children:C.title}):null,n.jsx("div",{className:"notice-box__body",children:C.lines&&C.lines.length?n.jsx("div",{children:C.lines.map((_,h)=>n.jsx("span",{className:"notice-box__line body-3",children:_},h))}):C.children??null})]},v)),b]});const y=e||t.length?n.jsxs("div",{className:"notice-box__inner",children:[e?n.jsx("span",{className:"notice-box__title body-1",children:e}):null,n.jsx("div",{className:"notice-box__body",children:t.length?n.jsx("ul",{children:t.map((C,v)=>n.jsx("li",{className:"notice-box__line",children:C},v))}):r})]}):n.jsx("div",{className:"notice-box__inner",children:r});return n.jsxs("div",{ref:m,className:f,role:"note",children:[y,b]})}const na=[];let Za=!1;function vi(e){if(e.key!=="Escape"||e.defaultPrevented||e.isComposing||e.keyCode===229)return;const t=na[na.length-1];t&&(e.stopPropagation(),t())}function Vn(e){return na.push(e),!Za&&typeof document<"u"&&(document.addEventListener("keydown",vi),Za=!0),()=>{const t=na.lastIndexOf(e);t>=0&&na.splice(t,1),na.length===0&&Za&&typeof document<"u"&&(document.removeEventListener("keydown",vi),Za=!1)}}const xi=o.createContext(null);function hf(e){return/max-width:\s*7[0-9][0-9]px/.test(e)}const _i=e=>typeof window>"u"||!window.matchMedia?!1:window.matchMedia(e).matches;function Cf(e){const t=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 rs.useSyncExternalStore(t,()=>_i(e),()=>!1)}function ff(e){const[t,a]=o.useState(_i(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]),t}const gf=typeof rs.useSyncExternalStore=="function"?Cf:ff;function nn(e){const t=o.useContext(xi),a=gf(e);return t&&typeof t.mobile=="boolean"&&hf(e)?t.mobile:a}const bf="(prefers-reduced-motion: reduce)";function Xr(){return nn(bf)}function ln(e){const{anchorRect:t,anchorEl:a,offset:r=20,edgeMargin:s=20,onClose:i,closeOnOutsideClick:l=!0,className:u="",role:c="dialog",ariaLabel:d="",children:m,backdrop:p=!1,isMobilePopup:f=!1,useBorder:b=!0,header:y,focusOnOpen:C}=e||{},v=o.useRef(null),[_,h]=o.useState({position:"fixed",left:0,top:-9999}),[w,g]=o.useState(!1),[B,x]=o.useState("bottom"),[A,N]=o.useState(!1),[k,S]=o.useState(!1),E=!t&&!a,F=o.useCallback((q=!1)=>{if(k&&f)return;const R=a?a.getBoundingClientRect():t;if(!R||!v.current)return;const O=v.current,{offsetWidth:D,offsetHeight:H}=O,M=window.innerWidth,P=window.innerHeight,z=M-R.right,Y=R.left,X=R.top,Z=P-R.bottom;let ne=0,le=0,ie="top";if(X>=H+r)ie="top",le=R.top-r-H,ne=R.left+R.width/2-D/2;else if(Z>=H+r)ie="bottom",le=R.bottom+r,ne=R.left+R.width/2-D/2;else if(z>=D+r)ie="right",ne=R.right+r,le=R.top+R.height/2-H/2;else if(Y>=D+r)ie="left",ne=R.left-r-D,le=R.top+R.height/2-H/2;else{const fe=Math.max(X,Z,z,Y);fe===X?(ie="top",le=R.top-r-H,ne=R.left+R.width/2-D/2):fe===Z?(ie="bottom",le=R.bottom+r,ne=R.left+R.width/2-D/2):fe===z?(ie="right",ne=R.right+r,le=R.top+R.height/2-H/2):(ie="left",ne=R.left-r-D,le=R.top+R.height/2-H/2)}const Ee=Number.isFinite(Number(s))?Number(s):8;ne=Math.min(Math.max(ne,Ee),M-D-Ee),le=Math.min(Math.max(le,Ee),P-H-Ee);const W=Math.round(ne),ae=Math.round(le);q&&v.current?(v.current.style.left=`${W}px`,v.current.style.top=`${ae}px`,v.current.dataset.placement=ie):(x(ie||B),h({position:"fixed",left:W,top:ae}),N(!0))},[k,f,a,t,r,s,B]);o.useLayoutEffect(()=>{if(E)return;if(k&&f){h({position:"fixed",left:"50%",top:"50%",transform:"translate(-50%, -50%)",width:"calc(100% - 40px)",maxWidth:"calc(100% - 40px)"}),N(!0);return}F();const q=requestAnimationFrame(()=>F());return()=>cancelAnimationFrame(q)},[t,a,r,m,s,E,k,f,F]),o.useEffect(()=>{if(E||k&&f||!v.current||typeof ResizeObserver>"u")return;const q=new ResizeObserver(()=>{t&&F()});return q.observe(v.current),()=>q.disconnect()},[t,m,s,E,k,f,F]),o.useEffect(()=>{if(E||k&&f)return;const q=()=>F(!0),R=O=>{if(!a&&i){const D=O.target;if(D&&v.current&&v.current.contains(D))return;try{if(D&&D.closest&&D.closest("[data-tooltip-ignore]"))return}catch{}I.current(!0);return}q()};return window.addEventListener("resize",q),document.addEventListener("scroll",R,{passive:!0,capture:!0}),()=>{window.removeEventListener("resize",q),document.removeEventListener("scroll",R,{capture:!0})}},[t,a,i,r,m,s,E,k,f,F]),o.useEffect(()=>{if(typeof window>"u"||!window.matchMedia)return;const q=window.matchMedia("(max-width: 768px)"),R=()=>S(!!q.matches);R();try{q.addEventListener?q.addEventListener("change",R):q.addListener(R)}catch{try{q.addListener(R)}catch{}}return()=>{try{q.removeEventListener?q.removeEventListener("change",R):q.removeListener(R)}catch{}}},[]);const $=o.useRef(!1),G=o.useRef(null),j=Xr(),L=o.useCallback((q=!1)=>{if(i&&!(w||$.current)){if($.current=!0,q){g(!0);try{i&&i()}catch{$.current=!1,g(!1)}return}g(!0),G.current=setTimeout(()=>{G.current=null;try{i&&i()}catch{$.current=!1,g(!1)}},j?0:200)}},[w,i,g,j]);o.useEffect(()=>()=>{G.current&&clearTimeout(G.current)},[]),o.useEffect(()=>{if(E)return;const q=D=>{const H=v.current;if(!H)return;const M=D.target;if(M&&!H.contains(M)){try{if(M.closest&&M.closest("[data-tooltip-ignore]"))return}catch{}l&&L(!0)}},R=D=>{const H=v.current;if(!H)return;const M=D.target;if(M&&!H.contains(M)){try{if(M.closest&&M.closest("[data-tooltip-ignore]"))return}catch{}l&&L(!0)}},O=D=>{if(D.key==="Tab"){const H=v.current;if(!H)return;const M=H.querySelectorAll(fn);if(!M||M.length===0)return;const P=M[0],z=M[M.length-1],Y=document.activeElement;D.shiftKey?Y===P&&(D.preventDefault(),z.focus()):Y===z&&(D.preventDefault(),P.focus())}};return document.addEventListener("pointerdown",q,!0),document.addEventListener("click",R,!0),document.addEventListener("keydown",O),()=>{document.removeEventListener("pointerdown",q,!0),document.removeEventListener("click",R,!0),document.removeEventListener("keydown",O)}},[i,l,L,E]);const I=o.useRef(L);o.useEffect(()=>{I.current=L});const K=!!i;o.useEffect(()=>{if(!(E||!K))return Vn(()=>I.current())},[E,K]),o.useEffect(()=>{const q=()=>{L(!0)};return typeof document<"u"&&document.addEventListener("speechear-close-tooltips",q),()=>{typeof document<"u"&&document.removeEventListener("speechear-close-tooltips",q)}},[L]);const ee=o.useRef(null);o.useEffect(()=>{if(E||C===!1||!A)return;const q=v.current;if(!q)return;const R=q.querySelector(fn);if(R)return ee.current=document.activeElement,R.focus(),()=>{const O=ee.current;ee.current=null,O&&document.contains(O)&&O.focus()}},[E,C,A]),o.useEffect(()=>{c==="dialog"&&!d&&Yt("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=n.jsxs("div",{ref:v,className:`tooltip-content ${E?"tooltip-content--inline":""} ${b?"tooltip-content--bordered":""} ${w?"is-closing":""} ${u} ${k&&f?"is-mobile":""}`,role:c,"aria-label":d||void 0,style:E?{}:{..._,visibility:A?"visible":"hidden"},tabIndex:-1,"data-placement":B,"data-left":E?"":_.left,"data-top":E?"":_.top,"data-anchor-left":t?Math.round(t.left):"","data-anchor-top":t?Math.round(t.top):"","data-anchor-width":t?Math.round(t.width):"","data-anchor-height":t?Math.round(t.height):"",children:[y!=null&&n.jsx("div",{className:"tooltip-content__header h5",children:y}),m]});if(E||typeof document>"u")return V;if(p||k&&f){const q=n.jsxs("div",{className:"tooltip-portal",children:[n.jsx("div",{className:"tooltip-backdrop",onClick:()=>{l&&L(!0)}}),V]});return Qt.createPortal(q,document.body)}return Qt.createPortal(V,document.body)}function xn(e){const{anchorRect:t,text:a,offset:r=8,onClose:s,className:i="",ariaLabel:l}=e||{};return a?n.jsx(ln,{anchorRect:t,offset:r,onClose:s,closeOnOutsideClick:!1,className:`tooltip-info ${i}`,ariaLabel:l||a,children:n.jsx("div",{className:"tooltip-info__content body-3",children:a})}):null}function Wn(e){const{t}=ve.useTranslation(),{anchorRect:a,title:r,items:s,activeIndex:i=-1,showIndex:l=!0,onClose:u,offset:c=12,closeOnOutsideClick:d=!0}=e||{},m=(Array.isArray(s)?s:s?[s]:[]).map(p=>typeof p=="string"?{text:p}:p);return!m.length&&!r?null:n.jsx(ln,{anchorRect:a,offset:c,onClose:u,closeOnOutsideClick:d,useBorder:!1,className:"tooltip-description",ariaLabel:r||t("tooltip.description","\uC124\uBA85"),children:n.jsxs("div",{className:"tooltip-description__box",children:[r&&n.jsx("span",{className:"tooltip-description__title body-2",children:r}),n.jsx("ol",{className:"tooltip-description__items",children:m.map((p,f)=>n.jsxs("li",{className:`tooltip-description__item body-3${f===i?" tooltip-description__item--active":""}`,children:[l&&m.length>1&&n.jsxs("span",{className:"tooltip-description__index button-1",children:[f+1,"."]}),p.color&&n.jsx("span",{className:"tooltip-description__dot",style:{background:p.color},"aria-hidden":"true"}),n.jsx("span",{children:p.text})]},f))})]})})}function wa(e){const t=o.useRef(e);return o.useEffect(()=>{t.current=e}),t}let Jr=0,wi=!1;function Bi(){wi||typeof document>"u"||(wi=!0,document.addEventListener("pointerdown",e=>{e.pointerType==="touch"&&(Jr=Date.now())},!0),document.addEventListener("touchstart",()=>{Jr=Date.now()},{capture:!0,passive:!0}))}Bi();function aa(e){return!!e&&e.pointerType==="touch"}function ra(e=1e3){return Bi(),Date.now()-Jr<e}function Qr(e,t,a,{enabled:r=!0,fallbackOnParent:s=!1}={}){const i=wa(e),l=wa(t),u=o.useRef(null),c=o.useRef(0);o.useEffect(()=>{if(!r||typeof document>"u")return;const m=p=>{const f=p,b=p.target,y=a.current,C=!!(b&&y&&y.contains(b));if(f.pointerType!=="touch"){C&&(u.current=null);return}if(C){u.current=i.current;return}u.current=null,i.current&&!(b&&b.closest?.(".tooltip-content"))&&l.current(!1,y)};return document.addEventListener("pointerdown",m,!0),()=>document.removeEventListener("pointerdown",m,!0)},[r,a,i,l]);const d=o.useCallback(m=>{const p=u.current;return p===null?!1:(u.current=null,c.current=Date.now(),l.current(!p,m??a.current),!0)},[a,l]);return o.useEffect(()=>{if(!r||!s)return;const m=a.current,p=m?.parentElement;if(!m||!p)return;let f=null;const b=v=>{const _=v.changedTouches?.[0];if(!_)return!1;const h=m.getBoundingClientRect();return _.clientX>=h.left&&_.clientX<=h.right&&_.clientY>=h.top&&_.clientY<=h.bottom},y=v=>{f=b(v)?i.current:null},C=v=>{const _=f;f=null,!(_===null||Date.now()-c.current<700||!b(v))&&(u.current=null,c.current=Date.now(),l.current(!_,m))};return p.addEventListener("touchstart",y,{passive:!0}),p.addEventListener("touchend",C),()=>{p.removeEventListener("touchstart",y),p.removeEventListener("touchend",C)}},[r,s,a,i,l]),{touchPress:d}}function yf(e,t){const{size:a=48,type:r,htmlType:s,href:i,target:l,rel:u,icon:c,rightIcon:d,label:m,count:p,subLabel:f,children:b,ariaLabel:y,variant:C="default",align:v="center",nowrap:_=!1,selected:h,toggleable:w=!1,ariaExpanded:g,ariaControls:B,disabled:x=!1,useLabel:A=!0,useBorder:N=!0,useBG:k=!0,useDisabledCovered:S=!1,useDisabledInvisible:E=!1,width:F,minWidth:$,onClick:G,onDisabledClick:j,showTooltipInfo:L=!1,tooltipInfoText:I=null,tooltipDescription:K=null,tooltipOnly:ee=!1,iconSize:V="medium",iconColor:q,shape:R="rounded",color:O,className:D,...H}=e,M=typeof a=="string"&&isNaN(Number(a))?a.toLowerCase():String(Number(a)||48),P=M.match(/^\d+$/)?`button${M}`:`button-${M}`,z=Number(a),Y=!isNaN(z)&&z<40?"button-2":"button-1",X=m??b,Z=x||!!H.disabled,ne=Z?S?"disabled-covered":E?"disabled-invisibled":"disabled":C,le=ne?`button--variant-${ne}`:"",ie=v?`button--align-${v}`:"",Ee=_?"button--nowrap":"",W=R?`button--shape-${R}`:"",ae=typeof q=="string"&&q.startsWith("--")?`var(${q})`:q,fe={...F?{width:typeof F=="number"?`${F}px`:F}:{},...$?{minWidth:typeof $=="number"?`${$}px`:$}:{},...N?{}:{"--button-border":Z?"0":"1px solid transparent"},...ae?{"--button-icon-color":ae}:{},...O?{"--color-main":O}:{}},Ne=A===!1?"":X,ge=Array.isArray(Ne)?Ne.length>0:!!Ne,te=!!d,ce=r??(ge||c||te?"bar":"dot"),de=`${P}--${ce}`,he=o.useRef(null);o.useEffect(()=>{!Zn||s!==void 0||he.current?.closest("form")&&Yt(`button-in-form:${typeof X=="string"?X:""}`,'[ihab/Button] <form> \uC548\uC778\uB370 htmlType \uC774 \uC5C6\uC2B5\uB2C8\uB2E4 \u2014 \uC774 \uB2E8\uCD94\uB294 type="button" \uC774\uB77C \uD3FC\uC744 \uBCF4\uB0B4\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4. \uBCF4\uB0B4\uB294 \uB2E8\uCD94\uBA74 htmlType="submit" \uC744 \uC8FC\uC138\uC694. \uD3FC\uC5D0 \uBCF4\uB0B4\uB294 \uB2E8\uCD94\uAC00 \uD558\uB098\uB3C4 \uC5C6\uC73C\uBA74 **Enter \uB85C\uB3C4 \uC548 \uBCF4\uB0B4\uC9D1\uB2C8\uB2E4**(\uCE78\uC774 \uB458 \uC774\uC0C1\uC77C \uB54C).'+(typeof X=="string"&&X?` \uB2E8\uCD94: ${X}`:""))},[s,X]);const ye=o.useRef(t);ye.current=t;const Se=o.useCallback(Oe=>{he.current=Oe;const it=ye.current;typeof it=="function"?it(Oe):it&&(it.current=Oe)},[]),Ge=o.useRef(Z),[ze,Pe]=o.useState(!!h),[Ie,Ct]=o.useState(!1),[ut,at]=o.useState(null),ct=o.useCallback(()=>Ct(!1),[]),[ke,Fe]=o.useState(!1),Be=o.useId();o.useEffect(()=>{typeof h=="boolean"&&Pe(h)},[h]),o.useEffect(()=>{if(Ge.current&&!Z&&he.current){const Oe=he.current;let it=!1;try{it=Oe.matches(":focus:not(:focus-visible)")}catch{it=!1}it&&Oe.blur(),Oe.style.pointerEvents="none";const Tt=requestAnimationFrame(()=>{requestAnimationFrame(()=>{he.current&&(he.current.style.pointerEvents="")})});return()=>cancelAnimationFrame(Tt)}Ge.current=Z},[Z]);const Je=typeof h=="boolean"?!!h:ze,J=typeof g=="boolean"?void 0:w||typeof h=="boolean"?Je?"true":"false":H["aria-pressed"],se=Ae("button",P,de,le,ie,Ee,W,Je?"is-selected":null,k?null:"button--no-bg",ee?"button--tooltip-only":null,D),Ce=`button__icon button__icon--${V}`,De=Array.isArray(f)?f:f!==void 0?[f]:[],tt=()=>{if(Array.isArray(Ne))return Ne.map((it,Tt)=>{const Vt=De[Tt];return n.jsxs("span",{className:`button__label-text${Vt!==void 0?" button__label-text--has-sub":""}`,children:[it,Vt!==void 0&&n.jsx("span",{className:"button__sub-label-text caption-1",children:Vt})]},Tt)});const Oe=f!==void 0;return n.jsxs("span",{className:`button__label-text${Oe?" button__label-text--has-sub":""}`,children:[Ne,p!=null&&n.jsx("span",{className:"button__count",children:p}),Oe&&n.jsx("span",{className:"button__sub-label-text caption-1",children:f})]})},Ze=Oe=>{typeof h!="boolean"&&!w&&Pe(!1),Oe.currentTarget.blur()},yt=Oe=>{Z||(typeof H.onMouseLeave=="function"&&H.onMouseLeave(Oe),Ze(Oe))},mt=Oe=>{if(ee&&st&&nt.touchPress(Oe.currentTarget),Z){st&&nt.touchPress(Oe.currentTarget),Oe.preventDefault(),j?.(Oe);return}typeof h!="boolean"&&w&&Pe(it=>!it),G?.(Oe)},rt=o.useCallback(()=>{(L||K)&&(Ct(!0),at(he.current?.getBoundingClientRect()??null))},[L,K]),ot=o.useCallback(()=>{(L||K)&&(Ct(!1),at(null))},[L,K]),st=!!(L||K),nt=Qr(Ie,Oe=>{Oe?rt():ot()},he,{enabled:st&&(Z||ee),fallbackOnParent:st&&Z}),$e={...H};delete $e.disabled,delete $e.className,delete $e.faded,delete $e.useFaded,delete $e.loading,delete $e.onMouseLeave,delete $e.onPointerEnter,delete $e.onPointerLeave,delete $e.onPointerUp,delete $e.onFocus,delete $e.onBlur,Z&&(Object.keys($e).forEach(Oe=>{/^on[A-Z]/.test(Oe)&&typeof $e[Oe]=="function"&&delete $e[Oe]}),$e["aria-disabled"]="true");const Ue=(typeof L=="string"?L:null)??(typeof I=="string"?I:null)??(typeof y=="string"?y:null)??(typeof X=="string"?X:null)??void 0,He=typeof y=="string"?y:typeof X=="string"?X:Ue,ht=K?[K.title,...K.items??[]].filter(Boolean).join(". "):L&&Ue&&Ue!==He?Ue:"",Nt=[typeof H["aria-describedby"]=="string"?H["aria-describedby"]:void 0,ht?Be:null].filter(Boolean).join(" ")||void 0,jt=(Oe,it)=>n.jsx(Qe,{icon:Oe,label:it??He,className:Ce,imgClassName:"button__icon-img",maskClassName:"button__icon-mask",svgClassName:"button__icon-svg"}),gt=()=>ce==="dot"?n.jsxs(n.Fragment,{children:[jt(c),ge&&n.jsx("span",{className:`button__label ${Y}`,children:tt()})]}):v==="center"&&c?n.jsxs(n.Fragment,{children:[n.jsxs("span",{className:"button__center-group",children:[n.jsx("span",{className:"button__left",children:jt(c)}),ge&&n.jsx("span",{className:`button__label ${Y}`,children:tt()})]}),te&&n.jsx("span",{className:"button__right",children:jt(d)})]}):n.jsxs(n.Fragment,{children:[c&&n.jsx("span",{className:"button__left",children:jt(c,y??X)}),ge&&n.jsx("span",{className:`button__label ${Y}`,children:tt()}),te&&n.jsx("span",{className:"button__right",children:jt(d)})]}),xt=!!i&&!Z;return n.jsxs(n.Fragment,{children:[n.jsxs(xt?"a":"button",{...$e,ref:Se,...xt?{href:i,target:l,rel:u??(l==="_blank"?"noreferrer":void 0)}:{type:s??"button",disabled:Z&&!j&&!ke},className:se,"aria-pressed":J,"aria-expanded":typeof g=="boolean"?g:H["aria-expanded"],"aria-controls":B??H["aria-controls"],"aria-label":He,"aria-disabled":Z&&(xt||j||ke)?!0:void 0,"aria-describedby":Nt,style:fe,onClick:mt,onMouseLeave:yt,onPointerEnter:Oe=>{aa(Oe)||rt(),!Z&&typeof H.onPointerEnter=="function"&&H.onPointerEnter(Oe)},onPointerLeave:Oe=>{aa(Oe)||ot(),!Z&&typeof H.onPointerLeave=="function"&&H.onPointerLeave(Oe)},onPointerUp:Oe=>{Z&&st&&nt.touchPress(Oe.currentTarget),!Z&&typeof H.onPointerUp=="function"&&H.onPointerUp(Oe)},onFocus:Oe=>{Fe(!0),ra()||rt(),!Z&&typeof H.onFocus=="function"&&H.onFocus(Oe)},onBlur:Oe=>{Fe(!1),Z||Ze(Oe),ot(),!Z&&typeof H.onBlur=="function"&&H.onBlur(Oe)},children:[gt(),ht?n.jsx("span",{id:Be,hidden:!0,"aria-label":ht}):null]}),Ie&&K?n.jsx(Wn,{anchorRect:ut,title:K.title,items:K.items,onClose:ct}):Ie&&Ue?n.jsx(xn,{anchorRect:ut,text:Ue,onClose:ct}):null]})}const pe=o.forwardRef(yf);pe.displayName="Button";var vf={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",collapseFor:"{{name}} \uC811\uAE30",expandFor:"{{name}} \uD3BC\uCE58\uAE30",sortFor:"{{name}} \uC815\uB82C",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."},xf={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",statusCount:"{{label}} {{count}}\uAC74"},_f={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"}},wf={clearAriaLabel:"\uAC80\uC0C9\uC5B4 \uC9C0\uC6B0\uAE30"},Bf={starLabel:"{{n}}\uBC88\uC9F8 \uBCC4 \uC120\uD0DD",valueLabel:"{{max}}\uC810 \uB9CC\uC810\uC5D0 {{value}}\uC810",groupLabel:"\uBCC4\uC810"},Af={selected:"\uC120\uD0DD\uB428"},kf={placeholder:"\uC120\uD0DD"},Nf={collapse:"\uC811\uAE30",expand:"\uD3BC\uCE58\uAE30"},Df={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"},Ef={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",badgeInsideLabel:"{{label}}, \uC548\uC5D0 \uC54C\uB9BC {{count}}\uAC1C"},Sf={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."}}},jf={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."}},Tf={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"}}},Mf={guide:{faq:{title:"\uC790\uC8FC \uBB3B\uB294 \uC9C8\uBB38",desc:"FAQ \uBAA8\uC544\uBCF4\uAE30"}}},Lf={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",synthesizing:"\uC18C\uB9AC\uB97C \uB9CC\uB4E4\uACE0 \uC788\uC2B5\uB2C8\uB2E4\u2026"}},$f={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"},Rf={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"}},Pf={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"}}}},If={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"}},Ff={unitVisit:"\uAC74",periodAll:"\uC804\uCCB4",showN:"{{n}}\uAC1C\uC529"},Of={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"}},Hf={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."}},zf={comingSoon:"\uB2E8\uC5B4\uD6C8\uB828 \uAE30\uB2A5\uC744 \uC900\uBE44 \uC911\uC785\uB2C8\uB2E4."},Vf={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"},Wf={title:"\uC8FC\uC694 \uB2E8\uC5B4",empty:"\uCD94\uCD9C\uB41C \uC8FC\uC694 \uB2E8\uC5B4\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4."},qf={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",viewLabel:"\uBCF4\uAE30 \uBC29\uC2DD",sortLabel:"\uC815\uB82C",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"}},publisherFilter:"{{name}} \uAC8C\uC2DC\uD55C \uAC83\uB9CC \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, \uC790\uD310\uC73C\uB85C\uB294 \uCE78\uC5D0 \uCD08\uC810\uC774 \uAC00\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"}},Uf={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"}},Gf={clearAllSelection:"\uBAA8\uB450 \uC120\uD0DD \uD574\uC81C",divLine:"\uB300\uB9BD\uC120",removePair:"\uB300\uB9BD\uC30D \uBE7C\uAE30",removeWord:"\uB2E8\uC5B4 \uBE7C\uAE30"},Kf={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"}},Yf={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"}},Zf={passwordPlaceholder:"\uBE44\uBC00\uBC88\uD638 \uC785\uB825"},Xf={subtitle:"\uC8FC\uC81C\uB97C \uC120\uD0DD\uD558\uC5EC \uB4E3\uAE30 \uC5F0\uC2B5\uC744 \uC9C4\uD589\uD558\uC138\uC694."},Jf={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"}},Qf={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"}},e2={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",countLabel:"\uC74C\uC18C \uAC1C\uC218",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."]},t2={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"}},n2={lead:`\uC544\uC774\uD574\uBE0C\uB294 \uC18C\uB9AC\uB97C \uD1B5\uD574
|
|
848
848
|
\uC2E0\uB8B0\uB97C \uC313\uACE0
|
|
849
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"},a2={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"}}},r2={timeHM:"{{h}}\uC2DC {{m}}\uBD84",timeH:"{{h}}\uC2DC"},o2={options:"\uD6C8\uB828 \uC635\uC158",difficulty:"\uB09C\uC774\uB3C4",exclude:"\uC81C\uC678",chosung:"\uCD08\uC131",excludeOptions:{none:"\uC5C6\uC74C",noImage:"\uC774\uBBF8\uC9C0 \uC5C6\uC74C"}},s2={answer:"\uC815\uB2F5",distractor:"\uC624\uB2F5"},i2={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"},l2={clearAriaLabel:"\uC785\uB825\uAC12 \uC9C0\uC6B0\uAE30"},u2={ariaLabel:"\uC120\uD0DD \uD0ED"},c2={ariaLabel:"\uD0ED"},d2={dragPrompt:"\uD30C\uC77C\uC744 \uC774\uACF3\uC5D0 \uB4DC\uB798\uADF8\uD558\uC5EC \uC5C5\uB85C\uB4DC",browseButton:"\uD30C\uC77C \uC120\uD0DD",removeAriaLabel:"{{name}} \uC81C\uAC70"},p2={ariaLabel:"\uC0AC\uC6A9\uC790 \uC544\uBC14\uD0C0"},m2={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"}},h2={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"}},C2={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"}},f2={manage:{unit:"\uAC74"}},g2={cancelLabel:"\uCDE8\uC18C"},b2={steps:"\uC9C4\uD589 \uB2E8\uACC4 {{current}} / {{total}}"},y2={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"},v2={resetColumns:"\uCE78 \uB108\uBE44 \uCD08\uAE30\uD654",scrollRegion:"\uAC00\uB85C\uB85C \uAD74\uB9B4 \uC218 \uC788\uB294 \uD45C",rowActionHint:"\uC904\uC744 \uB204\uB974\uBA74 \uC790\uC138\uD788 \uBD05\uB2C8\uB2E4"},x2={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"},_2={ariaLabel:"\uBC30\uB108",dotAriaLabel:"{{count}}\uAC1C \uC911 {{index}}\uBC88\uC9F8 \uBC30\uB108"},w2={selectYearMonth:"\uC5F0\uC6D4 \uC120\uD0DD",chooseDate:"\uB0A0\uC9DC \uC120\uD0DD"},B2={previewRegion:"\uBCF4\uACE0\uC11C \uBBF8\uB9AC\uBCF4\uAE30 \u2014 \uC88C\uC6B0\uB85C \uAD74\uB824 \uBCFC \uC218 \uC788\uC2B5\uB2C8\uB2E4"},A2={description:"\uC124\uBA85",textbox:"\uBCF8\uBB38",training:"\uD6C8\uB828 \uC548\uB0B4",menu:"\uBA54\uB274"},k2={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"}},N2={clearSelection:"\uC120\uD0DD \uD574\uC81C"},D2={showResult:"{{type}} \uACB0\uACFC\uBCF4\uAE30"},E2={selected:"\uC120\uD0DD\uB428",remove:"\uC81C\uAC70",exclude:"\uC81C\uC678",nthSelected:"{{n}}\uBC88\uC9F8 \uC120\uD0DD"},S2={loading:"\uBD88\uB7EC\uC624\uB294 \uC911\u2026"},j2={state:{active:"\uC18C\uB9AC \uB098\uB294 \uC911",played:"\uB4E4\uC74C",correct:"\uC815\uB2F5",wrong:"\uC624\uB2F5"}},T2={ariaLabel:"\uC774\uB3D9 \uACBD\uB85C"},M2={empty:"\uB4F1\uB85D\uB41C \uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4."},L2={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"},$2={common:vf,calendar:xf,passCard:_f,searchField:wf,rating:Bf,colorPicker:Af,dropdown:kf,accordion:Nf,header:Df,nav:Ef,settings:Sf,usage:jf,account:Tf,help:Mf,training:Lf,trainingSettings:$f,customers:Rf,payment:Pf,coupons:If,visits:Ff,company:Of,trainingType:Hf,myWordTraining:zf,myWordTable:Vf,keyWords:Wf,wordTable:qf,wordSearch:Uf,wordPrint:Gf,topic:Kf,accessLinkManager:Yf,login:Zf,trainingPlanRun:Xf,device:Jf,manager:Qf,wordPairs:e2,game:t2,footer:n2,landing:a2,date:r2,trainingSetPage:o2,wordTrainingPreview:s2,wordData:i2,textField:l2,segmentedControl:u2,tabs:c2,fileUpload:d2,avatar:p2,myHomework:m2,trainingStatus:h2,store:C2,homework:f2,inquiry:g2,progress:b2,trainingMiss:y2,table:v2,wordScore:x2,topBanner:_2,datePicker:w2,report:B2,tooltip:A2,phonemeProfile:k2,bulkBar:N2,debug:D2,badge:E2,loader:S2,soundCompass:j2,breadcrumb:T2,board:M2,promoBannerBg:L2},R2={statusFilter:"Filter by status",pageSizeSelect:"Items per page",selectedCount_one:"{{count}} selected",selectedCount_other:"{{count}} selected",moreFor:"More options for {{name}}",collapseFor:"Collapse {{name}}",expandFor:"Expand {{name}}",sortFor:"Sort {{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."},P2={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)",statusCount:"{{count}} {{label}}"},I2={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"}},F2={clearAriaLabel:"Clear search"},O2={starLabel:"Select star {{n}}",valueLabel:"{{value}} out of {{max}}",groupLabel:"Rating"},H2={selected:"selected"},z2={placeholder:"Select"},V2={collapse:"Collapse",expand:"Expand"},W2={biArea:"BI area",biSymbol:"BI symbol",logoMalgwi:"Malgwi logo",logoManager:"Malgwi Manager logo",menuOpen:"Open menu",utilMenu:"Utility menu",menuClose:"Close menu"},q2={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}}",badgeInsideLabel:"{{label}}, {{count}} notifications inside"},U2={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."}}},G2={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"}},K2={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"}}},Y2={guide:{faq:{title:"FAQ",desc:"View all frequently asked questions"}}},Z2={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",synthesizing:"Preparing the sound\u2026"}},X2={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"},J2={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"}},Q2={plan:{recommendedFor:"Recommended for",features:"Key Features",freePrice:"Free",contact:"Contact Us",tierFallback:"Plan",openPromo:"Launch offer"},products:{mgrEnterprise:{tier:{price:"Contact us"}}}},eg={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"}},tg={unitVisit:"",periodAll:"All",showN:"Show {{n}}"},ng={subtitle:"Manage company and business information",editButton:"Edit Info",basicInfo:{title:"Basic Info"},contactInfo:{title:"Contact Info"}},ag={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."}},rg={comingSoon:"Word training is coming soon."},og={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"},sg={title:"Key Words",empty:"No key words available."},ig={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}}",viewLabel:"View as",sortLabel:"Sort by",sort:{newest:"Newest",oldest:"Oldest",name:"Name",count:"Word Count"},view:{grid:"Grid View",list:"List View"}},publisherFilter:"Show only tables by {{name}}",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 they appear when you hover the cell; with a keyboard, when focus reaches it.",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"}},lg={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}}"}},ug={clearAllSelection:"Clear All Selections",divLine:"Contrast Line",removePair:"Remove pair",removeWord:"Remove word"},cg={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"}},dg={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"}},pg={passwordPlaceholder:"Enter password"},mg={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"}},hg={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"}},Cg={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}}",countLabel:"Number of phonemes",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."]},fg={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"}},gg={lead:`IHAB builds trust
|
|
850
850
|
through sound
|
|
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"},bg={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"}}},yg={timeHM:"{{hh}}:{{mm}}",timeH:"{{hh}}:{{mm}}"},vg={options:"Training Options",difficulty:"Difficulty",exclude:"Exclude",chosung:"Initial Consonant",excludeOptions:{none:"None",noImage:"No Image"}},xg={answer:"Answer",distractor:"Distractor"},_g={phaseWordDownload:"Download Word Data",phaseImageCheck:"Check Images",phasePairAnalysis:"Analyze Word Pairs",downloadingCount:"Downloading {{n}} words",checkingPage:"Checking page {{page}} list",imageCount:"{{done}} / {{total}} items"},wg={clearAriaLabel:"Clear input"},Bg={ariaLabel:"Select tab"},Ag={ariaLabel:"Tabs"},kg={dragPrompt:"Drag and drop files here",browseButton:"Choose Files",removeAriaLabel:"Remove {{name}}"},Ng={ariaLabel:"User avatar"},Dg={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"}},Eg={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"}},Sg={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)"}},jg={manage:{unit:"item(s)"}},Tg={cancelLabel:"Cancel"},Mg={subtitle:"Select a topic to start listening practice."},Lg={steps:"Step {{current}} of {{total}}"},$g={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"},Rg={resetColumns:"Reset column widths",scrollRegion:"Horizontally scrollable table",rowActionHint:"Press a row to open its details"},Pg={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}}"},Ig={ariaLabel:"Banner",dotAriaLabel:"Banner {{index}} of {{count}}"},Fg={selectYearMonth:"Select year and month",chooseDate:"Choose a date"},Og={previewRegion:"Report preview \u2014 scrollable sideways"},Hg={description:"Description",textbox:"Text",training:"Training guide",menu:"Menu"},zg={devNone:"No acquisition data",place:{labial:"Bilabial",alveolar:"Alveolar",palatal:"Palatal",velar:"Velar",glottal:"Glottal"}},Vg={clearSelection:"Clear selection"},Wg={showResult:"Show {{type}} result"},qg={selected:"Selected",remove:"Remove",exclude:"Excluded",nthSelected:"Selection {{n}}"},Ug={loading:"Loading"},Gg={state:{active:"playing",played:"heard",correct:"correct",wrong:"wrong"}},Kg={ariaLabel:"Breadcrumb"},Yg={empty:"No items yet."},Zg={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"},Xg={common:R2,calendar:P2,passCard:I2,searchField:F2,rating:O2,colorPicker:H2,dropdown:z2,accordion:V2,header:W2,nav:q2,settings:U2,usage:G2,account:K2,help:Y2,training:Z2,trainingSettings:X2,customers:J2,payment:Q2,coupons:eg,visits:tg,company:ng,trainingType:ag,myWordTraining:rg,myWordTable:og,keyWords:sg,wordTable:ig,wordSearch:lg,wordPrint:ug,topic:cg,accessLinkManager:dg,login:pg,device:mg,manager:hg,wordPairs:Cg,game:fg,footer:gg,landing:bg,date:yg,trainingSetPage:vg,wordTrainingPreview:xg,wordData:_g,textField:wg,segmentedControl:Bg,tabs:Ag,fileUpload:kg,avatar:Ng,myHomework:Dg,trainingStatus:Eg,store:Sg,homework:jg,inquiry:Tg,trainingPlanRun:Mg,progress:Lg,trainingMiss:$g,table:Rg,wordScore:Pg,topBanner:Ig,datePicker:Fg,report:Og,tooltip:Hg,phonemeProfile:zg,bulkBar:Vg,debug:Wg,badge:qg,loader:Ug,soundCompass:Gg,breadcrumb:Kg,board:Yg,promoBannerBg:Zg};const Jg=[{code:"ko",label:"\uD55C\uAD6D\uC5B4"},{code:"en",label:"English"}],eo="ko",Qg="ihab_display_language";function Ai(){if(typeof window>"u")return eo;try{const e=localStorage.getItem(Qg);if(e&&Jg.some(t=>t.code===e))return e}catch{}return eo}function ki(e){try{document.documentElement.lang=e}catch{}}Lt.on("languageChanged",ki),ki(Ai()),Lt.use(ye.initReactI18next).init({resources:{ko:{translation:$2},en:{translation:Xg}},lng:Ai(),fallbackLng:eo,interpolation:{escapeValue:!1},react:{useSuspense:!1}});function xt(e,t,a){const r=o.useRef(null);return o.useLayoutEffect(()=>{const s=r.current?.parentElement??null;return t(s,e),()=>a(s)},[e,t,a]),r}const Ba={title:"--promo-banner-bg-title",description:"--promo-banner-bg-description"},to=new WeakMap;function no(e){if(e)return to.get(e)}function zt(e,t){e&&(e.style.setProperty(Ba.title,t.title),e.style.setProperty(Ba.description,t.description),to.set(e,t))}function Vt(e){e&&(e.style.removeProperty(Ba.title),e.style.removeProperty(Ba.description),to.delete(e))}const Ni={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"default"};function Di(){const e=xt(Ni,zt,Vt);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-main","aria-hidden":"true"})}const Ei={title:"var(--color-main)",description:"var(--color-gray)",actionVariant:"main"};function Si(){const e=xt(Ei,zt,Vt);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-soft","aria-hidden":"true"})}const ji={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function Ti(){const e=xt(ji,zt,Vt);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-sub","aria-hidden":"true"})}const Mi={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function Li(){const e=xt(Mi,zt,Vt);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-deep","aria-hidden":"true"})}const $i={title:"var(--color-darkSub)",description:"var(--color-gray)",actionVariant:"main"};function Ri(){const e=xt($i,zt,Vt);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-soft-sub","aria-hidden":"true"})}const Pi={title:"var(--color-black)",description:"var(--color-darkGray)",actionVariant:"main"};function Ii(){const e=xt(Pi,zt,Vt);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-warm","aria-hidden":"true"})}const Fi={title:"var(--color-white)",description:"var(--color-lightGray)",actionVariant:"main"};function Oi(){const e=xt(Fi,zt,Vt);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-dark","aria-hidden":"true"})}const Hi={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function zi(){const e=xt(Hi,zt,Vt);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-radial","aria-hidden":"true"})}const Vi={title:"var(--color-darkMain)",description:"var(--color-gray)",actionVariant:"main"};function Wi(){const e=xt(Vi,zt,Vt);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-diagonal","aria-hidden":"true"})}const qi={title:"var(--color-darkSub)",description:"var(--color-gray)",actionVariant:"main"};function Ui(){const e=xt(qi,zt,Vt);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-dots","aria-hidden":"true"})}const Gi={title:"var(--color-black)",description:"var(--color-gray)",actionVariant:"main"};function Ki(){const e=xt(Gi,zt,Vt);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-outline","aria-hidden":"true",children:n.jsx("span",{className:"promo-banner-bg-outline__dot"})})}const Yi={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function Zi(){const e=xt(Yi,zt,Vt);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-success","aria-hidden":"true"})}const Xi={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"sub"};function Ji(){const e=xt(Xi,zt,Vt);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-naver","aria-hidden":"true"})}const Qi={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"transparent-white"};function el(){const e=xt(Qi,zt,Vt);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-instagram","aria-hidden":"true"})}const Xt=(e,t,a)=>({key:e,get label(){return Lt.t(`promoBannerBg.${e}`,t)},textTone:a}),eb=[Xt("main","\uBA54\uC778 \uADF8\uB77C\uB514\uC5B8\uD2B8","light"),Xt("soft","\uC18C\uD504\uD2B8","dark"),Xt("sub","\uC11C\uBE0C \uCEEC\uB7EC","light"),Xt("deep","\uB525 \uADF8\uB77C\uB514\uC5B8\uD2B8","light"),Xt("softSub","\uC18C\uD504\uD2B8 \uC11C\uBE0C","dark"),Xt("warm","\uC6DC(\uAC15\uC870)","dark"),Xt("dark","\uB2E4\uD06C","light"),Xt("radial","\uBC29\uC0AC\uD615 \uADF8\uB77C\uB514\uC5B8\uD2B8","light"),Xt("diagonal","\uB300\uAC01\uC120 \uD328\uD134","dark"),Xt("dots","\uB3C4\uD2B8 \uD328\uD134","dark"),Xt("outline","\uC544\uC6C3\uB77C\uC778","dark"),Xt("success","\uC131\uACF5/\uC644\uB8CC","light"),Xt("naver","\uB124\uC774\uBC84 \uBE14\uB85C\uADF8 \uC548\uB0B4","light"),Xt("instagram","\uC778\uC2A4\uD0C0\uADF8\uB7A8 \uC548\uB0B4","light")],tl={main:Di,soft:Si,sub:Ti,deep:Li,softSub:Ri,warm:Ii,dark:Oi,radial:zi,diagonal:Wi,dots:Ui,outline:Ki,success:Zi,naver:Ji,instagram:el};function nl({storageKey:e="fontScale",baseFont:t=20,minScale:a=.8,maxScale:r=1.4,step:s=.1,lineHeightRatio:i=1.4}={}){const l=w=>Math.max(a,Math.min(r,Number(w))),u=w=>{try{const g=localStorage.getItem(w),B=g?Number(g):1;return Number.isFinite(B)?l(B):l(1)}catch{return l(1)}},[c,d]=o.useState(()=>u(e)),[m,p]=o.useState(e);m!==e&&(p(e),d(u(e))),o.useEffect(()=>{try{localStorage.setItem(e,String(c))}catch{}},[e,c]);const f=w=>{d(typeof w=="function"?g=>l(w(g)):l(w))},b=()=>f(w=>+(w+s).toFixed(6)),y=()=>f(w=>+(w-s).toFixed(6)),C=c<r-Number.EPSILON,v=c>a+Number.EPSILON,_=Math.round(t*c),h=Math.round(_*i);return{scale:c,setScale:f,increase:b,decrease:y,canIncrease:C,canDecrease:v,fontSize:_,lineHeight:h}}function al(e,t){const a=wa(t);o.useEffect(()=>{const r=()=>a.current();try{window.addEventListener(e,r)}catch{}return()=>{try{window.removeEventListener(e,r)}catch{}}},[e,a])}const ao=" \xB7 ",rl=(()=>{if(typeof document>"u")return"";const e=document.title;return e.includes(ao)?e.split(ao).pop()??e:e})(),tb=o.createContext(!1),qn=[];let ol=null;function nb(e){const t=o.useContext(tb);o.useEffect(()=>{if(t||typeof e!="string"||!e)return;qn.length===0&&(ol=document.title);const a={text:rl?`${e}${ao}${rl}`:e};return qn.push(a),document.title=a.text,()=>{const r=qn.lastIndexOf(a);r>=0&&qn.splice(r,1),document.title=qn.length?qn[qn.length-1].text:ol??document.title}},[e,t])}const sl=[{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"}],ab=(()=>{let e=null;return()=>(e||(e=new Intl.Collator("ko")),e)})();function ra(e,t){return ab().compare(e,t)}const Xa=new Map;function rb(e){const t=Xa.get(e);if(t)return t;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)),Xa.size>5e3&&Xa.clear(),Xa.set(e,a),a}function ob(e){if(!/^[\d\s-]+$/.test(e))return null;const t=e.replace(/\D/g,"");return t.length<9||t.length>11?null:t[0]==="0"||t[0]==="1"&&e!==t?t:null}function sb(e,t){const a=d=>d==null||typeof d=="number"&&Number.isNaN(d)?"":String(d).trim(),r=a(e),s=a(t);if(r===s)return 0;const i=(d,m)=>{if(typeof d=="number"&&!Number.isNaN(d))return[d];const p=ob(m);return p!==null?[p]:rb(m)},l=i(e,r),u=i(t,s),c=Math.min(l.length,u.length);for(let d=0;d<c;d++){const m=l[d],p=u[d];if(typeof m=="number"&&typeof p=="number"){if(m!==p)return m-p;continue}if(typeof m=="number")return-1;if(typeof p=="number")return 1;const f=ra(m,p);if(f!==0)return f}return l.length!==u.length?l.length-u.length:ra(r,s)}const il=e=>e==null||typeof e=="number"&&Number.isNaN(e)||typeof e=="string"&&e.trim()==="";function ro(e,t,a){const r=il(e),s=il(t);if(r||s)return r===s?0:r?1:-1;const i=sb(e,t);return a?i:-i}function ib(e,t,a){const{t:r}=ye.useTranslation(),[s,i]=o.useState(()=>{const y=a?.initialPageSize;return y&&sl.some(C=>C.value===y)?y:"25"}),[l,u]=o.useState(1),[c,d]=o.useState(t);Object.is(c,t)||(d(t),l!==1&&u(1));const m=o.useMemo(()=>sl.map(y=>({...y,label:r("visits.showN",{n:y.value})})),[r]),p=o.useCallback(y=>{i(y),u(1)},[]),f=Math.max(1,Math.ceil(e.length/Number(s)));(l>f||l<1||!Number.isFinite(l))&&u(Math.min(Math.max(1,Number.isFinite(l)?l:1),f));const b=Math.min(Math.max(1,Number.isFinite(l)?l:1),f);return{pageRows:o.useMemo(()=>e.slice((b-1)*Number(s),b*Number(s)),[e,b,s]),pageSizeProps:{options:m,value:s,onChange:p},paginationProps:{page:b,total:f,onChange:u},setPage:u}}function lb(e){const[t,a]=o.useState(null),r=o.useRef(t),s=o.useRef(e?.onSortChange);s.current=e?.onSortChange;const i=o.useCallback(c=>{const d=r.current,m=d?.key===c?{key:c,asc:!d.asc}:{key:c,asc:!0};r.current=m,a(m),s.current?.(m)},[]),l=o.useCallback((c,d)=>({label:c,sortDir:t?.key===d?t.asc?"asc":"desc":null,onClick:()=>i(d)}),[t,i]),u=o.useCallback((c,d)=>{if(!t)return c;const{key:m,asc:p}=t;return[...c].sort((f,b)=>ro(d(f,m),d(b,m),p))},[t]);return{\uC815\uB82C:t,\uCE78:l,sortRows:u}}const un="\uC804\uCCB4",ub=new Map;try{Lt.store?.on?.("added",()=>ub.clear())}catch{}Object.fromEntries(Object.entries(bC).map(([e,{nucleus:t}])=>[e,t]));const cb={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"})},db={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"})},pb={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 mb(e,t){if("place"in t)return cb[t.place](e);const a=db[t.vowel](e);return t.glide?`${a} \xB7 ${pb[t.glide](e)}`:a}const hb=(e,{defaultValue:t})=>t,ll=(e,t)=>({jamos:e,phonetic:t,tooltip:mb(hb,t)}),wn=(e,t)=>t.map(a=>ll([a],{place:e})),$t=(e,t,a)=>ll([...e],a?{vowel:t,glide:a}:{vowel:t}),oo={cho:[wn("labial",["\u3142","\u3143","\u314D","\u3141"]),wn("alveolar",["\u3137","\u3138","\u314C","\u3134","\u3139"]),wn("alveolar",["\u3145","\u3146"]),wn("palatal",["\u3148","\u3149","\u314A"]),wn("velar",["\u3131","\u3132","\u314B"]),wn("glottal",["\u314E"])],jung:[[$t("\u3163","frontHigh"),$t("\u315F","frontHigh","w"),$t("\u3162","frontHigh","velar")],[$t("\u3161","backHighUnrounded")],[$t("\u315C","backHighRounded"),$t("\u3160","backHighRounded","j")],[$t("\u3154\u3150","frontMid"),$t("\u3156\u3152","frontMid","j"),$t("\u3159\u315A\u315E","frontMid","w")],[$t("\u3153","backMidUnrounded"),$t("\u3155","backMidUnrounded","j"),$t("\u315D","backMidUnrounded","w")],[$t("\u3157","backMidRounded"),$t("\u315B","backMidRounded","j")],[$t("\u314F","low"),$t("\u3151","low","j"),$t("\u3158","low","w")]],jong:[wn("labial",["\u3142","\u3141"]),wn("alveolar",["\u3137","\u3134","\u3139"]),wn("velar",["\u3131","\u3147"])]},Cb=e=>e===fb?[]:Array.from(e),fb="__NO_CODA__",so=e=>e.map(t=>t.map(({jamos:a,phonetic:r,tooltip:s})=>({v:a.join(""),phonetic:r,tooltip:s}))),ul={cho:so(oo.cho),jung:so(oo.jung),jong:so(oo.jong)};ul.jung.flat().forEach(({v:e})=>{for(const t of Cb(e));}),new Set(ul.cho.flat().map(e=>e.v));function gb(e,t=!0){const a=wa(e);o.useEffect(()=>{if(t)return Vn(()=>{a.current?.()})},[t,a])}function Aa(){const[e,t]=o.useState(null),a=o.useCallback(i=>t(i.getBoundingClientRect()),[]),r=o.useCallback(()=>t(null),[]),s=o.useCallback(i=>{const l=i.getBoundingClientRect();t(u=>u?null:l)},[]);return{anchorRect:e,isOpen:e!=null,openAt:a,close:r,toggleAt:s}}function bb(e){const[t,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:t,anchorRect:r,openAfterDelay:l,close:u}}function cl(e="warning"){const[t,a]=o.useState(""),[r,s]=o.useState(e),[i,l]=o.useState(0),u=o.useCallback((p,f)=>{s(f),a(p),l(b=>b+1)},[]),c=o.useCallback(p=>u(p,"warning"),[u]),d=o.useCallback(p=>u(p,"normal"),[u]),m=o.useCallback(()=>a(""),[]);return{toastMessage:t,toastType:r,toastKey:i,showToast:u,showWarning:c,showNormal:d,clearToast:m}}function ka(e){let t=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>t&&(t=r)}return t>0?`max(var(--z-menu, 1500), ${t+1})`:"var(--z-menu, 1500)"}function Na({computeStyle:e,onScroll:t="close",onResize:a="close",ignoreOutsideClickSelector:r}){const[s,i]=o.useState(!1),[l,u]=o.useState({position:"fixed"}),c=o.useRef(null),d=o.useRef(null),m=o.useCallback(()=>{c.current&&u(e(c.current.getBoundingClientRect(),c.current))},[e]);o.useLayoutEffect(()=>{s&&m()},[s,m]),o.useEffect(()=>{if(!s)return;let b=d.current?.offsetHeight??0;b>0&&m();let y=0,C=null;typeof ResizeObserver<"u"&&d.current&&(C=new ResizeObserver(()=>{const B=d.current?.offsetHeight??0;if(B!==b){if(b=B,++y>4){C?.disconnect(),C=null;return}m()}}),C.observe(d.current));const v=B=>{const x=B.target;r&&x.closest?.(r)||c.current?.contains(x)||d.current?.contains(x)||i(!1)};document.addEventListener("mousedown",v),document.addEventListener("pointerdown",v);const _=B=>{d.current?.contains(B.target)||(t==="reposition"?m():t==="close"&&i(!1))};t!=="ignore"&&window.addEventListener("scroll",_,!0);const h=()=>{a==="reposition"?m():a==="close"&&i(!1)};let w=null;const g=()=>{h(),w&&clearTimeout(w),w=setTimeout(()=>{w=null,a==="reposition"&&m()},250)};return a!=="ignore"&&(window.addEventListener("resize",h),window.addEventListener("orientationchange",g)),()=>{C?.disconnect(),document.removeEventListener("mousedown",v),document.removeEventListener("pointerdown",v),t!=="ignore"&&window.removeEventListener("scroll",_,!0),a!=="ignore"&&(window.removeEventListener("resize",h),window.removeEventListener("orientationchange",g)),w&&clearTimeout(w)}},[s,m,t,a,r]),o.useEffect(()=>{if(s)return Vn(()=>i(!1))},[s]);const p=o.useCallback(()=>i(b=>!b),[]),f=o.useCallback(()=>i(!1),[]);return{open:s,setOpen:i,toggle:p,close:f,style:l,triggerRef:c,menuRef:d}}function yb(e,{mode:t="playback",autoStart:a=!1,onPlaySpeaker:r,onComplete:s,playMs:i=1100,feedbackMs:l=1500}={}){const[u,c]=o.useState([]),[d,m]=o.useState(0),[p,f]=o.useState("idle"),[b,y]=o.useState(null),[C,v]=o.useState([]),[_,h]=o.useState(null),[w,g]=o.useState(0),B=o.useRef(0),x=o.useCallback(P=>{B.current=typeof P=="function"?P(B.current):P,g(B.current)},[]),A=o.useRef(r),N=o.useRef(s);o.useEffect(()=>{A.current=r,N.current=s},[r,s]);const k=o.useRef([]),S=()=>{k.current.forEach(clearTimeout),k.current=[]},E=(P,O)=>{k.current.push(setTimeout(O,P))};o.useEffect(()=>()=>S(),[]);const F=u[d]?.id??null,$=o.useRef(null),U=o.useCallback(()=>{S(),f("playing"),v([]),h(null),x(0);let P=0;e.forEach((O,D)=>{E(P,()=>{m(D),y(O.id),A.current?.(O)}),E(P+1e3,()=>{y(null),v(H=>[...H,O.id])}),P+=1300}),E(P,()=>{f("done"),N.current?.({score:0,total:e.length})})},[e,x]),j=o.useCallback((P,O)=>{if(O>=P.length){f("done"),N.current?.({score:B.current,total:P.length});return}$.current=null,m(O),h(null),f("playing"),y(P[O].id),A.current?.(P[O]),E(i,()=>{y(null),f("waiting")})},[i]),T=o.useCallback(()=>{S();const P=xa(e);c(P),x(0),v([]),j(P,0)},[e,j,x]),I=o.useCallback(()=>{t==="playback"?(c(e),U()):T()},[t,e,U,T]),K=o.useCallback(()=>{S(),f("idle"),y(null),v([]),h(null),m(0),x(0),c([])},[x]),ee=e.map(P=>P.id).join("|");o.useEffect(()=>(a?I():K(),()=>S()),[t,ee,a]);const V=o.useCallback(P=>{p!=="waiting"||t==="playback"||$.current===d||($.current=d,h(P),P===u[d]?.id&&x(O=>O+1),t==="exam"?(f("playing"),E(400,()=>j(u,d+1))):(f("feedback"),E(l,()=>j(u,d+1))))},[p,t,u,d,j,l,x]),q=t==="playback"?e.length:u.length;return{bind:{activeSpeakerId:b,playedIds:C,selectedId:_,answerId:F,showFeedback:p==="feedback",clickable:p==="waiting",onSelectSpeaker:V},index:d,total:q,score:w,phase:p,done:p==="done",start:I,reset:K}}function vb({title:e,description:t,actionLabel:a,onAction:r,bg:s,color:i,size:l="medium",actionVariant:u,titleColor:c,descriptionColor:d,className:m=""}){const p=s??i??"main",f=o.useRef(null),[b,y]=o.useState("main"),C=on("(max-width: 767px)"),v=o.useRef({title:!1,description:!1});o.useLayoutEffect(()=>{const w=f.current;if(!w)return;const g=no(w),B=(x,A,N)=>{if(N!==void 0)w.style.setProperty(A,N),v.current[x]=!0;else if(v.current[x]){const k=g?.[x];k?w.style.setProperty(A,k):w.style.removeProperty(A),v.current[x]=!1}};B("title","--promo-banner-bg-title",c),B("description","--promo-banner-bg-description",d)},[c,d,p]),o.useLayoutEffect(()=>{const w=f.current;if(!w)return;const g=no(w);y(g?.actionVariant??"main")},[p]);const _=ke("promo-banner",`promo-banner--${l}`,m),h=tl[p];return n.jsxs("div",{ref:f,className:_,role:"note",children:[n.jsx(h,{}),n.jsxs("div",{className:"promo-banner__text",children:[n.jsx("span",{className:`promo-banner__title ${l==="small"?"body-2":"h2"}`,children:e}),t&&n.jsx("span",{className:"promo-banner__description body-3",children:t})]}),a&&r&&n.jsx(me,{htmlType:"button",size:40,variant:u??b,shape:"pill",useBorder:!0,onClick:r,ariaLabel:a,...C?{type:"dot",icon:"arrow-right"}:{rightIcon:"arrow-right",label:a,minWidth:140}})]})}function xb({children:e,interval:t=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,m]=o.useState(0),[p,f]=o.useState(!1),[b,y]=o.useState(!1),[C,v]=o.useState(!1),_=o.useRef(null),h=o.useRef(null),w=o.useRef(null),g=Xr(),B=p||b||C,x=c>0?Math.min(d,c-1):0;o.useEffect(()=>{if(c<2||t<=0||B||g)return;const N=window.setInterval(()=>m(k=>(Math.min(k,c-1)+1)%c),t);return()=>window.clearInterval(N)},[c,t,B,g]);const A=N=>{h.current!=null&&window.clearTimeout(h.current),h.current=window.setTimeout(()=>{h.current=null,v(!1)},N)};return o.useEffect(()=>()=>{h.current!=null&&window.clearTimeout(h.current)},[]),o.useEffect(()=>{if(!C)return;const N=k=>{k.pointerType==="touch"&&(w.current&&w.current.contains(k.target)||(h.current!=null&&(window.clearTimeout(h.current),h.current=null),v(!1)))};return document.addEventListener("pointerdown",N,!0),()=>document.removeEventListener("pointerdown",N,!0)},[C]),c===0?null:n.jsxs("section",{ref:w,className:ke("top-banner",r),"aria-label":l,"aria-roledescription":"carousel",onPointerEnter:N=>{_.current=N.pointerType},onPointerDown:N=>{_.current=N.pointerType,N.pointerType==="touch"&&(h.current!=null&&(window.clearTimeout(h.current),h.current=null),v(!0))},onPointerUp:N=>{N.pointerType==="touch"&&A(5e3)},onPointerCancel:N=>{N.pointerType==="touch"&&A(5e3)},onMouseEnter:()=>{_.current!=="touch"&&f(!0)},onMouseLeave:()=>f(!1),onFocus:N=>{let k=!0;try{k=N.target.matches(":focus-visible")}catch{k=!0}y(k)},onBlur:N=>{N.currentTarget.contains(N.relatedTarget)||y(!1)},children:[n.jsx("div",{className:"top-banner__viewport",children:n.jsx("div",{className:"top-banner__track",style:{transform:`translateX(-${x*100}%)`},children:u.map((N,k)=>n.jsx("div",{className:"top-banner__slide","aria-hidden":k!==x,...k!==x?{inert:!0}:{},children:N},k))})}),c>1&&n.jsx("div",{className:`top-banner__dots${(a?.[x]??"light")==="dark"?" top-banner__dots--dark":""}`,children:u.map((N,k)=>n.jsx("button",{type:"button",className:`top-banner__dot${k===x?" top-banner__dot--active":""}`,"aria-label":i("topBanner.dotAriaLabel",{count:c,index:k+1,defaultValue:`${c}\uAC1C \uC911 ${k+1}\uBC88\uC9F8 \uBC30\uB108`}),"aria-current":k===x,onClick:()=>m(k)},k))})]})}function _b({title:e,body:t,open:a=!1,onToggle:r,avatar:s,titleClassName:i="body-2",bodyClassName:l="body-2",className:u=""}){const{t:c}=ye.useTranslation();return n.jsxs("div",{className:`accordion-item ${a?"accordion-item--open":""} ${u}`.trim(),role:"listitem",children:[n.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 m=d.currentTarget.closest('[role="list"]');if(!m)return;const p=Array.from(m.querySelectorAll("[data-accordion-header]")),f=p.indexOf(d.currentTarget);(d.key==="ArrowDown"?p[f+1]:p[f-1])?.focus()}},children:[s&&n.jsx("div",{className:"accordion-item__avatar",children:s}),n.jsx("div",{className:`accordion-item__title ${i}`,children:e}),n.jsx("div",{className:"accordion-item__chevron",children:n.jsx(Je,{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&&n.jsx("div",{className:`accordion-item__body ${l}`,children:typeof t=="string"?n.jsx("p",{children:t}):t})]})}function wb({items:e=[],defaultOpenIndex:t=0,size:a=72,className:r="",bodyClassName:s}){const[i,l]=o.useState({index:t}),u=(c,d)=>i.id!=null&&c.id!=null?c.id===i.id:i.id==null&&d===i.index;return n.jsx("div",{className:`accordion-group accordion-group--s${a} ${r}`.trim(),role:"list",children:e.map((c,d)=>n.jsx(_b,{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 Bb(){return n.jsx("svg",{viewBox:"0 0 12 12",fill:"none",stroke:"currentColor",strokeWidth:2.2,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:n.jsx("polyline",{points:"2,6 5,9 10,3"})})}function Ab(){return n.jsxs("svg",{viewBox:"0 0 12 12",fill:"none",stroke:"currentColor",strokeWidth:2.2,strokeLinecap:"round","aria-hidden":"true",children:[n.jsx("line",{x1:"3",y1:"3",x2:"9",y2:"9"}),n.jsx("line",{x1:"9",y1:"3",x2:"3",y2:"9"})]})}function kb(){return n.jsx("svg",{viewBox:"0 0 12 12",fill:"none",stroke:"currentColor",strokeWidth:2.2,strokeLinecap:"round","aria-hidden":"true",children:n.jsx("line",{x1:"2.5",y1:"6",x2:"9.5",y2:"6"})})}function _t(e){const{t}=ye.useTranslation(),{type:a="bar",size:r,className:s="","aria-label":i,"aria-hidden":l}=e;if(a==="dot"){const{icon:B,number:x,position:A="top-right",onClick:N,animate:k=!1}=e,S=B??"check",E=x!==void 0?"number":S,F=typeof r=="number"?r:32,$=ke("circle-badge",`circle-badge--${E}`,`circle-badge--${A}`,`circle-badge--${F}`,k?"circle-badge--animate":"",N?"circle-badge--clickable":"",s),U=x!==void 0?t("badge.nthSelected",{n:x,defaultValue:"{{n}}\uBC88\uC9F8 \uC120\uD0DD"}):{check:t("badge.selected","\uC120\uD0DD\uB428"),remove:t("badge.remove","\uC81C\uAC70"),minus:t("badge.exclude","\uC81C\uC678")}[S];return n.jsxs("span",{className:$,onClick:N,onKeyDown:N?j=>{j.key!=="Enter"&&j.key!==" "||(j.preventDefault(),j.currentTarget.click())}:void 0,"aria-label":l?void 0:i??U,"aria-hidden":l||void 0,role:N?"button":l?void 0:"img",tabIndex:N?0:void 0,children:[x!==void 0&&x,x===void 0&&S==="check"&&n.jsx(Bb,{}),x===void 0&&S==="remove"&&n.jsx(Ab,{}),x===void 0&&S==="minus"&&n.jsx(kb,{})]})}const{label:u,children:c,variant:d="default",fill:m="filled",minWidth:p,iconLeft:f,iconRight:b,color:y}=e,C=typeof r=="number"?"medium":r??"medium",v={small:"caption-2b",medium:"body-3b",large:"body-2b"}[C]??"body-2b",_={small:12,medium:14,large:16}[C]??14,h=ke("badge",`badge--${d}`,`badge--${C}`,m!=="filled"?`badge--${m}`:"",v,s),w=y?.startsWith("--")?`var(${y})`:y,g=p!==void 0||w?{...p!==void 0?{minWidth:typeof p=="number"?`${p}px`:p}:{},...w?{"--badge-color":w}:{}}:void 0;return n.jsxs("span",{className:h,style:g,"aria-label":l?void 0:i,role:i&&!l?"img":void 0,"aria-hidden":l||void 0,children:[f&&n.jsx(Je,{icon:f,size:_,className:"badge__icon"}),u??c,b&&n.jsx(Je,{icon:b,size:_,className:"badge__icon"})]})}function Da({columns:e=[],onClose:t,className:a="",size:r="medium"}){const{t:s}=ye.useTranslation(),i=r==="small"?40:48,[l,u]=o.useState([]),c=o.useMemo(()=>{const v=[{title:null,columns:e}];let _=e;for(const h of l){const w=_?.[h.ci]?.items?.[h.ii];if(!w||!Array.isArray(w.children)||!w.children.length)break;_=[{title:null,items:w.children}],v.push({title:w.label||null,columns:_})}return v},[e,l]),d=c[c.length-1],m=c.length-1,p=o.useCallback(()=>u(v=>v.slice(0,Math.max(0,Math.min(v.length,m)-1))),[m]),f=o.useRef(null),b=o.useRef(null),y=c.length;o.useEffect(()=>{b.current||(b.current=document.activeElement);let v=0,_=0;const h=()=>{const w=f.current?.querySelector("button:not([disabled])");if(w&&w.offsetParent){w.focus({preventScroll:!0});return}_++<20&&(v=requestAnimationFrame(h))};return v=requestAnimationFrame(h),()=>cancelAnimationFrame(v)},[y]),o.useEffect(()=>()=>{b.current?.focus?.({preventScroll:!0})},[]);const C=o.useCallback((v,_,h)=>{if(v){if(Array.isArray(v.children)&&v.children.length){u(w=>[...w.slice(0,m),{ci:_,ii:h}]);return}try{typeof v.onClick=="function"&&v.onClick()}catch{}try{v&&v.closeOnSelect&&typeof t=="function"&&t()}catch{}}},[t,m]);return n.jsxs("div",{className:`tooltip-menu tooltip-menu--${r} ${a}`,children:[(c.length>1||d.title)&&n.jsxs("div",{className:"tooltip-menu__header",children:[c.length>1?n.jsx(me,{htmlType:"button",size:i,type:"dot",icon:"chevron-left",ariaLabel:s("common.back","\uB4A4\uB85C"),onClick:p,variant:"transparent-gray",useBorder:!1}):null,n.jsx("div",{className:"tooltip-menu__title button-1",children:d.title})]}),n.jsx("div",{className:"tooltip-menu__columns",ref:f,children:d.columns&&d.columns.map((v,_)=>n.jsxs("div",{className:"tooltip-menu__column",children:[v.title?n.jsx("div",{className:"tooltip-menu__column-title body-3",children:v.title}):null,n.jsx("div",{className:"tooltip-menu__items",children:(v.items||[]).map((h,w)=>n.jsxs(o.Fragment,{children:[h.separatorBefore&&w>0&&n.jsx("div",{className:"tooltip-menu__separator",role:"separator"}),n.jsx(me,{htmlType:"button",className:"tooltip-menu__item",size:i,type:h.label?"bar":"dot",icon:h.selected?"check":h.icon||"none",rightIcon:Array.isArray(h.children)&&h.children.length?"chevron-right":h.badgeCount?n.jsx(_t,{type:"dot",position:"inline",number:Math.min(h.badgeCount,99),size:24,"aria-hidden":!0}):void 0,label:h.label,ariaLabel:h.label&&h.badgeCount&&h.badgeCount>0?s("nav.badgeLabel",{label:h.label,count:h.badgeCount,defaultValue:"{{label}}, {{count}}\uAC1C"}):h.label,onClick:()=>C(h,_,w),selected:h.selected,disabled:h.disabled,showTooltipInfo:h.tooltip||!1,useBorder:!1,align:"left"})]},w))})]},_))})]})}const dl=".content-area";function io(e,t="Nav"){try{const a=typeof e=="string"?document.querySelector(e):e?.current??document.querySelector(dl);if(a){a.scrollTop=0;return}const r=document.scrollingElement??document.documentElement;r&&r.scrollHeight<=r.clientHeight&&tn("nav-scroll-container",`[${t}] \uBCF8\uBB38\uC744 \uB9E8 \uC704\uB85C \uB418\uB3CC\uB9B4 \uD1B5\uC744 \uBABB \uCC3E\uC558\uB2E4(\uAE30\uBCF8 ${dl}) \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 lo=52,Ja=10,pl=e=>e&&e>0?e:0;function ml({items:e=[],activeKey:t,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",m=r==="manager"?u("nav.modeLabelMalgwi","\uB9D0\uADC0"):u("nav.modeLabelManager","\uB9D0\uADC0 \uB9E4\uB2C8\uC800"),p=o.useRef(null),[f,b]=o.useState(0),y=e.length;o.useEffect(()=>{const P=p.current;if(!P)return;const O=()=>{const L=typeof getComputedStyle=="function"?getComputedStyle(P):null,R=P.clientWidth-(parseFloat(L?.paddingLeft??"")||0)-(parseFloat(L?.paddingRight??"")||0),z=P.querySelector(".bottom-nav__left"),J=z?.nextElementSibling,Y=(z?.offsetWidth??0)+(z&&J?.classList.contains("bottom-nav__divider")?J.offsetWidth:0);b(Math.max(0,R-Y))};if(O(),typeof ResizeObserver>"u")return;const D=new ResizeObserver(O);D.observe(P);const H=P.querySelector(".bottom-nav__left");return H&&D.observe(H),()=>D.disconnect()},[s]);const C=lo+1,v=P=>Math.max(0,Math.floor((P+Ja)/(lo+Ja))),_=y*(lo+Ja)-Ja<=f,h=f<=0||i.length===0&&_?y:Math.min(y,v(f-C)),w=f>0&&h<y,g=w?h:y,B=e.slice(0,g),x=e.slice(g),A=w||i.length>0,N=o.useCallback((P,O)=>({position:"fixed",bottom:window.innerHeight-P.top+8,right:window.innerWidth-P.right,zIndex:ka(O)}),[]),k=o.useId(),{open:S,toggle:E,close:F,style:$,triggerRef:U,menuRef:j}=Na({computeStyle:N,onScroll:"ignore",onResize:"reposition"}),T=o.useCallback((P,O)=>O>0?u("nav.badgeLabel",{label:P,count:O,defaultValue:"{{label}}, {{count}}\uAC1C"}):P,[u]),I=o.useCallback((P,O)=>O>0?u("nav.badgeInsideLabel",{label:P,count:O,defaultValue:"{{label}}, \uC548\uC5D0 \uC54C\uB9BC {{count}}\uAC1C"}):P,[u]),K=o.useCallback(()=>s?.(c),[s,c]),ee=o.useMemo(()=>x.find(P=>!!P.key&&P.key===t)??i.find(P=>P.selected||P.key&&P.key===t),[x,t,i]),V=o.useMemo(()=>[{items:[...x.map(P=>({label:P.label,icon:P.icon,badgeCount:P.badgeCount,selected:!!P.key&&P.key===t,closeOnSelect:!0,disabled:P.state==="disabled",onClick:()=>{P.state!=="disabled"&&(P.key&&a&&(a(P.key),io(l,"BottomNav")),F())}})),...i.map(P=>({label:P.label,icon:P.icon,badgeCount:P.badgeCount,selected:P.selected??(!!P.key&&P.key===t),closeOnSelect:!0,onClick:()=>{P.onClick?.(),F()}}))]}],[x,i,t,a,F]),q=[...x,...i].reduce((P,O)=>P+pl(O.badgeCount),0);return n.jsxs("nav",{className:"bottom-nav",ref:p,"aria-label":u("nav.bottomNav","\uD558\uB2E8 \uB124\uBE44\uAC8C\uC774\uC158"),children:[s&&n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"bottom-nav__left",children:n.jsx(me,{htmlType:"button",size:52,type:"dot",icon:d,ariaLabel:m,className:"bottom-nav-item",onClick:K})}),n.jsx("div",{className:"bottom-nav__divider","aria-hidden":"true"})]}),n.jsx("div",{className:"bottom-nav__items",children:B.map((P,O)=>{const D=pl(P.badgeCount);return n.jsxs("span",{className:"bottom-nav__slot",children:[n.jsx(me,{htmlType:"button",size:52,type:"dot",icon:P.icon,ariaLabel:T(P.label,D),selected:!!P.key&&P.key===t,disabled:P.state==="disabled",className:"bottom-nav-item",onClick:()=>{P.key&&(a?.(P.key),io(l,"BottomNav"))}}),D>0&&n.jsx("span",{"aria-hidden":"true",children:n.jsx(_t,{type:"dot",position:"top-right",number:Math.min(D,99),size:24})})]},P.key??`__slot-${O}`)})}),A&&n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"bottom-nav__divider","aria-hidden":"true"}),n.jsx("div",{className:"bottom-nav__right",children:n.jsxs("div",{ref:U,className:"bottom-nav__slot",children:[n.jsx(me,{htmlType:"button",size:52,type:"dot",icon:ee?.icon??"ellipsis",ariaLabel:I(ee?.label??u("nav.more","\uB354\uBCF4\uAE30"),q),selected:!!ee,className:"bottom-nav-item",onClick:E,"aria-expanded":S,"aria-controls":S?k:void 0}),q>0&&n.jsx("span",{"aria-hidden":"true",children:n.jsx(_t,{type:"dot",position:"top-right",number:Math.min(q,99),size:24})}),S&&en.createPortal(n.jsx("div",{id:k,role:"group","aria-label":u("nav.moreMenu","\uB354\uBCF4\uAE30 \uBA54\uB274"),className:"tooltip-content",style:$,ref:j,children:n.jsx(Da,{columns:V,onClose:F})}),document.body)]})})]})]})}function hl(e){if(typeof e!="string")return!1;let t="";for(const r of e){const s=r.charCodeAt(0);s<=32||s>=127&&s<=159||(t+=r)}if(!t)return!1;const a=/^([a-zA-Z][a-zA-Z0-9+.-]*):/.exec(t);return a?["http","https","mailto","tel"].includes(a[1].toLowerCase()):!0}function Cl(e,t,a){return a&&a>0?e("nav.badgeLabel",{label:t,count:a,defaultValue:"{{label}}, {{count}}\uAC1C"}):t}function Nb(e){const{t}=ye.useTranslation(),{activeKey:a,unreadCount:r,onDebug:s,onNotification:i,onSetting:l,onHelp:u,onFeedback:c,onAccount:d}=e||{},m="default";return s||i||l||u||c||d?n.jsxs("div",{className:"side-nav__footer",children:[s&&n.jsx(me,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:m,icon:"terminal",ariaLabel:t("nav.debug","\uB514\uBC84\uADF8"),onClick:s,selected:a==="debug"}),i&&n.jsxs("span",{className:"side-nav__notification-wrap",children:[n.jsx(me,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:m,icon:"bell",ariaLabel:Cl(t,t("nav.notifications","\uC54C\uB9BC"),r),onClick:i,selected:a==="notifications"}),!!r&&r>0&&n.jsx(_t,{type:"dot",number:Math.min(r,99),size:24,"aria-hidden":!0})]}),l&&n.jsx(me,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:m,icon:"settings",ariaLabel:t("nav.settings","\uC124\uC815"),onClick:l,selected:a==="settings"}),u&&n.jsx(me,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:m,icon:"message-circle-question-mark",ariaLabel:t("nav.help","\uB3C4\uC6C0\uB9D0"),onClick:u,selected:a==="help"}),c&&n.jsx(me,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:m,icon:"bug",ariaLabel:t("nav.feedback","\uBC84\uADF8\uC2E0\uACE0"),onClick:c,selected:a==="feedback"}),d&&n.jsx(me,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:m,icon:"user-round",ariaLabel:t("nav.account","\uACC4\uC815"),onClick:d,selected:a==="account"})]}):null}function fl(e){const{t}=ye.useTranslation(),{item:a,itemKey:r,label:s,icon:i,active:l,onClick:u,style:c,state:d,labelStyle:m}=e||{},p=a?.key??r??"",f=a?.label??s??"",b=a?.icon??i??"",y=a?.badge??0,C=n.jsx("span",{className:"side-nav__icon-wrap",children:n.jsx(Je,{icon:b,label:typeof f=="string"?f:void 0,className:"side-nav__icon",maskClassName:"side-nav__icon-image",imgClassName:void 0,svgClassName:void 0})}),v=d==="disabled",_=`side-nav__item ${l?"active":""} ${d||""} ${v?"disabled":""} ${a?.child?"side-nav__item--child":""}`,h=o.useCallback(w=>{if(v)return;const g=w.detail>0;if(g)try{w.currentTarget.blur()}catch{}u?.(p,w.currentTarget,g)},[v,p,u]);return n.jsxs("button",{type:"button",className:_,onClick:h,"aria-label":typeof f=="string"?Cl(t,f,y):void 0,"aria-current":l?"page":void 0,style:c,"aria-disabled":v,children:[C,n.jsx("span",{className:"side-nav__label button-1 f",style:m,children:f}),y>0&&n.jsx(_t,{type:"dot",position:"inline",number:Math.min(y,99),size:24,"aria-hidden":!0}),d==="loading"&&n.jsx("span",{className:"side-nav__spinner",role:"img","aria-label":t("loader.loading","\uBD88\uB7EC\uC624\uB294 \uC911\u2026")})]})}function gl(e){const{t}=ye.useTranslation(),{items:a=[],activeKey:r,onChange:s,unreadCount:i,onDebug:l,onNotification:u,onAccount:c,onSetting:d,onHelp:m,onFeedback:p,appMode:f,onAppModeChange:b,scrollContainer:y}=e||{},C=f==="manager",v=o.useCallback(()=>b?.(C?"malgwi":"manager"),[b,C]),_=o.useRef(null),[h,w]=o.useState(null);o.useEffect(()=>{const N=_.current;if(!N)return;const k=()=>{const{scrollHeight:E,clientHeight:F,scrollTop:$}=N;if(E<=F+1){w(null);return}const U=Math.max(24,F/E*F),j=F-U,T=E-F;w({top:Math.round($/T*j),height:Math.round(U)})};k(),N.addEventListener("scroll",k,{passive:!0});const S=typeof ResizeObserver<"u"?new ResizeObserver(k):null;S?.observe(N);for(const E of Array.from(N.children))S?.observe(E);return()=>{N.removeEventListener("scroll",k),S?.disconnect()}},[a]);const g=o.useRef(null),B=o.useCallback(N=>{const k=_.current;k&&(N.preventDefault(),g.current={y:N.clientY,top:k.scrollTop},N.currentTarget.setPointerCapture(N.pointerId))},[]),x=o.useCallback(N=>{const k=_.current,S=g.current;!k||!S||(k.scrollTop=S.top+(N.clientY-S.y)*(k.scrollHeight/k.clientHeight))},[]),A=o.useCallback(N=>{g.current=null,N.currentTarget.hasPointerCapture(N.pointerId)&&N.currentTarget.releasePointerCapture(N.pointerId)},[]);return n.jsxs("nav",{ref:_,"aria-label":t("nav.mainMenu","\uBA54\uC778 \uBA54\uB274"),className:"side-nav__menu",children:[h&&n.jsx("div",{className:"side-nav__scroll","aria-hidden":"true",children:n.jsx("div",{className:"side-nav__scroll-thumb",style:{top:h.top,height:h.height},onPointerDown:B,onPointerMove:x,onPointerUp:A,onPointerCancel:A})}),n.jsxs("div",{className:"side-nav__menu-list",children:[(a||[]).filter(N=>!N.section&&(N.key||N.label)).map((N,k)=>n.jsxs(o.Fragment,{children:[N.divider&&n.jsx("div",{className:"side-nav__separator"}),n.jsx(fl,{item:N,active:!!N.key&&N.key===r,state:N.disabled?"disabled":void 0,onClick:(S,E,F)=>{if(N.disabled)return;if(N.href){if(hl(N.href)&&window.open(N.href,"_blank","noopener,noreferrer"),F)try{E?.blur()}catch{}return}if(s?.(N.key),io(y,"SideNav"),!F)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 $=document.querySelector(".header");if($){const U=typeof $.matches=="function";if(!(window.matchMedia("(hover: hover)").matches&&U&&$.matches(":hover"))){$.classList.add("header--force-collapsed");const j=()=>{$.classList.remove("header--force-collapsed"),$.removeEventListener("mouseenter",j)};$.addEventListener("mouseenter",j)}}}})]},N.key??`side-nav__item-${k}`)),b&&n.jsx("div",{className:"side-nav__separator side-nav__separator--short"}),b&&n.jsx(fl,{item:{key:"__mode-switch__",label:C?t("nav.goToMalgwi","\uB9D0\uADC0\uB85C \uC774\uB3D9"):t("nav.goToManager","\uB9D0\uADC0\uB9E4\uB2C8\uC800\uB85C \uC774\uB3D9"),icon:C?"arrow-left":"arrow-right"},onClick:v})]}),n.jsx(Nb,{activeKey:r,unreadCount:i,onDebug:l,onNotification:u,onAccount:c,onSetting:d,onHelp:m,onFeedback:p})]})}var Qa='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',uo='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',Db='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 bl({appMode:e}){const{t}=ye.useTranslation(),a=e==="manager",r=a?uo:Qa,s=Db;return n.jsxs("div",{className:"brand-identity__root","aria-label":t("header.biArea","BI \uC601\uC5ED"),children:[n.jsx("img",{src:s,alt:t("header.biSymbol","BI \uC2EC\uBCFC"),className:"brand-identity__image brand-identity__image--symbol"}),n.jsx("img",{src:r,alt:a?t("header.logoManager","\uB9D0\uADC0\uB9E4\uB2C8\uC800 \uB85C\uACE0"):t("header.logoMalgwi","\uB9D0\uADC0 \uB85C\uACE0"),className:"brand-identity__image brand-identity__image--logo"})]})}function yl({activeKey:e,onChange:t,items:a,malgwiItems:r,managerItems:s,unreadCount:i,onDebug:l,onNotification:u,onAccount:c,onSetting:d,onHelp:m,onFeedback:p,appMode:f,onAppModeChange:b,scrollContainer:y}){const{t:C}=ye.useTranslation(),v=on("(max-width: 767px)"),_=o.useMemo(()=>(a??[]).filter($=>!$.section&&($.key||$.label)).map($=>({key:$.key,label:typeof $.label=="string"?$.label:void 0,icon:$.icon,state:$.disabled?"disabled":void 0,badgeCount:$.badge})),[a]),h=o.useCallback($=>{const U=a?.find(j=>j.key===$);if(!U?.disabled){if(U?.href){hl(U.href)&&window.open(U.href,"_blank","noopener,noreferrer");return}t?.($)}},[a,t]),w=o.useMemo(()=>{const $=[];return l&&$.push({key:"debug",icon:"terminal",label:C("nav.debug","\uB514\uBC84\uADF8"),onClick:l}),u&&$.push({key:"notifications",icon:"bell",label:C("nav.notifications","\uC54C\uB9BC"),badgeCount:i,onClick:u}),d&&$.push({key:"settings",icon:"settings",label:C("nav.settings","\uC124\uC815"),onClick:d}),m&&$.push({key:"help",icon:"message-circle-question-mark",label:C("nav.help","\uB3C4\uC6C0\uB9D0"),onClick:m}),p&&$.push({key:"feedback",icon:"bug",label:C("nav.feedback","\uBC84\uADF8\uC2E0\uACE0"),onClick:p}),c&&$.push({key:"account",icon:"user-round",label:C("nav.account","\uACC4\uC815"),onClick:c}),$},[C,l,u,d,m,p,c,i]),g=o.useCallback(($,U)=>({position:"fixed",top:$.bottom+8,right:Math.max(8,window.innerWidth-$.right),zIndex:ka(U)}),[]),B=o.useId(),{open:x,toggle:A,close:N,style:k,triggerRef:S,menuRef:E}=Na({computeStyle:g,onScroll:"ignore",onResize:"reposition"}),F=o.useMemo(()=>[{items:w.map($=>({label:$.label,icon:$.icon,badgeCount:$.badgeCount,selected:$.selected??(!!$.key&&$.key===e),closeOnSelect:!0,onClick:()=>{$.onClick?.(),N()}}))}],[w,e,N]);return n.jsxs("aside",{className:`header${f==="manager"?" header--manager":""}`,children:[n.jsxs("div",{className:"header__bi",children:[n.jsx(bl,{appMode:f}),n.jsxs("div",{className:"header__menu-button",ref:S,children:[n.jsx(me,{htmlType:"button",size:48,type:"dot",shape:"pill",variant:"default",useBorder:!1,icon:"menu",ariaLabel:u&&i&&i>0?C("nav.badgeInsideLabel",{label:C("header.menuOpen","\uBA54\uB274 \uC5F4\uAE30"),count:i,defaultValue:"{{label}}, \uC548\uC5D0 \uC54C\uB9BC {{count}}\uAC1C"}):C("header.menuOpen","\uBA54\uB274 \uC5F4\uAE30"),onClick:A,"aria-expanded":x,"aria-controls":x?B:void 0}),!!u&&!!i&&i>0&&n.jsx(_t,{type:"dot",number:Math.min(i,99),size:24,"aria-hidden":!0}),x&&en.createPortal(n.jsx("div",{id:B,role:"group","aria-label":C("header.utilMenu","\uC720\uD2F8\uB9AC\uD2F0 \uBA54\uB274"),className:"tooltip-content",style:k,ref:E,children:n.jsx(Da,{columns:F,onClose:N})}),document.body)]})]}),n.jsx(gl,{scrollContainer:y,items:a,activeKey:e??void 0,onChange:t,unreadCount:i,onDebug:l,onNotification:u,onAccount:c,onSetting:d,onHelp:m,onFeedback:p,appMode:f,onAppModeChange:b}),v&&n.jsx(ml,{items:_,activeKey:e??void 0,onChange:h,scrollContainer:y,appMode:f,onAppModeChange:b})]})}const Eb=yl,Sb=()=>Lt.t("passCard.planSuffix","\uC774\uC6A9\uAD8C");function vl(e){if(!(e==null||e==="")){if(typeof e=="string"&&/^\s*\d[\d,]*\s*$/.test(e)){const t=Number(e.replace(/[,\s]/g,""));if(Number.isFinite(t))return ea(`${t.toLocaleString("ko-KR")}\uC6D0`)}return ea(typeof e=="number"?`${e.toLocaleString("ko-KR")}\uC6D0`:e)}}function jb(e){const t=`${e.code??""} ${e.name??""}`.toLowerCase();return/manager|매니저/.test(t)?"manager":"speechear"}function Tb(e){if(e.durationDays&&e.durationDays>0){const i=e.durationDays;return i%365===0?`${i/365}\uB144`:`${i}\uC77C`}const t=(e.code??"").match(/(\d+)(d|y)\b/i);if(t)return t[2].toLowerCase()==="y"?`${t[1]}\uB144`:`${t[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||Sb()}function Mb(e){const t=(e??"").match(/(\d+)(d|y)\b/i);if(!t)return null;const a=Number(t[1]);return t[2].toLowerCase()==="y"?a*365:a}function xl(e){return{type:e.type??jb(e),plan:Tb(e),label:e.label,price:vl(e.price),originalPrice:vl(e.originalPrice),discountLabel:e.discountLabel}}var Lb='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',$b='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>',Rb='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',Pb='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',Ib='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>',Fb='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',_l='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 Un={text:"--pass-card-text",sub:"--pass-card-sub",copyright:"--pass-card-copyright"},co=new WeakMap;function Ob(e){if(e)return co.get(e)}function Bn(e,t){e&&(e.style.setProperty(Un.text,t.text),e.style.setProperty(Un.sub,t.sub),t.copyrightColor&&e.style.setProperty(Un.copyright,t.copyrightColor),co.set(e,t))}function An(e){e&&(e.style.removeProperty(Un.text),e.style.removeProperty(Un.sub),e.style.removeProperty(Un.copyright),co.delete(e))}const wl={text:"var(--color-pureBlack)",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"#1a1a1a"};function Bl(e={}){const t=xt(wl,Bn,An);return n.jsxs("div",{ref:t,className:"pass-card-bg pass-card-bg-two-circle","aria-hidden":"true",children:[n.jsx("div",{className:"pass-card-bg-two-circle__c1"}),n.jsx("div",{className:"pass-card-bg-two-circle__c3"}),n.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-two-circle__symbol",style:{"--symbol-url":`url("${_l}")`}})]})}const Al="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 Ea='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 Hb={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"var(--color-main)"},zb=[{scale:1,opacity:.55},{scale:2,opacity:.4},{scale:3.1,opacity:.28},{scale:4.5,opacity:.18},{scale:6,opacity:.1}];function kl(e={}){const t=xt(Hb,Bn,An),a="var(--color-main)",r=270,s=170;return n.jsxs("div",{ref:t,className:"pass-card-bg pass-card-bg-sound-move","aria-hidden":"true",children:[n.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:zb.map(({scale:i,opacity:l},u)=>n.jsx("g",{transform:`translate(${r} ${s}) scale(${i}) translate(-50 -50)`,opacity:l,children:n.jsx("path",{d:Al,fill:"none",stroke:a,strokeWidth:"1.5",vectorEffect:"non-scaling-stroke"})},u))}),n.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-sound-move__symbol",style:{"--symbol-url":`url("${Ea}")`}})]})}const Vb={text:"#ffffff",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",logoColor:"_white",copyrightColor:"#ffffff"},Wb=[{scale:1,opacity:.55},{scale:2,opacity:.4},{scale:3.1,opacity:.28},{scale:4.5,opacity:.18},{scale:6,opacity:.1}];function qb(e={}){const t=xt(Vb,Bn,An),a="#ffffff",r=270,s=170;return n.jsxs("div",{ref:t,className:"pass-card-bg pass-card-bg-sound-move-v1","aria-hidden":"true",children:[n.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:Wb.map(({scale:i,opacity:l},u)=>n.jsx("g",{transform:`translate(${r} ${s}) scale(${i}) translate(-50 -50)`,opacity:l,children:n.jsx("path",{d:Al,fill:"none",stroke:a,strokeWidth:"1.5",vectorEffect:"non-scaling-stroke"})},u))}),n.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-sound-move-v1__symbol",style:{"--symbol-url":`url("${_l}")`}})]})}const Ub={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"var(--color-main)"};function Gb(e={}){const t=xt(Ub,Bn,An);return n.jsxs("div",{ref:t,className:"pass-card-bg pass-card-bg-talk","aria-hidden":"true",children:[n.jsx("div",{className:"pass-card-bg-talk__shape pass-card-bg-talk__shape--left"}),n.jsx("div",{className:"pass-card-bg-talk__shape pass-card-bg-talk__shape--right"}),n.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-talk__symbol",style:{"--symbol-url":`url("${Ea}")`}})]})}const Kb={Logo_speechear_kr:{"":Qa,_white:Lb,_textWhite:$b,_black:Rb},Logo_speechearManager_kr:{"":uo,_white:Pb,_textWhite:Ib,_black:Fb}};function Yb(e,t){if(e)return Kb[e]?.[t??""]??void 0}const Zb={speechear:Qa,manager:uo},Xb={speechear:"Logo_speechear_kr",manager:"Logo_speechearManager_kr"},Nl=10;function Jb(e){return e<=0?0:e>=86400?Math.floor(e/86400)*86400:e>=3600?Math.floor(e/3600)*3600:e>=60?Math.floor(e/60)*60:Math.floor(e)}function Dl(e,t){if(e<=0)return t("passCard.remainingSecond",{n:0});const a=Math.floor(e/86400);if(a>0)return t("passCard.remainingDay",{n:a});const r=Math.floor(e/3600);if(r>0)return t("passCard.remainingHour",{n:r});const s=Math.floor(e/60);return s>0?t("passCard.remainingMinute",{n:s}):t("passCard.remainingSecond",{n:Math.floor(e)})}function Qb(e,t,a){if(e==="manager"){const r=/년/.test(t)||/yr|year/i.test(t)||/1년|365/.test(t),s=a==="\uC624\uD508\uD2B9\uAC00"||a===Lt.t("passCard.specialLabel");return r?n.jsx(Gb,{}):s?n.jsx(qb,{}):n.jsx(kl,{})}return n.jsx(Bl,{})}function El({ariaLabel:e,product:t,showPrice:a=!1,plan:r,type:s,endDate:i,remainingSeconds:l,endInclusive:u=!1,state:c="active",bg:d,bgOnly:m=!1,textColor:p,subColor:f,copyrightColor:b,logoSrc:y,label:C,price:v,originalPrice:_,discountLabel:h,onUse:w,onRefund:g,onDelete:B}){const{t:x}=ye.useTranslation(),A=t?xl(t):void 0,N=s??A?.type??"speechear",k=r??A?.plan??x("passCard.planSuffix","\uC774\uC6A9\uAD8C"),S=C??A?.label,E=v??(a?A?.price:void 0),F=_??(a?A?.originalPrice:void 0),$=h??A?.discountLabel,U=o.useMemo(()=>{if(E)return null;const W=t?.durationDays??Mb(t?.code);if(!W||W<=0)return l!=null?{percent:null,remainingLabel:Dl(l,x)}:null;const te=W*86400;let fe;if(l!=null)fe=l;else if((c==="active"||c==="expired")&&i){const ie=new Date(i).getTime();if(Number.isNaN(ie))return null;const ce=/^(\d{4})-(\d{2})-(\d{2})/.exec(String(i)),de=/^(\d{4})-(\d{2})-(\d{2})/.exec(_a()),be=Math.round(ce&&de?(Date.UTC(+ce[1],+ce[2]-1,+ce[3])-Date.UTC(+de[1],+de[2]-1,+de[3]))/864e5:(ie-Date.now())/864e5);fe=Math.max(0,u?be+1:be)*86400}else c==="expired"?fe=0:fe=te;const Se=Jb(fe),Ce=Math.max(0,Math.min(100,Math.floor(Math.min(Se,te)/te*100)));return c==="pending"&&Ce>=100?null:{percent:Ce,remainingLabel:c==="expired"?x("passCard.expired","\uB9CC\uB8CC\uB428"):Dl(fe,x)}},[E,c,i,l,u,t?.durationDays,t?.code,x]),j=o.useRef(null),[T,I]=o.useState({}),[K,ee]=o.useState(null),V=!!(w||g||B),q=o.useRef(!1),P=o.useRef(void 0),[O,D]=o.useState(y);o.useLayoutEffect(()=>{D(y)},[y]),o.useLayoutEffect(()=>{const W=j.current;W&&(p!==void 0&&W.style.setProperty("--pass-card-text",p),f!==void 0&&W.style.setProperty("--pass-card-sub",f),b!==void 0&&W.style.setProperty("--pass-card-copyright",b))},[p,f,b]),o.useLayoutEffect(()=>{const W=j.current;if(!W)return;const te=Ob(W);if(!y){const fe=Xb[N],Se=c==="expired"?"_black":te?.logoColor??"",Ce=Yb(fe,Se);D(Ce)}},[d,y,N,c]);const H=W=>{const te=j.current;if(!te)return null;const{left:fe,top:Se,width:Ce,height:ie}=te.getBoundingClientRect(),ce=(W.clientX-fe)/Ce-.5;return{rotateX:-((W.clientY-Se)/ie-.5)*Nl,rotateY:ce*Nl}},L=(W,te)=>{const fe=te*-.7,Se=W*.7+10,Ce=20+(Math.abs(W)+Math.abs(te))*.4;return`${fe}px ${Se}px ${Ce}px rgba(0, 0, 0, 0.18)`},R=o.useCallback(W=>{if(aa())return;q.current=!0,clearTimeout(P.current),P.current=setTimeout(()=>{q.current=!1},200);const te=H(W);te&&I({transform:`perspective(800px) rotateX(${te.rotateX}deg) rotateY(${te.rotateY}deg) scale3d(1.03, 1.03, 1.03)`,boxShadow:L(te.rotateX,te.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)"})},[]),z=o.useCallback(W=>{if(aa())return;const te=H(W);if(!te)return;const fe=q.current?"transform 0.2s ease, box-shadow 0.2s ease":"none";I({transform:`perspective(800px) rotateX(${te.rotateX}deg) rotateY(${te.rotateY}deg) scale3d(1.03, 1.03, 1.03)`,boxShadow:L(te.rotateX,te.rotateY),transition:fe})},[]),J=o.useCallback(()=>{clearTimeout(P.current),q.current=!1,I({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)"})},[]),Y=o.useCallback(()=>ee(null),[]),Z=o.useMemo(()=>{const W=x("passCard.planSuffix","\uC774\uC6A9\uAD8C"),te=k.replace("\uC774\uC6A9\uAD8C","").replace(W==="\uC774\uC6A9\uAD8C"?"":W,"").trim(),fe=te.match(/^(.*?)(일|년)$/);return fe?n.jsxs(n.Fragment,{children:[n.jsx("span",{className:"h0 pass-card__plan-number",children:fe[1]}),n.jsx("span",{className:"h5b pass-card__plan-unit",children:fe[2]==="\uB144"?x("passCard.unitYear","\uB144"):x("passCard.unitDay","\uC77C")})]}):n.jsx("span",{className:"h0",children:te})},[k,x]),ne=o.useMemo(()=>{const W=ea(E);if(!W)return null;const te=W.match(/^([^\d]*)([\d.,]+)(.*)$/);if(!te)return n.jsx("span",{className:"h1",children:W});const[,fe,Se,Ce]=te;return n.jsxs(n.Fragment,{children:[fe&&n.jsx("span",{className:"h5 pass-card__price-symbol",children:fe}),n.jsx("span",{className:"h1 pass-card__price-amount",children:Se}),Ce.trim()&&n.jsx("span",{className:"h5 pass-card__price-symbol",children:Ce.trim()})]})},[E]),le=o.useCallback(()=>{V&&ee(W=>{if(W)return null;const te=j.current?.getBoundingClientRect();if(!te)return null;const fe=50;return{left:te.left,right:te.right,width:te.width,height:te.height,x:te.x,y:te.y+fe,top:te.top+fe,bottom:te.bottom+fe}})},[V]),ue=o.useCallback(W=>{V&&(W.key==="Enter"||W.key===" ")&&(W.preventDefault(),le())},[V,le]),Ee=[{items:[...w?[{label:x("passCard.menu.use","\uC0AC\uC6A9\uD558\uAE30"),icon:"play",onClick:()=>{w(),ee(null)},closeOnSelect:!0}]:[],...g?[{label:x("passCard.menu.refund","\uD658\uBD88\uD558\uAE30"),icon:"rotate-ccw",onClick:()=>{g(),ee(null)},closeOnSelect:!0}]:[],...B?[{label:x("passCard.menu.delete","\uC0AD\uC81C\uD558\uAE30"),icon:"trash-2",onClick:()=>{B(),ee(null)},closeOnSelect:!0}]:[]]}];return n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"pass-card-frame",children:n.jsxs("div",{ref:j,className:`pass-card pass-card--${c}${V?" pass-card--clickable":""}`,style:T,onMouseEnter:R,onMouseMove:z,onMouseLeave:J,onPointerUp:W=>{W.pointerType==="touch"&&J()},onPointerCancel:W=>{W.pointerType==="touch"&&J()},onClick:le,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?!!K:void 0,children:[d??Qb(N,k,S),!m&&n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"pass-card__top",children:n.jsxs("div",{className:"pass-card__top-left",children:[n.jsx("img",{src:O??Zb[N],className:"pass-card__logo",alt:N==="manager"?x("header.logoManager","\uB9D0\uADC0\uB9E4\uB2C8\uC800 \uB85C\uACE0"):x("header.logoMalgwi","\uB9D0\uADC0 \uB85C\uACE0")}),n.jsxs("div",{className:"pass-card__plan",children:[n.jsx("div",{children:Z}),n.jsx("span",{className:"h5b pass-card__plan-suffix",children:S?x("passCard.labeledPlan",{label:S}):x("passCard.planSuffix","\uC774\uC6A9\uAD8C")})]})]})}),E?n.jsxs("div",{className:"pass-card__price-area",children:[$&&n.jsx("span",{className:"pass-card__discount body-3",children:$}),n.jsxs("div",{className:"pass-card__price",children:[F&&n.jsx("span",{className:"pass-card__price-original body-3",children:ea(F)}),ne]})]}):U?n.jsxs("div",{className:"pass-card__usage",children:[n.jsx("span",{className:"h5b pass-card__usage-remaining",children:U.remainingLabel}),U.percent!=null&&n.jsxs("span",{className:"pass-card__usage-percent",children:[n.jsx("span",{className:"h1 pass-card__usage-value",children:U.percent}),n.jsx("span",{className:"h5b pass-card__usage-symbol",children:"%"})]})]}):n.jsx("div",{className:"pass-card__copyright caption-2","aria-hidden":"true",children:"\xA9 IHAB Corp. All rights reserved."})]})]})}),K&&n.jsx(ln,{anchorRect:K,onClose:Y,ariaLabel:x("tooltip.menu","\uBA54\uB274"),children:n.jsx(Da,{columns:Ee,onClose:Y,size:"small"})})]})}const e4={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"#1a1a1a"};function t4(e={}){const t=`passcard-sound-line-grad-${o.useId()}`,a=xt(e4,Bn,An);return n.jsxs("div",{ref:a,className:"pass-card-bg pass-card-bg-sound-line","aria-hidden":"true",children:[n.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:[n.jsx("defs",{children:n.jsxs("linearGradient",{id:t,x1:"0",y1:"0",x2:"1",y2:"0",children:[n.jsx("stop",{offset:"20%",stopColor:"var(--color-main)"}),n.jsx("stop",{offset:"80%",stopColor:"var(--color-sub)"})]})}),n.jsx("g",{transform:"translate(25, 45)",children:n.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(#${t})`,strokeWidth:"50",strokeLinecap:"round"})})]}),n.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-sound-line__symbol",style:{"--symbol-url":`url("${Ea}")`}})]})}const n4={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"var(--color-main)"};function a4(e={}){const t=xt(n4,Bn,An);return n.jsxs("div",{ref:t,className:"pass-card-bg pass-card-bg-talk-v1","aria-hidden":"true",children:[n.jsx("div",{className:"pass-card-bg-talk-v1__shape pass-card-bg-talk-v1__shape--left"}),n.jsx("div",{className:"pass-card-bg-talk-v1__shape pass-card-bg-talk-v1__shape--right"}),n.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-talk-v1__symbol",style:{"--symbol-url":`url("${Ea}")`}})]})}function r4(e,t){if(e){if(t==="manager_pro")return n.jsx(a4,{});if(t==="manager_standard")return n.jsx(t4,{});if(t==="manager_lite")return n.jsx(kl,{})}}function o4(e){const t=ea(e);if(!t)return null;const a=t.match(/^([^\d]*)([\d.,]+)(.*)$/);if(!a)return t;const[,r,s,i]=a;return n.jsxs(n.Fragment,{children:[r&&n.jsx("span",{className:"payment-plan__pricing-symbol h4",children:r}),s,i.trim()&&n.jsx("span",{className:"payment-plan__pricing-symbol h4",children:i.trim()})]})}function s4(e){const{t}=ye.useTranslation(),a=t("payment.plan.tierFallback",{defaultValue:"\uC774\uC6A9\uAD8C"}),r=t("payment.plan.openPromo",{defaultValue:"\uC624\uD508 \uD2B9\uAC00"}),{plan:s,onSelect:i,period:l="monthly",ownedCodes:u}=e||{},c=g=>!!g&&!!u?.includes(g),d=g=>g.onceOnly??/오픈\s*특가/.test(g.label??""),m=(s.tiers||[]).some(g=>d(g)&&c(g.code)),p=g=>{const B=g.prices?g.prices[l]:g.price;return B?(s.tiers||[]).some(x=>!!x.badge&&x.originals?.[l]===B):!1},f=s.colorToken?`var(--color-${s.colorToken})`:"var(--color-gray)",b=t("payment.plan.freePrice","\uBB34\uB8CC"),y=t("payment.products.mgrEnterprise.tier.price","\uBB38\uC758"),C=g=>g.prices?g.prices[l]:g.price,v=(s.tiers||[]).length>0&&(s.tiers||[]).every(g=>{const B=C(g);return B==="\uBB34\uB8CC"||B===b||B==="0\uC6D0"||typeof B=="string"&&/\d/.test(B)&&!/[1-9]/.test(B)}),_=(s.tiers||[]).length>0&&(s.tiers||[]).every(g=>{const B=C(g);return B==="\uBB38\uC758"||B===y}),h=s.group==="org",w=h?"manager":"speechear";return n.jsxs("div",{className:"payment-plan__card",style:{borderColor:f,"--plan-color":f},children:[s.cardBadge&&n.jsx("div",{className:"payment-plan__card-badge",children:n.jsx(_t,{label:s.cardBadge,variant:"main",size:"medium",fill:"soft"})}),n.jsxs("div",{className:"payment-plan__title",children:[n.jsx("p",{className:"payment-plan__quote body-3b",style:{color:f},children:s.quote||"\xA0"}),n.jsx("h3",{className:"payment-plan__title-heading h1",children:s.tier??s.title}),n.jsx("p",{className:"payment-plan__subtitle body-3",children:s.subtitle})]}),n.jsxs("div",{className:"payment-plan__box",children:[n.jsx("span",{className:"payment-plan__box-title body-3b",children:t("payment.plan.recommendedFor","\uC774\uB7F0 \uBD84\uAED8 \uCD94\uCC9C\uD569\uB2C8\uB2E4.")}),n.jsx("ul",{className:"payment-plan__feature-list",children:(s.recommendedFor||[]).map((g,B)=>n.jsxs("li",{className:"payment-plan__feature-item body-3",children:[n.jsx(Je,{icon:"check",size:18,className:"payment-plan__feature-check",wrapperStyle:{color:f}}),g]},B))})]}),n.jsxs("div",{className:"payment-plan__box",children:[n.jsx("span",{className:"payment-plan__box-title body-3b",children:t("payment.plan.features","\uD575\uC2EC \uAE30\uB2A5")}),n.jsx("ul",{className:"payment-plan__feature-list",children:(s.features||[]).map((g,B)=>n.jsxs("li",{className:"payment-plan__feature-item body-3",children:[n.jsx(Je,{icon:"check",size:18,className:"payment-plan__feature-check",wrapperStyle:{color:f}}),g]},B))})]}),n.jsx("div",{className:"payment-plan__card-pricing",children:v?null:_?n.jsx(me,{htmlType:"button",className:"payment-plan__contact-button",label:t("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})}):n.jsx(n.Fragment,{children:n.jsx("div",{className:"payment-plan__pricing-list",children:(s.tiers||[]).map(g=>{const B=g.label||a,x=d(g),A=x||g.openPromo===!0,N=B.replace(/^오픈\s*특가\s*/,"")||a,k=g.prices?g.prices[l]:g.price,S=g.badge?A?`${r}
|
|
852
|
-
${g.badge}`:g.badge:void 0;if(x&&c(g.code))return null;if(!g.badge&&!m)return p(g)?null:n.jsxs("div",{className:`payment-plan__pricing-row payment-plan__pricing-row--static${g.highlight?" payment-plan__pricing-row--highlight":""}`,children:[n.jsx("div",{className:"payment-plan__pricing-row-title",children:n.jsx("div",{className:"payment-plan__pricing-row-label h5b",children:g.label})}),n.jsx("div",{className:"payment-plan__pricing-row-price",children:n.jsx("span",{className:"payment-plan__pricing-current h1",children:o4(k)})})]},g.id);const E=s.tier??(h?s.title:void 0),F=n.jsx(El,{showPrice:!0,product:{type:w,code:g.code,name:N,label:E,price:k,originalPrice:g.originals?.[l]??void 0,discountLabel:S},bg:r4(h,s.id)}),$=()=>i?.({...g,productId:s.id,productTitle:s.title,preview:F});return n.jsx("div",{className:"payment-plan__pricing-card",onClick:$,onKeyDown:i?U=>{U.target===U.currentTarget&&(U.key==="Enter"||U.key===" ")&&(U.preventDefault(),$())}:void 0,role:i?"button":void 0,tabIndex:i?0:void 0,children:F},g.id)})})})})]})}function i4({variant:e="default"}){return n.jsxs("div",{className:`pass-card-bg pass-card-bg--${e}`,"aria-hidden":"true",children:[n.jsx("div",{className:"pass-card-bg__circle pass-card-bg__circle--1"}),n.jsx("div",{className:"pass-card-bg__circle pass-card-bg__circle--2"}),n.jsx("div",{className:"pass-card-bg__circle pass-card-bg__circle--3"})]})}var po='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 Sl={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"#c9c9c9"};function l4(){const e=xt(Sl,Bn,An);return n.jsx("div",{ref:e,className:"pass-card-bg pass-card-bg-ihab","aria-hidden":"true",children:n.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-ihab__symbol-top",style:{"--symbol-url":`url("${po}")`}})})}const jl={text:"#ffffff",sub:"var(--color-lightGray)",logoBase:"Logo_speechearManager_kr",logoColor:"_white",copyrightColor:"#ffffff"};function u4(e={}){const t=xt(jl,Bn,An);return n.jsxs("div",{ref:t,className:"pass-card-bg pass-card-bg-left-color-grid","aria-hidden":"true",children:[n.jsx("div",{className:"pass-card-bg-left-color-grid__bar"}),n.jsx("div",{className:"pass-card-bg-left-color-grid__grid"}),n.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-left-color-grid__symbol",style:{"--symbol-url":`url("${Ea}")`}})]})}function Tl({keys:e,anchor:t="top-right",scale:a,className:r=""}){const s=Array.isArray(e)?e:[e];return n.jsx("span",{className:ke("shortcut-badge",`shortcut-badge--${t}`,r),style:a===void 0?void 0:{"--shortcut-badge-scale":String(a)},children:s.map((i,l)=>n.jsxs("span",{className:"shortcut-badge__group",children:[l>0&&n.jsx("span",{className:"shortcut-badge__plus",children:"+"}),n.jsx("kbd",{className:"shortcut-badge__key",children:i})]},`${i}-${l}`))})}const Sa=(e,t,a)=>e+(t-e)*a;function c4({speakers:e,size:t=300,viewT:a=0,activeSpeakerId:r=null,playedIds:s,selectedId:i=null,answerId:l=null,showFeedback:u=!1,pulseSelected:c=!1,pulseSelectedDuration:d,pulseScale:m,clickable:p=!1,onSelectSpeaker:f,buttonSize:b=40,showIcon:y=!0,onCenterClick:C,centerLabel:v,centerDisabled:_=!1,centerAttention:h=!1,shortcutAnchor:w="top-right",shortcutScale:g,scaleShortcut:B=!1}){const{t:x}=ye.useTranslation(),A=Math.max(0,Math.min(1,a)),N=t/2,k=110/300,S=.18,E=W=>t*(k+(W-1)*S),F=W=>{const te=E(W.row??1),fe=W.angleDeg*Math.PI/180;return{x:N+te*Math.cos(fe),y:N+te*Math.sin(fe)}},$=Math.max(...e.map(W=>W.row??1),1),U=t*.08,j=t*.1,T=t*.24,I=t-2*U,K=t-j-T,ee=t-T/2,V=o.useMemo(()=>[...new Set(e.map(W=>W.deg))].sort((W,te)=>W-te),[e]),q=V.length,P=Math.max(68,q>1?I/(q-1):0),O=o.useMemo(()=>new Map(V.map((W,te)=>[W,te])),[V]),D=W=>{const te=O.get(W.deg)??0,fe=N+(te-(q-1)/2)*P,Se=$>1?Math.min(68,K/($-1)):0,Ce=Se*($-1),ie=j+(K-Ce)/2,ce=$===1?j+K*.4:ie+($-(W.row??1))*Se;return{x:fe,y:ce}},H=W=>{const te=F(W),fe=D(W);return{x:Sa(te.x,fe.x,A),y:Sa(te.y,fe.y,A)}},L={x:N,y:Sa(N,ee,A)},R=Math.round(b*1.2),z=Math.round(Math.max(16,Math.min(80,b*.7))),J=[],Y=new Map;for(const W of e){const te=W.row??1;Y.has(te)||Y.set(te,[]),Y.get(te).push(W)}for(const[W,te]of Y.entries()){if(te.length<2)continue;const fe=[...te].sort((He,ut)=>He.deg-ut.deg),Se=fe.map(He=>H(He)),Ce=fe.map(He=>He.deg),ie=Ce[Ce.length-1]-Ce[0],ce=ie/(Ce.length-1),de=360-ie,be=fe.length>=3&&ce>0&&de<=ce*1.5,_e=Math.round(E(W)*1e3)/1e3,Be=(He,ut,nt,rt)=>{const pt=(ut.angleDeg-He.angleDeg+540)%360-180;if(pt===0)return`L ${rt.x} ${rt.y}`;if(A===0)return`A ${_e} ${_e} 0 0 ${pt>0?1:0} ${rt.x} ${rt.y}`;const Ne=(He.angleDeg+pt/2)*Math.PI/180,Fe={x:N+_e*Math.cos(Ne),y:N+_e*Math.sin(Ne)},Ae={x:(nt.x+rt.x)/2,y:(nt.y+rt.y)/2},at={x:Sa(Fe.x,Ae.x,A),y:Sa(Fe.y,Ae.y,A)},X={x:2*at.x-Ae.x,y:2*at.y-Ae.y};return`Q ${X.x} ${X.y} ${rt.x} ${rt.y}`},Ze=be?[...fe,fe[0]]:fe,Oe=be?[...Se,Se[0]]:Se;let Ie=`M ${Oe[0].x} ${Oe[0].y}`;for(let He=1;He<Oe.length;He++)Ie+=" "+Be(Ze[He-1],Ze[He],Oe[He-1],Oe[He]);J.push({key:`arc-${W}`,d:Ie})}const Z=o.useMemo(()=>new Set(s??[]),[s]),ne=W=>({idle:"",active:x("soundCompass.state.active","\uC18C\uB9AC \uB098\uB294 \uC911"),played:x("soundCompass.state.played","\uB4E4\uC74C"),correct:x("soundCompass.state.correct","\uC815\uB2F5"),wrong:x("soundCompass.state.wrong","\uC624\uB2F5")})[W],le=W=>{if(r===W.id)return"active";if(u){if(W.id===l)return"correct";if(W.id===i&&i!==l)return"wrong"}return Z.has(W.id)?"played":"idle"},ue=W=>r===W.id?"loop":u?W.id===l?"loop":null:c&&W.id===i?"once":null,Ee=(W,te)=>{switch(W){case"played":case"correct":return n.jsx(us,{size:te});case"wrong":return n.jsx(ys,{size:te});default:return n.jsx(bs,{size:te})}};return n.jsx("div",{className:"sound-compass",children:n.jsxs("div",{className:"sound-compass__compass-wrap",style:{width:t,height:t},children:[n.jsxs("svg",{width:t,height:t,viewBox:`0 0 ${t} ${t}`,className:"sound-compass__svg",children:[A===0&&e.map(W=>{const{x:te,y:fe}=H(W);return n.jsx("line",{x1:L.x,y1:L.y,x2:te,y2:fe,stroke:"#dde3ec",strokeWidth:"1"},W.id)}),J.map(W=>n.jsx("path",{d:W.d,fill:"none",stroke:"#dde3ec",strokeWidth:"1"},W.key))]}),h&&!_&&n.jsx("div",{className:"sound-compass__pulse sound-compass__pulse--active sound-compass__pulse--center",style:{width:R,height:R,left:L.x-R/2,top:L.y-R/2}}),C?n.jsx("button",{type:"button",className:`sound-compass__center sound-compass__center--button${_?" sound-compass__center--disabled":""}`,style:{width:R,height:R,left:L.x,top:L.y},"aria-label":v,"aria-disabled":_||void 0,tabIndex:_?-1:0,onClick:_?void 0:C,children:n.jsx(Br,{size:z,color:"currentColor",strokeWidth:1.5})}):n.jsx("div",{className:"sound-compass__center",style:{width:R,height:R,left:L.x,top:L.y},children:n.jsx(Br,{size:z,color:"currentColor",strokeWidth:1.5})}),e.map((W,te)=>{const{x:fe,y:Se}=H(W),Ce=le(W),ie=ue(W),ce={...g!==void 0||B?{"--shortcut-badge-scale":String(g??Math.max(.75,Math.min(3,b/56)))}:null,pointerEvents:p?"auto":"none",cursor:p?"pointer":"default",zIndex:Ce!=="idle"?10:1},de=b,be=Math.round(Math.max(10,Math.min(56,de*.38))),_e=Math.round(Math.max(7,Math.min(18,de*.2))),Be=Math.round(Math.max(10,Math.min(56,de*.4))),Ze=y==="answered"&&(Ce==="played"||Ce==="correct"||Ce==="wrong"),Oe=y===!0||Ze,Ie=!Ze;return n.jsxs("div",{className:"sound-compass__speaker-pos",style:{...ce,left:fe-de/2,top:Se-de/2},children:[ie&&n.jsx("div",{className:`sound-compass__pulse sound-compass__pulse--${Ce}`+(ie==="once"?" sound-compass__pulse--once":""),style:{width:de,height:de,...ie==="once"&&d!==void 0?{"--sc-pulse-duration-once":`${d}ms`}:null,...m!==void 0?{"--sc-pulse-scale":String(m)}:null}}),n.jsxs("button",{type:"button",tabIndex:p?0:-1,"aria-disabled":p?void 0:!0,onClick:p?()=>f?.(W.id):void 0,className:`sound-compass__speaker-btn sound-compass__speaker-btn--${Ce}`,style:{width:de,height:de},"aria-label":ne(Ce)?`${W.label}, ${ne(Ce)}`:W.label,"aria-pressed":i!=null?W.id===i:void 0,children:[Oe&&Ee(Ce,be),Ie&&n.jsx("span",{className:"sound-compass__speaker-number",style:{fontSize:y===!0?_e:Be},children:te+1})]}),W.shortcut&&n.jsx(Tl,{keys:W.shortcut,anchor:w,className:"sound-compass__speaker-shortcut"})]},W.id)})]})})}function d4({children:e,position:t="top-left",size:a=24,className:r=""}){return n.jsx("span",{className:ke("circle-badge","circle-badge--number",`circle-badge--${a}`,`circle-badge--${t}`,r),children:e})}function p4({orientation:e="horizontal",label:t,className:a=""}){const r=ke("divider",`divider--${e}`,t&&e==="horizontal"?"divider--labeled":"",a);return e==="vertical"?n.jsx("div",{className:r,role:"separator","aria-orientation":"vertical"}):t?n.jsxs("div",{className:r,role:"separator","aria-orientation":"horizontal",children:[n.jsx("span",{className:"divider__line"}),n.jsx("span",{className:"divider__label caption-1",children:t}),n.jsx("span",{className:"divider__line"})]}):n.jsx("div",{className:r,role:"separator","aria-orientation":"horizontal"})}function Ml({checked:e,onChange:t,name:a,value:r,disabled:s=!1,label:i,className:l=""}){const u=o.useId();return n.jsxs("label",{className:`radio${s?" radio--disabled":""} ${l}`.trim(),htmlFor:u,children:[n.jsx("input",{id:u,type:"radio",name:a,value:r,checked:e,disabled:s,onChange:c=>t?.(c.target.checked)}),n.jsx("span",{className:"radio__dot"}),i&&n.jsx("span",{className:"radio__label body-2",children:i})]})}function m4({options:e,value:t,onChange:a,name:r,disabled:s=!1,direction:i="vertical",className:l="",ariaLabel:u}){const c=o.useId(),d=r??`radio-group-${c}`;return n.jsx("div",{className:`radio-group radio-group--${i} ${l}`.trim(),role:"radiogroup","aria-label":u,children:e.map(m=>n.jsx(Ml,{name:d,value:m.value,checked:t===m.value,disabled:s||m.disabled,label:m.label,onChange:p=>{p&&a?.(m.value)}},m.value))})}const h4={info:"info",success:"check-circle",warning:"alert-triangle",danger:"alert-circle"};function C4({tone:e="info",title:t,message:a,children:r,dismissible:s=!1,onDismiss:i,live:l,className:u=""}){const{t:c}=ye.useTranslation(),[d,m]=o.useState(!1),p=o.useRef(null),f=o.useCallback(()=>{const h=p.current;h&&h.contains(document.activeElement)&&Ya(h),m(!0),i?.()},[i]);if(d)return null;const b=ke("alert",`alert--${e}`,u),y=l??(e==="danger"||e==="warning"?"assertive":"polite"),C=y==="assertive"?"alert":y==="polite"?"status":void 0,v=!!t,_=!!(a||r);return n.jsxs("div",{ref:p,className:b,role:C,children:[n.jsxs("div",{className:"alert__body",children:[n.jsxs("div",{className:"alert__header",children:[n.jsx(Je,{icon:h4[e],size:20,className:"alert__icon"}),v&&n.jsx("span",{className:"alert__title body-2",children:t}),!v&&_&&n.jsx("div",{className:"alert__message body-3",children:a||r})]}),v&&_&&n.jsx("div",{className:"alert__message alert__message--indented body-3",children:a||r})]}),s&&n.jsx("button",{type:"button",className:"alert__dismiss",onClick:f,"aria-label":c("common.close","\uB2EB\uAE30"),children:"\xD7"})]})}const f4={ready:"search",guide:"info",error:"circle-alert"};function g4(e,t){const a=t.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(n.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 b4({status:e="guide",label:t,children:a,emphasis:r,icon:s,className:i=""}){const l=s===!1?null:s??f4[e],u=ke("search-summary",`search-summary--${e}`,i),c=t??a,d=typeof c=="string"&&r&&r.length>0?g4(c,r):c;return n.jsxs("div",{className:u,role:"status","aria-live":"polite",children:[l!=null&&n.jsx(Je,{icon:l,size:18,className:"search-summary__icon"}),n.jsx("span",{className:"search-summary__text body-2",children:d})]})}function ja({title:e,items:t}){const{t:a}=ye.useTranslation(),{anchorRect:r,openAt:s,close:i}=Aa(),l=o.useRef(null),u=Qr(!!r,(c,d)=>{c&&d?s(l.current?.querySelector("button")??d):i()},l);return n.jsxs("span",{ref:l,style:{display:"contents"},children:[n.jsx(me,{htmlType:"button",size:24,type:"dot",icon:"info",variant:"transparent-gray",useBorder:!1,selected:!!r,ariaLabel:a("common.info","\uC124\uBA85"),onPointerEnter:c=>{na(c)||s(c.currentTarget)},onPointerLeave:c=>{na(c)||i()},onClick:c=>{u.touchPress(c.currentTarget)},onFocus:c=>{aa()||s(c.currentTarget)},onBlur:i}),r&&n.jsx(Wn,{title:e,items:t,showIndex:t.length>1,anchorRect:r,onClose:i})]})}function y4({items:e=[],value:t,onChange:a,className:r="",size:s=40}){const i=o.useId(),{t:l}=ye.useTranslation(),u=o.useRef(null),c=e.find(C=>!C.disabled)?.key,d=e.some(C=>C.key===t)?t:c??e[0]?.key,m=e.find(C=>C.key===d&&!C.disabled)?.key??c,p=()=>Array.from(u.current?.querySelectorAll('[role="tab"]:not(:disabled)')??[]),f=(C,v=p())=>{if(v.length===0)return;const _=(C%v.length+v.length)%v.length;v[_]?.focus(),v[_]?.click()},b=C=>{if(!["ArrowRight","ArrowDown","ArrowLeft","ArrowUp","Home","End"].includes(C.key))return;C.preventDefault();const v=p(),_=v.indexOf(C.currentTarget);C.key==="ArrowRight"||C.key==="ArrowDown"?f(_+1,v):C.key==="ArrowLeft"||C.key==="ArrowUp"?f(_-1,v):C.key==="Home"?f(0,v):f(v.length-1,v)},y=e.find(C=>C.key===d);return n.jsxs("div",{className:`tabs ${r}`.trim(),children:[n.jsx("div",{ref:u,className:`tabs__list tabs__list--${s}`,role:"tablist","aria-label":l("tabs.ariaLabel","\uD0ED"),children:e.map(C=>n.jsx("button",{id:`tabs__tab-${i}-${C.key}`,type:"button",role:"tab","aria-selected":C.key===d,"aria-controls":`tabs__panel-${i}-${C.key}`,disabled:C.disabled,tabIndex:C.key===m?0:-1,className:`tabs__tab body-2${C.key===d?" tabs__tab--active":""}`,onClick:()=>{C.key!==t&&a?.(C.key)},onKeyDown:b,children:C.label},C.key))}),y&&n.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 v4={xs:12,sm:16,md:20,lg:28,xl:36};function x4(e){const t=e.trim().split(/\s+/).filter(Boolean);return t.length===0?"":t.length===1?[...t[0]].slice(0,2).join("").toUpperCase():([...t[0]][0]+[...t[t.length-1]][0]).toUpperCase()}function _4({src:e,name:t,size:a="md",shape:r="circle",className:s=""}){const{t:i}=ye.useTranslation(),[l,u]=o.useState(null),c=!!e&&l===e,d=t?x4(t):"",m=!!e&&!c,p=!m&&!!d,f=t||i("avatar.ariaLabel","\uC0AC\uC6A9\uC790 \uC544\uBC14\uD0C0");return n.jsxs("span",{className:`avatar avatar--${a} avatar--${r} ${s}`.trim(),role:"img","aria-label":f,children:[m&&n.jsx("img",{className:"avatar__image",src:e,alt:f,onError:()=>u(e??null)}),!m&&p&&n.jsx("span",{className:"avatar__initials","aria-hidden":"true",children:d}),!m&&!p&&n.jsx(Je,{icon:"user-round",size:v4[a],className:"avatar__icon"})]})}function w4(e,t){if(!t)return!0;const a=t.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 B4({onFilesSelected:e,accept:t,multiple:a=!1,disabled:r=!1,showFileList:s=!0,files:i,onRemove:l,className:u=""}){const{t:c}=ye.useTranslation(),d=o.useRef(null),[m,p]=o.useState(!1),[f,b]=o.useState([]),y=i??f,C=x=>{if(!x||x.length===0)return;const A=Array.from(x).filter(k=>w4(k,t));if(A.length===0)return;const N=a?A:A.slice(0,1);if(i===void 0){const k=a?[...y,...N]:N;b(k),e?.(k)}else e?.(N)},v=x=>{x.preventDefault(),!r&&p(!0)},_=x=>{x.preventDefault(),p(!1)},h=x=>{x.preventDefault(),p(!1),!r&&C(x.dataTransfer.files)},w=x=>{const A=x.target;try{C(A.files)}finally{A.value=""}},g=()=>{r||d.current?.click()},B=x=>{if(!r&&(l?.(x),i===void 0)){const A=y.filter((N,k)=>k!==x);b(A),l||e?.(A)}};return n.jsxs("div",{className:`file-upload ${u}`.trim(),children:[n.jsxs("div",{className:ke("file-upload__dropzone",m&&"file-upload__dropzone--dragging",r&&"file-upload__dropzone--disabled"),role:"button",tabIndex:r?-1:0,"aria-disabled":r,onClick:g,onKeyDown:x=>{(x.key==="Enter"||x.key===" ")&&(x.preventDefault(),g())},onDragOver:v,onDragLeave:_,onDrop:h,children:[n.jsx(Je,{icon:"upload",size:24,className:"file-upload__icon"}),n.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")}),n.jsx("button",{type:"button",className:"file-upload__browse-button body-3",disabled:r,onClick:x=>{x.stopPropagation(),g()},children:c("fileUpload.browseButton","\uD30C\uC77C \uC120\uD0DD")}),n.jsx("input",{ref:d,type:"file",className:"file-upload__input",accept:t,multiple:a,disabled:r,onChange:w,tabIndex:-1})]}),s&&y.length>0&&n.jsx("ul",{className:"file-upload__list",children:y.map((x,A)=>n.jsxs("li",{className:"file-upload__list-item body-3",children:[n.jsx("span",{className:"file-upload__file-name body-3",children:x.name}),n.jsx("button",{type:"button",className:"file-upload__remove-button","aria-label":c("fileUpload.removeAriaLabel",{name:x.name}),disabled:r,onClick:()=>B(A),children:n.jsx(Je,{icon:"x",size:14})})]},`${x.name}-${A}`))})]})}function A4({items:e,className:t=""}){const{t:a}=ye.useTranslation();return n.jsx("nav",{className:`breadcrumb ${t}`.trim(),"aria-label":a("breadcrumb.ariaLabel","\uC774\uB3D9 \uACBD\uB85C"),children:n.jsx("ol",{className:"breadcrumb__list",children:e.map((r,s)=>{const i=s===e.length-1;return n.jsxs("li",{className:"breadcrumb__item",children:[i?n.jsx("span",{className:"breadcrumb__current body-3","aria-current":"page",children:r.label}):r.href?n.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?n.jsx("button",{type:"button",className:"breadcrumb__link body-3",onClick:r.onClick,children:r.label}):n.jsx("span",{className:"breadcrumb__text body-3",children:r.label}),!i&&n.jsx(Je,{icon:"chevron-right",size:14,className:"breadcrumb__separator"})]},s)})})})}const k4={small:14,medium:20,large:28};function N4({value:e,onChange:t,max:a=5,readOnly:r=!1,size:s="medium",ariaLabel:i,className:l=""}){const{t:u}=ye.useTranslation(),c=r||!t,[d,m]=o.useState(null),p=c?e:Number.isFinite(e)?Math.round(e):0,f=d??p,b=k4[s],y=x=>{x!==e&&t?.(x)},C=x=>{c||y(x)},v=x=>{c||aa()||m(x)},_=o.useRef(null),h=x=>{const A=Math.min(a,Math.max(1,x));y(A),Array.from(_.current?.querySelectorAll("[data-star]")??[]).find(N=>N.dataset.star===String(A))?.focus()},w=x=>{if(!c){switch(x.key){case"ArrowRight":case"ArrowUp":h((p||0)+1);break;case"ArrowLeft":case"ArrowDown":h((p||1)-1);break;case"Home":h(1);break;case"End":h(a);break;default:return}x.preventDefault()}},g=p>=1&&p<=a?Math.round(p):1,B=()=>{c||m(null)};return n.jsx("div",{className:`rating rating--${s}${c?" rating--readOnly":""} ${l}`.trim(),ref:_,onKeyDown:w,role:c?"img":"radiogroup","aria-label":c?u("rating.valueLabel",{value:e,max:a}):i??u("rating.groupLabel","\uBCC4\uC810"),onMouseLeave:B,onPointerUp:x=>{x.pointerType==="touch"&&B()},onPointerCancel:x=>{x.pointerType==="touch"&&B()},children:Array.from({length:a},(x,A)=>{const N=A+1,k=Math.max(0,Math.min(1,f-A)),S=k>0&&k<1,E=n.jsxs("span",{className:"rating__star-wrap",children:[n.jsx(Je,{icon:"star",size:b,className:"rating__star rating__star--empty"}),k>0&&n.jsx("span",{className:`rating__star-fill${S?" rating__star-fill--half":""}`,style:S?{width:`${k*100}%`}:void 0,children:n.jsx(Je,{icon:"star",size:b,className:"rating__star rating__star--filled"})})]});return c?n.jsx("span",{className:"rating__item","aria-hidden":"true",children:E},N):n.jsx("button",{type:"button",className:"rating__item rating__item--interactive",role:"radio","aria-checked":p===N,"aria-label":u("rating.starLabel",{n:N}),"data-star":N,tabIndex:N===g?0:-1,onClick:()=>C(N),onMouseEnter:()=>v(N),children:E},N)})})}const D4=20,E4=["#499cdf","#4dcdc0","#2fae9e","#e6b94e","#d9534f","#e06b68","#bfc7d1"];function S4({value:e,onChange:t,palette:a=E4,size:r=40,className:s="",ariaLabel:i}){const{t:l}=ye.useTranslation();return n.jsx("div",{className:`color-picker ${s}`.trim(),role:"group","aria-label":i,children:a.map(u=>{const c=e?.toLowerCase()===u.toLowerCase();return n.jsx("button",{type:"button",className:`color-picker__swatch color-picker__swatch--${r}`,style:{backgroundColor:u},onClick:()=>t(u),"aria-pressed":c,"aria-label":c?`${u} ${l("colorPicker.selected","\uC120\uD0DD\uB428")}`:u,children:c&&n.jsx(Je,{icon:"check",size:D4,className:"color-picker__check"})},u)})})}function Ll({icon:e,label:t,tooltip:a,wrapperStyle:r,color:s,bgColor:i,useHover:l=!0,iconSize:u="medium"}){const{t:c}=ye.useTranslation(),d=u==="small",m=ke("category-icon",d?"category-icon--small":""),p=d?16:20,f=o.useRef(null),[b,y]=o.useState(!1),C=o.useMemo(()=>{const A=r&&typeof r=="object"?{...r}:{};return!s&&!i?A:{...A,...s?{color:s,"--t-item-fg":s}:{},...i?{"--t-item-bg":i}:{}}},[r,s,i]),v=a||t,[_,h]=o.useState(null);o.useLayoutEffect(()=>{b&&h(f.current?.getBoundingClientRect()??null)},[b]),o.useEffect(()=>{if(!l&&b)try{y(!1)}catch{}},[l,b]),o.useEffect(()=>{if(!b)return;const A=N=>{const k=f.current;if(!k)return;const S=N.target;S&&!k.contains(S)&&y(!1)};return document.addEventListener("pointerdown",A,!0),()=>document.removeEventListener("pointerdown",A,!0)},[b]);const w=o.useCallback(()=>{l&&y(!0)},[l]),g=o.useCallback(()=>{l&&y(!1)},[l]),B=o.useCallback(()=>y(!1),[]),x=o.useCallback(A=>{if(A.key==="Escape"){y(!1);return}(A.key==="Enter"||A.key===" ")&&(A.preventDefault(),y(N=>!N))},[]);return n.jsxs("span",{ref:f,className:"category-icon__wrap",onPointerEnter:w,onPointerLeave:g,onFocus:w,onBlur:g,onKeyDown:x,role:"button",tabIndex:0,"aria-label":typeof v=="string"?c("common.descriptionFor",{name:v,defaultValue:`${v} \uC124\uBA85`}):void 0,"aria-haspopup":!!v,"aria-expanded":b,"data-tooltip-ignore":!0,children:[n.jsx(Je,{icon:e,label:t,className:m,imgClassName:"category-icon__image",maskClassName:"category-icon__mask",svgClassName:"category-icon__svg",wrapperStyle:C,size:p}),b&&v&&n.jsx(_n,{anchorRect:_,text:typeof v=="string"?v:void 0,offset:8,onClose:B,className:"category-icon__tooltip",ariaLabel:typeof v=="string"?v:void 0})]})}let Mn=null;function er(e){if(Mn&&Mn!==e)try{Mn()}catch{}return Mn=e,()=>{Mn===e&&(Mn=null)}}function tr(e){if(Mn===e){Mn=null;try{e()}catch{}}}function j4(e,t){if(!e)return{previewCodes:[],previewBucket:null};const a=e,r=l=>l.map(u=>u?.contextCode||u?.context_code).filter(Boolean).map(String);if(t==="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(t==="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(t==="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(t==="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 T4(e,t){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),m=o.useRef(null),p=o.useRef(null),[f,b]=o.useState(!1),y=o.useRef([]),{previewCodes:C,previewBucket:v}=j4(e,t),_=`${C.join(",")}|${v??""}`,h=o.useMemo(()=>l.key===_?l.urls:[],[l,_]);o.useEffect(()=>{if(!C.length)return;let g=!1;return(async()=>{const B=[],x=[];for(const A of C)try{const N=Gs(A,v);if(!N){B.push("");continue}let k=null;try{k=await Ks(N)}catch{}if(!k)try{const S=await Ys(N);S&&(k=URL.createObjectURL(S),x.push(k))}catch{}B.push(k??"")}catch{B.push("")}g?x.forEach(A=>{try{URL.revokeObjectURL(A)}catch{}}):(y.current.forEach(A=>{try{URL.revokeObjectURL(A)}catch{}}),y.current=x,u({key:_,urls:B}))})(),()=>{g=!0}},[C.join(","),v]),o.useEffect(()=>()=>{y.current.forEach(g=>{try{URL.revokeObjectURL(g)}catch{}}),y.current=[]},[]);const w=o.useCallback(async g=>{if(g.stopPropagation(),g.preventDefault(),d.current){m.current&&tr(m.current),d.current=!1;try{c.current?.pause()}catch{}r(!1),i(-1);return}if(!h.filter(Boolean).length)return;let B=null;const x=()=>{d.current=!1;try{c.current?.pause()}catch{}B?.()};m.current=x;const A=er(x);d.current=!0,r(!0);for(let N=0;N<h.length&&d.current;N++){const k=h[N];if(k){i(N);try{await new Promise((S,E)=>{B=S;const F=new Audio(k);c.current=F,F.onended=()=>S(),F.onerror=()=>E(),F.play().catch(E)})}catch{break}}}A(),m.current===x&&(m.current=null,d.current=!1,r(!1),i(-1))},[h]);return o.useEffect(()=>()=>{m.current&&tr(m.current),d.current=!1;try{c.current?.pause()}catch{}c.current=null},[]),{playing:a,playingIndex:s,previewUrls:h,previewHover:f,setPreviewHover:b,previewBtnRef:p,handlePreview:w}}const M4=e=>{if(!e)return[];const t=typeof e.context=="string"&&e.context.trim()||typeof e.sentence=="string"&&e.sentence.trim()||typeof e.text=="string"&&e.text.trim()||"";if(t)return[String(t)];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 mo(e){const{index:t,type:a,trainingData:r,ariaLabel:s,depth:i,renderPopup:l,completed:u,completedIds:c,selectedIds:d,tooltipText:m,useDescriptionTooltip:p=!1,onRemove:f,hideCheckBadge:b=!1,showTypeLabel:y=!1,onComplete:C,onSelect:v,onMore:_,countLabelOverride:h,size:w="square"}=e||{},{t:g}=ye.useTranslation(),[B,x]=o.useState(!1),A=o.useRef(null),[N,k]=o.useState(!1);o.useEffect(()=>{A.current?.matches(":hover")&&k(!0)},[]);const{playing:S,playingIndex:E,previewUrls:F,previewHover:$,setPreviewHover:U,previewBtnRef:j,handlePreview:T}=T4(r,a?.key),I=o.useCallback(()=>{v?v():x(!0)},[v]),K=o.useCallback(()=>x(!1),[]),ee=o.useCallback(()=>k(!0),[]),V=o.useCallback(()=>k(!1),[]),q=o.useCallback(()=>U(!0),[U]),P=o.useCallback(()=>U(!1),[U]),[O,D]=o.useState(null);o.useLayoutEffect(()=>{$&&D(j.current?.getBoundingClientRect()??null)},[$,j]);const[H,L]=o.useState(null);o.useLayoutEffect(()=>{N&&!B&&p&&L(A.current?.getBoundingClientRect()??null)},[N,B,p]);const R=o.useCallback(Ae=>{Ae.target===Ae.currentTarget&&(Ae.key==="Enter"||Ae.key===" ")&&(Ae.preventDefault(),I())},[I]),z=r||null,J=o.useMemo(()=>{if(!p)return null;const Ae=m?(Array.isArray(m)?m:[m]).filter(Boolean):null,at=Ae&&Ae.length>0?Ae:M4(z);return at&&at.length>0?at:null},[p,m,z]),Y=o.useCallback(Ae=>{Ae.stopPropagation(),f?.()},[f]),Z=o.useCallback(Ae=>Ae.stopPropagation(),[]),ne=o.useCallback(Ae=>{typeof C=="function"&&C(Ae)},[C]),le=u||(c&&r?.id!=null?c.has(String(r.id)):!1),ue=!le&&(d!=null&&r?.id!=null?d.has(String(r.id)):!1);al("speechear.popup.close",K);const Ee=hi(),W=`${a?.label||""} ${t+1}`,te=z?.title||z?.name||W;let fe=a?.icon,Se,Ce="",ie="";try{const Ae=z?.category_0||z?.category_main_code||z?.category_main,at=z?.category_1||z?.category_sub_code||z?.category_sub,X=Ee.find(oe=>oe.key===Ae);X?.icon&&(fe=X.icon),!Se&&X?.color&&(Se={"--t-item-fg":X.color}),!Se&&z?.iconColor&&(Se={"--t-item-fg":z.iconColor}),Ce=X?g(`topic.${X.key}`,{defaultValue:X.label||""}):"";try{const oe=X?.subs?.find(he=>he.key===at);ie=oe?g(`topic.sub.${oe.key}`,{defaultValue:oe.label||""}):""}catch{}}catch{}const ce=ie?`${Ce} / ${ie}`:Ce||a?.label||te,de=Ae=>g("training.countQuestions",{n:Ae}),be=Ae=>g("training.countSentences",{n:Ae});let _e="";try{if(z)if(a?.key==="LISTEN_IN_NOISE"){let Ae=0;Array.isArray(z.items)&&z.items.length>0?Ae=z.items.length:Array.isArray(z.sentences)&&z.sentences.length>0?Ae=z.sentences.length:z.sentences&&(Ae=1),_e=be(Ae)}else if(a?.key==="SHORT_STORY"){let Ae=1;Array.isArray(r?.items)?Ae=r.items.length:Array.isArray(r?.raw&&r.raw?.items)?Ae=r.raw.items.length:Array.isArray(z?.questions)?Ae=z.questions.length:Array.isArray(z?.sentences)&&(Ae=z.sentences.length),_e=de(Ae)}else if(a?.key==="LONG_STORY"){let Ae=1;if(Array.isArray(z.items)&&z.items.length>0){const at=z.items.reduce((X,oe)=>{const he=oe.questionItems;return Array.isArray(he)?X+he.length:Array.isArray(oe.questions)?X+oe.questions.length:X},0);Ae=at>0?at:z.items.length}else Array.isArray(z.questions)&&z.questions.length>0?Ae=z.questions.length:Array.isArray(z.sentences)&&z.sentences.length>0&&(Ae=z.sentences.length);_e=de(Ae)}else if(a?.key==="ORDERING_SENTENCE"){let Ae=1;Array.isArray(z.items)&&z.items.length>0?Ae=z.items.length:Array.isArray(z.sentences)&&z.sentences.length>0&&(Ae=z.sentences.length),_e=be(Ae)}else Array.isArray(z.items)&&(_e=z.items.length>0?de(z.items.length):"")}catch{}const Be=w==="row",Ze=w==="list"||Be,Oe=w==="compact",Ie=w==="small",He=Ie&&a?.key?YC().find(Ae=>Ae.key===a.key):void 0,ut=He?Ci[He.key]:void 0,nt=He?ut?g(`trainingType.${ut}.title`,{defaultValue:He.label}):He.label??"":"",rt=y&&a?.label&&a.label!==String(te)?String(a.label):Ie&&nt&&nt!==String(te)?nt:"",pt=!!rt,Ne=h!==void 0?h:_e,Fe=[rt,typeof te=="string"?te:"",Ne].map(Ae=>String(Ae??"").trim()).filter(Boolean).join(" ");return n.jsxs(n.Fragment,{children:[n.jsxs("div",{ref:A,className:`training-block-button${Ze?" training-block-button--list":""}${Be?" training-block-button--row":""}${Oe?" training-block-button--compact":""}${Ie?" training-block-button--small":""}${le?" training-block-button--completed":""}${ue?" training-block-button--selected":""}${pt&&!Ie?" training-block-button--withType":""}${Ie&&!pt?" training-block-button--no-type-label":""}`,onClick:I,onPointerEnter:ee,onPointerLeave:V,role:"button",tabIndex:0,onKeyDown:R,"aria-label":typeof s=="string"?s:Fe||void 0,title:!p&&m&&(Array.isArray(m)?m.filter(Boolean).join(`
|
|
853
|
-
`):m)||void 0,children:[n.jsxs("div",{className:"training-block-button__left",children:[y&&a?.label&&a.label!==String(te)&&n.jsx("span",{className:"training-block-button__type-label caption-1",children:a.label}),Ie&&nt&&nt!==String(te)&&n.jsx("span",{className:"training-block-button__type-label caption-2",children:nt}),n.jsx(Ll,{icon:fe,label:te,tooltip:ce,wrapperStyle:Se,iconSize:Ie||Oe?"small":"medium"}),!b&&(le||ue)&&!(f&&N)&&n.jsx(_t,{className:f?"training-block-button__check--removable":void 0,type:"dot",icon:"check",position:"top-left",size:"medium","aria-label":le?g("training.completed","\uD6C8\uB828 \uC644\uB8CC"):g("training.selected","\uC120\uD0DD\uB428")}),f&&n.jsx(_t,{className:`training-block-button__remove${N?" is-hover":""}`,type:"dot",icon:"remove",position:"top-left",size:"medium","aria-label":g("common.remove","\uC81C\uAC70"),onClick:Y}),n.jsx("div",{className:`training-block-button__title ${Oe?"body-3":Ie?"body-3b":"h3"}`,children:String(te)}),n.jsxs("div",{className:"training-block-button__description",children:[Ne?n.jsx("div",{className:`training-block-button__count ${Ie?"caption-2":"caption-1"}`,children:Ne}):null,n.jsx("div",{className:"training-block-button__chevron",children:n.jsx(Je,{icon:"chevron-right",label:g("training.next","\uB2E4\uC74C"),className:"training-block-button__chevron-icon",imgClassName:"training-block-button__chevron-icon-image",maskClassName:"training-block-button__chevron-icon-mask",svgClassName:"training-block-button__chevron-icon-svg",size:Ie?12:20})})]}),(Ze&&!Be||Ie)&&F.length>0&&n.jsx("div",{ref:j,className:"training-block-button__preview","data-tooltip-ignore":!0,onClick:Z,onPointerEnter:q,onPointerLeave:P,children:n.jsx(me,{htmlType:"button",size:Ie?28:32,type:"dot",icon:S?"pause":"play",variant:Ie?"transparent-lightGray":"default",useBorder:!1,selected:S,ariaLabel:String(te).trim()?S?g("training.stopFor",{name:te,defaultValue:`${te} \uC815\uC9C0`}):g("training.previewFor",{name:te,defaultValue:`${te} \uBBF8\uB9AC \uB4E3\uAE30`}):S?g("training.stop","\uC815\uC9C0"):g("training.preview","\uBBF8\uB9AC \uB4E3\uAE30"),onClick:T})})]}),_&&n.jsx("div",{className:"training-block-button__more","data-tooltip-ignore":!0,onClick:Ae=>{Ae.stopPropagation(),_(Ae)},children:n.jsx(me,{htmlType:"button",size:40,type:"dot",icon:"more-horizontal",variant:"transparent-lightGray",useBorder:!1,ariaLabel:String(te).trim()?g("common.moreFor",{name:te}):g("common.more","\uB354\uBCF4\uAE30")})})]}),$&&n.jsx(_n,{anchorRect:O,text:S?g("training.stop","\uC815\uC9C0"):g("training.preview","\uBBF8\uB9AC \uB4E3\uAE30"),offset:8,onClose:P}),N&&!B&&p&&(J?n.jsx(Wn,{anchorRect:H,items:J,activeIndex:E,onClose:V}):z?.subTitle?n.jsx(_n,{anchorRect:H,text:z.subTitle,offset:8,onClose:V}):null),B&&l&&l({trainingData:z,typeKey:a?.key??"",onClose:K,onComplete:ne,popupTitle:String(te),popupSubTitle:a?.subTitle,depth:i!=null?String(i):void 0,popupIcon:fe,popupIconTooltip:String(ce),popupWrapperStyle:Se})]})}const $l=200;function L4(e){return e.itemId?(ef()[e.trainingType]??[]).find(t=>t?.id!=null&&String(t.id)===String(e.itemId))??null:null}function Rl({plan:e,anchorRect:t,offset:a=12,onClose:r}){const{t:s}=ye.useTranslation(),i=o.useMemo(()=>nf(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=n.jsx("div",{className:"tooltip-training__box",children:n.jsx("div",{className:"tooltip-training__groups",children:i.flatMap(({type:u,items:c},d)=>[d>0?n.jsx("div",{className:"tooltip-training__divider"},`div-${u.key}`):null,n.jsxs("div",{className:"tooltip-training__section",children:[n.jsx("div",{className:"tooltip-training__section-header",children:n.jsx("span",{className:"tooltip-training__type-label body-3b",children:u.label})}),n.jsx("div",{className:"tooltip-training__items",children:c.map((m,p)=>{const f=L4(m);return f?n.jsx(mo,{index:p,type:u,trainingData:f,size:"compact",hideCheckBadge:!0},m.itemId??p):null})})]},u.key)])})});return t?n.jsx(ln,{anchorRect:t,offset:a,onClose:r,closeOnOutsideClick:!1,className:"tooltip-training",ariaLabel:s("tooltip.training","\uD6C8\uB828 \uC548\uB0B4"),children:l}):l}const $4=200;function R4({icon:e,count:t,title:a,plan:r,tooltip:s=!0,className:i="",onClick:l,onMouseEnter:u,onMouseLeave:c}){const d=ke("count-tile",l&&"count-tile--clickable",i),m=o.useRef(null),[p,f]=o.useState(null),b=o.useRef(null),y=o.useRef(null),C=!!(p&&r&&s),v=o.useCallback(()=>{b.current&&(clearTimeout(b.current),b.current=null),y.current&&(clearTimeout(y.current),y.current=null)},[]),_=o.useCallback(()=>{v(),f(null)},[v]),h=o.useCallback(()=>{!s||!r||(v(),b.current=setTimeout(()=>{b.current=null,f(m.current?.getBoundingClientRect()??null)},$l))},[s,r,v]),w=o.useCallback(()=>{b.current&&(clearTimeout(b.current),b.current=null),!y.current&&(y.current=setTimeout(()=>{y.current=null,f(null)},$4))},[]);return o.useEffect(()=>()=>{v()},[v]),o.useEffect(()=>{(!s||!r)&&_()},[s,r,_]),o.useEffect(()=>{if(!C)return;const g=x=>x instanceof Element&&(m.current?.contains(x)||!!x.closest(".tooltip-training")),B=x=>{g(x.target)?v():w()};return document.addEventListener("pointerover",B,!0),()=>document.removeEventListener("pointerover",B,!0)},[C,v,w]),n.jsxs(n.Fragment,{children:[n.jsxs("div",{ref:m,className:d,onClick:l?g=>{_(),l(g)}:void 0,onKeyDown:l?g=>{g.key!=="Enter"&&g.key!==" "||(g.preventDefault(),g.currentTarget.click())}:void 0,onPointerEnter:g=>{g.pointerType==="touch"||g.pointerType==="pen"?_():h()},onMouseEnter:u,onMouseLeave:g=>{w(),c?.(g)},role:l?"button":"img",tabIndex:l?0:void 0,"aria-label":`${a} ${t}`,children:[n.jsx(Je,{icon:e,size:20,className:"count-tile__icon"}),n.jsx("span",{className:"count-tile__count h5","aria-hidden":"true",children:t})]}),p&&r&&n.jsx(Rl,{plan:r,anchorRect:p,onClose:_})]})}let Ta=0,Pl="",ho="",Ma=0;function Il(){return Fl(!1)}function P4(){return Fl(!0)}function Fl(e){const t=typeof document<"u";Ta===0&&t&&(Pl=document.body.style.overflow,document.body.style.overflow="hidden"),e&&t&&(Ma===0&&(ho=document.body.style.paddingRight),Ma++,document.body.style.paddingRight="0px"),Ta++;let a=!1;return()=>{a||(a=!0,Ta=Math.max(0,Ta-1),e&&t&&(Ma=Math.max(0,Ma-1),Ma===0&&(ho?document.body.style.paddingRight=ho:document.body.style.removeProperty("padding-right"))),Ta===0&&t&&(document.body.style.overflow=Pl))}}function I4(){return n.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round","aria-hidden":!0,children:n.jsx("path",{d:"M6 6l12 12M18 6 6 18"})})}function F4({open:e,onClose:t,ariaLabel:a,title:r,children:s,size:i="md",closeOnBackdrop:l=!0,closeOnEscape:u=!0,showClose:c=!0,className:d,contentClassName:m}){const{t:p}=ye.useTranslation(),f=o.useId(),b=o.useRef(null),y=o.useCallback(()=>t(),[t]);o.useEffect(()=>{if(!e)return;const h=document.activeElement,w=Il(),g=b.current;return Yr(g,h),g?.focus(),()=>{w();const B=document.activeElement;(!B||B===document.body||g&&g.contains(B))&&Zr(h)?.focus?.()}},[e]);const C=o.useRef(y),v=o.useRef(u);o.useEffect(()=>{C.current=y,v.current=u}),o.useEffect(()=>{if(e)return Vn(()=>{v.current&&C.current()})},[e]);const _=o.useRef(!1);return Gr(b,e),!e||typeof document>"u"?null:en.createPortal(n.jsx("div",{className:ke("dialog",d),onPointerDown:l?h=>{_.current=h.target===h.currentTarget}:void 0,onMouseDown:h=>{h.target===h.currentTarget&&h.preventDefault()},onClick:l?h=>{const w=_.current;_.current=!1,w&&h.target===h.currentTarget&&y()}:void 0,children:n.jsxs("div",{ref:b,role:"dialog","aria-modal":"true","aria-label":r?void 0:a,"aria-labelledby":r?f:void 0,tabIndex:-1,className:ke("dialog__surface",`dialog__surface--${i}`,m),onClick:h=>h.stopPropagation(),children:[r?n.jsx("div",{className:"dialog__header",children:n.jsx("h2",{id:f,className:"dialog__title h4b",children:r})}):null,c?n.jsx("button",{type:"button",className:"dialog__close","aria-label":p("common.close","\uB2EB\uAE30"),onClick:y,children:n.jsx(I4,{})}):null,n.jsx("div",{className:"dialog__body",children:s})]})}),document.body)}function O4({columns:e,rows:t,rowKey:a,title:r,toolbar:s,empty:i,loading:l,caption:u,className:c=""}){const{t:d}=ye.useTranslation(),m=!l&&t.length===0;return n.jsxs("div",{className:ke("board",c),children:[r||s?n.jsxs("div",{className:"board__head",children:[r?n.jsx("h2",{className:"board__title",children:r}):n.jsx("span",{}),s?n.jsx("div",{className:"board__toolbar",children:s}):null]}):null,n.jsxs("table",{className:"board__table",children:[u?n.jsx("caption",{className:"board__caption",children:u}):null,n.jsx("thead",{children:n.jsx("tr",{children:e.map(p=>n.jsx("th",{scope:"col",className:ke("board__th",`board__cell--${p.headerAlign??p.align??"left"}`),style:p.width?{width:p.width}:void 0,children:p.header},p.key))})}),n.jsx("tbody",{children:l?n.jsx("tr",{children:n.jsx("td",{className:"board__state",colSpan:e.length,children:l})}):m?n.jsx("tr",{children:n.jsx("td",{className:"board__state",colSpan:e.length,children:i??d("board.empty","\uB4F1\uB85D\uB41C \uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.")})}):t.map((p,f)=>n.jsx("tr",{className:"board__row",children:e.map(b=>n.jsx("td",{className:ke("board__td",`board__cell--${b.align??"left"}`),children:b.render(p,f)},b.key))},a(p,f)))})]})]})}function H4({name:e,role:t,photo:a,media:r,credentials:s,size:i=190,className:l=""}){return n.jsxs("div",{className:ke("person-card",l),children:[n.jsx("div",{className:"person-card__photo",style:{width:i,height:i},children:r??(a?n.jsx("img",{src:a,alt:t?`${e} ${t}`:e}):null)}),n.jsx("h3",{className:"person-card__name",children:e}),t?n.jsx("p",{className:"person-card__role",children:t}):null,s?.length?n.jsx("ul",{className:"person-card__credentials",children:s.map(u=>n.jsx("li",{children:u},u))}):null]})}function z4({groups:e,className:t=""}){return n.jsx("div",{className:ke("timeline",t),children:e.map(a=>n.jsxs("section",{className:"timeline__group",children:[n.jsx("h3",{className:"timeline__title",children:a.title}),n.jsx("ul",{className:"timeline__rows",children:a.entries.map((r,s)=>n.jsxs("li",{className:"timeline__row",children:[r.label?n.jsx("span",{className:"timeline__label",children:r.label}):null,n.jsx("div",{className:"timeline__items",children:r.items.map((i,l)=>n.jsx("p",{children:i},l))})]},`${r.label??""}-${s}`))})]},a.title))})}function V4({title:e,kind:t,body:a,badge:r,badgeSrc:s,footer:i,width:l,className:u=""}){const c=r??(s?n.jsx("img",{src:s,alt:""}):null);return n.jsxs("div",{className:ke("publication-card",u),style:l?{width:l,flexShrink:0}:void 0,children:[c?n.jsx("div",{className:"publication-card__badge","aria-hidden":"true",children:c}):null,n.jsx("h3",{className:"publication-card__title",children:e}),t?n.jsx("p",{className:"publication-card__kind",children:t}):null,n.jsx("p",{className:"publication-card__body",children:a}),i?n.jsx("div",{className:"publication-card__footer",children:i}):null]})}function W4({logo:e,alt:t,onDone:a,durationMs:r=3e3}){const s=wa(a);return o.useEffect(()=>{const i=setTimeout(()=>s.current?.(),r);return()=>clearTimeout(i)},[r,s]),n.jsx("div",{className:"splash-logo",style:{"--splash-logo-duration":`${r}ms`},"aria-hidden":"true",children:n.jsx("img",{src:e,alt:t,className:"splash-logo__image"})})}function q4({eyebrow:e,eyebrowIndex:t,title:a,description:r,level:s=2,tone:i="dark",className:l=""}){const u=s===1?"h1":"h2";return n.jsxs("div",{className:ke("section-header",`section-header--${i}`,l),children:[e?n.jsxs("p",{className:"section-header__eyebrow",children:[t?n.jsxs(n.Fragment,{children:[n.jsx("span",{className:"section-header__index",children:t}),n.jsx("span",{"aria-hidden":!0,className:"section-header__rule"})]}):null,e]}):null,a?n.jsx(u,{className:"section-header__title",children:a}):null,r?n.jsx("div",{className:"section-header__description",children:r}):null]})}function U4({items:e,className:t=""}){return n.jsx("ul",{className:ke("company-meta",t),children:e.map((a,r)=>n.jsxs("li",{className:"company-meta__item",children:[r>0?n.jsx("span",{"aria-hidden":!0,className:"company-meta__divider",children:"|"}):null,a]},a))})}function Ol(e){return typeof e=="string"?e:e.label}function Hl({value:e,onChange:t,suggestions:a,openOnFocus:r=!1,filterSuggestions:s,onSelectSuggestion:i,autoActiveFirst:l=!1}){const u=o.useId(),[c,d]=o.useState(!1),[m,p]=o.useState(-1),f=o.useRef(null),b=o.useMemo(()=>{if(!a.length)return[];const E=e??"";return s===!1?a:E?typeof s=="function"?s(a,E):a.filter(F=>Ol(F).toLowerCase().includes(E.toLowerCase())):r?a:[]},[a,e,r,s]),[y,C]=o.useState(!1),v=o.useRef([]),_=y&&b.length===0?v.current:b;o.useEffect(()=>{_.length&&(v.current=_)},[_]);const h=o.useCallback(()=>C(!0),[]),w=o.useCallback(()=>C(!1),[]),g=l?0:-1;o.useEffect(()=>{c||p(g)},[c,g]),o.useEffect(()=>()=>{f.current&&clearTimeout(f.current)},[]);const B=m<_.length?m:g<_.length?g:-1,x=o.useCallback(E=>{i?i(E):t?.(Ol(E)),d(!1)},[t,i]),A=o.useCallback(()=>d(!0),[]),N=o.useCallback(()=>{d(!0),p(g)},[g]),k=o.useCallback(()=>{f.current=setTimeout(()=>d(!1),120)},[]),S=o.useCallback(E=>{E.nativeEvent.isComposing||E.keyCode===229||(E.key==="ArrowDown"?(E.preventDefault(),d(!0),p(F=>Math.min(_.length-1,(F<_.length?F:g)+1))):E.key==="ArrowUp"?(E.preventDefault(),p(F=>Math.max(g,(F<_.length?F:_.length)-1))):E.key==="Enter"?B>=0&&x(_[B]):E.key==="Escape"&&c&&(E.preventDefault(),d(!1)))},[_,B,c,x,g]);return{listId:u,open:c,activeIdx:B,filtered:_,handleFocus:A,handleBlur:k,handleInput:N,handleKeyDown:S,handleSelect:x,handleCompositionStart:h,handleCompositionEnd:w}}const Co=typeof window<"u"?o.useLayoutEffect:o.useEffect;function Gn(e){const{value:t,defaultValue:a,name:r,inputRef:s,onChange:i,label:l,ariaLabel:u,ariaDescribedBy:c,required:d,placeholder:m,ghostText:p,ghostHint:f,type:b="text",disabled:y=!1,readOnly:C=!1,error:v,helperText:_,maxLength:h,size:w=48,variant:g="input",fullWidth:B=!1,newline:x=!1,multiline:A=!1,rows:N=3,leftIcon:k,rightIcon:S,clearable:E=!1,list:F,showCount:$=!0,className:U="",onFocus:j,onBlur:T,onKeyDown:I,onEnter:K,inputMode:ee,autoComplete:V,autoFocus:q,suggestions:P,filterSuggestions:O,onSelectSuggestion:D,autoActiveFirst:H,openOnFocus:L=!1}=e,R=C||y?void 0:P,{t:z}=ye.useTranslation(),J=o.useId();!l&&!u&&tn(`TextField:unnamed:${J}`,"[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-${J}`,Z=`tf-helper-${J}`,ne=o.useRef(null),le=Hl({value:t??"",onChange:i,suggestions:R??[],openOnFocus:L,filterSuggestions:O,onSelectSuggestion:D,autoActiveFirst:H}),ue=!!R&&le.open&&le.filtered.length>0,Ee=o.useRef(null),[W,te]=o.useState(null),fe=o.useCallback(()=>{const Ne=Ee.current;if(!Ne||typeof window>"u")return;const Fe=Ne.getBoundingClientRect(),Ae=230,at=window.innerHeight-Fe.bottom<Ae+8&&Fe.top>Ae+8;te({position:"fixed",left:Fe.left,width:Fe.width,...at?{bottom:window.innerHeight-Fe.top+8}:{top:Fe.bottom+8},zIndex:ka(Ne)})},[]);Co(()=>{if(!ue)return;fe();const Ne=Fe=>{const Ae=Fe.target;Ae&&Ae.nodeType===1&&Ae.closest?.(".text-field__suggestions")||fe()};return window.addEventListener("scroll",Ne,!0),window.addEventListener("resize",fe),()=>{window.removeEventListener("scroll",Ne,!0),window.removeEventListener("resize",fe)}},[ue,fe]);const Se=o.useCallback(Ne=>{ne.current=Ne,typeof s=="function"?s(Ne):s&&(s.current=Ne)},[s]),Ce=p?`${p}${f??z("wordTable.save.autoFillHint"," (Tab \uB610\uB294 space \uC785\uB825\uC2DC \uC790\uB3D9 \uC785\uB825)")}`:m,ie=t!==void 0,ce=ie&&b==="password",[de,be]=o.useState((a??"").length),_e=ie?(t??"").length:de,Be=o.useRef(t);Co(()=>{Be.current=t}),o.useEffect(()=>{const Ne=ne.current;if(!ce||!Ne)return;const Fe=t??"";Ne.value!==Fe&&(Ne.value=Fe)},[ce,t]),o.useEffect(()=>{if(!x||!ne.current)return;const Ne=ne.current;Ne.style.height="",Ne.scrollHeight>Ne.clientHeight&&(Ne.style.height=`${Ne.scrollHeight}px`)},[t,de,x]);const Ze=h!=null&&_e>h,Oe=w===32?16:20,Ie=ke("text-field",`text-field--s${w}`,g==="display"?"text-field--display":"",B?"text-field--full-width":"",y?"text-field--disabled":"",C?"text-field--readonly":"",v?"text-field--error":"",k?"text-field--has-left-icon":"",S||E?"text-field--has-right-icon":"",U),He={id:Y,...ce?{}:ie?{value:t}:{defaultValue:a},ref:Se,placeholder:Ce,name:r,disabled:y,readOnly:C,autoFocus:q,maxLength:h,list:F,inputMode:ee,autoComplete:V,"aria-label":!l&&u?u:void 0,"aria-required":d,"aria-invalid":!!v,"aria-describedby":[_||v?Z:null,c].filter(Boolean).join(" ")||void 0,role:R?"combobox":void 0,"aria-autocomplete":R?"list":void 0,"aria-haspopup":R?"listbox":void 0,"aria-expanded":R?ue:void 0,"aria-controls":ue?le.listId:void 0,"aria-activedescendant":ue&&le.activeIdx>=0?`${le.listId}-option-${le.activeIdx}`:void 0,onChange:Ne=>{const Fe=Ne.target;ie||be(Fe.value.length),i?.(Fe.value),R&&le.handleInput(),ce&&queueMicrotask(()=>{const Ae=Be.current??"";Fe.value!==Ae&&(Fe.value=Ae)})},onCompositionStart:R?le.handleCompositionStart:void 0,onCompositionEnd:R?le.handleCompositionEnd:void 0,onFocus:(Ne=>{j?.(Ne),R&&le.handleFocus()}),onBlur:(Ne=>{T?.(Ne),R&&le.handleBlur()}),onKeyDown:(Ne=>{const Fe=(Ne.key==="Tab"&&!Ne.shiftKey||Ne.key===" ")&&!Ne.nativeEvent.isComposing;if(p&&Fe&&!C&&!y&&!(Ne.currentTarget.value??"").trim()){Ne.preventDefault();const Ae=Ne.currentTarget;ie||(Ae.value=p,be(p.length)),i?.(p);return}R&&Ne.key==="Enter"&&!Ne.nativeEvent.isComposing&&le.activeIdx>=0?Ne.preventDefault():K&&Ne.key==="Enter"&&!Ne.nativeEvent.isComposing&&(Ne.preventDefault(),K()),I?.(Ne),R&&le.handleKeyDown(Ne)})},ut=E&&!y&&!C&&_e>0,nt=()=>x?n.jsx("textarea",{...He,className:"text-field__input text-field__input--auto body-2",rows:1}):A?n.jsx("textarea",{...He,className:"text-field__input text-field__input--textarea body-2",rows:N}):n.jsx("input",{...He,type:b,className:"text-field__input body-2"}),rt=g==="display"&&!x&&!A&&!!Ce,pt=()=>n.jsxs(n.Fragment,{children:[nt(),rt&&n.jsx("span",{className:"text-field__placeholder","aria-hidden":"true",children:Ce})]});return n.jsxs("div",{ref:Ee,className:Ie,children:[l&&n.jsxs("label",{htmlFor:Y,className:"text-field__label caption-1",children:[l,d&&n.jsx("span",{className:"text-field__required",children:"*"})]}),n.jsxs("div",{className:"text-field__wrap",children:[k&&n.jsx("span",{className:"text-field__icon text-field__icon--left",children:n.jsx(Je,{icon:k,label:"",className:"",svgClassName:"text-field__icon-svg",size:Oe})}),pt(),h!=null&&$&&n.jsxs("span",{className:`text-field__count caption-2${Ze?" text-field__count--over":""}`,children:[_e,"/",h]}),ut&&n.jsx(me,{size:24,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,className:"text-field__clear",ariaLabel:z("textField.clearAriaLabel","\uC785\uB825\uAC12 \uC9C0\uC6B0\uAE30"),htmlType:"button",onMouseDown:Ne=>{Ne.preventDefault()},onClick:()=>{!ie&&ne.current&&(ne.current.value="",be(0)),i?.("")},tabIndex:-1}),S&&!ut&&n.jsx("span",{className:"text-field__icon text-field__icon--right",children:n.jsx(Je,{icon:S,label:"",className:"",svgClassName:"text-field__icon-svg",size:Oe})})]}),!!R&&n.jsx("span",{className:"text-field__status",role:"status","aria-live":"polite",children:le.open&&(t??"").length>0&&le.filtered.length===0?z("common.noMatches","\uB9DE\uB294 \uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4"):""}),ue&&(typeof document>"u"?null:en.createPortal(n.jsx("ul",{id:le.listId,className:"text-field__suggestions",role:"listbox",style:W??{position:"fixed",visibility:"hidden"},"data-tooltip-ignore":!0,children:le.filtered.map((Ne,Fe)=>n.jsx("li",{id:`${le.listId}-option-${Fe}`,role:"option","aria-selected":Fe===le.activeIdx,className:`text-field__suggestion body-2${Fe===le.activeIdx?" is-active":""}`,onMouseDown:Ae=>Ae.preventDefault(),onClick:()=>{le.handleSelect(Ne),ne.current?.focus()},children:typeof Ne=="string"?Ne:n.jsxs(n.Fragment,{children:[n.jsx("span",{className:"text-field__suggestion-label",children:Ne.label}),Ne.hint&&n.jsx("span",{className:"text-field__suggestion-hint caption-1",children:Ne.hint})]})},typeof Ne=="string"?`${Ne}-${Fe}`:Ne.id))}),document.body)),(_||v)&&n.jsx("div",{className:"text-field__footer",children:n.jsx("span",{id:Z,className:"text-field__helper caption-1",role:v?"alert":void 0,children:v||_})})]})}function cn({options:e,value:t,onChange:a,placeholder:r,disabled:s=!1,block:i=!1,size:l=48,error:u=!1,className:c="",ariaLabel:d,ariaDescribedBy:m}){const{t:p}=ye.useTranslation(),f=r??p("dropdown.placeholder","\uC120\uD0DD"),b=o.useId(),y=o.useId(),C=o.useRef(null),v=o.useCallback((j,T)=>{const I=window.innerHeight-j.bottom<260&&j.top>260;return{position:"fixed",left:j.left,minWidth:j.width,...I?{bottom:window.innerHeight-j.top+6}:{top:j.bottom+6},zIndex:ka(T)}},[]),{open:_,setOpen:h,toggle:w,style:g,triggerRef:B,menuRef:x}=Na({computeStyle:v}),[A,N]=o.useState(-1),k=o.useCallback(()=>N(-1),[]),S=e.find(j=>j.value===t);o.useEffect(()=>{if(_){const j=e.findIndex(T=>T.value===t);N(j>=0?j:e.length?0:-1),requestAnimationFrame(()=>{const T=x.current;if(!T)return;const I=T.querySelectorAll(".dropdown__option")[j];I&&(T.scrollTop=Math.max(0,I.offsetTop-T.clientHeight/2+I.clientHeight/2))})}},[_]),o.useEffect(()=>{_&&N(j=>{if(j>=0&&j<e.length)return j;const T=e.findIndex(I=>I.value===t);return T>=0?T:e.length?0:-1})},[_,e.length]);const E=o.useCallback(()=>{s||w()},[s,w]),F=o.useCallback(j=>{j.disabled||s||(j.value!==t&&a?.(j.value),h(!1))},[a,h,s,t]);o.useEffect(()=>{s&&h(!1)},[s,h]);const $=o.useCallback(j=>{if(!s){if(!_){(j.key==="Enter"||j.key===" "||j.key==="ArrowDown")&&(j.preventDefault(),h(!0));return}if(j.key==="Escape"){j.preventDefault(),h(!1);return}j.key==="ArrowDown"?(j.preventDefault(),N(T=>{let I=T+1;for(;I<e.length&&e[I].disabled;)I++;return I<e.length?I:T})):j.key==="ArrowUp"?(j.preventDefault(),N(T=>{let I=T-1;for(;I>=0&&e[I].disabled;)I--;return I>=0?I:T})):(j.key==="Enter"||j.key===" ")&&(j.preventDefault(),e[A]?F(e[A]):h(!1))}},[s,_,e,A,F,h]),U=_?n.jsx("div",{ref:x,id:b,className:"dropdown__menu","data-tooltip-ignore":!0,role:"listbox",style:g,onMouseLeave:k,onMouseDown:j=>j.preventDefault(),children:e.map((j,T)=>n.jsxs("button",{id:`${b}-option-${T}`,type:"button",role:"option","aria-selected":j.value===t,className:ke("dropdown__option body-2",j.value===t?"dropdown__option--active":"",T===A?"dropdown__option--active":"",j.disabled?"dropdown__option--disabled":""),onMouseDown:I=>I.preventDefault(),onClick:()=>F(j),onMouseEnter:()=>N(T),disabled:j.disabled,children:[n.jsx("span",{className:"dropdown__option-check",children:j.value===t&&n.jsx("svg",{viewBox:"0 0 14 14",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:n.jsx("polyline",{points:"2 7 5.5 10.5 12 3.5"})})}),j.label]},j.value))}):null;return n.jsxs("div",{ref:C,className:ke("dropdown",`dropdown--s${l}`,_?"dropdown--open":"",i?"dropdown--block":"",u?"dropdown--error":"",c),onKeyDown:$,children:[n.jsxs("button",{ref:B,type:"button",className:"dropdown__trigger",role:"combobox","aria-haspopup":"listbox","aria-expanded":_,"aria-controls":_?b:void 0,"aria-activedescendant":_&&A>=0?`${b}-option-${A}`:void 0,"aria-label":d,"aria-describedby":[d&&S?y:"",m??""].filter(Boolean).join(" ")||void 0,"aria-invalid":u||void 0,disabled:s,onClick:E,onBlur:j=>{_&&!x.current?.contains(j.relatedTarget)&&h(!1)},children:[n.jsx("span",{id:y,className:`dropdown__trigger-label body-2${S?"":" dropdown__trigger-label--placeholder"}`,children:S?S.label:f}),n.jsx("svg",{className:"dropdown__chevron",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:n.jsx("polyline",{points:"4 6 8 10 12 6"})})]}),typeof document<"u"&&en.createPortal(U,C.current?.closest(".ihabdevteam-core-scope")??document.body)]})}function nr({page:e,totalPages:t,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,t),m=()=>a(Math.max(1,Math.min(d,e-1))),p=()=>a(Math.min(d,e+1));return n.jsxs("div",{className:ke("pagination",i),children:[n.jsx(me,{htmlType:"button",size:32,type:"dot",shape:"rounded",icon:"chevron-left",ariaLabel:u,disabled:e<=1,onClick:m}),n.jsxs("span",{className:"pagination__info body-3","aria-live":"polite","aria-atomic":"true",children:[Math.min(Math.max(1,e),d)," / ",d]}),n.jsx(me,{htmlType:"button",size:32,type:"dot",shape:"rounded",icon:"chevron-right",ariaLabel:c,disabled:e>=t,onClick:p})]})}const La=new Map;function kn(e){const{t}=ye.useTranslation(),{options:a=[],value:r=a.find(g=>!g.disabled)?.key??a[0]?.key,onChange:s=g=>{},className:i="",size:l=40,shape:u="pill",useBG:c=!0,fullWidth:d=!1,minButtonWidth:m,ariaLabel:p}=e||{},f=o.useRef(null),b=a.filter(g=>!g.disabled),y=o.useId(),C=a.map(g=>g.key).join("\xB7");o.useEffect(()=>{if(!(!ma||p!=null&&p!=="")){if(La.set(y,C||"(\uBCF4\uAE30 \uC5C6\uC74C)"),La.size>1){const g=[...La.values()].sort();tn(`segmented-control-unnamed:${g.join("|")}`,`[ihab/SegmentedControl] \uC774\uB984 \uC5C6\uB294 \uB77C\uB514\uC624\uADF8\uB8F9\uC774 \uD55C \uD654\uBA74\uC5D0 ${La.size} \uAC1C \uC11C \uC788\uC2B5\uB2C8\uB2E4 \u2014 \uB0AD\uB3C5\uAE30\uB294 \uBAA8\uB450 "\uC120\uD0DD \uD0ED" \uC73C\uB85C \uC77D\uC5B4 \uC5B4\uB290 \uAC83\uC774 \uBB34\uC5C7\uC778\uC9C0 \uAC00\uB9B4 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4. ariaLabel \uC744 \uC8FC\uC138\uC694. \uC9C0\uAE08 \uC120 \uAC83(\uBCF4\uAE30 \uC774\uB984\uC73C\uB85C \uC801\uC74C): ${g.join(" / ")}`)}return()=>{La.delete(y)}}},[p,C,y]);const v=g=>{if(!b.length)return;const B=Math.max(0,b.findIndex(A=>A.key===r)),x=g==="first"?b[0]:g==="last"?b[b.length-1]:b[(B+g+b.length)%b.length];x&&(s(x.key),Array.from(f.current?.querySelectorAll("[data-segkey]")??[]).find(A=>A.dataset.segkey===x.key)?.focus())},_=g=>{switch(g.key){case"ArrowRight":case"ArrowDown":v(1);break;case"ArrowLeft":case"ArrowUp":v(-1);break;case"Home":v("first");break;case"End":v("last");break;default:return}g.preventDefault()},h=g=>{const B=x=>typeof x=="string"||typeof x=="number";if(!(!B(g.label)||g.count==null||g.count===!1||!B(g.count)))return`${g.label}, ${g.count}`},w=b.some(g=>g.key===r)?r:b[0]?.key;return n.jsx("div",{ref:f,onKeyDown:_,className:ke("segmented-control",`segmented-control--${u}`,`segmented-control--${l}`,d&&"segmented-control--full",!c&&"segmented-control--no-bg",m!=null&&"segmented-control--min",i),style:m!=null?{"--segmented-min-button-w":`${m}px`}:void 0,role:"radiogroup","aria-label":p??t("segmentedControl.ariaLabel","\uC120\uD0DD \uD0ED"),children:a.map(g=>n.jsx(me,{htmlType:"button",role:"radio","aria-checked":g.key===r,"data-segkey":g.key,tabIndex:g.key===w?0:-1,label:g.label,count:g.count,ariaLabel:h(g),disabled:g.disabled,className:g.key===r?"is-selected":"",onClick:()=>{g.disabled||s(g.key)},size:l,shape:u,useBorder:!1,useBG:!1},g.key))})}function fo({count:e,search:t,segment:a,filters:r,pageSize:s,pagination:i,actions:l,className:u}){const{t:c}=ye.useTranslation(),d=e!=null&&n.jsxs("p",{className:"toolbar__count body-1",role:"status","aria-atomic":"true",children:[e.prefix??c("common.totalPrefix","\uCD1D "),n.jsx("span",{className:"toolbar__count-highlight",children:e.value}),e.unit,e.suffix]}),m=!!(t||r?.length||s||i||l);return n.jsxs("div",{className:ke("toolbar",u),children:[n.jsxs("div",{className:"toolbar__row",children:[d,a&&(Array.isArray(a)?a:[a]).map((p,f)=>n.jsx(kn,{size:40,...p},p.ariaLabel??f))]}),m&&n.jsx("div",{className:"toolbar__row",children:n.jsxs("div",{className:"toolbar__row-end",children:[t&&n.jsx(Gn,{className:"toolbar__search",size:40,value:t.value,onChange:t.onChange,placeholder:t.placeholder??c("common.search","\uAC80\uC0C9"),ariaLabel:t.placeholder??c("common.search","\uAC80\uC0C9"),autoFocus:t.autoFocus,clearable:!0}),r?.map((p,f)=>n.jsx(cn,{size:40,options:p.options,value:p.value,onChange:p.onChange,ariaLabel:p.ariaLabel},f)),(s||i)&&n.jsxs("div",{className:"toolbar__pager",children:[s&&n.jsx(cn,{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&&n.jsx(nr,{page:i.page,totalPages:i.total,onChange:i.onChange,prevLabel:i.prevLabel,nextLabel:i.nextLabel})]}),l]})})]})}function zl(e){return typeof e=="string"?e:typeof e=="number"?String(e):Array.isArray(e)?e.map(zl).join(""):""}function G4(e){let t=e.replace(/\r\n/g,`
|
|
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"},bg={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"}}},yg={timeHM:"{{hh}}:{{mm}}",timeH:"{{hh}}:{{mm}}"},vg={options:"Training Options",difficulty:"Difficulty",exclude:"Exclude",chosung:"Initial Consonant",excludeOptions:{none:"None",noImage:"No Image"}},xg={answer:"Answer",distractor:"Distractor"},_g={phaseWordDownload:"Download Word Data",phaseImageCheck:"Check Images",phasePairAnalysis:"Analyze Word Pairs",downloadingCount:"Downloading {{n}} words",checkingPage:"Checking page {{page}} list",imageCount:"{{done}} / {{total}} items"},wg={clearAriaLabel:"Clear input"},Bg={ariaLabel:"Select tab"},Ag={ariaLabel:"Tabs"},kg={dragPrompt:"Drag and drop files here",browseButton:"Choose Files",removeAriaLabel:"Remove {{name}}"},Ng={ariaLabel:"User avatar"},Dg={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"}},Eg={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"}},Sg={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)"}},jg={manage:{unit:"item(s)"}},Tg={cancelLabel:"Cancel"},Mg={subtitle:"Select a topic to start listening practice."},Lg={steps:"Step {{current}} of {{total}}"},$g={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"},Rg={resetColumns:"Reset column widths",scrollRegion:"Horizontally scrollable table",rowActionHint:"Press a row to open its details"},Pg={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}}"},Ig={ariaLabel:"Banner",dotAriaLabel:"Banner {{index}} of {{count}}"},Fg={selectYearMonth:"Select year and month",chooseDate:"Choose a date"},Og={previewRegion:"Report preview \u2014 scrollable sideways"},Hg={description:"Description",textbox:"Text",training:"Training guide",menu:"Menu"},zg={devNone:"No acquisition data",place:{labial:"Bilabial",alveolar:"Alveolar",palatal:"Palatal",velar:"Velar",glottal:"Glottal"}},Vg={clearSelection:"Clear selection"},Wg={showResult:"Show {{type}} result"},qg={selected:"Selected",remove:"Remove",exclude:"Excluded",nthSelected:"Selection {{n}}"},Ug={loading:"Loading"},Gg={state:{active:"playing",played:"heard",correct:"correct",wrong:"wrong"}},Kg={ariaLabel:"Breadcrumb"},Yg={empty:"No items yet."},Zg={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"},Xg={common:R2,calendar:P2,passCard:I2,searchField:F2,rating:O2,colorPicker:H2,dropdown:z2,accordion:V2,header:W2,nav:q2,settings:U2,usage:G2,account:K2,help:Y2,training:Z2,trainingSettings:X2,customers:J2,payment:Q2,coupons:eg,visits:tg,company:ng,trainingType:ag,myWordTraining:rg,myWordTable:og,keyWords:sg,wordTable:ig,wordSearch:lg,wordPrint:ug,topic:cg,accessLinkManager:dg,login:pg,device:mg,manager:hg,wordPairs:Cg,game:fg,footer:gg,landing:bg,date:yg,trainingSetPage:vg,wordTrainingPreview:xg,wordData:_g,textField:wg,segmentedControl:Bg,tabs:Ag,fileUpload:kg,avatar:Ng,myHomework:Dg,trainingStatus:Eg,store:Sg,homework:jg,inquiry:Tg,trainingPlanRun:Mg,progress:Lg,trainingMiss:$g,table:Rg,wordScore:Pg,topBanner:Ig,datePicker:Fg,report:Og,tooltip:Hg,phonemeProfile:zg,bulkBar:Vg,debug:Wg,badge:qg,loader:Ug,soundCompass:Gg,breadcrumb:Kg,board:Yg,promoBannerBg:Zg};const Jg=[{code:"ko",label:"\uD55C\uAD6D\uC5B4"},{code:"en",label:"English"}],eo="ko",Qg="ihab_display_language";function Ai(){if(typeof window>"u")return eo;try{const e=localStorage.getItem(Qg);if(e&&Jg.some(t=>t.code===e))return e}catch{}return eo}function ki(e){try{document.documentElement.lang=e}catch{}}$t.on("languageChanged",ki),ki(Ai()),$t.use(ve.initReactI18next).init({resources:{ko:{translation:$2},en:{translation:Xg}},lng:Ai(),fallbackLng:eo,interpolation:{escapeValue:!1},react:{useSuspense:!1}});function At(e,t,a){const r=o.useRef(null);return o.useLayoutEffect(()=>{const s=r.current?.parentElement??null;return t(s,e),()=>a(s)},[e,t,a]),r}const Ba={title:"--promo-banner-bg-title",description:"--promo-banner-bg-description"},to=new WeakMap;function no(e){if(e)return to.get(e)}function Ht(e,t){e&&(e.style.setProperty(Ba.title,t.title),e.style.setProperty(Ba.description,t.description),to.set(e,t))}function zt(e){e&&(e.style.removeProperty(Ba.title),e.style.removeProperty(Ba.description),to.delete(e))}const Ni={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"default"};function Di(){const e=At(Ni,Ht,zt);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-main","aria-hidden":"true"})}const Ei={title:"var(--color-main)",description:"var(--color-gray)",actionVariant:"main"};function Si(){const e=At(Ei,Ht,zt);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-soft","aria-hidden":"true"})}const ji={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function Ti(){const e=At(ji,Ht,zt);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-sub","aria-hidden":"true"})}const Mi={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function Li(){const e=At(Mi,Ht,zt);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-deep","aria-hidden":"true"})}const $i={title:"var(--color-darkSub)",description:"var(--color-gray)",actionVariant:"main"};function Ri(){const e=At($i,Ht,zt);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-soft-sub","aria-hidden":"true"})}const Pi={title:"var(--color-black)",description:"var(--color-darkGray)",actionVariant:"main"};function Ii(){const e=At(Pi,Ht,zt);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-warm","aria-hidden":"true"})}const Fi={title:"var(--color-white)",description:"var(--color-lightGray)",actionVariant:"main"};function Oi(){const e=At(Fi,Ht,zt);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-dark","aria-hidden":"true"})}const Hi={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function zi(){const e=At(Hi,Ht,zt);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-radial","aria-hidden":"true"})}const Vi={title:"var(--color-darkMain)",description:"var(--color-gray)",actionVariant:"main"};function Wi(){const e=At(Vi,Ht,zt);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-diagonal","aria-hidden":"true"})}const qi={title:"var(--color-darkSub)",description:"var(--color-gray)",actionVariant:"main"};function Ui(){const e=At(qi,Ht,zt);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-dots","aria-hidden":"true"})}const Gi={title:"var(--color-black)",description:"var(--color-gray)",actionVariant:"main"};function Ki(){const e=At(Gi,Ht,zt);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-outline","aria-hidden":"true",children:n.jsx("span",{className:"promo-banner-bg-outline__dot"})})}const Yi={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"main"};function Zi(){const e=At(Yi,Ht,zt);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-success","aria-hidden":"true"})}const Xi={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"sub"};function Ji(){const e=At(Xi,Ht,zt);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-naver","aria-hidden":"true"})}const Qi={title:"#ffffff",description:"rgba(255, 255, 255, 0.85)",actionVariant:"transparent-white"};function el(){const e=At(Qi,Ht,zt);return n.jsx("div",{ref:e,className:"promo-banner-bg promo-banner-bg-instagram","aria-hidden":"true"})}const Jt=(e,t,a)=>({key:e,get label(){return $t.t(`promoBannerBg.${e}`,t)},textTone:a}),eb=[Jt("main","\uBA54\uC778 \uADF8\uB77C\uB514\uC5B8\uD2B8","light"),Jt("soft","\uC18C\uD504\uD2B8","dark"),Jt("sub","\uC11C\uBE0C \uCEEC\uB7EC","light"),Jt("deep","\uB525 \uADF8\uB77C\uB514\uC5B8\uD2B8","light"),Jt("softSub","\uC18C\uD504\uD2B8 \uC11C\uBE0C","dark"),Jt("warm","\uC6DC(\uAC15\uC870)","dark"),Jt("dark","\uB2E4\uD06C","light"),Jt("radial","\uBC29\uC0AC\uD615 \uADF8\uB77C\uB514\uC5B8\uD2B8","light"),Jt("diagonal","\uB300\uAC01\uC120 \uD328\uD134","dark"),Jt("dots","\uB3C4\uD2B8 \uD328\uD134","dark"),Jt("outline","\uC544\uC6C3\uB77C\uC778","dark"),Jt("success","\uC131\uACF5/\uC644\uB8CC","light"),Jt("naver","\uB124\uC774\uBC84 \uBE14\uB85C\uADF8 \uC548\uB0B4","light"),Jt("instagram","\uC778\uC2A4\uD0C0\uADF8\uB7A8 \uC548\uB0B4","light")],tl={main:Di,soft:Si,sub:Ti,deep:Li,softSub:Ri,warm:Ii,dark:Oi,radial:zi,diagonal:Wi,dots:Ui,outline:Ki,success:Zi,naver:Ji,instagram:el};function nl({storageKey:e="fontScale",baseFont:t=20,minScale:a=.8,maxScale:r=1.4,step:s=.1,lineHeightRatio:i=1.4}={}){const l=w=>Math.max(a,Math.min(r,Number(w))),u=w=>{try{const g=localStorage.getItem(w),B=g?Number(g):1;return Number.isFinite(B)?l(B):l(1)}catch{return l(1)}},[c,d]=o.useState(()=>u(e)),[m,p]=o.useState(e);m!==e&&(p(e),d(u(e))),o.useEffect(()=>{try{localStorage.setItem(e,String(c))}catch{}},[e,c]);const f=w=>{d(typeof w=="function"?g=>l(w(g)):l(w))},b=()=>f(w=>+(w+s).toFixed(6)),y=()=>f(w=>+(w-s).toFixed(6)),C=c<r-Number.EPSILON,v=c>a+Number.EPSILON,_=Math.round(t*c),h=Math.round(_*i);return{scale:c,setScale:f,increase:b,decrease:y,canIncrease:C,canDecrease:v,fontSize:_,lineHeight:h}}function al(e,t){const a=wa(t);o.useEffect(()=>{const r=()=>a.current();try{window.addEventListener(e,r)}catch{}return()=>{try{window.removeEventListener(e,r)}catch{}}},[e,a])}const ao=" \xB7 ",rl=(()=>{if(typeof document>"u")return"";const e=document.title;return e.includes(ao)?e.split(ao).pop()??e:e})(),tb=o.createContext(!1),qn=[];let ol=null;function nb(e){const t=o.useContext(tb);o.useEffect(()=>{if(t||typeof e!="string"||!e)return;qn.length===0&&(ol=document.title);const a={text:rl?`${e}${ao}${rl}`:e};return qn.push(a),document.title=a.text,()=>{const r=qn.lastIndexOf(a);r>=0&&qn.splice(r,1),document.title=qn.length?qn[qn.length-1].text:ol??document.title}},[e,t])}const sl=[{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"}],ab=(()=>{let e=null;return()=>(e||(e=new Intl.Collator("ko")),e)})();function oa(e,t){return ab().compare(e,t)}const Xa=new Map;function rb(e){const t=Xa.get(e);if(t)return t;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)),Xa.size>5e3&&Xa.clear(),Xa.set(e,a),a}function ob(e){if(!/^[\d\s-]+$/.test(e))return null;const t=e.replace(/\D/g,"");return t.length<9||t.length>11?null:t[0]==="0"||t[0]==="1"&&e!==t?t:null}function sb(e,t){const a=d=>d==null||typeof d=="number"&&Number.isNaN(d)?"":String(d).trim(),r=a(e),s=a(t);if(r===s)return 0;const i=(d,m)=>{if(typeof d=="number"&&!Number.isNaN(d))return[d];const p=ob(m);return p!==null?[p]:rb(m)},l=i(e,r),u=i(t,s),c=Math.min(l.length,u.length);for(let d=0;d<c;d++){const m=l[d],p=u[d];if(typeof m=="number"&&typeof p=="number"){if(m!==p)return m-p;continue}if(typeof m=="number")return-1;if(typeof p=="number")return 1;const f=oa(m,p);if(f!==0)return f}return l.length!==u.length?l.length-u.length:oa(r,s)}const il=e=>e==null||typeof e=="number"&&Number.isNaN(e)||typeof e=="string"&&e.trim()==="";function ro(e,t,a){const r=il(e),s=il(t);if(r||s)return r===s?0:r?1:-1;const i=sb(e,t);return a?i:-i}function ib(e,t,a){const{t:r}=ve.useTranslation(),[s,i]=o.useState(()=>{const y=a?.initialPageSize;return y&&sl.some(C=>C.value===y)?y:"25"}),[l,u]=o.useState(1),[c,d]=o.useState(t);Object.is(c,t)||(d(t),l!==1&&u(1));const m=o.useMemo(()=>sl.map(y=>({...y,label:r("visits.showN",{n:y.value})})),[r]),p=o.useCallback(y=>{i(y),u(1)},[]),f=Math.max(1,Math.ceil(e.length/Number(s)));(l>f||l<1||!Number.isFinite(l))&&u(Math.min(Math.max(1,Number.isFinite(l)?l:1),f));const b=Math.min(Math.max(1,Number.isFinite(l)?l:1),f);return{pageRows:o.useMemo(()=>e.slice((b-1)*Number(s),b*Number(s)),[e,b,s]),pageSizeProps:{options:m,value:s,onChange:p},paginationProps:{page:b,total:f,onChange:u},setPage:u}}function lb(e){const[t,a]=o.useState(null),r=o.useRef(t),s=o.useRef(e?.onSortChange);s.current=e?.onSortChange;const i=o.useCallback(c=>{const d=r.current,m=d?.key===c?{key:c,asc:!d.asc}:{key:c,asc:!0};r.current=m,a(m),s.current?.(m)},[]),l=o.useCallback((c,d)=>({label:c,sortDir:t?.key===d?t.asc?"asc":"desc":null,onClick:()=>i(d)}),[t,i]),u=o.useCallback((c,d)=>{if(!t)return c;const{key:m,asc:p}=t;return[...c].sort((f,b)=>ro(d(f,m),d(b,m),p))},[t]);return{\uC815\uB82C:t,\uCE78:l,sortRows:u}}const un="\uC804\uCCB4",ub=new Map;try{$t.store?.on?.("added",()=>ub.clear())}catch{}Object.fromEntries(Object.entries(bC).map(([e,{nucleus:t}])=>[e,t]));const cb={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"})},db={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"})},pb={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 mb(e,t){if("place"in t)return cb[t.place](e);const a=db[t.vowel](e);return t.glide?`${a} \xB7 ${pb[t.glide](e)}`:a}const hb=(e,{defaultValue:t})=>t,ll=(e,t)=>({jamos:e,phonetic:t,tooltip:mb(hb,t)}),_n=(e,t)=>t.map(a=>ll([a],{place:e})),Rt=(e,t,a)=>ll([...e],a?{vowel:t,glide:a}:{vowel:t}),oo={cho:[_n("labial",["\u3142","\u3143","\u314D","\u3141"]),_n("alveolar",["\u3137","\u3138","\u314C","\u3134","\u3139"]),_n("alveolar",["\u3145","\u3146"]),_n("palatal",["\u3148","\u3149","\u314A"]),_n("velar",["\u3131","\u3132","\u314B"]),_n("glottal",["\u314E"])],jung:[[Rt("\u3163","frontHigh"),Rt("\u315F","frontHigh","w"),Rt("\u3162","frontHigh","velar")],[Rt("\u3161","backHighUnrounded")],[Rt("\u315C","backHighRounded"),Rt("\u3160","backHighRounded","j")],[Rt("\u3154\u3150","frontMid"),Rt("\u3156\u3152","frontMid","j"),Rt("\u3159\u315A\u315E","frontMid","w")],[Rt("\u3153","backMidUnrounded"),Rt("\u3155","backMidUnrounded","j"),Rt("\u315D","backMidUnrounded","w")],[Rt("\u3157","backMidRounded"),Rt("\u315B","backMidRounded","j")],[Rt("\u314F","low"),Rt("\u3151","low","j"),Rt("\u3158","low","w")]],jong:[_n("labial",["\u3142","\u3141"]),_n("alveolar",["\u3137","\u3134","\u3139"]),_n("velar",["\u3131","\u3147"])]},Cb=e=>e===fb?[]:Array.from(e),fb="__NO_CODA__",so=e=>e.map(t=>t.map(({jamos:a,phonetic:r,tooltip:s})=>({v:a.join(""),phonetic:r,tooltip:s}))),ul={cho:so(oo.cho),jung:so(oo.jung),jong:so(oo.jong)};ul.jung.flat().forEach(({v:e})=>{for(const t of Cb(e));}),new Set(ul.cho.flat().map(e=>e.v));function gb(e,t=!0){const a=wa(e);o.useEffect(()=>{if(t)return Vn(()=>{a.current?.()})},[t,a])}function Aa(){const[e,t]=o.useState(null),a=o.useCallback(i=>t(i.getBoundingClientRect()),[]),r=o.useCallback(()=>t(null),[]),s=o.useCallback(i=>{const l=i.getBoundingClientRect();t(u=>u?null:l)},[]);return{anchorRect:e,isOpen:e!=null,openAt:a,close:r,toggleAt:s}}function bb(e){const[t,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:t,anchorRect:r,openAfterDelay:l,close:u}}function cl(e="warning"){const[t,a]=o.useState(""),[r,s]=o.useState(e),[i,l]=o.useState(0),u=o.useCallback((p,f)=>{s(f),a(p),l(b=>b+1)},[]),c=o.useCallback(p=>u(p,"warning"),[u]),d=o.useCallback(p=>u(p,"normal"),[u]),m=o.useCallback(()=>a(""),[]);return{toastMessage:t,toastType:r,toastKey:i,showToast:u,showWarning:c,showNormal:d,clearToast:m}}function ka(e){let t=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>t&&(t=r)}return t>0?`max(var(--z-menu, 1500), ${t+1})`:"var(--z-menu, 1500)"}function Na({computeStyle:e,onScroll:t="close",onResize:a="close",ignoreOutsideClickSelector:r}){const[s,i]=o.useState(!1),[l,u]=o.useState({position:"fixed"}),c=o.useRef(null),d=o.useRef(null),m=o.useCallback(()=>{c.current&&u(e(c.current.getBoundingClientRect(),c.current))},[e]);o.useLayoutEffect(()=>{s&&m()},[s,m]),o.useEffect(()=>{if(!s)return;let b=d.current?.offsetHeight??0;b>0&&m();let y=0,C=null;typeof ResizeObserver<"u"&&d.current&&(C=new ResizeObserver(()=>{const B=d.current?.offsetHeight??0;if(B!==b){if(b=B,++y>4){C?.disconnect(),C=null;return}m()}}),C.observe(d.current));const v=B=>{const x=B.target;r&&x.closest?.(r)||c.current?.contains(x)||d.current?.contains(x)||i(!1)};document.addEventListener("mousedown",v),document.addEventListener("pointerdown",v);const _=B=>{d.current?.contains(B.target)||(t==="reposition"?m():t==="close"&&i(!1))};t!=="ignore"&&window.addEventListener("scroll",_,!0);const h=()=>{a==="reposition"?m():a==="close"&&i(!1)};let w=null;const g=()=>{h(),w&&clearTimeout(w),w=setTimeout(()=>{w=null,a==="reposition"&&m()},250)};return a!=="ignore"&&(window.addEventListener("resize",h),window.addEventListener("orientationchange",g)),()=>{C?.disconnect(),document.removeEventListener("mousedown",v),document.removeEventListener("pointerdown",v),t!=="ignore"&&window.removeEventListener("scroll",_,!0),a!=="ignore"&&(window.removeEventListener("resize",h),window.removeEventListener("orientationchange",g)),w&&clearTimeout(w)}},[s,m,t,a,r]),o.useEffect(()=>{if(s)return Vn(()=>i(!1))},[s]);const p=o.useCallback(()=>i(b=>!b),[]),f=o.useCallback(()=>i(!1),[]);return{open:s,setOpen:i,toggle:p,close:f,style:l,triggerRef:c,menuRef:d}}function yb(e,{mode:t="playback",autoStart:a=!1,onPlaySpeaker:r,onComplete:s,playMs:i=1100,feedbackMs:l=1500}={}){const[u,c]=o.useState([]),[d,m]=o.useState(0),[p,f]=o.useState("idle"),[b,y]=o.useState(null),[C,v]=o.useState([]),[_,h]=o.useState(null),[w,g]=o.useState(0),B=o.useRef(0),x=o.useCallback(R=>{B.current=typeof R=="function"?R(B.current):R,g(B.current)},[]),A=o.useRef(r),N=o.useRef(s);o.useEffect(()=>{A.current=r,N.current=s},[r,s]);const k=o.useRef([]),S=()=>{k.current.forEach(clearTimeout),k.current=[]},E=(R,O)=>{k.current.push(setTimeout(O,R))};o.useEffect(()=>()=>S(),[]);const F=u[d]?.id??null,$=o.useRef(null),G=o.useCallback(()=>{S(),f("playing"),v([]),h(null),x(0);let R=0;e.forEach((O,D)=>{E(R,()=>{m(D),y(O.id),A.current?.(O)}),E(R+1e3,()=>{y(null),v(H=>[...H,O.id])}),R+=1300}),E(R,()=>{f("done"),N.current?.({score:0,total:e.length})})},[e,x]),j=o.useCallback((R,O)=>{if(O>=R.length){f("done"),N.current?.({score:B.current,total:R.length});return}$.current=null,m(O),h(null),f("playing"),y(R[O].id),A.current?.(R[O]),E(i,()=>{y(null),f("waiting")})},[i]),L=o.useCallback(()=>{S();const R=xa(e);c(R),x(0),v([]),j(R,0)},[e,j,x]),I=o.useCallback(()=>{t==="playback"?(c(e),G()):L()},[t,e,G,L]),K=o.useCallback(()=>{S(),f("idle"),y(null),v([]),h(null),m(0),x(0),c([])},[x]),ee=e.map(R=>R.id).join("|");o.useEffect(()=>(a?I():K(),()=>S()),[t,ee,a]);const V=o.useCallback(R=>{p!=="waiting"||t==="playback"||$.current===d||($.current=d,h(R),R===u[d]?.id&&x(O=>O+1),t==="exam"?(f("playing"),E(400,()=>j(u,d+1))):(f("feedback"),E(l,()=>j(u,d+1))))},[p,t,u,d,j,l,x]),q=t==="playback"?e.length:u.length;return{bind:{activeSpeakerId:b,playedIds:C,selectedId:_,answerId:F,showFeedback:p==="feedback",clickable:p==="waiting",onSelectSpeaker:V},index:d,total:q,score:w,phase:p,done:p==="done",start:I,reset:K}}function vb({title:e,description:t,actionLabel:a,onAction:r,bg:s,color:i,size:l="medium",actionVariant:u,titleColor:c,descriptionColor:d,className:m=""}){const p=s??i??"main",f=o.useRef(null),[b,y]=o.useState("main"),C=nn("(max-width: 767px)"),v=o.useRef({title:!1,description:!1});o.useLayoutEffect(()=>{const w=f.current;if(!w)return;const g=no(w),B=(x,A,N)=>{if(N!==void 0)w.style.setProperty(A,N),v.current[x]=!0;else if(v.current[x]){const k=g?.[x];k?w.style.setProperty(A,k):w.style.removeProperty(A),v.current[x]=!1}};B("title","--promo-banner-bg-title",c),B("description","--promo-banner-bg-description",d)},[c,d,p]),o.useLayoutEffect(()=>{const w=f.current;if(!w)return;const g=no(w);y(g?.actionVariant??"main")},[p]);const _=Ae("promo-banner",`promo-banner--${l}`,m),h=tl[p];return n.jsxs("div",{ref:f,className:_,role:"note",children:[n.jsx(h,{}),n.jsxs("div",{className:"promo-banner__text",children:[n.jsx("span",{className:`promo-banner__title ${l==="small"?"body-2":"h2"}`,children:e}),t&&n.jsx("span",{className:"promo-banner__description body-3",children:t})]}),a&&r&&n.jsx(pe,{htmlType:"button",size:40,variant:u??b,shape:"pill",useBorder:!0,onClick:r,ariaLabel:a,...C?{type:"dot",icon:"arrow-right"}:{rightIcon:"arrow-right",label:a,minWidth:140}})]})}function xb({children:e,interval:t=5e3,dotTone:a,className:r="","aria-label":s}){const{t:i}=ve.useTranslation(),l=s??i("topBanner.ariaLabel","\uBC30\uB108"),u=o.Children.toArray(e),c=u.length,[d,m]=o.useState(0),[p,f]=o.useState(!1),[b,y]=o.useState(!1),[C,v]=o.useState(!1),_=o.useRef(null),h=o.useRef(null),w=o.useRef(null),g=Xr(),B=p||b||C,x=c>0?Math.min(d,c-1):0;o.useEffect(()=>{if(c<2||t<=0||B||g)return;const N=window.setInterval(()=>m(k=>(Math.min(k,c-1)+1)%c),t);return()=>window.clearInterval(N)},[c,t,B,g]);const A=N=>{h.current!=null&&window.clearTimeout(h.current),h.current=window.setTimeout(()=>{h.current=null,v(!1)},N)};return o.useEffect(()=>()=>{h.current!=null&&window.clearTimeout(h.current)},[]),o.useEffect(()=>{if(!C)return;const N=k=>{k.pointerType==="touch"&&(w.current&&w.current.contains(k.target)||(h.current!=null&&(window.clearTimeout(h.current),h.current=null),v(!1)))};return document.addEventListener("pointerdown",N,!0),()=>document.removeEventListener("pointerdown",N,!0)},[C]),c===0?null:n.jsxs("section",{ref:w,className:Ae("top-banner",r),"aria-label":l,"aria-roledescription":"carousel",onPointerEnter:N=>{_.current=N.pointerType},onPointerDown:N=>{_.current=N.pointerType,N.pointerType==="touch"&&(h.current!=null&&(window.clearTimeout(h.current),h.current=null),v(!0))},onPointerUp:N=>{N.pointerType==="touch"&&A(5e3)},onPointerCancel:N=>{N.pointerType==="touch"&&A(5e3)},onMouseEnter:()=>{_.current!=="touch"&&f(!0)},onMouseLeave:()=>f(!1),onFocus:N=>{let k=!0;try{k=N.target.matches(":focus-visible")}catch{k=!0}y(k)},onBlur:N=>{N.currentTarget.contains(N.relatedTarget)||y(!1)},children:[n.jsx("div",{className:"top-banner__viewport",children:n.jsx("div",{className:"top-banner__track",style:{transform:`translateX(-${x*100}%)`},children:u.map((N,k)=>n.jsx("div",{className:"top-banner__slide","aria-hidden":k!==x,...k!==x?{inert:!0}:{},children:N},k))})}),c>1&&n.jsx("div",{className:`top-banner__dots${(a?.[x]??"light")==="dark"?" top-banner__dots--dark":""}`,children:u.map((N,k)=>n.jsx("button",{type:"button",className:`top-banner__dot${k===x?" top-banner__dot--active":""}`,"aria-label":i("topBanner.dotAriaLabel",{count:c,index:k+1,defaultValue:`${c}\uAC1C \uC911 ${k+1}\uBC88\uC9F8 \uBC30\uB108`}),"aria-current":k===x,onClick:()=>m(k)},k))})]})}function _b({title:e,body:t,open:a=!1,onToggle:r,avatar:s,titleClassName:i="body-2",bodyClassName:l="body-2",className:u=""}){const{t:c}=ve.useTranslation();return n.jsxs("div",{className:`accordion-item ${a?"accordion-item--open":""} ${u}`.trim(),role:"listitem",children:[n.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 m=d.currentTarget.closest('[role="list"]');if(!m)return;const p=Array.from(m.querySelectorAll("[data-accordion-header]")),f=p.indexOf(d.currentTarget);(d.key==="ArrowDown"?p[f+1]:p[f-1])?.focus()}},children:[s&&n.jsx("div",{className:"accordion-item__avatar",children:s}),n.jsx("div",{className:`accordion-item__title ${i}`,children:e}),n.jsx("div",{className:"accordion-item__chevron",children:n.jsx(Qe,{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&&n.jsx("div",{className:`accordion-item__body ${l}`,children:typeof t=="string"?n.jsx("p",{children:t}):t})]})}function wb({items:e=[],defaultOpenIndex:t=0,size:a=72,className:r="",bodyClassName:s}){const[i,l]=o.useState({index:t}),u=(c,d)=>i.id!=null&&c.id!=null?c.id===i.id:i.id==null&&d===i.index;return n.jsx("div",{className:`accordion-group accordion-group--s${a} ${r}`.trim(),role:"list",children:e.map((c,d)=>n.jsx(_b,{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 Bb(){return n.jsx("svg",{viewBox:"0 0 12 12",fill:"none",stroke:"currentColor",strokeWidth:2.2,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:n.jsx("polyline",{points:"2,6 5,9 10,3"})})}function Ab(){return n.jsxs("svg",{viewBox:"0 0 12 12",fill:"none",stroke:"currentColor",strokeWidth:2.2,strokeLinecap:"round","aria-hidden":"true",children:[n.jsx("line",{x1:"3",y1:"3",x2:"9",y2:"9"}),n.jsx("line",{x1:"9",y1:"3",x2:"3",y2:"9"})]})}function kb(){return n.jsx("svg",{viewBox:"0 0 12 12",fill:"none",stroke:"currentColor",strokeWidth:2.2,strokeLinecap:"round","aria-hidden":"true",children:n.jsx("line",{x1:"2.5",y1:"6",x2:"9.5",y2:"6"})})}function kt(e){const{t}=ve.useTranslation(),{type:a="bar",size:r,className:s="","aria-label":i,"aria-hidden":l}=e;if(a==="dot"){const{icon:B,number:x,position:A="top-right",onClick:N,animate:k=!1}=e,S=B??"check",E=x!==void 0?"number":S,F=typeof r=="number"?r:32,$=Ae("circle-badge",`circle-badge--${E}`,`circle-badge--${A}`,`circle-badge--${F}`,k?"circle-badge--animate":"",N?"circle-badge--clickable":"",s),G=x!==void 0?t("badge.nthSelected",{n:x,defaultValue:"{{n}}\uBC88\uC9F8 \uC120\uD0DD"}):{check:t("badge.selected","\uC120\uD0DD\uB428"),remove:t("badge.remove","\uC81C\uAC70"),minus:t("badge.exclude","\uC81C\uC678")}[S];return n.jsxs("span",{className:$,onClick:N,onKeyDown:N?j=>{j.key!=="Enter"&&j.key!==" "||(j.preventDefault(),j.currentTarget.click())}:void 0,"aria-label":l?void 0:i??G,"aria-hidden":l||void 0,role:N?"button":l?void 0:"img",tabIndex:N?0:void 0,children:[x!==void 0&&x,x===void 0&&S==="check"&&n.jsx(Bb,{}),x===void 0&&S==="remove"&&n.jsx(Ab,{}),x===void 0&&S==="minus"&&n.jsx(kb,{})]})}const{label:u,children:c,variant:d="default",fill:m="filled",minWidth:p,iconLeft:f,iconRight:b,color:y}=e,C=typeof r=="number"?"medium":r??"medium",v={small:"caption-2b",medium:"body-3b",large:"body-2b"}[C]??"body-2b",_={small:12,medium:14,large:16}[C]??14,h=Ae("badge",`badge--${d}`,`badge--${C}`,m!=="filled"?`badge--${m}`:"",v,s),w=y?.startsWith("--")?`var(${y})`:y,g=p!==void 0||w?{...p!==void 0?{minWidth:typeof p=="number"?`${p}px`:p}:{},...w?{"--badge-color":w}:{}}:void 0;return n.jsxs("span",{className:h,style:g,"aria-label":l?void 0:i,role:i&&!l?"img":void 0,"aria-hidden":l||void 0,children:[f&&n.jsx(Qe,{icon:f,size:_,className:"badge__icon"}),u??c,b&&n.jsx(Qe,{icon:b,size:_,className:"badge__icon"})]})}function Da({columns:e=[],onClose:t,className:a="",size:r="medium"}){const{t:s}=ve.useTranslation(),i=r==="small"?40:48,[l,u]=o.useState([]),c=o.useMemo(()=>{const v=[{title:null,columns:e}];let _=e;for(const h of l){const w=_?.[h.ci]?.items?.[h.ii];if(!w||!Array.isArray(w.children)||!w.children.length)break;_=[{title:null,items:w.children}],v.push({title:w.label||null,columns:_})}return v},[e,l]),d=c[c.length-1],m=c.length-1,p=o.useCallback(()=>u(v=>v.slice(0,Math.max(0,Math.min(v.length,m)-1))),[m]),f=o.useRef(null),b=o.useRef(null),y=c.length;o.useEffect(()=>{b.current||(b.current=document.activeElement);let v=0,_=0;const h=()=>{const w=f.current?.querySelector("button:not([disabled])");if(w&&w.offsetParent){w.focus({preventScroll:!0});return}_++<20&&(v=requestAnimationFrame(h))};return v=requestAnimationFrame(h),()=>cancelAnimationFrame(v)},[y]),o.useEffect(()=>()=>{b.current?.focus?.({preventScroll:!0})},[]);const C=o.useCallback((v,_,h)=>{if(v){if(Array.isArray(v.children)&&v.children.length){u(w=>[...w.slice(0,m),{ci:_,ii:h}]);return}try{typeof v.onClick=="function"&&v.onClick()}catch{}try{v&&v.closeOnSelect&&typeof t=="function"&&t()}catch{}}},[t,m]);return n.jsxs("div",{className:`tooltip-menu tooltip-menu--${r} ${a}`,children:[(c.length>1||d.title)&&n.jsxs("div",{className:"tooltip-menu__header",children:[c.length>1?n.jsx(pe,{htmlType:"button",size:i,type:"dot",icon:"chevron-left",ariaLabel:s("common.back","\uB4A4\uB85C"),onClick:p,variant:"transparent-gray",useBorder:!1}):null,n.jsx("div",{className:"tooltip-menu__title button-1",children:d.title})]}),n.jsx("div",{className:"tooltip-menu__columns",ref:f,children:d.columns&&d.columns.map((v,_)=>n.jsxs("div",{className:"tooltip-menu__column",children:[v.title?n.jsx("div",{className:"tooltip-menu__column-title body-3",children:v.title}):null,n.jsx("div",{className:"tooltip-menu__items",children:(v.items||[]).map((h,w)=>n.jsxs(o.Fragment,{children:[h.separatorBefore&&w>0&&n.jsx("div",{className:"tooltip-menu__separator",role:"separator"}),n.jsx(pe,{htmlType:"button",className:"tooltip-menu__item",size:i,type:h.label?"bar":"dot",icon:h.selected?"check":h.icon||"none",rightIcon:Array.isArray(h.children)&&h.children.length?"chevron-right":h.badgeCount?n.jsx(kt,{type:"dot",position:"inline",number:Math.min(h.badgeCount,99),size:24,"aria-hidden":!0}):void 0,label:h.label,ariaLabel:h.label&&h.badgeCount&&h.badgeCount>0?s("nav.badgeLabel",{label:h.label,count:h.badgeCount,defaultValue:"{{label}}, {{count}}\uAC1C"}):h.label,onClick:()=>C(h,_,w),selected:h.selected,disabled:h.disabled,showTooltipInfo:h.tooltip||!1,useBorder:!1,align:"left"})]},w))})]},_))})]})}const dl=".content-area";function io(e,t="Nav"){try{const a=typeof e=="string"?document.querySelector(e):e?.current??document.querySelector(dl);if(a){a.scrollTop=0;return}const r=document.scrollingElement??document.documentElement;r&&r.scrollHeight<=r.clientHeight&&Yt("nav-scroll-container",`[${t}] \uBCF8\uBB38\uC744 \uB9E8 \uC704\uB85C \uB418\uB3CC\uB9B4 \uD1B5\uC744 \uBABB \uCC3E\uC558\uB2E4(\uAE30\uBCF8 ${dl}) \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 lo=52,Ja=10,pl=e=>e&&e>0?e:0;function ml({items:e=[],activeKey:t,onChange:a,appMode:r,onAppModeChange:s,moreItems:i=[],scrollContainer:l}){const{t:u}=ve.useTranslation(),c=r==="manager"?"malgwi":"manager",d=r==="manager"?"arrow-left":"arrow-right",m=r==="manager"?u("nav.modeLabelMalgwi","\uB9D0\uADC0"):u("nav.modeLabelManager","\uB9D0\uADC0 \uB9E4\uB2C8\uC800"),p=o.useRef(null),[f,b]=o.useState(0),y=e.length;o.useEffect(()=>{const R=p.current;if(!R)return;const O=()=>{const M=typeof getComputedStyle=="function"?getComputedStyle(R):null,P=R.clientWidth-(parseFloat(M?.paddingLeft??"")||0)-(parseFloat(M?.paddingRight??"")||0),z=R.querySelector(".bottom-nav__left"),Y=z?.nextElementSibling,X=(z?.offsetWidth??0)+(z&&Y?.classList.contains("bottom-nav__divider")?Y.offsetWidth:0);b(Math.max(0,P-X))};if(O(),typeof ResizeObserver>"u")return;const D=new ResizeObserver(O);D.observe(R);const H=R.querySelector(".bottom-nav__left");return H&&D.observe(H),()=>D.disconnect()},[s]);const C=lo+1,v=R=>Math.max(0,Math.floor((R+Ja)/(lo+Ja))),_=y*(lo+Ja)-Ja<=f,h=f<=0||i.length===0&&_?y:Math.min(y,v(f-C)),w=f>0&&h<y,g=w?h:y,B=e.slice(0,g),x=e.slice(g),A=w||i.length>0,N=o.useCallback((R,O)=>({position:"fixed",bottom:window.innerHeight-R.top+8,right:window.innerWidth-R.right,zIndex:ka(O)}),[]),k=o.useId(),{open:S,toggle:E,close:F,style:$,triggerRef:G,menuRef:j}=Na({computeStyle:N,onScroll:"ignore",onResize:"reposition"}),L=o.useCallback((R,O)=>O>0?u("nav.badgeLabel",{label:R,count:O,defaultValue:"{{label}}, {{count}}\uAC1C"}):R,[u]),I=o.useCallback((R,O)=>O>0?u("nav.badgeInsideLabel",{label:R,count:O,defaultValue:"{{label}}, \uC548\uC5D0 \uC54C\uB9BC {{count}}\uAC1C"}):R,[u]),K=o.useCallback(()=>s?.(c),[s,c]),ee=o.useMemo(()=>x.find(R=>!!R.key&&R.key===t)??i.find(R=>R.selected||R.key&&R.key===t),[x,t,i]),V=o.useMemo(()=>[{items:[...x.map(R=>({label:R.label,icon:R.icon,badgeCount:R.badgeCount,selected:!!R.key&&R.key===t,closeOnSelect:!0,disabled:R.state==="disabled",onClick:()=>{R.state!=="disabled"&&(R.key&&a&&(a(R.key),io(l,"BottomNav")),F())}})),...i.map(R=>({label:R.label,icon:R.icon,badgeCount:R.badgeCount,selected:R.selected??(!!R.key&&R.key===t),closeOnSelect:!0,onClick:()=>{R.onClick?.(),F()}}))]}],[x,i,t,a,F]),q=[...x,...i].reduce((R,O)=>R+pl(O.badgeCount),0);return n.jsxs("nav",{className:"bottom-nav",ref:p,"aria-label":u("nav.bottomNav","\uD558\uB2E8 \uB124\uBE44\uAC8C\uC774\uC158"),children:[s&&n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"bottom-nav__left",children:n.jsx(pe,{htmlType:"button",size:52,type:"dot",icon:d,ariaLabel:m,className:"bottom-nav-item",onClick:K})}),n.jsx("div",{className:"bottom-nav__divider","aria-hidden":"true"})]}),n.jsx("div",{className:"bottom-nav__items",children:B.map((R,O)=>{const D=pl(R.badgeCount);return n.jsxs("span",{className:"bottom-nav__slot",children:[n.jsx(pe,{htmlType:"button",size:52,type:"dot",icon:R.icon,ariaLabel:L(R.label,D),selected:!!R.key&&R.key===t,disabled:R.state==="disabled",className:"bottom-nav-item",onClick:()=>{R.key&&(a?.(R.key),io(l,"BottomNav"))}}),D>0&&n.jsx("span",{"aria-hidden":"true",children:n.jsx(kt,{type:"dot",position:"top-right",number:Math.min(D,99),size:24})})]},R.key??`__slot-${O}`)})}),A&&n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"bottom-nav__divider","aria-hidden":"true"}),n.jsx("div",{className:"bottom-nav__right",children:n.jsxs("div",{ref:G,className:"bottom-nav__slot",children:[n.jsx(pe,{htmlType:"button",size:52,type:"dot",icon:ee?.icon??"ellipsis",ariaLabel:I(ee?.label??u("nav.more","\uB354\uBCF4\uAE30"),q),selected:!!ee,className:"bottom-nav-item",onClick:E,"aria-expanded":S,"aria-controls":S?k:void 0}),q>0&&n.jsx("span",{"aria-hidden":"true",children:n.jsx(kt,{type:"dot",position:"top-right",number:Math.min(q,99),size:24})}),S&&Qt.createPortal(n.jsx("div",{id:k,role:"group","aria-label":u("nav.moreMenu","\uB354\uBCF4\uAE30 \uBA54\uB274"),className:"tooltip-content",style:$,ref:j,children:n.jsx(Da,{columns:V,onClose:F})}),document.body)]})})]})]})}function hl(e){if(typeof e!="string")return!1;let t="";for(const r of e){const s=r.charCodeAt(0);s<=32||s>=127&&s<=159||(t+=r)}if(!t)return!1;const a=/^([a-zA-Z][a-zA-Z0-9+.-]*):/.exec(t);return a?["http","https","mailto","tel"].includes(a[1].toLowerCase()):!0}function Cl(e,t,a){return a&&a>0?e("nav.badgeLabel",{label:t,count:a,defaultValue:"{{label}}, {{count}}\uAC1C"}):t}function Nb(e){const{t}=ve.useTranslation(),{activeKey:a,unreadCount:r,onDebug:s,onNotification:i,onSetting:l,onHelp:u,onFeedback:c,onAccount:d}=e||{},m="default";return s||i||l||u||c||d?n.jsxs("div",{className:"side-nav__footer",children:[s&&n.jsx(pe,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:m,icon:"terminal",ariaLabel:t("nav.debug","\uB514\uBC84\uADF8"),onClick:s,selected:a==="debug"}),i&&n.jsxs("span",{className:"side-nav__notification-wrap",children:[n.jsx(pe,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:m,icon:"bell",ariaLabel:Cl(t,t("nav.notifications","\uC54C\uB9BC"),r),onClick:i,selected:a==="notifications"}),!!r&&r>0&&n.jsx(kt,{type:"dot",number:Math.min(r,99),size:24,"aria-hidden":!0})]}),l&&n.jsx(pe,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:m,icon:"settings",ariaLabel:t("nav.settings","\uC124\uC815"),onClick:l,selected:a==="settings"}),u&&n.jsx(pe,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:m,icon:"message-circle-question-mark",ariaLabel:t("nav.help","\uB3C4\uC6C0\uB9D0"),onClick:u,selected:a==="help"}),c&&n.jsx(pe,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:m,icon:"bug",ariaLabel:t("nav.feedback","\uBC84\uADF8\uC2E0\uACE0"),onClick:c,selected:a==="feedback"}),d&&n.jsx(pe,{htmlType:"button",size:48,showTooltipInfo:!0,type:"dot",shape:"pill",variant:m,icon:"user-round",ariaLabel:t("nav.account","\uACC4\uC815"),onClick:d,selected:a==="account"})]}):null}function fl(e){const{t}=ve.useTranslation(),{item:a,itemKey:r,label:s,icon:i,active:l,onClick:u,style:c,state:d,labelStyle:m}=e||{},p=a?.key??r??"",f=a?.label??s??"",b=a?.icon??i??"",y=a?.badge??0,C=n.jsx("span",{className:"side-nav__icon-wrap",children:n.jsx(Qe,{icon:b,label:typeof f=="string"?f:void 0,className:"side-nav__icon",maskClassName:"side-nav__icon-image",imgClassName:void 0,svgClassName:void 0})}),v=d==="disabled",_=`side-nav__item ${l?"active":""} ${d||""} ${v?"disabled":""} ${a?.child?"side-nav__item--child":""}`,h=o.useCallback(w=>{if(v)return;const g=w.detail>0;if(g)try{w.currentTarget.blur()}catch{}u?.(p,w.currentTarget,g)},[v,p,u]);return n.jsxs("button",{type:"button",className:_,onClick:h,"aria-label":typeof f=="string"?Cl(t,f,y):void 0,"aria-current":l?"page":void 0,style:c,"aria-disabled":v,children:[C,n.jsx("span",{className:"side-nav__label button-1 f",style:m,children:f}),y>0&&n.jsx(kt,{type:"dot",position:"inline",number:Math.min(y,99),size:24,"aria-hidden":!0}),d==="loading"&&n.jsx("span",{className:"side-nav__spinner",role:"img","aria-label":t("loader.loading","\uBD88\uB7EC\uC624\uB294 \uC911\u2026")})]})}function gl(e){const{t}=ve.useTranslation(),{items:a=[],activeKey:r,onChange:s,unreadCount:i,onDebug:l,onNotification:u,onAccount:c,onSetting:d,onHelp:m,onFeedback:p,appMode:f,onAppModeChange:b,scrollContainer:y}=e||{},C=f==="manager",v=o.useCallback(()=>b?.(C?"malgwi":"manager"),[b,C]),_=o.useRef(null),[h,w]=o.useState(null);o.useEffect(()=>{const N=_.current;if(!N)return;const k=()=>{const{scrollHeight:E,clientHeight:F,scrollTop:$}=N;if(E<=F+1){w(null);return}const G=Math.max(24,F/E*F),j=F-G,L=E-F;w({top:Math.round($/L*j),height:Math.round(G)})};k(),N.addEventListener("scroll",k,{passive:!0});const S=typeof ResizeObserver<"u"?new ResizeObserver(k):null;S?.observe(N);for(const E of Array.from(N.children))S?.observe(E);return()=>{N.removeEventListener("scroll",k),S?.disconnect()}},[a]);const g=o.useRef(null),B=o.useCallback(N=>{const k=_.current;k&&(N.preventDefault(),g.current={y:N.clientY,top:k.scrollTop},N.currentTarget.setPointerCapture(N.pointerId))},[]),x=o.useCallback(N=>{const k=_.current,S=g.current;!k||!S||(k.scrollTop=S.top+(N.clientY-S.y)*(k.scrollHeight/k.clientHeight))},[]),A=o.useCallback(N=>{g.current=null,N.currentTarget.hasPointerCapture(N.pointerId)&&N.currentTarget.releasePointerCapture(N.pointerId)},[]);return n.jsxs("nav",{ref:_,"aria-label":t("nav.mainMenu","\uBA54\uC778 \uBA54\uB274"),className:"side-nav__menu",children:[h&&n.jsx("div",{className:"side-nav__scroll","aria-hidden":"true",children:n.jsx("div",{className:"side-nav__scroll-thumb",style:{top:h.top,height:h.height},onPointerDown:B,onPointerMove:x,onPointerUp:A,onPointerCancel:A})}),n.jsxs("div",{className:"side-nav__menu-list",children:[(a||[]).filter(N=>!N.section&&(N.key||N.label)).map((N,k)=>n.jsxs(o.Fragment,{children:[N.divider&&n.jsx("div",{className:"side-nav__separator"}),n.jsx(fl,{item:N,active:!!N.key&&N.key===r,state:N.disabled?"disabled":void 0,onClick:(S,E,F)=>{if(N.disabled)return;if(N.href){if(hl(N.href)&&window.open(N.href,"_blank","noopener,noreferrer"),F)try{E?.blur()}catch{}return}if(s?.(N.key),io(y,"SideNav"),!F)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 $=document.querySelector(".header");if($){const G=typeof $.matches=="function";if(!(window.matchMedia("(hover: hover)").matches&&G&&$.matches(":hover"))){$.classList.add("header--force-collapsed");const j=()=>{$.classList.remove("header--force-collapsed"),$.removeEventListener("mouseenter",j)};$.addEventListener("mouseenter",j)}}}})]},N.key??`side-nav__item-${k}`)),b&&n.jsx("div",{className:"side-nav__separator side-nav__separator--short"}),b&&n.jsx(fl,{item:{key:"__mode-switch__",label:C?t("nav.goToMalgwi","\uB9D0\uADC0\uB85C \uC774\uB3D9"):t("nav.goToManager","\uB9D0\uADC0\uB9E4\uB2C8\uC800\uB85C \uC774\uB3D9"),icon:C?"arrow-left":"arrow-right"},onClick:v})]}),n.jsx(Nb,{activeKey:r,unreadCount:i,onDebug:l,onNotification:u,onAccount:c,onSetting:d,onHelp:m,onFeedback:p})]})}var Qa='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',uo='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',Db='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 bl({appMode:e}){const{t}=ve.useTranslation(),a=e==="manager",r=a?uo:Qa,s=Db;return n.jsxs("div",{className:"brand-identity__root","aria-label":t("header.biArea","BI \uC601\uC5ED"),children:[n.jsx("img",{src:s,alt:t("header.biSymbol","BI \uC2EC\uBCFC"),className:"brand-identity__image brand-identity__image--symbol"}),n.jsx("img",{src:r,alt:a?t("header.logoManager","\uB9D0\uADC0\uB9E4\uB2C8\uC800 \uB85C\uACE0"):t("header.logoMalgwi","\uB9D0\uADC0 \uB85C\uACE0"),className:"brand-identity__image brand-identity__image--logo"})]})}function yl({activeKey:e,onChange:t,items:a,malgwiItems:r,managerItems:s,unreadCount:i,onDebug:l,onNotification:u,onAccount:c,onSetting:d,onHelp:m,onFeedback:p,appMode:f,onAppModeChange:b,scrollContainer:y}){const{t:C}=ve.useTranslation(),v=nn("(max-width: 767px)"),_=o.useMemo(()=>(a??[]).filter($=>!$.section&&($.key||$.label)).map($=>({key:$.key,label:typeof $.label=="string"?$.label:void 0,icon:$.icon,state:$.disabled?"disabled":void 0,badgeCount:$.badge})),[a]),h=o.useCallback($=>{const G=a?.find(j=>j.key===$);if(!G?.disabled){if(G?.href){hl(G.href)&&window.open(G.href,"_blank","noopener,noreferrer");return}t?.($)}},[a,t]),w=o.useMemo(()=>{const $=[];return l&&$.push({key:"debug",icon:"terminal",label:C("nav.debug","\uB514\uBC84\uADF8"),onClick:l}),u&&$.push({key:"notifications",icon:"bell",label:C("nav.notifications","\uC54C\uB9BC"),badgeCount:i,onClick:u}),d&&$.push({key:"settings",icon:"settings",label:C("nav.settings","\uC124\uC815"),onClick:d}),m&&$.push({key:"help",icon:"message-circle-question-mark",label:C("nav.help","\uB3C4\uC6C0\uB9D0"),onClick:m}),p&&$.push({key:"feedback",icon:"bug",label:C("nav.feedback","\uBC84\uADF8\uC2E0\uACE0"),onClick:p}),c&&$.push({key:"account",icon:"user-round",label:C("nav.account","\uACC4\uC815"),onClick:c}),$},[C,l,u,d,m,p,c,i]),g=o.useCallback(($,G)=>({position:"fixed",top:$.bottom+8,right:Math.max(8,window.innerWidth-$.right),zIndex:ka(G)}),[]),B=o.useId(),{open:x,toggle:A,close:N,style:k,triggerRef:S,menuRef:E}=Na({computeStyle:g,onScroll:"ignore",onResize:"reposition"}),F=o.useMemo(()=>[{items:w.map($=>({label:$.label,icon:$.icon,badgeCount:$.badgeCount,selected:$.selected??(!!$.key&&$.key===e),closeOnSelect:!0,onClick:()=>{$.onClick?.(),N()}}))}],[w,e,N]);return n.jsxs("aside",{className:`header${f==="manager"?" header--manager":""}`,children:[n.jsxs("div",{className:"header__bi",children:[n.jsx(bl,{appMode:f}),n.jsxs("div",{className:"header__menu-button",ref:S,children:[n.jsx(pe,{htmlType:"button",size:48,type:"dot",shape:"pill",variant:"default",useBorder:!1,icon:"menu",ariaLabel:u&&i&&i>0?C("nav.badgeInsideLabel",{label:C("header.menuOpen","\uBA54\uB274 \uC5F4\uAE30"),count:i,defaultValue:"{{label}}, \uC548\uC5D0 \uC54C\uB9BC {{count}}\uAC1C"}):C("header.menuOpen","\uBA54\uB274 \uC5F4\uAE30"),onClick:A,"aria-expanded":x,"aria-controls":x?B:void 0}),!!u&&!!i&&i>0&&n.jsx(kt,{type:"dot",number:Math.min(i,99),size:24,"aria-hidden":!0}),x&&Qt.createPortal(n.jsx("div",{id:B,role:"group","aria-label":C("header.utilMenu","\uC720\uD2F8\uB9AC\uD2F0 \uBA54\uB274"),className:"tooltip-content",style:k,ref:E,children:n.jsx(Da,{columns:F,onClose:N})}),document.body)]})]}),n.jsx(gl,{scrollContainer:y,items:a,activeKey:e??void 0,onChange:t,unreadCount:i,onDebug:l,onNotification:u,onAccount:c,onSetting:d,onHelp:m,onFeedback:p,appMode:f,onAppModeChange:b}),v&&n.jsx(ml,{items:_,activeKey:e??void 0,onChange:h,scrollContainer:y,appMode:f,onAppModeChange:b})]})}const Eb=yl,Sb=()=>$t.t("passCard.planSuffix","\uC774\uC6A9\uAD8C");function vl(e){if(!(e==null||e==="")){if(typeof e=="string"&&/^\s*\d[\d,]*\s*$/.test(e)){const t=Number(e.replace(/[,\s]/g,""));if(Number.isFinite(t))return ta(`${t.toLocaleString("ko-KR")}\uC6D0`)}return ta(typeof e=="number"?`${e.toLocaleString("ko-KR")}\uC6D0`:e)}}function jb(e){const t=`${e.code??""} ${e.name??""}`.toLowerCase();return/manager|매니저/.test(t)?"manager":"speechear"}function Tb(e){if(e.durationDays&&e.durationDays>0){const i=e.durationDays;return i%365===0?`${i/365}\uB144`:`${i}\uC77C`}const t=(e.code??"").match(/(\d+)(d|y)\b/i);if(t)return t[2].toLowerCase()==="y"?`${t[1]}\uB144`:`${t[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||Sb()}function Mb(e){const t=(e??"").match(/(\d+)(d|y)\b/i);if(!t)return null;const a=Number(t[1]);return t[2].toLowerCase()==="y"?a*365:a}function xl(e){return{type:e.type??jb(e),plan:Tb(e),label:e.label,price:vl(e.price),originalPrice:vl(e.originalPrice),discountLabel:e.discountLabel}}var Lb='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',$b='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>',Rb='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',Pb='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',Ib='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>',Fb='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',_l='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 Un={text:"--pass-card-text",sub:"--pass-card-sub",copyright:"--pass-card-copyright"},co=new WeakMap;function Ob(e){if(e)return co.get(e)}function wn(e,t){e&&(e.style.setProperty(Un.text,t.text),e.style.setProperty(Un.sub,t.sub),t.copyrightColor&&e.style.setProperty(Un.copyright,t.copyrightColor),co.set(e,t))}function Bn(e){e&&(e.style.removeProperty(Un.text),e.style.removeProperty(Un.sub),e.style.removeProperty(Un.copyright),co.delete(e))}const wl={text:"var(--color-pureBlack)",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"#1a1a1a"};function Bl(e={}){const t=At(wl,wn,Bn);return n.jsxs("div",{ref:t,className:"pass-card-bg pass-card-bg-two-circle","aria-hidden":"true",children:[n.jsx("div",{className:"pass-card-bg-two-circle__c1"}),n.jsx("div",{className:"pass-card-bg-two-circle__c3"}),n.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-two-circle__symbol",style:{"--symbol-url":`url("${_l}")`}})]})}const Al="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 Ea='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 Hb={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"var(--color-main)"},zb=[{scale:1,opacity:.55},{scale:2,opacity:.4},{scale:3.1,opacity:.28},{scale:4.5,opacity:.18},{scale:6,opacity:.1}];function kl(e={}){const t=At(Hb,wn,Bn),a="var(--color-main)",r=270,s=170;return n.jsxs("div",{ref:t,className:"pass-card-bg pass-card-bg-sound-move","aria-hidden":"true",children:[n.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:zb.map(({scale:i,opacity:l},u)=>n.jsx("g",{transform:`translate(${r} ${s}) scale(${i}) translate(-50 -50)`,opacity:l,children:n.jsx("path",{d:Al,fill:"none",stroke:a,strokeWidth:"1.5",vectorEffect:"non-scaling-stroke"})},u))}),n.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-sound-move__symbol",style:{"--symbol-url":`url("${Ea}")`}})]})}const Vb={text:"#ffffff",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",logoColor:"_white",copyrightColor:"#ffffff"},Wb=[{scale:1,opacity:.55},{scale:2,opacity:.4},{scale:3.1,opacity:.28},{scale:4.5,opacity:.18},{scale:6,opacity:.1}];function qb(e={}){const t=At(Vb,wn,Bn),a="#ffffff",r=270,s=170;return n.jsxs("div",{ref:t,className:"pass-card-bg pass-card-bg-sound-move-v1","aria-hidden":"true",children:[n.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:Wb.map(({scale:i,opacity:l},u)=>n.jsx("g",{transform:`translate(${r} ${s}) scale(${i}) translate(-50 -50)`,opacity:l,children:n.jsx("path",{d:Al,fill:"none",stroke:a,strokeWidth:"1.5",vectorEffect:"non-scaling-stroke"})},u))}),n.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-sound-move-v1__symbol",style:{"--symbol-url":`url("${_l}")`}})]})}const Ub={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"var(--color-main)"};function Gb(e={}){const t=At(Ub,wn,Bn);return n.jsxs("div",{ref:t,className:"pass-card-bg pass-card-bg-talk","aria-hidden":"true",children:[n.jsx("div",{className:"pass-card-bg-talk__shape pass-card-bg-talk__shape--left"}),n.jsx("div",{className:"pass-card-bg-talk__shape pass-card-bg-talk__shape--right"}),n.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-talk__symbol",style:{"--symbol-url":`url("${Ea}")`}})]})}const Kb={Logo_speechear_kr:{"":Qa,_white:Lb,_textWhite:$b,_black:Rb},Logo_speechearManager_kr:{"":uo,_white:Pb,_textWhite:Ib,_black:Fb}};function Yb(e,t){if(e)return Kb[e]?.[t??""]??void 0}const Zb={speechear:Qa,manager:uo},Xb={speechear:"Logo_speechear_kr",manager:"Logo_speechearManager_kr"},Nl=10;function Jb(e){return e<=0?0:e>=86400?Math.floor(e/86400)*86400:e>=3600?Math.floor(e/3600)*3600:e>=60?Math.floor(e/60)*60:Math.floor(e)}function Dl(e,t){if(e<=0)return t("passCard.remainingSecond",{n:0});const a=Math.floor(e/86400);if(a>0)return t("passCard.remainingDay",{n:a});const r=Math.floor(e/3600);if(r>0)return t("passCard.remainingHour",{n:r});const s=Math.floor(e/60);return s>0?t("passCard.remainingMinute",{n:s}):t("passCard.remainingSecond",{n:Math.floor(e)})}function Qb(e,t,a){if(e==="manager"){const r=/년/.test(t)||/yr|year/i.test(t)||/1년|365/.test(t),s=a==="\uC624\uD508\uD2B9\uAC00"||a===$t.t("passCard.specialLabel");return r?n.jsx(Gb,{}):s?n.jsx(qb,{}):n.jsx(kl,{})}return n.jsx(Bl,{})}function El({ariaLabel:e,product:t,showPrice:a=!1,plan:r,type:s,endDate:i,remainingSeconds:l,endInclusive:u=!1,state:c="active",bg:d,bgOnly:m=!1,textColor:p,subColor:f,copyrightColor:b,logoSrc:y,label:C,price:v,originalPrice:_,discountLabel:h,onUse:w,onRefund:g,onDelete:B}){const{t:x}=ve.useTranslation(),A=t?xl(t):void 0,N=s??A?.type??"speechear",k=r??A?.plan??x("passCard.planSuffix","\uC774\uC6A9\uAD8C"),S=C??A?.label,E=v??(a?A?.price:void 0),F=_??(a?A?.originalPrice:void 0),$=h??A?.discountLabel,G=o.useMemo(()=>{if(E)return null;const W=t?.durationDays??Mb(t?.code);if(!W||W<=0)return l!=null?{percent:null,remainingLabel:Dl(l,x)}:null;const ae=W*86400;let fe;if(l!=null)fe=l;else if((c==="active"||c==="expired")&&i){const te=new Date(i).getTime();if(Number.isNaN(te))return null;const ce=/^(\d{4})-(\d{2})-(\d{2})/.exec(String(i)),de=/^(\d{4})-(\d{2})-(\d{2})/.exec(_a()),he=Math.round(ce&&de?(Date.UTC(+ce[1],+ce[2]-1,+ce[3])-Date.UTC(+de[1],+de[2]-1,+de[3]))/864e5:(te-Date.now())/864e5);fe=Math.max(0,u?he+1:he)*86400}else c==="expired"?fe=0:fe=ae;const Ne=Jb(fe),ge=Math.max(0,Math.min(100,Math.floor(Math.min(Ne,ae)/ae*100)));return c==="pending"&&ge>=100?null:{percent:ge,remainingLabel:c==="expired"?x("passCard.expired","\uB9CC\uB8CC\uB428"):Dl(fe,x)}},[E,c,i,l,u,t?.durationDays,t?.code,x]),j=o.useRef(null),[L,I]=o.useState({}),[K,ee]=o.useState(null),V=!!(w||g||B),q=o.useRef(!1),R=o.useRef(void 0),[O,D]=o.useState(y);o.useLayoutEffect(()=>{D(y)},[y]),o.useLayoutEffect(()=>{const W=j.current;W&&(p!==void 0&&W.style.setProperty("--pass-card-text",p),f!==void 0&&W.style.setProperty("--pass-card-sub",f),b!==void 0&&W.style.setProperty("--pass-card-copyright",b))},[p,f,b]),o.useLayoutEffect(()=>{const W=j.current;if(!W)return;const ae=Ob(W);if(!y){const fe=Xb[N],Ne=c==="expired"?"_black":ae?.logoColor??"",ge=Yb(fe,Ne);D(ge)}},[d,y,N,c]);const H=W=>{const ae=j.current;if(!ae)return null;const{left:fe,top:Ne,width:ge,height:te}=ae.getBoundingClientRect(),ce=(W.clientX-fe)/ge-.5;return{rotateX:-((W.clientY-Ne)/te-.5)*Nl,rotateY:ce*Nl}},M=(W,ae)=>{const fe=ae*-.7,Ne=W*.7+10,ge=20+(Math.abs(W)+Math.abs(ae))*.4;return`${fe}px ${Ne}px ${ge}px rgba(0, 0, 0, 0.18)`},P=o.useCallback(W=>{if(ra())return;q.current=!0,clearTimeout(R.current),R.current=setTimeout(()=>{q.current=!1},200);const ae=H(W);ae&&I({transform:`perspective(800px) rotateX(${ae.rotateX}deg) rotateY(${ae.rotateY}deg) scale3d(1.03, 1.03, 1.03)`,boxShadow:M(ae.rotateX,ae.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)"})},[]),z=o.useCallback(W=>{if(ra())return;const ae=H(W);if(!ae)return;const fe=q.current?"transform 0.2s ease, box-shadow 0.2s ease":"none";I({transform:`perspective(800px) rotateX(${ae.rotateX}deg) rotateY(${ae.rotateY}deg) scale3d(1.03, 1.03, 1.03)`,boxShadow:M(ae.rotateX,ae.rotateY),transition:fe})},[]),Y=o.useCallback(()=>{clearTimeout(R.current),q.current=!1,I({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)"})},[]),X=o.useCallback(()=>ee(null),[]),Z=o.useMemo(()=>{const W=x("passCard.planSuffix","\uC774\uC6A9\uAD8C"),ae=k.replace("\uC774\uC6A9\uAD8C","").replace(W==="\uC774\uC6A9\uAD8C"?"":W,"").trim(),fe=ae.match(/^(.*?)(일|년)$/);return fe?n.jsxs(n.Fragment,{children:[n.jsx("span",{className:"h0 pass-card__plan-number",children:fe[1]}),n.jsx("span",{className:"h5b pass-card__plan-unit",children:fe[2]==="\uB144"?x("passCard.unitYear","\uB144"):x("passCard.unitDay","\uC77C")})]}):n.jsx("span",{className:"h0",children:ae})},[k,x]),ne=o.useMemo(()=>{const W=ta(E);if(!W)return null;const ae=W.match(/^([^\d]*)([\d.,]+)(.*)$/);if(!ae)return n.jsx("span",{className:"h1",children:W});const[,fe,Ne,ge]=ae;return n.jsxs(n.Fragment,{children:[fe&&n.jsx("span",{className:"h5 pass-card__price-symbol",children:fe}),n.jsx("span",{className:"h1 pass-card__price-amount",children:Ne}),ge.trim()&&n.jsx("span",{className:"h5 pass-card__price-symbol",children:ge.trim()})]})},[E]),le=o.useCallback(()=>{V&&ee(W=>{if(W)return null;const ae=j.current?.getBoundingClientRect();if(!ae)return null;const fe=50;return{left:ae.left,right:ae.right,width:ae.width,height:ae.height,x:ae.x,y:ae.y+fe,top:ae.top+fe,bottom:ae.bottom+fe}})},[V]),ie=o.useCallback(W=>{V&&(W.key==="Enter"||W.key===" ")&&(W.preventDefault(),le())},[V,le]),Ee=[{items:[...w?[{label:x("passCard.menu.use","\uC0AC\uC6A9\uD558\uAE30"),icon:"play",onClick:()=>{w(),ee(null)},closeOnSelect:!0}]:[],...g?[{label:x("passCard.menu.refund","\uD658\uBD88\uD558\uAE30"),icon:"rotate-ccw",onClick:()=>{g(),ee(null)},closeOnSelect:!0}]:[],...B?[{label:x("passCard.menu.delete","\uC0AD\uC81C\uD558\uAE30"),icon:"trash-2",onClick:()=>{B(),ee(null)},closeOnSelect:!0}]:[]]}];return n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"pass-card-frame",children:n.jsxs("div",{ref:j,className:`pass-card pass-card--${c}${V?" pass-card--clickable":""}`,style:L,onMouseEnter:P,onMouseMove:z,onMouseLeave:Y,onPointerUp:W=>{W.pointerType==="touch"&&Y()},onPointerCancel:W=>{W.pointerType==="touch"&&Y()},onClick:le,onKeyDown:V?ie:void 0,role:V?"button":void 0,tabIndex:V?0:void 0,"aria-label":e,"aria-haspopup":V?"menu":void 0,"aria-expanded":V?!!K:void 0,children:[d??Qb(N,k,S),!m&&n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"pass-card__top",children:n.jsxs("div",{className:"pass-card__top-left",children:[n.jsx("img",{src:O??Zb[N],className:"pass-card__logo",alt:N==="manager"?x("header.logoManager","\uB9D0\uADC0\uB9E4\uB2C8\uC800 \uB85C\uACE0"):x("header.logoMalgwi","\uB9D0\uADC0 \uB85C\uACE0")}),n.jsxs("div",{className:"pass-card__plan",children:[n.jsx("div",{children:Z}),n.jsx("span",{className:"h5b pass-card__plan-suffix",children:S?x("passCard.labeledPlan",{label:S}):x("passCard.planSuffix","\uC774\uC6A9\uAD8C")})]})]})}),E?n.jsxs("div",{className:"pass-card__price-area",children:[$&&n.jsx("span",{className:"pass-card__discount body-3",children:$}),n.jsxs("div",{className:"pass-card__price",children:[F&&n.jsx("span",{className:"pass-card__price-original body-3",children:ta(F)}),ne]})]}):G?n.jsxs("div",{className:"pass-card__usage",children:[n.jsx("span",{className:"h5b pass-card__usage-remaining",children:G.remainingLabel}),G.percent!=null&&n.jsxs("span",{className:"pass-card__usage-percent",children:[n.jsx("span",{className:"h1 pass-card__usage-value",children:G.percent}),n.jsx("span",{className:"h5b pass-card__usage-symbol",children:"%"})]})]}):n.jsx("div",{className:"pass-card__copyright caption-2","aria-hidden":"true",children:"\xA9 IHAB Corp. All rights reserved."})]})]})}),K&&n.jsx(ln,{anchorRect:K,onClose:X,ariaLabel:x("tooltip.menu","\uBA54\uB274"),children:n.jsx(Da,{columns:Ee,onClose:X,size:"small"})})]})}const e4={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"#1a1a1a"};function t4(e={}){const t=`passcard-sound-line-grad-${o.useId()}`,a=At(e4,wn,Bn);return n.jsxs("div",{ref:a,className:"pass-card-bg pass-card-bg-sound-line","aria-hidden":"true",children:[n.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:[n.jsx("defs",{children:n.jsxs("linearGradient",{id:t,x1:"0",y1:"0",x2:"1",y2:"0",children:[n.jsx("stop",{offset:"20%",stopColor:"var(--color-main)"}),n.jsx("stop",{offset:"80%",stopColor:"var(--color-sub)"})]})}),n.jsx("g",{transform:"translate(25, 45)",children:n.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(#${t})`,strokeWidth:"50",strokeLinecap:"round"})})]}),n.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-sound-line__symbol",style:{"--symbol-url":`url("${Ea}")`}})]})}const n4={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"var(--color-main)"};function a4(e={}){const t=At(n4,wn,Bn);return n.jsxs("div",{ref:t,className:"pass-card-bg pass-card-bg-talk-v1","aria-hidden":"true",children:[n.jsx("div",{className:"pass-card-bg-talk-v1__shape pass-card-bg-talk-v1__shape--left"}),n.jsx("div",{className:"pass-card-bg-talk-v1__shape pass-card-bg-talk-v1__shape--right"}),n.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-talk-v1__symbol",style:{"--symbol-url":`url("${Ea}")`}})]})}function r4(e,t){if(e){if(t==="manager_pro")return n.jsx(a4,{});if(t==="manager_standard")return n.jsx(t4,{});if(t==="manager_lite")return n.jsx(kl,{})}}function o4(e){const t=ta(e);if(!t)return null;const a=t.match(/^([^\d]*)([\d.,]+)(.*)$/);if(!a)return t;const[,r,s,i]=a;return n.jsxs(n.Fragment,{children:[r&&n.jsx("span",{className:"payment-plan__pricing-symbol h4",children:r}),s,i.trim()&&n.jsx("span",{className:"payment-plan__pricing-symbol h4",children:i.trim()})]})}function s4(e){const{t}=ve.useTranslation(),a=t("payment.plan.tierFallback",{defaultValue:"\uC774\uC6A9\uAD8C"}),r=t("payment.plan.openPromo",{defaultValue:"\uC624\uD508 \uD2B9\uAC00"}),{plan:s,onSelect:i,period:l="monthly",ownedCodes:u}=e||{},c=g=>!!g&&!!u?.includes(g),d=g=>g.onceOnly??/오픈\s*특가/.test(g.label??""),m=(s.tiers||[]).some(g=>d(g)&&c(g.code)),p=g=>{const B=g.prices?g.prices[l]:g.price;return B?(s.tiers||[]).some(x=>!!x.badge&&x.originals?.[l]===B):!1},f=s.colorToken?`var(--color-${s.colorToken})`:"var(--color-gray)",b=t("payment.plan.freePrice","\uBB34\uB8CC"),y=t("payment.products.mgrEnterprise.tier.price","\uBB38\uC758"),C=g=>g.prices?g.prices[l]:g.price,v=(s.tiers||[]).length>0&&(s.tiers||[]).every(g=>{const B=C(g);return B==="\uBB34\uB8CC"||B===b||B==="0\uC6D0"||typeof B=="string"&&/\d/.test(B)&&!/[1-9]/.test(B)}),_=(s.tiers||[]).length>0&&(s.tiers||[]).every(g=>{const B=C(g);return B==="\uBB38\uC758"||B===y}),h=s.group==="org",w=h?"manager":"speechear";return n.jsxs("div",{className:"payment-plan__card",style:{borderColor:f,"--plan-color":f},children:[s.cardBadge&&n.jsx("div",{className:"payment-plan__card-badge",children:n.jsx(kt,{label:s.cardBadge,variant:"main",size:"medium",fill:"soft"})}),n.jsxs("div",{className:"payment-plan__title",children:[n.jsx("p",{className:"payment-plan__quote body-3b",style:{color:f},children:s.quote||"\xA0"}),n.jsx("h3",{className:"payment-plan__title-heading h1",children:s.tier??s.title}),n.jsx("p",{className:"payment-plan__subtitle body-3",children:s.subtitle})]}),n.jsxs("div",{className:"payment-plan__box",children:[n.jsx("span",{className:"payment-plan__box-title body-3b",children:t("payment.plan.recommendedFor","\uC774\uB7F0 \uBD84\uAED8 \uCD94\uCC9C\uD569\uB2C8\uB2E4.")}),n.jsx("ul",{className:"payment-plan__feature-list",children:(s.recommendedFor||[]).map((g,B)=>n.jsxs("li",{className:"payment-plan__feature-item body-3",children:[n.jsx(Qe,{icon:"check",size:18,className:"payment-plan__feature-check",wrapperStyle:{color:f}}),g]},B))})]}),n.jsxs("div",{className:"payment-plan__box",children:[n.jsx("span",{className:"payment-plan__box-title body-3b",children:t("payment.plan.features","\uD575\uC2EC \uAE30\uB2A5")}),n.jsx("ul",{className:"payment-plan__feature-list",children:(s.features||[]).map((g,B)=>n.jsxs("li",{className:"payment-plan__feature-item body-3",children:[n.jsx(Qe,{icon:"check",size:18,className:"payment-plan__feature-check",wrapperStyle:{color:f}}),g]},B))})]}),n.jsx("div",{className:"payment-plan__card-pricing",children:v?null:_?n.jsx(pe,{htmlType:"button",className:"payment-plan__contact-button",label:t("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})}):n.jsx(n.Fragment,{children:n.jsx("div",{className:"payment-plan__pricing-list",children:(s.tiers||[]).map(g=>{const B=g.label||a,x=d(g),A=x||g.openPromo===!0,N=B.replace(/^오픈\s*특가\s*/,"")||a,k=g.prices?g.prices[l]:g.price,S=g.badge?A?`${r}
|
|
852
|
+
${g.badge}`:g.badge:void 0;if(x&&c(g.code))return null;if(!g.badge&&!m)return p(g)?null:n.jsxs("div",{className:`payment-plan__pricing-row payment-plan__pricing-row--static${g.highlight?" payment-plan__pricing-row--highlight":""}`,children:[n.jsx("div",{className:"payment-plan__pricing-row-title",children:n.jsx("div",{className:"payment-plan__pricing-row-label h5b",children:g.label})}),n.jsx("div",{className:"payment-plan__pricing-row-price",children:n.jsx("span",{className:"payment-plan__pricing-current h1",children:o4(k)})})]},g.id);const E=s.tier??(h?s.title:void 0),F=n.jsx(El,{showPrice:!0,product:{type:w,code:g.code,name:N,label:E,price:k,originalPrice:g.originals?.[l]??void 0,discountLabel:S},bg:r4(h,s.id)}),$=()=>i?.({...g,productId:s.id,productTitle:s.title,preview:F});return n.jsx("div",{className:"payment-plan__pricing-card",onClick:$,onKeyDown:i?G=>{G.target===G.currentTarget&&(G.key==="Enter"||G.key===" ")&&(G.preventDefault(),$())}:void 0,role:i?"button":void 0,tabIndex:i?0:void 0,children:F},g.id)})})})})]})}function i4({variant:e="default"}){return n.jsxs("div",{className:`pass-card-bg pass-card-bg--${e}`,"aria-hidden":"true",children:[n.jsx("div",{className:"pass-card-bg__circle pass-card-bg__circle--1"}),n.jsx("div",{className:"pass-card-bg__circle pass-card-bg__circle--2"}),n.jsx("div",{className:"pass-card-bg__circle pass-card-bg__circle--3"})]})}var po='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 Sl={text:"#1a1a1a",sub:"var(--color-lightGray)",logoBase:"Logo_speechear_kr",copyrightColor:"#c9c9c9"};function l4(){const e=At(Sl,wn,Bn);return n.jsx("div",{ref:e,className:"pass-card-bg pass-card-bg-ihab","aria-hidden":"true",children:n.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-ihab__symbol-top",style:{"--symbol-url":`url("${po}")`}})})}const jl={text:"#ffffff",sub:"var(--color-lightGray)",logoBase:"Logo_speechearManager_kr",logoColor:"_white",copyrightColor:"#ffffff"};function u4(e={}){const t=At(jl,wn,Bn);return n.jsxs("div",{ref:t,className:"pass-card-bg pass-card-bg-left-color-grid","aria-hidden":"true",children:[n.jsx("div",{className:"pass-card-bg-left-color-grid__bar"}),n.jsx("div",{className:"pass-card-bg-left-color-grid__grid"}),n.jsx("span",{className:"pass-card-bg__symbol pass-card-bg-left-color-grid__symbol",style:{"--symbol-url":`url("${Ea}")`}})]})}function Tl({keys:e,anchor:t="top-right",scale:a,className:r=""}){const s=Array.isArray(e)?e:[e];return n.jsx("span",{className:Ae("shortcut-badge",`shortcut-badge--${t}`,r),style:a===void 0?void 0:{"--shortcut-badge-scale":String(a)},children:s.map((i,l)=>n.jsxs("span",{className:"shortcut-badge__group",children:[l>0&&n.jsx("span",{className:"shortcut-badge__plus",children:"+"}),n.jsx("kbd",{className:"shortcut-badge__key",children:i})]},`${i}-${l}`))})}const Sa=(e,t,a)=>e+(t-e)*a;function c4({speakers:e,size:t=300,viewT:a=0,activeSpeakerId:r=null,playedIds:s,selectedId:i=null,answerId:l=null,showFeedback:u=!1,pulseSelected:c=!1,pulseSelectedDuration:d,pulseScale:m,clickable:p=!1,onSelectSpeaker:f,buttonSize:b=40,showIcon:y=!0,onCenterClick:C,centerLabel:v,centerDisabled:_=!1,centerAttention:h=!1,shortcutAnchor:w="top-right",shortcutScale:g,scaleShortcut:B=!1}){const{t:x}=ve.useTranslation(),A=Math.max(0,Math.min(1,a)),N=t/2,k=110/300,S=.18,E=W=>t*(k+(W-1)*S),F=W=>{const ae=E(W.row??1),fe=W.angleDeg*Math.PI/180;return{x:N+ae*Math.cos(fe),y:N+ae*Math.sin(fe)}},$=Math.max(...e.map(W=>W.row??1),1),G=t*.08,j=t*.1,L=t*.24,I=t-2*G,K=t-j-L,ee=t-L/2,V=o.useMemo(()=>[...new Set(e.map(W=>W.deg))].sort((W,ae)=>W-ae),[e]),q=V.length,R=Math.max(68,q>1?I/(q-1):0),O=o.useMemo(()=>new Map(V.map((W,ae)=>[W,ae])),[V]),D=W=>{const ae=O.get(W.deg)??0,fe=N+(ae-(q-1)/2)*R,Ne=$>1?Math.min(68,K/($-1)):0,ge=Ne*($-1),te=j+(K-ge)/2,ce=$===1?j+K*.4:te+($-(W.row??1))*Ne;return{x:fe,y:ce}},H=W=>{const ae=F(W),fe=D(W);return{x:Sa(ae.x,fe.x,A),y:Sa(ae.y,fe.y,A)}},M={x:N,y:Sa(N,ee,A)},P=Math.round(b*1.2),z=Math.round(Math.max(16,Math.min(80,b*.7))),Y=[],X=new Map;for(const W of e){const ae=W.row??1;X.has(ae)||X.set(ae,[]),X.get(ae).push(W)}for(const[W,ae]of X.entries()){if(ae.length<2)continue;const fe=[...ae].sort((Ie,Ct)=>Ie.deg-Ct.deg),Ne=fe.map(Ie=>H(Ie)),ge=fe.map(Ie=>Ie.deg),te=ge[ge.length-1]-ge[0],ce=te/(ge.length-1),de=360-te,he=fe.length>=3&&ce>0&&de<=ce*1.5,ye=Math.round(E(W)*1e3)/1e3,Se=(Ie,Ct,ut,at)=>{const ct=(Ct.angleDeg-Ie.angleDeg+540)%360-180;if(ct===0)return`L ${at.x} ${at.y}`;if(A===0)return`A ${ye} ${ye} 0 0 ${ct>0?1:0} ${at.x} ${at.y}`;const ke=(Ie.angleDeg+ct/2)*Math.PI/180,Fe={x:N+ye*Math.cos(ke),y:N+ye*Math.sin(ke)},Be={x:(ut.x+at.x)/2,y:(ut.y+at.y)/2},Je={x:Sa(Fe.x,Be.x,A),y:Sa(Fe.y,Be.y,A)},J={x:2*Je.x-Be.x,y:2*Je.y-Be.y};return`Q ${J.x} ${J.y} ${at.x} ${at.y}`},Ge=he?[...fe,fe[0]]:fe,ze=he?[...Ne,Ne[0]]:Ne;let Pe=`M ${ze[0].x} ${ze[0].y}`;for(let Ie=1;Ie<ze.length;Ie++)Pe+=" "+Se(Ge[Ie-1],Ge[Ie],ze[Ie-1],ze[Ie]);Y.push({key:`arc-${W}`,d:Pe})}const Z=o.useMemo(()=>new Set(s??[]),[s]),ne=W=>({idle:"",active:x("soundCompass.state.active","\uC18C\uB9AC \uB098\uB294 \uC911"),played:x("soundCompass.state.played","\uB4E4\uC74C"),correct:x("soundCompass.state.correct","\uC815\uB2F5"),wrong:x("soundCompass.state.wrong","\uC624\uB2F5")})[W],le=W=>{if(r===W.id)return"active";if(u){if(W.id===l)return"correct";if(W.id===i&&i!==l)return"wrong"}return Z.has(W.id)?"played":"idle"},ie=W=>r===W.id?"loop":u?W.id===l?"loop":null:c&&W.id===i?"once":null,Ee=(W,ae)=>{switch(W){case"played":case"correct":return n.jsx(us,{size:ae});case"wrong":return n.jsx(ys,{size:ae});default:return n.jsx(bs,{size:ae})}};return n.jsx("div",{className:"sound-compass",children:n.jsxs("div",{className:"sound-compass__compass-wrap",style:{width:t,height:t},children:[n.jsxs("svg",{width:t,height:t,viewBox:`0 0 ${t} ${t}`,className:"sound-compass__svg",children:[A===0&&e.map(W=>{const{x:ae,y:fe}=H(W);return n.jsx("line",{x1:M.x,y1:M.y,x2:ae,y2:fe,stroke:"#dde3ec",strokeWidth:"1"},W.id)}),Y.map(W=>n.jsx("path",{d:W.d,fill:"none",stroke:"#dde3ec",strokeWidth:"1"},W.key))]}),h&&!_&&n.jsx("div",{className:"sound-compass__pulse sound-compass__pulse--active sound-compass__pulse--center",style:{width:P,height:P,left:M.x-P/2,top:M.y-P/2}}),C?n.jsx("button",{type:"button",className:`sound-compass__center sound-compass__center--button${_?" sound-compass__center--disabled":""}`,style:{width:P,height:P,left:M.x,top:M.y},"aria-label":v,"aria-disabled":_||void 0,tabIndex:_?-1:0,onClick:_?void 0:C,children:n.jsx(Br,{size:z,color:"currentColor",strokeWidth:1.5})}):n.jsx("div",{className:"sound-compass__center",style:{width:P,height:P,left:M.x,top:M.y},children:n.jsx(Br,{size:z,color:"currentColor",strokeWidth:1.5})}),e.map((W,ae)=>{const{x:fe,y:Ne}=H(W),ge=le(W),te=ie(W),ce={...g!==void 0||B?{"--shortcut-badge-scale":String(g??Math.max(.75,Math.min(3,b/56)))}:null,pointerEvents:p?"auto":"none",cursor:p?"pointer":"default",zIndex:ge!=="idle"?10:1},de=b,he=Math.round(Math.max(10,Math.min(56,de*.38))),ye=Math.round(Math.max(7,Math.min(18,de*.2))),Se=Math.round(Math.max(10,Math.min(56,de*.4))),Ge=y==="answered"&&(ge==="played"||ge==="correct"||ge==="wrong"),ze=y===!0||Ge,Pe=!Ge;return n.jsxs("div",{className:"sound-compass__speaker-pos",style:{...ce,left:fe-de/2,top:Ne-de/2},children:[te&&n.jsx("div",{className:`sound-compass__pulse sound-compass__pulse--${ge}`+(te==="once"?" sound-compass__pulse--once":""),style:{width:de,height:de,...te==="once"&&d!==void 0?{"--sc-pulse-duration-once":`${d}ms`}:null,...m!==void 0?{"--sc-pulse-scale":String(m)}:null}}),n.jsxs("button",{type:"button",tabIndex:p?0:-1,"aria-disabled":p?void 0:!0,onClick:p?()=>f?.(W.id):void 0,className:`sound-compass__speaker-btn sound-compass__speaker-btn--${ge}`,style:{width:de,height:de},"aria-label":ne(ge)?`${W.label}, ${ne(ge)}`:W.label,"aria-pressed":i!=null?W.id===i:void 0,children:[ze&&Ee(ge,he),Pe&&n.jsx("span",{className:"sound-compass__speaker-number",style:{fontSize:y===!0?ye:Se},children:ae+1})]}),W.shortcut&&n.jsx(Tl,{keys:W.shortcut,anchor:w,className:"sound-compass__speaker-shortcut"})]},W.id)})]})})}function d4({children:e,position:t="top-left",size:a=24,className:r=""}){return n.jsx("span",{className:Ae("circle-badge","circle-badge--number",`circle-badge--${a}`,`circle-badge--${t}`,r),children:e})}function p4({orientation:e="horizontal",label:t,className:a=""}){const r=Ae("divider",`divider--${e}`,t&&e==="horizontal"?"divider--labeled":"",a);return e==="vertical"?n.jsx("div",{className:r,role:"separator","aria-orientation":"vertical"}):t?n.jsxs("div",{className:r,role:"separator","aria-orientation":"horizontal",children:[n.jsx("span",{className:"divider__line"}),n.jsx("span",{className:"divider__label caption-1",children:t}),n.jsx("span",{className:"divider__line"})]}):n.jsx("div",{className:r,role:"separator","aria-orientation":"horizontal"})}function Ml({checked:e,onChange:t,name:a,value:r,disabled:s=!1,label:i,className:l=""}){const u=o.useId();return n.jsxs("label",{className:`radio${s?" radio--disabled":""} ${l}`.trim(),htmlFor:u,children:[n.jsx("input",{id:u,type:"radio",name:a,value:r,checked:e,disabled:s,onChange:c=>t?.(c.target.checked)}),n.jsx("span",{className:"radio__dot"}),i&&n.jsx("span",{className:"radio__label body-2",children:i})]})}function m4({options:e,value:t,onChange:a,name:r,disabled:s=!1,direction:i="vertical",className:l="",ariaLabel:u}){const c=o.useId(),d=r??`radio-group-${c}`;return n.jsx("div",{className:`radio-group radio-group--${i} ${l}`.trim(),role:"radiogroup","aria-label":u,children:e.map(m=>n.jsx(Ml,{name:d,value:m.value,checked:t===m.value,disabled:s||m.disabled,label:m.label,onChange:p=>{p&&a?.(m.value)}},m.value))})}const h4={info:"info",success:"check-circle",warning:"alert-triangle",danger:"alert-circle"};function C4({tone:e="info",title:t,message:a,children:r,dismissible:s=!1,onDismiss:i,live:l,className:u=""}){const{t:c}=ve.useTranslation(),[d,m]=o.useState(!1),p=o.useRef(null),f=o.useCallback(()=>{const h=p.current;h&&h.contains(document.activeElement)&&Ya(h),m(!0),i?.()},[i]);if(d)return null;const b=Ae("alert",`alert--${e}`,u),y=l??(e==="danger"||e==="warning"?"assertive":"polite"),C=y==="assertive"?"alert":y==="polite"?"status":void 0,v=!!t,_=!!(a||r);return n.jsxs("div",{ref:p,className:b,role:C,children:[n.jsxs("div",{className:"alert__body",children:[n.jsxs("div",{className:"alert__header",children:[n.jsx(Qe,{icon:h4[e],size:20,className:"alert__icon"}),v&&n.jsx("span",{className:"alert__title body-2",children:t}),!v&&_&&n.jsx("div",{className:"alert__message body-3",children:a||r})]}),v&&_&&n.jsx("div",{className:"alert__message alert__message--indented body-3",children:a||r})]}),s&&n.jsx("button",{type:"button",className:"alert__dismiss",onClick:f,"aria-label":c("common.close","\uB2EB\uAE30"),children:"\xD7"})]})}const f4={ready:"search",guide:"info",error:"circle-alert"};function g4(e,t){const a=t.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(n.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 b4({status:e="guide",label:t,children:a,emphasis:r,icon:s,className:i=""}){const l=s===!1?null:s??f4[e],u=Ae("search-summary",`search-summary--${e}`,i),c=t??a,d=typeof c=="string"&&r&&r.length>0?g4(c,r):c;return n.jsxs("div",{className:u,role:"status","aria-live":"polite",children:[l!=null&&n.jsx(Qe,{icon:l,size:18,className:"search-summary__icon"}),n.jsx("span",{className:"search-summary__text body-2",children:d})]})}function ja({title:e,items:t}){const{t:a}=ve.useTranslation(),{anchorRect:r,openAt:s,close:i}=Aa(),l=o.useRef(null),u=Qr(!!r,(c,d)=>{c&&d?s(l.current?.querySelector("button")??d):i()},l);return n.jsxs("span",{ref:l,style:{display:"contents"},children:[n.jsx(pe,{htmlType:"button",size:24,type:"dot",icon:"info",variant:"transparent-gray",useBorder:!1,selected:!!r,ariaLabel:a("common.info","\uC124\uBA85"),onPointerEnter:c=>{aa(c)||s(c.currentTarget)},onPointerLeave:c=>{aa(c)||i()},onClick:c=>{u.touchPress(c.currentTarget)},onFocus:c=>{ra()||s(c.currentTarget)},onBlur:i}),r&&n.jsx(Wn,{title:e,items:t,showIndex:t.length>1,anchorRect:r,onClose:i})]})}function y4({items:e=[],value:t,onChange:a,className:r="",size:s=40}){const i=o.useId(),{t:l}=ve.useTranslation(),u=o.useRef(null),c=e.find(C=>!C.disabled)?.key,d=e.some(C=>C.key===t)?t:c??e[0]?.key,m=e.find(C=>C.key===d&&!C.disabled)?.key??c,p=()=>Array.from(u.current?.querySelectorAll('[role="tab"]:not(:disabled)')??[]),f=(C,v=p())=>{if(v.length===0)return;const _=(C%v.length+v.length)%v.length;v[_]?.focus(),v[_]?.click()},b=C=>{if(!["ArrowRight","ArrowDown","ArrowLeft","ArrowUp","Home","End"].includes(C.key))return;C.preventDefault();const v=p(),_=v.indexOf(C.currentTarget);C.key==="ArrowRight"||C.key==="ArrowDown"?f(_+1,v):C.key==="ArrowLeft"||C.key==="ArrowUp"?f(_-1,v):C.key==="Home"?f(0,v):f(v.length-1,v)},y=e.find(C=>C.key===d);return n.jsxs("div",{className:`tabs ${r}`.trim(),children:[n.jsx("div",{ref:u,className:`tabs__list tabs__list--${s}`,role:"tablist","aria-label":l("tabs.ariaLabel","\uD0ED"),children:e.map(C=>n.jsx("button",{id:`tabs__tab-${i}-${C.key}`,type:"button",role:"tab","aria-selected":C.key===d,"aria-controls":`tabs__panel-${i}-${C.key}`,disabled:C.disabled,tabIndex:C.key===m?0:-1,className:`tabs__tab body-2${C.key===d?" tabs__tab--active":""}`,onClick:()=>{C.key!==t&&a?.(C.key)},onKeyDown:b,children:C.label},C.key))}),y&&n.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 v4={xs:12,sm:16,md:20,lg:28,xl:36};function x4(e){const t=e.trim().split(/\s+/).filter(Boolean);return t.length===0?"":t.length===1?[...t[0]].slice(0,2).join("").toUpperCase():([...t[0]][0]+[...t[t.length-1]][0]).toUpperCase()}function _4({src:e,name:t,size:a="md",shape:r="circle",className:s=""}){const{t:i}=ve.useTranslation(),[l,u]=o.useState(null),c=!!e&&l===e,d=t?x4(t):"",m=!!e&&!c,p=!m&&!!d,f=t||i("avatar.ariaLabel","\uC0AC\uC6A9\uC790 \uC544\uBC14\uD0C0");return n.jsxs("span",{className:`avatar avatar--${a} avatar--${r} ${s}`.trim(),role:"img","aria-label":f,children:[m&&n.jsx("img",{className:"avatar__image",src:e,alt:f,onError:()=>u(e??null)}),!m&&p&&n.jsx("span",{className:"avatar__initials","aria-hidden":"true",children:d}),!m&&!p&&n.jsx(Qe,{icon:"user-round",size:v4[a],className:"avatar__icon"})]})}function w4(e,t){if(!t)return!0;const a=t.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 B4({onFilesSelected:e,accept:t,multiple:a=!1,disabled:r=!1,showFileList:s=!0,files:i,onRemove:l,className:u=""}){const{t:c}=ve.useTranslation(),d=o.useRef(null),[m,p]=o.useState(!1),[f,b]=o.useState([]),y=i??f,C=x=>{if(!x||x.length===0)return;const A=Array.from(x).filter(k=>w4(k,t));if(A.length===0)return;const N=a?A:A.slice(0,1);if(i===void 0){const k=a?[...y,...N]:N;b(k),e?.(k)}else e?.(N)},v=x=>{x.preventDefault(),!r&&p(!0)},_=x=>{x.preventDefault(),p(!1)},h=x=>{x.preventDefault(),p(!1),!r&&C(x.dataTransfer.files)},w=x=>{const A=x.target;try{C(A.files)}finally{A.value=""}},g=()=>{r||d.current?.click()},B=x=>{if(!r&&(l?.(x),i===void 0)){const A=y.filter((N,k)=>k!==x);b(A),l||e?.(A)}};return n.jsxs("div",{className:`file-upload ${u}`.trim(),children:[n.jsxs("div",{className:Ae("file-upload__dropzone",m&&"file-upload__dropzone--dragging",r&&"file-upload__dropzone--disabled"),role:"button",tabIndex:r?-1:0,"aria-disabled":r,onClick:g,onKeyDown:x=>{(x.key==="Enter"||x.key===" ")&&(x.preventDefault(),g())},onDragOver:v,onDragLeave:_,onDrop:h,children:[n.jsx(Qe,{icon:"upload",size:24,className:"file-upload__icon"}),n.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")}),n.jsx("button",{type:"button",className:"file-upload__browse-button body-3",disabled:r,onClick:x=>{x.stopPropagation(),g()},children:c("fileUpload.browseButton","\uD30C\uC77C \uC120\uD0DD")}),n.jsx("input",{ref:d,type:"file",className:"file-upload__input",accept:t,multiple:a,disabled:r,onChange:w,tabIndex:-1})]}),s&&y.length>0&&n.jsx("ul",{className:"file-upload__list",children:y.map((x,A)=>n.jsxs("li",{className:"file-upload__list-item body-3",children:[n.jsx("span",{className:"file-upload__file-name body-3",children:x.name}),n.jsx("button",{type:"button",className:"file-upload__remove-button","aria-label":c("fileUpload.removeAriaLabel",{name:x.name}),disabled:r,onClick:()=>B(A),children:n.jsx(Qe,{icon:"x",size:14})})]},`${x.name}-${A}`))})]})}function A4({items:e,className:t=""}){const{t:a}=ve.useTranslation();return n.jsx("nav",{className:`breadcrumb ${t}`.trim(),"aria-label":a("breadcrumb.ariaLabel","\uC774\uB3D9 \uACBD\uB85C"),children:n.jsx("ol",{className:"breadcrumb__list",children:e.map((r,s)=>{const i=s===e.length-1;return n.jsxs("li",{className:"breadcrumb__item",children:[i?n.jsx("span",{className:"breadcrumb__current body-3","aria-current":"page",children:r.label}):r.href?n.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?n.jsx("button",{type:"button",className:"breadcrumb__link body-3",onClick:r.onClick,children:r.label}):n.jsx("span",{className:"breadcrumb__text body-3",children:r.label}),!i&&n.jsx(Qe,{icon:"chevron-right",size:14,className:"breadcrumb__separator"})]},s)})})})}const k4={small:14,medium:20,large:28};function N4({value:e,onChange:t,max:a=5,readOnly:r=!1,size:s="medium",ariaLabel:i,className:l=""}){const{t:u}=ve.useTranslation(),c=r||!t,[d,m]=o.useState(null),p=c?e:Number.isFinite(e)?Math.round(e):0,f=d??p,b=k4[s],y=x=>{x!==e&&t?.(x)},C=x=>{c||y(x)},v=x=>{c||ra()||m(x)},_=o.useRef(null),h=x=>{const A=Math.min(a,Math.max(1,x));y(A),Array.from(_.current?.querySelectorAll("[data-star]")??[]).find(N=>N.dataset.star===String(A))?.focus()},w=x=>{if(!c){switch(x.key){case"ArrowRight":case"ArrowUp":h((p||0)+1);break;case"ArrowLeft":case"ArrowDown":h((p||1)-1);break;case"Home":h(1);break;case"End":h(a);break;default:return}x.preventDefault()}},g=p>=1&&p<=a?Math.round(p):1,B=()=>{c||m(null)};return n.jsx("div",{className:`rating rating--${s}${c?" rating--readOnly":""} ${l}`.trim(),ref:_,onKeyDown:w,role:c?"img":"radiogroup","aria-label":c?u("rating.valueLabel",{value:e,max:a}):i??u("rating.groupLabel","\uBCC4\uC810"),onMouseLeave:B,onPointerUp:x=>{x.pointerType==="touch"&&B()},onPointerCancel:x=>{x.pointerType==="touch"&&B()},children:Array.from({length:a},(x,A)=>{const N=A+1,k=Math.max(0,Math.min(1,f-A)),S=k>0&&k<1,E=n.jsxs("span",{className:"rating__star-wrap",children:[n.jsx(Qe,{icon:"star",size:b,className:"rating__star rating__star--empty"}),k>0&&n.jsx("span",{className:`rating__star-fill${S?" rating__star-fill--half":""}`,style:S?{width:`${k*100}%`}:void 0,children:n.jsx(Qe,{icon:"star",size:b,className:"rating__star rating__star--filled"})})]});return c?n.jsx("span",{className:"rating__item","aria-hidden":"true",children:E},N):n.jsx("button",{type:"button",className:"rating__item rating__item--interactive",role:"radio","aria-checked":p===N,"aria-label":u("rating.starLabel",{n:N}),"data-star":N,tabIndex:N===g?0:-1,onClick:()=>C(N),onMouseEnter:()=>v(N),children:E},N)})})}const D4=20,E4=["#499cdf","#4dcdc0","#2fae9e","#e6b94e","#d9534f","#e06b68","#bfc7d1"];function S4({value:e,onChange:t,palette:a=E4,size:r=40,className:s="",ariaLabel:i}){const{t:l}=ve.useTranslation();return n.jsx("div",{className:`color-picker ${s}`.trim(),role:"group","aria-label":i,children:a.map(u=>{const c=e?.toLowerCase()===u.toLowerCase();return n.jsx("button",{type:"button",className:`color-picker__swatch color-picker__swatch--${r}`,style:{backgroundColor:u},onClick:()=>t(u),"aria-pressed":c,"aria-label":c?`${u} ${l("colorPicker.selected","\uC120\uD0DD\uB428")}`:u,children:c&&n.jsx(Qe,{icon:"check",size:D4,className:"color-picker__check"})},u)})})}function Ll({icon:e,label:t,tooltip:a,wrapperStyle:r,color:s,bgColor:i,useHover:l=!0,iconSize:u="medium"}){const{t:c}=ve.useTranslation(),d=u==="small",m=Ae("category-icon",d?"category-icon--small":""),p=d?16:20,f=o.useRef(null),[b,y]=o.useState(!1),C=o.useMemo(()=>{const A=r&&typeof r=="object"?{...r}:{};return!s&&!i?A:{...A,...s?{color:s,"--t-item-fg":s}:{},...i?{"--t-item-bg":i}:{}}},[r,s,i]),v=a||t,[_,h]=o.useState(null);o.useLayoutEffect(()=>{b&&h(f.current?.getBoundingClientRect()??null)},[b]),o.useEffect(()=>{if(!l&&b)try{y(!1)}catch{}},[l,b]),o.useEffect(()=>{if(!b)return;const A=N=>{const k=f.current;if(!k)return;const S=N.target;S&&!k.contains(S)&&y(!1)};return document.addEventListener("pointerdown",A,!0),()=>document.removeEventListener("pointerdown",A,!0)},[b]);const w=o.useCallback(()=>{l&&y(!0)},[l]),g=o.useCallback(()=>{l&&y(!1)},[l]),B=o.useCallback(()=>y(!1),[]),x=o.useCallback(A=>{if(A.key==="Escape"){y(!1);return}(A.key==="Enter"||A.key===" ")&&(A.preventDefault(),y(N=>!N))},[]);return n.jsxs("span",{ref:f,className:"category-icon__wrap",onPointerEnter:w,onPointerLeave:g,onFocus:w,onBlur:g,onKeyDown:x,role:"button",tabIndex:0,"aria-label":typeof v=="string"?c("common.descriptionFor",{name:v,defaultValue:`${v} \uC124\uBA85`}):void 0,"aria-haspopup":!!v,"aria-expanded":b,"data-tooltip-ignore":!0,children:[n.jsx(Qe,{icon:e,label:t,className:m,imgClassName:"category-icon__image",maskClassName:"category-icon__mask",svgClassName:"category-icon__svg",wrapperStyle:C,size:p}),b&&v&&n.jsx(xn,{anchorRect:_,text:typeof v=="string"?v:void 0,offset:8,onClose:B,className:"category-icon__tooltip",ariaLabel:typeof v=="string"?v:void 0})]})}let jn=null;function er(e){if(jn&&jn!==e)try{jn()}catch{}return jn=e,()=>{jn===e&&(jn=null)}}function tr(e){if(jn===e){jn=null;try{e()}catch{}}}function j4(e,t){if(!e)return{previewCodes:[],previewBucket:null};const a=e,r=l=>l.map(u=>u?.contextCode||u?.context_code).filter(Boolean).map(String);if(t==="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(t==="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(t==="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(t==="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 T4(e,t){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),m=o.useRef(null),p=o.useRef(null),[f,b]=o.useState(!1),y=o.useRef([]),{previewCodes:C,previewBucket:v}=j4(e,t),_=`${C.join(",")}|${v??""}`,h=o.useMemo(()=>l.key===_?l.urls:[],[l,_]);o.useEffect(()=>{if(!C.length)return;let g=!1;return(async()=>{const B=[],x=[];for(const A of C)try{const N=Gs(A,v);if(!N){B.push("");continue}let k=null;try{k=await Ks(N)}catch{}if(!k)try{const S=await Ys(N);S&&(k=URL.createObjectURL(S),x.push(k))}catch{}B.push(k??"")}catch{B.push("")}g?x.forEach(A=>{try{URL.revokeObjectURL(A)}catch{}}):(y.current.forEach(A=>{try{URL.revokeObjectURL(A)}catch{}}),y.current=x,u({key:_,urls:B}))})(),()=>{g=!0}},[C.join(","),v]),o.useEffect(()=>()=>{y.current.forEach(g=>{try{URL.revokeObjectURL(g)}catch{}}),y.current=[]},[]);const w=o.useCallback(async g=>{if(g.stopPropagation(),g.preventDefault(),d.current){m.current&&tr(m.current),d.current=!1;try{c.current?.pause()}catch{}r(!1),i(-1);return}if(!h.filter(Boolean).length)return;let B=null;const x=()=>{d.current=!1;try{c.current?.pause()}catch{}B?.()};m.current=x;const A=er(x);d.current=!0,r(!0);for(let N=0;N<h.length&&d.current;N++){const k=h[N];if(k){i(N);try{await new Promise((S,E)=>{B=S;const F=new Audio(k);c.current=F,F.onended=()=>S(),F.onerror=()=>E(),F.play().catch(E)})}catch{break}}}A(),m.current===x&&(m.current=null,d.current=!1,r(!1),i(-1))},[h]);return o.useEffect(()=>()=>{m.current&&tr(m.current),d.current=!1;try{c.current?.pause()}catch{}c.current=null},[]),{playing:a,playingIndex:s,previewUrls:h,previewHover:f,setPreviewHover:b,previewBtnRef:p,handlePreview:w}}const M4=e=>{if(!e)return[];const t=typeof e.context=="string"&&e.context.trim()||typeof e.sentence=="string"&&e.sentence.trim()||typeof e.text=="string"&&e.text.trim()||"";if(t)return[String(t)];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 mo(e){const{index:t,type:a,trainingData:r,ariaLabel:s,depth:i,renderPopup:l,completed:u,completedIds:c,selectedIds:d,tooltipText:m,useDescriptionTooltip:p=!1,onRemove:f,hideCheckBadge:b=!1,showTypeLabel:y=!1,onComplete:C,onSelect:v,onMore:_,countLabelOverride:h,size:w="square"}=e||{},{t:g}=ve.useTranslation(),[B,x]=o.useState(!1),A=o.useRef(null),[N,k]=o.useState(!1);o.useEffect(()=>{A.current?.matches(":hover")&&k(!0)},[]);const{playing:S,playingIndex:E,previewUrls:F,previewHover:$,setPreviewHover:G,previewBtnRef:j,handlePreview:L}=T4(r,a?.key),I=o.useCallback(()=>{v?v():x(!0)},[v]),K=o.useCallback(()=>x(!1),[]),ee=o.useCallback(()=>k(!0),[]),V=o.useCallback(()=>k(!1),[]),q=o.useCallback(()=>G(!0),[G]),R=o.useCallback(()=>G(!1),[G]),[O,D]=o.useState(null);o.useLayoutEffect(()=>{$&&D(j.current?.getBoundingClientRect()??null)},[$,j]);const[H,M]=o.useState(null);o.useLayoutEffect(()=>{N&&!B&&p&&M(A.current?.getBoundingClientRect()??null)},[N,B,p]);const P=o.useCallback(Be=>{Be.target===Be.currentTarget&&(Be.key==="Enter"||Be.key===" ")&&(Be.preventDefault(),I())},[I]),z=r||null,Y=o.useMemo(()=>{if(!p)return null;const Be=m?(Array.isArray(m)?m:[m]).filter(Boolean):null,Je=Be&&Be.length>0?Be:M4(z);return Je&&Je.length>0?Je:null},[p,m,z]),X=o.useCallback(Be=>{Be.stopPropagation(),f?.()},[f]),Z=o.useCallback(Be=>Be.stopPropagation(),[]),ne=o.useCallback(Be=>{typeof C=="function"&&C(Be)},[C]),le=u||(c&&r?.id!=null?c.has(String(r.id)):!1),ie=!le&&(d!=null&&r?.id!=null?d.has(String(r.id)):!1);al("speechear.popup.close",K);const Ee=hi(),W=`${a?.label||""} ${t+1}`,ae=z?.title||z?.name||W;let fe=a?.icon,Ne,ge="",te="";try{const Be=z?.category_0||z?.category_main_code||z?.category_main,Je=z?.category_1||z?.category_sub_code||z?.category_sub,J=Ee.find(se=>se.key===Be);J?.icon&&(fe=J.icon),!Ne&&J?.color&&(Ne={"--t-item-fg":J.color}),!Ne&&z?.iconColor&&(Ne={"--t-item-fg":z.iconColor}),ge=J?g(`topic.${J.key}`,{defaultValue:J.label||""}):"";try{const se=J?.subs?.find(Ce=>Ce.key===Je);te=se?g(`topic.sub.${se.key}`,{defaultValue:se.label||""}):""}catch{}}catch{}const ce=te?`${ge} / ${te}`:ge||a?.label||ae,de=Be=>g("training.countQuestions",{n:Be}),he=Be=>g("training.countSentences",{n:Be});let ye="";try{if(z)if(a?.key==="LISTEN_IN_NOISE"){let Be=0;Array.isArray(z.items)&&z.items.length>0?Be=z.items.length:Array.isArray(z.sentences)&&z.sentences.length>0?Be=z.sentences.length:z.sentences&&(Be=1),ye=he(Be)}else if(a?.key==="SHORT_STORY"){let Be=1;Array.isArray(r?.items)?Be=r.items.length:Array.isArray(r?.raw&&r.raw?.items)?Be=r.raw.items.length:Array.isArray(z?.questions)?Be=z.questions.length:Array.isArray(z?.sentences)&&(Be=z.sentences.length),ye=de(Be)}else if(a?.key==="LONG_STORY"){let Be=1;if(Array.isArray(z.items)&&z.items.length>0){const Je=z.items.reduce((J,se)=>{const Ce=se.questionItems;return Array.isArray(Ce)?J+Ce.length:Array.isArray(se.questions)?J+se.questions.length:J},0);Be=Je>0?Je:z.items.length}else Array.isArray(z.questions)&&z.questions.length>0?Be=z.questions.length:Array.isArray(z.sentences)&&z.sentences.length>0&&(Be=z.sentences.length);ye=de(Be)}else if(a?.key==="ORDERING_SENTENCE"){let Be=1;Array.isArray(z.items)&&z.items.length>0?Be=z.items.length:Array.isArray(z.sentences)&&z.sentences.length>0&&(Be=z.sentences.length),ye=he(Be)}else Array.isArray(z.items)&&(ye=z.items.length>0?de(z.items.length):"")}catch{}const Se=w==="row",Ge=w==="list"||Se,ze=w==="compact",Pe=w==="small",Ie=Pe&&a?.key?YC().find(Be=>Be.key===a.key):void 0,Ct=Ie?Ci[Ie.key]:void 0,ut=Ie?Ct?g(`trainingType.${Ct}.title`,{defaultValue:Ie.label}):Ie.label??"":"",at=y&&a?.label&&a.label!==String(ae)?String(a.label):Pe&&ut&&ut!==String(ae)?ut:"",ct=!!at,ke=h!==void 0?h:ye,Fe=[at,typeof ae=="string"?ae:"",ke].map(Be=>String(Be??"").trim()).filter(Boolean).join(" ");return n.jsxs(n.Fragment,{children:[n.jsxs("div",{ref:A,className:`training-block-button${Ge?" training-block-button--list":""}${Se?" training-block-button--row":""}${ze?" training-block-button--compact":""}${Pe?" training-block-button--small":""}${le?" training-block-button--completed":""}${ie?" training-block-button--selected":""}${ct&&!Pe?" training-block-button--withType":""}${Pe&&!ct?" training-block-button--no-type-label":""}`,onClick:I,onPointerEnter:ee,onPointerLeave:V,role:"button",tabIndex:0,onKeyDown:P,"aria-label":typeof s=="string"?s:Fe||void 0,title:!p&&m&&(Array.isArray(m)?m.filter(Boolean).join(`
|
|
853
|
+
`):m)||void 0,children:[n.jsxs("div",{className:"training-block-button__left",children:[y&&a?.label&&a.label!==String(ae)&&n.jsx("span",{className:"training-block-button__type-label caption-1",children:a.label}),Pe&&ut&&ut!==String(ae)&&n.jsx("span",{className:"training-block-button__type-label caption-2",children:ut}),n.jsx(Ll,{icon:fe,label:ae,tooltip:ce,wrapperStyle:Ne,iconSize:Pe||ze?"small":"medium"}),!b&&(le||ie)&&!(f&&N)&&n.jsx(kt,{className:f?"training-block-button__check--removable":void 0,type:"dot",icon:"check",position:"top-left",size:"medium","aria-label":le?g("training.completed","\uD6C8\uB828 \uC644\uB8CC"):g("training.selected","\uC120\uD0DD\uB428")}),f&&n.jsx(kt,{className:`training-block-button__remove${N?" is-hover":""}`,type:"dot",icon:"remove",position:"top-left",size:"medium","aria-label":g("common.remove","\uC81C\uAC70"),onClick:X}),n.jsx("div",{className:`training-block-button__title ${ze?"body-3":Pe?"body-3b":"h3"}`,children:String(ae)}),n.jsxs("div",{className:"training-block-button__description",children:[ke?n.jsx("div",{className:`training-block-button__count ${Pe?"caption-2":"caption-1"}`,children:ke}):null,n.jsx("div",{className:"training-block-button__chevron",children:n.jsx(Qe,{icon:"chevron-right",label:g("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:Pe?12:20})})]}),(Ge&&!Se||Pe)&&F.length>0&&n.jsx("div",{ref:j,className:"training-block-button__preview","data-tooltip-ignore":!0,onClick:Z,onPointerEnter:q,onPointerLeave:R,children:n.jsx(pe,{htmlType:"button",size:Pe?28:32,type:"dot",icon:S?"pause":"play",variant:Pe?"transparent-lightGray":"default",useBorder:!1,selected:S,ariaLabel:String(ae).trim()?S?g("training.stopFor",{name:ae,defaultValue:`${ae} \uC815\uC9C0`}):g("training.previewFor",{name:ae,defaultValue:`${ae} \uBBF8\uB9AC \uB4E3\uAE30`}):S?g("training.stop","\uC815\uC9C0"):g("training.preview","\uBBF8\uB9AC \uB4E3\uAE30"),onClick:L})})]}),_&&n.jsx("div",{className:"training-block-button__more","data-tooltip-ignore":!0,onClick:Be=>{Be.stopPropagation(),_(Be)},children:n.jsx(pe,{htmlType:"button",size:40,type:"dot",icon:"more-horizontal",variant:"transparent-lightGray",useBorder:!1,ariaLabel:String(ae).trim()?g("common.moreFor",{name:ae}):g("common.more","\uB354\uBCF4\uAE30")})})]}),$&&n.jsx(xn,{anchorRect:O,text:S?g("training.stop","\uC815\uC9C0"):g("training.preview","\uBBF8\uB9AC \uB4E3\uAE30"),offset:8,onClose:R}),N&&!B&&p&&(Y?n.jsx(Wn,{anchorRect:H,items:Y,activeIndex:E,onClose:V}):z?.subTitle?n.jsx(xn,{anchorRect:H,text:z.subTitle,offset:8,onClose:V}):null),B&&l&&l({trainingData:z,typeKey:a?.key??"",onClose:K,onComplete:ne,popupTitle:String(ae),popupSubTitle:a?.subTitle,depth:i!=null?String(i):void 0,popupIcon:fe,popupIconTooltip:String(ce),popupWrapperStyle:Ne})]})}const $l=200;function L4(e){return e.itemId?(ef()[e.trainingType]??[]).find(t=>t?.id!=null&&String(t.id)===String(e.itemId))??null:null}function Rl({plan:e,anchorRect:t,offset:a=12,onClose:r}){const{t:s}=ve.useTranslation(),i=o.useMemo(()=>nf(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=n.jsx("div",{className:"tooltip-training__box",children:n.jsx("div",{className:"tooltip-training__groups",children:i.flatMap(({type:u,items:c},d)=>[d>0?n.jsx("div",{className:"tooltip-training__divider"},`div-${u.key}`):null,n.jsxs("div",{className:"tooltip-training__section",children:[n.jsx("div",{className:"tooltip-training__section-header",children:n.jsx("span",{className:"tooltip-training__type-label body-3b",children:u.label})}),n.jsx("div",{className:"tooltip-training__items",children:c.map((m,p)=>{const f=L4(m);return f?n.jsx(mo,{index:p,type:u,trainingData:f,size:"compact",hideCheckBadge:!0},m.itemId??p):null})})]},u.key)])})});return t?n.jsx(ln,{anchorRect:t,offset:a,onClose:r,closeOnOutsideClick:!1,className:"tooltip-training",ariaLabel:s("tooltip.training","\uD6C8\uB828 \uC548\uB0B4"),children:l}):l}const $4=200;function R4({icon:e,count:t,title:a,plan:r,tooltip:s=!0,className:i="",onClick:l,onMouseEnter:u,onMouseLeave:c}){const d=Ae("count-tile",l&&"count-tile--clickable",i),m=o.useRef(null),[p,f]=o.useState(null),b=o.useRef(null),y=o.useRef(null),C=!!(p&&r&&s),v=o.useCallback(()=>{b.current&&(clearTimeout(b.current),b.current=null),y.current&&(clearTimeout(y.current),y.current=null)},[]),_=o.useCallback(()=>{v(),f(null)},[v]),h=o.useCallback(()=>{!s||!r||(v(),b.current=setTimeout(()=>{b.current=null,f(m.current?.getBoundingClientRect()??null)},$l))},[s,r,v]),w=o.useCallback(()=>{b.current&&(clearTimeout(b.current),b.current=null),!y.current&&(y.current=setTimeout(()=>{y.current=null,f(null)},$4))},[]);return o.useEffect(()=>()=>{v()},[v]),o.useEffect(()=>{(!s||!r)&&_()},[s,r,_]),o.useEffect(()=>{if(!C)return;const g=x=>x instanceof Element&&(m.current?.contains(x)||!!x.closest(".tooltip-training")),B=x=>{g(x.target)?v():w()};return document.addEventListener("pointerover",B,!0),()=>document.removeEventListener("pointerover",B,!0)},[C,v,w]),n.jsxs(n.Fragment,{children:[n.jsxs("div",{ref:m,className:d,onClick:l?g=>{_(),l(g)}:void 0,onKeyDown:l?g=>{g.key!=="Enter"&&g.key!==" "||(g.preventDefault(),g.currentTarget.click())}:void 0,onPointerEnter:g=>{g.pointerType==="touch"||g.pointerType==="pen"?_():h()},onMouseEnter:u,onMouseLeave:g=>{w(),c?.(g)},role:l?"button":"img",tabIndex:l?0:void 0,"aria-label":`${a} ${t}`,children:[n.jsx(Qe,{icon:e,size:20,className:"count-tile__icon"}),n.jsx("span",{className:"count-tile__count h5","aria-hidden":"true",children:t})]}),p&&r&&n.jsx(Rl,{plan:r,anchorRect:p,onClose:_})]})}let Ta=0,Pl="",ho="",Ma=0;function Il(){return Fl(!1)}function P4(){return Fl(!0)}function Fl(e){const t=typeof document<"u";Ta===0&&t&&(Pl=document.body.style.overflow,document.body.style.overflow="hidden"),e&&t&&(Ma===0&&(ho=document.body.style.paddingRight),Ma++,document.body.style.paddingRight="0px"),Ta++;let a=!1;return()=>{a||(a=!0,Ta=Math.max(0,Ta-1),e&&t&&(Ma=Math.max(0,Ma-1),Ma===0&&(ho?document.body.style.paddingRight=ho:document.body.style.removeProperty("padding-right"))),Ta===0&&t&&(document.body.style.overflow=Pl))}}function I4(){return n.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round","aria-hidden":!0,children:n.jsx("path",{d:"M6 6l12 12M18 6 6 18"})})}function F4({open:e,onClose:t,ariaLabel:a,title:r,children:s,size:i="md",closeOnBackdrop:l=!0,closeOnEscape:u=!0,showClose:c=!0,className:d,contentClassName:m}){const{t:p}=ve.useTranslation(),f=o.useId(),b=o.useRef(null),y=o.useCallback(()=>t(),[t]);o.useEffect(()=>{if(!e)return;const h=document.activeElement,w=Il(),g=b.current;return Yr(g,h),g?.focus(),()=>{w();const B=document.activeElement;(!B||B===document.body||g&&g.contains(B))&&Zr(h)?.focus?.()}},[e]);const C=o.useRef(y),v=o.useRef(u);o.useEffect(()=>{C.current=y,v.current=u}),o.useEffect(()=>{if(e)return Vn(()=>{v.current&&C.current()})},[e]);const _=o.useRef(!1);return Gr(b,e),!e||typeof document>"u"?null:Qt.createPortal(n.jsx("div",{className:Ae("dialog",d),onPointerDown:l?h=>{_.current=h.target===h.currentTarget}:void 0,onMouseDown:h=>{h.target===h.currentTarget&&h.preventDefault()},onClick:l?h=>{const w=_.current;_.current=!1,w&&h.target===h.currentTarget&&y()}:void 0,children:n.jsxs("div",{ref:b,role:"dialog","aria-modal":"true","aria-label":r?void 0:a,"aria-labelledby":r?f:void 0,tabIndex:-1,className:Ae("dialog__surface",`dialog__surface--${i}`,m),onClick:h=>h.stopPropagation(),children:[r?n.jsx("div",{className:"dialog__header",children:n.jsx("h2",{id:f,className:"dialog__title h4b",children:r})}):null,c?n.jsx("button",{type:"button",className:"dialog__close","aria-label":p("common.close","\uB2EB\uAE30"),onClick:y,children:n.jsx(I4,{})}):null,n.jsx("div",{className:"dialog__body",children:s})]})}),document.body)}function O4({columns:e,rows:t,rowKey:a,title:r,toolbar:s,empty:i,loading:l,caption:u,className:c=""}){const{t:d}=ve.useTranslation(),m=!l&&t.length===0;return n.jsxs("div",{className:Ae("board",c),children:[r||s?n.jsxs("div",{className:"board__head",children:[r?n.jsx("h2",{className:"board__title",children:r}):n.jsx("span",{}),s?n.jsx("div",{className:"board__toolbar",children:s}):null]}):null,n.jsxs("table",{className:"board__table",children:[u?n.jsx("caption",{className:"board__caption",children:u}):null,n.jsx("thead",{children:n.jsx("tr",{children:e.map(p=>n.jsx("th",{scope:"col",className:Ae("board__th",`board__cell--${p.headerAlign??p.align??"left"}`),style:p.width?{width:p.width}:void 0,children:p.header},p.key))})}),n.jsx("tbody",{children:l?n.jsx("tr",{children:n.jsx("td",{className:"board__state",colSpan:e.length,children:l})}):m?n.jsx("tr",{children:n.jsx("td",{className:"board__state",colSpan:e.length,children:i??d("board.empty","\uB4F1\uB85D\uB41C \uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.")})}):t.map((p,f)=>n.jsx("tr",{className:"board__row",children:e.map(b=>n.jsx("td",{className:Ae("board__td",`board__cell--${b.align??"left"}`),children:b.render(p,f)},b.key))},a(p,f)))})]})]})}function H4({name:e,role:t,photo:a,media:r,credentials:s,size:i=190,className:l=""}){return n.jsxs("div",{className:Ae("person-card",l),children:[n.jsx("div",{className:"person-card__photo",style:{width:i,height:i},children:r??(a?n.jsx("img",{src:a,alt:t?`${e} ${t}`:e}):null)}),n.jsx("h3",{className:"person-card__name",children:e}),t?n.jsx("p",{className:"person-card__role",children:t}):null,s?.length?n.jsx("ul",{className:"person-card__credentials",children:s.map(u=>n.jsx("li",{children:u},u))}):null]})}function z4({groups:e,className:t=""}){return n.jsx("div",{className:Ae("timeline",t),children:e.map(a=>n.jsxs("section",{className:"timeline__group",children:[n.jsx("h3",{className:"timeline__title",children:a.title}),n.jsx("ul",{className:"timeline__rows",children:a.entries.map((r,s)=>n.jsxs("li",{className:"timeline__row",children:[r.label?n.jsx("span",{className:"timeline__label",children:r.label}):null,n.jsx("div",{className:"timeline__items",children:r.items.map((i,l)=>n.jsx("p",{children:i},l))})]},`${r.label??""}-${s}`))})]},a.title))})}function V4({title:e,kind:t,body:a,badge:r,badgeSrc:s,footer:i,width:l,className:u=""}){const c=r??(s?n.jsx("img",{src:s,alt:""}):null);return n.jsxs("div",{className:Ae("publication-card",u),style:l?{width:l,flexShrink:0}:void 0,children:[c?n.jsx("div",{className:"publication-card__badge","aria-hidden":"true",children:c}):null,n.jsx("h3",{className:"publication-card__title",children:e}),t?n.jsx("p",{className:"publication-card__kind",children:t}):null,n.jsx("p",{className:"publication-card__body",children:a}),i?n.jsx("div",{className:"publication-card__footer",children:i}):null]})}function W4({logo:e,alt:t,onDone:a,durationMs:r=3e3}){const s=wa(a);return o.useEffect(()=>{const i=setTimeout(()=>s.current?.(),r);return()=>clearTimeout(i)},[r,s]),n.jsx("div",{className:"splash-logo",style:{"--splash-logo-duration":`${r}ms`},"aria-hidden":"true",children:n.jsx("img",{src:e,alt:t,className:"splash-logo__image"})})}function q4({eyebrow:e,eyebrowIndex:t,title:a,description:r,level:s=2,tone:i="dark",className:l=""}){const u=s===1?"h1":"h2";return n.jsxs("div",{className:Ae("section-header",`section-header--${i}`,l),children:[e?n.jsxs("p",{className:"section-header__eyebrow",children:[t?n.jsxs(n.Fragment,{children:[n.jsx("span",{className:"section-header__index",children:t}),n.jsx("span",{"aria-hidden":!0,className:"section-header__rule"})]}):null,e]}):null,a?n.jsx(u,{className:"section-header__title",children:a}):null,r?n.jsx("div",{className:"section-header__description",children:r}):null]})}function U4({items:e,className:t=""}){return n.jsx("ul",{className:Ae("company-meta",t),children:e.map((a,r)=>n.jsxs("li",{className:"company-meta__item",children:[r>0?n.jsx("span",{"aria-hidden":!0,className:"company-meta__divider",children:"|"}):null,a]},a))})}function Ol(e){return typeof e=="string"?e:e.label}function Hl({value:e,onChange:t,suggestions:a,openOnFocus:r=!1,filterSuggestions:s,onSelectSuggestion:i,autoActiveFirst:l=!1}){const u=o.useId(),[c,d]=o.useState(!1),[m,p]=o.useState(-1),f=o.useRef(null),b=o.useMemo(()=>{if(!a.length)return[];const E=e??"";return s===!1?a:E?typeof s=="function"?s(a,E):a.filter(F=>Ol(F).toLowerCase().includes(E.toLowerCase())):r?a:[]},[a,e,r,s]),[y,C]=o.useState(!1),v=o.useRef([]),_=y&&b.length===0?v.current:b;o.useEffect(()=>{_.length&&(v.current=_)},[_]);const h=o.useCallback(()=>C(!0),[]),w=o.useCallback(()=>C(!1),[]),g=l?0:-1;o.useEffect(()=>{c||p(g)},[c,g]),o.useEffect(()=>()=>{f.current&&clearTimeout(f.current)},[]);const B=m<_.length?m:g<_.length?g:-1,x=o.useCallback(E=>{i?i(E):t?.(Ol(E)),d(!1)},[t,i]),A=o.useCallback(()=>d(!0),[]),N=o.useCallback(()=>{d(!0),p(g)},[g]),k=o.useCallback(()=>{f.current=setTimeout(()=>d(!1),120)},[]),S=o.useCallback(E=>{E.nativeEvent.isComposing||E.keyCode===229||(E.key==="ArrowDown"?(E.preventDefault(),d(!0),p(F=>Math.min(_.length-1,(F<_.length?F:g)+1))):E.key==="ArrowUp"?(E.preventDefault(),p(F=>Math.max(g,(F<_.length?F:_.length)-1))):E.key==="Enter"?B>=0&&x(_[B]):E.key==="Escape"&&c&&(E.preventDefault(),d(!1)))},[_,B,c,x,g]);return{listId:u,open:c,activeIdx:B,filtered:_,handleFocus:A,handleBlur:k,handleInput:N,handleKeyDown:S,handleSelect:x,handleCompositionStart:h,handleCompositionEnd:w}}const Co=typeof window<"u"?o.useLayoutEffect:o.useEffect;function Gn(e){const{value:t,defaultValue:a,name:r,inputRef:s,onChange:i,label:l,ariaLabel:u,ariaDescribedBy:c,required:d,placeholder:m,ghostText:p,ghostHint:f,type:b="text",disabled:y=!1,readOnly:C=!1,error:v,helperText:_,maxLength:h,size:w=48,variant:g="input",fullWidth:B=!1,newline:x=!1,multiline:A=!1,rows:N=3,leftIcon:k,rightIcon:S,clearable:E=!1,list:F,showCount:$=!0,className:G="",onFocus:j,onBlur:L,onKeyDown:I,onEnter:K,inputMode:ee,autoComplete:V,autoFocus:q,suggestions:R,filterSuggestions:O,onSelectSuggestion:D,autoActiveFirst:H,openOnFocus:M=!1}=e,P=C||y?void 0:R,{t:z}=ve.useTranslation(),Y=o.useId();!l&&!u&&Yt(`TextField:unnamed:${Y}`,"[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 X=`tf-${Y}`,Z=`tf-helper-${Y}`,ne=o.useRef(null),le=Hl({value:t??"",onChange:i,suggestions:P??[],openOnFocus:M,filterSuggestions:O,onSelectSuggestion:D,autoActiveFirst:H}),ie=!!P&&le.open&&le.filtered.length>0,Ee=o.useRef(null),[W,ae]=o.useState(null),fe=o.useCallback(()=>{const ke=Ee.current;if(!ke||typeof window>"u")return;const Fe=ke.getBoundingClientRect(),Be=230,Je=window.innerHeight-Fe.bottom<Be+8&&Fe.top>Be+8;ae({position:"fixed",left:Fe.left,width:Fe.width,...Je?{bottom:window.innerHeight-Fe.top+8}:{top:Fe.bottom+8},zIndex:ka(ke)})},[]);Co(()=>{if(!ie)return;fe();const ke=Fe=>{const Be=Fe.target;Be&&Be.nodeType===1&&Be.closest?.(".text-field__suggestions")||fe()};return window.addEventListener("scroll",ke,!0),window.addEventListener("resize",fe),()=>{window.removeEventListener("scroll",ke,!0),window.removeEventListener("resize",fe)}},[ie,fe]);const Ne=o.useCallback(ke=>{ne.current=ke,typeof s=="function"?s(ke):s&&(s.current=ke)},[s]),ge=p?`${p}${f??z("wordTable.save.autoFillHint"," (Tab \uB610\uB294 space \uC785\uB825\uC2DC \uC790\uB3D9 \uC785\uB825)")}`:m,te=t!==void 0,ce=te&&b==="password",[de,he]=o.useState((a??"").length),ye=te?(t??"").length:de,Se=o.useRef(t);Co(()=>{Se.current=t}),o.useEffect(()=>{const ke=ne.current;if(!ce||!ke)return;const Fe=t??"";ke.value!==Fe&&(ke.value=Fe)},[ce,t]),o.useEffect(()=>{if(!x||!ne.current)return;const ke=ne.current;ke.style.height="",ke.scrollHeight>ke.clientHeight&&(ke.style.height=`${ke.scrollHeight}px`)},[t,de,x]);const Ge=h!=null&&ye>h,ze=w===32?16:20,Pe=Ae("text-field",`text-field--s${w}`,g==="display"?"text-field--display":"",B?"text-field--full-width":"",y?"text-field--disabled":"",C?"text-field--readonly":"",v?"text-field--error":"",k?"text-field--has-left-icon":"",S||E?"text-field--has-right-icon":"",G),Ie={id:X,...ce?{}:te?{value:t}:{defaultValue:a},ref:Ne,placeholder:ge,name:r,disabled:y,readOnly:C,autoFocus:q,maxLength:h,list:F,inputMode:ee,autoComplete:V,"aria-label":!l&&u?u:void 0,"aria-required":d,"aria-invalid":!!v,"aria-describedby":[_||v?Z:null,c].filter(Boolean).join(" ")||void 0,role:P?"combobox":void 0,"aria-autocomplete":P?"list":void 0,"aria-haspopup":P?"listbox":void 0,"aria-expanded":P?ie:void 0,"aria-controls":ie?le.listId:void 0,"aria-activedescendant":ie&&le.activeIdx>=0?`${le.listId}-option-${le.activeIdx}`:void 0,onChange:ke=>{const Fe=ke.target;te||he(Fe.value.length),i?.(Fe.value),P&&le.handleInput(),ce&&queueMicrotask(()=>{const Be=Se.current??"";Fe.value!==Be&&(Fe.value=Be)})},onCompositionStart:P?le.handleCompositionStart:void 0,onCompositionEnd:P?le.handleCompositionEnd:void 0,onFocus:(ke=>{j?.(ke),P&&le.handleFocus()}),onBlur:(ke=>{L?.(ke),P&&le.handleBlur()}),onKeyDown:(ke=>{const Fe=(ke.key==="Tab"&&!ke.shiftKey||ke.key===" ")&&!ke.nativeEvent.isComposing;if(p&&Fe&&!C&&!y&&!(ke.currentTarget.value??"").trim()){ke.preventDefault();const Be=ke.currentTarget;te||(Be.value=p,he(p.length)),i?.(p);return}P&&ke.key==="Enter"&&!ke.nativeEvent.isComposing&&le.activeIdx>=0?ke.preventDefault():K&&ke.key==="Enter"&&!ke.nativeEvent.isComposing&&(ke.preventDefault(),K()),I?.(ke),P&&le.handleKeyDown(ke)})},Ct=E&&!y&&!C&&ye>0,ut=()=>x?n.jsx("textarea",{...Ie,className:"text-field__input text-field__input--auto body-2",rows:1}):A?n.jsx("textarea",{...Ie,className:"text-field__input text-field__input--textarea body-2",rows:N}):n.jsx("input",{...Ie,type:b,className:"text-field__input body-2"}),at=g==="display"&&!x&&!A&&!!ge,ct=()=>n.jsxs(n.Fragment,{children:[ut(),at&&n.jsx("span",{className:"text-field__placeholder","aria-hidden":"true",children:ge})]});return n.jsxs("div",{ref:Ee,className:Pe,children:[l&&n.jsxs("label",{htmlFor:X,className:"text-field__label caption-1",children:[l,d&&n.jsx("span",{className:"text-field__required",children:"*"})]}),n.jsxs("div",{className:"text-field__wrap",children:[k&&n.jsx("span",{className:"text-field__icon text-field__icon--left",children:n.jsx(Qe,{icon:k,label:"",className:"",svgClassName:"text-field__icon-svg",size:ze})}),ct(),h!=null&&$&&n.jsxs("span",{className:`text-field__count caption-2${Ge?" text-field__count--over":""}`,children:[ye,"/",h]}),Ct&&n.jsx(pe,{size:24,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,className:"text-field__clear",ariaLabel:z("textField.clearAriaLabel","\uC785\uB825\uAC12 \uC9C0\uC6B0\uAE30"),htmlType:"button",onMouseDown:ke=>{ke.preventDefault()},onClick:()=>{!te&&ne.current&&(ne.current.value="",he(0)),i?.("")},tabIndex:-1}),S&&!Ct&&n.jsx("span",{className:"text-field__icon text-field__icon--right",children:n.jsx(Qe,{icon:S,label:"",className:"",svgClassName:"text-field__icon-svg",size:ze})})]}),!!P&&n.jsx("span",{className:"text-field__status",role:"status","aria-live":"polite",children:le.open&&(t??"").length>0&&le.filtered.length===0?z("common.noMatches","\uB9DE\uB294 \uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4"):""}),ie&&(typeof document>"u"?null:Qt.createPortal(n.jsx("ul",{id:le.listId,className:"text-field__suggestions",role:"listbox",style:W??{position:"fixed",visibility:"hidden"},"data-tooltip-ignore":!0,children:le.filtered.map((ke,Fe)=>n.jsx("li",{id:`${le.listId}-option-${Fe}`,role:"option","aria-selected":Fe===le.activeIdx,className:`text-field__suggestion body-2${Fe===le.activeIdx?" is-active":""}`,onMouseDown:Be=>Be.preventDefault(),onClick:()=>{le.handleSelect(ke),ne.current?.focus()},children:typeof ke=="string"?ke:n.jsxs(n.Fragment,{children:[n.jsx("span",{className:"text-field__suggestion-label",children:ke.label}),ke.hint&&n.jsx("span",{className:"text-field__suggestion-hint caption-1",children:ke.hint})]})},typeof ke=="string"?`${ke}-${Fe}`:ke.id))}),document.body)),(_||v)&&n.jsx("div",{className:"text-field__footer",children:n.jsx("span",{id:Z,className:"text-field__helper caption-1",role:v?"alert":void 0,children:v||_})})]})}function cn({options:e,value:t,onChange:a,placeholder:r,disabled:s=!1,block:i=!1,size:l=48,error:u=!1,className:c="",ariaLabel:d,ariaDescribedBy:m}){const{t:p}=ve.useTranslation(),f=r??p("dropdown.placeholder","\uC120\uD0DD"),b=o.useId(),y=o.useId(),C=o.useRef(null),v=o.useCallback((j,L)=>{const I=window.innerHeight-j.bottom<260&&j.top>260;return{position:"fixed",left:j.left,minWidth:j.width,...I?{bottom:window.innerHeight-j.top+6}:{top:j.bottom+6},zIndex:ka(L)}},[]),{open:_,setOpen:h,toggle:w,style:g,triggerRef:B,menuRef:x}=Na({computeStyle:v}),[A,N]=o.useState(-1),k=o.useCallback(()=>N(-1),[]),S=e.find(j=>j.value===t);o.useEffect(()=>{if(_){const j=e.findIndex(L=>L.value===t);N(j>=0?j:e.length?0:-1),requestAnimationFrame(()=>{const L=x.current;if(!L)return;const I=L.querySelectorAll(".dropdown__option")[j];I&&(L.scrollTop=Math.max(0,I.offsetTop-L.clientHeight/2+I.clientHeight/2))})}},[_]),o.useEffect(()=>{_&&N(j=>{if(j>=0&&j<e.length)return j;const L=e.findIndex(I=>I.value===t);return L>=0?L:e.length?0:-1})},[_,e.length]);const E=o.useCallback(()=>{s||w()},[s,w]),F=o.useCallback(j=>{j.disabled||s||(j.value!==t&&a?.(j.value),h(!1))},[a,h,s,t]);o.useEffect(()=>{s&&h(!1)},[s,h]);const $=o.useCallback(j=>{if(!s){if(!_){(j.key==="Enter"||j.key===" "||j.key==="ArrowDown")&&(j.preventDefault(),h(!0));return}if(j.key==="Escape"){j.preventDefault(),h(!1);return}j.key==="ArrowDown"?(j.preventDefault(),N(L=>{let I=L+1;for(;I<e.length&&e[I].disabled;)I++;return I<e.length?I:L})):j.key==="ArrowUp"?(j.preventDefault(),N(L=>{let I=L-1;for(;I>=0&&e[I].disabled;)I--;return I>=0?I:L})):(j.key==="Enter"||j.key===" ")&&(j.preventDefault(),e[A]?F(e[A]):h(!1))}},[s,_,e,A,F,h]),G=_?n.jsx("div",{ref:x,id:b,className:"dropdown__menu","data-tooltip-ignore":!0,role:"listbox",style:g,onMouseLeave:k,onMouseDown:j=>j.preventDefault(),children:e.map((j,L)=>n.jsxs("button",{id:`${b}-option-${L}`,type:"button",role:"option","aria-selected":j.value===t,className:Ae("dropdown__option body-2",j.value===t?"dropdown__option--active":"",L===A?"dropdown__option--active":"",j.disabled?"dropdown__option--disabled":""),onMouseDown:I=>I.preventDefault(),onClick:()=>F(j),onMouseEnter:()=>N(L),disabled:j.disabled,children:[n.jsx("span",{className:"dropdown__option-check",children:j.value===t&&n.jsx("svg",{viewBox:"0 0 14 14",fill:"none",stroke:"currentColor",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:n.jsx("polyline",{points:"2 7 5.5 10.5 12 3.5"})})}),j.label]},j.value))}):null;return n.jsxs("div",{ref:C,className:Ae("dropdown",`dropdown--s${l}`,_?"dropdown--open":"",i?"dropdown--block":"",u?"dropdown--error":"",c),onKeyDown:$,children:[n.jsxs("button",{ref:B,type:"button",className:"dropdown__trigger",role:"combobox","aria-haspopup":"listbox","aria-expanded":_,"aria-controls":_?b:void 0,"aria-activedescendant":_&&A>=0?`${b}-option-${A}`:void 0,"aria-label":d,"aria-describedby":[d&&S?y:"",m??""].filter(Boolean).join(" ")||void 0,"aria-invalid":u||void 0,disabled:s,onClick:E,onBlur:j=>{_&&!x.current?.contains(j.relatedTarget)&&h(!1)},children:[n.jsx("span",{id:y,className:`dropdown__trigger-label body-2${S?"":" dropdown__trigger-label--placeholder"}`,children:S?S.label:f}),n.jsx("svg",{className:"dropdown__chevron",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:n.jsx("polyline",{points:"4 6 8 10 12 6"})})]}),typeof document<"u"&&Qt.createPortal(G,C.current?.closest(".ihabdevteam-core-scope")??document.body)]})}function nr({page:e,totalPages:t,onChange:a,prevLabel:r,nextLabel:s,className:i=""}){const{t:l}=ve.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,t),m=()=>a(Math.max(1,Math.min(d,e-1))),p=()=>a(Math.min(d,e+1));return n.jsxs("div",{className:Ae("pagination",i),children:[n.jsx(pe,{htmlType:"button",size:32,type:"dot",shape:"rounded",icon:"chevron-left",ariaLabel:u,disabled:e<=1,onClick:m}),n.jsxs("span",{className:"pagination__info body-3","aria-live":"polite","aria-atomic":"true",children:[Math.min(Math.max(1,e),d)," / ",d]}),n.jsx(pe,{htmlType:"button",size:32,type:"dot",shape:"rounded",icon:"chevron-right",ariaLabel:c,disabled:e>=t,onClick:p})]})}const La=new Map;function An(e){const{t}=ve.useTranslation(),{options:a=[],value:r=a.find(g=>!g.disabled)?.key??a[0]?.key,onChange:s=g=>{},className:i="",size:l=40,shape:u="pill",useBG:c=!0,fullWidth:d=!1,minButtonWidth:m,ariaLabel:p}=e||{},f=o.useRef(null),b=a.filter(g=>!g.disabled),y=o.useId(),C=a.map(g=>g.key).join("\xB7");o.useEffect(()=>{if(!(!Zn||p!=null&&p!=="")){if(La.set(y,C||"(\uBCF4\uAE30 \uC5C6\uC74C)"),La.size>1){const g=[...La.values()].sort();Yt(`segmented-control-unnamed:${g.join("|")}`,`[ihab/SegmentedControl] \uC774\uB984 \uC5C6\uB294 \uB77C\uB514\uC624\uADF8\uB8F9\uC774 \uD55C \uD654\uBA74\uC5D0 ${La.size} \uAC1C \uC11C \uC788\uC2B5\uB2C8\uB2E4 \u2014 \uB0AD\uB3C5\uAE30\uB294 \uBAA8\uB450 "\uC120\uD0DD \uD0ED" \uC73C\uB85C \uC77D\uC5B4 \uC5B4\uB290 \uAC83\uC774 \uBB34\uC5C7\uC778\uC9C0 \uAC00\uB9B4 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4. ariaLabel \uC744 \uC8FC\uC138\uC694. \uC9C0\uAE08 \uC120 \uAC83(\uBCF4\uAE30 \uC774\uB984\uC73C\uB85C \uC801\uC74C): ${g.join(" / ")}`)}return()=>{La.delete(y)}}},[p,C,y]);const v=g=>{if(!b.length)return;const B=Math.max(0,b.findIndex(A=>A.key===r)),x=g==="first"?b[0]:g==="last"?b[b.length-1]:b[(B+g+b.length)%b.length];x&&(s(x.key),Array.from(f.current?.querySelectorAll("[data-segkey]")??[]).find(A=>A.dataset.segkey===x.key)?.focus())},_=g=>{switch(g.key){case"ArrowRight":case"ArrowDown":v(1);break;case"ArrowLeft":case"ArrowUp":v(-1);break;case"Home":v("first");break;case"End":v("last");break;default:return}g.preventDefault()},h=g=>{const B=x=>typeof x=="string"||typeof x=="number";if(!(!B(g.label)||g.count==null||g.count===!1||!B(g.count)))return`${g.label}, ${g.count}`},w=b.some(g=>g.key===r)?r:b[0]?.key;return n.jsx("div",{ref:f,onKeyDown:_,className:Ae("segmented-control",`segmented-control--${u}`,`segmented-control--${l}`,d&&"segmented-control--full",!c&&"segmented-control--no-bg",m!=null&&"segmented-control--min",i),style:m!=null?{"--segmented-min-button-w":`${m}px`}:void 0,role:"radiogroup","aria-label":p??t("segmentedControl.ariaLabel","\uC120\uD0DD \uD0ED"),children:a.map(g=>n.jsx(pe,{htmlType:"button",role:"radio","aria-checked":g.key===r,"data-segkey":g.key,tabIndex:g.key===w?0:-1,label:g.label,count:g.count,ariaLabel:h(g),disabled:g.disabled,className:g.key===r?"is-selected":"",onClick:()=>{g.disabled||s(g.key)},size:l,shape:u,useBorder:!1,useBG:!1},g.key))})}function fo({count:e,search:t,segment:a,filters:r,pageSize:s,pagination:i,actions:l,className:u}){const{t:c}=ve.useTranslation(),d=e!=null&&n.jsxs("p",{className:"toolbar__count body-1",role:"status","aria-atomic":"true",children:[e.prefix??c("common.totalPrefix","\uCD1D "),n.jsx("span",{className:"toolbar__count-highlight",children:e.value}),e.unit,e.suffix]}),m=!!(t||r?.length||s||i||l);return n.jsxs("div",{className:Ae("toolbar",u),children:[n.jsxs("div",{className:"toolbar__row",children:[d,a&&(Array.isArray(a)?a:[a]).map((p,f)=>n.jsx(An,{size:40,...p},p.ariaLabel??f))]}),m&&n.jsx("div",{className:"toolbar__row",children:n.jsxs("div",{className:"toolbar__row-end",children:[t&&n.jsx(Gn,{className:"toolbar__search",size:40,value:t.value,onChange:t.onChange,placeholder:t.placeholder??c("common.search","\uAC80\uC0C9"),ariaLabel:t.placeholder??c("common.search","\uAC80\uC0C9"),autoFocus:t.autoFocus,clearable:!0}),r?.map((p,f)=>n.jsx(cn,{size:40,options:p.options,value:p.value,onChange:p.onChange,ariaLabel:p.ariaLabel},f)),(s||i)&&n.jsxs("div",{className:"toolbar__pager",children:[s&&n.jsx(cn,{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&&n.jsx(nr,{page:i.page,totalPages:i.total,onChange:i.onChange,prevLabel:i.prevLabel,nextLabel:i.nextLabel})]}),l]})})]})}function zl(e){return typeof e=="string"?e:typeof e=="number"?String(e):Array.isArray(e)?e.map(zl).join(""):""}function G4(e){let t=e.replace(/\r\n/g,`
|
|
854
854
|
`).replace(/\r/g,`
|
|
855
855
|
`);t=t.replace(/^\n+/,"").replace(/\n+$/,"");const a=t.split(`
|
|
856
856
|
`).map(i=>i.replace(/\t/g," ")),r=a.filter(i=>i.trim().length>0),s=r.length>0?Math.min(...r.map(i=>i.match(/^ */)?.[0].length??0)):0;return a.map(i=>i.slice(s)).join(`
|
|
857
857
|
`)}const K4=new Set(["pnpm","npm","yarn","node","git","curl","docker","cat","ls","cd","rm","mv","cp","echo","export"]),Y4=/^(?:const|let|var|function|return|if|else|for|while|switch|case|break|import|from|export|class|new|try|catch|finally|throw|await|async|null|true|false|this|typeof|instanceof)\b/;function Z4(e,t){let a=e;const r=[],s=/^(?:sh|bash|zsh|shell|console)$/.test(t.toLowerCase()),i=(l,u)=>r.push({type:l,content:u});for(;a.length>0;){const l=a.match(/^\s+/);if(l){i("whitespace",l[0]),a=a.slice(l[0].length);continue}if(!s&&a.startsWith("//")){const y=a.indexOf(`
|
|
858
858
|
`),C=y===-1?a:a.slice(0,y);i("comment",C),a=a.slice(C.length);continue}if(s&&a.startsWith("#")){const y=a.indexOf(`
|
|
859
|
-
`),C=y===-1?a:a.slice(0,y);i("comment",C),a=a.slice(C.length);continue}const u=a.match(/^\/\*[\s\S]*?\*\//);if(u){i("comment",u[0]),a=a.slice(u[0].length);continue}const c=a.match(/^(`(?:\\.|[^`])*`|"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*')/);if(c){i("string",c[0]),a=a.slice(c[0].length);continue}const d=a.match(/^\d+(?:\.\d+)?/);if(d){i("number",d[0]),a=a.slice(d[0].length);continue}const m=a.match(Y4);if(m){i("keyword",m[0]),a=a.slice(m[0].length);continue}const p=a.match(/^[A-Za-z_$][A-Za-z0-9_$-]*/);if(p){const y=p[0];i(s&&K4.has(y)?"command":"identifier",y),a=a.slice(y.length);continue}const f=a.match(/^[=+\-*/%<>!&|^~?:]+/);if(f){i("operator",f[0]),a=a.slice(f[0].length);continue}const b=a.match(/^[()[\]{};.,]/);if(b){i("punctuation",b[0]),a=a.slice(1);continue}i("other",a[0]),a=a.slice(1)}return r}function X4({children:e,language:t="bash",title:a="",showCopy:r=!0,size:s="default",className:i=""}){const{t:l}=ye.useTranslation(),[u,c]=o.useState(!1),d=G4(zl(e)),m=o.useRef(null);o.useEffect(()=>()=>{m.current&&clearTimeout(m.current)},[]);const p=async()=>{try{if(!await OC(d))return;c(!0),m.current&&clearTimeout(m.current),m.current=setTimeout(()=>c(!1),2e3)}catch{}},f=Z4(d,t),b=s==="small"?"caption-1":"body-3";return n.jsxs("div",{className:ke("code-box",s==="small"?"code-box--small":"",i),children:[(a||r)&&n.jsxs("div",{className:"code-box__header",role:"toolbar","aria-label":l("common.codeBlock","\uCF54\uB4DC \uBE14\uB85D"),children:[n.jsx("div",{className:"code-box__title caption-1",children:a}),r&&n.jsx(me,{htmlType:"button",className:"code-box__copy",size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:u?"check":"copy",onClick:p,ariaLabel:u?l("common.copied","\uBCF5\uC0AC\uB428"):l("common.copyCode","\uCF54\uB4DC \uBCF5\uC0AC")})]}),n.jsx("pre",{className:"code-box__inner","data-lang":t,children:n.jsx("code",{children:f.map((y,C)=>n.jsx("span",{className:`code-token ${y.type} ${b}`,children:y.content},C))})})]})}const J4={position:"absolute",width:1,height:1,margin:-1,padding:0,overflow:"hidden",clipPath:"inset(50%)",whiteSpace:"nowrap",border:0};function $a(e){const{t}=ye.useTranslation(),{variant:a="spinner",size:r=24,progress:s=null,label:i}=e||{},l=i||t("loader.loading","Loading");if(a==="bar"){const c=s==null||!Number.isFinite(Number(s)),d=c?0:Math.max(0,Math.min(100,Number(s)));return n.jsx("div",{className:`loader-bar${c?" loader-bar--indeterminate":""}`,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":c?void 0:d,"aria-label":l,children:n.jsx("div",{className:"loader-bar__inner",style:c?void 0:{width:`${d}%`}})})}const u=typeof r=="number"?`${r}px`:r;return n.jsxs("div",{className:"loader-spinner",style:{width:u,height:u},role:"status","aria-label":l,children:[n.jsx("span",{style:J4,children:l}),n.jsxs("svg",{className:"loader-spinner__svg",viewBox:"0 0 50 50",width:r,height:r,children:[n.jsx("circle",{className:"loader-spinner__bg",cx:"25",cy:"25",r:"20",fill:"none",strokeWidth:"4"}),n.jsx("circle",{className:"loader-spinner__fg",cx:"25",cy:"25",r:"20",fill:"none",strokeWidth:"4",strokeLinecap:"round"})]})]})}function Vl({checked:e,onChange:t,disabled:a=!1,label:r,ariaLabel:s,labelPosition:i="right",className:l="",id:u}){const c=r&&n.jsx("span",{className:"toggle__label body-3",children:r});return n.jsxs("label",{className:`toggle${a?" toggle--disabled":""} ${l}`.trim(),children:[i==="left"&&c,n.jsx("input",{id:u,type:"checkbox",role:"switch",checked:e,disabled:a,onChange:d=>t?.(d.target.checked),"aria-label":!r&&s?s:void 0}),n.jsx("span",{className:"toggle__slider"}),i==="right"&&c]})}function Wl({checked:e=!1,onChange:t,disabled:a,indeterminate:r,label:s,size:i="medium",className:l,title:u,ariaLabel:c}){const d=o.useRef(null),m=o.useId(),p=o.useRef(!!r);return p.current=!!r,o.useEffect(()=>{d.current&&(d.current.indeterminate=!!r)}),n.jsxs("label",{className:ke("checkbox",i==="small"&&"checkbox--small",i==="large"&&"checkbox--large",a&&"checkbox--disabled",l),htmlFor:m,title:u,children:[n.jsx("input",{ref:d,id:m,type:"checkbox",className:"checkbox__input",checked:e,onChange:f=>{t?.(f.target.checked),d.current&&(d.current.indeterminate=p.current)},disabled:a,"aria-label":!s&&c?c:void 0}),n.jsx("span",{className:"checkbox__box"}),s&&n.jsx("span",{className:"checkbox__label body-3",children:s})]})}function Q4({count:e,actions:t,onClear:a,clearLabel:r,visible:s,content:i,max:l}){const{t:u}=ye.useTranslation(),c=s!==void 0?s:e>0,d=r??u("bulkBar.clearSelection","\uC120\uD0DD \uD574\uC81C"),m=o.useRef(null),p=o.useRef(null),f=o.useRef(null),b=o.useRef(c);o.useLayoutEffect(()=>{const h=p.current,w=b.current;if(b.current=c,c&&!w){const g=typeof document<"u"?document.activeElement:null;f.current=g&&g!==document.body&&!h?.contains(g)?g:null}else!c&&w&&h&&h.contains(document.activeElement)&&Ya(h,f.current)},[c]);const[y,C]=o.useState(!1),v=o.useRef(!1),_=o.useRef(null);return o.useEffect(()=>{const h=m.current;if(!h)return;const w=k=>{v.current=k,C(k)},g=()=>{const k=h.firstElementChild??h,S=Array.from(k.children);if(S.length<2){w(!1);return}const E=S[0].offsetTop,F=S.some(I=>I.offsetTop!==E);if(!v.current){_.current=h.clientWidth,F&&w(!0);return}if(F)return;const $=S[0],U=S[S.length-1],j=U.offsetLeft+U.offsetWidth-$.offsetLeft,T=_.current;(T==null||j<=T)&&w(!1)};if(g(),typeof ResizeObserver>"u")return;const B=new ResizeObserver(g);B.observe(h);const x=h.parentElement;let A=x?.clientWidth??0;const N=new ResizeObserver(()=>{const k=x?.clientWidth??0;k!==A&&(A=k,_.current=null,g())});return x&&N.observe(x),()=>{B.disconnect(),N.disconnect()}},[i,e]),n.jsxs("div",{ref:p,className:`bulk-bar ${c?"bulk-bar--visible":""}`,inert:!c||void 0,"aria-hidden":c?void 0:!0,children:[n.jsx("span",{ref:m,className:"bulk-bar__count body-2",role:"status",children:i??n.jsx("b",{children:u("common.selectedCount",{count:e})})}),l!==void 0&&n.jsx(_t,{size:"small",fill:"soft",variant:"main",label:`${e} / ${l}`,"aria-label":u("common.selectedOfMax",{count:e,max:l,defaultValue:`\uCD5C\uB300 ${l}\uAC1C \uC911 ${e}\uAC1C`})}),n.jsxs("div",{className:`bulk-bar__actions${y?" bulk-bar__actions--stacked":""}`,children:[n.jsx(me,{htmlType:"button",size:40,label:d,onClick:a}),t.map((h,w)=>n.jsx(me,{htmlType:"button",size:40,variant:h.variant??"default",icon:h.icon,label:h.label,onClick:h.onClick},w))]})]})}const ey=[{\uC5F4\uC1E0:"edit",icon:"edit-2",\uB2EB\uACE0\uD560\uAE4C:!0},{\uC5F4\uC1E0:"duplicate",icon:"copy",\uB2EB\uACE0\uD560\uAE4C:!1},{\uC5F4\uC1E0:"publish",icon:"book-marked",\uB2EB\uACE0\uD560\uAE4C:!1},{\uC5F4\uC1E0:"copyLink",icon:"link",\uB2EB\uACE0\uD560\uAE4C:!1},{\uC5F4\uC1E0:"remove",icon:"trash-2",\uB2EB\uACE0\uD560\uAE4C:!0}];function ty(e){const{onClose:t,className:a}=e;return n.jsx("div",{className:ke("item-actions",a),children:ey.map(({\uC5F4\uC1E0:r,icon:s,\uB2EB\uACE0\uD560\uAE4C:i})=>{const l=e[r];if(!l)return null;const u=r==="publish"?l.published?l.unpublish:l.publish:l;return n.jsx(me,{htmlType:"button",size:40,type:"dot",icon:s,ariaLabel:u.label,showTooltipInfo:u.label,onClick:()=>{i&&t(),u.onClick()}},r)})})}function ql(e,t){const a=()=>{if(e){const[C,v]=e.split("-");return{y:+C,m:+v-1}}const[b,y]=Wr(t).split("-");return{y:+b,m:+y-1}},[r,s]=o.useState(()=>a().y),[i,l]=o.useState(()=>a().m),u=o.useRef(e);o.useEffect(()=>{if(e===u.current)return;u.current=e;const b=a();s(b.y),l(b.m)},[e]);const c=o.useRef({y:r,m:i});o.useEffect(()=>{c.current={y:r,m:i}},[r,i]);const d=o.useCallback(b=>{const y=c.current.y*12+c.current.m+b,C=Math.floor(y/12),v=y-C*12;c.current={y:C,m:v},s(C),l(v)},[]),m=o.useCallback(()=>d(-1),[d]),p=o.useCallback(()=>d(1),[d]),f=o.useCallback((b,y)=>{c.current={y:b,m:y},s(b),l(y)},[]);return{viewY:r,viewM:i,prevMonth:m,nextMonth:p,setViewYM:f}}function ar(e,t){return new Date(e,t+1,0).getDate()}function ny(e,t){return new Date(e,t,1).getDay()}function rr(e,t,a){return`${e}-${String(t+1).padStart(2,"0")}-${String(a).padStart(2,"0")}`}function ay(e){if(!e)return"";const[t,a,r]=e.split("-");return`${t}. ${a}. ${r}.`}function ry(e,t,a,r){const s=a?+a.split("-")[0]:e-10,i=r?+r.split("-")[0]:e+10,l=[];for(let u=s;u<=i;u++)for(let c=0;c<12;c++){const d=`${u}-${String(c+1).padStart(2,"0")}`;a&&d<a.slice(0,7)||r&&d>r.slice(0,7)||l.push({value:d,label:t(u,c+1)})}return l}function oy({value:e,onChange:t,size:a=48,min:r,max:s,disabled:i,placeholder:l,className:u,today:c}){const{t:d}=ye.useTranslation(),m=l??d("datePicker.chooseDate","\uB0A0\uC9DC \uC120\uD0DD"),p=o.useMemo(()=>d("calendar.dow",{returnObjects:!0}),[d]),f=Wr(c),{viewY:b,viewM:y,prevMonth:C,nextMonth:v,setViewYM:_}=ql(e,c),h=o.useId(),w=o.useCallback((D,H)=>{const L=window.innerHeight,R=window.innerWidth,z=typeof document<"u"?document.getElementById(h):null,J=Math.max(z?.offsetHeight||0,z?.scrollHeight||0)||300,Y=Math.max(D.width,z?.offsetWidth||0,260),Z=L-D.bottom,ne=D.top,le=Z<J&&ne>Z,ue=8,Ee=(W,te)=>Math.min(Math.max(ue,W),Math.max(ue,te));return{position:"fixed",left:Ee(D.left,R-Y-ue),width:D.width,minWidth:260,...le?{top:"auto",bottom:Ee(L-D.top+6,L-J-ue)}:{bottom:"auto",top:Ee(D.bottom+6,L-J-ue)},zIndex:ka(H)}},[h]),{open:g,setOpen:B,toggle:x,style:A,triggerRef:N,menuRef:k}=Na({computeStyle:w,onScroll:"reposition",onResize:"reposition",ignoreOutsideClickSelector:".dropdown__menu"});o.useEffect(()=>{if(!g)return;const D=k.current;return(D?.querySelector(".date-picker__day--selected:not(:disabled)")??D?.querySelector(".date-picker__day--today:not(:disabled)")??D?.querySelector(".date-picker__day:not(:disabled)")??D?.querySelector(Cn)??D)?.focus?.(),()=>{const H=document.activeElement;(!H||H===document.body)&&N.current?.focus?.()}},[g,k,N]);const[S,E]=o.useState(1),F=o.useRef(null),$=o.useRef(null);o.useEffect(()=>{if(!g)return;const D=e&&e.slice(0,7)===`${b}-${String(y+1).padStart(2,"0")}`?+e.slice(8):f.slice(0,7)===`${b}-${String(y+1).padStart(2,"0")}`?+f.slice(8):1;E(D)},[g]),o.useEffect(()=>{if($.current==null)return;const D=$.current;$.current=null,F.current?.querySelector(`[data-day="${D}"]`)?.focus()}),o.useEffect(()=>{E(D=>Math.min(D,ar(b,y)))},[b,y]);const U=o.useCallback(D=>{let H=rr(D.getFullYear(),D.getMonth(),D.getDate());r&&H<r&&(H=r),s&&H>s&&(H=s);const[L,R,z]=H.split("-").map(Number);(L!==b||R-1!==y)&&_(L,R-1),E(z),$.current=z},[r,s,b,y,_]),j=o.useCallback(D=>{const H=new Date(b,y,S),L=z=>{H.setDate(H.getDate()+z),U(H)},R=z=>{const J=H.getFullYear()*12+H.getMonth()+z,Y=Math.floor(J/12),Z=J-Y*12;U(new Date(Y,Z,Math.min(H.getDate(),ar(Y,Z))))};switch(D.key){case"ArrowLeft":L(-1);break;case"ArrowRight":L(1);break;case"ArrowUp":L(-7);break;case"ArrowDown":L(7);break;case"Home":L(-H.getDay());break;case"End":L(6-H.getDay());break;case"PageUp":D.shiftKey?R(-12):R(-1);break;case"PageDown":D.shiftKey?R(12):R(1);break;default:return}D.preventDefault()},[b,y,S,U]),T=o.useCallback(D=>{i||(t(rr(b,y,D)),B(!1))},[b,y,t,B,i]);o.useEffect(()=>{i&&B(!1)},[i,B]);const I=D=>{const H=rr(b,y,D);return!!(r&&H<r||s&&H>s)},K=(()=>{const D=ar(b,y);if(S>=1&&S<=D&&!I(S))return S;for(let H=1;H<=D;H++)if(!I(H))return H;return-1})(),ee=[];for(let D=0;D<ny(b,y);D++)ee.push(null);for(let D=1;D<=ar(b,y);D++)ee.push(D);const V=a===64?20:a===40?16:18,q=ry(b,(D,H)=>d("calendar.yearMonth",{year:D,month:H,defaultValue:"{{year}}\uB144 {{month}}\uC6D4"}),r,s),P=`${b}-${String(y+1).padStart(2,"0")}`,O=g?en.createPortal(n.jsxs("div",{ref:k,id:h,className:"date-picker__dropdown",style:A,"data-tooltip-ignore":!0,role:"dialog","aria-label":d("datePicker.chooseDate","\uB0A0\uC9DC \uC120\uD0DD"),tabIndex:-1,children:[n.jsxs("div",{className:"date-picker__nav",children:[n.jsx("button",{type:"button",className:"date-picker__nav-btn",onClick:C,"aria-label":d("calendar.prevMonth","\uC774\uC804 \uB2EC"),children:n.jsx(cs,{size:16,strokeWidth:2})}),n.jsx(cn,{className:"date-picker__nav-dropdown",ariaLabel:d("datePicker.selectYearMonth","\uC5F0\uC6D4 \uC120\uD0DD"),options:q,value:P,onChange:D=>{const[H,L]=D.split("-");_(+H,+L-1)},block:!0,size:40}),n.jsx("button",{type:"button",className:"date-picker__nav-btn",onClick:v,"aria-label":d("calendar.nextMonth","\uB2E4\uC74C \uB2EC"),children:n.jsx(ds,{size:16,strokeWidth:2})})]}),n.jsxs("div",{className:"date-picker__grid",ref:F,onKeyDown:j,children:[p.map(D=>n.jsx("div",{className:"date-picker__dow caption-1",children:D},D)),ee.map((D,H)=>{if(D===null)return n.jsx("div",{},`e${H}`);const L=rr(b,y,D),R=L===e,z=L===f,J=I(D),Y=H%7;return n.jsx("button",{type:"button",disabled:J,"data-day":D,tabIndex:D===K?0:-1,"aria-current":z?"date":void 0,onClick:()=>!J&&T(D),className:ke("date-picker__day caption-1",R&&"date-picker__day--selected",z&&!R&&"date-picker__day--today",J&&"date-picker__day--disabled",Y===0&&"date-picker__day--sun",Y===6&&"date-picker__day--sat"),children:D},D)})]})]}),document.body):null;return n.jsxs("div",{className:ke("date-picker",`date-picker--s${a}`,g&&"date-picker--open",u),children:[n.jsxs("button",{ref:N,type:"button",className:"date-picker__trigger body-2",onClick:()=>!i&&x(),disabled:i,"aria-haspopup":"true","aria-expanded":g,children:[n.jsx("span",{className:e?"date-picker__value":"date-picker__placeholder",children:e?ay(e):m}),n.jsx(vs,{size:V,className:"date-picker__icon",strokeWidth:1.5})]}),O]})}function Ul({children:e,className:t}){const a=o.useRef(null),[r,s]=o.useState(null);return o.useEffect(()=>{s(a.current?.parentElement??null)},[]),o.useEffect(()=>{const i=a.current;if(!i||!r)return;const l=()=>{const c=typeof window<"u"&&window.getComputedStyle(i).position==="absolute"?Math.ceil(i.getBoundingClientRect().width):0;c>0?r.style.setProperty("--section-head-float-w",`${c}px`):r.style.removeProperty("--section-head-float-w")};if(l(),typeof ResizeObserver>"u")return()=>{r.style.removeProperty("--section-head-float-w")};const u=new ResizeObserver(()=>l());return u.observe(i),u.observe(r),()=>{u.disconnect(),r.style.removeProperty("--section-head-float-w")}},[r,e]),n.jsx("div",{ref:a,className:ke("section-head-float",t),children:e})}function go({items:e,className:t}){return n.jsx("div",{className:t?`manager-bar-chart-legend ${t}`:"manager-bar-chart-legend",children:e.map((a,r)=>n.jsxs("span",{className:"manager-bar-chart-legend-item",children:[n.jsx("span",{className:"manager-bar-chart-legend-dot",style:{background:a.color}}),a.label]},r))})}function Ra({label:e,children:t}){return e?n.jsxs("div",{className:"barchart-total barchart-total--stacked",children:[n.jsx("span",{className:"barchart-total__label body-3",children:e}),n.jsx("span",{className:"barchart-total__value",children:t})]}):n.jsx("div",{className:"barchart-total",children:t})}function bo({title:e,titleClassName:t="h3",titleLevel:a=3,icon:r,disc:s,headRight:i,headFloat:l,headSegment:u,headMenuItems:c,collapseBelow:d=420,onClick:m,ariaLabel:p,tooltip:f,totalNum:b,totalUnit:y,totalLabel:C,subRow:v,subRowAlign:_="start",className:h,inGrid:w=!1,children:g}){const{t:B}=ye.useTranslation(),x=o.useRef(null),{anchorRect:A,openAt:N,close:k}=Aa(),S=o.useCallback(()=>{f&&x.current&&N(x.current)},[f,N]),[E,F]=o.useState(!1);Co(()=>{const L=x.current;if(!L||!u)return;const R=J=>F(J>0&&J<d);if(R(L.clientWidth),typeof ResizeObserver>"u")return;const z=new ResizeObserver(J=>R(J[0].contentRect.width));return z.observe(L),()=>z.disconnect()},[u,d]);const[$,U]=o.useState(null),j=o.useCallback(()=>U(null),[]),T=o.useCallback(L=>{const R=L.currentTarget.getBoundingClientRect();U(z=>z?null:{left:R.left,right:R.right,top:R.top,bottom:R.bottom,width:R.width,height:R.height,x:R.x,y:R.y})},[]),I=!!u&&E;o.useEffect(()=>{I||U(null)},[I]);const K=u?[...u.options.map(L=>({label:L.label,icon:L.icon,selected:L.key===u.value,disabled:L.disabled,onClick:()=>u.onChange(L.key),closeOnSelect:!0})),...(c??[]).map((L,R)=>R===0?{...L,separatorBefore:!0}:L)]:[],ee=o.useCallback(L=>{if(!m)return;const R=L.target;R&&typeof R.closest=="function"&&R.closest('button, a, input, select, textarea, [role="radiogroup"]')||m()},[m]),V=o.useCallback(L=>{m&&L.target===L.currentTarget&&(L.key==="Enter"||L.key===" ")&&(L.preventDefault(),m())},[m]),q=typeof i=="function"?i({collapsed:I}):i,P=b!=null||C?n.jsxs(Ra,{label:C,children:[b!=null&&n.jsx("span",{className:"barchart-total__num h0",children:b}),y&&n.jsx("span",{className:"barchart-total__unit h5",children:y})]}):null,O=q||u?n.jsxs("div",{className:"manager-section__head-right",children:[u&&(I?n.jsx(me,{htmlType:"button",size:32,type:"dot",icon:"ellipsis",ariaLabel:u.ariaLabel??B("common.more","\uB354\uBCF4\uAE30"),showTooltipInfo:u.ariaLabel??B("common.more","\uB354\uBCF4\uAE30"),"aria-haspopup":"menu","aria-expanded":!!$,onClick:T}):n.jsx(kn,{size:32,ariaLabel:u.ariaLabel,options:u.options.map(L=>({key:L.key,label:L.label,disabled:L.disabled})),value:u.value,onChange:u.onChange})),q]}):null,D=o.useId(),H=a?`h${a}`:"div";return n.jsxs("section",{ref:x,className:["manager-section",w&&"manager-section--grid",m&&"manager-section--clickable",h].filter(Boolean).join(" "),onClick:m?ee:void 0,onKeyDown:m?V:void 0,onPointerEnter:f?S:void 0,onPointerLeave:f?k:void 0,onFocus:f?S:void 0,onBlur:f?k:void 0,role:m?"button":void 0,tabIndex:m?0:void 0,"aria-label":m?p??(typeof e=="string"?e:void 0):void 0,"aria-labelledby":!m&&e!=null?D:void 0,children:[f&&A&&n.jsx(_n,{anchorRect:{left:A.left,top:A.top+21,right:A.right,bottom:A.bottom,width:A.width,height:A.height},text:f}),l&&n.jsx(Ul,{children:l}),n.jsxs("div",{className:"manager-section__head",children:[n.jsxs("div",{className:"manager-section__title-row",children:[r&&n.jsx(Je,{icon:r,label:typeof e=="string"?e:void 0,className:"manager-section__icon"}),n.jsx(H,{id:D,className:["manager-section__title",t].filter(Boolean).join(" "),children:e})]}),O,s&&n.jsx("div",{className:"manager-section__disc body-3",children:s})]}),(P||v)&&n.jsxs("div",{className:["barchart-sub-row",_!=="start"&&`barchart-sub-row--${_}`].filter(Boolean).join(" "),children:[P,v]}),g,$&&n.jsx(ln,{anchorRect:$,onClose:j,ariaLabel:u?.ariaLabel??B("tooltip.menu","\uBA54\uB274"),children:n.jsx(Da,{columns:[{items:K}],onClose:j,size:"small"})})]})}function fn(e,t){const a=new Date(e,t,1).getDay();return 1+(8-(a===0?7:a))%7}function sy(){const e=Qn();let t=e.getFullYear(),a=e.getMonth(),r=e.getDate();if(r<fn(t,a)){const l=new Date(t,a,0);t=l.getFullYear(),a=l.getMonth(),r=l.getDate()}const s=Math.floor((r-fn(t,a))/7),i=`${t}\uB144 ${a+1}\uC6D4`;return{monthKey:i,value:`${i}#${s}`}}function iy(e){const t=Qn(),a=`${t.getFullYear()}\uB144 ${t.getMonth()+1}\uC6D4`,r=(c,d)=>`${c}\uB144 ${d+1}\uC6D4`,s=new Map;s.set(a,[]);for(const c of e){if(isNaN(c.date.getTime()))continue;const d=r(c.date.getFullYear(),c.date.getMonth());s.has(d)||s.set(d,[]),s.get(d).push(c)}for(const[c,d]of[...s.entries()]){const m=c.match(/^(\d+)년 (\d+)월$/);if(!m)continue;const p=Number(m[1]),f=Number(m[2])-1,b=fn(p,f);if(!(c===a&&t.getDate()<b)&&!d.some(v=>v.date.getDate()<b))continue;const y=new Date(p,f,0),C=r(y.getFullYear(),y.getMonth());s.has(C)||s.set(C,[])}const i=new Map;for(const[c,d]of s){const m=c.match(/^(\d+)년 (\d+)월$/);if(!m)continue;const p=Number(m[1]),f=Number(m[2])-1,b=new Date(p,f+1,0).getDate(),y=d.reduce((g,B)=>Math.max(g,B.parts?.length??0,B.partsB?.length??0),0),C=d.some(g=>g.partsB),v=new Array(b+1).fill(0),_=new Array(b+1).fill(0),h=Array.from({length:b+1},()=>new Array(y).fill(0)),w=Array.from({length:b+1},()=>new Array(y).fill(0));for(const g of d){const B=g.date.getDate();if(v[B]+=g.a,_[B]+=g.b,g.parts)for(let x=0;x<y;x++)h[B][x]+=g.parts[x]??0;if(g.partsB)for(let x=0;x<y;x++)w[B][x]+=g.partsB[x]??0}i.set(c,{year:p,month:f,daysInMonth:b,partsLen:y,hasPartsB:C,dayA:v,dayB:_,dayParts:h,dayPartsB:w})}const l=(c,d,m)=>new Date(c,d,m).getTime()>new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime(),u={};for(const[c,d]of i){const{year:m,month:p,daysInMonth:f,dayA:b,dayB:y,dayParts:C,dayPartsB:v}=d,_=m===t.getFullYear()&&p===t.getMonth(),h=t.getDate(),w=i.get(r(p===11?m+1:m,(p+1)%12)),g=d.partsLen,B=[];for(let A=1;A<=f;A++){const N=_&&A>h;B.push({label:String(A),...N&&b[A]===0&&y[A]===0?{future:!0}:{},a:N&&b[A]===0&&y[A]===0?-1:b[A],b:y[A],...g?{parts:C[A]}:{},...g&&d.hasPartsB?{partsB:v[A]}:{}})}const x=[];for(let A=fn(m,p);A<=f;A+=7){const N=Math.max(0,A+6-f),k=N&&w?Math.max(g,w.partsLen):g,S=d.hasPartsB||!!(N&&w?.hasPartsB);let E=0,F=0;const $=new Array(k).fill(0),U=new Array(k).fill(0);for(let T=A;T<=Math.min(A+6,f);T++){E+=b[T],F+=y[T];for(let I=0;I<g;I++)$[I]+=C[T][I],U[I]+=v[T][I]}if(N&&w)for(let T=1;T<=N&&!l(w.year,w.month,T);T++){E+=w.dayA[T],F+=w.dayB[T];for(let I=0;I<w.partsLen;I++)$[I]+=w.dayParts[T][I],U[I]+=w.dayPartsB[T][I]}const j=N?`${(p+1)%12+1}/${N}`:`${A+6}`;x.push({label:`${x.length+1}\uC8FC`,sublabel:`[${A}\uC77C~${j}\uC77C]`,a:E,b:F,...k?{parts:$}:{},...k&&S?{partsB:U}:{}})}u[c]={weekly:x,daily:B}}return u}function Gl(){const e=Qn(),t=e.getFullYear(),a=e.getMonth()+1,r=[];for(let s=2024;s<=t;s++){const i=s===t?a:12;for(let l=1;l<=i;l++){const u=`${s}\uB144 ${l}\uC6D4`;r.push({value:u,label:u,year:s,month:l})}}return r.reverse()}Gl();function ly(){return Gl()}const Kl=["\uCCAB\uC9F8","\uB458\uC9F8","\uC14B\uC9F8","\uB137\uC9F8","\uB2E4\uC12F\uC9F8","\uC5EC\uC12F\uC9F8","\uC77C\uACF1\uC9F8"];function Yl(e){const{t,i18n:a}=ye.useTranslation(),[r,s]=o.useState("week"),i=o.useMemo(()=>ly().filter(k=>k.value in e),[e]),l=o.useMemo(()=>{const k=[];for(const S of i){const E=new Date(S.year,S.month,0).getDate(),F=fn(S.year,S.month-1),$=Math.ceil((E-F+1)/7);for(let U=$-1;U>=0;U--)k.push({value:`${S.value}#${U}`,monthKey:S.value,year:S.year,month:S.month,week:U})}return k},[i]),u=o.useCallback(k=>{const S=t("calendar.yearMonth",{year:k.year,month:k.month});return a.language?.startsWith("ko")?`${S} ${Kl[k.week]??`${k.week+1}`}\uC8FC`:`${S} Week ${k.week+1}`},[t,a.language]),c=o.useMemo(()=>i.map(k=>({value:k.value,label:t("calendar.yearMonth",{year:k.year,month:k.month})})),[t,i]),d=o.useMemo(()=>l.map(k=>({value:k.value,label:u(k)})),[l,u]),m=o.useMemo(()=>sy(),[e]),p=o.useMemo(()=>i.find(k=>k.value===m.monthKey)?.value??i[0]?.value??"",[i,m]),f=o.useMemo(()=>l.find(k=>k.value===m.value)?.value??l[0]?.value??"",[l,m]),[b,y]=o.useState(""),[C,v]=o.useState("");o.useEffect(()=>{i.find(k=>k.value===b)||y(p)},[i,b,p]),o.useEffect(()=>{l.find(k=>k.value===C)||v(f)},[l,C,f]);const _=r==="month"?c:d,h=r==="month"?b:C,w=r==="month"?y:v,g=o.useMemo(()=>{const k=t("calendar.dow",{returnObjects:!0});return Array.isArray(k)?k:["\uC77C","\uC6D4","\uD654","\uC218","\uBAA9","\uAE08","\uD1A0"]},[t]),B=_.findIndex(k=>k.value===h),x=o.useCallback(()=>{const k=_.findIndex(S=>S.value===h);k<_.length-1&&w(_[k+1].value)},[_,h,w]),A=o.useCallback(()=>{const k=_.findIndex(S=>S.value===h);k>0&&w(_[k-1].value)},[_,h,w]),N=o.useMemo(()=>[{key:"week",label:t("manager.chart.periodWeek","\uC8FC")},{key:"month",label:t("manager.chart.periodMonth","\uC6D4")}],[t]);return{period:r,setPeriod:s,range:h,setRange:w,activeOptions:_,activeIdx:B,handlePrev:x,handleNext:A,periodOptions:N,monthRange:b,weekRange:C,weekRanges:l,DOW:g}}const gt=e=>typeof e=="number"&&Number.isFinite(e)?e:0;function Nn(e,t=!0){return e.future===!0||t&&e.a===-1}function uy({data:e,colorA:t,colorB:a,labelA:r,labelB:s,barWidth:i=10,barGap:l=1,height:u=140,maxOverride:c,tightMax:d,seriesColors:m,seriesLabels:p,rateLabels:f,grouped:b=!1,baseline:y,focusableBars:C=!1}){const v=!a,_=!!(m&&m.length>0),h=y,w=o.useMemo(()=>_?Math.max(0,...e.filter(V=>!Nn(V,h==null)).map(V=>b?Math.max(0,...(V.parts??[]).map(gt)):(V.parts??[]).reduce((q,P)=>q+Math.max(0,gt(P)),0))):Math.max(0,...e.filter(V=>!Nn(V,h==null)).flatMap(V=>v?[gt(V.a)]:[gt(V.a),gt(V.b)])),[e,v,_,b]),g=o.useMemo(()=>{if(h==null)return 0;const V=e.filter(q=>!Nn(q,h==null)).flatMap(q=>_?(q.parts??[]).map(gt):v?[gt(q.a)]:[gt(q.a),gt(q.b)]);return Math.max(0,...V.map(q=>Math.abs(q-h)))},[e,h,_,v]),B=o.useMemo(()=>{const V=h!=null?g:w;return c??(d?V>0?V:10:Math.ceil(V/10)*10||10)},[w,g,h,c,d]),x=u,A=_?b?Math.max(1,m.length):1:v?1:2,N={"--bar-width":`${o.useMemo(()=>{const V=Math.max(1,e.length);return Math.max(2,Math.min(i,Math.round(120/(V*A)+6)))},[e.length,A,i])}px`},k={"--bar-group-gap":`${Math.max(0,l)}px`},S=o.useMemo(()=>{const V=Math.round(B/2);return h!=null?[h+B,...V!==B?[h+V]:[],h,...V!==B?[h-V]:[],h-B]:V!==B?[B,V,0]:[B,0]},[B,h]),E=V=>h!=null?1-(V-(h-B))/(2*B):1-V/B,[F,$]=o.useState(null),U=o.useCallback(()=>$(null),[]),j=o.useCallback((V,q)=>{const P=[V.label,V.sublabel].filter(Boolean).join(" ");let O;if(_&&b&&V.rawPartsB)O=(p??[]).map((D,H)=>{const L=V.rawPartsB[H]??0;return{text:L>0?`${D}: ${q[H]??0}% (${V.rawParts?.[H]??0}/${L})`:`${D}: -`,color:(m??[])[H]}});else if(_&&b)O=(p??[]).map((D,H)=>({text:`${D}: ${K(q[H]??0)}`,color:(m??[])[H]}));else if(_){const D=(p??[]).map((L,R)=>({text:`${L}: ${q[R]??0}`,color:(m??[])[R]})),H=D.filter((L,R)=>(q[R]??0)>0);O=H.length?H:D}else f&&!v?O=[{text:`${r} ${gt(V.a)}%`,color:t},{text:`${s} ${gt(V.b)}%`,color:a}]:f&&V.rawB!==void 0?O=[{text:`${f.total} ${V.rawB}`},{text:`${f.done} ${V.rawA??0}`,color:t}]:v?O=[{text:`${r}: ${gt(V.a)}`,color:t}]:O=[{text:`${r}: ${gt(V.a)}`,color:t},{text:`${s}: ${gt(V.b)}`,color:a}];return{title:P,items:O}},[_,b,p,m,f,v,r,s,t,a,h]),T=o.useCallback((V,q,P)=>{const O=V.getBoundingClientRect(),{title:D,items:H}=j(q,P);$({rect:{left:O.left,top:O.top,right:O.right,bottom:O.bottom,width:O.width,height:O.height},title:D,items:H})},[j]),I=o.useCallback((V,q)=>{const{title:P,items:O}=j(V,q);return[P,...O.map(D=>D.text)].filter(Boolean).join(", ")},[j]),K=V=>h!=null&&V>h?`+${V}`:`${V}`,ee=F!=null;return o.useEffect(()=>{if(!ee)return;const V=()=>$(null),q=P=>{const O=P.target;O&&typeof O.closest=="function"&&O.closest(".manager-bar-chart-col")||$(null)};return window.addEventListener("scroll",V,!0),document.addEventListener("pointerdown",q,!0),()=>{window.removeEventListener("scroll",V,!0),document.removeEventListener("pointerdown",q,!0)}},[ee]),n.jsxs("div",{className:"manager-bar-chart-wrap",style:k,children:[n.jsx("div",{className:"manager-bar-chart-inner",children:n.jsx("div",{className:"manager-bar-chart-scroll",children:n.jsxs("div",{className:"manager-bar-chart-area",children:[n.jsxs("div",{className:"manager-bar-chart-plot",style:{height:x},children:[S.slice(0,-1).map((V,q)=>n.jsx("div",{className:`manager-bar-chart-gridline${h!=null&&V===h?" manager-bar-chart-gridline--baseline":""}`,style:{top:E(V)*x},children:n.jsx("span",{className:"manager-bar-chart-gridline__label caption-1",children:V})},q)),e.map((V,q)=>{const P=Nn(V,h==null),O=x/2,D=z=>h!=null?Math.min(O,Math.abs(gt(z)-h)/B*O):Math.min(x,Math.max(0,gt(z)/B*x)),H=P?0:D(V.a),L=P?0:D(V.b),R=(V.parts??[]).map(gt);return n.jsx("div",{className:`manager-bar-chart-col${b&&_?" manager-bar-chart-col--group":""}`,style:{cursor:P?"default":"pointer"},tabIndex:C&&!P?0:void 0,role:C&&!P?"img":void 0,"aria-label":C&&!P?I(V,R):void 0,onMouseEnter:P?void 0:z=>T(z.currentTarget,V,R),onFocus:P||!C?void 0:z=>T(z.currentTarget,V,R),onBlur:C?U:void 0,onMouseLeave:U,children:!P&&(_&&b?(m??[]).map((z,J)=>{const Y=R[J]??0;if(h==null)return n.jsx("div",{className:"manager-bar-chart-bar",style:{...N,height:D(Y),background:z}},J);const Z=gt(Y)<h;return n.jsxs("div",{className:"manager-bar-chart-slot",style:N,children:[n.jsx("div",{className:"manager-bar-chart-slot__half manager-bar-chart-slot__half--up",children:!Z&&n.jsx("div",{className:"manager-bar-chart-bar manager-bar-chart-bar--full",style:{height:D(Y),background:z}})}),n.jsx("div",{className:"manager-bar-chart-slot__half manager-bar-chart-slot__half--down",children:Z&&n.jsx("div",{className:"manager-bar-chart-bar manager-bar-chart-bar--full manager-bar-chart-bar--down",style:{height:D(Y),background:z}})})]},J)}):_?n.jsx("div",{className:"manager-bar-chart-stack",style:N,children:(()=>{const z=R.reduce((Y,Z,ne)=>Z>0?ne:Y,-1);let J=x;return R.map((Y,Z)=>{if(Y<=0)return null;const ne=Math.min(J,Y/B*x);return J-=ne,n.jsx("div",{className:"manager-bar-chart-stack-segment",style:{height:ne,background:(m??[])[Z],borderRadius:Z===z?"6px 6px 0 0":void 0}},Z)})})()}):h!=null?n.jsx(n.Fragment,{children:[{v:gt(V.a),c:t},...v?[]:[{v:gt(V.b),c:a}]].map(({v:z,c:J},Y)=>n.jsxs("div",{className:"manager-bar-chart-slot",style:N,children:[n.jsx("div",{className:"manager-bar-chart-slot__half manager-bar-chart-slot__half--up",children:z>=h&&n.jsx("div",{className:"manager-bar-chart-bar manager-bar-chart-bar--full",style:{height:D(z),background:J}})}),n.jsx("div",{className:"manager-bar-chart-slot__half manager-bar-chart-slot__half--down",children:z<h&&n.jsx("div",{className:"manager-bar-chart-bar manager-bar-chart-bar--full manager-bar-chart-bar--down",style:{height:D(z),background:J}})})]},Y))}):n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"manager-bar-chart-bar",style:{...N,height:H,background:t}}),!v&&n.jsx("div",{className:"manager-bar-chart-bar",style:{...N,height:L,background:a}})]}))},q)})]}),n.jsx("div",{className:"manager-bar-chart-x-axis",children:e.map((V,q)=>{const P=Nn(V,h==null);return n.jsxs("span",{className:`manager-bar-chart-x-axis__label${P?" manager-bar-chart-x-axis__label--future":""}`,children:[n.jsxs("span",{className:"caption-1 manager-bar-chart-x-axis__main",children:[V.isToday&&n.jsx("span",{className:"manager-bar-chart-x-axis__today-dot",style:{background:t}}),V.label]}),V.sublabel&&n.jsx("span",{className:"caption-1",children:V.sublabel})]},q)})})]})})}),F&&n.jsx(Wn,{anchorRect:F.rect,title:F.title,items:F.items,showIndex:!1,closeOnOutsideClick:!1})]})}function Zl({control:e}){const{t}=ye.useTranslation(),{activeOptions:a,activeIdx:r,range:s,setRange:i,handlePrev:l,handleNext:u,periodOptions:c,period:d,setPeriod:m}=e,p=d==="week"?t("calendar.prevWeek","\uC774\uC804 \uC8FC"):t("calendar.prevMonth","\uC774\uC804 \uB2EC"),f=d==="week"?t("calendar.nextWeek","\uB2E4\uC74C \uC8FC"):t("calendar.nextMonth","\uB2E4\uC74C \uB2EC");return n.jsxs("div",{className:"manager-section-controls",children:[n.jsx(me,{htmlType:"button",size:32,type:"dot",icon:"chevron-left",ariaLabel:p,showTooltipInfo:p,disabled:r===a.length-1,onClick:l}),n.jsx(cn,{value:s,onChange:i,options:a,size:40,className:"month-dropdown",ariaLabel:t("calendar.rangeSelect","\uAE30\uAC04 \uC120\uD0DD")}),n.jsx(me,{htmlType:"button",size:32,type:"dot",icon:"chevron-right",ariaLabel:f,showTooltipInfo:f,disabled:r<=0,onClick:u}),n.jsx(kn,{ariaLabel:t("calendar.periodSelect","\uAE30\uAC04 \uB2E8\uC704"),options:c,value:d,onChange:b=>m(b),size:40})]})}function yo(e,t,a,r=!0){const s=new Date(a.getFullYear(),a.getMonth(),a.getDate());return Array.from({length:7},(i,l)=>{const u=new Date(t);u.setDate(t.getDate()+l);const c=(e[`${u.getFullYear()}\uB144 ${u.getMonth()+1}\uC6D4`]?.daily??[])[u.getDate()-1],d=c!=null&&Nn(c,r)||u>s;return{dt:u,entry:c,isFuture:d}})}function cy(e,t,a,r,s=!0){const{period:i,monthRange:l,weekRange:u,weekRanges:c,DOW:d}=t,m=r?.startsWith("ko"),p=Qn(),f=p.getFullYear(),b=p.getMonth()+1,y=p.getDate();if(i==="month"){const _=e[l]??{weekly:[],daily:[]},h=l.match(/^(\d+)년 (\d+)월$/),w=h?Number(h[1]):null,g=h?Number(h[2]):null,B=w&&g?fn(w,g-1):1;return _.weekly.map((x,A)=>{const N=A+1;let k=x.label,S=!1,E=!1;if(w&&g){const F=B+A*7,$=new Date(w,g-1,F+6),U=$.getMonth()+1,j=$.getDate(),T=U===g?`${j}`:`${U}/${j}`;k=a("manager.chart.weekRange",{start:F,end:T});const I=new Date(f,b-1,y).getTime();S=I>=new Date(w,g-1,F).getTime()&&I<=$.getTime(),E=w>f||w===f&&(g>b||g===b&&F>y)}return{...x,label:k,sublabel:m?`${Kl[N-1]??N}\uC8FC`:`Week ${N}`,isToday:S,future:x.future===!0||E||void 0,a:E?-1:x.a,b:E?0:x.b}})}const C=c.find(_=>_.value===u);if(!C)return[];const v=new Date(C.year,C.month-1,fn(C.year,C.month-1)+C.week*7);return yo(e,v,p,s).map(({dt:_,entry:h,isFuture:w})=>{const g=_.getMonth()+1,B=_.getDate(),x=_.getFullYear();return{label:g===C.month&&x===C.year?`${B}`:`${g}/${B}`,sublabel:d[_.getDay()]??"",future:w||void 0,a:w?-1:h&&h.a>0?h.a:0,b:w?0:h&&h.b>0?h.b:0,isToday:x===f&&g===b&&B===y,...h?.parts?{parts:w?h.parts.map(()=>0):h.parts}:{},...h?.partsB?{partsB:w?h.partsB.map(()=>0):h.partsB}:{}}})}const dy={small:{height:100,barWidth:16},medium:{height:140,barWidth:20},large:{height:180,barWidth:24}};function py({focusableBars:e,size:t="medium",barWidth:a,titleKey:r,titleLevel:s,data:i,colorA:l,colorB:u,labelAKey:c,labelBKey:d,showTotal:m=!1,totalUnitKey:p,totalLabelKey:f,control:b,hideControls:y=!1,rate:C=!1,rateAgg:v="dayMean",tightMax:_=!1,avgMode:h=!1,totalFormat:w,series:g,seriesMode:B="stack",loading:x=!1,onDetail:A,headExtra:N,headSegment:k,icon:S,disc:E,onClick:F,cardAriaLabel:$,cardTooltip:U,detailSize:j=32,barGap:T,baseline:I,className:K,inGrid:ee=!1}){const{t:V,i18n:q}=ye.useTranslation(),P=dy[t],O=Yl(i),D=b??O,H=o.useMemo(()=>cy(i,D,V,q.language,I==null),[i,D,V,q.language,I]),L=B==="group"&&!!g&&g.length>0;T!=null&&!L&&tn("bar-chart-bargap-without-group","[BarChart] barGap \uC740 seriesMode='group' + series \uC5D0\uC11C\uB9CC \uC4F0\uC778\uB2E4 \u2014 \uADF8 \uBC16\uC5D0\uC11C\uB294 \uC544\uBB34 \uC77C\uB3C4 \uD558\uC9C0 \uC54A\uB294\uB2E4.");const R=o.useMemo(()=>{if(!C)return H;const ne=D.period==="month"?D.monthRange.match(/^(\d+)년 (\d+)월$/):null,le=Qn(),ue=g?.length??0,Ee=W=>{const te=[],fe=[],Se=[];for(let Ce=0;Ce<ue;Ce++){let ie=0,ce=0,de=0;for(const be of W){const _e=gt(be.a[Ce]),Be=gt(be.b[Ce]);Be<=0||(ie+=_e,ce+=Be,de+=_e/Be*100)}te.push(v==="weighted"?ce>0?Math.round(ie/ce*100):0:W.length?Math.round(de/W.length):0),fe.push(ie),Se.push(ce)}return{pct:te,ra:fe,rb:Se}};return H.map((W,te)=>{let fe=W.a===-1?-1:W.b>0?Math.round(W.a/W.b*100):0;if(ne&&!Nn(W)){const Ce=Number(ne[1]),ie=Number(ne[2])-1,ce=yo(i,new Date(Ce,ie,fn(Ce,ie)+te*7),le).filter(de=>!de.isFuture);if(v==="weighted"){let de=0,be=0;for(const{entry:_e}of ce)_e&&_e.b>0&&(de+=_e.a,be+=_e.b);fe=be>0?Math.round(de/be*100):0}else fe=ce.length?Math.round(ce.reduce((de,{entry:be})=>de+(be&&be.b>0?be.a/be.b*100:0),0)/ce.length):0}let Se=null;if(L&&!Nn(W)){let Ce;if(ne){const ce=Number(ne[1]),de=Number(ne[2])-1;Ce=yo(i,new Date(ce,de,fn(ce,de)+te*7),le).filter(be=>!be.isFuture).map(({entry:be})=>({a:be?.parts??[],b:be?.partsB??[]}))}else Ce=[{a:W.parts??[],b:W.partsB??[]}];const ie=Ee(Ce);Se={parts:ie.pct,rawParts:ie.ra,rawPartsB:ie.rb}}return{...W,a:fe,b:W.a===-1?0:d&&W.parts&&W.parts[1]>0?Math.round(W.parts[0]/W.parts[1]*100):0,rawA:W.a===-1?-1:W.a,rawB:W.b,...Se??{}}})},[H,C,v,d,D.period,D.monthRange,i,L,g?.length]),z=o.useMemo(()=>{if(C||h){const le=(D.period==="week"?H:i[D.monthRange]?.daily??[]).filter(Ee=>Ee.a!==-1);if(le.length===0)return 0;if(C&&v==="weighted"){let Ee=0,W=0;for(const te of le)te.b>0&&(Ee+=te.a,W+=te.b);return W>0?Math.round(Ee/W*100):0}const ue=C?le.reduce((Ee,W)=>Ee+(W.b>0?W.a/W.b*100:0),0):le.reduce((Ee,W)=>Ee+(W.a>0?W.a:0),0);return Math.round(ue/le.length)}const ne=D.period==="month"?i[D.monthRange]?.daily??[]:R;return I!=null?ne.reduce((le,ue)=>le+(Nn(ue,!1)?0:gt(ue.a)+(d?gt(ue.b):0)),0):ne.reduce((le,ue)=>le+(ue.a>0?ue.a:0)+(d&&ue.b>0?ue.b:0),0)},[R,H,C,v,h,I,d,D.period,D.monthRange,i]),J=g&&g.length>0?g.map(ne=>({color:ne.color,label:ne.label})):[{color:l,label:V(c)},...d?[{color:u,label:V(d)}]:[]],Y=t==="small",Z=[Y?"manager-section--compact":t==="large"?"manager-section--full":void 0,K].filter(Boolean).join(" ")||void 0;return n.jsx(bo,{className:Z,inGrid:ee,icon:S,disc:E,onClick:F,ariaLabel:$,tooltip:U,headSegment:k,headMenuItems:A?[{label:V("trainingStatus.detail","\uC0C1\uC138\uBCF4\uAE30"),icon:"list",onClick:A,closeOnSelect:!0}]:void 0,title:V(r),titleLevel:s,titleClassName:Y?"h5 chart-section-title--small":void 0,headRight:Y?N??void 0:({collapsed:ne})=>n.jsxs(n.Fragment,{children:[!y&&n.jsx(Zl,{control:D}),N,A&&!ne&&n.jsx("span",{className:"manager-bar-chart-detail-btn",children:n.jsx(me,{htmlType:"button",size:j,type:"dot",icon:"list",ariaLabel:V("trainingStatus.detail","\uC0C1\uC138\uBCF4\uAE30"),showTooltipInfo:V("trainingStatus.detail","\uC0C1\uC138\uBCF4\uAE30"),onClick:A})})]}),subRow:n.jsxs(n.Fragment,{children:[m?C||h||f&&w?n.jsx(Ra,{label:Y?void 0:`${V(D.period==="week"?"manager.chart.weeklyPrefix":"manager.chart.monthlyPrefix")} ${V(f??c)}`,children:w?(w(z).match(/([+-]?\d[\d.,]*|[^\d]+)/g)??[]).map((ne,le)=>/\d/.test(ne)?n.jsx("span",{className:"barchart-total__num h0",children:ne},le):n.jsx("span",{className:"barchart-total__unit h5",children:ne},le)):n.jsxs(n.Fragment,{children:[n.jsx("span",{className:"barchart-total__num h0",children:z}),p&&n.jsx("span",{className:"barchart-total__unit h5",children:V(p)})]})}):n.jsxs(Ra,{children:[n.jsx("span",{className:"barchart-total__num h0",children:z}),n.jsx("span",{className:"barchart-total__unit h5",children:V(c)}),p&&n.jsx("span",{className:"barchart-total__unit h5",children:V(p)})]}):n.jsx("span",{}),n.jsx(go,{items:J,className:"caption-1"})]}),children:x?n.jsx("div",{className:"manager-bar-chart-wrap manager-bar-chart-loading","aria-busy":"true",children:n.jsx("div",{className:"manager-bar-chart-inner",children:n.jsxs("div",{className:"manager-bar-chart-area manager-bar-chart-area--loading",children:[n.jsx("div",{className:"manager-bar-chart-plot manager-bar-chart-plot--loading",style:{height:P.height},children:n.jsx($a,{size:32})}),n.jsx("div",{className:"manager-bar-chart-x-axis","aria-hidden":"true",children:n.jsxs("span",{className:"manager-bar-chart-x-axis__label",children:[n.jsx("span",{className:"caption-1 manager-bar-chart-x-axis__main",children:"\xA0"}),R.some(ne=>!!ne.sublabel)&&n.jsx("span",{className:"caption-1",children:"\xA0"})]})})]})})}):n.jsx(uy,{focusableBars:e,data:R,colorA:l,colorB:d?u:void 0,labelA:V(c),labelB:d?V(d):void 0,barWidth:a??P.barWidth,barGap:T,baseline:I,height:P.height,maxOverride:C?100:void 0,tightMax:_,seriesColors:g?.map(ne=>ne.color),seriesLabels:g?.map(ne=>ne.label),rateLabels:C?{total:V("trainingStatus.today.tooltipTotal","\uC804\uCCB4"),done:V("trainingStatus.today.tooltipDone","\uC644\uB8CC")}:void 0,grouped:L})})}const Xl=120,my={left:38,right:16,top:26,bottom:24};function hy({points:e=[],range:t,ticks:a=[],axisTitle:r,color:s,height:i=156,fallbackWidth:l=320,insets:u,overlay:c,ariaLabel:d,className:m}){const[p,f]=o.useState(null),[b,y]=o.useState(null);o.useEffect(()=>{if(!b)return;const I=ee=>f(Math.round(ee)||null);if(I(b.getBoundingClientRect().width),typeof ResizeObserver>"u")return;const K=new ResizeObserver(([ee])=>I(ee.contentRect.width));return K.observe(b),()=>{K.disconnect()}},[b]);const{payload:C,anchorRect:v,openAfterDelay:_,close:h}=bb(Xl),w=o.useCallback((I,K)=>{I&&_(I,K.getBoundingClientRect())},[_]),g=p??l,B=i,{left:x,right:A,top:N,bottom:k}={...my,...u},[S,E]=t,F=I=>E===S?x:x+(g-x-A)*(I-S)/(E-S),$=I=>N+(B-N-k)*(100-I)/100,U={x:F,y:$,plot:{left:x,right:g-A,top:N,bottom:B-k,width:Math.max(0,g-x-A),height:Math.max(0,B-N-k)}},j=e.filter(I=>!I.hollow),T=s??"var(--color-main)";return n.jsxs(n.Fragment,{children:[n.jsxs("svg",{ref:y,className:ke("line-chart",m),viewBox:`0 0 ${g} ${B}`,role:"img","aria-label":d??e.map(I=>I.description).filter(Boolean).join(", "),children:[r&&n.jsx("text",{className:"line-chart__axis-title",x:0,y:12,children:r}),[0,100].map(I=>n.jsxs("g",{children:[n.jsx("line",{className:"line-chart__grid",x1:x,x2:g-A,y1:$(I),y2:$(I)}),n.jsxs("text",{className:"line-chart__tick",x:x-6,y:$(I)+4,textAnchor:"end",children:[I,"%"]})]},I)),c?.(U),a.map(I=>n.jsx("text",{className:"line-chart__tick",x:F(I.x),y:B-5,textAnchor:"middle",children:I.label},I.x)),j.length>1&&n.jsx("polyline",{className:"line-chart__line",fill:"none",stroke:T,points:j.map(I=>`${F(I.x)},${$(I.pct)}`).join(" ")}),e.map(I=>n.jsxs("g",{className:"line-chart__dot",onPointerEnter:K=>w(I.description,K.currentTarget),onPointerLeave:h,children:[n.jsx("circle",{className:"line-chart__dot-hit",cx:F(I.x),cy:$(I.pct),r:12}),n.jsx("circle",{className:ke("line-chart__dot-main",I.hollow&&"is-hollow"),cx:F(I.x),cy:$(I.pct),r:4,stroke:T,fill:I.hollow?void 0:T})]},I.x))]}),C!=null&&n.jsx(ln,{anchorRect:v,offset:10,closeOnOutsideClick:!1,className:"line-chart__tip",role:"tooltip",ariaLabel:C,children:C})]})}function Cy({icon:e,iconSize:t=56,title:a,titleClass:r="h2",description:s,tipGroups:i,start:l,className:u}){return n.jsxs("div",{className:ke("game-intro",u),children:[e!=null&&n.jsx("span",{className:"game-intro__icon","aria-hidden":"true",style:{"--game-intro-icon":`${t}px`},children:e}),n.jsx("h2",{className:ke("game-intro__title",r),children:a}),s!=null&&n.jsx("p",{className:"game-intro__description body-3",children:s}),i?.map((c,d)=>n.jsxs("div",{className:"game-intro__tips",children:[c.title!=null&&n.jsx("span",{className:"game-intro__tips-title body-3",children:c.title}),c.tips.map((m,p)=>n.jsxs("span",{className:"game-intro__tip body-3",children:[m.icon!=null&&n.jsx("span",{"aria-hidden":"true",children:m.icon}),n.jsx("span",{children:m.text})]},p))]},d)),l&&n.jsx(me,{htmlType:"button",className:l.className,variant:"main",color:l.color,size:48,width:"100%",disabled:l.disabled,onClick:l.onClick,children:l.label})]})}const Jl=(e,t,a)=>{const r=new Date(Date.UTC(e,t,a));return`${r.getUTCFullYear()}-${String(r.getUTCMonth()+1).padStart(2,"0")}-${String(r.getUTCDate()).padStart(2,"0")}`},Ql=(e,t,a,r)=>({from:ci(e,t,a),to:new Date(ci(e,t,a+r).getTime()-1),fromYmd:Jl(e,t,a),toYmd:Jl(e,t,a+r-1)});function fy(e,t=0){if(e.period==="month"){const s=e.monthRange.match(/^(\d+)년 (\d+)월$/),i=Qn(),l=s?Number(s[1]):i.getFullYear(),u=(s?Number(s[2]):i.getMonth()+1)-1+t,c=new Date(Date.UTC(l,u+1,0)).getUTCDate();return Ql(l,u,1,c)}const a=e.weekRanges.find(s=>s.value===e.weekRange);if(!a){const s=new Date,i=_a();return{from:s,to:s,fromYmd:i,toYmd:i}}const r=fn(a.year,a.month-1);return Ql(a.year,a.month-1,r+(a.week+t)*7,7)}const vo={small:{diameter:96,strokeWidth:16},medium:{diameter:120,strokeWidth:18},large:{diameter:160,strokeWidth:22}};function eu(e){return!Number.isFinite(e)||e<=0?0:e>=1?100:Math.min(99,Math.max(1,Math.round(e*100)))}function tu({done:e,total:t,segments:a,color:r="var(--color-main)",size:s="medium",strokeWidth:i,label:l="%",hideCenter:u=!1,hideLabel:c=!1}){const d=typeof s=="number"?s:vo[s].diameter,m=i??(typeof s=="number"?12:vo[s].strokeWidth),p=d/2,f=(d-m)/2,b=2*Math.PI*f;if(a&&a.length>0){const _=a.reduce((h,w)=>{const g=h.length>0?h[h.length-1].acc:0,B=Number.isFinite(w.ratio)?w.ratio:0,x=Math.max(0,Math.min(B,1-g));return h.push({color:w.color,rotate:-90+g*360,dash:b*x,acc:g+x}),h},[]);return n.jsx("div",{className:"ring-chart",style:{width:d,height:d},children:n.jsxs("svg",{width:d,height:d,viewBox:`0 0 ${d} ${d}`,"aria-hidden":"true",children:[n.jsx("circle",{cx:p,cy:p,r:f,fill:"none",stroke:"var(--color-whiteLine)",strokeWidth:m}),_.map((h,w)=>h.dash>0&&n.jsx("circle",{cx:p,cy:p,r:f,fill:"none",stroke:h.color,strokeWidth:m,strokeDasharray:`${h.dash} ${b}`,strokeLinecap:"round",transform:`rotate(${h.rotate} ${p} ${p})`},w))]})})}const y=(t??0)>0?Math.min((e??0)/t,1):0,C=b*y,v=b-C;return n.jsxs("div",{className:"ring-chart",style:{width:d,height:d},children:[n.jsxs("svg",{width:d,height:d,viewBox:`0 0 ${d} ${d}`,"aria-hidden":"true",children:[n.jsx("circle",{cx:p,cy:p,r:f,fill:"none",stroke:"var(--color-whiteLine)",strokeWidth:m}),y>0&&n.jsx("circle",{cx:p,cy:p,r:f,fill:"none",stroke:r,strokeWidth:m,strokeDasharray:`${C} ${v}`,strokeLinecap:y<.02||y>.98?"butt":"round",transform:`rotate(-90 ${p} ${p})`})]}),!u&&n.jsxs("div",{className:`ring-chart__center${c?"":` ${d<=96?"ring-chart__center--small":s==="medium"?"ring-chart__center--medium":"ring-chart__center--large"}`}`,children:[n.jsx("span",{className:`ring-chart__pct ${d<=96?"h2":"h1"}`,children:eu(y)}),!c&&n.jsx("span",{className:`ring-chart__label ${d<=96?"caption-2":"caption-1"}${d<=96||s==="medium"?" ring-chart__label--tight":""}`,children:l})]})]})}function gy({titleKey:e,titleLevel:t,headRight:a,icon:r,showTotal:s,totalLabelKey:i,legend:l,loading:u,className:c,inGrid:d=!1,onClick:m,ariaLabel:p,tooltip:f,...b}){const{t:y}=ye.useTranslation();if(!e)return n.jsx(tu,{...b});const C=(b.total??0)>0?eu(Math.min((b.done??0)/b.total,1)):0,v=b.size==="small",_=typeof b.size=="number"?b.size:vo[b.size??"medium"].diameter,h=b.size==="large",w=[c,v?"manager-section--compact":h?"manager-section--full":""].filter(Boolean).join(" ")||void 0,g=r&&n.jsx("span",{className:"chart-section-icon",children:n.jsx(Je,{icon:r,className:"chart-section-icon-inner"})});return n.jsx(bo,{className:w,inGrid:d,onClick:m,ariaLabel:p,tooltip:f,title:y(e),titleLevel:t,titleClassName:v?"h5 chart-section-title--small":void 0,headRight:g||(v?void 0:a),subRow:(s||l)&&n.jsxs(n.Fragment,{children:[s?n.jsxs(Ra,{label:!v&&i?y(i):void 0,children:[n.jsx("span",{className:"barchart-total__num h0",children:C}),n.jsx("span",{className:"barchart-total__unit h5",children:"%"})]}):n.jsx("span",{}),l&&n.jsx(go,{items:l})]}),children:u?n.jsx("div",{className:"ring-chart-section-body ring-chart-section-body--offset",children:n.jsx("div",{className:"ring-chart ring-chart--loading",style:{width:_,height:_},"aria-busy":"true",children:n.jsx($a,{size:32})})}):n.jsx("div",{className:"ring-chart-section-body ring-chart-section-body--offset",children:n.jsx(tu,{...b,hideCenter:b.hideCenter??v})})})}function by({label:e,value:t,change:a,changeType:r,icon:s,tooltip:i,onClick:l,children:u}){const c=o.useRef(null),{anchorRect:d,openAt:m,close:p}=Aa(),f=o.useCallback(()=>{i&&c.current&&m(c.current)},[i,m]),b=r??(a===void 0?void 0:a>0?"up":a<0?"down":"neutral"),y=a===void 0?void 0:a>0?`+${a}`:`${a}`,C=o.useCallback(v=>{l&&(v.key==="Enter"||v.key===" ")&&(v.preventDefault(),l())},[l]);return n.jsxs("div",{ref:c,className:`manager-stat-card${l?" manager-stat-card--clickable":""}`,onClick:l,onKeyDown:l?C:void 0,onPointerEnter:f,onPointerLeave:p,onFocus:f,onBlur:p,role:l?"button":void 0,tabIndex:l?0:void 0,"aria-label":l?[e,t,y].filter(v=>v!==void 0&&v!=="").join(" "):void 0,children:[i&&d&&n.jsx(_n,{anchorRect:{left:d.left,top:d.top+21,right:d.right,bottom:d.bottom,width:d.width,height:d.height},text:i}),n.jsxs("div",{className:"manager-stat-card__label-row",children:[n.jsx("span",{className:"manager-stat-card__label h5",children:e}),s&&n.jsx("span",{className:"manager-stat-card__icon",children:n.jsx(Je,{icon:s,className:"manager-stat-card__icon-inner"})})]}),n.jsxs("div",{className:"manager-stat-card__content",children:[n.jsxs("div",{className:"manager-stat-card__left",children:[n.jsx("div",{className:"manager-stat-card__value h2",children:t}),y&&n.jsx("div",{className:`manager-stat-card__change manager-stat-card__change--${b??"neutral"} caption-1`,children:y})]}),u&&n.jsx("div",{className:"manager-stat-card__body",children:u})]})]})}function nu({value:e,onChange:t,min:a=0,max:r=100,step:s=1,orientation:i="horizontal",size:l=24,disabled:u=!1,ariaLabel:c,length:d,className:m,label:p,formatValue:f,labelPos:b,labelAlign:y="right",showMinMax:C=!1,minLabel:v,maxLabel:_,showBgTick:h=!1,showFillTick:w=!1,tickStep:g,tickShape:B="dot"}){t&&!c&&tn("Slider:unnamed","[ihab/Slider] \uC774\uB984\uC774 \uC5C6\uC2B5\uB2C8\uB2E4 \u2014 ariaLabel \uC744 \uC8FC\uC138\uC694. label prop \uC740 \uAC12 \uD45C\uAE30 \uBC29\uC2DD\uC774\uC9C0 \uC774\uB984\uC774 \uC544\uB2D9\uB2C8\uB2E4.");const x=Math.min(r,Math.max(a,e)),A=r>a?(x-a)/(r-a):0,N=i==="vertical",k=!t,S=D=>t?.(Number(D.target.value)),E=typeof d=="number"?`${d}px`:d,F={"--slider-ratio":String(A),"--slider-thumb":`${l}px`,...E?N?{height:E}:{width:E}:{}},$=g??s,U=(h||w)&&$>0&&r>a?Math.floor((r-a)/$+1e-6):0;if(U>0&&U<=100){const D=B!=="dash",H=Y=>D?`radial-gradient(circle, ${Y} 0.5px, transparent 1px)`:N?`linear-gradient(to bottom, transparent calc(50% - 2px), ${Y} calc(50% - 2px), ${Y} calc(50% + 2px), transparent calc(50% + 2px))`:`linear-gradient(to right, transparent calc(50% - 2px), ${Y} calc(50% - 2px), ${Y} calc(50% + 2px), transparent calc(50% + 2px))`,L=D?"2px":"4px",R=[],z=[],J=[];for(let Y=0;Y<=U;Y++){const Z=Y*$/(r-a);if(Z>1+1e-6)break;const ne=`${((N?1-Z:Z)*100).toFixed(4)}%`,le=Z<=A+1e-6;if(le?!w:!h)continue;const ue=le?"var(--slider-tick-color-on-fill, var(--color-deepWhite))":"var(--slider-tick-color, var(--color-lightGray))";R.push(H(ue)),z.push(N?`${L} var(--slider-thumb)`:`var(--slider-thumb) ${L}`),J.push(N?`center ${ne}`:`${ne} center`)}R.push(N?"linear-gradient(to top, var(--slider-fill-color) var(--slider-fill), var(--color-darkWhite) var(--slider-fill))":"linear-gradient(to right, var(--slider-fill-color) var(--slider-fill), var(--color-darkWhite) var(--slider-fill))"),z.push("100% 100%"),J.push("0 0"),F.backgroundImage=R.join(", "),F.backgroundSize=z.join(", "),F.backgroundPosition=J.join(", "),F.backgroundRepeat="no-repeat"}const j=f?f(x):p==="percent"?`${Math.round(r>a?(x-a)/(r-a)*100:0)}%`:p==="count"?`${x} / ${r}`:x===a&&v?v:x===r&&_?_:void 0,T=n.jsx("input",{type:"range",className:ke("slider",`slider--${i}`,k&&"slider--static",!p&&!C&&m),min:a,max:r,step:s,value:x,disabled:u,readOnly:k,tabIndex:k?-1:void 0,"aria-label":c,"aria-valuetext":j,"aria-orientation":i,onChange:S,style:F});if(!p&&!C)return T;const I=n.jsx("span",{className:"slider-wrap__minmax caption-1",children:v??a}),K=n.jsx("span",{className:"slider-wrap__minmax caption-1",children:_??r}),ee=C?n.jsxs("div",{className:ke("slider-track-group",`slider-track-group--${i}`,!p&&m),children:[N?K:I,T,N?I:K]}):T;if(!p)return ee;const V=b??(N?"bottom":"right"),q=`${Math.round(r>a?(x-a)/(r-a)*100:0)}%`,P=f?f(x):p==="percent"?q:p==="count"?`${x} / ${r}`:String(x),O=n.jsx("span",{className:"slider-wrap__value body-3b",children:P});return n.jsxs("div",{className:ke("slider-wrap",`slider-wrap--${i}`,`slider-wrap--label-${V}`,`slider-wrap--align-${y}`,m),children:[ee,O]})}const yy=.86,vy=250,xo=(e,t,a,r)=>Math.round(Math.min(r,Math.max(a,e-t))),_o=(e,t,a,r)=>{const s=xo(e,t,a,r);return`${s<0?"-":"+"}${Math.abs(s)} dB`};function wo({analyser:e,audioElement:t,orientation:a="horizontal",length:r,label:s,labelPos:i,labelAlign:l="right",floorDb:u=-60,refDb:c=-35,displayMin:d=-5,displayMax:m=25,className:p,ariaLabel:f}){const b=o.useRef(null),y=o.useRef(null),C=o.useRef(null),v=o.useRef(null),[_,h]=o.useState(null);o.useEffect(()=>{const x=T=>{const I=_o(T,c,d,m);C.current&&(C.current.textContent=I);const K=b.current;K&&(K.setAttribute("aria-valuenow",String(xo(T,c,d,m))),K.setAttribute("aria-valuetext",I))},A=e??pC(t)??(_&&_.el===t?_.node:null),N=y.current;if(!A||!N){N?.style.setProperty("--meter-level","0"),x(u);let T=!1;return!e&&t&&za(t).then(I=>{!T&&I&&h({el:t,node:I})}),()=>{T=!0}}Ir();const k=new Float32Array(A.fftSize);let S=0,E=0,F=0,$=0,U=null;const j=T=>{const I=mC(A,k);S=I>S?I:S*yy;const K=S>1e-5?20*Math.log10(S):-1/0,ee=Math.max(u,K),V=ee-c,q=Math.min(1,Math.max(0,(V-d)/(m-d)));if(N.style.setProperty("--meter-level",q.toFixed(3)),E+=ee,F+=1,T-$>=vy){const P=E/F;U=U==null?P:U*.6+P*.4,x(U),E=0,F=0,$=T}v.current=requestAnimationFrame(j)};return v.current=requestAnimationFrame(j),()=>{v.current!=null&&cancelAnimationFrame(v.current),v.current=null}},[e,t,_,u,c,d,m]);const w=typeof r=="number"?`${r}px`:r,g=n.jsx("div",{className:"audio-meter__track",style:w?a==="vertical"?{height:w}:{width:w}:{},children:n.jsx("div",{ref:y,className:"audio-meter__fill"})}),B=i??(a==="vertical"?"bottom":"right");return n.jsxs("div",{ref:b,className:ke("audio-meter",`audio-meter--${a}`,s&&`audio-meter--label-${B}`,s&&`audio-meter--align-${l}`,p),role:"meter","aria-label":f,"aria-valuemin":d,"aria-valuemax":m,"aria-valuenow":xo(u,c,d,m),"aria-valuetext":_o(u,c,d,m),children:[g,s&&n.jsx("span",{ref:C,className:"audio-meter__value caption-2",children:_o(u,c,d,m)})]})}const au=260;function ru({message:e,position:t,duration:a,onClose:r}){const[s,i]=o.useState(!1),[l,u]=o.useState(!1),c=o.useRef(l),d=o.useRef(s);o.useEffect(()=>{c.current=l},[l]),o.useEffect(()=>{d.current=s},[s]);const m=o.useRef(null),p=o.useRef(""),f=o.useRef(r);o.useEffect(()=>{f.current=r});const b=a,y=o.useRef(null),C=o.useRef(0),v=o.useRef(0),_=o.useRef(!1),h=o.useRef(null),w=o.useRef(null),g=o.useRef(null),B=o.useRef(null),x=o.useRef(()=>{});x.current=k=>{k<0||(C.current=Date.now(),v.current=k,y.current=setTimeout(()=>{y.current=null,i(!1),h.current=setTimeout(()=>{u(!1);try{f.current()}catch{}},au)},k))};const A=o.useCallback(()=>{_.current||!y.current||(_.current=!0,clearTimeout(y.current),y.current=null,v.current=Math.max(0,v.current-(Date.now()-C.current)))},[]),N=o.useCallback(()=>{_.current&&(_.current=!1,x.current(v.current))},[]);return o.useEffect(()=>{if(e!==p.current&&(y.current&&(clearTimeout(y.current),y.current=null),h.current&&(clearTimeout(h.current),h.current=null)),e){if(d.current)return b>0&&!y.current&&(_.current?v.current=b:x.current(b)),p.current=e,()=>{y.current&&(clearTimeout(y.current),y.current=null),h.current&&(clearTimeout(h.current),h.current=null)};const k=()=>{const S=m.current;if(S)try{S.classList.remove("is-visible"),S.style.transition="none",t==="top"?S.style.transform="translateX(-50%) translateY(-16px)":S.style.transform="translateX(-50%) translateY(16px)",S.style.opacity="0",S.offsetWidth,S.style.transition="",S.classList.add("is-visible"),B.current&&clearTimeout(B.current),B.current=setTimeout(()=>{B.current=null;try{S.style.opacity="",S.style.transform="",S.style.transition=""}catch{}},60)}catch{}};c.current?(k(),i(!0)):(u(!0),w.current=requestAnimationFrame(()=>{g.current=requestAnimationFrame(()=>{k(),i(!0)})})),b>0&&(_.current=!1,x.current(b))}else i(!1),h.current=setTimeout(()=>u(!1),au);return p.current=e,()=>{y.current&&clearTimeout(y.current),h.current&&clearTimeout(h.current),w.current&&cancelAnimationFrame(w.current),g.current&&cancelAnimationFrame(g.current),B.current&&clearTimeout(B.current),y.current=null,h.current=null,w.current=null,g.current=null,B.current=null}},[e,b,t]),{mounted:l,showing:s,popupRef:m,pause:A,resume:N}}function oa({message:e="",position:t="top",type:a="normal",onClose:r=()=>{},duration:s=2e3}){const{mounted:i,showing:l,popupRef:u,pause:c,resume:d}=ru({message:e,position:t,duration:s,onClose:r}),m=o.useRef(null),[p,f]=o.useState(!1);if(o.useEffect(()=>{l?f(!0):i||f(!1)},[l,i]),!i)return null;const b=a==="notice"||a==="warning"?a:"normal",y=n.jsx("div",{ref:u,className:`toast toast--${t} ${l?"is-visible":""}`,role:"status","aria-live":"polite",onPointerEnter:C=>{m.current=C.pointerType},onMouseEnter:()=>{m.current!=="touch"&&c()},onMouseLeave:d,onFocusCapture:c,onBlurCapture:d,children:n.jsx("div",{className:`toast__inner toast__inner--${b} body-2`,"aria-hidden":p||l?void 0:!0,children:n.jsx("span",{className:"toast__text",children:e})})});return typeof document<"u"?en.createPortal(y,document.body):y}const xy=24;function _y({value:e,max:t=100,size:a=8,color:r,trackColor:s,label:i,formatValue:l,labelPos:u,labelAlign:c="right",ariaLabel:d,className:m}){const p=Number.isFinite(t)&&t>0?t:1,f=Math.max(0,Math.min(Number.isFinite(e)?e:0,p)),b=f/p*100,y=Number.isFinite(t)&&t>0?t:0,C=u??(a>=xy?"inside":"bottom"),v=C==="center"?"inside":C,_=v==="inside"&&(c==="left"?b>=15:c==="center"?b>=50:b>=85),h={};return r&&(h["--progress-bar-fill"]=r),s&&(h["--progress-bar-track"]=s),n.jsxs("div",{className:ke("progress-bar",`progress-bar--${a}`,`progress-bar--label-${v}`,i&&`progress-bar--align-${c}`,i&&_&&"progress-bar--label-on-fill",m),style:h,children:[n.jsx("div",{className:"progress-bar__track",role:"progressbar","aria-valuenow":f,"aria-valuemin":0,"aria-valuemax":y,"aria-valuetext":i?l?l(f):i==="percent"?void 0:i==="raw"?String(f):`${f} / ${y}`:void 0,"aria-label":d,children:n.jsx("div",{className:"progress-bar__fill",style:{width:`${b}%`}})}),i&&n.jsx("span",{className:"progress-bar__label caption-1b",children:l?l(f):i==="percent"?`${Math.round(b)}%`:i==="raw"?String(f):`${f} / ${y}`})]})}const ou={position:"absolute",width:1,height:1,margin:-1,padding:0,overflow:"hidden",clipPath:"inset(50%)",whiteSpace:"nowrap",border:0},wy="rgba(255, 255, 255, 0.16)";function su({max:e,index:t,inactiveBg:a,inactiveColor:r,transparent:s,variant:i="numbered",announce:l=!1,ariaLabel:u}){const{t:c}=ye.useTranslation(),d=on("(max-width: 767px)");if(!Number.isInteger(e)||e<=0)return null;const m=Number.isInteger(t)?Math.max(0,Math.min(t,e-1)):0,p=u??c("progress.steps",{current:m+1,total:e,defaultValue:"\uC9C4\uD589 \uB2E8\uACC4 {{current}} / {{total}}"}),f={};if(a&&(f["--pi-inactive-bg"]=a),r&&(f["--pi-inactive-color"]=r),s&&(a||(f["--pi-inactive-bg"]=wy),r||(f["--pi-inactive-color"]="var(--color-white)")),i==="dot")return n.jsxs("div",{className:"progress-indicator progress-indicator--dot",style:f,role:l?"status":"img","aria-label":l?void 0:p,children:[l&&n.jsx("span",{style:ou,children:p}),Array.from({length:e}).map((y,C)=>n.jsx("span",{"aria-hidden":"true",className:`progress-indicator-dot--dot${C<m?" done":C===m?" active":""}`},C))]});const b=l?n.jsx("span",{role:"status",style:ou,children:p}):null;return d?n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"progress-indicator progress-indicator--mobile",style:f,role:"list","aria-label":p,children:n.jsxs("span",{role:"listitem",className:"progress-indicator-dot active body-3",children:[m+1," / ",e]})}),b]}):n.jsxs(n.Fragment,{children:[b,n.jsx("div",{className:"progress-indicator",style:f,role:"list","aria-label":p,children:Array.from({length:e}).map((y,C)=>n.jsx("span",{role:"listitem","aria-current":C===m?"step":void 0,className:`progress-indicator-dot ${C<m?" done":C===m?" active":""} body-3`,children:C+1},C))})]})}function By(e){if(!e)return[];const t=[];let a=0,r="";for(const s of e.trim()){if(s==="("?a++:s===")"&&a--,/\s/.test(s)&&a===0){r&&(t.push(r),r="");continue}r+=s}return r&&t.push(r),t}function Ay({children:e,className:t,style:a,rowLabel:r,onRowClick:s}){return n.jsx("div",{role:"cell",className:t?`table-cell ${t}`:"table-cell",style:a,children:r&&s?n.jsx("button",{type:"button",className:"table-cell__row-button","aria-label":r,children:e}):e})}function Bo({variant:e="default",children:t,className:a,draggable:r,onClick:s,onMouseEnter:i,onMouseLeave:l,onDragStart:u,onDragEnd:c,expandedContent:d,colSpan:m,describedBy:p,rowHasButton:f}){const b=o.useCallback(y=>{s&&y.target===y.currentTarget&&(y.key==="Enter"||y.key===" ")&&(y.preventDefault(),s())},[s]);return e==="loading"?n.jsx("div",{role:"presentation",className:"table-row-wrap",children:n.jsx("div",{role:"row",className:"table-row table-row--loading",children:n.jsx("div",{role:"cell","aria-colspan":m,className:"table-row__full-cell",children:n.jsx($a,{size:28})})})}):e==="empty"?n.jsx("div",{role:"presentation",className:"table-row-wrap",children:n.jsx("div",{role:"row",className:"table-row table-row--empty body-3",children:n.jsx("div",{role:"cell","aria-colspan":m,className:"table-row__full-cell",children:t})})}):n.jsxs("div",{role:"presentation",className:"table-row-wrap",children:[n.jsx("div",{className:a?`table-row ${a}`:"table-row",draggable:r,onClick:s,onKeyDown:s?b:void 0,onMouseEnter:i,onMouseLeave:l,onDragStart:u,onDragEnd:c,role:"row",tabIndex:s&&!f?0:void 0,"aria-describedby":s&&!f?p:void 0,children:t}),d&&n.jsx("div",{role:"row",className:"table-row-expand",children:n.jsx("div",{role:"cell","aria-colspan":m,className:"table-row-expand__cell",children:d})})]})}function ky({dir:e}){return n.jsx(e==="asc"?_s:xs,{className:"table-field__sort-arrow",size:16,strokeWidth:2})}function Ny({children:e,onClick:t,className:a,sortDir:r,ariaSort:s,onResizeStart:i}){const l=n.jsxs(n.Fragment,{children:[e,r&&n.jsx(ky,{dir:r})]});return n.jsxs("div",{onClick:t,role:"columnheader","aria-sort":s,className:ke("table-field body-3",a,r?"table-field--sorted":"",i?"table-field--resizable":""),children:[t?n.jsx("button",{type:"button",className:"table-field__button",children:l}):l,i&&n.jsx("span",{className:"table-field__resizer",onPointerDown:i,onClick:u=>u.stopPropagation(),"aria-hidden":"true"})]})}function Ao({fields:e=[],headerGroups:t,items:a=[],renderRow:r,onRowClick:s,isRowClickable:i,onRowMouseEnter:l,onRowMouseLeave:u,onRowDragStart:c,onRowDragEnd:d,draggingId:m,gridTemplateColumns:p,mobileGridTemplateColumns:f,resizable:b=!1,resizeMode:y="grow",resizeStorageKey:C,size:v="small",title:_,icon:h,count:w,collapsed:g=!1,onToggleCollapse:B,headerActions:x,empty:A,loading:N,dragOver:k=!1,onDragOver:S,onDragLeave:E,onDrop:F,renderExpandedRow:$,expandedId:U}){const{t:j}=ye.useTranslation(),T=o.useId(),I=`table-title-${T}`,K=`table-row-hint-${T}`,ee=on("(max-width: 767px)"),V=f&&ee?f:null,q=b&&!ee,P=48,O=o.useRef(()=>P),D=C?`table-cols:${C}`:null,H=o.useRef(null),L=o.useRef(null),R=o.useRef(null),z=o.useRef(null),[J,Y]=o.useState(!1),Z=o.useCallback(()=>{const X=R.current;X&&Y(X.scrollWidth>X.clientWidth+1)},[]),ne=o.useCallback((X,oe)=>{const he=X.current;he&&L.current&&L.current.unobserve(he),X.current=oe,oe?(!L.current&&typeof ResizeObserver<"u"&&(L.current=new ResizeObserver(()=>Z())),L.current?.observe(oe)):!R.current&&!z.current&&(L.current?.disconnect(),L.current=null),Z()},[Z]),le=o.useCallback(X=>ne(R,X),[ne]),ue=o.useCallback(X=>ne(z,X),[ne]);o.useEffect(()=>{Z()}),o.useEffect(()=>{if(typeof window>"u")return;const X=typeof requestAnimationFrame=="function"?requestAnimationFrame(()=>Z()):null;return window.addEventListener("resize",Z),()=>{X!=null&&cancelAnimationFrame(X),window.removeEventListener("resize",Z)}},[Z]);const Ee=o.useRef(()=>!1),W=o.useRef([]),te=o.useRef(null),fe=X=>{if(!X||typeof window>"u")return null;try{const oe=JSON.parse(window.localStorage.getItem(X)??"null");return Array.isArray(oe)&&oe.length>0&&oe.every(he=>typeof he=="number"&&Number.isFinite(he)&&he>0)?oe:null}catch{return null}},[Se,Ce]=o.useState(()=>fe(D)),[ie,ce]=o.useState(D);ie!==D&&(ce(D),Ce(fe(D)));const de=o.useRef(Se);o.useEffect(()=>{de.current=Se},[Se]);const be=o.useCallback(X=>{const oe=te.current;if(!oe)return;const he=de.current;if(he){const je=[...he];if(oe.next!=null&&oe.startWNext!=null){const ot=X.clientX-oe.startX,Ye=Math.max(O.current(oe.index)-oe.startW,Math.min(oe.startWNext-O.current(oe.next),ot));je[oe.index]=oe.startW+Ye,je[oe.next]=oe.startWNext-Ye}else je[oe.index]=Math.max(O.current(oe.index),oe.startW+(X.clientX-oe.startX));de.current=je,Ce(je)}},[]),_e=o.useCallback(()=>{if(te.current=null,window.removeEventListener("pointermove",be),window.removeEventListener("pointerup",_e),window.removeEventListener("pointercancel",_e),document.body.style.cursor="",document.body.style.userSelect="",D&&de.current)try{window.localStorage.setItem(D,JSON.stringify(de.current))}catch{}},[be,D]),Be=o.useCallback((X,oe)=>{oe.preventDefault(),oe.stopPropagation();const he=H.current;if(!he)return;const je=Array.from(he.children).map(Ye=>Ye.getBoundingClientRect().width),ot=y==="fit"?e.findIndex((Ye,bt)=>bt>X&&Ye.resizable!==!1):-1;te.current=ot>=0?{index:X,startX:oe.clientX,startW:je[X],next:ot,startWNext:je[ot]}:{index:X,startX:oe.clientX,startW:je[X]},de.current=je,Ce(je),window.addEventListener("pointermove",be),window.addEventListener("pointerup",_e),window.addEventListener("pointercancel",_e),document.body.style.cursor="col-resize",document.body.style.userSelect="none"},[be,_e,y,e]),Ze=o.useCallback(()=>{const X=H.current,oe=X?.closest(".table-wrap");if(!X||!oe)return;const he=oe.style.getPropertyValue("--table-grid-cols");oe.style.setProperty("--table-grid-cols",e.map((tt,$e)=>Ee.current($e)?W.current[$e]:"max-content").join(" "));const je=Array.from(oe.querySelectorAll(".table-row")).filter(tt=>!tt.classList.contains("table-row--loading")&&!tt.classList.contains("table-row--empty")),ot=e.map((tt,$e)=>{let Ge=X.children[$e]?.getBoundingClientRect().width??0;for(const mt of je){const Tt=mt.children[$e];Tt&&(Ge=Math.max(Ge,Tt.getBoundingClientRect().width))}const Pe=Ee.current($e)?parseFloat(W.current[$e]):NaN;return Number.isFinite(Pe)?Pe:Math.max(O.current($e),Math.ceil(Ge))}),Ye=window.getComputedStyle(X),bt=X.clientWidth-(parseFloat(Ye.paddingLeft)||0)-(parseFloat(Ye.paddingRight)||0);he?oe.style.setProperty("--table-grid-cols",he):oe.style.removeProperty("--table-grid-cols");let Ct=ot;const st=ot.reduce((tt,$e,Ge)=>tt+(Ee.current(Ge)?$e:0),0),et=ot.reduce((tt,$e,Ge)=>tt+(Ee.current(Ge)?0:$e),0),Xe=bt-st;if(bt>0&&et>0&&Xe>0){const tt=Xe/et;Ct=ot.map((Ge,Pe)=>Ee.current(Pe)?Ge:Math.max(O.current(Pe),Math.round(Ge*tt)));const $e=Math.round(Xe-Ct.reduce((Ge,Pe,mt)=>Ge+(Ee.current(mt)?0:Pe),0));if($e!==0){let Ge=-1;Ct.forEach((Pe,mt)=>{!Ee.current(mt)&&(Ge<0||Pe>Ct[Ge])&&(Ge=mt)}),Ge>=0&&(Ct[Ge]=Math.max(O.current(Ge),Ct[Ge]+$e))}}if(Ce(Ct),D)try{window.localStorage.setItem(D,JSON.stringify(Ct))}catch{}},[e,y,D]);o.useEffect(()=>()=>{te.current&&(window.removeEventListener("pointermove",be),window.removeEventListener("pointerup",_e),window.removeEventListener("pointercancel",_e),document.body.style.cursor="",document.body.style.userSelect="")},[be,_e]);const Oe=By(p),Ie=Oe.filter(X=>/\b(auto|min-content|max-content)\b|fit-content\(/.test(X));Ie.length>0&&tn(`table-content-track:${p}`,`[ihabdevteam-core] Table \uC758 gridTemplateColumns \uC5D0 \uB0B4\uC6A9\uC73C\uB85C \uD06C\uAE30\uAC00 \uC815\uD574\uC9C0\uB294 \uD2B8\uB799(${Ie.join(", ")})\uC774 \uC788\uC2B5\uB2C8\uB2E4. \uBA38\uB9AC\uC640 \uBAB8\uD1B5\uC740 \uC11C\uB85C \uB2E4\uB978 \uACA9\uC790\uB77C \uADF8 \uD2B8\uB799\uC774 \uAC01\uC790 \uB2E4\uB974\uAC8C \uD480\uB824 \uC5F4\uC774 \uC5B4\uAE0B\uB0A9\uB2C8\uB2E4. px \uC774\uB098 fr \uC744 \uC4F0\uC138\uC694. (\uBC1B\uC740 \uAC12: ${p})`);const He=e.findIndex(X=>!!X.sortDir);e.filter(X=>!!X.sortDir).length>1&&tn("table-multi-sort","[ihabdevteam-core] Table \uC758 fields \uC5D0 sortDir \uC774 \uB458 \uC774\uC0C1 \uC788\uC2B5\uB2C8\uB2E4. aria-sort \uB294 \uD45C \uD558\uB098\uC5D0 \uD55C \uCE78\uB9CC \uAC00\uC9C8 \uC218 \uC788\uC5B4 \uCCAB \uCE78\uB9CC \uBC29\uD5A5\uC73C\uB85C \uC54C\uB9AC\uACE0 \uB098\uBA38\uC9C0\uB294 none \uC73C\uB85C \uB461\uB2C8\uB2E4.");const ut=X=>X===He?e[X].sortDir==="asc"?"ascending":"descending":e[X].onClick?"none":void 0,nt=X=>/^\d+(\.\d+)?px$/.test(Oe[X]??""),rt=X=>{const oe=Oe[X]??"",he=/^minmax\(\s*(\d+(?:\.\d+)?)px\s*,/.exec(oe)??/^(\d+(?:\.\d+)?)px$/.exec(oe);return he?parseFloat(he[1]):P};Ee.current=nt,O.current=rt,W.current=Oe;const pt=X=>y==="fit"&&!nt(X)?"fr":"px",Ne=Se&&Se.length===e.length&&!ee&&(y==="fit"||a.length>0),Fe=V??(Ne?e.map((X,oe)=>X.resizable===!1&&Oe[oe]?Oe[oe]:`${Se[oe]}${pt(oe)}`).join(" "):p),Ae=Fe?{"--table-grid-cols":Fe}:void 0,at=_!==void 0;return n.jsxs("div",{ref:le,className:`table-wrap table-wrap--${v}${q?" table-wrap--resizable":""}${k?" table-wrap--dragover":""}${g?" table-wrap--collapsed":""}`,style:Ae,onDragOver:S,onDragLeave:E,onDrop:F,tabIndex:J?0:void 0,role:J?"region":void 0,"aria-label":J?typeof _=="string"?_:j("table.scrollRegion","\uAC00\uB85C\uB85C \uAD74\uB9B4 \uC218 \uC788\uB294 \uD45C"):void 0,children:[!!s&&n.jsx("span",{id:K,className:"table-row-hint",children:j("table.rowActionHint","\uC904\uC744 \uB204\uB974\uBA74 \uC790\uC138\uD788 \uBD05\uB2C8\uB2E4")}),n.jsxs("div",{ref:ue,role:"table","aria-labelledby":at&&typeof _=="string"?I:void 0,className:"table body-2",children:[at&&n.jsxs("div",{className:ke("table-header",B&&"table-header--clickable"),onClick:B,role:"caption",children:[B&&n.jsx(me,{htmlType:"button",size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:g?"chevron-right":"chevron-down",ariaLabel:g?j("common.expand","\uD3BC\uCE58\uAE30"):j("common.collapse","\uC811\uAE30"),ariaExpanded:!g,className:"table-header__chevron"}),h&&n.jsx(Je,{icon:h,label:typeof _=="string"?_:void 0,className:"table-header__icon"}),n.jsx("span",{id:I,className:"table-header__title h5b",children:_}),w!==void 0&&n.jsx("span",{className:"table-header__count body-3b",children:w}),x&&n.jsx("span",{className:"table-header__actions",onClick:X=>X.stopPropagation(),children:x})]}),!g&&n.jsxs(n.Fragment,{children:[t&&t.length>0&&n.jsx("div",{role:"row",className:"table-fields table-fields--groups",children:t.map((X,oe)=>n.jsx("div",{role:"columnheader","aria-colspan":X.span,className:ke("table-field body-3",X.className),style:{gridColumn:`span ${X.span}`},children:X.label},oe))}),n.jsxs("div",{role:"presentation",className:ke("table-fields-strip",q&&"table-fields-strip--resizable"),children:[n.jsx("div",{role:"row",className:"table-fields",ref:H,children:e.map((X,oe)=>n.jsx(Ny,{onClick:X.onClick,className:X.className,sortDir:X.sortDir,ariaSort:ut(oe),onResizeStart:q&&oe<e.length-1&&X.resizable!==!1&&(y!=="fit"||e.some((he,je)=>je>oe&&he.resizable!==!1))?he=>Be(oe,he):void 0,children:X.label},oe))}),q&&n.jsx(me,{htmlType:"button",size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:"chevrons-left-right-ellipsis",ariaLabel:j("table.resetColumns","\uCE78 \uB108\uBE44 \uCD08\uAE30\uD654"),showTooltipInfo:j("table.resetColumns","\uCE78 \uB108\uBE44 \uCD08\uAE30\uD654"),className:"table-fields__reset",onClick:Ze})]}),n.jsx("div",{role:"rowgroup",className:"table-body",children:N?n.jsx(Bo,{variant:"loading",colSpan:e.length||void 0}):a.length===0&&A?n.jsx(Bo,{variant:"empty",colSpan:e.length||void 0,children:A}):a.map((X,oe)=>{const he=m!=null&&X.id===m,je=!!s&&(i?i(X):!0),ot=U!=null&&X.id!=null&&(U instanceof Set?U.has(X.id)||[...U].some(Ye=>String(Ye)===String(X.id)):String(X.id)===String(U));return n.jsx(Bo,{className:`${je?" table-row--clickable":""}${c?" table-row--draggable":""}${he?" table-row--dragging":""}`.trim(),draggable:!!c,onClick:je?()=>s(X):void 0,colSpan:e.length||void 0,rowHasButton:r(X).some(Ye=>!!Ye.rowLabel),describedBy:K,onMouseEnter:l?Ye=>l(X,Ye):void 0,onMouseLeave:u?Ye=>u(X,Ye):void 0,onDragStart:c?Ye=>c(X,Ye):void 0,onDragEnd:d?Ye=>d(X,Ye):void 0,expandedContent:ot&&$?$(X):void 0,children:r(X).map((Ye,bt)=>n.jsx(Ay,{className:Ye.className,style:Ye.style,rowLabel:je?Ye.rowLabel:void 0,onRowClick:je?()=>s(X):void 0,children:Ye.content},bt))},X.id!=null?`${typeof X.id}:${X.id}`:`__idx:${oe}`)})})]})]})]})}function iu(e){switch(e){case"\uBCF4\uCCAD\uAE30":return"main";case"\uC778\uACF5\uC640\uC6B0":return"sub";default:return"default"}}const sa=e=>e==null?"":String(e).trim();function ko(e,t,a){const r=[sa(e),sa(t),sa(a)];for(;r.length>0&&r[r.length-1]==="";)r.pop();return r.join(".")}function Dy(e,t,a){const r=sa(e);return r?`${r}-${sa(t).padStart(2,"0")}-${sa(a).padStart(2,"0")}`:""}const Ey={\uBCF4\uCCAD\uAE30:"hearingAid",\uC778\uACF5\uC640\uC6B0:"cochlearImplant"};function Sy(e,t){const a=Ey[e];return a?t(`device.type.${a}`,{defaultValue:e}):e}function lu(e,t){return t!=="wornAt"?String(e[t]??""):Dy(e.wornYear,e.wornMonth,e.wornDay)}function jy({rows:e,loading:t,onSelect:a,onDelete:r,onWear:s,onRelease:i,onAdd:l}){const{t:u}=ye.useTranslation(),c=C=>C==="\uC88C"?u("device.direction.left","\uC88C"):u("device.direction.right","\uC6B0"),{\uC815\uB82C:d,\uCE78:m}=lb(),p=o.useMemo(()=>{if(!d)return e;const{key:C,asc:v}=d;return[...e].sort((_,h)=>{if(C==="worn"){const w=Number(h.worn)-Number(_.worn);return v?w:-w}return ro(lu(_,C),lu(h,C),v)})},[e,d]),{pageRows:f,pageSizeProps:b,paginationProps:y}=ib(p,d);return n.jsxs("div",{className:"dlp-side-table",children:[n.jsx(fo,{count:{value:e.length,unit:u("customers.device.unit","\uAC1C")},pageSize:b,pagination:y,actions:l&&n.jsx(me,{htmlType:"button",size:40,type:"bar",variant:"main",icon:"plus",label:u("customers.device.addButton","\uAE30\uAE30 \uCD94\uAC00"),onClick:l})}),n.jsx(Ao,{loading:t,resizable:!0,resizeMode:"fit",resizeStorageKey:"customer-device-history-v2",fields:[{...m(u("customers.device.wearingNow","\uCC29\uC6A9"),"worn"),resizable:!1},m(u("device.direction.label","\uBC29\uD5A5"),"side"),m(u("device.deviceType","\uC885\uB958"),"device"),m(u("device.brand","\uBE0C\uB79C\uB4DC"),"brand"),m(u("device.fitType","\uCC29\uC6A9\uD615\uD0DC"),"fitType"),m(u("device.productName","\uC81C\uD488\uBA85"),"productName"),m(u("device.wornDate","\uCC29\uC6A9\uC77C"),"wornAt"),...r?[{label:"",resizable:!1}]:[]],items:f.map((C,v)=>({id:C.id??`${C.side}-${v}`,row:C})),gridTemplateColumns:`56px 110px 110px minmax(120px, 1fr) 100px minmax(120px, 1fr) 110px${r?" 80px":""}`,renderRow:({row:C})=>[{content:n.jsx("span",{className:"dlp-worn-check",onClick:v=>v.stopPropagation(),children:n.jsx(Wl,{checked:C.worn,disabled:C.worn?!i:!s,ariaLabel:C.worn?u("customers.device.unwear","\uCC29\uC6A9 \uD574\uC81C"):u("customers.device.wear","\uCC29\uC6A9"),onChange:v=>{v?s?.(C):i?.(C)}})})},{content:n.jsx("span",{children:c(C.side)})},{content:C.device?n.jsx(_t,{size:"small",variant:iu(C.device),fill:"soft",label:Sy(C.device,u)}):n.jsx("span",{})},{content:n.jsx("span",{children:C.brand})},{content:n.jsx("span",{children:C.fitType||"-"})},{content:n.jsx("span",{children:C.productName||"-"})},{content:n.jsx("span",{className:"dlp-date",children:ko(C.wornYear,C.wornMonth,C.wornDay)||"-"})},...r?[{content:n.jsx("span",{className:"dlp-row-actions",children:n.jsx(me,{htmlType:"button",size:28,type:"bar",variant:"transparent-gray",label:u("common.delete","\uC0AD\uC81C"),onClick:v=>{v?.stopPropagation(),r(C)}})})}]:[]],onRowClick:({row:C})=>a(C),empty:u("customers.device.historyEmpty","\uB4F1\uB85D\uB41C \uAE30\uAE30 \uC774\uB825\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.")})]})}function uu(e,t){return e?{role:t?.role??"button",tabIndex:0,...t?.selected===void 0?{}:{"aria-selected":t.selected},onKeyDown:a=>{a.target===a.currentTarget&&(a.key!=="Enter"&&a.key!==" "||(a.preventDefault(),e(a)))}}:{}}function Ty(e,t){return new Date(e,t+1,0).getDate()}function My(e,t){return new Date(e,t,1).getDay()}function Ly({visits:e=[],onVisitClick:t,onVisitMove:a,onDayClick:r,today:s}){const{t:i,i18n:l}=ye.useTranslation(),u=o.useMemo(()=>i("calendar.dow",{returnObjects:!0}),[i]),c=Wr(s),[d,m]=o.useState(()=>Number(c.slice(0,4))),[p,f]=o.useState(()=>Number(c.slice(5,7))-1),[b,y]=o.useState(null),C=o.useRef(null),v=o.useMemo(()=>{const x={};return e.forEach(A=>{x[A.date]||(x[A.date]=[]),x[A.date].push(A)}),x},[e]),_=o.useMemo(()=>{const x=Ty(d,p),A=My(d,p),N=[];for(let k=0;k<A;k++)N.push(null);for(let k=1;k<=x;k++)N.push(k);for(;N.length<35;)N.push(null);return N},[d,p]),h=o.useCallback(()=>{p===0?(m(x=>x-1),f(11)):f(x=>x-1)},[p]),w=o.useCallback(()=>{p===11?(m(x=>x+1),f(0)):f(x=>x+1)},[p]),g=x=>`${d}-${String(p+1).padStart(2,"0")}-${String(x).padStart(2,"0")}`,B=x=>g(x)===c;return n.jsxs("div",{children:[n.jsxs("div",{className:"calendar-nav",children:[n.jsx("button",{type:"button",className:"calendar-nav__button",onClick:h,"aria-label":i("calendar.prevMonth","\uC774\uC804 \uB2EC"),children:n.jsx(Je,{icon:"chevron-left",label:"",className:"",svgClassName:"calendar-nav__button-icon",size:18})}),n.jsx("span",{className:"calendar-nav__title h5","aria-live":"polite",children:i("calendar.yearMonth",{year:d,month:p+1})}),n.jsx("button",{type:"button",className:"calendar-nav__button",onClick:w,"aria-label":i("calendar.nextMonth","\uB2E4\uC74C \uB2EC"),children:n.jsx(Je,{icon:"chevron-right",label:"",className:"",svgClassName:"calendar-nav__button-icon",size:18})}),n.jsxs("div",{className:"calendar-nav__legend",children:[n.jsx("span",{className:"calendar-nav__legend-dot calendar-nav__legend-dot--main"}),n.jsx("span",{className:"caption-1",children:i("calendar.legend.visited","\uBC29\uBB38")}),n.jsx("span",{className:"calendar-nav__legend-dot calendar-nav__legend-dot--sub"}),n.jsx("span",{className:"caption-1",children:i("calendar.legend.scheduled","\uC608\uC57D")}),n.jsx("span",{className:"calendar-nav__legend-dot calendar-nav__legend-dot--disabled"}),n.jsx("span",{className:"caption-1",children:i("calendar.legend.noVisit","\uBBF8\uBC29\uBB38")})]})]}),n.jsxs("div",{className:"calendar-grid",children:[u.map(x=>n.jsx("div",{className:"calendar-day-header body-3",children:x},x)),_.map((x,A)=>{if(x===null)return n.jsx("div",{className:"calendar-cell empty"},`empty-${A}`);const N=x,k=g(N),S=v[k]??[],E=WC(k,l.language),F=b===k;return n.jsxs("div",{className:`calendar-cell${B(N)?" today":""}${F?" drag-over":""}${r?" calendar-cell--clickable":""}`,role:r?"button":void 0,tabIndex:r?0:void 0,"aria-label":r?i("calendar.addOnDate",{date:k}):void 0,"aria-current":B(N)?"date":void 0,onClick:r?()=>r(k):void 0,onKeyDown:r?$=>{$.target===$.currentTarget&&($.key!=="Enter"&&$.key!==" "||($.preventDefault(),r(k)))}:void 0,onDragOver:a?$=>{$.preventDefault(),y(k)}:void 0,onDragLeave:a?$=>{$.currentTarget.contains($.relatedTarget)||y(null)}:void 0,onDrop:a?$=>{$.preventDefault(),C.current!=null&&(a(C.current,k),C.current=null),y(null)}:void 0,children:[n.jsx("div",{className:"calendar-cell__number body-3",children:N}),S.length>0&&(()=>{const $=[{key:"visited",\uB9D0:i("calendar.legend.visited","\uBC29\uBB38"),\uC218:S.filter(j=>(j.status??"visited")==="visited").length},{key:"scheduled",\uB9D0:i("calendar.legend.scheduled","\uC608\uC57D"),\uC218:S.filter(j=>j.status==="scheduled").length},{key:"noVisit",\uB9D0:i("calendar.legend.noVisit","\uBBF8\uBC29\uBB38"),\uC218:S.filter(j=>j.status==="noVisit").length}].filter(j=>j.\uC218>0),U=$.length===1&&$[0].key==="visited"?i("calendar.visitCount",{count:S.length,defaultValue:"\uBC29\uBB38 {{count}}\uAC74"}):$.map(j=>i("calendar.statusCount",{label:j.\uB9D0,count:j.\uC218,defaultValue:"{{label}} {{count}}\uAC74"})).join(" \xB7 ");return n.jsxs("span",{className:"calendar-cell__visit-count caption-1","aria-label":`${E} ${U}`,children:[$.map(j=>n.jsx("span",{className:`calendar-cell__visit-dot calendar-cell__visit-dot--${j.key}`,"aria-hidden":"true"},j.key)),S.length]})})(),n.jsx("div",{className:"calendar-cell__badges",children:S.map(($,U)=>n.jsxs("div",{draggable:!!a,className:`calendar-visit-badge${$.status==="noVisit"?" calendar-visit-badge--no-visit":$.status==="scheduled"?" calendar-visit-badge--scheduled":""}${t?" calendar-visit-badge--clickable":""}${a?" calendar-visit-badge--draggable":""}`,onDragStart:a?j=>{C.current=$.id,j.dataTransfer.effectAllowed="move"}:void 0,onDragEnd:a?()=>{C.current=null,y(null)}:void 0,onClick:t?j=>{j.stopPropagation(),t($)}:void 0,...uu(t?()=>t($):void 0),"aria-label":[E,$.time?mi($.time,i):null,$.customer,i($.status==="noVisit"?"calendar.legend.noVisit":$.status==="scheduled"?"calendar.legend.scheduled":"calendar.legend.visited")].filter(Boolean).join(" "),children:[$.time&&n.jsx("span",{className:"calendar-visit-badge__time body-3",children:mi($.time,i)}),n.jsx("span",{className:"calendar-visit-badge__name body-3",children:$.customer}),$.status==="noVisit"&&n.jsx("span",{className:"calendar-visit-badge__no-visit caption-1",children:i("calendar.legend.noVisit","\uBBF8\uBC29\uBB38")})]},$.id??U))})]},N)})]})]})}const $y={page:"h3",pagePopup:"h4",popup:"h5"};function ia({type:e="page",title:t,headingLevel:a=2,icon:r,action:s,disc:i,children:l,inGrid:u=!1,className:c,style:d}){const m=$y[e],p=t||i||s||r,f=a?`h${a}`:"div";return n.jsxs("div",{className:ke("section",`section--${e}`,u&&"section--in-grid",c),style:d,children:[p&&n.jsxs("div",{className:"section__header",children:[n.jsxs("div",{className:"section__title-row",children:[r&&n.jsx(Je,{icon:r,label:typeof t=="string"?t:void 0,className:"section__icon"}),n.jsxs("div",{className:"section__title-group",children:[t&&n.jsx(f,{className:`section__title ${m}`,children:t}),i&&n.jsx("div",{className:"section__disc body-3",children:i})]})]}),s&&n.jsx("div",{className:"section__action",children:s})]}),l]})}let No=null,cu=!1;function du(){if(cu||typeof document>"u")return;cu=!0,document.addEventListener("keydown",t=>{t.metaKey||t.ctrlKey||t.altKey||(No="keyboard")},!0);const e=()=>{No="pointer"};document.addEventListener("pointerdown",e,!0),document.addEventListener("mousedown",e,!0),document.addEventListener("touchstart",e,{capture:!0,passive:!0})}du();function or(){return du(),No==="keyboard"}const sr=20;function Ry(e){const{t}=ye.useTranslation(),{type:a,trainingDatas:r,depth:s,renderPopup:i,completedIds:l,selectedIds:u,onItemComplete:c,size:d,useDescriptionTooltip:m,onRemove:p,onMore:f,sectionType:b="page"}=e||{},[,y]=o.useState(0),C=typeof r<"u"?Array.isArray(r)?r:[]:[],v=C.length,[_,h]=o.useState(Math.min(v,sr)),w=o.useMemo(()=>Array.isArray(s)?[...s,a?.label].filter(Boolean).join(" \xB7 "):[s||"",a?.label].filter(Boolean).join(" \xB7 "),[s,a?.label]);o.useEffect(()=>{h(Math.min(v,sr))},[v]),al("speechear.data.updated",()=>y(A=>A+1));const g=o.useRef(null),B=o.useRef(null);function x(){const A=document.activeElement;B.current=or()&&A&&A.closest?.(".training-block__more")?_:null,h(N=>Math.min(v,N+sr))}return o.useEffect(()=>{const A=B.current;if(A==null)return;B.current=null;const N=document.activeElement;N&&N!==document.body||g.current?.querySelectorAll(".training-block-button")[A]?.focus()},[_]),n.jsxs(ia,{type:b,title:a?.label,icon:a?.icon,disc:a?.desc,className:"training-block",children:[n.jsx("div",{className:"training-list",ref:g,children:(C||[]).slice(0,_).map((A,N)=>{const k=A;return n.jsx(mo,{index:N,type:a,trainingData:k,depth:w,renderPopup:i,completedIds:l,selectedIds:u,size:d,useDescriptionTooltip:m,onRemove:typeof p=="function"&&u!=null&&k?.id!=null&&u.has(String(k.id))?()=>p(k):void 0,onComplete:typeof c=="function"&&k?.id!=null?()=>c(String(k.id)):void 0,onMore:typeof f=="function"?S=>f(k,S):void 0},k?.id!=null?`${a?.key||"t"}-${String(k.id)}`:`${a?.key||"t"}-${N}`)})}),v>sr&&_<v&&n.jsx("div",{className:"training-block__more",children:n.jsx(me,{htmlType:"button",size:48,type:"bar",icon:"plus",onClick:x,ariaLabel:t("common.loadMore","\uB354\uBCF4\uAE30"),label:t("common.loadMore","\uB354\uBCF4\uAE30"),variant:"main"})})]})}function Do(e){const t=o.useRef(null),[a,r]=o.useState(!!e),[s,i]=o.useState(!1);o.useEffect(()=>{i(!1);const c=t.current;r(!!e&&!(c?.complete&&c.naturalWidth>0))},[e]);const l=o.useCallback(()=>r(!1),[]),u=o.useCallback(()=>{r(!1),i(!0)},[]);return{imgRef:t,loading:a,failed:s,hasImage:!!e&&!s,onLoad:l,onError:u}}var Py='data:image/svg+xml,<svg width="100" height="100" viewBox="0 0 100 100" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_2256_7437)">%0A<g opacity="0.1">%0A<path d="M35.7143 25C29.7964 25 25 29.7964 25 35.7143V64.2857C25 67.3786 25.7893 70.2893 27.1714 72.8286C29.7071 74.2143 32.6179 75 35.7143 75H64.2857C70.2036 75 75 70.2036 75 64.2857V35.7143C75 32.6214 74.2107 29.7107 72.8286 27.1714C70.2929 25.7857 67.3821 25 64.2857 25H35.7143Z" fill="%23111111"/>%0A</g>%0A<path d="M57.1426 17.8571H35.7141C25.8533 17.8571 17.8569 25.8536 17.8569 35.7143V44.0643L10.9926 51.6179C10.5819 52.0679 10.6283 52.775 11.0998 53.1643C13.1783 54.8929 15.4641 56.2214 17.8569 57.1679C17.8676 63.925 21.6283 69.8 27.1712 72.825C25.7855 70.2893 24.9998 67.3786 24.9998 64.2821V35.7107C24.9998 29.7929 29.7962 24.9964 35.7141 24.9964H64.2855C67.3783 24.9964 70.2891 25.7857 72.8283 27.1679C69.7998 21.6179 63.9105 17.8536 57.1426 17.8536V17.8571Z" fill="%23111111"/>%0A<path d="M72.8285 27.1714C74.2142 29.7072 75 32.6179 75 35.7143V64.2857C75 70.2036 70.2035 75 64.2857 75H35.7142C32.6214 75 29.7107 74.2107 27.1714 72.8286C30.2 78.3786 36.0892 82.1429 42.8571 82.1429H58.9678C59.9321 82.1429 60.7142 82.925 60.7142 83.8893C60.7142 84.9107 61.5892 85.7215 62.6071 85.6322C73.5535 84.675 82.1428 75.4822 82.1428 64.2857V42.8572C82.1428 36.0893 78.3785 30.2 72.8285 27.1714Z" fill="%23111111"/>%0A<path d="M36.0714 40.7143C36.0714 39.5308 35.112 38.5714 33.9285 38.5714C32.745 38.5714 31.7856 39.5308 31.7856 40.7143V45C31.7856 46.1834 32.745 47.1428 33.9285 47.1428C35.112 47.1428 36.0714 46.1834 36.0714 45V40.7143Z" fill="%23111111"/>%0A<path d="M46.7859 57.1429C45.743 57.1429 44.6966 56.875 43.7502 56.3286C42.8966 55.8357 42.6037 54.7429 43.1002 53.8893C43.593 53.0357 44.6859 52.7429 45.5395 53.2393C46.518 53.8036 47.7573 53.6429 48.5537 52.8464C48.9395 52.4607 49.1823 51.9714 49.2573 51.4357C49.5787 49.1607 50.5823 47 52.1645 45.1857C53.1073 44.1071 53.6037 42.7214 53.568 41.2857C53.493 38.3536 51.1466 35.9107 48.2216 35.7286C47.2323 35.6679 46.2859 35.8464 45.4073 36.2679C44.518 36.6929 43.4502 36.3107 43.0287 35.4214C42.6037 34.5321 42.9859 33.4643 43.8752 33.0429C45.2895 32.3714 46.868 32.0679 48.4466 32.1643C53.2037 32.4607 57.0216 36.4286 57.1395 41.1964C57.1966 43.5286 56.3859 45.7786 54.8573 47.5357C53.7323 48.825 53.018 50.3464 52.7966 51.9357C52.6109 53.2464 52.018 54.4357 51.0823 55.375C49.9145 56.5429 48.3609 57.15 46.7895 57.15L46.7859 57.1429Z" fill="%23111111"/>%0A</g>%0A<defs>%0A<clipPath id="clip0_2256_7437">%0A<rect width="100" height="100" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A';const Iy=Py,Eo=o.forwardRef(function({item:e,disabled:t=!1,onPlayDone:a,selectable:r=!1,selected:s=!1,onSelect:i,flipDelay:l=0,hideLabel:u=!1,hideAudio:c=!1,orderRank:d=null},m){const{t:p}=ye.useTranslation(),f=e.word||e.title||"",b=t||!f,y=e.audio??e.sound??e.audioKey,C=e.subLabel||e.pronunciation||"",v=e.colloquialLabel||"",[_,h]=o.useState({label:f,subLabel:C,colloquialLabel:v,homonum:e.homonum});f&&(_.label!==f||_.subLabel!==C||_.colloquialLabel!==v||!Object.is(_.homonum,e.homonum))&&h({label:f,subLabel:C,colloquialLabel:v,homonum:e.homonum});const w=o.useRef(null),g=on("(max-width: 767px)"),[B,x]=o.useState(!1),A=`${typeof y=="string"?y:y?.src??""}\0${f}`,[N,k]=o.useState({for:"",url:""}),S=N.for===A?N.url:"",E=si(),F=e.textOnly??(!e.image&&!!_.label&&!!E&&E.entries.length>0&&!E.byWord.has(_.label)),$=F?"":Jn()?.(_.label,_.homonum)??e.image??"",{imgRef:U,loading:j,hasImage:T,onLoad:I,onError:K}=Do($);o.useEffect(()=>{let R=!1;return(async()=>{if(y){if(typeof y=="string"){if(y.startsWith("http")||y.includes("/")){k({for:A,url:y});return}}else if(typeof y=="object"&&!Array.isArray(y)){const J=y.src;if(J){k({for:A,url:J});return}}}const z=$r();if(z&&f)try{const J=await Promise.resolve(z(f));!R&&J&&k({for:A,url:J})}catch{}})(),()=>{R=!0}},[y,f,A]);const ee=o.useRef(!0),V=o.useRef(null);o.useEffect(()=>(ee.current=!0,()=>{ee.current=!1,V.current&&tr(V.current),V.current=null;try{w.current?.pause()}catch{}w.current=null}),[]);const q=o.useCallback(()=>new Promise(R=>{if(typeof window<"u"&&window.speechSynthesis&&f){x(!0),window.speechSynthesis.cancel();const z=new SpeechSynthesisUtterance(f);z.lang="ko-KR",z.onend=()=>{x(!1);try{a?.()}catch{}R()},z.onerror=()=>{x(!1),R()},window.speechSynthesis.speak(z)}else R()}),[f,a]),P=o.useCallback(R=>new Promise(z=>{let J=!1;const Y=()=>{J||(J=!0,x(!1),z(!1))};try{const Z=new Audio(R);w.current=Z,Z.onended=()=>{if(!J){J=!0,x(!1);try{a?.()}catch{}z(!0)}},Z.onerror=Y,Z.play().catch(Y)}catch{Y()}}),[a]),O=o.useCallback(async()=>{if(t||!ee.current)return;const R=()=>{V.current===R&&(V.current=null);try{w.current?.pause()}catch{}try{window.speechSynthesis?.cancel()}catch{}x(!1)},z=er(R);V.current=R;try{window.speechSynthesis?.cancel()}catch{}try{if(S&&(x(!0),await P(S)))return;const J=lC();if(J&&f)try{const Y=await Promise.resolve(J(f));if(!ee.current||V.current!==R||Y&&(x(!0),await P(Y)))return}catch{}if(!ee.current||V.current!==R)return;await q()}finally{z(),V.current===R&&(V.current=null)}},[t,S,f,P,q]);o.useImperativeHandle(m,()=>({play:()=>O()}),[O]);const D=R=>R.stopPropagation(),H=o.useCallback(R=>{if(R.stopPropagation(),!t){if(B){try{w.current?.pause()}catch{}try{window.speechSynthesis?.cancel()}catch{}x(!1);return}O()}},[t,B,O]),L=ke("training-word-card",t?"training-word-card--disabled":"",b?"training-word-card--flipped":"",r?"training-word-card--selectable":"",s?"training-word-card--selected":"");return n.jsx("div",{className:L,onClick:r&&!t?i:void 0,role:r?"button":void 0,"aria-pressed":r?s:void 0,tabIndex:r&&!t?0:void 0,"aria-disabled":r&&t?!0:void 0,onKeyDown:r&&!t?R=>{R.target===R.currentTarget&&(R.key==="Enter"||R.key===" "||R.key==="Spacebar")&&(R.preventDefault(),i?.())}:void 0,children:n.jsxs("div",{className:"training-word-card__flipper",style:{transitionDelay:b?"0ms":`${l}ms`},children:[n.jsxs("div",{className:"training-word-card__front",children:[s&&n.jsx("div",{className:"training-word-card__selected-badge",onClick:D,children:n.jsx(_t,{type:"dot",size:40,position:"inline",animate:!0,icon:d!=null?void 0:"check",number:d??void 0,"aria-label":d!=null?p("training.nthSelected",{n:d}):p("training.selected","\uC120\uD0DD\uB428")})}),n.jsx("div",{className:"training-word-card__image-wrap",children:F?n.jsx("div",{className:"training-word-card__text-face",children:_.label}):T?n.jsxs(n.Fragment,{children:[j&&n.jsx("div",{className:"training-word-card__spinner"}),n.jsx("img",{ref:U,className:"training-word-card__image",src:$,alt:_.label||p("common.image","\uC774\uBBF8\uC9C0"),style:{opacity:j?0:1},onLoad:I,onError:K})]}):n.jsx("div",{className:"training-word-card__placeholder"})}),!u&&n.jsxs("div",{className:"training-word-card__body",children:[!F&&n.jsx("div",{className:"training-word-card__word",children:_.label}),_.subLabel&&n.jsxs("div",{className:"training-word-card__pronunciation",children:["[",_.subLabel,"]"]}),_.colloquialLabel&&n.jsxs("div",{className:"training-word-card__colloquial caption-1",children:["[",_.colloquialLabel,"]"]})]}),!c&&n.jsx("div",{className:"training-word-card__bottom",onClick:r?D:void 0,children:n.jsx(me,{htmlType:"button",size:g?40:48,type:g?"dot":"bar",icon:B?"pause":"play",label:g?void 0:p("training.playSound","\uC18C\uB9AC \uB4E3\uAE30"),selected:B,onClick:H,disabled:t,ariaLabel:p("training.playSound","\uC18C\uB9AC \uB4E3\uAE30")})})]}),n.jsx("div",{className:"training-word-card__back","aria-hidden":"true",children:n.jsx("img",{src:Iy,className:"training-word-card__disabled-symbol",alt:"",draggable:!1})})]})})}),Fy=260;function Ln(e){const{t}=ye.useTranslation(),{title:a,subtitle:r,headerActions:s,headerSegment:i,children:l,buttons:u,footer:c,footerStart:d,footerEnd:m,footerClassName:p="",footerLayout:f="center",onClose:b,closeDisabled:y=!1,beforeClose:C,closeOnBackdrop:v=!0,className:_="",ariaLabel:h,useTitle:w=!0,inline:g=!1,size:B,layer:x="modal",height:A,fillBody:N=!1,resetScrollKey:k}=e||{},[S,E]=o.useState(!1),F=o.useRef(!1),$=o.useRef(null),U=o.useId(),j=o.useRef(null);o.useEffect(()=>{},[g,a,h,_]),o.useEffect(()=>{k!==void 0&&j.current&&(j.current.scrollTop=0)},[k]);const[T,I]=o.useState(!1);o.useEffect(()=>{const Z=j.current;if(!Z)return;const ne=()=>I(Z.scrollHeight>Z.clientHeight+1);if(ne(),typeof ResizeObserver>"u")return;const le=new ResizeObserver(ne);le.observe(Z);const ue=Z.firstElementChild;return ue&&le.observe(ue),()=>le.disconnect()},[l,k]),o.useEffect(()=>{if(!g)return Il()},[g]),o.useEffect(()=>{if(g)return;const Z=document.activeElement,ne=$.current;return Yr(ne,Z),ne&&!ne.contains(document.activeElement)&&(ne.querySelector(Cn)??ne).focus(),()=>{const le=document.activeElement;(!le||le===document.body||ne&&ne.contains(le))&&Zr(Z)?.focus?.()}},[g]),Gr($,!g);const K=o.useRef(!0),ee=Xr(),V=o.useRef(null);o.useEffect(()=>(K.current=!0,()=>{K.current=!1,V.current&&(clearTimeout(V.current),V.current=null)}),[]);const q=o.useCallback(()=>{!K.current||!F.current||(F.current=!1,E(!1))},[]),P=o.useCallback((Z,ne=!1)=>{if(ne&&!K.current||F.current)return;F.current=!0,E(!0);const le=setTimeout(()=>{V.current===le&&(V.current=null);let ue;try{ue=Z?Z():void 0}catch{q();return}ue&&typeof ue.then=="function"&&ue.then(()=>{setTimeout(q,120)},q)},ee?0:Fy);ne&&(V.current=le)},[q,ee]),O=o.useCallback(()=>{y||C&&C()===!1||P(b,!0)},[P,b,y,C]),D=o.useRef(O);o.useEffect(()=>{D.current=O});const H=!g&&!!b;o.useEffect(()=>{if(H)return Vn(()=>D.current())},[H]);const L=H&&v,R=o.useRef(!1),z=Z=>{R.current=Z.target===Z.currentTarget},J=Z=>{const ne=R.current;R.current=!1,ne&&Z.target===Z.currentTarget&&O()},Y=n.jsx("div",{className:`popup ${g?"popup--inline":""} ${x==="belowPagePopup"?"popup--below-page-popup":""} ${S?"popup--closing":""} ${_}`,onPointerDown:L?z:void 0,onClick:L?J:void 0,onMouseDown:g?void 0:Z=>{Z.target===Z.currentTarget&&Z.preventDefault()},children:n.jsxs("div",{ref:$,className:`popup-panel${B?` popup-panel--${B}`:""}${A!=null?" popup-panel--has-height":""}${N?" popup-panel--fill-body":""}`,style:A!=null?{"--popup-height":typeof A=="number"?`${A}px`:A}:void 0,tabIndex:-1,role:g?void 0:"dialog","aria-modal":g?void 0:!0,"aria-labelledby":!g&&w&&a?U:void 0,"aria-label":!g&&!(w&&a)?h??(typeof a=="string"?a:void 0):void 0,children:[!w&&(s||b)?n.jsxs("div",{className:"popup-close-float",children:[s,b&&n.jsx(me,{htmlType:"button",size:40,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,onClick:O,disabled:y,ariaLabel:t("common.close","\uB2EB\uAE30")})]}):a||s||b?n.jsxs("div",{className:`popup-header${r?" popup-header--with-subtitle":""}`,children:[n.jsxs("div",{className:"popup-header-main",children:[a?n.jsx("h2",{id:U,className:"popup-title popup-title--left h2",children:a}):n.jsx("span",{id:U,className:"popup-title popup-title--left h2"}),r&&n.jsx("span",{className:"popup-subtitle body-3",children:r})]}),i&&n.jsx("div",{className:"popup-header-segment",children:n.jsx(kn,{size:40,ariaLabel:i.ariaLabel,options:i.options.map(Z=>({key:Z.key,label:Z.label,disabled:Z.disabled})),value:i.value,onChange:i.onChange})}),n.jsxs("div",{className:"popup-header-actions",children:[s,b&&n.jsx(me,{htmlType:"button",size:40,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,onClick:O,disabled:y,ariaLabel:t("common.close","\uB2EB\uAE30")})]})]}):null,n.jsx("div",{className:"popup-content",ref:j,tabIndex:T?0:void 0,children:n.jsx("div",{className:"popup-content__inner",children:typeof l=="function"?l({animateThen:P,closeWithAnimation:O}):l})}),d||m?n.jsxs("div",{className:`popup-footer popup-footer--bar${p?` ${p}`:""}`,children:[n.jsx("div",{className:"popup-footer__start",children:typeof d=="function"?d({animateThen:P,closeWithAnimation:O}):d}),n.jsx("div",{className:"popup-footer__end",children:typeof m=="function"?m({animateThen:P,closeWithAnimation:O}):m})]}):u?.length?n.jsx("div",{className:`popup-footer popup-footer--buttons${f!=="center"?` popup-footer--${f}`:""}`,children:u.map((Z,ne)=>n.jsx(me,{htmlType:"button",size:48,variant:Z.variant??"default",label:Z.label,disabled:Z.disabled,onClick:()=>Z.onClick?.({animateThen:P,closeWithAnimation:O})},ne))}):c?n.jsx("div",{className:`popup-footer${f!=="center"?` popup-footer--${f}`:""}${p?` ${p}`:""}`,children:typeof c=="function"?c({animateThen:P,closeWithAnimation:O}):c}):null]})});return g||typeof document>"u"?Y:en.createPortal(Y,document.body)}function ir(e){return String(e)}const lr=["o","triangle","x"];function pu(e,t){return e===t?null:t}const mu={o:"circle",triangle:"triangle",x:"x"},hu={o:"main",triangle:"warn",x:"danger"};function Oy(e){let t=0,a=0,r=0;for(const i of Object.values(e))i==="o"?t++:i==="triangle"?a++:i==="x"&&r++;const s=t+a+r;return{marked:s,o:t,triangle:a,x:r,rate:s===0?null:(t+a*.5)/s}}function So(e){const t={};for(const[a,r]of Object.entries(e))(r==="o"||r==="triangle"||r==="x")&&(t[a]=r);return t}function Cu(e){const t=[];let a=0;for(const r of e)t.push(a),a+=r;return t}function Hy(e,t){return!t&&e>0}const la={landscape:{width:1123,height:794,printSize:"A4 landscape",printW:"297mm",printH:"210mm"},portrait:{width:794,height:1123,printSize:"A4 portrait",printW:"210mm",printH:"297mm"}};function zy(e="landscape"){tn("print-word-table-deprecated","[printWordTable] @deprecated \u2014 WordTablePopup renderButtons \uC758 print(\uB610\uB294 useWordTablePrint().print)\uB97C \uC4F0\uC138\uC694. \uC804\uC5ED \uC778\uC1C4\uB294 \uD654\uBA74\uC758 \uBAA8\uB4E0 \uB2E8\uC5B4\uD45C\uB97C \uD568\uAED8 \uCC0D\uC2B5\uB2C8\uB2E4.");const{printSize:t,printW:a,printH:r}=la[e],s=document.createElement("style");s.textContent=`@page { size: ${t}; margin: 0; } .word-table { width: ${a} !important; height: ${r} !important; }`,document.head.appendChild(s);const i=()=>{document.head.removeChild(s),window.removeEventListener("afterprint",i)};window.addEventListener("afterprint",i),window.print()}function fu(e,t){if(e.length===0)return[[]];const a=Math.max(1,Math.floor(t)),r=[];for(let s=0;s<e.length;s+=a)r.push(e.slice(s,s+a));return r}const Vy={landscape:{1:{cols:1,rows:1},2:{cols:2,rows:1},3:{cols:3,rows:1},4:{cols:2,rows:2},5:{cols:3,rows:2},6:{cols:3,rows:2},7:{cols:4,rows:2},8:{cols:4,rows:2},9:{cols:5,rows:2},10:{cols:5,rows:2},11:{cols:4,rows:3},12:{cols:4,rows:3}},portrait:{1:{cols:1,rows:1},2:{cols:1,rows:2},3:{cols:1,rows:3},4:{cols:1,rows:4},5:{cols:1,rows:5},6:{cols:2,rows:3},7:{cols:2,rows:4},8:{cols:2,rows:4},9:{cols:2,rows:5},10:{cols:2,rows:5},11:{cols:3,rows:4},12:{cols:3,rows:4}}};function Wy(e,t){const a=Vy[e][t];if(a)return a;const r=Math.max(1,Math.ceil(t)),s=Math.max(1,Math.ceil(Math.sqrt(r*.707)));let i,l;return e==="landscape"?(l=s,i=Math.ceil(r/l)):(i=s,l=Math.ceil(r/i)),(e==="landscape"?i<l:l<i)&&([i,l]=[l,i]),{cols:i,rows:l}}const qy={\uD45C\uC2DC:"word-table-block__content--cut-show",\uC810\uC120:"",\uCF54\uB108:"word-table-block__content--cut-corner",\uBBF8\uD45C\uC2DC:""},gu={\uBA85:"\uBA85\uC0AC",\uB3D9:"\uB3D9\uC0AC",\uD615:"\uD615\uC6A9\uC0AC",\uBD80:"\uBD80\uC0AC",\uC218:"\uC218\uC0AC",\uAD00:"\uAD00\uD615\uC0AC",\uAC10:"\uAC10\uD0C4\uC0AC",\uC870:"\uC870\uC0AC",\uC811:"\uC811\uC0AC",\uC758:"\uC758\uC874\uBA85\uC0AC",\uB300:"\uB300\uBA85\uC0AC",\uBCF4\uB3D9:"\uBCF4\uC870\uB3D9\uC0AC",\uBCF4\uD615:"\uBCF4\uC870\uD615\uC6A9\uC0AC"},bu={\uACE0\uC720:"\uACE0\uC720\uC5B4",\uD55C\uC790:"\uD55C\uC790\uC5B4",\uC678\uB798:"\uC678\uB798\uC5B4",\uD63C\uC885:"\uD63C\uC885\uC5B4"};function jo(e,t){return e?e.split("/").map(a=>t[a]??a).join("/"):""}function yu(e,t,a,r){if(r!=="\uC810\uC120")return{};const s=e%t,i=Math.floor(e/t),l=s<t-1,u=i<a-1;if(!l&&!u)return{};const c="#ddd",d=b=>`repeating-linear-gradient(to ${b}, ${c} 0, ${c} 5px, transparent 5px, transparent 10px)`,m=[],p=[],f=[];return l&&(m.push(d("bottom")),p.push("1px 100%"),f.push("right center")),u&&(m.push(d("right")),p.push("100% 1px"),f.push("center bottom")),{backgroundImage:m.join(", "),backgroundSize:p.join(", "),backgroundPosition:f.join(", "),backgroundRepeat:"no-repeat",printColorAdjust:"exact",WebkitPrintColorAdjust:"exact"}}const Uy=280,Gy=240,Ky=280,Yy=400,Zy=120,Xy=280;function vu(e,t){const a=o.useRef(null),[r,s]=o.useState(1),[i,l]=o.useState(0),u=o.useCallback((c,d)=>{if(!(c>0))return;const m=c/e,p=t&&d>0?d/t:1/0,f=Math.min(1,m,p);s(f),l(Math.max(0,(c-e*f)/2))},[e,t]);return o.useEffect(()=>{const c=a.current;if(!c)return;const d=t?c.parentElement??c:c;if(u(d.clientWidth,d.clientHeight),typeof ResizeObserver>"u")return;const m=new ResizeObserver(([p])=>u(p.contentRect.width,p.contentRect.height));return m.observe(d),()=>m.disconnect()},[u,t]),{scalerRef:a,scale:r,offset:i}}const Jy={position:"absolute",width:1,height:1,margin:-1,padding:0,overflow:"hidden",clipPath:"inset(50%)",whiteSpace:"nowrap",border:0},Qy=400,xu=8;function _u({label:e,subLabel:t,colloquialLabel:a,homonum:r,showWord:s=!0,showImage:i=!0,showPronunciation:l=!0,showColloquial:u=!0,buttonSize:c=40,wordInfo:d}){const{t:m}=ye.useTranslation(),p=o.useRef(null),f=o.useRef(null),b=o.useRef(null),[y,C]=o.useState(1),[v,_]=o.useState(!1),[h,w]=o.useState({for:"",url:""}),[g,B]=o.useState(null),x=t&&t.length>0?t:cC()?.(e,r)??"",A=Jn()?.(e,r)??"",{imgRef:N,loading:k,failed:S,onLoad:E,onError:F}=Do(A),$=o.useCallback(()=>B(f.current?.getBoundingClientRect()??null),[]),U=o.useCallback(()=>B(null),[]),j=Qr(!!g,H=>{H?$():U()},f),T=o.useMemo(()=>{if(!d)return null;const H=[];return d.grade&&H.push(m("wordTable.info.grade",{n:d.grade,defaultValue:"\uB09C\uC774\uB3C4: {{n}}\uB4F1\uAE09"})),d.syllables&&H.push(m("wordTable.info.syllables",{n:d.syllables,defaultValue:"\uC74C\uC808 \uC218: {{n}}\uC74C\uC808"})),d.pos&&H.push(m("wordTable.info.pos",{v:jo(d.pos,e5(m)),defaultValue:"\uD488\uC0AC: {{v}}"})),d.wordType&&H.push(m("wordTable.info.wordType",{v:jo(d.wordType,t5(m)),defaultValue:"\uC720\uD615: {{v}}"})),H.length?H:null},[d,m]),I=x||e,K=h.for===I?h.url:"";o.useEffect(()=>{const H=$r(),L=x||e;if(!H||!L)return;let R=!1;return Promise.resolve(H(L)).then(z=>{!R&&z&&w({for:L,url:z})}),()=>{R=!0}},[x,e]);const ee=o.useRef(null),V=o.useRef(null);o.useEffect(()=>()=>{b.current?.pause(),V.current?.()},[]);const q=o.useCallback(async H=>{if(H.stopPropagation(),v){ee.current?.();return}if(K){_(!0);try{const L=new Audio(K);b.current=L;const R=()=>{_(!1),V.current?.()},z=()=>{L.pause(),R()};ee.current=z;const J=er(z);V.current=J,L.onended=R,L.onerror=R,await L.play()}catch{_(!1),V.current?.()}}},[v,K]),P=i&&!!A&&!S,O=P&&s?Uy:P?Ky:Gy,D=P&&s?Yy:P?Xy:Zy;return o.useEffect(()=>{const H=p.current;if(!H||typeof ResizeObserver>"u")return;const L=new ResizeObserver(([R])=>{const{width:z,height:J}=R.contentRect;C(Math.min(z/O,J/D))});return L.observe(H),()=>L.disconnect()},[O,D]),n.jsxs("div",{ref:p,className:ke("word-table-cell",P?"word-table-cell--with-image":""),"data-ref-w":O,"data-ref-h":D,children:[n.jsxs("div",{className:"word-table-cell__inner",style:{transform:`scale(${y})`},children:[P&&n.jsxs("div",{className:"word-table-cell__image-wrap",children:[k&&n.jsx("div",{className:"word-table-cell__spinner"}),n.jsx("img",{ref:N,className:"word-table-cell__image",src:A,alt:e,draggable:!1,style:{opacity:k?0:1},onLoad:E,onError:F})]}),s&&n.jsx("span",{className:"word-table-cell__word h0",children:e}),l&&x&&n.jsxs("span",{className:"word-table-cell__sub h3",children:["[",x,"]"]}),u&&a&&n.jsxs("span",{className:"word-table-cell__colloquial h5",children:["[",a,"]"]})]}),n.jsxs("div",{className:"word-table-cell__play-button","data-audio-src":K,children:[n.jsx("span",{"data-play-state":"play",style:{display:v?"none":void 0},children:n.jsx(me,{htmlType:"button",size:c,type:"dot",icon:"play",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:m("common.play","\uC7AC\uC0DD"),ariaLabel:e?m("common.playFor",{name:e,defaultValue:`${e} \uC7AC\uC0DD`}):m("common.play","\uC7AC\uC0DD"),onClick:q})}),n.jsx("span",{"data-play-state":"pause",style:{display:v?void 0:"none"},children:n.jsx(me,{htmlType:"button",size:c,type:"dot",icon:"pause",useBorder:!1,selected:!0,showTooltipInfo:m("common.pause","\uBA48\uCDA4"),ariaLabel:e?m("common.pauseFor",{name:e,defaultValue:`${e} \uBA48\uCDA4`}):m("common.pause","\uBA48\uCDA4"),onClick:q})})]}),d&&n.jsxs("div",{ref:f,className:"word-table-cell__info-button",onPointerEnter:H=>{na(H)||$()},onPointerLeave:H=>{na(H)||U()},onFocus:()=>{aa()||$()},onBlur:U,children:[n.jsx(me,{htmlType:"button",size:c,type:"dot",icon:"info",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:!1,ariaLabel:m("wordTable.wordInfo","{{word}} \uB0B1\uB9D0 \uC815\uBCF4",{word:e}),onClick:H=>{H.stopPropagation(),j.touchPress()}}),g&&T&&n.jsx(Wn,{anchorRect:g,items:T,showIndex:!1})]})]})}const wu={\uBA85:"noun",\uB3D9:"verb",\uD615:"adjective",\uBD80:"adverb",\uC218:"numeral",\uAD00:"determiner",\uAC10:"interjection",\uC870:"particle",\uC811:"affix",\uC758:"dependentNoun",\uB300:"pronoun",\uBCF4\uB3D9:"auxVerb",\uBCF4\uD615:"auxAdjective"},Bu={\uACE0\uC720:"native",\uD55C\uC790:"sino",\uC678\uB798:"foreign",\uD63C\uC885:"mixed"};function e5(e){return Object.fromEntries(Object.entries(gu).map(([t,a])=>[t,wu[t]?e(`wordTable.pos.${wu[t]}`,{defaultValue:a}):a]))}function t5(e){return Object.fromEntries(Object.entries(bu).map(([t,a])=>[t,Bu[t]?e(`wordSearch.filter.type.${Bu[t]}`,{defaultValue:a}):a]))}function ua({title:e,titleIcon:t,disc:a,className:r,orientation:s="landscape",contentTypes:i=["\uC774\uBBF8\uC9C0","\uB2E8\uC5B4","\uD45C\uC900 \uBC1C\uC74C"],cutLine:l="\uD45C\uC2DC",showOutline:u=!0,showDivLine:c=!0,items:d,editCells:m,count:p,activeCell:f=null,onActivateCell:b,onRemoveCell:y,onRemoveItem:C,onReorder:v,renderCellAction:_,showFillerAdd:h=!1,contentRef:w,buttonSize:g=40,brand:B,code:x,pageNumber:A,pageNumberPosition:N="right",fitHeight:k=!1,scoring:S=!1,marks:E,onMarkClick:F,scoreIndexOffset:$=0}){const U=o.useCallback((X,oe)=>{F?.($+X,oe)},[F,$]),j=(X,oe)=>{const he=E?.[ir($+X)]??null;return n.jsx("div",{className:ke("word-table-cell__score",he?"word-table-cell__score--marked":""),style:Fe>1?{transform:`translateX(-50%) scale(${Fe})`,transformOrigin:"bottom center"}:void 0,children:lr.map(je=>n.jsx("span",{className:ke("word-table-cell__score-slot",he===je?"word-table-cell__score-slot--on":""),children:n.jsx(me,{htmlType:"button",size:g,type:"dot",shape:"pill",icon:mu[je],variant:he===je?hu[je]:"default",selected:he===je,useBorder:!1,...Ne?{}:{tabIndex:-1,role:"img"},showTooltipInfo:T(`wordTable.scoring.markName.${je}`,{defaultValue:je}),ariaLabel:T(`wordTable.scoring.${je}`,{word:oe,defaultValue:`${oe} ${je}`}),onClick:Ne?ot=>{ot.stopPropagation(),U(X,je)}:void 0})},je))})},{t:T}=ye.useTranslation(),I=m!==void 0,K=e!=null||!!t||!!a,ee=on("(max-width: 767px)"),V=o.useRef(null),[q,P]=o.useState(null),O=d?.length??0,[D,H]=o.useState(null),[L,R]=o.useState(""),z=o.useRef(null),J=o.useRef(null),Y=o.useRef(null),Z=o.useRef(null),ne=o.useCallback(X=>{J.current=X,typeof w=="function"?w(X):w&&(w.current=X)},[w]),le=o.useCallback((X,oe)=>{z.current=oe,v?.(X,oe),R(T("wordTable.reorder.moved",{n:oe+1,total:O,defaultValue:"{{total}}\uCE78 \uAC00\uC6B4\uB370 {{n}}\uBC88\uC9F8\uB85C \uC62E\uAE40"}))},[v,T,O]);o.useEffect(()=>{const X=z.current;X!=null&&(z.current=null,J.current?.querySelectorAll(".word-table-block__card:not(.word-table-block__card--filler)")?.[X]?.querySelector(".word-table-block__card-handle button")?.focus())}),o.useEffect(()=>()=>{Z.current?.()},[]);const ue=o.useCallback((X,oe)=>{if(!v||!X.altKey||X.ctrlKey||X.metaKey)return;const he=X.key==="ArrowRight";if(!he&&X.key!=="ArrowLeft")return;X.preventDefault();const je=oe+(he?1:-1);je<0||je>=O||le(oe,je)},[v,O,le]),Ee=o.useCallback((X,oe)=>{if(!v||X.pointerType==="mouse")return;const he=X.target.closest?.("button");if(he&&!he.closest(".word-table-block__card-handle"))return;Z.current?.();const je={x:X.clientX,y:X.clientY};let ot=!1;const Ye=Xe=>{ot&&Xe.cancelable&&Xe.preventDefault()},bt=Xe=>{if(!ot){(Math.abs(Xe.clientX-je.x)>xu||Math.abs(Xe.clientY-je.y)>xu)&&et();return}const tt=document.elementFromPoint?.(Xe.clientX,Xe.clientY)?.closest?.("[data-wordtable-cell]"),$e=tt?Number(tt.dataset.wordtableCell):NaN,Ge=Number.isInteger($e)?$e:null;Y.current=Ge,P(Ge)},Ct=()=>{const Xe=Y.current,tt=ot;et(),tt&&Xe!=null&&Xe!==oe&&le(oe,Xe)},st=setTimeout(()=>{ot=!0,H(oe),Y.current=oe,P(oe),window.addEventListener("touchmove",Ye,{passive:!1})},Qy);function et(){clearTimeout(st),window.removeEventListener("pointermove",bt),window.removeEventListener("pointerup",Ct),window.removeEventListener("pointercancel",Ct),window.removeEventListener("touchmove",Ye),ot=!1,Y.current=null,Z.current=null,H(null),P(null)}Z.current=et,window.addEventListener("pointermove",bt),window.addEventListener("pointerup",Ct),window.addEventListener("pointercancel",Ct)},[v,le]),{width:W,height:te}=la[s],fe=typeof k=="number"?k:k&&typeof k=="object"?ee?k.narrow:k.wide:null,{scalerRef:Se,scale:Ce,offset:ie}=vu(W,k?te:void 0),ce=I?m?.length??0:d?.length??0,de=Math.max(p??ce,1),{cols:be,rows:_e}=Wy(s,de),Be={word:i.length===0||i.includes("\uB2E8\uC5B4"),image:i.length===0||i.includes("\uC774\uBBF8\uC9C0"),pron:i.length===0||i.includes("\uD45C\uC900 \uBC1C\uC74C"),colloq:i.length===0||i.includes("\uAD6C\uC5B4\uCCB4 \uBC1C\uC74C")},Ze=I?(m??[]).some(X=>X!==null&&X.length>1):(d??[]).some(X=>(X.words??[]).length>1),Oe=!!B?.show,Ie=!!B?.show&&B?.top!==!1,He=!!B?.show&&B?.bottom!==!1,ut=B?.copyright??"\xA9 IHAB, Inc. All rights reserved.",nt=ke("word-table-block__content",qy[l],u&&"word-table-block__content--outline",c&&Ze&&"word-table-block__content--div-line",!Oe&&A&&N!=="none"&&"word-table-block__content--page-number",Ie&&"word-table-block__content--brand-top",He&&"word-table-block__content--brand-bottom"),rt={transform:`scale(${1/Ce})`,transformOrigin:"center center"},pt=g*lr.length+4*(lr.length-1),Ne=!!F,Fe=Ne?Math.max(1,Math.min(1/Ce,W/be/pt)):1,Ae=n.jsxs("div",{ref:Se,className:"word-table__scaler",style:{height:te*Ce},children:[n.jsx("div",{className:ke("word-table",S&&!Ne&&"word-table--score-readonly",!K&&r),style:{width:W,height:te,transform:`scale(${Ce})`,transformOrigin:"top left",marginLeft:ie},children:n.jsxs("div",{ref:ne,className:nt,style:{gridTemplateColumns:`repeat(${be}, 1fr)`,gridTemplateRows:`repeat(${_e}, 1fr)`},children:[I?n.jsx(n.Fragment,{children:(m??[]).map((X,oe)=>n.jsx("div",{className:ke("word-table-block__edit-cell",X?"word-table-block__edit-cell--filled":"word-table-block__edit-cell--empty",f===oe?"word-table-block__edit-cell--active":""),style:yu(oe,be,_e,l),children:X?n.jsxs(n.Fragment,{children:[X.map((he,je)=>n.jsxs(o.Fragment,{children:[je>0&&n.jsx("div",{className:"word-table-block__pair-divider"}),n.jsx(_u,{label:he.word,subLabel:he.pronunciation,colloquialLabel:he.colloquialPronunciation,homonum:he.homonum,showWord:Be.word,showImage:Be.image,showPronunciation:Be.pron,showColloquial:Be.colloq,buttonSize:g})]},je)),S&&j(oe,X.map(he=>he.word).join(" / ")),y&&n.jsx("div",{className:"word-table-block__card-close",children:n.jsx(me,{htmlType:"button",size:g,type:"dot",icon:"x",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:X.length>1?T("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):T("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),ariaLabel:X.length>1?T("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):T("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),onClick:()=>y(oe)})})]}):b&&n.jsx("div",{style:rt,children:n.jsx(me,{htmlType:"button",size:"48",type:"bar",icon:"plus",label:T("wordTable.addWord","\uCD94\uAC00\uD558\uAE30"),onClick:()=>b(oe)})})},oe))}):n.jsxs(n.Fragment,{children:[(d??[]).map((X,oe)=>n.jsxs("div",{"data-wordtable-cell":v?oe:void 0,className:`word-table-block__card${v?" word-table-block__card--draggable":""}${q===oe?" word-table-block__card--drag-over":""}${D===oe?" word-table-block__card--dragging":""}`,style:yu(oe,be,_e,l),draggable:!!v,onPointerDown:v?he=>Ee(he,oe):void 0,onKeyDown:v?he=>ue(he,oe):void 0,onDragStart:v?()=>{V.current=oe}:void 0,onDragOver:v?he=>{he.preventDefault(),P(oe)}:void 0,onDragLeave:v?()=>P(null):void 0,onDrop:v?he=>{he.preventDefault(),V.current!==null&&V.current!==oe&&v(V.current,oe),V.current=null,P(null)}:void 0,onDragEnd:v?()=>{V.current=null,P(null)}:void 0,children:[(X.words??[]).map((he,je)=>n.jsxs(o.Fragment,{children:[je>0&&n.jsx("div",{className:"word-table-block__pair-divider"}),n.jsx(_u,{label:he.label,subLabel:he.subLabel,colloquialLabel:he.colloquialLabel,homonum:he.homonum,showWord:Be.word,showImage:Be.image,showPronunciation:Be.pron,showColloquial:Be.colloq,buttonSize:g,wordInfo:he.grade||he.syllables!=null||he.pos||he.wordType?{grade:he.grade,syllables:he.syllables,pos:he.pos,wordType:he.wordType}:void 0})]},je)),S&&j(oe,(X.words??[]).map(he=>he.label).join(" / ")),v&&n.jsx("div",{className:"word-table-block__card-handle",children:n.jsx(me,{htmlType:"button",size:g,type:"dot",icon:"grip-vertical",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:T("wordTable.reorder.hint","Alt + \u2190 \u2192 \uB85C \uC21C\uC11C \uBC14\uAFB8\uAE30"),ariaLabel:T("wordTable.reorder.handle",{word:(X.words??[]).map(he=>he.label).join(" / "),defaultValue:"{{word}} \uC21C\uC11C \uBC14\uAFB8\uAE30 (Alt + \uD654\uC0B4\uD45C)"})})}),(_||C)&&n.jsxs("div",{className:"word-table-block__card-actions",children:[_?.(oe,X),C&&n.jsx("div",{className:"word-table-block__card-close",children:n.jsx(me,{htmlType:"button",size:g,type:"dot",icon:"x",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:(X.words??[]).length>1?T("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):T("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),ariaLabel:(X.words??[]).length>1?T("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):T("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),onClick:()=>C(X.id)})})]})]},X.id)),Array.from({length:Math.max(0,be*_e-(d?.length??0))}).map((X,oe)=>{const he=(d?.length??0)+oe<de;return n.jsx("div",{className:"word-table-block__card word-table-block__card--filler",children:h&&b&&he&&n.jsx("div",{style:rt,children:n.jsx(me,{htmlType:"button",size:g,type:"bar",icon:"plus",label:T("wordTable.addWord","\uCD94\uAC00\uD558\uAE30"),onClick:()=>b((d?.length??0)+oe)})})},`filler-${oe}`)})]}),Ie&&n.jsx(n.Fragment,{children:n.jsxs("div",{className:"word-table__band word-table__band--top",children:[n.jsx("img",{className:"word-table__brand-logo",src:B?.topLogo?.src??Qa,alt:B?.topLogo?.alt??"\uB9D0\uADC0"}),(()=>{const X=[B?.title&&n.jsx("span",{className:"word-table__paper-title",children:B.title},"t"),B?.owner&&n.jsx("span",{className:"word-table__owner",children:B.owner},"o"),x&&n.jsx("span",{className:"word-table__code",children:x},"c")].filter(Boolean);return X.length===0?null:n.jsx("span",{className:"word-table__ident",children:X.map((oe,he)=>n.jsxs(o.Fragment,{children:[he>0&&n.jsx("span",{className:"word-table__ident-dot","aria-hidden":"true",children:"\xB7"}),oe]},he))})})()]})}),He&&n.jsx(n.Fragment,{children:n.jsxs("div",{className:"word-table__band word-table__band--bottom",children:[n.jsxs("span",{className:"word-table__brand-by",children:[B?.bottomLogo?n.jsx("img",{className:"word-table__brand-logo--ihab word-table__brand-logo--given",src:B.bottomLogo.src,alt:B.bottomLogo.alt}):n.jsx("span",{className:"word-table__brand-logo--ihab",role:"img","aria-label":"IHAB"}),n.jsx("span",{className:"word-table__copyright",children:ut})]}),n.jsxs("span",{className:"word-table__band-end",children:[B?.link&&n.jsx("span",{className:"word-table__link",children:B.link}),A&&N!=="none"&&n.jsx("span",{className:"word-table__page-count",children:T("wordTable.filter.pageIndicator",{current:A.current,total:A.total})})]})]})}),!Oe&&A&&N!=="none"&&n.jsx("span",{className:`word-table__page-number body-3 word-table__page-number--${N}`,children:T("wordTable.filter.pageIndicator",{current:A.current,total:A.total})})]})}),v&&n.jsx("span",{role:"status",style:Jy,children:L})]}),at=fe==null?Ae:n.jsx("div",{className:"word-table__frame",style:{height:fe},children:Ae});return K?n.jsx(ia,{type:"page",icon:t,title:e,disc:a,className:ke("word-table-block",r),children:at}):at}function n5(e,t,a){const r=[];for(const s of e??[]){if(s.type==="note"||s.type==="input")continue;const i=s.displayLabel??s.label,l=a5(s,t?.[s.label],a);l!==null&&r.push(`${i} ${l}`)}return r.join(" \xB7 ")}function a5(e,t,a){const r=(Array.isArray(t)?t:t===void 0?[]:[t]).filter(s=>s!==un);return r.length===0?e.allOption?e.allLabel??a:null:r.map(s=>r5(e,s)).join(", ")}function r5(e,t){const a=[...e.items??[],...(e.groups??[]).flat()];for(const r of a)if(r!=null){if(typeof r=="string"){if(r===t)return r;continue}if(r.value===t)return r.displayLabel??r.labels?.join(" ")??r.value}return t}function Dn({title:e,titleLevel:t=2,headerAction:a,headerSummary:r,collapsible:s=!1,defaultCollapsed:i=!1,collapsed:l,onCollapsedChange:u,footer:c,sections:d,selected:m={},onSelect:p,align:f,sectionAlign:b,className:y}){const C=(f??(b==="vertical"?"newline":"inline"))==="inline",{t:v}=ye.useTranslation(),[_,h]=o.useState(i),w=l??_,g=()=>{const E=!w;h(E),u?.(E)},B=E=>{if(!s)return;const F=E.target;!F||typeof F.closest!="function"||F.closest(".filter-panel__collapse-toggle")||F.closest('button, a, input, select, textarea, label, [role="radiogroup"], [role="button"], [role="menu"]')||g()},x=o.useMemo(()=>r!==void 0||!w?"":n5(d,m,v("common.all","\uC804\uCCB4")),[r,w,d,m,v]),A=r??(x?n.jsx("span",{className:"filter-panel__header-summary body-3",children:x}):null),N=e||a||r||s,k=o.useId(),S=t?`h${t}`:"span";return n.jsxs("div",{className:ke("filter-panel",s?"filter-panel--collapsible":"",w?"filter-panel--collapsed":"",y),role:typeof e=="string"&&e?"group":void 0,"aria-labelledby":typeof e=="string"&&e?k:void 0,children:[N&&n.jsxs("div",{className:"filter-panel__header",onClick:s?B:void 0,children:[n.jsx("div",{className:"filter-panel__title-row",children:e&&n.jsx(S,{id:k,className:"filter-panel__title h4",children:e})}),n.jsxs("div",{className:"filter-panel__header-actions",children:[w?A:a,s&&n.jsx(me,{htmlType:"button",size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:w?"chevron-down":"chevron-up",className:"filter-panel__collapse-toggle",ariaLabel:w?v("common.expand","\uD3BC\uCE58\uAE30"):v("common.collapse","\uC811\uAE30"),"aria-expanded":!w,onClick:g})]})]}),!w&&n.jsxs(n.Fragment,{children:[n.jsx("div",{className:ke("filter-panel__sections",C?"filter-panel__sections--row":""),children:d.map(E=>{const F=m[E.label],$=F===void 0||(Array.isArray(F)?F.length===0:!1),U=(E.items??[]).filter(T=>T!=null);E.allOption&&U.some(T=>(typeof T=="string"?T:T.value)===un)&&tn(`filter-panel-all-value:${E.label}`,`[FilterPanel] '${E.label}' \uC808\uC5D0 allOption \uACFC \uAC12 '${un}' \uC778 \uBCF4\uAE30\uAC00 \uD568\uAED8 \uC788\uB2E4 \u2014 \uB450 \uC120\uD0DD\uC774 \uAD6C\uBCC4\uB418\uC9C0 \uC54A\uB294\uB2E4. \uBCF4\uAE30 \uAC12\uC744 \uBC14\uAFD4\uB77C.`);const j=T=>{const I=typeof T=="string"?T:T.value,K=typeof T!="string"&&!!T.disabled,ee=typeof T!="string"?T.labels:void 0,V=typeof T!="string"?T.displayLabel:void 0,q=typeof T!="string"?T.tooltip:void 0,P=typeof T!="string"?T.descriptionTooltip:void 0,O=typeof T!="string"?T.shape:void 0,D=Array.isArray(F)?F.includes(I):F===I;return n.jsx(me,{htmlType:"button",size:"keyboard",label:ee??V??I,type:E.itemType??(ee?"bar":I.length===1?"dot":void 0),selected:D,disabled:K,shape:O,showTooltipInfo:!!q,tooltipInfoText:q,tooltipDescription:P,onClick:()=>p?.(I,E.label)},I)};return n.jsxs(o.Fragment,{children:[E.groupLabel&&n.jsxs("div",{className:"filter-panel__group-label-row",children:[n.jsx("div",{className:"filter-panel__group-label body-2",children:E.groupLabel}),E.groupAction]}),n.jsxs("div",{className:ke("filter-panel__section",E.layout==="row"?"filter-panel__section--row":"",E.block?"filter-panel__section--block":""),children:[n.jsxs("div",{className:"filter-panel__section-label-row",children:[n.jsx("span",{className:"filter-panel__section-label body-3",children:E.displayLabel??E.label}),E.labelAction??(E.labelInfo?n.jsx(ja,{...E.labelInfo}):null)]}),E.type==="note"?n.jsx("div",{className:"filter-panel__note body-3",children:E.content}):E.type==="input"?n.jsx(Gn,{className:"filter-panel__textfield",placeholder:E.placeholder,ariaLabel:E.displayLabel??E.label,value:m[E.label]??"",onChange:T=>p?.(T,E.label),error:E.error}):!E.multiple&&E.display==="segmented"?n.jsx(kn,{ariaLabel:E.displayLabel??E.label,options:[...E.allOption?[{key:un,label:E.allLabel??v("common.all","\uC804\uCCB4"),disabled:E.allOptionDisabled}]:[],...U.map(T=>{const I=typeof T=="string"?T:T.value,K=typeof T!="string"?T.displayLabel:void 0,ee=typeof T!="string"?T.disabled:void 0;return{key:I,label:K??I,disabled:ee}})],value:$&&E.allOption?un:m[E.label]??"",onChange:T=>p?.(T,E.label),size:32}):!E.multiple&&E.display==="dropdown"?n.jsx(cn,{className:"filter-panel__dropdown",ariaLabel:typeof E.label=="string"?E.label:void 0,size:40,options:[...E.allOption?[{value:un,label:E.allLabel??v("common.all","\uC804\uCCB4"),disabled:E.allOptionDisabled}]:[],...U.map(T=>{const I=typeof T=="string"?T:T.value,K=typeof T!="string"?T.displayLabel:void 0,ee=typeof T!="string"?T.disabled:void 0;return{value:I,label:K??I,disabled:ee}})],value:$&&E.allOption?un:m[E.label],onChange:T=>p?.(T,E.label)}):n.jsxs("div",{className:E.groups?"filter-panel__item-groups":"filter-panel__items",children:[E.allOption&&!E.groups&&n.jsx(me,{htmlType:"button",size:"keyboard",label:E.allLabel??v("common.all","\uC804\uCCB4"),selected:$,disabled:E.allOptionDisabled,onClick:()=>p?.(un,E.label)}),E.groups?E.groups.map((T,I)=>n.jsxs("div",{className:"filter-panel__item-group",children:[I===0&&E.allOption&&n.jsx(me,{htmlType:"button",size:"keyboard",label:E.allLabel??v("common.all","\uC804\uCCB4"),selected:$,disabled:E.allOptionDisabled,onClick:()=>p?.(un,E.label)}),T.filter(K=>K!=null).map(j)]},I)):U.map(j)]})]})]},E.label)})}),c!=null&&c!==!1&&n.jsx("div",{className:"filter-panel__footer body-3",children:c})]})]})}const o5=[1,2,3,4,5,6,7,8,9,10,11,12],Au=[8,4,2,1];function ku(e,t){return{label:e("wordTable.filter.composition","\uAD6C\uC131"),items:[{value:"\uC774\uBBF8\uC9C0",disabled:!t.hasImage,displayLabel:e("wordTable.filter.image","\uC774\uBBF8\uC9C0")},{value:"\uB2E8\uC5B4",displayLabel:e("wordTable.filter.word","\uB2E8\uC5B4")},{value:"\uD45C\uC900 \uBC1C\uC74C",displayLabel:e("wordTable.filter.standardPron","\uD45C\uC900 \uBC1C\uC74C")},{value:"\uAD6C\uC5B4\uCCB4 \uBC1C\uC74C",disabled:!t.hasColloquial,displayLabel:e("wordTable.filter.colloquialPron","\uAD6C\uC5B4\uCCB4 \uBC1C\uC74C")}],multiple:!0,allOption:!0}}function Nu(e){return{label:e("wordTable.filter.paperOrientation","\uC6A9\uC9C0 \uBC29\uD5A5"),items:[{value:"\uAC00\uB85C",displayLabel:e("wordTable.filter.landscape","\uAC00\uB85C")},{value:"\uC138\uB85C",displayLabel:e("wordTable.filter.portrait","\uC138\uB85C")}],display:"segmented"}}function Du(e){return{label:e("wordTable.filter.border","\uC678\uACFD\uC120"),items:[{value:"\uD45C\uC2DC",displayLabel:e("wordTable.filter.show","\uD45C\uC2DC")},{value:"\uBBF8\uD45C\uC2DC",displayLabel:e("wordTable.filter.hide","\uBBF8\uD45C\uC2DC")}],display:"segmented"}}function Eu(e){return{label:e("wordTable.filter.topInfo","\uC0C1\uB2E8 \uC815\uBCF4"),items:[{value:"\uD45C\uC2DC",displayLabel:e("wordTable.filter.show","\uD45C\uC2DC")},{value:"\uBBF8\uD45C\uC2DC",displayLabel:e("wordTable.filter.hide","\uBBF8\uD45C\uC2DC")}],display:"segmented"}}function Su(e){return{label:e("wordTable.filter.bottomInfo","\uD558\uB2E8 \uC815\uBCF4"),items:[{value:"\uD45C\uC2DC",displayLabel:e("wordTable.filter.show","\uD45C\uC2DC")},{value:"\uBBF8\uD45C\uC2DC",displayLabel:e("wordTable.filter.hide","\uBBF8\uD45C\uC2DC")}],display:"segmented"}}function ju(e){return{label:e("wordTable.filter.cutLine","\uC808\uCDE8\uC120"),items:[{value:"\uD45C\uC2DC",displayLabel:e("wordTable.filter.show","\uD45C\uC2DC")},{value:"\uC810\uC120",displayLabel:e("wordTable.filter.dotted","\uC810\uC120")},{value:"\uCF54\uB108",displayLabel:e("wordTable.filter.corner","\uCF54\uB108")},{value:"\uBBF8\uD45C\uC2DC",displayLabel:e("wordTable.filter.hide","\uBBF8\uD45C\uC2DC")}],display:"segmented"}}function Tu(e){return{label:e("wordPrint.divLine","\uB300\uB9BD\uC120"),items:[{value:"\uD45C\uC2DC",displayLabel:e("wordTable.filter.show","\uD45C\uC2DC")},{value:"\uBBF8\uD45C\uC2DC",displayLabel:e("wordTable.filter.hide","\uBBF8\uD45C\uC2DC")}],display:"segmented"}}function Mu(e,t){return{label:e(t.hasPairs?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord"),items:[t.itemCount,...Au.filter(a=>a<t.itemCount)].map(a=>({value:`${a}\uAC1C`,displayLabel:e("wordTable.filter.itemsPerPageOption",{count:a})})),display:"segmented"}}function Lu(e,t){return e===t||!Au.includes(e)?Number.POSITIVE_INFINITY:e}function s5(e){return{label:e("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638"),items:[{value:"\uC67C\uCABD",displayLabel:e("wordTable.filter.pageNumberLeft","\uC67C\uCABD")},{value:"\uC911\uC559",displayLabel:e("wordTable.filter.pageNumberCenter","\uC911\uC559")},{value:"\uC624\uB978\uCABD",displayLabel:e("wordTable.filter.pageNumberRight","\uC624\uB978\uCABD")},{value:"\uBBF8\uD45C\uC2DC",displayLabel:e("wordTable.filter.hide","\uBBF8\uD45C\uC2DC")}],display:"segmented"}}const $u={left:"\uC67C\uCABD",center:"\uC911\uC559",right:"\uC624\uB978\uCABD",none:"\uBBF8\uD45C\uC2DC"};function Ru(e){return e==="\uC67C\uCABD"?"left":e==="\uC911\uC559"?"center":e==="\uC624\uB978\uCABD"?"right":"none"}function Pu(e,t){return{[e("wordTable.filter.composition","\uAD6C\uC131")]:t.contentTypes,[e("wordTable.filter.paperOrientation","\uC6A9\uC9C0 \uBC29\uD5A5")]:t.orientation==="landscape"?"\uAC00\uB85C":"\uC138\uB85C",[e("wordTable.filter.border","\uC678\uACFD\uC120")]:t.showOutline?"\uD45C\uC2DC":"\uBBF8\uD45C\uC2DC",[e("wordTable.filter.cutLine","\uC808\uCDE8\uC120")]:t.cutLine,[e("wordPrint.divLine","\uB300\uB9BD\uC120")]:t.showDivLine?"\uD45C\uC2DC":"\uBBF8\uD45C\uC2DC",...t.showTopInfo!=null?{[e("wordTable.filter.topInfo","\uC0C1\uB2E8 \uC815\uBCF4")]:t.showTopInfo?"\uD45C\uC2DC":"\uBBF8\uD45C\uC2DC"}:{},...t.showBottomInfo!=null?{[e("wordTable.filter.bottomInfo","\uD558\uB2E8 \uC815\uBCF4")]:t.showBottomInfo?"\uD45C\uC2DC":"\uBBF8\uD45C\uC2DC"}:{}}}function Iu(e,t,a,r){return a===e("wordTable.filter.composition","\uAD6C\uC131")?t===un?(r.setContentTypes(()=>[]),!0):(r.setContentTypes(s=>s.includes(t)?s.filter(i=>i!==t):[...s,t]),!0):a===e("wordTable.filter.paperOrientation","\uC6A9\uC9C0 \uBC29\uD5A5")?(r.setOrientation(t==="\uAC00\uB85C"?"landscape":"portrait"),!0):a===e("wordTable.filter.border","\uC678\uACFD\uC120")?(r.setShowOutline(t==="\uD45C\uC2DC"),!0):a===e("wordTable.filter.cutLine","\uC808\uCDE8\uC120")?(r.setCutLine(t),!0):a===e("wordPrint.divLine","\uB300\uB9BD\uC120")?(r.setShowDivLine(t==="\uD45C\uC2DC"),!0):a===e("wordTable.filter.topInfo","\uC0C1\uB2E8 \uC815\uBCF4")?(r.setShowTopInfo?.(t==="\uD45C\uC2DC"),!0):a===e("wordTable.filter.bottomInfo","\uD558\uB2E8 \uC815\uBCF4")?(r.setShowBottomInfo?.(t==="\uD45C\uC2DC"),!0):!1}function i5(e){return"sections"in e}function To(e){const{t}=ye.useTranslation(),{title:a,className:r,collapsible:s,defaultCollapsed:i,collapsed:l,onCollapsedChange:u,headerSummary:c}=e,d={collapsible:s,defaultCollapsed:i,collapsed:l,onCollapsedChange:u,headerSummary:c};if(i5(e))return n.jsx(Dn,{className:r,title:a??t("wordTable.filterTitle","\uD45C \uC124\uC815"),sections:e.sections,selected:e.selected,onSelect:e.onSelect,...d,align:"inline"});const{hasImage:m,hasColloquial:p,contentTypes:f,orientation:b,showOutline:y,cutLine:C,showDivLine:v,setters:_,showCutLine:h=!1,showDivLine2:w=!1,middleSections:g=[],extraSelected:B={},onExtraSelect:x,showPaperBands:A=!1,showTopInfo:N=!0,showBottomInfo:k=!0}=e,S=[ku(t,{hasImage:m,hasColloquial:p}),Nu(t),...g,Du(t),...h?[ju(t)]:[],...w?[Tu(t)]:[],...A?[Eu(t),Su(t)]:[]],E={...Pu(t,{contentTypes:f,orientation:b,showOutline:y,cutLine:C,showDivLine:v,showTopInfo:N,showBottomInfo:k}),...B},F=($,U)=>{Iu(t,$,U,_)||x?.($,U)};return n.jsx(Dn,{className:r,title:a??t("wordTable.filterTitle","\uD45C \uC124\uC815"),sections:S,selected:E,onSelect:F,...d,sectionAlign:"horizontal"})}function Fu(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}function Mo(e){return e.replace(/[\\/:*?"<>|]/g,"_").trim()}let ur=null,ca=null;function l5(e,t,a,r="",s=""){if(e.length===0||ca&&ca.iframe.isConnected&&Date.now()-ca.at<1e4)return;const i=r?Mo(r):"";ur?.();let l=null;if(i){const d=document.title;document.title=i,l=()=>{document.title=d,window.removeEventListener("afterprint",l),ur===l&&(ur=null)},ur=l,window.addEventListener("afterprint",l)}const u=document.createElement("iframe");u.style.cssText="position:fixed;left:-10000px;top:0;width:1200px;height:900px;border:0;",document.body.appendChild(u);const c=u.contentDocument;if(!c){u.remove();return}ca={iframe:u,at:Date.now()},c.open(),c.write(Lo(e,t,a,!0,i,s)),c.close(),u.contentWindow?.addEventListener("afterprint",()=>{l?.(),setTimeout(()=>{u.remove(),ca?.iframe===u&&(ca=null)},0)})}function Lo(e,t,a,r=!1,s="",i=""){s=s?Mo(s):"";const l=Array.from(document.styleSheets).flatMap(m=>{try{return Array.from(m.cssRules).map(p=>p.cssText)}catch{return[]}}).join(`
|
|
859
|
+
`),C=y===-1?a:a.slice(0,y);i("comment",C),a=a.slice(C.length);continue}const u=a.match(/^\/\*[\s\S]*?\*\//);if(u){i("comment",u[0]),a=a.slice(u[0].length);continue}const c=a.match(/^(`(?:\\.|[^`])*`|"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*')/);if(c){i("string",c[0]),a=a.slice(c[0].length);continue}const d=a.match(/^\d+(?:\.\d+)?/);if(d){i("number",d[0]),a=a.slice(d[0].length);continue}const m=a.match(Y4);if(m){i("keyword",m[0]),a=a.slice(m[0].length);continue}const p=a.match(/^[A-Za-z_$][A-Za-z0-9_$-]*/);if(p){const y=p[0];i(s&&K4.has(y)?"command":"identifier",y),a=a.slice(y.length);continue}const f=a.match(/^[=+\-*/%<>!&|^~?:]+/);if(f){i("operator",f[0]),a=a.slice(f[0].length);continue}const b=a.match(/^[()[\]{};.,]/);if(b){i("punctuation",b[0]),a=a.slice(1);continue}i("other",a[0]),a=a.slice(1)}return r}function X4({children:e,language:t="bash",title:a="",showCopy:r=!0,size:s="default",className:i=""}){const{t:l}=ve.useTranslation(),[u,c]=o.useState(!1),d=G4(zl(e)),m=o.useRef(null);o.useEffect(()=>()=>{m.current&&clearTimeout(m.current)},[]);const p=async()=>{try{if(!await OC(d))return;c(!0),m.current&&clearTimeout(m.current),m.current=setTimeout(()=>c(!1),2e3)}catch{}},f=Z4(d,t),b=s==="small"?"caption-1":"body-3";return n.jsxs("div",{className:Ae("code-box",s==="small"?"code-box--small":"",i),children:[(a||r)&&n.jsxs("div",{className:"code-box__header",role:"toolbar","aria-label":l("common.codeBlock","\uCF54\uB4DC \uBE14\uB85D"),children:[n.jsx("div",{className:"code-box__title caption-1",children:a}),r&&n.jsx(pe,{htmlType:"button",className:"code-box__copy",size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:u?"check":"copy",onClick:p,ariaLabel:u?l("common.copied","\uBCF5\uC0AC\uB428"):l("common.copyCode","\uCF54\uB4DC \uBCF5\uC0AC")})]}),n.jsx("pre",{className:"code-box__inner","data-lang":t,children:n.jsx("code",{children:f.map((y,C)=>n.jsx("span",{className:`code-token ${y.type} ${b}`,children:y.content},C))})})]})}const J4={position:"absolute",width:1,height:1,margin:-1,padding:0,overflow:"hidden",clipPath:"inset(50%)",whiteSpace:"nowrap",border:0};function $a(e){const{t}=ve.useTranslation(),{variant:a="spinner",size:r=24,progress:s=null,label:i}=e||{},l=i||t("loader.loading","Loading");if(a==="bar"){const c=s==null||!Number.isFinite(Number(s)),d=c?0:Math.max(0,Math.min(100,Number(s)));return n.jsx("div",{className:`loader-bar${c?" loader-bar--indeterminate":""}`,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":c?void 0:d,"aria-label":l,children:n.jsx("div",{className:"loader-bar__inner",style:c?void 0:{width:`${d}%`}})})}const u=typeof r=="number"?`${r}px`:r;return n.jsxs("div",{className:"loader-spinner",style:{width:u,height:u},role:"status","aria-label":l,children:[n.jsx("span",{style:J4,children:l}),n.jsxs("svg",{className:"loader-spinner__svg",viewBox:"0 0 50 50",width:r,height:r,children:[n.jsx("circle",{className:"loader-spinner__bg",cx:"25",cy:"25",r:"20",fill:"none",strokeWidth:"4"}),n.jsx("circle",{className:"loader-spinner__fg",cx:"25",cy:"25",r:"20",fill:"none",strokeWidth:"4",strokeLinecap:"round"})]})]})}function Vl({checked:e,onChange:t,disabled:a=!1,label:r,ariaLabel:s,labelPosition:i="right",className:l="",id:u}){const c=r&&n.jsx("span",{className:"toggle__label body-3",children:r});return n.jsxs("label",{className:`toggle${a?" toggle--disabled":""} ${l}`.trim(),children:[i==="left"&&c,n.jsx("input",{id:u,type:"checkbox",role:"switch",checked:e,disabled:a,onChange:d=>t?.(d.target.checked),"aria-label":!r&&s?s:void 0}),n.jsx("span",{className:"toggle__slider"}),i==="right"&&c]})}function Wl({checked:e=!1,onChange:t,disabled:a,indeterminate:r,label:s,size:i="medium",className:l,title:u,ariaLabel:c}){const d=o.useRef(null),m=o.useId(),p=o.useRef(!!r);return p.current=!!r,o.useEffect(()=>{d.current&&(d.current.indeterminate=!!r)}),n.jsxs("label",{className:Ae("checkbox",i==="small"&&"checkbox--small",i==="large"&&"checkbox--large",a&&"checkbox--disabled",l),htmlFor:m,title:u,children:[n.jsx("input",{ref:d,id:m,type:"checkbox",className:"checkbox__input",checked:e,onChange:f=>{t?.(f.target.checked),d.current&&(d.current.indeterminate=p.current)},disabled:a,"aria-label":!s&&c?c:void 0}),n.jsx("span",{className:"checkbox__box"}),s&&n.jsx("span",{className:"checkbox__label body-3",children:s})]})}function Q4({count:e,actions:t,onClear:a,clearLabel:r,visible:s,content:i,max:l}){const{t:u}=ve.useTranslation(),c=s!==void 0?s:e>0,d=r??u("bulkBar.clearSelection","\uC120\uD0DD \uD574\uC81C"),m=o.useRef(null),p=o.useRef(null),f=o.useRef(null),b=o.useRef(c);o.useLayoutEffect(()=>{const h=p.current,w=b.current;if(b.current=c,c&&!w){const g=typeof document<"u"?document.activeElement:null;f.current=g&&g!==document.body&&!h?.contains(g)?g:null}else!c&&w&&h&&h.contains(document.activeElement)&&Ya(h,f.current)},[c]);const[y,C]=o.useState(!1),v=o.useRef(!1),_=o.useRef(null);return o.useEffect(()=>{const h=m.current;if(!h)return;const w=k=>{v.current=k,C(k)},g=()=>{const k=h.firstElementChild??h,S=Array.from(k.children);if(S.length<2){w(!1);return}const E=S[0].offsetTop,F=S.some(I=>I.offsetTop!==E);if(!v.current){_.current=h.clientWidth,F&&w(!0);return}if(F)return;const $=S[0],G=S[S.length-1],j=G.offsetLeft+G.offsetWidth-$.offsetLeft,L=_.current;(L==null||j<=L)&&w(!1)};if(g(),typeof ResizeObserver>"u")return;const B=new ResizeObserver(g);B.observe(h);const x=h.parentElement;let A=x?.clientWidth??0;const N=new ResizeObserver(()=>{const k=x?.clientWidth??0;k!==A&&(A=k,_.current=null,g())});return x&&N.observe(x),()=>{B.disconnect(),N.disconnect()}},[i,e]),n.jsxs("div",{ref:p,className:`bulk-bar ${c?"bulk-bar--visible":""}`,inert:!c||void 0,"aria-hidden":c?void 0:!0,children:[n.jsx("span",{ref:m,className:"bulk-bar__count body-2",role:"status",children:i??n.jsx("b",{children:u("common.selectedCount",{count:e})})}),l!==void 0&&n.jsx(kt,{size:"small",fill:"soft",variant:"main",label:`${e} / ${l}`,"aria-label":u("common.selectedOfMax",{count:e,max:l,defaultValue:`\uCD5C\uB300 ${l}\uAC1C \uC911 ${e}\uAC1C`})}),n.jsxs("div",{className:`bulk-bar__actions${y?" bulk-bar__actions--stacked":""}`,children:[n.jsx(pe,{htmlType:"button",size:40,label:d,onClick:a}),t.map((h,w)=>n.jsx(pe,{htmlType:"button",size:40,variant:h.variant??"default",icon:h.icon,label:h.label,onClick:h.onClick},w))]})]})}const ey=[{\uC5F4\uC1E0:"edit",icon:"edit-2",\uB2EB\uACE0\uD560\uAE4C:!0},{\uC5F4\uC1E0:"duplicate",icon:"copy",\uB2EB\uACE0\uD560\uAE4C:!1},{\uC5F4\uC1E0:"publish",icon:"book-marked",\uB2EB\uACE0\uD560\uAE4C:!1},{\uC5F4\uC1E0:"copyLink",icon:"link",\uB2EB\uACE0\uD560\uAE4C:!1},{\uC5F4\uC1E0:"remove",icon:"trash-2",\uB2EB\uACE0\uD560\uAE4C:!0}];function ty(e){const{onClose:t,className:a}=e;return n.jsx("div",{className:Ae("item-actions",a),children:ey.map(({\uC5F4\uC1E0:r,icon:s,\uB2EB\uACE0\uD560\uAE4C:i})=>{const l=e[r];if(!l)return null;const u=r==="publish"?l.published?l.unpublish:l.publish:l;return n.jsx(pe,{htmlType:"button",size:40,type:"dot",icon:s,ariaLabel:u.label,showTooltipInfo:u.label,onClick:()=>{i&&t(),u.onClick()}},r)})})}function ql(e,t){const a=()=>{if(e){const[C,v]=e.split("-");return{y:+C,m:+v-1}}const[b,y]=Wr(t).split("-");return{y:+b,m:+y-1}},[r,s]=o.useState(()=>a().y),[i,l]=o.useState(()=>a().m),u=o.useRef(e);o.useEffect(()=>{if(e===u.current)return;u.current=e;const b=a();s(b.y),l(b.m)},[e]);const c=o.useRef({y:r,m:i});o.useEffect(()=>{c.current={y:r,m:i}},[r,i]);const d=o.useCallback(b=>{const y=c.current.y*12+c.current.m+b,C=Math.floor(y/12),v=y-C*12;c.current={y:C,m:v},s(C),l(v)},[]),m=o.useCallback(()=>d(-1),[d]),p=o.useCallback(()=>d(1),[d]),f=o.useCallback((b,y)=>{c.current={y:b,m:y},s(b),l(y)},[]);return{viewY:r,viewM:i,prevMonth:m,nextMonth:p,setViewYM:f}}function ar(e,t){return new Date(e,t+1,0).getDate()}function ny(e,t){return new Date(e,t,1).getDay()}function rr(e,t,a){return`${e}-${String(t+1).padStart(2,"0")}-${String(a).padStart(2,"0")}`}function ay(e){if(!e)return"";const[t,a,r]=e.split("-");return`${t}. ${a}. ${r}.`}function ry(e,t,a,r){const s=a?+a.split("-")[0]:e-10,i=r?+r.split("-")[0]:e+10,l=[];for(let u=s;u<=i;u++)for(let c=0;c<12;c++){const d=`${u}-${String(c+1).padStart(2,"0")}`;a&&d<a.slice(0,7)||r&&d>r.slice(0,7)||l.push({value:d,label:t(u,c+1)})}return l}function oy({value:e,onChange:t,size:a=48,min:r,max:s,disabled:i,placeholder:l,className:u,today:c}){const{t:d}=ve.useTranslation(),m=l??d("datePicker.chooseDate","\uB0A0\uC9DC \uC120\uD0DD"),p=o.useMemo(()=>d("calendar.dow",{returnObjects:!0}),[d]),f=Wr(c),{viewY:b,viewM:y,prevMonth:C,nextMonth:v,setViewYM:_}=ql(e,c),h=o.useId(),w=o.useCallback((D,H)=>{const M=window.innerHeight,P=window.innerWidth,z=typeof document<"u"?document.getElementById(h):null,Y=Math.max(z?.offsetHeight||0,z?.scrollHeight||0)||300,X=Math.max(D.width,z?.offsetWidth||0,260),Z=M-D.bottom,ne=D.top,le=Z<Y&&ne>Z,ie=8,Ee=(W,ae)=>Math.min(Math.max(ie,W),Math.max(ie,ae));return{position:"fixed",left:Ee(D.left,P-X-ie),width:D.width,minWidth:260,...le?{top:"auto",bottom:Ee(M-D.top+6,M-Y-ie)}:{bottom:"auto",top:Ee(D.bottom+6,M-Y-ie)},zIndex:ka(H)}},[h]),{open:g,setOpen:B,toggle:x,style:A,triggerRef:N,menuRef:k}=Na({computeStyle:w,onScroll:"reposition",onResize:"reposition",ignoreOutsideClickSelector:".dropdown__menu"});o.useEffect(()=>{if(!g)return;const D=k.current;return(D?.querySelector(".date-picker__day--selected:not(:disabled)")??D?.querySelector(".date-picker__day--today:not(:disabled)")??D?.querySelector(".date-picker__day:not(:disabled)")??D?.querySelector(fn)??D)?.focus?.(),()=>{const H=document.activeElement;(!H||H===document.body)&&N.current?.focus?.()}},[g,k,N]);const[S,E]=o.useState(1),F=o.useRef(null),$=o.useRef(null);o.useEffect(()=>{if(!g)return;const D=e&&e.slice(0,7)===`${b}-${String(y+1).padStart(2,"0")}`?+e.slice(8):f.slice(0,7)===`${b}-${String(y+1).padStart(2,"0")}`?+f.slice(8):1;E(D)},[g]),o.useEffect(()=>{if($.current==null)return;const D=$.current;$.current=null,F.current?.querySelector(`[data-day="${D}"]`)?.focus()}),o.useEffect(()=>{E(D=>Math.min(D,ar(b,y)))},[b,y]);const G=o.useCallback(D=>{let H=rr(D.getFullYear(),D.getMonth(),D.getDate());r&&H<r&&(H=r),s&&H>s&&(H=s);const[M,P,z]=H.split("-").map(Number);(M!==b||P-1!==y)&&_(M,P-1),E(z),$.current=z},[r,s,b,y,_]),j=o.useCallback(D=>{const H=new Date(b,y,S),M=z=>{H.setDate(H.getDate()+z),G(H)},P=z=>{const Y=H.getFullYear()*12+H.getMonth()+z,X=Math.floor(Y/12),Z=Y-X*12;G(new Date(X,Z,Math.min(H.getDate(),ar(X,Z))))};switch(D.key){case"ArrowLeft":M(-1);break;case"ArrowRight":M(1);break;case"ArrowUp":M(-7);break;case"ArrowDown":M(7);break;case"Home":M(-H.getDay());break;case"End":M(6-H.getDay());break;case"PageUp":D.shiftKey?P(-12):P(-1);break;case"PageDown":D.shiftKey?P(12):P(1);break;default:return}D.preventDefault()},[b,y,S,G]),L=o.useCallback(D=>{i||(t(rr(b,y,D)),B(!1))},[b,y,t,B,i]);o.useEffect(()=>{i&&B(!1)},[i,B]);const I=D=>{const H=rr(b,y,D);return!!(r&&H<r||s&&H>s)},K=(()=>{const D=ar(b,y);if(S>=1&&S<=D&&!I(S))return S;for(let H=1;H<=D;H++)if(!I(H))return H;return-1})(),ee=[];for(let D=0;D<ny(b,y);D++)ee.push(null);for(let D=1;D<=ar(b,y);D++)ee.push(D);const V=a===64?20:a===40?16:18,q=ry(b,(D,H)=>d("calendar.yearMonth",{year:D,month:H,defaultValue:"{{year}}\uB144 {{month}}\uC6D4"}),r,s),R=`${b}-${String(y+1).padStart(2,"0")}`,O=g?Qt.createPortal(n.jsxs("div",{ref:k,id:h,className:"date-picker__dropdown",style:A,"data-tooltip-ignore":!0,role:"dialog","aria-label":d("datePicker.chooseDate","\uB0A0\uC9DC \uC120\uD0DD"),tabIndex:-1,children:[n.jsxs("div",{className:"date-picker__nav",children:[n.jsx("button",{type:"button",className:"date-picker__nav-btn",onClick:C,"aria-label":d("calendar.prevMonth","\uC774\uC804 \uB2EC"),children:n.jsx(cs,{size:16,strokeWidth:2})}),n.jsx(cn,{className:"date-picker__nav-dropdown",ariaLabel:d("datePicker.selectYearMonth","\uC5F0\uC6D4 \uC120\uD0DD"),options:q,value:R,onChange:D=>{const[H,M]=D.split("-");_(+H,+M-1)},block:!0,size:40}),n.jsx("button",{type:"button",className:"date-picker__nav-btn",onClick:v,"aria-label":d("calendar.nextMonth","\uB2E4\uC74C \uB2EC"),children:n.jsx(ds,{size:16,strokeWidth:2})})]}),n.jsxs("div",{className:"date-picker__grid",ref:F,onKeyDown:j,children:[p.map(D=>n.jsx("div",{className:"date-picker__dow caption-1",children:D},D)),ee.map((D,H)=>{if(D===null)return n.jsx("div",{},`e${H}`);const M=rr(b,y,D),P=M===e,z=M===f,Y=I(D),X=H%7;return n.jsx("button",{type:"button",disabled:Y,"data-day":D,tabIndex:D===K?0:-1,"aria-current":z?"date":void 0,onClick:()=>!Y&&L(D),className:Ae("date-picker__day caption-1",P&&"date-picker__day--selected",z&&!P&&"date-picker__day--today",Y&&"date-picker__day--disabled",X===0&&"date-picker__day--sun",X===6&&"date-picker__day--sat"),children:D},D)})]})]}),document.body):null;return n.jsxs("div",{className:Ae("date-picker",`date-picker--s${a}`,g&&"date-picker--open",u),children:[n.jsxs("button",{ref:N,type:"button",className:"date-picker__trigger body-2",onClick:()=>!i&&x(),disabled:i,"aria-haspopup":"true","aria-expanded":g,children:[n.jsx("span",{className:e?"date-picker__value":"date-picker__placeholder",children:e?ay(e):m}),n.jsx(vs,{size:V,className:"date-picker__icon",strokeWidth:1.5})]}),O]})}function Ul({children:e,className:t}){const a=o.useRef(null),[r,s]=o.useState(null);return o.useEffect(()=>{s(a.current?.parentElement??null)},[]),o.useEffect(()=>{const i=a.current;if(!i||!r)return;const l=()=>{const c=typeof window<"u"&&window.getComputedStyle(i).position==="absolute"?Math.ceil(i.getBoundingClientRect().width):0;c>0?r.style.setProperty("--section-head-float-w",`${c}px`):r.style.removeProperty("--section-head-float-w")};if(l(),typeof ResizeObserver>"u")return()=>{r.style.removeProperty("--section-head-float-w")};const u=new ResizeObserver(()=>l());return u.observe(i),u.observe(r),()=>{u.disconnect(),r.style.removeProperty("--section-head-float-w")}},[r,e]),n.jsx("div",{ref:a,className:Ae("section-head-float",t),children:e})}function go({items:e,className:t}){return n.jsx("div",{className:t?`manager-bar-chart-legend ${t}`:"manager-bar-chart-legend",children:e.map((a,r)=>n.jsxs("span",{className:"manager-bar-chart-legend-item",children:[n.jsx("span",{className:"manager-bar-chart-legend-dot",style:{background:a.color}}),a.label]},r))})}function Ra({label:e,children:t}){return e?n.jsxs("div",{className:"barchart-total barchart-total--stacked",children:[n.jsx("span",{className:"barchart-total__label body-3",children:e}),n.jsx("span",{className:"barchart-total__value",children:t})]}):n.jsx("div",{className:"barchart-total",children:t})}function bo({title:e,titleClassName:t="h3",titleLevel:a=3,icon:r,disc:s,headRight:i,headFloat:l,headSegment:u,headMenuItems:c,collapseBelow:d=420,onClick:m,ariaLabel:p,tooltip:f,totalNum:b,totalUnit:y,totalLabel:C,subRow:v,subRowAlign:_="start",className:h,inGrid:w=!1,children:g}){const{t:B}=ve.useTranslation(),x=o.useRef(null),{anchorRect:A,openAt:N,close:k}=Aa(),S=o.useCallback(()=>{f&&x.current&&N(x.current)},[f,N]),[E,F]=o.useState(!1);Co(()=>{const M=x.current;if(!M||!u)return;const P=Y=>F(Y>0&&Y<d);if(P(M.clientWidth),typeof ResizeObserver>"u")return;const z=new ResizeObserver(Y=>P(Y[0].contentRect.width));return z.observe(M),()=>z.disconnect()},[u,d]);const[$,G]=o.useState(null),j=o.useCallback(()=>G(null),[]),L=o.useCallback(M=>{const P=M.currentTarget.getBoundingClientRect();G(z=>z?null:{left:P.left,right:P.right,top:P.top,bottom:P.bottom,width:P.width,height:P.height,x:P.x,y:P.y})},[]),I=!!u&&E;o.useEffect(()=>{I||G(null)},[I]);const K=u?[...u.options.map(M=>({label:M.label,icon:M.icon,selected:M.key===u.value,disabled:M.disabled,onClick:()=>u.onChange(M.key),closeOnSelect:!0})),...(c??[]).map((M,P)=>P===0?{...M,separatorBefore:!0}:M)]:[],ee=o.useCallback(M=>{if(!m)return;const P=M.target;P&&typeof P.closest=="function"&&P.closest('button, a, input, select, textarea, [role="radiogroup"]')||m()},[m]),V=o.useCallback(M=>{m&&M.target===M.currentTarget&&(M.key==="Enter"||M.key===" ")&&(M.preventDefault(),m())},[m]),q=typeof i=="function"?i({collapsed:I}):i,R=b!=null||C?n.jsxs(Ra,{label:C,children:[b!=null&&n.jsx("span",{className:"barchart-total__num h0",children:b}),y&&n.jsx("span",{className:"barchart-total__unit h5",children:y})]}):null,O=q||u?n.jsxs("div",{className:"manager-section__head-right",children:[u&&(I?n.jsx(pe,{htmlType:"button",size:32,type:"dot",icon:"ellipsis",ariaLabel:u.ariaLabel??B("common.more","\uB354\uBCF4\uAE30"),showTooltipInfo:u.ariaLabel??B("common.more","\uB354\uBCF4\uAE30"),"aria-haspopup":"menu","aria-expanded":!!$,onClick:L}):n.jsx(An,{size:32,ariaLabel:u.ariaLabel,options:u.options.map(M=>({key:M.key,label:M.label,disabled:M.disabled})),value:u.value,onChange:u.onChange})),q]}):null,D=o.useId(),H=a?`h${a}`:"div";return n.jsxs("section",{ref:x,className:["manager-section",w&&"manager-section--grid",m&&"manager-section--clickable",h].filter(Boolean).join(" "),onClick:m?ee:void 0,onKeyDown:m?V:void 0,onPointerEnter:f?S:void 0,onPointerLeave:f?k:void 0,onFocus:f?S:void 0,onBlur:f?k:void 0,role:m?"button":void 0,tabIndex:m?0:void 0,"aria-label":m?p??(typeof e=="string"?e:void 0):void 0,"aria-labelledby":!m&&e!=null?D:void 0,children:[f&&A&&n.jsx(xn,{anchorRect:{left:A.left,top:A.top+21,right:A.right,bottom:A.bottom,width:A.width,height:A.height},text:f}),l&&n.jsx(Ul,{children:l}),n.jsxs("div",{className:"manager-section__head",children:[n.jsxs("div",{className:"manager-section__title-row",children:[r&&n.jsx(Qe,{icon:r,label:typeof e=="string"?e:void 0,className:"manager-section__icon"}),n.jsx(H,{id:D,className:["manager-section__title",t].filter(Boolean).join(" "),children:e})]}),O,s&&n.jsx("div",{className:"manager-section__disc body-3",children:s})]}),(R||v)&&n.jsxs("div",{className:["barchart-sub-row",_!=="start"&&`barchart-sub-row--${_}`].filter(Boolean).join(" "),children:[R,v]}),g,$&&n.jsx(ln,{anchorRect:$,onClose:j,ariaLabel:u?.ariaLabel??B("tooltip.menu","\uBA54\uB274"),children:n.jsx(Da,{columns:[{items:K}],onClose:j,size:"small"})})]})}function gn(e,t){const a=new Date(e,t,1).getDay();return 1+(8-(a===0?7:a))%7}function sy(){const e=ea();let t=e.getFullYear(),a=e.getMonth(),r=e.getDate();if(r<gn(t,a)){const l=new Date(t,a,0);t=l.getFullYear(),a=l.getMonth(),r=l.getDate()}const s=Math.floor((r-gn(t,a))/7),i=`${t}\uB144 ${a+1}\uC6D4`;return{monthKey:i,value:`${i}#${s}`}}function iy(e){const t=ea(),a=`${t.getFullYear()}\uB144 ${t.getMonth()+1}\uC6D4`,r=(c,d)=>`${c}\uB144 ${d+1}\uC6D4`,s=new Map;s.set(a,[]);for(const c of e){if(isNaN(c.date.getTime()))continue;const d=r(c.date.getFullYear(),c.date.getMonth());s.has(d)||s.set(d,[]),s.get(d).push(c)}for(const[c,d]of[...s.entries()]){const m=c.match(/^(\d+)년 (\d+)월$/);if(!m)continue;const p=Number(m[1]),f=Number(m[2])-1,b=gn(p,f);if(!(c===a&&t.getDate()<b)&&!d.some(v=>v.date.getDate()<b))continue;const y=new Date(p,f,0),C=r(y.getFullYear(),y.getMonth());s.has(C)||s.set(C,[])}const i=new Map;for(const[c,d]of s){const m=c.match(/^(\d+)년 (\d+)월$/);if(!m)continue;const p=Number(m[1]),f=Number(m[2])-1,b=new Date(p,f+1,0).getDate(),y=d.reduce((g,B)=>Math.max(g,B.parts?.length??0,B.partsB?.length??0),0),C=d.some(g=>g.partsB),v=new Array(b+1).fill(0),_=new Array(b+1).fill(0),h=Array.from({length:b+1},()=>new Array(y).fill(0)),w=Array.from({length:b+1},()=>new Array(y).fill(0));for(const g of d){const B=g.date.getDate();if(v[B]+=g.a,_[B]+=g.b,g.parts)for(let x=0;x<y;x++)h[B][x]+=g.parts[x]??0;if(g.partsB)for(let x=0;x<y;x++)w[B][x]+=g.partsB[x]??0}i.set(c,{year:p,month:f,daysInMonth:b,partsLen:y,hasPartsB:C,dayA:v,dayB:_,dayParts:h,dayPartsB:w})}const l=(c,d,m)=>new Date(c,d,m).getTime()>new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime(),u={};for(const[c,d]of i){const{year:m,month:p,daysInMonth:f,dayA:b,dayB:y,dayParts:C,dayPartsB:v}=d,_=m===t.getFullYear()&&p===t.getMonth(),h=t.getDate(),w=i.get(r(p===11?m+1:m,(p+1)%12)),g=d.partsLen,B=[];for(let A=1;A<=f;A++){const N=_&&A>h;B.push({label:String(A),...N&&b[A]===0&&y[A]===0?{future:!0}:{},a:N&&b[A]===0&&y[A]===0?-1:b[A],b:y[A],...g?{parts:C[A]}:{},...g&&d.hasPartsB?{partsB:v[A]}:{}})}const x=[];for(let A=gn(m,p);A<=f;A+=7){const N=Math.max(0,A+6-f),k=N&&w?Math.max(g,w.partsLen):g,S=d.hasPartsB||!!(N&&w?.hasPartsB);let E=0,F=0;const $=new Array(k).fill(0),G=new Array(k).fill(0);for(let L=A;L<=Math.min(A+6,f);L++){E+=b[L],F+=y[L];for(let I=0;I<g;I++)$[I]+=C[L][I],G[I]+=v[L][I]}if(N&&w)for(let L=1;L<=N&&!l(w.year,w.month,L);L++){E+=w.dayA[L],F+=w.dayB[L];for(let I=0;I<w.partsLen;I++)$[I]+=w.dayParts[L][I],G[I]+=w.dayPartsB[L][I]}const j=N?`${(p+1)%12+1}/${N}`:`${A+6}`;x.push({label:`${x.length+1}\uC8FC`,sublabel:`[${A}\uC77C~${j}\uC77C]`,a:E,b:F,...k?{parts:$}:{},...k&&S?{partsB:G}:{}})}u[c]={weekly:x,daily:B}}return u}function Gl(){const e=ea(),t=e.getFullYear(),a=e.getMonth()+1,r=[];for(let s=2024;s<=t;s++){const i=s===t?a:12;for(let l=1;l<=i;l++){const u=`${s}\uB144 ${l}\uC6D4`;r.push({value:u,label:u,year:s,month:l})}}return r.reverse()}Gl();function ly(){return Gl()}const Kl=["\uCCAB\uC9F8","\uB458\uC9F8","\uC14B\uC9F8","\uB137\uC9F8","\uB2E4\uC12F\uC9F8","\uC5EC\uC12F\uC9F8","\uC77C\uACF1\uC9F8"];function Yl(e){const{t,i18n:a}=ve.useTranslation(),[r,s]=o.useState("week"),i=o.useMemo(()=>ly().filter(k=>k.value in e),[e]),l=o.useMemo(()=>{const k=[];for(const S of i){const E=new Date(S.year,S.month,0).getDate(),F=gn(S.year,S.month-1),$=Math.ceil((E-F+1)/7);for(let G=$-1;G>=0;G--)k.push({value:`${S.value}#${G}`,monthKey:S.value,year:S.year,month:S.month,week:G})}return k},[i]),u=o.useCallback(k=>{const S=t("calendar.yearMonth",{year:k.year,month:k.month});return a.language?.startsWith("ko")?`${S} ${Kl[k.week]??`${k.week+1}`}\uC8FC`:`${S} Week ${k.week+1}`},[t,a.language]),c=o.useMemo(()=>i.map(k=>({value:k.value,label:t("calendar.yearMonth",{year:k.year,month:k.month})})),[t,i]),d=o.useMemo(()=>l.map(k=>({value:k.value,label:u(k)})),[l,u]),m=o.useMemo(()=>sy(),[e]),p=o.useMemo(()=>i.find(k=>k.value===m.monthKey)?.value??i[0]?.value??"",[i,m]),f=o.useMemo(()=>l.find(k=>k.value===m.value)?.value??l[0]?.value??"",[l,m]),[b,y]=o.useState(""),[C,v]=o.useState("");o.useEffect(()=>{i.find(k=>k.value===b)||y(p)},[i,b,p]),o.useEffect(()=>{l.find(k=>k.value===C)||v(f)},[l,C,f]);const _=r==="month"?c:d,h=r==="month"?b:C,w=r==="month"?y:v,g=o.useMemo(()=>{const k=t("calendar.dow",{returnObjects:!0});return Array.isArray(k)?k:["\uC77C","\uC6D4","\uD654","\uC218","\uBAA9","\uAE08","\uD1A0"]},[t]),B=_.findIndex(k=>k.value===h),x=o.useCallback(()=>{const k=_.findIndex(S=>S.value===h);k<_.length-1&&w(_[k+1].value)},[_,h,w]),A=o.useCallback(()=>{const k=_.findIndex(S=>S.value===h);k>0&&w(_[k-1].value)},[_,h,w]),N=o.useMemo(()=>[{key:"week",label:t("manager.chart.periodWeek","\uC8FC")},{key:"month",label:t("manager.chart.periodMonth","\uC6D4")}],[t]);return{period:r,setPeriod:s,range:h,setRange:w,activeOptions:_,activeIdx:B,handlePrev:x,handleNext:A,periodOptions:N,monthRange:b,weekRange:C,weekRanges:l,DOW:g}}const vt=e=>typeof e=="number"&&Number.isFinite(e)?e:0;function kn(e,t=!0){return e.future===!0||t&&e.a===-1}function uy({data:e,colorA:t,colorB:a,labelA:r,labelB:s,barWidth:i=10,barGap:l=1,height:u=140,maxOverride:c,tightMax:d,seriesColors:m,seriesLabels:p,rateLabels:f,grouped:b=!1,baseline:y,focusableBars:C=!1}){const v=!a,_=!!(m&&m.length>0),h=y,w=o.useMemo(()=>_?Math.max(0,...e.filter(V=>!kn(V,h==null)).map(V=>b?Math.max(0,...(V.parts??[]).map(vt)):(V.parts??[]).reduce((q,R)=>q+Math.max(0,vt(R)),0))):Math.max(0,...e.filter(V=>!kn(V,h==null)).flatMap(V=>v?[vt(V.a)]:[vt(V.a),vt(V.b)])),[e,v,_,b]),g=o.useMemo(()=>{if(h==null)return 0;const V=e.filter(q=>!kn(q,h==null)).flatMap(q=>_?(q.parts??[]).map(vt):v?[vt(q.a)]:[vt(q.a),vt(q.b)]);return Math.max(0,...V.map(q=>Math.abs(q-h)))},[e,h,_,v]),B=o.useMemo(()=>{const V=h!=null?g:w;return c??(d?V>0?V:10:Math.ceil(V/10)*10||10)},[w,g,h,c,d]),x=u,A=_?b?Math.max(1,m.length):1:v?1:2,N={"--bar-width":`${o.useMemo(()=>{const V=Math.max(1,e.length);return Math.max(2,Math.min(i,Math.round(120/(V*A)+6)))},[e.length,A,i])}px`},k={"--bar-group-gap":`${Math.max(0,l)}px`},S=o.useMemo(()=>{const V=Math.round(B/2);return h!=null?[h+B,...V!==B?[h+V]:[],h,...V!==B?[h-V]:[],h-B]:V!==B?[B,V,0]:[B,0]},[B,h]),E=V=>h!=null?1-(V-(h-B))/(2*B):1-V/B,[F,$]=o.useState(null),G=o.useCallback(()=>$(null),[]),j=o.useCallback((V,q)=>{const R=[V.label,V.sublabel].filter(Boolean).join(" ");let O;if(_&&b&&V.rawPartsB)O=(p??[]).map((D,H)=>{const M=V.rawPartsB[H]??0;return{text:M>0?`${D}: ${q[H]??0}% (${V.rawParts?.[H]??0}/${M})`:`${D}: -`,color:(m??[])[H]}});else if(_&&b)O=(p??[]).map((D,H)=>({text:`${D}: ${K(q[H]??0)}`,color:(m??[])[H]}));else if(_){const D=(p??[]).map((M,P)=>({text:`${M}: ${q[P]??0}`,color:(m??[])[P]})),H=D.filter((M,P)=>(q[P]??0)>0);O=H.length?H:D}else f&&!v?O=[{text:`${r} ${vt(V.a)}%`,color:t},{text:`${s} ${vt(V.b)}%`,color:a}]:f&&V.rawB!==void 0?O=[{text:`${f.total} ${V.rawB}`},{text:`${f.done} ${V.rawA??0}`,color:t}]:v?O=[{text:`${r}: ${vt(V.a)}`,color:t}]:O=[{text:`${r}: ${vt(V.a)}`,color:t},{text:`${s}: ${vt(V.b)}`,color:a}];return{title:R,items:O}},[_,b,p,m,f,v,r,s,t,a,h]),L=o.useCallback((V,q,R)=>{const O=V.getBoundingClientRect(),{title:D,items:H}=j(q,R);$({rect:{left:O.left,top:O.top,right:O.right,bottom:O.bottom,width:O.width,height:O.height},title:D,items:H})},[j]),I=o.useCallback((V,q)=>{const{title:R,items:O}=j(V,q);return[R,...O.map(D=>D.text)].filter(Boolean).join(", ")},[j]),K=V=>h!=null&&V>h?`+${V}`:`${V}`,ee=F!=null;return o.useEffect(()=>{if(!ee)return;const V=()=>$(null),q=R=>{const O=R.target;O&&typeof O.closest=="function"&&O.closest(".manager-bar-chart-col")||$(null)};return window.addEventListener("scroll",V,!0),document.addEventListener("pointerdown",q,!0),()=>{window.removeEventListener("scroll",V,!0),document.removeEventListener("pointerdown",q,!0)}},[ee]),n.jsxs("div",{className:"manager-bar-chart-wrap",style:k,children:[n.jsx("div",{className:"manager-bar-chart-inner",children:n.jsx("div",{className:"manager-bar-chart-scroll",children:n.jsxs("div",{className:"manager-bar-chart-area",children:[n.jsxs("div",{className:"manager-bar-chart-plot",style:{height:x},children:[S.slice(0,-1).map((V,q)=>n.jsx("div",{className:`manager-bar-chart-gridline${h!=null&&V===h?" manager-bar-chart-gridline--baseline":""}`,style:{top:E(V)*x},children:n.jsx("span",{className:"manager-bar-chart-gridline__label caption-1",children:V})},q)),e.map((V,q)=>{const R=kn(V,h==null),O=x/2,D=z=>h!=null?Math.min(O,Math.abs(vt(z)-h)/B*O):Math.min(x,Math.max(0,vt(z)/B*x)),H=R?0:D(V.a),M=R?0:D(V.b),P=(V.parts??[]).map(vt);return n.jsx("div",{className:`manager-bar-chart-col${b&&_?" manager-bar-chart-col--group":""}`,style:{cursor:R?"default":"pointer"},tabIndex:C&&!R?0:void 0,role:C&&!R?"img":void 0,"aria-label":C&&!R?I(V,P):void 0,onMouseEnter:R?void 0:z=>L(z.currentTarget,V,P),onFocus:R||!C?void 0:z=>L(z.currentTarget,V,P),onBlur:C?G:void 0,onMouseLeave:G,children:!R&&(_&&b?(m??[]).map((z,Y)=>{const X=P[Y]??0;if(h==null)return n.jsx("div",{className:"manager-bar-chart-bar",style:{...N,height:D(X),background:z}},Y);const Z=vt(X)<h;return n.jsxs("div",{className:"manager-bar-chart-slot",style:N,children:[n.jsx("div",{className:"manager-bar-chart-slot__half manager-bar-chart-slot__half--up",children:!Z&&n.jsx("div",{className:"manager-bar-chart-bar manager-bar-chart-bar--full",style:{height:D(X),background:z}})}),n.jsx("div",{className:"manager-bar-chart-slot__half manager-bar-chart-slot__half--down",children:Z&&n.jsx("div",{className:"manager-bar-chart-bar manager-bar-chart-bar--full manager-bar-chart-bar--down",style:{height:D(X),background:z}})})]},Y)}):_?n.jsx("div",{className:"manager-bar-chart-stack",style:N,children:(()=>{const z=P.reduce((X,Z,ne)=>Z>0?ne:X,-1);let Y=x;return P.map((X,Z)=>{if(X<=0)return null;const ne=Math.min(Y,X/B*x);return Y-=ne,n.jsx("div",{className:"manager-bar-chart-stack-segment",style:{height:ne,background:(m??[])[Z],borderRadius:Z===z?"6px 6px 0 0":void 0}},Z)})})()}):h!=null?n.jsx(n.Fragment,{children:[{v:vt(V.a),c:t},...v?[]:[{v:vt(V.b),c:a}]].map(({v:z,c:Y},X)=>n.jsxs("div",{className:"manager-bar-chart-slot",style:N,children:[n.jsx("div",{className:"manager-bar-chart-slot__half manager-bar-chart-slot__half--up",children:z>=h&&n.jsx("div",{className:"manager-bar-chart-bar manager-bar-chart-bar--full",style:{height:D(z),background:Y}})}),n.jsx("div",{className:"manager-bar-chart-slot__half manager-bar-chart-slot__half--down",children:z<h&&n.jsx("div",{className:"manager-bar-chart-bar manager-bar-chart-bar--full manager-bar-chart-bar--down",style:{height:D(z),background:Y}})})]},X))}):n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"manager-bar-chart-bar",style:{...N,height:H,background:t}}),!v&&n.jsx("div",{className:"manager-bar-chart-bar",style:{...N,height:M,background:a}})]}))},q)})]}),n.jsx("div",{className:"manager-bar-chart-x-axis",children:e.map((V,q)=>{const R=kn(V,h==null);return n.jsxs("span",{className:`manager-bar-chart-x-axis__label${R?" manager-bar-chart-x-axis__label--future":""}`,children:[n.jsxs("span",{className:"caption-1 manager-bar-chart-x-axis__main",children:[V.isToday&&n.jsx("span",{className:"manager-bar-chart-x-axis__today-dot",style:{background:t}}),V.label]}),V.sublabel&&n.jsx("span",{className:"caption-1",children:V.sublabel})]},q)})})]})})}),F&&n.jsx(Wn,{anchorRect:F.rect,title:F.title,items:F.items,showIndex:!1,closeOnOutsideClick:!1})]})}function Zl({control:e}){const{t}=ve.useTranslation(),{activeOptions:a,activeIdx:r,range:s,setRange:i,handlePrev:l,handleNext:u,periodOptions:c,period:d,setPeriod:m}=e,p=d==="week"?t("calendar.prevWeek","\uC774\uC804 \uC8FC"):t("calendar.prevMonth","\uC774\uC804 \uB2EC"),f=d==="week"?t("calendar.nextWeek","\uB2E4\uC74C \uC8FC"):t("calendar.nextMonth","\uB2E4\uC74C \uB2EC");return n.jsxs("div",{className:"manager-section-controls",children:[n.jsx(pe,{htmlType:"button",size:32,type:"dot",icon:"chevron-left",ariaLabel:p,showTooltipInfo:p,disabled:r===a.length-1,onClick:l}),n.jsx(cn,{value:s,onChange:i,options:a,size:40,className:"month-dropdown",ariaLabel:t("calendar.rangeSelect","\uAE30\uAC04 \uC120\uD0DD")}),n.jsx(pe,{htmlType:"button",size:32,type:"dot",icon:"chevron-right",ariaLabel:f,showTooltipInfo:f,disabled:r<=0,onClick:u}),n.jsx(An,{ariaLabel:t("calendar.periodSelect","\uAE30\uAC04 \uB2E8\uC704"),options:c,value:d,onChange:b=>m(b),size:40})]})}function yo(e,t,a,r=!0){const s=new Date(a.getFullYear(),a.getMonth(),a.getDate());return Array.from({length:7},(i,l)=>{const u=new Date(t);u.setDate(t.getDate()+l);const c=(e[`${u.getFullYear()}\uB144 ${u.getMonth()+1}\uC6D4`]?.daily??[])[u.getDate()-1],d=c!=null&&kn(c,r)||u>s;return{dt:u,entry:c,isFuture:d}})}function cy(e,t,a,r,s=!0){const{period:i,monthRange:l,weekRange:u,weekRanges:c,DOW:d}=t,m=r?.startsWith("ko"),p=ea(),f=p.getFullYear(),b=p.getMonth()+1,y=p.getDate();if(i==="month"){const _=e[l]??{weekly:[],daily:[]},h=l.match(/^(\d+)년 (\d+)월$/),w=h?Number(h[1]):null,g=h?Number(h[2]):null,B=w&&g?gn(w,g-1):1;return _.weekly.map((x,A)=>{const N=A+1;let k=x.label,S=!1,E=!1;if(w&&g){const F=B+A*7,$=new Date(w,g-1,F+6),G=$.getMonth()+1,j=$.getDate(),L=G===g?`${j}`:`${G}/${j}`;k=a("manager.chart.weekRange",{start:F,end:L});const I=new Date(f,b-1,y).getTime();S=I>=new Date(w,g-1,F).getTime()&&I<=$.getTime(),E=w>f||w===f&&(g>b||g===b&&F>y)}return{...x,label:k,sublabel:m?`${Kl[N-1]??N}\uC8FC`:`Week ${N}`,isToday:S,future:x.future===!0||E||void 0,a:E?-1:x.a,b:E?0:x.b}})}const C=c.find(_=>_.value===u);if(!C)return[];const v=new Date(C.year,C.month-1,gn(C.year,C.month-1)+C.week*7);return yo(e,v,p,s).map(({dt:_,entry:h,isFuture:w})=>{const g=_.getMonth()+1,B=_.getDate(),x=_.getFullYear();return{label:g===C.month&&x===C.year?`${B}`:`${g}/${B}`,sublabel:d[_.getDay()]??"",future:w||void 0,a:w?-1:h&&h.a>0?h.a:0,b:w?0:h&&h.b>0?h.b:0,isToday:x===f&&g===b&&B===y,...h?.parts?{parts:w?h.parts.map(()=>0):h.parts}:{},...h?.partsB?{partsB:w?h.partsB.map(()=>0):h.partsB}:{}}})}const dy={small:{height:100,barWidth:16},medium:{height:140,barWidth:20},large:{height:180,barWidth:24}};function py({focusableBars:e,size:t="medium",barWidth:a,titleKey:r,titleLevel:s,data:i,colorA:l,colorB:u,labelAKey:c,labelBKey:d,showTotal:m=!1,totalUnitKey:p,totalLabelKey:f,control:b,hideControls:y=!1,rate:C=!1,rateAgg:v="dayMean",tightMax:_=!1,avgMode:h=!1,totalFormat:w,series:g,seriesMode:B="stack",loading:x=!1,onDetail:A,headExtra:N,headSegment:k,icon:S,disc:E,onClick:F,cardAriaLabel:$,cardTooltip:G,detailSize:j=32,barGap:L,baseline:I,className:K,inGrid:ee=!1}){const{t:V,i18n:q}=ve.useTranslation(),R=dy[t],O=Yl(i),D=b??O,H=o.useMemo(()=>cy(i,D,V,q.language,I==null),[i,D,V,q.language,I]),M=B==="group"&&!!g&&g.length>0;L!=null&&!M&&Yt("bar-chart-bargap-without-group","[BarChart] barGap \uC740 seriesMode='group' + series \uC5D0\uC11C\uB9CC \uC4F0\uC778\uB2E4 \u2014 \uADF8 \uBC16\uC5D0\uC11C\uB294 \uC544\uBB34 \uC77C\uB3C4 \uD558\uC9C0 \uC54A\uB294\uB2E4.");const P=o.useMemo(()=>{if(!C)return H;const ne=D.period==="month"?D.monthRange.match(/^(\d+)년 (\d+)월$/):null,le=ea(),ie=g?.length??0,Ee=W=>{const ae=[],fe=[],Ne=[];for(let ge=0;ge<ie;ge++){let te=0,ce=0,de=0;for(const he of W){const ye=vt(he.a[ge]),Se=vt(he.b[ge]);Se<=0||(te+=ye,ce+=Se,de+=ye/Se*100)}ae.push(v==="weighted"?ce>0?Math.round(te/ce*100):0:W.length?Math.round(de/W.length):0),fe.push(te),Ne.push(ce)}return{pct:ae,ra:fe,rb:Ne}};return H.map((W,ae)=>{let fe=W.a===-1?-1:W.b>0?Math.round(W.a/W.b*100):0;if(ne&&!kn(W)){const ge=Number(ne[1]),te=Number(ne[2])-1,ce=yo(i,new Date(ge,te,gn(ge,te)+ae*7),le).filter(de=>!de.isFuture);if(v==="weighted"){let de=0,he=0;for(const{entry:ye}of ce)ye&&ye.b>0&&(de+=ye.a,he+=ye.b);fe=he>0?Math.round(de/he*100):0}else fe=ce.length?Math.round(ce.reduce((de,{entry:he})=>de+(he&&he.b>0?he.a/he.b*100:0),0)/ce.length):0}let Ne=null;if(M&&!kn(W)){let ge;if(ne){const ce=Number(ne[1]),de=Number(ne[2])-1;ge=yo(i,new Date(ce,de,gn(ce,de)+ae*7),le).filter(he=>!he.isFuture).map(({entry:he})=>({a:he?.parts??[],b:he?.partsB??[]}))}else ge=[{a:W.parts??[],b:W.partsB??[]}];const te=Ee(ge);Ne={parts:te.pct,rawParts:te.ra,rawPartsB:te.rb}}return{...W,a:fe,b:W.a===-1?0:d&&W.parts&&W.parts[1]>0?Math.round(W.parts[0]/W.parts[1]*100):0,rawA:W.a===-1?-1:W.a,rawB:W.b,...Ne??{}}})},[H,C,v,d,D.period,D.monthRange,i,M,g?.length]),z=o.useMemo(()=>{if(C||h){const le=(D.period==="week"?H:i[D.monthRange]?.daily??[]).filter(Ee=>Ee.a!==-1);if(le.length===0)return 0;if(C&&v==="weighted"){let Ee=0,W=0;for(const ae of le)ae.b>0&&(Ee+=ae.a,W+=ae.b);return W>0?Math.round(Ee/W*100):0}const ie=C?le.reduce((Ee,W)=>Ee+(W.b>0?W.a/W.b*100:0),0):le.reduce((Ee,W)=>Ee+(W.a>0?W.a:0),0);return Math.round(ie/le.length)}const ne=D.period==="month"?i[D.monthRange]?.daily??[]:P;return I!=null?ne.reduce((le,ie)=>le+(kn(ie,!1)?0:vt(ie.a)+(d?vt(ie.b):0)),0):ne.reduce((le,ie)=>le+(ie.a>0?ie.a:0)+(d&&ie.b>0?ie.b:0),0)},[P,H,C,v,h,I,d,D.period,D.monthRange,i]),Y=g&&g.length>0?g.map(ne=>({color:ne.color,label:ne.label})):[{color:l,label:V(c)},...d?[{color:u,label:V(d)}]:[]],X=t==="small",Z=[X?"manager-section--compact":t==="large"?"manager-section--full":void 0,K].filter(Boolean).join(" ")||void 0;return n.jsx(bo,{className:Z,inGrid:ee,icon:S,disc:E,onClick:F,ariaLabel:$,tooltip:G,headSegment:k,headMenuItems:A?[{label:V("trainingStatus.detail","\uC0C1\uC138\uBCF4\uAE30"),icon:"list",onClick:A,closeOnSelect:!0}]:void 0,title:V(r),titleLevel:s,titleClassName:X?"h5 chart-section-title--small":void 0,headRight:X?N??void 0:({collapsed:ne})=>n.jsxs(n.Fragment,{children:[!y&&n.jsx(Zl,{control:D}),N,A&&!ne&&n.jsx("span",{className:"manager-bar-chart-detail-btn",children:n.jsx(pe,{htmlType:"button",size:j,type:"dot",icon:"list",ariaLabel:V("trainingStatus.detail","\uC0C1\uC138\uBCF4\uAE30"),showTooltipInfo:V("trainingStatus.detail","\uC0C1\uC138\uBCF4\uAE30"),onClick:A})})]}),subRow:n.jsxs(n.Fragment,{children:[m?C||h||f&&w?n.jsx(Ra,{label:X?void 0:`${V(D.period==="week"?"manager.chart.weeklyPrefix":"manager.chart.monthlyPrefix")} ${V(f??c)}`,children:w?(w(z).match(/([+-]?\d[\d.,]*|[^\d]+)/g)??[]).map((ne,le)=>/\d/.test(ne)?n.jsx("span",{className:"barchart-total__num h0",children:ne},le):n.jsx("span",{className:"barchart-total__unit h5",children:ne},le)):n.jsxs(n.Fragment,{children:[n.jsx("span",{className:"barchart-total__num h0",children:z}),p&&n.jsx("span",{className:"barchart-total__unit h5",children:V(p)})]})}):n.jsxs(Ra,{children:[n.jsx("span",{className:"barchart-total__num h0",children:z}),n.jsx("span",{className:"barchart-total__unit h5",children:V(c)}),p&&n.jsx("span",{className:"barchart-total__unit h5",children:V(p)})]}):n.jsx("span",{}),n.jsx(go,{items:Y,className:"caption-1"})]}),children:x?n.jsx("div",{className:"manager-bar-chart-wrap manager-bar-chart-loading","aria-busy":"true",children:n.jsx("div",{className:"manager-bar-chart-inner",children:n.jsxs("div",{className:"manager-bar-chart-area manager-bar-chart-area--loading",children:[n.jsx("div",{className:"manager-bar-chart-plot manager-bar-chart-plot--loading",style:{height:R.height},children:n.jsx($a,{size:32})}),n.jsx("div",{className:"manager-bar-chart-x-axis","aria-hidden":"true",children:n.jsxs("span",{className:"manager-bar-chart-x-axis__label",children:[n.jsx("span",{className:"caption-1 manager-bar-chart-x-axis__main",children:"\xA0"}),P.some(ne=>!!ne.sublabel)&&n.jsx("span",{className:"caption-1",children:"\xA0"})]})})]})})}):n.jsx(uy,{focusableBars:e,data:P,colorA:l,colorB:d?u:void 0,labelA:V(c),labelB:d?V(d):void 0,barWidth:a??R.barWidth,barGap:L,baseline:I,height:R.height,maxOverride:C?100:void 0,tightMax:_,seriesColors:g?.map(ne=>ne.color),seriesLabels:g?.map(ne=>ne.label),rateLabels:C?{total:V("trainingStatus.today.tooltipTotal","\uC804\uCCB4"),done:V("trainingStatus.today.tooltipDone","\uC644\uB8CC")}:void 0,grouped:M})})}const Xl=120,my={left:38,right:16,top:26,bottom:24};function hy({points:e=[],range:t,ticks:a=[],axisTitle:r,color:s,height:i=156,fallbackWidth:l=320,insets:u,overlay:c,ariaLabel:d,className:m}){const[p,f]=o.useState(null),[b,y]=o.useState(null);o.useEffect(()=>{if(!b)return;const I=ee=>f(Math.round(ee)||null);if(I(b.getBoundingClientRect().width),typeof ResizeObserver>"u")return;const K=new ResizeObserver(([ee])=>I(ee.contentRect.width));return K.observe(b),()=>{K.disconnect()}},[b]);const{payload:C,anchorRect:v,openAfterDelay:_,close:h}=bb(Xl),w=o.useCallback((I,K)=>{I&&_(I,K.getBoundingClientRect())},[_]),g=p??l,B=i,{left:x,right:A,top:N,bottom:k}={...my,...u},[S,E]=t,F=I=>E===S?x:x+(g-x-A)*(I-S)/(E-S),$=I=>N+(B-N-k)*(100-I)/100,G={x:F,y:$,plot:{left:x,right:g-A,top:N,bottom:B-k,width:Math.max(0,g-x-A),height:Math.max(0,B-N-k)}},j=e.filter(I=>!I.hollow),L=s??"var(--color-main)";return n.jsxs(n.Fragment,{children:[n.jsxs("svg",{ref:y,className:Ae("line-chart",m),viewBox:`0 0 ${g} ${B}`,role:"img","aria-label":d??e.map(I=>I.description).filter(Boolean).join(", "),children:[r&&n.jsx("text",{className:"line-chart__axis-title",x:0,y:12,children:r}),[0,100].map(I=>n.jsxs("g",{children:[n.jsx("line",{className:"line-chart__grid",x1:x,x2:g-A,y1:$(I),y2:$(I)}),n.jsxs("text",{className:"line-chart__tick",x:x-6,y:$(I)+4,textAnchor:"end",children:[I,"%"]})]},I)),c?.(G),a.map(I=>n.jsx("text",{className:"line-chart__tick",x:F(I.x),y:B-5,textAnchor:"middle",children:I.label},I.x)),j.length>1&&n.jsx("polyline",{className:"line-chart__line",fill:"none",stroke:L,points:j.map(I=>`${F(I.x)},${$(I.pct)}`).join(" ")}),e.map(I=>n.jsxs("g",{className:"line-chart__dot",onPointerEnter:K=>w(I.description,K.currentTarget),onPointerLeave:h,children:[n.jsx("circle",{className:"line-chart__dot-hit",cx:F(I.x),cy:$(I.pct),r:12}),n.jsx("circle",{className:Ae("line-chart__dot-main",I.hollow&&"is-hollow"),cx:F(I.x),cy:$(I.pct),r:4,stroke:L,fill:I.hollow?void 0:L})]},I.x))]}),C!=null&&n.jsx(ln,{anchorRect:v,offset:10,closeOnOutsideClick:!1,className:"line-chart__tip",role:"tooltip",ariaLabel:C,children:C})]})}function Cy({icon:e,iconSize:t=56,title:a,titleClass:r="h2",description:s,tipGroups:i,start:l,className:u}){return n.jsxs("div",{className:Ae("game-intro",u),children:[e!=null&&n.jsx("span",{className:"game-intro__icon","aria-hidden":"true",style:{"--game-intro-icon":`${t}px`},children:e}),n.jsx("h2",{className:Ae("game-intro__title",r),children:a}),s!=null&&n.jsx("p",{className:"game-intro__description body-3",children:s}),i?.map((c,d)=>n.jsxs("div",{className:"game-intro__tips",children:[c.title!=null&&n.jsx("span",{className:"game-intro__tips-title body-3",children:c.title}),c.tips.map((m,p)=>n.jsxs("span",{className:"game-intro__tip body-3",children:[m.icon!=null&&n.jsx("span",{"aria-hidden":"true",children:m.icon}),n.jsx("span",{children:m.text})]},p))]},d)),l&&n.jsx(pe,{htmlType:"button",className:l.className,variant:"main",color:l.color,size:48,width:"100%",disabled:l.disabled,onClick:l.onClick,children:l.label})]})}const Jl=(e,t,a)=>{const r=new Date(Date.UTC(e,t,a));return`${r.getUTCFullYear()}-${String(r.getUTCMonth()+1).padStart(2,"0")}-${String(r.getUTCDate()).padStart(2,"0")}`},Ql=(e,t,a,r)=>({from:ci(e,t,a),to:new Date(ci(e,t,a+r).getTime()-1),fromYmd:Jl(e,t,a),toYmd:Jl(e,t,a+r-1)});function fy(e,t=0){if(e.period==="month"){const s=e.monthRange.match(/^(\d+)년 (\d+)월$/),i=ea(),l=s?Number(s[1]):i.getFullYear(),u=(s?Number(s[2]):i.getMonth()+1)-1+t,c=new Date(Date.UTC(l,u+1,0)).getUTCDate();return Ql(l,u,1,c)}const a=e.weekRanges.find(s=>s.value===e.weekRange);if(!a){const s=new Date,i=_a();return{from:s,to:s,fromYmd:i,toYmd:i}}const r=gn(a.year,a.month-1);return Ql(a.year,a.month-1,r+(a.week+t)*7,7)}const vo={small:{diameter:96,strokeWidth:16},medium:{diameter:120,strokeWidth:18},large:{diameter:160,strokeWidth:22}};function eu(e){return!Number.isFinite(e)||e<=0?0:e>=1?100:Math.min(99,Math.max(1,Math.round(e*100)))}function tu({done:e,total:t,segments:a,color:r="var(--color-main)",size:s="medium",strokeWidth:i,label:l="%",hideCenter:u=!1,hideLabel:c=!1}){const d=typeof s=="number"?s:vo[s].diameter,m=i??(typeof s=="number"?12:vo[s].strokeWidth),p=d/2,f=(d-m)/2,b=2*Math.PI*f;if(a&&a.length>0){const _=a.reduce((h,w)=>{const g=h.length>0?h[h.length-1].acc:0,B=Number.isFinite(w.ratio)?w.ratio:0,x=Math.max(0,Math.min(B,1-g));return h.push({color:w.color,rotate:-90+g*360,dash:b*x,acc:g+x}),h},[]);return n.jsx("div",{className:"ring-chart",style:{width:d,height:d},children:n.jsxs("svg",{width:d,height:d,viewBox:`0 0 ${d} ${d}`,"aria-hidden":"true",children:[n.jsx("circle",{cx:p,cy:p,r:f,fill:"none",stroke:"var(--color-whiteLine)",strokeWidth:m}),_.map((h,w)=>h.dash>0&&n.jsx("circle",{cx:p,cy:p,r:f,fill:"none",stroke:h.color,strokeWidth:m,strokeDasharray:`${h.dash} ${b}`,strokeLinecap:"round",transform:`rotate(${h.rotate} ${p} ${p})`},w))]})})}const y=(t??0)>0?Math.min((e??0)/t,1):0,C=b*y,v=b-C;return n.jsxs("div",{className:"ring-chart",style:{width:d,height:d},children:[n.jsxs("svg",{width:d,height:d,viewBox:`0 0 ${d} ${d}`,"aria-hidden":"true",children:[n.jsx("circle",{cx:p,cy:p,r:f,fill:"none",stroke:"var(--color-whiteLine)",strokeWidth:m}),y>0&&n.jsx("circle",{cx:p,cy:p,r:f,fill:"none",stroke:r,strokeWidth:m,strokeDasharray:`${C} ${v}`,strokeLinecap:y<.02||y>.98?"butt":"round",transform:`rotate(-90 ${p} ${p})`})]}),!u&&n.jsxs("div",{className:`ring-chart__center${c?"":` ${d<=96?"ring-chart__center--small":s==="medium"?"ring-chart__center--medium":"ring-chart__center--large"}`}`,children:[n.jsx("span",{className:`ring-chart__pct ${d<=96?"h2":"h1"}`,children:eu(y)}),!c&&n.jsx("span",{className:`ring-chart__label ${d<=96?"caption-2":"caption-1"}${d<=96||s==="medium"?" ring-chart__label--tight":""}`,children:l})]})]})}function gy({titleKey:e,titleLevel:t,headRight:a,icon:r,showTotal:s,totalLabelKey:i,legend:l,loading:u,className:c,inGrid:d=!1,onClick:m,ariaLabel:p,tooltip:f,...b}){const{t:y}=ve.useTranslation();if(!e)return n.jsx(tu,{...b});const C=(b.total??0)>0?eu(Math.min((b.done??0)/b.total,1)):0,v=b.size==="small",_=typeof b.size=="number"?b.size:vo[b.size??"medium"].diameter,h=b.size==="large",w=[c,v?"manager-section--compact":h?"manager-section--full":""].filter(Boolean).join(" ")||void 0,g=r&&n.jsx("span",{className:"chart-section-icon",children:n.jsx(Qe,{icon:r,className:"chart-section-icon-inner"})});return n.jsx(bo,{className:w,inGrid:d,onClick:m,ariaLabel:p,tooltip:f,title:y(e),titleLevel:t,titleClassName:v?"h5 chart-section-title--small":void 0,headRight:g||(v?void 0:a),subRow:(s||l)&&n.jsxs(n.Fragment,{children:[s?n.jsxs(Ra,{label:!v&&i?y(i):void 0,children:[n.jsx("span",{className:"barchart-total__num h0",children:C}),n.jsx("span",{className:"barchart-total__unit h5",children:"%"})]}):n.jsx("span",{}),l&&n.jsx(go,{items:l})]}),children:u?n.jsx("div",{className:"ring-chart-section-body ring-chart-section-body--offset",children:n.jsx("div",{className:"ring-chart ring-chart--loading",style:{width:_,height:_},"aria-busy":"true",children:n.jsx($a,{size:32})})}):n.jsx("div",{className:"ring-chart-section-body ring-chart-section-body--offset",children:n.jsx(tu,{...b,hideCenter:b.hideCenter??v})})})}function by({label:e,value:t,change:a,changeType:r,icon:s,tooltip:i,onClick:l,children:u}){const c=o.useRef(null),{anchorRect:d,openAt:m,close:p}=Aa(),f=o.useCallback(()=>{i&&c.current&&m(c.current)},[i,m]),b=r??(a===void 0?void 0:a>0?"up":a<0?"down":"neutral"),y=a===void 0?void 0:a>0?`+${a}`:`${a}`,C=o.useCallback(v=>{l&&(v.key==="Enter"||v.key===" ")&&(v.preventDefault(),l())},[l]);return n.jsxs("div",{ref:c,className:`manager-stat-card${l?" manager-stat-card--clickable":""}`,onClick:l,onKeyDown:l?C:void 0,onPointerEnter:f,onPointerLeave:p,onFocus:f,onBlur:p,role:l?"button":void 0,tabIndex:l?0:void 0,"aria-label":l?[e,t,y].filter(v=>v!==void 0&&v!=="").join(" "):void 0,children:[i&&d&&n.jsx(xn,{anchorRect:{left:d.left,top:d.top+21,right:d.right,bottom:d.bottom,width:d.width,height:d.height},text:i}),n.jsxs("div",{className:"manager-stat-card__label-row",children:[n.jsx("span",{className:"manager-stat-card__label h5",children:e}),s&&n.jsx("span",{className:"manager-stat-card__icon",children:n.jsx(Qe,{icon:s,className:"manager-stat-card__icon-inner"})})]}),n.jsxs("div",{className:"manager-stat-card__content",children:[n.jsxs("div",{className:"manager-stat-card__left",children:[n.jsx("div",{className:"manager-stat-card__value h2",children:t}),y&&n.jsx("div",{className:`manager-stat-card__change manager-stat-card__change--${b??"neutral"} caption-1`,children:y})]}),u&&n.jsx("div",{className:"manager-stat-card__body",children:u})]})]})}function nu({value:e,onChange:t,min:a=0,max:r=100,step:s=1,orientation:i="horizontal",size:l=24,disabled:u=!1,ariaLabel:c,length:d,className:m,label:p,formatValue:f,labelPos:b,labelAlign:y="right",showMinMax:C=!1,minLabel:v,maxLabel:_,showBgTick:h=!1,showFillTick:w=!1,tickStep:g,tickShape:B="dot"}){t&&!c&&Yt("Slider:unnamed","[ihab/Slider] \uC774\uB984\uC774 \uC5C6\uC2B5\uB2C8\uB2E4 \u2014 ariaLabel \uC744 \uC8FC\uC138\uC694. label prop \uC740 \uAC12 \uD45C\uAE30 \uBC29\uC2DD\uC774\uC9C0 \uC774\uB984\uC774 \uC544\uB2D9\uB2C8\uB2E4.");const x=Math.min(r,Math.max(a,e)),A=r>a?(x-a)/(r-a):0,N=i==="vertical",k=!t,S=D=>t?.(Number(D.target.value)),E=typeof d=="number"?`${d}px`:d,F={"--slider-ratio":String(A),"--slider-thumb":`${l}px`,...E?N?{height:E}:{width:E}:{}},$=g??s,G=(h||w)&&$>0&&r>a?Math.floor((r-a)/$+1e-6):0;if(G>0&&G<=100){const D=B!=="dash",H=X=>D?`radial-gradient(circle, ${X} 0.5px, transparent 1px)`:N?`linear-gradient(to bottom, transparent calc(50% - 2px), ${X} calc(50% - 2px), ${X} calc(50% + 2px), transparent calc(50% + 2px))`:`linear-gradient(to right, transparent calc(50% - 2px), ${X} calc(50% - 2px), ${X} calc(50% + 2px), transparent calc(50% + 2px))`,M=D?"2px":"4px",P=[],z=[],Y=[];for(let X=0;X<=G;X++){const Z=X*$/(r-a);if(Z>1+1e-6)break;const ne=`${((N?1-Z:Z)*100).toFixed(4)}%`,le=Z<=A+1e-6;if(le?!w:!h)continue;const ie=le?"var(--slider-tick-color-on-fill, var(--color-deepWhite))":"var(--slider-tick-color, var(--color-lightGray))";P.push(H(ie)),z.push(N?`${M} var(--slider-thumb)`:`var(--slider-thumb) ${M}`),Y.push(N?`center ${ne}`:`${ne} center`)}P.push(N?"linear-gradient(to top, var(--slider-fill-color) var(--slider-fill), var(--color-darkWhite) var(--slider-fill))":"linear-gradient(to right, var(--slider-fill-color) var(--slider-fill), var(--color-darkWhite) var(--slider-fill))"),z.push("100% 100%"),Y.push("0 0"),F.backgroundImage=P.join(", "),F.backgroundSize=z.join(", "),F.backgroundPosition=Y.join(", "),F.backgroundRepeat="no-repeat"}const j=f?f(x):p==="percent"?`${Math.round(r>a?(x-a)/(r-a)*100:0)}%`:p==="count"?`${x} / ${r}`:x===a&&v?v:x===r&&_?_:void 0,L=n.jsx("input",{type:"range",className:Ae("slider",`slider--${i}`,k&&"slider--static",!p&&!C&&m),min:a,max:r,step:s,value:x,disabled:u,readOnly:k,tabIndex:k?-1:void 0,"aria-label":c,"aria-valuetext":j,"aria-orientation":i,onChange:S,style:F});if(!p&&!C)return L;const I=n.jsx("span",{className:"slider-wrap__minmax caption-1",children:v??a}),K=n.jsx("span",{className:"slider-wrap__minmax caption-1",children:_??r}),ee=C?n.jsxs("div",{className:Ae("slider-track-group",`slider-track-group--${i}`,!p&&m),children:[N?K:I,L,N?I:K]}):L;if(!p)return ee;const V=b??(N?"bottom":"right"),q=`${Math.round(r>a?(x-a)/(r-a)*100:0)}%`,R=f?f(x):p==="percent"?q:p==="count"?`${x} / ${r}`:String(x),O=n.jsx("span",{className:"slider-wrap__value body-3b",children:R});return n.jsxs("div",{className:Ae("slider-wrap",`slider-wrap--${i}`,`slider-wrap--label-${V}`,`slider-wrap--align-${y}`,m),children:[ee,O]})}const yy=.86,vy=250,xo=(e,t,a,r)=>Math.round(Math.min(r,Math.max(a,e-t))),_o=(e,t,a,r)=>{const s=xo(e,t,a,r);return`${s<0?"-":"+"}${Math.abs(s)} dB`};function wo({analyser:e,audioElement:t,orientation:a="horizontal",length:r,label:s,labelPos:i,labelAlign:l="right",floorDb:u=-60,refDb:c=-35,displayMin:d=-5,displayMax:m=25,className:p,ariaLabel:f}){const b=o.useRef(null),y=o.useRef(null),C=o.useRef(null),v=o.useRef(null),[_,h]=o.useState(null);o.useEffect(()=>{const x=L=>{const I=_o(L,c,d,m);C.current&&(C.current.textContent=I);const K=b.current;K&&(K.setAttribute("aria-valuenow",String(xo(L,c,d,m))),K.setAttribute("aria-valuetext",I))},A=e??pC(t)??(_&&_.el===t?_.node:null),N=y.current;if(!A||!N){N?.style.setProperty("--meter-level","0"),x(u);let L=!1;return!e&&t&&za(t).then(I=>{!L&&I&&h({el:t,node:I})}),()=>{L=!0}}Ir();const k=new Float32Array(A.fftSize);let S=0,E=0,F=0,$=0,G=null;const j=L=>{const I=mC(A,k);S=I>S?I:S*yy;const K=S>1e-5?20*Math.log10(S):-1/0,ee=Math.max(u,K),V=ee-c,q=Math.min(1,Math.max(0,(V-d)/(m-d)));if(N.style.setProperty("--meter-level",q.toFixed(3)),E+=ee,F+=1,L-$>=vy){const R=E/F;G=G==null?R:G*.6+R*.4,x(G),E=0,F=0,$=L}v.current=requestAnimationFrame(j)};return v.current=requestAnimationFrame(j),()=>{v.current!=null&&cancelAnimationFrame(v.current),v.current=null}},[e,t,_,u,c,d,m]);const w=typeof r=="number"?`${r}px`:r,g=n.jsx("div",{className:"audio-meter__track",style:w?a==="vertical"?{height:w}:{width:w}:{},children:n.jsx("div",{ref:y,className:"audio-meter__fill"})}),B=i??(a==="vertical"?"bottom":"right");return n.jsxs("div",{ref:b,className:Ae("audio-meter",`audio-meter--${a}`,s&&`audio-meter--label-${B}`,s&&`audio-meter--align-${l}`,p),role:"meter","aria-label":f,"aria-valuemin":d,"aria-valuemax":m,"aria-valuenow":xo(u,c,d,m),"aria-valuetext":_o(u,c,d,m),children:[g,s&&n.jsx("span",{ref:C,className:"audio-meter__value caption-2",children:_o(u,c,d,m)})]})}const au=260;function ru({message:e,position:t,duration:a,onClose:r}){const[s,i]=o.useState(!1),[l,u]=o.useState(!1),c=o.useRef(l),d=o.useRef(s);o.useEffect(()=>{c.current=l},[l]),o.useEffect(()=>{d.current=s},[s]);const m=o.useRef(null),p=o.useRef(""),f=o.useRef(r);o.useEffect(()=>{f.current=r});const b=a,y=o.useRef(null),C=o.useRef(0),v=o.useRef(0),_=o.useRef(!1),h=o.useRef(null),w=o.useRef(null),g=o.useRef(null),B=o.useRef(null),x=o.useRef(()=>{});x.current=k=>{k<0||(C.current=Date.now(),v.current=k,y.current=setTimeout(()=>{y.current=null,i(!1),h.current=setTimeout(()=>{u(!1);try{f.current()}catch{}},au)},k))};const A=o.useCallback(()=>{_.current||!y.current||(_.current=!0,clearTimeout(y.current),y.current=null,v.current=Math.max(0,v.current-(Date.now()-C.current)))},[]),N=o.useCallback(()=>{_.current&&(_.current=!1,x.current(v.current))},[]);return o.useEffect(()=>{if(e!==p.current&&(y.current&&(clearTimeout(y.current),y.current=null),h.current&&(clearTimeout(h.current),h.current=null)),e){if(d.current)return b>0&&!y.current&&(_.current?v.current=b:x.current(b)),p.current=e,()=>{y.current&&(clearTimeout(y.current),y.current=null),h.current&&(clearTimeout(h.current),h.current=null)};const k=()=>{const S=m.current;if(S)try{S.classList.remove("is-visible"),S.style.transition="none",t==="top"?S.style.transform="translateX(-50%) translateY(-16px)":S.style.transform="translateX(-50%) translateY(16px)",S.style.opacity="0",S.offsetWidth,S.style.transition="",S.classList.add("is-visible"),B.current&&clearTimeout(B.current),B.current=setTimeout(()=>{B.current=null;try{S.style.opacity="",S.style.transform="",S.style.transition=""}catch{}},60)}catch{}};c.current?(k(),i(!0)):(u(!0),w.current=requestAnimationFrame(()=>{g.current=requestAnimationFrame(()=>{k(),i(!0)})})),b>0&&(_.current=!1,x.current(b))}else i(!1),h.current=setTimeout(()=>u(!1),au);return p.current=e,()=>{y.current&&clearTimeout(y.current),h.current&&clearTimeout(h.current),w.current&&cancelAnimationFrame(w.current),g.current&&cancelAnimationFrame(g.current),B.current&&clearTimeout(B.current),y.current=null,h.current=null,w.current=null,g.current=null,B.current=null}},[e,b,t]),{mounted:l,showing:s,popupRef:m,pause:A,resume:N}}function sa({message:e="",position:t="top",type:a="normal",onClose:r=()=>{},duration:s=2e3}){const{mounted:i,showing:l,popupRef:u,pause:c,resume:d}=ru({message:e,position:t,duration:s,onClose:r}),m=o.useRef(null),[p,f]=o.useState(!1);if(o.useEffect(()=>{l?f(!0):i||f(!1)},[l,i]),!i)return null;const b=a==="notice"||a==="warning"?a:"normal",y=n.jsx("div",{ref:u,className:`toast toast--${t} ${l?"is-visible":""}`,role:"status","aria-live":"polite",onPointerEnter:C=>{m.current=C.pointerType},onMouseEnter:()=>{m.current!=="touch"&&c()},onMouseLeave:d,onFocusCapture:c,onBlurCapture:d,children:n.jsx("div",{className:`toast__inner toast__inner--${b} body-2`,"aria-hidden":p||l?void 0:!0,children:n.jsx("span",{className:"toast__text",children:e})})});return typeof document<"u"?Qt.createPortal(y,document.body):y}const xy=24;function _y({value:e,max:t=100,size:a=8,color:r,trackColor:s,label:i,formatValue:l,labelPos:u,labelAlign:c="right",ariaLabel:d,className:m}){const p=Number.isFinite(t)&&t>0?t:1,f=Math.max(0,Math.min(Number.isFinite(e)?e:0,p)),b=f/p*100,y=Number.isFinite(t)&&t>0?t:0,C=u??(a>=xy?"inside":"bottom"),v=C==="center"?"inside":C,_=v==="inside"&&(c==="left"?b>=15:c==="center"?b>=50:b>=85),h={};return r&&(h["--progress-bar-fill"]=r),s&&(h["--progress-bar-track"]=s),n.jsxs("div",{className:Ae("progress-bar",`progress-bar--${a}`,`progress-bar--label-${v}`,i&&`progress-bar--align-${c}`,i&&_&&"progress-bar--label-on-fill",m),style:h,children:[n.jsx("div",{className:"progress-bar__track",role:"progressbar","aria-valuenow":f,"aria-valuemin":0,"aria-valuemax":y,"aria-valuetext":i?l?l(f):i==="percent"?void 0:i==="raw"?String(f):`${f} / ${y}`:void 0,"aria-label":d,children:n.jsx("div",{className:"progress-bar__fill",style:{width:`${b}%`}})}),i&&n.jsx("span",{className:"progress-bar__label caption-1b",children:l?l(f):i==="percent"?`${Math.round(b)}%`:i==="raw"?String(f):`${f} / ${y}`})]})}const ou={position:"absolute",width:1,height:1,margin:-1,padding:0,overflow:"hidden",clipPath:"inset(50%)",whiteSpace:"nowrap",border:0},wy="rgba(255, 255, 255, 0.16)";function su({max:e,index:t,inactiveBg:a,inactiveColor:r,transparent:s,variant:i="numbered",announce:l=!1,ariaLabel:u}){const{t:c}=ve.useTranslation(),d=nn("(max-width: 767px)");if(!Number.isInteger(e)||e<=0)return null;const m=Number.isInteger(t)?Math.max(0,Math.min(t,e-1)):0,p=u??c("progress.steps",{current:m+1,total:e,defaultValue:"\uC9C4\uD589 \uB2E8\uACC4 {{current}} / {{total}}"}),f={};if(a&&(f["--pi-inactive-bg"]=a),r&&(f["--pi-inactive-color"]=r),s&&(a||(f["--pi-inactive-bg"]=wy),r||(f["--pi-inactive-color"]="var(--color-white)")),i==="dot")return n.jsxs("div",{className:"progress-indicator progress-indicator--dot",style:f,role:l?"status":"img","aria-label":l?void 0:p,children:[l&&n.jsx("span",{style:ou,children:p}),Array.from({length:e}).map((y,C)=>n.jsx("span",{"aria-hidden":"true",className:`progress-indicator-dot--dot${C<m?" done":C===m?" active":""}`},C))]});const b=l?n.jsx("span",{role:"status",style:ou,children:p}):null;return d?n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"progress-indicator progress-indicator--mobile",style:f,role:"list","aria-label":p,children:n.jsxs("span",{role:"listitem",className:"progress-indicator-dot active body-3",children:[m+1," / ",e]})}),b]}):n.jsxs(n.Fragment,{children:[b,n.jsx("div",{className:"progress-indicator",style:f,role:"list","aria-label":p,children:Array.from({length:e}).map((y,C)=>n.jsx("span",{role:"listitem","aria-current":C===m?"step":void 0,className:`progress-indicator-dot ${C<m?" done":C===m?" active":""} body-3`,children:C+1},C))})]})}function By(e){if(!e)return[];const t=[];let a=0,r="";for(const s of e.trim()){if(s==="("?a++:s===")"&&a--,/\s/.test(s)&&a===0){r&&(t.push(r),r="");continue}r+=s}return r&&t.push(r),t}function Ay({children:e,className:t,style:a,rowLabel:r,onRowClick:s}){return n.jsx("div",{role:"cell",className:t?`table-cell ${t}`:"table-cell",style:a,children:r&&s?n.jsx("button",{type:"button",className:"table-cell__row-button","aria-label":r,children:e}):e})}function Bo({variant:e="default",children:t,className:a,draggable:r,onClick:s,onMouseEnter:i,onMouseLeave:l,onDragStart:u,onDragEnd:c,expandedContent:d,colSpan:m,describedBy:p,rowHasButton:f}){const b=o.useCallback(y=>{s&&y.target===y.currentTarget&&(y.key==="Enter"||y.key===" ")&&(y.preventDefault(),s())},[s]);return e==="loading"?n.jsx("div",{role:"presentation",className:"table-row-wrap",children:n.jsx("div",{role:"row",className:"table-row table-row--loading",children:n.jsx("div",{role:"cell","aria-colspan":m,className:"table-row__full-cell",children:n.jsx($a,{size:28})})})}):e==="empty"?n.jsx("div",{role:"presentation",className:"table-row-wrap",children:n.jsx("div",{role:"row",className:"table-row table-row--empty body-3",children:n.jsx("div",{role:"cell","aria-colspan":m,className:"table-row__full-cell",children:t})})}):n.jsxs("div",{role:"presentation",className:"table-row-wrap",children:[n.jsx("div",{className:a?`table-row ${a}`:"table-row",draggable:r,onClick:s,onKeyDown:s?b:void 0,onMouseEnter:i,onMouseLeave:l,onDragStart:u,onDragEnd:c,role:"row",tabIndex:s&&!f?0:void 0,"aria-describedby":s&&!f?p:void 0,children:t}),d&&n.jsx("div",{role:"row",className:"table-row-expand",children:n.jsx("div",{role:"cell","aria-colspan":m,className:"table-row-expand__cell",children:d})})]})}function ky({dir:e}){return n.jsx(e==="asc"?_s:xs,{className:"table-field__sort-arrow",size:16,strokeWidth:2})}function Ny({children:e,onClick:t,className:a,sortDir:r,ariaSort:s,onResizeStart:i}){const l=n.jsxs(n.Fragment,{children:[e,r&&n.jsx(ky,{dir:r})]});return n.jsxs("div",{onClick:t,role:"columnheader","aria-sort":s,className:Ae("table-field body-3",a,r?"table-field--sorted":"",i?"table-field--resizable":""),children:[t?n.jsx("button",{type:"button",className:"table-field__button",children:l}):l,i&&n.jsx("span",{className:"table-field__resizer",onPointerDown:i,onClick:u=>u.stopPropagation(),"aria-hidden":"true"})]})}function Ao({fields:e=[],headerGroups:t,items:a=[],renderRow:r,onRowClick:s,isRowClickable:i,onRowMouseEnter:l,onRowMouseLeave:u,onRowDragStart:c,onRowDragEnd:d,draggingId:m,gridTemplateColumns:p,mobileGridTemplateColumns:f,resizable:b=!1,resizeMode:y="grow",resizeStorageKey:C,size:v="small",title:_,icon:h,count:w,collapsed:g=!1,onToggleCollapse:B,headerActions:x,empty:A,loading:N,dragOver:k=!1,onDragOver:S,onDragLeave:E,onDrop:F,renderExpandedRow:$,expandedId:G}){const{t:j}=ve.useTranslation(),L=o.useId(),I=`table-title-${L}`,K=`table-row-hint-${L}`,ee=nn("(max-width: 767px)"),V=f&&ee?f:null,q=b&&!ee,R=48,O=o.useRef(()=>R),D=C?`table-cols:${C}`:null,H=o.useRef(null),M=o.useRef(null),P=o.useRef(null),z=o.useRef(null),[Y,X]=o.useState(!1),Z=o.useCallback(()=>{const J=P.current;J&&X(J.scrollWidth>J.clientWidth+1)},[]),ne=o.useCallback((J,se)=>{const Ce=J.current;Ce&&M.current&&M.current.unobserve(Ce),J.current=se,se?(!M.current&&typeof ResizeObserver<"u"&&(M.current=new ResizeObserver(()=>Z())),M.current?.observe(se)):!P.current&&!z.current&&(M.current?.disconnect(),M.current=null),Z()},[Z]),le=o.useCallback(J=>ne(P,J),[ne]),ie=o.useCallback(J=>ne(z,J),[ne]);o.useEffect(()=>{Z()}),o.useEffect(()=>{if(typeof window>"u")return;const J=typeof requestAnimationFrame=="function"?requestAnimationFrame(()=>Z()):null;return window.addEventListener("resize",Z),()=>{J!=null&&cancelAnimationFrame(J),window.removeEventListener("resize",Z)}},[Z]);const Ee=o.useRef(()=>!1),W=o.useRef([]),ae=o.useRef(null),fe=J=>{if(!J||typeof window>"u")return null;try{const se=JSON.parse(window.localStorage.getItem(J)??"null");return Array.isArray(se)&&se.length>0&&se.every(Ce=>typeof Ce=="number"&&Number.isFinite(Ce)&&Ce>0)?se:null}catch{return null}},[Ne,ge]=o.useState(()=>fe(D)),[te,ce]=o.useState(D);te!==D&&(ce(D),ge(fe(D)));const de=o.useRef(Ne);o.useEffect(()=>{de.current=Ne},[Ne]);const he=o.useCallback(J=>{const se=ae.current;if(!se)return;const Ce=de.current;if(Ce){const De=[...Ce];if(se.next!=null&&se.startWNext!=null){const tt=J.clientX-se.startX,Ze=Math.max(O.current(se.index)-se.startW,Math.min(se.startWNext-O.current(se.next),tt));De[se.index]=se.startW+Ze,De[se.next]=se.startWNext-Ze}else De[se.index]=Math.max(O.current(se.index),se.startW+(J.clientX-se.startX));de.current=De,ge(De)}},[]),ye=o.useCallback(()=>{if(ae.current=null,window.removeEventListener("pointermove",he),window.removeEventListener("pointerup",ye),window.removeEventListener("pointercancel",ye),document.body.style.cursor="",document.body.style.userSelect="",D&&de.current)try{window.localStorage.setItem(D,JSON.stringify(de.current))}catch{}},[he,D]),Se=o.useCallback((J,se)=>{se.preventDefault(),se.stopPropagation();const Ce=H.current;if(!Ce)return;const De=Array.from(Ce.children).map(Ze=>Ze.getBoundingClientRect().width),tt=y==="fit"?e.findIndex((Ze,yt)=>yt>J&&Ze.resizable!==!1):-1;ae.current=tt>=0?{index:J,startX:se.clientX,startW:De[J],next:tt,startWNext:De[tt]}:{index:J,startX:se.clientX,startW:De[J]},de.current=De,ge(De),window.addEventListener("pointermove",he),window.addEventListener("pointerup",ye),window.addEventListener("pointercancel",ye),document.body.style.cursor="col-resize",document.body.style.userSelect="none"},[he,ye,y,e]),Ge=o.useCallback(()=>{const J=H.current,se=J?.closest(".table-wrap");if(!J||!se)return;const Ce=se.style.getPropertyValue("--table-grid-cols");se.style.setProperty("--table-grid-cols",e.map((nt,$e)=>Ee.current($e)?W.current[$e]:"max-content").join(" "));const De=Array.from(se.querySelectorAll(".table-row")).filter(nt=>!nt.classList.contains("table-row--loading")&&!nt.classList.contains("table-row--empty")),tt=e.map((nt,$e)=>{let Ue=J.children[$e]?.getBoundingClientRect().width??0;for(const ht of De){const Nt=ht.children[$e];Nt&&(Ue=Math.max(Ue,Nt.getBoundingClientRect().width))}const He=Ee.current($e)?parseFloat(W.current[$e]):NaN;return Number.isFinite(He)?He:Math.max(O.current($e),Math.ceil(Ue))}),Ze=window.getComputedStyle(J),yt=J.clientWidth-(parseFloat(Ze.paddingLeft)||0)-(parseFloat(Ze.paddingRight)||0);Ce?se.style.setProperty("--table-grid-cols",Ce):se.style.removeProperty("--table-grid-cols");let mt=tt;const rt=tt.reduce((nt,$e,Ue)=>nt+(Ee.current(Ue)?$e:0),0),ot=tt.reduce((nt,$e,Ue)=>nt+(Ee.current(Ue)?0:$e),0),st=yt-rt;if(yt>0&&ot>0&&st>0){const nt=st/ot;mt=tt.map((Ue,He)=>Ee.current(He)?Ue:Math.max(O.current(He),Math.round(Ue*nt)));const $e=Math.round(st-mt.reduce((Ue,He,ht)=>Ue+(Ee.current(ht)?0:He),0));if($e!==0){let Ue=-1;mt.forEach((He,ht)=>{!Ee.current(ht)&&(Ue<0||He>mt[Ue])&&(Ue=ht)}),Ue>=0&&(mt[Ue]=Math.max(O.current(Ue),mt[Ue]+$e))}}if(ge(mt),D)try{window.localStorage.setItem(D,JSON.stringify(mt))}catch{}},[e,y,D]);o.useEffect(()=>()=>{ae.current&&(window.removeEventListener("pointermove",he),window.removeEventListener("pointerup",ye),window.removeEventListener("pointercancel",ye),document.body.style.cursor="",document.body.style.userSelect="")},[he,ye]);const ze=By(p),Pe=ze.filter(J=>/\b(auto|min-content|max-content)\b|fit-content\(/.test(J));Pe.length>0&&Yt(`table-content-track:${p}`,`[ihabdevteam-core] Table \uC758 gridTemplateColumns \uC5D0 \uB0B4\uC6A9\uC73C\uB85C \uD06C\uAE30\uAC00 \uC815\uD574\uC9C0\uB294 \uD2B8\uB799(${Pe.join(", ")})\uC774 \uC788\uC2B5\uB2C8\uB2E4. \uBA38\uB9AC\uC640 \uBAB8\uD1B5\uC740 \uC11C\uB85C \uB2E4\uB978 \uACA9\uC790\uB77C \uADF8 \uD2B8\uB799\uC774 \uAC01\uC790 \uB2E4\uB974\uAC8C \uD480\uB824 \uC5F4\uC774 \uC5B4\uAE0B\uB0A9\uB2C8\uB2E4. px \uC774\uB098 fr \uC744 \uC4F0\uC138\uC694. (\uBC1B\uC740 \uAC12: ${p})`);const Ie=e.findIndex(J=>!!J.sortDir);e.filter(J=>!!J.sortDir).length>1&&Yt("table-multi-sort","[ihabdevteam-core] Table \uC758 fields \uC5D0 sortDir \uC774 \uB458 \uC774\uC0C1 \uC788\uC2B5\uB2C8\uB2E4. aria-sort \uB294 \uD45C \uD558\uB098\uC5D0 \uD55C \uCE78\uB9CC \uAC00\uC9C8 \uC218 \uC788\uC5B4 \uCCAB \uCE78\uB9CC \uBC29\uD5A5\uC73C\uB85C \uC54C\uB9AC\uACE0 \uB098\uBA38\uC9C0\uB294 none \uC73C\uB85C \uB461\uB2C8\uB2E4.");const Ct=J=>J===Ie?e[J].sortDir==="asc"?"ascending":"descending":e[J].onClick?"none":void 0,ut=J=>/^\d+(\.\d+)?px$/.test(ze[J]??""),at=J=>{const se=ze[J]??"",Ce=/^minmax\(\s*(\d+(?:\.\d+)?)px\s*,/.exec(se)??/^(\d+(?:\.\d+)?)px$/.exec(se);return Ce?parseFloat(Ce[1]):R};Ee.current=ut,O.current=at,W.current=ze;const ct=J=>y==="fit"&&!ut(J)?"fr":"px",ke=Ne&&Ne.length===e.length&&!ee&&(y==="fit"||a.length>0),Fe=V??(ke?e.map((J,se)=>J.resizable===!1&&ze[se]?ze[se]:`${Ne[se]}${ct(se)}`).join(" "):p),Be=Fe?{"--table-grid-cols":Fe}:void 0,Je=_!==void 0;return n.jsxs("div",{ref:le,className:`table-wrap table-wrap--${v}${q?" table-wrap--resizable":""}${k?" table-wrap--dragover":""}${g?" table-wrap--collapsed":""}`,style:Be,onDragOver:S,onDragLeave:E,onDrop:F,tabIndex:Y?0:void 0,role:Y?"region":void 0,"aria-label":Y?typeof _=="string"?_:j("table.scrollRegion","\uAC00\uB85C\uB85C \uAD74\uB9B4 \uC218 \uC788\uB294 \uD45C"):void 0,children:[!!s&&n.jsx("span",{id:K,className:"table-row-hint",children:j("table.rowActionHint","\uC904\uC744 \uB204\uB974\uBA74 \uC790\uC138\uD788 \uBD05\uB2C8\uB2E4")}),n.jsxs("div",{ref:ie,role:"table","aria-labelledby":Je&&typeof _=="string"?I:void 0,className:"table body-2",children:[Je&&n.jsxs("div",{className:Ae("table-header",B&&"table-header--clickable"),onClick:B,role:"caption",children:[B&&n.jsx(pe,{htmlType:"button",size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:g?"chevron-right":"chevron-down",ariaLabel:g?j("common.expand","\uD3BC\uCE58\uAE30"):j("common.collapse","\uC811\uAE30"),ariaExpanded:!g,className:"table-header__chevron"}),h&&n.jsx(Qe,{icon:h,label:typeof _=="string"?_:void 0,className:"table-header__icon"}),n.jsx("span",{id:I,className:"table-header__title h5b",children:_}),w!==void 0&&n.jsx("span",{className:"table-header__count body-3b",children:w}),x&&n.jsx("span",{className:"table-header__actions",onClick:J=>J.stopPropagation(),children:x})]}),!g&&n.jsxs(n.Fragment,{children:[t&&t.length>0&&n.jsx("div",{role:"row",className:"table-fields table-fields--groups",children:t.map((J,se)=>n.jsx("div",{role:"columnheader","aria-colspan":J.span,className:Ae("table-field body-3",J.className),style:{gridColumn:`span ${J.span}`},children:J.label},se))}),n.jsxs("div",{role:"presentation",className:Ae("table-fields-strip",q&&"table-fields-strip--resizable"),children:[n.jsx("div",{role:"row",className:"table-fields",ref:H,children:e.map((J,se)=>n.jsx(Ny,{onClick:J.onClick,className:J.className,sortDir:J.sortDir,ariaSort:Ct(se),onResizeStart:q&&se<e.length-1&&J.resizable!==!1&&(y!=="fit"||e.some((Ce,De)=>De>se&&Ce.resizable!==!1))?Ce=>Se(se,Ce):void 0,children:J.label},se))}),q&&n.jsx(pe,{htmlType:"button",size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:"chevrons-left-right-ellipsis",ariaLabel:j("table.resetColumns","\uCE78 \uB108\uBE44 \uCD08\uAE30\uD654"),showTooltipInfo:j("table.resetColumns","\uCE78 \uB108\uBE44 \uCD08\uAE30\uD654"),className:"table-fields__reset",onClick:Ge})]}),n.jsx("div",{role:"rowgroup",className:"table-body",children:N?n.jsx(Bo,{variant:"loading",colSpan:e.length||void 0}):a.length===0&&A?n.jsx(Bo,{variant:"empty",colSpan:e.length||void 0,children:A}):a.map((J,se)=>{const Ce=m!=null&&J.id===m,De=!!s&&(i?i(J):!0),tt=G!=null&&J.id!=null&&(G instanceof Set?G.has(J.id)||[...G].some(Ze=>String(Ze)===String(J.id)):String(J.id)===String(G));return n.jsx(Bo,{className:`${De?" table-row--clickable":""}${c?" table-row--draggable":""}${Ce?" table-row--dragging":""}`.trim(),draggable:!!c,onClick:De?()=>s(J):void 0,colSpan:e.length||void 0,rowHasButton:r(J).some(Ze=>!!Ze.rowLabel),describedBy:K,onMouseEnter:l?Ze=>l(J,Ze):void 0,onMouseLeave:u?Ze=>u(J,Ze):void 0,onDragStart:c?Ze=>c(J,Ze):void 0,onDragEnd:d?Ze=>d(J,Ze):void 0,expandedContent:tt&&$?$(J):void 0,children:r(J).map((Ze,yt)=>n.jsx(Ay,{className:Ze.className,style:Ze.style,rowLabel:De?Ze.rowLabel:void 0,onRowClick:De?()=>s(J):void 0,children:Ze.content},yt))},J.id!=null?`${typeof J.id}:${J.id}`:`__idx:${se}`)})})]})]})]})}function iu(e){switch(e){case"\uBCF4\uCCAD\uAE30":return"main";case"\uC778\uACF5\uC640\uC6B0":return"sub";default:return"default"}}const ia=e=>e==null?"":String(e).trim();function ko(e,t,a){const r=[ia(e),ia(t),ia(a)];for(;r.length>0&&r[r.length-1]==="";)r.pop();return r.join(".")}function Dy(e,t,a){const r=ia(e);return r?`${r}-${ia(t).padStart(2,"0")}-${ia(a).padStart(2,"0")}`:""}const Ey={\uBCF4\uCCAD\uAE30:"hearingAid",\uC778\uACF5\uC640\uC6B0:"cochlearImplant"};function Sy(e,t){const a=Ey[e];return a?t(`device.type.${a}`,{defaultValue:e}):e}function lu(e,t){return t!=="wornAt"?String(e[t]??""):Dy(e.wornYear,e.wornMonth,e.wornDay)}function jy({rows:e,loading:t,onSelect:a,onDelete:r,onWear:s,onRelease:i,onAdd:l}){const{t:u}=ve.useTranslation(),c=C=>C==="\uC88C"?u("device.direction.left","\uC88C"):u("device.direction.right","\uC6B0"),{\uC815\uB82C:d,\uCE78:m}=lb(),p=o.useMemo(()=>{if(!d)return e;const{key:C,asc:v}=d;return[...e].sort((_,h)=>{if(C==="worn"){const w=Number(h.worn)-Number(_.worn);return v?w:-w}return ro(lu(_,C),lu(h,C),v)})},[e,d]),{pageRows:f,pageSizeProps:b,paginationProps:y}=ib(p,d);return n.jsxs("div",{className:"dlp-side-table",children:[n.jsx(fo,{count:{value:e.length,unit:u("customers.device.unit","\uAC1C")},pageSize:b,pagination:y,actions:l&&n.jsx(pe,{htmlType:"button",size:40,type:"bar",variant:"main",icon:"plus",label:u("customers.device.addButton","\uAE30\uAE30 \uCD94\uAC00"),onClick:l})}),n.jsx(Ao,{loading:t,resizable:!0,resizeMode:"fit",resizeStorageKey:"customer-device-history-v2",fields:[{...m(u("customers.device.wearingNow","\uCC29\uC6A9"),"worn"),resizable:!1},m(u("device.direction.label","\uBC29\uD5A5"),"side"),m(u("device.deviceType","\uC885\uB958"),"device"),m(u("device.brand","\uBE0C\uB79C\uB4DC"),"brand"),m(u("device.fitType","\uCC29\uC6A9\uD615\uD0DC"),"fitType"),m(u("device.productName","\uC81C\uD488\uBA85"),"productName"),m(u("device.wornDate","\uCC29\uC6A9\uC77C"),"wornAt"),...r?[{label:"",resizable:!1}]:[]],items:f.map((C,v)=>({id:C.id??`${C.side}-${v}`,row:C})),gridTemplateColumns:`56px 110px 110px minmax(120px, 1fr) 100px minmax(120px, 1fr) 110px${r?" 80px":""}`,renderRow:({row:C})=>[{content:n.jsx("span",{className:"dlp-worn-check",onClick:v=>v.stopPropagation(),children:n.jsx(Wl,{checked:C.worn,disabled:C.worn?!i:!s,ariaLabel:C.worn?u("customers.device.unwear","\uCC29\uC6A9 \uD574\uC81C"):u("customers.device.wear","\uCC29\uC6A9"),onChange:v=>{v?s?.(C):i?.(C)}})})},{content:n.jsx("span",{children:c(C.side)})},{content:C.device?n.jsx(kt,{size:"small",variant:iu(C.device),fill:"soft",label:Sy(C.device,u)}):n.jsx("span",{})},{content:n.jsx("span",{children:C.brand})},{content:n.jsx("span",{children:C.fitType||"-"})},{content:n.jsx("span",{children:C.productName||"-"})},{content:n.jsx("span",{className:"dlp-date",children:ko(C.wornYear,C.wornMonth,C.wornDay)||"-"})},...r?[{content:n.jsx("span",{className:"dlp-row-actions",children:n.jsx(pe,{htmlType:"button",size:28,type:"bar",variant:"transparent-gray",label:u("common.delete","\uC0AD\uC81C"),onClick:v=>{v?.stopPropagation(),r(C)}})})}]:[]],onRowClick:({row:C})=>a(C),empty:u("customers.device.historyEmpty","\uB4F1\uB85D\uB41C \uAE30\uAE30 \uC774\uB825\uC774 \uC5C6\uC2B5\uB2C8\uB2E4.")})]})}function uu(e,t){return e?{role:t?.role??"button",tabIndex:0,...t?.selected===void 0?{}:{"aria-selected":t.selected},onKeyDown:a=>{a.target===a.currentTarget&&(a.key!=="Enter"&&a.key!==" "||(a.preventDefault(),e(a)))}}:{}}function Ty(e,t){return new Date(e,t+1,0).getDate()}function My(e,t){return new Date(e,t,1).getDay()}function Ly({visits:e=[],onVisitClick:t,onVisitMove:a,onDayClick:r,today:s}){const{t:i,i18n:l}=ve.useTranslation(),u=o.useMemo(()=>i("calendar.dow",{returnObjects:!0}),[i]),c=Wr(s),[d,m]=o.useState(()=>Number(c.slice(0,4))),[p,f]=o.useState(()=>Number(c.slice(5,7))-1),[b,y]=o.useState(null),C=o.useRef(null),v=o.useMemo(()=>{const x={};return e.forEach(A=>{x[A.date]||(x[A.date]=[]),x[A.date].push(A)}),x},[e]),_=o.useMemo(()=>{const x=Ty(d,p),A=My(d,p),N=[];for(let k=0;k<A;k++)N.push(null);for(let k=1;k<=x;k++)N.push(k);for(;N.length<35;)N.push(null);return N},[d,p]),h=o.useCallback(()=>{p===0?(m(x=>x-1),f(11)):f(x=>x-1)},[p]),w=o.useCallback(()=>{p===11?(m(x=>x+1),f(0)):f(x=>x+1)},[p]),g=x=>`${d}-${String(p+1).padStart(2,"0")}-${String(x).padStart(2,"0")}`,B=x=>g(x)===c;return n.jsxs("div",{children:[n.jsxs("div",{className:"calendar-nav",children:[n.jsx("button",{type:"button",className:"calendar-nav__button",onClick:h,"aria-label":i("calendar.prevMonth","\uC774\uC804 \uB2EC"),children:n.jsx(Qe,{icon:"chevron-left",label:"",className:"",svgClassName:"calendar-nav__button-icon",size:18})}),n.jsx("span",{className:"calendar-nav__title h5","aria-live":"polite",children:i("calendar.yearMonth",{year:d,month:p+1})}),n.jsx("button",{type:"button",className:"calendar-nav__button",onClick:w,"aria-label":i("calendar.nextMonth","\uB2E4\uC74C \uB2EC"),children:n.jsx(Qe,{icon:"chevron-right",label:"",className:"",svgClassName:"calendar-nav__button-icon",size:18})}),n.jsxs("div",{className:"calendar-nav__legend",children:[n.jsx("span",{className:"calendar-nav__legend-dot calendar-nav__legend-dot--main"}),n.jsx("span",{className:"caption-1",children:i("calendar.legend.visited","\uBC29\uBB38")}),n.jsx("span",{className:"calendar-nav__legend-dot calendar-nav__legend-dot--sub"}),n.jsx("span",{className:"caption-1",children:i("calendar.legend.scheduled","\uC608\uC57D")}),n.jsx("span",{className:"calendar-nav__legend-dot calendar-nav__legend-dot--disabled"}),n.jsx("span",{className:"caption-1",children:i("calendar.legend.noVisit","\uBBF8\uBC29\uBB38")})]})]}),n.jsxs("div",{className:"calendar-grid",children:[u.map(x=>n.jsx("div",{className:"calendar-day-header body-3",children:x},x)),_.map((x,A)=>{if(x===null)return n.jsx("div",{className:"calendar-cell empty"},`empty-${A}`);const N=x,k=g(N),S=v[k]??[],E=WC(k,l.language),F=b===k;return n.jsxs("div",{className:`calendar-cell${B(N)?" today":""}${F?" drag-over":""}${r?" calendar-cell--clickable":""}`,role:r?"button":void 0,tabIndex:r?0:void 0,"aria-label":r?i("calendar.addOnDate",{date:k}):void 0,"aria-current":B(N)?"date":void 0,onClick:r?()=>r(k):void 0,onKeyDown:r?$=>{$.target===$.currentTarget&&($.key!=="Enter"&&$.key!==" "||($.preventDefault(),r(k)))}:void 0,onDragOver:a?$=>{$.preventDefault(),y(k)}:void 0,onDragLeave:a?$=>{$.currentTarget.contains($.relatedTarget)||y(null)}:void 0,onDrop:a?$=>{$.preventDefault(),C.current!=null&&(a(C.current,k),C.current=null),y(null)}:void 0,children:[n.jsx("div",{className:"calendar-cell__number body-3",children:N}),S.length>0&&(()=>{const $=[{key:"visited",\uB9D0:i("calendar.legend.visited","\uBC29\uBB38"),\uC218:S.filter(j=>(j.status??"visited")==="visited").length},{key:"scheduled",\uB9D0:i("calendar.legend.scheduled","\uC608\uC57D"),\uC218:S.filter(j=>j.status==="scheduled").length},{key:"noVisit",\uB9D0:i("calendar.legend.noVisit","\uBBF8\uBC29\uBB38"),\uC218:S.filter(j=>j.status==="noVisit").length}].filter(j=>j.\uC218>0),G=$.length===1&&$[0].key==="visited"?i("calendar.visitCount",{count:S.length,defaultValue:"\uBC29\uBB38 {{count}}\uAC74"}):$.map(j=>i("calendar.statusCount",{label:j.\uB9D0,count:j.\uC218,defaultValue:"{{label}} {{count}}\uAC74"})).join(" \xB7 ");return n.jsxs("span",{className:"calendar-cell__visit-count caption-1","aria-label":`${E} ${G}`,children:[$.map(j=>n.jsx("span",{className:`calendar-cell__visit-dot calendar-cell__visit-dot--${j.key}`,"aria-hidden":"true"},j.key)),S.length]})})(),n.jsx("div",{className:"calendar-cell__badges",children:S.map(($,G)=>n.jsxs("div",{draggable:!!a,className:`calendar-visit-badge${$.status==="noVisit"?" calendar-visit-badge--no-visit":$.status==="scheduled"?" calendar-visit-badge--scheduled":""}${t?" calendar-visit-badge--clickable":""}${a?" calendar-visit-badge--draggable":""}`,onDragStart:a?j=>{C.current=$.id,j.dataTransfer.effectAllowed="move"}:void 0,onDragEnd:a?()=>{C.current=null,y(null)}:void 0,onClick:t?j=>{j.stopPropagation(),t($)}:void 0,...uu(t?()=>t($):void 0),"aria-label":[E,$.time?mi($.time,i):null,$.customer,i($.status==="noVisit"?"calendar.legend.noVisit":$.status==="scheduled"?"calendar.legend.scheduled":"calendar.legend.visited")].filter(Boolean).join(" "),children:[$.time&&n.jsx("span",{className:"calendar-visit-badge__time body-3",children:mi($.time,i)}),n.jsx("span",{className:"calendar-visit-badge__name body-3",children:$.customer}),$.status==="noVisit"&&n.jsx("span",{className:"calendar-visit-badge__no-visit caption-1",children:i("calendar.legend.noVisit","\uBBF8\uBC29\uBB38")})]},$.id??G))})]},N)})]})]})}const $y={page:"h3",pagePopup:"h4",popup:"h5"};function la({type:e="page",title:t,headingLevel:a=2,icon:r,action:s,disc:i,children:l,inGrid:u=!1,className:c,style:d}){const m=$y[e],p=t||i||s||r,f=a?`h${a}`:"div";return n.jsxs("div",{className:Ae("section",`section--${e}`,u&&"section--in-grid",c),style:d,children:[p&&n.jsxs("div",{className:"section__header",children:[n.jsxs("div",{className:"section__title-row",children:[r&&n.jsx(Qe,{icon:r,label:typeof t=="string"?t:void 0,className:"section__icon"}),n.jsxs("div",{className:"section__title-group",children:[t&&n.jsx(f,{className:`section__title ${m}`,children:t}),i&&n.jsx("div",{className:"section__disc body-3",children:i})]})]}),s&&n.jsx("div",{className:"section__action",children:s})]}),l]})}let No=null,cu=!1;function du(){if(cu||typeof document>"u")return;cu=!0,document.addEventListener("keydown",t=>{t.metaKey||t.ctrlKey||t.altKey||(No="keyboard")},!0);const e=()=>{No="pointer"};document.addEventListener("pointerdown",e,!0),document.addEventListener("mousedown",e,!0),document.addEventListener("touchstart",e,{capture:!0,passive:!0})}du();function or(){return du(),No==="keyboard"}const sr=20;function Ry(e){const{t}=ve.useTranslation(),{type:a,trainingDatas:r,depth:s,renderPopup:i,completedIds:l,selectedIds:u,onItemComplete:c,size:d,useDescriptionTooltip:m,onRemove:p,onMore:f,sectionType:b="page"}=e||{},[,y]=o.useState(0),C=typeof r<"u"?Array.isArray(r)?r:[]:[],v=C.length,[_,h]=o.useState(Math.min(v,sr)),w=o.useMemo(()=>Array.isArray(s)?[...s,a?.label].filter(Boolean).join(" \xB7 "):[s||"",a?.label].filter(Boolean).join(" \xB7 "),[s,a?.label]);o.useEffect(()=>{h(Math.min(v,sr))},[v]),al("speechear.data.updated",()=>y(A=>A+1));const g=o.useRef(null),B=o.useRef(null);function x(){const A=document.activeElement;B.current=or()&&A&&A.closest?.(".training-block__more")?_:null,h(N=>Math.min(v,N+sr))}return o.useEffect(()=>{const A=B.current;if(A==null)return;B.current=null;const N=document.activeElement;N&&N!==document.body||g.current?.querySelectorAll(".training-block-button")[A]?.focus()},[_]),n.jsxs(la,{type:b,title:a?.label,icon:a?.icon,disc:a?.desc,className:"training-block",children:[n.jsx("div",{className:"training-list",ref:g,children:(C||[]).slice(0,_).map((A,N)=>{const k=A;return n.jsx(mo,{index:N,type:a,trainingData:k,depth:w,renderPopup:i,completedIds:l,selectedIds:u,size:d,useDescriptionTooltip:m,onRemove:typeof p=="function"&&u!=null&&k?.id!=null&&u.has(String(k.id))?()=>p(k):void 0,onComplete:typeof c=="function"&&k?.id!=null?()=>c(String(k.id)):void 0,onMore:typeof f=="function"?S=>f(k,S):void 0},k?.id!=null?`${a?.key||"t"}-${String(k.id)}`:`${a?.key||"t"}-${N}`)})}),v>sr&&_<v&&n.jsx("div",{className:"training-block__more",children:n.jsx(pe,{htmlType:"button",size:48,type:"bar",icon:"plus",onClick:x,ariaLabel:t("common.loadMore","\uB354\uBCF4\uAE30"),label:t("common.loadMore","\uB354\uBCF4\uAE30"),variant:"main"})})]})}function Do(e){const t=o.useRef(null),[a,r]=o.useState(!!e),[s,i]=o.useState(!1);o.useEffect(()=>{i(!1);const c=t.current;r(!!e&&!(c?.complete&&c.naturalWidth>0))},[e]);const l=o.useCallback(()=>r(!1),[]),u=o.useCallback(()=>{r(!1),i(!0)},[]);return{imgRef:t,loading:a,failed:s,hasImage:!!e&&!s,onLoad:l,onError:u}}var Py='data:image/svg+xml,<svg width="100" height="100" viewBox="0 0 100 100" fill="none" xmlns="http://www.w3.org/2000/svg">%0A<g clip-path="url(%23clip0_2256_7437)">%0A<g opacity="0.1">%0A<path d="M35.7143 25C29.7964 25 25 29.7964 25 35.7143V64.2857C25 67.3786 25.7893 70.2893 27.1714 72.8286C29.7071 74.2143 32.6179 75 35.7143 75H64.2857C70.2036 75 75 70.2036 75 64.2857V35.7143C75 32.6214 74.2107 29.7107 72.8286 27.1714C70.2929 25.7857 67.3821 25 64.2857 25H35.7143Z" fill="%23111111"/>%0A</g>%0A<path d="M57.1426 17.8571H35.7141C25.8533 17.8571 17.8569 25.8536 17.8569 35.7143V44.0643L10.9926 51.6179C10.5819 52.0679 10.6283 52.775 11.0998 53.1643C13.1783 54.8929 15.4641 56.2214 17.8569 57.1679C17.8676 63.925 21.6283 69.8 27.1712 72.825C25.7855 70.2893 24.9998 67.3786 24.9998 64.2821V35.7107C24.9998 29.7929 29.7962 24.9964 35.7141 24.9964H64.2855C67.3783 24.9964 70.2891 25.7857 72.8283 27.1679C69.7998 21.6179 63.9105 17.8536 57.1426 17.8536V17.8571Z" fill="%23111111"/>%0A<path d="M72.8285 27.1714C74.2142 29.7072 75 32.6179 75 35.7143V64.2857C75 70.2036 70.2035 75 64.2857 75H35.7142C32.6214 75 29.7107 74.2107 27.1714 72.8286C30.2 78.3786 36.0892 82.1429 42.8571 82.1429H58.9678C59.9321 82.1429 60.7142 82.925 60.7142 83.8893C60.7142 84.9107 61.5892 85.7215 62.6071 85.6322C73.5535 84.675 82.1428 75.4822 82.1428 64.2857V42.8572C82.1428 36.0893 78.3785 30.2 72.8285 27.1714Z" fill="%23111111"/>%0A<path d="M36.0714 40.7143C36.0714 39.5308 35.112 38.5714 33.9285 38.5714C32.745 38.5714 31.7856 39.5308 31.7856 40.7143V45C31.7856 46.1834 32.745 47.1428 33.9285 47.1428C35.112 47.1428 36.0714 46.1834 36.0714 45V40.7143Z" fill="%23111111"/>%0A<path d="M46.7859 57.1429C45.743 57.1429 44.6966 56.875 43.7502 56.3286C42.8966 55.8357 42.6037 54.7429 43.1002 53.8893C43.593 53.0357 44.6859 52.7429 45.5395 53.2393C46.518 53.8036 47.7573 53.6429 48.5537 52.8464C48.9395 52.4607 49.1823 51.9714 49.2573 51.4357C49.5787 49.1607 50.5823 47 52.1645 45.1857C53.1073 44.1071 53.6037 42.7214 53.568 41.2857C53.493 38.3536 51.1466 35.9107 48.2216 35.7286C47.2323 35.6679 46.2859 35.8464 45.4073 36.2679C44.518 36.6929 43.4502 36.3107 43.0287 35.4214C42.6037 34.5321 42.9859 33.4643 43.8752 33.0429C45.2895 32.3714 46.868 32.0679 48.4466 32.1643C53.2037 32.4607 57.0216 36.4286 57.1395 41.1964C57.1966 43.5286 56.3859 45.7786 54.8573 47.5357C53.7323 48.825 53.018 50.3464 52.7966 51.9357C52.6109 53.2464 52.018 54.4357 51.0823 55.375C49.9145 56.5429 48.3609 57.15 46.7895 57.15L46.7859 57.1429Z" fill="%23111111"/>%0A</g>%0A<defs>%0A<clipPath id="clip0_2256_7437">%0A<rect width="100" height="100" fill="white"/>%0A</clipPath>%0A</defs>%0A</svg>%0A';const Iy=Py,Eo=o.forwardRef(function({item:e,disabled:t=!1,onPlayDone:a,selectable:r=!1,selected:s=!1,onSelect:i,flipDelay:l=0,hideLabel:u=!1,hideAudio:c=!1,orderRank:d=null},m){const{t:p}=ve.useTranslation(),f=e.word||e.title||"",b=t||!f,y=e.audio??e.sound??e.audioKey,C=e.subLabel||e.pronunciation||"",v=e.colloquialLabel||"",[_,h]=o.useState({label:f,subLabel:C,colloquialLabel:v,homonum:e.homonum});f&&(_.label!==f||_.subLabel!==C||_.colloquialLabel!==v||!Object.is(_.homonum,e.homonum))&&h({label:f,subLabel:C,colloquialLabel:v,homonum:e.homonum});const w=o.useRef(null),g=nn("(max-width: 767px)"),[B,x]=o.useState(!1),A=`${typeof y=="string"?y:y?.src??""}\0${f}`,[N,k]=o.useState({for:"",url:""}),S=N.for===A?N.url:"",E=si(),F=e.textOnly??(!e.image&&!!_.label&&!!E&&E.entries.length>0&&!E.byWord.has(_.label)),$=F?"":Qn()?.(_.label,_.homonum)??e.image??"",{imgRef:G,loading:j,hasImage:L,onLoad:I,onError:K}=Do($);o.useEffect(()=>{let P=!1;return(async()=>{if(y){if(typeof y=="string"){if(y.startsWith("http")||y.includes("/")){k({for:A,url:y});return}}else if(typeof y=="object"&&!Array.isArray(y)){const Y=y.src;if(Y){k({for:A,url:Y});return}}}const z=$r();if(z&&f)try{const Y=await Promise.resolve(z(f));!P&&Y&&k({for:A,url:Y})}catch{}})(),()=>{P=!0}},[y,f,A]);const ee=o.useRef(!0),V=o.useRef(null);o.useEffect(()=>(ee.current=!0,()=>{ee.current=!1,V.current&&tr(V.current),V.current=null;try{w.current?.pause()}catch{}w.current=null}),[]);const q=o.useCallback(()=>new Promise(P=>{if(typeof window<"u"&&window.speechSynthesis&&f){x(!0),window.speechSynthesis.cancel();const z=new SpeechSynthesisUtterance(f);z.lang="ko-KR",z.onend=()=>{x(!1);try{a?.()}catch{}P()},z.onerror=()=>{x(!1),P()},window.speechSynthesis.speak(z)}else P()}),[f,a]),R=o.useCallback(P=>new Promise(z=>{let Y=!1;const X=()=>{Y||(Y=!0,x(!1),z(!1))};try{const Z=new Audio(P);w.current=Z,Z.onended=()=>{if(!Y){Y=!0,x(!1);try{a?.()}catch{}z(!0)}},Z.onerror=X,Z.play().catch(X)}catch{X()}}),[a]),O=o.useCallback(async()=>{if(t||!ee.current)return;const P=()=>{V.current===P&&(V.current=null);try{w.current?.pause()}catch{}try{window.speechSynthesis?.cancel()}catch{}x(!1)},z=er(P);V.current=P;try{window.speechSynthesis?.cancel()}catch{}try{if(S&&(x(!0),await R(S)))return;const Y=lC();if(Y&&f)try{const X=await Promise.resolve(Y(f));if(!ee.current||V.current!==P||X&&(x(!0),await R(X)))return}catch{}if(!ee.current||V.current!==P)return;await q()}finally{z(),V.current===P&&(V.current=null)}},[t,S,f,R,q]);o.useImperativeHandle(m,()=>({play:()=>O()}),[O]);const D=P=>P.stopPropagation(),H=o.useCallback(P=>{if(P.stopPropagation(),!t){if(B){try{w.current?.pause()}catch{}try{window.speechSynthesis?.cancel()}catch{}x(!1);return}O()}},[t,B,O]),M=Ae("training-word-card",t?"training-word-card--disabled":"",b?"training-word-card--flipped":"",r?"training-word-card--selectable":"",s?"training-word-card--selected":"");return n.jsx("div",{className:M,onClick:r&&!t?i:void 0,role:r?"button":void 0,"aria-pressed":r?s:void 0,tabIndex:r&&!t?0:void 0,"aria-disabled":r&&t?!0:void 0,onKeyDown:r&&!t?P=>{P.target===P.currentTarget&&(P.key==="Enter"||P.key===" "||P.key==="Spacebar")&&(P.preventDefault(),i?.())}:void 0,children:n.jsxs("div",{className:"training-word-card__flipper",style:{transitionDelay:b?"0ms":`${l}ms`},children:[n.jsxs("div",{className:"training-word-card__front",children:[s&&n.jsx("div",{className:"training-word-card__selected-badge",onClick:D,children:n.jsx(kt,{type:"dot",size:40,position:"inline",animate:!0,icon:d!=null?void 0:"check",number:d??void 0,"aria-label":d!=null?p("training.nthSelected",{n:d}):p("training.selected","\uC120\uD0DD\uB428")})}),n.jsx("div",{className:"training-word-card__image-wrap",children:F?n.jsx("div",{className:"training-word-card__text-face",children:_.label}):L?n.jsxs(n.Fragment,{children:[j&&n.jsx("div",{className:"training-word-card__spinner"}),n.jsx("img",{ref:G,className:"training-word-card__image",src:$,alt:_.label||p("common.image","\uC774\uBBF8\uC9C0"),style:{opacity:j?0:1},onLoad:I,onError:K})]}):n.jsx("div",{className:"training-word-card__placeholder"})}),!u&&n.jsxs("div",{className:"training-word-card__body",children:[!F&&n.jsx("div",{className:"training-word-card__word",children:_.label}),_.subLabel&&n.jsxs("div",{className:"training-word-card__pronunciation",children:["[",_.subLabel,"]"]}),_.colloquialLabel&&n.jsxs("div",{className:"training-word-card__colloquial caption-1",children:["[",_.colloquialLabel,"]"]})]}),!c&&n.jsx("div",{className:"training-word-card__bottom",onClick:r?D:void 0,children:n.jsx(pe,{htmlType:"button",size:g?40:48,type:g?"dot":"bar",icon:B?"pause":"play",label:g?void 0:p("training.playSound","\uC18C\uB9AC \uB4E3\uAE30"),selected:B,onClick:H,disabled:t,ariaLabel:p("training.playSound","\uC18C\uB9AC \uB4E3\uAE30")})})]}),n.jsx("div",{className:"training-word-card__back","aria-hidden":"true",children:n.jsx("img",{src:Iy,className:"training-word-card__disabled-symbol",alt:"",draggable:!1})})]})})}),Fy=260;function Tn(e){const{t}=ve.useTranslation(),{title:a,subtitle:r,headerActions:s,headerSegment:i,children:l,buttons:u,footer:c,footerStart:d,footerEnd:m,footerClassName:p="",footerLayout:f="center",onClose:b,closeDisabled:y=!1,beforeClose:C,closeOnBackdrop:v=!0,className:_="",ariaLabel:h,useTitle:w=!0,inline:g=!1,size:B,layer:x="modal",height:A,fillBody:N=!1,resetScrollKey:k}=e||{},[S,E]=o.useState(!1),F=o.useRef(!1),$=o.useRef(null),G=o.useId(),j=o.useRef(null);o.useEffect(()=>{},[g,a,h,_]),o.useEffect(()=>{k!==void 0&&j.current&&(j.current.scrollTop=0)},[k]);const[L,I]=o.useState(!1);o.useEffect(()=>{const Z=j.current;if(!Z)return;const ne=()=>I(Z.scrollHeight>Z.clientHeight+1);if(ne(),typeof ResizeObserver>"u")return;const le=new ResizeObserver(ne);le.observe(Z);const ie=Z.firstElementChild;return ie&&le.observe(ie),()=>le.disconnect()},[l,k]),o.useEffect(()=>{if(!g)return Il()},[g]),o.useEffect(()=>{if(g)return;const Z=document.activeElement,ne=$.current;return Yr(ne,Z),ne&&!ne.contains(document.activeElement)&&(ne.querySelector(fn)??ne).focus(),()=>{const le=document.activeElement;(!le||le===document.body||ne&&ne.contains(le))&&Zr(Z)?.focus?.()}},[g]),Gr($,!g);const K=o.useRef(!0),ee=Xr(),V=o.useRef(null);o.useEffect(()=>(K.current=!0,()=>{K.current=!1,V.current&&(clearTimeout(V.current),V.current=null)}),[]);const q=o.useCallback(()=>{!K.current||!F.current||(F.current=!1,E(!1))},[]),R=o.useCallback((Z,ne=!1)=>{if(ne&&!K.current||F.current)return;F.current=!0,E(!0);const le=setTimeout(()=>{V.current===le&&(V.current=null);let ie;try{ie=Z?Z():void 0}catch{q();return}ie&&typeof ie.then=="function"&&ie.then(()=>{setTimeout(q,120)},q)},ee?0:Fy);ne&&(V.current=le)},[q,ee]),O=o.useCallback(()=>{y||C&&C()===!1||R(b,!0)},[R,b,y,C]),D=o.useRef(O);o.useEffect(()=>{D.current=O});const H=!g&&!!b;o.useEffect(()=>{if(H)return Vn(()=>D.current())},[H]);const M=H&&v,P=o.useRef(!1),z=Z=>{P.current=Z.target===Z.currentTarget},Y=Z=>{const ne=P.current;P.current=!1,ne&&Z.target===Z.currentTarget&&O()},X=n.jsx("div",{className:`popup ${g?"popup--inline":""} ${x==="belowPagePopup"?"popup--below-page-popup":""} ${S?"popup--closing":""} ${_}`,onPointerDown:M?z:void 0,onClick:M?Y:void 0,onMouseDown:g?void 0:Z=>{Z.target===Z.currentTarget&&Z.preventDefault()},children:n.jsxs("div",{ref:$,className:`popup-panel${B?` popup-panel--${B}`:""}${A!=null?" popup-panel--has-height":""}${N?" popup-panel--fill-body":""}`,style:A!=null?{"--popup-height":typeof A=="number"?`${A}px`:A}:void 0,tabIndex:-1,role:g?void 0:"dialog","aria-modal":g?void 0:!0,"aria-labelledby":!g&&w&&a?G:void 0,"aria-label":!g&&!(w&&a)?h??(typeof a=="string"?a:void 0):void 0,children:[!w&&(s||b)?n.jsxs("div",{className:"popup-close-float",children:[s,b&&n.jsx(pe,{htmlType:"button",size:40,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,onClick:O,disabled:y,ariaLabel:t("common.close","\uB2EB\uAE30")})]}):a||s||b?n.jsxs("div",{className:`popup-header${r?" popup-header--with-subtitle":""}`,children:[n.jsxs("div",{className:"popup-header-main",children:[a?n.jsx("h2",{id:G,className:"popup-title popup-title--left h2",children:a}):n.jsx("span",{id:G,className:"popup-title popup-title--left h2"}),r&&n.jsx("span",{className:"popup-subtitle body-3",children:r})]}),i&&n.jsx("div",{className:"popup-header-segment",children:n.jsx(An,{size:40,ariaLabel:i.ariaLabel,options:i.options.map(Z=>({key:Z.key,label:Z.label,disabled:Z.disabled})),value:i.value,onChange:i.onChange})}),n.jsxs("div",{className:"popup-header-actions",children:[s,b&&n.jsx(pe,{htmlType:"button",size:40,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,onClick:O,disabled:y,ariaLabel:t("common.close","\uB2EB\uAE30")})]})]}):null,n.jsx("div",{className:"popup-content",ref:j,tabIndex:L?0:void 0,children:n.jsx("div",{className:"popup-content__inner",children:typeof l=="function"?l({animateThen:R,closeWithAnimation:O}):l})}),d||m?n.jsxs("div",{className:`popup-footer popup-footer--bar${p?` ${p}`:""}`,children:[n.jsx("div",{className:"popup-footer__start",children:typeof d=="function"?d({animateThen:R,closeWithAnimation:O}):d}),n.jsx("div",{className:"popup-footer__end",children:typeof m=="function"?m({animateThen:R,closeWithAnimation:O}):m})]}):u?.length?n.jsx("div",{className:`popup-footer popup-footer--buttons${f!=="center"?` popup-footer--${f}`:""}`,children:u.map((Z,ne)=>n.jsx(pe,{htmlType:"button",size:48,variant:Z.variant??"default",label:Z.label,disabled:Z.disabled,onClick:()=>Z.onClick?.({animateThen:R,closeWithAnimation:O})},ne))}):c?n.jsx("div",{className:`popup-footer${f!=="center"?` popup-footer--${f}`:""}${p?` ${p}`:""}`,children:typeof c=="function"?c({animateThen:R,closeWithAnimation:O}):c}):null]})});return g||typeof document>"u"?X:Qt.createPortal(X,document.body)}function ir(e){return String(e)}const lr=["o","triangle","x"];function pu(e,t){return e===t?null:t}const mu={o:"circle",triangle:"triangle",x:"x"},hu={o:"main",triangle:"warn",x:"danger"};function Oy(e){let t=0,a=0,r=0;for(const i of Object.values(e))i==="o"?t++:i==="triangle"?a++:i==="x"&&r++;const s=t+a+r;return{marked:s,o:t,triangle:a,x:r,rate:s===0?null:(t+a*.5)/s}}function So(e){const t={};for(const[a,r]of Object.entries(e))(r==="o"||r==="triangle"||r==="x")&&(t[a]=r);return t}function Cu(e){const t=[];let a=0;for(const r of e)t.push(a),a+=r;return t}function Hy(e,t){return!t&&e>0}const ua={landscape:{width:1123,height:794,printSize:"A4 landscape",printW:"297mm",printH:"210mm"},portrait:{width:794,height:1123,printSize:"A4 portrait",printW:"210mm",printH:"297mm"}};function zy(e="landscape"){Yt("print-word-table-deprecated","[printWordTable] @deprecated \u2014 WordTablePopup renderButtons \uC758 print(\uB610\uB294 useWordTablePrint().print)\uB97C \uC4F0\uC138\uC694. \uC804\uC5ED \uC778\uC1C4\uB294 \uD654\uBA74\uC758 \uBAA8\uB4E0 \uB2E8\uC5B4\uD45C\uB97C \uD568\uAED8 \uCC0D\uC2B5\uB2C8\uB2E4.");const{printSize:t,printW:a,printH:r}=ua[e],s=document.createElement("style");s.textContent=`@page { size: ${t}; margin: 0; } .word-table { width: ${a} !important; height: ${r} !important; }`,document.head.appendChild(s);const i=()=>{document.head.removeChild(s),window.removeEventListener("afterprint",i)};window.addEventListener("afterprint",i),window.print()}function fu(e,t){if(e.length===0)return[[]];const a=Math.max(1,Math.floor(t)),r=[];for(let s=0;s<e.length;s+=a)r.push(e.slice(s,s+a));return r}const Vy={landscape:{1:{cols:1,rows:1},2:{cols:2,rows:1},3:{cols:3,rows:1},4:{cols:2,rows:2},5:{cols:3,rows:2},6:{cols:3,rows:2},7:{cols:4,rows:2},8:{cols:4,rows:2},9:{cols:5,rows:2},10:{cols:5,rows:2},11:{cols:4,rows:3},12:{cols:4,rows:3}},portrait:{1:{cols:1,rows:1},2:{cols:1,rows:2},3:{cols:1,rows:3},4:{cols:1,rows:4},5:{cols:1,rows:5},6:{cols:2,rows:3},7:{cols:2,rows:4},8:{cols:2,rows:4},9:{cols:2,rows:5},10:{cols:2,rows:5},11:{cols:3,rows:4},12:{cols:3,rows:4}}};function Wy(e,t){const a=Vy[e][t];if(a)return a;const r=Math.max(1,Math.ceil(t)),s=Math.max(1,Math.ceil(Math.sqrt(r*.707)));let i,l;return e==="landscape"?(l=s,i=Math.ceil(r/l)):(i=s,l=Math.ceil(r/i)),(e==="landscape"?i<l:l<i)&&([i,l]=[l,i]),{cols:i,rows:l}}const qy={\uD45C\uC2DC:"word-table-block__content--cut-show",\uC810\uC120:"",\uCF54\uB108:"word-table-block__content--cut-corner",\uBBF8\uD45C\uC2DC:""},gu={\uBA85:"\uBA85\uC0AC",\uB3D9:"\uB3D9\uC0AC",\uD615:"\uD615\uC6A9\uC0AC",\uBD80:"\uBD80\uC0AC",\uC218:"\uC218\uC0AC",\uAD00:"\uAD00\uD615\uC0AC",\uAC10:"\uAC10\uD0C4\uC0AC",\uC870:"\uC870\uC0AC",\uC811:"\uC811\uC0AC",\uC758:"\uC758\uC874\uBA85\uC0AC",\uB300:"\uB300\uBA85\uC0AC",\uBCF4\uB3D9:"\uBCF4\uC870\uB3D9\uC0AC",\uBCF4\uD615:"\uBCF4\uC870\uD615\uC6A9\uC0AC"},bu={\uACE0\uC720:"\uACE0\uC720\uC5B4",\uD55C\uC790:"\uD55C\uC790\uC5B4",\uC678\uB798:"\uC678\uB798\uC5B4",\uD63C\uC885:"\uD63C\uC885\uC5B4"};function jo(e,t){return e?e.split("/").map(a=>t[a]??a).join("/"):""}function yu(e,t,a,r){if(r!=="\uC810\uC120")return{};const s=e%t,i=Math.floor(e/t),l=s<t-1,u=i<a-1;if(!l&&!u)return{};const c="#ddd",d=b=>`repeating-linear-gradient(to ${b}, ${c} 0, ${c} 5px, transparent 5px, transparent 10px)`,m=[],p=[],f=[];return l&&(m.push(d("bottom")),p.push("1px 100%"),f.push("right center")),u&&(m.push(d("right")),p.push("100% 1px"),f.push("center bottom")),{backgroundImage:m.join(", "),backgroundSize:p.join(", "),backgroundPosition:f.join(", "),backgroundRepeat:"no-repeat",printColorAdjust:"exact",WebkitPrintColorAdjust:"exact"}}const Uy=280,Gy=240,Ky=280,Yy=400,Zy=120,Xy=280;function vu(e,t){const a=o.useRef(null),[r,s]=o.useState(1),[i,l]=o.useState(0),u=o.useCallback((c,d)=>{if(!(c>0))return;const m=c/e,p=t&&d>0?d/t:1/0,f=Math.min(1,m,p);s(f),l(Math.max(0,(c-e*f)/2))},[e,t]);return o.useEffect(()=>{const c=a.current;if(!c)return;const d=t?c.parentElement??c:c;if(u(d.clientWidth,d.clientHeight),typeof ResizeObserver>"u")return;const m=new ResizeObserver(([p])=>u(p.contentRect.width,p.contentRect.height));return m.observe(d),()=>m.disconnect()},[u,t]),{scalerRef:a,scale:r,offset:i}}const Jy={position:"absolute",width:1,height:1,margin:-1,padding:0,overflow:"hidden",clipPath:"inset(50%)",whiteSpace:"nowrap",border:0},Qy=400,xu=8;function _u({label:e,subLabel:t,colloquialLabel:a,homonum:r,showWord:s=!0,showImage:i=!0,showPronunciation:l=!0,showColloquial:u=!0,buttonSize:c=40,wordInfo:d}){const{t:m}=ve.useTranslation(),p=o.useRef(null),f=o.useRef(null),b=o.useRef(null),[y,C]=o.useState(1),[v,_]=o.useState(!1),[h,w]=o.useState({for:"",url:""}),[g,B]=o.useState(null),x=t&&t.length>0?t:cC()?.(e,r)??"",A=Qn()?.(e,r)??"",{imgRef:N,loading:k,failed:S,onLoad:E,onError:F}=Do(A),$=o.useCallback(()=>B(f.current?.getBoundingClientRect()??null),[]),G=o.useCallback(()=>B(null),[]),j=Qr(!!g,H=>{H?$():G()},f),L=o.useMemo(()=>{if(!d)return null;const H=[];return d.grade&&H.push(m("wordTable.info.grade",{n:d.grade,defaultValue:"\uB09C\uC774\uB3C4: {{n}}\uB4F1\uAE09"})),d.syllables&&H.push(m("wordTable.info.syllables",{n:d.syllables,defaultValue:"\uC74C\uC808 \uC218: {{n}}\uC74C\uC808"})),d.pos&&H.push(m("wordTable.info.pos",{v:jo(d.pos,e5(m)),defaultValue:"\uD488\uC0AC: {{v}}"})),d.wordType&&H.push(m("wordTable.info.wordType",{v:jo(d.wordType,t5(m)),defaultValue:"\uC720\uD615: {{v}}"})),H.length?H:null},[d,m]),I=x||e,K=h.for===I?h.url:"";o.useEffect(()=>{const H=$r(),M=x||e;if(!H||!M)return;let P=!1;return Promise.resolve(H(M)).then(z=>{!P&&z&&w({for:M,url:z})}),()=>{P=!0}},[x,e]);const ee=o.useRef(null),V=o.useRef(null);o.useEffect(()=>()=>{b.current?.pause(),V.current?.()},[]);const q=o.useCallback(async H=>{if(H.stopPropagation(),v){ee.current?.();return}if(K){_(!0);try{const M=new Audio(K);b.current=M;const P=()=>{_(!1),V.current?.()},z=()=>{M.pause(),P()};ee.current=z;const Y=er(z);V.current=Y,M.onended=P,M.onerror=P,await M.play()}catch{_(!1),V.current?.()}}},[v,K]),R=i&&!!A&&!S,O=R&&s?Uy:R?Ky:Gy,D=R&&s?Yy:R?Xy:Zy;return o.useEffect(()=>{const H=p.current;if(!H||typeof ResizeObserver>"u")return;const M=new ResizeObserver(([P])=>{const{width:z,height:Y}=P.contentRect;C(Math.min(z/O,Y/D))});return M.observe(H),()=>M.disconnect()},[O,D]),n.jsxs("div",{ref:p,className:Ae("word-table-cell",R?"word-table-cell--with-image":""),"data-ref-w":O,"data-ref-h":D,children:[n.jsxs("div",{className:"word-table-cell__inner",style:{transform:`scale(${y})`},children:[R&&n.jsxs("div",{className:"word-table-cell__image-wrap",children:[k&&n.jsx("div",{className:"word-table-cell__spinner"}),n.jsx("img",{ref:N,className:"word-table-cell__image",src:A,alt:e,draggable:!1,style:{opacity:k?0:1},onLoad:E,onError:F})]}),s&&n.jsx("span",{className:"word-table-cell__word h0",children:e}),l&&x&&n.jsxs("span",{className:"word-table-cell__sub h3",children:["[",x,"]"]}),u&&a&&n.jsxs("span",{className:"word-table-cell__colloquial h5",children:["[",a,"]"]})]}),n.jsxs("div",{className:"word-table-cell__play-button","data-audio-src":K,children:[n.jsx("span",{"data-play-state":"play",style:{display:v?"none":void 0},children:n.jsx(pe,{htmlType:"button",size:c,type:"dot",icon:"play",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:m("common.play","\uC7AC\uC0DD"),ariaLabel:e?m("common.playFor",{name:e,defaultValue:`${e} \uC7AC\uC0DD`}):m("common.play","\uC7AC\uC0DD"),onClick:q})}),n.jsx("span",{"data-play-state":"pause",style:{display:v?void 0:"none"},children:n.jsx(pe,{htmlType:"button",size:c,type:"dot",icon:"pause",useBorder:!1,selected:!0,showTooltipInfo:m("common.pause","\uBA48\uCDA4"),ariaLabel:e?m("common.pauseFor",{name:e,defaultValue:`${e} \uBA48\uCDA4`}):m("common.pause","\uBA48\uCDA4"),onClick:q})})]}),d&&n.jsxs("div",{ref:f,className:"word-table-cell__info-button",onPointerEnter:H=>{aa(H)||$()},onPointerLeave:H=>{aa(H)||G()},onFocus:()=>{ra()||$()},onBlur:G,children:[n.jsx(pe,{htmlType:"button",size:c,type:"dot",icon:"info",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:!1,ariaLabel:m("wordTable.wordInfo","{{word}} \uB0B1\uB9D0 \uC815\uBCF4",{word:e}),onClick:H=>{H.stopPropagation(),j.touchPress()}}),g&&L&&n.jsx(Wn,{anchorRect:g,items:L,showIndex:!1})]})]})}const wu={\uBA85:"noun",\uB3D9:"verb",\uD615:"adjective",\uBD80:"adverb",\uC218:"numeral",\uAD00:"determiner",\uAC10:"interjection",\uC870:"particle",\uC811:"affix",\uC758:"dependentNoun",\uB300:"pronoun",\uBCF4\uB3D9:"auxVerb",\uBCF4\uD615:"auxAdjective"},Bu={\uACE0\uC720:"native",\uD55C\uC790:"sino",\uC678\uB798:"foreign",\uD63C\uC885:"mixed"};function e5(e){return Object.fromEntries(Object.entries(gu).map(([t,a])=>[t,wu[t]?e(`wordTable.pos.${wu[t]}`,{defaultValue:a}):a]))}function t5(e){return Object.fromEntries(Object.entries(bu).map(([t,a])=>[t,Bu[t]?e(`wordSearch.filter.type.${Bu[t]}`,{defaultValue:a}):a]))}function ca({title:e,titleIcon:t,disc:a,className:r,orientation:s="landscape",contentTypes:i=["\uC774\uBBF8\uC9C0","\uB2E8\uC5B4","\uD45C\uC900 \uBC1C\uC74C"],cutLine:l="\uD45C\uC2DC",showOutline:u=!0,showDivLine:c=!0,items:d,editCells:m,count:p,activeCell:f=null,onActivateCell:b,onRemoveCell:y,onRemoveItem:C,onReorder:v,renderCellAction:_,showFillerAdd:h=!1,contentRef:w,buttonSize:g=40,brand:B,code:x,pageNumber:A,pageNumberPosition:N="right",fitHeight:k=!1,scoring:S=!1,marks:E,onMarkClick:F,scoreIndexOffset:$=0}){const G=o.useCallback((J,se)=>{F?.($+J,se)},[F,$]),j=(J,se)=>{const Ce=E?.[ir($+J)]??null;return n.jsx("div",{className:Ae("word-table-cell__score",Ce?"word-table-cell__score--marked":""),style:Fe>1?{transform:`translateX(-50%) scale(${Fe})`,transformOrigin:"bottom center"}:void 0,children:lr.map(De=>n.jsx("span",{className:Ae("word-table-cell__score-slot",Ce===De?"word-table-cell__score-slot--on":""),children:n.jsx(pe,{htmlType:"button",size:g,type:"dot",shape:"pill",icon:mu[De],variant:Ce===De?hu[De]:"default",selected:Ce===De,useBorder:!1,...ke?{}:{tabIndex:-1,role:"img"},showTooltipInfo:L(`wordTable.scoring.markName.${De}`,{defaultValue:De}),ariaLabel:L(`wordTable.scoring.${De}`,{word:se,defaultValue:`${se} ${De}`}),onClick:ke?tt=>{tt.stopPropagation(),G(J,De)}:void 0})},De))})},{t:L}=ve.useTranslation(),I=m!==void 0,K=e!=null||!!t||!!a,ee=nn("(max-width: 767px)"),V=o.useRef(null),[q,R]=o.useState(null),O=d?.length??0,[D,H]=o.useState(null),[M,P]=o.useState(""),z=o.useRef(null),Y=o.useRef(null),X=o.useRef(null),Z=o.useRef(null),ne=o.useCallback(J=>{Y.current=J,typeof w=="function"?w(J):w&&(w.current=J)},[w]),le=o.useCallback((J,se)=>{z.current=se,v?.(J,se),P(L("wordTable.reorder.moved",{n:se+1,total:O,defaultValue:"{{total}}\uCE78 \uAC00\uC6B4\uB370 {{n}}\uBC88\uC9F8\uB85C \uC62E\uAE40"}))},[v,L,O]);o.useEffect(()=>{const J=z.current;J!=null&&(z.current=null,Y.current?.querySelectorAll(".word-table-block__card:not(.word-table-block__card--filler)")?.[J]?.querySelector(".word-table-block__card-handle button")?.focus())}),o.useEffect(()=>()=>{Z.current?.()},[]);const ie=o.useCallback((J,se)=>{if(!v||!J.altKey||J.ctrlKey||J.metaKey)return;const Ce=J.key==="ArrowRight";if(!Ce&&J.key!=="ArrowLeft")return;J.preventDefault();const De=se+(Ce?1:-1);De<0||De>=O||le(se,De)},[v,O,le]),Ee=o.useCallback((J,se)=>{if(!v||J.pointerType==="mouse")return;const Ce=J.target.closest?.("button");if(Ce&&!Ce.closest(".word-table-block__card-handle"))return;Z.current?.();const De={x:J.clientX,y:J.clientY};let tt=!1;const Ze=st=>{tt&&st.cancelable&&st.preventDefault()},yt=st=>{if(!tt){(Math.abs(st.clientX-De.x)>xu||Math.abs(st.clientY-De.y)>xu)&&ot();return}const nt=document.elementFromPoint?.(st.clientX,st.clientY)?.closest?.("[data-wordtable-cell]"),$e=nt?Number(nt.dataset.wordtableCell):NaN,Ue=Number.isInteger($e)?$e:null;X.current=Ue,R(Ue)},mt=()=>{const st=X.current,nt=tt;ot(),nt&&st!=null&&st!==se&&le(se,st)},rt=setTimeout(()=>{tt=!0,H(se),X.current=se,R(se),window.addEventListener("touchmove",Ze,{passive:!1})},Qy);function ot(){clearTimeout(rt),window.removeEventListener("pointermove",yt),window.removeEventListener("pointerup",mt),window.removeEventListener("pointercancel",mt),window.removeEventListener("touchmove",Ze),tt=!1,X.current=null,Z.current=null,H(null),R(null)}Z.current=ot,window.addEventListener("pointermove",yt),window.addEventListener("pointerup",mt),window.addEventListener("pointercancel",mt)},[v,le]),{width:W,height:ae}=ua[s],fe=typeof k=="number"?k:k&&typeof k=="object"?ee?k.narrow:k.wide:null,{scalerRef:Ne,scale:ge,offset:te}=vu(W,k?ae:void 0),ce=I?m?.length??0:d?.length??0,de=Math.max(p??ce,1),{cols:he,rows:ye}=Wy(s,de),Se={word:i.length===0||i.includes("\uB2E8\uC5B4"),image:i.length===0||i.includes("\uC774\uBBF8\uC9C0"),pron:i.length===0||i.includes("\uD45C\uC900 \uBC1C\uC74C"),colloq:i.length===0||i.includes("\uAD6C\uC5B4\uCCB4 \uBC1C\uC74C")},Ge=I?(m??[]).some(J=>J!==null&&J.length>1):(d??[]).some(J=>(J.words??[]).length>1),ze=!!B?.show,Pe=!!B?.show&&B?.top!==!1,Ie=!!B?.show&&B?.bottom!==!1,Ct=B?.copyright??"\xA9 IHAB, Inc. All rights reserved.",ut=Ae("word-table-block__content",qy[l],u&&"word-table-block__content--outline",c&&Ge&&"word-table-block__content--div-line",!ze&&A&&N!=="none"&&"word-table-block__content--page-number",Pe&&"word-table-block__content--brand-top",Ie&&"word-table-block__content--brand-bottom"),at={transform:`scale(${1/ge})`,transformOrigin:"center center"},ct=g*lr.length+4*(lr.length-1),ke=!!F,Fe=ke?Math.max(1,Math.min(1/ge,W/he/ct)):1,Be=n.jsxs("div",{ref:Ne,className:"word-table__scaler",style:{height:ae*ge},children:[n.jsx("div",{className:Ae("word-table",S&&!ke&&"word-table--score-readonly",!K&&r),style:{width:W,height:ae,transform:`scale(${ge})`,transformOrigin:"top left",marginLeft:te},children:n.jsxs("div",{ref:ne,className:ut,style:{gridTemplateColumns:`repeat(${he}, 1fr)`,gridTemplateRows:`repeat(${ye}, 1fr)`},children:[I?n.jsx(n.Fragment,{children:(m??[]).map((J,se)=>n.jsx("div",{className:Ae("word-table-block__edit-cell",J?"word-table-block__edit-cell--filled":"word-table-block__edit-cell--empty",f===se?"word-table-block__edit-cell--active":""),style:yu(se,he,ye,l),children:J?n.jsxs(n.Fragment,{children:[J.map((Ce,De)=>n.jsxs(o.Fragment,{children:[De>0&&n.jsx("div",{className:"word-table-block__pair-divider"}),n.jsx(_u,{label:Ce.word,subLabel:Ce.pronunciation,colloquialLabel:Ce.colloquialPronunciation,homonum:Ce.homonum,showWord:Se.word,showImage:Se.image,showPronunciation:Se.pron,showColloquial:Se.colloq,buttonSize:g})]},De)),S&&j(se,J.map(Ce=>Ce.word).join(" / ")),y&&n.jsx("div",{className:"word-table-block__card-close",children:n.jsx(pe,{htmlType:"button",size:g,type:"dot",icon:"x",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:J.length>1?L("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):L("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),ariaLabel:J.length>1?L("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):L("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),onClick:()=>y(se)})})]}):b&&n.jsx("div",{style:at,children:n.jsx(pe,{htmlType:"button",size:"48",type:"bar",icon:"plus",label:L("wordTable.addWord","\uCD94\uAC00\uD558\uAE30"),onClick:()=>b(se)})})},se))}):n.jsxs(n.Fragment,{children:[(d??[]).map((J,se)=>n.jsxs("div",{"data-wordtable-cell":v?se:void 0,className:`word-table-block__card${v?" word-table-block__card--draggable":""}${q===se?" word-table-block__card--drag-over":""}${D===se?" word-table-block__card--dragging":""}`,style:yu(se,he,ye,l),draggable:!!v,onPointerDown:v?Ce=>Ee(Ce,se):void 0,onKeyDown:v?Ce=>ie(Ce,se):void 0,onDragStart:v?()=>{V.current=se}:void 0,onDragOver:v?Ce=>{Ce.preventDefault(),R(se)}:void 0,onDragLeave:v?()=>R(null):void 0,onDrop:v?Ce=>{Ce.preventDefault(),V.current!==null&&V.current!==se&&v(V.current,se),V.current=null,R(null)}:void 0,onDragEnd:v?()=>{V.current=null,R(null)}:void 0,children:[(J.words??[]).map((Ce,De)=>n.jsxs(o.Fragment,{children:[De>0&&n.jsx("div",{className:"word-table-block__pair-divider"}),n.jsx(_u,{label:Ce.label,subLabel:Ce.subLabel,colloquialLabel:Ce.colloquialLabel,homonum:Ce.homonum,showWord:Se.word,showImage:Se.image,showPronunciation:Se.pron,showColloquial:Se.colloq,buttonSize:g,wordInfo:Ce.grade||Ce.syllables!=null||Ce.pos||Ce.wordType?{grade:Ce.grade,syllables:Ce.syllables,pos:Ce.pos,wordType:Ce.wordType}:void 0})]},De)),S&&j(se,(J.words??[]).map(Ce=>Ce.label).join(" / ")),v&&n.jsx("div",{className:"word-table-block__card-handle",children:n.jsx(pe,{htmlType:"button",size:g,type:"dot",icon:"grip-vertical",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:L("wordTable.reorder.hint","Alt + \u2190 \u2192 \uB85C \uC21C\uC11C \uBC14\uAFB8\uAE30"),ariaLabel:L("wordTable.reorder.handle",{word:(J.words??[]).map(Ce=>Ce.label).join(" / "),defaultValue:"{{word}} \uC21C\uC11C \uBC14\uAFB8\uAE30 (Alt + \uD654\uC0B4\uD45C)"})})}),(_||C)&&n.jsxs("div",{className:"word-table-block__card-actions",children:[_?.(se,J),C&&n.jsx("div",{className:"word-table-block__card-close",children:n.jsx(pe,{htmlType:"button",size:g,type:"dot",icon:"x",variant:"transparent-lightGray",useBorder:!1,showTooltipInfo:(J.words??[]).length>1?L("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):L("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),ariaLabel:(J.words??[]).length>1?L("wordPrint.removePair","\uB300\uB9BD\uC30D \uBE7C\uAE30"):L("wordPrint.removeWord","\uB2E8\uC5B4 \uBE7C\uAE30"),onClick:()=>C(J.id)})})]})]},J.id)),Array.from({length:Math.max(0,he*ye-(d?.length??0))}).map((J,se)=>{const Ce=(d?.length??0)+se<de;return n.jsx("div",{className:"word-table-block__card word-table-block__card--filler",children:h&&b&&Ce&&n.jsx("div",{style:at,children:n.jsx(pe,{htmlType:"button",size:g,type:"bar",icon:"plus",label:L("wordTable.addWord","\uCD94\uAC00\uD558\uAE30"),onClick:()=>b((d?.length??0)+se)})})},`filler-${se}`)})]}),Pe&&n.jsx(n.Fragment,{children:n.jsxs("div",{className:"word-table__band word-table__band--top",children:[n.jsx("img",{className:"word-table__brand-logo",src:B?.topLogo?.src??Qa,alt:B?.topLogo?.alt??"\uB9D0\uADC0"}),(()=>{const J=[B?.title&&n.jsx("span",{className:"word-table__paper-title",children:B.title},"t"),B?.owner&&n.jsx("span",{className:"word-table__owner",children:B.owner},"o"),x&&n.jsx("span",{className:"word-table__code",children:x},"c")].filter(Boolean);return J.length===0?null:n.jsx("span",{className:"word-table__ident",children:J.map((se,Ce)=>n.jsxs(o.Fragment,{children:[Ce>0&&n.jsx("span",{className:"word-table__ident-dot","aria-hidden":"true",children:"\xB7"}),se]},Ce))})})()]})}),Ie&&n.jsx(n.Fragment,{children:n.jsxs("div",{className:"word-table__band word-table__band--bottom",children:[n.jsxs("span",{className:"word-table__brand-by",children:[B?.bottomLogo?n.jsx("img",{className:"word-table__brand-logo--ihab word-table__brand-logo--given",src:B.bottomLogo.src,alt:B.bottomLogo.alt}):n.jsx("span",{className:"word-table__brand-logo--ihab",role:"img","aria-label":"IHAB"}),n.jsx("span",{className:"word-table__copyright",children:Ct})]}),n.jsxs("span",{className:"word-table__band-end",children:[B?.link&&n.jsx("span",{className:"word-table__link",children:B.link}),A&&N!=="none"&&n.jsx("span",{className:"word-table__page-count",children:L("wordTable.filter.pageIndicator",{current:A.current,total:A.total})})]})]})}),!ze&&A&&N!=="none"&&n.jsx("span",{className:`word-table__page-number body-3 word-table__page-number--${N}`,children:L("wordTable.filter.pageIndicator",{current:A.current,total:A.total})})]})}),v&&n.jsx("span",{role:"status",style:Jy,children:M})]}),Je=fe==null?Be:n.jsx("div",{className:"word-table__frame",style:{height:fe},children:Be});return K?n.jsx(la,{type:"page",icon:t,title:e,disc:a,className:Ae("word-table-block",r),children:Je}):Je}function n5(e,t,a){const r=[];for(const s of e??[]){if(s.type==="note"||s.type==="input")continue;const i=s.displayLabel??s.label,l=a5(s,t?.[s.label],a);l!==null&&r.push(`${i} ${l}`)}return r.join(" \xB7 ")}function a5(e,t,a){const r=(Array.isArray(t)?t:t===void 0?[]:[t]).filter(s=>s!==un);return r.length===0?e.allOption?e.allLabel??a:null:r.map(s=>r5(e,s)).join(", ")}function r5(e,t){const a=[...e.items??[],...(e.groups??[]).flat()];for(const r of a)if(r!=null){if(typeof r=="string"){if(r===t)return r;continue}if(r.value===t)return r.displayLabel??r.labels?.join(" ")??r.value}return t}function Nn({title:e,titleLevel:t=2,headerAction:a,headerSummary:r,collapsible:s=!1,defaultCollapsed:i=!1,collapsed:l,onCollapsedChange:u,footer:c,sections:d,selected:m={},onSelect:p,align:f,sectionAlign:b,className:y}){const C=(f??(b==="vertical"?"newline":"inline"))==="inline",{t:v}=ve.useTranslation(),[_,h]=o.useState(i),w=l??_,g=()=>{const E=!w;h(E),u?.(E)},B=E=>{if(!s)return;const F=E.target;!F||typeof F.closest!="function"||F.closest(".filter-panel__collapse-toggle")||F.closest('button, a, input, select, textarea, label, [role="radiogroup"], [role="button"], [role="menu"]')||g()},x=o.useMemo(()=>r!==void 0||!w?"":n5(d,m,v("common.all","\uC804\uCCB4")),[r,w,d,m,v]),A=r??(x?n.jsx("span",{className:"filter-panel__header-summary body-3",children:x}):null),N=e||a||r||s,k=o.useId(),S=t?`h${t}`:"span";return n.jsxs("div",{className:Ae("filter-panel",s?"filter-panel--collapsible":"",w?"filter-panel--collapsed":"",y),role:typeof e=="string"&&e?"group":void 0,"aria-labelledby":typeof e=="string"&&e?k:void 0,children:[N&&n.jsxs("div",{className:"filter-panel__header",onClick:s?B:void 0,children:[n.jsx("div",{className:"filter-panel__title-row",children:e&&n.jsx(S,{id:k,className:"filter-panel__title h4",children:e})}),n.jsxs("div",{className:"filter-panel__header-actions",children:[w?A:a,s&&n.jsx(pe,{htmlType:"button",size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:w?"chevron-down":"chevron-up",className:"filter-panel__collapse-toggle",ariaLabel:w?v("common.expand","\uD3BC\uCE58\uAE30"):v("common.collapse","\uC811\uAE30"),"aria-expanded":!w,onClick:g})]})]}),!w&&n.jsxs(n.Fragment,{children:[n.jsx("div",{className:Ae("filter-panel__sections",C?"filter-panel__sections--row":""),children:d.map(E=>{const F=m[E.label],$=F===void 0||(Array.isArray(F)?F.length===0:!1),G=(E.items??[]).filter(L=>L!=null);E.allOption&&G.some(L=>(typeof L=="string"?L:L.value)===un)&&Yt(`filter-panel-all-value:${E.label}`,`[FilterPanel] '${E.label}' \uC808\uC5D0 allOption \uACFC \uAC12 '${un}' \uC778 \uBCF4\uAE30\uAC00 \uD568\uAED8 \uC788\uB2E4 \u2014 \uB450 \uC120\uD0DD\uC774 \uAD6C\uBCC4\uB418\uC9C0 \uC54A\uB294\uB2E4. \uBCF4\uAE30 \uAC12\uC744 \uBC14\uAFD4\uB77C.`);const j=L=>{const I=typeof L=="string"?L:L.value,K=typeof L!="string"&&!!L.disabled,ee=typeof L!="string"?L.labels:void 0,V=typeof L!="string"?L.displayLabel:void 0,q=typeof L!="string"?L.tooltip:void 0,R=typeof L!="string"?L.descriptionTooltip:void 0,O=typeof L!="string"?L.shape:void 0,D=Array.isArray(F)?F.includes(I):F===I;return n.jsx(pe,{htmlType:"button",size:"keyboard",label:ee??V??I,type:E.itemType??(ee?"bar":I.length===1?"dot":void 0),selected:D,disabled:K,shape:O,showTooltipInfo:!!q,tooltipInfoText:q,tooltipDescription:R,onClick:()=>p?.(I,E.label)},I)};return n.jsxs(o.Fragment,{children:[E.groupLabel&&n.jsxs("div",{className:"filter-panel__group-label-row",children:[n.jsx("div",{className:"filter-panel__group-label body-2",children:E.groupLabel}),E.groupAction]}),n.jsxs("div",{className:Ae("filter-panel__section",E.layout==="row"?"filter-panel__section--row":"",E.block?"filter-panel__section--block":""),children:[n.jsxs("div",{className:"filter-panel__section-label-row",children:[n.jsx("span",{className:"filter-panel__section-label body-3",children:E.displayLabel??E.label}),E.labelAction??(E.labelInfo?n.jsx(ja,{...E.labelInfo}):null)]}),E.type==="note"?n.jsx("div",{className:"filter-panel__note body-3",children:E.content}):E.type==="input"?n.jsx(Gn,{className:"filter-panel__textfield",placeholder:E.placeholder,ariaLabel:E.displayLabel??E.label,value:m[E.label]??"",onChange:L=>p?.(L,E.label),error:E.error}):!E.multiple&&E.display==="segmented"?n.jsx(An,{ariaLabel:E.displayLabel??E.label,options:[...E.allOption?[{key:un,label:E.allLabel??v("common.all","\uC804\uCCB4"),disabled:E.allOptionDisabled}]:[],...G.map(L=>{const I=typeof L=="string"?L:L.value,K=typeof L!="string"?L.displayLabel:void 0,ee=typeof L!="string"?L.disabled:void 0;return{key:I,label:K??I,disabled:ee}})],value:$&&E.allOption?un:m[E.label]??"",onChange:L=>p?.(L,E.label),size:32}):!E.multiple&&E.display==="dropdown"?n.jsx(cn,{className:"filter-panel__dropdown",ariaLabel:typeof E.label=="string"?E.label:void 0,size:40,options:[...E.allOption?[{value:un,label:E.allLabel??v("common.all","\uC804\uCCB4"),disabled:E.allOptionDisabled}]:[],...G.map(L=>{const I=typeof L=="string"?L:L.value,K=typeof L!="string"?L.displayLabel:void 0,ee=typeof L!="string"?L.disabled:void 0;return{value:I,label:K??I,disabled:ee}})],value:$&&E.allOption?un:m[E.label],onChange:L=>p?.(L,E.label)}):n.jsxs("div",{className:E.groups?"filter-panel__item-groups":"filter-panel__items",children:[E.allOption&&!E.groups&&n.jsx(pe,{htmlType:"button",size:"keyboard",label:E.allLabel??v("common.all","\uC804\uCCB4"),selected:$,disabled:E.allOptionDisabled,onClick:()=>p?.(un,E.label)}),E.groups?E.groups.map((L,I)=>n.jsxs("div",{className:"filter-panel__item-group",children:[I===0&&E.allOption&&n.jsx(pe,{htmlType:"button",size:"keyboard",label:E.allLabel??v("common.all","\uC804\uCCB4"),selected:$,disabled:E.allOptionDisabled,onClick:()=>p?.(un,E.label)}),L.filter(K=>K!=null).map(j)]},I)):G.map(j)]})]})]},E.label)})}),c!=null&&c!==!1&&n.jsx("div",{className:"filter-panel__footer body-3",children:c})]})]})}const o5=[1,2,3,4,5,6,7,8,9,10,11,12],Au=[8,4,2,1];function ku(e,t){return{label:e("wordTable.filter.composition","\uAD6C\uC131"),items:[{value:"\uC774\uBBF8\uC9C0",disabled:!t.hasImage,displayLabel:e("wordTable.filter.image","\uC774\uBBF8\uC9C0")},{value:"\uB2E8\uC5B4",displayLabel:e("wordTable.filter.word","\uB2E8\uC5B4")},{value:"\uD45C\uC900 \uBC1C\uC74C",displayLabel:e("wordTable.filter.standardPron","\uD45C\uC900 \uBC1C\uC74C")},{value:"\uAD6C\uC5B4\uCCB4 \uBC1C\uC74C",disabled:!t.hasColloquial,displayLabel:e("wordTable.filter.colloquialPron","\uAD6C\uC5B4\uCCB4 \uBC1C\uC74C")}],multiple:!0,allOption:!0}}function Nu(e){return{label:e("wordTable.filter.paperOrientation","\uC6A9\uC9C0 \uBC29\uD5A5"),items:[{value:"\uAC00\uB85C",displayLabel:e("wordTable.filter.landscape","\uAC00\uB85C")},{value:"\uC138\uB85C",displayLabel:e("wordTable.filter.portrait","\uC138\uB85C")}],display:"segmented"}}function Du(e){return{label:e("wordTable.filter.border","\uC678\uACFD\uC120"),items:[{value:"\uD45C\uC2DC",displayLabel:e("wordTable.filter.show","\uD45C\uC2DC")},{value:"\uBBF8\uD45C\uC2DC",displayLabel:e("wordTable.filter.hide","\uBBF8\uD45C\uC2DC")}],display:"segmented"}}function Eu(e){return{label:e("wordTable.filter.topInfo","\uC0C1\uB2E8 \uC815\uBCF4"),items:[{value:"\uD45C\uC2DC",displayLabel:e("wordTable.filter.show","\uD45C\uC2DC")},{value:"\uBBF8\uD45C\uC2DC",displayLabel:e("wordTable.filter.hide","\uBBF8\uD45C\uC2DC")}],display:"segmented"}}function Su(e){return{label:e("wordTable.filter.bottomInfo","\uD558\uB2E8 \uC815\uBCF4"),items:[{value:"\uD45C\uC2DC",displayLabel:e("wordTable.filter.show","\uD45C\uC2DC")},{value:"\uBBF8\uD45C\uC2DC",displayLabel:e("wordTable.filter.hide","\uBBF8\uD45C\uC2DC")}],display:"segmented"}}function ju(e){return{label:e("wordTable.filter.cutLine","\uC808\uCDE8\uC120"),items:[{value:"\uD45C\uC2DC",displayLabel:e("wordTable.filter.show","\uD45C\uC2DC")},{value:"\uC810\uC120",displayLabel:e("wordTable.filter.dotted","\uC810\uC120")},{value:"\uCF54\uB108",displayLabel:e("wordTable.filter.corner","\uCF54\uB108")},{value:"\uBBF8\uD45C\uC2DC",displayLabel:e("wordTable.filter.hide","\uBBF8\uD45C\uC2DC")}],display:"segmented"}}function Tu(e){return{label:e("wordPrint.divLine","\uB300\uB9BD\uC120"),items:[{value:"\uD45C\uC2DC",displayLabel:e("wordTable.filter.show","\uD45C\uC2DC")},{value:"\uBBF8\uD45C\uC2DC",displayLabel:e("wordTable.filter.hide","\uBBF8\uD45C\uC2DC")}],display:"segmented"}}function Mu(e,t){return{label:e(t.hasPairs?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord"),items:[t.itemCount,...Au.filter(a=>a<t.itemCount)].map(a=>({value:`${a}\uAC1C`,displayLabel:e("wordTable.filter.itemsPerPageOption",{count:a})})),display:"segmented"}}function Lu(e,t){return e===t||!Au.includes(e)?Number.POSITIVE_INFINITY:e}function s5(e){return{label:e("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638"),items:[{value:"\uC67C\uCABD",displayLabel:e("wordTable.filter.pageNumberLeft","\uC67C\uCABD")},{value:"\uC911\uC559",displayLabel:e("wordTable.filter.pageNumberCenter","\uC911\uC559")},{value:"\uC624\uB978\uCABD",displayLabel:e("wordTable.filter.pageNumberRight","\uC624\uB978\uCABD")},{value:"\uBBF8\uD45C\uC2DC",displayLabel:e("wordTable.filter.hide","\uBBF8\uD45C\uC2DC")}],display:"segmented"}}const $u={left:"\uC67C\uCABD",center:"\uC911\uC559",right:"\uC624\uB978\uCABD",none:"\uBBF8\uD45C\uC2DC"};function Ru(e){return e==="\uC67C\uCABD"?"left":e==="\uC911\uC559"?"center":e==="\uC624\uB978\uCABD"?"right":"none"}function Pu(e,t){return{[e("wordTable.filter.composition","\uAD6C\uC131")]:t.contentTypes,[e("wordTable.filter.paperOrientation","\uC6A9\uC9C0 \uBC29\uD5A5")]:t.orientation==="landscape"?"\uAC00\uB85C":"\uC138\uB85C",[e("wordTable.filter.border","\uC678\uACFD\uC120")]:t.showOutline?"\uD45C\uC2DC":"\uBBF8\uD45C\uC2DC",[e("wordTable.filter.cutLine","\uC808\uCDE8\uC120")]:t.cutLine,[e("wordPrint.divLine","\uB300\uB9BD\uC120")]:t.showDivLine?"\uD45C\uC2DC":"\uBBF8\uD45C\uC2DC",...t.showTopInfo!=null?{[e("wordTable.filter.topInfo","\uC0C1\uB2E8 \uC815\uBCF4")]:t.showTopInfo?"\uD45C\uC2DC":"\uBBF8\uD45C\uC2DC"}:{},...t.showBottomInfo!=null?{[e("wordTable.filter.bottomInfo","\uD558\uB2E8 \uC815\uBCF4")]:t.showBottomInfo?"\uD45C\uC2DC":"\uBBF8\uD45C\uC2DC"}:{}}}function Iu(e,t,a,r){return a===e("wordTable.filter.composition","\uAD6C\uC131")?t===un?(r.setContentTypes(()=>[]),!0):(r.setContentTypes(s=>s.includes(t)?s.filter(i=>i!==t):[...s,t]),!0):a===e("wordTable.filter.paperOrientation","\uC6A9\uC9C0 \uBC29\uD5A5")?(r.setOrientation(t==="\uAC00\uB85C"?"landscape":"portrait"),!0):a===e("wordTable.filter.border","\uC678\uACFD\uC120")?(r.setShowOutline(t==="\uD45C\uC2DC"),!0):a===e("wordTable.filter.cutLine","\uC808\uCDE8\uC120")?(r.setCutLine(t),!0):a===e("wordPrint.divLine","\uB300\uB9BD\uC120")?(r.setShowDivLine(t==="\uD45C\uC2DC"),!0):a===e("wordTable.filter.topInfo","\uC0C1\uB2E8 \uC815\uBCF4")?(r.setShowTopInfo?.(t==="\uD45C\uC2DC"),!0):a===e("wordTable.filter.bottomInfo","\uD558\uB2E8 \uC815\uBCF4")?(r.setShowBottomInfo?.(t==="\uD45C\uC2DC"),!0):!1}function i5(e){return"sections"in e}function To(e){const{t}=ve.useTranslation(),{title:a,className:r,collapsible:s,defaultCollapsed:i,collapsed:l,onCollapsedChange:u,headerSummary:c}=e,d={collapsible:s,defaultCollapsed:i,collapsed:l,onCollapsedChange:u,headerSummary:c};if(i5(e))return n.jsx(Nn,{className:r,title:a??t("wordTable.filterTitle","\uD45C \uC124\uC815"),sections:e.sections,selected:e.selected,onSelect:e.onSelect,...d,align:"inline"});const{hasImage:m,hasColloquial:p,contentTypes:f,orientation:b,showOutline:y,cutLine:C,showDivLine:v,setters:_,showCutLine:h=!1,showDivLine2:w=!1,middleSections:g=[],extraSelected:B={},onExtraSelect:x,showPaperBands:A=!1,showTopInfo:N=!0,showBottomInfo:k=!0}=e,S=[ku(t,{hasImage:m,hasColloquial:p}),Nu(t),...g,Du(t),...h?[ju(t)]:[],...w?[Tu(t)]:[],...A?[Eu(t),Su(t)]:[]],E={...Pu(t,{contentTypes:f,orientation:b,showOutline:y,cutLine:C,showDivLine:v,showTopInfo:N,showBottomInfo:k}),...B},F=($,G)=>{Iu(t,$,G,_)||x?.($,G)};return n.jsx(Nn,{className:r,title:a??t("wordTable.filterTitle","\uD45C \uC124\uC815"),sections:S,selected:E,onSelect:F,...d,sectionAlign:"horizontal"})}function Fu(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}function Mo(e){return e.replace(/[\\/:*?"<>|]/g,"_").trim()}let ur=null,da=null;function l5(e,t,a,r="",s=""){if(e.length===0||da&&da.iframe.isConnected&&Date.now()-da.at<1e4)return;const i=r?Mo(r):"";ur?.();let l=null;if(i){const d=document.title;document.title=i,l=()=>{document.title=d,window.removeEventListener("afterprint",l),ur===l&&(ur=null)},ur=l,window.addEventListener("afterprint",l)}const u=document.createElement("iframe");u.style.cssText="position:fixed;left:-10000px;top:0;width:1200px;height:900px;border:0;",document.body.appendChild(u);const c=u.contentDocument;if(!c){u.remove();return}da={iframe:u,at:Date.now()},c.open(),c.write(Lo(e,t,a,!0,i,s)),c.close(),u.contentWindow?.addEventListener("afterprint",()=>{l?.(),setTimeout(()=>{u.remove(),da?.iframe===u&&(da=null)},0)})}function Lo(e,t,a,r=!1,s="",i=""){s=s?Mo(s):"";const l=Array.from(document.styleSheets).flatMap(m=>{try{return Array.from(m.cssRules).map(p=>p.cssText)}catch{return[]}}).join(`
|
|
860
860
|
`),u="light",c=i?`<div class="paper-head">${Fu(i)}</div>`:"",d=e.map(m=>{const p=m.cloneNode(!0);return p.querySelectorAll('[data-play-state="play"]').forEach(f=>f.style.display=""),p.querySelectorAll('[data-play-state="pause"]').forEach(f=>f.style.display="none"),p.querySelectorAll(".word-table-cell__score-slot:not(.word-table-cell__score-slot--on)").forEach(f=>f.remove()),p.querySelectorAll(".word-table-cell__spinner").forEach(f=>f.remove()),p.querySelectorAll("img").forEach(f=>{f.style.opacity==="0"&&(f.setAttribute("onload","this.style.opacity=''"),f.setAttribute("onerror","this.style.visibility='hidden'"))}),`<div class="paper-wrap">${c}${p.outerHTML}</div>`}).join(`
|
|
861
861
|
`);return`<!DOCTYPE html>
|
|
862
862
|
<html data-theme="${u}">
|
|
@@ -1042,10 +1042,10 @@ ${g.badge}`:g.badge:void 0;if(x&&c(g.code))return null;if(!g.badge&&!m)return p(
|
|
|
1042
1042
|
`:""}
|
|
1043
1043
|
<\/script>
|
|
1044
1044
|
</body>
|
|
1045
|
-
</html>`}const u5=1e3;function $o({getElements:e,paperW:t,paperH:a,fileName:r="",onPopupBlocked:s,header:i=""}){const{t:l}=ye.useTranslation(),u=o.useCallback(()=>{l5(e(),t,a,r,i)},[e,t,a,r,i]),c=o.useCallback(()=>{const m=e();if(m.length===0)return;const p=window.open("","_blank");if(!p){s?.();return}p.document.write(Lo(m,t,a,!1,r,i)),p.document.close()},[e,t,a,r,s,i]),d=o.useCallback(()=>{const m=e();if(m.length===0)return;const p=Lo(m,t,a,!1,r,i),f=new Blob([p],{type:"text/html;charset=utf-8"}),b=URL.createObjectURL(f),y=(r?Mo(r):"")||l("wordTable.printFileNameSingle","\uB2E8\uC5B4\uD45C"),C=Object.assign(document.createElement("a"),{href:b,download:`${y}.html`});document.body.appendChild(C),C.click(),document.body.removeChild(C),setTimeout(()=>URL.revokeObjectURL(b),u5)},[e,t,a,r,i,l]);return{print:u,openNewWindow:c,downloadHtml:d}}function Ou(e,t){const{t:a}=ye.useTranslation(),r=t?.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"),[m,p]=o.useState(!0),[f,b]=o.useState(!0),[y,C]=o.useState(!0),[v,_]=o.useState(!0),[h,w]=o.useState(8),[g,B]=o.useState("right"),x=e.length,A=e.some(K=>(K.words??[]).length>1),N=e.some(K=>(K.words??[]).some(ee=>!!ee.colloquialLabel)),k=Math.min(h,Math.max(x,1)),S=o.useMemo(()=>fu(e,k),[e,k]),E=S.length>1,F=k,[$,U]=o.useState(!1);o.useEffect(()=>{let K=!1;if(!Jn()){U(!1);return}return Promise.all(e.flatMap(ee=>(ee.words??[]).map(V=>ti(V.label,V.homonum)))).then(ee=>{K||U(ee.some(Boolean))},()=>{}),()=>{K=!0}},[e]);const j=o.useMemo(()=>[ku(a,{hasImage:$,hasColloquial:N}),Nu(a),...x>0?[Mu(a,{hasPairs:A,itemCount:x})]:[],Du(a),...F>1?[ju(a)]:[],...A?[Tu(a)]:[],...r?[Eu(a),Su(a)]:[]],[a,$,N,x,A,E,F,r]),T={...Pu(a,{contentTypes:l,orientation:s,showOutline:m,cutLine:c,showDivLine:v,showTopInfo:f,showBottomInfo:y}),...x>0?{[a(A?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord")]:`${k}\uAC1C`}:{},...E?{[a("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")]:$u[g]}:{}},I=o.useCallback((K,ee)=>{Iu(a,K,ee,{setContentTypes:u,setOrientation:i,setShowOutline:p,setCutLine:d,setShowDivLine:_,setShowTopInfo:b,setShowBottomInfo:C})||(ee===a("wordTable.filter.itemsPerPagePair","\uD398\uC774\uC9C0\uB2F9 \uB300\uB9BD\uC30D \uC218")||ee===a("wordTable.filter.itemsPerPageWord","\uD398\uC774\uC9C0\uB2F9 \uB2E8\uC5B4 \uC218")?w(Lu(parseInt(K),x)):ee===a("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")&&B(Ru(K)))},[a,x]);return{settings:{orientation:s,contentTypes:l,cutLine:c,showOutline:m,showDivLine:v,count:F,showTopInfo:f,showBottomInfo:y},filterSections:j,filterSelected:T,handleSelect:I,pages:S,isPaginated:E,pageNumberPosition:g}}function c5({items:e,words:t,title:a,subtitle:r,emptyText:s,buttons:i,renderButtons:l,renderFooter:u,footerClassName:c,footerLayout:d,printFileName:m,showSettings:p,autoPrint:f,className:b,onClose:y,scoring:C=!1,onScoreChange:v,printHeader:_,brand:h,code:w,beforeClose:g}){const{t:B}=ye.useTranslation(),x=o.useMemo(()=>Array.isArray(e)?e:(Array.isArray(t)?t:[]).filter(ue=>typeof ue=="string"&&ue.length>0).map((ue,Ee)=>({id:`${ue}-${Ee}`,words:[{label:ue}]})),[e,t]),{settings:A,filterSections:N,filterSelected:k,handleSelect:S,pages:E,isPaginated:F,pageNumberPosition:$}=Ou(x,{paperBands:!!h?.show}),U=o.useMemo(()=>Cu(E.map(ue=>ue.length)),[E]),[j,T]=o.useState({}),I=o.useCallback((ue,Ee)=>{T(W=>({...W,[ir(ue)]:pu(W[ir(ue)]??null,Ee)}))},[]),K=o.useRef(v);o.useEffect(()=>{K.current=v});const ee=o.useRef(j);o.useEffect(()=>{ee.current!==j&&(ee.current=j,K.current?.(So(j)))},[j]);const V=o.useMemo(()=>So(j),[j]),q=o.useRef(null),{toastMessage:P,toastKey:O,showWarning:D,clearToast:H}=cl("warning"),L=o.useRef([]),R=o.useCallback(()=>F?L.current.filter(ue=>ue!==null):q.current?[q.current]:[],[F]),{print:z,openNewWindow:J}=$o({getElements:R,paperW:la[A.orientation].width,paperH:la[A.orientation].height,fileName:m??"",header:_??"",onPopupBlocked:()=>D(B("wordTable.popupBlocked","\uD31D\uC5C5\uC774 \uCC28\uB2E8\uB418\uC5C8\uC2B5\uB2C8\uB2E4. \uBE0C\uB77C\uC6B0\uC800 \uC124\uC815\uC5D0\uC11C \uD31D\uC5C5\uC744 \uD5C8\uC6A9\uD574 \uC8FC\uC138\uC694."))}),Y=o.useMemo(()=>u?void 0:l?l({print:z,openNewWindow:J}):m?[{label:B("wordTable.openNewWindow","\uC0C8 \uCC3D\uC73C\uB85C \uBCF4\uAE30"),variant:"default",onClick:()=>J()},{label:B("wordTable.print","\uC778\uC1C4\uD558\uAE30"),variant:"default",onClick:()=>z()},...i??[]]:i,[u,l,m,i,B,z,J]),Z=o.useMemo(()=>u?u({print:z,openNewWindow:J}):void 0,[u,z,J]),ne=o.useRef(!1),le=o.useRef(z);return o.useEffect(()=>{le.current=z},[z]),o.useEffect(()=>{if(!f||ne.current)return;const ue=window.setTimeout(()=>{ne.current=!0,le.current()},100);return()=>window.clearTimeout(ue)},[f]),n.jsxs(Ln,{title:a??B("keyWords.title","\uC8FC\uC694 \uB2E8\uC5B4"),subtitle:r,size:"large",className:ke("word-table-popup",b),buttons:Y,footer:Z,footerClassName:c,footerLayout:d,beforeClose:g,onClose:y,children:[x.length>0?n.jsxs("div",{className:"word-table-popup__body",children:[p&&n.jsx(To,{sections:N,selected:k,onSelect:S}),F?n.jsx("div",{className:"word-table-popup__pages",children:E.map((ue,Ee)=>n.jsx(ua,{items:ue,orientation:A.orientation,contentTypes:A.contentTypes,cutLine:A.cutLine,showOutline:A.showOutline,showDivLine:A.showDivLine,count:A.count,contentRef:W=>{L.current[Ee]=W},pageNumber:{current:Ee+1,total:E.length},pageNumberPosition:$,brand:h&&{...h,top:A.showTopInfo,bottom:A.showBottomInfo},code:w,scoring:C,scoreIndexOffset:U[Ee],marks:V,onMarkClick:I},Ee))}):n.jsx("div",{className:"word-table-popup__table",children:n.jsx(ua,{items:x,orientation:A.orientation,contentTypes:A.contentTypes,cutLine:A.cutLine,showOutline:A.showOutline,showDivLine:A.showDivLine,count:A.count,contentRef:q,fitHeight:!0,scoring:C,marks:V,onMarkClick:I,brand:h&&{...h,top:A.showTopInfo,bottom:A.showBottomInfo},code:w})})]}):n.jsx("p",{className:"word-table-popup__empty body-3",children:s??B("keyWords.empty","\uCD94\uCD9C\uB41C \uC8FC\uC694 \uB2E8\uC5B4\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")}),n.jsx(oa,{message:P,position:"top",onClose:H},O)]})}const d5=new Set(["x","triangle"]);function p5(e,t){const a=[];for(let r=0;r<e.length;r++){const s=t[String(r)];s&&d5.has(s)&&a.push(e[r])}return a}const m5=/\s*(?:(\d+)차\s*)?복습\s*\d{2}\.\d{2}$/;function Hu(e){const t=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:t,\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(t);return{\uBC14\uD0D5:l?t.slice(0,l.index).trim():t,\uD68C\uCC28:i+1}}let r=t,s=1;for(;;){const i=m5.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 h5(e,t){const[,a,r]=qr(t).split("-"),s=`${a}.${r}`,{\uBC14\uD0D5:i,\uD68C\uCC28:l}=Hu(typeof e=="string"?{name:e}:e),u=l>=2?`${l}\uCC28 `:"";return`${i||"\uB2E8\uC5B4\uD45C"} ${u}\uBCF5\uC2B5 ${s}`}function C5(e){return{reviewOf:e.reviewOf??e.id??void 0,reviewRound:Hu(e).\uD68C\uCC28}}function f5(e,t){const a={};for(const[r,s]of Object.entries(t)){if(s!=="o"&&s!=="triangle"&&s!=="x")continue;const i=Number(r),l=e[i];l&&(a[r]=l)}return a}function g5(e){return e.map(t=>t.label).join(" / ")}function b5(e){return e.map(t=>t.homonum!=null?`${t.label}#${t.homonum}`:t.label).join(" / ")}function zu(e){return e.split(" / ").map(t=>t.replace(/#\d+$/,"")).join(" / ")}function y5(e,t,a){const r=pi(a);return[e.trim(),r,t.trim()].filter(Boolean).join(" \xB7 ")}function Vu(e,t,a){return a===0?0:(e+t*.5)/a}function v5(e){const t=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=t.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,t.set(u,c)}const r=[];for(const[s,i]of t){const l=i.o+i.triangle+i.x;r.push({label:zu(s),key:s,tried:l,o:i.o,triangle:i.triangle,x:i.x,rate:Vu(i.o,i.triangle,l),latest:i.latest,latestAt:i.latestAt})}return r.sort((s,i)=>s.rate-i.rate||i.tried-s.tried||ra(s.label,i.label)||ra(s.key??s.label,i.key??i.label)),r}function x5(e){const t=new Map;for(const r of e){const s=r.tableId??`name:${r.tableName}`,i=t.get(s)??{tableName:r.tableName,tableId:r.tableId,rows:[]};i.rows.push(r),t.set(s,i)}const a=[];for(const r of t.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(p=>p==="o").length,m=c.filter(p=>p==="triangle").length;return Vu(d,m,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 _5(e,t=8){return e.filter(a=>a.latest!=="o").slice(0,t)}function w5(e,t){if(e==null||t==null||e===""||t==="")return 0;if(typeof e=="number"&&typeof t=="number")return e-t;const a=String(e),r=String(t);return+(a>r)-+(a<r)}function B5(e){const t=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)||w5(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}`,m=t.get(d)??{trainingType:l.trainingType,itemId:c,title:u,tried:0,wrong:0,latestCorrect:l.isCorrect,latestAt:l.answeredAt,lastSelected:l.selected,setIds:[]};if(m.tried++,l.isCorrect||m.wrong++,m.title=u,m.latestCorrect=l.isCorrect,m.latestAt=l.answeredAt,m.lastSelected=l.selected,l.setId){const p=m.setIds.indexOf(l.setId);p>0&&m.setIds.splice(p,1),p!==0&&m.setIds.unshift(l.setId)}t.set(d,m)}const i=[...t.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||ra(l.title,u.title)),{items:i,counted:a,skippedNoTitle:r}}function A5(e,t=8){return e.filter(a=>!a.latestCorrect).slice(0,t)}function k5(e){const t=new Map;for(const r of e){const s=t.get(r.trainingType)??[];s.push(r),t.set(r.trainingType,s)}const a=[...t.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 Ro=["LISTEN_IN_NOISE","SHORT_STORY","LONG_STORY","ORDERING_SENTENCE"];function N5(e){const t=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=t.get(u)??{setId:l,trainingType:i.trainingType,pending:0};c.pending++,t.set(u,c)}const r=(i,l)=>l.pending-i.pending||i.trainingType.localeCompare(l.trainingType)||i.setId.localeCompare(l.setId),s=[...t.values()];return{sentence:s.filter(i=>Ro.includes(i.trainingType)).sort(r),word:s.filter(i=>!Ro.includes(i.trainingType)).sort(r),noSet:a}}function D5(e,t,a=5){const r=new Set(t);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||ra(i.name,l.name)),s.slice(0,Math.max(0,a))}function E5(e,t){const a=new Set(e.flatMap(r=>r.covered));return t.filter(r=>!a.has(r))}function S5(e,t){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 t){const i=a.get(s);i!==void 0&&r.push(i)}return r}function Po(e,t,a){return typeof e=="string"&&e?e:t.replace(/\{\{(\w+)\}\}/g,(r,s)=>String(a[s]))}function j5(e,t){const a=Number.isFinite(e)?Math.round(e):0;if(!a||a<=0)return"-";const r=Math.floor(a/60),s=a%60;return t?t(r,s):r>0&&s>0?Po(Lt.t("customers.duration.minSec",{m:r,s,defaultValue:"{{m}}\uBD84 {{s}}\uCD08"}),"{{m}}\uBD84 {{s}}\uCD08",{m:r,s}):r>0?Po(Lt.t("customers.duration.min",{m:r,defaultValue:"{{m}}\uBD84"}),"{{m}}\uBD84",{m:r}):Po(Lt.t("customers.duration.sec",{s,defaultValue:"{{s}}\uCD08"}),"{{s}}\uCD08",{s})}function T5(e,t){const a=[],r=new Set;for(const s of e){const i=t(s);r.has(i)||(r.add(i),a.push({key:i,value:s,pinned:!1}))}return a}function M5(e,t){return e.map(a=>a.key===t?{...a,pinned:!a.pinned}:a)}function L5(e,t){return e.filter(a=>a.key!==t)}function $5(e,t,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 t){if(l.length>=i)break;const m=a(d);u.has(m)||(u.add(m),l.push({key:m,value:d,pinned:!1}))}const c=[...l];return e.map(d=>d.pinned?d:c.shift()).filter(d=>d!==void 0)}function R5(e){return e.map(t=>t.value)}function P5(e){const{category:t={},isSelected:a=!1,onClick:r}=e||{},s=t?.key?` icon-grid-menu__button--${t.key}`:"",i=o.useId();return n.jsxs("div",{className:`icon-grid-menu__button-wrapper${s}`,children:[n.jsx("button",{className:`icon-grid-menu__button${a?" icon-grid-menu__button--selected":""}`,"data-key":t?.key,type:"button",onClick:a?void 0:r,"aria-pressed":a,"aria-labelledby":i,children:n.jsx(Je,{icon:t.icon,label:t.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"})}),n.jsx("span",{id:i,className:"icon-grid-menu__button-label button-1",children:t.label})]})}function I5(e){const{categories:t=[],selected:a,onSelect:r,size:s="medium"}=e||{},i=a!==void 0,[l,u]=o.useState(()=>i?null:(t&&t[0]?.key)??null),c=i?a:l,d=o.useRef(r);o.useEffect(()=>{d.current=r});const m=o.useRef(!1),p=(t&&t[0]?.key)??null;o.useEffect(()=>{if(i||m.current||!p)return;m.current=!0;const b=l??p;l==null&&u(b),d.current?.(b)},[i,p]);const f=o.useCallback(b=>{const y=c===b?null:b;m.current=!0,i||u(y),r?.(y)},[c,i,r]);return n.jsx("div",{className:`icon-grid-menu icon-grid-menu--${s}`,children:(t||[]).map(b=>n.jsx(P5,{category:b,isSelected:c===b.key,onClick:()=>f(b.key)},b.key))})}function F5({subs:e=[],selected:t,onSelect:a,size:r="medium"}){const s=r==="small"?32:40;return n.jsx("div",{className:`choice-chips choice-chips--${r}`,children:n.jsx("div",{className:"choice-chips__list",children:e.map(i=>n.jsx(me,{htmlType:"button",size:s,type:"bar",label:i.label,selected:t===i.key,className:"choice-chips__button",onClick:()=>a?.(i.key)},i.key))})})}function O5({onTermsClick:e,onPrivacyClick:t,contact:a}={}){const r=a?.email??"support@ihab.co.kr",s=a?.tel??"031-380-3724",{t:i}=ye.useTranslation();return n.jsx("footer",{className:"site-footer",children:n.jsxs("div",{className:"safearea",children:[n.jsxs("div",{className:"site-footer__top",children:[n.jsx("div",{className:"site-footer__brand",children:n.jsx("div",{className:"site-footer__lead h3",children:i("footer.lead",`\uC544\uC774\uD574\uBE0C\uB294 \uC18C\uB9AC\uB97C \uD1B5\uD574
|
|
1045
|
+
</html>`}const u5=1e3;function $o({getElements:e,paperW:t,paperH:a,fileName:r="",onPopupBlocked:s,header:i=""}){const{t:l}=ve.useTranslation(),u=o.useCallback(()=>{l5(e(),t,a,r,i)},[e,t,a,r,i]),c=o.useCallback(()=>{const m=e();if(m.length===0)return;const p=window.open("","_blank");if(!p){s?.();return}p.document.write(Lo(m,t,a,!1,r,i)),p.document.close()},[e,t,a,r,s,i]),d=o.useCallback(()=>{const m=e();if(m.length===0)return;const p=Lo(m,t,a,!1,r,i),f=new Blob([p],{type:"text/html;charset=utf-8"}),b=URL.createObjectURL(f),y=(r?Mo(r):"")||l("wordTable.printFileNameSingle","\uB2E8\uC5B4\uD45C"),C=Object.assign(document.createElement("a"),{href:b,download:`${y}.html`});document.body.appendChild(C),C.click(),document.body.removeChild(C),setTimeout(()=>URL.revokeObjectURL(b),u5)},[e,t,a,r,i,l]);return{print:u,openNewWindow:c,downloadHtml:d}}function Ou(e,t){const{t:a}=ve.useTranslation(),r=t?.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"),[m,p]=o.useState(!0),[f,b]=o.useState(!0),[y,C]=o.useState(!0),[v,_]=o.useState(!0),[h,w]=o.useState(8),[g,B]=o.useState("right"),x=e.length,A=e.some(K=>(K.words??[]).length>1),N=e.some(K=>(K.words??[]).some(ee=>!!ee.colloquialLabel)),k=Math.min(h,Math.max(x,1)),S=o.useMemo(()=>fu(e,k),[e,k]),E=S.length>1,F=k,[$,G]=o.useState(!1);o.useEffect(()=>{let K=!1;if(!Qn()){G(!1);return}return Promise.all(e.flatMap(ee=>(ee.words??[]).map(V=>ti(V.label,V.homonum)))).then(ee=>{K||G(ee.some(Boolean))},()=>{}),()=>{K=!0}},[e]);const j=o.useMemo(()=>[ku(a,{hasImage:$,hasColloquial:N}),Nu(a),...x>0?[Mu(a,{hasPairs:A,itemCount:x})]:[],Du(a),...F>1?[ju(a)]:[],...A?[Tu(a)]:[],...r?[Eu(a),Su(a)]:[]],[a,$,N,x,A,E,F,r]),L={...Pu(a,{contentTypes:l,orientation:s,showOutline:m,cutLine:c,showDivLine:v,showTopInfo:f,showBottomInfo:y}),...x>0?{[a(A?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord")]:`${k}\uAC1C`}:{},...E?{[a("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")]:$u[g]}:{}},I=o.useCallback((K,ee)=>{Iu(a,K,ee,{setContentTypes:u,setOrientation:i,setShowOutline:p,setCutLine:d,setShowDivLine:_,setShowTopInfo:b,setShowBottomInfo:C})||(ee===a("wordTable.filter.itemsPerPagePair","\uD398\uC774\uC9C0\uB2F9 \uB300\uB9BD\uC30D \uC218")||ee===a("wordTable.filter.itemsPerPageWord","\uD398\uC774\uC9C0\uB2F9 \uB2E8\uC5B4 \uC218")?w(Lu(parseInt(K),x)):ee===a("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")&&B(Ru(K)))},[a,x]);return{settings:{orientation:s,contentTypes:l,cutLine:c,showOutline:m,showDivLine:v,count:F,showTopInfo:f,showBottomInfo:y},filterSections:j,filterSelected:L,handleSelect:I,pages:S,isPaginated:E,pageNumberPosition:g}}function c5({items:e,words:t,title:a,subtitle:r,emptyText:s,buttons:i,renderButtons:l,renderFooter:u,footerClassName:c,footerLayout:d,printFileName:m,showSettings:p,autoPrint:f,className:b,onClose:y,scoring:C=!1,onScoreChange:v,printHeader:_,brand:h,code:w,beforeClose:g}){const{t:B}=ve.useTranslation(),x=o.useMemo(()=>Array.isArray(e)?e:(Array.isArray(t)?t:[]).filter(ie=>typeof ie=="string"&&ie.length>0).map((ie,Ee)=>({id:`${ie}-${Ee}`,words:[{label:ie}]})),[e,t]),{settings:A,filterSections:N,filterSelected:k,handleSelect:S,pages:E,isPaginated:F,pageNumberPosition:$}=Ou(x,{paperBands:!!h?.show}),G=o.useMemo(()=>Cu(E.map(ie=>ie.length)),[E]),[j,L]=o.useState({}),I=o.useCallback((ie,Ee)=>{L(W=>({...W,[ir(ie)]:pu(W[ir(ie)]??null,Ee)}))},[]),K=o.useRef(v);o.useEffect(()=>{K.current=v});const ee=o.useRef(j);o.useEffect(()=>{ee.current!==j&&(ee.current=j,K.current?.(So(j)))},[j]);const V=o.useMemo(()=>So(j),[j]),q=o.useRef(null),{toastMessage:R,toastKey:O,showWarning:D,clearToast:H}=cl("warning"),M=o.useRef([]),P=o.useCallback(()=>F?M.current.filter(ie=>ie!==null):q.current?[q.current]:[],[F]),{print:z,openNewWindow:Y}=$o({getElements:P,paperW:ua[A.orientation].width,paperH:ua[A.orientation].height,fileName:m??"",header:_??"",onPopupBlocked:()=>D(B("wordTable.popupBlocked","\uD31D\uC5C5\uC774 \uCC28\uB2E8\uB418\uC5C8\uC2B5\uB2C8\uB2E4. \uBE0C\uB77C\uC6B0\uC800 \uC124\uC815\uC5D0\uC11C \uD31D\uC5C5\uC744 \uD5C8\uC6A9\uD574 \uC8FC\uC138\uC694."))}),X=o.useMemo(()=>u?void 0:l?l({print:z,openNewWindow:Y}):m?[{label:B("wordTable.openNewWindow","\uC0C8 \uCC3D\uC73C\uB85C \uBCF4\uAE30"),variant:"default",onClick:()=>Y()},{label:B("wordTable.print","\uC778\uC1C4\uD558\uAE30"),variant:"default",onClick:()=>z()},...i??[]]:i,[u,l,m,i,B,z,Y]),Z=o.useMemo(()=>u?u({print:z,openNewWindow:Y}):void 0,[u,z,Y]),ne=o.useRef(!1),le=o.useRef(z);return o.useEffect(()=>{le.current=z},[z]),o.useEffect(()=>{if(!f||ne.current)return;const ie=window.setTimeout(()=>{ne.current=!0,le.current()},100);return()=>window.clearTimeout(ie)},[f]),n.jsxs(Tn,{title:a??B("keyWords.title","\uC8FC\uC694 \uB2E8\uC5B4"),subtitle:r,size:"large",className:Ae("word-table-popup",b),buttons:X,footer:Z,footerClassName:c,footerLayout:d,beforeClose:g,onClose:y,children:[x.length>0?n.jsxs("div",{className:"word-table-popup__body",children:[p&&n.jsx(To,{sections:N,selected:k,onSelect:S}),F?n.jsx("div",{className:"word-table-popup__pages",children:E.map((ie,Ee)=>n.jsx(ca,{items:ie,orientation:A.orientation,contentTypes:A.contentTypes,cutLine:A.cutLine,showOutline:A.showOutline,showDivLine:A.showDivLine,count:A.count,contentRef:W=>{M.current[Ee]=W},pageNumber:{current:Ee+1,total:E.length},pageNumberPosition:$,brand:h&&{...h,top:A.showTopInfo,bottom:A.showBottomInfo},code:w,scoring:C,scoreIndexOffset:G[Ee],marks:V,onMarkClick:I},Ee))}):n.jsx("div",{className:"word-table-popup__table",children:n.jsx(ca,{items:x,orientation:A.orientation,contentTypes:A.contentTypes,cutLine:A.cutLine,showOutline:A.showOutline,showDivLine:A.showDivLine,count:A.count,contentRef:q,fitHeight:!0,scoring:C,marks:V,onMarkClick:I,brand:h&&{...h,top:A.showTopInfo,bottom:A.showBottomInfo},code:w})})]}):n.jsx("p",{className:"word-table-popup__empty body-3",children:s??B("keyWords.empty","\uCD94\uCD9C\uB41C \uC8FC\uC694 \uB2E8\uC5B4\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")}),n.jsx(sa,{message:R,position:"top",onClose:H},O)]})}const d5=new Set(["x","triangle"]);function p5(e,t){const a=[];for(let r=0;r<e.length;r++){const s=t[String(r)];s&&d5.has(s)&&a.push(e[r])}return a}const m5=/\s*(?:(\d+)차\s*)?복습\s*\d{2}\.\d{2}$/;function Hu(e){const t=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:t,\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(t);return{\uBC14\uD0D5:l?t.slice(0,l.index).trim():t,\uD68C\uCC28:i+1}}let r=t,s=1;for(;;){const i=m5.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 h5(e,t){const[,a,r]=qr(t).split("-"),s=`${a}.${r}`,{\uBC14\uD0D5:i,\uD68C\uCC28:l}=Hu(typeof e=="string"?{name:e}:e),u=l>=2?`${l}\uCC28 `:"";return`${i||"\uB2E8\uC5B4\uD45C"} ${u}\uBCF5\uC2B5 ${s}`}function C5(e){return{reviewOf:e.reviewOf??e.id??void 0,reviewRound:Hu(e).\uD68C\uCC28}}function f5(e,t){const a={};for(const[r,s]of Object.entries(t)){if(s!=="o"&&s!=="triangle"&&s!=="x")continue;const i=Number(r),l=e[i];l&&(a[r]=l)}return a}function g5(e){return e.map(t=>t.label).join(" / ")}function b5(e){return e.map(t=>t.homonum!=null?`${t.label}#${t.homonum}`:t.label).join(" / ")}function zu(e){return e.split(" / ").map(t=>t.replace(/#\d+$/,"")).join(" / ")}function y5(e,t,a){const r=pi(a);return[e.trim(),r,t.trim()].filter(Boolean).join(" \xB7 ")}function Vu(e,t,a){return a===0?0:(e+t*.5)/a}function v5(e){const t=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=t.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,t.set(u,c)}const r=[];for(const[s,i]of t){const l=i.o+i.triangle+i.x;r.push({label:zu(s),key:s,tried:l,o:i.o,triangle:i.triangle,x:i.x,rate:Vu(i.o,i.triangle,l),latest:i.latest,latestAt:i.latestAt})}return r.sort((s,i)=>s.rate-i.rate||i.tried-s.tried||oa(s.label,i.label)||oa(s.key??s.label,i.key??i.label)),r}function x5(e){const t=new Map;for(const r of e){const s=r.tableId??`name:${r.tableName}`,i=t.get(s)??{tableName:r.tableName,tableId:r.tableId,rows:[]};i.rows.push(r),t.set(s,i)}const a=[];for(const r of t.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(p=>p==="o").length,m=c.filter(p=>p==="triangle").length;return Vu(d,m,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 _5(e,t=8){return e.filter(a=>a.latest!=="o").slice(0,t)}function w5(e,t){if(e==null||t==null||e===""||t==="")return 0;if(typeof e=="number"&&typeof t=="number")return e-t;const a=String(e),r=String(t);return+(a>r)-+(a<r)}function B5(e){const t=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)||w5(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}`,m=t.get(d)??{trainingType:l.trainingType,itemId:c,title:u,tried:0,wrong:0,latestCorrect:l.isCorrect,latestAt:l.answeredAt,lastSelected:l.selected,setIds:[]};if(m.tried++,l.isCorrect||m.wrong++,m.title=u,m.latestCorrect=l.isCorrect,m.latestAt=l.answeredAt,m.lastSelected=l.selected,l.setId){const p=m.setIds.indexOf(l.setId);p>0&&m.setIds.splice(p,1),p!==0&&m.setIds.unshift(l.setId)}t.set(d,m)}const i=[...t.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||oa(l.title,u.title)),{items:i,counted:a,skippedNoTitle:r}}function A5(e,t=8){return e.filter(a=>!a.latestCorrect).slice(0,t)}function k5(e){const t=new Map;for(const r of e){const s=t.get(r.trainingType)??[];s.push(r),t.set(r.trainingType,s)}const a=[...t.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 Ro=["LISTEN_IN_NOISE","SHORT_STORY","LONG_STORY","ORDERING_SENTENCE"];function N5(e){const t=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=t.get(u)??{setId:l,trainingType:i.trainingType,pending:0};c.pending++,t.set(u,c)}const r=(i,l)=>l.pending-i.pending||i.trainingType.localeCompare(l.trainingType)||i.setId.localeCompare(l.setId),s=[...t.values()];return{sentence:s.filter(i=>Ro.includes(i.trainingType)).sort(r),word:s.filter(i=>!Ro.includes(i.trainingType)).sort(r),noSet:a}}function D5(e,t,a=5){const r=new Set(t);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||oa(i.name,l.name)),s.slice(0,Math.max(0,a))}function E5(e,t){const a=new Set(e.flatMap(r=>r.covered));return t.filter(r=>!a.has(r))}function S5(e,t){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 t){const i=a.get(s);i!==void 0&&r.push(i)}return r}function Po(e,t,a){return typeof e=="string"&&e?e:t.replace(/\{\{(\w+)\}\}/g,(r,s)=>String(a[s]))}function j5(e,t){const a=Number.isFinite(e)?Math.round(e):0;if(!a||a<=0)return"-";const r=Math.floor(a/60),s=a%60;return t?t(r,s):r>0&&s>0?Po($t.t("customers.duration.minSec",{m:r,s,defaultValue:"{{m}}\uBD84 {{s}}\uCD08"}),"{{m}}\uBD84 {{s}}\uCD08",{m:r,s}):r>0?Po($t.t("customers.duration.min",{m:r,defaultValue:"{{m}}\uBD84"}),"{{m}}\uBD84",{m:r}):Po($t.t("customers.duration.sec",{s,defaultValue:"{{s}}\uCD08"}),"{{s}}\uCD08",{s})}function T5(e,t){const a=[],r=new Set;for(const s of e){const i=t(s);r.has(i)||(r.add(i),a.push({key:i,value:s,pinned:!1}))}return a}function M5(e,t){return e.map(a=>a.key===t?{...a,pinned:!a.pinned}:a)}function L5(e,t){return e.filter(a=>a.key!==t)}function $5(e,t,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 t){if(l.length>=i)break;const m=a(d);u.has(m)||(u.add(m),l.push({key:m,value:d,pinned:!1}))}const c=[...l];return e.map(d=>d.pinned?d:c.shift()).filter(d=>d!==void 0)}function R5(e){return e.map(t=>t.value)}function P5(e){const{category:t={},isSelected:a=!1,onClick:r}=e||{},s=t?.key?` icon-grid-menu__button--${t.key}`:"",i=o.useId();return n.jsxs("div",{className:`icon-grid-menu__button-wrapper${s}`,children:[n.jsx("button",{className:`icon-grid-menu__button${a?" icon-grid-menu__button--selected":""}`,"data-key":t?.key,type:"button",onClick:a?void 0:r,"aria-pressed":a,"aria-labelledby":i,children:n.jsx(Qe,{icon:t.icon,label:t.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"})}),n.jsx("span",{id:i,className:"icon-grid-menu__button-label button-1",children:t.label})]})}function I5(e){const{categories:t=[],selected:a,onSelect:r,size:s="medium"}=e||{},i=a!==void 0,[l,u]=o.useState(()=>i?null:(t&&t[0]?.key)??null),c=i?a:l,d=o.useRef(r);o.useEffect(()=>{d.current=r});const m=o.useRef(!1),p=(t&&t[0]?.key)??null;o.useEffect(()=>{if(i||m.current||!p)return;m.current=!0;const b=l??p;l==null&&u(b),d.current?.(b)},[i,p]);const f=o.useCallback(b=>{const y=c===b?null:b;m.current=!0,i||u(y),r?.(y)},[c,i,r]);return n.jsx("div",{className:`icon-grid-menu icon-grid-menu--${s}`,children:(t||[]).map(b=>n.jsx(P5,{category:b,isSelected:c===b.key,onClick:()=>f(b.key)},b.key))})}function F5({subs:e=[],selected:t,onSelect:a,size:r="medium"}){const s=r==="small"?32:40;return n.jsx("div",{className:`choice-chips choice-chips--${r}`,children:n.jsx("div",{className:"choice-chips__list",children:e.map(i=>n.jsx(pe,{htmlType:"button",size:s,type:"bar",label:i.label,selected:t===i.key,className:"choice-chips__button",onClick:()=>a?.(i.key)},i.key))})})}function O5({onTermsClick:e,onPrivacyClick:t,contact:a}={}){const r=a?.email??"support@ihab.co.kr",s=a?.tel??"031-380-3724",{t:i}=ve.useTranslation();return n.jsx("footer",{className:"site-footer",children:n.jsxs("div",{className:"safearea",children:[n.jsxs("div",{className:"site-footer__top",children:[n.jsx("div",{className:"site-footer__brand",children:n.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)=>n.jsxs(o.Fragment,{children:[l,u<c.length-1&&n.jsx("br",{})]},u))})}),n.jsxs("div",{className:"site-footer__links",children:[n.jsxs("div",{className:"site-footer__column",children:[n.jsx("div",{className:"site-footer__column-title footer-title",children:i("footer.site.title","\uC0AC\uC774\uD2B8")}),n.jsxs("ul",{children:[n.jsx("li",{children:n.jsx("a",{className:"footer-link",href:"https://www.ihab.co.kr/",target:"_blank",rel:"noopener noreferrer",children:"IHAB"})}),n.jsx("li",{children:n.jsx("a",{className:"footer-link",href:"https://speechear.ihab.co.kr/",target:"_blank",rel:"noopener noreferrer",children:i("footer.site.malgwi","\uB9D0\uADC0")})}),n.jsx("li",{children:n.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")})}),n.jsx("li",{children:n.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")})}),n.jsx("li",{children:n.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")})})]})]}),n.jsxs("div",{className:"site-footer__column",children:[n.jsx("div",{className:"site-footer__column-title footer-title",children:i("footer.sns.title","SNS")}),n.jsxs("ul",{children:[n.jsx("li",{children:n.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")})}),n.jsx("li",{children:n.jsx("a",{className:"footer-link",href:"https://www.instagram.com/ihab.official.yt/",target:"_blank",rel:"noopener noreferrer",children:"Instagram"})}),n.jsx("li",{children:n.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"})})]})]}),n.jsxs("div",{className:"site-footer__column",children:[n.jsx("div",{className:"site-footer__column-title footer-title",children:i("footer.policy.title","\uC815\uCC45")}),n.jsxs("ul",{children:[n.jsx("li",{children:n.jsx("a",{className:"footer-link",href:"#",onClick:l=>{e&&(l.preventDefault(),e())},children:i("footer.policy.terms","\uC774\uC6A9\uC57D\uAD00")})}),n.jsx("li",{children:n.jsx("a",{className:"footer-link",href:"#",onClick:l=>{t&&(l.preventDefault(),t())},children:i("footer.policy.privacy","\uAC1C\uC778\uC815\uBCF4 \uCC98\uB9AC\uBC29\uCE68")})})]})]})]})]}),n.jsx("hr",{className:"site-footer__rule"}),n.jsxs("div",{className:"site-footer__bottom",children:[n.jsx("div",{className:"site-footer__brand",children:n.jsx("img",{src:po,alt:"IHAB",className:"site-footer__logo"})}),n.jsxs("div",{className:"site-footer__meta",children:[n.jsxs("div",{children:[n.jsx("span",{className:"footer-title",children:i("footer.ceo","\uB300\uD45C")}),n.jsx("span",{className:"footer-meta caption-1",children:i("footer.ceoName","\uD55C\uC9C0\uD61C")})]}),n.jsxs("div",{children:[n.jsx("span",{className:"footer-title",children:i("footer.address","\uC8FC\uC18C")}),n.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")})]}),n.jsxs("div",{children:[n.jsx("span",{className:"footer-title",children:i("footer.support","\uACE0\uAC1D\uC13C\uD130")}),n.jsxs("span",{className:"footer-meta caption-1",children:[r," \xA0 ",s]})]})]})]}),n.jsx("div",{className:"site-footer__copyright footer-copyright caption-1",children:"\xA9 IHAB, Inc. All rights reserved."})]})})}function H5({logo:e,logoAlt:t="",logoHref:a,links:r=[],actions:s,className:i,containerClassName:l,renderLink:u,menuLabel:c}){const{t:d}=ye.useTranslation(),m=c??{open:d("header.menuOpen","\uBA54\uB274 \uC5F4\uAE30"),close:d("header.menuClose","\uBA54\uB274 \uB2EB\uAE30")},[p,f]=o.useState(!1),b=o.useId(),y=o.useRef(null);o.useEffect(()=>{if(!p)return;const _=Vn(()=>{const g=document.getElementById(b);g&&g.contains(document.activeElement)&&y.current?.focus(),f(!1)}),h=typeof window<"u"&&window.matchMedia?window.matchMedia("(min-width: 961px)"):null,w=g=>{g.matches&&f(!1)};return h&&(h.matches&&f(!1),h.addEventListener?.("change",w)),()=>{_(),h?.removeEventListener?.("change",w)}},[p,b]);const C=l?`${l} landing-header__inner`:"landing-header__inner",v=(_,h)=>u?u(_,{onClick:h}):n.jsx("a",{href:_.href,onClick:h,"aria-current":_.current?"page":void 0,children:_.label});return n.jsxs("header",{className:i?`landing-header ${i}`:"landing-header",children:[n.jsxs("div",{className:C,children:[e!=null&&(()=>{const _=typeof e=="string"?n.jsx("img",{src:e,alt:t,className:"landing-header__logo"}):e;return a?n.jsx("a",{href:a,className:"landing-header__brand",children:_}):n.jsx("div",{className:"landing-header__brand",children:_})})(),r.length>0&&n.jsx("nav",{className:"landing-header__links",children:r.map((_,h)=>n.jsx("span",{children:v(_)},`${h}:${_.href}`))}),n.jsxs("div",{className:"landing-header__actions",children:[s,r.length>0&&n.jsx("button",{ref:y,type:"button",onClick:()=>f(_=>!_),"aria-expanded":p,"aria-controls":b,"aria-label":p?m.close:m.open,className:p?"landing-header__toggle landing-header__toggle--open":"landing-header__toggle",children:n.jsxs("span",{className:"landing-header__burger",children:[n.jsx("span",{}),n.jsx("span",{}),n.jsx("span",{})]})})]})]}),r.length>0&&n.jsx("nav",{id:b,hidden:!p,className:"landing-header__drawer",children:n.jsx("div",{className:l??void 0,children:r.map((_,h)=>n.jsx("span",{className:"landing-header__drawer-item",children:v(_,()=>f(!1))},`${h}:${_.href}`))})})]})}function z5({children:e,action:t,onClick:a,className:r}){const s=a?"bottom-sticky__inner bottom-sticky__inner--clickable":"bottom-sticky__inner";return n.jsx("div",{className:r?`bottom-sticky ${r}`:"bottom-sticky",children:n.jsxs("div",{className:s,onClick:a,...uu(a),children:[n.jsx("div",{className:"bottom-sticky__content",children:e}),t]})})}function V5({mountedRef:e}){const t=o.useRef({phase:"sound",at:0}),a=o.useRef(0),r=o.useRef(null),s=o.useRef(null),i=o.useCallback(C=>{const v=t.current,_=v.phase!=="sound"&&v.at>0;s.current=_?v.phase==="lead"?"restart":C:null},[]),l=o.useCallback(()=>{const C=s.current;return s.current=null,C},[]),u=o.useCallback(()=>{a.current+=1,t.current={phase:"sound",at:0}},[]),c=o.useCallback((C,v)=>{if(!(C>0))return Promise.resolve(!0);const _=a.current;return t.current={phase:v,at:Date.now()},new Promise(h=>{const w=setTimeout(()=>{r.current===w&&(r.current=null),h(!!e.current&&_===a.current)},C);r.current=w})},[e]),d=o.useCallback(()=>{t.current={phase:"sound",at:Date.now()}},[]),m=o.useCallback(()=>{t.current={phase:"sound",at:0}},[]),p=o.useCallback(()=>{const C=t.current;return C.phase!=="sound"&&C.at>0},[]),f=o.useCallback(()=>a.current,[]),b=o.useCallback(C=>C===a.current,[]),y=o.useCallback(()=>{a.current+=1},[]);return o.useEffect(()=>()=>{r.current&&(clearTimeout(r.current),r.current=null)},[]),o.useMemo(()=>({positionRef:t,isRunning:p,generation:f,isCurrent:b,abort:u,waitPad:c,enterSound:d,leave:m,pause:i,resume:l,__bumpGenerationForTest:y}),[p,f,b,u,c,d,m,i,l,y])}const da=9,W5=e=>Math.round(Math.min(da,Math.max(0,e))/da*100),q5=e=>e/100*da,Pa=2,Wu=.1,U5=e=>Math.min(Pa,Math.max(0,e)),G5=.1,K5=e=>Math.round(e*1e6)/1e6;function Ia(e){const{noiseRatio:t}=e;if(typeof t=="number"&&Number.isFinite(t))return U5(t);const a=Math.min(da,Math.max(0,Number(e.level)||0))/da,r=Number(e.mainVolume);return r>0?a>0?K5(Math.min(Pa,Math.max(G5,a/r))):0:1}const qu=e=>Math.min(1,Math.max(0,Number(e.mainVolume)||0));function Uu(e){return qu(e)}function Io(e){return qu(e)*Ia(e)}function Fo(e,t=sC()){const a=Number.isFinite(t)&&t>0?t:1;return Math.min(1,Io(e)/a)}function Fa(e,t){const a={...e,...t??{}};return t&&"level"in t&&typeof t.noiseRatio!="number"&&(a.noiseRatio=Ia({level:a.level,mainVolume:a.mainVolume})),a}const Oa={enabled:!0,type:"defaultNoise",level:4.5,noiseRatio:1,speed:1,mainVolume:1,mainSpeed:1},Oo=o.createContext(null);function cr(){return o.useContext(Oo)}const Ho=e=>`${oC()}/${e}`,Gu=e=>Array.from({length:10},(t,a)=>Ho(`${e}-${String(a+1).padStart(2,"0")}.mp3`)),dr={get defaultNoise(){return Ho("noise1.mp3")},get street(){return Gu("noise2")},get restaurant(){return Gu("noise3")},get buzz(){return Ho("noise4.mp3")}};function Y5(e){const t=Math.floor(Math.random()*10);switch(e){case"defaultNoise":return dr.defaultNoise;case"street":return dr.street[t];case"restaurant":return dr.restaurant[t];case"buzz":return dr.buzz;default:return null}}function Z5({noisePlayer:e,audioRef:t,playbackStateRef:a,sequencer:r}){const s=o.useRef(e?.registerAnalyser);s.current=e?.registerAnalyser;const i=o.useRef(null),[l,u]=o.useState(null),c=o.useRef(null),d=o.useRef(null),m=o.useRef(null),p=o.useRef(null),f=o.useRef(0),b=o.useRef(null),y=o.useCallback(()=>!!r?.isRunning(),[r]),C=o.useCallback(()=>{p.current!==null&&(cancelAnimationFrame(p.current),p.current=null),b.current!==null&&(clearTimeout(b.current),b.current=null)},[]),v=o.useCallback((B,x=250)=>{const A=i.current;if(!A)return;const N=d.current;if(N){d.current=null;try{A.pause()}catch{}A.src=N,A.load()}if(!A.src)return;f.current+=1,C();try{Ir(),za(A).then(F=>{if(i.current===A)try{s.current?.("noise",F)}catch{}})}catch{}const k=A.paused?0:Va(A);A.paused&&Tn(A,0),A.play().catch(()=>{});const S=performance.now(),E=()=>{const F=Math.min(1,(performance.now()-S)/x);try{Tn(A,k+(B-k)*F)}catch{}F<1?p.current=requestAnimationFrame(E):p.current=null};p.current=requestAnimationFrame(E)},[C]),_=o.useCallback((B=250,x)=>{const A=i.current;if(!A||A.paused){x?.();return}const N=++f.current;C();const k=performance.now(),S=Va(A),E=()=>{const F=Math.min(1,(performance.now()-k)/B);try{Tn(A,S*(1-F))}catch{}if(F<1)p.current=requestAnimationFrame(E);else{p.current=null,b.current!==null&&(clearTimeout(b.current),b.current=null);try{A.pause()}catch{}x?.()}};p.current=requestAnimationFrame(E),b.current=setTimeout(()=>{if(b.current=null,f.current===N){p.current!==null&&(cancelAnimationFrame(p.current),p.current=null);try{A.paused||(Tn(A,0),A.pause(),x?.())}catch{}}},B+150)},[C]);o.useEffect(()=>{const B=document.createElement("audio");return B.loop=!0,B.crossOrigin="anonymous",i.current=B,()=>{C();try{B.pause(),B.src=""}catch{}i.current=null,c.current=null,d.current=null}},[C]);const h=e?Fo(e.settings):0,w=!!e?.settings.enabled&&h>0;o.useEffect(()=>{if(!w)return;let B=0;const x=setInterval(()=>{const A=i.current;if(!A||A.paused){B=0;return}const N=t.current;if(N&&!N.paused&&!N.ended||y()||a.current==="playing"){B=0;return}B+=1,B>=2&&(B=0,_())},400);return()=>clearInterval(x)},[_,w,t,a,y]),o.useEffect(()=>{const B=()=>{const x=i.current;if(document.hidden){if(x&&!x.paused){C();try{x.pause()}catch{}}return}if(!x||!x.paused)return;const A=t.current,N=!!A&&!A.paused&&!A.ended||y()||a.current==="playing",k=m.current;N&&k?.enabled&&k.volume>0&&v(k.volume)};return document.addEventListener("visibilitychange",B),()=>document.removeEventListener("visibilitychange",B)},[C,v,t,a,y]),o.useEffect(()=>{m.current=e?{enabled:e.settings.enabled,volume:h,type:e.settings.type}:null},[e,e?.settings.enabled,h,e?.settings.type]);const g=o.useRef(null);return o.useEffect(()=>()=>{g.current?.(),g.current=null},[]),o.useEffect(()=>{const B=e?.settings,x=i.current;if(!x)return;const A=B?Fo(B):0;if(!B||!B.enabled||A===0){_();return}if(c.current!==B.type){const N=Y5(B.type);N&&(c.current=B.type,u(N),d.current=N,_(150,()=>{if(d.current!==N)return;d.current=null,x.src=N,x.load();const k=t.current;if(k&&!k.paused||y()){g.current?.();const S=()=>{x.removeEventListener("canplay",S),g.current===E&&(g.current=null);const F=t.current,$=m.current;(F&&!F.paused&&!F.ended||y())&&$?.enabled&&$.volume>0&&v($.volume)},E=()=>x.removeEventListener("canplay",S);g.current=E,x.addEventListener("canplay",S)}}))}else{const N=t.current,k=!!N&&!N.paused&&!N.ended||y()||a.current==="playing";if(k&&d.current)v(A);else if(k&&x.paused&&x.src)v(A);else if(!x.paused)if(!k)_();else{C();const S=Va(x),E=performance.now(),F=()=>{const $=Math.min(1,(performance.now()-E)/150);try{Tn(x,S+(A-S)*$)}catch{}$<1?p.current=requestAnimationFrame(F):p.current=null};p.current=requestAnimationFrame(F)}}},[e?.settings,e?.settings.enabled,h,e?.settings.type,C,v,_,t,a,m,y]),o.useEffect(()=>{const B=i.current;if(B)try{B.playbackRate=Math.min(1.25,Math.max(.75,e?.settings.speed??1))}catch{}},[e?.settings.speed]),{noiseAudioRef:i,activeNoiseUrl:l,noiseSettingsRef:m,cancelNoiseFade:C,fadeInNoise:v,fadeOutNoise:_}}function X5({ttsText:e,playbackRate:t,mainVolume:a,fillRef:r,waveProgressRef:s,setProgress:i,setPlaybackState:l,setStateLocal:u,fadeInNoise:c,fadeOutNoise:d,noiseSettingsRef:m,onDoneRef:p,handleEndRef:f}){const b=o.useRef(null),y=o.useRef(0),C=o.useRef(null),v=o.useRef(0),_=o.useRef(!1);o.useEffect(()=>()=>{v.current++;try{if(C.current&&(cancelAnimationFrame(C.current),C.current=null),_.current&&window.speechSynthesis){try{window.speechSynthesis.cancel()}catch{}_.current=!1}}catch{}},[]);const h=(B,x=1)=>{try{const A=(B||"").trim().split(/\s+/).filter(Boolean).length||Math.max(1,(B||"").length);return Math.max(700,Math.round(A*300/Math.max(.25,x)))}catch{return 1200}},w=o.useCallback(B=>{if(typeof window>"u"||!window.speechSynthesis){try{typeof p.current=="function"&&p.current(!1)}catch{}return}const x=window.speechSynthesis,A=++v.current;try{try{x.cancel()}catch{}const N=B??e,k=Array.isArray(N)?N.filter(j=>!!j):[N||""];k.length===0&&k.push("");const S=Math.max(.3,Math.min(3,t));y.current=k.reduce((j,T)=>j+h(T,S||1),0),b.current=performance.now(),i(0),l("playing"),u("playMode");const E=m.current;E?.enabled&&(E?.volume??0)>0&&c(E.volume);const F=()=>{try{const j=b.current||performance.now(),T=performance.now()-j,I=y.current||1200,K=Math.min(1,T/I);try{r.current&&(r.current.style.left=`${K*100}%`),s.current&&s.current.style.setProperty("--progress",String(K))}catch{}K<1&&(C.current=requestAnimationFrame(F))}catch{}},$=()=>{if(A===v.current)try{C.current&&(cancelAnimationFrame(C.current),C.current=null),i(1),l("stopped");try{f.current?.()}catch{try{typeof p.current=="function"&&p.current(!0)}catch{}}}catch{}},U=j=>{const T=new SpeechSynthesisUtterance(k[j]);try{T.rate=S}catch{}try{T.volume=Math.max(0,Math.min(1,a))}catch{}T.onend=()=>{if(A===v.current){if(j<k.length-1){try{U(j+1)}catch{$()}return}$()}},T.onerror=()=>{$()},T.onstart=()=>{if(!(j>0))try{C.current&&(cancelAnimationFrame(C.current),C.current=null),C.current=requestAnimationFrame(F)}catch{}},_.current=!0,x.speak(T)};try{U(0)}catch{try{typeof p.current=="function"&&p.current(!0)}catch{}}}catch{try{typeof p.current=="function"&&p.current(!0)}catch{}}},[e,t,a,c,r,s,i,l,u,m,p,f]),g=o.useCallback(()=>{v.current++;try{if(window.speechSynthesis)try{window.speechSynthesis.cancel()}catch{}C.current&&(cancelAnimationFrame(C.current),C.current=null),d(),b.current=null}catch{}l("stopped"),u("active"),i(0)},[d,l,u,i]);return{startTTS:w,stopTTS:g}}const J5=.01,Q5=.3;async function e3(e,t,a,r=!1){let s=null;try{const i=window.AudioContext||window.webkitAudioContext;s=new i;const l=await s.decodeAudioData(e.slice(0)),u=l.numberOfChannels>0?l.getChannelData(0):null;if(!u)return null;let c=0;if(r){const b=Math.floor(Q5*l.sampleRate),y=Math.min(u.length,b);for(;c<y&&Math.abs(u[c])<=J5;)c++;c>=y&&(c=0)}const d=u.length-c,m=a&&a>0?Math.min(d,Math.floor(a*l.sampleRate)):d,p=Math.max(t,m),f=Math.floor(p/t)||1;return new Array(t).fill(0).map((b,y)=>{const C=c+y*f,v=Math.min(C+f,c+p,u.length);let _=0;for(let h=C;h<v;h++){const w=Math.abs(u[h]);w>_&&(_=w)}return _})}catch{return null}finally{try{s?.close?.()}catch{}}}async function Ku(e,t,a,r=!1){try{const s=await fetch(e);if(s.ok===!1)return null;const i=await s.arrayBuffer();return await e3(i,t,a,r)}catch(s){try{const i=oi(s)}catch{}return null}}const zo=45,t3=74,n3=2;function pr(e){const t=Math.min(2,Math.max(0,Number(e)||0));return t<=1?t*45:45+(t-1)*29}function mr(e){return pr(e)/45}const a3=e=>Math.max(0,(typeof e=="number"&&Number.isFinite(e)?e:0)*1e3),Yu=e=>Math.max(0,typeof e=="number"&&Number.isFinite(e)?e:0);function Zu({durationsSec:e,leadInMs:t=0,tailMs:a=0}){const r=Yu(t),s=Yu(a),i=[];let l=0;return e.forEach((u,c)=>{for(const[d,m]of[["lead",r],["sound",a3(u)],["tail",s]])i.push({kind:d,track:c,startMs:l,durMs:m}),l+=m}),{segments:i,totalMs:l,trackCount:e.length}}function Xu(e,t){const a=(t|0)*3;if(t<0||a+2>=e.segments.length)return null;const[r,s,i]=[e.segments[a],e.segments[a+1],e.segments[a+2]];return{lead:r,sound:s,tail:i,totalMs:r.durMs+s.durMs+i.durMs}}function r3(e,t){const a=Xu(e,t.track);if(!a||!(a.totalMs>0)||!(a.sound.durMs>0))return 0;const r=a[t.kind],s=Math.min(Math.max(0,Number.isFinite(t.elapsedMs)?t.elapsedMs:0),r.durMs);return Math.max(0,Math.min(1,(r.startMs-a.lead.startMs+s)/a.totalMs))}function o3(e,t,a){const r=Math.max(0,Math.floor(a)),s=Xu(e,t);if(!s||r===0||!(s.totalMs>0)||s.lead.durMs===0&&s.tail.durMs===0||!(s.sound.durMs>0))return{lead:0,sound:r,tail:0};const i=Math.round(s.lead.durMs/s.totalMs*r),l=Math.round(s.tail.durMs/s.totalMs*r),u=Math.max(1,r-i-l),c=i+u+l-r;return{lead:Math.max(0,i-Math.ceil(c/2)),sound:u,tail:Math.max(0,l-Math.floor(c/2))}}function s3({currentTime:e,sources:t,index:a,audioDuration:r}){const s=a||0,i=Array.isArray(t)&&t.length>0?t[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 i3({phase:e,phaseElapsedMs:t,currentTime:a,trackDurationSec:r,leadInMs:s,tailMs:i}){const l=Zu({durationsSec:[r],leadInMs:s,tailMs:i});return r3(l,{track:0,kind:e,elapsedMs:e==="sound"?(Number.isFinite(a)?a:0)*1e3:t})}function l3({bars:e,trackDurationSec:t,leadInMs:a,tailMs:r}){return o3(Zu({durationsSec:[t],leadInMs:a,tailMs:r}),0,e)}function u3(e,t){if(!Array.isArray(e))return null;const a=t||0;return a<e.length-1?a+1:null}function c3({ended:e,completedByEnd:t}){return!!e||!!t}function d3(e){return e.map((t,a)=>({src:t.src,label:String(a+1),color:void 0,duration:t.duration||0}))}function p3(e){return e.reduce((t,a)=>t+(a.duration||0),0)}function m3(e,t,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,t);u&&s.push({code:l,resolvedPath:u})}}return s}const Ju=4,h3=mr(Ju/zo);function C3(e){const{src:t,segments:a,progress:r=0,waveProgressRef:s,noiseSrc:i,noiseRatio:l=0,noiseSpeed:u=1,totalDuration:c=0,mainVolume:d=1,onReadyChange:m,showSoundWaveForm:p=!0,leadInMs:f=0,tailMs:b=0,trackDurationSec:y=0}=e,C=o.useRef(null),v=o.useRef(null),[_,h]=o.useState(null),[w,g]=o.useState(!1),[B,x]=o.useState(null),[A,N]=o.useState(2),[k,S]=o.useState(0),[E,F]=o.useState(null),[$,U]=o.useState(!1),[j,T]=o.useState(!1),I=3,K=3,ee=1,V=300,q=o.useRef(0),P=o.useCallback(()=>{const Ce=C.current,ie=v&&v.current?v.current:Ce?Ce.closest(".audio-player__wave"):null,ce=ie?ie.getBoundingClientRect():Ce?Ce.getBoundingClientRect():null,de=ce?ce.width:0,be=ce?Math.max(100,ce.width):320,_e=ce?ce.height:0,Be=Math.max(ee,Math.min(V,Math.floor((be+K)/(I+K)))),Ze=Be*I,Oe=Math.max(0,Be-1),Ie=Math.max(0,Oe>0?(be-Ze)/Oe:K);return{bars:Be,gap:Ie,height:_e,width:de}},[]),O=o.useRef(void 0),D=o.useRef(null),H=o.useCallback(async(Ce,ie,{quiet:ce=!1}={})=>{const de=++q.current,be=()=>q.current===de;try{if(ce||g(!1),O.current=Ce,!Ce){be()&&h(null);return}let _e=ie;if(!_e)try{for(let Oe=0;Oe<4&&!(C.current||v.current);Oe++)await new Promise(Ie=>requestAnimationFrame(Ie));await new Promise(Oe=>requestAnimationFrame(Oe));const Ze=P();Ze.height>0&&S(Ze.height),_e=Ze.bars,N(Ze.gap)}catch{_e=120}D.current=_e;const Be=await Ku(Ce,_e);if(!be())return;if(!Be){h(null),g(!1);return}h(Be),x(_e),g(!0)}catch{if(!be())return;h(null),g(!1)}},[g,h,S,N,x,P]);o.useEffect(()=>{const Ce=v.current;if(!Ce||typeof ResizeObserver>"u")return;let ie=null;const ce=new ResizeObserver(()=>{ie!==null&&cancelAnimationFrame(ie),ie=requestAnimationFrame(()=>{ie=null;try{const de=P();if(de.width<=0||(de.height>0&&S(de.height),D.current===null||de.bars===D.current))return;const be=O.current;N(de.gap),be?H(be,de.bars,{quiet:!0}).catch(()=>{}):D.current=de.bars}catch{}})});return ce.observe(Ce),()=>{ce.disconnect(),ie!==null&&cancelAnimationFrame(ie)}},[P,H]),o.useEffect(()=>{const Ce=a&&a[0]&&a[0].src||t||a&&a.length===1&&a[0]&&a[0].src;H(typeof Ce=="string"?Ce:void 0).catch(()=>{}),T(!1)},[t,a,H]),o.useEffect(()=>{let Ce=!1;if(U(!1),!i||!B){F(null);return}const ie=c>0?c*(u||1):void 0;return Ku(i,B,ie,!0).then(ce=>{Ce||(F(ce),ce||U(!0))}).catch(()=>{Ce||(F(null),U(!0))}),()=>{Ce=!0}},[i,B,c,u]);const L=Math.max(0,Math.min(1,d)),R=o.useMemo(()=>_&&_.length&&Math.max(..._)||1,[_]),z=B||40,J=o.useMemo(()=>l3({bars:z,trackDurationSec:y,leadInMs:f,tailMs:b}),[z,y,f,b]),Y=o.useMemo(()=>Array.from({length:z}).map((Ce,ie)=>{const ce=ie>=J.lead&&ie<J.lead+J.sound,de=J.sound>0&&ce?Math.min(z-1,Math.round((ie-J.lead)/J.sound*z)):-1,be=ce?_&&_[de]!=null?_[de]:null:_?0:null,_e=be==null?null:Math.min(1,be/R*L),Be=_e!=null&&k>0&&pr(_e)<=Ju,Ze=_e==null?.15:Be?0:mr(_e),Oe=Be,Ie=z>1?ie/(z-1):0;return n.jsx("div",{className:Oe?"audio-player__bar audio-player__bar--hidden":"audio-player__bar",style:{"--val":Ze,"--i":ie,"--mix":Ie}},ie)}),[z,_,R,L,k,J]),Z={"--progress":String(Math.max(0,Math.min(1,r)))},ne=o.useMemo(()=>E&&E.length&&Math.max(...E.map(Ce=>Number.isFinite(Ce)?Math.abs(Ce):0))||1,[E]),le=L*Math.max(0,l),ue=!i||!E||!E.length?1:Math.max(1,le),Ee={"--bar-gap":`${A}px`,"--wave-h":`${pr(ue)}px`,"--wave-h1":`${zo}px`},W=w&&(i?!!E||$:!0);o.useEffect(()=>{W&&T(!0)},[W]);const te=j?w:W;o.useEffect(()=>{m?.(te)},[te,m]);const fe=B||40,Se=o.useMemo(()=>Array.from({length:fe}).map((Ce,ie)=>{const ce=E&&E[ie]!=null?E[ie]:null,de=ce==null?0:Math.abs(ce)/ne*le,be=Math.max(h3,mr(de)),_e=fe>1?ie/(fe-1):0;return n.jsx("div",{className:"audio-player__bar",style:{"--val":be,"--i":ie,"--mix":_e}},ie)}),[fe,E,ne,le,k]);return n.jsxs("div",{className:"audio-player__wave",ref:v,style:Ee,children:[i&&n.jsx("div",{className:`audio-player__wave-noise ${W?"is-ready":""}`,"aria-hidden":"true",children:Se}),p&&n.jsxs(n.Fragment,{children:[n.jsx("div",{className:`audio-player__wave-inner audio-player__wave-unplayed ${te?"is-ready":""}`,ref:C,children:Y}),n.jsx("div",{className:`audio-player__wave-inner audio-player__wave-played ${te?"is-ready":""}`,ref:s,style:Z,children:Y})]})]})}const f3={idle:"\uB300\uAE30",synthesizing:"\uC18C\uB9AC\uB97C \uB9CC\uB4E4\uACE0 \uC788\uC2B5\uB2C8\uB2E4\u2026",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"},Qu={idle:!1,synthesizing:!0,resolving:!0,checking_exists:!0,getting_signed_url:!0,downloading:!0,measuring_duration:!0,ready:!1,error:!0};function Vo(e,t){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(),t.rejectOnError?r(new Error(d)):a(0))};s.addEventListener("loadedmetadata",u),s.addEventListener("error",()=>c("audio load failed")),setTimeout(()=>c("audio load timeout"),t.timeoutMs),s.src=e})}const g3=2e3;function ec(e,t=g3){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,t)})}function b3({showSoundWaveForm:e,showNoiseWaveForm:t,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 m of d)m(!0)},[]),l=o.useCallback(()=>{r.current=!1},[]),u=o.useCallback(()=>!e&&!t||r.current?Promise.resolve(!0):new Promise(c=>{const d=p=>{clearTimeout(m),s.current=s.current.filter(f=>f!==d),c(p)},m=setTimeout(()=>d(!0),a);s.current.push(d)}),[e,t,a]);return o.useEffect(()=>()=>{const c=s.current;s.current=[];for(const d of c)d(!1)},[]),{onReadyChange:i,waitForReady:u,markNotReady:l}}function y3(){const e=o.useRef([]),t=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:t,keepOnly:a,revokeAll:r}}function v3({offsetY:e=8}={}){const t=o.useRef(null),[a,r]=o.useState(null),s=o.useCallback(()=>r(null),[]),i=o.useCallback(()=>{try{const l=t.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:t,rect:a,show:i,hide:s}}function x3(e){if(!e)return 0;const t=e.duration;if(Number.isFinite(t)&&t>0)return t;if(t===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}const _3=400;function w3({audioRef:e,fillRef:t,waveProgressRef:a,sourcesRef:r,currentIndexRef:s,sequencer:i,leadInMs:l=0,tailMs:u=0}){const c=o.useRef(null),d=o.useCallback(()=>{c.current!==null&&(cancelAnimationFrame(c.current),c.current=null)},[]),m=o.useCallback(()=>{if(c.current!==null)return;let f=0;const b=()=>{if(ma){const y=typeof performance<"u"&&performance.now?performance.now():Date.now();if(f>0&&y-f>_3){let C=null;try{C=typeof document<"u"?document.visibilityState:null}catch{}tn("progress-ticker-slow-frames",`[ihab-core] \uC9C4\uD589 \uC0AC\uC2AC\uC758 \uD2C0 \uC0AC\uC774\uAC00 ${Math.round(y-f)}ms \uC785\uB2C8\uB2E4(\uBCF4\uD1B5 16ms).`,C==="hidden"?"\uC774 \uCE78\uC774 **\uC228\uC5B4 \uC788\uC5B4** \uBE0C\uB77C\uC6B0\uC800\uAC00 \uD2C0\uC744 \uC904\uC600\uC2B5\uB2C8\uB2E4 \u2014 \uC7AC\uC0DD\uBC14\xB7\uD30C\uD615\uC740 \uD2C0\uB9C8\uB2E4 \uADF8\uB824\uC9C0\uBBC0\uB85C, \uC9C0\uAE08 \uC7AC\uB294 \uAC12\uC740 **\uC0AC\uB78C\uC774 \uBCF4\uB294 \uD654\uBA74\uACFC \uB2E4\uB985\uB2C8\uB2E4.** \uCE78\uC744 \uC55E\uC73C\uB85C \uAEBC\uB0B4\uACE0 \uB2E4\uC2DC \uC7AC\uC2ED\uC2DC\uC624.":"\uCE78\uC740 \uBCF4\uC774\uB294\uB370 \uD2C0\uC774 \uB290\uB9BD\uB2C8\uB2E4 \u2014 \uAC19\uC740 \uD654\uBA74\uC5D0\uC11C \uBB34\uAC70\uC6B4 \uC77C\uC774 \uB3C4\uB294\uC9C0 \uBCF4\uC2ED\uC2DC\uC624. \uC7AC\uC0DD\uBC14\xB7\uD30C\uD615\uC774 \uB04A\uACA8 \uBCF4\uC774\uB294 \uAC83\uC740 \uC774 \uD0D3\uC77C \uC218 \uC788\uC2B5\uB2C8\uB2E4.")}f=y}try{const y=e.current,C=Array.isArray(r.current)?r.current[s.current||0]:void 0,v=!!C&&Number.isFinite(C.duration)&&(C.duration??0)>0,_=v?0:x3(y),h=t.current;if(_===null)try{h&&h.style.visibility!=="hidden"&&(h.style.visibility="hidden")}catch{}else{const w=(l||0)>0||(u||0)>0?i3({phase:i?.positionRef.current?.phase??"sound",phaseElapsedMs:i?.positionRef.current?Math.max(0,Date.now()-i.positionRef.current.at):0,currentTime:y&&typeof y.currentTime=="number"?y.currentTime:0,trackDurationSec:v?C.duration:_||0,leadInMs:l||0,tailMs:u||0}):s3({currentTime:y&&typeof y.currentTime=="number"?y.currentTime:0,sources:r.current,index:s.current,audioDuration:_});try{h&&(h.style.visibility&&(h.style.visibility=""),h.style.left=`${w*100}%`)}catch{}try{a.current?.style.setProperty("--progress",String(w))}catch{}}}catch{}c.current=requestAnimationFrame(b)};c.current=requestAnimationFrame(b)},[e,t,a,r,s,i,l,u]),p=o.useCallback(f=>{d();try{t.current&&(t.current.style.visibility="",t.current.style.left=`${f*100}%`)}catch{}try{a.current?.style.setProperty("--progress",String(f))}catch{}},[d,t,a]);return o.useEffect(()=>d,[d]),{start:m,stop:d,settleTo:p}}function Wo({btnLabel:e,soundSrc:t,bucketPath:a,onDone:r,disabled:s=!1,ttsText:i=null,className:l,showSoundWaveForm:u=!0,showNoiseWaveForm:c=!0,leadInMs:d=0,tailMs:m=0}){const{t:p}=ye.useTranslation(),f=e,b=cr(),y=o.useRef(b?.registerAnalyser);o.useEffect(()=>{y.current=b?.registerAnalyser});const C=o.useRef(null),v=o.useRef(null),_=o.useRef(null),h=y3(),w=o.useRef(null),g=o.useRef(!1),B=o.useRef(0),x=o.useRef(null),{ref:A,rect:N,show:k,hide:S}=v3();o.useEffect(()=>()=>{y.current?.("main",null),y.current?.("noise",null)},[]);const[E,F]=o.useState(!1),[$,U]=o.useState("idle"),[j,T]=o.useState("stopped"),I=o.useRef("stopped");o.useEffect(()=>{I.current=j},[j]);const[K,ee]=o.useState(0),[V,q]=o.useState("active"),P=o.useRef(!1);o.useEffect(()=>{if(V!=="playMode"||!P.current)return;P.current=!1;const ae=typeof document<"u"?document.activeElement:null;if(ae&&ae!==document.body)return;const we=_.current?.querySelectorAll("button")[1];try{we?.focus()}catch{}},[V]);const[O,D]=o.useState(null),[H,L]=o.useState(null),[R,z]=o.useState(0),[J,Y]=o.useState(!1),[Z,ne]=o.useState(0),le=b?.playbackRate??1,ue=b?.mainVolume??1,Ee=b?Io(b.settings):0,W=b?Uu(b.settings):ue,[te,fe]=o.useState("idle"),[Se,Ce]=o.useState(""),[ie]=o.useState("top"),ce=o.useRef(null),de=o.useRef(0),be=o.useRef(null),_e=o.useRef(!0),Be=V5({mountedRef:_e}),Ze=o.useRef(null),Oe=o.useRef(d),Ie=o.useRef(m);o.useEffect(()=>{Oe.current=Math.max(0,d||0)},[d]),o.useEffect(()=>{Ie.current=Math.max(0,m||0)},[m]);const He=Be.waitPad,{start:ut,stop:nt,settleTo:rt}=w3({audioRef:C,fillRef:v,waveProgressRef:be,sourcesRef:ce,currentIndexRef:de,sequencer:Be,leadInMs:d,tailMs:m}),{onReadyChange:pt,waitForReady:Ne,markNotReady:Fe}=b3({showSoundWaveForm:u,showNoiseWaveForm:c}),Ae=o.useRef(null),at=o.useRef(s),X=o.useRef(r),oe=o.useRef(null),he=o.useRef(!1),[je,ot]=o.useState(!1),Ye=o.useCallback(ae=>{he.current=ae,ot(ae)},[]),bt=o.useRef(null),{activeNoiseUrl:Ct,noiseSettingsRef:st,fadeInNoise:et,fadeOutNoise:Xe}=Z5({noisePlayer:b,audioRef:C,playbackStateRef:I,sequencer:Be}),{startTTS:tt,stopTTS:$e}=X5({ttsText:i,playbackRate:le,mainVolume:W,fillRef:v,waveProgressRef:be,setProgress:ee,setPlaybackState:T,setStateLocal:q,fadeInNoise:et,fadeOutNoise:Xe,noiseSettingsRef:st,onDoneRef:X,handleEndRef:bt});o.useEffect(()=>{vt.current=$e});const Ge=ae=>{if(typeof window>"u"||!window.speechSynthesis){try{Ce(p("training.ttsUnavailable","\uC774 \uAE30\uAE30\uC5D0\uC11C\uB294 \uC74C\uC131\uC744 \uB4E4\uB824\uC904 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4."))}catch{}tt(ae);return}Rt("tts"),tt(ae)},Pe=Array.isArray(t)?t.filter(Boolean):t?[t]:[],mt=(!Pe||Pe.length===0)&&!!i,Tt=Array.isArray(O)&&O.length>0?O:Array.isArray(H)&&H.length>0?H:null,kt=Math.max(Array.isArray(Tt)?Tt.length:0,Pe.length);o.useEffect(()=>(_e.current=!0,()=>{_e.current=!1}),[]);const ht=()=>{Be.abort(),B.current+=1},vt=o.useRef(null),ze=o.useRef(null),it=o.useRef(null),wt=o.useRef(null);wt.current||(wt.current=()=>{it.current=null;const ae=C.current;if(ze.current==="audio"&&ae&&(!ae.paused||Be.isRunning())){ht();try{ae.pause()}catch{}_e.current&&(T("paused"),nt(),Xe())}else if(ze.current==="tts")try{vt.current?.()}catch{}});const Rt=ae=>{ze.current=ae,it.current=er(wt.current)},Qe=()=>{it.current?.(),it.current=null};o.useEffect(()=>()=>{wt.current&&tr(wt.current)},[]);const Nt=o.useRef(le);o.useEffect(()=>{Nt.current=le||1},[le]);const Dt=o.useCallback(ae=>{const we=Nt.current||1;try{ae.defaultPlaybackRate=we}catch{}try{ae.playbackRate=we}catch{}},[]),Mt=o.useCallback((ae,we)=>{ae.src=we,Dt(ae),ae.load(),Dt(ae)},[Dt]),Pt=o.useCallback(async(ae,we=3,re=50)=>{const xe=Be.generation();if(Oe.current>0){Rt("audio"),ut(),T("playing");const Re=st.current;if(Re?.enabled&&(Re.volume??0)>0)try{et(Re.volume)}catch{}if(!await He(Oe.current,"lead")||!_e.current||!Be.isCurrent(xe))return!1}Be.enterSound();for(let Re=0;Re<we;Re++){if(!_e.current||!Be.isCurrent(xe))return!1;try{return Rt("audio"),await ae.play(),!0}catch(We){if((We instanceof Error||typeof We=="object"&&We&&"name"in We?We.name:void 0)==="AbortError"){if(!Be.isCurrent(xe))return!1;await new Promise(dt=>setTimeout(dt,re));continue}try{Ce(p("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."))}catch{}return!1}}try{Ce(p("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."))}catch{}return!1},[p,ut,He,et,st]),gn=o.useCallback(()=>{const ae=C.current;if(!ae)return;const we=()=>{T("playing"),q("playMode"),Y(!0),ut();try{Ir(),za(ae).then(We=>{if(_e.current)try{y.current?.("main",We)}catch{}})}catch{}const Re=st.current;Re?.enabled&&(Re?.volume??0)>0&&et(Re.volume)},re=()=>{c3({ended:!!ae?.ended,completedByEnd:he.current})||(T("paused"),nt(),Xe())},xe=()=>{const Re=()=>{try{const We=ce.current,dt=u3(We,de.current);if(dt!==null){de.current=dt,z(dt),Y(!0);const Bt=We?.[dt]&&We[dt].src;if(Bt&&ae){Mt(ae,Bt),Pt(ae).catch(()=>{});return}}}catch{}T("stopped"),ee(1);try{if(ae)try{ae.currentTime=0}catch{}}catch{}nt(),Y(!1),Xe();try{!at.current&&bt.current&&bt.current()}catch{}};if(Ze.current=Re,Ie.current>0){ut(),He(Ie.current,"tail").then(We=>{Be.leave(),We&&Re()}).catch(()=>{});return}Re()};return ae.addEventListener("play",we),ae.addEventListener("pause",re),ae.addEventListener("ended",xe),()=>{try{ae.removeEventListener("play",we),ae.removeEventListener("pause",re),ae.removeEventListener("ended",xe),nt()}catch{}}},[et,Xe,Pt,st,ut,nt,He]);o.useEffect(()=>gn(),[gn]),o.useEffect(()=>{at.current=s},[s]),o.useEffect(()=>{X.current=r},[r]),o.useEffect(()=>{if(s||V!=="active")return;const ae=x.current;if(!ae)return;let we=null;const re=requestAnimationFrame(()=>{try{const xe=ae.getTotalLength();if(!xe)return;const Re=xe*.2;ae.style.strokeDasharray=`${xe-Re} ${Re}`;const We="triFlow_"+Math.random().toString(36).slice(2);we=document.createElement("style"),we.textContent=`@keyframes ${We}{from{stroke-dashoffset:0}to{stroke-dashoffset:-${xe}}}`,document.head.appendChild(we),ae.style.animation=`${We} 2.4s linear infinite`}catch{}});return()=>{cancelAnimationFrame(re),we?.remove()}},[V,s]),o.useEffect(()=>{ce.current=O},[O]),o.useEffect(()=>{de.current=R},[R]),o.useEffect(()=>{const ae=_.current,we=w.current;if(!ae||!we)return;let re=null;const xe=32,Re=60,We=()=>{try{const Bt=Array.from(ae.querySelectorAll(":scope > .button"));let ge=0;Bt.forEach(Le=>{if(Le===we)return;const Ke=Le.getBoundingClientRect();ge+=Ke.width});const M=ae.getBoundingClientRect().width,G=Math.max(0,Math.floor(M-ge-8)),pe=kt;if(!pe||G<=0){Array.from(we.children).forEach(Le=>{try{Le.style.width=""}catch{}});return}let De=Math.floor(G/pe);De>Re&&(De=Re),De<xe&&(De=Math.max(xe,Math.floor(G/pe))),Array.from(we.querySelectorAll(".button")).forEach(Le=>{try{Le.style.width=`${De}px`}catch{}})}catch{}},dt=requestAnimationFrame(We);try{re=new ResizeObserver(()=>{requestAnimationFrame(We)}),re.observe(ae),re.observe(we),window.addEventListener("resize",We)}catch{}return()=>{try{cancelAnimationFrame(dt)}catch{}try{re&&(re.disconnect(),re=null)}catch{}try{window.removeEventListener("resize",We)}catch{}}},[O,H,kt]),o.useEffect(()=>()=>{try{Ae.current&&(clearTimeout(Ae.current),Ae.current=null),oe.current&&(clearTimeout(oe.current),oe.current=null)}catch{}},[]);const dn=(ae,we)=>{D(ae),ne(we),Fe(),L(d3(ae)),ce.current=ae},pn=()=>{q("playMode"),z(0),Y(!0)},mn=async(ae,we)=>{Ye(!1),g.current=!1,Mt(ae,we),await ec(ae),await Ne()!==!1&&(F(!1),pn(),await Pt(ae))},In=async(ae,we=!1)=>{const re=C.current;F(!0),U("measuring_duration");try{const xe=await Vo(ae,{timeoutMs:1e4,rejectOnError:!0});dn([{src:ae,objectUrl:null,duration:xe}],xe),U("ready"),we&&re&&await mn(re,ae)}finally{g.current=!1,F(!1)}},bn=async(ae,we=!1)=>{const re=C.current;F(!0),U("measuring_duration");try{const xe=await Promise.all(ae.map(We=>Vo(We,{timeoutMs:1e4})));if(!_e.current)return;const Re=ae.map((We,dt)=>({src:We,objectUrl:null,duration:xe[dt]||0}));dn(Re,p3(Re)),U("ready"),we&&re&&Re.length>0&&await mn(re,Re[0].src)}finally{g.current=!1,F(!1)}},Wt=async(ae=!1,we=!0)=>{const re=C.current,xe=t?Array.isArray(t)?t:[t]:[];if(!xe||xe.length===0||!xe.some(Boolean))return!1;if(g.current)return null;g.current=!0,we&&F(!0),U("resolving");try{const Re=m3(t,a,Gs),We=[];let dt=0;for(const Bt of Re){let ge=Bt.src??null,M=null;if(!ge&&Bt.resolvedPath){try{U("getting_signed_url"),ge=await Ks(Bt.resolvedPath)}catch{ge=null}if(!_e.current)return!1;if(!ge)try{U("downloading");const pe=await Ys(Bt.resolvedPath);if(!_e.current)return!1;if(pe){const De=pe instanceof Blob?pe:new Blob([pe]);M=h.track(URL.createObjectURL(De)),ge=M}}catch{U("error");try{Ce(p("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.")),q("active")}catch{}}}if(!ge)continue;let G=0;try{U("measuring_duration"),G=await Vo(ge,{timeoutMs:3e3})}catch{G=0}if(!_e.current){if(M)try{URL.revokeObjectURL(M)}catch{}for(const pe of We)if(pe.objectUrl)try{URL.revokeObjectURL(pe.objectUrl)}catch{}return!1}dt+=G||0,We.push({...Bt,src:ge,objectUrl:M,duration:G})}if(dn(We,dt),We.length>0&&ae&&re){const Bt=We[0];Ye(!1);try{h.keepOnly(We.map(ge=>ge.objectUrl))}catch{}if(U("ready"),g.current=!1,Bt.src&&re)try{if(Mt(re,Bt.src),await ec(re),await Ne()===!1)return!1;we&&F(!1),pn(),re&&await Pt(re)}catch{we&&F(!1)}else we&&F(!1);q("playMode"),z(0),Y(!0)}return We.length>0}finally{g.current=!1,we&&F(!1),U(Re=>Re==="ready"?"ready":"idle")}},yn=async ae=>{const we=Be.isRunning();if(ae.paused&&!we){if(he.current){await It();return}const re=Be.resume();if(typeof re=="function"){T("playing"),re();return}await Pt(ae),T("playing")}else Be.pause(Ze.current),ht(),ae.pause(),T("paused"),we&&(nt(),Xe())},qt=async()=>{const ae=C.current;if(!(!ae&&!mt)){if(mt){const we=window.speechSynthesis;if(V==="active"){const re=$r(),xe=Array.isArray(i)?i.filter(Boolean):i?[i]:[];if(re&&xe.length>0){if(g.current)return;q("load"),F(!0),U("synthesizing"),g.current=!0;try{const Re=await Promise.all(xe.map(We=>Promise.resolve(re(We))));Re.length>1?await bn(Re,!0):await In(Re[0],!0)}catch{g.current=!1,F(!1),q("active"),Ge(xe.length>0?xe:void 0)}return}Ge(xe.length>0?xe:void 0);return}if(V==="playMode"){const re=!!we&&(we.speaking||we.paused)&&!(ae&&(ae.currentSrc||ae.getAttribute("src")));if(ae&&!re){await yn(ae);return}try{if(we&&we.paused)try{Rt("tts"),we.resume(),T("playing")}catch{}else try{we.pause(),T("paused")}catch{}}catch{}}return}if(V==="active"){if(s&&Array.isArray(ce.current)&&ce.current.length>0){const re=ce.current[0];try{if(re.src&&ae)try{Mt(ae,re.src),pn(),ae&&await Pt(ae)}catch{}pn();return}catch{}}q("load");let we;try{we=await Wt(!0)}catch{we=!1}if(we===!1&&_e.current){try{Ce(p("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."))}catch{}q("active")}return}if(V!=="load"&&(V==="playMode"||V==="active"))try{ae&&await yn(ae)}catch(we){(we instanceof Error||typeof we=="object"&&we&&"name"in we)&&we.name}}},It=async()=>{const ae=C.current;if(ae)try{const we=ce.current;if(Array.isArray(we)&&we.length>1){await Ot(0);return}Ye(!1);try{ae.currentTime=0}catch{}ae&&await Pt(ae),T("playing"),q("playMode")}catch{}},En=()=>{ht(),Qe(),vt.current?.();const ae=C.current;try{if(ae){try{ae.pause()}catch{}try{ae.currentTime=0}catch{}}}catch{}Xe(),T("stopped"),q("active"),ee(0),Y(!1)},rn=async(ae,{sameSegment:we=!1}={})=>{ht();const re=++B.current,xe=C.current,Re=ce.current?.[ae]?.src;try{if(Ye(!1),z(ae),Y(!0),de.current=ae,!Re||!xe||(we||Fe(),Mt(xe,Re),!we&&await Ne()===!1)||re!==B.current||(await Pt(xe),re!==B.current))return;T("playing"),q("playMode")}catch{}},vn=async()=>{const ae=ce.current,we=de.current||0;if(!ae||we<=0){await It();return}await rn(we-1)},Fn=async()=>{const ae=ce.current,we=de.current||0;if(!ae||we>=ae.length-1){En();return}await rn(we+1)},hn=()=>{if(he.current)return;const ae=200,we=340;Ye(!0),ht(),Qe();try{ee(1)}catch{}rt(1);try{fe("hold")}catch{}try{const re=C.current,xe=mt&&!!re?.src;if(!mt||xe){if(re){re.pause();try{re.currentTime=0}catch{}}}else $e();Xe()}catch{}try{T("stopped")}catch{}if(Y(!1),!at.current)try{oe.current&&(clearTimeout(oe.current),oe.current=null),oe.current=setTimeout(()=>{try{fe("out")}catch{}oe.current=setTimeout(()=>{try{typeof X.current=="function"&&X.current(!0)}catch{}try{fe("idle")}catch{}oe.current=null},we)},ae)}catch{}};o.useEffect(()=>{bt.current=hn});const Ut=o.useCallback(()=>Ce(""),[]),Ot=async ae=>{(ce.current||[])[ae]&&await rn(ae,{sameSegment:ae===de.current})},se=j==="playing",ve=o.useMemo(()=>{if(!H||H.length<=1)return H;const ae=H[R];return ae?[ae]:H},[H,R]),Te=s===!0;o.useEffect(()=>{try{const ae=C.current;ae&&typeof ae.playbackRate=="number"&&Dt(ae)}catch{}},[le,Dt]);const Ue=o.useRef({raf:null,timer:null});o.useEffect(()=>{const ae=C.current;if(!ae)return;const we=Math.max(0,Math.min(1,W)),re=Ue.current,xe=()=>{re.raf!==null&&(cancelAnimationFrame(re.raf),re.raf=null),re.timer!==null&&(clearTimeout(re.timer),re.timer=null)};xe();const Re=Va(ae);if(ae.paused||Math.abs(Re-we)<.001||typeof requestAnimationFrame!="function"){try{Tn(ae,we)}catch{}return}const We=performance.now(),dt=()=>{const Bt=Math.min(1,(performance.now()-We)/150);try{Tn(ae,Re+(we-Re)*Bt)}catch{}re.raf=Bt<1?requestAnimationFrame(dt):null};return re.raf=requestAnimationFrame(dt),re.timer=setTimeout(()=>{xe();try{Tn(ae,we)}catch{}},200),xe},[W]);const Me=te==="hold",Ve=te==="out",qe=V==="playMode"&&!E&&!je||Me||Ve,ct=j!=="stopped"||Me||Ve,Et=j==="paused",Jt=Math.max(0,Math.min(100,(K||0)*100)),Qt=ke("audio-player__fill",qe?"is-visible":"",ct?"is-expanded":"",Et?"is-paused":"",Ve?"is-out":"");return n.jsxs("div",{className:`audio-player ${Te?"is-disabled":""}${l?` ${l}`:""}`,role:"group","aria-label":typeof f=="string"?f:void 0,children:[n.jsxs("div",{className:`audio-player__panel ${se?"is-playing":""} ${E?"is-loading":""} ${V!=="default"?"is-revealed":""}`,children:[E?n.jsxs("div",{className:"audio-player__loading",role:Qu[$]?"status":void 0,"aria-live":Qu[$]?"polite":"off",children:[n.jsx("span",{className:"audio-player__loading-spinner","aria-hidden":"true"}),n.jsx("span",{className:"audio-player__loading-text",children:p(`training.audioStatus.${$}`,{defaultValue:f3[$]})})]}):null,V==="active"?n.jsx("button",{className:"audio-player__button",type:"button",disabled:Te,onClick:()=>{P.current=or(),S(),qt()},"aria-label":typeof f=="string"?f:p("training.listen","\uB4E3\uAE30"),onMouseEnter:k,onMouseLeave:S,onFocus:k,onBlur:S,children:n.jsx("span",{ref:A,className:"audio-player__button-triangle-wrap",children:n.jsx("svg",{className:"audio-player__button-triangle",viewBox:"0 0 24 24","aria-hidden":"true",children:n.jsx("path",{ref:x,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,N&&n.jsx(_n,{anchorRect:N,text:typeof f=="string"&&f?f:p("training.listenLabel","\uBB38\uC7A5 \uB4E3\uAE30"),offset:8}),n.jsxs("div",{className:`audio-player__play ${V==="playMode"||se?"is-visible":""}`,inert:!(V==="playMode"||se)||void 0,children:[n.jsxs("div",{ref:_,className:"audio-player__buttons",children:[n.jsx(me,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"skip-back",onClick:vn,ariaLabel:p("training.prev","\uC774\uC804"),width:"60px",variant:"transparent-white","aria-hidden":"true",tabIndex:-1,disabled:V!=="playMode"}),n.jsx(me,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:se?"pause":"play",onClick:qt,ariaLabel:p("common.playPause","\uC7AC\uC0DD / \uBA48\uCDA4"),"aria-pressed":se,width:"60px",variant:"transparent-white",disabled:V!=="playMode"}),n.jsx(me,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"square",onClick:En,ariaLabel:p("training.stop","\uC815\uC9C0"),width:"60px",variant:"transparent-white","aria-hidden":"true",tabIndex:-1,disabled:V!=="playMode"}),kt>1?n.jsx("div",{ref:w,className:"audio-player__source-buttons",children:Array.from({length:kt}).map((ae,we)=>n.jsx(me,{htmlType:"button",size:32,type:"dot",shape:"pill",useBorder:!1,label:String(we+1),onClick:()=>{try{Ot(we)}catch{}},ariaLabel:p("training.sourcePlay",{n:we+1}),variant:"transparent-white",selected:J&&R===we,disabled:V!=="playMode"||!(Array.isArray(O)&&O[we]),showTooltipInfo:!0},we))}):null,!Array.isArray(O)||O.length<=1?n.jsx(me,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"repeat",onClick:It,ariaLabel:p("common.replay","\uB2E4\uC2DC\uB4E3\uAE30"),width:"60px",variant:"transparent-white",disabled:V!=="playMode"}):null,n.jsx(me,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"skip-forward",onClick:Fn,ariaLabel:p("training.next","\uB2E4\uC74C"),width:"60px",variant:"transparent-white","aria-hidden":!0,tabIndex:-1,disabled:V!=="playMode"}),n.jsx(me,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"check",onClick:hn,ariaLabel:p("common.done","\uC644\uB8CC"),width:"60px",variant:"transparent-white",disabled:V!=="playMode"})]}),n.jsxs("div",{className:"audio-player__slider",children:[n.jsx("div",{className:Qt,ref:v,style:{left:`${Jt}%`},"aria-hidden":"true"}),(u||c)&&n.jsx(C3,{segments:ve,progress:K,totalDuration:Z,waveProgressRef:be,showSoundWaveForm:u,leadInMs:d,tailMs:m,trackDurationSec:O?.[R]?.duration??0,noiseSrc:c&&b?.settings.enabled&&Ee>0?Ct:null,noiseRatio:b?Ia(b.settings):0,noiseSpeed:b?.settings.speed??1,mainVolume:ue,onReadyChange:pt})]})]}),n.jsx("audio",{ref:C,crossOrigin:"anonymous",preload:"auto"})]}),!u&&n.jsxs("p",{className:"audio-player__no-waveform caption-1",children:[n.jsx(Je,{icon:"triangle-alert",size:14}),p("training.noSoundWaveform","\uC18C\uB9AC \uBE44\uAD50 \uBB38\uC81C\uB294 \uC6E8\uC774\uBE0C\uD3FC\uC744 \uD45C\uD604\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.")]}),n.jsx(oa,{message:Se,position:ie,onClose:Ut})]})}function hr(e){const{t}=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:m,decrease:p,canIncrease:f,canDecrease:b,fontSize:y,lineHeight:C}=nl({storageKey:"tooltip-fontScale"}),v=o.useCallback(()=>d(B=>B==="dark"?"light":"dark"),[]),_=o.useCallback(B=>{try{B.stopPropagation()}catch{}try{typeof i=="function"&&i()}catch{}},[i]),h=Array.isArray(a)?a:typeof a>"u"||a===null?[]:[a],w={fontSize:`${y}px`,lineHeight:`${C}px`,"--tt-line-height":`${C}px`,"--tt-marker-size":"28px"},g=n.jsxs("div",{className:`tooltip-textbox__root ${c==="dark"?"is-dark":""}`,children:[n.jsxs("div",{className:"tooltip-textbox__box",children:[r&&n.jsx("div",{className:"tooltip-textbox__label body-2b",children:r}),n.jsx("div",{className:"tooltip-textbox__text body-1",style:w,children:h.map((B,x)=>n.jsxs("div",{className:"tooltip-textbox__line",children:[h.length>1?n.jsx("div",{className:"tooltip-textbox__marker",children:n.jsx("span",{className:"tooltip-textbox__line-number button-1",children:x+1})}):null,n.jsx("span",{className:"tooltip-textbox__line-text",children:B})]},x))})]}),n.jsxs("div",{className:"tooltip-textbox__buttons",children:[n.jsx(me,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:"minus",onClick:p,ariaLabel:t("training.fontSizeDecrease","\uAE00\uC790 \uD06C\uAE30 \uAC10\uC18C"),variant:c==="dark"?"transparent-white":"transparent-gray",disabled:!b}),n.jsx(me,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:"plus",onClick:m,ariaLabel:t("training.fontSizeIncrease","\uAE00\uC790 \uD06C\uAE30 \uC99D\uAC00"),variant:c==="dark"?"transparent-white":"transparent-gray",disabled:!f}),n.jsx(me,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:c==="dark"?"moon":"sun-medium",onClick:v,ariaLabel:t("training.toggleBackground","\uBC30\uACBD \uC804\uD658"),variant:c==="dark"?"transparent-white":"transparent-gray"}),n.jsx(me,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:"x",onClick:_,ariaLabel:t("common.close","\uB2EB\uAE30"),variant:c==="dark"?"transparent-white":"transparent-gray"})]})]});return s?n.jsx(ln,{anchorRect:s,className:`tooltip-textbox ${c==="dark"?"is-dark":""}`,onClose:i,closeOnOutsideClick:l,isMobilePopup:u,ariaLabel:r||t("tooltip.textbox","\uBCF8\uBB38"),children:g}):n.jsx("div",{className:`tooltip-textbox ${c==="dark"?"is-dark":""}`,children:g})}function tc({state:e="disabled"}){const{t}=ye.useTranslation();return n.jsxs("div",{className:`ts-bullet ts-bullet--${e}`,"aria-hidden":!0,children:[n.jsx("div",{className:"bullet__dot",children:n.jsx(Je,{icon:"chevron-right",label:t("training.next","\uB2E4\uC74C"),className:"bullet__icon",imgClassName:"bullet__icon-img",maskClassName:"bullet__icon-mask",svgClassName:"bullet__icon-svg",wrapperStyle:{},size:20})}),n.jsx("div",{className:"ts-bullet__line"})]})}function nc(e,t,a){const r=o.useRef(t),s=o.useRef(a);o.useEffect(()=>{r.current=t,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(Cn)).find(m=>!m.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 ac({title:e,children:t,className:a="",state:r="disabled",usePreviewTextBtn:s=!1,onPreviewTextBtn:i,previewText:l=null,useFaded:u,usePlayAllBtn:c=!1,onPlayAll:d,playAllActive:m=!1}){const{t:p}=ye.useTranslation(),f=on("(max-width: 767px)"),b=`training-step__title h4 ${u&&r==="disabled"?"training-step__title--faded":""} ${a}`.trim(),y=`training-step__title-row training-step__title-row--${r}`.trim(),C=o.useRef(null),[v,_]=o.useState(!1),[h,w]=o.useState(null),[g,B]=o.useState(null);nc(v&&!!h,()=>{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},()=>C.current?.querySelector("button")??null);const x=o.useRef(i);o.useEffect(()=>{x.current=i});const A=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]),N=o.useCallback(()=>{_(!1),w(null),B(null)},[]);o.useEffect(()=>{if(!v)return;let S;try{typeof x.current=="function"&&(S=x.current())}catch{}if(S===!1){N();return}B(typeof S<"u"&&S!==null?S:null)},[A]);const k=o.useCallback(()=>{let S;try{typeof i=="function"&&(S=i())}catch{}if(S!==!1){if(B(typeof S<"u"&&S!==null?S:l),!C.current){_(E=>!E);return}if(v)_(!1),w(null),B(null);else{const E=C.current.getBoundingClientRect();w(E),_(!0)}}},[i,l,v]);return n.jsxs("div",{className:y,children:[n.jsx("p",{className:b,children:n.jsx("span",{className:"training-step__title-text",children:e??t})}),s||c?n.jsxs("div",{className:"title-controls",children:[n.jsxs("div",{className:"title-buttons",children:[c&&n.jsx(me,{htmlType:"button",size:32,type:f?"dot":"bar",icon:"play-circle",label:f?void 0:p("training.playAll","\uBAA8\uB450 \uB4E3\uAE30"),ariaLabel:p("training.playAll","\uBAA8\uB450 \uB4E3\uAE30"),selected:m,onClick:d,variant:r==="disabled"?"disabled":"default",disabled:r==="disabled"||m,onDisabledClick:m&&r!=="disabled"?()=>{}:void 0}),s&&n.jsx("div",{ref:C,children:n.jsx(me,{htmlType:"button",size:32,type:f?"dot":"bar",icon:"eye",label:f?void 0:p("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),ariaLabel:p("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),onClick:k,className:v?"is-selected":void 0,"aria-expanded":v,"aria-haspopup":"dialog",variant:r==="disabled"?"disabled":"default",disabled:!l&&typeof i!="function"})})]}),v&&n.jsx(hr,{text:g??l,label:p("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),anchorRect:h,onClose:N,closeOnOutsideClick:!1,isMobilePopup:!0})]}):null]})}function qo(e,t){return typeof t!="number"||typeof e!="number"?"disabled":e<t?"done":e===t?"active":"disabled"}function Kn({index:e,stepIndex:t,isLast:a=!1,title:r="",titleProps:s={},children:i,className:l="",onDone:u=void 0,useTitleFaded:c=void 0}){const{t:d}=ye.useTranslation(),[m,p]=o.useState(()=>qo(e,t));o.useEffect(()=>{const B=qo(e,t);if(B!==m){const x=setTimeout(()=>p(B),0);return()=>clearTimeout(x)}},[e,t,m]);const f=o.useCallback((...B)=>{qo(e,t)==="done"||m==="done"||typeof u=="function"&&u(...B)},[e,t,m,u]),[b,y]=o.useState(!1),[C,v]=o.useState({text:"",label:"\uBB38\uC7A5 \uB4E3\uAE30",anchorRect:null,backdrop:!1,alignX:null,alignY:null}),_=o.useCallback(B=>{if(!B)return null;try{const x=B;if(typeof B=="object"&&(x.currentTarget||x.target)&&(x.nativeEvent||x.type)){const k=x.currentTarget??x.target;if(k&&typeof k.getBoundingClientRect=="function")return k.getBoundingClientRect()}if(B instanceof DOMRect)return B;const A=B;if(A&&typeof A.getBoundingClientRect=="function")return A.getBoundingClientRect();const N=B?.current;return N&&typeof N.getBoundingClientRect=="function"?N.getBoundingClientRect():null}catch{return null}},[]),h=o.useCallback((B,{text:x="",label:A="\uBB38\uC7A5 \uB4E3\uAE30",backdrop:N=!1,alignX:k="center",alignY:S="top"}={})=>{const E=_(B);v({text:x,label:A,anchorRect:E,backdrop:N,alignX:k,alignY:S}),y(!0)},[_]),w=o.useCallback(()=>{y(!1),v(B=>({...B,anchorRect:null}))},[]),g=o.Children.map(i,B=>{if(o.isValidElement(B)){const x=B;if(typeof x.type=="string")return x;const A=x.props??{},N=typeof A.onDone=="function"?A.onDone:f,k=typeof A.disabled=="boolean";let S=m==="disabled";return k&&(S=!!A.disabled),o.cloneElement(x,{onDone:N,disabled:S,showTooltip:h,hideTooltip:w})}return B});return n.jsxs("div",{className:`training-step training-step--${m} ${a?"training-step--last":""} ${l}`,"aria-current":m==="active",children:[n.jsx(tc,{state:m}),n.jsxs("div",{className:"training-step__content",children:[n.jsx(ac,{state:m,title:r,...s,useFaded:c}),g]}),b?n.jsx(ln,{anchorRect:C.anchorRect,backdrop:C.backdrop,onClose:w,ariaLabel:d("tooltip.textbox","\uBCF8\uBB38"),children:n.jsx(hr,{text:C.text,onClose:w})}):null]})}function rc({context:e,state:t="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($=>$==="dark"?"light":"dark"),{increase:d,decrease:m,canIncrease:p,canDecrease:f,fontSize:b,lineHeight:y}=nl({storageKey:"textbox_fontScale"}),[C,v]=o.useState(""),_=o.useRef(null),h=o.useRef(!1),w=o.useCallback(()=>{h.current=or()&&!!_.current&&_.current.contains(document.activeElement),i("active")},[]),g=o.useCallback(()=>v(""),[]),B=$=>{try{v($)}catch{}},x=typeof navigator<"u"&&/Mobi|Android/i.test(navigator.userAgent||"");o.useEffect(()=>{if(t!=="disabled"){const $=setTimeout(()=>i(t),0);return()=>clearTimeout($)}},[t]);const A=o.useMemo(()=>e&&typeof e=="object"?String(e.sentence??e.text??""):typeof e=="string"?e:"",[e]),[N,k]=o.useState(A);N!==A&&(k(A),i("disabled"));const S=t==="disabled"?s:t,E=S==="disabled"?"training-text-box--disabled":S==="active"?"training-text-box--active":S==="done"?"training-text-box--done":"",F=o.useMemo(()=>({fontSize:`${b}px`,lineHeight:`${y}px`}),[b,y]);return o.useEffect(()=>{if(S==="disabled"||!h.current)return;h.current=!1;const $=document.activeElement;$&&$!==document.body||_.current?.querySelector(".training-text-box__buttons button")?.focus()},[S]),n.jsxs("div",{ref:_,className:`training-text-box ${E} ${S!=="disabled"&&l==="dark"?"is-dark":""}`,children:[S==="disabled"&&n.jsx("div",{className:"training-text-box__preview",children:n.jsx(me,{htmlType:"button",size:48,type:"bar",onClick:w,icon:"eye",ariaLabel:r("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),label:r("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),useBorder:!1})}),n.jsx("div",{className:"training-text-box__area","aria-hidden":S==="disabled",children:n.jsx("span",{className:"training-text-box__inner h3",style:F,children:A})}),S!=="disabled"&&n.jsxs("div",{className:"training-text-box__buttons","aria-hidden":S==="disabled",children:[n.jsx(me,{htmlType:"button",size:32,type:"dot",onClick:m,onDisabledClick:()=>B(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:!f,useBorder:!1,showTooltipInfo:!0,...!x&&{width:"60px"}}),n.jsx(me,{htmlType:"button",size:32,type:"dot",onClick:d,onDisabledClick:()=>B(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:!p,useBorder:!1,showTooltipInfo:!0,...!x&&{width:"60px"}}),n.jsx(me,{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"})]}),n.jsx(oa,{message:C,position:"top",onClose:g})]})}function Uo({index:e,stepIndex:t,isLast:a=!1,title:r,useTitleFaded:s,onDone:i,onChange:l,answer:u,wrongAnswers:c,choices:d,multiSelect:m=!1,correctCount:p=0,useDisabledCovered:f=!1,choiceIcons:b,shuffleChoices:y=!0}){const{t:C}=ye.useTranslation(),v=r??C("training.selectConfirm","\uBB38\uC81C\uB97C \uBCF4\uACE0 \uD574\uB2F9\uD558\uB294 \uB0B4\uC6A9\uC744 \uC120\uD0DD\uD558\uC138\uC694."),_=typeof e=="number"?e:-1,h=typeof t!="number"?"disabled":_<t?"done":_===t?"active":"disabled",w=Array.isArray(d)&&d.length?d:typeof u<"u"?[u].concat(Array.isArray(c)?c:[]):void 0,g=c?c.join("||"):"",B=d?d.join("||"):"",[x,A]=o.useState(()=>Array.isArray(w)?y?xa(w):w.slice():void 0);o.useEffect(()=>{Array.isArray(w)&&w.length?A(y?xa(w):w.slice()):A(void 0)},[u,g,B,y]);const[N,k]=o.useState(null),[S,E]=o.useState(()=>new Set);o.useEffect(()=>{k(null),E(new Set)},[B,u,g]);const F=o.useRef(void 0);o.useEffect(()=>{const j=F.current;typeof j=="number"&&typeof t=="number"&&typeof e=="number"&&j>=e&&t<e&&(k(null),E(new Set)),F.current=t},[t,e]);const $=o.useCallback(j=>{if(h!=="active")return;const T=x?.[j];if(T==null)return;const I=T,K=h==="active"||h==="done";if(m){const ee=new Set(S),V=ee.has(I);V?ee.delete(I):ee.add(I),E(ee),typeof l=="function"&&l({selectedValues:[...ee],__ts:Date.now()}),K&&(typeof p=="number"&&p>0?ee.size>=p:!V)&&typeof i=="function"&&h==="active"&&i({selectedValues:[...ee],__ts:Date.now()})}else k(I),typeof l=="function"&&l({selectedIndex:j,selectedValue:I,__ts:Date.now()}),K&&typeof i=="function"&&h==="active"&&i({selectedIndex:j,selectedValue:I,__ts:Date.now()})},[x,h,m,l,i,p,S]),U=`training-step__buttons${Array.isArray(x)&&x.length>3?" training-step__buttons--wrap-3":""}`;return n.jsx(Kn,{index:e,stepIndex:t,isLast:a,title:v,useTitleFaded:s,children:n.jsx("div",{className:U,children:Array.isArray(x)&&x.length>0?x.map((j,T)=>n.jsx(me,{htmlType:"button",size:56,type:"bar",onClick:()=>$(T),ariaLabel:String(j),label:j,useLabel:!0,icon:b?b[String(j)]:void 0,variant:"default",disabled:h==="disabled",selected:m?S.has(j):N===j,useDisabledCovered:f,minWidth:0},String(j))):null})})}function Go({index:e,stepIndex:t,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."),m=typeof e=="number"?e:-1,p=typeof t!="number"?"disabled":m<t?"done":m===t?"active":"disabled",f=l&&typeof l=="object"?l.sentence||"":typeof l=="string"?l:"",b=l&&typeof l=="object"?l.choices:void 0,[y,C]=o.useState(u??null),v=`${String(f)}\0${JSON.stringify(b??null)}`,[_,h]=o.useState(v);_!==v&&(h(v),u==null&&C(null));const[w,g]=o.useState(u);Object.is(w,u)||(g(u),C(u??null));const B=o.useRef(void 0);o.useEffect(()=>{const k=B.current;typeof k=="number"&&typeof t=="number"&&typeof e=="number"&&k>=e&&t<e&&u==null&&C(null),B.current=t},[t,e,u]);const x=o.useCallback(k=>{const S=typeof k=="object"&&k!==null?Object.assign({},k,{__ts:Date.now()}):{value:k,__ts:Date.now()};typeof i=="function"&&i(S),p==="active"&&typeof s=="function"&&s(S)},[i,p,s]),A=o.useCallback(()=>{p==="active"&&(C(!1),x(!1))},[x,p]),N=o.useCallback(()=>{p==="active"&&(C(!0),x(!0))},[x,p]);return n.jsxs(Kn,{index:e,stepIndex:t,isLast:a,title:d,onDone:s,useTitleFaded:!1,children:[n.jsx(rc,{context:l,state:p}),n.jsx("div",{className:"training-step__buttons",children:Array.isArray(b)&&b.length>0?b.slice(0,6).map((k,S)=>n.jsx(me,{htmlType:"button",size:56,type:"bar",onClick:()=>{p==="active"&&(C(S),x&&x(S))},disabled:p==="disabled",ariaLabel:String(k),label:k,variant:p,selected:y===S},S)):n.jsxs(n.Fragment,{children:[n.jsx(me,{htmlType:"button",size:56,type:"bar",onClick:A,disabled:p==="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}),n.jsx(me,{htmlType:"button",size:56,type:"bar",onClick:N,disabled:p==="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 Ko({index:e,stepIndex:t,isLast:a=!1,title:r,onDone:s,btnLabel:i,soundSrc:l,bucketPath:u,usePreviewTextBtn:c,previewText:d=null,onPreviewTextBtn:m,disabled:p,_pageIndex:f,showSoundWaveForm:b,showNoiseWaveForm:y,leadInMs:C,tailMs:v}){const{t:_}=ye.useTranslation(),h=r??_("training.listenTitle","\uC81C\uC2DC\uD558\uB294 \uBB38\uC7A5\uC744 \uB4E4\uC5B4\uC8FC\uC138\uC694."),w=p??(typeof t=="number"&&typeof e=="number"?e>t:!1);return n.jsx(Kn,{index:e,stepIndex:t,isLast:a,title:h,onDone:s,titleProps:{usePreviewTextBtn:c,previewText:d,onPreviewTextBtn:m},children:n.jsx(Wo,{soundSrc:l,ttsText:l?null:d??h,bucketPath:u,btnLabel:i||_("training.listenButton","\uBB38\uC7A5 \uB4E3\uAE30"),disabled:w,className:"training-step__listen-sticky",showSoundWaveForm:b,showNoiseWaveForm:y,leadInMs:C,tailMs:v},`audio-p${f??0}-s${e}`)})}const B3=[];function Yo({index:e,stepIndex:t,isLast:a=!1,title:r,onDone:s,onChange:i,context:l=B3}){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=O=>typeof O=="string"?O:O&&(O.context||O.sentence||O.question||"")||"",[m,p]=o.useState(Array.isArray(l)?l:[]),[f,b]=o.useState(()=>(m||[]).map((O,D)=>({id:D,text:d(O)}))),y=o.useMemo(()=>typeof t!="number"||typeof e!="number"?"disabled":e<t?"done":e===t?"active":"disabled",[t,e]),C=y!=="disabled",v=o.useRef(void 0);o.useEffect(()=>{if(v.current===l)return;v.current=l;const O=Array.isArray(l)?l:[];p(O);const D=(H=>{const L=(H||[]).map((Y,Z)=>({id:Z,text:d(Y)}));if(L.length<=1)return L;const R=(Y,Z)=>{if(Y.length!==Z.length)return!1;for(let ne=0;ne<Y.length;ne++)if(Y[ne].text!==Z[ne].text)return!1;return!0};let z=xa(L),J=0;for(;R(z,L)&&J<20;)z=xa(L),J+=1;return z})(O);b(D);try{if(typeof i=="function"){const H=D.filter((L,R)=>L.text===d(O[R])).length;i({shuffled:D,score:H,total:(O||[]).length,initial:!0,__ts:Date.now()})}if(typeof s=="function"&&y==="active"){const H=D.filter((L,R)=>L.text===d(O[R])).length;s({shuffled:D,score:H,total:(O||[]).length,initial:!0,__ts:Date.now()})}}catch{}},[l]);const _=(O,D)=>{const H=[...f],L=O+D;if(L<0||L>=H.length)return;const R=H[L];H[L]=H[O],H[O]=R,T(H);try{if(typeof s=="function"&&y==="active"){const z=H.filter((J,Y)=>J.text===d(m[Y])).length;s({shuffled:H,score:z,total:(m||[]).length,__ts:Date.now()})}}catch{}},[h,w]=o.useState(null),g=o.useRef(null),B=o.useRef(null),x=o.useRef(null),A=o.useRef(null),N=o.useRef(null),k=o.useRef({x:0,y:0}),S=o.useRef(null),E=o.useRef({dx:0,dy:0}),F=()=>{if(S.current!==null)return;const O=()=>{if(!g.current){S.current=null;return}S.current=requestAnimationFrame(O);const D=k.current,H=E.current||{dx:0,dy:0};g.current&&(g.current.style.transform=`translate3d(${D.x-H.dx}px, ${D.y-H.dy}px, 0)`)};S.current=requestAnimationFrame(O)},$=o.useRef(new Map),U=o.useRef(new Map),j=()=>{const O=new Map;return $.current.forEach((D,H)=>{D&&D.getBoundingClientRect&&O.set(H,D.getBoundingClientRect())}),O},T=O=>{const D=j();b(O);try{if(typeof i=="function"){const H=O.filter((L,R)=>L.text===d(m[R])).length;i({shuffled:O,score:H,total:(m||[]).length,__ts:Date.now()})}}catch{}requestAnimationFrame(()=>{const H=j();O.forEach(L=>{const R=D.get(L.id),z=H.get(L.id),J=$.current.get(L.id);if(!J||!R||!z)return;const Y=R.top-z.top;Y&&(J.style.transition="none",J.style.transform=`translateY(${Y}px)`,requestAnimationFrame(()=>{J.style.transition="transform 420ms cubic-bezier(.22,.9,.39,1)",J.style.transform="";const Z=()=>{J.style.transition="",J.removeEventListener("transitionend",Z)};J.addEventListener("transitionend",Z)}))})})},I=(O,D)=>{try{try{D.dataTransfer?.setData("text/plain",String(O))}catch{}try{D.dataTransfer&&(D.dataTransfer.effectAllowed="move")}catch{}try{const H=document.createElement("div");H.style.cssText="position:absolute;top:-9999px;left:-9999px;width:1px;height:1px;opacity:0;pointer-events:none;",document.body.appendChild(H),D.dataTransfer?.setDragImage(H,0,0),requestAnimationFrame(()=>{try{document.body.removeChild(H)}catch{}})}catch{}}catch{}w(O);try{const H=f[O],L=document.createElement("div");L.className="order-list__dragging-object order-list__dragging-object--visible",L.textContent=H&&H.text?H.text:"",document.body.appendChild(L),g.current=L;const R=$.current.get(H.id);let z=D.clientX||0,J=D.clientY||0;try{if(R&&R.getBoundingClientRect){const Ee=R.getBoundingClientRect();z=Ee.left+Ee.width/2,J=Ee.top+Ee.height/2}}catch{}const Y=L.getBoundingClientRect(),Z=Y.width/2,ne=Y.height/2;E.current={dx:Z,dy:ne},L.style.transition="none",k.current={x:z,y:J},L.style.transform=`translate3d(${z-Z}px, ${J-ne}px, 0)`,requestAnimationFrame(()=>{try{L.style.transition=""}catch{}F()});const le=Ee=>{const W=Ee;k.current={x:W.clientX,y:W.clientY},F()};x.current=le,document.addEventListener("mousemove",le);const ue=Ee=>{const W=Ee;k.current={x:W.clientX,y:W.clientY},F()};B.current=ue,document.addEventListener("dragover",ue);try{D.dataTransfer?.setData("text/plain",String(O));try{D.dataTransfer?.setData("application/json",JSON.stringify({idx:O}))}catch{}}catch{}}catch{}},K=(O,D)=>{D.preventDefault();try{D.dataTransfer&&(D.dataTransfer.dropEffect="move")}catch{}try{N.current!==null&&(clearTimeout(N.current),N.current=null);const H=D.currentTarget&&D.currentTarget.closest?D.currentTarget.closest(".order-list__item"):null;if(H&&A.current!==H){if(A.current)try{A.current.classList.remove("drag-over")}catch{}try{H.classList.add("drag-over")}catch{}A.current=H}}catch{}},ee=(O,D)=>{D.preventDefault();const H=D.dataTransfer?.getData("text/plain")||"",L=H?parseInt(H,10):h,R=O;if(typeof L!="number"||isNaN(L)||L===R){w(null),P(),V();return}const z=TC(f,L,R);T(z),w(null),V();try{if(typeof s=="function"&&y==="active"){const J=z.filter((Y,Z)=>Y.text===d(m[Z])).length;s({shuffled:z,score:J,total:(m||[]).length,__ts:Date.now()})}}catch{}try{requestAnimationFrame(()=>{const J=document.querySelectorAll(".order-list .order-list__item")[R];if(!J)return;const Y=J.querySelector(".order-list__slot")||J;try{Y.classList.add("pulse"),Y.offsetHeight,Y.classList.add("to-dark");const Z=()=>{Y.classList.remove("pulse","to-dark"),Y.removeEventListener("transitionend",Z)};Y.addEventListener("transitionend",Z)}catch{}})}catch{}P()},V=()=>{if(g.current){try{document.body.removeChild(g.current)}catch{}g.current=null}B.current&&(document.removeEventListener("dragover",B.current),B.current=null),x.current&&(document.removeEventListener("mousemove",x.current),x.current=null),S.current!==null&&(cancelAnimationFrame(S.current),S.current=null)},q=()=>{w(null),P(),V()};o.useEffect(()=>()=>V(),[]);const P=()=>{try{if(N.current!==null&&(clearTimeout(N.current),N.current=null),A.current){try{A.current.classList.remove("drag-over")}catch{}A.current=null}document.querySelectorAll(".order-list .order-list__item").forEach(O=>O.classList.remove("drag-over"))}catch{}};return o.useEffect(()=>{try{const O=Math.max(1,(f||[]).length);f.forEach((D,H)=>{const L=U.current.get(D.id);if(!L)return;let R=50;O>1&&(R=Math.round(H/(O-1)*100));try{L.style.setProperty("--marker-pos",R+"%")}catch{}})}catch{}},[f]),o.useEffect(()=>()=>{V(),N.current!==null&&(clearTimeout(N.current),N.current=null)},[]),n.jsx(Kn,{index:e,stepIndex:t,isLast:a,title:c,children:n.jsx("div",{className:"order-list",children:f.map((O,D)=>{const H=Math.max(1,(f||[]).length),L=H>1?Math.round(D/(H-1)*100):50;return n.jsx("div",{className:"order-list__item",children:n.jsxs("div",{className:"order-list__slot","data-disabled":y==="disabled","aria-disabled":y==="disabled",children:[y!=="disabled"?n.jsx("div",{className:"order-list__marker caption-1",style:{"--marker-pos":L+"%"},ref:R=>{const z=U.current;R?z.set(O.id,R):z.delete(O.id)},children:n.jsx("span",{className:"order-list__slot-number button-1",children:D+1})}):null,n.jsxs("div",{ref:R=>{const z=$.current;R?z.set(O.id,R):z.delete(O.id)},className:`order-list__draggable ${h===D?"dragging":""}`,"data-disabled":y==="disabled","aria-disabled":y==="disabled",tabIndex:y==="disabled"?-1:0,draggable:C,onDragStart:C?R=>I(D,R):void 0,onDragEnter:C?R=>K(D,R):void 0,onDragOver:C?R=>K(D,R):void 0,onDragLeave:C?()=>{try{N.current!==null&&clearTimeout(N.current),N.current=setTimeout(()=>{try{const R=document.querySelectorAll(".order-list .order-list__item");R&&R[D]&&(R[D].classList.remove("drag-over"),A.current===R[D]&&(A.current=null))}catch{}},80)}catch{}}:void 0,onDrop:C?R=>ee(D,R):void 0,onDragEnd:C?q:void 0,children:[n.jsx("span",{className:"order-list__item-text body-2",children:O.text}),C?n.jsxs("span",{className:"order-list__item-buttons",children:[n.jsx(me,{htmlType:"button",size:32,type:"dot",onClick:()=>_(D,-1),ariaLabel:u("training.up"),icon:"chevron-up",variant:"transparent-gray",width:48,useFaded:"true",disabled:D===0,useBorder:!1,useDisabledInvisible:!0}),n.jsx(me,{htmlType:"button",size:32,type:"dot",onClick:()=>_(D,1),ariaLabel:u("training.down"),icon:"chevron-down",variant:"transparent-gray",width:48,useFaded:"true",disabled:D===f.length-1,useBorder:!1,useDisabledInvisible:!0})]}):null]})]})},O.id)})})})}const A3=8e3;function k3(e,t){return new Promise(a=>{let r=!1;const s=()=>{r||(r=!0,a())};e.then(s,s),setTimeout(s,t)})}function oc({index:e,stepIndex:t,isLast:a=!1,title:r,onDone:s,onChange:i,context:l=[],selectable:u=!1,hideLabel:c=!1,hideAudio:d=!1,maxCards:m,playAllGapMs:p=0}){const{t:f}=ye.useTranslation(),b=r??f("training.cardInstructions","\uB0B1\uB9D0 \uCE74\uB4DC\uB97C \uBCF4\uACE0 \uC18C\uB9AC\uB97C \uB4E3\uACE0 \uD655\uC778\uD558\uC138\uC694."),y=o.useMemo(()=>Array.isArray(l)?l:l&&l.items||[],[l]),C=m??3,v=(y||[]).slice(0,C);(y||[]).length>C&&console.warn(`TrainingStepCard: ${y.length} items passed but only ${C} shown`);const _=typeof e=="number"?e:-1,h=typeof t!="number"?"disabled":_<t?"done":_===t?"active":"disabled",[w,g]=o.useState(null),B=o.useRef([]),[x,A]=o.useState(!1),N=o.useRef(null),k=o.useRef(!0);o.useEffect(()=>(k.current=!0,()=>{k.current=!1}),[]);const S=o.useMemo(()=>y.map(T=>T?.id??T?.word??"").join("|"),[y]);o.useEffect(()=>{g(null)},[S]);const E=o.useRef(void 0);o.useEffect(()=>{const T=E.current;typeof T=="number"&&typeof t=="number"&&typeof e=="number"&&T>=e&&t<e&&g(null),E.current=t},[t,e]);const F=o.useCallback((T,I)=>{if(u)return;const K={item:T,index:I,__ts:Date.now()};try{typeof i=="function"&&i(K)}catch{}if(h==="active"&&typeof s=="function")try{s(K)}catch{}},[u,i,h,s]),$=o.useRef(p);o.useEffect(()=>{$.current=Math.max(0,p||0)},[p]);const U=o.useCallback(async()=>{if(x||h==="disabled")return;A(!0);let T=!1;const I=new Promise(K=>{N.current=()=>{T=!0,K()}});try{for(let K=0;K<v.length&&!(!k.current||T);K++){const ee=B.current[K];if(!ee)continue;await Promise.race([k3(ee.play(),A3),I]);const V=Math.max(0,$.current||0);V>0&&K<v.length-1&&!T&&k.current&&await Promise.race([new Promise(q=>{setTimeout(q,V)}),I])}}finally{N.current=null,A(!1)}},[x,h,v.length]),j=o.useCallback((T,I)=>{if(h!=="active")return;g(I);const K={selectedValue:T.word||T.title||"",selectedIndex:I,item:T,__ts:Date.now()};try{typeof i=="function"&&i(K)}catch{}if(h==="active"&&typeof s=="function")try{s(K)}catch{}},[i,h,s]);return n.jsx(Kn,{index:e,stepIndex:t,isLast:a,title:b,onDone:s,titleProps:{usePlayAllBtn:!d&&v.length>0,onPlayAll:U,playAllActive:x},children:n.jsx("div",{className:"training-step__cards",onClickCapture:T=>{const I=N.current;if(!I)return;const K=T.target;K&&typeof K.closest=="function"&&K.closest(".training-word-card__bottom")&&I()},children:v.length===0?n.jsx("div",{className:"training-step__empty",children:f("training.noCards","\uCE74\uB4DC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")}):v.map((T,I)=>n.jsx(Eo,{ref:K=>{B.current[I]=K},item:T,disabled:h==="disabled",onPlayDone:()=>F(T,I),selectable:u,selected:u&&w===I,onSelect:u?()=>j(T,I):void 0,flipDelay:I*120,hideLabel:c,hideAudio:d},T&&T.id||I))})})}const N3=160,D3={\uBCF4\uCCAD\uAE30:"hearingAid",\uC778\uACF5\uC640\uC6B0:"cochlearImplant"};function E3(e,t){const a=D3[e];return a?t(`device.type.${a}`,{defaultValue:e}):e}const sc=()=>{};function $n(e){const t=o.useId();if(!("variant"in e)){const{label:h,sub:w,onClick:g,children:B,align:x="horizontal",icon:A,useFullWidth:N=!1}=e,k=S=>{g&&S.target===S.currentTarget&&(S.key==="Enter"||S.key===" ")&&(S.preventDefault(),g())};return n.jsxs("div",{className:ke("panel-row",x==="vertical"?"panel-row--vertical":"",N?"panel-row--label-fixed panel-row--fill":"",g?"panel-row--clickable":""),onClick:g,onKeyDown:g?k:void 0,role:g?"button":void 0,tabIndex:g?0:void 0,children:[A!=null&&n.jsx("div",{className:"panel-row__icon",children:A}),h!=null&&n.jsxs("div",{className:"panel-row__left",children:[n.jsx("div",{className:"panel-row__label body-3",children:h}),w&&n.jsx("div",{className:"panel-row__sub caption-1",children:w})]}),n.jsx("div",{className:"panel-row__right",children:B})]})}if(e.variant==="description")return n.jsx("div",{className:"panel-row panel-row--block",children:n.jsx("p",{className:"panel-row__description body-3",children:e.children})});if(e.variant==="empty")return n.jsx("div",{className:"panel-row panel-row--empty body-3",children:e.children});if(e.variant==="loading")return n.jsx("div",{className:"panel-row panel-row--loading",children:n.jsx($a,{size:28})});if(e.variant==="custom"&&!e.label)return n.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:m}=e,p=a==="button"?void 0:i;let f=null;const b=a==="toggle"?`panel-toggle-${t}`:void 0,y=u?`panel-error-${t}`:void 0,C=`panel-helper-${t}`;if(a==="toggle"){const h=e;f=n.jsx(Vl,{checked:h.checked,onChange:h.onChange,id:b})}else if(a==="segmented"){const h=e;f=n.jsx(kn,{options:h.options,value:h.value,onChange:h.onChange,size:h.size??40,ariaLabel:r})}else if(a==="dropdown"){const h=e,w=h.dropdowns?.length?n.jsx("div",{className:`panel-row__dropdown-group${d?" panel-row__dropdown-group--full":""}`,children:h.dropdowns.map((g,B)=>n.jsx("div",{className:d?"panel-row__dropdown-item--full":void 0,children:n.jsx(cn,{options:g.options,value:g.value,onChange:g.onChange,placeholder:g.placeholder,block:d,error:!!u,ariaDescribedBy:y,ariaLabel:g.ariaLabel??([r,g.placeholder].filter(Boolean).join(" ")||void 0)})},B))}):n.jsx(cn,{options:h.options??[],value:h.value??"",onChange:h.onChange??sc,block:d,error:!!u,ariaLabel:r,ariaDescribedBy:y});f=u?n.jsxs("div",{className:`panel-row__dropdown-error-wrap${d?" panel-row__dropdown-error-wrap--full":""}`,children:[w,n.jsx("span",{id:y,className:"caption-1 panel-row__error",role:"alert",children:u})]}):w}else if(a==="button"){const h=e;h.buttons?.length?f=n.jsx("div",{className:"panel-row__button-group",children:h.buttons.map((w,g)=>n.jsx(me,{htmlType:"button",size:w.btnSize??40,variant:w.btnVariant??"default",disabled:w.disabled,onClick:w.onClick,children:w.label},g))}):f=n.jsx(me,{htmlType:"button",size:h.btnSize??40,variant:h.btnVariant??"default",disabled:h.disabled,onClick:h.onClick,children:h.buttonLabel})}else if(a==="text"){const h=e;f=n.jsx("span",{className:`panel-row__text body-2${d?" panel-row__text--full":""}`,style:h.valueColor?{color:h.valueColor}:void 0,children:h.value})}else if(a==="input"){const h=e;f=n.jsxs("div",{className:`panel-row__input-wrap${d?" panel-row__input-wrap--full":""}`,children:[n.jsx(Gn,{value:h.value,onChange:h.onChange??sc,onKeyDown:h.onKeyDown,onEnter:h.onEnter,placeholder:h.placeholder,ghostText:h.ghostText,ghostHint:h.ghostHint,inputMode:h.inputMode,readOnly:h.readOnly,disabled:h.disabled,type:h.type,autoComplete:h.autoComplete,maxLength:h.maxLength,showCount:h.showCount,multiline:h.multiline,rows:h.rows,fullWidth:d,error:u,ariaLabel:r,required:l,ariaDescribedBy:h.helperText?C:void 0}),h.helperText&&n.jsx("div",{id:C,className:"panel-row__helper caption-1",children:h.helperText})]})}else a==="custom"&&(f=e.children);u&&a!=="input"&&a!=="dropdown"&&(f=n.jsxs("div",{className:`panel-row__dropdown-error-wrap${d?" panel-row__dropdown-error-wrap--full":""}`,children:[f,n.jsx("span",{id:y,className:"caption-1 panel-row__error",role:"alert",children:u})]}));const v=a==="input"||a==="dropdown"||(a==="text"||a==="custom")&&d,_=h=>{p&&h.target===h.currentTarget&&(h.key==="Enter"||h.key===" ")&&(h.preventDefault(),p())};return n.jsxs("div",{className:ke("panel-row",c==="vertical"?"panel-row--vertical":"",v?"panel-row--label-fixed":"",a==="text"?"panel-row--text":"",p?"panel-row--clickable":""),onClick:p,onKeyDown:p?_:void 0,role:p?"button":void 0,tabIndex:p?0:void 0,children:[m!=null&&n.jsx("div",{className:"panel-row__icon",children:m}),n.jsxs("div",{className:"panel-row__left",children:[b?n.jsxs("label",{htmlFor:b,className:"panel-row__label body-3",children:[r,l&&n.jsx("span",{className:"required-mark",children:"*"})]}):n.jsxs("div",{className:"panel-row__label body-3",children:[r,l&&n.jsx("span",{className:"required-mark",children:"*"})]}),s&&n.jsx("div",{className:"panel-row__sub caption-1",children:s})]}),n.jsx("div",{className:"panel-row__right",children:f})]})}function ic(e){const t=e.productName||e.brand,a=[e.brand,e.fitType].filter(r=>!!r&&r!==t);return[...new Set(a)].join(" \xB7 ")}function S3({devices:e,onRelease:t,emptyLabel:a}){const{t:r}=ye.useTranslation();return n.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 n.jsxs("div",{className:"panel-row__device-column",children:[n.jsxs("div",{className:"panel-row__device-head",children:[n.jsx("span",{className:"panel-row__device-side body-2b",children:l}),i&&t&&n.jsx(me,{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:()=>t(s)})]}),i?n.jsxs("div",{className:"panel-row__device-info",children:[n.jsxs("span",{className:"panel-row__device-kind",children:[i.device&&n.jsx(_t,{size:"small",variant:iu(i.device),fill:"soft",label:E3(i.device,r)}),ic(i)&&n.jsx("span",{className:"panel-row__device-detail body-3",children:ic(i)})]}),n.jsx("span",{className:"panel-row__device-name body-2b",children:i.productName||i.brand}),ko(i.wornYear,i.wornMonth,i.wornDay)&&n.jsx("span",{className:"panel-row__device-date caption-1",children:r("customers.device.wornSince",{date:ko(i.wornYear,i.wornMonth,i.wornDay)})})]}):n.jsx("span",{className:"panel-row__device-empty body-3",children:a??r("customers.device.notRegistered","\uBBF8\uB4F1\uB85D")})]},s)})})}function Cr({title:e,titleLevel:t=2,icon:a,disc:r,actions:s,size:i="medium",minHeight:l,maxWidth:u,className:c,scrollable:d,scrollbarGutter:m="auto",compactRows:p=!1,useBorder:f=!0,useBg:b=!0,useRowBorder:y=!0,labelWidth:C,form:v=!1,loading:_,empty:h,children:w}){const g=ke("panel",`panel--${i}`,v?"panel--form":"",l!==void 0?"panel--fill":"",f?"":"panel--no-border",b?"":"panel--no-bg",y?"":"panel--no-row-border",p?"panel--compact-rows":"",c),B={};l!==void 0&&(B.minHeight=l),u!==void 0&&(B.maxWidth=typeof u=="number"?`${u}px`:u),C!==void 0&&(B["--panel-label-width"]=typeof C=="number"?`${C}px`:C);const x=t?`h${t}`:"div";return n.jsxs("div",{className:g,style:Object.keys(B).length?B:void 0,children:[(!!e||r!=null)&&n.jsxs("div",{className:ke("panel__header",r!=null?"panel__header--with-disc":""),children:[a&&n.jsx(Je,{icon:a,label:typeof e=="string"?e:void 0,className:"panel__icon"}),n.jsxs("div",{className:"panel__title-group",children:[!!e&&n.jsx(x,{className:`panel__title ${r!=null?"body-3b":"h5b"}`,children:e}),r!=null&&n.jsx("p",{className:"panel__disc caption-1",children:r})]}),s&&n.jsx("div",{className:"panel__actions",children:s})]}),_?n.jsx($n,{variant:"loading"}):h!=null&&o.Children.toArray(w).length===0?n.jsx($n,{variant:"empty",children:h}):d?n.jsx("div",{className:ke("panel__body--scroll",m==="stable"&&"panel__body--gutter-stable"),children:w}):w]})}function j3({cols:e=2,layout:t="grid",gap:a=1,collapseAt:r,className:s,style:i,children:l}){const u=o.useRef(null),[c,d]=o.useState();o.useEffect(()=>{const p=u.current;if(r===void 0||!p||(d(p.clientWidth),typeof ResizeObserver>"u"))return;const f=new ResizeObserver(([b])=>d(b.contentRect.width));return f.observe(p),()=>f.disconnect()},[r]);const m=r!==void 0&&c!==void 0&&c<=r;return n.jsx("div",{ref:u,className:ke("panel-grid",t==="columns"&&"panel-grid--columns",s),style:{"--panel-grid-cols":m?1:e,"--panel-grid-gap":typeof a=="number"?`${a}px`:a,...i},children:l})}function T3(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 lc(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"}]}T3(Lt.t.bind(Lt)),lc(Lt.t.bind(Lt));const Zo="none",M3=.5,L3=1.5,$3=.25;function Xo({title:e,valueLabel:t,value:a,min:r,max:s,step:i,tickStep:l,size:u,onChange:c}){return n.jsxs($n,{variant:"custom",label:e,useFullWidth:!0,children:[n.jsx(nu,{value:a,onChange:c,min:r,max:s,step:i,size:u,showBgTick:!0,tickStep:l,ariaLabel:e,className:"noise-settings__slider-input"}),n.jsx("div",{className:"noise-settings__value button-1",children:t})]})}function uc({anchorRect:e,onClose:t}){const{t:a}=ye.useTranslation(),r=on("(max-width: 767px)")?40:24,s=cr(),i=Ia(s?.settings??Oa),l=s?.settings.type??"defaultNoise",u=s?.settings.enabled??!0,c=s?.playbackRate??1,d=s?.mainVolume??1,m=Math.round(d*100),p=o.useCallback(C=>{try{s?.setMainVolume(Math.max(0,Math.min(1,C/100)))}catch{}},[s]),f=o.useCallback(C=>{try{s?.setPlaybackRate(C)}catch{}},[s]),b=o.useCallback(C=>{const v=Math.min(Pa,Math.max(0,Math.round(C*10)/10));try{s?.setSettings({noiseRatio:v})}catch{}},[s]),y=o.useCallback(C=>{try{C===Zo?s?.setSettings({enabled:!1}):s?.setSettings({type:C,enabled:!0})}catch{}},[s]);return n.jsx(ln,{anchorRect:e,offset:12,onClose:t,ariaLabel:a("training.trainingSettingsTitle","\uD6C8\uB828 \uC124\uC815"),isMobilePopup:!1,closeOnOutsideClick:!1,header:n.jsxs("div",{className:"noise-settings__header",children:[n.jsx("span",{children:a("training.trainingSettingsTitle","\uD6C8\uB828 \uC124\uC815")}),n.jsx(me,{htmlType:"button",size:40,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,ariaLabel:a("common.close","\uB2EB\uAE30"),onClick:t})]}),children:n.jsxs(Cr,{className:"noise-settings",useBorder:!1,labelWidth:72,children:[n.jsx(Xo,{title:a("training.playVolumeTitle","\uC804\uCCB4 \uC18C\uB9AC"),valueLabel:`${m}%`,value:m,min:0,max:100,step:10,size:r,onChange:p}),n.jsx(Xo,{title:a("training.playSpeedTitle","\uC7AC\uC0DD \uC18D\uB3C4"),valueLabel:`${c.toFixed(2)}x`,value:c,min:M3,max:L3,step:$3,size:r,onChange:f}),n.jsx($n,{variant:"custom",label:a("training.noiseTypeTitle","\uC18C\uC74C \uC885\uB958"),useFullWidth:!0,children:n.jsx(kn,{ariaLabel:a("training.noiseTypeTitle","\uC18C\uC74C \uC885\uB958"),size:40,shape:"rounded",options:[{key:Zo,label:a("training.noise.type.none","\uC5C6\uC74C")},...lc(a).map(C=>({key:C.value,label:C.label}))],value:u?l:Zo,onChange:y})}),n.jsx(Xo,{title:a("training.noiseRatioTitle","\uC18C\uC74C \uBE44\uC728"),valueLabel:a("training.noiseRatioValue","{{ratio}}\uBC30",{ratio:i.toFixed(1)}),value:i,min:0,max:Pa,step:Wu,size:r,onChange:b})]})})}function cc({useNoiseSettingBtn:e=!1,onSettings:t,onNext:a,onResult:r,stepIndex:s=0,stepCount:i=0,pageIndex:l=0,pageCount:u=1,resultOpen:c=!1}){const{t:d}=ye.useTranslation(),[m,p]=o.useState(!1),[f,b]=o.useState(null),[y,C]=o.useState(!1),v=o.useRef(null),_=o.useRef(null),h=cr(),w=u>0,g=w&&l<u-1,B=!w||l>=u-1,x=s===Math.max(0,i);o.useEffect(()=>{e||(p(!1),b(null))},[e]);const A=o.useCallback(()=>{p(!1),b(null)},[]),N=o.useCallback(()=>{if(m){p(!1),b(null);return}const I=v?.current?.getBoundingClientRect();I&&b(I),t?.(),p(!0)},[m,t]),k=o.useCallback(()=>{if(m){p(!1),b(null);return}const I=_?.current?.getBoundingClientRect();I&&b(I),t?.(),p(!0)},[m,t]),S=on("(max-width: 767px)"),E=o.useRef(null),[F,$]=o.useState(null),U=o.useCallback(()=>{C(I=>{const K=!I;return $(K?E.current?.getBoundingClientRect()??null:null),K})},[]),j=o.useCallback(()=>{C(!1),$(null)},[]);o.useEffect(()=>{c&&(C(!1),$(null))},[c]);const T=n.jsxs(n.Fragment,{children:[n.jsxs("div",{className:"pp-bottom__meter",children:[n.jsx("span",{className:"pp-bottom__meter-label caption-1",children:d("training.meter.sentence","\uC7AC\uC0DD")}),n.jsx(wo,{analyser:h?.mainAnalyser??null,orientation:"horizontal",length:112,label:"db",labelPos:"left",ariaLabel:d("training.meter.sentence","\uC7AC\uC0DD")})]}),n.jsxs("div",{className:"pp-bottom__meter",children:[n.jsx("span",{className:"pp-bottom__meter-label caption-1",children:d("training.meter.noise","\uC18C\uC74C")}),n.jsx(wo,{analyser:h?.noiseAnalyser??null,orientation:"horizontal",length:112,label:"db",labelPos:"left",ariaLabel:d("training.meter.noise","\uC18C\uC74C")})]})]});return nc(e&&m,()=>typeof document<"u"?document.querySelector(".noise-settings__header")?.closest(".tooltip-content")??null:null,()=>[v.current,_.current].map(I=>I?.querySelector("button")??null).find(I=>!!I&&I.getClientRects().length>0)??v.current?.querySelector("button")??null),n.jsxs("div",{className:"pp-bottom",children:[n.jsxs("div",{className:"pp-bottom__left",children:[e?n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"pp-bottom__settings--desktop",children:n.jsx("div",{ref:v,className:"pp-bottom__tooltip-trigger","data-tooltip-ignore":!0,children:n.jsx(me,{htmlType:"button",size:56,type:"bar",icon:"settings",onClick:N,className:m?"is-selected":void 0,"aria-expanded":m,"aria-haspopup":"dialog",ariaLabel:d("training.trainingSettingsTitle","\uD6C8\uB828 \uC124\uC815"),label:d("training.trainingSettingsTitle","\uD6C8\uB828 \uC124\uC815"),minWidth:140})})}),n.jsx("div",{className:"pp-bottom__settings--mobile",children:n.jsx("div",{ref:_,className:"pp-bottom__tooltip-trigger","data-tooltip-ignore":!0,children:n.jsx(me,{htmlType:"button",size:56,type:"dot",shape:"pill",icon:"settings",onClick:k,className:m?"is-selected":void 0,"aria-expanded":m,"aria-haspopup":"dialog",ariaLabel:d("training.settings","\uC124\uC815")})})})]}):null,e&&n.jsx("div",{ref:E,className:"pp-bottom__meter-trigger","data-tooltip-ignore":!0,children:n.jsx(me,{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&&n.jsx("div",{className:"pp-bottom__meters",children:T})]}),e&&y&&S&&F&&n.jsx(ln,{anchorRect:F,onClose:j,ariaLabel:d("training.meter.toggle","\uC624\uB514\uC624 \uBBF8\uD130 \uD45C\uC2DC"),children:n.jsx("div",{className:"pp-bottom__meters pp-bottom__meters--floating",children:T})}),n.jsxs("div",{className:"pp-bottom__right",children:[B&&n.jsx(me,{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:!x}),g&&n.jsx(me,{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:!x})]}),e&&m&&n.jsx(uc,{anchorRect:f,onClose:A})]})}function dc({title:e,subtitle:t,desc:a,depth:r,icon:s,wrapperStyle:i,iconTooltip:l,pageIndex:u,pageCount:c,progressMax:d,progressIndex:m,onBack:p,onClose:f}){const{t:b}=ye.useTranslation(),y=on("(max-width: 767px)"),C=Number.isInteger(m)?m:u||0,v=Number.isInteger(d)?d:c||0,_=p||f,h=Array.isArray(r)?y?r[r.length-1]:r.join(" / "):r,w=typeof e=="string"?e.trim():e,g=typeof t=="string"?t.trim():t,B=!!(w||g),x=B?w||g:b("common.emptyTrainingName","\uD6C8\uB828 \uC774\uB984\uC774 \uBE44\uC5B4 \uC788\uC2B5\uB2C8\uB2E4."),A=h||(w?t:void 0),N=y&&typeof A=="string"&&(A.includes(" \xB7 ")||A.includes(" / "))?A.split(/\s[·/]\s/).pop():A,k=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 n.jsxs("header",{className:"pp-title training-popup-title",children:[n.jsxs("div",{className:"pp-title__left",children:[_?n.jsx(me,{htmlType:"button",size:48,type:"dot",icon:"chevron-left",ariaLabel:b("common.back","\uB4A4\uB85C"),onClick:_,useBorder:!1,iconSize:"large",iconColor:"--color-black",variant:"transparent-gray"}):null,n.jsx("div",{children:s?n.jsx(Ll,{icon:s,label:e,tooltip:l,wrapperStyle:k}):null}),n.jsxs("div",{className:"pp-title__text",children:[N?n.jsx("span",{className:"pp-title__depth caption-1",children:N}):null,n.jsx("span",{className:`pp-title__title h2${B?"":" pp-title__title--empty"}`,children:x}),a?n.jsx("span",{className:"pp-title__description caption-1",children:a}):null]})]}),n.jsx(su,{max:Math.max(0,v??0),index:Math.max(0,C??0)})]})}function R3(){typeof window<"u"&&window.dispatchEvent(new CustomEvent("speechear.popup.close"))}function P3(e){return!e&&e!==0?[]:Array.isArray(e)?e.flatMap(t=>typeof t=="string"?t.split("|").map(a=>a.trim()).filter(Boolean):t||t===0?[String(t)]:[]):typeof e=="string"?e.split("|").map(t=>t.trim()).filter(Boolean):[String(e)]}const pc=(e,t)=>{if(!t)return t;const a=typeof Lt?.t=="function"?Lt.t(e,{defaultValue:t}):void 0;return typeof a=="string"&&a?a:t};function mc(e,t,a){const r=e,s=r?.title||r?.name||(Array.isArray(t)?t[t.length-1]:void 0)||a||"\uD6C8\uB828",i=hi().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:t,icon:i?.icon,wrapperStyle:i?.color?{"--t-item-fg":i.color}:void 0,iconTooltip:[i?pc(`topic.${i.key}`,i.label):void 0,l?pc(`topic.sub.${l.key}`,l.label):void 0].filter(Boolean).join(" / ")||void 0}}function Jo(e){return e&&typeof e=="object"&&typeof e.__ts=="number"?e.__ts:0}function hc(e,t,a){if(!e||typeof e!="object"||Array.isArray(e))return e;const r=e,s=typeof a=="number"&&a>0?a:Date.now();return{...r,...r.shownAt===void 0&&t?{shownAt:t}:{},...r.answeredAt===void 0?{answeredAt:new Date(s).toISOString()}:{}}}function I3(e){const t=e;return Array.isArray(t?.items)?t.items:Array.isArray(e)?e:e?[e]:[]}function F3({idPrefix:e,trainingData:t,depth:a,fallbackTitle:r="\uD6C8\uB828",pages:s=[],emptyMessage:i,buildResults:l,metaPatch:u}){const c=mc(t,a,r),d=typeof u=="function"?u(c)||{}:u||{},m=t?.id||t?.title||s.length;return{id:`${e}:${m}`,meta:{...c,...d},pages:s,emptyMessage:i,buildResults:l}}function O3(e){if(typeof e=="string")return e;if(e&&typeof e=="object"){const t=e;return t.context||t.sentence||t.question||""||""}return""}function H3(e){if(e&&typeof e=="object"){const t=e;if(Array.isArray(t.selectedValues))return t.selectedValues;if(t.selectedValue!==void 0)return t.selectedValue;if(t.selectedIndex!==void 0)return t.selectedIndex;if(t.value!==void 0)return t.value}return e}function z3(e,t=[]){if(Array.isArray(e))return e.join(", ");if(typeof e=="number"&&Array.isArray(t))return String(t[e]??"");if(typeof e=="string")return e}function Cc(e,t){if(!(!e||typeof e!="object"))return e[`step-${t}`]}function V3(e,t,a,r){return Cc(e,t*a+r)}function W3({payload:e,selected:t,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 t=="number"&&Array.isArray(a)&&a.length)return r.some(s=>String(s)===String(a[t]));if(typeof t<"u")return r.some(s=>String(s)===String(t))}}function q3(e){return e?Array.isArray(e.items)?e.items.map(t=>{const a=t;return typeof t=="string"?{sentence:t}:{sentence:a.context||a.sentence||"",contextCode:a.contextCode||a.context_code}}):Array.isArray(e.sentences)?e.sentences.map(t=>{const a=t;return typeof t=="string"?{sentence:t}:{sentence:a.sentence||a.context||"",contextCode:a.contextCode}}):Array.isArray(e.contexts)?e.contexts:e.contextCode?[{contextCode:e.contextCode}]:[]:[]}const fc=o.createContext(null);function U3(){const e=o.useContext(fc);if(!e)throw new Error("useTrainingPagePopupContext must be used inside TrainingPagePopup");return e}function G3({index:e,stepIndex:t,isLast:a=!1,title:r,choices:s=[],onDone:i,onChange:l}){const{t:u}=ye.useTranslation(),c=typeof e=="number"?e:-1,d=typeof t!="number"?"disabled":c<t?"done":c===t?"active":"disabled",[m,p]=o.useState(()=>s.map(()=>null)),f=JSON.stringify(s),b=s.length;o.useEffect(()=>{p(Array.from({length:b},()=>null))},[f]);const y=o.useRef(void 0);o.useEffect(()=>{const h=y.current;typeof h=="number"&&typeof t=="number"&&typeof e=="number"&&h>=e&&t<e&&p(Array.from({length:b},()=>null)),y.current=t},[t,e,b]);const C=o.useMemo(()=>m.filter(h=>h!==null).length+1,[m]),v=o.useCallback(h=>{if(d!=="active")return;const w=m;let g;if(w[h]!=null){const x=w[h];g=w.map(A=>A!==null&&A>=x?null:A)}else g=[...w],g[h]=C;p(g);const B={selectedOrder:g,words:s,__ts:Date.now()};try{typeof l=="function"&&l(B)}catch{}if(w[h]==null&&g.length>0&&g.every(x=>x!==null))try{typeof i=="function"&&i(B)}catch{}},[d,m,C,l,i,s]),_=r??u("training.selectInOrder","\uB4E4\uC740 \uC21C\uC11C\uB300\uB85C \uCE74\uB4DC\uB97C \uC120\uD0DD\uD558\uC138\uC694.");return n.jsx(Kn,{index:e,stepIndex:t,isLast:a,title:_,onDone:i,children:n.jsx("div",{className:"training-step__cards",children:s.map((h,w)=>n.jsx(Eo,{item:{word:h},disabled:d==="disabled",selectable:!0,selected:m[w]!==null,orderRank:m[w],onSelect:()=>v(w),flipDelay:w*120,hideLabel:!1,hideAudio:!0},`${h}-${w}`))})})}function fr(e){return null}fr.__isTrainingPage=!0;function pa(e,t){const a=U3();return{ctx:a,index:e,stepIndex:a.currentStepIndex,isLast:typeof e=="number"&&typeof t=="number"?e===t-1:!1,onDone:r=>a.handleStepDone(r,e),onChange:r=>a.handleStepChange(r,e)}}function gc({_stepIndex:e,_totalSteps:t,...a}){const{index:r,stepIndex:s,isLast:i,onDone:l}=pa(e,t);return n.jsx(Ko,{...a,index:r,stepIndex:s,isLast:i,onDone:l})}function bc({_stepIndex:e,_totalSteps:t,...a}){const{index:r,stepIndex:s,isLast:i,onDone:l,onChange:u}=pa(e,t);return n.jsx(Uo,{...a,index:r,stepIndex:s,isLast:i,onDone:l,onChange:u})}function yc({_stepIndex:e,_totalSteps:t,...a}){const{index:r,stepIndex:s,isLast:i,onDone:l,onChange:u}=pa(e,t);return n.jsx(Go,{...a,index:r,stepIndex:s,isLast:i,onDone:l,onChange:u})}function vc({_stepIndex:e,_totalSteps:t,...a}){const{index:r,stepIndex:s,isLast:i,onDone:l,onChange:u}=pa(e,t);return n.jsx(Yo,{...a,index:r,stepIndex:s,isLast:i,onDone:l,onChange:u})}function xc({_stepIndex:e,_totalSteps:t,...a}){const{index:r,stepIndex:s,isLast:i,onDone:l,onChange:u}=pa(e,t);return n.jsx(oc,{...a,index:r,stepIndex:s,isLast:i,onDone:l,onChange:u})}function K3({_stepIndex:e,_totalSteps:t,...a}){const{index:r,stepIndex:s,isLast:i,onDone:l,onChange:u}=pa(e,t);return n.jsx(G3,{...a,index:r,stepIndex:s,isLast:i,onDone:l,onChange:u})}function Qo(...e){for(const t of e)if(typeof t=="string"){const a=t.trim();if(a.length)return a}else{if(typeof t=="number"||typeof t=="boolean")return String(t);if(Array.isArray(t)&&t.length)return t.join(", ");if(t&&typeof t=="object"){const a=t,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 Y3(e){return Qo(e?.question,e?.q,e?.sentence,e?.text,e?.prompt,e?.wording)}function _c(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 t=Qo(e?.status,e?.result,e?.judge,e?.note);if(t){const a=t.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 wc(e){const{score:t,contextsLength:a,results:r=[],subtitle:s,onReplay:i,onClose:l,inline:u=!1,pending:c=!1}=e||{},{t:d}=ye.useTranslation(),m=o.useId(),p=o.useCallback(()=>!c,[c]);o.useEffect(()=>{const h=a??0;if(t!=null&&h>0&&t/h>.5){const w=window.setTimeout(()=>{window.dispatchEvent(new CustomEvent("party:trigger",{detail:{count:140,strength:1.6,duration:2200}}))},0);return()=>window.clearTimeout(w)}},[t,a]);const f=o.useCallback(h=>{const w=_c(h),g=Qo(h?.wording,h?.label);return w===!0?{variant:"main",label:g??d("training.result.heardWell","\uC798 \uB4E4\uC5C8\uC5B4\uC694")}:w===!1?{variant:"danger",label:g??d("training.result.notHeard","\uBABB \uB4E4\uC5C8\uC5B4\uC694")}:{variant:"disabled",label:g??d("training.result.notJudged","\uBBF8\uD310\uC815")}},[d]),b=a??0,y=t??0,C=o.useMemo(()=>Array.isArray(r)?r:[],[r]),v=o.useMemo(()=>C.map(h=>{const w=h??{},g=Y3(w)||d("training.result.noContent","(\uB0B4\uC6A9\uC5C6\uC74C)"),{variant:B,label:x}=f(w),A=Array.isArray(w.corrects)?w.corrects:[],N=A.length?A.join(", "):w.answer!=null&&w.answer!==""?String(w.answer):null,k=typeof w.selectedText=="string"?w.selectedText:null,S=_c(w)===!0;return{problem:g,variant:B,label:x,answer:N,selectedText:k,isCorrect:S}}),[C,f,d]),_=o.useMemo(()=>v.some(h=>h.answer!==null||h.selectedText!==null),[v]);return n.jsx(Ln,{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:p,footerClassName:"trp-result__foot",footer:({animateThen:h,closeWithAnimation:w})=>n.jsxs(n.Fragment,{children:[c&&n.jsx("p",{id:m,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.")}),n.jsxs("div",{className:"trp-actions",children:[n.jsx(me,{htmlType:"button",size:56,type:"bar",label:d("training.result.replay","\uB2E4\uC2DC\uD558\uAE30"),onClick:()=>h(i)}),n.jsx(me,{htmlType:"button",size:56,type:"bar",label:d("training.result.done","\uC644\uB8CC"),variant:"main",onClick:w,disabled:c,onDisabledClick:c?()=>{}:void 0,"aria-describedby":c?m:void 0})]})]}),children:()=>n.jsxs("div",{className:"trp-result is-on",children:[n.jsxs("header",{className:"trp-result__head",children:[n.jsx("p",{className:"trp-result__eyebrow caption-1",children:d("training.result.eyebrow","\uD6C8\uB828 \uC644\uB8CC")}),n.jsx("h1",{className:"trp-result__title h2",children:d("training.result.title","\uD6C8\uB828\uC744 \uBAA8\uB450 \uB9C8\uCCE4\uC2B5\uB2C8\uB2E4.")}),s&&n.jsx("p",{className:"trp-result__subtitle body-3",children:s}),n.jsx("div",{className:"trp-score",children:n.jsxs("div",{className:"trp-score__figure","aria-label":d("training.result.scoreAria",{correct:y,total:b}),children:[n.jsx("span",{className:"trp-score__big",children:y}),n.jsx("span",{className:"trp-score__sep",children:"/"}),n.jsx("span",{className:"trp-score__total",children:b})]})})]}),v.length>0&&n.jsx("section",{className:"trp-result__body",children:n.jsxs("div",{className:`result-table${_?" result-table--answer":""}`,role:"table","aria-label":d("training.result.tableAriaLabel","\uBB38\uD56D\uBCC4 \uD310\uC815"),children:[n.jsxs("div",{className:"result-table__head caption-1",role:"row",children:[n.jsx("span",{role:"columnheader",children:d("common.col.problem","\uBB38\uC81C")}),_&&n.jsx("span",{role:"columnheader",children:d("training.result.colAnswerSelected","\uC815\uB2F5 \xB7 \uC120\uD0DD")}),n.jsx("span",{className:"col-right",role:"columnheader",children:d("training.result.colJudge","\uD310\uC815")})]}),v.map((h,w)=>n.jsxs("div",{className:"result-table__row",role:"row",children:[n.jsxs("div",{className:"trp-row__problem",children:[n.jsx("span",{className:"trp-row__no caption-1",children:String(w+1).padStart(2,"0")}),n.jsx("div",{className:"trp-row__q body-2",children:h.problem})]}),_&&n.jsxs("div",{className:"trp-row__answers",children:[h.answer!==null&&n.jsxs("div",{className:"trp-row__answer-line",children:[n.jsx("span",{className:"trp-row__answer-label answer-correct caption-1",children:d("training.result.colAnswer","\uC815\uB2F5")}),n.jsx("span",{className:"trp-row__answer-value body-2",children:h.answer})]}),n.jsxs("div",{className:"trp-row__answer-line",children:[n.jsx("span",{className:`trp-row__answer-label answer-selected caption-1 ${h.isCorrect?"is-correct":"is-wrong"}`,children:d("training.result.colSelected","\uC120\uD0DD")}),n.jsx("span",{className:`trp-row__answer-value body-2 ${h.isCorrect?"is-correct":"is-wrong"}`,children:h.selectedText??"\u2014"})]})]}),n.jsx("div",{className:"trp-row__judge",children:n.jsx(_t,{variant:h.variant,label:h.label,fill:"soft",minWidth:80})})]},w))]})})]})})}function Z3(e){o.useEffect(()=>{if(!e)return;const t=()=>typeof document>"u"||document.visibilityState!=="hidden";let a=null,r=null,s=0,i=0;const l=()=>{const m=Date.now();a==null&&(a=m),r==null&&(r=m)},u=()=>{r!=null&&(s+=Date.now()-r,r=null)};t()&&l();const c=()=>{if(u(),a==null||s-i<1e3||i===0&&s<5e3)return;const m=a+i;i=s,$C({trainingType:e,startedAt:new Date(m).toISOString(),endedAt:new Date(a+s).toISOString()})},d=()=>{t()?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 gr(e,t){return e&&e.id||`page-${t??0}`}function br(e,t){return e&&e.key||`step-${t??0}`}function yr(){return{pageIndex:0,stepIndex:0,answersByPage:{}}}function X3(e,t){return typeof e?.props=="function"?e.props(t)||{}:e?.props||{}}const J3=300,Q3=()=>{try{return typeof window<"u"&&!!window.matchMedia?.("(prefers-reduced-motion: reduce)").matches}catch{return!1}},Rn=Object.freeze({}),Bc=new Set(["LISTEN_IN_NOISE","SHORT_STORY","LONG_STORY","ORDERING_SENTENCE"]);function Ac(e){const t=e,a=t?.results||t?.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 e7=e=>n.jsx(wc,{score:e.score,contextsLength:e.contextsLength,results:e.results,onReplay:e.onReplay,onClose:e.onClose,pending:e.pending});function t7(e){const{scenario:t,title:a,subTitle:r,depth:s,icon:i,wrapperStyle:l,iconTooltip:u,pageIndex:c,pageCount:d,stepIndex:m,stepCount:p,onBack:f,onComplete:b,onNext:y,onSettings:C,useNoiseSetting:v=!0,children:_,ariaLabel:h,label:w,buildResults:g,onResult:B,typeKey:x,entryPoint:A,dailyTotal:N,itemRef:k,renderResultPopup:S,noiseOverride:E}=e;Z3(x&&!Bc.has(x)?x:"");const F=o.useRef(0);o.useEffect(()=>{F.current=Date.now()},[]);const{t:$}=ye.useTranslation(),U=B,j=!!t,T=t?.id||null,I=t?.meta||{},K=Array.isArray(t?.pages)?t.pages:[],ee=Array.isArray(_)||o.isValidElement(_)&&typeof _!="function"?o.Children.toArray(_).filter(o.isValidElement):[],V=ee.length>0,q=se=>se===fr||se?.__isTrainingPage===!0,P=V&&ee.some(se=>q(se.type)),O=P?ee.filter(se=>q(se.type)).map((se,ve)=>{const Te=se.props||{};return{id:`children-page-${ve}`,steps:o.Children.toArray(Te.children).filter(o.isValidElement),pageTop:Te.pageTop||Te.top||null,pageBottom:Te.pageBottom||Te.bottom||null}}):[{id:"children-page-0",steps:ee}],D=V&&!j&&typeof _!="function",H=D?Math.max(1,O.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 ve=Number(se.dataset.ihabTrainingPopupCount||"1")-1;ve>0?se.dataset.ihabTrainingPopupCount=String(ve):(delete se.dataset.ihabTrainingPopupCount,se.classList.remove("ihab-training-popup-open"))}},[]),o.useEffect(()=>{if(!(typeof document>"u"||!document.body))return P4()},[]);const[L,R]=o.useState({...Oa,enabled:!1}),z=o.useRef(L);o.useEffect(()=>{z.current=L},[L]);const J=o.useRef(E),Y=o.useRef(!1),Z=o.useRef(null);o.useEffect(()=>{let se=!1;const ve=Te=>{if(se)return;Y.current=!0;const Ue=Te?Fa({...Oa,enabled:!1},Te):{...Oa},Me=Z.current;Z.current=null;const Ve=Me?Fa(Ue,Me):Ue;z.current=Ve,R(Ve),Me&&!J.current&&ui(Ve),Ga(Ve);const qe=J.current;if(qe){const ct=typeof qe=="function"?qe(Ve):qe,Et=Fa(Ve,ct);z.current=Et,R(Et),Ga(Et)}};return FC().then(ve),()=>{se=!0}},[]);const[ne,le]=o.useState(null),[ue,Ee]=o.useState(null),W=o.useCallback((se,ve)=>{se==="main"?le(ve):Ee(ve)},[]),te=o.useRef(null),fe=o.useRef(null),Se=o.useCallback(()=>{fe.current!==null&&(clearTimeout(fe.current),fe.current=null);const se=te.current;te.current=null,se&&ui(se)},[]);o.useEffect(()=>{if(typeof window>"u")return;const se=()=>{document.visibilityState==="hidden"&&Se()};return window.addEventListener("pagehide",Se),document.addEventListener("visibilitychange",se),()=>{window.removeEventListener("pagehide",Se),document.removeEventListener("visibilitychange",se),Se()}},[Se]);const Ce=o.useCallback(se=>{const ve=Fa(z.current,se);if(z.current=ve,R(ve),!Y.current){Z.current={...Z.current??{},...se},Ga(ve);return}J.current||(te.current=ve,fe.current!==null&&clearTimeout(fe.current),fe.current=setTimeout(Se,J3)),Ga(ve)},[Se]),ie=L.mainSpeed,ce=L.mainVolume,de=o.useCallback(se=>Ce({mainSpeed:se}),[Ce]),be=o.useCallback(se=>Ce({mainVolume:se}),[Ce]),_e=o.useMemo(()=>({settings:L,setSettings:Ce,registerAnalyser:W,mainAnalyser:ne,noiseAnalyser:ue,playbackRate:ie,setPlaybackRate:de,mainVolume:ce,setMainVolume:be}),[L,Ce,W,ne,ue,ie,de,ce,be]),Be=o.useRef(null),[Ze,Oe]=o.useState(0),Ie=o.useRef([]),[He,ut]=o.useState("center"),[nt,rt]=o.useState(!1),pt=o.useRef(!1),Ne=o.useRef(null),Fe=o.useCallback(se=>{pt.current||(pt.current=!0,rt(!0),Ne.current=setTimeout(()=>{try{se()}catch{pt.current=!1,rt(!1)}},Q3()?0:N3))},[]);o.useEffect(()=>()=>{Ne.current&&clearTimeout(Ne.current)},[]);const Ae=o.useRef(f);o.useEffect(()=>{Ae.current=f}),o.useEffect(()=>{const se=Be.current,ve=document.activeElement;if(Yr(se,ve),se){const Te=Array.from(se.querySelectorAll(Cn)).filter(Ue=>!Ue.closest('[aria-hidden="true"]'))[0];if(Te)try{Te.focus()}catch{}}return()=>{const Te=document.activeElement;if(!Te||Te===document.body||se&&se.contains(Te))try{Zr(ve)?.focus?.()}catch{}}},[]),o.useEffect(()=>Vn(()=>Fe(()=>{const se=Ae.current;typeof se=="function"&&se()})),[Fe]),Gr(Be,!0);const[at,X]=o.useState(!1),oe=o.useRef(!1),[he,je]=o.useState(null),ot=o.useRef(0),Ye=()=>{ot.current+=1,je(null)},[bt,Ct]=o.useState(""),[st,et]=o.useState(()=>yr()),Xe=o.useRef(typeof c=="number"?c:null);o.useEffect(()=>{!j&&!D||(et(yr()),Ye())},[j,T,D]),o.useEffect(()=>{D&&et(se=>{const ve=Math.max(0,Math.min(se.pageIndex,Math.max(0,H-1)));return ve!==se.pageIndex?{...se,pageIndex:ve,stepIndex:0}:se})},[D,H]);const tt=D?Math.max(0,Math.min(st.pageIndex,H-1)):0,$e=D?O[tt]:null,Ge=D&&$e&&Array.isArray($e.steps)?$e.steps:[],Pe=j?st.pageIndex:D?tt:typeof c=="number"?c:0,mt=j?K[Math.max(0,Math.min(st.pageIndex,Math.max(0,K.length-1)))]:null,Tt=j&&mt&&Array.isArray(mt.steps)?mt.steps:[],kt=j?Tt.length:D?Ge.length:typeof p=="number"?p:0,ht=j||D?Math.max(0,Math.min(st.stepIndex,Math.max(0,kt))):typeof m=="number"?m:0,vt=j?K.length:D?H:typeof d=="number"?d:0;o.useEffect(()=>{if(!j&&!D)return;const se=j?gr(mt,Pe):$e?.id||`children-page-${Pe??0}`,ve=new Date().toISOString();for(let Te=0;Te<=ht;Te+=1){const Ue=j?br(Tt[Te],Te):`step-${Te}`,Me=Rt(se,Ue);wt.current.has(Me)||wt.current.set(Me,ve)}},[j,D,Pe,ht,$e?.id]),o.useLayoutEffect(()=>{const se=Xe.current;if(typeof Pe=="number"&&se!==null&&Pe!==se&&Pe>se)try{Ct($("training.problemNotice",{n:Pe+1}))}catch{}Xe.current=typeof Pe=="number"?Pe:Xe.current},[Pe,c,$]),o.useLayoutEffect(()=>{const se=Be.current;if(!se)return;const ve=()=>se.querySelector(".page-popup__scroll");let Te=null,Ue=null,Me=null;const Ve=Qt=>{const ae=ve();if(!ae)return;const we=ae.scrollHeight<=ae.clientHeight;if(ut(we?"center":"top"),Qt&&!oe.current){oe.current=!0;try{X(!0)}catch{}try{Et.disconnect()}catch{}}},qe=()=>{Te!==null&&cancelAnimationFrame(Te),Te=requestAnimationFrame(()=>{Ue!==null&&clearTimeout(Ue),Ue=setTimeout(()=>Ve(!0),60)})},ct=()=>{Me!==null&&cancelAnimationFrame(Me),Me=requestAnimationFrame(()=>Ve(!1))};qe(),window.addEventListener("resize",ct);const Et=new MutationObserver(qe);Et.observe(se,{childList:!0,subtree:!0,attributes:!0});const Jt=setTimeout(()=>{oe.current||Ve(!0)},400);return()=>{window.removeEventListener("resize",ct),Te!==null&&cancelAnimationFrame(Te),Ue!==null&&clearTimeout(Ue),Me!==null&&cancelAnimationFrame(Me),clearTimeout(Jt);try{Et.disconnect()}catch{}}},[Be]);const ze=o.useCallback(se=>{Be.current&&(Be.current._childOnNext=se)},[]),it=o.useCallback(se=>{Be.current&&(Be.current._childOnResult=se)},[]),wt=o.useRef(new Map),Rt=(se,ve)=>`${se}\0${ve}`,Qe=o.useCallback((se,ve,Te)=>{et(Ue=>{const Me=Ue.answersByPage[se]||{},Ve=Me[ve],qe=Jo(Te),ct=Jo(Ve);if(Ve&&ct>qe)return Ue;const Et=hc(Te,wt.current.get(Rt(se,ve)),qe);return{...Ue,answersByPage:{...Ue.answersByPage,[se]:{...Me,[ve]:Et}}}})},[et]),Nt=o.useCallback((se,ve,Te)=>{const Ue=gr(mt,Pe),Me=br(se,ve);Qe(Ue,Me,Te)},[mt,Pe,Qe]),Dt=o.useCallback((se,ve,Te)=>{const Ue=gr(mt,Pe),Me=br(se,ve);Qe(Ue,Me,Te),!Te?.allowChange&&se?.autoAdvance!==!1&&et(Ve=>({...Ve,stepIndex:Math.max(Ve.stepIndex,ve+1)}))},[mt,Pe,Qe,et]),Mt=o.useCallback((se,ve)=>{const Te=$e?.id||`children-page-${Pe??0}`,Ue=typeof ve=="number"?ve:ht??0,Me=`step-${Ue}`;Qe(Te,Me,se),se?.allowChange||et(Ve=>({...Ve,stepIndex:Math.max(Ve.stepIndex,Ue+1)}))},[$e,Pe,ht,Qe,et]),Pt=o.useCallback((se,ve)=>{const Te=$e?.id||`children-page-${Pe??0}`,Ue=`step-${typeof ve=="number"?ve:ht??0}`;Qe(Te,Ue,se)},[$e,Pe,ht,Qe]),gn=D?{currentPageIndex:Pe??0,currentStepIndex:ht??0,totalStepsInPage:Ge.length,handleStepDone:Mt,handleStepChange:Pt}:null,dn=async()=>{const se=typeof t?.buildResults=="function"?await Promise.resolve(t.buildResults({scenario:t,pages:K,flowState:st,answersByPage:st.answersByPage})):null;return typeof U=="function"&&await Promise.resolve(U(se))||se},pn=async()=>{const se=$e?.id||`children-page-${st.pageIndex}`,ve=st.answersByPage[se]||{},Te=P?(()=>{const Ve={};let qe=0;return O.forEach(ct=>{const Et=st.answersByPage[ct.id]||{},Jt=Array.isArray(ct.steps)?ct.steps.length:0;for(let Qt=0;Qt<Jt;Qt+=1){const ae=Et[`step-${Qt}`];typeof ae<"u"&&(Ve[`step-${qe+Qt}`]=ae)}qe+=Jt}),Ve})():ve;if(typeof g=="function"){const Ve=await Promise.resolve(g(Te,{pageAnswers:ve,answersByPage:st.answersByPage,pages:O,currentPageId:se}));return typeof U=="function"&&await Promise.resolve(U(Ve))||Ve}const Ue=Object.entries(ve).map(([Ve,qe],ct)=>({index:ct,key:Ve,payload:qe})),Me={results:Ue,answers:Ue,score:0};return typeof U=="function"&&await Promise.resolve(U(Me))||Me},mn=()=>{const se=++ot.current,ve=()=>se!==ot.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(j){const Me=dn();je(Rn);const Ve=Me;Promise.resolve(Ve).then(qe=>{ve()||je(qe||{isEmpty:!0})}).catch(qe=>{!ve()&&je({isEmpty:!0})});return}if(D){const Me=pn();je(Rn);const Ve=Me;Promise.resolve(Ve).then(qe=>{ve()||je(qe||{isEmpty:!0})}).catch(qe=>{!ve()&&je({isEmpty:!0})});return}const Te=Be.current&&Be.current._childOnResult,Ue=Me=>{try{return Me?Me():void 0}catch{return}};if(typeof Te=="function"){const Me=Ue(Te);try{typeof document>"u"?require("url").pathToFileURL(__filename).href:xn&&xn.tagName.toUpperCase()==="SCRIPT"&&xn.src||new URL("components.cjs.js",document.baseURI).href}catch{}Me&&typeof Me.then!="function"?je(Me):je(Me&&typeof Me.then=="function"?Rn:{});const Ve=()=>{ve()||je(qe=>qe===Rn?{}:qe)};Promise.resolve(Me).then(qe=>{qe&&!ve()?je(qe):Ve()}).catch(qe=>{Ve()});return}if(typeof U=="function"){const Me=Ue(U);try{typeof document>"u"?require("url").pathToFileURL(__filename).href:xn&&xn.tagName.toUpperCase()==="SCRIPT"&&xn.src||new URL("components.cjs.js",document.baseURI).href}catch{}Me&&typeof Me.then!="function"?je(Me):je(Me&&typeof Me.then=="function"?Rn:{});const Ve=()=>{ve()||je(qe=>qe===Rn?{}:qe)};Promise.resolve(Me).then(qe=>{try{typeof document>"u"?require("url").pathToFileURL(__filename).href:xn&&xn.tagName.toUpperCase()==="SCRIPT"&&xn.src||new URL("components.cjs.js",document.baseURI).href}catch{}qe&&!ve()?je(qe):Ve()}).catch(qe=>{console.error("viewResults external handler failed",qe),Ve()});return}},In=()=>{if(j){if(typeof Pe=="number"&&typeof vt=="number"&&Pe<vt-1){et(ve=>({...ve,pageIndex:ve.pageIndex+1,stepIndex:0}));return}return mn()}if(D){const ve=Ge.length;if(typeof ht=="number"&&ht<ve-1){et(Te=>({...Te,stepIndex:Te.stepIndex+1}));return}if(typeof Pe=="number"&&typeof vt=="number"&&Pe<vt-1){et(Te=>({...Te,pageIndex:Te.pageIndex+1,stepIndex:0}));return}return mn()}if(typeof y=="function"){try{y()}catch{}return}const se=Be.current&&Be.current._childOnNext;if(typeof se=="function"){try{se()}catch{}return}},bn=j?I.title||I.label||h||$("common.popup","\uD31D\uC5C5"):a||w||(Array.isArray(s)?s[s.length-1]:void 0)||h||$("common.popup","\uD31D\uC5C5"),Wt=h||bn,yn=j?I.title??I.label??bn:a??w??bn,qt=(se,ve)=>{const Te=gr(mt,Pe),Ue=br(se,ve),Me=st.answersByPage[Te]?.[Ue],Ve=X3(se,{page:mt,pageIndex:Pe,step:se,stepIndex:ve,storedPayload:Me,answersByPage:st.answersByPage,flowState:st}),qe={key:Ue,index:ve,stepIndex:ht,isLast:ve===Tt.length-1};switch(se?.type){case"listen":return n.jsx(Ko,{...qe,...Ve,onDone:ct=>Dt(se,ve,ct)});case"confirm":return n.jsx(Uo,{...qe,...Ve,onDone:ct=>Dt(se,ve,ct),onChange:ct=>Nt(se,ve,ct)});case"confirmWithText":return n.jsx(Go,{...qe,...Ve,onDone:ct=>Dt(se,ve,ct),onChange:ct=>Nt(se,ve,ct)});case"orderList":return n.jsx(Yo,{...qe,...Ve,onDone:ct=>Dt(se,ve,ct),onChange:ct=>Nt(se,ve,ct)});default:return null}},It=o.useRef(void 0);o.useEffect(()=>{const se=It.current;if(It.current=Pe,se===void 0||se===Pe||!or())return;const ve=Be.current;if(!ve)return;const Te=document.activeElement;if(!(!Te||Te===document.body||!ve.contains(Te)||Te.disabled===!0))return;const Ue=ve.querySelector(`.training-steps ${Cn.split(", ").join(", .training-steps ")}`)??Array.from(ve.querySelectorAll(Cn)).find(Me=>!Me.closest('[aria-hidden="true"]'));try{Ue?.focus()}catch{}},[Pe]);const En=j?K.length>0?n.jsx("div",{className:"training-steps",children:Tt.map((se,ve)=>qt(se,ve))},`replay-${Ze}`):n.jsx("div",{className:`page-popup__content page-popup__content--center${e.contentFull?" page-popup__content--full":""}`,children:n.jsx("div",{className:"pp-empty",children:t?.emptyMessage||$("training.noQuestions","\uBB38\uC81C\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")})}):null,rn=D?n.jsxs(fc.Provider,{value:gn,children:[$e?.pageTop?n.jsx("div",{className:"training-page-top",children:$e.pageTop}):null,n.jsx("div",{className:"training-steps",children:Ge.map((se,ve)=>{const Te=se;return o.cloneElement(Te,{...Te.props,_stepIndex:ve,_totalSteps:Ge.length,_stepKey:`step-${ve}`,_pageIndex:Pe})})},`replay-${Ze}`),$e?.pageBottom?n.jsx("div",{className:"training-page-bottom",children:$e.pageBottom}):null]}):null,vn=o.useCallback(()=>{let se;if(x){const ve=he,{results:Te,correct:Ue,total:Me}=Ac(he);RC({items:IC(Te),category:Bc.has(x)?"sentence":"word",trainingType:x,entryPoint:A??"sentence",itemRef:k??null,correct:Ue,total:Me,score:typeof ve?.score=="number"?ve.score:null,durationSeconds:Math.max(0,Math.round((Date.now()-F.current)/1e3)),dailyTotal:N??null}),se={correct:Ue,total:Me,attempt:Ie.current.length+1,previousAttempts:[...Ie.current]}}Ye(),Fe(()=>{typeof b=="function"&&b(se),typeof f=="function"&&f()})},[b,f,x,A,N,k,he,je,Fe]),Fn=o.useCallback(()=>Ct(""),[Ct]),hn=o.useCallback(()=>{Fe(()=>{typeof f=="function"&&f()})},[f,Fe]),Ut=n.jsxs("div",{className:`page-popup${nt?" page-popup--closing":""}`,role:"dialog","aria-modal":"true","aria-label":Wt,children:[n.jsxs("div",{ref:Be,className:`page-popup__panel ${at?"":"page-popup__panel--measuring"} ${He==="center"?"page-popup__panel--center":He==="top"?"page-popup__panel--top":""}`,children:[n.jsx(dc,{title:yn,subtitle:j?I.subtitle||I.label:Array.isArray(s)?s.join(" / "):void 0,desc:j?void 0:r,depth:j?I.depth:s,icon:j?I.icon:i,wrapperStyle:j?I.wrapperStyle:l,iconTooltip:j?I.iconTooltip:u,progressMax:vt,progressIndex:Pe,pageIndex:Pe,pageCount:vt,onBack:hn,onClose:hn}),n.jsx("div",{className:"page-popup__scroll",children:n.jsx("div",{className:`page-popup__content ${He==="center"?"page-popup__content--center":"page-popup__content--top"}${e.contentFull?" page-popup__content--full":""}`,children:D?rn:j?En:typeof _=="function"?_({registerOnNext:ze,registerOnResult:it,panelRef:Be,setResultOverlay:je}):_})}),n.jsx(cc,{onSettings:C,onNext:In,onResult:mn,useNoiseSettingBtn:!!(j?I.useNoiseSetting??!0:v),stepIndex:ht,stepCount:kt,pageIndex:Pe,pageCount:vt,resultOpen:!!(he&&!he.isEmpty)})]}),he&&!he.isEmpty&&(S??e7)({score:he.score,results:he.results||he.answers||[],contextsLength:he.results?he.results.length:he.answers?he.answers.length:0,onReplay:()=>{if(F.current=Date.now(),he!==Rn){const{correct:se,total:ve}=Ac(he);Ie.current.push({correct:se,total:ve})}if(Ye(),Oe(se=>se+1),j){if(et(yr()),typeof t?.onReplay=="function")try{t.onReplay()}catch{}return}if(D){et(yr());return}try{const se=Be.current&&Be.current._childOnResult;typeof se=="function"&&se({replay:!0})}catch{}},onClose:vn,pending:he===Rn}),he?.isEmpty&&n.jsx("div",{className:"page-popup page-popup--result-empty",role:"dialog","aria-modal":"true","aria-label":$("training.result.eyebrow","\uD6C8\uB828 \uC644\uB8CC"),children:n.jsxs("div",{className:"page-popup__panel page-popup__panel--center",children:[n.jsx("div",{className:"page-popup__scroll",children:n.jsx("div",{className:`page-popup__content page-popup__content--center${e.contentFull?" page-popup__content--full":""}`,children:n.jsx("div",{className:"page-popup__empty",children:$("training.result.eyebrow","\uD6C8\uB828 \uC644\uB8CC")})})}),n.jsx("div",{className:"page-popup__bottom",children:n.jsx(me,{htmlType:"button",variant:"main",size:48,onClick:vn,label:$("training.result.done","\uC644\uB8CC")})})]})}),n.jsx(oa,{message:bt,position:"top",onClose:Fn})]}),Ot=n.jsx(Oo.Provider,{value:_e,children:Ut});return typeof document<"u"&&document.body?en.createPortal(Ot,document.body):Ot}const Pn=t7;Pn.Page=fr,Pn.ListenStep=gc,Pn.ConfirmStep=bc,Pn.ConfirmWithTextStep=yc,Pn.OrderListStep=vc,Pn.CardStep=xc,Pn.CardOrderStep=K3;function n7({label:e,homonum:t}){const a=Jn()?.(e,t)??"",{imgRef:r,loading:s,hasImage:i,onLoad:l,onError:u}=Do(a);return i?n.jsxs("div",{className:"tooltip-word-image__cell",children:[s&&n.jsx("div",{className:"tooltip-word-image__spinner"}),n.jsx("img",{ref:r,src:a,alt:e,draggable:!1,style:{opacity:s?0:1},onLoad:l,onError:u})]}):n.jsx("div",{className:"tooltip-word-image__cell tooltip-word-image__cell--text h3",children:n.jsx("span",{children:e})})}function kc({words:e,anchorRect:t}){const a=o.useRef(null),[r,s]=o.useState(null);return o.useLayoutEffect(()=>{if(!t||!a.current)return;const{offsetWidth:i,offsetHeight:l}=a.current,u=window.innerWidth;let c=t.left+t.width/2-i/2,d=t.top-l-8;d<8&&(d=t.bottom+8),c=Math.max(8,Math.min(c,u-i-8)),s({left:c,top:d})},[t]),!t||e.length===0?null:en.createPortal(n.jsx("div",{ref:a,className:"tooltip-word-image",style:{visibility:r?"visible":"hidden",left:r?.left??0,top:r?.top??-9999},children:n.jsx("div",{className:"tooltip-word-image__cells",children:e.map(i=>n.jsx(n7,{label:i.label,homonum:i.homonum},`${i.label}_${i.homonum??1}`))})}),document.body)}const a7=new Intl.Collator("ko");function r7({titleIcon:e,resultCount:t,resultUnit:a,searchQuery:r,items:s,groups:i,selected:l=[],onSelect:u,maxSelect:c,onClearSelection:d,onPrint:m,onPrintEmpty:p,className:f,emptyHint:b,sectionType:y="page",disc:C}){const{t:v,i18n:_}=ye.useTranslation(),h=_.language?.startsWith("ko")??!1,{anchorRect:w,openAt:g,close:B}=Aa(),[x,A]=o.useState(null),N=o.useCallback(()=>{B(),A(null)},[B]);gb(N,!!x);const k=(r??"").trim(),S=/^[^,[\]\s]+$/.test(k)?k:"",E=S.length>0,F=r===void 0&&t===void 0,$=E?"match":F?"original":"ganada",[U,j]=o.useState(()=>$),[T,I]=o.useState("50"),[K,ee]=o.useState(1),[V,q]=o.useState(E);V!==E&&(q(E),j($));const P=U==="match"&&!E||U==="original"&&!F?$:U,O=o.useMemo(()=>[...E?[{value:"match",label:v("wordSearch.sort.match",{defaultValue:"\uC2DC\uC791 \uC6B0\uC120"})}]:[],...F?[{value:"original",label:v("wordSearch.sort.original",{defaultValue:"\uBC1B\uC740 \uC21C\uC11C"})}]:[],{value:"ganada",label:v("wordSearch.sort.ganada",{defaultValue:"\uAC00\uB098\uB2E4\uC21C \u2191"})},{value:"ganada_desc",label:v("wordSearch.sort.ganadaDesc",{defaultValue:"\uAC00\uB098\uB2E4\uC21C \u2193"})},{value:"syllable",label:v("wordSearch.sort.syllable",{defaultValue:"\uC74C\uC808 \uC218 \u2191"})},{value:"syllable_desc",label:v("wordSearch.sort.syllableDesc",{defaultValue:"\uC74C\uC808 \uC218 \u2193"})},{value:"grade",label:v("wordSearch.sort.grade",{defaultValue:"\uB4F1\uAE09\uC21C \u2191"})},{value:"grade_desc",label:v("wordSearch.sort.gradeDesc",{defaultValue:"\uB4F1\uAE09\uC21C \u2193"})}],[v,E,F]),D=o.useMemo(()=>["10","25","50","100"].map(ie=>({value:ie,label:v("wordSearch.pageSize",{count:Number(ie),defaultValue:`${ie}\uAC1C\uC529 \uBCF4\uAE30`})})),[v]),H=ie=>ie.words?.[0],L=o.useMemo(()=>{const ie=[...S].length,ce=xC(S),de=new Map;return be=>{let _e=de.get(be);return _e===void 0&&(_e=ce((be.words?.[0]?.label??"").slice(0,ie))?0:1,de.set(be,_e)),_e}},[S]),R=o.useCallback((ie,ce)=>{const de=Be=>H(Be)?.label??"",be=Be=>H(Be)?.syllables??[...de(Be)].length,_e=Be=>(Be.words??[]).reduce((Ze,Oe)=>{const Ie=parseInt(Oe.grade??"",10);return Number.isFinite(Ie)&&Ie<Ze?Ie:Ze},999);switch(P){case"match":return L(ie)-L(ce)||a7.compare(de(ie),de(ce));case"ganada":return de(ie).localeCompare(de(ce),"ko");case"ganada_desc":return de(ce).localeCompare(de(ie),"ko");case"syllable":return be(ie)-be(ce)||de(ie).localeCompare(de(ce),"ko");case"syllable_desc":return be(ce)-be(ie)||de(ie).localeCompare(de(ce),"ko");case"grade":return _e(ie)-_e(ce)||de(ie).localeCompare(de(ce),"ko");case"grade_desc":return _e(ce)-_e(ie)||de(ie).localeCompare(de(ce),"ko");default:return 0}},[P,L]),z=o.useMemo(()=>s.slice().sort(R),[s,R]),J=Number(T)||10,Y=o.useMemo(()=>(i??[]).flatMap(ie=>ie.items.slice().sort(R).map(ce=>({item:ce,label:ie.label}))),[i,R]),Z=i?Y.length:z.length,ne=Math.max(1,Math.ceil(Z/J)),le=Math.min(K,ne),ue=o.useMemo(()=>z.slice((le-1)*J,le*J),[z,le,J]),Ee=o.useMemo(()=>{if(!i)return null;const ie=Y.slice((le-1)*J,le*J),ce=new Map;for(const{item:de,label:be}of ie)ce.has(be)||ce.set(be,[]),ce.get(be).push(de);return[...ce.entries()].map(([de,be])=>({label:de,items:be}))},[i,Y,le,J]);o.useEffect(()=>{ee(1)},[U,T,Z,r]);const W=Z>0?n.jsxs("div",{className:"word-search-result-block__toolbar",children:[n.jsx(cn,{size:40,options:O,value:P,onChange:j,ariaLabel:v("wordSearch.sort.aria",{defaultValue:"\uC815\uB82C"})}),n.jsx(cn,{size:40,options:D,value:T,onChange:I,ariaLabel:v("wordSearch.pageSizeAria",{defaultValue:"\uD398\uC774\uC9C0 \uD06C\uAE30"})}),n.jsx(nr,{page:le,totalPages:ne,onChange:ee})]}):void 0,te=ie=>{u&&u(ie)},fe=t!==void 0&&a?n.jsxs(n.Fragment,{children:[v("wordSearch.resultTitlePrefix","\uCD1D "),n.jsx("span",{style:{color:"var(--color-main)"},children:t}),v("wordSearch.resultTitleSuffix",{unit:h?EC(a):a})]}):void 0,Se=t!==void 0&&t>0&&c!==void 0&&a?v("wordSearch.resultDisc",{unit:h?jC(a):a,max:c,selected:l.length}):void 0,Ce=C??Se;return n.jsxs(ia,{type:y,className:ke("word-search-result-block",f),children:[n.jsxs("div",{className:"word-search-result-block__inner",children:[(fe||W||Ce)&&n.jsxs("div",{className:"word-search-result-block__head",children:[n.jsxs("div",{className:"word-search-result-block__head-main",children:[e&&n.jsx(Je,{icon:e,className:"word-search-result-block__head-icon"}),fe&&n.jsx("span",{className:"word-search-result-block__title h3",children:fe})]}),W&&n.jsx("div",{className:"word-search-result-block__head-actions",children:W}),Ce&&n.jsx("div",{className:"word-search-result-block__head-disc body-3",children:Ce})]}),(i?i.length===0:s.length===0)&&n.jsxs("div",{className:"word-search-result-block__empty-wrap",children:[n.jsx("p",{className:"word-search-result-block__empty body-3",children:v("wordSearch.emptyResult","\uAC80\uC0C9 \uACB0\uACFC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")}),b&&n.jsx("p",{className:"word-search-result-block__empty-hint body-3",children:b})]}),i?(Ee??[]).map(ie=>n.jsx("div",{className:"word-search-result-block__group",children:n.jsx("div",{className:"word-search-result-block__items",children:ie.items.map(ce=>{const de=l.includes(ce.id);return n.jsx("div",{onMouseEnter:be=>{g(be.currentTarget),A(ce.words??[])},onMouseLeave:N,children:n.jsx(me,{htmlType:"button",size:"word",align:"grid",label:(ce.words??[]).map(be=>be.label),subLabel:(ce.words??[]).some(be=>be.subLabel)?(ce.words??[]).map(be=>be.subLabel):void 0,selected:de,onClick:()=>te(ce.id),minWidth:200})},ce.id)})})},ie.label)):n.jsx("div",{className:"word-search-result-block__items",children:ue.map(ie=>{const ce=l.includes(ie.id);return n.jsx("div",{onMouseEnter:de=>{g(de.currentTarget),A(ie.words??[])},onMouseLeave:N,children:n.jsx(me,{htmlType:"button",size:"word",align:"grid",label:(ie.words??[]).map(de=>de.label),subLabel:(ie.words??[]).some(de=>de.subLabel)?(ie.words??[]).map(de=>de.subLabel):void 0,selected:ce,onClick:()=>te(ie.id),minWidth:200})},ie.id)})}),x&&w&&n.jsx(kc,{words:x,anchorRect:w})]}),ne>1&&n.jsx("div",{className:"word-search-result-block__pagination-bottom",children:n.jsx(nr,{page:le,totalPages:ne,onChange:ee})}),(d||m)&&n.jsxs("div",{className:"word-search-result-block__actions",children:[d&&n.jsx(me,{htmlType:"button",size:"56",type:"bar",label:v("common.resetSelection","\uC120\uD0DD \uCD08\uAE30\uD654"),selected:!1,disabled:l.length===0,onClick:l.length===0?void 0:d}),m&&n.jsx("div",{onClick:l.length===0?p:void 0,children:n.jsx(me,{htmlType:"button",size:"56",type:"bar",variant:"main",label:v("wordTable.title","\uB2E8\uC5B4 \uD45C \uB9CC\uB4E4\uAE30"),disabled:l.length===0,onClick:l.length===0?void 0:m})})]})]})}function o7(e,t){return t.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 s7({sections:e,selectedList:t,count:a,onCountChange:r,maxCount:s=4,minCount:i=1,combinationSections:l,combinationSectionsForSlot:u,onSelect:c,placeholder:d="-",className:m,title:p,titleIcon:f,disc:b,showInfoButton:y=!0,onClearPhoneme:C,onSearch:v,onSearchEmpty:_,searchDisabled:h=!1,searchLabel:w,searchChecking:g=!1,pairMode:B=!1,sectionType:x="page",beforeSearchContent:A,beforeContent:N,afterContent:k,hideCountControl:S=!1,ordinal:E=!1}){const{t:F}=ye.useTranslation(),$=o.useMemo(()=>F("wordPairs.infoNotes",{returnObjects:!0}),[F]),U=o.useMemo(()=>Array.from({length:s-i+1},(L,R)=>{const z=i+R;return{key:String(z),label:F("wordPairs.count",{n:z})}}),[F,s,i]),j=o.useMemo(()=>F("wordPairs.ordinals",{returnObjects:!0}),[F]),T=o.useCallback(L=>E?F("wordPairs.phonemeOrdinalLabel",{ordinal:j[L-1]??L}):a===1?F("wordPairs.phonemeSingleLabel","\uC74C\uC808"):F("wordPairs.phonemeN",{n:L}),[E,j,a,F]),I=o.useCallback(L=>E?F("wordPairs.phonemeContrastOrdinalLabel",{ordinal:j[L-1]??L}):a===1?F("wordPairs.phonemeContrastSingleLabel","\uB300\uB9BD \uC74C\uC808"):F("wordPairs.phonemeContrast",{n:L}),[E,j,a,F]),K=o.useCallback((L,R)=>R?n.jsxs(n.Fragment,{children:[L,n.jsx("span",{className:"phoneme-select-block__required",children:"*"})]}):L,[]),{anchorRect:ee,toggleAt:V,close:q}=Aa(),P=o.useCallback(L=>r(Number(L)),[r]),O=on("(max-width: 767px)"),D=o.useCallback(L=>o7(L,e).map(({label:R,value:z,displayLabel:J})=>{const Y=!!z&&z!=="\uC5C6\uC74C";return n.jsxs("span",{className:ke("phoneme-select-block__cell-jamo-part",z?"":"phoneme-select-block__cell-jamo-part--empty",Y?"":"phoneme-select-block__cell-jamo-part--no-label"),children:[n.jsx("span",{className:`phoneme-select-block__cell-jamo-char h1${z==="\uC5C6\uC74C"?" phoneme-select-block__cell-jamo-char--excluded":""}`,children:z==="\uC5C6\uC74C"?"x":z||d}),Y&&n.jsx("span",{className:"phoneme-select-block__cell-jamo-label caption-2",children:J??R})]},R)}),[e,d]),H=n.jsxs(n.Fragment,{children:[n.jsx("div",{"data-tooltip-ignore":!0,children:n.jsx(me,{htmlType:"button",size:40,type:O?"dot":void 0,icon:"info",label:O?void 0:F("wordPairs.caution","\uC720\uC758\uC0AC\uD56D"),ariaLabel:F("wordPairs.caution","\uC720\uC758\uC0AC\uD56D"),className:ee?"is-selected":void 0,"aria-expanded":!!ee,"aria-haspopup":"dialog",onClick:L=>V(L.currentTarget)})}),ee&&n.jsx(Wn,{title:F("wordPairs.caution","\uC720\uC758\uC0AC\uD56D"),items:$,anchorRect:ee,onClose:q})]});return n.jsxs(ia,{type:x,title:p,icon:f,disc:b,action:y?H:void 0,className:ke("phoneme-select-block",m),children:[N,!S&&n.jsx("div",{className:"phoneme-select-block__controls",children:n.jsx(kn,{options:U,value:String(a),onChange:P,size:40,ariaLabel:F("wordPairs.countLabel","\uC74C\uC18C \uAC1C\uC218"),className:"phoneme-select-block__count-control"})}),n.jsx("div",{className:"phoneme-select-block__cells",children:B?n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"phoneme-select-block__cell-group",children:Array.from({length:a}).map((L,R)=>{const z=t[R*2]??{};return n.jsxs("div",{className:"phoneme-select-block__cell",children:[n.jsx("div",{className:"phoneme-select-block__cell-circle",children:n.jsx("div",{className:"phoneme-select-block__cell-jamo",children:D(z)})}),n.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:T(R+1)})]},R)})}),n.jsx("span",{className:"phoneme-select-block__cell-vs h3",children:F("wordPairs.phonemeSelect.vs","\uB300")}),n.jsx("div",{className:"phoneme-select-block__cell-group",children:Array.from({length:a}).map((L,R)=>{const z=t[R*2+1]??{};return n.jsxs("div",{className:"phoneme-select-block__cell",children:[n.jsx("div",{className:"phoneme-select-block__cell-circle",children:n.jsx("div",{className:"phoneme-select-block__cell-jamo",children:D(z)})}),n.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:I(R+1)})]},R)})})]}):t.map((L,R)=>n.jsxs("div",{className:"phoneme-select-block__cell",children:[n.jsx("div",{className:"phoneme-select-block__cell-circle",children:n.jsx("div",{className:"phoneme-select-block__cell-jamo",children:D(L)})}),n.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:T(R+1)})]},R))}),(l||u)&&n.jsx("div",{className:"phoneme-select-block__panels",children:n.jsx("div",{className:"phoneme-select-block__detail",children:B?n.jsxs("div",{className:"phoneme-select-block__pair-panels",children:[n.jsx("div",{className:"phoneme-select-block__panel-group",children:Array.from({length:a}).map((L,R)=>{const z=t[R*2]??{};return n.jsx(Dn,{title:K(T(R+1),R===0),sections:u?u(z,R*2):l,selected:z,onSelect:c?.(R*2),align:"newline"},R)})}),n.jsx("div",{className:"phoneme-select-block__panel-group",children:Array.from({length:a}).map((L,R)=>{const z=t[R*2+1]??{};return n.jsx(Dn,{title:I(R+1),sections:u?u(z,R*2+1):l,selected:z,onSelect:c?.(R*2+1),align:"newline"},R)})})]}):t.map((L,R)=>n.jsx(Dn,{title:K(T(R+1),R===0),sections:u?u(L,R):l,selected:L,onSelect:c?.(R),align:"newline"},R))})}),A&&n.jsx("div",{className:"phoneme-select-block__before-search",children:A}),(C||v||g)&&(()=>{const L=t.every(R=>Object.entries(R).every(([z,J])=>!J||z==="\uC885\uC131"&&J==="\uC5C6\uC74C"));return n.jsxs("div",{className:"phoneme-select-block__search-row",onClick:L?_:void 0,children:[C&&n.jsx(me,{htmlType:"button",size:"56",type:"bar",label:F("wordPairs.resetOptions","\uAC80\uC0C9 \uC635\uC158 \uCD08\uAE30\uD654"),selected:!1,disabled:L,onClick:L?void 0:C}),v?n.jsx(me,{htmlType:"button",size:"56",type:"bar",variant:"main",icon:g?n.jsx("span",{className:"phoneme-select-block__spinner","aria-hidden":"true"}):void 0,label:w??F("wordSearch.searchButton","\uAC80\uC0C9\uD558\uAE30"),disabled:L||h||g,onDisabledClick:g?()=>{}:void 0,"aria-busy":g||void 0,onClick:v}):g?n.jsxs("div",{className:"phoneme-select-block__checking","aria-busy":"true",children:[n.jsx("div",{className:"phoneme-select-block__spinner"}),n.jsx("span",{className:"button-1 phoneme-select-block__checking-label",children:w??F("wordSearch.searchButton","\uAC80\uC0C9\uD558\uAE30")})]}):null]})})(),k]})}function i7({title:e,sections:t,selected:a,onSelect:r,collapsible:s,defaultCollapsed:i,collapsed:l,onCollapsedChange:u,headerSummary:c,headerAction:d,className:m}){const{t:p}=ye.useTranslation();return n.jsx(Dn,{className:m,title:e??p("wordSearch.filterTitle","\uB2E8\uC5B4 \uAC80\uC0C9 \uC124\uC815"),sections:t,selected:a,onSelect:r,collapsible:s,defaultCollapsed:i,collapsed:l,onCollapsedChange:u,headerSummary:c,headerAction:d,align:"inline"})}function l7({title:e,headerAction:t,sections:a,selected:r,onSelect:s,className:i}){const{t:l}=ye.useTranslation();return a.length===0?null:n.jsx(Dn,{className:i,title:e??l("training.filter.phonemeGroup",{defaultValue:"\uD6C8\uB828 \uC74C\uC808"}),headerAction:t,sections:a,selected:r,onSelect:s,align:"newline"})}function u7({title:e,mode:t,onModeChange:a,matchMode:r,onMatchModeChange:s,positionCount:i,onPositionCountChange:l,inputMode:u,onInputModeChange:c,className:d}){const{t:m}=ye.useTranslation(),p={searchMode:m("wordPairs.filter.searchModeLabel","\uB300\uB9BD \uBC29\uC2DD"),phonemeOrder:m("wordPairs.filter.phonemeOrder","\uC785\uB825 \uC74C\uC808 \uC704\uCE58"),count:m("wordPairs.filter.countLabel","\uC785\uB825 \uC74C\uC808 \uAC2F\uC218"),inputMode:m("wordPairs.filter.inputModeLabel","\uC785\uB825 \uBC29\uC2DD"),orderAny:m("wordPairs.filter.orderAny","\uBB34\uAD00"),orderMatch:m("wordPairs.filter.orderMatch","\uC77C\uCE58"),include:m("wordPairs.mode.include","\uC74C\uC18C \uD3EC\uD568"),pick:m("wordPairs.mode.pick","\uC74C\uC18C \uB300\uB9BD"),explicit:m("wordPairs.mode.contrast","\uC74C\uC18C \uB300\uB9BD \uC9C0\uC815"),charInput:m("wordPairs.input.char","\uAE00\uC790 \uC120\uD0DD"),pronInput:m("wordPairs.input.pron","\uBC1C\uC74C \uC120\uD0DD")},f=v=>m("wordPairs.count",{n:v}),b=[{label:p.searchMode,items:[p.include,p.pick,p.explicit],display:"segmented",labelAction:n.jsx(ja,{title:m("wordPairs.mode.infoTitle","\uB300\uB9BD \uBC29\uC2DD"),items:[m("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."),m("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."),m("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:p.phonemeOrder,items:[p.orderAny,p.orderMatch],display:"segmented",labelAction:n.jsx(ja,{items:m("wordPairs.filter.phonemeOrderInfo",{returnObjects:!0})})},{label:p.count,items:[f(1),f(2)],display:"segmented"},{label:p.inputMode,items:[p.charInput,p.pronInput],display:"segmented",labelAction:n.jsx(ja,{title:m("wordPairs.input.infoTitle","\uC785\uB825 \uBC29\uC2DD"),items:[m("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."),m("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={[p.searchMode]:t==="explicit"?p.explicit:t==="pick"?p.pick:p.include,[p.phonemeOrder]:r==="ordered"?p.orderMatch:p.orderAny,[p.count]:f(i),[p.inputMode]:u==="phoneme"?p.pronInput:p.charInput},C=(v,_)=>{_===p.searchMode?a(v===p.explicit?"explicit":v===p.pick?"pick":"include"):_===p.phonemeOrder?s(v===p.orderMatch?"ordered":"unordered"):_===p.count?l(v===f(2)?2:1):_===p.inputMode&&c(v===p.pronInput?"phoneme":"word")};return n.jsx(Dn,{className:d,title:e??m("wordPairs.filter.searchOptionsTitle","\uB300\uB9BD \uC124\uC815"),sections:b,selected:y,onSelect:C,align:"inline"})}function c7(e){const{title:t,items:a,columns:r,gridTemplateColumns:s,mobileGridTemplateColumns:i,searchPlaceholder:l,searchFn:u,defaultSortKey:c,defaultSortAsc:d=!0,selectedId:m,selectedIds:p,onSelect:f,onClose:b,pageSizeOptions:y=[10,25,50,100],initialPageSize:C,emptyText:v,noMatchText:_,countLabel:h,topContent:w,className:g=""}=e,{t:B}=ye.useTranslation(),x=l??B("common.search","\uAC80\uC0C9"),A=v??B("common.emptyList","\uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4."),N=_??B("common.noMatches","\uB9DE\uB294 \uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4"),[k,S]=o.useState(""),[E,F]=o.useState(c??r[0]?.key??""),[$,U]=o.useState(d),[j,T]=o.useState(String(C??y[0]??10)),[I,K]=o.useState(1);o.useEffect(()=>{K(1)},[k,j]);const ee=u!==null,V=o.useCallback((Y,Z)=>{if(!Z)return!0;const ne=Z.toLowerCase();return r.some(le=>{const ue=Y[le.key];return ue==null?!1:String(ue).toLowerCase().includes(ne)})},[r]),q=u??V,P=o.useMemo(()=>{const Y=ee?a.filter(Z=>q(Z,k)):a;return E?[...Y].sort((Z,ne)=>{const le=Z[E],ue=ne[E];return le===ue?0:ro(le,ue,$)}):Y},[a,k,E,$,ee,q]),O=Math.max(1,Math.ceil(P.length/Number(j)));I>O&&K(O);const D=Math.min(I,O),H=P.slice((D-1)*Number(j),D*Number(j)),L=o.useCallback(Y=>{E===Y?U(Z=>!Z):(F(Y),U(!0)),K(1)},[E]),R=o.useMemo(()=>{if(typeof h=="function"){const Y=P.length,Z=h(Y);if(typeof Z=="string"){const ne=Z.lastIndexOf(String(Y));if(ne>=0)return{prefix:Z.slice(0,ne),suffix:Z.slice(ne+String(Y).length)}}return{label:Z}}if(typeof h=="string"&&h.includes("{n}")){const[Y,Z]=h.split("{n}");return{prefix:Y,suffix:Z}}return{prefix:B("common.totalCountPrefix","\uCD1D "),suffix:B("common.totalCountSuffix","\uAC1C")}},[h,P.length,B]),z=o.useMemo(()=>r.map(Y=>({label:Y.label,onClick:Y.sortable!==!1?()=>L(Y.key):void 0,className:Y.className,sortDir:Y.sortable!==!1&&E===Y.key?$?"asc":"desc":null})),[r,E,$,L]),J=o.useMemo(()=>y.map(Y=>({value:String(Y),label:B("common.pageSizeLabel",{n:Y})})),[y,B]);return n.jsxs(Ln,{className:`popup-list ${g}`,title:t,onClose:b,children:[w,"label"in R&&n.jsx("p",{className:"toolbar__count body-1",children:R.label}),n.jsx(fo,{count:"label"in R?void 0:{value:P.length,prefix:R.prefix,suffix:R.suffix},search:ee?{value:k,onChange:S,placeholder:x}:void 0,pageSize:{options:J,value:j,onChange:T},pagination:{page:D,total:O,onChange:K}}),n.jsx(Ao,{size:"medium",gridTemplateColumns:s,mobileGridTemplateColumns:i,resizable:!0,fields:z,items:H,onRowClick:f,renderRow:Y=>{const Z=p!=null?Y.id!=null&&p.has(Y.id):m!=null&&Y.id===m;return r.map(ne=>({content:ne.render?ne.render(Y):Y[ne.key]??"",className:ke(ne.className,Z&&"popup-list__row--selected")}))},empty:ee&&k!==""&&a.length>0?N:A})]})}function Nc(e){const{title:t,message:a,topContent:r,details:s,children:i,confirmLabel:l,cancelLabel:u,hideCancel:c=!1,extraAction:d,confirmVariant:m="main",confirmDisabled:p=!1,onConfirm:f,closeOnConfirm:b=!0,onClose:y,inline:C,size:v="small",className:_,initialFocus:h="close"}=e,{t:w}=ye.useTranslation(),g=o.useRef(null);o.useEffect(()=>{if(C||h==="close")return;const S=g.current?.closest(".popup-panel"),E=Array.from(S?.querySelectorAll(".popup-footer--buttons button")??[]),F=h==="confirm"?E[E.length-1]:c?void 0:E[d?1:0];F&&!F.disabled&&F.focus()},[]);const B=o.useRef(!1),[x,A]=o.useState(!1),N=S=>{let E=!1;return{close:()=>{E=!0,S()},\uB2EB\uC558\uB098:()=>E}},k=async S=>{if(B.current)return;B.current=!0;const E=typeof document<"u"?document.activeElement:null;A(!0);let F=!1;try{F=await S()}catch($){typeof console<"u"&&console.error($)}finally{F||(B.current=!1,A(!1),requestAnimationFrame(()=>{const $=document.activeElement;(!$||$===document.body)&&E?.isConnected&&E.focus()}))}};return n.jsxs(Ln,{title:t,onClose:y,closeDisabled:x,inline:C,size:v,className:ke("confirm-popup",r!=null&&"confirm-popup--has-top",_),buttons:[...d?[{label:d.label,variant:d.variant??"default",disabled:d.disabled||x,onClick:async({closeWithAnimation:S})=>{await k(async()=>{const E=N(S);await d.onClick(E.close);const F=d.closeOnClick??!0;return F&&S(),F||E.\uB2EB\uC558\uB098()})}}]:[],...c?[]:[{label:u??w("common.cancel","\uCDE8\uC18C"),variant:"default",disabled:x,onClick:({closeWithAnimation:S})=>S()}],{label:l??w("common.confirm","\uD655\uC778"),variant:m,disabled:p||x,onClick:async({closeWithAnimation:S})=>{await k(async()=>{const E=N(S);return await f(E.close),b&&S(),b||E.\uB2EB\uC558\uB098()})}}],children:[r!=null&&n.jsx("div",{className:"confirm-popup__top",children:r}),s&&s.length>0&&n.jsx(Cr,{children:s.map((S,E)=>n.jsx($n,{label:S.label,children:n.jsx("span",{className:"panel-row__text body-2",children:S.value})},E))}),n.jsx("p",{ref:g,className:"body-2 confirm-popup__message",children:a}),i]})}function d7(e,t,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?n.jsx(Nc,{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),t()},onClose:()=>i(!1)}):null;return{beforeClose:c,discardPopup:d,allowClose:u}}function p7({onApply:e,onCancel:t}){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 m=o.useCallback(async b=>{const y=r.trim();if(y){l(!0),c(null);try{await e(y),b()}catch(C){c(oi(C)),l(!1),requestAnimationFrame(()=>d.current?.focus())}}},[r,e]),p=o.useCallback((b,y)=>{b.key==="Enter"&&!b.nativeEvent.isComposing&&m(y)},[m]),f=b=>{s(b.target.value),c(null)};return n.jsx(Ln,{className:"coupon-input-popup",title:a("usage.couponButton","\uCFE0\uD3F0 \uC785\uB825"),size:"small",onClose:t,closeDisabled:i,buttons:[{label:a("common.cancel","\uCDE8\uC18C"),variant:"default",disabled:i,onClick:({closeWithAnimation:b})=>b()},{label:a("coupons.applyButton","\uC801\uC6A9"),variant:"main",disabled:!r.trim()||i,onClick:({closeWithAnimation:b})=>{m(b)}}],children:({closeWithAnimation:b})=>n.jsxs(n.Fragment,{children:[n.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:f,onKeyDown:y=>p(y,b),disabled:i,autoComplete:"off",spellCheck:!1}),u&&n.jsx("p",{className:"coupon-input-popup__error caption-1",role:"alert",children:u})]})})}const Dc=["var(--color-main)","var(--color-sub)"],m7=2e3;function h7(e,t){if(!t.startsWith("var("))return t;try{const a=t.slice(4,-1).trim();return getComputedStyle(e).getPropertyValue(a).trim()||null}catch{return null}}function es({active:e=!1,count:t=40,duration:a=2e3,strength:r=1,onComplete:s,trigger:i=0}){const l=o.useMemo(()=>{const C=Math.floor(t/2),v=t-C,_=(h,w)=>Array.from({length:h}).map((g,B)=>{const x=6+Math.random()*12,A=Math.round(Math.min(18,x*Math.min(1.5,1+r*.4))),N=Dc[Math.floor(Math.random()*Dc.length)],k=Math.random()*300,S=(360+Math.random()*260)*r*1.2,E=(w==="left"?-95+Math.random()*40:-85-Math.random()*40)*Math.PI/180,F=Math.cos(E)*S,$=Math.sin(E)*S*1.35,U=Math.random()*720-360,j=(1200+Math.random()*3e3)*Math.min(1.6,1+r*.3),T=Math.random()>.7?"50%":"3px";return{id:`${w}-${B}`,side:w,size:A,color:N,delay:k,vx:F,vy:$,angularVel:U,life:j,borderRadius:T}});return[..._(C,"left"),..._(v,"right")]},[t,r]),u=o.useRef(null),c=o.useRef({}),d=o.useRef(null),m=o.useRef(s);o.useEffect(()=>{m.current=s},[s]);const p=o.useRef(null),f=o.useRef(null),b=()=>{if(typeof document>"u")return null;let C=document.querySelector("[data-ihab-effect-root]");return C||(C=document.createElement("div"),C.className="app-effect",C.dataset.ihabEffectRoot="",C.style.position="fixed",C.style.inset="0",C.style.pointerEvents="none",C.style.zIndex="99998",document.body.appendChild(C)),C};if(typeof document<"u"&&f.current==null&&(f.current=b()),o.useEffect(()=>{if(!e)return;if(typeof window<"u"&&window.matchMedia?.("(prefers-reduced-motion: reduce)").matches){const q=setTimeout(()=>m.current?.(),0);return()=>clearTimeout(q)}const C=1200,v=performance.now(),_=f.current&&f.current!==document.body?f.current.getBoundingClientRect():null,h=Math.max(60,(window.innerHeight||800)*.05),w=q=>Math.max(40,(q||window.innerWidth)*.02),g=_?.width||window.innerWidth||375,B=_?.height||window.innerHeight||812,x=q=>{const P=[...q].sort((O,D)=>O-D);return P[Math.floor(P.length/2)]||1},A=x(l.map(q=>Math.abs(q.vy))),N=x(l.map(q=>Math.abs(q.vx))),k=Math.sqrt(2*C*(B*.72+h))/A,S=A*k/C,E=g*.5/(N*S),F=(q,P,O)=>Math.min(O,Math.max(P,q)),$=F(k,.8,2.4),U=F(E,.7,2.2),j=a>0?a/m7:1,T=l.map(q=>({...q,life:q.life*j,vx:q.vx*U,vy:q.vy*$,startTime:v+q.delay,ended:!1})),I=_?{x:_.left-w(_.width),y:_.top+_.height+h}:{x:-w(window.innerWidth),y:window.innerHeight+h},K=_?{x:_.left+_.width+w(_.width),y:_.top+_.height+h}:{x:window.innerWidth+w(window.innerWidth),y:window.innerHeight+h},ee=q=>{let P=!1;for(const O of T){const D=c.current[O.id];if(!D||!D)continue;if(q<O.startTime){D.style.display="none",P=!0;continue}if(!O._inited){const ue=O.side==="left"?I.x:K.x,Ee=O.side==="left"?I.y:K.y;D.style.left=`${ue}px`,D.style.top=`${Ee}px`,D.style.transform="translate3d(0px, 0px, 0)",D.style.display="block",D.style.zIndex="100000",typeof O.color=="string"&&O.color.startsWith("var(")&&(D.style.background=h7(D,O.color)??"#FF0060"),O._inited=!0}const H=(q-O.startTime)/1e3;if(H<0)continue;const L=O.life/1e3;if(H>=L){D.style.opacity="0",D.style.display="none",O.ended=!0;continue}P=!0;const R=O.side==="left"?I.x:K.x,z=O.side==="left"?I.y:K.y,J=R+O.vx*H,Y=z+O.vy*H+.5*C*H*H,Z=(O.angularVel||0)*H,ne=J-R,le=Y-z;D.style.transform=`translate3d(${ne}px, ${le}px, 0) rotate(${Z}deg)`,D.style.opacity=`${Math.max(0,1-H/L)}`}P?d.current=requestAnimationFrame(ee):m.current?.()};d.current=requestAnimationFrame(ee);const V=setTimeout(()=>{try{if((f.current?f.current.querySelectorAll(".confetti"):document.querySelectorAll(".confetti")).length===0&&!document.querySelector(".party-container")){const q=document.createElement("div");q.className="party-container",q.style.position="fixed",q.style.inset="0",q.style.pointerEvents="none",q.style.overflow="visible",q.style.zIndex="2147483647";for(const P of l){const O=document.createElement("span");O.className=`confetti confetti--${P.side}`,O.setAttribute("aria-hidden","true"),O.style.display="none",O.style.position="fixed",O.style.left="0px",O.style.top="0px",O.style.width=`${P.size}px`,O.style.height=`${Math.max(4,P.size*.6)}px`,O.style.background=P.color,O.style.borderRadius=P.borderRadius,O.style.transform="translate3d(0,0,0)",O.style.opacity="0",q.appendChild(O),c.current[P.id]=O}(document.body||f.current).appendChild(q),p.current=q}}catch{}},300);return()=>{if(d.current&&cancelAnimationFrame(d.current),clearTimeout(V),p.current){try{p.current.remove()}catch{}p.current=null}}},[e,a,i,l]),!e)return null;const y=n.jsx("div",{className:"party-container",ref:u,children:l.map(C=>n.jsx("span",{"aria-hidden":!0,ref:v=>{c.current[C.id]=v},className:`confetti confetti--${C.side}`,style:{width:`${C.size}px`,height:`${Math.max(4,C.size*.6)}px`,background:C.color,borderRadius:C.borderRadius}},`${C.id}-${i}`))});return typeof document<"u"?en.createPortal(y,f.current||document.body):y}const ts=e=>typeof e=="number"&&Number.isFinite(e)&&e>0?e:void 0;function C7({trigger:e=0,active:t=!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:ts(u.count),strength:ts(u.strength),duration:ts(u.duration)}))};return window.addEventListener("party:trigger",i),()=>window.removeEventListener("party:trigger",i)},[]);const s=o.useCallback(()=>r(null),[]);return n.jsxs(n.Fragment,{children:[n.jsx(es,{active:t,trigger:e}),a&&n.jsx(es,{active:!0,trigger:a.n,count:a.count,strength:a.strength,duration:a.duration,onComplete:s})]})}function f7({title:e,sub:t,rightAction:a,titleAction:r,badge:s,badgeVariant:i="default",documentTitle:l,onBack:u,backLabel:c,wrap:d=!1}){const{t:m}=ye.useTranslation();nb(typeof e=="string"?e:l??null);const p=c??m("common.back","\uB4A4\uB85C");return n.jsxs("div",{className:d?"page-title page-title--wrap":"page-title",children:[n.jsxs("div",{className:"page-title__main",children:[n.jsxs("div",{className:"page-title__title-row",children:[u&&n.jsx(me,{htmlType:"button",className:"page-title__back",size:48,type:"dot",icon:"chevron-left",iconSize:"large",useBorder:!1,iconColor:"var(--color-text-primary)",ariaLabel:p,showTooltipInfo:p,onClick:u}),n.jsx("h1",{className:"page-title__title h1",children:e}),s&&n.jsx("div",{className:"page-title__badge",children:n.jsx(_t,{label:s,size:"small",variant:i,fill:"outline"})}),r?n.jsx("div",{className:"page-title__title-action",children:r}):null]}),t&&n.jsx("p",{className:"page-title__sub body-2",children:t})]}),a?n.jsx("div",{className:"page-title__action",children:a}):null]})}function g7(e){return e??""}const Ec=o.createContext({words:[],loading:!1});function b7(){return o.useContext(Ec)}function y7({words:e,loading:t,error:a,statusMessage:r,localVersion:s,remoteVersion:i,progress:l,clearAndRefetch:u,checkRemoteVersion:c,children:d}){return n.jsx(Ec.Provider,{value:{words:e,loading:t,error:a,statusMessage:r,localVersion:s,remoteVersion:i,progress:l,clearAndRefetch:u,checkRemoteVersion:c},children:d})}function v7({items:e,actions:t,columns:a,flat:r=!1,className:s,style:i}){const l=a??e.length;return n.jsx("section",{className:ke("summary-strip",r&&"summary-strip--flat",s),style:{"--summary-strip-cols":String(l),...i},children:n.jsxs("div",{className:"summary-strip__row",children:[n.jsx("div",{className:"summary-strip__items",children:e.map((u,c)=>n.jsxs("div",{className:"summary-strip__item",children:[n.jsx("p",{className:"summary-strip__label caption-1",children:u.label}),n.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))}),t&&n.jsx("div",{className:"summary-strip__actions",children:t})]})})}const x7=(e,t)=>`${e} / ${t}`;function _7({blocks:e,sectionTitles:t,logo:a,footer:r,pageLabel:s=x7,pageWidth:i,pageHeight:l,margin:u,className:c,style:d}){const{t:m}=ye.useTranslation(),p=o.useRef(null),f=o.useRef(null),b=o.useRef(null),y=o.useRef(null),[C,v]=o.useState(null),[_,h]=o.useState(!1);o.useEffect(()=>{const j=p.current;if(!j)return;const T=()=>h(j.scrollWidth>j.clientWidth+1);if(T(),typeof ResizeObserver>"u")return;const I=new ResizeObserver(T);return I.observe(j),()=>I.disconnect()},[C]);const w=e.map(j=>`${j.id}\0${j.section??""}\0${j.group??""}`).join(""),g=C&&C.shape===w?C.pages:null,[B,x]=o.useState(0);o.useEffect(()=>{const j=y.current;if(!j||typeof ResizeObserver>"u")return;const T=new ResizeObserver(()=>x(j.offsetHeight));return T.observe(j),()=>T.disconnect()},[]);const[A,N]=o.useState(0);o.useEffect(()=>{const j=f.current;if(!j||typeof ResizeObserver>"u")return;let T=null;const I=typeof requestAnimationFrame=="function"?V=>requestAnimationFrame(V):V=>setTimeout(V,16),K=typeof cancelAnimationFrame=="function"?cancelAnimationFrame:V=>clearTimeout(V),ee=new ResizeObserver(()=>{T==null&&(T=I(()=>{T=null,N(V=>V+1)}))});return Array.from(j.children).forEach(V=>ee.observe(V)),()=>{ee.disconnect(),T!=null&&K(T)}},[w]),o.useLayoutEffect(()=>{const j=f.current,T=y.current;if(!j||!T)return;const I=L=>L.getBoundingClientRect().height||L.offsetHeight,K=new Map;b.current?.querySelectorAll("[data-chrome-section]").forEach(L=>{K.set(L.dataset.chromeSection??"",I(L))});const ee=L=>I(T)-(K.get(L??"")??0),V=Array.from(j.children).map(L=>I(L)),q=[];e.forEach((L,R)=>{const z=q[q.length-1],J=z?e[z[0]]:void 0;J&&L.group!=null&&J.group===L.group&&J.section===L.section?z.push(R):q.push([R])});const P=[];let O=[],D=0;const H=()=>{O.length&&P.push(O),O=[],D=0};q.forEach(L=>{const R=L.reduce((J,Y)=>J+V[Y],0),z=ee(e[L[0]].section);O.length&&e[O[0]].section!==e[L[0]].section&&H(),R>z?L.forEach(J=>{O.length&&D+V[J]>z+.01&&H(),O.push(J),D+=V[J]}):(O.length&&D+R>z+.01&&H(),L.forEach(J=>O.push(J)),D+=R)}),H(),v(L=>L&&L.shape===w&&JSON.stringify(L.pages)===JSON.stringify(P)?L:{shape:w,pages:P})},[w,B,i,l,u,A]);const k=po,S=k,E=r??n.jsxs(n.Fragment,{children:[n.jsx("img",{src:S,alt:"IHAB",className:"report-doc__logo"}),"\xA9 IHAB, Inc. All rights reserved."]}),F=(j,T,I)=>({header:n.jsxs("div",{className:"report-doc__header",children:[n.jsx("h2",{className:"report-doc__title h3b",children:I!=null&&t?.[I]||null}),a]}),footer:n.jsxs("div",{className:"report-doc__footer caption-1",children:[n.jsx("span",{className:"report-doc__footer-left",children:E}),n.jsx("span",{className:"report-doc__page-no",children:s(j,T)})]})}),$=Array.from(new Set(e.map(j=>j.section??""))),U={...i?{"--report-page-w":i}:null,...l?{"--report-page-h":l}:null,...u?{"--report-margin":u}:null,...d};return n.jsxs("div",{ref:p,className:ke("report-doc",c),style:U,tabIndex:_?0:void 0,role:_?"group":void 0,"aria-label":_?m("report.previewRegion","\uBCF4\uACE0\uC11C \uBBF8\uB9AC\uBCF4\uAE30"):void 0,children:[n.jsxs("div",{className:"report-doc__measure","aria-hidden":!0,children:[n.jsx("div",{ref:y,className:"report-doc__ruler"}),n.jsx("div",{ref:b,children:$.map(j=>{const T=F(1,1,j||void 0);return n.jsxs("div",{"data-chrome-section":j,children:[T.header,T.footer]},j)})}),n.jsx("div",{ref:f,className:"report-doc__measure-blocks",children:e.map(j=>n.jsx("div",{children:j.content},j.id))})]}),g&&n.jsx("div",{className:"report-doc__pages",children:g.map((j,T)=>{const{header:I,footer:K}=F(T+1,g.length,e[j[0]].section);return n.jsxs("section",{className:"report-doc__page",children:[I,j.map(ee=>n.jsx("div",{children:e[ee].content},e[ee].id)),K]},T)})})]})}function w7({title:e,fields:t,columns:a=4,className:r,style:s}){return n.jsxs("div",{className:ke("report-info",r),style:{"--report-info-cols":String(a),...s},children:[e&&n.jsx("p",{className:"report-info__title h5b",children:e}),n.jsx("div",{className:"report-info__grid",children:t.map((i,l)=>n.jsxs("div",{className:"report-info__field body-2",children:[n.jsx("span",{className:"report-info__label body-3",children:i.label}),n.jsx("span",{className:"report-info__value",children:i.value})]},l))})]})}const Yn=new Map;let vr=null;const B7=12;function A7(e){for(let t=e.parentElement;t&&t!==document.body;t=t.parentElement){const a=window.getComputedStyle(t);if(a.transform&&a.transform!=="none"||a.filter&&a.filter!=="none"||a.perspective&&a.perspective!=="none"||/paint|layout|strict|content/.test(a.contain||""))return t}return document}function xr(){const e=new Map;for(const t of Yn.keys()){if(!t.isConnected)continue;const a=A7(t),r=e.get(a)??[];r.push(t),e.set(a,r)}for(const t of e.values()){t.sort((r,s)=>r.compareDocumentPosition(s)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1);let a=0;for(const r of t){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+B7)}}}function k7(e){return typeof window>"u"?()=>{}:(Yn.set(e,(Yn.get(e)??0)+1),Yn.get(e)===1&&typeof ResizeObserver<"u"&&(vr??(vr=new ResizeObserver(()=>xr())),vr.observe(e)),xr(),()=>{const t=(Yn.get(e)??1)-1;if(t>0){Yn.set(e,t),xr();return}Yn.delete(e),vr?.unobserve(e),e.style.removeProperty("--update-alert-stack-offset"),xr()})}function N7({title:e,message:t,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),m=o.useRef(!1);return o.useLayoutEffect(()=>{const p=d.current,f=p?.parentElement?.closest(".update-alert-stack")??p,b=f?k7(f):null;return()=>{b?.(),m.current&&p&&p.contains(document.activeElement)&&Ya(p)}},[]),n.jsxs("div",{ref:d,className:ke("update-alert",l),role:"alert",children:[i&&n.jsx("button",{type:"button",className:"update-alert__close",onClick:()=>{m.current=!0,i()},"aria-label":u("common.close","\uB2EB\uAE30"),children:"\xD7"}),n.jsxs("div",{className:"update-alert__top",children:[n.jsx("div",{className:"update-alert__icon",children:s??n.jsx(ms,{size:20,strokeWidth:2})}),n.jsxs("div",{className:"update-alert__body",children:[n.jsx("div",{className:"update-alert__title h4",children:e}),n.jsx("div",{className:"update-alert__message body-3",children:t})]})]}),r&&n.jsx(me,{htmlType:"button",size:32,variant:"main",shape:"pill",className:"update-alert__action",onClick:r,children:c})]})}function D7({title:e,titleLevel:t=3,description:a,topActions:r,children:s,footerLeft:i,footerRight:l,ariaLabel:u,onClick:c,draggable:d,onDragStart:m,onDragEnd:p,className:f}){const b=t?`h${t}`:"div",y=i!=null||l!=null,C=s!=null&&s!==!1,v=o.useCallback(_=>{c&&_.target===_.currentTarget&&(_.key==="Enter"||_.key===" ")&&(_.preventDefault(),c())},[c]);return n.jsxs("div",{className:ke("training-card",c?"training-card--clickable":"",f),onClick:c,onKeyDown:c?v:void 0,role:c?"button":void 0,"aria-label":c?u??(typeof e=="string"?e:void 0):void 0,tabIndex:c?0:void 0,draggable:d,onDragStart:m,onDragEnd:p,children:[n.jsxs("div",{className:"training-card__header",children:[n.jsxs("div",{className:"training-card__title-row",children:[typeof e=="string"?n.jsx(b,{className:"training-card__title h4",children:e}):e,r!=null&&n.jsx("div",{className:"training-card__top-actions",onClick:_=>_.stopPropagation(),children:r})]}),a!=null?typeof a=="string"?n.jsx("p",{className:"training-card__description body-3",children:a}):a:n.jsx("p",{className:"training-card__description body-3","aria-hidden":"true",children:" "})]}),C&&n.jsx("div",{className:"training-card__body",children:s}),y&&n.jsxs("div",{className:"training-card__footer",children:[i!=null&&n.jsx("div",{className:"training-card__footer-left",children:i}),l!=null&&n.jsx("div",{className:"training-card__meta",children:l})]})]})}function E7({title:e,titleLevel:t=3,count:a,collapsed:r=!1,onToggle:s,sort:i,actions:l,empty:u=!1,emptyContent:c,dragOver:d=!1,onDragOver:m,onDragLeave:p,onDrop:f,children:b,className:y}){const{t:C}=ye.useTranslation(),v=o.useId(),_=t?`h${t}`:"span",h=s!=null,w=ke("training-card-group",d&&"training-card-group--dragover",r&&"training-card-group--collapsed",h&&"training-card-group--collapsible",y);return n.jsxs("div",{className:w,onDragOver:m,onDragLeave:p,onDrop:f,role:typeof e=="string"&&e?"group":void 0,"aria-labelledby":typeof e=="string"&&e?v:void 0,children:[n.jsxs("header",{className:"training-card-group__header",children:[h&&n.jsx(me,{htmlType:"button",size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:r?"chevron-right":"chevron-down",ariaLabel:typeof e=="string"&&e?r?C("common.expandFor",{name:e}):C("common.collapseFor",{name:e}):r?C("common.expand","\uD3BC\uCE58\uAE30"):C("common.collapse","\uC811\uAE30"),className:"training-card-group__chevron","aria-expanded":!r,onClick:s}),typeof e=="string"?n.jsx(_,{id:v,className:"training-card-group__title h5b",children:e}):e,a!==void 0&&n.jsx("span",{className:"training-card-group__count body-3b",children:a}),(i||l!=null)&&n.jsxs("span",{className:"training-card-group__actions",onClick:g=>g.stopPropagation(),children:[i&&n.jsx(cn,{size:40,options:i.options,value:i.value,placeholder:i.placeholder,onChange:i.onChange,ariaLabel:typeof e=="string"&&e?C("common.sortFor",{name:e}):void 0}),l]})]}),!r&&(u?n.jsx("div",{className:"training-card-group__empty body-3",children:c}):n.jsx("div",{className:"training-card-group__grid",children:b}))]})}const S7="speechear:saved_word_tables";function j7(e){if(typeof e!="object"||e===null)return!1;const t=e;return typeof t.id=="string"&&typeof t.name=="string"&&Array.isArray(t.items)}function T7(){try{const e=localStorage.getItem(S7);if(!e)return[];const t=JSON.parse(e);return Array.isArray(t)?t.filter(j7):[]}catch{return[]}}function Sc(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 ns(e){return e.map(t=>t.homonum!=null?`${t.word}#${t.homonum}`:t.word).join("|")}function M7(e){const t=new Set;return e.map(a=>{let r=a.id;for(let s=2;t.has(r);s++)r=`${a.id}~${s}`;return t.add(r),r===a.id?a:{...a,id:r}})}function L7({title:e,titleIcon:t,disc:a,filterTitle:r,filterCollapsible:s,filterDefaultCollapsed:i,filterCollapsed:l,onFilterCollapsedChange:u,filterHeaderSummary:c,brand:d,code:m,items:p,onSaveComplete:f,onLoad:b,onRemoveItem:y,onReset:C,resetLabel:v,saveButtonLabel:_,secondarySaveButtonLabel:h,onReorder:w,showCellCount:g,onAddItem:B,className:x,renderSavePopup:A,renderWordSearch:N,hideControls:k,saveOnly:S,tableName:E,nameValue:F,onNameChange:$,descriptionValue:U,onDescriptionChange:j,namePlaceholder:T,descriptionPlaceholder:I,existingNames:K,editingName:ee,onCancel:V,initialItemsPerPage:q,renderCellAction:P,actionsLeftExtra:O}){const{t:D}=ye.useTranslation(),H=v??D("wordPrint.clearAllSelection","\uBAA8\uB450 \uC120\uD0DD \uD574\uC81C"),L=p===void 0,R=!!$,[z,J]=o.useState([]),Y=(F??"").trim(),Z=Y||(T??"").trim(),ne=(U??"").trim()||(I??"").trim(),le=(K??[]).map(re=>re.trim().toLowerCase()),ue=[ee?.trim().toLowerCase(),...z].filter(re=>!!re),Ee=[...le];for(const re of ue){const xe=Ee.indexOf(re);xe!==-1&&Ee.splice(xe,1)}const W=Y!==""&&Ee.includes(Y.toLowerCase()),[te,fe]=o.useState(Array(4).fill(null)),[Se,Ce]=o.useState(4),[ie,ce]=o.useState(null),de=te.slice(0,Se),be=!!d?.show,[_e,Be]=o.useState(!0),[Ze,Oe]=o.useState(!0),Ie=d&&{...d,top:_e,bottom:Ze},[He,ut]=o.useState("landscape"),[nt,rt]=o.useState(["\uC774\uBBF8\uC9C0","\uB2E8\uC5B4","\uD45C\uC900 \uBC1C\uC74C"]),[pt,Ne]=o.useState("\uD45C\uC2DC"),[Fe,Ae]=o.useState(!0),[at,X]=o.useState(!0),oe=o.useRef(null),he=o.useRef([]),[je,ot]=o.useState(q==="all"?Number.POSITIVE_INFINITY:q??8),[Ye,bt]=o.useState("right"),[Ct,st]=o.useState(!1),[et,Xe]=o.useState(!1),{toastMessage:tt,toastType:$e,showWarning:Ge,clearToast:Pe}=cl("warning"),mt=o.useCallback(()=>ce(null),[ce]);B&&!L&&!g&&tn("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[Tt,kt]=o.useState(()=>Math.max(p?.length??1,1)),ht=L?Se:g?Math.max(Tt,p?.length??1,1):Math.max(p?.length??0,1),{width:vt,height:ze}=la[He],it=!L&&!g,wt=p?.length??0,Rt=Math.min(je,Math.max(wt,1)),Qe=it?Rt:ht,Nt=it?fu(p??[],Qe):null,Dt=!!Nt&&Nt.length>1,Mt=L?de.some(re=>re!==null&&re.length>1):(p??[]).some(re=>(re.words??[]).length>1),Pt=E?.trim()||`${pi(_a())} ${Mt?D("wordTable.printFileNamePair","\uB300\uB9BD\uC30D\uD45C"):D("wordTable.printFileNameSingle","\uB2E8\uC5B4\uD45C")}`,gn=o.useCallback(()=>Dt?he.current.filter(re=>re!==null):oe.current?[oe.current]:[],[Dt]),{print:dn,openNewWindow:pn,downloadHtml:mn}=$o({getElements:gn,paperW:vt,paperH:ze,fileName:Pt,onPopupBlocked:()=>{Ge(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."))}}),In=re=>{Ce(re),fe(xe=>xe.length>=re?xe:[...xe,...Array(re-xe.length).fill(null)]),ce(null)},bn=re=>{fe(xe=>{const Re=[...xe];return Re[re]=null,Re}),ie===re&&ce(null)},Wt=re=>{if(ie===null)return;const xe=ie;fe(We=>{const dt=[...We];return dt[xe]=re.length>0?re:null,dt});const Re=de.findIndex((We,dt)=>dt>xe&&We===null);ce(Re!==-1?Re:null)},yn=L?de.some(re=>re?.some(xe=>!!xe.colloquialPronunciation)):(p??[]).some(re=>(re.words??[]).some(xe=>!!xe.colloquialLabel)),qt=o.useMemo(()=>Jn()?L?te.slice(0,Se).flatMap(re=>(re??[]).map(xe=>[xe.word,xe.homonum])):(p??[]).flatMap(re=>(re.words??[]).map(xe=>[xe.label,xe.homonum])):[],[L,te,Se,p]),[It,En]=o.useState(!1);o.useEffect(()=>{if(qt.length===0)return;let re=!1;return Promise.all(qt.map(([xe,Re])=>ti(xe,Re))).then(xe=>{re||En(xe.some(Boolean))},()=>{}),()=>{re=!0}},[qt]);const rn=qt.length>0&&It,vn=o.useMemo(()=>[...L||g?[{label:D("wordTable.filter.columns","\uCE78 \uC218"),items:o5.map(re=>({value:`${re}\uCE78`,displayLabel:D("wordTable.filter.column",{count:re})})),display:"segmented"}]:[],...it&&(p?.length??0)>0?[Mu(D,{hasPairs:Mt,itemCount:wt})]:[],...Dt?[s5(D)]:[]],[D,L,g,it,p?.length,Mt,wt,Dt]),Fn={...L||g?{[D("wordTable.filter.columns","\uCE78 \uC218")]:`${ht}\uCE78`}:{},...it&&(p?.length??0)>0?{[D(Mt?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord")]:`${Rt}\uAC1C`}:{},...Dt?{[D("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")]:$u[Ye]}:{}},hn=(re,xe)=>{xe===D("wordTable.filter.columns","\uCE78 \uC218")?L?In(parseInt(re)):kt(parseInt(re)):xe===D(Mt?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord")?ot(Lu(parseInt(re),wt)):xe===D("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")&&bt(Ru(re))},Ut=L?M7(de.filter(re=>re!==null&&re.length>0).map(re=>({id:ns(re),words:re.map(Sc)}))):p??[],Ot=()=>{L&&fe(re=>re.length>Se?re.slice(0,Se):re)},se=(re=!1)=>{if(Xe(re),R&&f){const xe=Z.trim().toLowerCase();xe&&J(Re=>Re.includes(xe)?Re:[...Re,xe]),f(Z,Ut,ne||void 0,re),Ot();return}if(S&&f){f("",Ut,void 0,re),Ot();return}if(f){st(!0);return}mn()},[ve,Te]=o.useState(!1),[Ue,Me]=o.useState(""),Ve=Ue.trim(),qe=Ve!==""&&le.includes(Ve.toLowerCase()),ct=()=>{Me(Z?D("wordTable.save.copyName",{name:Z,defaultValue:"{{name}} (\uBCF5\uC0AC)"}):""),Te(!0)},Et=()=>{!Ve||qe||!f||(f(Ve,Ut,ne||void 0,!0),Ot(),Te(!1))},Jt=Ut.length===0,Qt=Jt||R&&(Z===""||W),ae=()=>{if(Jt){Ge(D("wordTable.emptyItems","\uB2E8\uC5B4\uB97C 1\uAC1C \uC774\uC0C1 \uCD94\uAC00\uD574\uC8FC\uC138\uC694."));return}if(R&&Z===""){Ge(D("wordTable.save.nameRequired","\uD45C \uC774\uB984\uC744 \uC785\uB825\uD574 \uC8FC\uC138\uC694."));return}R&&W&&Ge(D("wordTable.save.duplicateName","\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4."))},we=n.jsx(ua,{items:Ut,orientation:He,contentTypes:nt,cutLine:pt,showOutline:Fe,showDivLine:at,count:ht});return n.jsxs(n.Fragment,{children:[n.jsxs(ia,{type:"page",icon:t,title:e,disc:a,className:ke("word-table-block",x),children:[ve&&n.jsx(Ln,{size:"small",title:h??D("wordTable.saveAsNewButton","\uB2E4\uB978 \uC774\uB984\uC73C\uB85C \uC800\uC7A5"),onClose:()=>Te(!1),footer:({closeWithAnimation:re})=>n.jsxs(n.Fragment,{children:[n.jsx(me,{htmlType:"button",size:48,type:"bar",label:D("common.cancel","\uCDE8\uC18C"),onClick:re}),n.jsx(me,{htmlType:"button",size:48,type:"bar",variant:"main",label:D("common.save","\uC800\uC7A5"),disabled:!Ve||qe,onClick:Et})]}),children:n.jsx(Gn,{label:D("wordTable.save.nameLabel","\uC774\uB984"),value:Ue,onChange:Me,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:Et,error:qe?D("wordTable.save.duplicateName","\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4."):void 0})}),Ct&&f&&A?.({defaultName:typeof e=="string"?e:D("wordTable.defaultName","\uB2E8\uC5B4 \uD45C"),preview:we,previewW:vt,previewH:ze,items:Ut,existingNames:T7().map(re=>re.name),saveAsNew:et,onSave:(re,xe)=>{f(re,Ut,xe,et),Ot(),st(!1)},onCancel:()=>st(!1)}),(L||B)&&ie!==null&&N?.({cellIndex:ie,onConfirm:L?Wt:re=>{if(B){const xe=re[0];if(xe){const Re=new Set((p??[]).map(dt=>dt.id));let We=ns([xe]);for(let dt=2;Re.has(We);dt++)We=`${ns([xe])}~${dt}`;B({id:We,words:[Sc(xe)]})}}ce(null)},onClose:mt}),!k&&n.jsx(To,{title:r,collapsible:s,defaultCollapsed:i,collapsed:l,onCollapsedChange:u,headerSummary:c,hasImage:rn,hasColloquial:yn,contentTypes:nt,orientation:He,showOutline:Fe,cutLine:pt,showDivLine:at,setters:{setContentTypes:rt,setOrientation:ut,setShowOutline:Ae,setCutLine:Ne,setShowDivLine:X,setShowTopInfo:Be,setShowBottomInfo:Oe},showCutLine:(it?Qe:ht)>1,showDivLine2:Mt,middleSections:vn,extraSelected:Fn,onExtraSelect:hn,showPaperBands:be,showTopInfo:_e,showBottomInfo:Ze}),Dt&&Nt?n.jsx("div",{className:"word-table-block__pages",children:Nt.map((re,xe)=>n.jsx(ua,{orientation:He,contentTypes:nt,cutLine:pt,showOutline:Fe,showDivLine:at,count:Qe,items:re,onRemoveItem:y,onReorder:w&&((Re,We)=>w(Re+xe*Qe,We+xe*Qe)),renderCellAction:P&&((Re,We)=>P(Re+xe*Qe,We)),brand:Ie,code:m,contentRef:Re=>{he.current[xe]=Re},pageNumber:{current:xe+1,total:Nt.length},pageNumberPosition:Ye},xe))}):n.jsx(ua,{orientation:He,contentTypes:nt,cutLine:pt,showOutline:Fe,showDivLine:at,count:ht,items:L?void 0:p??[],editCells:L?de:void 0,activeCell:ie,onActivateCell:L||B?ce:void 0,onRemoveCell:L?bn:void 0,onRemoveItem:L?void 0:y,onReorder:L?void 0:w,renderCellAction:L?void 0:P,brand:Ie,code:m,showFillerAdd:!!B,contentRef:oe}),R&&!k&&n.jsxs(Cr,{size:"medium",labelWidth:64,useBorder:!1,useRowBorder:!1,className:"word-table-block__meta",children:[n.jsx($n,{variant:"custom",label:D("wordTable.save.nameLabel","\uC774\uB984"),required:!0,align:"vertical",useFullWidth:!0,children:n.jsx(Gn,{required:!0,value:F??"",onChange:$,placeholder:T?T+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:W?D("wordTable.save.duplicateName","\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4."):void 0,onKeyDown:re=>{(re.key==="Tab"&&!re.shiftKey||re.key===" ")&&!(F??"").trim()&&(T??"").trim()&&(re.preventDefault(),$?.(T??""))}})}),n.jsx($n,{variant:"custom",label:D("wordTable.save.descriptionLabel","\uC124\uBA85"),align:"vertical",useFullWidth:!0,children:n.jsx(Gn,{value:U??"",onChange:j,placeholder:I?I+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:re=>{(re.key==="Tab"&&!re.shiftKey||re.key===" ")&&!(U??"").trim()&&(I??"").trim()&&(re.preventDefault(),j?.(I??""))}})})]})]}),!k&&n.jsxs("div",{className:"word-table-block__actions",children:[n.jsxs("div",{className:"word-table-block__actions-left",children:[!S&&C&&n.jsx(me,{htmlType:"button",size:40,type:"bar",label:H,onClick:C}),!S&&O,!S&&b&&n.jsx(me,{htmlType:"button",size:40,type:"bar",label:D("wordTable.load","\uBD88\uB7EC\uC624\uAE30"),onClick:b}),!S&&n.jsx(me,{htmlType:"button",size:40,type:"bar",label:D("wordTable.openNewWindow","\uC0C8 \uCC3D\uC73C\uB85C \uBCF4\uAE30"),onClick:pn})]}),n.jsxs("div",{className:"word-table-block__actions-right",children:[V&&n.jsx(me,{htmlType:"button",size:"56",type:"bar",label:D("common.cancel","\uCDE8\uC18C"),onClick:V}),!S&&n.jsx(me,{htmlType:"button",size:"56",type:"bar",label:D("wordTable.print","\uC778\uC1C4\uD558\uAE30"),onClick:dn}),h&&n.jsx(me,{htmlType:"button",size:"56",type:"bar",label:h,onClick:()=>R?ct():se(!0),disabled:Jt,onDisabledClick:()=>{Ge(D("wordTable.emptyItems","\uB2E8\uC5B4\uB97C 1\uAC1C \uC774\uC0C1 \uCD94\uAC00\uD574\uC8FC\uC138\uC694."))}}),n.jsx(me,{htmlType:"button",size:"56",type:"bar",variant:"main",label:_??D("wordTable.saveButton","\uC800\uC7A5\uD558\uAE30"),onClick:()=>se(!1),disabled:Qt,onDisabledClick:ae})]})]}),n.jsx(oa,{message:tt,type:$e,onClose:Pe})]})}function jc({items:e,className:t}){const a=e.length,r=a<=3?1:2,s=Math.ceil(a/r)||1,i=r*s;return n.jsx("div",{className:ke("word-table-thumb",t),style:{gridTemplateColumns:`repeat(${r}, 1fr)`},children:Array.from({length:i},(l,u)=>{const c=e[u];return c?n.jsx("div",{className:"word-table-thumb__cell",children:(c.words?.length?c.words:[{label:c.id}]).map((d,m)=>n.jsxs(o.Fragment,{children:[m>0&&n.jsx("span",{className:"word-table-thumb__divider"}),n.jsx("span",{className:"word-table-thumb__word body-3",children:d.label})]},m))},u):n.jsx("div",{className:"word-table-thumb__cell word-table-thumb__cell--empty"},u)})})}function $7({items:e,name:t,description:a,createdAt:r,code:s,published:i,publishedLabel:l,shared:u,sharedLabel:c,isNew:d,publisherName:m,publishedAt:p,likeCount:f,downloadCount:b,onPublisherClick:y,selected:C,onClick:v,onMore:_,titleNode:h,className:w}){const{t:g}=ye.useTranslation(),B=h!=null,x=m!=null||p!=null||f!=null||b!=null,A=N=>{N.target===N.currentTarget&&!B&&(N.key==="Enter"||N.key===" ")&&(N.preventDefault(),v?.())};return n.jsxs("div",{className:ke("word-table-button",C?"word-table-button--selected":"",x?"":"word-table-button--no-footer",w),role:"button",tabIndex:0,"aria-label":s?`${t} (${s})`:t,onClick:B?void 0:v,onKeyDown:A,children:[d&&n.jsx("span",{className:"word-table-button__new-dot","aria-label":g("myWordTable.newBadge","\uC0C8\uB85C \uB9CC\uB4E0 \uD45C")}),n.jsx(jc,{items:e,className:"word-table-button__thumb"}),n.jsxs("div",{className:"word-table-button__info",children:[n.jsxs("div",{className:"word-table-button__info-text",children:[h??n.jsx("div",{className:"word-table-button__title h4",children:t}),a&&n.jsx("div",{className:"word-table-button__desc body-3",children:a})]}),_&&!B&&n.jsx(me,{htmlType:"button",className:"word-table-button__more",size:32,type:"dot",variant:"transparent-gray",useBorder:!1,icon:"ellipsis",ariaLabel:g("common.moreFor",{name:t}),onClick:N=>{N.stopPropagation(),_(N)}})]}),(s||r||i||u)&&n.jsxs("div",{className:"word-table-button__meta-row",children:[n.jsx("span",{className:"word-table-button__meta-left",children:n.jsx("span",{className:"word-table-button__meta caption-1",children:r?di(r,g):""})}),n.jsxs("span",{className:"word-table-button__meta-right",children:[(i||u)&&n.jsxs("span",{className:"word-table-button__badges",children:[i&&n.jsx(_t,{className:"word-table-button__badge",size:"small",variant:"main",fill:"soft",iconLeft:"book-marked",label:l??g("myWordTable.publishedBadge","\uBC1C\uD589\uB428")}),u&&n.jsx(_t,{className:"word-table-button__badge",size:"small",fill:"soft",iconLeft:"link",label:c??g("myWordTable.sharedBadge","\uACF5\uC720 \uC911")})]}),s&&n.jsx("span",{className:"word-table-button__code caption-1",children:s})]})]}),x&&n.jsxs("div",{className:"word-table-button__footer",children:[n.jsxs("span",{className:"word-table-button__store-by",children:[m&&(y?n.jsx("button",{className:"training-card__publisher body-4",type:"button","aria-label":g("wordTable.publisherFilter",{name:m,defaultValue:"{{name}} \uAC8C\uC2DC\uD55C \uAC83\uB9CC \uBCF4\uAE30"}),onClick:N=>{N.stopPropagation(),y()},children:m}):n.jsx("span",{className:"training-card__publisher training-card__publisher--static body-4",children:m})),p&&n.jsx("span",{className:"training-card__date body-4",children:di(p,g)})]}),n.jsxs("span",{className:"word-table-button__store-stats",children:[f!=null&&n.jsx(_t,{size:"small",fill:"soft",variant:"like",iconLeft:"heart",label:String(f),"aria-label":g("common.likeCount",{count:f,defaultValue:`\uC88B\uC544\uC694 ${f}`})}),b!=null&&n.jsx(_t,{size:"small",fill:"soft",variant:"main",iconLeft:"download",label:String(b),"aria-label":g("common.downloadCount",{count:b,defaultValue:`\uAC00\uC838\uAC04 \uC218 ${b}`})})]})]})]})}/**
|
|
1048
|
+
`).map((l,u,c)=>n.jsxs(o.Fragment,{children:[l,u<c.length-1&&n.jsx("br",{})]},u))})}),n.jsxs("div",{className:"site-footer__links",children:[n.jsxs("div",{className:"site-footer__column",children:[n.jsx("div",{className:"site-footer__column-title footer-title",children:i("footer.site.title","\uC0AC\uC774\uD2B8")}),n.jsxs("ul",{children:[n.jsx("li",{children:n.jsx("a",{className:"footer-link",href:"https://www.ihab.co.kr/",target:"_blank",rel:"noopener noreferrer",children:"IHAB"})}),n.jsx("li",{children:n.jsx("a",{className:"footer-link",href:"https://speechear.ihab.co.kr/",target:"_blank",rel:"noopener noreferrer",children:i("footer.site.malgwi","\uB9D0\uADC0")})}),n.jsx("li",{children:n.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")})}),n.jsx("li",{children:n.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")})}),n.jsx("li",{children:n.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")})})]})]}),n.jsxs("div",{className:"site-footer__column",children:[n.jsx("div",{className:"site-footer__column-title footer-title",children:i("footer.sns.title","SNS")}),n.jsxs("ul",{children:[n.jsx("li",{children:n.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")})}),n.jsx("li",{children:n.jsx("a",{className:"footer-link",href:"https://www.instagram.com/ihab.official.yt/",target:"_blank",rel:"noopener noreferrer",children:"Instagram"})}),n.jsx("li",{children:n.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"})})]})]}),n.jsxs("div",{className:"site-footer__column",children:[n.jsx("div",{className:"site-footer__column-title footer-title",children:i("footer.policy.title","\uC815\uCC45")}),n.jsxs("ul",{children:[n.jsx("li",{children:n.jsx("a",{className:"footer-link",href:"#",onClick:l=>{e&&(l.preventDefault(),e())},children:i("footer.policy.terms","\uC774\uC6A9\uC57D\uAD00")})}),n.jsx("li",{children:n.jsx("a",{className:"footer-link",href:"#",onClick:l=>{t&&(l.preventDefault(),t())},children:i("footer.policy.privacy","\uAC1C\uC778\uC815\uBCF4 \uCC98\uB9AC\uBC29\uCE68")})})]})]})]})]}),n.jsx("hr",{className:"site-footer__rule"}),n.jsxs("div",{className:"site-footer__bottom",children:[n.jsx("div",{className:"site-footer__brand",children:n.jsx("img",{src:po,alt:"IHAB",className:"site-footer__logo"})}),n.jsxs("div",{className:"site-footer__meta",children:[n.jsxs("div",{children:[n.jsx("span",{className:"footer-title",children:i("footer.ceo","\uB300\uD45C")}),n.jsx("span",{className:"footer-meta caption-1",children:i("footer.ceoName","\uD55C\uC9C0\uD61C")})]}),n.jsxs("div",{children:[n.jsx("span",{className:"footer-title",children:i("footer.address","\uC8FC\uC18C")}),n.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")})]}),n.jsxs("div",{children:[n.jsx("span",{className:"footer-title",children:i("footer.support","\uACE0\uAC1D\uC13C\uD130")}),n.jsxs("span",{className:"footer-meta caption-1",children:[r," \xA0 ",s]})]})]})]}),n.jsx("div",{className:"site-footer__copyright footer-copyright caption-1",children:"\xA9 IHAB, Inc. All rights reserved."})]})})}function H5({logo:e,logoAlt:t="",logoHref:a,links:r=[],actions:s,className:i,containerClassName:l,renderLink:u,menuLabel:c}){const{t:d}=ve.useTranslation(),m=c??{open:d("header.menuOpen","\uBA54\uB274 \uC5F4\uAE30"),close:d("header.menuClose","\uBA54\uB274 \uB2EB\uAE30")},[p,f]=o.useState(!1),b=o.useId(),y=o.useRef(null);o.useEffect(()=>{if(!p)return;const _=Vn(()=>{const g=document.getElementById(b);g&&g.contains(document.activeElement)&&y.current?.focus(),f(!1)}),h=typeof window<"u"&&window.matchMedia?window.matchMedia("(min-width: 961px)"):null,w=g=>{g.matches&&f(!1)};return h&&(h.matches&&f(!1),h.addEventListener?.("change",w)),()=>{_(),h?.removeEventListener?.("change",w)}},[p,b]);const C=l?`${l} landing-header__inner`:"landing-header__inner",v=(_,h)=>u?u(_,{onClick:h}):n.jsx("a",{href:_.href,onClick:h,"aria-current":_.current?"page":void 0,children:_.label});return n.jsxs("header",{className:i?`landing-header ${i}`:"landing-header",children:[n.jsxs("div",{className:C,children:[e!=null&&(()=>{const _=typeof e=="string"?n.jsx("img",{src:e,alt:t,className:"landing-header__logo"}):e;return a?n.jsx("a",{href:a,className:"landing-header__brand",children:_}):n.jsx("div",{className:"landing-header__brand",children:_})})(),r.length>0&&n.jsx("nav",{className:"landing-header__links",children:r.map((_,h)=>n.jsx("span",{children:v(_)},`${h}:${_.href}`))}),n.jsxs("div",{className:"landing-header__actions",children:[s,r.length>0&&n.jsx("button",{ref:y,type:"button",onClick:()=>f(_=>!_),"aria-expanded":p,"aria-controls":b,"aria-label":p?m.close:m.open,className:p?"landing-header__toggle landing-header__toggle--open":"landing-header__toggle",children:n.jsxs("span",{className:"landing-header__burger",children:[n.jsx("span",{}),n.jsx("span",{}),n.jsx("span",{})]})})]})]}),r.length>0&&n.jsx("nav",{id:b,hidden:!p,className:"landing-header__drawer",children:n.jsx("div",{className:l??void 0,children:r.map((_,h)=>n.jsx("span",{className:"landing-header__drawer-item",children:v(_,()=>f(!1))},`${h}:${_.href}`))})})]})}function z5({children:e,action:t,onClick:a,className:r}){const s=a?"bottom-sticky__inner bottom-sticky__inner--clickable":"bottom-sticky__inner";return n.jsx("div",{className:r?`bottom-sticky ${r}`:"bottom-sticky",children:n.jsxs("div",{className:s,onClick:a,...uu(a),children:[n.jsx("div",{className:"bottom-sticky__content",children:e}),t]})})}function V5({mountedRef:e}){const t=o.useRef({phase:"sound",at:0}),a=o.useRef(0),r=o.useRef(null),s=o.useRef(null),i=o.useCallback(C=>{const v=t.current,_=v.phase!=="sound"&&v.at>0;s.current=_?v.phase==="lead"?"restart":C:null},[]),l=o.useCallback(()=>{const C=s.current;return s.current=null,C},[]),u=o.useCallback(()=>{a.current+=1,t.current={phase:"sound",at:0}},[]),c=o.useCallback((C,v)=>{if(!(C>0))return Promise.resolve(!0);const _=a.current;return t.current={phase:v,at:Date.now()},new Promise(h=>{const w=setTimeout(()=>{r.current===w&&(r.current=null),h(!!e.current&&_===a.current)},C);r.current=w})},[e]),d=o.useCallback(()=>{t.current={phase:"sound",at:Date.now()}},[]),m=o.useCallback(()=>{t.current={phase:"sound",at:0}},[]),p=o.useCallback(()=>{const C=t.current;return C.phase!=="sound"&&C.at>0},[]),f=o.useCallback(()=>a.current,[]),b=o.useCallback(C=>C===a.current,[]),y=o.useCallback(()=>{a.current+=1},[]);return o.useEffect(()=>()=>{r.current&&(clearTimeout(r.current),r.current=null)},[]),o.useMemo(()=>({positionRef:t,isRunning:p,generation:f,isCurrent:b,abort:u,waitPad:c,enterSound:d,leave:m,pause:i,resume:l,__bumpGenerationForTest:y}),[p,f,b,u,c,d,m,i,l,y])}const pa=9,W5=e=>Math.round(Math.min(pa,Math.max(0,e))/pa*100),q5=e=>e/100*pa,Pa=2,Wu=.1,U5=e=>Math.min(Pa,Math.max(0,e)),G5=.1,K5=e=>Math.round(e*1e6)/1e6;function Ia(e){const{noiseRatio:t}=e;if(typeof t=="number"&&Number.isFinite(t))return U5(t);const a=Math.min(pa,Math.max(0,Number(e.level)||0))/pa,r=Number(e.mainVolume);return r>0?a>0?K5(Math.min(Pa,Math.max(G5,a/r))):0:1}const qu=e=>Math.min(1,Math.max(0,Number(e.mainVolume)||0));function Uu(e){return qu(e)}function Io(e){return qu(e)*Ia(e)}function Fo(e,t=sC()){const a=Number.isFinite(t)&&t>0?t:1;return Math.min(1,Io(e)/a)}function Fa(e,t){const a={...e,...t??{}};return t&&"level"in t&&typeof t.noiseRatio!="number"&&(a.noiseRatio=Ia({level:a.level,mainVolume:a.mainVolume})),a}const Oa={enabled:!0,type:"defaultNoise",level:4.5,noiseRatio:1,speed:1,mainVolume:1,mainSpeed:1},Oo=o.createContext(null);function cr(){return o.useContext(Oo)}const Ho=e=>`${oC()}/${e}`,Gu=e=>Array.from({length:10},(t,a)=>Ho(`${e}-${String(a+1).padStart(2,"0")}.mp3`)),dr={get defaultNoise(){return Ho("noise1.mp3")},get street(){return Gu("noise2")},get restaurant(){return Gu("noise3")},get buzz(){return Ho("noise4.mp3")}};function Y5(e){const t=Math.floor(Math.random()*10);switch(e){case"defaultNoise":return dr.defaultNoise;case"street":return dr.street[t];case"restaurant":return dr.restaurant[t];case"buzz":return dr.buzz;default:return null}}function Z5({noisePlayer:e,audioRef:t,playbackStateRef:a,sequencer:r}){const s=o.useRef(e?.registerAnalyser);s.current=e?.registerAnalyser;const i=o.useRef(null),[l,u]=o.useState(null),c=o.useRef(null),d=o.useRef(null),m=o.useRef(null),p=o.useRef(null),f=o.useRef(0),b=o.useRef(null),y=o.useCallback(()=>!!r?.isRunning(),[r]),C=o.useCallback(()=>{p.current!==null&&(cancelAnimationFrame(p.current),p.current=null),b.current!==null&&(clearTimeout(b.current),b.current=null)},[]),v=o.useCallback((B,x=250)=>{const A=i.current;if(!A)return;const N=d.current;if(N){d.current=null;try{A.pause()}catch{}A.src=N,A.load()}if(!A.src)return;f.current+=1,C();try{Ir(),za(A).then(F=>{if(i.current===A)try{s.current?.("noise",F)}catch{}})}catch{}const k=A.paused?0:Va(A);A.paused&&Sn(A,0),A.play().catch(()=>{});const S=performance.now(),E=()=>{const F=Math.min(1,(performance.now()-S)/x);try{Sn(A,k+(B-k)*F)}catch{}F<1?p.current=requestAnimationFrame(E):p.current=null};p.current=requestAnimationFrame(E)},[C]),_=o.useCallback((B=250,x)=>{const A=i.current;if(!A||A.paused){x?.();return}const N=++f.current;C();const k=performance.now(),S=Va(A),E=()=>{const F=Math.min(1,(performance.now()-k)/B);try{Sn(A,S*(1-F))}catch{}if(F<1)p.current=requestAnimationFrame(E);else{p.current=null,b.current!==null&&(clearTimeout(b.current),b.current=null);try{A.pause()}catch{}x?.()}};p.current=requestAnimationFrame(E),b.current=setTimeout(()=>{if(b.current=null,f.current===N){p.current!==null&&(cancelAnimationFrame(p.current),p.current=null);try{A.paused||(Sn(A,0),A.pause(),x?.())}catch{}}},B+150)},[C]);o.useEffect(()=>{const B=document.createElement("audio");return B.loop=!0,B.crossOrigin="anonymous",i.current=B,()=>{C();try{B.pause(),B.src=""}catch{}i.current=null,c.current=null,d.current=null}},[C]);const h=e?Fo(e.settings):0,w=!!e?.settings.enabled&&h>0;o.useEffect(()=>{if(!w)return;let B=0;const x=setInterval(()=>{const A=i.current;if(!A||A.paused){B=0;return}const N=t.current;if(N&&!N.paused&&!N.ended||y()||a.current==="playing"){B=0;return}B+=1,B>=2&&(B=0,_())},400);return()=>clearInterval(x)},[_,w,t,a,y]),o.useEffect(()=>{const B=()=>{const x=i.current;if(document.hidden){if(x&&!x.paused){C();try{x.pause()}catch{}}return}if(!x||!x.paused)return;const A=t.current,N=!!A&&!A.paused&&!A.ended||y()||a.current==="playing",k=m.current;N&&k?.enabled&&k.volume>0&&v(k.volume)};return document.addEventListener("visibilitychange",B),()=>document.removeEventListener("visibilitychange",B)},[C,v,t,a,y]),o.useEffect(()=>{m.current=e?{enabled:e.settings.enabled,volume:h,type:e.settings.type}:null},[e,e?.settings.enabled,h,e?.settings.type]);const g=o.useRef(null);return o.useEffect(()=>()=>{g.current?.(),g.current=null},[]),o.useEffect(()=>{const B=e?.settings,x=i.current;if(!x)return;const A=B?Fo(B):0;if(!B||!B.enabled||A===0){_();return}if(c.current!==B.type){const N=Y5(B.type);N&&(c.current=B.type,u(N),d.current=N,_(150,()=>{if(d.current!==N)return;d.current=null,x.src=N,x.load();const k=t.current;if(k&&!k.paused||y()){g.current?.();const S=()=>{x.removeEventListener("canplay",S),g.current===E&&(g.current=null);const F=t.current,$=m.current;(F&&!F.paused&&!F.ended||y())&&$?.enabled&&$.volume>0&&v($.volume)},E=()=>x.removeEventListener("canplay",S);g.current=E,x.addEventListener("canplay",S)}}))}else{const N=t.current,k=!!N&&!N.paused&&!N.ended||y()||a.current==="playing";if(k&&d.current)v(A);else if(k&&x.paused&&x.src)v(A);else if(!x.paused)if(!k)_();else{C();const S=Va(x),E=performance.now(),F=()=>{const $=Math.min(1,(performance.now()-E)/150);try{Sn(x,S+(A-S)*$)}catch{}$<1?p.current=requestAnimationFrame(F):p.current=null};p.current=requestAnimationFrame(F)}}},[e?.settings,e?.settings.enabled,h,e?.settings.type,C,v,_,t,a,m,y]),o.useEffect(()=>{const B=i.current;if(B)try{B.playbackRate=Math.min(1.25,Math.max(.75,e?.settings.speed??1))}catch{}},[e?.settings.speed]),{noiseAudioRef:i,activeNoiseUrl:l,noiseSettingsRef:m,cancelNoiseFade:C,fadeInNoise:v,fadeOutNoise:_}}function X5({ttsText:e,playbackRate:t,mainVolume:a,fillRef:r,waveProgressRef:s,setProgress:i,setPlaybackState:l,setStateLocal:u,fadeInNoise:c,fadeOutNoise:d,noiseSettingsRef:m,onDoneRef:p,handleEndRef:f}){const b=o.useRef(null),y=o.useRef(0),C=o.useRef(null),v=o.useRef(0),_=o.useRef(!1);o.useEffect(()=>()=>{v.current++;try{if(C.current&&(cancelAnimationFrame(C.current),C.current=null),_.current&&window.speechSynthesis){try{window.speechSynthesis.cancel()}catch{}_.current=!1}}catch{}},[]);const h=(B,x=1)=>{try{const A=(B||"").trim().split(/\s+/).filter(Boolean).length||Math.max(1,(B||"").length);return Math.max(700,Math.round(A*300/Math.max(.25,x)))}catch{return 1200}},w=o.useCallback(B=>{if(typeof window>"u"||!window.speechSynthesis){try{typeof p.current=="function"&&p.current(!1)}catch{}return}const x=window.speechSynthesis,A=++v.current;try{try{x.cancel()}catch{}const N=B??e,k=Array.isArray(N)?N.filter(j=>!!j):[N||""];k.length===0&&k.push("");const S=Math.max(.3,Math.min(3,t));y.current=k.reduce((j,L)=>j+h(L,S||1),0),b.current=performance.now(),i(0),l("playing"),u("playMode");const E=m.current;E?.enabled&&(E?.volume??0)>0&&c(E.volume);const F=()=>{try{const j=b.current||performance.now(),L=performance.now()-j,I=y.current||1200,K=Math.min(1,L/I);try{r.current&&(r.current.style.left=`${K*100}%`),s.current&&s.current.style.setProperty("--progress",String(K))}catch{}K<1&&(C.current=requestAnimationFrame(F))}catch{}},$=()=>{if(A===v.current)try{C.current&&(cancelAnimationFrame(C.current),C.current=null),i(1),l("stopped");try{f.current?.()}catch{try{typeof p.current=="function"&&p.current(!0)}catch{}}}catch{}},G=j=>{const L=new SpeechSynthesisUtterance(k[j]);try{L.rate=S}catch{}try{L.volume=Math.max(0,Math.min(1,a))}catch{}L.onend=()=>{if(A===v.current){if(j<k.length-1){try{G(j+1)}catch{$()}return}$()}},L.onerror=()=>{$()},L.onstart=()=>{if(!(j>0))try{C.current&&(cancelAnimationFrame(C.current),C.current=null),C.current=requestAnimationFrame(F)}catch{}},_.current=!0,x.speak(L)};try{G(0)}catch{try{typeof p.current=="function"&&p.current(!0)}catch{}}}catch{try{typeof p.current=="function"&&p.current(!0)}catch{}}},[e,t,a,c,r,s,i,l,u,m,p,f]),g=o.useCallback(()=>{v.current++;try{if(window.speechSynthesis)try{window.speechSynthesis.cancel()}catch{}C.current&&(cancelAnimationFrame(C.current),C.current=null),d(),b.current=null}catch{}l("stopped"),u("active"),i(0)},[d,l,u,i]);return{startTTS:w,stopTTS:g}}const J5=.01,Q5=.3;async function e3(e,t,a,r=!1){let s=null;try{const i=window.AudioContext||window.webkitAudioContext;s=new i;const l=await s.decodeAudioData(e.slice(0)),u=l.numberOfChannels>0?l.getChannelData(0):null;if(!u)return null;let c=0;if(r){const b=Math.floor(Q5*l.sampleRate),y=Math.min(u.length,b);for(;c<y&&Math.abs(u[c])<=J5;)c++;c>=y&&(c=0)}const d=u.length-c,m=a&&a>0?Math.min(d,Math.floor(a*l.sampleRate)):d,p=Math.max(t,m),f=Math.floor(p/t)||1;return new Array(t).fill(0).map((b,y)=>{const C=c+y*f,v=Math.min(C+f,c+p,u.length);let _=0;for(let h=C;h<v;h++){const w=Math.abs(u[h]);w>_&&(_=w)}return _})}catch{return null}finally{try{s?.close?.()}catch{}}}async function Ku(e,t,a,r=!1){try{const s=await fetch(e);if(s.ok===!1)return null;const i=await s.arrayBuffer();return await e3(i,t,a,r)}catch(s){try{const i=oi(s)}catch{}return null}}const zo=45,t3=74,n3=2;function pr(e){const t=Math.min(2,Math.max(0,Number(e)||0));return t<=1?t*45:45+(t-1)*29}function mr(e){return pr(e)/45}const a3=e=>Math.max(0,(typeof e=="number"&&Number.isFinite(e)?e:0)*1e3),Yu=e=>Math.max(0,typeof e=="number"&&Number.isFinite(e)?e:0);function Zu({durationsSec:e,leadInMs:t=0,tailMs:a=0}){const r=Yu(t),s=Yu(a),i=[];let l=0;return e.forEach((u,c)=>{for(const[d,m]of[["lead",r],["sound",a3(u)],["tail",s]])i.push({kind:d,track:c,startMs:l,durMs:m}),l+=m}),{segments:i,totalMs:l,trackCount:e.length}}function Xu(e,t){const a=(t|0)*3;if(t<0||a+2>=e.segments.length)return null;const[r,s,i]=[e.segments[a],e.segments[a+1],e.segments[a+2]];return{lead:r,sound:s,tail:i,totalMs:r.durMs+s.durMs+i.durMs}}function r3(e,t){const a=Xu(e,t.track);if(!a||!(a.totalMs>0))return 0;const r=a[t.kind],s=Math.min(Math.max(0,Number.isFinite(t.elapsedMs)?t.elapsedMs:0),r.durMs);return Math.max(0,Math.min(1,(r.startMs-a.lead.startMs+s)/a.totalMs))}function o3(e,t,a){const r=Math.max(0,Math.floor(a)),s=Xu(e,t);if(!s||r===0||!(s.totalMs>0)||s.lead.durMs===0&&s.tail.durMs===0||!(s.sound.durMs>0))return{lead:0,sound:r,tail:0};const i=Math.round(s.lead.durMs/s.totalMs*r),l=Math.round(s.tail.durMs/s.totalMs*r),u=Math.max(1,r-i-l),c=i+u+l-r;return{lead:Math.max(0,i-Math.ceil(c/2)),sound:u,tail:Math.max(0,l-Math.floor(c/2))}}function s3({currentTime:e,sources:t,index:a,audioDuration:r}){const s=a||0,i=Array.isArray(t)&&t.length>0?t[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 i3({phase:e,phaseElapsedMs:t,currentTime:a,trackDurationSec:r,leadInMs:s,tailMs:i}){const l=Zu({durationsSec:[r],leadInMs:s,tailMs:i});return r3(l,{track:0,kind:e,elapsedMs:e==="sound"?(Number.isFinite(a)?a:0)*1e3:t})}function l3({bars:e,trackDurationSec:t,leadInMs:a,tailMs:r}){return o3(Zu({durationsSec:[t],leadInMs:a,tailMs:r}),0,e)}function u3(e,t){if(!Array.isArray(e))return null;const a=t||0;return a<e.length-1?a+1:null}function c3({ended:e,completedByEnd:t}){return!!e||!!t}function d3(e){return e.map((t,a)=>({src:t.src,label:String(a+1),color:void 0,duration:t.duration||0}))}function p3(e){return e.reduce((t,a)=>t+(a.duration||0),0)}function m3(e,t,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,t);u&&s.push({code:l,resolvedPath:u})}}return s}const Ju=4,h3=mr(Ju/zo);function C3(e){const{src:t,segments:a,progress:r=0,waveProgressRef:s,noiseSrc:i,noiseRatio:l=0,noiseSpeed:u=1,totalDuration:c=0,mainVolume:d=1,onReadyChange:m,showSoundWaveForm:p=!0,leadInMs:f=0,tailMs:b=0,trackDurationSec:y=0}=e,C=o.useRef(null),v=o.useRef(null),[_,h]=o.useState(null),[w,g]=o.useState(!1),[B,x]=o.useState(null),[A,N]=o.useState(2),[k,S]=o.useState(0),[E,F]=o.useState(null),[$,G]=o.useState(!1),[j,L]=o.useState(!1),I=3,K=3,ee=1,V=300,q=o.useRef(0),R=o.useCallback(()=>{const ge=C.current,te=v&&v.current?v.current:ge?ge.closest(".audio-player__wave"):null,ce=te?te.getBoundingClientRect():ge?ge.getBoundingClientRect():null,de=ce?ce.width:0,he=ce?Math.max(100,ce.width):320,ye=ce?ce.height:0,Se=Math.max(ee,Math.min(V,Math.floor((he+K)/(I+K)))),Ge=Se*I,ze=Math.max(0,Se-1),Pe=Math.max(0,ze>0?(he-Ge)/ze:K);return{bars:Se,gap:Pe,height:ye,width:de}},[]),O=o.useRef(void 0),D=o.useRef(null),H=o.useCallback(async(ge,te,{quiet:ce=!1}={})=>{const de=++q.current,he=()=>q.current===de;try{if(ce||g(!1),O.current=ge,!ge){he()&&h(null);return}let ye=te;if(!ye)try{for(let ze=0;ze<4&&!(C.current||v.current);ze++)await new Promise(Pe=>requestAnimationFrame(Pe));await new Promise(ze=>requestAnimationFrame(ze));const Ge=R();Ge.height>0&&S(Ge.height),ye=Ge.bars,N(Ge.gap)}catch{ye=120}D.current=ye;const Se=await Ku(ge,ye);if(!he())return;if(!Se){h(null),g(!1);return}h(Se),x(ye),g(!0)}catch{if(!he())return;h(null),g(!1)}},[g,h,S,N,x,R]);o.useEffect(()=>{const ge=v.current;if(!ge||typeof ResizeObserver>"u")return;let te=null;const ce=new ResizeObserver(()=>{te!==null&&cancelAnimationFrame(te),te=requestAnimationFrame(()=>{te=null;try{const de=R();if(de.width<=0||(de.height>0&&S(de.height),D.current===null||de.bars===D.current))return;const he=O.current;N(de.gap),he?H(he,de.bars,{quiet:!0}).catch(()=>{}):D.current=de.bars}catch{}})});return ce.observe(ge),()=>{ce.disconnect(),te!==null&&cancelAnimationFrame(te)}},[R,H]),o.useEffect(()=>{const ge=a&&a[0]&&a[0].src||t||a&&a.length===1&&a[0]&&a[0].src;H(typeof ge=="string"?ge:void 0).catch(()=>{}),L(!1)},[t,a,H]),o.useEffect(()=>{let ge=!1;if(G(!1),!i||!B){F(null);return}const te=c>0?c*(u||1):void 0;return Ku(i,B,te,!0).then(ce=>{ge||(F(ce),ce||G(!0))}).catch(()=>{ge||(F(null),G(!0))}),()=>{ge=!0}},[i,B,c,u]);const M=Math.max(0,Math.min(1,d)),P=o.useMemo(()=>_&&_.length&&Math.max(..._)||1,[_]),z=B||40,Y=o.useMemo(()=>l3({bars:z,trackDurationSec:y,leadInMs:f,tailMs:b}),[z,y,f,b]),X=o.useMemo(()=>Array.from({length:z}).map((ge,te)=>{const ce=te>=Y.lead&&te<Y.lead+Y.sound,de=Y.sound>0&&ce?Math.min(z-1,Math.round((te-Y.lead)/Y.sound*z)):-1,he=ce?_&&_[de]!=null?_[de]:null:_?0:null,ye=he==null?null:Math.min(1,he/P*M),Se=ye!=null&&k>0&&pr(ye)<=Ju,Ge=ye==null?.15:Se?0:mr(ye),ze=Se,Pe=z>1?te/(z-1):0;return n.jsx("div",{className:ze?"audio-player__bar audio-player__bar--hidden":"audio-player__bar",style:{"--val":Ge,"--i":te,"--mix":Pe}},te)}),[z,_,P,M,k,Y]),Z={"--progress":String(Math.max(0,Math.min(1,r)))},ne=o.useMemo(()=>E&&E.length&&Math.max(...E.map(ge=>Number.isFinite(ge)?Math.abs(ge):0))||1,[E]),le=M*Math.max(0,l),ie=!i||!E||!E.length?1:Math.max(1,le),Ee={"--bar-gap":`${A}px`,"--wave-h":`${pr(ie)}px`,"--wave-h1":`${zo}px`},W=w&&(i?!!E||$:!0);o.useEffect(()=>{W&&L(!0)},[W]);const ae=j?w:W;o.useEffect(()=>{m?.(ae)},[ae,m]);const fe=B||40,Ne=o.useMemo(()=>Array.from({length:fe}).map((ge,te)=>{const ce=E&&E[te]!=null?E[te]:null,de=ce==null?0:Math.abs(ce)/ne*le,he=Math.max(h3,mr(de)),ye=fe>1?te/(fe-1):0;return n.jsx("div",{className:"audio-player__bar",style:{"--val":he,"--i":te,"--mix":ye}},te)}),[fe,E,ne,le,k]);return n.jsxs("div",{className:"audio-player__wave",ref:v,style:Ee,children:[i&&n.jsx("div",{className:`audio-player__wave-noise ${W?"is-ready":""}`,"aria-hidden":"true",children:Ne}),p&&n.jsxs(n.Fragment,{children:[n.jsx("div",{className:`audio-player__wave-inner audio-player__wave-unplayed ${ae?"is-ready":""}`,ref:C,children:X}),n.jsx("div",{className:`audio-player__wave-inner audio-player__wave-played ${ae?"is-ready":""}`,ref:s,style:Z,children:X})]})]})}const f3={idle:"\uB300\uAE30",synthesizing:"\uC18C\uB9AC\uB97C \uB9CC\uB4E4\uACE0 \uC788\uC2B5\uB2C8\uB2E4\u2026",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"},Qu={idle:!1,synthesizing:!0,resolving:!0,checking_exists:!0,getting_signed_url:!0,downloading:!0,measuring_duration:!0,ready:!1,error:!0};function Vo(e,t){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(),t.rejectOnError?r(new Error(d)):a(0))};s.addEventListener("loadedmetadata",u),s.addEventListener("error",()=>c("audio load failed")),setTimeout(()=>c("audio load timeout"),t.timeoutMs),s.src=e})}const g3=2e3;function ec(e,t=g3){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,t)})}function b3({showSoundWaveForm:e,showNoiseWaveForm:t,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 m of d)m(!0)},[]),l=o.useCallback(()=>{r.current=!1},[]),u=o.useCallback(()=>!e&&!t||r.current?Promise.resolve(!0):new Promise(c=>{const d=p=>{clearTimeout(m),s.current=s.current.filter(f=>f!==d),c(p)},m=setTimeout(()=>d(!0),a);s.current.push(d)}),[e,t,a]);return o.useEffect(()=>()=>{const c=s.current;s.current=[];for(const d of c)d(!1)},[]),{onReadyChange:i,waitForReady:u,markNotReady:l}}function y3(){const e=o.useRef([]),t=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:t,keepOnly:a,revokeAll:r}}function v3({offsetY:e=8}={}){const t=o.useRef(null),[a,r]=o.useState(null),s=o.useCallback(()=>r(null),[]),i=o.useCallback(()=>{try{const l=t.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:t,rect:a,show:i,hide:s}}function x3(e){if(!e)return 0;const t=e.duration;if(Number.isFinite(t)&&t>0)return t;if(t===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}const _3=400;function w3({audioRef:e,fillRef:t,waveProgressRef:a,sourcesRef:r,currentIndexRef:s,sequencer:i,leadInMs:l=0,tailMs:u=0}){const c=o.useRef(null),d=o.useCallback(()=>{c.current!==null&&(cancelAnimationFrame(c.current),c.current=null)},[]),m=o.useCallback(()=>{if(c.current!==null)return;let f=0;const b=()=>{if(Zn){const y=typeof performance<"u"&&performance.now?performance.now():Date.now();if(f>0&&y-f>_3){let C=null;try{C=typeof document<"u"?document.visibilityState:null}catch{}Yt("progress-ticker-slow-frames",`[ihab-core] \uC9C4\uD589 \uC0AC\uC2AC\uC758 \uD2C0 \uC0AC\uC774\uAC00 ${Math.round(y-f)}ms \uC785\uB2C8\uB2E4(\uBCF4\uD1B5 16ms).`,C==="hidden"?"\uC774 \uCE78\uC774 **\uC228\uC5B4 \uC788\uC5B4** \uBE0C\uB77C\uC6B0\uC800\uAC00 \uD2C0\uC744 \uC904\uC600\uC2B5\uB2C8\uB2E4 \u2014 \uC7AC\uC0DD\uBC14\xB7\uD30C\uD615\uC740 \uD2C0\uB9C8\uB2E4 \uADF8\uB824\uC9C0\uBBC0\uB85C, \uC9C0\uAE08 \uC7AC\uB294 \uAC12\uC740 **\uC0AC\uB78C\uC774 \uBCF4\uB294 \uD654\uBA74\uACFC \uB2E4\uB985\uB2C8\uB2E4.** \uCE78\uC744 \uC55E\uC73C\uB85C \uAEBC\uB0B4\uACE0 \uB2E4\uC2DC \uC7AC\uC2ED\uC2DC\uC624.":"\uCE78\uC740 \uBCF4\uC774\uB294\uB370 \uD2C0\uC774 \uB290\uB9BD\uB2C8\uB2E4 \u2014 \uAC19\uC740 \uD654\uBA74\uC5D0\uC11C \uBB34\uAC70\uC6B4 \uC77C\uC774 \uB3C4\uB294\uC9C0 \uBCF4\uC2ED\uC2DC\uC624. \uC7AC\uC0DD\uBC14\xB7\uD30C\uD615\uC774 \uB04A\uACA8 \uBCF4\uC774\uB294 \uAC83\uC740 \uC774 \uD0D3\uC77C \uC218 \uC788\uC2B5\uB2C8\uB2E4.")}f=y}try{const y=e.current,C=Array.isArray(r.current)?r.current[s.current||0]:void 0,v=!!C&&Number.isFinite(C.duration)&&(C.duration??0)>0,_=v?0:x3(y),h=t.current,w=(l||0)>0||(u||0)>0,g=w&&(i?.positionRef.current?.phase??"sound")!=="sound";if(_===null&&!g)try{h&&h.style.visibility!=="hidden"&&(h.style.visibility="hidden")}catch{}else{Zn&&_===null&&g&&Yt("progress-ticker-pad-without-duration","[ihab-core] \uB738\uC774 \uB3C4\uB294\uB370 **\uC18C\uB9AC \uAE38\uC774\uB97C \uBAA8\uB985\uB2C8\uB2E4** \u2014 \uC7AC\uC0DD\uBC14\uAC00 \uB738\uB9CC\uC73C\uB85C \uC5B4\uB9BC\uC7A1\uC544 \uC6C0\uC9C1\uC785\uB2C8\uB2E4.","\uC18C\uB9AC \uAE38\uC774 \uC7AC\uAE30(measureAudioDuration)\uAC00 0 \uC744 \uC92C\uAC70\uB098 `<audio>` \uAC00 \uC544\uC9C1 \uC548 \uC2E4\uB838\uC2B5\uB2C8\uB2E4. \uAE38\uC774\uB97C \uC54C\uAC8C \uB418\uBA74 \uB9C8\uCEE4\uAC00 \uADF8 \uC21C\uAC04 **\uB4A4\uB85C \uBB3C\uB7EC\uB0A9\uB2C8\uB2E4**(\uC5B4\uB9BC\uC740 \uB298 \uCC38\uBCF4\uB2E4 \uD07D\uB2C8\uB2E4).");const B=w?i3({phase:i?.positionRef.current?.phase??"sound",phaseElapsedMs:i?.positionRef.current?Math.max(0,Date.now()-i.positionRef.current.at):0,currentTime:y&&typeof y.currentTime=="number"?y.currentTime:0,trackDurationSec:v?C.duration:_||0,leadInMs:l||0,tailMs:u||0}):s3({currentTime:y&&typeof y.currentTime=="number"?y.currentTime:0,sources:r.current,index:s.current,audioDuration:_??0});try{h&&(h.style.visibility&&(h.style.visibility=""),h.style.left=`${B*100}%`)}catch{}try{a.current?.style.setProperty("--progress",String(B))}catch{}}}catch{}c.current=requestAnimationFrame(b)};c.current=requestAnimationFrame(b)},[e,t,a,r,s,i,l,u]),p=o.useCallback(f=>{d();try{t.current&&(t.current.style.visibility="",t.current.style.left=`${f*100}%`)}catch{}try{a.current?.style.setProperty("--progress",String(f))}catch{}},[d,t,a]);return o.useEffect(()=>d,[d]),{start:m,stop:d,settleTo:p}}function Wo({btnLabel:e,soundSrc:t,bucketPath:a,onDone:r,disabled:s=!1,ttsText:i=null,className:l,showSoundWaveForm:u=!0,showNoiseWaveForm:c=!0,leadInMs:d=0,tailMs:m=0}){const{t:p}=ve.useTranslation(),f=e,b=cr(),y=o.useRef(b?.registerAnalyser);o.useEffect(()=>{y.current=b?.registerAnalyser});const C=o.useRef(null),v=o.useRef(null),_=o.useRef(null),h=y3(),w=o.useRef(null),g=o.useRef(!1),B=o.useRef(null),{ref:x,rect:A,show:N,hide:k}=v3();o.useEffect(()=>()=>{y.current?.("main",null),y.current?.("noise",null)},[]);const[S,E]=o.useState(!1),[F,$]=o.useState("idle"),[G,j]=o.useState("stopped"),L=o.useRef("stopped");o.useEffect(()=>{L.current=G},[G]);const[I,K]=o.useState(0),[ee,V]=o.useState("active"),q=o.useRef(!1);o.useEffect(()=>{if(ee!=="playMode"||!q.current)return;q.current=!1;const re=typeof document<"u"?document.activeElement:null;if(re&&re!==document.body)return;const _e=_.current?.querySelectorAll("button")[1];try{_e?.focus()}catch{}},[ee]);const[R,O]=o.useState(null),[D,H]=o.useState(null),[M,P]=o.useState(0),[z,Y]=o.useState(!1),[X,Z]=o.useState(0),ne=b?.playbackRate??1,le=b?.mainVolume??1,ie=b?Io(b.settings):0,Ee=b?Uu(b.settings):le,[W,ae]=o.useState("idle"),[fe,Ne]=o.useState(""),[ge]=o.useState("top"),te=o.useRef(null),ce=o.useRef(0),de=o.useRef(null),he=o.useRef(!0),ye=V5({mountedRef:he}),Se=o.useRef(null),Ge=o.useRef(d),ze=o.useRef(m);o.useEffect(()=>{Ge.current=Math.max(0,d||0)},[d]),o.useEffect(()=>{ze.current=Math.max(0,m||0)},[m]);const{start:Pe,stop:Ie,settleTo:Ct}=w3({audioRef:C,fillRef:v,waveProgressRef:de,sourcesRef:te,currentIndexRef:ce,sequencer:ye,leadInMs:d,tailMs:m}),{onReadyChange:ut,waitForReady:at,markNotReady:ct}=b3({showSoundWaveForm:u,showNoiseWaveForm:c}),ke=o.useRef(null),Fe=o.useRef(s),Be=o.useRef(r),Je=o.useRef(null),J=o.useRef(!1),[se,Ce]=o.useState(!1),De=o.useCallback(re=>{J.current=re,Ce(re)},[]),tt=o.useRef(null),{activeNoiseUrl:Ze,noiseSettingsRef:yt,fadeInNoise:mt,fadeOutNoise:rt}=Z5({noisePlayer:b,audioRef:C,playbackStateRef:L,sequencer:ye}),{startTTS:ot,stopTTS:st}=X5({ttsText:i,playbackRate:ne,mainVolume:Ee,fillRef:v,waveProgressRef:de,setProgress:K,setPlaybackState:j,setStateLocal:V,fadeInNoise:mt,fadeOutNoise:rt,noiseSettingsRef:yt,onDoneRef:Be,handleEndRef:tt});o.useEffect(()=>{jt.current=st});const nt=re=>{if(typeof window>"u"||!window.speechSynthesis){try{Ne(p("training.ttsUnavailable","\uC774 \uAE30\uAE30\uC5D0\uC11C\uB294 \uC74C\uC131\uC744 \uB4E4\uB824\uC904 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4."))}catch{}ot(re);return}it("tts"),ot(re)},$e=Array.isArray(t)?t.filter(Boolean):t?[t]:[],Ue=(!$e||$e.length===0)&&!!i,He=Array.isArray(R)&&R.length>0?R:Array.isArray(D)&&D.length>0?D:null,ht=Math.max(Array.isArray(He)?He.length:0,$e.length);o.useEffect(()=>(he.current=!0,()=>{he.current=!1}),[]);const Nt=()=>{ye.abort()},jt=o.useRef(null),gt=o.useRef(null),xt=o.useRef(null),Oe=o.useRef(null);Oe.current||(Oe.current=()=>{xt.current=null;const re=C.current;if(gt.current==="audio"&&re&&(!re.paused||ye.isRunning())){Nt();try{re.pause()}catch{}he.current&&(j("paused"),Ie(),rt())}else if(gt.current==="tts")try{jt.current?.()}catch{}});const it=re=>{gt.current=re,xt.current=er(Oe.current)},Tt=()=>{xt.current?.(),xt.current=null};o.useEffect(()=>()=>{Oe.current&&tr(Oe.current)},[]);const Vt=o.useRef(ne);o.useEffect(()=>{Vt.current=ne||1},[ne]);const Xe=o.useCallback(re=>{const _e=Vt.current||1;try{re.defaultPlaybackRate=_e}catch{}try{re.playbackRate=_e}catch{}},[]),wt=o.useCallback((re,_e)=>{re.src=_e,Xe(re),re.load(),Xe(re)},[Xe]),Bt=o.useCallback(async(re,_e=3,Le=50)=>{const Ye=ye.generation();if(Ge.current>0){it("audio"),Pe(),j("playing");const ue=yt.current;if(ue?.enabled&&(ue.volume??0)>0)try{mt(ue.volume)}catch{}if(!await ye.waitPad(Ge.current,"lead")||!he.current||!ye.isCurrent(Ye))return!1}ye.enterSound();for(let ue=0;ue<_e;ue++){if(!he.current||!ye.isCurrent(Ye))return!1;try{return it("audio"),await re.play(),!0}catch(we){if((we instanceof Error||typeof we=="object"&&we&&"name"in we?we.name:void 0)==="AbortError"){if(!ye.isCurrent(Ye))return!1;await new Promise(et=>setTimeout(et,Le));continue}try{Ne(p("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."))}catch{}return!1}}try{Ne(p("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."))}catch{}return!1},[p,Pe,ye,mt,yt]),Wt=o.useCallback(()=>{const re=C.current;if(!re)return;const _e=()=>{j("playing"),V("playMode"),Y(!0),Pe();try{Ir(),za(re).then(we=>{if(he.current)try{y.current?.("main",we)}catch{}})}catch{}const ue=yt.current;ue?.enabled&&(ue?.volume??0)>0&&mt(ue.volume)},Le=()=>{c3({ended:!!re?.ended,completedByEnd:J.current})||(j("paused"),Ie(),rt())},Ye=()=>{const ue=()=>{try{const we=te.current,et=u3(we,ce.current);if(et!==null){ce.current=et,P(et),Y(!0);const pt=we?.[et]&&we[et].src;if(pt&&re){wt(re,pt),Bt(re).catch(()=>{});return}}}catch{}j("stopped"),K(1);try{if(re)try{re.currentTime=0}catch{}}catch{}Ie(),Y(!1),rt();try{!Fe.current&&tt.current&&tt.current()}catch{}};if(Se.current=ue,ze.current>0){Pe(),ye.waitPad(ze.current,"tail").then(we=>{ye.leave(),we&&ue()}).catch(()=>{});return}ue()};return re.addEventListener("play",_e),re.addEventListener("pause",Le),re.addEventListener("ended",Ye),()=>{try{re.removeEventListener("play",_e),re.removeEventListener("pause",Le),re.removeEventListener("ended",Ye),Ie()}catch{}}},[mt,rt,Bt,yt,Pe,Ie,ye]);o.useEffect(()=>Wt(),[Wt]),o.useEffect(()=>{Fe.current=s},[s]),o.useEffect(()=>{Be.current=r},[r]),o.useEffect(()=>{if(s||ee!=="active")return;const re=B.current;if(!re)return;let _e=null;const Le=requestAnimationFrame(()=>{try{const Ye=re.getTotalLength();if(!Ye)return;const ue=Ye*.2;re.style.strokeDasharray=`${Ye-ue} ${ue}`;const we="triFlow_"+Math.random().toString(36).slice(2);_e=document.createElement("style"),_e.textContent=`@keyframes ${we}{from{stroke-dashoffset:0}to{stroke-dashoffset:-${Ye}}}`,document.head.appendChild(_e),re.style.animation=`${we} 2.4s linear infinite`}catch{}});return()=>{cancelAnimationFrame(Le),_e?.remove()}},[ee,s]),o.useEffect(()=>{te.current=R},[R]),o.useEffect(()=>{ce.current=M},[M]),o.useEffect(()=>{const re=_.current,_e=w.current;if(!re||!_e)return;let Le=null;const Ye=32,ue=60,we=()=>{try{const pt=Array.from(re.querySelectorAll(":scope > .button"));let ft=0;pt.forEach(me=>{if(me===_e)return;const Te=me.getBoundingClientRect();ft+=Te.width});const on=re.getBoundingClientRect().width,be=Math.max(0,Math.floor(on-ft-8)),T=ht;if(!T||be<=0){Array.from(_e.children).forEach(me=>{try{me.style.width=""}catch{}});return}let U=Math.floor(be/T);U>ue&&(U=ue),U<Ye&&(U=Math.max(Ye,Math.floor(be/T))),Array.from(_e.querySelectorAll(".button")).forEach(me=>{try{me.style.width=`${U}px`}catch{}})}catch{}},et=requestAnimationFrame(we);try{Le=new ResizeObserver(()=>{requestAnimationFrame(we)}),Le.observe(re),Le.observe(_e),window.addEventListener("resize",we)}catch{}return()=>{try{cancelAnimationFrame(et)}catch{}try{Le&&(Le.disconnect(),Le=null)}catch{}try{window.removeEventListener("resize",we)}catch{}}},[R,D,ht]),o.useEffect(()=>()=>{try{ke.current&&(clearTimeout(ke.current),ke.current=null),Je.current&&(clearTimeout(Je.current),Je.current=null)}catch{}},[]);const an=(re,_e)=>{O(re),Z(_e),ct(),H(d3(re)),te.current=re},rn=()=>{V("playMode"),P(0),Y(!0)},bn=async(re,_e)=>{De(!1),g.current=!1,wt(re,_e),await ec(re),await at()!==!1&&(E(!1),rn(),await Bt(re))},Rn=async(re,_e=!1)=>{const Le=C.current;E(!0),$("measuring_duration");try{const Ye=await Vo(re,{timeoutMs:1e4,rejectOnError:!0});an([{src:re,objectUrl:null,duration:Ye}],Ye),$("ready"),_e&&Le&&await bn(Le,re)}finally{g.current=!1,E(!1)}},yn=async(re,_e=!1)=>{const Le=C.current;E(!0),$("measuring_duration");try{const Ye=await Promise.all(re.map(we=>Vo(we,{timeoutMs:1e4})));if(!he.current)return;const ue=re.map((we,et)=>({src:we,objectUrl:null,duration:Ye[et]||0}));an(ue,p3(ue)),$("ready"),_e&&Le&&ue.length>0&&await bn(Le,ue[0].src)}finally{g.current=!1,E(!1)}},Pn=async(re=!1,_e=!0)=>{const Le=C.current,Ye=t?Array.isArray(t)?t:[t]:[];if(!Ye||Ye.length===0||!Ye.some(Boolean))return!1;if(g.current)return null;g.current=!0,_e&&E(!0),$("resolving");try{const ue=m3(t,a,Gs),we=[];let et=0;for(const pt of ue){let ft=pt.src??null,on=null;if(!ft&&pt.resolvedPath){try{$("getting_signed_url"),ft=await Ks(pt.resolvedPath)}catch{ft=null}if(!he.current)return!1;if(!ft)try{$("downloading");const T=await Ys(pt.resolvedPath);if(!he.current)return!1;if(T){const U=T instanceof Blob?T:new Blob([T]);on=h.track(URL.createObjectURL(U)),ft=on}}catch{$("error");try{Ne(p("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4.")),V("active")}catch{}}}if(!ft)continue;let be=0;try{$("measuring_duration"),be=await Vo(ft,{timeoutMs:3e3})}catch{be=0}if(!he.current){if(on)try{URL.revokeObjectURL(on)}catch{}for(const T of we)if(T.objectUrl)try{URL.revokeObjectURL(T.objectUrl)}catch{}return!1}et+=be||0,we.push({...pt,src:ft,objectUrl:on,duration:be})}if(an(we,et),we.length>0&&re&&Le){const pt=we[0];De(!1);try{h.keepOnly(we.map(ft=>ft.objectUrl))}catch{}if($("ready"),g.current=!1,pt.src&&Le)try{if(wt(Le,pt.src),await ec(Le),await at()===!1)return!1;_e&&E(!1),rn(),Le&&await Bt(Le)}catch{_e&&E(!1)}else _e&&E(!1);V("playMode"),P(0),Y(!0)}return we.length>0}finally{g.current=!1,_e&&E(!1),$(ue=>ue==="ready"?"ready":"idle")}},dn=async re=>{const _e=ye.isRunning();if(re.paused&&!_e){if(J.current){await pn();return}const Le=ye.resume();if(typeof Le=="function"){j("playing"),Le();return}await Bt(re),j("playing")}else ye.pause(Se.current),Nt(),re.pause(),j("paused"),_e&&(Ie(),rt())},Ft=async()=>{const re=C.current;if(!(!re&&!Ue)){if(Ue){const _e=window.speechSynthesis;if(ee==="active"){const Le=$r(),Ye=Array.isArray(i)?i.filter(Boolean):i?[i]:[];if(Le&&Ye.length>0){if(g.current)return;V("load"),E(!0),$("synthesizing"),g.current=!0;try{const ue=await Promise.all(Ye.map(we=>Promise.resolve(Le(we))));ue.length>1?await yn(ue,!0):await Rn(ue[0],!0)}catch{g.current=!1,E(!1),V("active"),nt(Ye.length>0?Ye:void 0)}return}nt(Ye.length>0?Ye:void 0);return}if(ee==="playMode"){const Le=!!_e&&(_e.speaking||_e.paused)&&!(re&&(re.currentSrc||re.getAttribute("src")));if(re&&!Le){await dn(re);return}try{if(_e&&_e.paused)try{it("tts"),_e.resume(),j("playing")}catch{}else try{_e.pause(),j("paused")}catch{}}catch{}}return}if(ee==="active"){if(s&&Array.isArray(te.current)&&te.current.length>0){const Le=te.current[0];try{if(Le.src&&re)try{wt(re,Le.src),rn(),re&&await Bt(re)}catch{}rn();return}catch{}}V("load");let _e;try{_e=await Pn(!0)}catch{_e=!1}if(_e===!1&&he.current){try{Ne(p("training.audioFetchError","\uC0AC\uC6B4\uB4DC \uC18C\uC2A4\uB97C \uAC00\uC838\uC624\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4."))}catch{}V("active")}return}if(ee!=="load"&&(ee==="playMode"||ee==="active"))try{re&&await dn(re)}catch(_e){(_e instanceof Error||typeof _e=="object"&&_e&&"name"in _e)&&_e.name}}},pn=async()=>{const re=C.current;if(re)try{const _e=te.current;if(Array.isArray(_e)&&_e.length>1){await Cn(0);return}De(!1);try{re.currentTime=0}catch{}re&&await Bt(re),j("playing"),V("playMode")}catch{}},qt=()=>{Nt(),Tt(),jt.current?.();const re=C.current;try{if(re){try{re.pause()}catch{}try{re.currentTime=0}catch{}}}catch{}rt(),j("stopped"),V("active"),K(0),Y(!1)},Pt=async(re,{sameSegment:_e=!1}={})=>{Nt();const Le=ye.generation(),Ye=C.current,ue=te.current?.[re]?.src;try{if(De(!1),P(re),Y(!0),ce.current=re,!ue||!Ye||(_e||ct(),wt(Ye,ue),!_e&&await at()===!1)||!ye.isCurrent(Le)||(await Bt(Ye),!ye.isCurrent(Le)))return;j("playing"),V("playMode")}catch{}},In=async()=>{const re=te.current,_e=ce.current||0;if(!re||_e<=0){await pn();return}await Pt(_e-1)},mn=async()=>{const re=te.current,_e=ce.current||0;if(!re||_e>=re.length-1){qt();return}await Pt(_e+1)},hn=()=>{if(J.current)return;const re=200,_e=340;De(!0),Nt(),Tt();try{K(1)}catch{}Ct(1);try{ae("hold")}catch{}try{const Le=C.current,Ye=Ue&&!!Le?.src;if(!Ue||Ye){if(Le){Le.pause();try{Le.currentTime=0}catch{}}}else st();rt()}catch{}try{j("stopped")}catch{}if(Y(!1),!Fe.current)try{Je.current&&(clearTimeout(Je.current),Je.current=null),Je.current=setTimeout(()=>{try{ae("out")}catch{}Je.current=setTimeout(()=>{try{typeof Be.current=="function"&&Be.current(!0)}catch{}try{ae("idle")}catch{}Je.current=null},_e)},re)}catch{}};o.useEffect(()=>{tt.current=hn});const Fn=o.useCallback(()=>Ne(""),[]),Cn=async re=>{(te.current||[])[re]&&await Pt(re,{sameSegment:re===ce.current})},Mt=G==="playing",Ut=o.useMemo(()=>{if(!D||D.length<=1)return D;const re=D[M];return re?[re]:D},[D,M]),oe=s===!0;o.useEffect(()=>{try{const re=C.current;re&&typeof re.playbackRate=="number"&&Xe(re)}catch{}},[ne,Xe]);const xe=o.useRef({raf:null,timer:null});o.useEffect(()=>{const re=C.current;if(!re)return;const _e=Math.max(0,Math.min(1,Ee)),Le=xe.current,Ye=()=>{Le.raf!==null&&(cancelAnimationFrame(Le.raf),Le.raf=null),Le.timer!==null&&(clearTimeout(Le.timer),Le.timer=null)};Ye();const ue=Va(re);if(re.paused||Math.abs(ue-_e)<.001||typeof requestAnimationFrame!="function"){try{Sn(re,_e)}catch{}return}const we=performance.now(),et=()=>{const pt=Math.min(1,(performance.now()-we)/150);try{Sn(re,ue+(_e-ue)*pt)}catch{}Le.raf=pt<1?requestAnimationFrame(et):null};return Le.raf=requestAnimationFrame(et),Le.timer=setTimeout(()=>{Ye();try{Sn(re,_e)}catch{}},200),Ye},[Ee]);const je=W==="hold",Ve=W==="out",Me=ee==="playMode"&&!S&&!se||je||Ve,We=G!=="stopped"||je||Ve,qe=G==="paused",dt=Math.max(0,Math.min(100,(I||0)*100)),Et=Ae("audio-player__fill",Me?"is-visible":"",We?"is-expanded":"",qe?"is-paused":"",Ve?"is-out":"");return n.jsxs("div",{className:`audio-player ${oe?"is-disabled":""}${l?` ${l}`:""}`,role:"group","aria-label":typeof f=="string"?f:void 0,children:[n.jsxs("div",{className:`audio-player__panel ${Mt?"is-playing":""} ${S?"is-loading":""} ${ee!=="default"?"is-revealed":""}`,children:[S?n.jsxs("div",{className:"audio-player__loading",role:Qu[F]?"status":void 0,"aria-live":Qu[F]?"polite":"off",children:[n.jsx("span",{className:"audio-player__loading-spinner","aria-hidden":"true"}),n.jsx("span",{className:"audio-player__loading-text",children:p(`training.audioStatus.${F}`,{defaultValue:f3[F]})})]}):null,ee==="active"?n.jsx("button",{className:"audio-player__button",type:"button",disabled:oe,onClick:()=>{q.current=or(),k(),Ft()},"aria-label":typeof f=="string"?f:p("training.listen","\uB4E3\uAE30"),onMouseEnter:N,onMouseLeave:k,onFocus:N,onBlur:k,children:n.jsx("span",{ref:x,className:"audio-player__button-triangle-wrap",children:n.jsx("svg",{className:"audio-player__button-triangle",viewBox:"0 0 24 24","aria-hidden":"true",children:n.jsx("path",{ref:B,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,A&&n.jsx(xn,{anchorRect:A,text:typeof f=="string"&&f?f:p("training.listenLabel","\uBB38\uC7A5 \uB4E3\uAE30"),offset:8}),n.jsxs("div",{className:`audio-player__play ${ee==="playMode"||Mt?"is-visible":""}`,inert:!(ee==="playMode"||Mt)||void 0,children:[n.jsxs("div",{ref:_,className:"audio-player__buttons",children:[n.jsx(pe,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"skip-back",onClick:In,ariaLabel:p("training.prev","\uC774\uC804"),width:"60px",variant:"transparent-white","aria-hidden":"true",tabIndex:-1,disabled:ee!=="playMode"}),n.jsx(pe,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:Mt?"pause":"play",onClick:Ft,ariaLabel:p("common.playPause","\uC7AC\uC0DD / \uBA48\uCDA4"),"aria-pressed":Mt,width:"60px",variant:"transparent-white",disabled:ee!=="playMode"}),n.jsx(pe,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"square",onClick:qt,ariaLabel:p("training.stop","\uC815\uC9C0"),width:"60px",variant:"transparent-white","aria-hidden":"true",tabIndex:-1,disabled:ee!=="playMode"}),ht>1?n.jsx("div",{ref:w,className:"audio-player__source-buttons",children:Array.from({length:ht}).map((re,_e)=>n.jsx(pe,{htmlType:"button",size:32,type:"dot",shape:"pill",useBorder:!1,label:String(_e+1),onClick:()=>{try{Cn(_e)}catch{}},ariaLabel:p("training.sourcePlay",{n:_e+1}),variant:"transparent-white",selected:z&&M===_e,disabled:ee!=="playMode"||!(Array.isArray(R)&&R[_e]),showTooltipInfo:!0},_e))}):null,!Array.isArray(R)||R.length<=1?n.jsx(pe,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"repeat",onClick:pn,ariaLabel:p("common.replay","\uB2E4\uC2DC\uB4E3\uAE30"),width:"60px",variant:"transparent-white",disabled:ee!=="playMode"}):null,n.jsx(pe,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"skip-forward",onClick:mn,ariaLabel:p("training.next","\uB2E4\uC74C"),width:"60px",variant:"transparent-white","aria-hidden":!0,tabIndex:-1,disabled:ee!=="playMode"}),n.jsx(pe,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",shape:"pill",useBorder:!1,icon:"check",onClick:hn,ariaLabel:p("common.done","\uC644\uB8CC"),width:"60px",variant:"transparent-white",disabled:ee!=="playMode"})]}),n.jsxs("div",{className:"audio-player__slider",children:[n.jsx("div",{className:Et,ref:v,style:{left:`${dt}%`},"aria-hidden":"true"}),(u||c)&&n.jsx(C3,{segments:Ut,progress:I,totalDuration:X,waveProgressRef:de,showSoundWaveForm:u,leadInMs:d,tailMs:m,trackDurationSec:R?.[M]?.duration??0,noiseSrc:c&&b?.settings.enabled&&ie>0?Ze:null,noiseRatio:b?Ia(b.settings):0,noiseSpeed:b?.settings.speed??1,mainVolume:le,onReadyChange:ut})]})]}),n.jsx("audio",{ref:C,crossOrigin:"anonymous",preload:"auto"})]}),!u&&n.jsxs("p",{className:"audio-player__no-waveform caption-1",children:[n.jsx(Qe,{icon:"triangle-alert",size:14}),p("training.noSoundWaveform","\uC18C\uB9AC \uBE44\uAD50 \uBB38\uC81C\uB294 \uC6E8\uC774\uBE0C\uD3FC\uC744 \uD45C\uD604\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.")]}),n.jsx(sa,{message:fe,position:ge,onClose:Fn})]})}function hr(e){const{t}=ve.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:m,decrease:p,canIncrease:f,canDecrease:b,fontSize:y,lineHeight:C}=nl({storageKey:"tooltip-fontScale"}),v=o.useCallback(()=>d(B=>B==="dark"?"light":"dark"),[]),_=o.useCallback(B=>{try{B.stopPropagation()}catch{}try{typeof i=="function"&&i()}catch{}},[i]),h=Array.isArray(a)?a:typeof a>"u"||a===null?[]:[a],w={fontSize:`${y}px`,lineHeight:`${C}px`,"--tt-line-height":`${C}px`,"--tt-marker-size":"28px"},g=n.jsxs("div",{className:`tooltip-textbox__root ${c==="dark"?"is-dark":""}`,children:[n.jsxs("div",{className:"tooltip-textbox__box",children:[r&&n.jsx("div",{className:"tooltip-textbox__label body-2b",children:r}),n.jsx("div",{className:"tooltip-textbox__text body-1",style:w,children:h.map((B,x)=>n.jsxs("div",{className:"tooltip-textbox__line",children:[h.length>1?n.jsx("div",{className:"tooltip-textbox__marker",children:n.jsx("span",{className:"tooltip-textbox__line-number button-1",children:x+1})}):null,n.jsx("span",{className:"tooltip-textbox__line-text",children:B})]},x))})]}),n.jsxs("div",{className:"tooltip-textbox__buttons",children:[n.jsx(pe,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:"minus",onClick:p,ariaLabel:t("training.fontSizeDecrease","\uAE00\uC790 \uD06C\uAE30 \uAC10\uC18C"),variant:c==="dark"?"transparent-white":"transparent-gray",disabled:!b}),n.jsx(pe,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:"plus",onClick:m,ariaLabel:t("training.fontSizeIncrease","\uAE00\uC790 \uD06C\uAE30 \uC99D\uAC00"),variant:c==="dark"?"transparent-white":"transparent-gray",disabled:!f}),n.jsx(pe,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:c==="dark"?"moon":"sun-medium",onClick:v,ariaLabel:t("training.toggleBackground","\uBC30\uACBD \uC804\uD658"),variant:c==="dark"?"transparent-white":"transparent-gray"}),n.jsx(pe,{htmlType:"button",size:32,showTooltipInfo:!0,type:"dot",useBorder:!1,width:48,icon:"x",onClick:_,ariaLabel:t("common.close","\uB2EB\uAE30"),variant:c==="dark"?"transparent-white":"transparent-gray"})]})]});return s?n.jsx(ln,{anchorRect:s,className:`tooltip-textbox ${c==="dark"?"is-dark":""}`,onClose:i,closeOnOutsideClick:l,isMobilePopup:u,ariaLabel:r||t("tooltip.textbox","\uBCF8\uBB38"),children:g}):n.jsx("div",{className:`tooltip-textbox ${c==="dark"?"is-dark":""}`,children:g})}function tc({state:e="disabled"}){const{t}=ve.useTranslation();return n.jsxs("div",{className:`ts-bullet ts-bullet--${e}`,"aria-hidden":!0,children:[n.jsx("div",{className:"bullet__dot",children:n.jsx(Qe,{icon:"chevron-right",label:t("training.next","\uB2E4\uC74C"),className:"bullet__icon",imgClassName:"bullet__icon-img",maskClassName:"bullet__icon-mask",svgClassName:"bullet__icon-svg",wrapperStyle:{},size:20})}),n.jsx("div",{className:"ts-bullet__line"})]})}function nc(e,t,a){const r=o.useRef(t),s=o.useRef(a);o.useEffect(()=>{r.current=t,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(fn)).find(m=>!m.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 ac({title:e,children:t,className:a="",state:r="disabled",usePreviewTextBtn:s=!1,onPreviewTextBtn:i,previewText:l=null,useFaded:u,usePlayAllBtn:c=!1,onPlayAll:d,playAllActive:m=!1}){const{t:p}=ve.useTranslation(),f=nn("(max-width: 767px)"),b=`training-step__title h4 ${u&&r==="disabled"?"training-step__title--faded":""} ${a}`.trim(),y=`training-step__title-row training-step__title-row--${r}`.trim(),C=o.useRef(null),[v,_]=o.useState(!1),[h,w]=o.useState(null),[g,B]=o.useState(null);nc(v&&!!h,()=>{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},()=>C.current?.querySelector("button")??null);const x=o.useRef(i);o.useEffect(()=>{x.current=i});const A=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]),N=o.useCallback(()=>{_(!1),w(null),B(null)},[]);o.useEffect(()=>{if(!v)return;let S;try{typeof x.current=="function"&&(S=x.current())}catch{}if(S===!1){N();return}B(typeof S<"u"&&S!==null?S:null)},[A]);const k=o.useCallback(()=>{let S;try{typeof i=="function"&&(S=i())}catch{}if(S!==!1){if(B(typeof S<"u"&&S!==null?S:l),!C.current){_(E=>!E);return}if(v)_(!1),w(null),B(null);else{const E=C.current.getBoundingClientRect();w(E),_(!0)}}},[i,l,v]);return n.jsxs("div",{className:y,children:[n.jsx("p",{className:b,children:n.jsx("span",{className:"training-step__title-text",children:e??t})}),s||c?n.jsxs("div",{className:"title-controls",children:[n.jsxs("div",{className:"title-buttons",children:[c&&n.jsx(pe,{htmlType:"button",size:32,type:f?"dot":"bar",icon:"play-circle",label:f?void 0:p("training.playAll","\uBAA8\uB450 \uB4E3\uAE30"),ariaLabel:p("training.playAll","\uBAA8\uB450 \uB4E3\uAE30"),selected:m,onClick:d,variant:r==="disabled"?"disabled":"default",disabled:r==="disabled"||m,onDisabledClick:m&&r!=="disabled"?()=>{}:void 0}),s&&n.jsx("div",{ref:C,children:n.jsx(pe,{htmlType:"button",size:32,type:f?"dot":"bar",icon:"eye",label:f?void 0:p("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),ariaLabel:p("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),onClick:k,className:v?"is-selected":void 0,"aria-expanded":v,"aria-haspopup":"dialog",variant:r==="disabled"?"disabled":"default",disabled:!l&&typeof i!="function"})})]}),v&&n.jsx(hr,{text:g??l,label:p("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),anchorRect:h,onClose:N,closeOnOutsideClick:!1,isMobilePopup:!0})]}):null]})}function qo(e,t){return typeof t!="number"||typeof e!="number"?"disabled":e<t?"done":e===t?"active":"disabled"}function Kn({index:e,stepIndex:t,isLast:a=!1,title:r="",titleProps:s={},children:i,className:l="",onDone:u=void 0,useTitleFaded:c=void 0}){const{t:d}=ve.useTranslation(),[m,p]=o.useState(()=>qo(e,t));o.useEffect(()=>{const B=qo(e,t);if(B!==m){const x=setTimeout(()=>p(B),0);return()=>clearTimeout(x)}},[e,t,m]);const f=o.useCallback((...B)=>{qo(e,t)==="done"||m==="done"||typeof u=="function"&&u(...B)},[e,t,m,u]),[b,y]=o.useState(!1),[C,v]=o.useState({text:"",label:"\uBB38\uC7A5 \uB4E3\uAE30",anchorRect:null,backdrop:!1,alignX:null,alignY:null}),_=o.useCallback(B=>{if(!B)return null;try{const x=B;if(typeof B=="object"&&(x.currentTarget||x.target)&&(x.nativeEvent||x.type)){const k=x.currentTarget??x.target;if(k&&typeof k.getBoundingClientRect=="function")return k.getBoundingClientRect()}if(B instanceof DOMRect)return B;const A=B;if(A&&typeof A.getBoundingClientRect=="function")return A.getBoundingClientRect();const N=B?.current;return N&&typeof N.getBoundingClientRect=="function"?N.getBoundingClientRect():null}catch{return null}},[]),h=o.useCallback((B,{text:x="",label:A="\uBB38\uC7A5 \uB4E3\uAE30",backdrop:N=!1,alignX:k="center",alignY:S="top"}={})=>{const E=_(B);v({text:x,label:A,anchorRect:E,backdrop:N,alignX:k,alignY:S}),y(!0)},[_]),w=o.useCallback(()=>{y(!1),v(B=>({...B,anchorRect:null}))},[]),g=o.Children.map(i,B=>{if(o.isValidElement(B)){const x=B;if(typeof x.type=="string")return x;const A=x.props??{},N=typeof A.onDone=="function"?A.onDone:f,k=typeof A.disabled=="boolean";let S=m==="disabled";return k&&(S=!!A.disabled),o.cloneElement(x,{onDone:N,disabled:S,showTooltip:h,hideTooltip:w})}return B});return n.jsxs("div",{className:`training-step training-step--${m} ${a?"training-step--last":""} ${l}`,"aria-current":m==="active",children:[n.jsx(tc,{state:m}),n.jsxs("div",{className:"training-step__content",children:[n.jsx(ac,{state:m,title:r,...s,useFaded:c}),g]}),b?n.jsx(ln,{anchorRect:C.anchorRect,backdrop:C.backdrop,onClose:w,ariaLabel:d("tooltip.textbox","\uBCF8\uBB38"),children:n.jsx(hr,{text:C.text,onClose:w})}):null]})}function rc({context:e,state:t="disabled",theme:a="light"}){const{t:r}=ve.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($=>$==="dark"?"light":"dark"),{increase:d,decrease:m,canIncrease:p,canDecrease:f,fontSize:b,lineHeight:y}=nl({storageKey:"textbox_fontScale"}),[C,v]=o.useState(""),_=o.useRef(null),h=o.useRef(!1),w=o.useCallback(()=>{h.current=or()&&!!_.current&&_.current.contains(document.activeElement),i("active")},[]),g=o.useCallback(()=>v(""),[]),B=$=>{try{v($)}catch{}},x=typeof navigator<"u"&&/Mobi|Android/i.test(navigator.userAgent||"");o.useEffect(()=>{if(t!=="disabled"){const $=setTimeout(()=>i(t),0);return()=>clearTimeout($)}},[t]);const A=o.useMemo(()=>e&&typeof e=="object"?String(e.sentence??e.text??""):typeof e=="string"?e:"",[e]),[N,k]=o.useState(A);N!==A&&(k(A),i("disabled"));const S=t==="disabled"?s:t,E=S==="disabled"?"training-text-box--disabled":S==="active"?"training-text-box--active":S==="done"?"training-text-box--done":"",F=o.useMemo(()=>({fontSize:`${b}px`,lineHeight:`${y}px`}),[b,y]);return o.useEffect(()=>{if(S==="disabled"||!h.current)return;h.current=!1;const $=document.activeElement;$&&$!==document.body||_.current?.querySelector(".training-text-box__buttons button")?.focus()},[S]),n.jsxs("div",{ref:_,className:`training-text-box ${E} ${S!=="disabled"&&l==="dark"?"is-dark":""}`,children:[S==="disabled"&&n.jsx("div",{className:"training-text-box__preview",children:n.jsx(pe,{htmlType:"button",size:48,type:"bar",onClick:w,icon:"eye",ariaLabel:r("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),label:r("training.sentencePreview","\uBB38\uC7A5 \uBBF8\uB9AC\uBCF4\uAE30"),useBorder:!1})}),n.jsx("div",{className:"training-text-box__area","aria-hidden":S==="disabled",children:n.jsx("span",{className:"training-text-box__inner h3",style:F,children:A})}),S!=="disabled"&&n.jsxs("div",{className:"training-text-box__buttons","aria-hidden":S==="disabled",children:[n.jsx(pe,{htmlType:"button",size:32,type:"dot",onClick:m,onDisabledClick:()=>B(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:!f,useBorder:!1,showTooltipInfo:!0,...!x&&{width:"60px"}}),n.jsx(pe,{htmlType:"button",size:32,type:"dot",onClick:d,onDisabledClick:()=>B(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:!p,useBorder:!1,showTooltipInfo:!0,...!x&&{width:"60px"}}),n.jsx(pe,{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"})]}),n.jsx(sa,{message:C,position:"top",onClose:g})]})}function Uo({index:e,stepIndex:t,isLast:a=!1,title:r,useTitleFaded:s,onDone:i,onChange:l,answer:u,wrongAnswers:c,choices:d,multiSelect:m=!1,correctCount:p=0,useDisabledCovered:f=!1,choiceIcons:b,shuffleChoices:y=!0}){const{t:C}=ve.useTranslation(),v=r??C("training.selectConfirm","\uBB38\uC81C\uB97C \uBCF4\uACE0 \uD574\uB2F9\uD558\uB294 \uB0B4\uC6A9\uC744 \uC120\uD0DD\uD558\uC138\uC694."),_=typeof e=="number"?e:-1,h=typeof t!="number"?"disabled":_<t?"done":_===t?"active":"disabled",w=Array.isArray(d)&&d.length?d:typeof u<"u"?[u].concat(Array.isArray(c)?c:[]):void 0,g=c?c.join("||"):"",B=d?d.join("||"):"",[x,A]=o.useState(()=>Array.isArray(w)?y?xa(w):w.slice():void 0);o.useEffect(()=>{Array.isArray(w)&&w.length?A(y?xa(w):w.slice()):A(void 0)},[u,g,B,y]);const[N,k]=o.useState(null),[S,E]=o.useState(()=>new Set);o.useEffect(()=>{k(null),E(new Set)},[B,u,g]);const F=o.useRef(void 0);o.useEffect(()=>{const j=F.current;typeof j=="number"&&typeof t=="number"&&typeof e=="number"&&j>=e&&t<e&&(k(null),E(new Set)),F.current=t},[t,e]);const $=o.useCallback(j=>{if(h!=="active")return;const L=x?.[j];if(L==null)return;const I=L,K=h==="active"||h==="done";if(m){const ee=new Set(S),V=ee.has(I);V?ee.delete(I):ee.add(I),E(ee),typeof l=="function"&&l({selectedValues:[...ee],__ts:Date.now()}),K&&(typeof p=="number"&&p>0?ee.size>=p:!V)&&typeof i=="function"&&h==="active"&&i({selectedValues:[...ee],__ts:Date.now()})}else k(I),typeof l=="function"&&l({selectedIndex:j,selectedValue:I,__ts:Date.now()}),K&&typeof i=="function"&&h==="active"&&i({selectedIndex:j,selectedValue:I,__ts:Date.now()})},[x,h,m,l,i,p,S]),G=`training-step__buttons${Array.isArray(x)&&x.length>3?" training-step__buttons--wrap-3":""}`;return n.jsx(Kn,{index:e,stepIndex:t,isLast:a,title:v,useTitleFaded:s,children:n.jsx("div",{className:G,children:Array.isArray(x)&&x.length>0?x.map((j,L)=>n.jsx(pe,{htmlType:"button",size:56,type:"bar",onClick:()=>$(L),ariaLabel:String(j),label:j,useLabel:!0,icon:b?b[String(j)]:void 0,variant:"default",disabled:h==="disabled",selected:m?S.has(j):N===j,useDisabledCovered:f,minWidth:0},String(j))):null})})}function Go({index:e,stepIndex:t,isLast:a=!1,title:r,onDone:s,onChange:i,context:l,demoSelected:u}){const{t:c}=ve.useTranslation(),d=r??c("training.confirmTitle","\uBB38\uC7A5\uC744 \uD655\uC778\uD558\uACE0 \uC798 \uB4E4\uB838\uB294\uC9C0 \uC120\uD0DD\uD558\uC138\uC694."),m=typeof e=="number"?e:-1,p=typeof t!="number"?"disabled":m<t?"done":m===t?"active":"disabled",f=l&&typeof l=="object"?l.sentence||"":typeof l=="string"?l:"",b=l&&typeof l=="object"?l.choices:void 0,[y,C]=o.useState(u??null),v=`${String(f)}\0${JSON.stringify(b??null)}`,[_,h]=o.useState(v);_!==v&&(h(v),u==null&&C(null));const[w,g]=o.useState(u);Object.is(w,u)||(g(u),C(u??null));const B=o.useRef(void 0);o.useEffect(()=>{const k=B.current;typeof k=="number"&&typeof t=="number"&&typeof e=="number"&&k>=e&&t<e&&u==null&&C(null),B.current=t},[t,e,u]);const x=o.useCallback(k=>{const S=typeof k=="object"&&k!==null?Object.assign({},k,{__ts:Date.now()}):{value:k,__ts:Date.now()};typeof i=="function"&&i(S),p==="active"&&typeof s=="function"&&s(S)},[i,p,s]),A=o.useCallback(()=>{p==="active"&&(C(!1),x(!1))},[x,p]),N=o.useCallback(()=>{p==="active"&&(C(!0),x(!0))},[x,p]);return n.jsxs(Kn,{index:e,stepIndex:t,isLast:a,title:d,onDone:s,useTitleFaded:!1,children:[n.jsx(rc,{context:l,state:p}),n.jsx("div",{className:"training-step__buttons",children:Array.isArray(b)&&b.length>0?b.slice(0,6).map((k,S)=>n.jsx(pe,{htmlType:"button",size:56,type:"bar",onClick:()=>{p==="active"&&(C(S),x&&x(S))},disabled:p==="disabled",ariaLabel:String(k),label:k,variant:p,selected:y===S},S)):n.jsxs(n.Fragment,{children:[n.jsx(pe,{htmlType:"button",size:56,type:"bar",onClick:A,disabled:p==="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}),n.jsx(pe,{htmlType:"button",size:56,type:"bar",onClick:N,disabled:p==="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 Ko({index:e,stepIndex:t,isLast:a=!1,title:r,onDone:s,btnLabel:i,soundSrc:l,bucketPath:u,usePreviewTextBtn:c,previewText:d=null,onPreviewTextBtn:m,disabled:p,_pageIndex:f,showSoundWaveForm:b,showNoiseWaveForm:y,leadInMs:C,tailMs:v}){const{t:_}=ve.useTranslation(),h=r??_("training.listenTitle","\uC81C\uC2DC\uD558\uB294 \uBB38\uC7A5\uC744 \uB4E4\uC5B4\uC8FC\uC138\uC694."),w=p??(typeof t=="number"&&typeof e=="number"?e>t:!1);return n.jsx(Kn,{index:e,stepIndex:t,isLast:a,title:h,onDone:s,titleProps:{usePreviewTextBtn:c,previewText:d,onPreviewTextBtn:m},children:n.jsx(Wo,{soundSrc:l,ttsText:l?null:d??h,bucketPath:u,btnLabel:i||_("training.listenButton","\uBB38\uC7A5 \uB4E3\uAE30"),disabled:w,className:"training-step__listen-sticky",showSoundWaveForm:b,showNoiseWaveForm:y,leadInMs:C,tailMs:v},`audio-p${f??0}-s${e}`)})}const B3=[];function Yo({index:e,stepIndex:t,isLast:a=!1,title:r,onDone:s,onChange:i,context:l=B3}){const{t:u}=ve.useTranslation(),c=r??u("training.orderListDefault","\uBB38\uC7A5\uC744 \uB4E4\uC740 \uC21C\uC11C\uB300\uB85C \uBC30\uCE58\uD558\uC138\uC694."),d=O=>typeof O=="string"?O:O&&(O.context||O.sentence||O.question||"")||"",[m,p]=o.useState(Array.isArray(l)?l:[]),[f,b]=o.useState(()=>(m||[]).map((O,D)=>({id:D,text:d(O)}))),y=o.useMemo(()=>typeof t!="number"||typeof e!="number"?"disabled":e<t?"done":e===t?"active":"disabled",[t,e]),C=y!=="disabled",v=o.useRef(void 0);o.useEffect(()=>{if(v.current===l)return;v.current=l;const O=Array.isArray(l)?l:[];p(O);const D=(H=>{const M=(H||[]).map((X,Z)=>({id:Z,text:d(X)}));if(M.length<=1)return M;const P=(X,Z)=>{if(X.length!==Z.length)return!1;for(let ne=0;ne<X.length;ne++)if(X[ne].text!==Z[ne].text)return!1;return!0};let z=xa(M),Y=0;for(;P(z,M)&&Y<20;)z=xa(M),Y+=1;return z})(O);b(D);try{if(typeof i=="function"){const H=D.filter((M,P)=>M.text===d(O[P])).length;i({shuffled:D,score:H,total:(O||[]).length,initial:!0,__ts:Date.now()})}if(typeof s=="function"&&y==="active"){const H=D.filter((M,P)=>M.text===d(O[P])).length;s({shuffled:D,score:H,total:(O||[]).length,initial:!0,__ts:Date.now()})}}catch{}},[l]);const _=(O,D)=>{const H=[...f],M=O+D;if(M<0||M>=H.length)return;const P=H[M];H[M]=H[O],H[O]=P,L(H);try{if(typeof s=="function"&&y==="active"){const z=H.filter((Y,X)=>Y.text===d(m[X])).length;s({shuffled:H,score:z,total:(m||[]).length,__ts:Date.now()})}}catch{}},[h,w]=o.useState(null),g=o.useRef(null),B=o.useRef(null),x=o.useRef(null),A=o.useRef(null),N=o.useRef(null),k=o.useRef({x:0,y:0}),S=o.useRef(null),E=o.useRef({dx:0,dy:0}),F=()=>{if(S.current!==null)return;const O=()=>{if(!g.current){S.current=null;return}S.current=requestAnimationFrame(O);const D=k.current,H=E.current||{dx:0,dy:0};g.current&&(g.current.style.transform=`translate3d(${D.x-H.dx}px, ${D.y-H.dy}px, 0)`)};S.current=requestAnimationFrame(O)},$=o.useRef(new Map),G=o.useRef(new Map),j=()=>{const O=new Map;return $.current.forEach((D,H)=>{D&&D.getBoundingClientRect&&O.set(H,D.getBoundingClientRect())}),O},L=O=>{const D=j();b(O);try{if(typeof i=="function"){const H=O.filter((M,P)=>M.text===d(m[P])).length;i({shuffled:O,score:H,total:(m||[]).length,__ts:Date.now()})}}catch{}requestAnimationFrame(()=>{const H=j();O.forEach(M=>{const P=D.get(M.id),z=H.get(M.id),Y=$.current.get(M.id);if(!Y||!P||!z)return;const X=P.top-z.top;X&&(Y.style.transition="none",Y.style.transform=`translateY(${X}px)`,requestAnimationFrame(()=>{Y.style.transition="transform 420ms cubic-bezier(.22,.9,.39,1)",Y.style.transform="";const Z=()=>{Y.style.transition="",Y.removeEventListener("transitionend",Z)};Y.addEventListener("transitionend",Z)}))})})},I=(O,D)=>{try{try{D.dataTransfer?.setData("text/plain",String(O))}catch{}try{D.dataTransfer&&(D.dataTransfer.effectAllowed="move")}catch{}try{const H=document.createElement("div");H.style.cssText="position:absolute;top:-9999px;left:-9999px;width:1px;height:1px;opacity:0;pointer-events:none;",document.body.appendChild(H),D.dataTransfer?.setDragImage(H,0,0),requestAnimationFrame(()=>{try{document.body.removeChild(H)}catch{}})}catch{}}catch{}w(O);try{const H=f[O],M=document.createElement("div");M.className="order-list__dragging-object order-list__dragging-object--visible",M.textContent=H&&H.text?H.text:"",document.body.appendChild(M),g.current=M;const P=$.current.get(H.id);let z=D.clientX||0,Y=D.clientY||0;try{if(P&&P.getBoundingClientRect){const Ee=P.getBoundingClientRect();z=Ee.left+Ee.width/2,Y=Ee.top+Ee.height/2}}catch{}const X=M.getBoundingClientRect(),Z=X.width/2,ne=X.height/2;E.current={dx:Z,dy:ne},M.style.transition="none",k.current={x:z,y:Y},M.style.transform=`translate3d(${z-Z}px, ${Y-ne}px, 0)`,requestAnimationFrame(()=>{try{M.style.transition=""}catch{}F()});const le=Ee=>{const W=Ee;k.current={x:W.clientX,y:W.clientY},F()};x.current=le,document.addEventListener("mousemove",le);const ie=Ee=>{const W=Ee;k.current={x:W.clientX,y:W.clientY},F()};B.current=ie,document.addEventListener("dragover",ie);try{D.dataTransfer?.setData("text/plain",String(O));try{D.dataTransfer?.setData("application/json",JSON.stringify({idx:O}))}catch{}}catch{}}catch{}},K=(O,D)=>{D.preventDefault();try{D.dataTransfer&&(D.dataTransfer.dropEffect="move")}catch{}try{N.current!==null&&(clearTimeout(N.current),N.current=null);const H=D.currentTarget&&D.currentTarget.closest?D.currentTarget.closest(".order-list__item"):null;if(H&&A.current!==H){if(A.current)try{A.current.classList.remove("drag-over")}catch{}try{H.classList.add("drag-over")}catch{}A.current=H}}catch{}},ee=(O,D)=>{D.preventDefault();const H=D.dataTransfer?.getData("text/plain")||"",M=H?parseInt(H,10):h,P=O;if(typeof M!="number"||isNaN(M)||M===P){w(null),R(),V();return}const z=TC(f,M,P);L(z),w(null),V();try{if(typeof s=="function"&&y==="active"){const Y=z.filter((X,Z)=>X.text===d(m[Z])).length;s({shuffled:z,score:Y,total:(m||[]).length,__ts:Date.now()})}}catch{}try{requestAnimationFrame(()=>{const Y=document.querySelectorAll(".order-list .order-list__item")[P];if(!Y)return;const X=Y.querySelector(".order-list__slot")||Y;try{X.classList.add("pulse"),X.offsetHeight,X.classList.add("to-dark");const Z=()=>{X.classList.remove("pulse","to-dark"),X.removeEventListener("transitionend",Z)};X.addEventListener("transitionend",Z)}catch{}})}catch{}R()},V=()=>{if(g.current){try{document.body.removeChild(g.current)}catch{}g.current=null}B.current&&(document.removeEventListener("dragover",B.current),B.current=null),x.current&&(document.removeEventListener("mousemove",x.current),x.current=null),S.current!==null&&(cancelAnimationFrame(S.current),S.current=null)},q=()=>{w(null),R(),V()};o.useEffect(()=>()=>V(),[]);const R=()=>{try{if(N.current!==null&&(clearTimeout(N.current),N.current=null),A.current){try{A.current.classList.remove("drag-over")}catch{}A.current=null}document.querySelectorAll(".order-list .order-list__item").forEach(O=>O.classList.remove("drag-over"))}catch{}};return o.useEffect(()=>{try{const O=Math.max(1,(f||[]).length);f.forEach((D,H)=>{const M=G.current.get(D.id);if(!M)return;let P=50;O>1&&(P=Math.round(H/(O-1)*100));try{M.style.setProperty("--marker-pos",P+"%")}catch{}})}catch{}},[f]),o.useEffect(()=>()=>{V(),N.current!==null&&(clearTimeout(N.current),N.current=null)},[]),n.jsx(Kn,{index:e,stepIndex:t,isLast:a,title:c,children:n.jsx("div",{className:"order-list",children:f.map((O,D)=>{const H=Math.max(1,(f||[]).length),M=H>1?Math.round(D/(H-1)*100):50;return n.jsx("div",{className:"order-list__item",children:n.jsxs("div",{className:"order-list__slot","data-disabled":y==="disabled","aria-disabled":y==="disabled",children:[y!=="disabled"?n.jsx("div",{className:"order-list__marker caption-1",style:{"--marker-pos":M+"%"},ref:P=>{const z=G.current;P?z.set(O.id,P):z.delete(O.id)},children:n.jsx("span",{className:"order-list__slot-number button-1",children:D+1})}):null,n.jsxs("div",{ref:P=>{const z=$.current;P?z.set(O.id,P):z.delete(O.id)},className:`order-list__draggable ${h===D?"dragging":""}`,"data-disabled":y==="disabled","aria-disabled":y==="disabled",tabIndex:y==="disabled"?-1:0,draggable:C,onDragStart:C?P=>I(D,P):void 0,onDragEnter:C?P=>K(D,P):void 0,onDragOver:C?P=>K(D,P):void 0,onDragLeave:C?()=>{try{N.current!==null&&clearTimeout(N.current),N.current=setTimeout(()=>{try{const P=document.querySelectorAll(".order-list .order-list__item");P&&P[D]&&(P[D].classList.remove("drag-over"),A.current===P[D]&&(A.current=null))}catch{}},80)}catch{}}:void 0,onDrop:C?P=>ee(D,P):void 0,onDragEnd:C?q:void 0,children:[n.jsx("span",{className:"order-list__item-text body-2",children:O.text}),C?n.jsxs("span",{className:"order-list__item-buttons",children:[n.jsx(pe,{htmlType:"button",size:32,type:"dot",onClick:()=>_(D,-1),ariaLabel:u("training.up"),icon:"chevron-up",variant:"transparent-gray",width:48,useFaded:"true",disabled:D===0,useBorder:!1,useDisabledInvisible:!0}),n.jsx(pe,{htmlType:"button",size:32,type:"dot",onClick:()=>_(D,1),ariaLabel:u("training.down"),icon:"chevron-down",variant:"transparent-gray",width:48,useFaded:"true",disabled:D===f.length-1,useBorder:!1,useDisabledInvisible:!0})]}):null]})]})},O.id)})})})}const A3=8e3;function k3(e,t){return new Promise(a=>{let r=!1;const s=()=>{r||(r=!0,a())};e.then(s,s),setTimeout(s,t)})}function oc({index:e,stepIndex:t,isLast:a=!1,title:r,onDone:s,onChange:i,context:l=[],selectable:u=!1,hideLabel:c=!1,hideAudio:d=!1,maxCards:m,playAllGapMs:p=0}){const{t:f}=ve.useTranslation(),b=r??f("training.cardInstructions","\uB0B1\uB9D0 \uCE74\uB4DC\uB97C \uBCF4\uACE0 \uC18C\uB9AC\uB97C \uB4E3\uACE0 \uD655\uC778\uD558\uC138\uC694."),y=o.useMemo(()=>Array.isArray(l)?l:l&&l.items||[],[l]),C=m??3,v=(y||[]).slice(0,C);(y||[]).length>C&&console.warn(`TrainingStepCard: ${y.length} items passed but only ${C} shown`);const _=typeof e=="number"?e:-1,h=typeof t!="number"?"disabled":_<t?"done":_===t?"active":"disabled",[w,g]=o.useState(null),B=o.useRef([]),[x,A]=o.useState(!1),N=o.useRef(null),k=o.useRef(!0);o.useEffect(()=>(k.current=!0,()=>{k.current=!1}),[]);const S=o.useMemo(()=>y.map(L=>L?.id??L?.word??"").join("|"),[y]);o.useEffect(()=>{g(null)},[S]);const E=o.useRef(void 0);o.useEffect(()=>{const L=E.current;typeof L=="number"&&typeof t=="number"&&typeof e=="number"&&L>=e&&t<e&&g(null),E.current=t},[t,e]);const F=o.useCallback((L,I)=>{if(u)return;const K={item:L,index:I,__ts:Date.now()};try{typeof i=="function"&&i(K)}catch{}if(h==="active"&&typeof s=="function")try{s(K)}catch{}},[u,i,h,s]),$=o.useRef(p);o.useEffect(()=>{$.current=Math.max(0,p||0)},[p]);const G=o.useCallback(async()=>{if(x||h==="disabled")return;A(!0);let L=!1;const I=new Promise(K=>{N.current=()=>{L=!0,K()}});try{for(let K=0;K<v.length&&!(!k.current||L);K++){const ee=B.current[K];if(!ee)continue;await Promise.race([k3(ee.play(),A3),I]);const V=Math.max(0,$.current||0);V>0&&K<v.length-1&&!L&&k.current&&await Promise.race([new Promise(q=>{setTimeout(q,V)}),I])}}finally{N.current=null,A(!1)}},[x,h,v.length]),j=o.useCallback((L,I)=>{if(h!=="active")return;g(I);const K={selectedValue:L.word||L.title||"",selectedIndex:I,item:L,__ts:Date.now()};try{typeof i=="function"&&i(K)}catch{}if(h==="active"&&typeof s=="function")try{s(K)}catch{}},[i,h,s]);return n.jsx(Kn,{index:e,stepIndex:t,isLast:a,title:b,onDone:s,titleProps:{usePlayAllBtn:!d&&v.length>0,onPlayAll:G,playAllActive:x},children:n.jsx("div",{className:"training-step__cards",onClickCapture:L=>{const I=N.current;if(!I)return;const K=L.target;K&&typeof K.closest=="function"&&K.closest(".training-word-card__bottom")&&I()},children:v.length===0?n.jsx("div",{className:"training-step__empty",children:f("training.noCards","\uCE74\uB4DC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")}):v.map((L,I)=>n.jsx(Eo,{ref:K=>{B.current[I]=K},item:L,disabled:h==="disabled",onPlayDone:()=>F(L,I),selectable:u,selected:u&&w===I,onSelect:u?()=>j(L,I):void 0,flipDelay:I*120,hideLabel:c,hideAudio:d},L&&L.id||I))})})}const N3=160,D3={\uBCF4\uCCAD\uAE30:"hearingAid",\uC778\uACF5\uC640\uC6B0:"cochlearImplant"};function E3(e,t){const a=D3[e];return a?t(`device.type.${a}`,{defaultValue:e}):e}const sc=()=>{};function Mn(e){const t=o.useId();if(!("variant"in e)){const{label:h,sub:w,onClick:g,children:B,align:x="horizontal",icon:A,useFullWidth:N=!1}=e,k=S=>{g&&S.target===S.currentTarget&&(S.key==="Enter"||S.key===" ")&&(S.preventDefault(),g())};return n.jsxs("div",{className:Ae("panel-row",x==="vertical"?"panel-row--vertical":"",N?"panel-row--label-fixed panel-row--fill":"",g?"panel-row--clickable":""),onClick:g,onKeyDown:g?k:void 0,role:g?"button":void 0,tabIndex:g?0:void 0,children:[A!=null&&n.jsx("div",{className:"panel-row__icon",children:A}),h!=null&&n.jsxs("div",{className:"panel-row__left",children:[n.jsx("div",{className:"panel-row__label body-3",children:h}),w&&n.jsx("div",{className:"panel-row__sub caption-1",children:w})]}),n.jsx("div",{className:"panel-row__right",children:B})]})}if(e.variant==="description")return n.jsx("div",{className:"panel-row panel-row--block",children:n.jsx("p",{className:"panel-row__description body-3",children:e.children})});if(e.variant==="empty")return n.jsx("div",{className:"panel-row panel-row--empty body-3",children:e.children});if(e.variant==="loading")return n.jsx("div",{className:"panel-row panel-row--loading",children:n.jsx($a,{size:28})});if(e.variant==="custom"&&!e.label)return n.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:m}=e,p=a==="button"?void 0:i;let f=null;const b=a==="toggle"?`panel-toggle-${t}`:void 0,y=u?`panel-error-${t}`:void 0,C=`panel-helper-${t}`;if(a==="toggle"){const h=e;f=n.jsx(Vl,{checked:h.checked,onChange:h.onChange,id:b})}else if(a==="segmented"){const h=e;f=n.jsx(An,{options:h.options,value:h.value,onChange:h.onChange,size:h.size??40,ariaLabel:r})}else if(a==="dropdown"){const h=e,w=h.dropdowns?.length?n.jsx("div",{className:`panel-row__dropdown-group${d?" panel-row__dropdown-group--full":""}`,children:h.dropdowns.map((g,B)=>n.jsx("div",{className:d?"panel-row__dropdown-item--full":void 0,children:n.jsx(cn,{options:g.options,value:g.value,onChange:g.onChange,placeholder:g.placeholder,block:d,error:!!u,ariaDescribedBy:y,ariaLabel:g.ariaLabel??([r,g.placeholder].filter(Boolean).join(" ")||void 0)})},B))}):n.jsx(cn,{options:h.options??[],value:h.value??"",onChange:h.onChange??sc,block:d,error:!!u,ariaLabel:r,ariaDescribedBy:y});f=u?n.jsxs("div",{className:`panel-row__dropdown-error-wrap${d?" panel-row__dropdown-error-wrap--full":""}`,children:[w,n.jsx("span",{id:y,className:"caption-1 panel-row__error",role:"alert",children:u})]}):w}else if(a==="button"){const h=e;h.buttons?.length?f=n.jsx("div",{className:"panel-row__button-group",children:h.buttons.map((w,g)=>n.jsx(pe,{htmlType:"button",size:w.btnSize??40,variant:w.btnVariant??"default",disabled:w.disabled,onClick:w.onClick,children:w.label},g))}):f=n.jsx(pe,{htmlType:"button",size:h.btnSize??40,variant:h.btnVariant??"default",disabled:h.disabled,onClick:h.onClick,children:h.buttonLabel})}else if(a==="text"){const h=e;f=n.jsx("span",{className:`panel-row__text body-2${d?" panel-row__text--full":""}`,style:h.valueColor?{color:h.valueColor}:void 0,children:h.value})}else if(a==="input"){const h=e;f=n.jsxs("div",{className:`panel-row__input-wrap${d?" panel-row__input-wrap--full":""}`,children:[n.jsx(Gn,{value:h.value,onChange:h.onChange??sc,onKeyDown:h.onKeyDown,onEnter:h.onEnter,placeholder:h.placeholder,ghostText:h.ghostText,ghostHint:h.ghostHint,inputMode:h.inputMode,readOnly:h.readOnly,disabled:h.disabled,type:h.type,autoComplete:h.autoComplete,maxLength:h.maxLength,showCount:h.showCount,multiline:h.multiline,rows:h.rows,fullWidth:d,error:u,ariaLabel:r,required:l,ariaDescribedBy:h.helperText?C:void 0}),h.helperText&&n.jsx("div",{id:C,className:"panel-row__helper caption-1",children:h.helperText})]})}else a==="custom"&&(f=e.children);u&&a!=="input"&&a!=="dropdown"&&(f=n.jsxs("div",{className:`panel-row__dropdown-error-wrap${d?" panel-row__dropdown-error-wrap--full":""}`,children:[f,n.jsx("span",{id:y,className:"caption-1 panel-row__error",role:"alert",children:u})]}));const v=a==="input"||a==="dropdown"||(a==="text"||a==="custom")&&d,_=h=>{p&&h.target===h.currentTarget&&(h.key==="Enter"||h.key===" ")&&(h.preventDefault(),p())};return n.jsxs("div",{className:Ae("panel-row",c==="vertical"?"panel-row--vertical":"",v?"panel-row--label-fixed":"",a==="text"?"panel-row--text":"",p?"panel-row--clickable":""),onClick:p,onKeyDown:p?_:void 0,role:p?"button":void 0,tabIndex:p?0:void 0,children:[m!=null&&n.jsx("div",{className:"panel-row__icon",children:m}),n.jsxs("div",{className:"panel-row__left",children:[b?n.jsxs("label",{htmlFor:b,className:"panel-row__label body-3",children:[r,l&&n.jsx("span",{className:"required-mark",children:"*"})]}):n.jsxs("div",{className:"panel-row__label body-3",children:[r,l&&n.jsx("span",{className:"required-mark",children:"*"})]}),s&&n.jsx("div",{className:"panel-row__sub caption-1",children:s})]}),n.jsx("div",{className:"panel-row__right",children:f})]})}function ic(e){const t=e.productName||e.brand,a=[e.brand,e.fitType].filter(r=>!!r&&r!==t);return[...new Set(a)].join(" \xB7 ")}function S3({devices:e,onRelease:t,emptyLabel:a}){const{t:r}=ve.useTranslation();return n.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 n.jsxs("div",{className:"panel-row__device-column",children:[n.jsxs("div",{className:"panel-row__device-head",children:[n.jsx("span",{className:"panel-row__device-side body-2b",children:l}),i&&t&&n.jsx(pe,{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:()=>t(s)})]}),i?n.jsxs("div",{className:"panel-row__device-info",children:[n.jsxs("span",{className:"panel-row__device-kind",children:[i.device&&n.jsx(kt,{size:"small",variant:iu(i.device),fill:"soft",label:E3(i.device,r)}),ic(i)&&n.jsx("span",{className:"panel-row__device-detail body-3",children:ic(i)})]}),n.jsx("span",{className:"panel-row__device-name body-2b",children:i.productName||i.brand}),ko(i.wornYear,i.wornMonth,i.wornDay)&&n.jsx("span",{className:"panel-row__device-date caption-1",children:r("customers.device.wornSince",{date:ko(i.wornYear,i.wornMonth,i.wornDay)})})]}):n.jsx("span",{className:"panel-row__device-empty body-3",children:a??r("customers.device.notRegistered","\uBBF8\uB4F1\uB85D")})]},s)})})}function Cr({title:e,titleLevel:t=2,icon:a,disc:r,actions:s,size:i="medium",minHeight:l,maxWidth:u,className:c,scrollable:d,scrollbarGutter:m="auto",compactRows:p=!1,useBorder:f=!0,useBg:b=!0,useRowBorder:y=!0,labelWidth:C,form:v=!1,loading:_,empty:h,children:w}){const g=Ae("panel",`panel--${i}`,v?"panel--form":"",l!==void 0?"panel--fill":"",f?"":"panel--no-border",b?"":"panel--no-bg",y?"":"panel--no-row-border",p?"panel--compact-rows":"",c),B={};l!==void 0&&(B.minHeight=l),u!==void 0&&(B.maxWidth=typeof u=="number"?`${u}px`:u),C!==void 0&&(B["--panel-label-width"]=typeof C=="number"?`${C}px`:C);const x=t?`h${t}`:"div";return n.jsxs("div",{className:g,style:Object.keys(B).length?B:void 0,children:[(!!e||r!=null)&&n.jsxs("div",{className:Ae("panel__header",r!=null?"panel__header--with-disc":""),children:[a&&n.jsx(Qe,{icon:a,label:typeof e=="string"?e:void 0,className:"panel__icon"}),n.jsxs("div",{className:"panel__title-group",children:[!!e&&n.jsx(x,{className:`panel__title ${r!=null?"body-3b":"h5b"}`,children:e}),r!=null&&n.jsx("p",{className:"panel__disc caption-1",children:r})]}),s&&n.jsx("div",{className:"panel__actions",children:s})]}),_?n.jsx(Mn,{variant:"loading"}):h!=null&&o.Children.toArray(w).length===0?n.jsx(Mn,{variant:"empty",children:h}):d?n.jsx("div",{className:Ae("panel__body--scroll",m==="stable"&&"panel__body--gutter-stable"),children:w}):w]})}function j3({cols:e=2,layout:t="grid",gap:a=1,collapseAt:r,className:s,style:i,children:l}){const u=o.useRef(null),[c,d]=o.useState();o.useEffect(()=>{const p=u.current;if(r===void 0||!p||(d(p.clientWidth),typeof ResizeObserver>"u"))return;const f=new ResizeObserver(([b])=>d(b.contentRect.width));return f.observe(p),()=>f.disconnect()},[r]);const m=r!==void 0&&c!==void 0&&c<=r;return n.jsx("div",{ref:u,className:Ae("panel-grid",t==="columns"&&"panel-grid--columns",s),style:{"--panel-grid-cols":m?1:e,"--panel-grid-gap":typeof a=="number"?`${a}px`:a,...i},children:l})}function T3(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 lc(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"}]}T3($t.t.bind($t)),lc($t.t.bind($t));const Zo="none",M3=.5,L3=1.5,$3=.25;function Xo({title:e,valueLabel:t,value:a,min:r,max:s,step:i,tickStep:l,size:u,onChange:c}){return n.jsxs(Mn,{variant:"custom",label:e,useFullWidth:!0,children:[n.jsx(nu,{value:a,onChange:c,min:r,max:s,step:i,size:u,showBgTick:!0,tickStep:l,ariaLabel:e,className:"noise-settings__slider-input"}),n.jsx("div",{className:"noise-settings__value button-1",children:t})]})}function uc({anchorRect:e,onClose:t}){const{t:a}=ve.useTranslation(),r=nn("(max-width: 767px)")?40:24,s=cr(),i=Ia(s?.settings??Oa),l=s?.settings.type??"defaultNoise",u=s?.settings.enabled??!0,c=s?.playbackRate??1,d=s?.mainVolume??1,m=Math.round(d*100),p=o.useCallback(C=>{try{s?.setMainVolume(Math.max(0,Math.min(1,C/100)))}catch{}},[s]),f=o.useCallback(C=>{try{s?.setPlaybackRate(C)}catch{}},[s]),b=o.useCallback(C=>{const v=Math.min(Pa,Math.max(0,Math.round(C*10)/10));try{s?.setSettings({noiseRatio:v})}catch{}},[s]),y=o.useCallback(C=>{try{C===Zo?s?.setSettings({enabled:!1}):s?.setSettings({type:C,enabled:!0})}catch{}},[s]);return n.jsx(ln,{anchorRect:e,offset:12,onClose:t,ariaLabel:a("training.trainingSettingsTitle","\uD6C8\uB828 \uC124\uC815"),isMobilePopup:!1,closeOnOutsideClick:!1,header:n.jsxs("div",{className:"noise-settings__header",children:[n.jsx("span",{children:a("training.trainingSettingsTitle","\uD6C8\uB828 \uC124\uC815")}),n.jsx(pe,{htmlType:"button",size:40,type:"dot",icon:"x",variant:"transparent-gray",useBorder:!1,ariaLabel:a("common.close","\uB2EB\uAE30"),onClick:t})]}),children:n.jsxs(Cr,{className:"noise-settings",useBorder:!1,labelWidth:72,children:[n.jsx(Xo,{title:a("training.playVolumeTitle","\uC804\uCCB4 \uC18C\uB9AC"),valueLabel:`${m}%`,value:m,min:0,max:100,step:10,size:r,onChange:p}),n.jsx(Xo,{title:a("training.playSpeedTitle","\uC7AC\uC0DD \uC18D\uB3C4"),valueLabel:`${c.toFixed(2)}x`,value:c,min:M3,max:L3,step:$3,size:r,onChange:f}),n.jsx(Mn,{variant:"custom",label:a("training.noiseTypeTitle","\uC18C\uC74C \uC885\uB958"),useFullWidth:!0,children:n.jsx(An,{ariaLabel:a("training.noiseTypeTitle","\uC18C\uC74C \uC885\uB958"),size:40,shape:"rounded",options:[{key:Zo,label:a("training.noise.type.none","\uC5C6\uC74C")},...lc(a).map(C=>({key:C.value,label:C.label}))],value:u?l:Zo,onChange:y})}),n.jsx(Xo,{title:a("training.noiseRatioTitle","\uC18C\uC74C \uBE44\uC728"),valueLabel:a("training.noiseRatioValue","{{ratio}}\uBC30",{ratio:i.toFixed(1)}),value:i,min:0,max:Pa,step:Wu,size:r,onChange:b})]})})}function cc({useNoiseSettingBtn:e=!1,onSettings:t,onNext:a,onResult:r,stepIndex:s=0,stepCount:i=0,pageIndex:l=0,pageCount:u=1,resultOpen:c=!1}){const{t:d}=ve.useTranslation(),[m,p]=o.useState(!1),[f,b]=o.useState(null),[y,C]=o.useState(!1),v=o.useRef(null),_=o.useRef(null),h=cr(),w=u>0,g=w&&l<u-1,B=!w||l>=u-1,x=s===Math.max(0,i);o.useEffect(()=>{e||(p(!1),b(null))},[e]);const A=o.useCallback(()=>{p(!1),b(null)},[]),N=o.useCallback(()=>{if(m){p(!1),b(null);return}const I=v?.current?.getBoundingClientRect();I&&b(I),t?.(),p(!0)},[m,t]),k=o.useCallback(()=>{if(m){p(!1),b(null);return}const I=_?.current?.getBoundingClientRect();I&&b(I),t?.(),p(!0)},[m,t]),S=nn("(max-width: 767px)"),E=o.useRef(null),[F,$]=o.useState(null),G=o.useCallback(()=>{C(I=>{const K=!I;return $(K?E.current?.getBoundingClientRect()??null:null),K})},[]),j=o.useCallback(()=>{C(!1),$(null)},[]);o.useEffect(()=>{c&&(C(!1),$(null))},[c]);const L=n.jsxs(n.Fragment,{children:[n.jsxs("div",{className:"pp-bottom__meter",children:[n.jsx("span",{className:"pp-bottom__meter-label caption-1",children:d("training.meter.sentence","\uC7AC\uC0DD")}),n.jsx(wo,{analyser:h?.mainAnalyser??null,orientation:"horizontal",length:112,label:"db",labelPos:"left",ariaLabel:d("training.meter.sentence","\uC7AC\uC0DD")})]}),n.jsxs("div",{className:"pp-bottom__meter",children:[n.jsx("span",{className:"pp-bottom__meter-label caption-1",children:d("training.meter.noise","\uC18C\uC74C")}),n.jsx(wo,{analyser:h?.noiseAnalyser??null,orientation:"horizontal",length:112,label:"db",labelPos:"left",ariaLabel:d("training.meter.noise","\uC18C\uC74C")})]})]});return nc(e&&m,()=>typeof document<"u"?document.querySelector(".noise-settings__header")?.closest(".tooltip-content")??null:null,()=>[v.current,_.current].map(I=>I?.querySelector("button")??null).find(I=>!!I&&I.getClientRects().length>0)??v.current?.querySelector("button")??null),n.jsxs("div",{className:"pp-bottom",children:[n.jsxs("div",{className:"pp-bottom__left",children:[e?n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"pp-bottom__settings--desktop",children:n.jsx("div",{ref:v,className:"pp-bottom__tooltip-trigger","data-tooltip-ignore":!0,children:n.jsx(pe,{htmlType:"button",size:56,type:"bar",icon:"settings",onClick:N,className:m?"is-selected":void 0,"aria-expanded":m,"aria-haspopup":"dialog",ariaLabel:d("training.trainingSettingsTitle","\uD6C8\uB828 \uC124\uC815"),label:d("training.trainingSettingsTitle","\uD6C8\uB828 \uC124\uC815"),minWidth:140})})}),n.jsx("div",{className:"pp-bottom__settings--mobile",children:n.jsx("div",{ref:_,className:"pp-bottom__tooltip-trigger","data-tooltip-ignore":!0,children:n.jsx(pe,{htmlType:"button",size:56,type:"dot",shape:"pill",icon:"settings",onClick:k,className:m?"is-selected":void 0,"aria-expanded":m,"aria-haspopup":"dialog",ariaLabel:d("training.settings","\uC124\uC815")})})})]}):null,e&&n.jsx("div",{ref:E,className:"pp-bottom__meter-trigger","data-tooltip-ignore":!0,children:n.jsx(pe,{htmlType:"button",size:40,type:"dot",shape:"pill",icon:"audio-lines",onClick:G,selected:y,"aria-expanded":S?y:void 0,ariaLabel:d("training.meter.toggle","\uC624\uB514\uC624 \uBBF8\uD130 \uD45C\uC2DC")})}),e&&y&&!S&&n.jsx("div",{className:"pp-bottom__meters",children:L})]}),e&&y&&S&&F&&n.jsx(ln,{anchorRect:F,onClose:j,ariaLabel:d("training.meter.toggle","\uC624\uB514\uC624 \uBBF8\uD130 \uD45C\uC2DC"),children:n.jsx("div",{className:"pp-bottom__meters pp-bottom__meters--floating",children:L})}),n.jsxs("div",{className:"pp-bottom__right",children:[B&&n.jsx(pe,{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:!x}),g&&n.jsx(pe,{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:!x})]}),e&&m&&n.jsx(uc,{anchorRect:f,onClose:A})]})}function dc({title:e,subtitle:t,desc:a,depth:r,icon:s,wrapperStyle:i,iconTooltip:l,pageIndex:u,pageCount:c,progressMax:d,progressIndex:m,onBack:p,onClose:f}){const{t:b}=ve.useTranslation(),y=nn("(max-width: 767px)"),C=Number.isInteger(m)?m:u||0,v=Number.isInteger(d)?d:c||0,_=p||f,h=Array.isArray(r)?y?r[r.length-1]:r.join(" / "):r,w=typeof e=="string"?e.trim():e,g=typeof t=="string"?t.trim():t,B=!!(w||g),x=B?w||g:b("common.emptyTrainingName","\uD6C8\uB828 \uC774\uB984\uC774 \uBE44\uC5B4 \uC788\uC2B5\uB2C8\uB2E4."),A=h||(w?t:void 0),N=y&&typeof A=="string"&&(A.includes(" \xB7 ")||A.includes(" / "))?A.split(/\s[·/]\s/).pop():A,k=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 n.jsxs("header",{className:"pp-title training-popup-title",children:[n.jsxs("div",{className:"pp-title__left",children:[_?n.jsx(pe,{htmlType:"button",size:48,type:"dot",icon:"chevron-left",ariaLabel:b("common.back","\uB4A4\uB85C"),onClick:_,useBorder:!1,iconSize:"large",iconColor:"--color-black",variant:"transparent-gray"}):null,n.jsx("div",{children:s?n.jsx(Ll,{icon:s,label:e,tooltip:l,wrapperStyle:k}):null}),n.jsxs("div",{className:"pp-title__text",children:[N?n.jsx("span",{className:"pp-title__depth caption-1",children:N}):null,n.jsx("span",{className:`pp-title__title h2${B?"":" pp-title__title--empty"}`,children:x}),a?n.jsx("span",{className:"pp-title__description caption-1",children:a}):null]})]}),n.jsx(su,{max:Math.max(0,v??0),index:Math.max(0,C??0)})]})}function R3(){typeof window<"u"&&window.dispatchEvent(new CustomEvent("speechear.popup.close"))}function P3(e){return!e&&e!==0?[]:Array.isArray(e)?e.flatMap(t=>typeof t=="string"?t.split("|").map(a=>a.trim()).filter(Boolean):t||t===0?[String(t)]:[]):typeof e=="string"?e.split("|").map(t=>t.trim()).filter(Boolean):[String(e)]}const pc=(e,t)=>{if(!t)return t;const a=typeof $t?.t=="function"?$t.t(e,{defaultValue:t}):void 0;return typeof a=="string"&&a?a:t};function mc(e,t,a){const r=e,s=r?.title||r?.name||(Array.isArray(t)?t[t.length-1]:void 0)||a||"\uD6C8\uB828",i=hi().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:t,icon:i?.icon,wrapperStyle:i?.color?{"--t-item-fg":i.color}:void 0,iconTooltip:[i?pc(`topic.${i.key}`,i.label):void 0,l?pc(`topic.sub.${l.key}`,l.label):void 0].filter(Boolean).join(" / ")||void 0}}function Jo(e){return e&&typeof e=="object"&&typeof e.__ts=="number"?e.__ts:0}function hc(e,t,a){if(!e||typeof e!="object"||Array.isArray(e))return e;const r=e,s=typeof a=="number"&&a>0?a:Date.now();return{...r,...r.shownAt===void 0&&t?{shownAt:t}:{},...r.answeredAt===void 0?{answeredAt:new Date(s).toISOString()}:{}}}function I3(e){const t=e;return Array.isArray(t?.items)?t.items:Array.isArray(e)?e:e?[e]:[]}function F3({idPrefix:e,trainingData:t,depth:a,fallbackTitle:r="\uD6C8\uB828",pages:s=[],emptyMessage:i,buildResults:l,metaPatch:u}){const c=mc(t,a,r),d=typeof u=="function"?u(c)||{}:u||{},m=t?.id||t?.title||s.length;return{id:`${e}:${m}`,meta:{...c,...d},pages:s,emptyMessage:i,buildResults:l}}function O3(e){if(typeof e=="string")return e;if(e&&typeof e=="object"){const t=e;return t.context||t.sentence||t.question||""||""}return""}function H3(e){if(e&&typeof e=="object"){const t=e;if(Array.isArray(t.selectedValues))return t.selectedValues;if(t.selectedValue!==void 0)return t.selectedValue;if(t.selectedIndex!==void 0)return t.selectedIndex;if(t.value!==void 0)return t.value}return e}function z3(e,t=[]){if(Array.isArray(e))return e.join(", ");if(typeof e=="number"&&Array.isArray(t))return String(t[e]??"");if(typeof e=="string")return e}function Cc(e,t){if(!(!e||typeof e!="object"))return e[`step-${t}`]}function V3(e,t,a,r){return Cc(e,t*a+r)}function W3({payload:e,selected:t,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 t=="number"&&Array.isArray(a)&&a.length)return r.some(s=>String(s)===String(a[t]));if(typeof t<"u")return r.some(s=>String(s)===String(t))}}function q3(e){return e?Array.isArray(e.items)?e.items.map(t=>{const a=t;return typeof t=="string"?{sentence:t}:{sentence:a.context||a.sentence||"",contextCode:a.contextCode||a.context_code}}):Array.isArray(e.sentences)?e.sentences.map(t=>{const a=t;return typeof t=="string"?{sentence:t}:{sentence:a.sentence||a.context||"",contextCode:a.contextCode}}):Array.isArray(e.contexts)?e.contexts:e.contextCode?[{contextCode:e.contextCode}]:[]:[]}const fc=o.createContext(null);function U3(){const e=o.useContext(fc);if(!e)throw new Error("useTrainingPagePopupContext must be used inside TrainingPagePopup");return e}function G3({index:e,stepIndex:t,isLast:a=!1,title:r,choices:s=[],onDone:i,onChange:l}){const{t:u}=ve.useTranslation(),c=typeof e=="number"?e:-1,d=typeof t!="number"?"disabled":c<t?"done":c===t?"active":"disabled",[m,p]=o.useState(()=>s.map(()=>null)),f=JSON.stringify(s),b=s.length;o.useEffect(()=>{p(Array.from({length:b},()=>null))},[f]);const y=o.useRef(void 0);o.useEffect(()=>{const h=y.current;typeof h=="number"&&typeof t=="number"&&typeof e=="number"&&h>=e&&t<e&&p(Array.from({length:b},()=>null)),y.current=t},[t,e,b]);const C=o.useMemo(()=>m.filter(h=>h!==null).length+1,[m]),v=o.useCallback(h=>{if(d!=="active")return;const w=m;let g;if(w[h]!=null){const x=w[h];g=w.map(A=>A!==null&&A>=x?null:A)}else g=[...w],g[h]=C;p(g);const B={selectedOrder:g,words:s,__ts:Date.now()};try{typeof l=="function"&&l(B)}catch{}if(w[h]==null&&g.length>0&&g.every(x=>x!==null))try{typeof i=="function"&&i(B)}catch{}},[d,m,C,l,i,s]),_=r??u("training.selectInOrder","\uB4E4\uC740 \uC21C\uC11C\uB300\uB85C \uCE74\uB4DC\uB97C \uC120\uD0DD\uD558\uC138\uC694.");return n.jsx(Kn,{index:e,stepIndex:t,isLast:a,title:_,onDone:i,children:n.jsx("div",{className:"training-step__cards",children:s.map((h,w)=>n.jsx(Eo,{item:{word:h},disabled:d==="disabled",selectable:!0,selected:m[w]!==null,orderRank:m[w],onSelect:()=>v(w),flipDelay:w*120,hideLabel:!1,hideAudio:!0},`${h}-${w}`))})})}function fr(e){return null}fr.__isTrainingPage=!0;function ma(e,t){const a=U3();return{ctx:a,index:e,stepIndex:a.currentStepIndex,isLast:typeof e=="number"&&typeof t=="number"?e===t-1:!1,onDone:r=>a.handleStepDone(r,e),onChange:r=>a.handleStepChange(r,e)}}function gc({_stepIndex:e,_totalSteps:t,...a}){const{index:r,stepIndex:s,isLast:i,onDone:l}=ma(e,t);return n.jsx(Ko,{...a,index:r,stepIndex:s,isLast:i,onDone:l})}function bc({_stepIndex:e,_totalSteps:t,...a}){const{index:r,stepIndex:s,isLast:i,onDone:l,onChange:u}=ma(e,t);return n.jsx(Uo,{...a,index:r,stepIndex:s,isLast:i,onDone:l,onChange:u})}function yc({_stepIndex:e,_totalSteps:t,...a}){const{index:r,stepIndex:s,isLast:i,onDone:l,onChange:u}=ma(e,t);return n.jsx(Go,{...a,index:r,stepIndex:s,isLast:i,onDone:l,onChange:u})}function vc({_stepIndex:e,_totalSteps:t,...a}){const{index:r,stepIndex:s,isLast:i,onDone:l,onChange:u}=ma(e,t);return n.jsx(Yo,{...a,index:r,stepIndex:s,isLast:i,onDone:l,onChange:u})}function xc({_stepIndex:e,_totalSteps:t,...a}){const{index:r,stepIndex:s,isLast:i,onDone:l,onChange:u}=ma(e,t);return n.jsx(oc,{...a,index:r,stepIndex:s,isLast:i,onDone:l,onChange:u})}function K3({_stepIndex:e,_totalSteps:t,...a}){const{index:r,stepIndex:s,isLast:i,onDone:l,onChange:u}=ma(e,t);return n.jsx(G3,{...a,index:r,stepIndex:s,isLast:i,onDone:l,onChange:u})}function Qo(...e){for(const t of e)if(typeof t=="string"){const a=t.trim();if(a.length)return a}else{if(typeof t=="number"||typeof t=="boolean")return String(t);if(Array.isArray(t)&&t.length)return t.join(", ");if(t&&typeof t=="object"){const a=t,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 Y3(e){return Qo(e?.question,e?.q,e?.sentence,e?.text,e?.prompt,e?.wording)}function _c(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 t=Qo(e?.status,e?.result,e?.judge,e?.note);if(t){const a=t.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 wc(e){const{score:t,contextsLength:a,results:r=[],subtitle:s,onReplay:i,onClose:l,inline:u=!1,pending:c=!1}=e||{},{t:d}=ve.useTranslation(),m=o.useId(),p=o.useCallback(()=>!c,[c]);o.useEffect(()=>{const h=a??0;if(t!=null&&h>0&&t/h>.5){const w=window.setTimeout(()=>{window.dispatchEvent(new CustomEvent("party:trigger",{detail:{count:140,strength:1.6,duration:2200}}))},0);return()=>window.clearTimeout(w)}},[t,a]);const f=o.useCallback(h=>{const w=_c(h),g=Qo(h?.wording,h?.label);return w===!0?{variant:"main",label:g??d("training.result.heardWell","\uC798 \uB4E4\uC5C8\uC5B4\uC694")}:w===!1?{variant:"danger",label:g??d("training.result.notHeard","\uBABB \uB4E4\uC5C8\uC5B4\uC694")}:{variant:"disabled",label:g??d("training.result.notJudged","\uBBF8\uD310\uC815")}},[d]),b=a??0,y=t??0,C=o.useMemo(()=>Array.isArray(r)?r:[],[r]),v=o.useMemo(()=>C.map(h=>{const w=h??{},g=Y3(w)||d("training.result.noContent","(\uB0B4\uC6A9\uC5C6\uC74C)"),{variant:B,label:x}=f(w),A=Array.isArray(w.corrects)?w.corrects:[],N=A.length?A.join(", "):w.answer!=null&&w.answer!==""?String(w.answer):null,k=typeof w.selectedText=="string"?w.selectedText:null,S=_c(w)===!0;return{problem:g,variant:B,label:x,answer:N,selectedText:k,isCorrect:S}}),[C,f,d]),_=o.useMemo(()=>v.some(h=>h.answer!==null||h.selectedText!==null),[v]);return n.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:p,footerClassName:"trp-result__foot",footer:({animateThen:h,closeWithAnimation:w})=>n.jsxs(n.Fragment,{children:[c&&n.jsx("p",{id:m,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.")}),n.jsxs("div",{className:"trp-actions",children:[n.jsx(pe,{htmlType:"button",size:56,type:"bar",label:d("training.result.replay","\uB2E4\uC2DC\uD558\uAE30"),onClick:()=>h(i)}),n.jsx(pe,{htmlType:"button",size:56,type:"bar",label:d("training.result.done","\uC644\uB8CC"),variant:"main",onClick:w,disabled:c,onDisabledClick:c?()=>{}:void 0,"aria-describedby":c?m:void 0})]})]}),children:()=>n.jsxs("div",{className:"trp-result is-on",children:[n.jsxs("header",{className:"trp-result__head",children:[n.jsx("p",{className:"trp-result__eyebrow caption-1",children:d("training.result.eyebrow","\uD6C8\uB828 \uC644\uB8CC")}),n.jsx("h1",{className:"trp-result__title h2",children:d("training.result.title","\uD6C8\uB828\uC744 \uBAA8\uB450 \uB9C8\uCCE4\uC2B5\uB2C8\uB2E4.")}),s&&n.jsx("p",{className:"trp-result__subtitle body-3",children:s}),n.jsx("div",{className:"trp-score",children:n.jsxs("div",{className:"trp-score__figure","aria-label":d("training.result.scoreAria",{correct:y,total:b}),children:[n.jsx("span",{className:"trp-score__big",children:y}),n.jsx("span",{className:"trp-score__sep",children:"/"}),n.jsx("span",{className:"trp-score__total",children:b})]})})]}),v.length>0&&n.jsx("section",{className:"trp-result__body",children:n.jsxs("div",{className:`result-table${_?" result-table--answer":""}`,role:"table","aria-label":d("training.result.tableAriaLabel","\uBB38\uD56D\uBCC4 \uD310\uC815"),children:[n.jsxs("div",{className:"result-table__head caption-1",role:"row",children:[n.jsx("span",{role:"columnheader",children:d("common.col.problem","\uBB38\uC81C")}),_&&n.jsx("span",{role:"columnheader",children:d("training.result.colAnswerSelected","\uC815\uB2F5 \xB7 \uC120\uD0DD")}),n.jsx("span",{className:"col-right",role:"columnheader",children:d("training.result.colJudge","\uD310\uC815")})]}),v.map((h,w)=>n.jsxs("div",{className:"result-table__row",role:"row",children:[n.jsxs("div",{className:"trp-row__problem",children:[n.jsx("span",{className:"trp-row__no caption-1",children:String(w+1).padStart(2,"0")}),n.jsx("div",{className:"trp-row__q body-2",children:h.problem})]}),_&&n.jsxs("div",{className:"trp-row__answers",children:[h.answer!==null&&n.jsxs("div",{className:"trp-row__answer-line",children:[n.jsx("span",{className:"trp-row__answer-label answer-correct caption-1",children:d("training.result.colAnswer","\uC815\uB2F5")}),n.jsx("span",{className:"trp-row__answer-value body-2",children:h.answer})]}),n.jsxs("div",{className:"trp-row__answer-line",children:[n.jsx("span",{className:`trp-row__answer-label answer-selected caption-1 ${h.isCorrect?"is-correct":"is-wrong"}`,children:d("training.result.colSelected","\uC120\uD0DD")}),n.jsx("span",{className:`trp-row__answer-value body-2 ${h.isCorrect?"is-correct":"is-wrong"}`,children:h.selectedText??"\u2014"})]})]}),n.jsx("div",{className:"trp-row__judge",children:n.jsx(kt,{variant:h.variant,label:h.label,fill:"soft",minWidth:80})})]},w))]})})]})})}function Z3(e){o.useEffect(()=>{if(!e)return;const t=()=>typeof document>"u"||document.visibilityState!=="hidden";let a=null,r=null,s=0,i=0;const l=()=>{const m=Date.now();a==null&&(a=m),r==null&&(r=m)},u=()=>{r!=null&&(s+=Date.now()-r,r=null)};t()&&l();const c=()=>{if(u(),a==null||s-i<1e3||i===0&&s<5e3)return;const m=a+i;i=s,$C({trainingType:e,startedAt:new Date(m).toISOString(),endedAt:new Date(a+s).toISOString()})},d=()=>{t()?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 gr(e,t){return e&&e.id||`page-${t??0}`}function br(e,t){return e&&e.key||`step-${t??0}`}function yr(){return{pageIndex:0,stepIndex:0,answersByPage:{}}}function X3(e,t){return typeof e?.props=="function"?e.props(t)||{}:e?.props||{}}const J3=300,Q3=()=>{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 Ac(e){const t=e,a=t?.results||t?.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 e7=e=>n.jsx(wc,{score:e.score,contextsLength:e.contextsLength,results:e.results,onReplay:e.onReplay,onClose:e.onClose,pending:e.pending});function t7(e){const{scenario:t,title:a,subTitle:r,depth:s,icon:i,wrapperStyle:l,iconTooltip:u,pageIndex:c,pageCount:d,stepIndex:m,stepCount:p,onBack:f,onComplete:b,onNext:y,onSettings:C,useNoiseSetting:v=!0,children:_,ariaLabel:h,label:w,buildResults:g,onResult:B,typeKey:x,entryPoint:A,dailyTotal:N,itemRef:k,renderResultPopup:S,noiseOverride:E}=e;Z3(x&&!Bc.has(x)?x:"");const F=o.useRef(0);o.useEffect(()=>{F.current=Date.now()},[]);const{t:$}=ve.useTranslation(),G=B,j=!!t,L=t?.id||null,I=t?.meta||{},K=Array.isArray(t?.pages)?t.pages:[],ee=Array.isArray(_)||o.isValidElement(_)&&typeof _!="function"?o.Children.toArray(_).filter(o.isValidElement):[],V=ee.length>0,q=oe=>oe===fr||oe?.__isTrainingPage===!0,R=V&&ee.some(oe=>q(oe.type)),O=R?ee.filter(oe=>q(oe.type)).map((oe,xe)=>{const je=oe.props||{};return{id:`children-page-${xe}`,steps:o.Children.toArray(je.children).filter(o.isValidElement),pageTop:je.pageTop||je.top||null,pageBottom:je.pageBottom||je.bottom||null}}):[{id:"children-page-0",steps:ee}],D=V&&!j&&typeof _!="function",H=D?Math.max(1,O.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 oe=document.body;return oe.dataset.ihabTrainingPopupCount=String(Number(oe.dataset.ihabTrainingPopupCount||"0")+1),oe.classList.add("ihab-training-popup-open"),()=>{const xe=Number(oe.dataset.ihabTrainingPopupCount||"1")-1;xe>0?oe.dataset.ihabTrainingPopupCount=String(xe):(delete oe.dataset.ihabTrainingPopupCount,oe.classList.remove("ihab-training-popup-open"))}},[]),o.useEffect(()=>{if(!(typeof document>"u"||!document.body))return P4()},[]);const[M,P]=o.useState({...Oa,enabled:!1}),z=o.useRef(M);o.useEffect(()=>{z.current=M},[M]);const Y=o.useRef(E),X=o.useRef(!1),Z=o.useRef(null);o.useEffect(()=>{let oe=!1;const xe=je=>{if(oe)return;X.current=!0;const Ve=je?Fa({...Oa,enabled:!1},je):{...Oa},Me=Z.current;Z.current=null;const We=Me?Fa(Ve,Me):Ve;z.current=We,P(We),Me&&!Y.current&&ui(We),Ga(We);const qe=Y.current;if(qe){const dt=typeof qe=="function"?qe(We):qe,Et=Fa(We,dt);z.current=Et,P(Et),Ga(Et)}};return FC().then(xe),()=>{oe=!0}},[]);const[ne,le]=o.useState(null),[ie,Ee]=o.useState(null),W=o.useCallback((oe,xe)=>{oe==="main"?le(xe):Ee(xe)},[]),ae=o.useRef(null),fe=o.useRef(null),Ne=o.useCallback(()=>{fe.current!==null&&(clearTimeout(fe.current),fe.current=null);const oe=ae.current;ae.current=null,oe&&ui(oe)},[]);o.useEffect(()=>{if(typeof window>"u")return;const oe=()=>{document.visibilityState==="hidden"&&Ne()};return window.addEventListener("pagehide",Ne),document.addEventListener("visibilitychange",oe),()=>{window.removeEventListener("pagehide",Ne),document.removeEventListener("visibilitychange",oe),Ne()}},[Ne]);const ge=o.useCallback(oe=>{const xe=Fa(z.current,oe);if(z.current=xe,P(xe),!X.current){Z.current={...Z.current??{},...oe},Ga(xe);return}Y.current||(ae.current=xe,fe.current!==null&&clearTimeout(fe.current),fe.current=setTimeout(Ne,J3)),Ga(xe)},[Ne]),te=M.mainSpeed,ce=M.mainVolume,de=o.useCallback(oe=>ge({mainSpeed:oe}),[ge]),he=o.useCallback(oe=>ge({mainVolume:oe}),[ge]),ye=o.useMemo(()=>({settings:M,setSettings:ge,registerAnalyser:W,mainAnalyser:ne,noiseAnalyser:ie,playbackRate:te,setPlaybackRate:de,mainVolume:ce,setMainVolume:he}),[M,ge,W,ne,ie,te,de,ce,he]),Se=o.useRef(null),[Ge,ze]=o.useState(0),Pe=o.useRef([]),[Ie,Ct]=o.useState("center"),[ut,at]=o.useState(!1),ct=o.useRef(!1),ke=o.useRef(null),Fe=o.useCallback(oe=>{ct.current||(ct.current=!0,at(!0),ke.current=setTimeout(()=>{try{oe()}catch{ct.current=!1,at(!1)}},Q3()?0:N3))},[]);o.useEffect(()=>()=>{ke.current&&clearTimeout(ke.current)},[]);const Be=o.useRef(f);o.useEffect(()=>{Be.current=f}),o.useEffect(()=>{const oe=Se.current,xe=document.activeElement;if(Yr(oe,xe),oe){const je=Array.from(oe.querySelectorAll(fn)).filter(Ve=>!Ve.closest('[aria-hidden="true"]'))[0];if(je)try{je.focus()}catch{}}return()=>{const je=document.activeElement;if(!je||je===document.body||oe&&oe.contains(je))try{Zr(xe)?.focus?.()}catch{}}},[]),o.useEffect(()=>Vn(()=>Fe(()=>{const oe=Be.current;typeof oe=="function"&&oe()})),[Fe]),Gr(Se,!0);const[Je,J]=o.useState(!1),se=o.useRef(!1),[Ce,De]=o.useState(null),tt=o.useRef(0),Ze=()=>{tt.current+=1,De(null)},[yt,mt]=o.useState(""),[rt,ot]=o.useState(()=>yr()),st=o.useRef(typeof c=="number"?c:null);o.useEffect(()=>{!j&&!D||(ot(yr()),Ze())},[j,L,D]),o.useEffect(()=>{D&&ot(oe=>{const xe=Math.max(0,Math.min(oe.pageIndex,Math.max(0,H-1)));return xe!==oe.pageIndex?{...oe,pageIndex:xe,stepIndex:0}:oe})},[D,H]);const nt=D?Math.max(0,Math.min(rt.pageIndex,H-1)):0,$e=D?O[nt]:null,Ue=D&&$e&&Array.isArray($e.steps)?$e.steps:[],He=j?rt.pageIndex:D?nt:typeof c=="number"?c:0,ht=j?K[Math.max(0,Math.min(rt.pageIndex,Math.max(0,K.length-1)))]:null,Nt=j&&ht&&Array.isArray(ht.steps)?ht.steps:[],jt=j?Nt.length:D?Ue.length:typeof p=="number"?p:0,gt=j||D?Math.max(0,Math.min(rt.stepIndex,Math.max(0,jt))):typeof m=="number"?m:0,xt=j?K.length:D?H:typeof d=="number"?d:0;o.useEffect(()=>{if(!j&&!D)return;const oe=j?gr(ht,He):$e?.id||`children-page-${He??0}`,xe=new Date().toISOString();for(let je=0;je<=gt;je+=1){const Ve=j?br(Nt[je],je):`step-${je}`,Me=Vt(oe,Ve);Tt.current.has(Me)||Tt.current.set(Me,xe)}},[j,D,He,gt,$e?.id]),o.useLayoutEffect(()=>{const oe=st.current;if(typeof He=="number"&&oe!==null&&He!==oe&&He>oe)try{mt($("training.problemNotice",{n:He+1}))}catch{}st.current=typeof He=="number"?He:st.current},[He,c,$]),o.useLayoutEffect(()=>{const oe=Se.current;if(!oe)return;const xe=()=>oe.querySelector(".page-popup__scroll");let je=null,Ve=null,Me=null;const We=_e=>{const Le=xe();if(!Le)return;const Ye=Le.scrollHeight<=Le.clientHeight;if(Ct(Ye?"center":"top"),_e&&!se.current){se.current=!0;try{J(!0)}catch{}try{Et.disconnect()}catch{}}},qe=()=>{je!==null&&cancelAnimationFrame(je),je=requestAnimationFrame(()=>{Ve!==null&&clearTimeout(Ve),Ve=setTimeout(()=>We(!0),60)})},dt=()=>{Me!==null&&cancelAnimationFrame(Me),Me=requestAnimationFrame(()=>We(!1))};qe(),window.addEventListener("resize",dt);const Et=new MutationObserver(qe);Et.observe(oe,{childList:!0,subtree:!0,attributes:!0});const re=setTimeout(()=>{se.current||We(!0)},400);return()=>{window.removeEventListener("resize",dt),je!==null&&cancelAnimationFrame(je),Ve!==null&&clearTimeout(Ve),Me!==null&&cancelAnimationFrame(Me),clearTimeout(re);try{Et.disconnect()}catch{}}},[Se]);const Oe=o.useCallback(oe=>{Se.current&&(Se.current._childOnNext=oe)},[]),it=o.useCallback(oe=>{Se.current&&(Se.current._childOnResult=oe)},[]),Tt=o.useRef(new Map),Vt=(oe,xe)=>`${oe}\0${xe}`,Xe=o.useCallback((oe,xe,je)=>{ot(Ve=>{const Me=Ve.answersByPage[oe]||{},We=Me[xe],qe=Jo(je),dt=Jo(We);if(We&&dt>qe)return Ve;const Et=hc(je,Tt.current.get(Vt(oe,xe)),qe);return{...Ve,answersByPage:{...Ve.answersByPage,[oe]:{...Me,[xe]:Et}}}})},[ot]),wt=o.useCallback((oe,xe,je)=>{const Ve=gr(ht,He),Me=br(oe,xe);Xe(Ve,Me,je)},[ht,He,Xe]),Bt=o.useCallback((oe,xe,je)=>{const Ve=gr(ht,He),Me=br(oe,xe);Xe(Ve,Me,je),!je?.allowChange&&oe?.autoAdvance!==!1&&ot(We=>({...We,stepIndex:Math.max(We.stepIndex,xe+1)}))},[ht,He,Xe,ot]),Wt=o.useCallback((oe,xe)=>{const je=$e?.id||`children-page-${He??0}`,Ve=typeof xe=="number"?xe:gt??0,Me=`step-${Ve}`;Xe(je,Me,oe),oe?.allowChange||ot(We=>({...We,stepIndex:Math.max(We.stepIndex,Ve+1)}))},[$e,He,gt,Xe,ot]),an=o.useCallback((oe,xe)=>{const je=$e?.id||`children-page-${He??0}`,Ve=`step-${typeof xe=="number"?xe:gt??0}`;Xe(je,Ve,oe)},[$e,He,gt,Xe]),rn=D?{currentPageIndex:He??0,currentStepIndex:gt??0,totalStepsInPage:Ue.length,handleStepDone:Wt,handleStepChange:an}:null,bn=async()=>{const oe=typeof t?.buildResults=="function"?await Promise.resolve(t.buildResults({scenario:t,pages:K,flowState:rt,answersByPage:rt.answersByPage})):null;return typeof G=="function"&&await Promise.resolve(G(oe))||oe},Rn=async()=>{const oe=$e?.id||`children-page-${rt.pageIndex}`,xe=rt.answersByPage[oe]||{},je=R?(()=>{const We={};let qe=0;return O.forEach(dt=>{const Et=rt.answersByPage[dt.id]||{},re=Array.isArray(dt.steps)?dt.steps.length:0;for(let _e=0;_e<re;_e+=1){const Le=Et[`step-${_e}`];typeof Le<"u"&&(We[`step-${qe+_e}`]=Le)}qe+=re}),We})():xe;if(typeof g=="function"){const We=await Promise.resolve(g(je,{pageAnswers:xe,answersByPage:rt.answersByPage,pages:O,currentPageId:oe}));return typeof G=="function"&&await Promise.resolve(G(We))||We}const Ve=Object.entries(xe).map(([We,qe],dt)=>({index:dt,key:We,payload:qe})),Me={results:Ve,answers:Ve,score:0};return typeof G=="function"&&await Promise.resolve(G(Me))||Me},yn=()=>{const oe=++tt.current,xe=()=>oe!==tt.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(j){const Me=bn();De(Ln);const We=Me;Promise.resolve(We).then(qe=>{xe()||De(qe||{isEmpty:!0})}).catch(qe=>{!xe()&&De({isEmpty:!0})});return}if(D){const Me=Rn();De(Ln);const We=Me;Promise.resolve(We).then(qe=>{xe()||De(qe||{isEmpty:!0})}).catch(qe=>{!xe()&&De({isEmpty:!0})});return}const je=Se.current&&Se.current._childOnResult,Ve=Me=>{try{return Me?Me():void 0}catch{return}};if(typeof je=="function"){const Me=Ve(je);try{typeof document>"u"?require("url").pathToFileURL(__filename).href:vn&&vn.tagName.toUpperCase()==="SCRIPT"&&vn.src||new URL("components.cjs.js",document.baseURI).href}catch{}Me&&typeof Me.then!="function"?De(Me):De(Me&&typeof Me.then=="function"?Ln:{});const We=()=>{xe()||De(qe=>qe===Ln?{}:qe)};Promise.resolve(Me).then(qe=>{qe&&!xe()?De(qe):We()}).catch(qe=>{We()});return}if(typeof G=="function"){const Me=Ve(G);try{typeof document>"u"?require("url").pathToFileURL(__filename).href:vn&&vn.tagName.toUpperCase()==="SCRIPT"&&vn.src||new URL("components.cjs.js",document.baseURI).href}catch{}Me&&typeof Me.then!="function"?De(Me):De(Me&&typeof Me.then=="function"?Ln:{});const We=()=>{xe()||De(qe=>qe===Ln?{}:qe)};Promise.resolve(Me).then(qe=>{try{typeof document>"u"?require("url").pathToFileURL(__filename).href:vn&&vn.tagName.toUpperCase()==="SCRIPT"&&vn.src||new URL("components.cjs.js",document.baseURI).href}catch{}qe&&!xe()?De(qe):We()}).catch(qe=>{console.error("viewResults external handler failed",qe),We()});return}},Pn=()=>{if(j){if(typeof He=="number"&&typeof xt=="number"&&He<xt-1){ot(xe=>({...xe,pageIndex:xe.pageIndex+1,stepIndex:0}));return}return yn()}if(D){const xe=Ue.length;if(typeof gt=="number"&><xe-1){ot(je=>({...je,stepIndex:je.stepIndex+1}));return}if(typeof He=="number"&&typeof xt=="number"&&He<xt-1){ot(je=>({...je,pageIndex:je.pageIndex+1,stepIndex:0}));return}return yn()}if(typeof y=="function"){try{y()}catch{}return}const oe=Se.current&&Se.current._childOnNext;if(typeof oe=="function"){try{oe()}catch{}return}},dn=j?I.title||I.label||h||$("common.popup","\uD31D\uC5C5"):a||w||(Array.isArray(s)?s[s.length-1]:void 0)||h||$("common.popup","\uD31D\uC5C5"),Ft=h||dn,pn=j?I.title??I.label??dn:a??w??dn,qt=(oe,xe)=>{const je=gr(ht,He),Ve=br(oe,xe),Me=rt.answersByPage[je]?.[Ve],We=X3(oe,{page:ht,pageIndex:He,step:oe,stepIndex:xe,storedPayload:Me,answersByPage:rt.answersByPage,flowState:rt}),qe={key:Ve,index:xe,stepIndex:gt,isLast:xe===Nt.length-1};switch(oe?.type){case"listen":return n.jsx(Ko,{...qe,...We,onDone:dt=>Bt(oe,xe,dt)});case"confirm":return n.jsx(Uo,{...qe,...We,onDone:dt=>Bt(oe,xe,dt),onChange:dt=>wt(oe,xe,dt)});case"confirmWithText":return n.jsx(Go,{...qe,...We,onDone:dt=>Bt(oe,xe,dt),onChange:dt=>wt(oe,xe,dt)});case"orderList":return n.jsx(Yo,{...qe,...We,onDone:dt=>Bt(oe,xe,dt),onChange:dt=>wt(oe,xe,dt)});default:return null}},Pt=o.useRef(void 0);o.useEffect(()=>{const oe=Pt.current;if(Pt.current=He,oe===void 0||oe===He||!or())return;const xe=Se.current;if(!xe)return;const je=document.activeElement;if(!(!je||je===document.body||!xe.contains(je)||je.disabled===!0))return;const Ve=xe.querySelector(`.training-steps ${fn.split(", ").join(", .training-steps ")}`)??Array.from(xe.querySelectorAll(fn)).find(Me=>!Me.closest('[aria-hidden="true"]'));try{Ve?.focus()}catch{}},[He]);const In=j?K.length>0?n.jsx("div",{className:"training-steps",children:Nt.map((oe,xe)=>qt(oe,xe))},`replay-${Ge}`):n.jsx("div",{className:`page-popup__content page-popup__content--center${e.contentFull?" page-popup__content--full":""}`,children:n.jsx("div",{className:"pp-empty",children:t?.emptyMessage||$("training.noQuestions","\uBB38\uC81C\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")})}):null,mn=D?n.jsxs(fc.Provider,{value:rn,children:[$e?.pageTop?n.jsx("div",{className:"training-page-top",children:$e.pageTop}):null,n.jsx("div",{className:"training-steps",children:Ue.map((oe,xe)=>{const je=oe;return o.cloneElement(je,{...je.props,_stepIndex:xe,_totalSteps:Ue.length,_stepKey:`step-${xe}`,_pageIndex:He})})},`replay-${Ge}`),$e?.pageBottom?n.jsx("div",{className:"training-page-bottom",children:$e.pageBottom}):null]}):null,hn=o.useCallback(()=>{let oe;if(x){const xe=Ce,{results:je,correct:Ve,total:Me}=Ac(Ce);RC({items:IC(je),category:Bc.has(x)?"sentence":"word",trainingType:x,entryPoint:A??"sentence",itemRef:k??null,correct:Ve,total:Me,score:typeof xe?.score=="number"?xe.score:null,durationSeconds:Math.max(0,Math.round((Date.now()-F.current)/1e3)),dailyTotal:N??null}),oe={correct:Ve,total:Me,attempt:Pe.current.length+1,previousAttempts:[...Pe.current]}}Ze(),Fe(()=>{typeof b=="function"&&b(oe),typeof f=="function"&&f()})},[b,f,x,A,N,k,Ce,De,Fe]),Fn=o.useCallback(()=>mt(""),[mt]),Cn=o.useCallback(()=>{Fe(()=>{typeof f=="function"&&f()})},[f,Fe]),Mt=n.jsxs("div",{className:`page-popup${ut?" page-popup--closing":""}`,role:"dialog","aria-modal":"true","aria-label":Ft,children:[n.jsxs("div",{ref:Se,className:`page-popup__panel ${Je?"":"page-popup__panel--measuring"} ${Ie==="center"?"page-popup__panel--center":Ie==="top"?"page-popup__panel--top":""}`,children:[n.jsx(dc,{title:pn,subtitle:j?I.subtitle||I.label:Array.isArray(s)?s.join(" / "):void 0,desc:j?void 0:r,depth:j?I.depth:s,icon:j?I.icon:i,wrapperStyle:j?I.wrapperStyle:l,iconTooltip:j?I.iconTooltip:u,progressMax:xt,progressIndex:He,pageIndex:He,pageCount:xt,onBack:Cn,onClose:Cn}),n.jsx("div",{className:"page-popup__scroll",children:n.jsx("div",{className:`page-popup__content ${Ie==="center"?"page-popup__content--center":"page-popup__content--top"}${e.contentFull?" page-popup__content--full":""}`,children:D?mn:j?In:typeof _=="function"?_({registerOnNext:Oe,registerOnResult:it,panelRef:Se,setResultOverlay:De}):_})}),n.jsx(cc,{onSettings:C,onNext:Pn,onResult:yn,useNoiseSettingBtn:!!(j?I.useNoiseSetting??!0:v),stepIndex:gt,stepCount:jt,pageIndex:He,pageCount:xt,resultOpen:!!(Ce&&!Ce.isEmpty)})]}),Ce&&!Ce.isEmpty&&(S??e7)({score:Ce.score,results:Ce.results||Ce.answers||[],contextsLength:Ce.results?Ce.results.length:Ce.answers?Ce.answers.length:0,onReplay:()=>{if(F.current=Date.now(),Ce!==Ln){const{correct:oe,total:xe}=Ac(Ce);Pe.current.push({correct:oe,total:xe})}if(Ze(),ze(oe=>oe+1),j){if(ot(yr()),typeof t?.onReplay=="function")try{t.onReplay()}catch{}return}if(D){ot(yr());return}try{const oe=Se.current&&Se.current._childOnResult;typeof oe=="function"&&oe({replay:!0})}catch{}},onClose:hn,pending:Ce===Ln}),Ce?.isEmpty&&n.jsx("div",{className:"page-popup page-popup--result-empty",role:"dialog","aria-modal":"true","aria-label":$("training.result.eyebrow","\uD6C8\uB828 \uC644\uB8CC"),children:n.jsxs("div",{className:"page-popup__panel page-popup__panel--center",children:[n.jsx("div",{className:"page-popup__scroll",children:n.jsx("div",{className:`page-popup__content page-popup__content--center${e.contentFull?" page-popup__content--full":""}`,children:n.jsx("div",{className:"page-popup__empty",children:$("training.result.eyebrow","\uD6C8\uB828 \uC644\uB8CC")})})}),n.jsx("div",{className:"page-popup__bottom",children:n.jsx(pe,{htmlType:"button",variant:"main",size:48,onClick:hn,label:$("training.result.done","\uC644\uB8CC")})})]})}),n.jsx(sa,{message:yt,position:"top",onClose:Fn})]}),Ut=n.jsx(Oo.Provider,{value:ye,children:Mt});return typeof document<"u"&&document.body?Qt.createPortal(Ut,document.body):Ut}const $n=t7;$n.Page=fr,$n.ListenStep=gc,$n.ConfirmStep=bc,$n.ConfirmWithTextStep=yc,$n.OrderListStep=vc,$n.CardStep=xc,$n.CardOrderStep=K3;function n7({label:e,homonum:t}){const a=Qn()?.(e,t)??"",{imgRef:r,loading:s,hasImage:i,onLoad:l,onError:u}=Do(a);return i?n.jsxs("div",{className:"tooltip-word-image__cell",children:[s&&n.jsx("div",{className:"tooltip-word-image__spinner"}),n.jsx("img",{ref:r,src:a,alt:e,draggable:!1,style:{opacity:s?0:1},onLoad:l,onError:u})]}):n.jsx("div",{className:"tooltip-word-image__cell tooltip-word-image__cell--text h3",children:n.jsx("span",{children:e})})}function kc({words:e,anchorRect:t}){const a=o.useRef(null),[r,s]=o.useState(null);return o.useLayoutEffect(()=>{if(!t||!a.current)return;const{offsetWidth:i,offsetHeight:l}=a.current,u=window.innerWidth;let c=t.left+t.width/2-i/2,d=t.top-l-8;d<8&&(d=t.bottom+8),c=Math.max(8,Math.min(c,u-i-8)),s({left:c,top:d})},[t]),!t||e.length===0?null:Qt.createPortal(n.jsx("div",{ref:a,className:"tooltip-word-image",style:{visibility:r?"visible":"hidden",left:r?.left??0,top:r?.top??-9999},children:n.jsx("div",{className:"tooltip-word-image__cells",children:e.map(i=>n.jsx(n7,{label:i.label,homonum:i.homonum},`${i.label}_${i.homonum??1}`))})}),document.body)}const a7=new Intl.Collator("ko");function r7({titleIcon:e,resultCount:t,resultUnit:a,searchQuery:r,items:s,groups:i,selected:l=[],onSelect:u,maxSelect:c,onClearSelection:d,onPrint:m,onPrintEmpty:p,className:f,emptyHint:b,sectionType:y="page",disc:C}){const{t:v,i18n:_}=ve.useTranslation(),h=_.language?.startsWith("ko")??!1,{anchorRect:w,openAt:g,close:B}=Aa(),[x,A]=o.useState(null),N=o.useCallback(()=>{B(),A(null)},[B]);gb(N,!!x);const k=(r??"").trim(),S=/^[^,[\]\s]+$/.test(k)?k:"",E=S.length>0,F=r===void 0&&t===void 0,$=E?"match":F?"original":"ganada",[G,j]=o.useState(()=>$),[L,I]=o.useState("50"),[K,ee]=o.useState(1),[V,q]=o.useState(E);V!==E&&(q(E),j($));const R=G==="match"&&!E||G==="original"&&!F?$:G,O=o.useMemo(()=>[...E?[{value:"match",label:v("wordSearch.sort.match",{defaultValue:"\uC2DC\uC791 \uC6B0\uC120"})}]:[],...F?[{value:"original",label:v("wordSearch.sort.original",{defaultValue:"\uBC1B\uC740 \uC21C\uC11C"})}]:[],{value:"ganada",label:v("wordSearch.sort.ganada",{defaultValue:"\uAC00\uB098\uB2E4\uC21C \u2191"})},{value:"ganada_desc",label:v("wordSearch.sort.ganadaDesc",{defaultValue:"\uAC00\uB098\uB2E4\uC21C \u2193"})},{value:"syllable",label:v("wordSearch.sort.syllable",{defaultValue:"\uC74C\uC808 \uC218 \u2191"})},{value:"syllable_desc",label:v("wordSearch.sort.syllableDesc",{defaultValue:"\uC74C\uC808 \uC218 \u2193"})},{value:"grade",label:v("wordSearch.sort.grade",{defaultValue:"\uB4F1\uAE09\uC21C \u2191"})},{value:"grade_desc",label:v("wordSearch.sort.gradeDesc",{defaultValue:"\uB4F1\uAE09\uC21C \u2193"})}],[v,E,F]),D=o.useMemo(()=>["10","25","50","100"].map(te=>({value:te,label:v("wordSearch.pageSize",{count:Number(te),defaultValue:`${te}\uAC1C\uC529 \uBCF4\uAE30`})})),[v]),H=te=>te.words?.[0],M=o.useMemo(()=>{const te=[...S].length,ce=xC(S),de=new Map;return he=>{let ye=de.get(he);return ye===void 0&&(ye=ce((he.words?.[0]?.label??"").slice(0,te))?0:1,de.set(he,ye)),ye}},[S]),P=o.useCallback((te,ce)=>{const de=Se=>H(Se)?.label??"",he=Se=>H(Se)?.syllables??[...de(Se)].length,ye=Se=>(Se.words??[]).reduce((Ge,ze)=>{const Pe=parseInt(ze.grade??"",10);return Number.isFinite(Pe)&&Pe<Ge?Pe:Ge},999);switch(R){case"match":return M(te)-M(ce)||a7.compare(de(te),de(ce));case"ganada":return de(te).localeCompare(de(ce),"ko");case"ganada_desc":return de(ce).localeCompare(de(te),"ko");case"syllable":return he(te)-he(ce)||de(te).localeCompare(de(ce),"ko");case"syllable_desc":return he(ce)-he(te)||de(te).localeCompare(de(ce),"ko");case"grade":return ye(te)-ye(ce)||de(te).localeCompare(de(ce),"ko");case"grade_desc":return ye(ce)-ye(te)||de(te).localeCompare(de(ce),"ko");default:return 0}},[R,M]),z=o.useMemo(()=>s.slice().sort(P),[s,P]),Y=Number(L)||10,X=o.useMemo(()=>(i??[]).flatMap(te=>te.items.slice().sort(P).map(ce=>({item:ce,label:te.label}))),[i,P]),Z=i?X.length:z.length,ne=Math.max(1,Math.ceil(Z/Y)),le=Math.min(K,ne),ie=o.useMemo(()=>z.slice((le-1)*Y,le*Y),[z,le,Y]),Ee=o.useMemo(()=>{if(!i)return null;const te=X.slice((le-1)*Y,le*Y),ce=new Map;for(const{item:de,label:he}of te)ce.has(he)||ce.set(he,[]),ce.get(he).push(de);return[...ce.entries()].map(([de,he])=>({label:de,items:he}))},[i,X,le,Y]);o.useEffect(()=>{ee(1)},[G,L,Z,r]);const W=Z>0?n.jsxs("div",{className:"word-search-result-block__toolbar",children:[n.jsx(cn,{size:40,options:O,value:R,onChange:j,ariaLabel:v("wordSearch.sort.aria",{defaultValue:"\uC815\uB82C"})}),n.jsx(cn,{size:40,options:D,value:L,onChange:I,ariaLabel:v("wordSearch.pageSizeAria",{defaultValue:"\uD398\uC774\uC9C0 \uD06C\uAE30"})}),n.jsx(nr,{page:le,totalPages:ne,onChange:ee})]}):void 0,ae=te=>{u&&u(te)},fe=t!==void 0&&a?n.jsxs(n.Fragment,{children:[v("wordSearch.resultTitlePrefix","\uCD1D "),n.jsx("span",{style:{color:"var(--color-main)"},children:t}),v("wordSearch.resultTitleSuffix",{unit:h?EC(a):a})]}):void 0,Ne=t!==void 0&&t>0&&c!==void 0&&a?v("wordSearch.resultDisc",{unit:h?jC(a):a,max:c,selected:l.length}):void 0,ge=C??Ne;return n.jsxs(la,{type:y,className:Ae("word-search-result-block",f),children:[n.jsxs("div",{className:"word-search-result-block__inner",children:[(fe||W||ge)&&n.jsxs("div",{className:"word-search-result-block__head",children:[n.jsxs("div",{className:"word-search-result-block__head-main",children:[e&&n.jsx(Qe,{icon:e,className:"word-search-result-block__head-icon"}),fe&&n.jsx("span",{className:"word-search-result-block__title h3",children:fe})]}),W&&n.jsx("div",{className:"word-search-result-block__head-actions",children:W}),ge&&n.jsx("div",{className:"word-search-result-block__head-disc body-3",children:ge})]}),(i?i.length===0:s.length===0)&&n.jsxs("div",{className:"word-search-result-block__empty-wrap",children:[n.jsx("p",{className:"word-search-result-block__empty body-3",children:v("wordSearch.emptyResult","\uAC80\uC0C9 \uACB0\uACFC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4.")}),b&&n.jsx("p",{className:"word-search-result-block__empty-hint body-3",children:b})]}),i?(Ee??[]).map(te=>n.jsx("div",{className:"word-search-result-block__group",children:n.jsx("div",{className:"word-search-result-block__items",children:te.items.map(ce=>{const de=l.includes(ce.id);return n.jsx("div",{onMouseEnter:he=>{g(he.currentTarget),A(ce.words??[])},onMouseLeave:N,children:n.jsx(pe,{htmlType:"button",size:"word",align:"grid",label:(ce.words??[]).map(he=>he.label),subLabel:(ce.words??[]).some(he=>he.subLabel)?(ce.words??[]).map(he=>he.subLabel):void 0,selected:de,onClick:()=>ae(ce.id),minWidth:200})},ce.id)})})},te.label)):n.jsx("div",{className:"word-search-result-block__items",children:ie.map(te=>{const ce=l.includes(te.id);return n.jsx("div",{onMouseEnter:de=>{g(de.currentTarget),A(te.words??[])},onMouseLeave:N,children:n.jsx(pe,{htmlType:"button",size:"word",align:"grid",label:(te.words??[]).map(de=>de.label),subLabel:(te.words??[]).some(de=>de.subLabel)?(te.words??[]).map(de=>de.subLabel):void 0,selected:ce,onClick:()=>ae(te.id),minWidth:200})},te.id)})}),x&&w&&n.jsx(kc,{words:x,anchorRect:w})]}),ne>1&&n.jsx("div",{className:"word-search-result-block__pagination-bottom",children:n.jsx(nr,{page:le,totalPages:ne,onChange:ee})}),(d||m)&&n.jsxs("div",{className:"word-search-result-block__actions",children:[d&&n.jsx(pe,{htmlType:"button",size:"56",type:"bar",label:v("common.resetSelection","\uC120\uD0DD \uCD08\uAE30\uD654"),selected:!1,disabled:l.length===0,onClick:l.length===0?void 0:d}),m&&n.jsx("div",{onClick:l.length===0?p:void 0,children:n.jsx(pe,{htmlType:"button",size:"56",type:"bar",variant:"main",label:v("wordTable.title","\uB2E8\uC5B4 \uD45C \uB9CC\uB4E4\uAE30"),disabled:l.length===0,onClick:l.length===0?void 0:m})})]})]})}function o7(e,t){return t.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 s7({sections:e,selectedList:t,count:a,onCountChange:r,maxCount:s=4,minCount:i=1,combinationSections:l,combinationSectionsForSlot:u,onSelect:c,placeholder:d="-",className:m,title:p,titleIcon:f,disc:b,showInfoButton:y=!0,onClearPhoneme:C,onSearch:v,onSearchEmpty:_,searchDisabled:h=!1,searchLabel:w,searchChecking:g=!1,pairMode:B=!1,sectionType:x="page",beforeSearchContent:A,beforeContent:N,afterContent:k,hideCountControl:S=!1,ordinal:E=!1}){const{t:F}=ve.useTranslation(),$=o.useMemo(()=>F("wordPairs.infoNotes",{returnObjects:!0}),[F]),G=o.useMemo(()=>Array.from({length:s-i+1},(M,P)=>{const z=i+P;return{key:String(z),label:F("wordPairs.count",{n:z})}}),[F,s,i]),j=o.useMemo(()=>F("wordPairs.ordinals",{returnObjects:!0}),[F]),L=o.useCallback(M=>E?F("wordPairs.phonemeOrdinalLabel",{ordinal:j[M-1]??M}):a===1?F("wordPairs.phonemeSingleLabel","\uC74C\uC808"):F("wordPairs.phonemeN",{n:M}),[E,j,a,F]),I=o.useCallback(M=>E?F("wordPairs.phonemeContrastOrdinalLabel",{ordinal:j[M-1]??M}):a===1?F("wordPairs.phonemeContrastSingleLabel","\uB300\uB9BD \uC74C\uC808"):F("wordPairs.phonemeContrast",{n:M}),[E,j,a,F]),K=o.useCallback((M,P)=>P?n.jsxs(n.Fragment,{children:[M,n.jsx("span",{className:"phoneme-select-block__required",children:"*"})]}):M,[]),{anchorRect:ee,toggleAt:V,close:q}=Aa(),R=o.useCallback(M=>r(Number(M)),[r]),O=nn("(max-width: 767px)"),D=o.useCallback(M=>o7(M,e).map(({label:P,value:z,displayLabel:Y})=>{const X=!!z&&z!=="\uC5C6\uC74C";return n.jsxs("span",{className:Ae("phoneme-select-block__cell-jamo-part",z?"":"phoneme-select-block__cell-jamo-part--empty",X?"":"phoneme-select-block__cell-jamo-part--no-label"),children:[n.jsx("span",{className:`phoneme-select-block__cell-jamo-char h1${z==="\uC5C6\uC74C"?" phoneme-select-block__cell-jamo-char--excluded":""}`,children:z==="\uC5C6\uC74C"?"x":z||d}),X&&n.jsx("span",{className:"phoneme-select-block__cell-jamo-label caption-2",children:Y??P})]},P)}),[e,d]),H=n.jsxs(n.Fragment,{children:[n.jsx("div",{"data-tooltip-ignore":!0,children:n.jsx(pe,{htmlType:"button",size:40,type:O?"dot":void 0,icon:"info",label:O?void 0:F("wordPairs.caution","\uC720\uC758\uC0AC\uD56D"),ariaLabel:F("wordPairs.caution","\uC720\uC758\uC0AC\uD56D"),className:ee?"is-selected":void 0,"aria-expanded":!!ee,"aria-haspopup":"dialog",onClick:M=>V(M.currentTarget)})}),ee&&n.jsx(Wn,{title:F("wordPairs.caution","\uC720\uC758\uC0AC\uD56D"),items:$,anchorRect:ee,onClose:q})]});return n.jsxs(la,{type:x,title:p,icon:f,disc:b,action:y?H:void 0,className:Ae("phoneme-select-block",m),children:[N,!S&&n.jsx("div",{className:"phoneme-select-block__controls",children:n.jsx(An,{options:G,value:String(a),onChange:R,size:40,ariaLabel:F("wordPairs.countLabel","\uC74C\uC18C \uAC1C\uC218"),className:"phoneme-select-block__count-control"})}),n.jsx("div",{className:"phoneme-select-block__cells",children:B?n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"phoneme-select-block__cell-group",children:Array.from({length:a}).map((M,P)=>{const z=t[P*2]??{};return n.jsxs("div",{className:"phoneme-select-block__cell",children:[n.jsx("div",{className:"phoneme-select-block__cell-circle",children:n.jsx("div",{className:"phoneme-select-block__cell-jamo",children:D(z)})}),n.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:L(P+1)})]},P)})}),n.jsx("span",{className:"phoneme-select-block__cell-vs h3",children:F("wordPairs.phonemeSelect.vs","\uB300")}),n.jsx("div",{className:"phoneme-select-block__cell-group",children:Array.from({length:a}).map((M,P)=>{const z=t[P*2+1]??{};return n.jsxs("div",{className:"phoneme-select-block__cell",children:[n.jsx("div",{className:"phoneme-select-block__cell-circle",children:n.jsx("div",{className:"phoneme-select-block__cell-jamo",children:D(z)})}),n.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:I(P+1)})]},P)})})]}):t.map((M,P)=>n.jsxs("div",{className:"phoneme-select-block__cell",children:[n.jsx("div",{className:"phoneme-select-block__cell-circle",children:n.jsx("div",{className:"phoneme-select-block__cell-jamo",children:D(M)})}),n.jsx("span",{className:"phoneme-select-block__cell-index caption-1",children:L(P+1)})]},P))}),(l||u)&&n.jsx("div",{className:"phoneme-select-block__panels",children:n.jsx("div",{className:"phoneme-select-block__detail",children:B?n.jsxs("div",{className:"phoneme-select-block__pair-panels",children:[n.jsx("div",{className:"phoneme-select-block__panel-group",children:Array.from({length:a}).map((M,P)=>{const z=t[P*2]??{};return n.jsx(Nn,{title:K(L(P+1),P===0),sections:u?u(z,P*2):l,selected:z,onSelect:c?.(P*2),align:"newline"},P)})}),n.jsx("div",{className:"phoneme-select-block__panel-group",children:Array.from({length:a}).map((M,P)=>{const z=t[P*2+1]??{};return n.jsx(Nn,{title:I(P+1),sections:u?u(z,P*2+1):l,selected:z,onSelect:c?.(P*2+1),align:"newline"},P)})})]}):t.map((M,P)=>n.jsx(Nn,{title:K(L(P+1),P===0),sections:u?u(M,P):l,selected:M,onSelect:c?.(P),align:"newline"},P))})}),A&&n.jsx("div",{className:"phoneme-select-block__before-search",children:A}),(C||v||g)&&(()=>{const M=t.every(P=>Object.entries(P).every(([z,Y])=>!Y||z==="\uC885\uC131"&&Y==="\uC5C6\uC74C"));return n.jsxs("div",{className:"phoneme-select-block__search-row",onClick:M?_:void 0,children:[C&&n.jsx(pe,{htmlType:"button",size:"56",type:"bar",label:F("wordPairs.resetOptions","\uAC80\uC0C9 \uC635\uC158 \uCD08\uAE30\uD654"),selected:!1,disabled:M,onClick:M?void 0:C}),v?n.jsx(pe,{htmlType:"button",size:"56",type:"bar",variant:"main",icon:g?n.jsx("span",{className:"phoneme-select-block__spinner","aria-hidden":"true"}):void 0,label:w??F("wordSearch.searchButton","\uAC80\uC0C9\uD558\uAE30"),disabled:M||h||g,onDisabledClick:g?()=>{}:void 0,"aria-busy":g||void 0,onClick:v}):g?n.jsxs("div",{className:"phoneme-select-block__checking","aria-busy":"true",children:[n.jsx("div",{className:"phoneme-select-block__spinner"}),n.jsx("span",{className:"button-1 phoneme-select-block__checking-label",children:w??F("wordSearch.searchButton","\uAC80\uC0C9\uD558\uAE30")})]}):null]})})(),k]})}function i7({title:e,sections:t,selected:a,onSelect:r,collapsible:s,defaultCollapsed:i,collapsed:l,onCollapsedChange:u,headerSummary:c,headerAction:d,className:m}){const{t:p}=ve.useTranslation();return n.jsx(Nn,{className:m,title:e??p("wordSearch.filterTitle","\uB2E8\uC5B4 \uAC80\uC0C9 \uC124\uC815"),sections:t,selected:a,onSelect:r,collapsible:s,defaultCollapsed:i,collapsed:l,onCollapsedChange:u,headerSummary:c,headerAction:d,align:"inline"})}function l7({title:e,headerAction:t,sections:a,selected:r,onSelect:s,className:i}){const{t:l}=ve.useTranslation();return a.length===0?null:n.jsx(Nn,{className:i,title:e??l("training.filter.phonemeGroup",{defaultValue:"\uD6C8\uB828 \uC74C\uC808"}),headerAction:t,sections:a,selected:r,onSelect:s,align:"newline"})}function u7({title:e,mode:t,onModeChange:a,matchMode:r,onMatchModeChange:s,positionCount:i,onPositionCountChange:l,inputMode:u,onInputModeChange:c,className:d}){const{t:m}=ve.useTranslation(),p={searchMode:m("wordPairs.filter.searchModeLabel","\uB300\uB9BD \uBC29\uC2DD"),phonemeOrder:m("wordPairs.filter.phonemeOrder","\uC785\uB825 \uC74C\uC808 \uC704\uCE58"),count:m("wordPairs.filter.countLabel","\uC785\uB825 \uC74C\uC808 \uAC2F\uC218"),inputMode:m("wordPairs.filter.inputModeLabel","\uC785\uB825 \uBC29\uC2DD"),orderAny:m("wordPairs.filter.orderAny","\uBB34\uAD00"),orderMatch:m("wordPairs.filter.orderMatch","\uC77C\uCE58"),include:m("wordPairs.mode.include","\uC74C\uC18C \uD3EC\uD568"),pick:m("wordPairs.mode.pick","\uC74C\uC18C \uB300\uB9BD"),explicit:m("wordPairs.mode.contrast","\uC74C\uC18C \uB300\uB9BD \uC9C0\uC815"),charInput:m("wordPairs.input.char","\uAE00\uC790 \uC120\uD0DD"),pronInput:m("wordPairs.input.pron","\uBC1C\uC74C \uC120\uD0DD")},f=v=>m("wordPairs.count",{n:v}),b=[{label:p.searchMode,items:[p.include,p.pick,p.explicit],display:"segmented",labelAction:n.jsx(ja,{title:m("wordPairs.mode.infoTitle","\uB300\uB9BD \uBC29\uC2DD"),items:[m("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."),m("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."),m("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:p.phonemeOrder,items:[p.orderAny,p.orderMatch],display:"segmented",labelAction:n.jsx(ja,{items:m("wordPairs.filter.phonemeOrderInfo",{returnObjects:!0})})},{label:p.count,items:[f(1),f(2)],display:"segmented"},{label:p.inputMode,items:[p.charInput,p.pronInput],display:"segmented",labelAction:n.jsx(ja,{title:m("wordPairs.input.infoTitle","\uC785\uB825 \uBC29\uC2DD"),items:[m("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."),m("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={[p.searchMode]:t==="explicit"?p.explicit:t==="pick"?p.pick:p.include,[p.phonemeOrder]:r==="ordered"?p.orderMatch:p.orderAny,[p.count]:f(i),[p.inputMode]:u==="phoneme"?p.pronInput:p.charInput},C=(v,_)=>{_===p.searchMode?a(v===p.explicit?"explicit":v===p.pick?"pick":"include"):_===p.phonemeOrder?s(v===p.orderMatch?"ordered":"unordered"):_===p.count?l(v===f(2)?2:1):_===p.inputMode&&c(v===p.pronInput?"phoneme":"word")};return n.jsx(Nn,{className:d,title:e??m("wordPairs.filter.searchOptionsTitle","\uB300\uB9BD \uC124\uC815"),sections:b,selected:y,onSelect:C,align:"inline"})}function c7(e){const{title:t,items:a,columns:r,gridTemplateColumns:s,mobileGridTemplateColumns:i,searchPlaceholder:l,searchFn:u,defaultSortKey:c,defaultSortAsc:d=!0,selectedId:m,selectedIds:p,onSelect:f,onClose:b,pageSizeOptions:y=[10,25,50,100],initialPageSize:C,emptyText:v,noMatchText:_,countLabel:h,topContent:w,className:g=""}=e,{t:B}=ve.useTranslation(),x=l??B("common.search","\uAC80\uC0C9"),A=v??B("common.emptyList","\uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4."),N=_??B("common.noMatches","\uB9DE\uB294 \uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4"),[k,S]=o.useState(""),[E,F]=o.useState(c??r[0]?.key??""),[$,G]=o.useState(d),[j,L]=o.useState(String(C??y[0]??10)),[I,K]=o.useState(1);o.useEffect(()=>{K(1)},[k,j]);const ee=u!==null,V=o.useCallback((X,Z)=>{if(!Z)return!0;const ne=Z.toLowerCase();return r.some(le=>{const ie=X[le.key];return ie==null?!1:String(ie).toLowerCase().includes(ne)})},[r]),q=u??V,R=o.useMemo(()=>{const X=ee?a.filter(Z=>q(Z,k)):a;return E?[...X].sort((Z,ne)=>{const le=Z[E],ie=ne[E];return le===ie?0:ro(le,ie,$)}):X},[a,k,E,$,ee,q]),O=Math.max(1,Math.ceil(R.length/Number(j)));I>O&&K(O);const D=Math.min(I,O),H=R.slice((D-1)*Number(j),D*Number(j)),M=o.useCallback(X=>{E===X?G(Z=>!Z):(F(X),G(!0)),K(1)},[E]),P=o.useMemo(()=>{if(typeof h=="function"){const X=R.length,Z=h(X);if(typeof Z=="string"){const ne=Z.lastIndexOf(String(X));if(ne>=0)return{prefix:Z.slice(0,ne),suffix:Z.slice(ne+String(X).length)}}return{label:Z}}if(typeof h=="string"&&h.includes("{n}")){const[X,Z]=h.split("{n}");return{prefix:X,suffix:Z}}return{prefix:B("common.totalCountPrefix","\uCD1D "),suffix:B("common.totalCountSuffix","\uAC1C")}},[h,R.length,B]),z=o.useMemo(()=>r.map(X=>({label:X.label,onClick:X.sortable!==!1?()=>M(X.key):void 0,className:X.className,sortDir:X.sortable!==!1&&E===X.key?$?"asc":"desc":null})),[r,E,$,M]),Y=o.useMemo(()=>y.map(X=>({value:String(X),label:B("common.pageSizeLabel",{n:X})})),[y,B]);return n.jsxs(Tn,{className:`popup-list ${g}`,title:t,onClose:b,children:[w,"label"in P&&n.jsx("p",{className:"toolbar__count body-1",children:P.label}),n.jsx(fo,{count:"label"in P?void 0:{value:R.length,prefix:P.prefix,suffix:P.suffix},search:ee?{value:k,onChange:S,placeholder:x}:void 0,pageSize:{options:Y,value:j,onChange:L},pagination:{page:D,total:O,onChange:K}}),n.jsx(Ao,{size:"medium",gridTemplateColumns:s,mobileGridTemplateColumns:i,resizable:!0,fields:z,items:H,onRowClick:f,renderRow:X=>{const Z=p!=null?X.id!=null&&p.has(X.id):m!=null&&X.id===m;return r.map(ne=>({content:ne.render?ne.render(X):X[ne.key]??"",className:Ae(ne.className,Z&&"popup-list__row--selected")}))},empty:ee&&k!==""&&a.length>0?N:A})]})}function Nc(e){const{title:t,message:a,topContent:r,details:s,children:i,confirmLabel:l,cancelLabel:u,hideCancel:c=!1,extraAction:d,confirmVariant:m="main",confirmDisabled:p=!1,onConfirm:f,closeOnConfirm:b=!0,onClose:y,inline:C,size:v="small",className:_,initialFocus:h="close"}=e,{t:w}=ve.useTranslation(),g=o.useRef(null);o.useEffect(()=>{if(C||h==="close")return;const S=g.current?.closest(".popup-panel"),E=Array.from(S?.querySelectorAll(".popup-footer--buttons button")??[]),F=h==="confirm"?E[E.length-1]:c?void 0:E[d?1:0];F&&!F.disabled&&F.focus()},[]);const B=o.useRef(!1),[x,A]=o.useState(!1),N=S=>{let E=!1;return{close:()=>{E=!0,S()},\uB2EB\uC558\uB098:()=>E}},k=async S=>{if(B.current)return;B.current=!0;const E=typeof document<"u"?document.activeElement:null;A(!0);let F=!1;try{F=await S()}catch($){typeof console<"u"&&console.error($)}finally{F||(B.current=!1,A(!1),requestAnimationFrame(()=>{const $=document.activeElement;(!$||$===document.body)&&E?.isConnected&&E.focus()}))}};return n.jsxs(Tn,{title:t,onClose:y,closeDisabled:x,inline:C,size:v,className:Ae("confirm-popup",r!=null&&"confirm-popup--has-top",_),buttons:[...d?[{label:d.label,variant:d.variant??"default",disabled:d.disabled||x,onClick:async({closeWithAnimation:S})=>{await k(async()=>{const E=N(S);await d.onClick(E.close);const F=d.closeOnClick??!0;return F&&S(),F||E.\uB2EB\uC558\uB098()})}}]:[],...c?[]:[{label:u??w("common.cancel","\uCDE8\uC18C"),variant:"default",disabled:x,onClick:({closeWithAnimation:S})=>S()}],{label:l??w("common.confirm","\uD655\uC778"),variant:m,disabled:p||x,onClick:async({closeWithAnimation:S})=>{await k(async()=>{const E=N(S);return await f(E.close),b&&S(),b||E.\uB2EB\uC558\uB098()})}}],children:[r!=null&&n.jsx("div",{className:"confirm-popup__top",children:r}),s&&s.length>0&&n.jsx(Cr,{children:s.map((S,E)=>n.jsx(Mn,{label:S.label,children:n.jsx("span",{className:"panel-row__text body-2",children:S.value})},E))}),n.jsx("p",{ref:g,className:"body-2 confirm-popup__message",children:a}),i]})}function d7(e,t,a={}){const{t:r}=ve.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?n.jsx(Nc,{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),t()},onClose:()=>i(!1)}):null;return{beforeClose:c,discardPopup:d,allowClose:u}}function p7({onApply:e,onCancel:t}){const{t:a}=ve.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 m=o.useCallback(async b=>{const y=r.trim();if(y){l(!0),c(null);try{await e(y),b()}catch(C){c(oi(C)),l(!1),requestAnimationFrame(()=>d.current?.focus())}}},[r,e]),p=o.useCallback((b,y)=>{b.key==="Enter"&&!b.nativeEvent.isComposing&&m(y)},[m]),f=b=>{s(b.target.value),c(null)};return n.jsx(Tn,{className:"coupon-input-popup",title:a("usage.couponButton","\uCFE0\uD3F0 \uC785\uB825"),size:"small",onClose:t,closeDisabled:i,buttons:[{label:a("common.cancel","\uCDE8\uC18C"),variant:"default",disabled:i,onClick:({closeWithAnimation:b})=>b()},{label:a("coupons.applyButton","\uC801\uC6A9"),variant:"main",disabled:!r.trim()||i,onClick:({closeWithAnimation:b})=>{m(b)}}],children:({closeWithAnimation:b})=>n.jsxs(n.Fragment,{children:[n.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:f,onKeyDown:y=>p(y,b),disabled:i,autoComplete:"off",spellCheck:!1}),u&&n.jsx("p",{className:"coupon-input-popup__error caption-1",role:"alert",children:u})]})})}const Dc=["var(--color-main)","var(--color-sub)"],m7=2e3;function h7(e,t){if(!t.startsWith("var("))return t;try{const a=t.slice(4,-1).trim();return getComputedStyle(e).getPropertyValue(a).trim()||null}catch{return null}}function es({active:e=!1,count:t=40,duration:a=2e3,strength:r=1,onComplete:s,trigger:i=0}){const l=o.useMemo(()=>{const C=Math.floor(t/2),v=t-C,_=(h,w)=>Array.from({length:h}).map((g,B)=>{const x=6+Math.random()*12,A=Math.round(Math.min(18,x*Math.min(1.5,1+r*.4))),N=Dc[Math.floor(Math.random()*Dc.length)],k=Math.random()*300,S=(360+Math.random()*260)*r*1.2,E=(w==="left"?-95+Math.random()*40:-85-Math.random()*40)*Math.PI/180,F=Math.cos(E)*S,$=Math.sin(E)*S*1.35,G=Math.random()*720-360,j=(1200+Math.random()*3e3)*Math.min(1.6,1+r*.3),L=Math.random()>.7?"50%":"3px";return{id:`${w}-${B}`,side:w,size:A,color:N,delay:k,vx:F,vy:$,angularVel:G,life:j,borderRadius:L}});return[..._(C,"left"),..._(v,"right")]},[t,r]),u=o.useRef(null),c=o.useRef({}),d=o.useRef(null),m=o.useRef(s);o.useEffect(()=>{m.current=s},[s]);const p=o.useRef(null),f=o.useRef(null),b=()=>{if(typeof document>"u")return null;let C=document.querySelector("[data-ihab-effect-root]");return C||(C=document.createElement("div"),C.className="app-effect",C.dataset.ihabEffectRoot="",C.style.position="fixed",C.style.inset="0",C.style.pointerEvents="none",C.style.zIndex="99998",document.body.appendChild(C)),C};if(typeof document<"u"&&f.current==null&&(f.current=b()),o.useEffect(()=>{if(!e)return;if(typeof window<"u"&&window.matchMedia?.("(prefers-reduced-motion: reduce)").matches){const q=setTimeout(()=>m.current?.(),0);return()=>clearTimeout(q)}const C=1200,v=performance.now(),_=f.current&&f.current!==document.body?f.current.getBoundingClientRect():null,h=Math.max(60,(window.innerHeight||800)*.05),w=q=>Math.max(40,(q||window.innerWidth)*.02),g=_?.width||window.innerWidth||375,B=_?.height||window.innerHeight||812,x=q=>{const R=[...q].sort((O,D)=>O-D);return R[Math.floor(R.length/2)]||1},A=x(l.map(q=>Math.abs(q.vy))),N=x(l.map(q=>Math.abs(q.vx))),k=Math.sqrt(2*C*(B*.72+h))/A,S=A*k/C,E=g*.5/(N*S),F=(q,R,O)=>Math.min(O,Math.max(R,q)),$=F(k,.8,2.4),G=F(E,.7,2.2),j=a>0?a/m7:1,L=l.map(q=>({...q,life:q.life*j,vx:q.vx*G,vy:q.vy*$,startTime:v+q.delay,ended:!1})),I=_?{x:_.left-w(_.width),y:_.top+_.height+h}:{x:-w(window.innerWidth),y:window.innerHeight+h},K=_?{x:_.left+_.width+w(_.width),y:_.top+_.height+h}:{x:window.innerWidth+w(window.innerWidth),y:window.innerHeight+h},ee=q=>{let R=!1;for(const O of L){const D=c.current[O.id];if(!D||!D)continue;if(q<O.startTime){D.style.display="none",R=!0;continue}if(!O._inited){const ie=O.side==="left"?I.x:K.x,Ee=O.side==="left"?I.y:K.y;D.style.left=`${ie}px`,D.style.top=`${Ee}px`,D.style.transform="translate3d(0px, 0px, 0)",D.style.display="block",D.style.zIndex="100000",typeof O.color=="string"&&O.color.startsWith("var(")&&(D.style.background=h7(D,O.color)??"#FF0060"),O._inited=!0}const H=(q-O.startTime)/1e3;if(H<0)continue;const M=O.life/1e3;if(H>=M){D.style.opacity="0",D.style.display="none",O.ended=!0;continue}R=!0;const P=O.side==="left"?I.x:K.x,z=O.side==="left"?I.y:K.y,Y=P+O.vx*H,X=z+O.vy*H+.5*C*H*H,Z=(O.angularVel||0)*H,ne=Y-P,le=X-z;D.style.transform=`translate3d(${ne}px, ${le}px, 0) rotate(${Z}deg)`,D.style.opacity=`${Math.max(0,1-H/M)}`}R?d.current=requestAnimationFrame(ee):m.current?.()};d.current=requestAnimationFrame(ee);const V=setTimeout(()=>{try{if((f.current?f.current.querySelectorAll(".confetti"):document.querySelectorAll(".confetti")).length===0&&!document.querySelector(".party-container")){const q=document.createElement("div");q.className="party-container",q.style.position="fixed",q.style.inset="0",q.style.pointerEvents="none",q.style.overflow="visible",q.style.zIndex="2147483647";for(const R of l){const O=document.createElement("span");O.className=`confetti confetti--${R.side}`,O.setAttribute("aria-hidden","true"),O.style.display="none",O.style.position="fixed",O.style.left="0px",O.style.top="0px",O.style.width=`${R.size}px`,O.style.height=`${Math.max(4,R.size*.6)}px`,O.style.background=R.color,O.style.borderRadius=R.borderRadius,O.style.transform="translate3d(0,0,0)",O.style.opacity="0",q.appendChild(O),c.current[R.id]=O}(document.body||f.current).appendChild(q),p.current=q}}catch{}},300);return()=>{if(d.current&&cancelAnimationFrame(d.current),clearTimeout(V),p.current){try{p.current.remove()}catch{}p.current=null}}},[e,a,i,l]),!e)return null;const y=n.jsx("div",{className:"party-container",ref:u,children:l.map(C=>n.jsx("span",{"aria-hidden":!0,ref:v=>{c.current[C.id]=v},className:`confetti confetti--${C.side}`,style:{width:`${C.size}px`,height:`${Math.max(4,C.size*.6)}px`,background:C.color,borderRadius:C.borderRadius}},`${C.id}-${i}`))});return typeof document<"u"?Qt.createPortal(y,f.current||document.body):y}const ts=e=>typeof e=="number"&&Number.isFinite(e)&&e>0?e:void 0;function C7({trigger:e=0,active:t=!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:ts(u.count),strength:ts(u.strength),duration:ts(u.duration)}))};return window.addEventListener("party:trigger",i),()=>window.removeEventListener("party:trigger",i)},[]);const s=o.useCallback(()=>r(null),[]);return n.jsxs(n.Fragment,{children:[n.jsx(es,{active:t,trigger:e}),a&&n.jsx(es,{active:!0,trigger:a.n,count:a.count,strength:a.strength,duration:a.duration,onComplete:s})]})}function f7({title:e,sub:t,rightAction:a,titleAction:r,badge:s,badgeVariant:i="default",documentTitle:l,onBack:u,backLabel:c,wrap:d=!1}){const{t:m}=ve.useTranslation();nb(typeof e=="string"?e:l??null);const p=c??m("common.back","\uB4A4\uB85C");return n.jsxs("div",{className:d?"page-title page-title--wrap":"page-title",children:[n.jsxs("div",{className:"page-title__main",children:[n.jsxs("div",{className:"page-title__title-row",children:[u&&n.jsx(pe,{htmlType:"button",className:"page-title__back",size:48,type:"dot",icon:"chevron-left",iconSize:"large",useBorder:!1,iconColor:"var(--color-text-primary)",ariaLabel:p,showTooltipInfo:p,onClick:u}),n.jsx("h1",{className:"page-title__title h1",children:e}),s&&n.jsx("div",{className:"page-title__badge",children:n.jsx(kt,{label:s,size:"small",variant:i,fill:"outline"})}),r?n.jsx("div",{className:"page-title__title-action",children:r}):null]}),t&&n.jsx("p",{className:"page-title__sub body-2",children:t})]}),a?n.jsx("div",{className:"page-title__action",children:a}):null]})}function g7(e){return e??""}const Ec=o.createContext({words:[],loading:!1});function b7(){return o.useContext(Ec)}function y7({words:e,loading:t,error:a,statusMessage:r,localVersion:s,remoteVersion:i,progress:l,clearAndRefetch:u,checkRemoteVersion:c,children:d}){return n.jsx(Ec.Provider,{value:{words:e,loading:t,error:a,statusMessage:r,localVersion:s,remoteVersion:i,progress:l,clearAndRefetch:u,checkRemoteVersion:c},children:d})}function v7({items:e,actions:t,columns:a,flat:r=!1,className:s,style:i}){const l=a??e.length;return n.jsx("section",{className:Ae("summary-strip",r&&"summary-strip--flat",s),style:{"--summary-strip-cols":String(l),...i},children:n.jsxs("div",{className:"summary-strip__row",children:[n.jsx("div",{className:"summary-strip__items",children:e.map((u,c)=>n.jsxs("div",{className:"summary-strip__item",children:[n.jsx("p",{className:"summary-strip__label caption-1",children:u.label}),n.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))}),t&&n.jsx("div",{className:"summary-strip__actions",children:t})]})})}const x7=(e,t)=>`${e} / ${t}`;function _7({blocks:e,sectionTitles:t,logo:a,footer:r,pageLabel:s=x7,pageWidth:i,pageHeight:l,margin:u,className:c,style:d}){const{t:m}=ve.useTranslation(),p=o.useRef(null),f=o.useRef(null),b=o.useRef(null),y=o.useRef(null),[C,v]=o.useState(null),[_,h]=o.useState(!1);o.useEffect(()=>{const j=p.current;if(!j)return;const L=()=>h(j.scrollWidth>j.clientWidth+1);if(L(),typeof ResizeObserver>"u")return;const I=new ResizeObserver(L);return I.observe(j),()=>I.disconnect()},[C]);const w=e.map(j=>`${j.id}\0${j.section??""}\0${j.group??""}`).join(""),g=C&&C.shape===w?C.pages:null,[B,x]=o.useState(0);o.useEffect(()=>{const j=y.current;if(!j||typeof ResizeObserver>"u")return;const L=new ResizeObserver(()=>x(j.offsetHeight));return L.observe(j),()=>L.disconnect()},[]);const[A,N]=o.useState(0);o.useEffect(()=>{const j=f.current;if(!j||typeof ResizeObserver>"u")return;let L=null;const I=typeof requestAnimationFrame=="function"?V=>requestAnimationFrame(V):V=>setTimeout(V,16),K=typeof cancelAnimationFrame=="function"?cancelAnimationFrame:V=>clearTimeout(V),ee=new ResizeObserver(()=>{L==null&&(L=I(()=>{L=null,N(V=>V+1)}))});return Array.from(j.children).forEach(V=>ee.observe(V)),()=>{ee.disconnect(),L!=null&&K(L)}},[w]),o.useLayoutEffect(()=>{const j=f.current,L=y.current;if(!j||!L)return;const I=M=>M.getBoundingClientRect().height||M.offsetHeight,K=new Map;b.current?.querySelectorAll("[data-chrome-section]").forEach(M=>{K.set(M.dataset.chromeSection??"",I(M))});const ee=M=>I(L)-(K.get(M??"")??0),V=Array.from(j.children).map(M=>I(M)),q=[];e.forEach((M,P)=>{const z=q[q.length-1],Y=z?e[z[0]]:void 0;Y&&M.group!=null&&Y.group===M.group&&Y.section===M.section?z.push(P):q.push([P])});const R=[];let O=[],D=0;const H=()=>{O.length&&R.push(O),O=[],D=0};q.forEach(M=>{const P=M.reduce((Y,X)=>Y+V[X],0),z=ee(e[M[0]].section);O.length&&e[O[0]].section!==e[M[0]].section&&H(),P>z?M.forEach(Y=>{O.length&&D+V[Y]>z+.01&&H(),O.push(Y),D+=V[Y]}):(O.length&&D+P>z+.01&&H(),M.forEach(Y=>O.push(Y)),D+=P)}),H(),v(M=>M&&M.shape===w&&JSON.stringify(M.pages)===JSON.stringify(R)?M:{shape:w,pages:R})},[w,B,i,l,u,A]);const k=po,S=k,E=r??n.jsxs(n.Fragment,{children:[n.jsx("img",{src:S,alt:"IHAB",className:"report-doc__logo"}),"\xA9 IHAB, Inc. All rights reserved."]}),F=(j,L,I)=>({header:n.jsxs("div",{className:"report-doc__header",children:[n.jsx("h2",{className:"report-doc__title h3b",children:I!=null&&t?.[I]||null}),a]}),footer:n.jsxs("div",{className:"report-doc__footer caption-1",children:[n.jsx("span",{className:"report-doc__footer-left",children:E}),n.jsx("span",{className:"report-doc__page-no",children:s(j,L)})]})}),$=Array.from(new Set(e.map(j=>j.section??""))),G={...i?{"--report-page-w":i}:null,...l?{"--report-page-h":l}:null,...u?{"--report-margin":u}:null,...d};return n.jsxs("div",{ref:p,className:Ae("report-doc",c),style:G,tabIndex:_?0:void 0,role:_?"group":void 0,"aria-label":_?m("report.previewRegion","\uBCF4\uACE0\uC11C \uBBF8\uB9AC\uBCF4\uAE30"):void 0,children:[n.jsxs("div",{className:"report-doc__measure","aria-hidden":!0,children:[n.jsx("div",{ref:y,className:"report-doc__ruler"}),n.jsx("div",{ref:b,children:$.map(j=>{const L=F(1,1,j||void 0);return n.jsxs("div",{"data-chrome-section":j,children:[L.header,L.footer]},j)})}),n.jsx("div",{ref:f,className:"report-doc__measure-blocks",children:e.map(j=>n.jsx("div",{children:j.content},j.id))})]}),g&&n.jsx("div",{className:"report-doc__pages",children:g.map((j,L)=>{const{header:I,footer:K}=F(L+1,g.length,e[j[0]].section);return n.jsxs("section",{className:"report-doc__page",children:[I,j.map(ee=>n.jsx("div",{children:e[ee].content},e[ee].id)),K]},L)})})]})}function w7({title:e,fields:t,columns:a=4,className:r,style:s}){return n.jsxs("div",{className:Ae("report-info",r),style:{"--report-info-cols":String(a),...s},children:[e&&n.jsx("p",{className:"report-info__title h5b",children:e}),n.jsx("div",{className:"report-info__grid",children:t.map((i,l)=>n.jsxs("div",{className:"report-info__field body-2",children:[n.jsx("span",{className:"report-info__label body-3",children:i.label}),n.jsx("span",{className:"report-info__value",children:i.value})]},l))})]})}const Yn=new Map;let vr=null;const B7=12;function A7(e){for(let t=e.parentElement;t&&t!==document.body;t=t.parentElement){const a=window.getComputedStyle(t);if(a.transform&&a.transform!=="none"||a.filter&&a.filter!=="none"||a.perspective&&a.perspective!=="none"||/paint|layout|strict|content/.test(a.contain||""))return t}return document}function xr(){const e=new Map;for(const t of Yn.keys()){if(!t.isConnected)continue;const a=A7(t),r=e.get(a)??[];r.push(t),e.set(a,r)}for(const t of e.values()){t.sort((r,s)=>r.compareDocumentPosition(s)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1);let a=0;for(const r of t){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+B7)}}}function k7(e){return typeof window>"u"?()=>{}:(Yn.set(e,(Yn.get(e)??0)+1),Yn.get(e)===1&&typeof ResizeObserver<"u"&&(vr??(vr=new ResizeObserver(()=>xr())),vr.observe(e)),xr(),()=>{const t=(Yn.get(e)??1)-1;if(t>0){Yn.set(e,t),xr();return}Yn.delete(e),vr?.unobserve(e),e.style.removeProperty("--update-alert-stack-offset"),xr()})}function N7({title:e,message:t,actionLabel:a,onAction:r,icon:s,onClose:i,className:l=""}){const{t:u}=ve.useTranslation(),c=a??u("common.update","\uC5C5\uB370\uC774\uD2B8"),d=o.useRef(null),m=o.useRef(!1);return o.useLayoutEffect(()=>{const p=d.current,f=p?.parentElement?.closest(".update-alert-stack")??p,b=f?k7(f):null;return()=>{b?.(),m.current&&p&&p.contains(document.activeElement)&&Ya(p)}},[]),n.jsxs("div",{ref:d,className:Ae("update-alert",l),role:"alert",children:[i&&n.jsx("button",{type:"button",className:"update-alert__close",onClick:()=>{m.current=!0,i()},"aria-label":u("common.close","\uB2EB\uAE30"),children:"\xD7"}),n.jsxs("div",{className:"update-alert__top",children:[n.jsx("div",{className:"update-alert__icon",children:s??n.jsx(ms,{size:20,strokeWidth:2})}),n.jsxs("div",{className:"update-alert__body",children:[n.jsx("div",{className:"update-alert__title h4",children:e}),n.jsx("div",{className:"update-alert__message body-3",children:t})]})]}),r&&n.jsx(pe,{htmlType:"button",size:32,variant:"main",shape:"pill",className:"update-alert__action",onClick:r,children:c})]})}function D7({title:e,titleLevel:t=3,description:a,topActions:r,children:s,footerLeft:i,footerRight:l,ariaLabel:u,onClick:c,draggable:d,onDragStart:m,onDragEnd:p,className:f}){const b=t?`h${t}`:"div",y=i!=null||l!=null,C=s!=null&&s!==!1,v=o.useCallback(_=>{c&&_.target===_.currentTarget&&(_.key==="Enter"||_.key===" ")&&(_.preventDefault(),c())},[c]);return n.jsxs("div",{className:Ae("training-card",c?"training-card--clickable":"",f),onClick:c,onKeyDown:c?v:void 0,role:c?"button":void 0,"aria-label":c?u??(typeof e=="string"?e:void 0):void 0,tabIndex:c?0:void 0,draggable:d,onDragStart:m,onDragEnd:p,children:[n.jsxs("div",{className:"training-card__header",children:[n.jsxs("div",{className:"training-card__title-row",children:[typeof e=="string"?n.jsx(b,{className:"training-card__title h4",children:e}):e,r!=null&&n.jsx("div",{className:"training-card__top-actions",onClick:_=>_.stopPropagation(),children:r})]}),a!=null?typeof a=="string"?n.jsx("p",{className:"training-card__description body-3",children:a}):a:n.jsx("p",{className:"training-card__description body-3","aria-hidden":"true",children:" "})]}),C&&n.jsx("div",{className:"training-card__body",children:s}),y&&n.jsxs("div",{className:"training-card__footer",children:[i!=null&&n.jsx("div",{className:"training-card__footer-left",children:i}),l!=null&&n.jsx("div",{className:"training-card__meta",children:l})]})]})}function E7({title:e,titleLevel:t=3,count:a,collapsed:r=!1,onToggle:s,sort:i,actions:l,empty:u=!1,emptyContent:c,dragOver:d=!1,onDragOver:m,onDragLeave:p,onDrop:f,children:b,className:y}){const{t:C}=ve.useTranslation(),v=o.useId(),_=t?`h${t}`:"span",h=s!=null,w=Ae("training-card-group",d&&"training-card-group--dragover",r&&"training-card-group--collapsed",h&&"training-card-group--collapsible",y);return n.jsxs("div",{className:w,onDragOver:m,onDragLeave:p,onDrop:f,role:typeof e=="string"&&e?"group":void 0,"aria-labelledby":typeof e=="string"&&e?v:void 0,children:[n.jsxs("header",{className:"training-card-group__header",children:[h&&n.jsx(pe,{htmlType:"button",size:40,type:"dot",variant:"transparent-gray",useBorder:!1,icon:r?"chevron-right":"chevron-down",ariaLabel:typeof e=="string"&&e?r?C("common.expandFor",{name:e}):C("common.collapseFor",{name:e}):r?C("common.expand","\uD3BC\uCE58\uAE30"):C("common.collapse","\uC811\uAE30"),className:"training-card-group__chevron","aria-expanded":!r,onClick:s}),typeof e=="string"?n.jsx(_,{id:v,className:"training-card-group__title h5b",children:e}):e,a!==void 0&&n.jsx("span",{className:"training-card-group__count body-3b",children:a}),(i||l!=null)&&n.jsxs("span",{className:"training-card-group__actions",onClick:g=>g.stopPropagation(),children:[i&&n.jsx(cn,{size:40,options:i.options,value:i.value,placeholder:i.placeholder,onChange:i.onChange,ariaLabel:typeof e=="string"&&e?C("common.sortFor",{name:e}):void 0}),l]})]}),!r&&(u?n.jsx("div",{className:"training-card-group__empty body-3",children:c}):n.jsx("div",{className:"training-card-group__grid",children:b}))]})}const S7="speechear:saved_word_tables";function j7(e){if(typeof e!="object"||e===null)return!1;const t=e;return typeof t.id=="string"&&typeof t.name=="string"&&Array.isArray(t.items)}function T7(){try{const e=localStorage.getItem(S7);if(!e)return[];const t=JSON.parse(e);return Array.isArray(t)?t.filter(j7):[]}catch{return[]}}function Sc(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 ns(e){return e.map(t=>t.homonum!=null?`${t.word}#${t.homonum}`:t.word).join("|")}function M7(e){const t=new Set;return e.map(a=>{let r=a.id;for(let s=2;t.has(r);s++)r=`${a.id}~${s}`;return t.add(r),r===a.id?a:{...a,id:r}})}function L7({title:e,titleIcon:t,disc:a,filterTitle:r,filterCollapsible:s,filterDefaultCollapsed:i,filterCollapsed:l,onFilterCollapsedChange:u,filterHeaderSummary:c,brand:d,code:m,items:p,onSaveComplete:f,onLoad:b,onRemoveItem:y,onReset:C,resetLabel:v,saveButtonLabel:_,secondarySaveButtonLabel:h,onReorder:w,showCellCount:g,onAddItem:B,className:x,renderSavePopup:A,renderWordSearch:N,hideControls:k,saveOnly:S,tableName:E,nameValue:F,onNameChange:$,descriptionValue:G,onDescriptionChange:j,namePlaceholder:L,descriptionPlaceholder:I,existingNames:K,editingName:ee,onCancel:V,initialItemsPerPage:q,renderCellAction:R,actionsLeftExtra:O}){const{t:D}=ve.useTranslation(),H=v??D("wordPrint.clearAllSelection","\uBAA8\uB450 \uC120\uD0DD \uD574\uC81C"),M=p===void 0,P=!!$,[z,Y]=o.useState([]),X=(F??"").trim(),Z=X||(L??"").trim(),ne=(G??"").trim()||(I??"").trim(),le=(K??[]).map(ue=>ue.trim().toLowerCase()),ie=[ee?.trim().toLowerCase(),...z].filter(ue=>!!ue),Ee=[...le];for(const ue of ie){const we=Ee.indexOf(ue);we!==-1&&Ee.splice(we,1)}const W=X!==""&&Ee.includes(X.toLowerCase()),[ae,fe]=o.useState(Array(4).fill(null)),[Ne,ge]=o.useState(4),[te,ce]=o.useState(null),de=ae.slice(0,Ne),he=!!d?.show,[ye,Se]=o.useState(!0),[Ge,ze]=o.useState(!0),Pe=d&&{...d,top:ye,bottom:Ge},[Ie,Ct]=o.useState("landscape"),[ut,at]=o.useState(["\uC774\uBBF8\uC9C0","\uB2E8\uC5B4","\uD45C\uC900 \uBC1C\uC74C"]),[ct,ke]=o.useState("\uD45C\uC2DC"),[Fe,Be]=o.useState(!0),[Je,J]=o.useState(!0),se=o.useRef(null),Ce=o.useRef([]),[De,tt]=o.useState(q==="all"?Number.POSITIVE_INFINITY:q??8),[Ze,yt]=o.useState("right"),[mt,rt]=o.useState(!1),[ot,st]=o.useState(!1),{toastMessage:nt,toastType:$e,showWarning:Ue,clearToast:He}=cl("warning"),ht=o.useCallback(()=>ce(null),[ce]);B&&!M&&!g&&Yt("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[Nt,jt]=o.useState(()=>Math.max(p?.length??1,1)),gt=M?Ne:g?Math.max(Nt,p?.length??1,1):Math.max(p?.length??0,1),{width:xt,height:Oe}=ua[Ie],it=!M&&!g,Tt=p?.length??0,Vt=Math.min(De,Math.max(Tt,1)),Xe=it?Vt:gt,wt=it?fu(p??[],Xe):null,Bt=!!wt&&wt.length>1,Wt=M?de.some(ue=>ue!==null&&ue.length>1):(p??[]).some(ue=>(ue.words??[]).length>1),an=E?.trim()||`${pi(_a())} ${Wt?D("wordTable.printFileNamePair","\uB300\uB9BD\uC30D\uD45C"):D("wordTable.printFileNameSingle","\uB2E8\uC5B4\uD45C")}`,rn=o.useCallback(()=>Bt?Ce.current.filter(ue=>ue!==null):se.current?[se.current]:[],[Bt]),{print:bn,openNewWindow:Rn,downloadHtml:yn}=$o({getElements:rn,paperW:xt,paperH:Oe,fileName:an,onPopupBlocked:()=>{Ue(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=ue=>{ge(ue),fe(we=>we.length>=ue?we:[...we,...Array(ue-we.length).fill(null)]),ce(null)},dn=ue=>{fe(we=>{const et=[...we];return et[ue]=null,et}),te===ue&&ce(null)},Ft=ue=>{if(te===null)return;const we=te;fe(pt=>{const ft=[...pt];return ft[we]=ue.length>0?ue:null,ft});const et=de.findIndex((pt,ft)=>ft>we&&pt===null);ce(et!==-1?et:null)},pn=M?de.some(ue=>ue?.some(we=>!!we.colloquialPronunciation)):(p??[]).some(ue=>(ue.words??[]).some(we=>!!we.colloquialLabel)),qt=o.useMemo(()=>Qn()?M?ae.slice(0,Ne).flatMap(ue=>(ue??[]).map(we=>[we.word,we.homonum])):(p??[]).flatMap(ue=>(ue.words??[]).map(we=>[we.label,we.homonum])):[],[M,ae,Ne,p]),[Pt,In]=o.useState(!1);o.useEffect(()=>{if(qt.length===0)return;let ue=!1;return Promise.all(qt.map(([we,et])=>ti(we,et))).then(we=>{ue||In(we.some(Boolean))},()=>{}),()=>{ue=!0}},[qt]);const mn=qt.length>0&&Pt,hn=o.useMemo(()=>[...M||g?[{label:D("wordTable.filter.columns","\uCE78 \uC218"),items:o5.map(ue=>({value:`${ue}\uCE78`,displayLabel:D("wordTable.filter.column",{count:ue})})),display:"segmented"}]:[],...it&&(p?.length??0)>0?[Mu(D,{hasPairs:Wt,itemCount:Tt})]:[],...Bt?[s5(D)]:[]],[D,M,g,it,p?.length,Wt,Tt,Bt]),Fn={...M||g?{[D("wordTable.filter.columns","\uCE78 \uC218")]:`${gt}\uCE78`}:{},...it&&(p?.length??0)>0?{[D(Wt?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord")]:`${Vt}\uAC1C`}:{},...Bt?{[D("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")]:$u[Ze]}:{}},Cn=(ue,we)=>{we===D("wordTable.filter.columns","\uCE78 \uC218")?M?Pn(parseInt(ue)):jt(parseInt(ue)):we===D(Wt?"wordTable.filter.itemsPerPagePair":"wordTable.filter.itemsPerPageWord")?tt(Lu(parseInt(ue),Tt)):we===D("wordTable.filter.pageNumber","\uD398\uC774\uC9C0 \uBC88\uD638")&&yt(Ru(ue))},Mt=M?M7(de.filter(ue=>ue!==null&&ue.length>0).map(ue=>({id:ns(ue),words:ue.map(Sc)}))):p??[],Ut=()=>{M&&fe(ue=>ue.length>Ne?ue.slice(0,Ne):ue)},oe=(ue=!1)=>{if(st(ue),P&&f){const we=Z.trim().toLowerCase();we&&Y(et=>et.includes(we)?et:[...et,we]),f(Z,Mt,ne||void 0,ue),Ut();return}if(S&&f){f("",Mt,void 0,ue),Ut();return}if(f){rt(!0);return}yn()},[xe,je]=o.useState(!1),[Ve,Me]=o.useState(""),We=Ve.trim(),qe=We!==""&&le.includes(We.toLowerCase()),dt=()=>{Me(Z?D("wordTable.save.copyName",{name:Z,defaultValue:"{{name}} (\uBCF5\uC0AC)"}):""),je(!0)},Et=()=>{!We||qe||!f||(f(We,Mt,ne||void 0,!0),Ut(),je(!1))},re=Mt.length===0,_e=re||P&&(Z===""||W),Le=()=>{if(re){Ue(D("wordTable.emptyItems","\uB2E8\uC5B4\uB97C 1\uAC1C \uC774\uC0C1 \uCD94\uAC00\uD574\uC8FC\uC138\uC694."));return}if(P&&Z===""){Ue(D("wordTable.save.nameRequired","\uD45C \uC774\uB984\uC744 \uC785\uB825\uD574 \uC8FC\uC138\uC694."));return}P&&W&&Ue(D("wordTable.save.duplicateName","\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4."))},Ye=n.jsx(ca,{items:Mt,orientation:Ie,contentTypes:ut,cutLine:ct,showOutline:Fe,showDivLine:Je,count:gt});return n.jsxs(n.Fragment,{children:[n.jsxs(la,{type:"page",icon:t,title:e,disc:a,className:Ae("word-table-block",x),children:[xe&&n.jsx(Tn,{size:"small",title:h??D("wordTable.saveAsNewButton","\uB2E4\uB978 \uC774\uB984\uC73C\uB85C \uC800\uC7A5"),onClose:()=>je(!1),footer:({closeWithAnimation:ue})=>n.jsxs(n.Fragment,{children:[n.jsx(pe,{htmlType:"button",size:48,type:"bar",label:D("common.cancel","\uCDE8\uC18C"),onClick:ue}),n.jsx(pe,{htmlType:"button",size:48,type:"bar",variant:"main",label:D("common.save","\uC800\uC7A5"),disabled:!We||qe,onClick:Et})]}),children:n.jsx(Gn,{label:D("wordTable.save.nameLabel","\uC774\uB984"),value:Ve,onChange:Me,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:Et,error:qe?D("wordTable.save.duplicateName","\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4."):void 0})}),mt&&f&&A?.({defaultName:typeof e=="string"?e:D("wordTable.defaultName","\uB2E8\uC5B4 \uD45C"),preview:Ye,previewW:xt,previewH:Oe,items:Mt,existingNames:T7().map(ue=>ue.name),saveAsNew:ot,onSave:(ue,we)=>{f(ue,Mt,we,ot),Ut(),rt(!1)},onCancel:()=>rt(!1)}),(M||B)&&te!==null&&N?.({cellIndex:te,onConfirm:M?Ft:ue=>{if(B){const we=ue[0];if(we){const et=new Set((p??[]).map(ft=>ft.id));let pt=ns([we]);for(let ft=2;et.has(pt);ft++)pt=`${ns([we])}~${ft}`;B({id:pt,words:[Sc(we)]})}}ce(null)},onClose:ht}),!k&&n.jsx(To,{title:r,collapsible:s,defaultCollapsed:i,collapsed:l,onCollapsedChange:u,headerSummary:c,hasImage:mn,hasColloquial:pn,contentTypes:ut,orientation:Ie,showOutline:Fe,cutLine:ct,showDivLine:Je,setters:{setContentTypes:at,setOrientation:Ct,setShowOutline:Be,setCutLine:ke,setShowDivLine:J,setShowTopInfo:Se,setShowBottomInfo:ze},showCutLine:(it?Xe:gt)>1,showDivLine2:Wt,middleSections:hn,extraSelected:Fn,onExtraSelect:Cn,showPaperBands:he,showTopInfo:ye,showBottomInfo:Ge}),Bt&&wt?n.jsx("div",{className:"word-table-block__pages",children:wt.map((ue,we)=>n.jsx(ca,{orientation:Ie,contentTypes:ut,cutLine:ct,showOutline:Fe,showDivLine:Je,count:Xe,items:ue,onRemoveItem:y,onReorder:w&&((et,pt)=>w(et+we*Xe,pt+we*Xe)),renderCellAction:R&&((et,pt)=>R(et+we*Xe,pt)),brand:Pe,code:m,contentRef:et=>{Ce.current[we]=et},pageNumber:{current:we+1,total:wt.length},pageNumberPosition:Ze},we))}):n.jsx(ca,{orientation:Ie,contentTypes:ut,cutLine:ct,showOutline:Fe,showDivLine:Je,count:gt,items:M?void 0:p??[],editCells:M?de:void 0,activeCell:te,onActivateCell:M||B?ce:void 0,onRemoveCell:M?dn:void 0,onRemoveItem:M?void 0:y,onReorder:M?void 0:w,renderCellAction:M?void 0:R,brand:Pe,code:m,showFillerAdd:!!B,contentRef:se}),P&&!k&&n.jsxs(Cr,{size:"medium",labelWidth:64,useBorder:!1,useRowBorder:!1,className:"word-table-block__meta",children:[n.jsx(Mn,{variant:"custom",label:D("wordTable.save.nameLabel","\uC774\uB984"),required:!0,align:"vertical",useFullWidth:!0,children:n.jsx(Gn,{required:!0,value:F??"",onChange:$,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:W?D("wordTable.save.duplicateName","\uC774\uBBF8 \uC0AC\uC6A9 \uC911\uC778 \uC774\uB984\uC785\uB2C8\uB2E4."):void 0,onKeyDown:ue=>{(ue.key==="Tab"&&!ue.shiftKey||ue.key===" ")&&!(F??"").trim()&&(L??"").trim()&&(ue.preventDefault(),$?.(L??""))}})}),n.jsx(Mn,{variant:"custom",label:D("wordTable.save.descriptionLabel","\uC124\uBA85"),align:"vertical",useFullWidth:!0,children:n.jsx(Gn,{value:G??"",onChange:j,placeholder:I?I+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:ue=>{(ue.key==="Tab"&&!ue.shiftKey||ue.key===" ")&&!(G??"").trim()&&(I??"").trim()&&(ue.preventDefault(),j?.(I??""))}})})]})]}),!k&&n.jsxs("div",{className:"word-table-block__actions",children:[n.jsxs("div",{className:"word-table-block__actions-left",children:[!S&&C&&n.jsx(pe,{htmlType:"button",size:40,type:"bar",label:H,onClick:C}),!S&&O,!S&&b&&n.jsx(pe,{htmlType:"button",size:40,type:"bar",label:D("wordTable.load","\uBD88\uB7EC\uC624\uAE30"),onClick:b}),!S&&n.jsx(pe,{htmlType:"button",size:40,type:"bar",label:D("wordTable.openNewWindow","\uC0C8 \uCC3D\uC73C\uB85C \uBCF4\uAE30"),onClick:Rn})]}),n.jsxs("div",{className:"word-table-block__actions-right",children:[V&&n.jsx(pe,{htmlType:"button",size:"56",type:"bar",label:D("common.cancel","\uCDE8\uC18C"),onClick:V}),!S&&n.jsx(pe,{htmlType:"button",size:"56",type:"bar",label:D("wordTable.print","\uC778\uC1C4\uD558\uAE30"),onClick:bn}),h&&n.jsx(pe,{htmlType:"button",size:"56",type:"bar",label:h,onClick:()=>P?dt():oe(!0),disabled:re,onDisabledClick:()=>{Ue(D("wordTable.emptyItems","\uB2E8\uC5B4\uB97C 1\uAC1C \uC774\uC0C1 \uCD94\uAC00\uD574\uC8FC\uC138\uC694."))}}),n.jsx(pe,{htmlType:"button",size:"56",type:"bar",variant:"main",label:_??D("wordTable.saveButton","\uC800\uC7A5\uD558\uAE30"),onClick:()=>oe(!1),disabled:_e,onDisabledClick:Le})]})]}),n.jsx(sa,{message:nt,type:$e,onClose:He})]})}function jc({items:e,className:t}){const a=e.length,r=a<=3?1:2,s=Math.ceil(a/r)||1,i=r*s;return n.jsx("div",{className:Ae("word-table-thumb",t),style:{gridTemplateColumns:`repeat(${r}, 1fr)`},children:Array.from({length:i},(l,u)=>{const c=e[u];return c?n.jsx("div",{className:"word-table-thumb__cell",children:(c.words?.length?c.words:[{label:c.id}]).map((d,m)=>n.jsxs(o.Fragment,{children:[m>0&&n.jsx("span",{className:"word-table-thumb__divider"}),n.jsx("span",{className:"word-table-thumb__word body-3",children:d.label})]},m))},u):n.jsx("div",{className:"word-table-thumb__cell word-table-thumb__cell--empty"},u)})})}function $7({items:e,name:t,description:a,createdAt:r,code:s,published:i,publishedLabel:l,shared:u,sharedLabel:c,isNew:d,publisherName:m,publishedAt:p,likeCount:f,downloadCount:b,onPublisherClick:y,selected:C,onClick:v,onMore:_,titleNode:h,className:w}){const{t:g}=ve.useTranslation(),B=h!=null,x=m!=null||p!=null||f!=null||b!=null,A=N=>{N.target===N.currentTarget&&!B&&(N.key==="Enter"||N.key===" ")&&(N.preventDefault(),v?.())};return n.jsxs("div",{className:Ae("word-table-button",C?"word-table-button--selected":"",x?"":"word-table-button--no-footer",w),role:"button",tabIndex:0,"aria-label":s?`${t} (${s})`:t,onClick:B?void 0:v,onKeyDown:A,children:[d&&n.jsx("span",{className:"word-table-button__new-dot","aria-label":g("myWordTable.newBadge","\uC0C8\uB85C \uB9CC\uB4E0 \uD45C")}),n.jsx(jc,{items:e,className:"word-table-button__thumb"}),n.jsxs("div",{className:"word-table-button__info",children:[n.jsxs("div",{className:"word-table-button__info-text",children:[h??n.jsx("div",{className:"word-table-button__title h4",children:t}),a&&n.jsx("div",{className:"word-table-button__desc body-3",children:a})]}),_&&!B&&n.jsx(pe,{htmlType:"button",className:"word-table-button__more",size:32,type:"dot",variant:"transparent-gray",useBorder:!1,icon:"ellipsis",ariaLabel:g("common.moreFor",{name:t}),onClick:N=>{N.stopPropagation(),_(N)}})]}),(s||r||i||u)&&n.jsxs("div",{className:"word-table-button__meta-row",children:[n.jsx("span",{className:"word-table-button__meta-left",children:n.jsx("span",{className:"word-table-button__meta caption-1",children:r?di(r,g):""})}),n.jsxs("span",{className:"word-table-button__meta-right",children:[(i||u)&&n.jsxs("span",{className:"word-table-button__badges",children:[i&&n.jsx(kt,{className:"word-table-button__badge",size:"small",variant:"main",fill:"soft",iconLeft:"book-marked",label:l??g("myWordTable.publishedBadge","\uBC1C\uD589\uB428")}),u&&n.jsx(kt,{className:"word-table-button__badge",size:"small",fill:"soft",iconLeft:"link",label:c??g("myWordTable.sharedBadge","\uACF5\uC720 \uC911")})]}),s&&n.jsx("span",{className:"word-table-button__code caption-1",children:s})]})]}),x&&n.jsxs("div",{className:"word-table-button__footer",children:[n.jsxs("span",{className:"word-table-button__store-by",children:[m&&(y?n.jsx("button",{className:"training-card__publisher body-4",type:"button","aria-label":g("wordTable.publisherFilter",{name:m,defaultValue:"{{name}} \uAC8C\uC2DC\uD55C \uAC83\uB9CC \uBCF4\uAE30"}),onClick:N=>{N.stopPropagation(),y()},children:m}):n.jsx("span",{className:"training-card__publisher training-card__publisher--static body-4",children:m})),p&&n.jsx("span",{className:"training-card__date body-4",children:di(p,g)})]}),n.jsxs("span",{className:"word-table-button__store-stats",children:[f!=null&&n.jsx(kt,{size:"small",fill:"soft",variant:"like",iconLeft:"heart",label:String(f),"aria-label":g("common.likeCount",{count:f,defaultValue:`\uC88B\uC544\uC694 ${f}`})}),b!=null&&n.jsx(kt,{size:"small",fill:"soft",variant:"main",iconLeft:"download",label:String(b),"aria-label":g("common.downloadCount",{count:b,defaultValue:`\uAC00\uC838\uAC04 \uC218 ${b}`})})]})]})]})}/**
|
|
1049
1049
|
* @license lucide-react v1.38.0 - ISC
|
|
1050
1050
|
*
|
|
1051
1051
|
* This source code is licensed under the ISC license.
|
|
@@ -1055,4 +1055,4 @@ ${g.badge}`:g.badge:void 0;if(x&&c(g.code))return null;if(!g.badge&&!m)return p(
|
|
|
1055
1055
|
*
|
|
1056
1056
|
* This source code is licensed under the ISC license.
|
|
1057
1057
|
* See the LICENSE file in the root directory of this source tree.
|
|
1058
|
-
*/const I7=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],F7=Q("circle-x",I7);function O7(e){return{idle:0,"word-download":1,"image-list":2,"image-match":2,"pair-build":3,done:4}[e]??0}function as({icon:e,label:t,state:a,pct:r,subText:s}){const{t:i}=ye.useTranslation(),l=a==="done",u=a==="pending",c=a==="error",d=l?100:r??0;return n.jsxs("div",{className:"wdup-phase-card",children:[n.jsx("div",{className:`wdup-phase-card__icon${l?" wdup-phase-card__icon--done":c?" wdup-phase-card__icon--error":""}`,children:l?n.jsx(gs,{size:22,color:"white",strokeWidth:2.5}):c?n.jsx(F7,{size:22,color:"white",strokeWidth:2.5}):n.jsx("span",{className:`wdup-phase-card__icon-inner${u?" wdup-phase-card__icon-inner--pending":""}`,children:e})}),n.jsxs("div",{className:"wdup-phase-card__body",children:[n.jsxs("div",{className:"wdup-phase-card__top",children:[n.jsx("span",{className:`wdup-phase-card__label body-2${u?" wdup-phase-card__label--pending":""}`,children:t}),l?n.jsx(_t,{variant:"sub",fill:"soft",size:"small",label:i("common.done","\uC644\uB8CC")}):c?n.jsx(_t,{variant:"danger",fill:"soft",size:"small",label:i("common.failed","\uC2E4\uD328")}):(s||r!==void 0)&&n.jsxs("span",{className:"wdup-phase-card__sub body-3",children:[s,s&&r!==void 0?` \xB7 ${r}%`:r!==void 0?`${r}%`:""]})]}),!u&&n.jsx("div",{className:"wdup-bar",children:n.jsx("div",{className:`wdup-bar__fill${l?" wdup-bar__fill--done":c?" wdup-bar__fill--error":""}${a==="active"&&r===void 0?" wdup-bar__fill--indeterminate":""}`,style:{width:r!==void 0||l||c?`${c?100:d}%`:void 0}})})]})]})}function H7({title:e,progress:t,onDone:a,onRetry:r,onClose:s,inline:i}){const{t:l}=ye.useTranslation(),{phase:u,error:c,wordCount:d,imagePage:m,imageDone:p,imageTotal:f,pairPercent:b}=t,y=O7(u),C=u==="done",v=!!c;function _(A){return v&&y===A?"error":y>A?"done":y===A?"active":"pending"}const h=_(1),w=_(2),g=_(3),B=u==="image-match"&&f?Math.round((p??0)/f*100):void 0,x=o.useMemo(()=>{if(w!=="done"){if(u==="image-list")return l("wordData.checkingPage",{page:m??1});if(u==="image-match"&&f)return l("wordData.imageCount",{done:Ur(p),total:Ur(f)})}},[w,u,m,f,p,l]);return n.jsx(Ln,{inline:i,className:"popup--word-data-update",title:e,footer:v&&r?n.jsx(me,{htmlType:"button",size:56,variant:"main",onClick:r,children:l("common.retry","\uB2E4\uC2DC \uC2DC\uB3C4")}):v?n.jsx(me,{htmlType:"button",size:56,variant:"main",onClick:s??a,children:l("common.close","\uB2EB\uAE30")}):n.jsx(me,{htmlType:"button",size:56,variant:"main",disabled:!C,onClick:a,children:l("common.done","\uC644\uB8CC")}),children:n.jsxs("div",{className:"wdup-cards",children:[n.jsx(as,{icon:n.jsx(ps,{size:22,color:"var(--color-main, #29b6c8)",strokeWidth:1.8}),label:l("wordData.phaseWordDownload","\uB2E8\uC5B4 \uB370\uC774\uD130 \uB2E4\uC6B4\uB85C\uB4DC"),state:h,subText:h==="active"?l("wordData.downloadingCount",{n:Ur(d)}):void 0}),n.jsx(as,{icon:n.jsx(P7,{size:22,color:"var(--color-main, #29b6c8)",strokeWidth:1.8}),label:l("wordData.phaseImageCheck","\uC774\uBBF8\uC9C0 \uD655\uC778"),state:w,pct:B,subText:x}),n.jsx(as,{icon:n.jsx(Cs,{size:22,color:"var(--color-main, #29b6c8)",strokeWidth:1.8}),label:l("wordData.phasePairAnalysis","\uB2E8\uC5B4\uC30D \uBD84\uC11D"),state:g,pct:g==="active"?b??0:void 0,subText:void 0})]})})}function z7({enabled:e=!1,renderResultPopup:t}={}){const{t:a}=ye.useTranslation(),[r,s]=o.useState(null),[i,l]=o.useState(null),u=b=>{let y=null;b==="noise"?y={score:3,contextsLength:5,results:[{sentence:"\uBB38\uC7A5 A",judgement:!0,wording:"\uC798 \uB4E4\uB9BC",useAnswer:!1},{sentence:"\uBB38\uC7A5 B",judgement:!1,wording:"\uC548 \uB4E4\uB9BC",useAnswer:!1},{sentence:"\uBB38\uC7A5 C",judgement:!0,wording:"\uC798 \uB4E4\uB9BC",useAnswer:!1},{sentence:"\uBB38\uC7A5 D",judgement:null,wording:"\uC548 \uD568",useAnswer:!1},{sentence:"\uBB38\uC7A5 E",judgement:!1,wording:"\uC548 \uB4E4\uB9BC",useAnswer:!1}]}:b==="short"?y={score:2,contextsLength:3,results:[{sentence:"\uBE44\uBE54\uBC25 \uC124\uBA85",answer:"\uBE44\uBE54\uBC25",selected:"\uBE44\uBE54\uBC25",selectedText:"\uBE44\uBE54\uBC25",correct:!0},{sentence:"\uBCF4\uC308 \uC124\uBA85",answer:"\uBCF4\uC308",selected:"\uC871\uBC1C",selectedText:"\uC871\uBC1C",correct:!1},{sentence:"\uCE7C\uAD6D\uC218 \uC124\uBA85",answer:"\uCE7C\uAD6D\uC218",selected:void 0,selectedText:void 0,correct:void 0}]}:b==="long"?y={score:4,contextsLength:4,results:[{sentence:"\uAE34 \uC774\uC57C\uAE30 1",answer:"\uC815\uB2F5 \uD14D\uC2A4\uD2B8 1",selectedText:"\uC815\uB2F5 \uD14D\uC2A4\uD2B8 1",correct:!0},{sentence:"\uAE34 \uC774\uC57C\uAE30 2",answer:"\uC815\uB2F5 \uD14D\uC2A4\uD2B8 2",selectedText:"\uC120\uD0DD \uD14D\uC2A4\uD2B8 2",correct:!1},{sentence:"\uAE34 \uC774\uC57C\uAE30 3",answer:"\uC815\uB2F5 \uD14D\uC2A4\uD2B8 3",selectedText:void 0,correct:void 0},{sentence:"\uAE34 \uC774\uC57C\uAE30 4",answer:"\uC815\uB2F5 \uD14D\uC2A4\uD2B8 4",selectedText:"\uC815\uB2F5 \uD14D\uC2A4\uD2B8 4",correct:!0}]}:b==="order"&&(y={score:1,contextsLength:2,results:[{sentence:"\uC21C\uC11C \uBB38\uC81C 1",answer:"1,2,3",selectedText:"1,2,3",correct:!0},{sentence:"\uC21C\uC11C \uBB38\uC81C 2",answer:"A,B,C",selectedText:"B,A,C",correct:!1}]}),l(y),s(b)},c=o.useCallback(()=>{s(null),l(null)},[]),d=o.useCallback(()=>u("noise"),[]),m=o.useCallback(()=>u("short"),[]),p=o.useCallback(()=>u("long"),[]),f=o.useCallback(()=>u("order"),[]);return e?n.jsxs("div",{className:"debug-result-launcher",children:[n.jsxs("div",{className:"debug-buttons",children:[n.jsx("button",{type:"button",className:"debug-button",onClick:d,children:a("debug.showResult",{type:"Noise",defaultValue:"{{type}} \uACB0\uACFC\uBCF4\uAE30"})}),n.jsx("button",{type:"button",className:"debug-button",onClick:m,children:a("debug.showResult",{type:"ShortStory",defaultValue:"{{type}} \uACB0\uACFC\uBCF4\uAE30"})}),n.jsx("button",{type:"button",className:"debug-button",onClick:p,children:a("debug.showResult",{type:"LongStory",defaultValue:"{{type}} \uACB0\uACFC\uBCF4\uAE30"})}),n.jsx("button",{type:"button",className:"debug-button",onClick:f,children:a("debug.showResult",{type:"Order",defaultValue:"{{type}} \uACB0\uACFC\uBCF4\uAE30"})})]}),r&&i?t?.({score:i.score,contextsLength:i.contextsLength,results:i.results,onReplay:c,onClose:c}):null]}):null}exports.Accordion=wb,exports.ActionCard=df,exports.Alert=C4,exports.AppHeader=Eb,exports.AudioMeter=wo,exports.AudioPlayer=Wo,exports.Avatar=_4,exports.Badge=_t,exports.BarChart=py,exports.BarChartControls=Zl,exports.Board=O4,exports.BottomNav=ml,exports.BrandIdentity=bl,exports.Breadcrumb=A4,exports.BulkBar=Q4,exports.Button=me,exports.CORE_VERSION=rf,exports.Calendar=Ly,exports.CardStep=xc,exports.ChartLegend=go,exports.ChartSection=bo,exports.ChartTotal=Ra,exports.Checkbox=Wl,exports.ChoiceChips=F5,exports.CircleBadge=d4,exports.CodeBox=X4,exports.ColorPicker=S4,exports.CompanyMeta=U4,exports.ConfirmPopup=Nc,exports.ConfirmStep=bc,exports.ConfirmWithTextStep=yc,exports.ContrastFilterPanel=u7,exports.CoreScope=pf,exports.CountTile=R4,exports.CouponInputPopup=p7,exports.DEFAULT_NOISE_SETTINGS=Oa,exports.DatePicker=oy,exports.DebugResultLauncher=z7,exports.DescriptionTooltip=Wn,exports.DeviceSideTable=jy,exports.Dialog=F4,exports.Divider=p4,exports.Dropdown=cn,exports.EffectPartyPopper=es,exports.EffectPartyPopperHost=C7,exports.EmptyState=uf,exports.ErrorState=cf,exports.FILTER_ALL_VALUE=un,exports.FileUpload=B4,exports.FilterPanel=Dn,exports.FilterSectionInfo=ja,exports.Footer=O5,exports.GameIntro=Cy,exports.Header=yl,exports.Icon=Je,exports.IconGridMenu=I5,exports.IconRenderer=Je,exports.InfoTooltip=_n,exports.ItemActions=ty,exports.LEVEL_MAX=da,exports.LINE_CHART_HOVER_DELAY_MS=Xl,exports.LandingBottomSticky=z5,exports.LandingHeader=H5,exports.LineChart=hy,exports.ListPopup=c7,exports.ListenStep=gc,exports.Loader=$a,exports.MARKS=lr,exports.MARK_ICON=mu,exports.MARK_VARIANT=hu,exports.MediaQueryOverrideContext=xi,exports.MenuTooltip=Da,exports.NOISE_RATIO_MAX=Pa,exports.NOISE_RATIO_STEP=Wu,exports.NoisePlayerContext=Oo,exports.NoiseSettingsTooltip=uc,exports.NoticeBox=mf,exports.OrderListStep=vc,exports.PASS_CARD_BG_VARS=Un,exports.POS_LABEL=gu,exports.PROMO_BANNER_BG_COMPONENTS=tl,exports.PROMO_BANNER_BG_OPTIONS=eb,exports.PROMO_BANNER_BG_VARS=Ba,exports.Page=fr,exports.PageTitle=f7,exports.Pagination=nr,exports.Panel=Cr,exports.PanelGrid=j3,exports.PanelRow=$n,exports.PanelRowDevice=S3,exports.PassCard=El,exports.PassCardBg=i4,exports.PassCardBgIHAB=l4,exports.PassCardBgLeftColorGrid=u4,exports.PassCardBgTwoCircle=Bl,exports.PaymentPlan=s4,exports.PersonCard=H4,exports.PhonemeFilterPanel=l7,exports.PhonemeSelectBlock=s7,exports.Popup=Ln,exports.ProgressBar=_y,exports.ProgressIndicator=su,exports.PromoBanner=vb,exports.PromoBannerBgDark=Oi,exports.PromoBannerBgDeep=Li,exports.PromoBannerBgDiagonal=Wi,exports.PromoBannerBgDots=Ui,exports.PromoBannerBgInstagram=el,exports.PromoBannerBgMain=Di,exports.PromoBannerBgNaver=Ji,exports.PromoBannerBgOutline=Ki,exports.PromoBannerBgRadial=zi,exports.PromoBannerBgSoft=Si,exports.PromoBannerBgSoftSub=Ri,exports.PromoBannerBgSub=Ti,exports.PromoBannerBgSuccess=Zi,exports.PromoBannerBgWarm=Ii,exports.PublicationCard=V4,exports.Radio=Ml,exports.RadioGroup=m4,exports.Rating=N4,exports.ReportDocument=_7,exports.ReportInfoPanel=w7,exports.RingChart=gy,exports.SENTENCE_TRAINING_TYPES=Ro,exports.SearchSummary=b4,exports.Section=ia,exports.SectionHeadFloat=Ul,exports.SectionHeader=q4,exports.SegmentedControl=kn,exports.ShortcutBadge=Tl,exports.SideNav=gl,exports.Slider=nu,exports.SoundCompass=c4,exports.SplashLogo=W4,exports.StatChart=by,exports.SummaryStrip=v7,exports.TRAINING_TOOLTIP_HOVER_DELAY_MS=$l,exports.Table=Ao,exports.TableFilterPanel=To,exports.Tabs=y4,exports.TextBoxTooltip=hr,exports.TextField=Gn,exports.Timeline=z4,exports.Toast=oa,exports.Toggle=Vl,exports.Toolbar=fo,exports.Tooltip=ln,exports.TooltipInfo=_n,exports.TooltipTextBox=hr,exports.TopBanner=xb,exports.TrainingBlock=Ry,exports.TrainingBlockButton=mo,exports.TrainingCard=D7,exports.TrainingCardGroup=E7,exports.TrainingPagePopup=Pn,exports.TrainingPagePopupBottom=cc,exports.TrainingPagePopupTitle=dc,exports.TrainingResultPopup=wc,exports.TrainingStep=Kn,exports.TrainingStepAudioPlayer=Wo,exports.TrainingStepBullet=tc,exports.TrainingStepCard=oc,exports.TrainingStepConfirm=Uo,exports.TrainingStepConfirmWithText=Go,exports.TrainingStepListen=Ko,exports.TrainingStepOrderList=Yo,exports.TrainingStepTextBox=rc,exports.TrainingStepTitle=ac,exports.TrainingTooltip=Rl,exports.TrainingWordCard=Eo,exports.UpdateAlert=N7,exports.WAVE_A_MAX=n3,exports.WAVE_H1_PX=zo,exports.WAVE_HMAX_PX=t3,exports.WORD_TABLE_PAPER=la,exports.WORD_TYPE_LABEL=bu,exports.WordDataProvider=y7,exports.WordDataUpdatePopup=H7,exports.WordImageTooltip=kc,exports.WordSearchFilterPanel=i7,exports.WordSearchResultBlock=r7,exports.WordTable=ua,exports.WordTableBlock=L7,exports.WordTableButton=$7,exports.WordTablePopup=c5,exports.WordTableThumbnail=jc,exports.buildMonthChartData=iy,exports.cellKey=b5,exports.cellLabel=g5,exports.cellsForLabels=S5,exports.clearPassCardBgTheme=An,exports.clearPromoBannerBgTheme=Vt,exports.closeTrainingPopup=R3,exports.companyTypeLabel=g7,exports.createTrainingScenario=F3,exports.cx=ke,exports.deriveNoiseContexts=q3,exports.derivePassCard=xl,exports.draftValues=R5,exports.effectiveNoiseVolume=Io,exports.effectiveSpeechVolume=Uu,exports.expandSlashLabel=jo,exports.formatDuration=j5,exports.getControlDateRange=fy,exports.getPayloadTimestamp=Jo,exports.getPromoBannerBgTheme=no,exports.getSelectedFromPayload=H3,exports.getSelectedText=z3,exports.getStepPayload=Cc,exports.getSteppedPayload=V3,exports.injectPassCardBgTheme=Bn,exports.injectPromoBannerBgTheme=zt,exports.isSelectionCorrect=W3,exports.labelOfCellKey=zu,exports.labelsForSave=f5,exports.levelToPct=W5,exports.markAfterClick=pu,exports.marksForSave=So,exports.mergeNoiseSettings=Fa,exports.missesByType=k5,exports.nextFocus=_5,exports.nextMisses=A5,exports.noiseElementVolume=Fo,exports.noiseRatioOf=Ia,exports.pageStartIndexes=Cu,exports.passCardBgIhabTheme=Sl,exports.passCardBgLeftColorGridTheme=jl,exports.passCardBgTwoCircleTheme=wl,exports.pctToLevel=q5,exports.printWordTable=zy,exports.promoBannerBgDarkTheme=Fi,exports.promoBannerBgDeepTheme=Mi,exports.promoBannerBgDiagonalTheme=Vi,exports.promoBannerBgDotsTheme=qi,exports.promoBannerBgInstagramTheme=Qi,exports.promoBannerBgMainTheme=Ni,exports.promoBannerBgNaverTheme=Xi,exports.promoBannerBgOutlineTheme=Gi,exports.promoBannerBgRadialTheme=Hi,exports.promoBannerBgSoftSubTheme=$i,exports.promoBannerBgSoftTheme=Ei,exports.promoBannerBgSubTheme=ji,exports.promoBannerBgSuccessTheme=Yi,exports.promoBannerBgWarmTheme=Pi,exports.recommendTables=D5,exports.regenerateUnpinned=$5,exports.removeItem=L5,exports.resolveTrainingItems=I3,exports.resolveTrainingPopupMeta=mc,exports.reviewCells=p5,exports.reviewMeta=C5,exports.reviewSetPlan=N5,exports.reviewTableName=h5,exports.scoreKey=ir,exports.scoreSheetHeader=y5,exports.shouldConfirmDiscard=Hy,exports.splitTrainingVariants=P3,exports.summarize=Oy,exports.summarizeMisses=B5,exports.tableTrends=x5,exports.toDraft=T5,exports.toTrainingText=O3,exports.togglePin=M5,exports.uncoveredLabels=E5,exports.useAnchoredMenu=Na,exports.useBarChartControl=Yl,exports.useCalendarMonth=ql,exports.useComboboxSuggestions=Hl,exports.useDiscardGuard=d7,exports.useFitScale=vu,exports.useNoisePlayer=cr,exports.useSoundCompassExam=yb,exports.useToastLifecycle=ru,exports.useWordData=b7,exports.useWordTableDisplaySettings=Ou,exports.useWordTablePrint=$o,exports.waveBarPx=pr,exports.waveBarVal=mr,exports.weakItems=v5,exports.withStepTimes=hc;
|
|
1058
|
+
*/const I7=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],F7=Q("circle-x",I7);function O7(e){return{idle:0,"word-download":1,"image-list":2,"image-match":2,"pair-build":3,done:4}[e]??0}function as({icon:e,label:t,state:a,pct:r,subText:s}){const{t:i}=ve.useTranslation(),l=a==="done",u=a==="pending",c=a==="error",d=l?100:r??0;return n.jsxs("div",{className:"wdup-phase-card",children:[n.jsx("div",{className:`wdup-phase-card__icon${l?" wdup-phase-card__icon--done":c?" wdup-phase-card__icon--error":""}`,children:l?n.jsx(gs,{size:22,color:"white",strokeWidth:2.5}):c?n.jsx(F7,{size:22,color:"white",strokeWidth:2.5}):n.jsx("span",{className:`wdup-phase-card__icon-inner${u?" wdup-phase-card__icon-inner--pending":""}`,children:e})}),n.jsxs("div",{className:"wdup-phase-card__body",children:[n.jsxs("div",{className:"wdup-phase-card__top",children:[n.jsx("span",{className:`wdup-phase-card__label body-2${u?" wdup-phase-card__label--pending":""}`,children:t}),l?n.jsx(kt,{variant:"sub",fill:"soft",size:"small",label:i("common.done","\uC644\uB8CC")}):c?n.jsx(kt,{variant:"danger",fill:"soft",size:"small",label:i("common.failed","\uC2E4\uD328")}):(s||r!==void 0)&&n.jsxs("span",{className:"wdup-phase-card__sub body-3",children:[s,s&&r!==void 0?` \xB7 ${r}%`:r!==void 0?`${r}%`:""]})]}),!u&&n.jsx("div",{className:"wdup-bar",children:n.jsx("div",{className:`wdup-bar__fill${l?" wdup-bar__fill--done":c?" wdup-bar__fill--error":""}${a==="active"&&r===void 0?" wdup-bar__fill--indeterminate":""}`,style:{width:r!==void 0||l||c?`${c?100:d}%`:void 0}})})]})]})}function H7({title:e,progress:t,onDone:a,onRetry:r,onClose:s,inline:i}){const{t:l}=ve.useTranslation(),{phase:u,error:c,wordCount:d,imagePage:m,imageDone:p,imageTotal:f,pairPercent:b}=t,y=O7(u),C=u==="done",v=!!c;function _(A){return v&&y===A?"error":y>A?"done":y===A?"active":"pending"}const h=_(1),w=_(2),g=_(3),B=u==="image-match"&&f?Math.round((p??0)/f*100):void 0,x=o.useMemo(()=>{if(w!=="done"){if(u==="image-list")return l("wordData.checkingPage",{page:m??1});if(u==="image-match"&&f)return l("wordData.imageCount",{done:Ur(p),total:Ur(f)})}},[w,u,m,f,p,l]);return n.jsx(Tn,{inline:i,className:"popup--word-data-update",title:e,footer:v&&r?n.jsx(pe,{htmlType:"button",size:56,variant:"main",onClick:r,children:l("common.retry","\uB2E4\uC2DC \uC2DC\uB3C4")}):v?n.jsx(pe,{htmlType:"button",size:56,variant:"main",onClick:s??a,children:l("common.close","\uB2EB\uAE30")}):n.jsx(pe,{htmlType:"button",size:56,variant:"main",disabled:!C,onClick:a,children:l("common.done","\uC644\uB8CC")}),children:n.jsxs("div",{className:"wdup-cards",children:[n.jsx(as,{icon:n.jsx(ps,{size:22,color:"var(--color-main, #29b6c8)",strokeWidth:1.8}),label:l("wordData.phaseWordDownload","\uB2E8\uC5B4 \uB370\uC774\uD130 \uB2E4\uC6B4\uB85C\uB4DC"),state:h,subText:h==="active"?l("wordData.downloadingCount",{n:Ur(d)}):void 0}),n.jsx(as,{icon:n.jsx(P7,{size:22,color:"var(--color-main, #29b6c8)",strokeWidth:1.8}),label:l("wordData.phaseImageCheck","\uC774\uBBF8\uC9C0 \uD655\uC778"),state:w,pct:B,subText:x}),n.jsx(as,{icon:n.jsx(Cs,{size:22,color:"var(--color-main, #29b6c8)",strokeWidth:1.8}),label:l("wordData.phasePairAnalysis","\uB2E8\uC5B4\uC30D \uBD84\uC11D"),state:g,pct:g==="active"?b??0:void 0,subText:void 0})]})})}function z7({enabled:e=!1,renderResultPopup:t}={}){const{t:a}=ve.useTranslation(),[r,s]=o.useState(null),[i,l]=o.useState(null),u=b=>{let y=null;b==="noise"?y={score:3,contextsLength:5,results:[{sentence:"\uBB38\uC7A5 A",judgement:!0,wording:"\uC798 \uB4E4\uB9BC",useAnswer:!1},{sentence:"\uBB38\uC7A5 B",judgement:!1,wording:"\uC548 \uB4E4\uB9BC",useAnswer:!1},{sentence:"\uBB38\uC7A5 C",judgement:!0,wording:"\uC798 \uB4E4\uB9BC",useAnswer:!1},{sentence:"\uBB38\uC7A5 D",judgement:null,wording:"\uC548 \uD568",useAnswer:!1},{sentence:"\uBB38\uC7A5 E",judgement:!1,wording:"\uC548 \uB4E4\uB9BC",useAnswer:!1}]}:b==="short"?y={score:2,contextsLength:3,results:[{sentence:"\uBE44\uBE54\uBC25 \uC124\uBA85",answer:"\uBE44\uBE54\uBC25",selected:"\uBE44\uBE54\uBC25",selectedText:"\uBE44\uBE54\uBC25",correct:!0},{sentence:"\uBCF4\uC308 \uC124\uBA85",answer:"\uBCF4\uC308",selected:"\uC871\uBC1C",selectedText:"\uC871\uBC1C",correct:!1},{sentence:"\uCE7C\uAD6D\uC218 \uC124\uBA85",answer:"\uCE7C\uAD6D\uC218",selected:void 0,selectedText:void 0,correct:void 0}]}:b==="long"?y={score:4,contextsLength:4,results:[{sentence:"\uAE34 \uC774\uC57C\uAE30 1",answer:"\uC815\uB2F5 \uD14D\uC2A4\uD2B8 1",selectedText:"\uC815\uB2F5 \uD14D\uC2A4\uD2B8 1",correct:!0},{sentence:"\uAE34 \uC774\uC57C\uAE30 2",answer:"\uC815\uB2F5 \uD14D\uC2A4\uD2B8 2",selectedText:"\uC120\uD0DD \uD14D\uC2A4\uD2B8 2",correct:!1},{sentence:"\uAE34 \uC774\uC57C\uAE30 3",answer:"\uC815\uB2F5 \uD14D\uC2A4\uD2B8 3",selectedText:void 0,correct:void 0},{sentence:"\uAE34 \uC774\uC57C\uAE30 4",answer:"\uC815\uB2F5 \uD14D\uC2A4\uD2B8 4",selectedText:"\uC815\uB2F5 \uD14D\uC2A4\uD2B8 4",correct:!0}]}:b==="order"&&(y={score:1,contextsLength:2,results:[{sentence:"\uC21C\uC11C \uBB38\uC81C 1",answer:"1,2,3",selectedText:"1,2,3",correct:!0},{sentence:"\uC21C\uC11C \uBB38\uC81C 2",answer:"A,B,C",selectedText:"B,A,C",correct:!1}]}),l(y),s(b)},c=o.useCallback(()=>{s(null),l(null)},[]),d=o.useCallback(()=>u("noise"),[]),m=o.useCallback(()=>u("short"),[]),p=o.useCallback(()=>u("long"),[]),f=o.useCallback(()=>u("order"),[]);return e?n.jsxs("div",{className:"debug-result-launcher",children:[n.jsxs("div",{className:"debug-buttons",children:[n.jsx("button",{type:"button",className:"debug-button",onClick:d,children:a("debug.showResult",{type:"Noise",defaultValue:"{{type}} \uACB0\uACFC\uBCF4\uAE30"})}),n.jsx("button",{type:"button",className:"debug-button",onClick:m,children:a("debug.showResult",{type:"ShortStory",defaultValue:"{{type}} \uACB0\uACFC\uBCF4\uAE30"})}),n.jsx("button",{type:"button",className:"debug-button",onClick:p,children:a("debug.showResult",{type:"LongStory",defaultValue:"{{type}} \uACB0\uACFC\uBCF4\uAE30"})}),n.jsx("button",{type:"button",className:"debug-button",onClick:f,children:a("debug.showResult",{type:"Order",defaultValue:"{{type}} \uACB0\uACFC\uBCF4\uAE30"})})]}),r&&i?t?.({score:i.score,contextsLength:i.contextsLength,results:i.results,onReplay:c,onClose:c}):null]}):null}exports.Accordion=wb,exports.ActionCard=df,exports.Alert=C4,exports.AppHeader=Eb,exports.AudioMeter=wo,exports.AudioPlayer=Wo,exports.Avatar=_4,exports.Badge=kt,exports.BarChart=py,exports.BarChartControls=Zl,exports.Board=O4,exports.BottomNav=ml,exports.BrandIdentity=bl,exports.Breadcrumb=A4,exports.BulkBar=Q4,exports.Button=pe,exports.CORE_VERSION=rf,exports.Calendar=Ly,exports.CardStep=xc,exports.ChartLegend=go,exports.ChartSection=bo,exports.ChartTotal=Ra,exports.Checkbox=Wl,exports.ChoiceChips=F5,exports.CircleBadge=d4,exports.CodeBox=X4,exports.ColorPicker=S4,exports.CompanyMeta=U4,exports.ConfirmPopup=Nc,exports.ConfirmStep=bc,exports.ConfirmWithTextStep=yc,exports.ContrastFilterPanel=u7,exports.CoreScope=pf,exports.CountTile=R4,exports.CouponInputPopup=p7,exports.DEFAULT_NOISE_SETTINGS=Oa,exports.DatePicker=oy,exports.DebugResultLauncher=z7,exports.DescriptionTooltip=Wn,exports.DeviceSideTable=jy,exports.Dialog=F4,exports.Divider=p4,exports.Dropdown=cn,exports.EffectPartyPopper=es,exports.EffectPartyPopperHost=C7,exports.EmptyState=uf,exports.ErrorState=cf,exports.FILTER_ALL_VALUE=un,exports.FileUpload=B4,exports.FilterPanel=Nn,exports.FilterSectionInfo=ja,exports.Footer=O5,exports.GameIntro=Cy,exports.Header=yl,exports.Icon=Qe,exports.IconGridMenu=I5,exports.IconRenderer=Qe,exports.InfoTooltip=xn,exports.ItemActions=ty,exports.LEVEL_MAX=pa,exports.LINE_CHART_HOVER_DELAY_MS=Xl,exports.LandingBottomSticky=z5,exports.LandingHeader=H5,exports.LineChart=hy,exports.ListPopup=c7,exports.ListenStep=gc,exports.Loader=$a,exports.MARKS=lr,exports.MARK_ICON=mu,exports.MARK_VARIANT=hu,exports.MediaQueryOverrideContext=xi,exports.MenuTooltip=Da,exports.NOISE_RATIO_MAX=Pa,exports.NOISE_RATIO_STEP=Wu,exports.NoisePlayerContext=Oo,exports.NoiseSettingsTooltip=uc,exports.NoticeBox=mf,exports.OrderListStep=vc,exports.PASS_CARD_BG_VARS=Un,exports.POS_LABEL=gu,exports.PROMO_BANNER_BG_COMPONENTS=tl,exports.PROMO_BANNER_BG_OPTIONS=eb,exports.PROMO_BANNER_BG_VARS=Ba,exports.Page=fr,exports.PageTitle=f7,exports.Pagination=nr,exports.Panel=Cr,exports.PanelGrid=j3,exports.PanelRow=Mn,exports.PanelRowDevice=S3,exports.PassCard=El,exports.PassCardBg=i4,exports.PassCardBgIHAB=l4,exports.PassCardBgLeftColorGrid=u4,exports.PassCardBgTwoCircle=Bl,exports.PaymentPlan=s4,exports.PersonCard=H4,exports.PhonemeFilterPanel=l7,exports.PhonemeSelectBlock=s7,exports.Popup=Tn,exports.ProgressBar=_y,exports.ProgressIndicator=su,exports.PromoBanner=vb,exports.PromoBannerBgDark=Oi,exports.PromoBannerBgDeep=Li,exports.PromoBannerBgDiagonal=Wi,exports.PromoBannerBgDots=Ui,exports.PromoBannerBgInstagram=el,exports.PromoBannerBgMain=Di,exports.PromoBannerBgNaver=Ji,exports.PromoBannerBgOutline=Ki,exports.PromoBannerBgRadial=zi,exports.PromoBannerBgSoft=Si,exports.PromoBannerBgSoftSub=Ri,exports.PromoBannerBgSub=Ti,exports.PromoBannerBgSuccess=Zi,exports.PromoBannerBgWarm=Ii,exports.PublicationCard=V4,exports.Radio=Ml,exports.RadioGroup=m4,exports.Rating=N4,exports.ReportDocument=_7,exports.ReportInfoPanel=w7,exports.RingChart=gy,exports.SENTENCE_TRAINING_TYPES=Ro,exports.SearchSummary=b4,exports.Section=la,exports.SectionHeadFloat=Ul,exports.SectionHeader=q4,exports.SegmentedControl=An,exports.ShortcutBadge=Tl,exports.SideNav=gl,exports.Slider=nu,exports.SoundCompass=c4,exports.SplashLogo=W4,exports.StatChart=by,exports.SummaryStrip=v7,exports.TRAINING_TOOLTIP_HOVER_DELAY_MS=$l,exports.Table=Ao,exports.TableFilterPanel=To,exports.Tabs=y4,exports.TextBoxTooltip=hr,exports.TextField=Gn,exports.Timeline=z4,exports.Toast=sa,exports.Toggle=Vl,exports.Toolbar=fo,exports.Tooltip=ln,exports.TooltipInfo=xn,exports.TooltipTextBox=hr,exports.TopBanner=xb,exports.TrainingBlock=Ry,exports.TrainingBlockButton=mo,exports.TrainingCard=D7,exports.TrainingCardGroup=E7,exports.TrainingPagePopup=$n,exports.TrainingPagePopupBottom=cc,exports.TrainingPagePopupTitle=dc,exports.TrainingResultPopup=wc,exports.TrainingStep=Kn,exports.TrainingStepAudioPlayer=Wo,exports.TrainingStepBullet=tc,exports.TrainingStepCard=oc,exports.TrainingStepConfirm=Uo,exports.TrainingStepConfirmWithText=Go,exports.TrainingStepListen=Ko,exports.TrainingStepOrderList=Yo,exports.TrainingStepTextBox=rc,exports.TrainingStepTitle=ac,exports.TrainingTooltip=Rl,exports.TrainingWordCard=Eo,exports.UpdateAlert=N7,exports.WAVE_A_MAX=n3,exports.WAVE_H1_PX=zo,exports.WAVE_HMAX_PX=t3,exports.WORD_TABLE_PAPER=ua,exports.WORD_TYPE_LABEL=bu,exports.WordDataProvider=y7,exports.WordDataUpdatePopup=H7,exports.WordImageTooltip=kc,exports.WordSearchFilterPanel=i7,exports.WordSearchResultBlock=r7,exports.WordTable=ca,exports.WordTableBlock=L7,exports.WordTableButton=$7,exports.WordTablePopup=c5,exports.WordTableThumbnail=jc,exports.buildMonthChartData=iy,exports.cellKey=b5,exports.cellLabel=g5,exports.cellsForLabels=S5,exports.clearPassCardBgTheme=Bn,exports.clearPromoBannerBgTheme=zt,exports.closeTrainingPopup=R3,exports.companyTypeLabel=g7,exports.createTrainingScenario=F3,exports.cx=Ae,exports.deriveNoiseContexts=q3,exports.derivePassCard=xl,exports.draftValues=R5,exports.effectiveNoiseVolume=Io,exports.effectiveSpeechVolume=Uu,exports.expandSlashLabel=jo,exports.formatDuration=j5,exports.getControlDateRange=fy,exports.getPayloadTimestamp=Jo,exports.getPromoBannerBgTheme=no,exports.getSelectedFromPayload=H3,exports.getSelectedText=z3,exports.getStepPayload=Cc,exports.getSteppedPayload=V3,exports.injectPassCardBgTheme=wn,exports.injectPromoBannerBgTheme=Ht,exports.isSelectionCorrect=W3,exports.labelOfCellKey=zu,exports.labelsForSave=f5,exports.levelToPct=W5,exports.markAfterClick=pu,exports.marksForSave=So,exports.mergeNoiseSettings=Fa,exports.missesByType=k5,exports.nextFocus=_5,exports.nextMisses=A5,exports.noiseElementVolume=Fo,exports.noiseRatioOf=Ia,exports.pageStartIndexes=Cu,exports.passCardBgIhabTheme=Sl,exports.passCardBgLeftColorGridTheme=jl,exports.passCardBgTwoCircleTheme=wl,exports.pctToLevel=q5,exports.printWordTable=zy,exports.promoBannerBgDarkTheme=Fi,exports.promoBannerBgDeepTheme=Mi,exports.promoBannerBgDiagonalTheme=Vi,exports.promoBannerBgDotsTheme=qi,exports.promoBannerBgInstagramTheme=Qi,exports.promoBannerBgMainTheme=Ni,exports.promoBannerBgNaverTheme=Xi,exports.promoBannerBgOutlineTheme=Gi,exports.promoBannerBgRadialTheme=Hi,exports.promoBannerBgSoftSubTheme=$i,exports.promoBannerBgSoftTheme=Ei,exports.promoBannerBgSubTheme=ji,exports.promoBannerBgSuccessTheme=Yi,exports.promoBannerBgWarmTheme=Pi,exports.recommendTables=D5,exports.regenerateUnpinned=$5,exports.removeItem=L5,exports.resolveTrainingItems=I3,exports.resolveTrainingPopupMeta=mc,exports.reviewCells=p5,exports.reviewMeta=C5,exports.reviewSetPlan=N5,exports.reviewTableName=h5,exports.scoreKey=ir,exports.scoreSheetHeader=y5,exports.shouldConfirmDiscard=Hy,exports.splitTrainingVariants=P3,exports.summarize=Oy,exports.summarizeMisses=B5,exports.tableTrends=x5,exports.toDraft=T5,exports.toTrainingText=O3,exports.togglePin=M5,exports.uncoveredLabels=E5,exports.useAnchoredMenu=Na,exports.useBarChartControl=Yl,exports.useCalendarMonth=ql,exports.useComboboxSuggestions=Hl,exports.useDiscardGuard=d7,exports.useFitScale=vu,exports.useNoisePlayer=cr,exports.useSoundCompassExam=yb,exports.useToastLifecycle=ru,exports.useWordData=b7,exports.useWordTableDisplaySettings=Ou,exports.useWordTablePrint=$o,exports.waveBarPx=pr,exports.waveBarVal=mr,exports.weakItems=v5,exports.withStepTimes=hc;
|