@ihabdevteam/core 0.221.0 → 0.221.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,7 +2,7 @@
2
2
  \uC2E0\uB8B0\uB97C \uC313\uACE0
3
3
  \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"},gv={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"}}},fv={timeHM:"{{h}}\uC2DC {{m}}\uBD84",timeH:"{{h}}\uC2DC"},vv={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"}},xv={answer:"\uC815\uB2F5",distractor:"\uC624\uB2F5"},Cv={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"},_v={clearAriaLabel:"\uC785\uB825\uAC12 \uC9C0\uC6B0\uAE30"},yv={ariaLabel:"\uC120\uD0DD \uD0ED"},wv={ariaLabel:"\uD0ED"},kv={dragPrompt:"\uD30C\uC77C\uC744 \uC774\uACF3\uC5D0 \uB4DC\uB798\uADF8\uD558\uC5EC \uC5C5\uB85C\uB4DC",browseButton:"\uD30C\uC77C \uC120\uD0DD",removeAriaLabel:"{{name}} \uC81C\uAC70"},Bv={ariaLabel:"\uC0AC\uC6A9\uC790 \uC544\uBC14\uD0C0"},Av={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"}},Sv={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"}},Ev={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"}},Nv={manage:{unit:"\uAC74"}},Dv={cancelLabel:"\uCDE8\uC18C"},Tv={steps:"\uC9C4\uD589 \uB2E8\uACC4 {{current}} / {{total}}"},jv={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"},Lv={resetColumns:"\uCE78 \uB108\uBE44 \uCD08\uAE30\uD654"},Mv={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"},$v={ariaLabel:"\uBC30\uB108",dotAriaLabel:"{{count}}\uAC1C \uC911 {{index}}\uBC88\uC9F8 \uBC30\uB108"},Rv={selectYearMonth:"\uC5F0\uC6D4 \uC120\uD0DD",chooseDate:"\uB0A0\uC9DC \uC120\uD0DD"},Pv={previewRegion:"\uBCF4\uACE0\uC11C \uBBF8\uB9AC\uBCF4\uAE30 \u2014 \uC88C\uC6B0\uB85C \uAD74\uB824 \uBCFC \uC218 \uC788\uC2B5\uB2C8\uB2E4"},zv={description:"\uC124\uBA85",textbox:"\uBCF8\uBB38",training:"\uD6C8\uB828 \uC548\uB0B4",menu:"\uBA54\uB274"},Iv={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"}},Ov={clearSelection:"\uC120\uD0DD \uD574\uC81C"},Fv={showResult:"{{type}} \uACB0\uACFC\uBCF4\uAE30"},Hv={selected:"\uC120\uD0DD\uB428",remove:"\uC81C\uAC70",exclude:"\uC81C\uC678",nthSelected:"{{n}}\uBC88\uC9F8 \uC120\uD0DD"},Vv={loading:"\uBD88\uB7EC\uC624\uB294 \uC911\u2026"},Wv={state:{active:"\uC18C\uB9AC \uB098\uB294 \uC911",played:"\uB4E4\uC74C",correct:"\uC815\uB2F5",wrong:"\uC624\uB2F5"}},Gv={ariaLabel:"\uC774\uB3D9 \uACBD\uB85C"},Uv={empty:"\uB4F1\uB85D\uB41C \uD56D\uBAA9\uC774 \uC5C6\uC2B5\uB2C8\uB2E4."},qv={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"},Yv={common:L1,calendar:M1,passCard:$1,searchField:R1,rating:P1,colorPicker:z1,dropdown:I1,accordion:O1,header:F1,nav:H1,settings:V1,usage:W1,account:G1,help:U1,training:q1,trainingSettings:Y1,customers:K1,payment:Z1,coupons:X1,visits:J1,company:Q1,trainingType:ev,myWordTraining:tv,myWordTable:av,keyWords:ov,wordTable:rv,wordSearch:nv,wordPrint:iv,topic:sv,accessLinkManager:lv,login:cv,trainingPlanRun:dv,device:uv,manager:pv,wordPairs:hv,game:mv,footer:bv,landing:gv,date:fv,trainingSetPage:vv,wordTrainingPreview:xv,wordData:Cv,textField:_v,segmentedControl:yv,tabs:wv,fileUpload:kv,avatar:Bv,myHomework:Av,trainingStatus:Sv,store:Ev,homework:Nv,inquiry:Dv,progress:Tv,trainingMiss:jv,table:Lv,wordScore:Mv,topBanner:$v,datePicker:Rv,report:Pv,tooltip:zv,phonemeProfile:Iv,bulkBar:Ov,debug:Fv,badge:Hv,loader:Vv,soundCompass:Wv,breadcrumb:Gv,board:Uv,promoBannerBg:qv},Kv={statusFilter:"Filter by status",pageSizeSelect:"Items per page",selectedCount_one:"{{count}} selected",selectedCount_other:"{{count}} selected",moreFor:"More options for {{name}}",cancel:"Cancel",info:"Info",errorState:{message:"Couldn't load this.",retry:"Try again"},save:"Save",confirm:"Confirm",discardConfirm:{title:"Discard your changes?",body:"If you do not save, everything you have entered will be lost.",confirm:"Discard"},close:"Close",back:"Back",emptyTrainingName:"Training name is empty.",remove:"Remove",image:"Image",delete:"Delete",reset:"Reset",update:"Update",download:"Download",search:"Search",empty:"No data.",yes:"Yes",no:"No",all:"All",none:"None",days_one:"{{count}} day",days_other:"{{count}} days",loadMore:"Load More",retry:"Try Again",prevPage:"Previous page",nextPage:"Next page",play:"Play",pause:"Pause",playPause:"Play / Pause",replay:"Replay",subscription:"Subscription",done:"Done",failed:"Failed",continue:"Continue",notification:"Notice",emptyList:"No items",menu:"Menu",resetSelection:"Reset Selection",pageSizeLabel:"Show {{n}}",totalCountPrefix:"Total: ",totalCountSuffix:"",expand:"Expand",collapse:"Collapse",popup:"Popup",more:"More",codeBlock:"Code block",totalPrefix:"",copyCode:"Copy code",copied:"Copied",col:{problem:"Question"},phonetics:{place:{labial:"Bilabial",alveolar:"Alveolar",palatal:"Palatal",velar:"Velar",glottal:"Glottal"},vowel:{frontHigh:"Front high vowel",backHighUnrounded:"Back high unrounded vowel",backHighRounded:"Back high rounded vowel",frontMid:"Front mid vowel",backMidUnrounded:"Back mid unrounded vowel",backMidRounded:"Back mid rounded vowel",low:"Low vowel"},glide:{j:"j-glide",w:"w-glide",velar:"\u0270-glide"}},unknownError:"Unknown error",networkError:"The network connection is unstable. Check your connection and try again."},Zv={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)"},Xv={planSuffix:"Plan",labeledPlan:"{{label}} Plan",couponCode:"Pass Code",specialLabel:"Open Special",unitDay:"d",unitYear:"yr",remainingDay:"{{n}}d left",remainingHour:"{{n}}h left",remainingMinute:"{{n}}m left",remainingSecond:"{{n}}s left",menu:{use:"Activate",refund:"Refund",delete:"Delete"}},Jv={clearAriaLabel:"Clear search"},Qv={starLabel:"Select star {{n}}",valueLabel:"{{value}} out of {{max}}",groupLabel:"Rating"},ex={selected:"selected"},tx={placeholder:"Select"},ax={collapse:"Collapse",expand:"Expand"},ox={biArea:"BI area",biSymbol:"BI symbol",logoMalgwi:"Malgwi logo",logoManager:"Malgwi Manager logo",menuOpen:"Open menu",utilMenu:"Utility menu",menuClose:"Close menu"},rx={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}}"},nx={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."}}},ix={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"}},sx={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"}}},lx={guide:{faq:{title:"FAQ",desc:"View all frequently asked questions"}}},cx={settings:"Settings",start:{title:"Start Word Training",description:"Select a training type below to begin"},difficulty:{tooltip:"The easiest difficulty is 'Random', the hardest is 'Initial Consonant Difference'."},contrast:{label:"Contrast",type:"Contrast Type",count:"Contrast Count",n:"{{n}}"},filter:{random:"Random",trainOnset:"Onset",trainVowel:"Vowel",trainCoda:"Coda",phonemeGroup:"Training phonemes",noLimit:"Any",codaExclude:"Exclude",gradeLabel:"Grade",excludeImageInfo:"Only words with images: keeps only results with a registered word image.",sameStructureInfo:"Only same phoneme structure: keeps only pairs where the correct and wrong answers share the same syllable structure (length, batchim, etc.).",selectSection:"Select",excludeImage:"Only words with images",sameStructure:"Only same phoneme structure"},noQuestions:"No questions available.",countQuestions:"{{n}} questions",countSentences:"{{n}} sentences",comingSoon:"Coming Soon",nextQuestion:"Next",noiseRatioTitle:"Noise Ratio",noiseRatioValue:"{{ratio}}\xD7",noiseTypeTitle:"Noise Type",playVolumeTitle:"Volume",playSpeedTitle:"Speed",meter:{sentence:"Playback",noise:"Noise",toggle:"Show Audio Meter"},viewResult:"View Results",problemNotice:"Problem {{n}}.",trainingSettingsTitle:"Training Settings",sentencePreview:"Sentence Preview",notHeard:"Didn't hear it.",heardWell:"Heard it well.",confirmTitle:"Check the sentence and select whether you heard it.",noSoundWaveform:"Waveform is not shown for sound-comparison questions.",noise:{level:{none:"None",weak:"Weak",medium:"Medium",strong:"Strong",veryStrong:"Very Strong"},type:{none:"None",default:"Default",street:"Street",buzz:"Buzzing",restaurant:"Restaurant"}},listenTitle:"Please listen to the sentence.",listenButton:"Listen",playSound:"Play Sound",playAll:"Play All",selectInOrder:"Select the cards in the order you heard.",stop:"Stop",preview:"Preview",next:"Next",completed:"Completed",selected:"Selected",nthSelected:"Selection {{n}}",fontSizeMin:"Font size is at the minimum.",fontSizeMax:"Font size is at the maximum.",fontSizeDecrease:"Decrease font size",fontSizeIncrease:"Increase font size",toggleBackground:"Toggle background",cardInstructions:"Look at the word card, listen to the sound, and check it.",noCards:"No cards.",audioFetchError:"Failed to load the sound source.",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"}},dx={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"},ux={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"}},px={plan:{recommendedFor:"Recommended for",features:"Key Features",freePrice:"Free",contact:"Contact Us",tierFallback:"Plan",openPromo:"Launch offer"},products:{mgrEnterprise:{tier:{price:"Contact us"}}}},hx={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"}},mx={unitVisit:"",periodAll:"All",showN:"Show {{n}}"},bx={subtitle:"Manage company and business information",editButton:"Edit Info",basicInfo:{title:"Basic Info"},contactInfo:{title:"Contact Info"}},gx={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."}},fx={comingSoon:"Word training is coming soon."},vx={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"},xx={title:"Key Words",empty:"No key words available."},Cx={defaultName:"Word Table",title:"Word Table Builder",subtitle:"Set columns and add words to build a table.",filterTitle:"Table Settings",filter:{composition:"Composition",image:"Image",word:"Word",standardPron:"Standard Pronunciation",colloquialPron:"Colloquial Pronunciation",paperOrientation:"Paper Orientation",landscape:"Landscape",portrait:"Portrait",columns:"Columns",column:"{{count}} col",itemsPerPageWord:"Words per page",itemsPerPagePair:"Pairs per page",itemsPerPageOption:"{{count}}",pageIndicator:"{{current}} / {{total}}",pageNumber:"Page Number",pageNumberLeft:"Left",pageNumberCenter:"Center",pageNumberRight:"Right",border:"Border",topInfo:"Header",bottomInfo:"Footer",cutLine:"Cut Line",show:"Show",hide:"Hide",dotted:"Dotted",corner:"Corner"},addWord:"Add",wordInfo:"Info for {{word}}",emptyItems:"Please add at least one word.",load:"Load",openNewWindow:"Open in New Window",saveButton:"Save",saveAsNewButton:"Save as New",print:"Print",popupBlocked:"Popup was blocked. Please allow popups in your browser settings.",printFileNameSingle:"Word Table",printFileNamePair:"Contrast Pair Table",save:{title:"Save Word Table",nameLabel:"Name",desc:"Enter a name for the word table.",placeholder:"Enter a title for this word table.",descriptionLabel:"Description",descriptionPlaceholder:"Enter a description for this word table.",duplicateName:"This name is already in use.",nameRequired:"Please enter a table name.",autoFillHint:" (Press Tab or Space to autofill)",copyName:"{{name}} (copy)"},loadTable:{title:"Load Saved Word Table",empty:"No saved word tables.",loadButton:"Load",itemCount:"{{count}} words",deleteAriaLabel:"Delete {{name}}",sort:{newest:"Newest",oldest:"Oldest",name:"Name",count:"Word Count"},view:{grid:"Grid View",list:"List View"}},groupDeleteMessage:"Word tables in this group will be moved to 'No Group'.",groupNamePlaceholder:"Group name",store:{badge:"Training Store"},card:{sub:"Word Table Card",empty:"No word tables in this card."},toast:{renameError:"Failed to rename",saveError:"Failed to save",deleteError:"Failed to delete",duplicateError:"Failed to duplicate",saveSuccess:"Word table saved."},scoring:{o:"{{word}} correct",triangle:"{{word}} partial",x:"{{word}} incorrect",button:"Score",pickTitle:"Who are you scoring?",pickSubtitle:"Choose the customer who trained with \u201C{{name}}\u201D.",pickSearch:"Search by name or phone",pickEmpty:"No customers registered.",pickNoMatch:"No matching customer.",pickAgain:"Choose another",scoringFor:"Scoring {{name}}",none:"Tap \u25CB \xB7 \u25B3 \xB7 \u2715 under a cell to mark it. With a mouse, hover the cell to reveal them.",tally:"{{marked}} scored \xB7 \u25CB {{o}} \xB7 \u25B3 {{triangle}} \xB7 \u2715 {{x}} \xB7 {{rate}}%",save:"Save score",saved:"Saved {{count}} marks for {{name}}.",reviewTitle:"Create a review table?",reviewMessage:"Builds a new table from the {{count}} cells {{name}} got wrong or partial. Correct ones are left out.",reviewConfirm:"Create review table",reviewDescription:"Cells marked wrong or partial in \u201C{{name}}\u201D \u2014 {{count}} of them.",reviewCreated:"Created \u201C{{name}}\u201D \u2014 {{count}} cells.",discardTitle:"Discard this scoring?",discardMessage:"You marked {{count}} cells but have not saved. Leaving discards them.",discardConfirm:"Discard and leave"},info:{grade:"Grade: {{n}}",syllables:"Syllables: {{n}}",pos:"Part of speech: {{v}}",wordType:"Type: {{v}}"},pos:{noun:"Noun",verb:"Verb",adjective:"Adjective",adverb:"Adverb",numeral:"Numeral",determiner:"Determiner",interjection:"Interjection",particle:"Particle",affix:"Affix",dependentNoun:"Dependent noun",pronoun:"Pronoun",auxVerb:"Auxiliary verb",auxAdjective:"Auxiliary adjective"},reorder:{moved:"Moved to position {{n}} of {{total}}",handle:"Reorder {{word}} (Alt + arrow keys)",hint:"Alt + \u2190 \u2192 to reorder"}},_x={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}}"}},yx={clearAllSelection:"Clear All Selections",divLine:"Contrast Line",removePair:"Remove pair",removeWord:"Remove word"},wx={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"}},kx={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"}},Bx={passwordPlaceholder:"Enter password"},Ax={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"}},Sx={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"}},Ex={editBanner:{message:"Saving will update the contrast pair table you're editing."},phonemeSelect:{title:"Phoneme Selection",vs:"vs"},caution:"Caution",mode:{include:"Phoneme Include",pick:"Phoneme Contrast",contrast:"Specify Contrast",infoTitle:"Contrast Mode",infoInclude:"Include \u2014 finds words containing all selected phonemes, plus their minimal pair.",infoPick:"Contrast \u2014 matches only if the selected phoneme is the actual point of difference in the pair.",infoContrast:"Specify Contrast \u2014 directly choose phonemes for the base word and the contrasting word to find pairs."},count:"{{n}}",input:{char:"Choose Letters",pron:"Choose Sound",infoTitle:"Input mode",infoChar:"Choose Letters \u2014 finds words by the selected phonemes (spelling), then finds their standard-pronunciation contrast pairs.",infoPron:"Choose Sound \u2014 finds standard-pronunciation contrast pairs directly from the selected phonemes."},phonemeN:"Syllable {{n}}",phonemeSingleLabel:"Syllable",phonemeContrastSingleLabel:"Contrast Syllable",ordinals:["First","Second","Third","Fourth"],phonemeOrdinalLabel:"{{ordinal}} Syllable",phonemeContrastOrdinalLabel:"Contrast {{ordinal}} Syllable",composition:"Answer Word Composition",syllableCount:"Syllables",syllableN:"{{n}} syll.",syllableNPlus:"{{n}}+ syll.",onset:"Onset",vowel:"Vowel",coda:"Coda",filter:{searchOptionsTitle:"Contrast Settings",searchModeLabel:"Contrast Mode",countLabel:"Input Syllable Count",inputModeLabel:"Input mode",phonemeOrder:"Input Syllable Position",phonemeOrderInfo:["Match: the pair must differ at exactly the same position (syllable).","Any: the differing position doesn't matter."],orderAny:"Any",orderMatch:"Match",difficultyInfo:"Reflects the National Institute of Korean Language's basic vocabulary grade.",selectLabel:"Select",onlyHasImage:"Only words with images",onlySameStructure:"Only same phoneme structure"},searchLabel:{error:"Failed to load data",loading:"Loading\u2026"},confirmMessage:"The word table with {{count}} selected {{unit}} will be lost.",resetOptions:"Reset Options",phonemeContrast:"Contrast Syllable {{n}}",infoNotes:["The preview character is an example of the selected phoneme combination. The actual search covers all words containing the phoneme.","Initial consonant '\u3147' cannot be selected. \u3147 at the start of a word is effectively silent.","If only onset and coda are selected, the vowel is automatically displayed as '\u314F'.","Increasing the phoneme count searches for minimal pairs between each phoneme."]},Nx={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"}},Dx={lead:`IHAB builds trust
4
4
  through sound
5
- 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"},Tx={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"}}},jx={timeHM:"{{hh}}:{{mm}}",timeH:"{{hh}}:{{mm}}"},Lx={options:"Training Options",difficulty:"Difficulty",exclude:"Exclude",chosung:"Initial Consonant",excludeOptions:{none:"None",noImage:"No Image"}},Mx={answer:"Answer",distractor:"Distractor"},$x={phaseWordDownload:"Download Word Data",phaseImageCheck:"Check Images",phasePairAnalysis:"Analyze Word Pairs",downloadingCount:"Downloading {{n}} words",checkingPage:"Checking page {{page}} list",imageCount:"{{done}} / {{total}} items"},Rx={clearAriaLabel:"Clear input"},Px={ariaLabel:"Select tab"},zx={ariaLabel:"Tabs"},Ix={dragPrompt:"Drag and drop files here",browseButton:"Choose Files",removeAriaLabel:"Remove {{name}}"},Ox={ariaLabel:"User avatar"},Fx={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"}},Hx={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"}},Vx={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)"}},Wx={manage:{unit:"item(s)"}},Gx={cancelLabel:"Cancel"},Ux={subtitle:"Select a topic to start listening practice."},qx={steps:"Step {{current}} of {{total}}"},Yx={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"},Kx={resetColumns:"Reset column widths"},Zx={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}}"},Xx={ariaLabel:"Banner",dotAriaLabel:"Banner {{index}} of {{count}}"},Jx={selectYearMonth:"Select year and month",chooseDate:"Choose a date"},Qx={previewRegion:"Report preview \u2014 scrollable sideways"},eC={description:"Description",textbox:"Text",training:"Training guide",menu:"Menu"},tC={devNone:"No acquisition data",place:{labial:"Bilabial",alveolar:"Alveolar",palatal:"Palatal",velar:"Velar",glottal:"Glottal"}},aC={clearSelection:"Clear selection"},oC={showResult:"Show {{type}} result"},rC={selected:"Selected",remove:"Remove",exclude:"Excluded",nthSelected:"Selection {{n}}"},nC={loading:"Loading"},iC={state:{active:"playing",played:"heard",correct:"correct",wrong:"wrong"}},sC={ariaLabel:"Breadcrumb"},lC={empty:"No items yet."},cC={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"},dC={common:Kv,calendar:Zv,passCard:Xv,searchField:Jv,rating:Qv,colorPicker:ex,dropdown:tx,accordion:ax,header:ox,nav:rx,settings:nx,usage:ix,account:sx,help:lx,training:cx,trainingSettings:dx,customers:ux,payment:px,coupons:hx,visits:mx,company:bx,trainingType:gx,myWordTraining:fx,myWordTable:vx,keyWords:xx,wordTable:Cx,wordSearch:_x,wordPrint:yx,topic:wx,accessLinkManager:kx,login:Bx,device:Ax,manager:Sx,wordPairs:Ex,game:Nx,footer:Dx,landing:Tx,date:jx,trainingSetPage:Lx,wordTrainingPreview:Mx,wordData:$x,textField:Rx,segmentedControl:Px,tabs:zx,fileUpload:Ix,avatar:Ox,myHomework:Fx,trainingStatus:Hx,store:Vx,homework:Wx,inquiry:Gx,trainingPlanRun:Ux,progress:qx,trainingMiss:Yx,table:Kx,wordScore:Zx,topBanner:Xx,datePicker:Jx,report:Qx,tooltip:eC,phonemeProfile:tC,bulkBar:aC,debug:oC,badge:rC,loader:nC,soundCompass:iC,breadcrumb:sC,board:lC,promoBannerBg:cC};const En="0.220.0",Dr=[{code:"ko",label:"\uD55C\uAD6D\uC5B4"},{code:"en",label:"English"}],Bo="ko",cs="ihab_display_language";function Xu(){if(typeof window>"u")return Bo;try{const e=localStorage.getItem(cs);if(e&&Dr.some(t=>t.code===e))return e}catch{}return Bo}function uC(e){try{localStorage.setItem(cs,e)}catch{}}function Ju(e){try{document.documentElement.lang=e}catch{}}ht.on("languageChanged",Ju),Ju(Xu()),ht.use(ve.initReactI18next).init({resources:{ko:{translation:Yv},en:{translation:dC}},lng:Xu(),fallbackLng:Bo,interpolation:{escapeValue:!1},react:{useSuspense:!1}});const Qu=l.createContext({locale:Bo,supportedLocales:Dr});function pC(){return l.useContext(Qu)}function hC(e){const t=o=>Dr.some(n=>n.code===o);if(t(e))return e;const a=e.split(/[-_]/)[0]?.toLowerCase()??"";return t(a)?a:Bo}function mC({locale:e=Bo,children:t}){const a=hC(e);return l.useEffect(()=>{ht.language!==a&&ht.changeLanguage(a)},[a]),r.jsx(Qu.Provider,{value:{locale:a,supportedLocales:Dr},children:t})}function Le(...e){return e.filter(Boolean).join(" ")}var bC=".ihabdevteam-core-scope .empty-state{align-items:center;border:1px solid var(--color-whiteLine);border-radius:var(--radius-m);display:flex;flex-direction:column;gap:10px;justify-content:center;margin-block:auto;padding:var(--spacing-page) var(--spacing-xl);text-align:center}.ihabdevteam-core-scope .empty-state__icon{color:var(--color-lightGray);display:inline-flex}.ihabdevteam-core-scope .empty-state__message,.ihabdevteam-core-scope .empty-state__title{color:var(--color-gray);margin:0}.ihabdevteam-core-scope .empty-state__title+.empty-state__message{margin-top:-6px}.ihabdevteam-core-scope .empty-state__action{margin-top:var(--spacing-xs);min-width:120px}";oe(bC);const ep=new Set,tp=(()=>{try{const e=globalThis;return e.process!=null&&e.process.env?.NODE_ENV!=="production"}catch{return!1}})();function Ua(e,...t){!tp||ep.has(e)||(ep.add(e),console.warn(...t))}/**
5
+ 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"},Tx={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"}}},jx={timeHM:"{{hh}}:{{mm}}",timeH:"{{hh}}:{{mm}}"},Lx={options:"Training Options",difficulty:"Difficulty",exclude:"Exclude",chosung:"Initial Consonant",excludeOptions:{none:"None",noImage:"No Image"}},Mx={answer:"Answer",distractor:"Distractor"},$x={phaseWordDownload:"Download Word Data",phaseImageCheck:"Check Images",phasePairAnalysis:"Analyze Word Pairs",downloadingCount:"Downloading {{n}} words",checkingPage:"Checking page {{page}} list",imageCount:"{{done}} / {{total}} items"},Rx={clearAriaLabel:"Clear input"},Px={ariaLabel:"Select tab"},zx={ariaLabel:"Tabs"},Ix={dragPrompt:"Drag and drop files here",browseButton:"Choose Files",removeAriaLabel:"Remove {{name}}"},Ox={ariaLabel:"User avatar"},Fx={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"}},Hx={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"}},Vx={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)"}},Wx={manage:{unit:"item(s)"}},Gx={cancelLabel:"Cancel"},Ux={subtitle:"Select a topic to start listening practice."},qx={steps:"Step {{current}} of {{total}}"},Yx={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"},Kx={resetColumns:"Reset column widths"},Zx={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}}"},Xx={ariaLabel:"Banner",dotAriaLabel:"Banner {{index}} of {{count}}"},Jx={selectYearMonth:"Select year and month",chooseDate:"Choose a date"},Qx={previewRegion:"Report preview \u2014 scrollable sideways"},eC={description:"Description",textbox:"Text",training:"Training guide",menu:"Menu"},tC={devNone:"No acquisition data",place:{labial:"Bilabial",alveolar:"Alveolar",palatal:"Palatal",velar:"Velar",glottal:"Glottal"}},aC={clearSelection:"Clear selection"},oC={showResult:"Show {{type}} result"},rC={selected:"Selected",remove:"Remove",exclude:"Excluded",nthSelected:"Selection {{n}}"},nC={loading:"Loading"},iC={state:{active:"playing",played:"heard",correct:"correct",wrong:"wrong"}},sC={ariaLabel:"Breadcrumb"},lC={empty:"No items yet."},cC={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"},dC={common:Kv,calendar:Zv,passCard:Xv,searchField:Jv,rating:Qv,colorPicker:ex,dropdown:tx,accordion:ax,header:ox,nav:rx,settings:nx,usage:ix,account:sx,help:lx,training:cx,trainingSettings:dx,customers:ux,payment:px,coupons:hx,visits:mx,company:bx,trainingType:gx,myWordTraining:fx,myWordTable:vx,keyWords:xx,wordTable:Cx,wordSearch:_x,wordPrint:yx,topic:wx,accessLinkManager:kx,login:Bx,device:Ax,manager:Sx,wordPairs:Ex,game:Nx,footer:Dx,landing:Tx,date:jx,trainingSetPage:Lx,wordTrainingPreview:Mx,wordData:$x,textField:Rx,segmentedControl:Px,tabs:zx,fileUpload:Ix,avatar:Ox,myHomework:Fx,trainingStatus:Hx,store:Vx,homework:Wx,inquiry:Gx,trainingPlanRun:Ux,progress:qx,trainingMiss:Yx,table:Kx,wordScore:Zx,topBanner:Xx,datePicker:Jx,report:Qx,tooltip:eC,phonemeProfile:tC,bulkBar:aC,debug:oC,badge:rC,loader:nC,soundCompass:iC,breadcrumb:sC,board:lC,promoBannerBg:cC};const En="0.221.1",Dr=[{code:"ko",label:"\uD55C\uAD6D\uC5B4"},{code:"en",label:"English"}],Bo="ko",cs="ihab_display_language";function Xu(){if(typeof window>"u")return Bo;try{const e=localStorage.getItem(cs);if(e&&Dr.some(t=>t.code===e))return e}catch{}return Bo}function uC(e){try{localStorage.setItem(cs,e)}catch{}}function Ju(e){try{document.documentElement.lang=e}catch{}}ht.on("languageChanged",Ju),Ju(Xu()),ht.use(ve.initReactI18next).init({resources:{ko:{translation:Yv},en:{translation:dC}},lng:Xu(),fallbackLng:Bo,interpolation:{escapeValue:!1},react:{useSuspense:!1}});const Qu=l.createContext({locale:Bo,supportedLocales:Dr});function pC(){return l.useContext(Qu)}function hC(e){const t=o=>Dr.some(n=>n.code===o);if(t(e))return e;const a=e.split(/[-_]/)[0]?.toLowerCase()??"";return t(a)?a:Bo}function mC({locale:e=Bo,children:t}){const a=hC(e);return l.useEffect(()=>{ht.language!==a&&ht.changeLanguage(a)},[a]),r.jsx(Qu.Provider,{value:{locale:a,supportedLocales:Dr},children:t})}function Le(...e){return e.filter(Boolean).join(" ")}var bC=".ihabdevteam-core-scope .empty-state{align-items:center;border:1px solid var(--color-whiteLine);border-radius:var(--radius-m);display:flex;flex-direction:column;gap:10px;justify-content:center;margin-block:auto;padding:var(--spacing-page) var(--spacing-xl);text-align:center}.ihabdevteam-core-scope .empty-state__icon{color:var(--color-lightGray);display:inline-flex}.ihabdevteam-core-scope .empty-state__message,.ihabdevteam-core-scope .empty-state__title{color:var(--color-gray);margin:0}.ihabdevteam-core-scope .empty-state__title+.empty-state__message{margin-top:-6px}.ihabdevteam-core-scope .empty-state__action{margin-top:var(--spacing-xs);min-width:120px}";oe(bC);const ep=new Set,tp=(()=>{try{const e=globalThis;return e.process!=null&&e.process.env?.NODE_ENV!=="production"}catch{return!1}})();function Ua(e,...t){!tp||ep.has(e)||(ep.add(e),console.warn(...t))}/**
6
6
  * @license lucide-react v1.38.0 - ISC
7
7
  *
8
8
  * This source code is licensed under the ISC license.
@@ -1626,7 +1626,7 @@ export declare function copyText(text: string): Promise<boolean>;
1626
1626
  *
1627
1627
  * 값은 손으로 적고 `test/coreVersion.test.ts` 가 package.json 과 어긋나면 운다.
1628
1628
  */
1629
- export declare const CORE_VERSION = "0.220.0";
1629
+ export declare const CORE_VERSION = "0.221.1";
1630
1630
 
1631
1631
  /** @public */
1632
1632
  declare const coreDefault: Record<string, unknown>;
@@ -46,4 +46,4 @@
46
46
  *
47
47
  * 값은 손으로 적고 `test/coreVersion.test.ts` 가 package.json 과 어긋나면 운다.
48
48
  */
49
- export declare const CORE_VERSION = "0.220.0";
49
+ export declare const CORE_VERSION = "0.221.1";
@@ -46,4 +46,4 @@
46
46
  *
47
47
  * 값은 손으로 적고 `test/coreVersion.test.ts` 가 package.json 과 어긋나면 운다.
48
48
  */
49
- export const CORE_VERSION = '0.220.0';
49
+ export const CORE_VERSION = '0.221.1';
package/dist/utils.cjs.js CHANGED
@@ -17,4 +17,4 @@
17
17
  \uC124\uCE58 \uBA85\uB839\uC5B4 (\uC2A4\uD1A0\uB9AC\uC9C0 SDK \uBBF8\uC124\uCE58 \uC2DC):
18
18
  npm install @supabase/supabase-js
19
19
  pnpm add @supabase/supabase-js
20
- `),this.name="StorageNotConfiguredError"}};function Xt(e){Qt(e)}function Zt(e,n){if(!e)return null;const t=X();return t?.resolvePath?t.resolvePath(e,n):n?`${n}/${e}.mp3`:null}async function jn(e){if(!e)return!1;const n=X();if(!n)throw new qe("fileExists");if(n.exists)return n.exists(e);try{return await n.resolveUrl(e)!==null}catch{return!1}}async function Rn(e){if(!e)return null;const n=X();if(!n)throw new qe("getSignedOrPublicUrl");try{return await n.resolveUrl(e)}catch{return null}}async function eo(e){const n=X();if(!n)throw new qe("downloadSound");return n.download(e)}function no(){return X()?.noiseBaseUrl??"/sounds/noise"}function to(){const e=Number(X()?.noiseFileGain);return Number.isFinite(e)&&e>0?e:1}function oo(e){const n=AbortSignal.timeout;if(typeof n=="function")return n.call(AbortSignal,e);const t=new AbortController;return setTimeout(()=>t.abort(),e),t.signal}const Je="__ihab_core_tts_config__";function uo(e){globalThis[Je]=e}function ro(){return globalThis[Je]?.urlResolver??null}function io(){return globalThis[Je]?.fallbackUrlResolver??null}const ao=new Map;function so(){ao.clear()}const kn="__ihab_core_pronunciation_resolver__";function lo(e){globalThis[kn]=e}function co(){return globalThis[kn]??null}let K=null;const ie=new WeakMap,Qe=new WeakMap,Xe=new WeakMap;let On=!1;const $n=e=>Math.max(0,Math.min(1,Number.isFinite(e)?e:0));function Co(){if(On||typeof document>"u")return;On=!0;const e=()=>{try{K&&K.state!=="running"&&K.resume()}catch{}};for(const n of["pointerdown","touchend","keydown"])document.addEventListener(n,e,{capture:!0,passive:!0})}function In(){if(K)return K;try{const e=window.AudioContext||window.webkitAudioContext;return e?(K=new e,Co(),K):null}catch{return null}}function go(){try{K?.resume()}catch{}}function Ze(e,n){const t=ie.get(n);if(t)return t;try{const o=e.createMediaElementSource(n),r=e.createGain(),a=e.createAnalyser();a.fftSize=1024,a.smoothingTimeConstant=.6,r.gain.value=$n(Qe.get(n)??n.volume),o.connect(r),r.connect(a),r.connect(e.destination);try{n.volume=1}catch{}const u={gain:r,analyser:a};return ie.set(n,u),u}catch{return null}}function Pn(e){if(!e)return Promise.resolve(null);const n=ie.get(e);if(n)return Promise.resolve(n.analyser);const t=In();if(!t)return Promise.resolve(null);if(t.state==="running")return Promise.resolve(Ze(t,e)?.analyser??null);const o=Xe.get(e);if(o)return o;const r=Promise.resolve().then(()=>t.resume()).then(()=>t.state==="running"?Ze(t,e)?.analyser??null:null).catch(()=>null).finally(()=>{Xe.delete(e)});return Xe.set(e,r),r}function fo(e){if(!e)return null;const n=ie.get(e);if(n)return n.analyser;const t=In();return t?t.state==="running"?Ze(t,e)?.analyser??null:(Pn(e),null):null}function ho(e,n){const t=$n(n);Qe.set(e,t);const o=ie.get(e);if(o){try{e.volume!==1&&(e.volume=1)}catch{}const r=o.gain.gain;try{const a=o.gain.context.currentTime;r.cancelScheduledValues(a),r.setTargetAtTime(t,a,.01)}catch{try{r.value=t}catch{}}return"gain"}try{e.volume=t}catch{}return"element"}function mo(e){return Qe.get(e)??e.volume}function So(e,n){e.getFloatTimeDomainData(n);let t=0;for(let o=0;o<n.length;o++){const r=n[o];t+=r*r}return Math.sqrt(t/n.length)}const Mn="__ihab_core_image_config__";function Eo(e){globalThis[Mn]=e}function vn(){return globalThis[Mn]??null}const ae="word_image_existence_map_v1";let M=null,se=0,Fn=-1,le=null;const Le=new Map;function ce(){if(M)return M;try{const e=typeof localStorage<"u"?localStorage.getItem(ae):null,n=e?JSON.parse(e):null;M=n&&typeof n=="object"&&!Array.isArray(n)?n:{}}catch{M={}}return M}let en=null;function yo(){en||(en=setTimeout(()=>{en=null;try{typeof localStorage<"u"&&M&&localStorage.setItem(ae,JSON.stringify(M))}catch{}},200))}function je(e,n){return`${e}_${n??1}`}async function Gn(e,n){const t=ce(),o=je(e,n);if(o in t)return t[o];if(Le.has(o))return Le.get(o);const r=vn();if(!r)return!1;const a=r(e,n);if(!a)return!1;const u=fetch(a,{method:"HEAD",signal:oo(8e3)}).then(i=>i.status>=500?null:i.ok,()=>null).then(i=>(Le.delete(o),i===null?!1:(t[o]=i,se++,yo(),i)));return Le.set(o,u),u}function Do(e,n){const t=ce(),o=je(e,n);return o in t?t[o]:void 0}async function To(e,n={}){const{force:t=!1,concurrency:o=16,onProgress:r}=n,a=ce(),u=t?Array.from(new Set(e)):Array.from(new Set(e)).filter(s=>!(je(s)in a));let i=0;if(u.length>0){let s=0;const c=Array.from({length:Math.min(o,u.length)},async()=>{for(;s<u.length;){const C=s++,l=u[C],g=je(l);if(!t&&g in a){i++,r?.(i,u.length);continue}try{await Gn(l)}catch{}i++,r?.(i,u.length)}});await Promise.all(c)}try{typeof localStorage<"u"&&M&&localStorage.setItem(ae,JSON.stringify(M))}catch{}return{checked:u.length,cached:Object.keys(a).length,total:e.length}}function po(){const e=ce();if(Fn===se)return le?{...le}:null;const n=Object.values(e);return le=n.length===0?null:{total:n.length,exists:n.filter(Boolean).length},Fn=se,le?{...le}:null}function Ao(e){const n=ce();Object.assign(n,e),se++;try{typeof localStorage<"u"&&localStorage.setItem(ae,JSON.stringify(n))}catch{}}function wo(){M={},se++;try{typeof localStorage<"u"&&localStorage.removeItem(ae)}catch{}}const bo={\u3131:"\u3131",\u3132:"\u3131",\u314B:"\u3131",\u3133:"\u3131",\u313A:"\u3131",\u3134:"\u3134",\u3135:"\u3134",\u3136:"\u3134",\u3137:"\u3137",\u3145:"\u3137",\u3146:"\u3137",\u3148:"\u3137",\u314A:"\u3137",\u314C:"\u3137",\u314E:"\u3137",\u3139:"\u3139",\u313C:"\u3139",\u313D:"\u3139",\u313E:"\u3139",\u3140:"\u3139",\u3141:"\u3141",\u313B:"\u3141",\u3142:"\u3142",\u314D:"\u3142",\u313F:"\u3142",\u3144:"\u3142",\u3147:"\u3147"},xn={\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"}};function _o(e,n){return(xn[e]?.glide??"")!==(xn[n]?.glide??"")}function Re(e){return bo[e]??e}const A=["\u3131","\u3132","\u3134","\u3137","\u3138","\u3139","\u3141","\u3142","\u3143","\u3145","\u3146","\u3147","\u3148","\u3149","\u314A","\u314B","\u314C","\u314D","\u314E"],w=["\u314F","\u3150","\u3151","\u3152","\u3153","\u3154","\u3155","\u3156","\u3157","\u3158","\u3159","\u315A","\u315B","\u315C","\u315D","\u315E","\u315F","\u3160","\u3161","\u3162","\u3163"],B=["","\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 S(e){if(!e)return null;const n=e.charCodeAt(0)-44032;return n<0||n>=11172?null:{cho:Math.floor(n/588),jung:Math.floor(n%588/28),jong:n%28}}function Bo(){const e=new Map;return n=>{let t=e.get(n);return t||(t=[...n].map(o=>S(o)),e.set(n,t)),t}}function x(e,n,t=0){return String.fromCharCode(44032+(e*21+n)*28+t)}function No(e,n){if(!e||!n||e===n||e.length!==n.length)return"random";let t=0,o=null;for(let r=0;r<e.length;r++){const a=S(e[r]),u=S(n[r]);if(!a||!u)return"random";if(a.cho===u.cho&&a.jung===u.jung&&a.jong===u.jong)continue;t++;const i=a.cho!==u.cho,s=a.jung!==u.jung,c=a.jong!==u.jong;(i?1:0)+(s?1:0)+(c?1:0)>1?o="multi":i?o="cho":s?o="jung":o="jong"}return t!==1?"random":o==="cho"?"cho":o==="jung"?"jung":o==="jong"?"jong":"random"}function Wn(e){const n=S(e[0]||"");return n?A[n.cho]:""}function Hn(e){return[...e].map(n=>{const t=S(n);return t?A[t.cho]:n}).join("")}function Yn(e){return!!e&&[...e].every(n=>A.includes(n))}function Lo(e,n){return n?(e=e.normalize("NFC"),n=n.normalize("NFC"),Yn(n)?Hn(e).includes(n):e.toLowerCase().includes(n.toLowerCase())):!0}function jo(e,n){return Kn(n)(e)}function Kn(e){if(!e)return()=>!0;e=e.normalize("NFC");const n=[...e],t=u=>A.includes(u),o=u=>w.includes(u),r=n.map(u=>t(u)?"cho":o(u)?"jung":S(u)?"syl":"other"),a=n.map(u=>S(u));if(r.includes("other")){const u=e.toLowerCase();return i=>i.normalize("NFC").toLowerCase().includes(u)}return u=>{const i=[...u.normalize("NFC")];for(let s=0;s+n.length<=i.length;s++){let c=!0;for(let C=0;C<n.length;C++){const l=i[s+C],g=r[C];if(g==="cho"){if(Wn(l)!==n[C]){c=!1;break}}else if(g==="jung"){const h=S(l);if(!h||w[h.jung]!==n[C]){c=!1;break}}else{const h=a[C];if(h&&h.jong===0){const m=S(l);if(!m||m.cho!==h.cho||m.jung!==h.jung){c=!1;break}}else if(l!==n[C]){c=!1;break}}}if(c)return!0}return!1}}const Un={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"]},Vn=Object.fromEntries(Object.entries(Un).map(([e,n])=>[n.join(""),B[Number(e)]]));function Ro(e,n){if(!e||!n)return!1;for(const t of e){const o=S(t);if(o&&A[o.cho]===n)return!0}return!1}function ko(e,n){if(!e||!n)return!1;for(const t of e){const o=S(t);if(o&&w[o.jung]===n)return!0}return!1}function zn(e,n,t){const o=B[e];return o===n?!0:t==="phoneme"&&Re(o)===Re(n)}function Oo(e,n,t="glyph"){if(!e||!n)return!1;for(const o of e){const r=S(o);if(!(!r||r.jong<=0)&&zn(r.jong,n,t))return!0}return!1}function $o(e){if(!e)return 0;let n=0;for(const t of e)S(t)&&n++;return n}function Io(e){if(!e)return!1;let n=!1;for(const t of e){const o=S(t);if(o&&(n=!0,o.jong>0))return!1}return n}function Po(e,n,t){return e.jong<=0?!1:n.some(o=>zn(e.jong,o,t))}function Mo(e,n,t,o="glyph"){if(!e)return!1;const r=[...e],a=u=>{const i=S(r[u]);if(!i||n.cho&&!n.cho.includes(A[i.cho])||n.jung&&!n.jung.includes(w[i.jung]))return!1;if(n.jongNone){if(i.jong>0)return!1}else if(n.jong&&!Po(i,n.jong,o))return!1;return!0};if(t==="head")return a(0);if(t==="tail")return a(r.length-1);if(t==="mid"){for(let u=1;u<r.length-1;u++)if(a(u))return!0;return!1}for(let u=0;u<r.length;u++)if(a(u))return!0;return!1}function qn(e){return e.includes(",")||e.includes("_")}function Jn(e){if(e==="")return[{kind:"any"}];if(e.includes("_")){const n=[...e];if(n.length>4)return[{kind:"invalid"}];const t=n[0]??"_",o=n[1]??"_";let r=n.slice(2).join("");if(r.length===2){const a=Vn[r];if(!a)return[{kind:"invalid"}];r=a}return[{kind:"template",cho:t,jung:o,jong:r||"_"}]}return[...e].map(n=>S(n)?{kind:"syllable",ch:n}:A.includes(n)?{kind:"cho",jamo:n}:w.includes(n)?{kind:"jung",jamo:n}:{kind:"invalid"})}function vo(e,n){switch(n.kind){case"any":return!0;case"syllable":{const t=S(n.ch);if(!t)return e===n.ch;if(t.jong===0){const o=S(e);return!!o&&o.cho===t.cho&&o.jung===t.jung}return e===n.ch}case"cho":{const t=S(e);return!!t&&A[t.cho]===n.jamo}case"jung":{const t=S(e);return!!t&&w[t.jung]===n.jamo}case"template":{const t=S(e);return!(!t||n.cho!=="_"&&A[t.cho]!==n.cho||n.jung!=="_"&&w[t.jung]!==n.jung||n.jong!=="_"&&B[t.jong]!==n.jong)}case"invalid":return!1}}function Qn(e,n){e=e.normalize("NFC"),n=n.normalize("NFC");const t=n.split(",").flatMap(r=>Jn(r.trim()));if(t.length===0)return!0;const o=[...e];if(o.length<t.length)return!1;for(let r=0;r+t.length<=o.length;r++)if(t.every((a,u)=>vo(o[r+u],a)))return!0;return!1}function Fo(e){const n=e.split(",").flatMap(a=>Jn(a.trim())),t=new Set,o=new Set,r=new Set;for(const a of n)switch(a.kind){case"cho":t.add(a.jamo);break;case"jung":o.add(a.jamo);break;case"template":a.cho!=="_"&&t.add(a.cho),a.jung!=="_"&&o.add(a.jung),a.jong!=="_"&&r.add(a.jong);break;case"syllable":{const u=S(a.ch);u&&(t.add(A[u.cho]),o.add(w[u.jung]),u.jong!==0&&r.add(B[u.jong]));break}}return t.size===0&&o.size===0&&r.size===0?null:{cho:t.size?[...t]:null,jung:o.size?[...o]:null,jong:r.size?[...r]:null}}function Go(e){return!!S(e)||A.includes(e)||w.includes(e)}function xo(e){const n=e.normalize("NFC").trim();if(!n)return{ok:!0};for(const t of n.split(",")){const o=t.trim();if(o!==""){if(o.includes("_")){const r=[...o];if(r.length>4)return{ok:!1};const a=r[0],u=r[1],i=r.slice(2).join(""),s=a===void 0||a==="_"||A.includes(a),c=u===void 0||u==="_"||w.includes(u),C=i===""||i==="_"||B.filter(Boolean).includes(i)||!!Vn[i];if(s&&c&&C)continue;return{ok:!1}}if(![...o].every(Go))return{ok:!1}}}return{ok:!0}}A.length,w.length,B.length;function Wo(e,n){const t=n.normalize("NFC").trim();if(!t||!/[^\s,_]/.test(t))return e;if(qn(t))return e.filter(s=>Qn(s.word,t));const o=Kn(t),r=[...t].length,a=s=>!!s&&o(s.normalize("NFC").slice(0,r)),u=[],i=[];for(const s of e)(o(s.word)||o(s.pronunciation??""))&&(a(s.word)||a(s.pronunciation??"")?u:i).push(s);return u.concat(i)}const nn="word_pair_index_v2",tn="word_pair_index_sig_v2";let v=null,Ce=null;function Xn(){try{if(typeof localStorage>"u")return null;const e=localStorage.getItem(nn),n=localStorage.getItem(tn);return!e||!n?null:{index:JSON.parse(e),sig:n}}catch{return null}}function Ho(e,n){try{if(typeof localStorage>"u")return;localStorage.setItem(nn,JSON.stringify(e)),localStorage.setItem(tn,n)}catch{}}function Yo(e){const n=e.map(o=>`${o.word}|${o.pron??""}`).sort();let t=0;for(const o of n)for(let r=0;r<o.length;r++)t=(t<<5)-t+o.charCodeAt(r)|0;return`${n.length}-${t}`}async function Ko(e,n){const t=new Set,o=[];for(const c of e){if(!c.word||t.has(c.word))continue;const C=c.pron||c.word,l=Array.from(C).map(S);l.some(g=>g===null)||l.length===Array.from(c.word).length&&(t.add(c.word),o.push({word:c.word,syls:l}))}const r={},a=o.length,u=new Map;for(const c of o){const C=c.syls.length;u.has(C)||u.set(C,[]),u.get(C).push(c)}let i=0;const s=["cho","jung","jong"];for(const c of u.values()){const C=c[0].syls.length;for(let l=0;l<C;l++)for(const g of s){const h=new Map;for(const m of c){let E="";for(let f=0;f<C;f++){f>0&&(E+="~");const d=m.syls[f];f===l?g==="cho"?E+=`*:${d.jung}:${d.jong}`:g==="jung"?E+=`${d.cho}:*:${d.jong}`:E+=`${d.cho}:${d.jung}:*`:E+=`${d.cho}:${d.jung}:${d.jong}`}let y=h.get(E);y||(y=[],h.set(E,y)),y.push(m)}for(const m of h.values())if(!(m.length<2))for(let E=0;E<m.length;E++){const y=m[E];for(let f=E+1;f<m.length;f++){const d=m[f];y.syls[l][g]!==d.syls[l][g]&&(r[y.word]||(r[y.word]={cho:[],jung:[],jong:[]}),r[d.word]||(r[d.word]={cho:[],jung:[],jong:[]}),r[y.word][g].push(d.word),r[d.word][g].push(y.word))}}}i+=c.length,n?.(i,a),await new Promise(l=>setTimeout(l,0))}return a>0&&n?.(a,a),r}let on=0;async function Uo(e,n={}){const t=Yo(e);if(!n.force){if(v&&Ce===t)return v;const a=Xn();if(a&&a.sig===t)return v=a.index,Ce=t,v}const o=++on,r=await Ko(e,n.onProgress);return o===on&&(v=r,Ce=t,Ho(r,t)),r}function Zn(){if(v)return v;const e=Xn();return e?(v=e.index,Ce=e.sig,v):null}function Vo(){on+=1,v=null,Ce=null;try{typeof localStorage<"u"&&(localStorage.removeItem(nn),localStorage.removeItem(tn))}catch{}}const un={cho:A,jung:w,jong:B},O=e=>Array.isArray(e)?e.length>0:!!e;function rn(e,n){if(e.length!==n.length)return!1;for(let t=0;t<e.length;t++){const o=e[t],r=n[t];if(!(!o||!r)&&(o.cho!==r.cho&&A[o.cho]==="\u3147"!=(A[r.cho]==="\u3147")||o.jung!==r.jung&&_o(w[o.jung],w[r.jung])||o.jong!==r.jong&&o.jong===0!=(r.jong===0)))return!0}return!1}function et(e,n,t){const o=t.pronOf(e),r=t.decompOf,a=t.sameStructureOnly&&r?r(o):null,u=[];for(const i of n)i!==e&&(t.okSet&&!t.okSet.has(i)||t.pronOf(i)!==o&&(a&&r&&rn(a,r(t.pronOf(i)))||u.push(i)));return u}function zo(e,n,t){const o=n?.[e];if(!o)return[];const r=t.kind?o[t.kind]??[]:[...o.cho??[],...o.jung??[],...o.jong??[]];return et(e,r,t)}function qo(e,n,t,o,r,a,u){const i=["cho","jung","jong"].filter(g=>O(e[g])),s={};for(const g of i){const h=e[g];s[g]=new Set(Array.isArray(h)?h:[h])}const c=r==="pron",C=new Map;for(const g of n){const h=t(a(g));if(h.some(f=>!f))continue;let m=h;if(!c&&(m=t(g),m.length!==h.length||m.some(f=>!f)))continue;const E=h.length,y=C.get(E);y?y.push({w:g,dPron:h,dPos:m}):C.set(E,[{w:g,dPron:h,dPos:m}])}const l=new Map;for(const[g,h]of C){const m=new Map,E=(y,f)=>{const d=y.dPos[f];return d!=null&&i.every(D=>s[D].has(un[D][d[D]]))};for(const y of h){let f;if(u==="head")f=E(y,0)?0:-1;else if(u==="tail")f=E(y,g-1)?g-1:-1;else if(u==="mid"){f=-1;for(let D=1;D<g-1;D++)if(E(y,D)){f=D;break}}else f=y.dPos.findIndex(D=>D!=null&&i.every(p=>s[p].has(un[p][D[p]])));if(f<0)continue;const d=m.get(f);d?d.push(y):m.set(f,[y])}for(const[y,f]of m){const d=i.includes("cho"),D=i.includes("jung"),p=i.includes("jong"),P=b=>{let j="";for(let k=0;k<g;k++){const T=b[k];k===y?j+=(d?"*":T.cho)+"."+(D?"*":T.jung)+"."+(p?"*":T.jong)+".":j+=T.cho+"."+T.jung+"."+T.jong+"."}return j},L=new Map;for(const b of h){const j=P(b.dPron),k=L.get(j);k?k.push(b):L.set(j,[b])}for(const b of f){const j=L.get(P(b.dPron))??[],k=[];for(const T of j){if(T.w===b.w)continue;let $=!0;for(const G of i){const Q=b.dPron[y][G],z=T.dPron[y][G];if(z===Q){$=!1;break}if(c&&s[G].has(un[G][z])){$=!1;break}}$&&(o&&rn(b.dPron,T.dPron)||k.push(T.w))}l.set(b.w,k)}}}return l}const ke=0,nt=1,q=2,an=3,Jo=4,Oe=5,sn=6,$e=7,Qo=8,ln=9,Z=10,Xo=11,ge=12,Zo=13,de=14,Ie=15,Pe=16,fe=17,eu=18,I=0,W=1,nu=3,U=4,cn=5,he=6,F=7,_=8,tt=9,ot=10,Me=11,ut=12,Cn=13,ee=15,ve=16,H=17,rt=18,gn=21,dn=27,tu=20,ou={1:ke,2:nt,4:q,7:an,8:Oe,16:sn,17:$e,19:ln,20:Z,22:ge,23:de,24:Ie,25:Pe,26:fe},uu={[nu]:[W,Z],[cn]:[U,ge],[tt]:[_,ke],[ot]:[_,sn],[Me]:[_,$e],[ut]:[_,Z],[Cn]:[_,Pe],14:[_,fe],[rt]:[H,Z]},ru={[he]:q,[ee]:Oe},fn={2:W,24:W,3:W,9:W,5:U,6:U,19:F,20:F,22:F,23:F,25:F,27:F,11:_,12:_,13:_,15:_,10:ve,14:H,18:H,26:H},it={[ke]:Ie,[an]:Pe,[$e]:fe,[ge]:de},at={[ke]:nt,[an]:Jo,[$e]:Qo,[ln]:Z,[ge]:Zo},iu=new Set([cn,ot,Me,ut,Cn,ee,rt]),au=new Set(["\uBC1F"]);function su(e){const n=(e??"").trim();if(!n)return"";const t=[...n],o=t.map(S);if(o.some(a=>a===null))return n;const r=o;for(let a=0;a<r.length;a++){const u=r[a],i=r[a+1],s=u.jong;if(!i){u.jong=fn[u.jong]??u.jong;break}if(u.jong===I)continue;if(i.cho===Xo){if(i.jung===tu){if(u.jong===F){u.jong=I,i.cho=ge;continue}if(u.jong===25){u.jong=I,i.cho=de;continue}if(u.jong===Cn){u.jong=_,i.cho=de;continue}}if(u.jong===dn){u.jong=I;continue}const C=ru[u.jong];if(C!==void 0){u.jong=I,i.cho=C;continue}const l=uu[u.jong];if(l){u.jong=l[0],i.cho=l[1];continue}const g=ou[u.jong];g!==void 0&&(u.jong=I,i.cho=g);continue}if((u.jong===dn||u.jong===he||u.jong===ee)&&it[i.cho]!==void 0){i.cho=it[i.cho],u.jong=u.jong===he?U:u.jong===ee?_:I;continue}if((u.jong===dn||u.jong===he||u.jong===ee)&&i.cho===ln){i.cho=Z,u.jong=u.jong===he?U:u.jong===ee?_:I;continue}if(i.cho===eu){if(u.jong===cn){u.jong=U,i.cho=de;continue}if(u.jong===tt){u.jong=_,i.cho=Ie;continue}if(u.jong===Me){u.jong=_,i.cho=fe;continue}const C=fn[u.jong]??u.jong;if(C===W){u.jong=I,i.cho=Ie;continue}if(C===F){u.jong=I,i.cho=Pe;continue}if(C===H){u.jong=I,i.cho=fe;continue}}let c=fn[u.jong]??u.jong;s===Me&&au.has(t[a])&&(c=H),u.jong=c,at[i.cho]!==void 0&&(c===W||c===F||c===H||iu.has(s))&&(i.cho=at[i.cho]),(i.cho===q||i.cho===sn)&&(u.jong===W?u.jong=gn:u.jong===F?u.jong=U:u.jong===H&&(u.jong=ve)),i.cho===Oe?u.jong===U?u.jong=_:u.jong===ve||u.jong===gn?i.cho=q:u.jong===W?(u.jong=gn,i.cho=q):u.jong===H&&(u.jong=ve,i.cho=q):u.jong===_&&i.cho===q&&(i.cho=Oe)}return r.map(a=>x(a.cho,a.jung,a.jong)).join("")}const ne=/[ㄱ-ㅎ]/,lu=/[ㅏ-ㅣ]/;function me(e){e=e.normalize("NFC");for(let n=e.length-1;n>=0;n--){const t=e[n],o=t.charCodeAt(0);if(o>=44032&&o<=55203||ne.test(t)||lu.test(t))return t}return null}function st(e){const n=me(e);if(!n)return"\uAC00";const t=n.charCodeAt(0);return t>=44032&&t<=55203?(t-44032)%28!==0?"\uC774":"\uAC00":ne.test(n)?"\uC774":"\uAC00"}function cu(e){return`${e}${st(e)}`}function lt(e){const n=me(e);if(!n)return"\uB97C";const t=n.charCodeAt(0);return t>=44032&&t<=55203?(t-44032)%28!==0?"\uC744":"\uB97C":ne.test(n)?"\uC744":"\uB97C"}function Cu(e){return`${e}${lt(e)}`}function ct(e){const n=me(e);if(!n)return"\uB294";const t=n.charCodeAt(0);return t>=44032&&t<=55203?(t-44032)%28!==0?"\uC740":"\uB294":ne.test(n)?"\uC740":"\uB294"}function gu(e){return`${e}${ct(e)}`}function Ct(e){const n=me(e);if(!n)return"\uC640";const t=n.charCodeAt(0);return t>=44032&&t<=55203?(t-44032)%28!==0?"\uACFC":"\uC640":ne.test(n)?"\uACFC":"\uC640"}function du(e){return`${e}${Ct(e)}`}function gt(e){const n=me(e);if(!n)return"\uB85C";const t=n.charCodeAt(0);if(t>=44032&&t<=55203){const o=(t-44032)%28;return o===0||o===8?"\uB85C":"\uC73C\uB85C"}return n==="\u3139"?"\uB85C":ne.test(n)?"\uC73C\uB85C":"\uB85C"}function fu(e){return`${e}${gt(e)}`}function hu(e,n,t){const o=e.slice(),[r]=o.splice(n,1);return o.splice(t,0,r),o}function R(e,n=Math.random){const t=e.slice();for(let o=t.length-1;o>0;o--){const r=Math.floor(n()*(o+1));[t[o],t[r]]=[t[r],t[o]]}return t}function Y(e,n,t=Math.random){return!Array.isArray(e)||e.length===0||n<=0?[]:n>=e.length?R(e,t):R(e,t).slice(0,n)}const dt={SAME_SOUND_PICK:{difficulty:!0,choseong:!0,group:"discrimination"},SAME_OR_DIFF:{difficulty:!0,choseong:!0,group:"discrimination"},HEAR_AND_PICK_SAME:{difficulty:!0,choseong:!0,group:"discrimination"},HEAR_AND_PICK_INCLUDED:{difficulty:!0,choseong:!0,group:"discrimination"},STARTS_WITH_SAME_SOUND:{difficulty:!1,choseong:!0,group:"discrimination"},LISTEN_AND_REMEMBER_ORDER:{difficulty:!1,choseong:!0,group:"attention"},MERGE_2_SYLLABLES:{difficulty:!1,choseong:!0,group:"synthesis"},MERGE_3_SYLLABLES:{difficulty:!1,choseong:!0,group:"synthesis"},MERGE_2_PHONEMES:{difficulty:!1,choseong:!0,group:"synthesis"},MERGE_3_PHONEMES:{difficulty:!1,choseong:!0,group:"synthesis"},DROP_1_FROM_2SYLL:{difficulty:!1,choseong:!0,group:"deletion"},DROP_1_FROM_3SYLL:{difficulty:!1,choseong:!0,group:"deletion"},DROP_PART_FROM_COMPOUND:{difficulty:!1,choseong:!0,group:"deletion"},DROP_FINAL_CONSONANT_FROM_1SYLL:{difficulty:!1,choseong:!0,group:"deletion"},REMOVE_CONSONANT_AND_IDENTIFY_PHONEME:{difficulty:!1,choseong:!0,group:"deletion"},CHANGE_1_SYLL_IN_2SYLL:{difficulty:!0,choseong:!0,group:"substitution"},CHANGE_1_SYLL_IN_3SYLL:{difficulty:!0,choseong:!0,group:"substitution"},CHANGE_1_PHONEME_IN_1SYLL:{difficulty:!1,choseong:!0,group:"substitution"},CHANGE_1_PHONEME_IN_2SYLL:{difficulty:!0,choseong:!0,group:"substitution"}};function mu(e){const n=e?dt[e]?.group:void 0;return n==="synthesis"||n==="deletion"||n==="substitution"?n:null}const hn=A.indexOf("\u3147"),ft={DROP_FINAL_CONSONANT_FROM_1SYLL:{syllables:1,syllable:e=>e.jong>0},REMOVE_CONSONANT_AND_IDENTIFY_PHONEME:{syllables:1,syllable:e=>e.jong===0&&e.cho!==hn},MERGE_2_SYLLABLES:{syllables:2,syllable:()=>!0},MERGE_3_SYLLABLES:{syllables:3,syllable:()=>!0},MERGE_2_PHONEMES:{syllables:1,syllable:e=>e.jong===0&&e.cho!==hn},MERGE_3_PHONEMES:{syllables:1,syllable:e=>e.jong>0&&!Un[e.jong]&&e.cho!==hn}},Su=new Set([]);function Eu(e){return e in ft}function yu(e,n){const t=ft[e];if(!t)return!0;const o=[...n];if(o.length!==t.syllables)return!1;const r=S(o[0]);return!!r&&t.syllable(r)}function Du(e){return Su.has(e)}function Tu(e){const n=e.charCodeAt((e.length||1)-1)||0;return n<44032||n>55203||(n-44032)%28===0?"\uC640":"\uACFC"}function Se(e){const n=e.charCodeAt((e.length||1)-1)||0;return n<44032||n>55203||(n-44032)%28===0?"\uB97C":"\uC744"}function mn(e){const n=e.charCodeAt((e.length||1)-1)||0;if(n<44032||n>55203)return"\uB85C";const t=(n-44032)%28;return t===0||t===8?"\uB85C":"\uC73C\uB85C"}function ht(e){const n=e.charAt((e.length||1)-1),t=n.charCodeAt(0)||0;return t>=44032&&t<=55203?(t-44032)%28===0?"\uAC00":"\uC774":/[ㄱ-ㅎ]/.test(n)?"\uC774":"\uAC00"}const Sn={\u3131:"\uAE30\uC5ED",\u3132:"\uC30D\uAE30\uC5ED",\u3134:"\uB2C8\uC740",\u3137:"\uB514\uADFF",\u3138:"\uC30D\uB514\uADFF",\u3139:"\uB9AC\uC744",\u3141:"\uBBF8\uC74C",\u3142:"\uBE44\uC74D",\u3143:"\uC30D\uBE44\uC74D",\u3145:"\uC2DC\uC637",\u3146:"\uC30D\uC2DC\uC637",\u3147:"\uC774\uC751",\u3148:"\uC9C0\uC752",\u3149:"\uC30D\uC9C0\uC752",\u314A:"\uCE58\uC753",\u314B:"\uD0A4\uC754",\u314C:"\uD2F0\uC755",\u314D:"\uD53C\uC756",\u314E:"\uD788\uC757",\u3133:"\uAE30\uC5ED\uC2DC\uC637",\u3135:"\uB2C8\uC740\uC9C0\uC752",\u3136:"\uB2C8\uC740\uD788\uC757",\u313A:"\uB9AC\uC744\uAE30\uC5ED",\u313B:"\uB9AC\uC744\uBBF8\uC74C",\u313C:"\uB9AC\uC744\uBE44\uC74D",\u313D:"\uB9AC\uC744\uC2DC\uC637",\u313E:"\uB9AC\uC744\uD2F0\uC755",\u313F:"\uB9AC\uC744\uD53C\uC756",\u3140:"\uB9AC\uC744\uD788\uC757",\u3144:"\uBE44\uC74D\uC2DC\uC637",\u314F:"\uC544",\u3150:"\uC560",\u3151:"\uC57C",\u3152:"\uC598",\u3153:"\uC5B4",\u3154:"\uC5D0",\u3155:"\uC5EC",\u3156:"\uC608",\u3157:"\uC624",\u3158:"\uC640",\u3159:"\uC65C",\u315A:"\uC678",\u315B:"\uC694",\u315C:"\uC6B0",\u315D:"\uC6CC",\u315E:"\uC6E8",\u315F:"\uC704",\u3160:"\uC720",\u3161:"\uC73C",\u3162:"\uC758",\u3163:"\uC774"};function pu(e){if([...e].length!==1)return[e];const n=S(e);if(!n)return[e];const t=[A[n.cho],w[n.jung]];return n.jong!==0&&t.push(B[n.jong]),t}function mt(e,n=!1){const t=e.filter(Boolean);if(t.length<2)return"";const o=i=>Sn[i]??i,r=t.slice(0,-1).map(i=>`"${i}"${Tu(o(i))}`).join(" "),a=t[t.length-1],u=`"${a}"${Se(o(a))}`;return`${r} ${u} \uD569\uCE58\uBA74 \uC5B4\uB5A4 ${n?"\uC18C\uB9AC":"\uB2E8\uC5B4"}\uAC00 \uB418\uB098\uC694?`}function Au(e,n){return mt(n,e==="MERGE_2_PHONEMES"||e==="MERGE_3_PHONEMES")}const En=e=>Sn[e]??e,wu={cho:"\uCD08\uC131",jung:"\uBAA8\uC74C",jong:"\uBC1B\uCE68"};function bu(e,n){const t=(s,c)=>{const C=[...s].length===1?S(s):null,l=[...c].length===1?S(c):null;if(!C||!l)return null;const g=["cho","jung","jong"].filter(h=>C[h]!==l[h]);return g.length===1?{part:g[0],sx:C,sy:l}:null},o=t(e,n)??t(Fe(e),Fe(n));if(!o)return null;const r=o.part==="cho"?A:o.part==="jung"?w:B,a=r[o.sx[o.part]],u=r[o.sy[o.part]],i=o.part==="jong"&&!a?"add":o.part==="jong"&&!u?"remove":"swap";return{part:o.part,from:a,to:u,kind:i}}function _u(e,n){const t=String(n?.word??n?.original??""),o=String(n?.changedFrom??""),r=String(n?.changedTo??"");if(e==="CHANGE_1_PHONEME_IN_1SYLL"||e==="CHANGE_1_PHONEME_IN_2SYLL"){const a=e==="CHANGE_1_PHONEME_IN_1SYLL",u=a?o||t:o,i=bu(u,r);if(i){const s=a?`"${t}"`:`"${t}"\uC758 "${u}"`,c=i.kind==="add"?"\uC5D0":"\uC5D0\uC11C",C=`"${i.from}"${Se(En(i.from))}`,l=`"${i.to}"${mn(En(i.to))}`;return i.kind==="add"?`${s}${c} \uBC1B\uCE68 "${i.to}"${Se(En(i.to))} \uB354\uD558\uBA74 \uBB34\uC5C7\uC774 \uB418\uB098\uC694?`:i.kind==="remove"?`${s}${c} \uBC1B\uCE68 ${C} \uBE7C\uBA74 \uBB34\uC5C7\uC774 \uB418\uB098\uC694?`:`${s}${c} ${wu[i.part]} ${C} ${l} \uBC14\uAFB8\uBA74 \uBB34\uC5C7\uC774 \uB418\uB098\uC694?`}}return e==="CHANGE_1_PHONEME_IN_1SYLL"?`"${t}"${Se(t)} "${r}"${mn(r)} \uBC14\uAFB8\uBA74 \uBB34\uC5C7\uC774 \uB418\uB098\uC694?`:`"${t}"\uC5D0\uC11C "${o}"${Se(o)} "${r}"${mn(r)} \uBC14\uAFB8\uBA74 \uBB34\uC5C7\uC774 \uB418\uB098\uC694?`}function Bu(e,n){const t=String(n?.word??n?.original??n?.base??""),o=String(n?.dropped??"");if(e==="DROP_FINAL_CONSONANT_FROM_1SYLL")return`"${t}"\uC5D0\uC11C \uBC1B\uCE68\uC774 \uC5C6\uC5B4\uC9C0\uBA74 \uC5B4\uB5A4 \uB9D0\uC774 \uB418\uB098\uC694?`;if(e==="REMOVE_CONSONANT_AND_IDENTIFY_PHONEME"){const r=String(n?.missingConsonant??"");return`"${t}"\uC5D0\uC11C "${r}"${ht(r)} \uC5C6\uC5B4\uC9C0\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB418\uB098\uC694?`}return`"${t}"\uC5D0\uC11C "${o}"${ht(o)} \uC5C6\uC5B4\uC9C0\uBA74 \uC5B4\uB5A4 \uB9D0\uC774 \uB418\uB098\uC694?`}function Nu(e,n,t){switch(mu(e)){case"synthesis":return Au(e,t);case"substitution":return _u(e,n);case"deletion":return Bu(e,n);default:return""}}function Lu(e){return e.replace(/"([ㄱ-ㅣ])"(으로|와|과|을|를|이|가|은|는|로)?/g,(n,t,o)=>{const r=Sn[t];if(!r)return n;if(!o)return`"${r}"`;const a=(r.charCodeAt(r.length-1)-44032)%28,u=a!==0;let i=o;return o==="\uC640"||o==="\uACFC"?i=u?"\uACFC":"\uC640":o==="\uC744"||o==="\uB97C"?i=u?"\uC744":"\uB97C":o==="\uC774"||o==="\uAC00"?i=u?"\uC774":"\uAC00":o==="\uC740"||o==="\uB294"?i=u?"\uC740":"\uB294":(o==="\uC73C\uB85C"||o==="\uB85C")&&(i=a===0||a===8?"\uB85C":"\uC73C\uB85C"),`"${r}"${i}`})}const ju=e=>e==null?[]:Array.isArray(e)?e:[e];function Fe(e){if([...e].length!==1)return"";const n=S(e);if(!n)return"";const t=Re(B[n.jong]),o=t===""?0:B.indexOf(t);return x(n.cho,n.jung,o<0?0:o)}function yn(e,n){return n.get(e)||Fe(e)||e}function Ge(e){return e?O(e.cho)?"cho":O(e.jung)?"jung":O(e.jong)?"jong":null:null}function J(e,n){const t=(r,a)=>!O(r)||ju(r).includes(a),o=n.jongNone?e.jong===0:t(n.jong,B[e.jong]);return t(n.cho,A[e.cho])&&t(n.jung,w[e.jung])&&o}function te(e,n,t){const o=[...e];if(t!=="pron")return o.map(a=>S(a));const r=[...n.get(e)||e];return r.length!==o.length?o.map(a=>S(a)):r.map(a=>S(a))}function oe(e,n,t,o,r){const a=n==="cho"?A:n==="jung"?w:B,u=e[n],i=[],s=l=>n==="jung"?ku(yn(l,r)):yn(l,r),c=new Map([[s(t),-1]]),C=R(a.map((l,g)=>g).filter(l=>l!==u&&(n!=="cho"||a[l]!=="\u3147")&&(n!=="jong"||l!==0)));for(const l of C){if(i.length>=o)break;const g=n==="cho"?x(l,e.jung,e.jong):n==="jung"?x(e.cho,l,e.jong):x(e.cho,e.jung,l),h=s(g),m=c.get(h);if(m!==void 0){n==="jung"&&m>=0&&r.has(g)&&!r.has(i[m])&&(i[m]=g);continue}c.set(h,i.length),i.push(g)}return i}const Ru={\u3154:"\u3150",\u3156:"\u3152",\u315A:"\u3159",\u315E:"\u3159"};function ku(e){if([...e].length!==1)return e;const n=S(e);if(!n)return e;const t=Ru[w[n.jung]];return t?x(n.cho,w.indexOf(t),n.jong):e}function Ou(e,n,t,o,r,a=null){const u=[...e];if(u.length!==2)return null;const i=u.map(l=>S(l));if(i.some(l=>!l))return null;const s=te(e,t,o);if(s.some(l=>!l))return null;const c=Ge(n);let C=c&&n?s.map((l,g)=>J(l,n)?g:-1).filter(l=>l>=0):[0,1];if(a!=null&&(C=C.filter(l=>l!==a)),!C.length)return null;for(const l of R(C)){const g=u[l];if(!r.has(g))continue;const h=oe(i[l],c??"cho",g,40,t),m=[];for(const E of h)if(E!==g&&r.has(E)&&!m.includes(E)&&m.push(E),m.length>=2)break;if(!(m.length<2))return{question:e,distractors:[g,...m]}}return null}function $u(e,n,t,o,r,a=null){const u=[...e];if(u.length!==3)return null;const i=u.map(l=>S(l));if(i.some(l=>!l))return null;const s=te(e,t,o);if(s.some(l=>!l))return null;const c=Ge(n),C=c&&n?s.map((l,g)=>J(l,n)?g:-1).filter(l=>l>=0):[0,1,2];if(!C.length)return null;for(const l of R(C))for(const g of R([0,1,2].filter(h=>h!==l&&(a==null||h===a)))){const h=[0,1,2].filter(d=>d!==g),m=h.map(d=>u[d]).join("");if(!r.has(m))continue;const E=h.indexOf(l),y=oe(i[l],c??"cho",u[l],40,t),f=[];for(const d of y){const D=h.map(P=>u[P]);D[E]=d;const p=D.join("");if(p!==m&&r.has(p)&&!f.includes(p)&&f.push(p),f.length>=2)break}if(!(f.length<2))return{question:e,distractors:[m,...f]}}return null}function Iu(e,n,t,o,r,a=null){const u=[...e],i=u.length;if(i<2)return null;const s=[];for(let C=1;C<=i-1;C++)s.push({remain:u.slice(0,C).join(""),dropped:u.slice(C).join(""),droppedEnd:1}),s.push({remain:u.slice(i-C).join(""),dropped:u.slice(0,i-C).join(""),droppedEnd:0});const c=Ge(n);for(const{remain:C,dropped:l,droppedEnd:g}of R(s)){if(a!=null&&g!==a||[...C].length===1&&[...l].length===1||C===e||!r.has(C)||!r.has(l))continue;const h=[...C],m=h.map(f=>S(f));if(m.some(f=>!f))continue;const E=te(C,t,o);if(E.some(f=>!f))continue;const y=c&&n?E.map((f,d)=>J(f,n)?d:-1).filter(f=>f>=0):h.map((f,d)=>d);if(y.length)for(const f of R(y)){const d=oe(m[f],c??"cho",h[f],40,t),D=[];for(const p of d){const P=[...h];P[f]=p;const L=P.join("");if(L!==C&&r.has(L)&&!D.includes(L)&&D.push(L),D.length>=2)break}if(D.length>=2)return{question:e,distractors:[C,...D],dropped:l}}}return null}function Pu(e,n,t,o,r,a=null){if([...e].length!==1)return null;const u=S(t.get(e)||e);if(!u||u.jong===0)return null;const i=x(u.cho,u.jung,0),s=oe({cho:u.cho,jung:u.jung,jong:0},"cho",i,2,t);return s.length<2?null:{question:e,distractors:[i,...s]}}const Dn=A.indexOf("\u3147");function Mu(e,n,t,o,r,a=null){if([...e].length!==1)return null;const u=S(t.get(e)||e);if(!u||u.jong!==0||u.cho===Dn)return null;const i=x(Dn,u.jung,0),s=oe({cho:Dn,jung:u.jung,jong:0},"jung",i,2,t);return s.length<2?null:{question:e,distractors:[i,...s]}}function vu(e){const n=new Map;for(const t of e){const o=[...t],r=o.length;if(!(r<2||r>3))for(let a=0;a<r;a++){let u=r+"|"+a+"|";for(let s=0;s<r;s++)u+=s===a?"*":o[s];const i=n.get(u);i?i.push(t):n.set(u,[t])}}return n}function Fu(e,n,t,o,r,a=null,u=null,i=2){const s=[...e],c=s.length;if(c<2||c>3)return null;const C=s.map(d=>S(d));if(C.some(d=>!d))return null;const l=te(e,t,o);if(l.some(d=>!d))return null;const g=d=>t.get(d)??d,h=g(e),m=!!n&&(O(n.cho)||O(n.jung)||O(n.jong)),E=!!u&&(O(u.cho)||O(u.jung)||O(u.jong)),y=d=>{let D=c+"|"+d+"|";for(let p=0;p<c;p++)D+=p===d?"*":s[p];return D};let f;if(a!=null){if(a>=c||m&&!J(l[a],n))return null;f=[a]}else m?f=l.map((d,D)=>J(d,n)?D:-1).filter(d=>d>=0):f=Array.from({length:c},(d,D)=>D);for(const d of R(f)){const D=r.get(y(d))??[],p=[],P=[];for(const T of D){if(T===e)continue;const $=[...T].map(Be=>S(Be)),G=C[d],Q=$[d];if(!G||!Q)continue;let z=0;if(G.cho!==Q.cho&&z++,G.jung!==Q.jung&&z++,G.jong!==Q.jong&&z++,!(z<i||g(T)===h))if(E){const Be=te(T,t,o)[d];Be&&J(Be,u)?p.push(T):P.push(T)}else p.push(T)}if(!p.length)continue;const L=R(p)[0],b=[],j=new Set([h,g(L)]),k=E?P:p.filter(T=>T!==L);for(const T of R(k)){const $=g(T);if(!j.has($)&&(j.add($),b.push(T),b.length>=2))break}if(!E&&b.length<2)for(const T of R(D)){if(T===e||T===L)continue;const $=g(T);if(!j.has($)&&(j.add($),b.push(T),b.length>=2))break}if(!(b.length<2))return{question:e,distractors:[L,...b]}}return null}const Gu=()=>{const e="\uC54C \uC218 \uC5C6\uB294 \uC624\uB958",n=typeof Ne?.t=="function"?Ne.t("common.unknownError",{defaultValue:e}):void 0;return typeof n=="string"&&n?n:e};function xu(e,n){if(n===void 0&&(n=Gu()),e instanceof Error)return e.message||n;if(typeof e=="string")return e||n;if(e&&typeof e=="object"){const t=e;for(const o of[t.message,t.error_description,t.error])if(typeof o=="string"&&o)return o}return n}const Tn="\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.",Wu=()=>{const e=typeof Ne?.t=="function"?Ne.t("common.networkError",{defaultValue:Tn}):void 0;return typeof e=="string"&&e?e:Tn};function St(e){return e?/failed to fetch|load failed|networkerror|network request failed|fetcherror/i.test(e):!1}function Hu(e){return St(e)?Wu():e}function Yu(e,n){return e==="id"?void 0:`${e}|${n?"asc":"desc"}`}function Ku(e){const[n,t]=e.split("|");return{key:n,asc:t==="asc"}}function Uu(e){let n=e==null?"":String(e);return!(typeof e=="number"&&Number.isFinite(e))&&/^[=+\-@\t\r]/.test(n)&&(n="'"+n),/[",\n\r]/.test(n)?`"${n.replaceAll('"','""')}"`:n}const Vu=1e3;function zu(e,n){const t=new Blob([n.startsWith("\uFEFF")?n:"\uFEFF"+n],{type:"text/csv;charset=utf-8"}),o=URL.createObjectURL(t),r=document.createElement("a");r.href=o,r.download=e,r.click(),setTimeout(()=>URL.revokeObjectURL(o),Vu)}const Et="__ihab_core_word_pool__";function qu(){typeof window<"u"&&window.dispatchEvent(new CustomEvent("wordpool:update"))}function Ju(e,n){const t=new Map;for(const r of e)t.set(r.word,r);const o={entries:e,pairIndex:n??null,byWord:t};globalThis[Et]=o,qu()}function yt(){return globalThis[Et]??null}const ue=globalThis;function pn(e,n){const t=o=>{};try{const o=n();o&&typeof o.catch=="function"&&o.catch(t)}catch(o){t(o)}}function Qu(e){ue.__ihabTrainingTimeLogger=e}function Xu(e){pn("time",()=>ue.__ihabTrainingTimeLogger?.(e))}function Zu(e){ue.__ihabTrainingCompletionLogger=e}function er(e){pn("completion",()=>ue.__ihabTrainingCompletionLogger?.(e))}function nr(e){ue.__ihabCrosswordLogger=e}function tr(e){pn("crossword",()=>ue.__ihabCrosswordLogger?.(e))}function N(e){return typeof e=="string"?e.trim()||null:typeof e=="number"?String(e):null}function Dt(e){for(const n of["correct","isCorrect","heard","judgement"])if(typeof e[n]=="boolean")return e[n];return e.score===1?!0:e.score===0?!1:null}function or(e){return Array.isArray(e)?e.map((n,t)=>{const o=n??{};return{index:t,itemId:N(o.contextCode)??N(o.itemId)??N(o.itemCode)??N(o.id),question:N(o.question)??N(o.q)??N(o.sentence)??N(o.text)??N(o.prompt)??N(o.word)??N(o.targetSyllable),answer:N(o.answer),selected:N(o.selectedText)??N(o.selected),correct:Dt(o)}}):[]}function ur(e){return e.filter(n=>n.correct===!1)}let Tt=null,pt=null,At=null;function rr(e){Tt=e}function ir(e){pt=e}function ar(e){At=e}async function sr(e,n){try{return await Tt?.(e,n)??null}catch{return null}}async function lr(){try{return await pt?.()??null}catch{return null}}async function cr(e,n){try{return await At?.(e,n)??null}catch{return null}}const xe=globalThis;function Cr(e){xe.__ihabNoiseSettingsStore=e}async function gr(){try{return await xe.__ihabNoiseSettingsStore?.load()??null}catch{return null}}function dr(e){const n=t=>{};try{const t=xe.__ihabNoiseSettingsStore?.save(e);t&&typeof t.catch=="function"&&t.catch(n)}catch(t){n(t)}}function fr(e){try{xe.__ihabNoiseSettingsStore?.applied?.(e)}catch{}}function We(e){const n=new TextEncoder().encode(String(e).normalize("NFC"));let t="";return n.forEach(o=>{t+=o.toString(16).padStart(2,"0")}),t}const hr=We;function mr(e,n){return`${e}/${We(n)}.mp3`}function Sr(e={}){const n=e.storagePrefix??"audio-cache",t=e.voice??"ko-f",o=typeof e.speed=="number"?e.speed:1,r=e.filenameSanitizer??We;return async function(a){const u=String(a||"").trim();if(!u)return"";const i=`${r(u)}_${t}.mp3`,s=`${n}/${i}`;try{if(await jn(s)){const c=await Rn(s);if(c)return c}}catch{}if(e.generator)try{const c=await e.generator(u,s,e);if(c)return c}catch{}try{const c=`/api/tts?word=${encodeURIComponent(u)}&voice=${encodeURIComponent(t)}&speed=${encodeURIComponent(String(o))}`;return await fetch(c,{method:"GET"}),`/audio-cache/${i}`}catch{return`/audio-cache/${i}`}}}async function Er(e){if(typeof document<"u"){const n=document.activeElement;let t=null;try{if(t=document.createElement("textarea"),t.value=e,t.setAttribute("readonly",""),t.style.position="fixed",t.style.top="0",t.style.left="0",t.style.opacity="0",t.style.pointerEvents="none",document.body.appendChild(t),t.focus(),t.select(),t.setSelectionRange(0,e.length),document.execCommand("copy"))return!0}catch{}finally{if(t?.parentNode&&t.parentNode.removeChild(t),n&&n!==document.activeElement&&typeof n.focus=="function"&&n.isConnected)try{n.focus({preventScroll:!0})}catch{}}}try{if(typeof navigator<"u"&&navigator.clipboard&&typeof navigator.clipboard.writeText=="function")return await navigator.clipboard.writeText(e),!0}catch{}return!1}const re="Asia/Seoul",yr=/^(\d{4}-\d{2}-\d{2})[T ](\d{2}:\d{2})(?::(\d{2})(?:\.(\d+))?)?$/;function He(e){let n;if(e instanceof Date)n=e;else if(typeof e=="string"){const t=e.trim(),o=yr.exec(t);n=new Date(o?`${o[1]}T${o[2]}:${o[3]??"00"}${o[4]?`.${o[4].slice(0,3).padEnd(3,"0")}`:""}+09:00`:t)}else n=new Date(e);return Number.isNaN(n.getTime())?null:n}const Ee=e=>He(e);function Dr(e){const n=Ee(e);return n?n.toLocaleDateString("ko-KR",{timeZone:re,year:"numeric",month:"short",day:"numeric"}):""}function Tr(e){const n=Ee(e);return n?n.toLocaleString("ko-KR",{timeZone:re,year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit"}):""}function pr(e,n){const t=n.startsWith("ko")?"ko-KR":"en-US",o=Ee(e);return o?o.toLocaleDateString(t,{timeZone:re,year:"numeric",month:"short",day:"numeric"}):""}function Ar(e,n){const t=n.startsWith("ko")?"ko-KR":"en-US",o=Ee(e);return o?o.toLocaleString(t,{timeZone:re,year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit"}):""}function wr(e){const n=Ee(e);return n?n.toLocaleString("ko-KR",{timeZone:re,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"}):""}function br(e){if(e==null||e==="")return"";const n=He(e);return n?new Intl.DateTimeFormat("en-GB",{timeZone:re,hour:"2-digit",minute:"2-digit",hour12:!1}).format(n):""}function An(){return ye(new Date)}function _r(){return wt(An())}const Br=540*60*1e3;function Nr(e,n,t){return new Date(Date.UTC(e,n,t)-Br)}function wt(e){const[n,t,o]=e.split("-").map(Number);return new Date(n,(t||1)-1,o||1)}function ye(e){if(e==null||e==="")return"";const n=He(e);return n?new Intl.DateTimeFormat("fr-CA",{timeZone:"Asia/Seoul"}).format(n):""}function Lr(e,n){if(!e)return"";const t=He(e);if(!t)return"";const o=t.getTime(),r=Math.max(0,Math.floor((Date.now()-o)/1e3)),a=Math.floor(r/60),u=Math.floor(a/60),i=Math.floor(u/24),s=Math.floor(i/7),c=Math.floor(i/30),C=Math.floor(i/365);return a<1?n("store.time.justNow","\uBC29\uAE08 \uC804"):a<60?n("store.time.minutesAgo",{n:a}):u<24?n("store.time.hoursAgo",{n:u}):i<7?n("store.time.daysAgo",{n:i}):s<5?n("store.time.weeksAgo",{n:s}):i<365?n("store.time.monthsAgo",{n:Math.min(c,11)}):n("store.time.yearsAgo",{n:C})}function jr(e,n={}){const{sep:t=".",pad:o=!0,trailingDot:r=!1,fallback:a="\u2014"}=n;if(!e)return a;const u=ye(e instanceof Date?e:String(e));if(!u)return a;const[i,s,c]=u.split("-"),C=o?s:String(Number(s)),l=o?c:String(Number(c));return`${i}${t}${C}${t}${l}${r?".":""}`}function Rr(e){const n=e.normalize("NFKC").replace(/\D/g,"");if(/^(050\d|0303)/.test(n)){const o=n.slice(0,12);return o.length<=4?o:o.length<=8?`${o.slice(0,4)}-${o.slice(4)}`:`${o.slice(0,4)}-${o.slice(4,o.length-4)}-${o.slice(o.length-4)}`}if(/^1[5-9]\d{2}/.test(n)&&n.length<=8)return n.length<=4?n:`${n.slice(0,4)}-${n.slice(4)}`;const t=n.slice(0,11);return t.startsWith("02")?t.length<=2?t:t.length<=6?`${t.slice(0,2)}-${t.slice(2)}`:`${t.slice(0,2)}-${t.slice(2,t.length-4)}-${t.slice(t.length-4)}`:t.length<=3?t:t.length<=7?`${t.slice(0,3)}-${t.slice(3)}`:`${t.slice(0,3)}-${t.slice(3,t.length-4)}-${t.slice(t.length-4)}`}const bt=String.raw`(?:0\d{1,2}|050\d|0303)-\d{3,4}-\d{4}`,kr=String.raw`1[5-9]\d{2}-\d{4}`,_t=new RegExp(`^(?:${bt}|${kr})$`),Bt=new RegExp(`^${bt}$`);function Or(e){return _t.test(e)}function $r(e){return Bt.test(e)}function Ir(e){if(e){if(/^\d{4}\.\d{2}\.\d{2}$/.test(e))return e;if(/^\d{8}$/.test(e))return`${e.slice(0,4)}.${e.slice(4,6)}.${e.slice(6,8)}`;if(/^\d{4}-\d{2}-\d{2}$/.test(e))return e.replace(/-/g,".");if(/^\d{4}-\d{2}-\d{2}[T ]/.test(e)){const n=ye(e);return n?n.replace(/-/g,"."):void 0}}}function Pr(e){if(e)return/^\d{4}\.\d{2}\.\d{2}$/.test(e)?e.replace(/\./g,"-"):e}function Mr(e,n){if(!e)return"-";const t=/^(\d{1,2}):(\d{2})$/.exec(e.trim());if(!t)return e;const o=Number(t[1]),r=Number(t[2]),a=t[1].padStart(2,"0");return r===0?n("date.timeH",{h:o,hh:a,mm:t[2]}):n("date.timeHM",{h:o,hh:a,m:r,mm:t[2]})}function vr(e){return(e??0).toLocaleString("ko-KR")}const Fr=[{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"}]}],Gr=[{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"}];let wn=null;function xr(e){wn=e}function Wr(){return wn?.topicTypes??Fr}function Hr(){return wn?.trainingTypes??Gr}const Nt="ihab_theme",Lt="light";function jt(){try{const e=localStorage.getItem(Nt);if(e==="light"||e==="dark"||e==="auto")return e}catch{}return Lt}function Rt(e){const n=e==="light"||e==="dark"||e==="auto"?e:Lt;try{document.documentElement.setAttribute("data-theme",n),localStorage.setItem(Nt,n)}catch{}}function Yr(){Rt(jt())}const kt="ihab_font_scale",Kr="medium",Ur=["medium","large1","large2","large3"];function Ot(){try{const e=localStorage.getItem(kt);if(Ur.includes(e))return e}catch{}return Kr}function $t(e){try{document.documentElement.setAttribute("data-font-scale",e),localStorage.setItem(kt,e)}catch{}}function Vr(){$t(Ot())}const De=[],Te=[],pe=[],Ae=[],we={LISTEN_IN_NOISE:[],SHORT_STORY:[],LONG_STORY:[],ORDERING_SENTENCE:[]},be={LISTEN_IN_NOISE:[],SHORT_STORY:[],LONG_STORY:[],ORDERING_SENTENCE:[]},zr={LISTEN_IN_NOISE:3,SHORT_STORY:2,LONG_STORY:1,ORDERING_SENTENCE:2};let bn=null,It=null,V=null;function Pt({counts:e,forceRefresh:n}={}){const t=Object.assign({},zr,e||{}),o=An(),r=ye(new Date(`${o}T00:00:00+09:00`).getTime()-864e5),a=JSON.stringify(t);if(!n&&It===o&&bn===a&&V)return Object.assign(we,V.today),Object.assign(be,V.yesterday?.selection||{LISTEN_IN_NOISE:[],SHORT_STORY:[],LONG_STORY:[],ORDERING_SENTENCE:[]}),{today:we,yesterday:be};const u={LISTEN_IN_NOISE:Y(De,Math.max(0,Number(t.LISTEN_IN_NOISE)||0)),SHORT_STORY:Y(Te,Math.max(0,Number(t.SHORT_STORY)||0)),LONG_STORY:Y(pe,Math.max(0,Number(t.LONG_STORY)||0)),ORDERING_SENTENCE:Y(Ae,Math.max(0,Number(t.ORDERING_SENTENCE)||0))};let i=null;return V&&bn===a&&V.yesterday&&V.yesterday.date===r&&(i=V.yesterday.selection),i||(i={LISTEN_IN_NOISE:Y(De,Math.max(0,Number(t.LISTEN_IN_NOISE)||0)),SHORT_STORY:Y(Te,Math.max(0,Number(t.SHORT_STORY)||0)),LONG_STORY:Y(pe,Math.max(0,Number(t.LONG_STORY)||0)),ORDERING_SENTENCE:Y(Ae,Math.max(0,Number(t.ORDERING_SENTENCE)||0))}),Object.assign(we,u),Object.assign(be,i),It=o,bn=a,V={today:u,yesterday:{date:r,countsKey:a,selection:i}},{today:we,yesterday:be}}function qr(){return{today:we,yesterday:be}}function Jr(){return{LISTEN_IN_NOISE:De,SHORT_STORY:Te,LONG_STORY:pe,ORDERING_SENTENCE:Ae}}let Ye=!1,_e=null;async function Qr(){try{const e={url:typeof document>"u"?require("url").pathToFileURL(__filename).href:Ue&&Ue.tagName.toUpperCase()==="SCRIPT"&&Ue.src||new URL("utils.cjs.js",document.baseURI).href}&&void 0||"/",n=await fetch(`${e}data/allTrainingData.json`);return n.ok?await n.json():null}catch{return null}}async function Mt(){if(!Ye)return _e||(_e=(async()=>{const e=await Qr();if(!e){_e=null;try{window.dispatchEvent(new Event("speechear.data.error"))}catch{}return}const n={noise:[],short:[],long:[],order:[]};try{for(const t of Object.keys(e||{})){const o=e[t]||[];for(const r of o){if(!r||typeof r!="object")continue;const a=r,u=String(a.training_type||t),i=String(a.category_main_code||a.category_main||a.category_0||""),s=String(a.category_sub_code||a.category_sub||a.category_1||""),c=Object.assign({},a,{training_type:u,category_0:i,category_1:s});u==="LISTEN_IN_NOISE"?n.noise.push(c):u==="SHORT_STORY"?n.short.push(c):u==="LONG_STORY"?n.long.push(c):u==="ORDERING_SENTENCE"&&n.order.push(c)}}}catch{_e=null;try{window.dispatchEvent(new Event("speechear.data.error"))}catch{}return}De.push(...n.noise),Te.push(...n.short),pe.push(...n.long),Ae.push(...n.order),Ye=!0;try{Pt()}catch{}try{window.dispatchEvent(new Event("speechear.data.updated"))}catch{}})(),_e)}function Xr(){return Ye}async function Zr(e=3e3){const n=Mt();let t;try{await Promise.race([n,new Promise(o=>{t=setTimeout(o,e)})])}finally{t!==void 0&&clearTimeout(t)}return Ye}const ei=[{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."}],ni=[{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"}]}],ti={LISTEN_IN_NOISE:"listenInNoise",SHORT_STORY:"shortStory",LONG_STORY:"longStory",ORDERING_SENTENCE:"orderingSentence"};let Ke=null,vt=null,Ft=null;function oi(){const e=yt();if(e&&e.entries.length>0){const n=Zn();if(Ke&&vt===e&&Ft===n)return Ke;const t=new Set,o=[];for(const r of e.entries)!r.word||t.has(r.word)||(t.add(r.word),o.push({w:r.word,s:r.syllables,p:n?.[r.word]?[...n[r.word].cho??[],...n[r.word].jung??[],...n[r.word].jong??[]]:[],pron:r.pronunciation||r.word,grade:r.grade}));return Ke=o,vt=e,Ft=n,Ke}return[]}new Proxy([],{get(e,n){const t=oi(),o=t[n];return typeof o=="function"?o.bind(t):o}});const ui={free:{maxCustomers:0,visitWord:!1,visitSentence:!1,homework:!1,customerStats:!1,managerCustomerSplit:!1,managerManagement:!1,sentenceTrainingSetting:!1,wordTrainingSetting:!1,myWordList:!1,wordListShare:!1,groupTrainingSetting:!1,minimalPairSearch:!0,wordTableSetting:!1,wordTablePrint:!1,addToMyList:!1,addToGroupList:!1,wordSearch:!0,wordSearchPrint:!1,wordSearchAddToMyList:!1,wordSearchAddToGroupList:!1,wordDataLevel:1,sentenceDataLevel:0,crossword:!1,crosswordMid:!1,crosswordHigh:!1,wordTrainingView:!1,sentenceTrainingView:!1},personal_standard:{maxCustomers:0,visitWord:!1,visitSentence:!1,homework:!1,customerStats:!1,managerCustomerSplit:!1,managerManagement:!1,sentenceTrainingSetting:!0,wordTrainingSetting:!0,myWordList:!0,wordListShare:!0,groupTrainingSetting:!1,minimalPairSearch:!0,wordTableSetting:!0,wordTablePrint:!0,addToMyList:!0,addToGroupList:!1,wordSearch:!0,wordSearchPrint:!0,wordSearchAddToMyList:!0,wordSearchAddToGroupList:!1,wordDataLevel:2,sentenceDataLevel:2,crossword:!0,crosswordMid:!0,crosswordHigh:!1,wordTrainingView:!0,sentenceTrainingView:!0},mgr_free:{maxCustomers:5,visitWord:!0,visitSentence:!0,homework:!0,customerStats:!1,managerCustomerSplit:!1,managerManagement:!1,sentenceTrainingSetting:!1,wordTrainingSetting:!1,myWordList:!1,wordListShare:!1,groupTrainingSetting:!1,minimalPairSearch:!0,wordTableSetting:!1,wordTablePrint:!1,addToMyList:!1,addToGroupList:!1,wordSearch:!0,wordSearchPrint:!1,wordSearchAddToMyList:!1,wordSearchAddToGroupList:!1,wordDataLevel:1,sentenceDataLevel:1,crossword:!1,crosswordMid:!1,crosswordHigh:!1,wordTrainingView:!1,sentenceTrainingView:!1},none:{maxCustomers:0,visitWord:!1,visitSentence:!1,homework:!1,customerStats:!1,managerCustomerSplit:!1,managerManagement:!1,sentenceTrainingSetting:!1,wordTrainingSetting:!1,myWordList:!1,wordListShare:!1,groupTrainingSetting:!1,minimalPairSearch:!1,wordTableSetting:!1,wordTablePrint:!1,addToMyList:!1,addToGroupList:!1,wordSearch:!1,wordSearchPrint:!1,wordSearchAddToMyList:!1,wordSearchAddToGroupList:!1,wordDataLevel:0,sentenceDataLevel:0,crossword:!1,crosswordMid:!1,crosswordHigh:!1,wordTrainingView:!1,sentenceTrainingView:!1},lite_word:{maxCustomers:10,visitWord:!0,visitSentence:!1,homework:!1,customerStats:!1,managerCustomerSplit:!1,managerManagement:!1,sentenceTrainingSetting:!1,wordTrainingSetting:!1,myWordList:!1,wordListShare:!1,groupTrainingSetting:!1,minimalPairSearch:!0,wordTableSetting:!0,wordTablePrint:!0,addToMyList:!1,addToGroupList:!1,wordSearch:!0,wordSearchPrint:!0,wordSearchAddToMyList:!1,wordSearchAddToGroupList:!1,wordDataLevel:1,sentenceDataLevel:0,crossword:!0,crosswordMid:!1,crosswordHigh:!1,wordTrainingView:!0,sentenceTrainingView:!1},lite_sentence:{maxCustomers:10,visitWord:!1,visitSentence:!0,homework:!1,customerStats:!1,managerCustomerSplit:!1,managerManagement:!1,sentenceTrainingSetting:!1,wordTrainingSetting:!1,myWordList:!1,wordListShare:!1,groupTrainingSetting:!1,minimalPairSearch:!1,wordTableSetting:!1,wordTablePrint:!0,addToMyList:!1,addToGroupList:!1,wordSearch:!1,wordSearchPrint:!0,wordSearchAddToMyList:!1,wordSearchAddToGroupList:!1,wordDataLevel:0,sentenceDataLevel:1,crossword:!0,crosswordMid:!1,crosswordHigh:!1,wordTrainingView:!1,sentenceTrainingView:!0},lite:{maxCustomers:10,visitWord:!0,visitSentence:!0,homework:!0,customerStats:!1,managerCustomerSplit:!1,managerManagement:!1,sentenceTrainingSetting:!1,wordTrainingSetting:!1,myWordList:!1,wordListShare:!1,groupTrainingSetting:!1,minimalPairSearch:!0,wordTableSetting:!0,wordTablePrint:!0,addToMyList:!1,addToGroupList:!1,wordSearch:!0,wordSearchPrint:!0,wordSearchAddToMyList:!1,wordSearchAddToGroupList:!1,wordDataLevel:1,sentenceDataLevel:1,crossword:!0,crosswordMid:!1,crosswordHigh:!1,wordTrainingView:!0,sentenceTrainingView:!0},standard:{maxCustomers:30,visitWord:!0,visitSentence:!0,homework:!0,customerStats:!1,managerCustomerSplit:!1,managerManagement:!1,sentenceTrainingSetting:!0,wordTrainingSetting:!0,myWordList:!0,wordListShare:!0,groupTrainingSetting:!1,minimalPairSearch:!0,wordTableSetting:!0,wordTablePrint:!0,addToMyList:!0,addToGroupList:!1,wordSearch:!0,wordSearchPrint:!0,wordSearchAddToMyList:!0,wordSearchAddToGroupList:!1,wordDataLevel:2,sentenceDataLevel:2,crossword:!0,crosswordMid:!0,crosswordHigh:!1,wordTrainingView:!0,sentenceTrainingView:!0},pro:{maxCustomers:50,visitWord:!0,visitSentence:!0,homework:!0,customerStats:!0,managerCustomerSplit:!1,managerManagement:!1,sentenceTrainingSetting:!0,wordTrainingSetting:!0,myWordList:!0,wordListShare:!0,groupTrainingSetting:!1,minimalPairSearch:!0,wordTableSetting:!0,wordTablePrint:!0,addToMyList:!0,addToGroupList:!1,wordSearch:!0,wordSearchPrint:!0,wordSearchAddToMyList:!0,wordSearchAddToGroupList:!1,wordDataLevel:3,sentenceDataLevel:3,crossword:!0,crosswordMid:!0,crosswordHigh:!0,wordTrainingView:!0,sentenceTrainingView:!0},enterprise:{maxCustomers:1/0,visitWord:!0,visitSentence:!0,homework:!0,customerStats:!0,managerCustomerSplit:!0,managerManagement:!0,sentenceTrainingSetting:!0,wordTrainingSetting:!0,myWordList:!0,wordListShare:!0,groupTrainingSetting:!0,minimalPairSearch:!0,wordTableSetting:!0,wordTablePrint:!0,addToMyList:!0,addToGroupList:!0,wordSearch:!0,wordSearchPrint:!0,wordSearchAddToMyList:!0,wordSearchAddToGroupList:!0,wordDataLevel:3,sentenceDataLevel:3,crossword:!0,crosswordMid:!0,crosswordHigh:!0,wordTrainingView:!0,sentenceTrainingView:!0}},ri={none:0,free:1,personal_standard:2,mgr_free:10,lite_word:11,lite_sentence:11,lite:12,standard:13,pro:14,enterprise:15},ii=new Set(["mgr_free","lite_word","lite_sentence","lite","standard","pro","enterprise"]);function ai(e){return ii.has(e)}const si={free:{sentenceTrainingDaily:2,wordTrainingDaily:2,gameDaily:1},personal_standard:{sentenceTrainingDaily:null,wordTrainingDaily:null,gameDaily:null},mgr_free:{sentenceTrainingDaily:2,wordTrainingDaily:2,gameDaily:1,trainingItemMax:5,customerMax:5,homeworkSendDaily:1},lite:{sentenceTrainingDaily:5,wordTrainingDaily:5,gameDaily:5,trainingItemMax:10,customerMax:10,homeworkSendDaily:10},standard:{sentenceTrainingDaily:null,wordTrainingDaily:null,gameDaily:null,trainingItemMax:30,customerMax:30,homeworkSendDaily:30},pro:{sentenceTrainingDaily:null,wordTrainingDaily:null,gameDaily:null,trainingItemMax:null,customerMax:50,homeworkSendDaily:50},enterprise:{sentenceTrainingDaily:null,wordTrainingDaily:null,gameDaily:null,trainingItemMax:null,customerMax:null,homeworkSendDaily:null}};function li(e){const n=(e??"").toLowerCase();return n==="speechear_free"||n==="free"?"free":n.startsWith("manager_free")||n.startsWith("mgr_free")?"mgr_free":n.startsWith("manager_enterprise")?"enterprise":n.startsWith("manager_pro")?"pro":n.startsWith("manager_standard")?"standard":n.startsWith("manager_lite_word")?"lite_word":n.startsWith("manager_lite_sentence")?"lite_sentence":n.startsWith("manager_lite")||n.startsWith("mgr_lite")?"lite":n.startsWith("mgr_standard")?"standard":n.startsWith("mgr_pro")?"pro":n.startsWith("content_")||n.startsWith("speechear_")||n.startsWith("light_")||n==="light"?"personal_standard":"none"}const ci=5,Ci=5;function gi({rank:e,voteCount:n,quota:t=5}){return e<t&&n>0}const di={selected:"ALREADY_SELECTED",added:"ALREADY_ADDED",rejected:"ALREADY_REJECTED"},Gt="chunk-reload-ts";function xt(){try{return Number(sessionStorage.getItem(Gt)||0)}catch{return 0}}function _n(e=Date.now()){if(e-xt()<=1e4)return!1;try{sessionStorage.setItem(Gt,String(e))}catch{}return window.location.reload(),!0}function Wt(e=Date.now()){const n=xt();return n>0&&e-n<=1e4}function fi(){if(typeof window>"u")return()=>{};const e=t=>{_n()&&t.preventDefault()},n=t=>{const o=t.target;o instanceof HTMLLinkElement&&o.rel==="stylesheet"&&_n()};return window.addEventListener("vite:preloadError",e),window.addEventListener("error",n,!0),()=>{window.removeEventListener("vite:preloadError",e),window.removeEventListener("error",n,!0)}}function hi(e,n){return e?!!n&&n.access_token===e.access_token:!0}function mi(e,n){return Ht.lazy(async()=>{const t=await n();if(t&&typeof t=="object"&&"default"in t)return t;if(Wt())return new Promise(()=>{});throw new Error(`[lazyPage] ${e}: \uD654\uBA74 \uBAA8\uB4C8\uC744 \uBC1B\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4(default \uB0B4\uBCF4\uB0B4\uAE30 \uC5C6\uC74C). \uBC30\uD3EC \uC9C1\uD6C4\uB77C\uBA74 \uC0C8\uB85C\uACE0\uCE68\uC73C\uB85C \uD480\uB9BD\uB2C8\uB2E4.`)})}function Si(...e){let n=!1;const t=()=>{if(!n)for(const a of e)a().catch(()=>{})},o=globalThis.requestIdleCallback;if(o){const a=o(t,{timeout:2e3});return()=>{n=!0;const u=globalThis.cancelIdleCallback;u?.(a)}}const r=setTimeout(t,300);return()=>{n=!0,clearTimeout(r)}}const Ei=e=>({word:e.Word,pronunciation:e.SP,colloquialPronunciation:e.CP??void 0,grade:String(e.Grade),pos:e.POS,wordType:e.Class,homonum:e.Homonum!=null?Number(e.Homonum):void 0}),yi="0.220.0";exports.CAPABILITY=dt,exports.CHOSEONG=A,exports.CORE_VERSION=yi,exports.JONGSEONG=B,exports.JUNGSEONG=w,exports.LONG_STORIES=pe,exports.NETWORK_ERROR_MESSAGE=Tn,exports.NOISE_DATAS=De,exports.ORDER_SETS=Ae,exports.PERSONAL_PHONE_REGEX=Bt,exports.PHONE_REGEX=_t,exports.PLAN_FEATURES=ui,exports.PLAN_LIMITS=si,exports.SHORT_STORIES=Te,exports.TIER_RANK=ri,exports.TOPIC_TYPES=ni,exports.TRAINING_TYPES=ei,exports.TRAINING_TYPE_I18N_KEY=ti,exports.WORD_SUGGESTION_ACCOUNT_LIMIT=Ci,exports.WORD_SUGGESTION_EXISTING_ERROR=di,exports.WORD_SUGGESTION_WEEKLY_QUOTA=ci,exports.applyFontScale=$t,exports.applyTheme=Rt,exports.buildChangeWholeSyllableProblem=Fu,exports.buildDropCompoundProblem=Iu,exports.buildDropContrast3Problem=$u,exports.buildDropContrastProblem=Ou,exports.buildDropFinalConsonantProblem=Pu,exports.buildMultiPartPosContrast=qo,exports.buildPairIndex=Uo,exports.buildRemoveConsonantProblem=Mu,exports.buildSyllableMaskIndex=vu,exports.bulkSetImageExistence=Ao,exports.cardQuestionTitle=Nu,exports.checkImageExists=Gn,exports.classifyPairDifficulty=No,exports.clearAudioExistsCache=so,exports.clearImageExistenceCache=wo,exports.clearPairIndexCache=Vo,exports.composeSyllable=x,exports.computeDailySelection=Pt,exports.configureImageResolver=Eo,exports.configureNoiseSettingsStore=Cr,exports.configurePronunciationResolver=lo,exports.configureStorage=Xt,exports.configureTTS=uo,exports.configureTrainingCategories=xr,exports.copyText=Er,exports.createDecompCache=Bo,exports.createTTSUrlResolver=Sr,exports.dateToDb=Pr,exports.downloadCsvText=zu,exports.downloadSound=eo,exports.ensureTrainingDataLoaded=Zr,exports.escapeCsvField=Uu,exports.fileExists=jn,exports.filterContrastCandidates=et,exports.finalToPhoneme=Re,exports.firstChoseongOf=Wn,exports.formatCount=vr,exports.formatDateKo=Dr,exports.formatDateLocale=pr,exports.formatDateLongKo=Tr,exports.formatDateLongLocale=Ar,exports.formatDatetimeKo=wr,exports.formatPhone=Rr,exports.formatRelativeTime=Lr,exports.formatTimeHM=Mr,exports.formatYmd=jr,exports.getAssetBaseUrl=Nn,exports.getDailySelection=qr,exports.getElementAnalyser=fo,exports.getElementVolume=mo,exports.getErrorMessage=xu,exports.getImageExistenceStats=po,exports.getImageExistsCached=Do,exports.getImageResolver=vn,exports.getNoiseBaseUrl=no,exports.getNoiseFileGain=to,exports.getPairIndex=Zn,exports.getPlanTier=li,exports.getPronunciationResolver=co,exports.getSavedFontScale=Ot,exports.getSavedTheme=jt,exports.getSignedOrPublicUrl=Rn,exports.getTTSFallbackUrlResolver=io,exports.getTTSUrlResolver=ro,exports.getTodayKst=An,exports.getTodayKstDate=_r,exports.getTopicTypes=Wr,exports.getTrainingPools=Jr,exports.getTrainingTypes=Hr,exports.getWordPool=yt,exports.hasQuestionWordConstraint=Eu,exports.hasSel=O,exports.hasStructureContrast=rn,exports.initFontScale=Vr,exports.initTheme=Yr,exports.installSkewRecovery=fi,exports.isAllChoseong=Yn,exports.isManagerTier=ai,exports.isManualOnlyType=Du,exports.isNetworkErrorMessage=St,exports.isPersonalPhone=$r,exports.isSessionForThisTab=hi,exports.isSyllablePattern=qn,exports.isThisWeekPick=gi,exports.isTrainingDataLoaded=Xr,exports.isValidPhone=Or,exports.isValidQuestionWord=yu,exports.itemCorrectness=Dt,exports.jamoToNamesForSpeech=Lu,exports.kstStartOfDay=Nr,exports.lazyPage=mi,exports.loadGameLeaderboard=cr,exports.loadMyGameRanks=lr,exports.loadNoiseSettings=gr,exports.loadTrainingData=Mt,exports.logCrossword=tr,exports.logTrainingCompletion=er,exports.logTrainingTime=Xu,exports.matchSyllables=te,exports.matchesChoseongSearch=Lo,exports.matchesSyllablePattern=Qn,exports.matchesWordQuery=jo,exports.mergeQuestionText=mt,exports.minimalPairDistractors=zo,exports.normalizeDate=Ir,exports.officialSoundPath=mr,exports.parseLocalYmd=wt,exports.parseSortValue=Ku,exports.parseSyllable=S,exports.patternToComposition=Fo,exports.phonemePartsOf=pu,exports.pickEuRo=gt,exports.pickEulReul=lt,exports.pickEunNeun=ct,exports.pickIga=st,exports.pickWaGwa=Ct,exports.prefetchChunk=Si,exports.prewarmImageCache=To,exports.primarySelPart=Ge,exports.readLevel=So,exports.recoverFromSkew=_n,exports.reorderArray=hu,exports.reportAppliedNoiseSettings=fr,exports.resolveAssetUrl=Jt,exports.resolveSoundPath=Zt,exports.resumeAudioMeter=go,exports.routeElementAudio=Pn,exports.sample=Y,exports.saveNoiseSettings=dr,exports.searchAndRankWords=Wo,exports.setAssetBaseUrl=qt,exports.setCrosswordLogger=nr,exports.setElementVolume=ho,exports.setGameLeaderboardLoader=ar,exports.setGameRanksLoader=ir,exports.setGameScoreSubmitter=rr,exports.setTrainingCompletionLogger=Zu,exports.setTrainingTimeLogger=Qu,exports.setWordPool=Ju,exports.shuffle=R,exports.skewReloadPending=Wt,exports.sortToValue=Yu,exports.soundOf=yn,exports.speak=Kt,exports.stopSpeaking=Ut,exports.submitGameScore=sr,exports.syllMatchesComp=J,exports.syllableContrasts=oe,exports.syllableLength=$o,exports.syllablePron=Fe,exports.toBase64UrlSafe=hr,exports.toChoseong=Hn,exports.toItemResults=or,exports.toKstHm=br,exports.toKstYmd=ye,exports.toStandardPronunciation=su,exports.toStorageName=We,exports.toUserErrorMessage=Hu,exports.toWordEntry=Ei,exports.validateSyllableSearchInput=xo,exports.withEuRo=fu,exports.withEulReul=Cu,exports.withEunNeun=gu,exports.withIga=cu,exports.withWaGwa=du,exports.wordContainsChoseong=Ro,exports.wordContainsJongseong=Oo,exports.wordContainsJungseong=ko,exports.wordHasNoCoda=Io,exports.wordHasSyllableMatching=Mo,exports.wrongItems=ur;
20
+ `),this.name="StorageNotConfiguredError"}};function Xt(e){Qt(e)}function Zt(e,n){if(!e)return null;const t=X();return t?.resolvePath?t.resolvePath(e,n):n?`${n}/${e}.mp3`:null}async function jn(e){if(!e)return!1;const n=X();if(!n)throw new qe("fileExists");if(n.exists)return n.exists(e);try{return await n.resolveUrl(e)!==null}catch{return!1}}async function Rn(e){if(!e)return null;const n=X();if(!n)throw new qe("getSignedOrPublicUrl");try{return await n.resolveUrl(e)}catch{return null}}async function eo(e){const n=X();if(!n)throw new qe("downloadSound");return n.download(e)}function no(){return X()?.noiseBaseUrl??"/sounds/noise"}function to(){const e=Number(X()?.noiseFileGain);return Number.isFinite(e)&&e>0?e:1}function oo(e){const n=AbortSignal.timeout;if(typeof n=="function")return n.call(AbortSignal,e);const t=new AbortController;return setTimeout(()=>t.abort(),e),t.signal}const Je="__ihab_core_tts_config__";function uo(e){globalThis[Je]=e}function ro(){return globalThis[Je]?.urlResolver??null}function io(){return globalThis[Je]?.fallbackUrlResolver??null}const ao=new Map;function so(){ao.clear()}const kn="__ihab_core_pronunciation_resolver__";function lo(e){globalThis[kn]=e}function co(){return globalThis[kn]??null}let K=null;const ie=new WeakMap,Qe=new WeakMap,Xe=new WeakMap;let On=!1;const $n=e=>Math.max(0,Math.min(1,Number.isFinite(e)?e:0));function Co(){if(On||typeof document>"u")return;On=!0;const e=()=>{try{K&&K.state!=="running"&&K.resume()}catch{}};for(const n of["pointerdown","touchend","keydown"])document.addEventListener(n,e,{capture:!0,passive:!0})}function In(){if(K)return K;try{const e=window.AudioContext||window.webkitAudioContext;return e?(K=new e,Co(),K):null}catch{return null}}function go(){try{K?.resume()}catch{}}function Ze(e,n){const t=ie.get(n);if(t)return t;try{const o=e.createMediaElementSource(n),r=e.createGain(),a=e.createAnalyser();a.fftSize=1024,a.smoothingTimeConstant=.6,r.gain.value=$n(Qe.get(n)??n.volume),o.connect(r),r.connect(a),r.connect(e.destination);try{n.volume=1}catch{}const u={gain:r,analyser:a};return ie.set(n,u),u}catch{return null}}function Pn(e){if(!e)return Promise.resolve(null);const n=ie.get(e);if(n)return Promise.resolve(n.analyser);const t=In();if(!t)return Promise.resolve(null);if(t.state==="running")return Promise.resolve(Ze(t,e)?.analyser??null);const o=Xe.get(e);if(o)return o;const r=Promise.resolve().then(()=>t.resume()).then(()=>t.state==="running"?Ze(t,e)?.analyser??null:null).catch(()=>null).finally(()=>{Xe.delete(e)});return Xe.set(e,r),r}function fo(e){if(!e)return null;const n=ie.get(e);if(n)return n.analyser;const t=In();return t?t.state==="running"?Ze(t,e)?.analyser??null:(Pn(e),null):null}function ho(e,n){const t=$n(n);Qe.set(e,t);const o=ie.get(e);if(o){try{e.volume!==1&&(e.volume=1)}catch{}const r=o.gain.gain;try{const a=o.gain.context.currentTime;r.cancelScheduledValues(a),r.setTargetAtTime(t,a,.01)}catch{try{r.value=t}catch{}}return"gain"}try{e.volume=t}catch{}return"element"}function mo(e){return Qe.get(e)??e.volume}function So(e,n){e.getFloatTimeDomainData(n);let t=0;for(let o=0;o<n.length;o++){const r=n[o];t+=r*r}return Math.sqrt(t/n.length)}const Mn="__ihab_core_image_config__";function Eo(e){globalThis[Mn]=e}function vn(){return globalThis[Mn]??null}const ae="word_image_existence_map_v1";let M=null,se=0,Fn=-1,le=null;const Le=new Map;function ce(){if(M)return M;try{const e=typeof localStorage<"u"?localStorage.getItem(ae):null,n=e?JSON.parse(e):null;M=n&&typeof n=="object"&&!Array.isArray(n)?n:{}}catch{M={}}return M}let en=null;function yo(){en||(en=setTimeout(()=>{en=null;try{typeof localStorage<"u"&&M&&localStorage.setItem(ae,JSON.stringify(M))}catch{}},200))}function je(e,n){return`${e}_${n??1}`}async function Gn(e,n){const t=ce(),o=je(e,n);if(o in t)return t[o];if(Le.has(o))return Le.get(o);const r=vn();if(!r)return!1;const a=r(e,n);if(!a)return!1;const u=fetch(a,{method:"HEAD",signal:oo(8e3)}).then(i=>i.status>=500?null:i.ok,()=>null).then(i=>(Le.delete(o),i===null?!1:(t[o]=i,se++,yo(),i)));return Le.set(o,u),u}function Do(e,n){const t=ce(),o=je(e,n);return o in t?t[o]:void 0}async function To(e,n={}){const{force:t=!1,concurrency:o=16,onProgress:r}=n,a=ce(),u=t?Array.from(new Set(e)):Array.from(new Set(e)).filter(s=>!(je(s)in a));let i=0;if(u.length>0){let s=0;const c=Array.from({length:Math.min(o,u.length)},async()=>{for(;s<u.length;){const C=s++,l=u[C],g=je(l);if(!t&&g in a){i++,r?.(i,u.length);continue}try{await Gn(l)}catch{}i++,r?.(i,u.length)}});await Promise.all(c)}try{typeof localStorage<"u"&&M&&localStorage.setItem(ae,JSON.stringify(M))}catch{}return{checked:u.length,cached:Object.keys(a).length,total:e.length}}function po(){const e=ce();if(Fn===se)return le?{...le}:null;const n=Object.values(e);return le=n.length===0?null:{total:n.length,exists:n.filter(Boolean).length},Fn=se,le?{...le}:null}function Ao(e){const n=ce();Object.assign(n,e),se++;try{typeof localStorage<"u"&&localStorage.setItem(ae,JSON.stringify(n))}catch{}}function wo(){M={},se++;try{typeof localStorage<"u"&&localStorage.removeItem(ae)}catch{}}const bo={\u3131:"\u3131",\u3132:"\u3131",\u314B:"\u3131",\u3133:"\u3131",\u313A:"\u3131",\u3134:"\u3134",\u3135:"\u3134",\u3136:"\u3134",\u3137:"\u3137",\u3145:"\u3137",\u3146:"\u3137",\u3148:"\u3137",\u314A:"\u3137",\u314C:"\u3137",\u314E:"\u3137",\u3139:"\u3139",\u313C:"\u3139",\u313D:"\u3139",\u313E:"\u3139",\u3140:"\u3139",\u3141:"\u3141",\u313B:"\u3141",\u3142:"\u3142",\u314D:"\u3142",\u313F:"\u3142",\u3144:"\u3142",\u3147:"\u3147"},xn={\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"}};function _o(e,n){return(xn[e]?.glide??"")!==(xn[n]?.glide??"")}function Re(e){return bo[e]??e}const A=["\u3131","\u3132","\u3134","\u3137","\u3138","\u3139","\u3141","\u3142","\u3143","\u3145","\u3146","\u3147","\u3148","\u3149","\u314A","\u314B","\u314C","\u314D","\u314E"],w=["\u314F","\u3150","\u3151","\u3152","\u3153","\u3154","\u3155","\u3156","\u3157","\u3158","\u3159","\u315A","\u315B","\u315C","\u315D","\u315E","\u315F","\u3160","\u3161","\u3162","\u3163"],B=["","\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 S(e){if(!e)return null;const n=e.charCodeAt(0)-44032;return n<0||n>=11172?null:{cho:Math.floor(n/588),jung:Math.floor(n%588/28),jong:n%28}}function Bo(){const e=new Map;return n=>{let t=e.get(n);return t||(t=[...n].map(o=>S(o)),e.set(n,t)),t}}function x(e,n,t=0){return String.fromCharCode(44032+(e*21+n)*28+t)}function No(e,n){if(!e||!n||e===n||e.length!==n.length)return"random";let t=0,o=null;for(let r=0;r<e.length;r++){const a=S(e[r]),u=S(n[r]);if(!a||!u)return"random";if(a.cho===u.cho&&a.jung===u.jung&&a.jong===u.jong)continue;t++;const i=a.cho!==u.cho,s=a.jung!==u.jung,c=a.jong!==u.jong;(i?1:0)+(s?1:0)+(c?1:0)>1?o="multi":i?o="cho":s?o="jung":o="jong"}return t!==1?"random":o==="cho"?"cho":o==="jung"?"jung":o==="jong"?"jong":"random"}function Wn(e){const n=S(e[0]||"");return n?A[n.cho]:""}function Hn(e){return[...e].map(n=>{const t=S(n);return t?A[t.cho]:n}).join("")}function Yn(e){return!!e&&[...e].every(n=>A.includes(n))}function Lo(e,n){return n?(e=e.normalize("NFC"),n=n.normalize("NFC"),Yn(n)?Hn(e).includes(n):e.toLowerCase().includes(n.toLowerCase())):!0}function jo(e,n){return Kn(n)(e)}function Kn(e){if(!e)return()=>!0;e=e.normalize("NFC");const n=[...e],t=u=>A.includes(u),o=u=>w.includes(u),r=n.map(u=>t(u)?"cho":o(u)?"jung":S(u)?"syl":"other"),a=n.map(u=>S(u));if(r.includes("other")){const u=e.toLowerCase();return i=>i.normalize("NFC").toLowerCase().includes(u)}return u=>{const i=[...u.normalize("NFC")];for(let s=0;s+n.length<=i.length;s++){let c=!0;for(let C=0;C<n.length;C++){const l=i[s+C],g=r[C];if(g==="cho"){if(Wn(l)!==n[C]){c=!1;break}}else if(g==="jung"){const h=S(l);if(!h||w[h.jung]!==n[C]){c=!1;break}}else{const h=a[C];if(h&&h.jong===0){const m=S(l);if(!m||m.cho!==h.cho||m.jung!==h.jung){c=!1;break}}else if(l!==n[C]){c=!1;break}}}if(c)return!0}return!1}}const Un={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"]},Vn=Object.fromEntries(Object.entries(Un).map(([e,n])=>[n.join(""),B[Number(e)]]));function Ro(e,n){if(!e||!n)return!1;for(const t of e){const o=S(t);if(o&&A[o.cho]===n)return!0}return!1}function ko(e,n){if(!e||!n)return!1;for(const t of e){const o=S(t);if(o&&w[o.jung]===n)return!0}return!1}function zn(e,n,t){const o=B[e];return o===n?!0:t==="phoneme"&&Re(o)===Re(n)}function Oo(e,n,t="glyph"){if(!e||!n)return!1;for(const o of e){const r=S(o);if(!(!r||r.jong<=0)&&zn(r.jong,n,t))return!0}return!1}function $o(e){if(!e)return 0;let n=0;for(const t of e)S(t)&&n++;return n}function Io(e){if(!e)return!1;let n=!1;for(const t of e){const o=S(t);if(o&&(n=!0,o.jong>0))return!1}return n}function Po(e,n,t){return e.jong<=0?!1:n.some(o=>zn(e.jong,o,t))}function Mo(e,n,t,o="glyph"){if(!e)return!1;const r=[...e],a=u=>{const i=S(r[u]);if(!i||n.cho&&!n.cho.includes(A[i.cho])||n.jung&&!n.jung.includes(w[i.jung]))return!1;if(n.jongNone){if(i.jong>0)return!1}else if(n.jong&&!Po(i,n.jong,o))return!1;return!0};if(t==="head")return a(0);if(t==="tail")return a(r.length-1);if(t==="mid"){for(let u=1;u<r.length-1;u++)if(a(u))return!0;return!1}for(let u=0;u<r.length;u++)if(a(u))return!0;return!1}function qn(e){return e.includes(",")||e.includes("_")}function Jn(e){if(e==="")return[{kind:"any"}];if(e.includes("_")){const n=[...e];if(n.length>4)return[{kind:"invalid"}];const t=n[0]??"_",o=n[1]??"_";let r=n.slice(2).join("");if(r.length===2){const a=Vn[r];if(!a)return[{kind:"invalid"}];r=a}return[{kind:"template",cho:t,jung:o,jong:r||"_"}]}return[...e].map(n=>S(n)?{kind:"syllable",ch:n}:A.includes(n)?{kind:"cho",jamo:n}:w.includes(n)?{kind:"jung",jamo:n}:{kind:"invalid"})}function vo(e,n){switch(n.kind){case"any":return!0;case"syllable":{const t=S(n.ch);if(!t)return e===n.ch;if(t.jong===0){const o=S(e);return!!o&&o.cho===t.cho&&o.jung===t.jung}return e===n.ch}case"cho":{const t=S(e);return!!t&&A[t.cho]===n.jamo}case"jung":{const t=S(e);return!!t&&w[t.jung]===n.jamo}case"template":{const t=S(e);return!(!t||n.cho!=="_"&&A[t.cho]!==n.cho||n.jung!=="_"&&w[t.jung]!==n.jung||n.jong!=="_"&&B[t.jong]!==n.jong)}case"invalid":return!1}}function Qn(e,n){e=e.normalize("NFC"),n=n.normalize("NFC");const t=n.split(",").flatMap(r=>Jn(r.trim()));if(t.length===0)return!0;const o=[...e];if(o.length<t.length)return!1;for(let r=0;r+t.length<=o.length;r++)if(t.every((a,u)=>vo(o[r+u],a)))return!0;return!1}function Fo(e){const n=e.split(",").flatMap(a=>Jn(a.trim())),t=new Set,o=new Set,r=new Set;for(const a of n)switch(a.kind){case"cho":t.add(a.jamo);break;case"jung":o.add(a.jamo);break;case"template":a.cho!=="_"&&t.add(a.cho),a.jung!=="_"&&o.add(a.jung),a.jong!=="_"&&r.add(a.jong);break;case"syllable":{const u=S(a.ch);u&&(t.add(A[u.cho]),o.add(w[u.jung]),u.jong!==0&&r.add(B[u.jong]));break}}return t.size===0&&o.size===0&&r.size===0?null:{cho:t.size?[...t]:null,jung:o.size?[...o]:null,jong:r.size?[...r]:null}}function Go(e){return!!S(e)||A.includes(e)||w.includes(e)}function xo(e){const n=e.normalize("NFC").trim();if(!n)return{ok:!0};for(const t of n.split(",")){const o=t.trim();if(o!==""){if(o.includes("_")){const r=[...o];if(r.length>4)return{ok:!1};const a=r[0],u=r[1],i=r.slice(2).join(""),s=a===void 0||a==="_"||A.includes(a),c=u===void 0||u==="_"||w.includes(u),C=i===""||i==="_"||B.filter(Boolean).includes(i)||!!Vn[i];if(s&&c&&C)continue;return{ok:!1}}if(![...o].every(Go))return{ok:!1}}}return{ok:!0}}A.length,w.length,B.length;function Wo(e,n){const t=n.normalize("NFC").trim();if(!t||!/[^\s,_]/.test(t))return e;if(qn(t))return e.filter(s=>Qn(s.word,t));const o=Kn(t),r=[...t].length,a=s=>!!s&&o(s.normalize("NFC").slice(0,r)),u=[],i=[];for(const s of e)(o(s.word)||o(s.pronunciation??""))&&(a(s.word)||a(s.pronunciation??"")?u:i).push(s);return u.concat(i)}const nn="word_pair_index_v2",tn="word_pair_index_sig_v2";let v=null,Ce=null;function Xn(){try{if(typeof localStorage>"u")return null;const e=localStorage.getItem(nn),n=localStorage.getItem(tn);return!e||!n?null:{index:JSON.parse(e),sig:n}}catch{return null}}function Ho(e,n){try{if(typeof localStorage>"u")return;localStorage.setItem(nn,JSON.stringify(e)),localStorage.setItem(tn,n)}catch{}}function Yo(e){const n=e.map(o=>`${o.word}|${o.pron??""}`).sort();let t=0;for(const o of n)for(let r=0;r<o.length;r++)t=(t<<5)-t+o.charCodeAt(r)|0;return`${n.length}-${t}`}async function Ko(e,n){const t=new Set,o=[];for(const c of e){if(!c.word||t.has(c.word))continue;const C=c.pron||c.word,l=Array.from(C).map(S);l.some(g=>g===null)||l.length===Array.from(c.word).length&&(t.add(c.word),o.push({word:c.word,syls:l}))}const r={},a=o.length,u=new Map;for(const c of o){const C=c.syls.length;u.has(C)||u.set(C,[]),u.get(C).push(c)}let i=0;const s=["cho","jung","jong"];for(const c of u.values()){const C=c[0].syls.length;for(let l=0;l<C;l++)for(const g of s){const h=new Map;for(const m of c){let E="";for(let f=0;f<C;f++){f>0&&(E+="~");const d=m.syls[f];f===l?g==="cho"?E+=`*:${d.jung}:${d.jong}`:g==="jung"?E+=`${d.cho}:*:${d.jong}`:E+=`${d.cho}:${d.jung}:*`:E+=`${d.cho}:${d.jung}:${d.jong}`}let y=h.get(E);y||(y=[],h.set(E,y)),y.push(m)}for(const m of h.values())if(!(m.length<2))for(let E=0;E<m.length;E++){const y=m[E];for(let f=E+1;f<m.length;f++){const d=m[f];y.syls[l][g]!==d.syls[l][g]&&(r[y.word]||(r[y.word]={cho:[],jung:[],jong:[]}),r[d.word]||(r[d.word]={cho:[],jung:[],jong:[]}),r[y.word][g].push(d.word),r[d.word][g].push(y.word))}}}i+=c.length,n?.(i,a),await new Promise(l=>setTimeout(l,0))}return a>0&&n?.(a,a),r}let on=0;async function Uo(e,n={}){const t=Yo(e);if(!n.force){if(v&&Ce===t)return v;const a=Xn();if(a&&a.sig===t)return v=a.index,Ce=t,v}const o=++on,r=await Ko(e,n.onProgress);return o===on&&(v=r,Ce=t,Ho(r,t)),r}function Zn(){if(v)return v;const e=Xn();return e?(v=e.index,Ce=e.sig,v):null}function Vo(){on+=1,v=null,Ce=null;try{typeof localStorage<"u"&&(localStorage.removeItem(nn),localStorage.removeItem(tn))}catch{}}const un={cho:A,jung:w,jong:B},O=e=>Array.isArray(e)?e.length>0:!!e;function rn(e,n){if(e.length!==n.length)return!1;for(let t=0;t<e.length;t++){const o=e[t],r=n[t];if(!(!o||!r)&&(o.cho!==r.cho&&A[o.cho]==="\u3147"!=(A[r.cho]==="\u3147")||o.jung!==r.jung&&_o(w[o.jung],w[r.jung])||o.jong!==r.jong&&o.jong===0!=(r.jong===0)))return!0}return!1}function et(e,n,t){const o=t.pronOf(e),r=t.decompOf,a=t.sameStructureOnly&&r?r(o):null,u=[];for(const i of n)i!==e&&(t.okSet&&!t.okSet.has(i)||t.pronOf(i)!==o&&(a&&r&&rn(a,r(t.pronOf(i)))||u.push(i)));return u}function zo(e,n,t){const o=n?.[e];if(!o)return[];const r=t.kind?o[t.kind]??[]:[...o.cho??[],...o.jung??[],...o.jong??[]];return et(e,r,t)}function qo(e,n,t,o,r,a,u){const i=["cho","jung","jong"].filter(g=>O(e[g])),s={};for(const g of i){const h=e[g];s[g]=new Set(Array.isArray(h)?h:[h])}const c=r==="pron",C=new Map;for(const g of n){const h=t(a(g));if(h.some(f=>!f))continue;let m=h;if(!c&&(m=t(g),m.length!==h.length||m.some(f=>!f)))continue;const E=h.length,y=C.get(E);y?y.push({w:g,dPron:h,dPos:m}):C.set(E,[{w:g,dPron:h,dPos:m}])}const l=new Map;for(const[g,h]of C){const m=new Map,E=(y,f)=>{const d=y.dPos[f];return d!=null&&i.every(D=>s[D].has(un[D][d[D]]))};for(const y of h){let f;if(u==="head")f=E(y,0)?0:-1;else if(u==="tail")f=E(y,g-1)?g-1:-1;else if(u==="mid"){f=-1;for(let D=1;D<g-1;D++)if(E(y,D)){f=D;break}}else f=y.dPos.findIndex(D=>D!=null&&i.every(p=>s[p].has(un[p][D[p]])));if(f<0)continue;const d=m.get(f);d?d.push(y):m.set(f,[y])}for(const[y,f]of m){const d=i.includes("cho"),D=i.includes("jung"),p=i.includes("jong"),P=b=>{let j="";for(let k=0;k<g;k++){const T=b[k];k===y?j+=(d?"*":T.cho)+"."+(D?"*":T.jung)+"."+(p?"*":T.jong)+".":j+=T.cho+"."+T.jung+"."+T.jong+"."}return j},L=new Map;for(const b of h){const j=P(b.dPron),k=L.get(j);k?k.push(b):L.set(j,[b])}for(const b of f){const j=L.get(P(b.dPron))??[],k=[];for(const T of j){if(T.w===b.w)continue;let $=!0;for(const G of i){const Q=b.dPron[y][G],z=T.dPron[y][G];if(z===Q){$=!1;break}if(c&&s[G].has(un[G][z])){$=!1;break}}$&&(o&&rn(b.dPron,T.dPron)||k.push(T.w))}l.set(b.w,k)}}}return l}const ke=0,nt=1,q=2,an=3,Jo=4,Oe=5,sn=6,$e=7,Qo=8,ln=9,Z=10,Xo=11,ge=12,Zo=13,de=14,Ie=15,Pe=16,fe=17,eu=18,I=0,W=1,nu=3,U=4,cn=5,he=6,F=7,_=8,tt=9,ot=10,Me=11,ut=12,Cn=13,ee=15,ve=16,H=17,rt=18,gn=21,dn=27,tu=20,ou={1:ke,2:nt,4:q,7:an,8:Oe,16:sn,17:$e,19:ln,20:Z,22:ge,23:de,24:Ie,25:Pe,26:fe},uu={[nu]:[W,Z],[cn]:[U,ge],[tt]:[_,ke],[ot]:[_,sn],[Me]:[_,$e],[ut]:[_,Z],[Cn]:[_,Pe],14:[_,fe],[rt]:[H,Z]},ru={[he]:q,[ee]:Oe},fn={2:W,24:W,3:W,9:W,5:U,6:U,19:F,20:F,22:F,23:F,25:F,27:F,11:_,12:_,13:_,15:_,10:ve,14:H,18:H,26:H},it={[ke]:Ie,[an]:Pe,[$e]:fe,[ge]:de},at={[ke]:nt,[an]:Jo,[$e]:Qo,[ln]:Z,[ge]:Zo},iu=new Set([cn,ot,Me,ut,Cn,ee,rt]),au=new Set(["\uBC1F"]);function su(e){const n=(e??"").trim();if(!n)return"";const t=[...n],o=t.map(S);if(o.some(a=>a===null))return n;const r=o;for(let a=0;a<r.length;a++){const u=r[a],i=r[a+1],s=u.jong;if(!i){u.jong=fn[u.jong]??u.jong;break}if(u.jong===I)continue;if(i.cho===Xo){if(i.jung===tu){if(u.jong===F){u.jong=I,i.cho=ge;continue}if(u.jong===25){u.jong=I,i.cho=de;continue}if(u.jong===Cn){u.jong=_,i.cho=de;continue}}if(u.jong===dn){u.jong=I;continue}const C=ru[u.jong];if(C!==void 0){u.jong=I,i.cho=C;continue}const l=uu[u.jong];if(l){u.jong=l[0],i.cho=l[1];continue}const g=ou[u.jong];g!==void 0&&(u.jong=I,i.cho=g);continue}if((u.jong===dn||u.jong===he||u.jong===ee)&&it[i.cho]!==void 0){i.cho=it[i.cho],u.jong=u.jong===he?U:u.jong===ee?_:I;continue}if((u.jong===dn||u.jong===he||u.jong===ee)&&i.cho===ln){i.cho=Z,u.jong=u.jong===he?U:u.jong===ee?_:I;continue}if(i.cho===eu){if(u.jong===cn){u.jong=U,i.cho=de;continue}if(u.jong===tt){u.jong=_,i.cho=Ie;continue}if(u.jong===Me){u.jong=_,i.cho=fe;continue}const C=fn[u.jong]??u.jong;if(C===W){u.jong=I,i.cho=Ie;continue}if(C===F){u.jong=I,i.cho=Pe;continue}if(C===H){u.jong=I,i.cho=fe;continue}}let c=fn[u.jong]??u.jong;s===Me&&au.has(t[a])&&(c=H),u.jong=c,at[i.cho]!==void 0&&(c===W||c===F||c===H||iu.has(s))&&(i.cho=at[i.cho]),(i.cho===q||i.cho===sn)&&(u.jong===W?u.jong=gn:u.jong===F?u.jong=U:u.jong===H&&(u.jong=ve)),i.cho===Oe?u.jong===U?u.jong=_:u.jong===ve||u.jong===gn?i.cho=q:u.jong===W?(u.jong=gn,i.cho=q):u.jong===H&&(u.jong=ve,i.cho=q):u.jong===_&&i.cho===q&&(i.cho=Oe)}return r.map(a=>x(a.cho,a.jung,a.jong)).join("")}const ne=/[ㄱ-ㅎ]/,lu=/[ㅏ-ㅣ]/;function me(e){e=e.normalize("NFC");for(let n=e.length-1;n>=0;n--){const t=e[n],o=t.charCodeAt(0);if(o>=44032&&o<=55203||ne.test(t)||lu.test(t))return t}return null}function st(e){const n=me(e);if(!n)return"\uAC00";const t=n.charCodeAt(0);return t>=44032&&t<=55203?(t-44032)%28!==0?"\uC774":"\uAC00":ne.test(n)?"\uC774":"\uAC00"}function cu(e){return`${e}${st(e)}`}function lt(e){const n=me(e);if(!n)return"\uB97C";const t=n.charCodeAt(0);return t>=44032&&t<=55203?(t-44032)%28!==0?"\uC744":"\uB97C":ne.test(n)?"\uC744":"\uB97C"}function Cu(e){return`${e}${lt(e)}`}function ct(e){const n=me(e);if(!n)return"\uB294";const t=n.charCodeAt(0);return t>=44032&&t<=55203?(t-44032)%28!==0?"\uC740":"\uB294":ne.test(n)?"\uC740":"\uB294"}function gu(e){return`${e}${ct(e)}`}function Ct(e){const n=me(e);if(!n)return"\uC640";const t=n.charCodeAt(0);return t>=44032&&t<=55203?(t-44032)%28!==0?"\uACFC":"\uC640":ne.test(n)?"\uACFC":"\uC640"}function du(e){return`${e}${Ct(e)}`}function gt(e){const n=me(e);if(!n)return"\uB85C";const t=n.charCodeAt(0);if(t>=44032&&t<=55203){const o=(t-44032)%28;return o===0||o===8?"\uB85C":"\uC73C\uB85C"}return n==="\u3139"?"\uB85C":ne.test(n)?"\uC73C\uB85C":"\uB85C"}function fu(e){return`${e}${gt(e)}`}function hu(e,n,t){const o=e.slice(),[r]=o.splice(n,1);return o.splice(t,0,r),o}function R(e,n=Math.random){const t=e.slice();for(let o=t.length-1;o>0;o--){const r=Math.floor(n()*(o+1));[t[o],t[r]]=[t[r],t[o]]}return t}function Y(e,n,t=Math.random){return!Array.isArray(e)||e.length===0||n<=0?[]:n>=e.length?R(e,t):R(e,t).slice(0,n)}const dt={SAME_SOUND_PICK:{difficulty:!0,choseong:!0,group:"discrimination"},SAME_OR_DIFF:{difficulty:!0,choseong:!0,group:"discrimination"},HEAR_AND_PICK_SAME:{difficulty:!0,choseong:!0,group:"discrimination"},HEAR_AND_PICK_INCLUDED:{difficulty:!0,choseong:!0,group:"discrimination"},STARTS_WITH_SAME_SOUND:{difficulty:!1,choseong:!0,group:"discrimination"},LISTEN_AND_REMEMBER_ORDER:{difficulty:!1,choseong:!0,group:"attention"},MERGE_2_SYLLABLES:{difficulty:!1,choseong:!0,group:"synthesis"},MERGE_3_SYLLABLES:{difficulty:!1,choseong:!0,group:"synthesis"},MERGE_2_PHONEMES:{difficulty:!1,choseong:!0,group:"synthesis"},MERGE_3_PHONEMES:{difficulty:!1,choseong:!0,group:"synthesis"},DROP_1_FROM_2SYLL:{difficulty:!1,choseong:!0,group:"deletion"},DROP_1_FROM_3SYLL:{difficulty:!1,choseong:!0,group:"deletion"},DROP_PART_FROM_COMPOUND:{difficulty:!1,choseong:!0,group:"deletion"},DROP_FINAL_CONSONANT_FROM_1SYLL:{difficulty:!1,choseong:!0,group:"deletion"},REMOVE_CONSONANT_AND_IDENTIFY_PHONEME:{difficulty:!1,choseong:!0,group:"deletion"},CHANGE_1_SYLL_IN_2SYLL:{difficulty:!0,choseong:!0,group:"substitution"},CHANGE_1_SYLL_IN_3SYLL:{difficulty:!0,choseong:!0,group:"substitution"},CHANGE_1_PHONEME_IN_1SYLL:{difficulty:!1,choseong:!0,group:"substitution"},CHANGE_1_PHONEME_IN_2SYLL:{difficulty:!0,choseong:!0,group:"substitution"}};function mu(e){const n=e?dt[e]?.group:void 0;return n==="synthesis"||n==="deletion"||n==="substitution"?n:null}const hn=A.indexOf("\u3147"),ft={DROP_FINAL_CONSONANT_FROM_1SYLL:{syllables:1,syllable:e=>e.jong>0},REMOVE_CONSONANT_AND_IDENTIFY_PHONEME:{syllables:1,syllable:e=>e.jong===0&&e.cho!==hn},MERGE_2_SYLLABLES:{syllables:2,syllable:()=>!0},MERGE_3_SYLLABLES:{syllables:3,syllable:()=>!0},MERGE_2_PHONEMES:{syllables:1,syllable:e=>e.jong===0&&e.cho!==hn},MERGE_3_PHONEMES:{syllables:1,syllable:e=>e.jong>0&&!Un[e.jong]&&e.cho!==hn}},Su=new Set([]);function Eu(e){return e in ft}function yu(e,n){const t=ft[e];if(!t)return!0;const o=[...n];if(o.length!==t.syllables)return!1;const r=S(o[0]);return!!r&&t.syllable(r)}function Du(e){return Su.has(e)}function Tu(e){const n=e.charCodeAt((e.length||1)-1)||0;return n<44032||n>55203||(n-44032)%28===0?"\uC640":"\uACFC"}function Se(e){const n=e.charCodeAt((e.length||1)-1)||0;return n<44032||n>55203||(n-44032)%28===0?"\uB97C":"\uC744"}function mn(e){const n=e.charCodeAt((e.length||1)-1)||0;if(n<44032||n>55203)return"\uB85C";const t=(n-44032)%28;return t===0||t===8?"\uB85C":"\uC73C\uB85C"}function ht(e){const n=e.charAt((e.length||1)-1),t=n.charCodeAt(0)||0;return t>=44032&&t<=55203?(t-44032)%28===0?"\uAC00":"\uC774":/[ㄱ-ㅎ]/.test(n)?"\uC774":"\uAC00"}const Sn={\u3131:"\uAE30\uC5ED",\u3132:"\uC30D\uAE30\uC5ED",\u3134:"\uB2C8\uC740",\u3137:"\uB514\uADFF",\u3138:"\uC30D\uB514\uADFF",\u3139:"\uB9AC\uC744",\u3141:"\uBBF8\uC74C",\u3142:"\uBE44\uC74D",\u3143:"\uC30D\uBE44\uC74D",\u3145:"\uC2DC\uC637",\u3146:"\uC30D\uC2DC\uC637",\u3147:"\uC774\uC751",\u3148:"\uC9C0\uC752",\u3149:"\uC30D\uC9C0\uC752",\u314A:"\uCE58\uC753",\u314B:"\uD0A4\uC754",\u314C:"\uD2F0\uC755",\u314D:"\uD53C\uC756",\u314E:"\uD788\uC757",\u3133:"\uAE30\uC5ED\uC2DC\uC637",\u3135:"\uB2C8\uC740\uC9C0\uC752",\u3136:"\uB2C8\uC740\uD788\uC757",\u313A:"\uB9AC\uC744\uAE30\uC5ED",\u313B:"\uB9AC\uC744\uBBF8\uC74C",\u313C:"\uB9AC\uC744\uBE44\uC74D",\u313D:"\uB9AC\uC744\uC2DC\uC637",\u313E:"\uB9AC\uC744\uD2F0\uC755",\u313F:"\uB9AC\uC744\uD53C\uC756",\u3140:"\uB9AC\uC744\uD788\uC757",\u3144:"\uBE44\uC74D\uC2DC\uC637",\u314F:"\uC544",\u3150:"\uC560",\u3151:"\uC57C",\u3152:"\uC598",\u3153:"\uC5B4",\u3154:"\uC5D0",\u3155:"\uC5EC",\u3156:"\uC608",\u3157:"\uC624",\u3158:"\uC640",\u3159:"\uC65C",\u315A:"\uC678",\u315B:"\uC694",\u315C:"\uC6B0",\u315D:"\uC6CC",\u315E:"\uC6E8",\u315F:"\uC704",\u3160:"\uC720",\u3161:"\uC73C",\u3162:"\uC758",\u3163:"\uC774"};function pu(e){if([...e].length!==1)return[e];const n=S(e);if(!n)return[e];const t=[A[n.cho],w[n.jung]];return n.jong!==0&&t.push(B[n.jong]),t}function mt(e,n=!1){const t=e.filter(Boolean);if(t.length<2)return"";const o=i=>Sn[i]??i,r=t.slice(0,-1).map(i=>`"${i}"${Tu(o(i))}`).join(" "),a=t[t.length-1],u=`"${a}"${Se(o(a))}`;return`${r} ${u} \uD569\uCE58\uBA74 \uC5B4\uB5A4 ${n?"\uC18C\uB9AC":"\uB2E8\uC5B4"}\uAC00 \uB418\uB098\uC694?`}function Au(e,n){return mt(n,e==="MERGE_2_PHONEMES"||e==="MERGE_3_PHONEMES")}const En=e=>Sn[e]??e,wu={cho:"\uCD08\uC131",jung:"\uBAA8\uC74C",jong:"\uBC1B\uCE68"};function bu(e,n){const t=(s,c)=>{const C=[...s].length===1?S(s):null,l=[...c].length===1?S(c):null;if(!C||!l)return null;const g=["cho","jung","jong"].filter(h=>C[h]!==l[h]);return g.length===1?{part:g[0],sx:C,sy:l}:null},o=t(e,n)??t(Fe(e),Fe(n));if(!o)return null;const r=o.part==="cho"?A:o.part==="jung"?w:B,a=r[o.sx[o.part]],u=r[o.sy[o.part]],i=o.part==="jong"&&!a?"add":o.part==="jong"&&!u?"remove":"swap";return{part:o.part,from:a,to:u,kind:i}}function _u(e,n){const t=String(n?.word??n?.original??""),o=String(n?.changedFrom??""),r=String(n?.changedTo??"");if(e==="CHANGE_1_PHONEME_IN_1SYLL"||e==="CHANGE_1_PHONEME_IN_2SYLL"){const a=e==="CHANGE_1_PHONEME_IN_1SYLL",u=a?o||t:o,i=bu(u,r);if(i){const s=a?`"${t}"`:`"${t}"\uC758 "${u}"`,c=i.kind==="add"?"\uC5D0":"\uC5D0\uC11C",C=`"${i.from}"${Se(En(i.from))}`,l=`"${i.to}"${mn(En(i.to))}`;return i.kind==="add"?`${s}${c} \uBC1B\uCE68 "${i.to}"${Se(En(i.to))} \uB354\uD558\uBA74 \uBB34\uC5C7\uC774 \uB418\uB098\uC694?`:i.kind==="remove"?`${s}${c} \uBC1B\uCE68 ${C} \uBE7C\uBA74 \uBB34\uC5C7\uC774 \uB418\uB098\uC694?`:`${s}${c} ${wu[i.part]} ${C} ${l} \uBC14\uAFB8\uBA74 \uBB34\uC5C7\uC774 \uB418\uB098\uC694?`}}return e==="CHANGE_1_PHONEME_IN_1SYLL"?`"${t}"${Se(t)} "${r}"${mn(r)} \uBC14\uAFB8\uBA74 \uBB34\uC5C7\uC774 \uB418\uB098\uC694?`:`"${t}"\uC5D0\uC11C "${o}"${Se(o)} "${r}"${mn(r)} \uBC14\uAFB8\uBA74 \uBB34\uC5C7\uC774 \uB418\uB098\uC694?`}function Bu(e,n){const t=String(n?.word??n?.original??n?.base??""),o=String(n?.dropped??"");if(e==="DROP_FINAL_CONSONANT_FROM_1SYLL")return`"${t}"\uC5D0\uC11C \uBC1B\uCE68\uC774 \uC5C6\uC5B4\uC9C0\uBA74 \uC5B4\uB5A4 \uB9D0\uC774 \uB418\uB098\uC694?`;if(e==="REMOVE_CONSONANT_AND_IDENTIFY_PHONEME"){const r=String(n?.missingConsonant??"");return`"${t}"\uC5D0\uC11C "${r}"${ht(r)} \uC5C6\uC5B4\uC9C0\uBA74 \uC5B4\uB5A4 \uC18C\uB9AC\uAC00 \uB418\uB098\uC694?`}return`"${t}"\uC5D0\uC11C "${o}"${ht(o)} \uC5C6\uC5B4\uC9C0\uBA74 \uC5B4\uB5A4 \uB9D0\uC774 \uB418\uB098\uC694?`}function Nu(e,n,t){switch(mu(e)){case"synthesis":return Au(e,t);case"substitution":return _u(e,n);case"deletion":return Bu(e,n);default:return""}}function Lu(e){return e.replace(/"([ㄱ-ㅣ])"(으로|와|과|을|를|이|가|은|는|로)?/g,(n,t,o)=>{const r=Sn[t];if(!r)return n;if(!o)return`"${r}"`;const a=(r.charCodeAt(r.length-1)-44032)%28,u=a!==0;let i=o;return o==="\uC640"||o==="\uACFC"?i=u?"\uACFC":"\uC640":o==="\uC744"||o==="\uB97C"?i=u?"\uC744":"\uB97C":o==="\uC774"||o==="\uAC00"?i=u?"\uC774":"\uAC00":o==="\uC740"||o==="\uB294"?i=u?"\uC740":"\uB294":(o==="\uC73C\uB85C"||o==="\uB85C")&&(i=a===0||a===8?"\uB85C":"\uC73C\uB85C"),`"${r}"${i}`})}const ju=e=>e==null?[]:Array.isArray(e)?e:[e];function Fe(e){if([...e].length!==1)return"";const n=S(e);if(!n)return"";const t=Re(B[n.jong]),o=t===""?0:B.indexOf(t);return x(n.cho,n.jung,o<0?0:o)}function yn(e,n){return n.get(e)||Fe(e)||e}function Ge(e){return e?O(e.cho)?"cho":O(e.jung)?"jung":O(e.jong)?"jong":null:null}function J(e,n){const t=(r,a)=>!O(r)||ju(r).includes(a),o=n.jongNone?e.jong===0:t(n.jong,B[e.jong]);return t(n.cho,A[e.cho])&&t(n.jung,w[e.jung])&&o}function te(e,n,t){const o=[...e];if(t!=="pron")return o.map(a=>S(a));const r=[...n.get(e)||e];return r.length!==o.length?o.map(a=>S(a)):r.map(a=>S(a))}function oe(e,n,t,o,r){const a=n==="cho"?A:n==="jung"?w:B,u=e[n],i=[],s=l=>n==="jung"?ku(yn(l,r)):yn(l,r),c=new Map([[s(t),-1]]),C=R(a.map((l,g)=>g).filter(l=>l!==u&&(n!=="cho"||a[l]!=="\u3147")&&(n!=="jong"||l!==0)));for(const l of C){if(i.length>=o)break;const g=n==="cho"?x(l,e.jung,e.jong):n==="jung"?x(e.cho,l,e.jong):x(e.cho,e.jung,l),h=s(g),m=c.get(h);if(m!==void 0){n==="jung"&&m>=0&&r.has(g)&&!r.has(i[m])&&(i[m]=g);continue}c.set(h,i.length),i.push(g)}return i}const Ru={\u3154:"\u3150",\u3156:"\u3152",\u315A:"\u3159",\u315E:"\u3159"};function ku(e){if([...e].length!==1)return e;const n=S(e);if(!n)return e;const t=Ru[w[n.jung]];return t?x(n.cho,w.indexOf(t),n.jong):e}function Ou(e,n,t,o,r,a=null){const u=[...e];if(u.length!==2)return null;const i=u.map(l=>S(l));if(i.some(l=>!l))return null;const s=te(e,t,o);if(s.some(l=>!l))return null;const c=Ge(n);let C=c&&n?s.map((l,g)=>J(l,n)?g:-1).filter(l=>l>=0):[0,1];if(a!=null&&(C=C.filter(l=>l!==a)),!C.length)return null;for(const l of R(C)){const g=u[l];if(!r.has(g))continue;const h=oe(i[l],c??"cho",g,40,t),m=[];for(const E of h)if(E!==g&&r.has(E)&&!m.includes(E)&&m.push(E),m.length>=2)break;if(!(m.length<2))return{question:e,distractors:[g,...m]}}return null}function $u(e,n,t,o,r,a=null){const u=[...e];if(u.length!==3)return null;const i=u.map(l=>S(l));if(i.some(l=>!l))return null;const s=te(e,t,o);if(s.some(l=>!l))return null;const c=Ge(n),C=c&&n?s.map((l,g)=>J(l,n)?g:-1).filter(l=>l>=0):[0,1,2];if(!C.length)return null;for(const l of R(C))for(const g of R([0,1,2].filter(h=>h!==l&&(a==null||h===a)))){const h=[0,1,2].filter(d=>d!==g),m=h.map(d=>u[d]).join("");if(!r.has(m))continue;const E=h.indexOf(l),y=oe(i[l],c??"cho",u[l],40,t),f=[];for(const d of y){const D=h.map(P=>u[P]);D[E]=d;const p=D.join("");if(p!==m&&r.has(p)&&!f.includes(p)&&f.push(p),f.length>=2)break}if(!(f.length<2))return{question:e,distractors:[m,...f]}}return null}function Iu(e,n,t,o,r,a=null){const u=[...e],i=u.length;if(i<2)return null;const s=[];for(let C=1;C<=i-1;C++)s.push({remain:u.slice(0,C).join(""),dropped:u.slice(C).join(""),droppedEnd:1}),s.push({remain:u.slice(i-C).join(""),dropped:u.slice(0,i-C).join(""),droppedEnd:0});const c=Ge(n);for(const{remain:C,dropped:l,droppedEnd:g}of R(s)){if(a!=null&&g!==a||[...C].length===1&&[...l].length===1||C===e||!r.has(C)||!r.has(l))continue;const h=[...C],m=h.map(f=>S(f));if(m.some(f=>!f))continue;const E=te(C,t,o);if(E.some(f=>!f))continue;const y=c&&n?E.map((f,d)=>J(f,n)?d:-1).filter(f=>f>=0):h.map((f,d)=>d);if(y.length)for(const f of R(y)){const d=oe(m[f],c??"cho",h[f],40,t),D=[];for(const p of d){const P=[...h];P[f]=p;const L=P.join("");if(L!==C&&r.has(L)&&!D.includes(L)&&D.push(L),D.length>=2)break}if(D.length>=2)return{question:e,distractors:[C,...D],dropped:l}}}return null}function Pu(e,n,t,o,r,a=null){if([...e].length!==1)return null;const u=S(t.get(e)||e);if(!u||u.jong===0)return null;const i=x(u.cho,u.jung,0),s=oe({cho:u.cho,jung:u.jung,jong:0},"cho",i,2,t);return s.length<2?null:{question:e,distractors:[i,...s]}}const Dn=A.indexOf("\u3147");function Mu(e,n,t,o,r,a=null){if([...e].length!==1)return null;const u=S(t.get(e)||e);if(!u||u.jong!==0||u.cho===Dn)return null;const i=x(Dn,u.jung,0),s=oe({cho:Dn,jung:u.jung,jong:0},"jung",i,2,t);return s.length<2?null:{question:e,distractors:[i,...s]}}function vu(e){const n=new Map;for(const t of e){const o=[...t],r=o.length;if(!(r<2||r>3))for(let a=0;a<r;a++){let u=r+"|"+a+"|";for(let s=0;s<r;s++)u+=s===a?"*":o[s];const i=n.get(u);i?i.push(t):n.set(u,[t])}}return n}function Fu(e,n,t,o,r,a=null,u=null,i=2){const s=[...e],c=s.length;if(c<2||c>3)return null;const C=s.map(d=>S(d));if(C.some(d=>!d))return null;const l=te(e,t,o);if(l.some(d=>!d))return null;const g=d=>t.get(d)??d,h=g(e),m=!!n&&(O(n.cho)||O(n.jung)||O(n.jong)),E=!!u&&(O(u.cho)||O(u.jung)||O(u.jong)),y=d=>{let D=c+"|"+d+"|";for(let p=0;p<c;p++)D+=p===d?"*":s[p];return D};let f;if(a!=null){if(a>=c||m&&!J(l[a],n))return null;f=[a]}else m?f=l.map((d,D)=>J(d,n)?D:-1).filter(d=>d>=0):f=Array.from({length:c},(d,D)=>D);for(const d of R(f)){const D=r.get(y(d))??[],p=[],P=[];for(const T of D){if(T===e)continue;const $=[...T].map(Be=>S(Be)),G=C[d],Q=$[d];if(!G||!Q)continue;let z=0;if(G.cho!==Q.cho&&z++,G.jung!==Q.jung&&z++,G.jong!==Q.jong&&z++,!(z<i||g(T)===h))if(E){const Be=te(T,t,o)[d];Be&&J(Be,u)?p.push(T):P.push(T)}else p.push(T)}if(!p.length)continue;const L=R(p)[0],b=[],j=new Set([h,g(L)]),k=E?P:p.filter(T=>T!==L);for(const T of R(k)){const $=g(T);if(!j.has($)&&(j.add($),b.push(T),b.length>=2))break}if(!E&&b.length<2)for(const T of R(D)){if(T===e||T===L)continue;const $=g(T);if(!j.has($)&&(j.add($),b.push(T),b.length>=2))break}if(!(b.length<2))return{question:e,distractors:[L,...b]}}return null}const Gu=()=>{const e="\uC54C \uC218 \uC5C6\uB294 \uC624\uB958",n=typeof Ne?.t=="function"?Ne.t("common.unknownError",{defaultValue:e}):void 0;return typeof n=="string"&&n?n:e};function xu(e,n){if(n===void 0&&(n=Gu()),e instanceof Error)return e.message||n;if(typeof e=="string")return e||n;if(e&&typeof e=="object"){const t=e;for(const o of[t.message,t.error_description,t.error])if(typeof o=="string"&&o)return o}return n}const Tn="\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.",Wu=()=>{const e=typeof Ne?.t=="function"?Ne.t("common.networkError",{defaultValue:Tn}):void 0;return typeof e=="string"&&e?e:Tn};function St(e){return e?/failed to fetch|load failed|networkerror|network request failed|fetcherror/i.test(e):!1}function Hu(e){return St(e)?Wu():e}function Yu(e,n){return e==="id"?void 0:`${e}|${n?"asc":"desc"}`}function Ku(e){const[n,t]=e.split("|");return{key:n,asc:t==="asc"}}function Uu(e){let n=e==null?"":String(e);return!(typeof e=="number"&&Number.isFinite(e))&&/^[=+\-@\t\r]/.test(n)&&(n="'"+n),/[",\n\r]/.test(n)?`"${n.replaceAll('"','""')}"`:n}const Vu=1e3;function zu(e,n){const t=new Blob([n.startsWith("\uFEFF")?n:"\uFEFF"+n],{type:"text/csv;charset=utf-8"}),o=URL.createObjectURL(t),r=document.createElement("a");r.href=o,r.download=e,r.click(),setTimeout(()=>URL.revokeObjectURL(o),Vu)}const Et="__ihab_core_word_pool__";function qu(){typeof window<"u"&&window.dispatchEvent(new CustomEvent("wordpool:update"))}function Ju(e,n){const t=new Map;for(const r of e)t.set(r.word,r);const o={entries:e,pairIndex:n??null,byWord:t};globalThis[Et]=o,qu()}function yt(){return globalThis[Et]??null}const ue=globalThis;function pn(e,n){const t=o=>{};try{const o=n();o&&typeof o.catch=="function"&&o.catch(t)}catch(o){t(o)}}function Qu(e){ue.__ihabTrainingTimeLogger=e}function Xu(e){pn("time",()=>ue.__ihabTrainingTimeLogger?.(e))}function Zu(e){ue.__ihabTrainingCompletionLogger=e}function er(e){pn("completion",()=>ue.__ihabTrainingCompletionLogger?.(e))}function nr(e){ue.__ihabCrosswordLogger=e}function tr(e){pn("crossword",()=>ue.__ihabCrosswordLogger?.(e))}function N(e){return typeof e=="string"?e.trim()||null:typeof e=="number"?String(e):null}function Dt(e){for(const n of["correct","isCorrect","heard","judgement"])if(typeof e[n]=="boolean")return e[n];return e.score===1?!0:e.score===0?!1:null}function or(e){return Array.isArray(e)?e.map((n,t)=>{const o=n??{};return{index:t,itemId:N(o.contextCode)??N(o.itemId)??N(o.itemCode)??N(o.id),question:N(o.question)??N(o.q)??N(o.sentence)??N(o.text)??N(o.prompt)??N(o.word)??N(o.targetSyllable),answer:N(o.answer),selected:N(o.selectedText)??N(o.selected),correct:Dt(o)}}):[]}function ur(e){return e.filter(n=>n.correct===!1)}let Tt=null,pt=null,At=null;function rr(e){Tt=e}function ir(e){pt=e}function ar(e){At=e}async function sr(e,n){try{return await Tt?.(e,n)??null}catch{return null}}async function lr(){try{return await pt?.()??null}catch{return null}}async function cr(e,n){try{return await At?.(e,n)??null}catch{return null}}const xe=globalThis;function Cr(e){xe.__ihabNoiseSettingsStore=e}async function gr(){try{return await xe.__ihabNoiseSettingsStore?.load()??null}catch{return null}}function dr(e){const n=t=>{};try{const t=xe.__ihabNoiseSettingsStore?.save(e);t&&typeof t.catch=="function"&&t.catch(n)}catch(t){n(t)}}function fr(e){try{xe.__ihabNoiseSettingsStore?.applied?.(e)}catch{}}function We(e){const n=new TextEncoder().encode(String(e).normalize("NFC"));let t="";return n.forEach(o=>{t+=o.toString(16).padStart(2,"0")}),t}const hr=We;function mr(e,n){return`${e}/${We(n)}.mp3`}function Sr(e={}){const n=e.storagePrefix??"audio-cache",t=e.voice??"ko-f",o=typeof e.speed=="number"?e.speed:1,r=e.filenameSanitizer??We;return async function(a){const u=String(a||"").trim();if(!u)return"";const i=`${r(u)}_${t}.mp3`,s=`${n}/${i}`;try{if(await jn(s)){const c=await Rn(s);if(c)return c}}catch{}if(e.generator)try{const c=await e.generator(u,s,e);if(c)return c}catch{}try{const c=`/api/tts?word=${encodeURIComponent(u)}&voice=${encodeURIComponent(t)}&speed=${encodeURIComponent(String(o))}`;return await fetch(c,{method:"GET"}),`/audio-cache/${i}`}catch{return`/audio-cache/${i}`}}}async function Er(e){if(typeof document<"u"){const n=document.activeElement;let t=null;try{if(t=document.createElement("textarea"),t.value=e,t.setAttribute("readonly",""),t.style.position="fixed",t.style.top="0",t.style.left="0",t.style.opacity="0",t.style.pointerEvents="none",document.body.appendChild(t),t.focus(),t.select(),t.setSelectionRange(0,e.length),document.execCommand("copy"))return!0}catch{}finally{if(t?.parentNode&&t.parentNode.removeChild(t),n&&n!==document.activeElement&&typeof n.focus=="function"&&n.isConnected)try{n.focus({preventScroll:!0})}catch{}}}try{if(typeof navigator<"u"&&navigator.clipboard&&typeof navigator.clipboard.writeText=="function")return await navigator.clipboard.writeText(e),!0}catch{}return!1}const re="Asia/Seoul",yr=/^(\d{4}-\d{2}-\d{2})[T ](\d{2}:\d{2})(?::(\d{2})(?:\.(\d+))?)?$/;function He(e){let n;if(e instanceof Date)n=e;else if(typeof e=="string"){const t=e.trim(),o=yr.exec(t);n=new Date(o?`${o[1]}T${o[2]}:${o[3]??"00"}${o[4]?`.${o[4].slice(0,3).padEnd(3,"0")}`:""}+09:00`:t)}else n=new Date(e);return Number.isNaN(n.getTime())?null:n}const Ee=e=>He(e);function Dr(e){const n=Ee(e);return n?n.toLocaleDateString("ko-KR",{timeZone:re,year:"numeric",month:"short",day:"numeric"}):""}function Tr(e){const n=Ee(e);return n?n.toLocaleString("ko-KR",{timeZone:re,year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit"}):""}function pr(e,n){const t=n.startsWith("ko")?"ko-KR":"en-US",o=Ee(e);return o?o.toLocaleDateString(t,{timeZone:re,year:"numeric",month:"short",day:"numeric"}):""}function Ar(e,n){const t=n.startsWith("ko")?"ko-KR":"en-US",o=Ee(e);return o?o.toLocaleString(t,{timeZone:re,year:"numeric",month:"long",day:"numeric",hour:"2-digit",minute:"2-digit"}):""}function wr(e){const n=Ee(e);return n?n.toLocaleString("ko-KR",{timeZone:re,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"}):""}function br(e){if(e==null||e==="")return"";const n=He(e);return n?new Intl.DateTimeFormat("en-GB",{timeZone:re,hour:"2-digit",minute:"2-digit",hour12:!1}).format(n):""}function An(){return ye(new Date)}function _r(){return wt(An())}const Br=540*60*1e3;function Nr(e,n,t){return new Date(Date.UTC(e,n,t)-Br)}function wt(e){const[n,t,o]=e.split("-").map(Number);return new Date(n,(t||1)-1,o||1)}function ye(e){if(e==null||e==="")return"";const n=He(e);return n?new Intl.DateTimeFormat("fr-CA",{timeZone:"Asia/Seoul"}).format(n):""}function Lr(e,n){if(!e)return"";const t=He(e);if(!t)return"";const o=t.getTime(),r=Math.max(0,Math.floor((Date.now()-o)/1e3)),a=Math.floor(r/60),u=Math.floor(a/60),i=Math.floor(u/24),s=Math.floor(i/7),c=Math.floor(i/30),C=Math.floor(i/365);return a<1?n("store.time.justNow","\uBC29\uAE08 \uC804"):a<60?n("store.time.minutesAgo",{n:a}):u<24?n("store.time.hoursAgo",{n:u}):i<7?n("store.time.daysAgo",{n:i}):s<5?n("store.time.weeksAgo",{n:s}):i<365?n("store.time.monthsAgo",{n:Math.min(c,11)}):n("store.time.yearsAgo",{n:C})}function jr(e,n={}){const{sep:t=".",pad:o=!0,trailingDot:r=!1,fallback:a="\u2014"}=n;if(!e)return a;const u=ye(e instanceof Date?e:String(e));if(!u)return a;const[i,s,c]=u.split("-"),C=o?s:String(Number(s)),l=o?c:String(Number(c));return`${i}${t}${C}${t}${l}${r?".":""}`}function Rr(e){const n=e.normalize("NFKC").replace(/\D/g,"");if(/^(050\d|0303)/.test(n)){const o=n.slice(0,12);return o.length<=4?o:o.length<=8?`${o.slice(0,4)}-${o.slice(4)}`:`${o.slice(0,4)}-${o.slice(4,o.length-4)}-${o.slice(o.length-4)}`}if(/^1[5-9]\d{2}/.test(n)&&n.length<=8)return n.length<=4?n:`${n.slice(0,4)}-${n.slice(4)}`;const t=n.slice(0,11);return t.startsWith("02")?t.length<=2?t:t.length<=6?`${t.slice(0,2)}-${t.slice(2)}`:`${t.slice(0,2)}-${t.slice(2,t.length-4)}-${t.slice(t.length-4)}`:t.length<=3?t:t.length<=7?`${t.slice(0,3)}-${t.slice(3)}`:`${t.slice(0,3)}-${t.slice(3,t.length-4)}-${t.slice(t.length-4)}`}const bt=String.raw`(?:0\d{1,2}|050\d|0303)-\d{3,4}-\d{4}`,kr=String.raw`1[5-9]\d{2}-\d{4}`,_t=new RegExp(`^(?:${bt}|${kr})$`),Bt=new RegExp(`^${bt}$`);function Or(e){return _t.test(e)}function $r(e){return Bt.test(e)}function Ir(e){if(e){if(/^\d{4}\.\d{2}\.\d{2}$/.test(e))return e;if(/^\d{8}$/.test(e))return`${e.slice(0,4)}.${e.slice(4,6)}.${e.slice(6,8)}`;if(/^\d{4}-\d{2}-\d{2}$/.test(e))return e.replace(/-/g,".");if(/^\d{4}-\d{2}-\d{2}[T ]/.test(e)){const n=ye(e);return n?n.replace(/-/g,"."):void 0}}}function Pr(e){if(e)return/^\d{4}\.\d{2}\.\d{2}$/.test(e)?e.replace(/\./g,"-"):e}function Mr(e,n){if(!e)return"-";const t=/^(\d{1,2}):(\d{2})$/.exec(e.trim());if(!t)return e;const o=Number(t[1]),r=Number(t[2]),a=t[1].padStart(2,"0");return r===0?n("date.timeH",{h:o,hh:a,mm:t[2]}):n("date.timeHM",{h:o,hh:a,m:r,mm:t[2]})}function vr(e){return(e??0).toLocaleString("ko-KR")}const Fr=[{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"}]}],Gr=[{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"}];let wn=null;function xr(e){wn=e}function Wr(){return wn?.topicTypes??Fr}function Hr(){return wn?.trainingTypes??Gr}const Nt="ihab_theme",Lt="light";function jt(){try{const e=localStorage.getItem(Nt);if(e==="light"||e==="dark"||e==="auto")return e}catch{}return Lt}function Rt(e){const n=e==="light"||e==="dark"||e==="auto"?e:Lt;try{document.documentElement.setAttribute("data-theme",n),localStorage.setItem(Nt,n)}catch{}}function Yr(){Rt(jt())}const kt="ihab_font_scale",Kr="medium",Ur=["medium","large1","large2","large3"];function Ot(){try{const e=localStorage.getItem(kt);if(Ur.includes(e))return e}catch{}return Kr}function $t(e){try{document.documentElement.setAttribute("data-font-scale",e),localStorage.setItem(kt,e)}catch{}}function Vr(){$t(Ot())}const De=[],Te=[],pe=[],Ae=[],we={LISTEN_IN_NOISE:[],SHORT_STORY:[],LONG_STORY:[],ORDERING_SENTENCE:[]},be={LISTEN_IN_NOISE:[],SHORT_STORY:[],LONG_STORY:[],ORDERING_SENTENCE:[]},zr={LISTEN_IN_NOISE:3,SHORT_STORY:2,LONG_STORY:1,ORDERING_SENTENCE:2};let bn=null,It=null,V=null;function Pt({counts:e,forceRefresh:n}={}){const t=Object.assign({},zr,e||{}),o=An(),r=ye(new Date(`${o}T00:00:00+09:00`).getTime()-864e5),a=JSON.stringify(t);if(!n&&It===o&&bn===a&&V)return Object.assign(we,V.today),Object.assign(be,V.yesterday?.selection||{LISTEN_IN_NOISE:[],SHORT_STORY:[],LONG_STORY:[],ORDERING_SENTENCE:[]}),{today:we,yesterday:be};const u={LISTEN_IN_NOISE:Y(De,Math.max(0,Number(t.LISTEN_IN_NOISE)||0)),SHORT_STORY:Y(Te,Math.max(0,Number(t.SHORT_STORY)||0)),LONG_STORY:Y(pe,Math.max(0,Number(t.LONG_STORY)||0)),ORDERING_SENTENCE:Y(Ae,Math.max(0,Number(t.ORDERING_SENTENCE)||0))};let i=null;return V&&bn===a&&V.yesterday&&V.yesterday.date===r&&(i=V.yesterday.selection),i||(i={LISTEN_IN_NOISE:Y(De,Math.max(0,Number(t.LISTEN_IN_NOISE)||0)),SHORT_STORY:Y(Te,Math.max(0,Number(t.SHORT_STORY)||0)),LONG_STORY:Y(pe,Math.max(0,Number(t.LONG_STORY)||0)),ORDERING_SENTENCE:Y(Ae,Math.max(0,Number(t.ORDERING_SENTENCE)||0))}),Object.assign(we,u),Object.assign(be,i),It=o,bn=a,V={today:u,yesterday:{date:r,countsKey:a,selection:i}},{today:we,yesterday:be}}function qr(){return{today:we,yesterday:be}}function Jr(){return{LISTEN_IN_NOISE:De,SHORT_STORY:Te,LONG_STORY:pe,ORDERING_SENTENCE:Ae}}let Ye=!1,_e=null;async function Qr(){try{const e={url:typeof document>"u"?require("url").pathToFileURL(__filename).href:Ue&&Ue.tagName.toUpperCase()==="SCRIPT"&&Ue.src||new URL("utils.cjs.js",document.baseURI).href}&&void 0||"/",n=await fetch(`${e}data/allTrainingData.json`);return n.ok?await n.json():null}catch{return null}}async function Mt(){if(!Ye)return _e||(_e=(async()=>{const e=await Qr();if(!e){_e=null;try{window.dispatchEvent(new Event("speechear.data.error"))}catch{}return}const n={noise:[],short:[],long:[],order:[]};try{for(const t of Object.keys(e||{})){const o=e[t]||[];for(const r of o){if(!r||typeof r!="object")continue;const a=r,u=String(a.training_type||t),i=String(a.category_main_code||a.category_main||a.category_0||""),s=String(a.category_sub_code||a.category_sub||a.category_1||""),c=Object.assign({},a,{training_type:u,category_0:i,category_1:s});u==="LISTEN_IN_NOISE"?n.noise.push(c):u==="SHORT_STORY"?n.short.push(c):u==="LONG_STORY"?n.long.push(c):u==="ORDERING_SENTENCE"&&n.order.push(c)}}}catch{_e=null;try{window.dispatchEvent(new Event("speechear.data.error"))}catch{}return}De.push(...n.noise),Te.push(...n.short),pe.push(...n.long),Ae.push(...n.order),Ye=!0;try{Pt()}catch{}try{window.dispatchEvent(new Event("speechear.data.updated"))}catch{}})(),_e)}function Xr(){return Ye}async function Zr(e=3e3){const n=Mt();let t;try{await Promise.race([n,new Promise(o=>{t=setTimeout(o,e)})])}finally{t!==void 0&&clearTimeout(t)}return Ye}const ei=[{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."}],ni=[{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"}]}],ti={LISTEN_IN_NOISE:"listenInNoise",SHORT_STORY:"shortStory",LONG_STORY:"longStory",ORDERING_SENTENCE:"orderingSentence"};let Ke=null,vt=null,Ft=null;function oi(){const e=yt();if(e&&e.entries.length>0){const n=Zn();if(Ke&&vt===e&&Ft===n)return Ke;const t=new Set,o=[];for(const r of e.entries)!r.word||t.has(r.word)||(t.add(r.word),o.push({w:r.word,s:r.syllables,p:n?.[r.word]?[...n[r.word].cho??[],...n[r.word].jung??[],...n[r.word].jong??[]]:[],pron:r.pronunciation||r.word,grade:r.grade}));return Ke=o,vt=e,Ft=n,Ke}return[]}new Proxy([],{get(e,n){const t=oi(),o=t[n];return typeof o=="function"?o.bind(t):o}});const ui={free:{maxCustomers:0,visitWord:!1,visitSentence:!1,homework:!1,customerStats:!1,managerCustomerSplit:!1,managerManagement:!1,sentenceTrainingSetting:!1,wordTrainingSetting:!1,myWordList:!1,wordListShare:!1,groupTrainingSetting:!1,minimalPairSearch:!0,wordTableSetting:!1,wordTablePrint:!1,addToMyList:!1,addToGroupList:!1,wordSearch:!0,wordSearchPrint:!1,wordSearchAddToMyList:!1,wordSearchAddToGroupList:!1,wordDataLevel:1,sentenceDataLevel:0,crossword:!1,crosswordMid:!1,crosswordHigh:!1,wordTrainingView:!1,sentenceTrainingView:!1},personal_standard:{maxCustomers:0,visitWord:!1,visitSentence:!1,homework:!1,customerStats:!1,managerCustomerSplit:!1,managerManagement:!1,sentenceTrainingSetting:!0,wordTrainingSetting:!0,myWordList:!0,wordListShare:!0,groupTrainingSetting:!1,minimalPairSearch:!0,wordTableSetting:!0,wordTablePrint:!0,addToMyList:!0,addToGroupList:!1,wordSearch:!0,wordSearchPrint:!0,wordSearchAddToMyList:!0,wordSearchAddToGroupList:!1,wordDataLevel:2,sentenceDataLevel:2,crossword:!0,crosswordMid:!0,crosswordHigh:!1,wordTrainingView:!0,sentenceTrainingView:!0},mgr_free:{maxCustomers:5,visitWord:!0,visitSentence:!0,homework:!0,customerStats:!1,managerCustomerSplit:!1,managerManagement:!1,sentenceTrainingSetting:!1,wordTrainingSetting:!1,myWordList:!1,wordListShare:!1,groupTrainingSetting:!1,minimalPairSearch:!0,wordTableSetting:!1,wordTablePrint:!1,addToMyList:!1,addToGroupList:!1,wordSearch:!0,wordSearchPrint:!1,wordSearchAddToMyList:!1,wordSearchAddToGroupList:!1,wordDataLevel:1,sentenceDataLevel:1,crossword:!1,crosswordMid:!1,crosswordHigh:!1,wordTrainingView:!1,sentenceTrainingView:!1},none:{maxCustomers:0,visitWord:!1,visitSentence:!1,homework:!1,customerStats:!1,managerCustomerSplit:!1,managerManagement:!1,sentenceTrainingSetting:!1,wordTrainingSetting:!1,myWordList:!1,wordListShare:!1,groupTrainingSetting:!1,minimalPairSearch:!1,wordTableSetting:!1,wordTablePrint:!1,addToMyList:!1,addToGroupList:!1,wordSearch:!1,wordSearchPrint:!1,wordSearchAddToMyList:!1,wordSearchAddToGroupList:!1,wordDataLevel:0,sentenceDataLevel:0,crossword:!1,crosswordMid:!1,crosswordHigh:!1,wordTrainingView:!1,sentenceTrainingView:!1},lite_word:{maxCustomers:10,visitWord:!0,visitSentence:!1,homework:!1,customerStats:!1,managerCustomerSplit:!1,managerManagement:!1,sentenceTrainingSetting:!1,wordTrainingSetting:!1,myWordList:!1,wordListShare:!1,groupTrainingSetting:!1,minimalPairSearch:!0,wordTableSetting:!0,wordTablePrint:!0,addToMyList:!1,addToGroupList:!1,wordSearch:!0,wordSearchPrint:!0,wordSearchAddToMyList:!1,wordSearchAddToGroupList:!1,wordDataLevel:1,sentenceDataLevel:0,crossword:!0,crosswordMid:!1,crosswordHigh:!1,wordTrainingView:!0,sentenceTrainingView:!1},lite_sentence:{maxCustomers:10,visitWord:!1,visitSentence:!0,homework:!1,customerStats:!1,managerCustomerSplit:!1,managerManagement:!1,sentenceTrainingSetting:!1,wordTrainingSetting:!1,myWordList:!1,wordListShare:!1,groupTrainingSetting:!1,minimalPairSearch:!1,wordTableSetting:!1,wordTablePrint:!0,addToMyList:!1,addToGroupList:!1,wordSearch:!1,wordSearchPrint:!0,wordSearchAddToMyList:!1,wordSearchAddToGroupList:!1,wordDataLevel:0,sentenceDataLevel:1,crossword:!0,crosswordMid:!1,crosswordHigh:!1,wordTrainingView:!1,sentenceTrainingView:!0},lite:{maxCustomers:10,visitWord:!0,visitSentence:!0,homework:!0,customerStats:!1,managerCustomerSplit:!1,managerManagement:!1,sentenceTrainingSetting:!1,wordTrainingSetting:!1,myWordList:!1,wordListShare:!1,groupTrainingSetting:!1,minimalPairSearch:!0,wordTableSetting:!0,wordTablePrint:!0,addToMyList:!1,addToGroupList:!1,wordSearch:!0,wordSearchPrint:!0,wordSearchAddToMyList:!1,wordSearchAddToGroupList:!1,wordDataLevel:1,sentenceDataLevel:1,crossword:!0,crosswordMid:!1,crosswordHigh:!1,wordTrainingView:!0,sentenceTrainingView:!0},standard:{maxCustomers:30,visitWord:!0,visitSentence:!0,homework:!0,customerStats:!1,managerCustomerSplit:!1,managerManagement:!1,sentenceTrainingSetting:!0,wordTrainingSetting:!0,myWordList:!0,wordListShare:!0,groupTrainingSetting:!1,minimalPairSearch:!0,wordTableSetting:!0,wordTablePrint:!0,addToMyList:!0,addToGroupList:!1,wordSearch:!0,wordSearchPrint:!0,wordSearchAddToMyList:!0,wordSearchAddToGroupList:!1,wordDataLevel:2,sentenceDataLevel:2,crossword:!0,crosswordMid:!0,crosswordHigh:!1,wordTrainingView:!0,sentenceTrainingView:!0},pro:{maxCustomers:50,visitWord:!0,visitSentence:!0,homework:!0,customerStats:!0,managerCustomerSplit:!1,managerManagement:!1,sentenceTrainingSetting:!0,wordTrainingSetting:!0,myWordList:!0,wordListShare:!0,groupTrainingSetting:!1,minimalPairSearch:!0,wordTableSetting:!0,wordTablePrint:!0,addToMyList:!0,addToGroupList:!1,wordSearch:!0,wordSearchPrint:!0,wordSearchAddToMyList:!0,wordSearchAddToGroupList:!1,wordDataLevel:3,sentenceDataLevel:3,crossword:!0,crosswordMid:!0,crosswordHigh:!0,wordTrainingView:!0,sentenceTrainingView:!0},enterprise:{maxCustomers:1/0,visitWord:!0,visitSentence:!0,homework:!0,customerStats:!0,managerCustomerSplit:!0,managerManagement:!0,sentenceTrainingSetting:!0,wordTrainingSetting:!0,myWordList:!0,wordListShare:!0,groupTrainingSetting:!0,minimalPairSearch:!0,wordTableSetting:!0,wordTablePrint:!0,addToMyList:!0,addToGroupList:!0,wordSearch:!0,wordSearchPrint:!0,wordSearchAddToMyList:!0,wordSearchAddToGroupList:!0,wordDataLevel:3,sentenceDataLevel:3,crossword:!0,crosswordMid:!0,crosswordHigh:!0,wordTrainingView:!0,sentenceTrainingView:!0}},ri={none:0,free:1,personal_standard:2,mgr_free:10,lite_word:11,lite_sentence:11,lite:12,standard:13,pro:14,enterprise:15},ii=new Set(["mgr_free","lite_word","lite_sentence","lite","standard","pro","enterprise"]);function ai(e){return ii.has(e)}const si={free:{sentenceTrainingDaily:2,wordTrainingDaily:2,gameDaily:1},personal_standard:{sentenceTrainingDaily:null,wordTrainingDaily:null,gameDaily:null},mgr_free:{sentenceTrainingDaily:2,wordTrainingDaily:2,gameDaily:1,trainingItemMax:5,customerMax:5,homeworkSendDaily:1},lite:{sentenceTrainingDaily:5,wordTrainingDaily:5,gameDaily:5,trainingItemMax:10,customerMax:10,homeworkSendDaily:10},standard:{sentenceTrainingDaily:null,wordTrainingDaily:null,gameDaily:null,trainingItemMax:30,customerMax:30,homeworkSendDaily:30},pro:{sentenceTrainingDaily:null,wordTrainingDaily:null,gameDaily:null,trainingItemMax:null,customerMax:50,homeworkSendDaily:50},enterprise:{sentenceTrainingDaily:null,wordTrainingDaily:null,gameDaily:null,trainingItemMax:null,customerMax:null,homeworkSendDaily:null}};function li(e){const n=(e??"").toLowerCase();return n==="speechear_free"||n==="free"?"free":n.startsWith("manager_free")||n.startsWith("mgr_free")?"mgr_free":n.startsWith("manager_enterprise")?"enterprise":n.startsWith("manager_pro")?"pro":n.startsWith("manager_standard")?"standard":n.startsWith("manager_lite_word")?"lite_word":n.startsWith("manager_lite_sentence")?"lite_sentence":n.startsWith("manager_lite")||n.startsWith("mgr_lite")?"lite":n.startsWith("mgr_standard")?"standard":n.startsWith("mgr_pro")?"pro":n.startsWith("content_")||n.startsWith("speechear_")||n.startsWith("light_")||n==="light"?"personal_standard":"none"}const ci=5,Ci=5;function gi({rank:e,voteCount:n,quota:t=5}){return e<t&&n>0}const di={selected:"ALREADY_SELECTED",added:"ALREADY_ADDED",rejected:"ALREADY_REJECTED"},Gt="chunk-reload-ts";function xt(){try{return Number(sessionStorage.getItem(Gt)||0)}catch{return 0}}function _n(e=Date.now()){if(e-xt()<=1e4)return!1;try{sessionStorage.setItem(Gt,String(e))}catch{}return window.location.reload(),!0}function Wt(e=Date.now()){const n=xt();return n>0&&e-n<=1e4}function fi(){if(typeof window>"u")return()=>{};const e=t=>{_n()&&t.preventDefault()},n=t=>{const o=t.target;o instanceof HTMLLinkElement&&o.rel==="stylesheet"&&_n()};return window.addEventListener("vite:preloadError",e),window.addEventListener("error",n,!0),()=>{window.removeEventListener("vite:preloadError",e),window.removeEventListener("error",n,!0)}}function hi(e,n){return e?!!n&&n.access_token===e.access_token:!0}function mi(e,n){return Ht.lazy(async()=>{const t=await n();if(t&&typeof t=="object"&&"default"in t)return t;if(Wt())return new Promise(()=>{});throw new Error(`[lazyPage] ${e}: \uD654\uBA74 \uBAA8\uB4C8\uC744 \uBC1B\uC9C0 \uBABB\uD588\uC2B5\uB2C8\uB2E4(default \uB0B4\uBCF4\uB0B4\uAE30 \uC5C6\uC74C). \uBC30\uD3EC \uC9C1\uD6C4\uB77C\uBA74 \uC0C8\uB85C\uACE0\uCE68\uC73C\uB85C \uD480\uB9BD\uB2C8\uB2E4.`)})}function Si(...e){let n=!1;const t=()=>{if(!n)for(const a of e)a().catch(()=>{})},o=globalThis.requestIdleCallback;if(o){const a=o(t,{timeout:2e3});return()=>{n=!0;const u=globalThis.cancelIdleCallback;u?.(a)}}const r=setTimeout(t,300);return()=>{n=!0,clearTimeout(r)}}const Ei=e=>({word:e.Word,pronunciation:e.SP,colloquialPronunciation:e.CP??void 0,grade:String(e.Grade),pos:e.POS,wordType:e.Class,homonum:e.Homonum!=null?Number(e.Homonum):void 0}),yi="0.221.1";exports.CAPABILITY=dt,exports.CHOSEONG=A,exports.CORE_VERSION=yi,exports.JONGSEONG=B,exports.JUNGSEONG=w,exports.LONG_STORIES=pe,exports.NETWORK_ERROR_MESSAGE=Tn,exports.NOISE_DATAS=De,exports.ORDER_SETS=Ae,exports.PERSONAL_PHONE_REGEX=Bt,exports.PHONE_REGEX=_t,exports.PLAN_FEATURES=ui,exports.PLAN_LIMITS=si,exports.SHORT_STORIES=Te,exports.TIER_RANK=ri,exports.TOPIC_TYPES=ni,exports.TRAINING_TYPES=ei,exports.TRAINING_TYPE_I18N_KEY=ti,exports.WORD_SUGGESTION_ACCOUNT_LIMIT=Ci,exports.WORD_SUGGESTION_EXISTING_ERROR=di,exports.WORD_SUGGESTION_WEEKLY_QUOTA=ci,exports.applyFontScale=$t,exports.applyTheme=Rt,exports.buildChangeWholeSyllableProblem=Fu,exports.buildDropCompoundProblem=Iu,exports.buildDropContrast3Problem=$u,exports.buildDropContrastProblem=Ou,exports.buildDropFinalConsonantProblem=Pu,exports.buildMultiPartPosContrast=qo,exports.buildPairIndex=Uo,exports.buildRemoveConsonantProblem=Mu,exports.buildSyllableMaskIndex=vu,exports.bulkSetImageExistence=Ao,exports.cardQuestionTitle=Nu,exports.checkImageExists=Gn,exports.classifyPairDifficulty=No,exports.clearAudioExistsCache=so,exports.clearImageExistenceCache=wo,exports.clearPairIndexCache=Vo,exports.composeSyllable=x,exports.computeDailySelection=Pt,exports.configureImageResolver=Eo,exports.configureNoiseSettingsStore=Cr,exports.configurePronunciationResolver=lo,exports.configureStorage=Xt,exports.configureTTS=uo,exports.configureTrainingCategories=xr,exports.copyText=Er,exports.createDecompCache=Bo,exports.createTTSUrlResolver=Sr,exports.dateToDb=Pr,exports.downloadCsvText=zu,exports.downloadSound=eo,exports.ensureTrainingDataLoaded=Zr,exports.escapeCsvField=Uu,exports.fileExists=jn,exports.filterContrastCandidates=et,exports.finalToPhoneme=Re,exports.firstChoseongOf=Wn,exports.formatCount=vr,exports.formatDateKo=Dr,exports.formatDateLocale=pr,exports.formatDateLongKo=Tr,exports.formatDateLongLocale=Ar,exports.formatDatetimeKo=wr,exports.formatPhone=Rr,exports.formatRelativeTime=Lr,exports.formatTimeHM=Mr,exports.formatYmd=jr,exports.getAssetBaseUrl=Nn,exports.getDailySelection=qr,exports.getElementAnalyser=fo,exports.getElementVolume=mo,exports.getErrorMessage=xu,exports.getImageExistenceStats=po,exports.getImageExistsCached=Do,exports.getImageResolver=vn,exports.getNoiseBaseUrl=no,exports.getNoiseFileGain=to,exports.getPairIndex=Zn,exports.getPlanTier=li,exports.getPronunciationResolver=co,exports.getSavedFontScale=Ot,exports.getSavedTheme=jt,exports.getSignedOrPublicUrl=Rn,exports.getTTSFallbackUrlResolver=io,exports.getTTSUrlResolver=ro,exports.getTodayKst=An,exports.getTodayKstDate=_r,exports.getTopicTypes=Wr,exports.getTrainingPools=Jr,exports.getTrainingTypes=Hr,exports.getWordPool=yt,exports.hasQuestionWordConstraint=Eu,exports.hasSel=O,exports.hasStructureContrast=rn,exports.initFontScale=Vr,exports.initTheme=Yr,exports.installSkewRecovery=fi,exports.isAllChoseong=Yn,exports.isManagerTier=ai,exports.isManualOnlyType=Du,exports.isNetworkErrorMessage=St,exports.isPersonalPhone=$r,exports.isSessionForThisTab=hi,exports.isSyllablePattern=qn,exports.isThisWeekPick=gi,exports.isTrainingDataLoaded=Xr,exports.isValidPhone=Or,exports.isValidQuestionWord=yu,exports.itemCorrectness=Dt,exports.jamoToNamesForSpeech=Lu,exports.kstStartOfDay=Nr,exports.lazyPage=mi,exports.loadGameLeaderboard=cr,exports.loadMyGameRanks=lr,exports.loadNoiseSettings=gr,exports.loadTrainingData=Mt,exports.logCrossword=tr,exports.logTrainingCompletion=er,exports.logTrainingTime=Xu,exports.matchSyllables=te,exports.matchesChoseongSearch=Lo,exports.matchesSyllablePattern=Qn,exports.matchesWordQuery=jo,exports.mergeQuestionText=mt,exports.minimalPairDistractors=zo,exports.normalizeDate=Ir,exports.officialSoundPath=mr,exports.parseLocalYmd=wt,exports.parseSortValue=Ku,exports.parseSyllable=S,exports.patternToComposition=Fo,exports.phonemePartsOf=pu,exports.pickEuRo=gt,exports.pickEulReul=lt,exports.pickEunNeun=ct,exports.pickIga=st,exports.pickWaGwa=Ct,exports.prefetchChunk=Si,exports.prewarmImageCache=To,exports.primarySelPart=Ge,exports.readLevel=So,exports.recoverFromSkew=_n,exports.reorderArray=hu,exports.reportAppliedNoiseSettings=fr,exports.resolveAssetUrl=Jt,exports.resolveSoundPath=Zt,exports.resumeAudioMeter=go,exports.routeElementAudio=Pn,exports.sample=Y,exports.saveNoiseSettings=dr,exports.searchAndRankWords=Wo,exports.setAssetBaseUrl=qt,exports.setCrosswordLogger=nr,exports.setElementVolume=ho,exports.setGameLeaderboardLoader=ar,exports.setGameRanksLoader=ir,exports.setGameScoreSubmitter=rr,exports.setTrainingCompletionLogger=Zu,exports.setTrainingTimeLogger=Qu,exports.setWordPool=Ju,exports.shuffle=R,exports.skewReloadPending=Wt,exports.sortToValue=Yu,exports.soundOf=yn,exports.speak=Kt,exports.stopSpeaking=Ut,exports.submitGameScore=sr,exports.syllMatchesComp=J,exports.syllableContrasts=oe,exports.syllableLength=$o,exports.syllablePron=Fe,exports.toBase64UrlSafe=hr,exports.toChoseong=Hn,exports.toItemResults=or,exports.toKstHm=br,exports.toKstYmd=ye,exports.toStandardPronunciation=su,exports.toStorageName=We,exports.toUserErrorMessage=Hu,exports.toWordEntry=Ei,exports.validateSyllableSearchInput=xo,exports.withEuRo=fu,exports.withEulReul=Cu,exports.withEunNeun=gu,exports.withIga=cu,exports.withWaGwa=du,exports.wordContainsChoseong=Ro,exports.wordContainsJongseong=Oo,exports.wordContainsJungseong=ko,exports.wordHasNoCoda=Io,exports.wordHasSyllableMatching=Mo,exports.wrongItems=ur;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ihabdevteam/core",
3
- "version": "0.221.0",
3
+ "version": "0.221.1",
4
4
  "private": false,
5
5
  "main": "dist/ihabdevteam-core.cjs.js",
6
6
  "module": "dist/packages/core/src/index.js",