(globalThis.wpRiseJsonp=globalThis.wpRiseJsonp||[]).push([["learn_main_tsx-node_modules_pnpm_moment_2_30_1_node_modules_moment_locale_sync_recursive_en"],{30349(tt){tt.exports=function(Le){Le||(Le={});var __t,__p="";with(Le)__p+=`<style>
  :root {
    --color-theme-contrast-complementary-rgb: `+((__t=colorThemeContrastComplementaryRGB)==null?"":__t)+`;
    --color-theme-contrast-complementary: `+((__t=colorThemeContrastComplementary)==null?"":__t)+`;
    --color-theme-contrast-rgb: `+((__t=colorThemeContrastRGB)==null?"":__t)+`;
    --color-theme-contrast: `+((__t=colorThemeContrast)==null?"":__t)+`;
    --color-theme-rgb: `+((__t=colorThemeRGB)==null?"":__t)+`;
    --color-theme-tint: `+((__t=colorThemeTint)==null?"":__t)+`;
    --color-theme-transparent: `+((__t=colorThemeTransparent)==null?"":__t)+`;
    --color-theme: `+((__t=colorTheme)==null?"":__t)+`;
    --font-family-body: `+((__t=bodyTypeface)==null?"":__t)+`, 'Noto Sans Myanmar', sans-serif;
    --font-family-head: `+((__t=headingTypeface)==null?"":__t)+`, 'Noto Sans Myanmar', sans-serif;
    --font-family-ui: `+((__t=uiTypeface)==null?"":__t)+`, 'Noto Sans Myanmar', sans-serif;

    --mon-theme-font-body: var(--font-family-body);
    --mon-theme-font-heading: var(--font-family-head);
  }

  .brand--ui, .brand--ui * {
    font-family: var(--font-family-ui) !important;
  }

  .brand--beforeHead:before {
    font-family: var(--font-family-ui) !important;
  }

  .brand--afterHead:after {
    font-family: var(--font-family-ui) !important;
  }

  .brand--background {
    background-color: var(--color-theme) !important;
  }

  .brand--background-all * {
    background-color: var(--color-theme) !important;
  }

  .brand--border {
    border-color: var(--color-theme) !important;

    @media (forced-colors: active) {
      border-color: transparent !important;
    }
  }

  .brand--color {
    color: var(--color-theme) !important;
  }

  .brand--color-all * {
    color: var(--color-theme) !important;
  }

  .brand--shadow {
    box-shadow: 0 0 0 0.2rem var(--color-theme) !important;
  }

  .brand--shadow-all * {
    box-shadow: 0 0 0 0.2rem var(--color-theme) !important;
  }

  .brand--fill {
    fill: var(--color-theme) !important;
  }

  .brand--stroke {
    stroke: var(--color-theme) !important;
  }

  .brand--beforeBackground:before {
    background-color: var(--color-theme) !important;
  }

  .brand--beforeBorder:before {
    border-color: var(--color-theme) !important;
  }

  .brand--beforeColor:before {
    color: var(--color-theme) !important;
  }

  .brand--afterBackground:after {
    background-color: var(--color-theme) !important;
  }

  .brand--afterBorder:after {
    border-color: var(--color-theme) !important;
  }

  .brand--afterColor:after {
    color: var(--color-theme) !important;
  }

  /* should be applied to containers where links
     need to appear in brand color */
  .brand--linkColor a {
    color: var(--color-theme) !important;
    fill: var(--color-theme) !important;
  }

  /* should be applied to containers where links
     need to change to brand color on hover */
  .brand--linkColorHover a:hover {
    color: var(--color-theme) !important;
    fill: var(--color-theme) !important;
  }

  /* should be applied to any single element that
     needs to change color on hover */
  .brand--hoverColor:hover {
    color: var(--color-theme) !important;
  }

  .button.brand--background:hover { opacity: .65 !important; }

  .brandHover:hover {
    fill: var(--color-theme) !important;
  }


  @media (min-width: 47.9375em) { /* 768px */
    .brand--min768--background {
      background-color: var(--color-theme) !important;
    }

    .brand--min768--border {
      border-color: var(--color-theme) !important;
    }

    .brand--min768--color {
      color: var(--color-theme) !important;
    }
  }

  @media (max-width: 47.9375em) { /* 768px */
    .brand--max768--background {
      background-color: var(--color-theme) !important;
    }

    .brand--max768--border {
      border-color: var(--color-theme) !important;
    }

    .brand--max768--color {
      color: var(--color-theme) !important;
    }
  }
</style>
`;return __p}},11892(tt,Le,c){"use strict";c.d(Le,{cF:()=>us,LK:()=>qe,LM:()=>Z,TJ:()=>Ys,Ay:()=>bt,EL:()=>kn,HC:()=>Go,V7:()=>Zn,YB:()=>fn});var R=c(66015),U=c(81783),B=c.n(U),K=c(12100),J;function q(){return K.action}function ve(){return J}var re=c(88498),se=c(46044),s=c(33532),ye=c(91541),be=c(84098),ae=c(40069);const le=(Ue=[],yt)=>yt?.partnerContentId?Ue.concat(yt.partnerContentId):Ue,Y=(Ue,yt)=>yt?.items?.reduce(le,Ue)??Ue,Ce=(Ue,yt)=>yt?.items?.reduce(Y,Ue)??Ue,Ie=({course:Ue,lessons:yt})=>{const Zt=yt?.reduce(Ce,[])||[],Hs=Ue?.partnerContentId||null,Ot=Hs?[Hs]:[],Lt=new Set([...Zt,...Ot]);return Array.from(Lt)};var X=c(48831),_=c.n(X),V,te;const z=null,ue=_()({ACTIVE:null,PREVIEW:null}),me=({themeId:Ue,themeCoverImage:yt,coverImageDefault:Zt})=>Ue==="classic"&&te(Zt)?Zt:yt,je=Ue=>({...Ue,theme:{...Ue?.theme,hideLessonHeaders:Ue?.theme?.hideLessonHeaders??!1,showStartButton:Ue?.theme?.showStartButton??!0}});var Se=c(44914),fe=c.n(Se),h=c(68692),ne=c.n(h),ie=c(48819),Q=c.n(ie),Fe=c(33182),ge=c.n(Fe),Me=c(89239),Ve=c.n(Me),pe=c(22737),ke;const Ye=Q()([[ne()([ge()(!0),ge()(pe.iV.ALL)]),fe()(pe.iV.ALL)],[ne()([ge()(!1),ge()(pe.iV.NONE)]),fe()(pe.iV.NONE)],[ge()(pe.iV.INCORRECT),fe()(pe.iV.INCORRECT)],[Ve(),fe()(pe.iV.ALL)]]),Je="draw from question bank",Ze="fillin",gt="matching",et="multiple choice",Re="multiple response",_e=null;var ut=c(47302),ft=c(94992);const qe="rise/course/LOAD_COURSE",Gt="rise/course/UPDATE_COMPLETED_AT",Z="rise/course/UPDATE_COURSE_PREVIEW",nt="rise/course/UPDATE_LESSON_PREVIEW",us="rise/course/APPLY_CHANGESET";let ze;(async()=>{try{({applyReviewDataToManifest:ze}=await c.e("webpack_container_remote_mondrian_learn-react").then(c.t.bind(c,4246,23)))}catch{}})();const Ks=q(),_n=Ue=>{if("settings"in Ue&&Ue.settings&&(0,ft.Gv)(Ue.settings)&&"revealAnswers"in Ue.settings){const Zt=Ue.settings;return{...Ue,settings:{...Ue.settings,revealAnswers:Ye(Zt.revealAnswers)}}}return Ue},Gn=Ue=>(0,ut.vm)(Ue)?(0,ut.Ww)(Ue):Ue,Ge=Ue=>Gn(_n(Ue)),an=Ue=>({...Ue,lessons:Ue.lessons?.map(Ge)||[]}),Qs=Ue=>{const yt=Ue.lessons?.filter(Zt=>Zt.type!=="section")||[];return{...Ue,lessonsOnly:yt}},Zs=Ue=>Ue.theme==null,jn=Ue=>(0,se.MJ)((0,se.uK)(Ue)),zr=Ue=>Zs(Ue)?jn(Ue):(0,se.MJ)(Ue),Kn=Ue=>je(zr(Ue)),At=(Ue,yt)=>{let Zt=(0,R.TJ)(["course"],yt,Ue).result;const Hs=(0,R.TJ)(["lessons"],yt,Zt.lessons).result;return yt.some(Ot=>Ot.path[0]==="mondrian")&&Zt.mondrian&&ze&&(Zt={...Zt,mondrian:ze(Zt.mondrian,yt)}),{...Zt,lessons:Hs}},fs=Ue=>({...Ue,lessons:Ue.lessons?.map(s.K)||[]}),as=(Ue,{completedAt:yt,course:Zt,favoritedAt:Hs,riseComCurrentUser:Ot,riseComCourseId:Lt,riseComEnrollmentType:vo,riseComLearningPathId:lr})=>{const cn=an(Zt),Ur=Qs(cn),$r={...Ur,theme:Ur.theme??(0,se.uK)(Ur).theme};return{...Kn($r),completedAt:yt,favoritedAt:Hs,riseComCourseId:Lt,riseComEnrollmentType:vo,riseComCurrentUser:Ot,riseComLearningPathId:lr}},Wo=Ue=>({...Ue,favoritedAt:new Date}),mo=Ue=>({...Ue,favoritedAt:null}),po=Ue=>({...Ue,completedAt:new Date().toISOString()}),A={[ye._q]:Wo,[ye.ut]:mo,[qe]:as,[Gt]:po,[Z]:(Ue,{course:yt})=>yt,[nt]:(Ue,{lessons:yt})=>({...Ue,lessons:yt.map(Ge)}),[us]:At},bt=(0,K.handle)({},A),St=Ue=>yt=>{const{statusCode:Zt}=yt;Zt===404&&Ue((0,ae.cX)(!0))},Qn=Ue=>yt=>yt([{type:be.O,payload:Ue},(0,ae.$d)(!0)]),Qt=B().fromPromise(async(...Ue)=>await(0,re.qO)(...Ue)),fo=Ue=>Ue.length===0?(0,ae.$d)(!0):Qt(Ue).map(Qn),_o=Ue=>yt=>{const{course:Zt}=yt,Hs=fs(Zt),Ot=Ie({course:Hs,lessons:Hs.lessons});Ue([Ks(qe,{...yt,course:Hs,_originalLessons:Zt.lessons}),(0,ae.LW)(!0),fo(Ot)])},kn=()=>async Ue=>{try{const yt=await(0,re.hd)();_o(Ue)(yt),(0,re.wW)(yt)}catch(yt){await St(Ue)(yt)}},Go=Ks(qe),Zn=Ks(Z),fn=Ks(nt),Ys=Ks(us)},61254(tt,Le,c){"use strict";c.d(Le,{Kl:()=>B,Om:()=>J,RA:()=>Y,Sw:()=>ye,V9:()=>ae,Zp:()=>re,bf:()=>K,eQ:()=>s,i$:()=>Ce,re:()=>le,sq:()=>ve,ss:()=>be,w8:()=>q,y1:()=>se});var R=c(12100);const U=Ie=>`rise/course/${Ie}`,B=U("BLOCKS_LESSON_COMPLETE"),K=U("BLOCKS_LESSON_INCREMENT_RETRY_ATTEMPT"),J=U("BLOCKS_LESSON_RESET"),q=U("BLOCKS_LESSON_RETRY_SORTING_ACTIVITY"),ve=U("BLOCKS_LESSON_SET_ITEMS_PROGRESS"),re=U("BLOCKS_LESSON_SET_MEDIA_PLAY_PROGRESS"),se=U("BLOCKS_LESSON_SET_SORTING_ITEM_RESULT"),s=(0,R.action)(B),ye=(0,R.action)(K),be=(0,R.action)(J),ae=(0,R.action)(q),le=(0,R.action)(ve),Y=(0,R.action)(re),Ce=(0,R.action)(se)},5233(tt,Le,c){"use strict";c.d(Le,{$Z:()=>re,Ew:()=>J,GL:()=>K,UZ:()=>q,_Y:()=>s,aM:()=>be,jS:()=>se,tc:()=>ve});var R=c(16547),U=c(18849),B=c(94992);function K(V,te){const z=V.lessons[te];if(!(0,R.rV)(z))return V;const ue={...be(z),id:te},me=(0,R.b5)({courseProgress:V,lessonId:te,updatedLessonProgress:ue});return(0,R.bo)({lessonId:te,prevCourseProgress:V,nextCourseProgress:me})}function J(V,te){const{lessonId:z,blockId:ue,itemId:me}=te,je=V.lessons[z];if(!(0,R.rV)(je))return V;const Se=je.items[ue],fe=le({blockProgress:Se,itemId:me}),h=Ce({lessonProgress:je,blockId:ue,updatedBlockProgress:fe}),ne=(0,U.hh)(h),ie=(0,R.b5)({courseProgress:V,lessonId:z,updatedLessonProgress:ne});return(0,R.bo)({lessonId:z,prevCourseProgress:V,nextCourseProgress:ie})}function q(V,te){const z=V.lessons[te];if(!(0,R.rV)(z))return V;const ue=Ie(z),me=(0,R.b5)({courseProgress:V,lessonId:te,updatedLessonProgress:ue});return(0,R.bo)({lessonId:te,prevCourseProgress:V,nextCourseProgress:me})}function ve(V,{blockId:te,lessonId:z}){const ue=V.lessons[z];if(!(0,R.rV)(ue))return V;const me=X(ue.items[te]),je=Ce({lessonProgress:ue,blockId:te,updatedBlockProgress:me}),Se=(0,R.b5)({courseProgress:V,lessonId:z,updatedLessonProgress:je});return(0,R.bo)({lessonId:z,prevCourseProgress:V,nextCourseProgress:Se})}function re(V,te){const{lessonId:z,blockId:ue,items:me}=te,je=V.lessons[z];if(!(0,R.rV)(je))return V;const Se=ae({blockId:ue,lessonProgress:je,items:me}),fe=(0,R.b5)({courseProgress:V,lessonId:z,updatedLessonProgress:Se});return(0,R.bo)({lessonId:z,prevCourseProgress:V,nextCourseProgress:fe})}function se(V,te){const{lessonId:z,blockId:ue,itemId:me,audioVideoPlayhead:je}=te,Se=V.lessons[z],fe=Se?.items?.[ue];if(!(0,R.rV)(Se)||!fe||!("items"in fe)||!fe.items||!fe.items[me])return V;const ne={...fe.items[me],audioVideoPlayhead:je},ie={...fe,items:{...fe.items,[me]:ne}},Q=Ce({lessonProgress:Se,blockId:ue,updatedBlockProgress:ie}),Fe=(0,R.b5)({courseProgress:V,lessonId:z,updatedLessonProgress:Q});return(0,R.bo)({lessonId:z,prevCourseProgress:V,nextCourseProgress:Fe})}function s(V,te){const{lessonId:z,blockId:ue,itemId:me,isCorrect:je}=te,Se=V.lessons[z];if(!(0,R.rV)(Se))return V;const fe=_({itemId:me,isCorrect:je,blockProgress:Se.items[ue]}),h=(0,U.hh)(Ce({lessonProgress:Se,blockId:ue,updatedBlockProgress:fe})),ne=(0,R.b5)({courseProgress:V,lessonId:z,updatedLessonProgress:h});return(0,R.bo)({lessonId:z,prevCourseProgress:V,nextCourseProgress:ne})}const ye=V=>Object.values(V).length>0&&Object.values(V).every(te=>te.isComplete),be=V=>{const te=(0,B.s0)(V.items,(z,ue)=>{const me=(0,B.s0)(ue.items??{},(je,Se)=>[je,{...Se,isComplete:!0,id:Se.id,index:Se.index}]);return[z,{...ue,items:me,isComplete:!0}]});return{...V,isComplete:!0,items:te,percentComplete:100}},ae=({blockId:V,items:te,lessonProgress:z})=>{const ue=z.items?.[V]??{items:{}},me=new Set(te.map(ne=>String(ne.id))),je=(0,B.s0)(ue.items??{},(ne,ie)=>{const Q=me.has(ne);return[ne,{...ie,isComplete:ie.isComplete||Q,id:ie.id,index:ie.index}]}),fe=Object.keys(je).length===0||ye(je),h={...ue,id:V,items:je,...fe&&{isComplete:!0}};return Y(Ce({lessonProgress:z,blockId:V,updatedBlockProgress:h}))},le=({blockProgress:V,itemId:te})=>{if(!V.items)return V;const z=V.items[te];return{...V,items:{...V.items,[te]:{...z,retryAttemptCount:(z?.retryAttemptCount??0)+1}}}},Y=V=>{const te=(0,U.hh)(V);return te.percentComplete===100?{...te,isComplete:!0}:te},Ce=({blockId:V,lessonProgress:te,updatedBlockProgress:z})=>({...te,items:{...te.items,[V]:z}}),Ie=V=>{const te=(0,B.s0)(V.items,(z,ue)=>{const me=(0,B.s0)(ue.items??{},(je,Se)=>[je,(0,B.QD)(Se,["isComplete","isCorrect","isViewed"])]);return[z,{id:ue.id,index:ue.index,items:me}]});return{...(0,B.QD)(V,["isComplete","percentComplete"]),items:te}},X=V=>({...(0,B.QD)(V,["percentViewed","correctlyAnswered"]),id:V.id,index:V.index,items:(0,B.s0)(V.items??{},(te,z)=>[te,(0,B.QD)(z,["isViewed","isCorrect"])]),retryAttempts:(V.retryAttempts??0)+1}),_=({isCorrect:V,itemId:te,blockProgress:z})=>{if(!z.items)return z;const ue=z.items[te],me={...ue,isComplete:V,isViewed:V,...ue?.isCorrect===void 0&&{isCorrect:V}},je={...z.items,[te]:me},Se=Object.values(je).filter(Q=>Q.isCorrect).length,fe={...z,items:je,correctlyAnswered:Se,...!V&&{lastIncorrectCardId:te}},h=(0,U.f5)(fe),ne=(0,U.QI)(h),ie=ne.percentComplete===100;return{...ne,...ie&&{isComplete:!0}}}},16547(tt,Le,c){"use strict";c.d(Le,{Zn:()=>K,b5:()=>q,bo:()=>ve,rV:()=>J});var R=c(82010),U=c.n(R),B=c(88498);const K=ae=>!!ae&&ae.type==="quiz",J=ae=>!!ae&&ae.type==="blocks",q=({courseProgress:ae,lessonId:le,updatedLessonProgress:Y})=>({...ae,lessons:{...ae.lessons,[le]:Y}});function ve({lessonId:ae,nextCourseProgress:le,prevCourseProgress:Y}){const Ce=le.lessons[ae],Ie=Y.lessons[ae];if(Ce&&!U()(Ce,Ie)&&((0,B.C2)(Ce),re({lessonId:ae,courseProgress:le,prevCourseProgress:Y})),se({lessonId:ae,prevCourseProgress:Y,nextCourseProgress:le})){const X=ye(Y),_=ye(le),V=_!==X,te={...le,percentComplete:_};return V&&(be({courseProgress:te,lessonProgress:Ce}),te.percentComplete!=null&&(0,B.O9)(te.percentComplete)),te}return le}function re({courseProgress:ae,prevCourseProgress:le,lessonId:Y}){const Ce=ae.lessons?.[Y],Ie=le.lessons?.[Y];if(Ce?.percentComplete===100&&Ie?.percentComplete!==100){const X=s(Ce);X&&(0,B.aM)(X)}}function se({lessonId:ae,nextCourseProgress:le,prevCourseProgress:Y}){const Ce=le.lessons?.[ae];if(!Ce)return!1;const Ie=Y.lessons?.[ae]?.percentComplete===100,X=Ce.percentComplete===100,_=Ie!==X,V=le.currentLesson!=null&&K(le.lessons[le.currentLesson])&&le.lessons[le.currentLesson]?.percentComplete===100;return _||V}function s(ae){const{id:le}=ae;if(!le)throw new Error("Cannot create lesson payload: lesson.id is missing");if(K(ae)){const{passed:Y,score:Ce,passingScore:Ie=0}=ae;return{id:le,...Y!==void 0&&{passed:Y},...Ce!==void 0&&{score:Ce},passingScore:Ie}}return{id:le}}function ye(ae){const{lessons:le={}}=ae,Y=Object.keys(le).length;if(Y===0)return 0;const Ce=Object.values(le).filter(Ie=>Ie.isComplete).length;return Math.round(Ce/Y*100)}function be({courseProgress:ae,lessonProgress:le}){if(!ae||!le)return;const Y=s(le);Y&&(0,B.vb)(ae,Y)}},66350(tt,Le,c){"use strict";c.d(Le,{B:()=>z,A:()=>me});var R=c(12100),U=c(88498),B=c(61254),K=c(5233),J=c(26481),q=c(63230),ve=c(18849),re=c(22737),se=c(33532),s=c(76906);const ye=ge=>ge&&typeof ge=="object"&&ge.type&&s.fT.includes(ge.type),be=(ge,Me)=>{const Ve=new Map;return ge.forEach(pe=>{if((0,se.c)(pe)){const ke=Me.find(Ye=>String(Ye.id)===String(pe.id));ke&&ke.type==="blocks"&&Ve.set(String(pe.id),String(ke.id))}}),Ve},ae=(ge,Me)=>{const Ve={id:String(ge.id),index:ge.index,type:"blocks",items:{}};return typeof ge.isComplete=="boolean"&&(Ve.isComplete=ge.isComplete),typeof ge.percentComplete=="number"&&(Ve.percentComplete=ge.percentComplete),Me.type==="blocks"&&Me.items&&Me.items.forEach((pe,ke)=>{if(pe?.id!=null&&(Ve.items[pe.id]={id:pe.id,index:ke,isComplete:ge.isComplete===!0&&ke===0,items:pe.items?{}:void 0},pe.items&&Array.isArray(pe.items))){const Ye={};pe.items.forEach((Je,Ze)=>{Je?.id!=null&&(Ye[Je.id]={id:Je.id,index:Ze,isComplete:ge.isComplete===!0})}),Object.keys(Ye).length>0&&(Ve.items[pe.id].items=Ye)}}),Ve},le=(ge,Me)=>{const Ve=new Set(Me.map(ke=>String(ke.id))),pe=[];return Object.values(ge.lessons).forEach(ke=>{ye(ke)&&(Ve.has(String(ke.id))||pe.push(ke))}),pe},Y=(ge,Me,Ve)=>{const pe={totalLegacyLessons:0,successfulMigrations:0,failedMigrations:0},ke={...ge,lessons:{...ge.lessons}},Ye=le(ge,Ve);pe.totalLegacyLessons=Ye.length;const Je=be(Me,Ve),Ze=[];return Ye.forEach(gt=>{try{const et=Je.get(String(gt.id))||String(gt.id),Re=Ve.find(_e=>String(_e.id)===et);if(Re&&Re.type==="blocks"){const _e=ae(gt,Re);ke.lessons[String(Re.id)]=_e,String(gt.id)!==String(Re.id)&&delete ke.lessons[String(gt.id)],pe.successfulMigrations++}else Ze.push(String(gt.id)),pe.failedMigrations++}catch(et){console.warn(`Failed to migrate legacy lesson progress for lesson ${gt.id}:`,et),Ze.push(String(gt.id)),pe.failedMigrations++}}),{migratedProgress:ke,orphanedLessonIds:Ze,migrationSummary:pe}},Ce=ge=>Object.values(ge.lessons).some(ye),Ie=ge=>{let Me=0,Ve=0;const pe=[];return Object.values(ge.lessons).forEach(ke=>{Ve++,ye(ke)&&(Me++,pe.includes(ke.type)||pe.push(ke.type))}),{legacyCount:Me,totalCount:Ve,legacyTypes:pe,hasLegacyProgress:Me>0}},X=(ge,Me,Ve)=>{if(!Ce(ge))return ge;const pe=Y(ge,Me,Ve);return pe.orphanedLessonIds.length>0&&console.warn("Some legacy lessons could not be migrated:",pe.orphanedLessonIds),pe.migratedProgress},_=ge=>`rise/course/${ge}`,V=_("BOOKMARK_LESSON"),te=_("LOAD_COURSE"),z=(0,R.action)(V),ue={lessons:{},percentComplete:0},me=(0,R.handle)(ue,{[B.Kl]:K.GL,[B.bf]:K.Ew,[B.Om]:K.UZ,[B.w8]:K.tc,[B.sq]:K.$Z,[B.Zp]:K.jS,[B.y1]:K._Y,[J.z_]:q.Qv,[J.Eg]:q.Ki,[J.be]:q.ZL,[J.jZ]:q.Jx,[J.Ck]:q.pl,[J.fV]:q.Ux,[J.jo]:q.NZ,[J.V8]:q.uR,[J.Z8]:q.XW,[J.Dh]:q.yi,[J.ug]:q.bu,[V]:Se,[te]:je});function je(ge,Me){const Ve=Me.course?.lessons??[],pe=Me._originalLessons??Ve,ke=(0,U.y4)(ne(Ve));if(typeof ke!="object"||ke===null)return ge;const Ye={...ge,...ke};return Ce(ge)&&pe!==Ve?X(Ye,pe,Ve):Ye}function Se(ge,Me){return(0,U.Fc)(Me),{...ge,currentLesson:Me}}const fe=({index:ge,lessonId:Me,settings:Ve,type:pe})=>pe==="quiz"?{id:Me,index:ge,type:pe,items:{},passingScore:Number(Ve?.passingScore??re.hB)}:{id:Me,index:ge,type:"blocks",items:{}};function h(ge){return ge.type==="quiz"&&"settings"in ge}function ne(ge){return{lessons:ge.reduce((Ve,pe,ke)=>h(pe)?ie({index:ke,items:pe.items,lessonId:pe.id,lessonProgress:Ve,settings:pe.settings,type:pe.type}):pe.type==="blocks"?ie({index:ke,items:pe.items,lessonId:pe.id,lessonProgress:Ve,type:pe.type}):Ve,{})}}function ie(ge){const{lessonId:Me,index:Ve,items:pe,lessonProgress:ke={},settings:Ye,type:Je}=ge,Ze=fe({lessonId:Me,index:Ve,settings:Ye,type:Je});if(pe.length===0)return{...ke,[Me]:Ze};const gt=Je==="quiz"?Fe(pe):Q(pe);return{...ke,[Me]:{...Ze,items:gt}}}function Q(ge){return ge.reduce((Me,Ve,pe)=>{const ke=Ve.id,Ye=Ve.items??[],Je=(0,ve.BC)(Ye);return Me[ke]={id:ke,index:pe,items:Je},Me},{})}function Fe(ge){return ge.reduce((Me,Ve,pe)=>(Me[Ve.id]={id:Ve.id,index:pe},Me),{})}},26481(tt,Le,c){"use strict";c.d(Le,{Ck:()=>q,Dh:()=>be,Eg:()=>s,FU:()=>Ce,NC:()=>te,Nj:()=>X,QI:()=>le,RW:()=>ue,V8:()=>se,YC:()=>Y,Yu:()=>Ie,Z8:()=>ye,be:()=>K,fV:()=>ve,hy:()=>V,jZ:()=>J,jo:()=>re,kK:()=>z,mg:()=>_,ug:()=>ae,x6:()=>me,z_:()=>B});var R=c(12100);const U=je=>`rise/course/${je}`,B=U("QUIZ_LESSON_ADVANCE_STEP"),K=U("QUIZ_LESSON_CLEAR_ANSWER_SELECTION"),J=U("QUIZ_LESSON_INITIALIZE_DRAWN_QUESTIONS"),q=U("QUIZ_LESSON_RESTART"),ve=U("QUIZ_LESSON_SELECT_QUIZ_ANSWER"),re=U("QUIZ_LESSON_SET_ANSWER_MATCHES"),se=U("QUIZ_LESSON_SET_ANSWER_TEXT"),s=U("QUIZ_LESSON_ADVANCE_TO_END"),ye=U("QUIZ_LESSON_SET_TIME_REMAINING"),be=U("QUIZ_LESSON_SUBMIT_ANSWER"),ae=U("QUIZ_LESSON_TOGGLE_ANSWER_SELECTION"),le=(0,R.action)(B),Y=(0,R.action)(s),Ce=(0,R.action)(q),Ie=(0,R.action)(ve),X=(0,R.action)(se),_=(0,R.action)(ae),V=(0,R.action)(ye),te=(0,R.action)(re),z=(0,R.action)(be),ue=(0,R.action)(K),me=(0,R.action)(J)},63230(tt,Le,c){"use strict";c.d(Le,{Jx:()=>s,Ki:()=>re,NZ:()=>le,Qv:()=>ve,Ux:()=>ae,XW:()=>Y,ZL:()=>se,bu:()=>Ie,oO:()=>_,pl:()=>be,uR:()=>ye,yi:()=>Ce});var R=c(16547),U=c(5233),B=c(94992),K=c(15107),J=c(88498),q=c(22737);function ve(z,{lessonId:ue,progressId:me}){const je=z.lessons[ue];if(!(0,R.Zn)(je))return z;const Se=je.activeIndex??0,fe=me?(je.items[me]?.index??Se)+1:Se+1,h={...je,activeIndex:fe},ne=(0,R.b5)({courseProgress:z,lessonId:ue,updatedLessonProgress:h});return(0,R.bo)({lessonId:ue,prevCourseProgress:z,nextCourseProgress:ne})}function re(z,ue){const me=z.lessons[ue];if(!(0,R.Zn)(me))return z;const je=Object.keys(me?.items)?.length,Se={...me,activeIndex:je+1},fe=(0,R.b5)({courseProgress:z,lessonId:ue,updatedLessonProgress:Se});return(0,R.bo)({lessonId:ue,prevCourseProgress:z,nextCourseProgress:fe})}function se(z,{lessonId:ue,itemId:me}){const je=z.lessons[ue];if(!(0,R.Zn)(je))return z;const Se=je.items[me];if(!Se)return z;const fe={...Se,selectedIndices:[]},h=X({lessonProgress:je,itemId:me,updatedQuizItemProgress:fe}),ne=(0,R.b5)({courseProgress:z,lessonId:ue,updatedLessonProgress:h});return(0,R.bo)({lessonId:ue,prevCourseProgress:z,nextCourseProgress:ne})}function s(z,{lessonId:ue,lessonProgress:me}){return{...z,lessons:{...z.lessons,[ue]:me}}}function ye(z,{lessonId:ue,itemId:me,text:je}){const Se=z.lessons[ue];if(!(0,R.Zn)(Se))return z;const fe=Se.items[me];if(!fe)return z;const h=typeof je=="string"&&(0,K.h)(je)?(0,B.QD)(fe,["text"]):{...fe,text:je},ne=X({lessonProgress:Se,itemId:me,updatedQuizItemProgress:h}),ie=(0,R.b5)({courseProgress:z,lessonId:ue,updatedLessonProgress:ne});return(0,R.bo)({lessonId:ue,prevCourseProgress:z,nextCourseProgress:ie})}function be(z,ue){const me=z.lessons[ue];if(!(0,R.Zn)(me))return z;const je=(0,B.s0)(me.items,(ne,ie)=>{const Q={id:ie.id,index:ie.index};return[ne,Q]}),fe={...(0,B.QD)(me,["activeIndex","originalItemProgress","passed","percentComplete","questionList","questionsDrawn","reportResults","score"]),...me.passed!==!1&&{passed:me.passed},...me.isComplete!==!1&&{isComplete:me.isComplete},retryAttempts:(me.retryAttempts??0)+1,items:je},h=(0,R.b5)({courseProgress:z,lessonId:ue,updatedLessonProgress:fe});return(0,R.bo)({lessonId:ue,prevCourseProgress:z,nextCourseProgress:h})}function ae(z,{lessonId:ue,itemId:me,selectedIndex:je,shuffledAnswerIndices:Se}){const fe=z.lessons[ue];if(!(0,R.Zn)(fe))return z;const h=fe.items[me];if(!h)return z;const ne=Se??h.shuffledAnswerIndices;if(je==null)return z;const ie=Array.isArray(ne)&&ne[je]!=null?ne[je]:je,Q={...h,selectedIndex:ie,...Array.isArray(ne)&&{shuffledAnswerIndices:ne}},Fe=X({lessonProgress:fe,itemId:me,updatedQuizItemProgress:Q}),ge=(0,R.b5)({courseProgress:z,lessonId:ue,updatedLessonProgress:Fe});return(0,R.bo)({lessonId:ue,prevCourseProgress:z,nextCourseProgress:ge})}function le(z,{lessonId:ue,itemId:me,matches:je}){const Se=z.lessons[ue];if(!(0,R.Zn)(Se))return z;const fe=Se.items[me];if(!fe)return z;const h={...fe,matches:je},ne=X({lessonProgress:Se,itemId:me,updatedQuizItemProgress:h}),ie=(0,R.b5)({courseProgress:z,lessonId:ue,updatedLessonProgress:ne});return(0,R.bo)({lessonId:ue,prevCourseProgress:z,nextCourseProgress:ie})}function Y(z,{lessonId:ue,timeRemaining:me}){const je=z.lessons[ue];if(!(0,R.Zn)(je))return z;const Se={...je,timeRemaining:me},fe=(0,R.b5)({courseProgress:z,lessonId:ue,updatedLessonProgress:Se});return(0,R.bo)({lessonId:ue,prevCourseProgress:z,nextCourseProgress:fe})}function Ce(z,{lessonId:ue,itemId:me,isCorrect:je,finalRetryAttempt:Se,passToContinue:fe,skipLessonsIfPassed:h,skipToLessonId:ne}){const ie=z.lessons[ue];if(!(0,R.Zn)(ie))return z;const Q=ie.passingScore??q.hB,Fe=ie.items[me];if(!Fe)return z;const ge={...Fe,isCorrect:je,isComplete:!0},Me={...ie.items,[me]:ge},Ve=Object.keys(Me).length,pe=Object.values(Me).filter(et=>et.isCorrect).length,ke=Object.values(Me).filter(et=>et.isComplete).length,Ye=Math.round(pe/Ve*100),Je=Math.round(ke/Ve*100);let Ze={...ie,items:Me,score:Ye,percentComplete:Je};if(Je===100){const et=Ye>=Q,Re=fe?et:!0;if((0,J.X_)(et,Ye,ue,Se),Ze={...Ze,passed:et,isComplete:Re,reportResults:!0},h&&ne&&et)return V(z,{quizId:ue,destinationId:ne,updatedLessonProgress:Ze})}const gt=(0,R.b5)({courseProgress:z,lessonId:ue,updatedLessonProgress:Ze});return(0,R.bo)({lessonId:ue,prevCourseProgress:z,nextCourseProgress:gt})}function Ie(z,{lessonId:ue,itemId:me,selectedIndex:je,shuffledAnswerIndices:Se}){const fe=z.lessons[ue];if(!(0,R.Zn)(fe))return z;const h=fe.items[me];if(!h)return z;const ne=Se??h.shuffledAnswerIndices;if(je==null)return z;const ie=Array.isArray(ne)&&ne[je]!=null?ne[je]:je,Q=h.selectedIndices??[],ge=Q.includes(ie)?Q.filter(Je=>Je!==ie):[...Q,ie],{selectedIndices:Me,...Ve}=h,pe=ge.length>0?{...Ve,selectedIndices:ge,...Array.isArray(ne)&&{shuffledAnswerIndices:ne}}:{...Ve,...Array.isArray(ne)&&{shuffledAnswerIndices:ne}},ke=X({lessonProgress:fe,itemId:me,updatedQuizItemProgress:pe}),Ye=(0,R.b5)({courseProgress:z,lessonId:ue,updatedLessonProgress:ke});return(0,R.bo)({lessonId:ue,prevCourseProgress:z,nextCourseProgress:Ye})}function X({itemId:z,lessonProgress:ue,updatedQuizItemProgress:me}){return{...ue,items:{...ue.items,[z]:me}}}function _(z,ue){const{id:me,passed:je,passingScore:Se,score:fe,retryAttempts:h}=ue,ne=[je,h,fe];if(!(ne.length===3&&ne.every(pe=>pe!=null)))return z;const Q=z.lessons?.[me]?.items??{},Fe=Object.keys(Q).length+1,ge=z.lessons?.[me];if(!ge)return z;const Me={...ge,isComplete:!0,activeIndex:Fe,reportResults:!0,passed:je,passingScore:Se,percentComplete:100,retryAttempts:h,score:fe};return{...z,lessons:{...z.lessons,[me]:Me}}}function V(z,{quizId:ue,destinationId:me,updatedLessonProgress:je}){const Se=(0,R.b5)({courseProgress:z,lessonId:ue,updatedLessonProgress:je}),fe=(0,R.bo)({lessonId:ue,prevCourseProgress:z,nextCourseProgress:Se}),h=Object.keys(fe.lessons),ne=h.findIndex(Fe=>Fe===ue),ie=h.findIndex(Fe=>Fe===me);return ne===-1||ie===-1||ie<=ne?fe:h.slice(ne+1,ie).reduce((Fe,ge)=>{const Me=Fe.lessons[ge];if(!Me)return Fe;let Ve;(0,R.Zn)(Me)?Ve=te(Me):Ve=(0,U.aM)(Me);const pe=(0,R.b5)({courseProgress:Fe,lessonId:ge,updatedLessonProgress:Ve});return(0,R.bo)({lessonId:ge,prevCourseProgress:Fe,nextCourseProgress:pe})},fe)}function te(z){const ue=Object.fromEntries(Object.entries(z.items||{}).map(([me,je])=>[me,{...je,isComplete:!0,isCorrect:!0}]));return(0,J.X_)(!0,100,z.id,!1),{...z,items:ue,isComplete:!0,passed:!0,percentComplete:100,reportResults:!0,score:100}}},74724(tt,Le,c){"use strict";c.d(Le,{A:()=>B,G:()=>K});var R=c(12100);const U="rise/features/SET_FEATURE_FLAGS",B=(0,R.handle)({},{[U]:(J,q)=>q}),K=(0,R.action)(U)},39801(tt,Le,c){"use strict";c.d(Le,{A:()=>ve,r:()=>re});var R=c(12100),U=c(11892),B=c(93949),K=c(40069);const J=(se,{fonts:s})=>[...se,...s],q=(se,{fonts:s})=>s,ve=(0,R.handle)([],{[U.LK]:J,[U.LM]:q}),re=se=>s=>{(0,B.U2)(se,()=>{s((0,K.m7)(!0))})}},29046(tt,Le,c){"use strict";c.d(Le,{Ay:()=>se,Wp:()=>ve});var R=c(12100),U=c(11892),B=c(66015);const K="rise/l10n/TOGGLE_LOCALE_SELECTOR",J=(s,{l10n:ye})=>ye?{...s,...ye}:s,q=(s,ye)=>(0,B.TJ)(["l10n"],ye,s).result,ve=(0,R.action)(K),re=(s,ye)=>s&&{...s,...!ye&&{localeSelectorOptions:void 0},showLocaleSelector:ye},se=(0,R.handle)(null,{[U.LK]:J,[U.LM]:J,[U.cF]:q,[K]:re})},53166(tt,Le,c){"use strict";c.d(Le,{A:()=>Ie,R:()=>X});var R=c(12100),U=c(81783),B=c.n(U),K=c(9391),J=c.n(K),q=c(7334),ve=c.n(q);const se=J()(2,_=>ve()((0,R.error)(_),(0,R.action)(_)));var s=c(13578);const ye="rise/learningPathUpNext/FETCH_LP_UP_NEXT",be="rise/learningPathUpNext/FETCH_LP_UP_NEXT_PENDING",ae={isPending:!1,isSuccess:!1,learningPathComplete:!1,nextCourse:{}},le=_=>!("id"in _),Y=(_,V)=>{const te=le(V);return{..._,isPending:!1,isSuccess:!0,learningPathComplete:te,lpHasFailedQuiz:V.lpHasFailedQuiz,nextCourse:te?{}:V}},Ce=_=>({..._,isPending:!0}),Ie=(0,R.handle)(ae,{[ye]:(0,R.onSuccess)(Y),[be]:Ce}),X=_=>[(0,R.action)(be),se(ye)(B().fromPromise(s.RR)(_))]},84098(tt,Le,c){"use strict";c.d(Le,{O:()=>U});const U=(B=>`rise/partnerContent/${B}`)("SET_ALL_PARTNER_CONTENT")},91541(tt,Le,c){"use strict";c.d(Le,{_q:()=>B,nF:()=>J,pp:()=>q,ut:()=>K});var R=c(12100);const U=ve=>`rise/rise-com/${ve}`,B=U("FAVORITE_ADDED"),K=U("FAVORITE_REMOVED"),J=()=>(0,R.action)(B,void 0),q=()=>(0,R.action)(K,void 0)},18235(tt,Le,c){"use strict";c.d(Le,{Ay:()=>Y,D2:()=>V,NM:()=>z,Se:()=>Ie,gA:()=>_,ts:()=>X,u:()=>te});var R=c(12100);const U="rise/search/RESET_SEARCH",B="rise/search/SET_SEARCH_ACTIVE",K="rise/search/SET_SEARCH_ACTIVE_LESSONS",J="rise/search/SET_SEARCH_TRANSLATIONS",q="rise/search/SET_SEARCH_LESSONS",ve="rise/search/SET_SEARCH_TERM",re={active:!1,activeLessons:[],translations:{},lessons:[],term:null},se=(ue,me)=>me?{...re,active:ue.active}:ue,s=(ue,me)=>({...ue,active:me}),ye=(ue,me)=>({...ue,activeLessons:me}),be=(ue,me)=>({...ue,translations:me}),ae=(ue,me)=>({...ue,lessons:me}),le=(ue,me)=>({...ue,term:me}),Y=(0,R.handle)(re,{[U]:se,[B]:s,[K]:ye,[J]:be,[q]:ae,[ve]:le}),Ce=ue=>(0,R.action)(ue),Ie=Ce(U),X=Ce(B),_=Ce(K),V=Ce(J),te=Ce(q),z=Ce(ve)},23077(tt,Le,c){"use strict";c.d(Le,{Ay:()=>se,pb:()=>s,xi:()=>ye});var R=c(12100);const U=be=>`rise/sessionPreferences/${be}`,B=U("LOAD_SESSION_PREFERENCES"),K=U("SET_PREFERS_KEYBOARD_NAVIGATION"),J=U("SET_STARTING_COURSE_LESSON_SELECTED"),q={prefersKeyboardNavigation:!1,startedCourseWithLessonSelected:!1},ve=(be,ae)=>({...be,prefersKeyboardNavigation:ae}),re=(be,ae)=>({...be,startedCourseWithLessonSelected:ae}),se=(0,R.handle)(q,{[B]:(be,ae)=>({...be,...ae}),[K]:ve,[J]:re}),s=()=>(0,R.action)(B,null),ye=(0,R.action)(K)},70695(tt,Le,c){"use strict";c.d(Le,{Ay:()=>q,ty:()=>re,zP:()=>ve});var R=c(76906),U=c(12100);const B="rise/slidesUI/SET_SLIDE_DIRECTION",K="rise/slidesUI/SET_EXITING_SLIDE_OFFSET",J={slideDirection:R.fY.UP,exitingSlideOffset:0},q=(0,U.handle)(J,{[B]:(se,s)=>({...se,slideDirection:s}),[K]:(se,s)=>({...se,exitingSlideOffset:s})}),ve=(0,U.action)(B),re=(0,U.action)(K)},40069(tt,Le,c){"use strict";c.d(Le,{$2:()=>s,$d:()=>be,Ay:()=>q,LW:()=>re,cX:()=>ye,m7:()=>ve,zq:()=>se});var R=c(12100);const B=(ae=>`rise/status/${ae}`)("SET_LOADED"),K=(ae,le)=>({...ae,...le}),J={connection:"connected",courseLoaded:!1,fontsLoaded:!1,notFound:!1,partnerContentLoaded:!1},q=(0,R.handle)(J,{[B]:K}),ve=(ae=!1)=>(0,R.action)(B,{fontsLoaded:ae}),re=(ae=!1)=>(0,R.action)(B,{courseLoaded:ae}),se=(ae="connected")=>(0,R.action)(B,{connection:ae}),s=(ae=!1)=>(0,R.action)(B,{coverLoaded:ae}),ye=(ae=!1)=>(0,R.action)(B,{notFound:ae}),be=(ae=!1)=>(0,R.action)(B,{partnerContentLoaded:ae})},10605(tt,Le,c){"use strict";c.d(Le,{A:()=>J,s:()=>q});var R=c(12100);const B=(ve=>`rise/ui/${ve}`)("SET_SKIP_TO_NAV_BUTTON_UI"),K={skipToNavButton:null},J=(0,R.handle)(K,{[B]:(ve,re)=>({...ve,skipToNavButton:re})}),q=(0,R.action)(B)},35873(tt,Le,c){"use strict";c.r(Le),c.d(Le,{selectLabelsMap:()=>B,useLabelsMap:()=>K});var R=c(82486),U=c(47543);function B(J,q){return q?.l10n?.localeLabelSets?.[J]?.labels||q?.courseLabels?.labels}function K(){const{currentLocale:J}=(0,U.nY)();return(0,R.d4)(q=>B(J,q))}},82486(tt,Le,c){"use strict";c.d(Le,{Kq:()=>ge,Ng:()=>Me,JD:()=>Ve,M_:()=>pe,wA:()=>ke,d4:()=>Ye});var R=c(7927),U=c(11892),B=c(12100);const K=(Je,{labelSet:Ze})=>({...Je,...Ze}),J=(0,B.handle)({},{[U.LK]:K});var q=c(66350),ve=c(74724),re=c(39801);const se={isPreview:window.viewType==="preview"},s=((Je=se)=>Je);var ye=c(29046),be=c(53166),ae=c(84098);const le=(Je,Ze)=>{const gt=Je.content.findIndex(Re=>Re.id===Ze.id),et=[...Je.content];return gt===-1?et.push(Ze):et[gt]=Ze,{...Je,content:et}},Y=(Je,Ze)=>Ze.reduce(le,Je),Ce={[ae.O]:Y},Ie=(0,B.handle)({content:[]},Ce);var X=c(18235),_=c(23077),V=c(70695),te=c(40069),z=c(22562);const ue={audioPlayerIdOpen:null,focusing:!1,refocusTarget:null,transcriptMedia:null},me=(Je,Ze)=>Ze.audioPlayerId?{...Je,audioPlayerIdOpen:Ze.audioPlayerId,focusing:Ze.focusing??!1,refocusTarget:Ze.refocusTarget??null,transcriptMedia:Ze.transcriptMedia??null}:Je,je=()=>({audioPlayerIdOpen:null,focusing:!1,refocusTarget:null,transcriptMedia:null}),Se=(Je,Ze)=>Je.audioPlayerIdOpen?Ze.audioPlayerId?{...Je,audioPlayerIdOpen:Ze.audioPlayerId,focusing:Ze.focusing??Je.focusing,transcriptMedia:Ze.transcriptMedia??Je.transcriptMedia}:je():Je,fe={[z.l6]:me,[z.ju]:je,[z.Y8]:Se},h=(0,B.handle)(ue,fe);var ne=c(10605),ie=c(7507);const Q=ie.BI?{learningPathUpNext:be.A}:{},Fe=(0,R.HY)({course:U.Ay,courseLabels:J,courseProgress:q.A,features:ve.A,fonts:re.A,global:s,l10n:ye.Ay,partnerContent:Ie,search:X.Ay,sessionPreferences:_.Ay,slidesUI:V.Ay,status:te.Ay,transcriptPanel:h,ui:ne.A,...Q}),{Provider:ge,connect:Me,dispatch:Ve,store:pe,useDispatch:ke,useSelector:Ye}=(0,R.Nv)(Fe)},33532(tt,Le,c){"use strict";c.d(Le,{K:()=>fe,c:()=>Se});var R=c(76906);const U={padding:"medium",alignment:"left"},B={embed:{aspectRatio:"16:9"},video:{},labeledgraphic:{hotspotStyle:"numbers"},process:{navigation:"stepped"},sorting:{feedback:"immediate"},timeline:{orientation:"vertical"},paragraph:{fontSize:"medium"}},K=(h,ne=0)=>`item_${h}_${ne}`,J=(h,ne)=>[{id:K(`${ne}_placeholder`,0),placeholder:!0,type:h,title:`Add ${h} content`}],q=h=>({...U,...B[h]??{}}),ve=h=>typeof h=="string"?h.replace(/<p><br><\/p>/g,""):h,re=h=>h.map(ne=>{if(ne&&typeof ne=="object"&&!Array.isArray(ne)){const ie={};for(const[Q,Fe]of Object.entries(ne))ie[Q]=ve(Fe);return ie}return ne}),se=h=>["Introduction","Summary"].map((ne,ie)=>({id:K(`${h}_process`,ie),title:ne,type:ne.toLowerCase(),description:null,isHidden:!0})),s=(h,ne)=>[{id:K(`${ne}_text`,0),paragraph:h}],ye=(h,ne)=>[...se(ne),...h],be=(h,ne)=>[{id:K(`${ne}_video`,0),caption:"",media:h}],ae=(h=[],ne)=>({family:"multimedia",id:K(`${ne}_embed`,0),items:h.length?h:J("embed",ne),media:{},settings:q("embed"),type:"multimedia",variant:"embed"}),le=(h,ne,ie)=>({family:"interactive-fullscreen",id:K(`${ie}_labeledgraphic`,0),items:h,media:ne,settings:q("labeledgraphic"),type:"interactive",variant:"labeledgraphic"}),Y=(h,ne)=>({family:"interactive-fullscreen",id:K(`${ne}_process`,0),items:re(h),media:{},settings:q("process"),type:"interactive",variant:"process"}),Ce=({items:h,piles:ne},ie)=>({family:"interactive-fullscreen",id:K(`${ie}_sorting`,0),items:h,media:{},piles:ne,settings:q("sorting"),type:"interactive",variant:"sorting"}),Ie=(h,ne)=>({family:"text",id:K(`${ne}_text`,0),items:re(h),settings:q("paragraph"),type:"text",variant:"paragraph"}),X=(h,ne)=>({family:"interactive-fullscreen",id:K(`${ne}_timeline`,0),items:h,media:{},settings:q("timeline"),type:"interactive",variant:"timeline"}),_=(h,ne={},ie)=>({family:"multimedia",id:K(`${ie}_video`,0),items:h?.video?be(h,ie):J("video",ie),media:{},settings:{...ne,...q("video")},type:"multimedia",variant:"video"}),V=({items:h=[]},ne)=>ae(h.map(({icon:ie,...Q})=>Q),ne),te=({items:h=[],media:ne},ie)=>le(h.map(({hasMedia:Q,...Fe})=>Fe),ne,ie),z=({items:h=[]},ne)=>{const ie=h.map(Q=>({...Q,isHidden:!1,type:"step"}));return Y(ye(ie,ne),ne)},ue=({items:h=[]},ne)=>X(h.map(({linePosition:ie,...Q})=>Q),ne),me=(h,ne)=>Ie(s(h,ne),ne),je=(h,ne)=>{switch(h.type){case"embed":return V(h,ne);case"map":return te(h,ne);case"process":return z(h,ne);case"sorting":return Ce(h,ne);case"timeline":return ue(h,ne);case"screencast":case"slidecast":case"video":return _(h.media,h.settings,ne);default:throw new Error(`Unknown legacy lesson type: ${h.type}`)}},Se=h=>typeof h?.type=="string"&&R.fT.includes(h.type),fe=h=>{if(!Se(h))return h;const ne=String(h.id),ie={description:"",icon:"Article",type:"blocks"},Q=[je(h,ne)],Fe=typeof h.description=="string"?h.description.trim():"";return Fe&&Q.unshift(me(Fe,`${ne}_desc`)),{...h,...ie,items:Q,media:{}}}},88498(tt,Le,c){"use strict";c.d(Le,{Fc:()=>Qe,hd:()=>qn,qO:()=>Te,O9:()=>eo,X_:()=>vr,jr:()=>to,_$:()=>Sl,JK:()=>Wa,GJ:()=>Tl,y4:()=>Nt,As:()=>gr,Hm:()=>Il,Wk:()=>ea,og:()=>Cr,GS:()=>$a,xr:()=>gn,IV:()=>oc,bb:()=>n0,o1:()=>ta,wW:()=>r0,vb:()=>bs,aM:()=>is,C2:()=>ns,xS:()=>o0,no:()=>Nl,m5:()=>rc});var R=c(23655),U=c(16323),B=c(44914),K=c.n(B),J=c(31735),q=c.n(J),ve=c(49034),re=c.n(ve),se=c(95353),s=c.n(se),ye=c(97285),be=c.n(ye),ae=c(19892),le=c.n(ae),Y=c(65301),Ce=c.n(Y),Ie=c(16997),X=c.n(Ie),_=c(5651),V=c.n(_),te=c(73333),z=c.n(te),ue=c(37262),me=c.n(ue),je=c(58862),Se=c.n(je),fe=c(77592),h=c.n(fe),ne=c(98757),ie=c.n(ne);const Q=de=>q()(U.QZ,de),Fe=de=>re()({[de]:U.QZ}),ge=({startTime:de,stopTime:He})=>He-de,Me=de=>{switch(de.type){case"FILL_IN_THE_BLANK":return Re(de);case"MATCHING":return Ks(de);default:return Ye(de)}},Ve=de=>{switch(de.type){case"FILL_IN_THE_BLANK":return Re(de);case"MATCHING":return Ks(de);case"MULTIPLE_CHOICE":return ut(de);case"MULTIPLE_RESPONSE":return qe(de);default:return ut(de)}},pe=({isUnfinished:de,item:He,itemProgress:dt})=>{switch(He.type){case"FILL_IN_THE_BLANK":return _e(de)(dt);case"MATCHING":return _n(He,de)(dt);case"MULTIPLE_CHOICE":return ft(He,de)(dt);case"MULTIPLE_RESPONSE":return Gt(He,de)(dt);default:return ft(He,de)(dt)}},ke=de=>[de],Ye=de=>{const He=de.answers||[];if(de.shuffledAnswerIndices&&Array.isArray(de.shuffledAnswerIndices)){const dt=[];return He.forEach((Tt,cs)=>{const Ss=de.shuffledAnswerIndices[cs];dt[Ss]=Tt}),dt.map(Fe("title"))}return He.map(Fe("title"))},Je=Q(Se()("id")),Ze=Q(Se()("title")),gt=de=>He=>s()(h()("id",He),Ye(de)),et=de=>le()(z())(Ye(de)),Re=q()(me()("title"),Ye),_e=de=>Ce()(K()(de),K()(""),Q(Se()("text"))),ut=de=>q()(gt(de),Se()("correct"))(de),ft=(de,He)=>Ce()(K()(He),K()([]),dt=>{const Tt=Se()("selectedIndex",dt);return Tt===void 0?[]:ke(et(de)(Tt))}),qe=de=>q()(be(),X()(gt(de)),Se()("corrects"))(de),Gt=(de,He)=>Ce()(K()(He),K()([]),dt=>{const Tt=Se()("selectedIndices",dt)||[];return be()(Tt.map(cs=>ke(et(de)(cs))))}),Z=({sourceId:de,sourceTitle:He,targetId:dt,targetTitle:Tt})=>({source:{id:`source_${de}`,title:He},target:{id:`target_${dt}`,title:Tt}}),nt=Q(Se()("matchTitle")),us=de=>{const He=Je(de);return Z({sourceId:He,sourceTitle:Ze(de),targetId:He,targetTitle:nt(de)})},ze=de=>(He,dt)=>{const Tt=Ye(de),cs=Tt.find(Yo=>Yo.id===dt),Ss=Tt.find(Yo=>Yo.id===He);return Z({sourceId:Je(cs),sourceTitle:Ze(cs),targetId:Je(Ss),targetTitle:nt(Ss)})},Ks=q()(X()(us),Ye),_n=(de,He)=>Ce()(K()(He),K()([]),q()(ie(),V()(ze(de)),Se()("matches")));var Gn=c(42662),Ge=c(78638),an=c(5233),Qs=c(63230),Zs=c(7507),jn=c(6898),zr=c(50283),Kn=c.n(zr);const At=de=>de!==void 0,as=Kn()(At,q()(JSON.parse,jn.Base64.decode)),mo=(de,He)=>window.courseData?de(window.courseData):window.course?{course:de(window.course),media:[]}:He;var po=c(54811),A=c.n(po),bt=c(45976),St=c.n(bt),Qn=c(2396),Qt,fo;const kn=`${(0,Zs._$)("RBC_URI")}/api/partner_content`,Go=null,Zn=A()(`${kn}/`),Ys={transformRequest:[(de,He)=>(He.Authorization=`Bearer ${(0,Qn.gf)()}`,de)],headers:{"Content-Type":"application/json"}},Ue=()=>fo({...Ys,url:Go}).toPromise().then(Qt(["data","types"])),yt=de=>fo({...Ys,url:Zn(de)}).toPromise().then(Qt(["data","content"])),Zt=de=>(0,Qn.Em)({method:"POST",url:kn,data:JSON.stringify({ids:de}),...Ys}).map(St()(["data","content"]));var Hs=c(36087),Ot=c.n(Hs),Lt=c(98283),vo=c.n(Lt);const lr=(0,Zs._$)("SERVICE_ENV")==="prod",cn=lr?"com":"zone",$r=Ot()(JSON.stringify,vo()(new RegExp(`https://images.riseusercontent.${cn}/`,"g"),`${(0,Zs._$)("IMAGES_URI")}/`),vo()(new RegExp(`https://riseusercontent.${cn}/`,"g"),`${(0,Zs._$)("CDN_USER_CONTENT_URI")}/`),vo()(new RegExp(`https://video.rise.${cn}/`,"g"),`https://video.riseusercontent.${cn}/`),Kn()(K()(!lr),vo()(new RegExp("https://video.rise.com/","g"),"https://video.riseusercontent.zone/")),JSON.parse);var ka=c(11253),Ll=c.n(ka),$i=c(1404),dr=c.n($i),Wi=c(88747),_i=c.n(Wi),Wr=c(54425),_r=c.n(Wr),ot=c(17193),lt=c.n(ot),Ls=c(84134),go=c.n(Ls),Gi=c(5832),Ko=c.n(Gi),As=c(2639),Gr=c.n(As),Fs=c(79443),ur=c.n(Fs),Qo=c(3770),Zo=c.n(Qo),ln=c(51335),Aa=c.n(ln),Yn=c(12843),Co=c.n(Yn),hs=c(97110),xo=c.n(hs),hr=c(57819),Ra=c.n(hr),vs=c(81619),Pa=c.n(vs),An=c(15509),vn=c.n(An);const Xt=de=>!!de,mr={[Ge.En]:["activeIndex",lt()],[Ge.Ay]:["audioVideoPlayhead",Number],[Ge.l7]:["isComplete",Xt],[Ge.Ko]:["correctlyAnswered",lt()],[Ge.WY]:["percentComplete",lt()],[Ge.sZ]:["retryAttempts",lt()],[Ge.jw]:["score",lt()],[Ge.eZ]:["currentTime",lt()],[Ge.Ze]:["percentViewed",lt()],[Ge.mj]:["reportResults",lt()],[Ge.p3]:["passed",lt()],[Ge.ft]:["passingScore",lt()],[Ge.pd]:["questionsDrawn",lt()],[Ge.ce]:["questionList",X()(X()(lt()))],[Ge.M$]:["timeRemaining",Number]},Rt=de=>(He,dt)=>dr()([_r()(mr[dt])],ur()(mr[dt])(He),de),wa=de=>(He,dt)=>{let Tt=ur()(Ma[dt])(He);return dt===Ge.fd&&(Tt=Tt(Se()("items",de))),{[_r()(Ma[dt])]:Tt}},Xn=de=>He=>{const dt=de?.[He.index];return vn()(()=>Ko()(dt),()=>q()(Aa()(He),Co(),ie(),V()(wa(He)))(dt))(He)},Kr=de=>X()(Xn(de)),Ct=q()(Co(),ie(),V()(wa(null))),Ki=de=>He=>{const dt=Se()(Ge.fd,de),Tt=Se()("items",He);return q()(Kn()(()=>Ll()([_i()(Ge.ce),h()(Ge.pd,!0),()=>!Ko()(dt)])(de),cs=>{const Ss=X()(Ct,dt);return dr()("originalItemProgress",Ss,cs)}),Aa()(He),vn()(()=>go()(dt),Pa()(Zo()("items"),Kr(dt)(Tt))),Co(),ie(),V()(Rt(He)))(xo()(Gr()(mr),de))};function Ft(de,He){const dt=Se()("lessons",He),Tt=cs=>{const Ss=Se()(cs.index,dt);return vn()(()=>Ko()(Ss),Ki(Ss))(cs)};return vn()(()=>go()(dt),q()(dr()("percentComplete",Ra()(0,Ge.WY,He)),re()({lessons:X()(Tt)})))(de)}const Ma={[Ge.Ay]:["audioVideoPlayhead",Number],[Ge.Ko]:["correctlyAnswered",lt()],[Ge.l7]:["isComplete",Xt],[Ge.w5]:["isCorrect",Xt],[Ge.Wj]:["isViewed",Xt],[Ge.fd]:["items",Kr],[Ge.BW]:["percentViewed",lt()],[Ge.qX]:["matches",lt()],[Ge.sZ]:["retryAttemptCount",Number],[Ge.Pz]:["selectedIndex",lt()],[Ge.Ig]:["selectedIndices",lt()],[Ge.JG]:["shuffledAnswerIndices",lt()],[Ge.S$]:["text",lt()]};var Qi=c(8486),Oa=c.n(Qi),Da=c(41211),Qr=c.n(Da),Zi=c(95932),Zr=c.n(Zi);const Yr={activeIndex:[Ge.En,lt()],audioVideoPlayhead:[Ge.Ay,Number],correctlyAnswered:[Ge.Ko,lt()],currentTime:[Ge.eZ,lt()],isComplete:[Ge.l7,Number],passingScore:[Ge.ft,lt()],percentComplete:[Ge.WY,lt()],percentViewed:[Ge.Ze,lt()],retryAttempts:[Ge.sZ,lt()],score:[Ge.jw,lt()],questionsDrawn:[Ge.pd,lt()],questionList:[Ge.ce,X()(X()(lt()))],reportResults:[Ge.mj,lt()],passed:[Ge.p3,lt()],timeRemaining:[Ge.M$,Number]},Ba=(de,He)=>({[_r()(pr[He])]:ur()(pr[He])(de)}),Xr=de=>q()(vn()(go(),Qr()(Se()("index",de))),Co(),ie(),V()(Ba))(Zr()(go(),xo()(Gr()(pr),de))),Ha=q()(Co(),ie(),X()(Xr)),_t=(de,He)=>({[_r()(Yr[He])]:ur()(Yr[He])(de)});function wt(de){const He=Se()("items",de),dt=Se()("index",de),Tt=vn()(Oa()(Ko(),go()),Ha)(He);return q()(Qr()(dt),vn()(()=>Oa()(Ko(),go())(Tt),dr()(Ge.fd,Tt)),Co(),ie(),V()(_t))(xo()(Gr()(Yr),de))}const Yi=q()(Qr()(Ge.WY),Ra()(0,"percentComplete")),pr={audioVideoPlayhead:[Ge.Ay,Number],correctlyAnswered:[Ge.Ko,lt()],isComplete:[Ge.l7,Number],isCorrect:[Ge.w5,Number],isViewed:[Ge.Wj,Number],items:[Ge.fd,Ha],matches:[Ge.qX,lt()],percentViewed:[Ge.BW,lt()],retryAttemptCount:[Ge.sZ,Number],selectedIndex:[Ge.Pz,lt()],selectedIndices:[Ge.Ig,X()(Number)],shuffledAnswerIndices:[Ge.JG,X()(Number)],text:[Ge.S$,lt()]},Jn=de=>window.env?.[de],Fa=de=>`${Jn("CDN_USER_CONTENT_URI")}/${de}`,fr=()=>!!window.shareId,Jr=()=>!!window.contentId,Va=()=>!!window.snapshotId,za=()=>!!window.shareId&&!!window.hasPassword,Xi=Jr()&&!Zs.BI?$r:de=>de,tc={fetch:()=>{if(Ua.isExport||window.courseData||window.course)return mo(as,{});{const de=()=>window.shareId?`${Jn("RISE_RUNTIME_URI")}/boot/share/${window.shareId}`:Jr()?`${Jn("RISE_RUNTIME_URI")}/boot/businessContent/${window.contentId}`:Va()?`${Jn("RISE_RUNTIME_URI")}/boot/snapshot/${window.snapshotId}`:`${Jn("RISE_RUNTIME_URI")}/boot/${window.courseId}`;return(0,Gn.Em)({method:"GET",url:de(),json:!0,withCredentials:!0,timeout:3e4}).then(Gn.lZ).then(He=>typeof He=="object"?He:as(He)).then(Xi)}},fetchPartnerContent:de=>Ua.isExport||window.partnerContent?window.partnerContent.content:Zt(de).toPromise(),getEnv:Jn,isPasswordProtected:za,isShare:fr,isSnapshotPreview:Va,resolvePath:Fa,verifySharePassword:de=>(0,Gn.Em)({method:"POST",url:`${Jn("RISE_RUNTIME_URI")}/password`,data:{shareId:window.shareId,password:de},json:!0}).then(He=>He.body)},qr=(de,{id:He,type:dt,...Tt})=>dt==="quiz"?(0,Qs.oO)(de,{id:He,...Tt}):(0,an.GL)(de,He),sc=(de,He)=>de+((He||{})[Ge.l7]||0),nc=(de,He)=>(dt,{id:Tt,type:cs,...Ss})=>He.lessons[Tt]?{...dt,...de(qr(He,{id:Tt,type:cs,...Ss}).lessons[Tt])}:dt;function El(de,He,dt){const Tt=He.reduce(nc(de,dt),{}),cs=Object.keys(dt.lessons||{}).length,Ss=Object.values(Tt).reduce(sc,0),Yo=Math.round(Ss/cs*100);return{lessons:Tt,p:Yo}}window.Rise=Object.assign(window.Rise||{},{completeLessons:El,decodeCourseProgress:Ft,encodeCourseProgress:Yi,encodeLessonProgress:wt});const Ua={...tc,...window.Runtime??{}},at=Ua,Sl=de=>window.env?.[de],Tl=de=>at.getMasteryScore!=null?at.getMasteryScore(de):de.passingScore,oc=de=>{if(at.onCreateHistory!=null)return at.onCreateHistory(de)},qn=(de={})=>at.fetch!=null?Promise.resolve(at.fetch()):Promise.resolve(de),Te=(de=[])=>{if(at.fetchPartnerContent!=null)return at.fetchPartnerContent(de)},Qe=de=>{if(at.bookmark!=null)return at.bookmark(de)},Nt=de=>at.getProgress!=null?at.getProgress(de):de,is=de=>at.setLessonComplete!=null?at.setLessonComplete(de):de,ns=de=>at.setLessonProgress!=null?at.setLessonProgress(de):de,bs=(de,He)=>at.setCourseProgress!=null?at.setCourseProgress(de,He):de,eo=de=>{if(at.finish!=null)return at.finish(de)},vr=(de,He,dt,Tt)=>{at.finishQuiz!=null&&at.finishQuiz(de,He,dt,Tt)},to=(de,He,dt,Tt)=>{at.finishStoryline!=null&&at.finishStoryline(de,He,dt,Tt)},gr=()=>at.isComplete!=null?at.isComplete():null,Il=()=>at.isExport!=null?at.isExport():!1;function ea(){if(at.isExport!=null){const de=window.partnerContent?.content;return at.isExport()&&!!de}return!1}const $a=()=>at.isShare!=null?at.isShare():!1,gn=()=>at.isSnapshotPreview!=null?at.isSnapshotPreview():!1,Cr=()=>at.isPasswordProtected!=null?at.isPasswordProtected():!1,ta=de=>{const He=de||"";return at.resolvePath!=null?He.startsWith("http")||He.startsWith("data:")||He.startsWith("//")?He:at.resolvePath(He):He.startsWith("data:")||He.startsWith("http")||He.startsWith("//")?He:`/${He}`},rc=de=>at.verifySharePassword!=null?at.verifySharePassword(de):Promise.resolve({isValid:!0}),n0=de=>{if(at.reportAnswer!=null){const{id:He,isCorrect:dt,isUnfinished:Tt=!1,item:cs,itemProgress:Ss,duration:Yo,retryAttempts:kl,title:ac}=de,{id:Al,title:br,type:a0}=cs;return at.reportAnswer({id:He,type:a0,isCorrect:dt,itemId:Al,questionTitle:(0,U.QZ)(br),quizTitle:(0,U.QZ)(ac),retryAttempts:kl,answers:Me(cs),correctResponse:Ve(cs),response:pe({isUnfinished:Tt,item:cs,itemProgress:Ss}),isUnfinished:Tt,latency:ge(Yo)})}return!1},Nl=de=>{if(at.startLesson!=null)return at.startLesson(de)},Wa=()=>{if(at.getLocale!=null)return at.getLocale()},o0=de=>{if(at.setLocale!=null)return at.setLocale(de)},{browser:jl,os:bo}=new R.UAParser(window.navigator.userAgent).getResult(),Es=[jl.name,jl.version].filter(Boolean).join(" "),xr=[bo.name,bo.version].filter(Boolean).join(" "),r0=de=>{if(at.sendTelemetry!=null)return at.sendTelemetry({...de,browser:Es,os:xr})}},22562(tt,Le,c){"use strict";c.d(Le,{Y8:()=>q,ju:()=>J,l6:()=>K});var R=c(54811),U=c.n(R);const B=U()("rise/transcriptPanel/"),K=B("OPEN_TRANSCRIPT_PANEL"),J=B("CLOSE_TRANSCRIPT_PANEL"),q=B("UPDATE_TRANSCRIPT_PANEL")},68902(tt,Le,c){"use strict";c.d(Le,{Z:()=>K});var R=c(26372),U=c(94036),B=c(78933);function K(){const J=(0,U.Zp)(),q=(0,U.zy)();return(0,R.useCallback)((ve,re)=>{if(typeof ve=="number")return J(ve);const se=(0,B.B)(ve,q),s=se.pathname+(se.search?`?${se.search}`:"")+(se.hash||"");return J(s,re)},[J,q])}},57898(tt,Le,c){"use strict";c.d(Le,{Dh:()=>K,HH:()=>ye,S:()=>s,UR:()=>J,Zn:()=>_,cP:()=>Ie,fF:()=>ae,pP:()=>Ce,uQ:()=>be,vC:()=>X,xp:()=>B});var R=c(66015),U=c(91485);const B=(V,te,z)=>(0,U.uW)(V)&&te?z?.[te]?.[V.l10nId]:void 0,K=(V,te,z,ue)=>{if(!(0,U.uW)(V))return V;if(!te||!z||!ue)return;const me=B(V,te,ue);if(me!==void 0)return me;const je=B(V,z,ue);if(je!==void 0)return je;const Se=le(V,ue);return Se.length>0?Se[0].value:void 0},J=(V,te,z,ue)=>!te||!z||!ue?V:(0,R.v9)(V).reduce((me,{l10nId:je,path:Se})=>{const fe=K({l10nId:je},te,z,ue),h=(0,R.re)(Se,fe,me);return h.type==="accepted"?h.result:me},V),q=(V,te,z)=>J(V,te,ye(z),ae(z)),ve=(V,te,z)=>K(V,te,ye(z),ae(z)),re=(V,te,z)=>B(V,te,ae(z));function se(V,te){return te?.find(z=>z.locale===V)}function s(V){return V?.l10n?.locales??[]}function ye(V){return V?.l10n?.defaultLocale}function be(V,te){const z=ye(te);return!!(V&&z&&V!==z)}function ae(V){return V?.l10n?.translations??{}}function le(V,te){return(0,U.uW)(V)?Object.keys(te).flatMap(z=>{const ue=B(V,z,te);return ue?{locale:z,value:ue}:[]}):[]}const Y=(V,te)=>le(V,ae(te)),Ce=V=>(0,U.uW)(V)?V.l10nId:void 0;function Ie(V){return V?.l10n?.localeSelectorOptions}function X(V){return V?.l10n?.languageCodeMetadata}function _(V){return V?.l10n?.showLocaleSelector}},31155(tt,Le,c){"use strict";c.d(Le,{DB:()=>je,H5:()=>me,ME:()=>V,bX:()=>Se,dE:()=>te,ny:()=>ue,xm:()=>_});var R=c(88747),U=c.n(R),B=c(64943),K=c.n(B),J=c(7507);const q=(0,J._$)("CDN_USER_CONTENT_URI"),ve=(0,J._$)("CDN_URI"),re=U()("useCrushedKey"),se=(0,J._$)("IMAGES_URI"),s=K()(/-stock[-_]image.jpg/),ye=(0,J._$)("RBC_IMAGES_URI"),be=(0,J._$)("ASSETS_URI"),ae=K()(new RegExp(`^${q}/review`)),le=(0,J._$)("CDN_US_URI"),Y=fe=>{const{crushedKey:h,key:ne,useCrushedKey:ie,src:Q}=fe;return re(fe)?ie&&h?(0,J.o1)(h):(0,J.o1)(ne):(0,J.o1)(Q)},Ce=fe=>`${q}/${fe}`,Ie=fe=>!fe||!fe.key?"":`${ye}/b:fff,f:jpg,s:cover,w:550,h:296/${fe.key}`,X=fe=>{if(!fe||!fe.key)return"";const{crushedKey:h,key:ne,useCrushedKey:ie}=fe;return re(fe)&&ie?h?`${se}/f:jpg,b:fff,s:cover,w:340/${h}`:"":`${se}/f:jpg,b:fff,s:cover,w:340/${ne}`},_=fe=>{if(!fe||!fe.key)return"";const{crushedKey:h,key:ne,useCrushedKey:ie}=fe;return se?re(fe)&&ie&&h?`${se}/f:png,a:retain,s:cover,t:true,w:340/${h}`:`${se}/f:png,a:retain,s:cover,t:true,w:340/${ne}`:Y(fe)},V=fe=>{if(!fe||!fe.key)return"";const{crushedKey:h,key:ne,useCrushedKey:ie,sourcedFrom:Q}=fe;if(!se)return Y(fe);const Fe=Q==="AI",ge=Q==="LIBRARY";return s(ne)||Fe||ge?`${se}/f:jpg,a:retain,b:fff,w:1680,q:90/${ne}`:re(fe)?ie&&h?`${q}/${h}`:`${q}/${ne}`:ae(fe.src)?fe.src:`${se}/f:jpg|png,a:retain,b:fff/${ne}`},te=(fe,h="src")=>{const{key:ne,src:ie,thumbnail:Q,thumbnailKey:Fe}=fe,ge=q?`${q}/${ne}`:Y({key:ne,src:ie}),Me=q?`${q}/${Fe}`:Y({key:Fe,src:Q});return h==="src"?ge:Me},z=fe=>{if(!fe||!fe.key)return"";const{crushedKey:h,key:ne,useCrushedKey:ie}=fe;return re(fe)&&ie&&h?`${se}/f:jpg,b:fff,h:100,s:cover,t:true,w:100/${h}`:`${se}/f:jpg,b:fff,h:100,s:cover,t:true,w:100/${ne}`},ue=({height:fe,imageKey:h,width:ne})=>{if(ye){const ie=encodeURIComponent(h);return`${ye}/b:fff,f:jpg,s:cover,w:${ne},h:${fe}/${ie}`}return(0,J.o1)(`partnerContent/${h}`)},me=()=>{const fe=be||se,h="NBIC_logo_light_bulb.png";return fe?`${fe}/f:png,a:retain,s:cover,w:276,h:160/assets/rise/assets/partner-content/${h}`:(0,J.o1)(`partnerContent/${h}`)},je=()=>{const fe="NBIC_logo_blue.svg";return ve?`${ve}/assets/rise/assets/partner-content/${fe}`:(0,J.o1)(`partnerContent/${fe}`)},Se=fe=>{const{key:h,src:ne}=fe;return le?`${le}/${h}`:Y({key:h,src:ne})}},38870(tt,Le,c){"use strict";c.d(Le,{Em:()=>s,Vu:()=>re,on:()=>se,uI:()=>ye,wD:()=>be,xQ:()=>ae});var R=c(78478),U=c(51335),B=c.n(U),K=c(7507),J=c(63557);const q=K.BI?window.env:B()(window.env,{ACCESS_COOKIE_NAME:(0,J.W5)(),REDIRECT_URI:window.location.origin+"/auth-callback"}),ve=(0,R.A)(q),re=ve.closeSession,se=ve.on,s=ve.request,ye=ve.refreshSession,be=ve.resetSession,ae=ve.getAuthorizationUrl,le=ve.fetch},26842(tt,Le,c){"use strict";c.d(Le,{lL:()=>me,t9:()=>Re,XC:()=>Me,xD:()=>et,cP:()=>fe,Wn:()=>h,W8:()=>Q,WA:()=>ge});var R=c(2998),U=c(48831),B=c.n(U),K=c(31735),J=c.n(K),q=c(11748),ve=c.n(q),re=c(21863),se=c.n(re),s=c(12907),ye=c.n(s),be=c(37541),ae=c.n(be),le=c(50283),Y=c.n(le),Ce=c(42900),Ie=c(631),X=c(40313),_=c(8045),V=c(23932);Ie.A.register(X.A),Ie.A.register(_.A);var te;const z="#ff631e";function ue(_e){if(_e==null)return null;try{return(0,V.to)((0,V.qg)(_e),"srgb")}catch{return null}}const me=B()({NEAR_BLACK:null,DARK:null,MED:null,LIGHT:null}),je=[[32,me.NEAR_BLACK],[64,me.DARK],[128,me.MED],[256,me.LIGHT]],Se=_e=>{const ut=ue(_e);if(ut==null)return 0;const[ft,qe,Gt]=ut.coords.map(nt=>nt*255);return .2126*ft+.7152*qe+.0722*Gt},fe=_e=>_e?1-Se(_e)/255>.4:!1,h=_e=>_e?1-Se(_e)/255>.25:!1,ne=_e=>{if(!_e)return null;const ut=parseInt(_e.substr(1),16);return Number.isNaN(ut)?null:ut.toString(16).padStart(6,"0").padStart(7,"#")},ie=(_e,ut)=>{const ft=ne(ut);return!ft||ft.length!==7?_e:ft},Q=ve()((_e,ut)=>{const ft=(0,R.A)(ut).slice(0,3),qe=_e>=0?ft.map(Gt=>(1-_e)*Gt+_e*255):ft.map(Gt=>(1+_e)*Gt);return Fe(qe)}),Fe=(_e=[])=>"#"+_e.slice(0,3).map(ut=>Math.min(255,Math.max(0,Math.round(ut))).toString(16).padStart(2,"0")).join(""),ge=Q(.9),Me=_e=>{const ut=Se(_e);return je.find(([qe])=>qe>ut)?.[1]},Ve=_e=>_e.toString(16).padStart(6,"0").padStart(7,"#"),pe=Y()(ye()(Number),J()(ae(),Ve)),ke=J()(pe,se()(z));function Ye(_e,ut){if(_e==="none"||!_e||!ut)return{};const ft=Je(_e,ut),qe=`${ft.toFixed(2)}:1`;let Gt=!1,Z=!1,nt=!1,us=!1,ze=!1;return ft>=7?(Gt=!0,Z=!0,nt=!0,us=!0,ze=!0):ft>=4.5?(Gt=!0,nt=!0,ze=!0):ft>=3&&(nt=!0,ze=!0),{ratio:qe,bodyTextAA:Gt,bodyTextAAA:Z,largeTextAA:nt,largeTextAAA:us,graphicalUiComponentsAA:ze}}function Je(_e,ut){return(0,V.v2)(ue(_e),ue(ut),"WCAG21")}function Ze(_e){const[ut,ft,qe]=te(_e).slice(0,3).map(gt);return .2126*ut+.7152*ft+.0722*qe}function gt(_e){const ut=_e/255;return ut<=.04045?ut/12.92:((ut+.055)/1.055)**2.4}const et=_e=>Ye("#fff",_e)["bodyTextAA"]?Ce.Em.LIGHT:Ce.Em.DARK,Re={[me.NEAR_BLACK]:Q(.1),[me.DARK]:Q(-.4),[me.MED]:Q(-.2),[me.LIGHT]:Q(.3)}},76906(tt,Le,c){"use strict";c.d(Le,{CY:()=>ae,C_:()=>Q,S6:()=>ie,Yq:()=>je,by:()=>Se,fT:()=>Fe,fY:()=>me,o4:()=>fe,xA:()=>ve,y4:()=>ue,yG:()=>q});var R,U,B=c(48831),K=c.n(B),J=c(63656);const q={validEmail:/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,validIframe:/^<iframe(.*)?\ssrc="(?:(?:(?:https?):)?\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,})).?)(?::\d{2,5})?(?:[/?#]\S*)?"(.*)?><\/iframe>$/,validUrl:/^(?:(?:(?:https?):)?\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,})).?)(?::\d{2,5})?(?:[/?#]\S*)?$/},ve={ARTICLE:"Article",INTERACTION:"Interaction",QUIZ:"Quiz",VIDEO:"Video"},re={EDITOR:1,MANAGER:2,OWNER:3},se={[re.EDITOR]:"Author",[re.MANAGER]:"Admin",[re.OWNER]:"Owner"},s=Object.values(re).map(ge=>({id:ge,title:se[ge]})),ye=({name:ge,isOnePage:Me,outputType:Ve})=>{const pe=Me?U(Ve):null,ke={Admin:pe?`${pe} manager`:"Manager",Author:pe?`${pe} editor`:"Editor",Owner:pe?`${pe} owner`:"Owner"},Ye={Admin:pe?`${pe} manager`:"Course manager",Author:pe?`${pe} collaborator`:"Course collaborator",Owner:pe?`${pe} owner`:"Course owner"};return R?ke[ge]:Ye[ge]},be="questionBanks",ae="2% 0px 2% 0px",le=9,Y=13,Ce=27,Ie=32,X=38,_=40,te=864e5*3,z=100,ue="onePage",me={UP:"up",DOWN:"down"},je={PREVIEW:"preview-lesson"},Se=K()({COMPACT:null,COVER:null,OVERLAY:null,SIDEBAR:null}),fe={DESKTOP:"desktop",TABLET_PORTRAIT:"tablet-portrait",TABLET_LANDSCAPE:"tablet-landscape",MOBILE_PORTRAIT:"mobile-portrait",MOBILE_LANDSCAPE:"mobile-landscape"},h=Object.values(fe),ne={PORTRAIT:"portrait",LANDSCAPE:"landscape"},ie={DARK:"#000",LIGHT:"#fff"},Q={SMALL:{label:"Small",value:1},MEDIUM:{label:"Medium",value:1.5},LARGE:{label:"Large",value:2}},Fe=["embed","map","process","sorting","timeline","video","screencast","slidecast"]},18849(tt,Le,c){"use strict";c.d(Le,{BC:()=>R,QI:()=>B,f5:()=>K,hh:()=>U});const R=re=>re.reduce((se,s,ye)=>("id"in s&&(se[s.id]={id:s.id,index:ye}),se),{}),U=re=>({...re,percentComplete:q({items:re.items,key:"isComplete"})}),B=re=>({...re,percentComplete:q({items:re.items,key:"isComplete"})}),K=re=>({...re,percentViewed:q({items:re.items,key:"isViewed"})});function J({itemId:re,isCorrect:se,progress:s}){const ye={...s,items:{...s.items,[re]:{...s.items?.[re],id:re,index:s.items?.[re]?.index??0,isComplete:se,isViewed:se,...s.items?.[re].isCorrect===void 0?{isCorrect:se}:{}}}};ye.items[re]?.isCorrect===!1&&(ye.lastIncorrectCardId=re);const be=ve(ye),ae=be.percentComplete!==100?B(be):be,le=K(ae);return le.percentComplete===100?{...le,isComplete:!0}:le}function q({items:re,key:se}){const s=re??{},ye=Object.keys(s).length,be=Object.values(s).filter(ae=>ae?.[se]).length;return ye===0?0:Math.round(be/ye*100)}function ve(re){const s=Object.values(re.items||{}).filter(ye=>ye.isCorrect===!0).length;return{...re,correctlyAnswered:s}}},24177(tt,Le,c){"use strict";c.d(Le,{L:()=>U.L,y:()=>R.yf});var R=c(46822),U=c(83869),B=c(7507);const K="datadoghq.com",J=(0,B._$)("SERVICE_ENV"),q=(0,B._$)("RISE_FRONTEND_SHA"),ve=(0,B._$)("RISE_FRONTEND_LOCAL_DEV")==="true"||window.location.hostname==="rise.dev.articulate.zone",re=window.Cypress!=null,se=B.BI?[/https:\/\/.*(\.dev)?\.rise\.(com|zone).*/,location.origin]:[/https:\/\/(rise(\.dev)?|360)\.articulate\.(com|zone).*/]},57893(tt,Le,c){"use strict";c.d(Le,{$t:()=>ae,NO:()=>s,Pf:()=>ye,WE:()=>be,c:()=>re});var R=c(23655),U=c.n(R);const B=()=>{if(!navigator.userAgent)return"unknown";const Y=new R.UAParser(navigator.userAgent).getResult();return Y.device?.model?Y.device.model:Y.os?.name?Y.os.name:Y.browser?.name?Y.browser.name:"unknown"},K=()=>{if(!navigator.userAgent)return"unknown";const Y=new R.UAParser(navigator.userAgent).getResult();return Y.device?.model&&Y.os?.version?Y.os.version:Y.browser?.version?Y.browser.version:"unknown"},J=()=>{if(!navigator.userAgent)return"desktop";const Y=new R.UAParser(navigator.userAgent).getResult();return Y.device?.type==="mobile"?"mobile":Y.device?.type==="tablet"?"tablet":"desktop"},q=()=>{if(!navigator.userAgent)return"unknown";const Y=new R.UAParser(navigator.userAgent).getResult();if(Y.device?.vendor)return Y.device.vendor;if(Y.os?.name)switch(Y.os.name){case"Mac OS":case"iOS":return"Apple";case"Windows":return"Microsoft";case"Android":return"Google"}return"unknown"},ve=()=>{if(!navigator.userAgent)return"unknown";const Y=new R.UAParser(navigator.userAgent).getResult();return Y.device?.model?Y.device.model:"unknown"},re=()=>{if(!navigator.userAgent)return"browser";const Y=new R.UAParser(navigator.userAgent).getResult();return Y.device?.type==="mobile"?"mobile":Y.device?.type==="tablet"?"tablet":"browser"};function se(le){return"userAgentData"in le}const s=()=>{if(se(navigator))return{platform:navigator.userAgentData.platform,mobile:navigator.userAgentData.mobile,brands:navigator.userAgentData.brands}},ye=()=>({name:B(),version:K(),type:J(),manufacturer:q(),model:ve()}),be=()=>{const Y=new URLSearchParams(window.location.search).get("query");return{referrer:document.referrer||null,search:Y||null,url:window.location.href,path:window.location.pathname+window.location.search+window.location.hash}},ae=()=>navigator.userAgent||null},57487(tt,Le,c){"use strict";c.d(Le,{Ve:()=>ae,lQ:()=>Y,rq:()=>be});var R,U=c(31735),B=c.n(U),K=c(29390),J=c.n(K),q=c(79443),ve=c.n(q),re=c(36087),se=c.n(re),s=c(61039),ye=c.n(s);function be(...Ce){return B()(...J()(1,Ce))(ve()(Ce))}function ae(Ce,...Ie){return se()(...Ie)(Ce)}function le(Ce,...Ie){return R(...Ie)(Ce)}const Y=()=>{}},78933(tt,Le,c){"use strict";c.d(Le,{B:()=>K});var R=c(94036);const U=["fromDashboard","locale"];function B(J,q){const ve=typeof J=="function"?J(q):J;return typeof ve=="string"?(0,R.Rr)(ve):ve}function K(J,q){const ve=B(J,q),re=new URLSearchParams(q?.search||""),se=new URLSearchParams(ve?.search||"");for(const s of U){const ye=re.get(s);ye&&!se.has(s)?se.set(s,ye):se.has(s)&&!se.get(s)&&se.delete(s)}return{...ve,search:se.toString()}}},42662(tt,Le,c){"use strict";c.d(Le,{Em:()=>ye,lZ:()=>be});var R=c(50748),U=c.n(R),B=c(63557),K=c(38870),J=c(83869);const q=(X,_)=>((...V)=>{try{return X(...V)}catch(te){window.env?.SERVICE_ENV&&window.env?.SERVICE_ENV!=="prod"&&console.error(te),J.L.addError(te),_(te)}}),ve=X=>{const _=X.getResponseHeader("content-type")||"",V=_.includes("application/json");if(!(V||_.includes("text/")))return X.response;try{const z=new TextDecoder("utf-8").decode(X.response);try{return V?JSON.parse(z):z}catch{return z}}catch{return X.response}};function re(X,_){const V=_.indexOf(":"),te=_.substr(0,V).trim().toLowerCase(),z=_.substr(V+1).trim();return te&&(X[te]=X[te]?X[te]+", "+z:z),X}function se(X){return X?X.split(`
`).reduce(re,{}):{}}function s(X){const _=[];for(const V in X){const te=X[V];if(!Array.isArray(te)){_.push(encodeURIComponent(V)+"="+encodeURIComponent(te));continue}for(const z of te)_.push(s(z))}return _.join("&")}function ye(X){let _,V=!1;const te=new Promise(function z(ue,me){const je=X.signal;if(je?.aborted){me(new DOMException("Aborted","AbortError"));return}const Se=Re=>{throw me(Re),Re},fe=()=>{_.abort(),me(new DOMException("Aborted","AbortError"))},h=X.data;let ne=q(X.deserialize??U(),Se);const ie=X.headers??{},Q=X.json??!1,Fe=X.jwt??!1,ge=X.token??null,Me=X.method??"GET",Ve=X.reviewEnv??!1,pe=X.onUploadProgress;let ke=q(X.serialize??U(),Se),Ye=X.url;const Je=X.withCredentials??!1,Ze=X.file,gt=X.timeout??3e3;_=new XMLHttpRequest;const et=setTimeout(()=>{_.abort(),me({error:"request timed out"})},gt);if(Q&&(ne=q(JSON.parse,me),ke=q(JSON.stringify,me),ie["Content-Type"]="application/json"),Me==="GET"&&h&&(Ye+="?"+s(h)),Fe){const Re=ge||(0,B.rS)();ie.Authorization="Bearer "+Re}je?.addEventListener("abort",fe),_.withCredentials=Je,_.addEventListener("abort",me),_.addEventListener("error",me),_.addEventListener("load",function(){_.status>=400?[401,403].includes(_.status)?V?me({error:"Unable to resume session",status:_.status}):(0,K.wD)().then(()=>{z(ue,me),V=!0}).catch(Re=>{J.L.addError(Re),me({error:"Unable to resume session",status:_.status})}):X.arrayBuffer?me(ve(_)):me(ne(_.response)):(ue({body:_.status===204?void 0:ne(_.response),headers:se(_.getAllResponseHeaders()),status:_.status}),je?.removeEventListener("abort",fe)),clearTimeout(et)}),_.upload&&typeof pe=="function"&&_.upload.addEventListener("progress",pe),_.open(Me,Ye),X.arrayBuffer&&(_.responseType="arraybuffer");for(const Re in ie)_.setRequestHeader(Re,ie[Re]);Me!=="GET"&&h?_.send(ke(h)):Ze?_.send(Ze):_.send()});return te.abort=(...z)=>_.abort(...z),te}function be(X){return X.status===200||X.status===201?X.body:Promise.reject(X.body)}const ae=(X,_=!0)=>_?`${X}s`:X;var le=(X=>(X[X.KB=1024]="KB",X[X.MB=1048576]="MB",X[X.GB=1073741824]="GB",X[X.TB=1099511627776]="TB",X))(le||{});const Y={KB:(X=1)=>1024*X,MB:(X=1)=>1048576*X,GB:(X=1)=>1073741824*X,TB:(X=1)=>1099511627776*X},Ce={KB:{short:"KB",long:"Kilobyte"},MB:{short:"MB",long:"Megabyte"},GB:{short:"GB",long:"Gigabyte"},TB:{short:"TB",long:"Terabyte"}},Ie=(X,_="short")=>{const te=Object.keys(le).reverse().find(je=>X>=le[je]);if(!te)return`${X} ${ae("byte",X>1)}`;const z=X/le[te],ue=z%1===0?z.toFixed(0):z.toFixed(2),me=_==="long"?ae(Ce[te].long,z>1):Ce[te].short;return`${ue} ${me}`}},25726(tt,Le,c){"use strict";c.d(Le,{$D:()=>h,I6:()=>je,LI:()=>gt,Ll:()=>me,Vx:()=>Se,Zd:()=>ue,dM:()=>Ze,sg:()=>Q});var R=c(44914),U=c.n(R),B=c(31735),K=c.n(B),J=c(56438),q=c.n(J),ve=c(33182),re=c.n(ve),se=c(65301),s=c.n(se),ye=c(79443),be=c.n(ye),ae=c(83408),le=c.n(ae),Y=c(36087),Ce=c.n(Y),Ie=c(57819),X=c.n(Ie),_=c(47971),V=c.n(_),te=c(91485);const z=K()(q()(".svg"),X()("","originalUrl")),ue=s()(z,U()({width:"500rem"}),U()({})),me=Re=>{if(Re){const _e=Re.trim();if(_e!==""&&_e!=='""')return Re}return""},je=Re=>me(Re)||void 0,Se=Re=>Re?"img":void 0,fe=Re=>Ce()(X()("","originalUrl"),V()("."),be(),re()(Re)),h=fe("svg"),ne=fe("gif"),ie=/\.svg$/i,Q=Re=>ie.test(Re),Fe={process:"center",timeline:"left"},ge=Re=>Fe[Re]||"left",Me=(Re,_e)=>{const ut=le()(Re,_e);return ut.media.image.key===_e.media.image.key&&Object.assign(ut.media.image,{crushedKey:_e.media.image.key,useCrushedKey:!0}),ut},Ve=({src:Re,alpha:_e})=>({alpha:_e,media:{image:{key:pe(Re),src:Re}}}),pe=Re=>typeof Re!="string"?"":Re.startsWith("http")?new URL(Re).pathname.slice(1):Re,ke=(({coverImageAlpha:Re,coverImage:_e})=>({alpha:Re,src:_e})),Ye=(({lessonHeaderImageAlpha:Re,lessonHeaderImage:_e})=>({alpha:Re,src:_e})),Je=(Re,_e)=>(ut,ft)=>{const qe=ut[_e];if(ut?.theme){const Gt=ft?ft(qe?.media):qe?.media;if((0,te.uW)(Gt))return qe;const Z={...qe,media:{...Gt}},nt=Ve(Re(ut.theme));return Me(Z,nt)}else return qe},Ze=Je(ke,"coverImage"),gt=Je(Ye,"lessonHeaderImage"),et=async Re=>{const _e=new Image;return _e.src=Re,await _e.decode(),_e}},47302(tt,Le,c){"use strict";c.d(Le,{GG:()=>ye,Mz:()=>ve,Sg:()=>s,Ww:()=>ae,X1:()=>q,XQ:()=>K,d9:()=>B,dg:()=>se,gL:()=>re,p1:()=>J,vm:()=>be});var R=c(78285),U=c.n(R);const B={LESSON:"lesson",QUIZ:"quiz",SECTION:"section"},K={KNOWLEDGE_CHECK:"KNOWLEDGE_CHECK",ORDER:"ORDER",QUIZ:"QUIZ"},J=Y=>`/lessons/${encodeURIComponent(Y)}`,q="/lessons/progress-summary",ve=Y=>Y.type===B.SECTION,re=Y=>Y.type===B.QUIZ,se=Y=>Y.settings?.passToContinue===!0,s=Y=>Y?.items?.find(Ce=>Ce.family==="knowledgeCheck"&&Ce.settings?.requireCorrectAnswer),ye=Y=>Y.type!=="quiz"||Y.settings?.asLesson!==!1,be=Y=>Y!=null&&Y.type==="blocks",ae=Y=>{const Ce=U()(Y);return Ce!=null&&Array.isArray(Ce.items)&&(Ce.items=Ce.items.reduce((Ie,X)=>(X!=null&&Ie.push(le(X)),Ie),[])),Ce},le=Y=>{const Ce=U()(Y);return Ce!=null&&Array.isArray(Ce.items)&&(Ce.items=Ce.items.filter(Boolean)),Ce}},94992(tt,Le,c){"use strict";c.d(Le,{Gv:()=>J,QD:()=>Y,s0:()=>Ce});var R,U,B=c(85429),K=c.n(B);const J=Ie=>!!Ie&&Object.prototype.toString.call(Ie)==="[object Object]",q=Array.isArray,ve=(Ie,X)=>Object.fromEntries(Object.entries(X).map(Ie)),re=(Ie,X,_)=>{const V={};for(const te in _)V[Ie(te)]=X(_[te]);return V},se=Ie=>Ie.map(ae),s=Ie=>Ie.map(le),ye=Ie=>re(R,ae,Ie),be=Ie=>re(U,le,Ie),ae=Ie=>J(Ie)?ye(Ie):q(Ie)?se(Ie):Ie,le=Ie=>J(Ie)?be(Ie):q(Ie)?s(Ie):Ie,Y=(Ie,X)=>{const _=new Set(X),V={};for(const te in Ie)_.has(te)||(V[te]=Ie[te]);return V},Ce=(Ie,X)=>Object.fromEntries(Object.entries(Ie).map(([_,V])=>X(_,V)))},63656(tt,Le,c){"use strict";c.d(Le,{No:()=>ve,VJ:()=>q,c3:()=>B,cZ:()=>re,qg:()=>U});var R=c(76906);const U=be=>be===R.y4,B=be=>U(be?.type),K=(be,ae)=>le=>B(le)?be:ae,J=(be,ae)=>be===R.y4&&ae!==void 0,q=be=>J(be?.type,be?.experiments?.outputType)&&be?.experiments?.outputType==="guide",ve=be=>J(be?.type,be?.experiments?.outputType)&&be?.experiments?.outputType==="presentation",re=be=>J(be?.type,be?.experiments?.outputType)&&be?.experiments?.outputType==="video",se={guide:"Guide",presentation:"Presentation",video:"Video to Training",microlearning:"Microlearning"},s=be=>Object.prototype.hasOwnProperty.call(se,be),ye=be=>typeof be=="string"&&s(be)?se[be]:se.microlearning},15107(tt,Le,c){"use strict";c.d(Le,{h:()=>R});function R(U){return U.trim()===""}},22737(tt,Le,c){"use strict";c.d(Le,{IK:()=>B,R8:()=>ve,UQ:()=>R,hB:()=>q,iV:()=>K,sS:()=>U});const R={DRAW_FROM_QUESTION_BANK:"DRAW_FROM_QUESTION_BANK",FILL_IN_THE_BLANK:"FILL_IN_THE_BLANK",MATCHING:"MATCHING",MULTIPLE_CHOICE:"MULTIPLE_CHOICE",MULTIPLE_RESPONSE:"MULTIPLE_RESPONSE"},U={SUMMARY:"SUMMARY",REMAINING:"REMAINING",ELAPSED:"ELAPSED",ELAPSED_TOTAL:"ELAPSED_TOTAL",HIDE_TIMER:"HIDE_TIMER"},B={CONTINUE:"continue",NONE:""},K={ALL:"all",NONE:"none",INCORRECT:"incorrect"},J=10,q=80,ve=500},7927(tt,Le,c){"use strict";c.d(Le,{HY:()=>U.HY,Nv:()=>Y,Ls:()=>te,GF:()=>me,y4:()=>z,LY:()=>ue});var R=c(41088),U=c(18398),B=c(37617),K=c(84980);const J=h=>h!=null&&typeof h=="object"&&"map"in h&&typeof h.map=="function",q=h=>h!=null&&typeof h=="object"&&"run"in h&&typeof h.run=="function",ve=h=>h!=null&&typeof h=="object"&&"then"in h&&typeof h.then=="function",re=h=>h!=null&&typeof h=="object"&&"fork"in h&&typeof h.fork=="function",se=h=>h!=null&&typeof h=="function",s=(h,ne)=>{const ie=Q=>s(Q,ne);if(typeof h=="object"&&"type"in h&&typeof h.type=="string"){const Q="meta"in h&&typeof h.meta=="object"?h.meta:void 0;return{...h,meta:{...Q,origin:ne}}}if("bimap"in h&&typeof h.bimap=="function")return h.bimap(ie,ie);if(J(h))return h.map(ie);if(ve(h))return h.then(ie);if(se(h))return function(Fe,ge){return h(Me=>Fe(ie(Me)),ge)}};function ye(){return({dispatch:h,getState:ne})=>ie=>Q=>{if(se(Q))return Q(h,ne);if(ve(Q))return Q.then(h);if(re(Q)){Q.fork(h,h);return}return q(Q)?h(Q.run()):J(Q)?Q.map(h):ie(Q)}}function be(){return[ye()]}var ae=c(26372);const le=U.Zz;function Y(h,ne){const ie=(0,U.y$)(h,ne,le((0,U.Tw)(...be()))),Q=Ce(),Fe=Ie(),ge=X(),Me=_(),Ve=V();return{Provider:B.Kq,connect:Q,connectBase:Fe,dispatch:ie.dispatch,store:ie,useDispatch:ge,useDispatchWithOrigin:Me,useSelector:Ve}}function Ce(){return function(ne,ie,Q,Fe){return function(ge){return(0,B.Ng)(ne,ie,Q,Fe)((0,K.BN)(ge))}}}function Ie(){return function(ne,ie,Q,Fe){return function(ge){return(0,B.Ng)(ne,ie,Q,Fe)(ge)}}}function X(){return B.wA}function _(){return function(ne){const ie=(0,B.wA)();return ae.useCallback(Fe=>ie(s(Fe,ne)),[ie,ne])}}function V(){return function(ne,ie=B.bN){const Q=ae.useContext(K.q2),Fe=ae.useContext(K.R6),ge=ae.useRef(void 0),Me=(0,R.S)(),Ve=(0,B.d4)(ne,ie),pe=!Me&&Q&&Fe?.startsWith?.("exit");return pe||(ge.current=Ve),pe&&ge.current!==void 0?ge.current:Ve}}const te=Ce(),z=X(),ue=V(),me=V;var je=c(12100),Se;const fe=()=>Se(()=>location.href="/")},45857(tt,Le,c){"use strict";c.d(Le,{V:()=>R});const R=({locales:U,course:B,locale:K})=>!!(U?.find(ve=>ve.locale===K)?.rightToLeft||B?.features?.["rise-rtl"]&&B?.experiments?.rtl)},7507(tt,Le,c){"use strict";c.d(Le,{As:()=>s,BI:()=>B,Hm:()=>ye,NS:()=>se,PJ:()=>re,Wk:()=>be,_$:()=>U,ih:()=>ae,mZ:()=>J,o1:()=>ve});const{Runtime:R}=window,U=le=>window.env?.[le],B=!1,K=null,J="Rise 360",q=le=>`${U("CDN_USER_CONTENT_URI")}/${le}`,ve=le=>{const Y=le||"",Ce=R?.resolvePath!=null?R.resolvePath.bind(R):q;return Y.startsWith("http")||Y.startsWith("data:")||Y.startsWith("//")?Y:Ce(Y)||Y},re=le=>R?.resolveFontPath!=null?R.resolveFontPath(le):`${le.default?U("CDN_URI"):U("CDN_USER_CONTENT_URI")}/${le.key}`,se=()=>{R?.exit!=null&&R.exit()},s=()=>R?.isComplete!=null?R.isComplete():null,ye=()=>R?.isExport!=null?R.isExport():!1;function be(){if(R?.isExport!=null){const le=window.partnerContent?.content;return R.isExport()&&!!le}return!1}const ae=()=>{if(R?.sendTouch!=null)return R.sendTouch()}},42900(tt,Le,c){"use strict";c.d(Le,{xj:()=>me,rE:()=>Re,Dw:()=>fe,HC:()=>Se,qu:()=>_e,LE:()=>Me,BL:()=>pe,Zs:()=>se,S$:()=>s,Ty:()=>ye,Bj:()=>be,pL:()=>ae,Ht:()=>Ce,zV:()=>Ie,B4:()=>V,HU:()=>le,_g:()=>Y,df:()=>ft,KJ:()=>te,qH:()=>z,OX:()=>je,AY:()=>Ve,Py:()=>ie,b$:()=>Q,qB:()=>Fe,kY:()=>ne,br:()=>h,jq:()=>ut,Y2:()=>ge,RE:()=>gt,Em:()=>et,V7:()=>re});var R=c(48831),U=c.n(R),B=c(37262),K=c.n(B);function J(Gt){return U()(Gt)}class q extends Error{constructor(Z="Assert Error",nt){super(Z,nt)}}function ve(Gt,Z="Assertion Error"){if(!Gt)throw new q(Z)}const re={RISE_CLASSIC:"classic",APEX:"organic",HORIZON:"imaginative"},se="#ff631e",s=3,ye=17,be=32,ae=24,le=50,Y=.6,Ce="right",Ie="rounded",X=[{color:"#4baaf4",name:"Sky"},{color:"#285f9f",name:"Blueberry"},{color:"#7837a8",name:"Jelly"},{color:"#d84738",name:"Cherry"},{color:"#ff631e",name:"Tangerine"},{color:"#25bb64",name:"Basil"}],_="#ffffff",V=K()("color",X),te="#000",z="#fff",ue="Rise",me=J({ACCENT:null,BLACK:null,COLOR:null,DARK:null,GRAY:null,IMAGE:null,LIGHT:null,TINT:null}),je=J({LARGE:null,MEDIUM:null,SMALL:null}),Se=J({STEPPED:null,CONTINOUS:null}),fe=U()({NUMBERS:null,DOTS:null,NONE:null}),h=J({COMPACT:null,OVERLAY:null,SIDEBAR:null}),ne=U()({DARK:null,DARK_IMAGE:null,LIGHT:null,LIGHT_IMAGE:null}),ie=U()({DARK:null,DARK_ACCENT:null,DARK_IMAGE:null,LIGHT:null,LIGHT_ACCENT:null,LIGHT_IMAGE:null}),Q={FREE:"free",RESTRICTED:"restricted"},Fe=U()({ACCENT:null,DARK:null,GRAY:null,IMAGE:null,LIGHT:null,TINT:null}),ge=U()({THEME_DEFAULT:null,CIRCULAR_FILL:null,INCOMPLETE_COMPLETE:null}),Me=J({ACCENT:null,DARK:null,LIGHT:null,TINT:null}),Ve=J({FULL:null,FLOATING:null,FLOATING_FULL:null}),pe=J({ACCENT:null,CENTERED:null,CENTERED_ACCENT_TINT:null,CENTERED_OVERLAY:null,CENTERED_IMAGE:null,IMAGE:null,LEFT:null,LEFT_OVERLAY:null,SPLIT_LEFT:null,SPLIT_LEFT_IMAGE:null,SPLIT_RIGHT:null,SPLIT_RIGHT_IMAGE:null,TWO_THIRDS_LEFT_IMAGE:null,TWO_THIRDS_RIGHT_IMAGE:null,VIDEO:null,WHITE:null}),ke={default:[{text:"Centered",type:pe.CENTERED},{text:"Centered overlay",type:pe.CENTERED_OVERLAY},{text:"Left",type:pe.LEFT},{text:"Left overlay",type:pe.LEFT_OVERLAY},{text:"Split left image",type:pe.SPLIT_LEFT_IMAGE},{text:"Split right image",type:pe.SPLIT_RIGHT_IMAGE},{text:"Two-Thirds left image",type:pe.TWO_THIRDS_LEFT_IMAGE},{text:"Two-Thirds right image",type:pe.TWO_THIRDS_RIGHT_IMAGE}],classic:[{text:"Centered",type:pe.CENTERED},{text:"Centered overlay",type:pe.CENTERED_OVERLAY},{text:"Left",type:pe.LEFT},{text:"Left overlay",type:pe.LEFT_OVERLAY},{text:"Split left image",type:pe.SPLIT_LEFT_IMAGE},{text:"Split right image",type:pe.SPLIT_RIGHT_IMAGE},{text:"Two-Thirds left image",type:pe.TWO_THIRDS_LEFT_IMAGE},{text:"Two-Thirds right image",type:pe.TWO_THIRDS_RIGHT_IMAGE}],organic:[{text:"Centered",type:pe.CENTERED},{text:"Centered overlay",type:pe.CENTERED_OVERLAY},{text:"Left",type:pe.LEFT},{text:"Left overlay",type:pe.LEFT_OVERLAY},{text:"Split left",type:pe.SPLIT_LEFT},{text:"Split right",type:pe.SPLIT_RIGHT},{text:"Split left image",type:pe.SPLIT_LEFT_IMAGE},{text:"Split right image",type:pe.SPLIT_RIGHT_IMAGE}],imaginative:[{text:"Centered",type:pe.CENTERED},{text:"Centered overlay",type:pe.CENTERED_OVERLAY},{text:"Centered image",type:pe.CENTERED_IMAGE},{text:"Centered accent tint",type:pe.CENTERED_ACCENT_TINT},{text:"Split left image",type:pe.SPLIT_LEFT_IMAGE},{text:"Split right image",type:pe.SPLIT_RIGHT_IMAGE},{text:"Two-thirds left image",type:pe.TWO_THIRDS_LEFT_IMAGE},{text:"Two-thirds right image",type:pe.TWO_THIRDS_RIGHT_IMAGE}]},Ye=null,Je=null,Ze=[{text:"Image",type:pe.IMAGE},{text:"Accent",type:pe.ACCENT},{text:"White",type:pe.WHITE}],gt={CLOSED:"closed",HIDDEN:"hidden",OPEN:"open"},et=J({AUTO:null,BLACK:null,LIGHT:null,DARK:null}),Re=J({ROUNDED:null,SQUARED:null}),_e=U()({ROUNDED:null,SQUARED:null}),ut=U()({FLOATING:null,FULL:null}),ft=U()({ACCENT:null,DARK:null,LIGHT:null}),qe=[{value:et.AUTO,label:"Auto"},{value:et.DARK,label:"Dark"},{value:et.LIGHT,label:"Light"}]},61012(tt,Le,c){"use strict";var R={};c.r(R),c.d(R,{CoverDescription:()=>hx,CoverDetailsContentHeading:()=>Cb,CoverDueDate:()=>mx,CoverHeader:()=>Fx,CoverLayout:()=>$x,LessonHeader:()=>qx,LessonNavFinish:()=>eb,LessonNavNext:()=>tb,LessonNavPrevious:()=>nb,LessonProgressGraphic:()=>ub,NavCompactHeaderCounter:()=>xb,NavCompactHeaderProgress:()=>bb,NavCompactOutline:()=>yb,OverviewListItem:()=>Lb,OverviewListSectionTitle:()=>Eb,Progress:()=>gb});var U={};c.r(U),c.d(U,{AlignLeft:()=>Ib,ArrowDown:()=>k1,ArrowLeft:()=>Sb,ArrowRight:()=>Tb,ArrowUp:()=>j2,Category:()=>jC,ChevronDown:()=>Nb,ChevronUp:()=>jb,Favorite:()=>B0,LessonsComplete:()=>vd,LessonsRequirement:()=>Vp,QuestionBox:()=>kb,QuizFailed:()=>P2,QuizPassed:()=>vd,QuizRequirement:()=>R0,Search:()=>Ab,ToggleDown:()=>Rb,Touch:()=>Pb,VideoCamera:()=>wb,X:()=>Mb});var B={};c.r(B),c.d(B,{components:()=>R,icons:()=>U});var K={};c.r(K),c.d(K,{CoverCourseInfo:()=>Ny,CoverDetailsSection:()=>Py,CoverHeader:()=>_y,CoverLayout:()=>Qy,LessonHeader:()=>Jy,LessonProgressGraphic:()=>nL,NavSidebarHeader:()=>oL,OverviewListItemLinkContent:()=>wL,Progress:()=>ML});var J={};c.r(J),c.d(J,{ArrowDown:()=>K2,ArrowLeft:()=>DL,ArrowRight:()=>OL,ArrowUp:()=>K2,ChevronDown:()=>Q2,ChevronUp:()=>Q2,Favorite:()=>B0,LessonsComplete:()=>Z2,LessonsRequirement:()=>Y2,QuizFailed:()=>HL,QuizPassed:()=>Z2,QuizRequirement:()=>Y2,Search:()=>BL,ToggleDown:()=>FL,X:()=>VL});var q={};c.r(q),c.d(q,{components:()=>K,icons:()=>J});var ve={};c.r(ve),c.d(ve,{CoverDescription:()=>$L,CoverDetails:()=>_L,CoverGraphic:()=>Mc,CoverHeader:()=>eE,CoverLayout:()=>nE,CoverProgress:()=>gE,CoverSVG:()=>da,LessonHeader:()=>yE,LessonProgressGraphic:()=>IE,NavSidebarHeaderProgress:()=>jE});var re={};c.r(re),c.d(re,{AlignLeft:()=>wE,ArrowDown:()=>kE,ArrowLeft:()=>AE,ArrowRight:()=>RE,ArrowUp:()=>PE,ChevronDown:()=>lf,ChevronUp:()=>ME,Favorite:()=>B0,LessonsComplete:()=>vd,LessonsRequirement:()=>Vp,QuestionBox:()=>OE,QuizFailed:()=>P2,QuizPassed:()=>vd,QuizRequirement:()=>R0,Search:()=>DE,ToggleDown:()=>lf,Touch:()=>BE,VideoCamera:()=>HE,X:()=>FE});var se={};c.r(se),c.d(se,{components:()=>ve,icons:()=>re});var s=c(16881),ye=c(94864),be=c(16188),ae=c(92566),le=c(12140),Y=c(86347),Ce=c(57561),Ie=c(57129),X=c(45151),_=c(67406),V=c(305),te=c(66883),z=c(31975),ue=c(50371),me=c(78451),je=c(88402),Se=c(83988),fe=c(48607),h=c(26372),ne=c(75762),ie=c(94036),Q=c(82486),Fe=c(63557);const ge="_course_token",Me=new URLSearchParams(window.location.hash.substr(1)),Ve=Me.get(ge);Ve&&(Me.delete(ge),window.history.replaceState(null,null,`#${Me.toString()}`));const pe=t=>{const{data:{method:e,id:n,jsonrpc:o}}=t;if(o==="2.0"&&e==="getBearerToken"){const r=Ve||(0,Fe.rS)();navigator.serviceWorker.ready.then(a=>{a.active.postMessage({id:n,jsonrpc:"2.0",method:e,result:{token:r}})})}};navigator.serviceWorker&&navigator.serviceWorker.addEventListener("message",pe);const ke=(0,h.createContext)({});function Ye(t,{type:e,message:n}){switch(e){case"polite":return{...t,politeMessage1:t.alternatePolite?n:"",politeMessage2:t.alternatePolite?"":n,alternatePolite:!t.alternatePolite};case"assertive":return{...t,assertiveMessage1:t.alternatePolite?n:"",assertiveMessage2:t.alternatePolite?"":n,alternateAssertive:!t.alternateAssertive};default:return{politeMessage1:"",politeMessage2:"",alternatePolite:!1,assertiveMessage1:"",assertiveMessage2:"",alternateAssertive:!1}}}function Je({ariaLive:t,message:e}){return(0,s.jsx)("div",{"aria-atomic":"true","aria-live":t,"aria-relevant":"additions text",className:"visually-hidden-always",role:"log",children:e})}function Ze({children:t}){const[{politeMessage1:e,politeMessage2:n,assertiveMessage1:o,assertiveMessage2:r},a]=(0,h.useReducer)(Ye,{politeMessage1:"",politeMessage2:"",alternatePolite:!1,assertiveMessage1:"",assertiveMessage2:"",alternateAssertive:!1}),i=(0,h.useMemo)(()=>({announcePolite:l=>{a({type:"polite",message:l})},announceAssertive:l=>{a({type:"assertive",message:l})},clearAnnouncements:()=>{a({type:"clear"})}}),[a]);return(0,s.jsxs)(ke.Provider,{value:i,children:[(0,s.jsx)(Je,{ariaLive:"polite",id:"polite-announcer1",message:e}),(0,s.jsx)(Je,{ariaLive:"polite",id:"polite-announcer2",message:n}),(0,s.jsx)(Je,{ariaLive:"assertive",id:"assertive-announcer1",message:o}),(0,s.jsx)(Je,{ariaLive:"assertive",id:"assertive-announcer2",message:r}),t]})}function gt(){return(0,h.useContext)(ke)}var et=c(88498),Re=c(68902),_e=c(54051),ut=c(43418),ft=c.n(ut),qe=c(47615),Gt=c(82031),Z=c.n(Gt),nt=c(35873),us=c(13578),ze=c(7507);const Ks=`${(0,ze._$)("CDN_URI")}/assets/rise/assets/certificate-icon.svg`,_n=`${(0,ze._$)("CDN_URI")}/assets/rise/assets/error_x.svg`,Gn=`${(0,ze._$)("CDN_URI")}/assets/rise/assets/loading_spinner.svg`,Ge="downloading",an="error",Qs="ok",Zs="contained",jn=({type:t})=>{const[e]=(0,h.useState)(()=>ft()("certdownload-")),[n,o]=(0,h.useState)(Qs),r=(0,qe.A)(n),a=(0,h.useRef)(),i=(0,nt.useLabelsMap)(),l=`${e}-live`,u=Z()("certificateDownload",{certificateDownloadContained:t===Zs}),d=(0,h.useCallback)(()=>{o(Ge)},[]);return(0,h.useEffect)(()=>(n===Ge&&r!==Ge&&(0,us.gj)().then(()=>{o(Qs)}).catch(m=>{(0,_e.FZ)(m)?o(Qs):o(an)}),()=>{(0,us.G7)()}),[r,n]),(0,h.useEffect)(()=>{a.current&&(n===an&&r!==an||n===Qs&&(r===an||r===Ge))&&a.current.focus()},[r,n]),(0,s.jsxs)("div",{className:u,children:[(0,s.jsxs)("div",{"aria-live":"polite",id:l,role:"status",children:[n===Ge&&(0,s.jsxs)("span",{className:"certificateDownload__downloading",children:[(0,s.jsx)("img",{alt:"",className:"animation-loading certificateDownload__downloadingImg",height:"15",src:Gn,width:"15"}),i?.certificateDownloadInProgress||"Downloading..."]}),n===an&&(0,s.jsxs)("span",{className:"certificateDownload__error",children:[(0,s.jsx)("img",{alt:"Error",className:"certificateDownload__errorImg",height:"15",src:_n,width:"15"}),(0,s.jsx)("span",{className:"visually-hidden",children:i?.a11yCertificateDownloadFailed||"Failed to download certificate"})]})]}),(n===Qs||n===an)&&(0,s.jsxs)("button",{"aria-controls":l,className:"certificateDownload__btn",onClick:d,ref:a,type:"button",children:[n===Qs&&t===Zs&&(0,s.jsx)("img",{alt:"",className:"certificateDownload__okImg",height:"15",src:Ks,width:"15"}),n===Qs?i?.certificateDownload||"Download certificate":i?.certificateRetryDownload||"Retry download"]})]})},zr=()=>(0,s.jsx)(jn,{type:Zs}),Kn=(0,h.memo)(jn);var At=c(47296),fs=c(91485),as=c(63656);const Wo={BLOCKS:"blocks",QUIZ:"quiz",SECTION:"section"},mo=t=>t?.type===Wo.QUIZ,po=t=>t?.type===Wo.QUIZ;var A=c(42900),bt=c(47543),St=c(57898);const Qn=()=>(0,At.Mz)(e=>e,(e,n)=>n,(e,n,o)=>(0,St.HH)(o),(e,n,o)=>(0,St.fF)(o),St.Dh);function Qt(t){const{currentLocale:e}=(0,bt.nY)(),n=(0,h.useMemo)(()=>Qn(),[]);return(0,Q.d4)(o=>n(t,e,o))}const fo=(0,At.Mz)(t=>t,(t,e)=>(0,St.fF)(e),(t,e)=>e?.[t]);function _o(){const{currentLocale:t}=(0,bt.nY)();return(0,Q.d4)(e=>fo(t,e))}const kn=(0,At.Mz)(t=>t.course?.title,St.HH,St.fF,(t,e,n)=>{if(t)return(0,St.xp)(t,e,n)});function Go(){return(0,Q.d4)(kn)}var Zn=c(26372);function fn(t){return t?.search}function Ys(){return(0,Q.d4)(fn)}function Ue(t){return fn(t)?.activeLessons}const yt=(0,At.Mz)(Ue,t=>t?t.reduce((e,n)=>(n?.id&&(e[n.id]=n),e),{}):{});function Zt(){return(0,At.Mz)(t=>t,(t,e)=>yt(e),(t,e)=>e?.[t])}function Hs(t){const e=Zn.useMemo(()=>Zt(),[]);return(0,Q.d4)(n=>e(t,n))}function Ot(t){return t?.course}function Lt(){return(0,Q.d4)(t=>Ot(t))}function vo(t){return Ot(t)?.navigationMode}function lr(t){return Ot(t)?.trackingQuizId}function cn(){const t=Lt();return Qt(t?.title)}function Ur(t){return Ot(t)?.type}function $r(){return(0,Q.d4)(t=>Ur(t))}function ka(t){const e=Ot(t);return(0,as.c3)(e)}function Ll(t){const e=Ot(t);return(0,fs.HX)(e)}const $i=t=>t.filter(e=>e.type!=="section");function dr(){const t=Lt(),e=Ys();return(0,h.useMemo)(()=>e?.active&&e?.lessons?.length>0?{...t,lessons:e.lessons,lessonsOnly:$i(e.lessons)}:t,[t,e?.active,e?.lessons])}const Wi=(0,At.Mz)(Ot,t=>(t?.lessons??[]).filter(mo).some(e=>e.settings?.skipLessonsIfPassed&&e.settings?.skipToLessonId));function _i(t){const e=vo(t);return Wi(t)?A.b$.RESTRICTED:e??A.b$.FREE}function Wr(){return(0,Q.d4)(_i)}var _r=c(31735),ot=c.n(_r),lt=c(41133),Ls=c.n(lt),go=c(62915),Gi=c.n(go),Ko=c(95353),As=c.n(Ko),Gr=c(54708),Fs=c.n(Gr),ur=c(84046),Qo=c.n(ur),Zo=c(54425),ln=c.n(Zo),Aa=c(71023),Yn=c.n(Aa),Co=c(84134),hs=c.n(Co),xo=c(79443),hr=c.n(xo),Ra=c(8695),vs=c.n(Ra),Pa=c(5822),An=c.n(Pa),vn=c(45976),Xt=c.n(vn),mr=c(89837),Rt=c.n(mr),wa=c(97110),Xn=c.n(wa),Kr=c(58862),Ct=c.n(Kr),Ki=c(77592),Ft=c.n(Ki),Ma=c(5006),Qi=c.n(Ma),Oa=c(65180),Da=c.n(Oa),Qr=c(80811),Zi=c.n(Qr);const Zr=Ct()("lessons"),Yr=Zi()(t=>!!t,["settings","passToContinue"]),Ba=t=>ot()(An(),e=>Xt()([e,"passed"],t),Ct()("id")),Xr=({course:t,courseProgress:e})=>ot()(ln(),As()(Ba(Zr(e))),As()(Yr),Zr)(t)||{},Ha=({courseProgress:t,lesson:e,restrictingQuiz:n})=>{const o=Ct()("id",e),r=l=>Xt()([l,"index"],Zr(t)),a=r(o);return ot()(Da()(a),r,Ct()("id"))(n)?n:{}};var _t=c(78570),wt=c(47302);const Yi=ot()(An(),hs()),pr=ot()(As()(wt.GG),Ct()("lessonsOnly")),Jn=({course:t,courseProgress:e})=>Fs()(Fa(e))(t.lessonsOnly),Fa=t=>e=>An()(Xt()(["lessons",e.id,"isComplete"],t)),fr=({lesson:t,currentLesson:e})=>t&&Ft()("id",t.id,e),Jr=({course:t,lesson:e})=>Ft()("id",e.id,ln()(Ct()("lessonsOnly",t))),Va=({course:t,lesson:e})=>Ft()("id",e.id,hr()(Ct()("lessonsOnly",t))),za=ot()(An(),Ft()("type","section")),Xi=({lesson:t,courseProgress:e})=>Rt()(!1,["lessons",t.id,"isComplete"],e),Ji=({course:t,courseProgress:e,lesson:n,restrictingQuiz:o})=>{const r=Ha({courseProgress:e,lesson:n,restrictingQuiz:o}),a=(0,_t.bQ)(t),i=a||Yi(r),l=Jn({course:t,courseProgress:e}),u=za(n)&&An()(Xi({lesson:n,courseProgress:e}));return{isRestricted:i&&u&&An()(fr({lesson:n,currentLesson:l})),restrictingQuiz:r,isRestrictedCourse:a,currentLesson:l}},qi=({labels:t,restrictions:e})=>{const{lessonRestricted:n,quizRequirePassingScore:o}=t,{isRestrictedCourse:r,restrictingQuiz:a,currentLesson:i}=e,l=i&&Gi()("id",a,i);return!r||r&&l?a.title?o.replace("quiz",`"${a.title}"`):o:n},ec=Ls()(t=>Qo()(Qi()(Xn()(["id"],t||{})))),tc=({course:t,lesson:e})=>ot()(Yn(),ec(e),pr)(t),qr=({course:t,lesson:e})=>!Va({course:t,lesson:e})&&t.lessonsOnly[Yn()(ec(e,t.lessonsOnly))],sc=ot()(vs(),pr),nc=t=>typeof t=="object"&&Object.keys(t).length>0,El=t=>t===void 0||t===!1,Ua=t=>El(t?.isComplete),at=t=>t.find(([e,n])=>Ua(n)),Sl=t=>{const e=Object.entries(t),[n]=at(e)||[];return n},Tl=t=>nc(t)?Sl(t):void 0,oc=(t,e,n)=>{if(!n)return{outOfAttempts:!1,quizPassed:!0};const o=Xt()(["lessons",n],t),r=Rt()(-1,["settings","retryCount"],e),a=Rt()(0,["retryAttempts"],o),i=Xt()(["passed"],o);return{outOfAttempts:Xt()(["isComplete"],o)&&r>-1&&Number(a)===Number(r),quizPassed:i}};function qn(t){return t.courseProgress}function Te(t){return t.courseProgress?.currentLesson??""}function Qe(t){return t.courseProgress?.percentComplete??0}const Nt=(0,At.Mz)(lr,Ot,(t,e)=>{const{lessons:n}=e;return Array.isArray(n)?n.find(({id:o,type:r})=>r==="quiz"&&o===t)??null:null}),is=(0,At.Mz)(qn,Nt,(t,e)=>e?oc(t,e,e.id):null);function ns(t){const e=qn(t);return(0,et.Wk)()?e?.percentComplete===100:!!(0,et.As)()}function bs(t){return t.courseProgress?.lessons}function eo(t,e){return bs(e)?.[t]}function vr(){return(0,Q.d4)(qn)}function to(){return(0,Q.d4)(Te)}function gr(){return(0,Q.d4)(Qe)}function Il(){return(0,Q.d4)(Nt)}function ea(){return(0,Q.d4)(is)??{outOfAttempts:!1,quizPassed:!1}}function $a(){return(0,Q.d4)(ns)}function gn(t){return(0,Q.d4)(e=>eo(t,e))}function Cr(t){const e=gn(t);if(e?.type==="quiz")return e}const ta=t=>t>9999?1:t,rc=({current:t,restart:e,restartValue:n})=>{const o=Number(n),r=ta(Number.isInteger(o)&&o>0?o:1),a=e?r:t+1;return ta(a)},n0=(t,e)=>{if(e.family==="divider"&&e.variant==="numbered divider"){const n=e.settings??{},o=rc({current:t.currentNumber,restart:n.restartNumbering,restartValue:n.restartNumberingValue});return{map:{...t.map,[e.id]:o},currentNumber:o}}return t},Nl=t=>(0,wt.Mz)(t),Wa=t=>(0,wt.gL)(t),o0=t=>(0,wt.dg)(t),jl=t=>!!(0,wt.Sg)(t);function bo(){return(0,At.Mz)(t=>t,(t,e)=>Al(e),(t,e)=>e[String(t)])}function Es(t){const e=(0,h.useMemo)(()=>bo(),[]);return(0,Q.d4)(n=>e(t,n))}function xr(t){const e=Es(t);return Qt(e?.title)}function r0(){const t=bo();return(0,At.Mz)(t,e=>Nl(e))}function de(){const t=dt();return(0,At.Mz)(e=>e,(e,n)=>t(n),(e,n)=>_i(n),(e,n)=>O5(n),(e,n)=>D5(n),(e,n)=>bs(n),(e,n,o,r,a,i)=>{const l=i?.[e],u=i?.[n];if(e!==n&&!l?.isComplete&&l?.index>u?.index){const d=i?.[r?.id]?.index??1/0,m=o==="restricted"?u?.index??1/0:i?.[a?.id]?.index??1/0;if(l?.index>Math.min(d,m))return m<d?o==="restricted"?{type:wt.XQ.ORDER}:{type:wt.XQ.KNOWLEDGE_CHECK}:{type:wt.XQ.QUIZ,data:r.title}}return null})}function He(t){const e=(0,h.useMemo)(()=>de(),[]);return(0,Q.d4)(n=>e(t,n))}function dt(){return(0,At.Mz)(bs,t=>t?Tl(t):void 0)}function Tt(){const t=dt();return(0,At.Mz)(e=>e,(e,n)=>t(n),(e,n)=>Al(n),(e,n)=>(0,St.HH)(n),(e,n)=>(0,St.fF)(n),(e,n,o,r,a)=>{if(n)return(0,St.UR)(o[n],e,r,a)})}function cs(){const t=bo();return(0,At.Mz)(t,eo,(e,n)=>{const o=n?.percentComplete??0,r=n?.isComplete??!1,a=n?.passed??!1;return o===100&&(!r||Wa(e)&&!a)})}function Ss(t){const e=(0,h.useMemo)(()=>cs(),[]);return(0,Q.d4)(n=>e(t,n))}function Yo(){const t=bo();return(0,At.Mz)(t,eo,(e,n)=>{const o=n?.percentComplete??0,r=n?.isComplete??!1,a=n?.passed??!1;return o===100&&r&&(!Wa(e)||a)})}function kl(t){const e=(0,h.useMemo)(()=>Yo(),[]);return(0,Q.d4)(n=>e(t,n))}const ac=(0,At.Mz)(Ot,t=>t?.lessons??[]),Al=(0,At.Mz)(ac,t=>t.reduce((e,n)=>(n?.id&&(e[n.id]=n),e),{})),br=(0,At.Mz)(Ot,t=>t?.lessonsOnly??[]),a0=(0,At.Mz)(br,t=>t.reduce((e,n,o)=>(e[n.id]=o+1,e),{}));function tp(){return(0,Q.d4)(t=>a0(t))}const sp=(0,At.Mz)(br,t=>t.filter(e=>(0,wt.GG)(e))),i0=(0,At.Mz)(sp,t=>t.length),c0=(0,At.Mz)(ac,t=>t.reduce((e,n)=>{const o=e[e.length-1];return Nl(n)||o==null?e.push([n.id]):o.push(n.id),e},[])),O5=(0,At.Mz)(br,bs,(t,e)=>t.find(n=>Wa(n)&&o0(n)&&!e?.[n.id]?.isComplete)),D5=(0,At.Mz)(br,bs,(t,e)=>t.find(n=>!Wa(n)&&jl(n)&&!e?.[n.id]?.isComplete));function Rl(t){const e=(0,h.useMemo)(r0,[]);return(0,Q.d4)(n=>e(t[0],n))}function l0(t){const e=(0,h.useMemo)(()=>bo(),[]),n=(0,h.useMemo)(()=>de(),[]),o=Wr();return(0,Q.d4)(r=>{const a=Ot(r),i=e(t,r),l=eo(t,r),d=n(t,r)?.type!=null;return o!==A.b$.RESTRICTED&&a?.markComplete&&!d&&i?.type!==wt.d9.QUIZ&&!(ze.BI&&l?.percentComplete===100)})}const d0=(t,e)=>e.findIndex(n=>n.id===t);function np(){return(0,At.Mz)(t=>t,(t,e)=>br(e),(t,e)=>{if(t==="progress-summary")return e[e.length-1];const o=d0(t,e)-1;return e[o]})}function op(){return(0,At.Mz)(t=>t,(t,e)=>br(e),(t,e)=>{const o=d0(t,e)+1;return e[o]})}function rp(t){return(0,At.Mz)(t,(e,n)=>sp(n),(e,n)=>d0(e?.id||"",n)+1)}function B5(){return rp(op())}function H5(){return rp(np())}function F5(t){const e=(0,h.useMemo)(()=>op(),[]);return(0,Q.d4)(n=>e(String(t),n))}function V5(t){const e=(0,h.useMemo)(()=>B5(),[]);return(0,Q.d4)(n=>e(String(t),n))}function z5(){return(0,Q.d4)(i0)}function ap(){return(0,Q.d4)(t=>c0(t))}function U5(){const t=dt();return(0,At.Mz)(ns,t,lr,(e,n,o)=>{const r=!!n,a=o!=null;return e||!r&&!a})}function $5(){const t=(0,h.useMemo)(()=>U5(),[]);return(0,Q.d4)(e=>t(e))}const W5=t=>t?.items?.reduce?.(n0,{map:{},currentNumber:0})?.map||{},_5=t=>{const e=(0,h.useMemo)(()=>bo(),[]),n=(0,Q.d4)(o=>e(t,o));return(0,h.useMemo)(()=>W5(n),[n])},G5=({blockId:t,lessonId:e})=>_5(e)?.[t];function K5(t){const n=Lt()?.lessonsOnly??[],o=n.findIndex(a=>a.id===t);return(o>=0?n[o+1]:void 0)?.id??null}function Q5(t){const e=Es(t),n=Lt(),o=e?.settings,r=n?.lessonsOnly;return(0,h.useMemo)(()=>{const a=o?.skipToLessonId,i=a&&r?.some(l=>l.id===a)?a:void 0;return{continueType:o?.continueType??"",retryCount:Number(o?.retryCount??-1),skipLessonsIfPassed:o?.skipLessonsIfPassed??!1,skipToLessonId:i}},[o,r])}function Vs(t){return(0,s.jsx)("svg",{"aria-hidden":"true",fill:"currentColor",focusable:"false",xmlns:"http://www.w3.org/2000/svg",...t})}var ip,Z5;const nQ=t=>ip(Z5,{...t,viewBox:"0 0 8 8",children:ip("polygon",{points:"8,3 5,3 5,0 3,0 3,3 0,3 0,5 3,5 3,8 5,8 5,5 8,5 "})}),oQ=null;var u0,Y5,X5;const rQ=t=>u0(X5,{viewBox:"0 0 10 10",...t,children:Y5("g",{fillRule:"evenodd",children:[u0("path",{d:"M0 4.107h10v2H0z"}),u0("path",{d:"M4 0h2v10H4z"})]})}),aQ=null;var h0,J5;const iQ=({width:t="18",height:e="18",className:n})=>h0("svg",{"aria-hidden":"true",className:J5("i i-alert",n),focusable:"false",height:e,viewBox:"0 0 18 18",width:t,children:h0("g",{fill:"none",fillRule:"evenodd",stroke:"#DE1D1D",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",children:h0("path",{d:"M9 1a8 8 0 1 1 0 16A8 8 0 0 1 9 1zM9 5.364V9.53M9 11.91v.726"})})}),cQ=null;function q5(t){return(0,s.jsxs)(Vs,{viewBox:"0 0 16 12",...t,children:[(0,s.jsx)("path",{d:"M8.4148147,12 L1.05185184,12 C0.471229623,12 0,11.552 0,11 C0,10.448 0.471229623,10 1.05185184,10 L8.4148147,10 C8.99543692,10 9.46666654,10.448 9.46666654,11 C9.46666654,11.552 8.99543692,12 8.4148147,12"}),(0,s.jsx)("path",{d:"M12.2500002,2 L0.816666683,2 C0.365866674,2 0,1.552 0,1 C0,0.448 0.365866674,0 0.816666683,0 L12.2500002,0 C12.7008002,0 13.0666669,0.448 13.0666669,1 C13.0666669,1.552 12.7008002,2 12.2500002,2"}),(0,s.jsx)("path",{d:"M15,7 L1,7 C0.448,7 0,6.552 0,6 C0,5.448 0.448,5 1,5 L15,5 C15.552,5 16,5.448 16,6 C16,6.552 15.552,7 15,7"})]})}var eC,Pl;const lQ=({width:t="20",height:e="20"})=>eC("svg",{"aria-hidden":"true",fill:"none",focusable:"false",height:e,viewBox:"0 0 20 20",width:t,xmlns:"http://www.w3.org/2000/svg",children:[Pl("path",{clipRule:"evenodd",d:"M1.6665 8.33332C1.6665 7.87309 2.0396 7.49999 2.49984 7.49999H14.1665C14.6267 7.49999 14.9998 7.87309 14.9998 8.33332C14.9998 8.79356 14.6267 9.16666 14.1665 9.16666H2.49984C2.0396 9.16666 1.6665 8.79356 1.6665 8.33332Z",fill:"currentColor",fillRule:"evenodd"}),Pl("path",{clipRule:"evenodd",d:"M1.6665 4.99999C1.6665 4.53975 2.0396 4.16666 2.49984 4.16666H17.4998C17.9601 4.16666 18.3332 4.53975 18.3332 4.99999C18.3332 5.46023 17.9601 5.83332 17.4998 5.83332H2.49984C2.0396 5.83332 1.6665 5.46023 1.6665 4.99999Z",fill:"currentColor",fillRule:"evenodd"}),Pl("path",{clipRule:"evenodd",d:"M1.6665 11.6667C1.6665 11.2064 2.0396 10.8333 2.49984 10.8333H17.4998C17.9601 10.8333 18.3332 11.2064 18.3332 11.6667C18.3332 12.1269 17.9601 12.5 17.4998 12.5H2.49984C2.0396 12.5 1.6665 12.1269 1.6665 11.6667Z",fill:"currentColor",fillRule:"evenodd"}),Pl("path",{clipRule:"evenodd",d:"M1.6665 15C1.6665 14.5398 2.0396 14.1667 2.49984 14.1667H14.1665C14.6267 14.1667 14.9998 14.5398 14.9998 15C14.9998 15.4602 14.6267 15.8333 14.1665 15.8333H2.49984C2.0396 15.8333 1.6665 15.4602 1.6665 15Z",fill:"currentColor",fillRule:"evenodd"})]}),dQ=null;var cp,tC;const uQ=({width:t="15",height:e="15",className:n})=>cp("svg",{"aria-hidden":"true",className:tC("i i-all-blocks",n),focusable:"false",height:e,viewBox:"0 0 15 15",width:t,children:cp("path",{d:"M.25.5h2v2h-2v-2zm4 0h2v2h-2v-2zm4 0h2v2h-2v-2zm4 0h2v2h-2v-2zm-12 4h2v2h-2v-2zm4 0h2v2h-2v-2zm4 0h2v2h-2v-2zm4 0h2v2h-2v-2zm-12 4h2v2h-2v-2zm4 0h2v2h-2v-2zm4 0h2v2h-2v-2zm4 0h2v2h-2v-2zm-12 4h2v2h-2v-2zm4 0h2v2h-2v-2zm4 0h2v2h-2v-2zm4 0h2v2h-2v-2z",fillRule:"evenodd"})}),hQ=null;var lp,sC;const mQ=t=>lp(sC,{...t,viewBox:"0 0 15 15",children:lp("path",{d:"M5.444.215H1.07c-.525 0-.875.35-.875.875v4.375c0 .525.35.875.875.875h4.375c.525 0 .875-.35.875-.875V1.09c0-.525-.35-.875-.875-.875M13.32.215H8.943c-.525 0-.875.35-.875.875v4.375c0 .525.35.875.875.875h4.375c.525 0 .875-.35.875-.875V1.09c0-.525-.35-.875-.875-.875M5.444 8.09H1.07c-.525 0-.875.35-.875.875v4.375c0 .525.35.875.875.875h4.375c.525 0 .875-.35.875-.875V8.965c0-.525-.35-.875-.875-.875M13.32 8.09H8.943c-.525 0-.875.35-.875.875v4.375c0 .525.35.875.875.875h4.375c.525 0 .875-.35.875-.875V8.965c0-.525-.35-.875-.875-.875"})}),pQ=null;var nC,dp,oC;const fQ=({width:t="24",height:e="16",leftMovement:n="0",className:o})=>nC("svg",{"aria-hidden":"true",className:oC("i i-alt",o),focusable:"false",height:e,style:{marginLeft:n},viewBox:"0 0 24 16",width:t,children:[dp("path",{d:"M10.066 11.5H8.887a.545.545 0 0 1-.326-.092.476.476 0 0 1-.178-.236l-.387-1.144H5.503l-.387 1.143a.507.507 0 0 1-.175.228.505.505 0 0 1-.32.101H3.433l2.538-6.556h1.557l2.538 6.556zM5.854 8.993h1.791l-.603-1.795-.137-.403a10.24 10.24 0 0 1-.155-.502 8.943 8.943 0 0 1-.293.914l-.603 1.786zm6.962 1.292h2.43V11.5h-3.951V4.944h1.52v5.341zM20.7 4.944v1.205h-1.845V11.5h-1.52V6.15H15.49V4.942h5.211z"}),dp("path",{d:"M1.5 1.994v12.012a.5.5 0 0 0 .505.494h19.99a.5.5 0 0 0 .505-.494V1.994a.5.5 0 0 0-.505-.494H2.005a.5.5 0 0 0-.505.494zm-1.5 0A2 2 0 0 1 2.005 0h19.99A2 2 0 0 1 24 1.994v12.012A2 2 0 0 1 21.995 16H2.005A2 2 0 0 1 0 14.006V1.994z",fillRule:"nonzero"})]}),vQ=null;var rC,up;const gQ=({className:t,width:e="20",height:n="20",focusable:o="false"})=>rC("svg",{className:t,fill:"none",focusable:o,height:n,viewBox:"0 0 20 20",width:e,xmlns:"http://www.w3.org/2000/svg",children:[up("path",{clipRule:"evenodd",d:"M10.0002 3.33334C10.4604 3.33334 10.8335 3.70644 10.8335 4.16668V15.8333C10.8335 16.2936 10.4604 16.6667 10.0002 16.6667C9.53992 16.6667 9.16683 16.2936 9.16683 15.8333V4.16668C9.16683 3.70644 9.53992 3.33334 10.0002 3.33334Z",fill:"currentColor",fillRule:"evenodd"}),up("path",{clipRule:"evenodd",d:"M3.57757 9.41075C3.90301 9.08532 4.43065 9.08532 4.75609 9.41075L10.0002 14.6548L15.2442 9.41075C15.5697 9.08532 16.0973 9.08532 16.4228 9.41075C16.7482 9.73619 16.7482 10.2638 16.4228 10.5893L10.5894 16.4226C10.264 16.748 9.73634 16.748 9.41091 16.4226L3.57757 10.5893C3.25214 10.2638 3.25214 9.73619 3.57757 9.41075Z",fill:"currentColor",fillRule:"evenodd"})]}),CQ=null;var aC,m0,iC;const xQ=({title:t="Export",desc:e="An arrow bending itself to the right",width:n="16",height:o="13",className:r,focusable:a="false"})=>aC("svg",{className:iC("i",r),focusable:a,height:o,viewBox:"0 0 16 13",width:n,children:[m0("title",{children:t}),m0("desc",{children:e}),m0("path",{d:"M15.8,6L8.9,0.2C8.4-0.2,7.8,0.1,7.8,0.6v2.7C2.6,3.6,0,6.2,0,12.4c0,0.6,0.8,0.9,1.2,0.4 c1.7-2.2,3.2-3,6.6-3.1v2.7c0,0.5,0.7,0.8,1.1,0.5L15.8,7C16.1,6.7,16.1,6.3,15.8,6z M1.4,10.6c0.4-4.4,2.7-6,7-6 c0.4,0,0.6-0.3,0.6-0.6V2l5.3,4.5L9.1,11V9c0-0.3-0.3-0.6-0.6-0.6C5,8.4,3.1,9,1.4,10.6z"})]}),bQ=null;var hp,cC;function yQ(t){return hp(cC,{viewBox:"0 0 384 512",...t,children:hp("path",{d:"M377.4 296.6l-168 176C204.8 477.3 198.6 480 192 480s-12.84-2.688-17.38-7.438l-168-176C-2.5 286.1-2.156 271.8 7.438 262.6c9.5-9.156 24.75-8.812 33.94 .8125L168 396.1V56.02c0-13.25 10.75-24.01 23.1-24.01S216 42.77 216 56.02v340.1l126.6-132.7c9.156-9.625 24.41-9.969 33.94-.8125C386.2 271.8 386.5 286.1 377.4 296.6z",fill:"currentColor"})})}var lC,mp,dC;function LQ(t){return lC(dC,{viewBox:"0 0 22 22",...t,children:[mp("path",{clipRule:"evenodd",d:"M11.0002 0.332031C11.7365 0.332031 12.3335 0.928985 12.3335 1.66536L12.3335 20.332C12.3335 21.0684 11.7365 21.6654 11.0002 21.6654C10.2638 21.6654 9.66683 21.0684 9.66683 20.332L9.66683 1.66536C9.66683 0.928985 10.2638 0.332031 11.0002 0.332031Z",fill:"currentColor",fillRule:"evenodd"}),mp("path",{clipRule:"evenodd",d:"M0.72402 10.0559C1.24472 9.53519 2.08894 9.53519 2.60964 10.0559L11.0002 18.4464L19.3907 10.0559C19.9114 9.53519 20.7556 9.53519 21.2763 10.0559C21.797 10.5766 21.797 11.4208 21.2763 11.9415L11.943 21.2748C11.4223 21.7955 10.5781 21.7955 10.0574 21.2748L0.72402 11.9415C0.203321 11.4208 0.203321 10.5766 0.72402 10.0559Z",fill:"currentColor",fillRule:"evenodd"})]})}var uC,p0,hC;const EQ=({title:t="Export",desc:e="An arrow pointing right",width:n="16",height:o="8",className:r,focusable:a="false",decorative:i})=>uC("svg",{"aria-hidden":i?"true":"false",className:hC("i",r),focusable:a,height:o,viewBox:"0 0 16 8",width:n,children:[p0("title",{children:t}),p0("desc",{children:e}),p0("path",{d:"M1 5h11.6l-1.3 1.3c-.4.4-.4 1 0 1.4.2.2.4.3.7.3.3 0 .5-.1.7-.3l3-3c.4-.4.4-1 0-1.4l-3-3c-.4-.4-1-.4-1.4 0-.4.4-.4 1 0 1.4L12.6 3H1c-.6 0-1 .4-1 1s.4 1 1 1",fill:"#444",fillRule:"evenodd"})]}),SQ=null;var pp,mC;function TQ(t){return pp(mC,{viewBox:"0 0 384 512",...t,children:pp("path",{d:"M6.625 215.5l168-176C179.2 34.7 185.4 32.02 192 32.02s12.84 2.688 17.38 7.438l168 176c9.125 9.594 8.781 24.78-.8125 33.94c-9.5 9.156-24.75 8.812-33.94-.8125L216 115.9V456c0 13.25-10.75 23.1-23.1 23.1S168 469.3 168 456V115.9l-126.6 132.7C32.22 258.2 16.97 258.5 7.438 249.4C-2.156 240.2-2.5 225 6.625 215.5z",fill:"currentColor"})})}var pC,fp,fC;function IQ(t){return pC(fC,{viewBox:"0 0 22 22",...t,children:[fp("path",{clipRule:"evenodd",d:"M11.0007 0.332031C11.737 0.332031 12.334 0.928985 12.334 1.66536L12.334 20.332C12.334 21.0684 11.737 21.6654 11.0007 21.6654C10.2643 21.6654 9.66732 21.0684 9.66732 20.332L9.66732 1.66536C9.66732 0.928985 10.2643 0.332031 11.0007 0.332031Z",fill:"currentColor",fillRule:"evenodd"}),fp("path",{clipRule:"evenodd",d:"M10.0578 0.722556C10.5785 0.201856 11.4228 0.201856 11.9435 0.722556L21.2768 10.0559C21.7975 10.5766 21.7975 11.4208 21.2768 11.9415C20.7561 12.4622 19.9119 12.4622 19.3912 11.9415L11.0007 3.55098L2.61013 11.9415C2.08943 12.4622 1.24521 12.4622 0.724509 11.9415C0.20381 11.4208 0.20381 10.5766 0.724509 10.0559L10.0578 0.722556Z",fill:"currentColor",fillRule:"evenodd"})]})}var vp,vC;const NQ=t=>vp(vC,{viewBox:"0 0 10 12",...t,children:vp("path",{d:"M7.09677 6.92617C8.14516 6.28188 8.79032 5.07383 8.79032 3.78523C8.79032 1.69128 7.09677 0 5 0C2.90323 0 1.20968 1.69128 1.20968 3.78523C1.20968 5.07383 1.85484 6.20134 2.90323 6.92617C1.20968 7.73154 0 9.42282 0 11.4362C0 11.7584 0.241936 12 0.564516 12C0.887097 12 1.12903 11.7584 1.12903 11.4362C1.12903 9.34228 2.90323 7.57047 5 7.57047C7.09677 7.57047 8.87097 9.34228 8.87097 11.4362C8.87097 11.7584 9.1129 12 9.43548 12C9.75806 12 10 11.7584 10 11.4362C9.91935 9.42282 8.79032 7.73154 7.09677 6.92617ZM5 1.12752C6.45161 1.12752 7.66129 2.33557 7.66129 3.78523C7.66129 5.2349 6.45161 6.44295 5 6.44295C3.54839 6.44295 2.33871 5.2349 2.33871 3.78523C2.33871 2.33557 3.46774 1.12752 5 1.12752Z"})}),jQ=null;var gp,ic,gC;const kQ=({title:t="Background Image",desc:e="Background Image",width:n="18",height:o="18",className:r,focusable:a="false"})=>gp("svg",{className:gC("i i-background-image",r),focusable:a,height:o,viewBox:"0 0 18 18",width:n,children:[ic("title",{children:t}),ic("desc",{children:e}),gp("g",{children:[" ",ic("path",{d:"M7.5,7.5c1.2,0,2.2-1,2.2-2.2c0-1.2-1-2.2-2.2-2.2s-2.2,1-2.2,2.2C5.4,6.6,6.4,7.5,7.5,7.5z M7.5,4.6 c0.4,0,0.8,0.3,0.8,0.8c0,0.4-0.3,0.8-0.8,0.8S6.8,5.8,6.8,5.4C6.8,4.9,7.1,4.6,7.5,4.6z"})," ",ic("path",{d:"M17,0.3H1C0.6,0.3,0.3,0.6,0.3,1v16c0,0.4,0.3,0.7,0.7,0.7h16c0.4,0,0.7-0.3,0.7-0.7V1 C17.7,0.6,17.4,0.3,17,0.3z M16.3,16.3H1.7V1.7h14.6V16.3z"})," ",ic("path",{d:"M3.2,14.8h11.6c0.3,0,0.5-0.1,0.6-0.4c0.1-0.2,0.1-0.5,0-0.7l-3.6-5.8c-0.1-0.2-0.3-0.3-0.6-0.3 c-0.2,0-0.4,0.1-0.6,0.3l-2.4,3L6.6,9.2C6.4,9.1,6.2,9,6,9c-0.2,0-0.4,0.1-0.5,0.3l-2.9,4.4c-0.1,0.2-0.2,0.5,0,0.7 C2.7,14.6,2.9,14.8,3.2,14.8z M6.2,10.8l1.6,1.6c0.1,0.1,0.3,0.2,0.5,0.2c0.2,0,0.4-0.1,0.5-0.3l2.3-2.9l2.4,3.9H4.5L6.2,10.8z"})," "]})]}),AQ=null;var CC,f0,xC;const RQ=({title:t="Bank",desc:e="A building with four columns",width:n="16",height:o="16",className:r,focusable:a="false"})=>CC("svg",{className:xC("i i-bank",r),focusable:a,height:o,viewBox:"0 0 16 16",width:n,children:[f0("title",{children:t}),f0("desc",{children:e}),f0("path",{clipRule:"evenodd",d:"M3.625 7.98905V13.2473H5.375V7.98905H7.125V13.2473H8.875V7.98905H10.625V13.2473H12.375V7.98905H14.125V13.2473H15V15H1V13.2473H1.875V7.98905H3.625ZM7.65 1.06573C7.9125 0.978091 8.0875 0.978091 8.35 1.06573L14.475 3.69484C14.825 3.78247 15 4.13302 15 4.48357V6.23631C15 6.76213 14.65 7.11268 14.125 7.11268H1.875C1.35 7.11268 1 6.76213 1 6.23631V4.48357C1 4.13302 1.175 3.78247 1.525 3.69484L7.65 1.06573ZM8 3.6072C7.475 3.6072 7.125 3.95775 7.125 4.48357C7.125 5.00939 7.475 5.35994 8 5.35994C8.525 5.35994 8.875 5.00939 8.875 4.48357C8.875 3.95775 8.525 3.6072 8 3.6072Z",fillRule:"evenodd"})]}),PQ=null;var bC,Cp,yC;function wQ(t){return bC(yC,{fill:"none",viewBox:"0 0 14 14",...t,children:[Cp("rect",{height:"8.3",stroke:"currentColor",strokeWidth:"1.5",width:"8.3",x:"0.75",y:"0.75"}),Cp("rect",{height:"8.3",rx:"1.35",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",width:"8.3",x:"4.9502",y:"4.9502"})]})}var LC,cc,EC;function MQ(t){return LC(EC,{viewBox:"0 0 14 15",...t,children:[cc("path",{d:"M1 13.25C0.585786 13.25 0.25 13.5858 0.25 14C0.25 14.4142 0.585786 14.75 1 14.75V13.25ZM13.1333 14.75C13.5475 14.75 13.8833 14.4142 13.8833 14C13.8833 13.5858 13.5475 13.25 13.1333 13.25V14.75ZM1 14.75H13.1333V13.25H1V14.75Z"}),cc("path",{d:"M1 0.25C0.585786 0.25 0.25 0.585786 0.25 1C0.25 1.41421 0.585786 1.75 1 1.75V0.25ZM13.1333 1.75C13.5475 1.75 13.8833 1.41421 13.8833 1C13.8833 0.585786 13.5475 0.25 13.1333 0.25V1.75ZM1 1.75H13.1333V0.25H1V1.75Z"}),cc("path",{d:"M6.31641 11.2266C6.31641 11.6408 6.65219 11.9766 7.06641 11.9766C7.48062 11.9766 7.81641 11.6408 7.81641 11.2266L6.31641 11.2266ZM7.81641 5.3334C7.81641 4.91918 7.48062 4.5834 7.06641 4.5834C6.65219 4.5834 6.31641 4.91918 6.31641 5.3334L7.81641 5.3334ZM7.81641 11.2266L7.81641 5.3334L6.31641 5.3334L6.31641 11.2266L7.81641 11.2266Z"}),cc("path",{d:"M5.09404 4.86491C4.83528 5.18836 4.88772 5.66033 5.21117 5.91908C5.53461 6.17784 6.00658 6.1254 6.26534 5.80195L5.09404 4.86491ZM7.06635 3.6001L7.65201 3.13158C7.50968 2.95366 7.29419 2.8501 7.06635 2.8501C6.83852 2.8501 6.62303 2.95366 6.4807 3.13158L7.06635 3.6001ZM7.86737 5.80195C8.12613 6.1254 8.5981 6.17784 8.92154 5.91908C9.24499 5.66033 9.29743 5.18836 9.03867 4.86491L7.86737 5.80195ZM6.26534 5.80195L7.65201 4.06862L6.4807 3.13158L5.09404 4.86491L6.26534 5.80195ZM6.4807 4.06862L7.86737 5.80195L9.03867 4.86491L7.65201 3.13158L6.4807 4.06862Z"}),cc("path",{d:"M9.03878 10.6551C9.29753 10.3317 9.24509 9.85969 8.92165 9.60094C8.5982 9.34218 8.12623 9.39462 7.86747 9.71807L9.03878 10.6551ZM7.06646 11.9199L6.48081 12.3884C6.62314 12.5664 6.83862 12.6699 7.06646 12.6699C7.2943 12.6699 7.50978 12.5664 7.65211 12.3884L7.06646 11.9199ZM6.26544 9.71807C6.00669 9.39462 5.53472 9.34218 5.21127 9.60094C4.88782 9.85969 4.83538 10.3317 5.09414 10.6551L6.26544 9.71807ZM7.86747 9.71807L6.48081 11.4514L7.65211 12.3884L9.03878 10.6551L7.86747 9.71807ZM7.65211 11.4514L6.26544 9.71807L5.09414 10.6551L6.48081 12.3884L7.65211 11.4514Z"})]})}var SC,wl,TC;const OQ=({title:t="All Authors",desc:e="A circle with the outline of the head and shoulders of two people inside",width:n="30",height:o="30",className:r,focusable:a="false"})=>SC("svg",{className:TC("i i-blockTemplateAllAuthors",r),focusable:a,height:o,viewBox:"0 0 30 30",width:n,children:[wl("title",{children:t}),wl("desc",{children:e}),wl("circle",{cx:"14.963",cy:"14.963",fill:"#E9E9E9",r:"14.963"}),wl("path",{d:"M17.482 17.661a3.75 3.75 0 1 1 4.037 0 4.25 4.25 0 0 1 2.231 3.741.75.75 0 1 1-1.5 0 2.75 2.75 0 1 0-5.5 0 .75.75 0 1 1-1.5 0 4.25 4.25 0 0 1 2.232-3.741zm-8.915-3.947a3.75 3.75 0 1 1 3.866 0A4.25 4.25 0 0 1 14.75 17.5a.75.75 0 1 1-1.5 0 2.75 2.75 0 0 0-5.5 0 .75.75 0 1 1-1.5 0 4.25 4.25 0 0 1 2.317-3.786zm1.933-.964a2.25 2.25 0 1 0 0-4.5 2.25 2.25 0 0 0 0 4.5zm9 4a2.25 2.25 0 1 0 0-4.5 2.25 2.25 0 0 0 0 4.5z",fill:"#8894A3"})]}),DQ=null;var Ml,so,IC;const BQ=({title:t="Check Mark",desc:e="A circle with a check mark inside",width:n="112",height:o="112",className:r,focusable:a="false"})=>Ml("svg",{className:IC("i i-blockTemplateCheckMark",r),focusable:a,height:o,viewBox:"0 0 112 112",width:n,children:[so("title",{children:t}),so("desc",{children:e}),so("defs",{children:Ml("filter",{filterUnits:"objectBoundingBox",height:"186.1%",id:"a",width:"186.1%",x:"-43.1%",y:"-40.3%",children:[so("feOffset",{dy:"2",in:"SourceAlpha",result:"shadowOffsetOuter1"}),so("feGaussianBlur",{in:"shadowOffsetOuter1",result:"shadowBlurOuter1",stdDeviation:"10"}),so("feColorMatrix",{in:"shadowBlurOuter1",result:"shadowMatrixOuter1",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0"}),Ml("feMerge",{children:[so("feMergeNode",{in:"shadowMatrixOuter1"}),so("feMergeNode",{in:"SourceGraphic"})]})]})}),Ml("g",{fill:"none",fillRule:"evenodd",filter:"url(#a)",transform:"translate(20 18)",children:[so("path",{className:"outer",d:"M36 65.096c16.07 0 29.096-13.027 29.096-29.096C65.096 19.93 52.069 6.904 36 6.904 19.93 6.904 6.904 19.931 6.904 36c0 16.07 13.027 29.096 29.096 29.096zM36 72C16.118 72 0 55.882 0 36S16.118 0 36 0s36 16.118 36 36-16.118 36-36 36z",fillRule:"nonzero"}),so("circle",{className:"inner",cx:"36",cy:"36",r:"30"}),so("path",{className:"check",d:"M30.054 35.993a1.791 1.791 0 0 0-2.53 0 1.783 1.783 0 0 0 0 2.524l5.972 5.96a1.791 1.791 0 0 0 2.53 0l10.45-10.43a1.783 1.783 0 0 0 0-2.524 1.791 1.791 0 0 0-2.53 0l-9.185 9.167-4.707-4.697z",fillRule:"nonzero"})]})]}),HQ=null;var xp,Ol,NC;const FQ=({title:t="Folder Outline",desc:e="Outline of a folder",width:n="42",height:o="42",className:r,focusable:a="false"})=>xp("svg",{className:NC("i i-blockTemplateFolder",r),focusable:a,height:o,viewBox:"0 0 42 42",width:n,children:[Ol("title",{children:t}),Ol("desc",{children:e}),xp("g",{fill:"#ADAEAF",fillRule:"nonzero",stroke:"#ADAEAF",strokeWidth:".3",children:[Ol("path",{d:"M34.043 6.971a.87.87 0 0 0-.87-.87h-17.53l.7.354-3.756-5.101a.87.87 0 0 0-.7-.354H1.87a.87.87 0 0 0-.87.87v34.434C1 38.894 3.067 41 5.626 41a.87.87 0 1 0 0-1.74c-1.59 0-2.887-1.32-2.887-2.956V1.87l-.87.87h10.018l-.7-.355 3.756 5.102a.87.87 0 0 0 .7.354h17.53l-.869-.87v7.652a.87.87 0 1 0 1.74 0V6.971z"}),Ol("path",{d:"M9.116 36.348a2.906 2.906 0 0 1-2.899 2.913V41h30.145A4.645 4.645 0 0 0 41 36.348V14.913a.87.87 0 0 0-.87-.87H9.986a.87.87 0 0 0-.87.87v21.435zm.87-20.565H40.13l-.87-.87v21.435a2.906 2.906 0 0 1-2.898 2.913H6.217c-1.159 0-1.159 1.739 0 1.739a4.645 4.645 0 0 0 4.638-4.652V14.913l-.87.87z"})]})]}),VQ=null,jC=({width:t="17",height:e="15",title:n="Book",desc:o="Book",focusable:r="false",className:a})=>(0,s.jsxs)("svg",{className:a,focusable:r,height:e,viewBox:"0 0 17 15",width:t,xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("title",{children:n}),(0,s.jsx)("desc",{children:o}),(0,s.jsx)("path",{d:"M8.407 14.529a.68.68 0 0 1-.374 0L.506 12.553A.679.679 0 0 1 0 11.897V.679C0 .234.42-.09.851.023L8.22 1.957 15.589.023a.679.679 0 0 1 .851.656v11.218a.679.679 0 0 1-.506.656L8.407 14.53zM7.541 3.182L1.357 1.56v9.814l6.184 1.623V3.182zm1.358 0v9.814l6.184-1.623V1.56L8.899 3.182z",fill:"#FFF",fillRule:"nonzero"})]});var kC,v0,AC;const UQ=({title:t="Building",desc:e="Building with windows",width:n="18",height:o="18",className:r,focusable:a="false"})=>kC("svg",{className:AC("icon",r),focusable:a,height:o,viewBox:"0 0 18 18",width:n,children:[v0("title",{children:t}),v0("desc",{children:e}),v0("path",{d:"M10.6666 5.66797H11.5C11.721 5.66797 11.9329 5.58017 12.0892 5.42389C12.2455 5.26761 12.3333 5.05565 12.3333 4.83464C12.3333 4.61362 12.2455 4.40166 12.0892 4.24538C11.9329 4.0891 11.721 4.0013 11.5 4.0013H10.6666C10.4456 4.0013 10.2337 4.0891 10.0774 4.24538C9.92109 4.40166 9.83329 4.61362 9.83329 4.83464C9.83329 5.05565 9.92109 5.26761 10.0774 5.42389C10.2337 5.58017 10.4456 5.66797 10.6666 5.66797ZM10.6666 9.0013H11.5C11.721 9.0013 11.9329 8.9135 12.0892 8.75723C12.2455 8.60094 12.3333 8.38898 12.3333 8.16797C12.3333 7.94696 12.2455 7.73499 12.0892 7.57871C11.9329 7.42243 11.721 7.33464 11.5 7.33464H10.6666C10.4456 7.33464 10.2337 7.42243 10.0774 7.57871C9.92109 7.73499 9.83329 7.94696 9.83329 8.16797C9.83329 8.38898 9.92109 8.60094 10.0774 8.75723C10.2337 8.9135 10.4456 9.0013 10.6666 9.0013ZM6.49996 5.66797H7.33329C7.55431 5.66797 7.76627 5.58017 7.92255 5.42389C8.07883 5.26761 8.16663 5.05565 8.16663 4.83464C8.16663 4.61362 8.07883 4.40166 7.92255 4.24538C7.76627 4.0891 7.55431 4.0013 7.33329 4.0013H6.49996C6.27895 4.0013 6.06698 4.0891 5.9107 4.24538C5.75442 4.40166 5.66663 4.61362 5.66663 4.83464C5.66663 5.05565 5.75442 5.26761 5.9107 5.42389C6.06698 5.58017 6.27895 5.66797 6.49996 5.66797ZM6.49996 9.0013H7.33329C7.55431 9.0013 7.76627 8.9135 7.92255 8.75723C8.07883 8.60094 8.16663 8.38898 8.16663 8.16797C8.16663 7.94696 8.07883 7.73499 7.92255 7.57871C7.76627 7.42243 7.55431 7.33464 7.33329 7.33464H6.49996C6.27895 7.33464 6.06698 7.42243 5.9107 7.57871C5.75442 7.73499 5.66663 7.94696 5.66663 8.16797C5.66663 8.38898 5.75442 8.60094 5.9107 8.75723C6.06698 8.9135 6.27895 9.0013 6.49996 9.0013ZM16.5 15.668H15.6666V1.5013C15.6666 1.28029 15.5788 1.06833 15.4225 0.912046C15.2663 0.755766 15.0543 0.667969 14.8333 0.667969H3.16663C2.94561 0.667969 2.73365 0.755766 2.57737 0.912046C2.42109 1.06833 2.33329 1.28029 2.33329 1.5013V15.668H1.49996C1.27895 15.668 1.06698 15.7558 0.910704 15.912C0.754423 16.0683 0.666626 16.2803 0.666626 16.5013C0.666626 16.7223 0.754423 16.9343 0.910704 17.0906C1.06698 17.2468 1.27895 17.3346 1.49996 17.3346H16.5C16.721 17.3346 16.9329 17.2468 17.0892 17.0906C17.2455 16.9343 17.3333 16.7223 17.3333 16.5013C17.3333 16.2803 17.2455 16.0683 17.0892 15.912C16.9329 15.7558 16.721 15.668 16.5 15.668ZM9.83329 15.668H8.16663V12.3346H9.83329V15.668ZM14 15.668H11.5V11.5013C11.5 11.2803 11.4122 11.0683 11.2559 10.912C11.0996 10.7558 10.8876 10.668 10.6666 10.668H7.33329C7.11228 10.668 6.90032 10.7558 6.74404 10.912C6.58776 11.0683 6.49996 11.2803 6.49996 11.5013V15.668H3.99996V2.33464H14V15.668Z"})]}),$Q=null;var g0,lc,RC;const WQ=({title:t="Captions",desc:e="Two capital letter C inside a square",width:n="24",height:o="16",className:r,focusable:a="false"})=>g0("svg",{className:RC("i i-captions",r),focusable:a,height:o,viewBox:"0 0 24 16",width:n,children:[lc("title",{children:t}),lc("desc",{children:e}),g0("g",{fill:"none",fillRule:"evenodd",transform:"translate(-.355)",children:[lc("rect",{height:"13.25",rx:"1",stroke:"#000",strokeWidth:"1.75",width:"18.25",x:"1.447",y:"1.402"}),g0("text",{fill:"#000",fontFamily:"Lato-Black, Lato",fontSize:"9",fontWeight:"700",letterSpacing:".75",children:[lc("tspan",{x:"4.222",y:"11.5",children:"C"})," ",lc("tspan",{x:"10.885",y:"11.5",children:"C"})]})]})]}),_Q=null;var PC,C0;const GQ=({"aria-hidden":t,"aria-label":e,className:n,desc:o,height:r="15",role:a="img",title:i,width:l="16"})=>PC("svg",{"aria-hidden":t,"aria-label":e,className:n,focusable:"false",height:r,role:a,viewBox:"0 0 16 15",width:l,xmlns:"http://www.w3.org/2000/svg",children:[i&&C0("title",{children:i}),o&&C0("desc",{children:o}),C0("path",{d:"M0 0h16v2H0V0zm0 13h16v2H0v-2zm4-9h8a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1z",fill:"currentColor",fillRule:"evenodd"})]}),KQ=null;var wC,x0,MC;const QQ=({title:t="Character",desc:e="Character",width:n="13",height:o="16",className:r,focusable:a="false"})=>wC("svg",{className:MC("i i-character",r),focusable:a,height:o,viewBox:"0 0 13 16",width:n,children:[x0("title",{children:t}),x0("desc",{children:e}),x0("path",{d:"M9.2,8.8c1.3-0.8,2.1-2.3,2.1-3.9c0-2.6-2.1-4.7-4.7-4.7C4,0.2,1.9,2.3,1.9,4.9c0,1.6,0.8,3,2.1,3.9 c-2.1,1-3.6,3.1-3.6,5.6c0,0.4,0.3,0.7,0.7,0.7s0.7-0.3,0.7-0.7c0-2.6,2.2-4.8,4.8-4.8s4.8,2.2,4.8,4.8c0,0.4,0.3,0.7,0.7,0.7 s0.7-0.3,0.7-0.7C12.7,11.9,11.3,9.8,9.2,8.8z M6.6,1.6c1.8,0,3.3,1.5,3.3,3.3S8.4,8.2,6.6,8.2S3.3,6.7,3.3,4.9S4.7,1.6,6.6,1.6z"})]}),ZQ=null;function bp(t){return(0,s.jsx)(Vs,{viewBox:"0 0 11 8",...t,children:(0,s.jsx)("path",{d:"M9.6,0L11,1.3L3.9,8L0,4.3L1.4,3l2.6,2.4L9.6,0z"})})}var OC,b0,DC;const YQ=({"aria-hidden":t,"aria-label":e,className:n,desc:o,height:r="21",role:a="img",title:i,width:l="21"})=>OC("svg",{"aria-hidden":t,"aria-label":e,className:DC("i i-checkMarkFilled",n),focusable:"false",height:r,role:a,viewBox:"0 0 21 21",width:l,xmlns:"http://www.w3.org/2000/svg",children:[i&&b0("title",{children:i}),o&&b0("desc",{children:o}),b0("path",{d:"M10.074 20.959c-5.523 0-10-4.477-10-10s4.477-10 10-10 10 4.477 10 10-4.477 10-10 10zM7.077 10.523a.65.65 0 1 0-.919.919l2.546 2.545a.65.65 0 0 0 .919 0l4.454-4.454a.65.65 0 1 0-.919-.92L9.163 12.61l-2.086-2.086z"})]}),XQ=null;var yp,BC;function JQ(t){return yp(BC,{viewBox:"0 0 7 5",...t,children:yp("path",{d:"M3.104 3.896a.5.5 0 0 0 .707 0l2.543-2.542a.5.5 0 0 0-.708-.708L3.473 2.851 1.353.73a.5.5 0 1 0-.707.707l2.458 2.458Z"})})}var Lp,HC;const qQ=({width:t="16",height:e="16",className:n,focusable:o="false"})=>Lp("svg",{"aria-hidden":"true",className:HC("i i-chevronLeft",n),focusable:o,height:e,viewBox:"0 0 16 16",width:t,children:Lp("polygon",{points:"11.1,15.7 3.4,8 11.1,0.3 12.6,1.7 6.3,8 12.6,14.3 "})}),eZ=null;var Ep,FC;const tZ=t=>Ep(FC,{viewBox:"0 0 6 10",...t,children:Ep("path",{d:"M5.707 1.707A1 1 0 0 0 4.293.293l-4 4a1 1 0 0 0 0 1.414l4 4a1 1 0 0 0 1.414-1.414L2.414 5l3.293-3.293z",fillRule:"nonzero"})}),sZ=null,VC=({className:t,dataTestId:e})=>(0,s.jsx)("svg",{"aria-hidden":"true",className:t,"data-testid":e,fill:"currentColor",focusable:"false",viewBox:"0 0 10 10",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("circle",{cx:"5",cy:"5",r:"5"})});var Sp,Dl,zC;const oZ=({title:t="Clock",desc:e="Image of a clock with two hands",width:n="14",height:o="13",className:r,focusable:a="false"})=>Sp("svg",{className:zC("i",r),focusable:a,height:o,viewBox:"0 0 14 13",width:n,children:[Dl("title",{children:t}),Dl("desc",{children:e}),Sp("g",{children:[Dl("path",{d:"M7 11.375C5.70829 11.371 4.47061 10.8562 3.55722 9.94277C2.64384 9.02939 2.12896 7.79171 2.125 6.5C2.12896 5.20829 2.64384 3.97061 3.55722 3.05722C4.47061 2.14384 5.70829 1.62896 7 1.625C8.29171 1.62896 9.52939 2.14384 10.4428 3.05722C11.3562 3.97061 11.871 5.20829 11.875 6.5C11.871 7.79171 11.3562 9.02939 10.4428 9.94277C9.52939 10.8562 8.29171 11.371 7 11.375ZM7 0C3.425 0 0.5 2.925 0.5 6.5C0.5 10.075 3.425 13 7 13C10.575 13 13.5 10.075 13.5 6.5C13.5 2.925 10.575 0 7 0Z"}),Dl("path",{d:"M7.81299 3.25H6.18799V7.313H10.25V5.688H7.81199L7.81299 3.25Z"})]})]}),rZ=null,UC=({className:t})=>(0,s.jsx)("svg",{"aria-hidden":"true",className:t,fill:"currentColor",foocusable:"false",viewBox:"0 0 10 10",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("path",{d:"M9.78572 9.78572C9.5 10.0714 9.07143 10.0714 8.78571 9.78572L5 6.00001L1.21429 9.78572C0.928571 10.0714 0.500001 10.0714 0.214285 9.78572C-0.0714284 9.49999 -0.0714284 9.07144 0.214285 8.78571L4 5L0.214285 1.21429C-0.0714284 0.928564 -0.0714284 0.500007 0.214285 0.214279C0.357143 0.0714143 0.500001 0 0.714286 0C0.928571 0 1.07143 0.0714143 1.21429 0.214279L5 3.99999L8.78571 0.214279C8.92857 0.0714143 9.14286 0 9.28572 0C9.42857 0 9.64286 0.0714143 9.78572 0.214279C10.0714 0.500007 10.0714 0.928564 9.78572 1.21429L6 5L9.78572 8.78571C10.0714 9.07144 10.0714 9.49999 9.78572 9.78572Z"})});var $C,Tp,WC;function iZ(t){return $C(WC,{viewBox:"0 0 16 16",...t,children:[Tp("path",{d:"M5 7C4.44772 7 4 7.44772 4 8C4 8.55228 4.44772 9 5 9L12.5858 9L10.2929 11.2929C9.90237 11.6834 9.90237 12.3166 10.2929 12.7071C10.6834 13.0976 11.3166 13.0976 11.7071 12.7071L15.7071 8.70711C16.0976 8.31658 16.0976 7.68342 15.7071 7.29289L11.7071 3.29289C11.3166 2.90237 10.6834 2.90237 10.2929 3.29289C9.90237 3.68342 9.90237 4.31658 10.2929 4.70711L12.5858 7L5 7Z"}),Tp("path",{d:"M1.19249e-08 15C5.33895e-09 15.5523 0.447716 16 1 16C1.55228 16 2 15.5523 2 15L2 1C2 0.447716 1.55228 1.85108e-08 1 1.19249e-08C0.447716 5.33896e-09 1.85459e-07 0.447716 1.78873e-07 1L1.19249e-08 15Z"})]})}var _C,Rn;const cZ=({"aria-hidden":t,"aria-label":e,className:n,desc:o,height:r="18",role:a="img",title:i,width:l="18"})=>_C("svg",{"aria-hidden":t,"aria-label":e,className:n,fill:"none",focusable:"false",height:r,role:a,viewBox:"0 0 18 18",width:l,xmlns:"http://www.w3.org/2000/svg",children:[i&&Rn("title",{children:i}),o&&Rn("desc",{children:o}),Rn("path",{d:"M9 9V1a8 8 0 015.657 2.343L9 9z",fill:"red",stroke:"#fff",strokeLinejoin:"round"}),Rn("path",{d:"M9 9l5.657-5.656A8 8 0 0117 9H9z",fill:"#F90",stroke:"#fff",strokeLinejoin:"round"}),Rn("path",{d:"M9 9h8a8 8 0 01-2.343 5.657L9 9z",fill:"#FFF500",stroke:"#fff",strokeLinejoin:"round"}),Rn("path",{d:"M9 9l5.657 5.657A8 8 0 019 17V9z",fill:"#ADFF00",stroke:"#fff",strokeLinejoin:"round"}),Rn("path",{d:"M9 9v8a8 8 0 01-5.657-2.343L9 9z",fill:"#00FF94",stroke:"#fff",strokeLinejoin:"round"}),Rn("path",{d:"M9 9l-5.657 5.657A8 8 0 011 9h8z",fill:"#06F",stroke:"#fff",strokeLinejoin:"round"}),Rn("path",{d:"M9 9H1a8 8 0 012.343-5.656L9 9z",fill:"#8000FF",stroke:"#fff",strokeLinejoin:"round"}),Rn("path",{d:"M9 9L3.343 3.343A8 8 0 019 1v8z",fill:"#EB00FF",stroke:"#fff",strokeLinejoin:"round"}),Rn("path",{d:"M9 6a3 3 0 110 6 3 3 0 010-6z",fill:"#fff"}),Rn("path",{d:"M9 17A8 8 0 109 1a8 8 0 000 16z",stroke:"#EAEAEB"})]}),lZ=null;var GC,y0,KC;const dZ=({title:t="Continue Block",desc:e="Continue Block",width:n="17",height:o="17",className:r,focusable:a="false"})=>GC("svg",{className:KC("i i-continue-block",r),focusable:a,height:o,viewBox:"0 0 17 17",width:n,children:[y0("title",{children:t}),y0("desc",{children:e}),y0("path",{d:"M9.25 11.5h3l-4 5-4-5h3v-7h2v7zm6-9h-14a1 1 0 0 1 0-2h14a1 1 0 0 1 0 2zm-10 4v2h-4a1 1 0 0 1 0-2h4zm10 0a1 1 0 0 1 0 2h-4v-2h4z",fillRule:"evenodd"})]}),uZ=null;var QC,L0,ZC;const hZ=({title:t="Convert",desc:e="Convert to block",width:n="14",height:o="12",className:r,focusable:a="false"})=>QC("svg",{className:ZC("i i-convert",r),focusable:a,height:o,viewBox:"0 0 14 12",width:n,children:[L0("title",{children:t}),L0("desc",{children:e}),L0("path",{d:"M9.625 5.143V2.57L14 6 9.625 9.429V6.857H.875A.867.867 0 0 1 0 6c0-.473.392-.857.875-.857h8.75zM7 1.714H.875A.867.867 0 0 1 0 .857C0 .384.392 0 .875 0H7c.483 0 .875.384.875.857A.867.867 0 0 1 7 1.714zM7 12H.875A.867.867 0 0 1 0 11.143c0-.473.392-.857.875-.857H7c.483 0 .875.384.875.857A.867.867 0 0 1 7 12z",fillRule:"evenodd"})]}),mZ=null;var YC,Ip,XC;function pZ(t){return YC(XC,{...t,viewBox:"0 0 16 16",children:[Ip("path",{clipRule:"evenodd",d:"M7.33341 6.6665C6.96522 6.6665 6.66675 6.96498 6.66675 7.33317V13.3332C6.66675 13.7014 6.96522 13.9998 7.33341 13.9998H13.3334C13.7016 13.9998 14.0001 13.7014 14.0001 13.3332V7.33317C14.0001 6.96498 13.7016 6.6665 13.3334 6.6665H7.33341ZM5.33341 7.33317C5.33341 6.2286 6.22884 5.33317 7.33341 5.33317H13.3334C14.438 5.33317 15.3334 6.2286 15.3334 7.33317V13.3332C15.3334 14.4377 14.438 15.3332 13.3334 15.3332H7.33341C6.22884 15.3332 5.33341 14.4377 5.33341 13.3332V7.33317Z",fillRule:"evenodd"}),Ip("path",{clipRule:"evenodd",d:"M2.66675 1.99984C2.48994 1.99984 2.32037 2.07008 2.19534 2.1951C2.07032 2.32012 2.00008 2.48969 2.00008 2.6665V8.6665C2.00008 8.84331 2.07032 9.01288 2.19534 9.13791C2.32037 9.26293 2.48994 9.33317 2.66675 9.33317H3.33341C3.7016 9.33317 4.00008 9.63165 4.00008 9.99984C4.00008 10.368 3.7016 10.6665 3.33341 10.6665H2.66675C2.13631 10.6665 1.62761 10.4558 1.25253 10.0807C0.877462 9.70564 0.666748 9.19694 0.666748 8.6665V2.6665C0.666748 2.13607 0.877462 1.62736 1.25253 1.25229C1.62761 0.877217 2.13632 0.666504 2.66675 0.666504H8.66675C9.19718 0.666504 9.70589 0.877218 10.081 1.25229C10.456 1.62736 10.6667 2.13607 10.6667 2.6665V3.33317C10.6667 3.70136 10.3683 3.99984 10.0001 3.99984C9.63189 3.99984 9.33341 3.70136 9.33341 3.33317V2.6665C9.33341 2.48969 9.26318 2.32012 9.13815 2.1951C9.01313 2.07007 8.84356 1.99984 8.66675 1.99984H2.66675Z",fillRule:"evenodd"})]})}var JC,E0,qC;const fZ=({title:t="Copy",desc:e="A document stacked on top of another one",width:n="15",height:o="18",className:r=null,focusable:a="false"})=>JC("svg",{className:qC("i i-stack",r),focusable:a,height:o,viewBox:"0 0 15 18",width:n,children:[E0("title",{children:t}),E0("desc",{children:e}),E0("path",{d:"M14.7,4.1C14.7,4.1,14.7,4.1,14.7,4.1c0-0.1-0.1-0.2-0.1-0.2c0,0,0,0,0,0L11,0.4c0,0-0.1,0-0.1-0.1 c0,0-0.1,0-0.1-0.1c-0.1,0-0.2,0-0.2,0H3.5c-0.3,0-0.6,0.3-0.6,0.6v3h-2c-0.3,0-0.6,0.3-0.6,0.6v12.6c0,0.3,0.3,0.6,0.6,0.6h10.6 c0.3,0,0.6-0.3,0.6-0.6v-3h2c0.3,0,0.6-0.3,0.6-0.6V4.3C14.7,4.2,14.7,4.2,14.7,4.1z M11.2,2.4l1.4,1.3h-1.4V2.4z M9.9,7.3H8.6V6 L9.9,7.3z M7.9,8.6h2.9v7.9H1.5V5.1h5.8v2.8C7.3,8.3,7.6,8.6,7.9,8.6z M12.1,7.9c0-0.1,0-0.2,0-0.2c0,0,0,0,0,0 c0-0.1-0.1-0.1-0.1-0.2c0,0,0,0,0,0L8.4,4c0,0-0.1,0-0.1-0.1c0,0-0.1,0-0.1-0.1c-0.1,0-0.2,0-0.2,0H4.1V1.5H10v2.8 C10,4.7,10.2,5,10.6,5h2.9v7.9h-1.4V7.9z"})]}),vZ=null;var e4,S0,t4;const gZ=({title:t="Copy lesson",desc:e="Copy lesson",width:n="15",height:o="15",className:r,focusable:a="false"})=>e4("svg",{className:t4("i",r),focusable:a,height:o,viewBox:"0 0 15 15",width:n,children:[S0("title",{children:t}),S0("desc",{children:e}),S0("path",{d:"M14 14H7.364V7.364H14V14zM1 7.636V1h6.636v5.364h-.772c-.277 0-.5.223-.5.5v.772H1zm13.5-1.272a.5.5 0 0 1 .5.5V14.5a.5.5 0 0 1-.5.5H6.864a.5.5 0 0 1-.5-.5V8.636H.5a.5.5 0 0 1-.5-.5V.5A.5.5 0 0 1 .5 0h7.636a.5.5 0 0 1 .5.5v5.864H14.5zm0-3.819a.5.5 0 0 1 .5.5v1.91a.5.5 0 1 1-1 0v-1.41h-2.748l1.056 1.056a.5.5 0 0 1-.707.707L9.692 3.4a.505.505 0 0 1-.147-.354.505.505 0 0 1 .147-.354L11.601.782a.5.5 0 0 1 .707.707l-1.056 1.056H14.5zm-9.084 9.219a.505.505 0 0 1 .039.19.506.506 0 0 1-.147.354l-1.909 1.91a.502.502 0 0 1-.707 0 .5.5 0 0 1 0-.707l1.056-1.056H.5a.5.5 0 0 1-.5-.5v-1.91a.5.5 0 1 1 1 0v1.41h2.748l-1.056-1.056a.5.5 0 0 1 .707-.707L5.308 11.6a.493.493 0 0 1 .108.163z",fillRule:"evenodd"})]}),CZ=null;var s4,Bl;const xZ=({title:t="Corner up-right",desc:e="An arrow moving up & to the right",width:n="16",height:o="16",className:r,focusable:a="false"})=>s4("svg",{className:r,fill:"none",focusable:a,height:o,viewBox:"0 0 16 16",width:n,xmlns:"http://www.w3.org/2000/svg",children:[Bl("title",{children:t}),Bl("desc",{children:e}),Bl("path",{clipRule:"evenodd",d:"M9.5286 2.19526C9.78895 1.93491 10.2111 1.93491 10.4714 2.19526L13.8047 5.5286C14.0651 5.78894 14.0651 6.21106 13.8047 6.4714L10.4714 9.80474C10.2111 10.0651 9.78895 10.0651 9.5286 9.80474C9.26825 9.54439 9.26825 9.12228 9.5286 8.86193L12.3905 6L9.5286 3.13807C9.26825 2.87772 9.26825 2.45561 9.5286 2.19526Z",fill:"currentColor",fillRule:"evenodd"}),Bl("path",{clipRule:"evenodd",d:"M5.33333 6.66667C4.8029 6.66667 4.29419 6.87738 3.91912 7.25245C3.54405 7.62753 3.33333 8.13623 3.33333 8.66667V13.3333C3.33333 13.7015 3.03486 14 2.66667 14C2.29848 14 2 13.7015 2 13.3333V8.66667C2 7.78261 2.35119 6.93477 2.97631 6.30964C3.60143 5.68452 4.44928 5.33333 5.33333 5.33333H13.3333C13.7015 5.33333 14 5.63181 14 6C14 6.36819 13.7015 6.66667 13.3333 6.66667H5.33333Z",fill:"currentColor",fillRule:"evenodd"})]}),bZ=null;var n4,T0,o4;const yZ=t=>{const{className:e,desc:n="Crop",focusable:o="false",height:r="19",title:a="Crop",width:i="19"}=t,l={className:o4("i i-crop",e),focusable:o,height:r,viewBox:`0 0 ${i} ${r}`,width:i};return n4("svg",{...l,children:[T0("title",{children:a}),T0("desc",{children:n}),T0("path",{d:"M15 13h3.003c.55 0 .997.444.997 1 0 .552-.453 1-.997 1H15v3.003c0 .55-.444.997-1 .997-.552 0-1-.453-1-.997V15H4.996A.995.995 0 0 1 4 14.004V6H.997A.996.996 0 0 1 0 5c0-.552.453-1 .997-1H4V.997C4 .447 4.444 0 5 0c.552 0 1 .453 1 .997V4h8.004c.55 0 .996.445.996.996V13zm-9 0h7V6H6v7z",fillRule:"evenodd"})]})},LZ=null;var r4,I0,a4;const EZ=({"aria-hidden":t,"aria-label":e="Dash mark",className:n,desc:o,height:r="3",role:a="img",title:i,width:l="7"})=>r4("svg",{"aria-hidden":t,"aria-label":e,className:a4("i i-dashMark",n),focusable:"false",height:r,role:a,viewBox:"0 0 7 3",width:l,xmlns:"http://www.w3.org/2000/svg",children:[i&&I0("title",{children:i}),o&&I0("desc",{children:o}),I0("rect",{height:"3",width:"7"})]}),SZ=null;var i4,Np;const TZ=({width:t="20",height:e="20",focusable:n="false"})=>i4("svg",{fill:"none",focusable:n,height:e,viewBox:"0 0 20 20",width:t,xmlns:"http://www.w3.org/2000/svg",children:[Np("path",{clipRule:"evenodd",d:"M15.449 2.03415C16.2057 1.24516 17.4414 1.16956 18.2886 1.86043C19.161 2.57182 19.3163 3.84495 18.6406 4.74523L11.7164 13.9708C10.7635 15.2403 8.94583 15.4621 7.71568 14.4589C6.45117 13.4278 6.3355 11.537 7.46489 10.3594L15.449 2.03415ZM17.2353 3.15207C17.0613 3.01013 16.8074 3.02566 16.6519 3.18776L8.66778 11.513C8.21204 11.9882 8.25871 12.7512 8.76899 13.1673C9.26539 13.5721 9.9989 13.4826 10.3834 12.9703L17.3077 3.74476C17.4465 3.5598 17.4146 3.29823 17.2353 3.15207Z",fill:"currentColor",fillRule:"evenodd"}),Np("path",{clipRule:"evenodd",d:"M6.24929 18.535C4.49357 18.9784 2.44605 18.6701 0.604997 17.6473C0.305936 17.4811 0.138803 17.1491 0.183513 16.8099C0.228225 16.4707 0.475696 16.1933 0.807595 16.1104C1.91332 15.8339 2.71474 14.9884 3.65265 13.9988C3.73743 13.9094 3.82332 13.8188 3.91065 13.7273C4.39823 13.2165 4.95363 12.6632 5.59452 12.3031C6.27583 11.9204 7.06497 11.7491 7.96604 12.0065L7.50816 13.6091C7.10117 13.4928 6.76904 13.555 6.4108 13.7562C6.01216 13.9802 5.60974 14.3611 5.11619 14.8782C5.02687 14.9717 4.93462 15.0701 4.83919 15.1719C4.33778 15.7067 3.74851 16.3352 3.03433 16.8502C4.03071 17.1168 5.00421 17.1304 5.84113 16.919C7.10848 16.5989 8.06772 15.7708 8.42833 14.4559L10.0356 14.8967C9.49766 16.8584 8.02754 18.0858 6.24929 18.535Z",fill:"currentColor",fillRule:"evenodd"})]}),IZ=null,c4=({title:t="DestinationArrow",desc:e="DestinationArrow",width:n="13",height:o="10",className:r,focusable:a="false"})=>(0,s.jsxs)("svg",{className:Z()("i i-destinationArrow",r),focusable:a,height:o,viewBox:"0 0 13 10",width:n,children:[(0,s.jsx)("title",{children:t}),(0,s.jsx)("desc",{children:e}),(0,s.jsx)("path",{d:"M0 5c0 .345.264.625.59.625h10.393L7.855 8.933a.65.65 0 0 0 0 .884.573.573 0 0 0 .418.183.573.573 0 0 0 .418-.183l4.136-4.374a.66.66 0 0 0 0-.885L8.691.183a.568.568 0 0 0-.836 0 .65.65 0 0 0 0 .884l3.128 3.308H.591C.264 4.375 0 4.655 0 5"})]});var l4,N0,d4;const jZ=({title:t="Dialogue Slide",desc:e="Dialogue Slide",width:n="16",height:o="16",className:r,focusable:a="false"})=>l4("svg",{className:d4("i i-dialogue-slide",r),focusable:a,height:o,viewBox:"0 0 16 16",width:n,children:[N0("title",{children:t}),N0("desc",{children:e}),N0("path",{d:"M14 11h-3c-.3 0-.5.1-.7.3L8 13.6l-2.3-2.3c-.2-.2-.4-.3-.7-.3H2V2h12v9zm1-11H1C.4 0 0 .4 0 1v11c0 .6.4 1 1 1h3.6l2.7 2.7c.2.2.4.3.7.3.3 0 .5-.1.7-.3l2.7-2.7H15c.6 0 1-.4 1-1V1c0-.6-.4-1-1-1z",fillRule:"evenodd"})]}),kZ=null;var u4,dc;const AZ=({title:t="Disk",desc:e="An old floppy disk",width:n="16",height:o="16",className:r,focusable:a="false"})=>u4("svg",{className:r,fill:"none",focusable:a,height:o,viewBox:"0 0 16 16",width:n,xmlns:"http://www.w3.org/2000/svg",children:[dc("title",{children:t}),dc("desc",{children:e}),dc("path",{clipRule:"evenodd",d:"M3.33337 2.66659C3.15656 2.66659 2.98699 2.73682 2.86197 2.86185C2.73695 2.98687 2.66671 3.15644 2.66671 3.33325V12.6666C2.66671 12.8434 2.73695 13.013 2.86197 13.138C2.98699 13.263 3.15656 13.3333 3.33337 13.3333H12.6667C12.8435 13.3333 13.0131 13.263 13.1381 13.138C13.2631 13.013 13.3334 12.8434 13.3334 12.6666V5.6094L10.3906 2.66659H3.33337ZM1.91916 1.91904C2.29423 1.54397 2.80294 1.33325 3.33337 1.33325H10.6667C10.8435 1.33325 11.0131 1.40349 11.1381 1.52851L14.4714 4.86185C14.5965 4.98687 14.6667 5.15644 14.6667 5.33325V12.6666C14.6667 13.197 14.456 13.7057 14.0809 14.0808C13.7058 14.4559 13.1971 14.6666 12.6667 14.6666H3.33337C2.80294 14.6666 2.29423 14.4559 1.91916 14.0808C1.54409 13.7057 1.33337 13.197 1.33337 12.6666V3.33325C1.33337 2.80282 1.54409 2.29411 1.91916 1.91904Z",fill:"currentColor",fillRule:"evenodd"}),dc("path",{clipRule:"evenodd",d:"M4.00004 8.66659C4.00004 8.2984 4.29852 7.99992 4.66671 7.99992H11.3334C11.7016 7.99992 12 8.2984 12 8.66659V13.9999C12 14.3681 11.7016 14.6666 11.3334 14.6666C10.9652 14.6666 10.6667 14.3681 10.6667 13.9999V9.33325H5.33337V13.9999C5.33337 14.3681 5.0349 14.6666 4.66671 14.6666C4.29852 14.6666 4.00004 14.3681 4.00004 13.9999V8.66659Z",fill:"currentColor",fillRule:"evenodd"}),dc("path",{clipRule:"evenodd",d:"M4.66671 1.33325C5.0349 1.33325 5.33337 1.63173 5.33337 1.99992V4.66659H10C10.3682 4.66659 10.6667 4.96506 10.6667 5.33325C10.6667 5.70144 10.3682 5.99992 10 5.99992H4.66671C4.29852 5.99992 4.00004 5.70144 4.00004 5.33325V1.99992C4.00004 1.63173 4.29852 1.33325 4.66671 1.33325Z",fill:"currentColor",fillRule:"evenodd"})]}),RZ=null;var h4,PZ;class wZ extends null{render(){return h4("svg",{"aria-hidden":this.props.decorative,"aria-label":this.props.title,className:this.props.className,focusable:"false",height:this.props.height,role:this.props.role,version:"1.1",viewBox:this.props.viewBox,width:this.props.width,xmlns:"http://www.w3.org/2000/svg",children:this.props.children})}}const MZ=null;var jp,m4;const OZ=({width:t=20,height:e=20,...n})=>jp(m4,{height:e,width:t,...n,viewBox:"0 0 20 20",children:jp("path",{d:"M10 0c5.523 0 10 4.477 10 10s-4.477 10-10 10S0 15.523 0 10 4.477 0 10 0zm2.634 7.679l-3.506 3.505-2.054-2.055a.7.7 0 00-.99.99l2.55 2.55a.7.7 0 00.99 0l4-4a.7.7 0 00-.99-.99z",fillRule:"evenodd"})}),DZ=null;var p4,j0,f4;const BZ=({title:t="Vertical Dots",desc:e="Vertical Dots",width:n="4",height:o="24",className:r=null,focusable:a="false"})=>p4("svg",{className:f4("i i-dotsVertical",r),focusable:a,height:o,viewBox:"0 0 4 24",width:n,children:[j0("title",{children:t}),j0("desc",{children:e}),j0("path",{d:"M2 24a2 2 0 1 1 0-4 2 2 0 0 1 0 4zm0-10a2 2 0 1 1 0-4 2 2 0 0 1 0 4zM2 4a2 2 0 1 1 0-4 2 2 0 0 1 0 4z",fillRule:"evenodd"})]}),HZ=null,v4=({title:t="Download",desc:e="Arrow down with horizontal line beneath it",width:n="16",height:o="19",className:r,focusable:a="false"},i)=>(0,s.jsxs)("svg",{className:Z()("i i-download",r),focusable:a,height:o,ref:i,viewBox:"0 0 16 19",width:n,children:[(0,s.jsx)("title",{children:t}),(0,s.jsx)("desc",{children:e}),(0,s.jsx)("rect",{height:"2",rx:"1",width:"16",y:"17"}),(0,s.jsx)("path",{d:"M4.464 8.293A1 1 0 1 0 3.05 9.707l4.24 4.24c.4.4 1.028.392 1.42 0l4.24-4.24a1 1 0 1 0-1.414-1.414L8 4.757 4.464 8.293zm0 0L8 4.757l3.536 3.536L8 11.828 4.464 8.293z"}),(0,s.jsx)("path",{d:"M7 0h2v12H7z"})]}),g4=(0,h.forwardRef)(v4);var C4,uc,x4;const FZ=({title:t="Download Circle",desc:e="Arrow down with horizontal line beneath it wrapped up in a circle",width:n="51",height:o="51",className:r,focusable:a="false"})=>C4("svg",{className:x4("i i-downloadCircle",r),focusable:a,height:o,viewBox:"0 0 51 51",width:n,children:[uc("title",{children:t}),uc("desc",{children:e}),uc("g",{fill:"none",stroke:"none",children:uc("g",{fill:"#000",transform:"translate(-695, -227)",children:uc("path",{d:"M721,255.395113 L726.834932,249.560181 C727.225456,249.169656 727.858621,249.169656 728.249146,249.560181 C728.63967,249.950705 728.63967,250.58387 728.249146,250.974394 L720.824726,258.398814 C720.796316,258.436777 720.764856,258.473181 720.730347,258.507691 C720.339822,258.898215 719.706657,258.898215 719.316133,258.507691 L711.799485,250.991042 C711.408961,250.600518 711.408961,249.967353 711.799485,249.576829 C712.190009,249.186304 712.823174,249.186304 713.213699,249.576829 L719,255.36313 L719,240.783936 C719,240.231651 719.447715,239.783936 720,239.783936 C720.552285,239.783936 721,240.231651 721,240.783936 L721,255.395113 Z M720.059082,277.569336 C706.251963,277.569336 695.059082,266.376455 695.059082,252.569336 C695.059082,238.762217 706.251963,227.569336 720.059082,227.569336 C733.866201,227.569336 745.059082,238.762217 745.059082,252.569336 C745.059082,266.376455 733.866201,277.569336 720.059082,277.569336 Z M720.059082,275.569336 C732.761631,275.569336 743.059082,265.271885 743.059082,252.569336 C743.059082,239.866787 732.761631,229.569336 720.059082,229.569336 C707.356533,229.569336 697.059082,239.866787 697.059082,252.569336 C697.059082,265.271885 707.356533,275.569336 720.059082,275.569336 Z M712,264 C711.447715,264 711,263.552285 711,263 C711,262.447715 711.447715,262 712,262 L728,262 C728.552285,262 729,262.447715 729,263 C729,263.552285 728.552285,264 728,264 L712,264 Z"})})})]}),VZ=null;var b4,kp,y4;function zZ(t){return b4(y4,{viewBox:"0 0 13 13",...t,children:[kp("path",{d:"M7.08297 7.92452V1.49952C7.08297 1.34476 7.02149 1.19635 6.91207 1.08692C6.80264 0.977491 6.65422 0.916016 6.49947 0.916016C6.34472 0.916016 6.1963 0.977491 6.08687 1.08692C5.97745 1.19635 5.91597 1.34476 5.91597 1.49952V7.92452L4.57997 6.58652C4.47057 6.47711 4.32219 6.41565 4.16747 6.41565C4.01275 6.41565 3.86437 6.47711 3.75497 6.58652C3.64557 6.69592 3.58411 6.8443 3.58411 6.99902C3.58411 7.15373 3.64557 7.30211 3.75497 7.41152L6.08797 9.74552C6.19771 9.85428 6.34596 9.91529 6.50047 9.91529C6.65497 9.91529 6.80323 9.85428 6.91297 9.74552L9.24597 7.41152C9.34926 7.30115 9.40564 7.15499 9.40323 7.00385C9.40082 6.85271 9.3398 6.70842 9.23304 6.60141C9.12629 6.49439 8.98215 6.43303 8.83102 6.43025C8.67989 6.42747 8.53358 6.4835 8.42297 6.58652L7.08197 7.92452H7.08297Z"}),kp("path",{d:"M11.4 11.4824H1.60002V4.68242H3.00002C3.15915 4.68242 3.31177 4.61921 3.42429 4.50669C3.53681 4.39416 3.60002 4.24155 3.60002 4.08242C3.60002 3.92329 3.53681 3.77068 3.42429 3.65816C3.31177 3.54564 3.15915 3.48242 3.00002 3.48242H1.00002C0.840895 3.48242 0.688282 3.54564 0.57576 3.65816C0.463239 3.77068 0.400024 3.92329 0.400024 4.08242V12.0824C0.400024 12.2416 0.463239 12.3942 0.57576 12.5067C0.688282 12.6192 0.840895 12.6824 1.00002 12.6824H12C12.1592 12.6824 12.3118 12.6192 12.4243 12.5067C12.5368 12.3942 12.6 12.2416 12.6 12.0824V4.08242C12.6 3.92329 12.5368 3.77068 12.4243 3.65816C12.3118 3.54564 12.1592 3.48242 12 3.48242H10C9.92123 3.48242 9.84321 3.49794 9.77041 3.52809C9.69762 3.55825 9.63148 3.60244 9.57576 3.65816C9.52005 3.71387 9.47585 3.78002 9.4457 3.85281C9.41554 3.92561 9.40002 4.00363 9.40002 4.08242C9.40002 4.16122 9.41554 4.23924 9.4457 4.31203C9.47585 4.38483 9.52005 4.45097 9.57576 4.50669C9.63148 4.5624 9.69762 4.6066 9.77041 4.63675C9.84321 4.6669 9.92123 4.68242 10 4.68242H11.4V11.4824Z"})]})}var L4,Hl,E4;const UZ=({title:t="Draw",desc:e="Arrow down with horizontal line beneath it",width:n="15",height:o="15",className:r,focusable:a="false"})=>L4("svg",{className:E4("i i-drawFromQuestionBank",r),focusable:a,height:o,viewBox:"0 0 15 15",width:n,children:[Hl("title",{children:t}),Hl("desc",{children:e}),Hl("path",{d:"M8.15625 10.9688C7.96875 11.1562 7.78125 11.25 7.5 11.25C7.21875 11.25 7.03125 11.1562 6.84375 10.9688L1.5 5.625L2.8125 4.3125L6.5625 8.0625V0H8.4375V8.0625L12.1875 4.3125L13.5 5.625L8.15625 10.9688Z"}),Hl("path",{d:"M1.875 10.3125V13.125H13.125V10.3125H15V14.0625C15 14.625 14.625 15 14.0625 15H0.9375C0.375 15 0 14.625 0 14.0625V10.3125H1.875Z"})]}),$Z=null;var S4,k0,T4;const WZ=t=>S4(T4,{height:"16",viewBox:"0 0 16 4",width:"4",...t,children:[k0("path",{d:"M8,0 C9.105,0 10,0.895 10,2 C10,3.105 9.105,4 8,4 C6.895,4 6,3.105 6,2 C6,0.895 6.895,0 8,0"}),k0("path",{d:"M2,0 C3.105,0 4,0.895 4,2 C4,3.105 3.105,4 2,4 C0.895,4 0,3.105 0,2 C0,0.895 0.895,0 2,0"}),k0("path",{d:"M14,0 C15.105,0 16,0.895 16,2 C16,3.105 15.105,4 14,4 C12.895,4 12,3.105 12,2 C12,0.895 12.895,0 14,0"})]}),_Z=null;var I4,hc,N4;const GZ=({title:t="More",desc:e="Three dots next to one another",width:n="16",height:o="4",className:r=null,focusable:a="false"})=>I4("svg",{className:N4("i",r),focusable:a,height:o,viewBox:"0 0 16 4",width:n,children:[hc("title",{children:t}),hc("desc",{children:e}),hc("path",{d:"M8,0 C9.105,0 10,0.895 10,2 C10,3.105 9.105,4 8,4 C6.895,4 6,3.105 6,2 C6,0.895 6.895,0 8,0"}),hc("path",{d:"M2,0 C3.105,0 4,0.895 4,2 C4,3.105 3.105,4 2,4 C0.895,4 0,3.105 0,2 C0,0.895 0.895,0 2,0"}),hc("path",{d:"M14,0 C15.105,0 16,0.895 16,2 C16,3.105 15.105,4 14,4 C12.895,4 12,3.105 12,2 C12,0.895 12.895,0 14,0"})]}),KZ=null;var Ap,mc,j4;const QZ=({title:t="Draggable",desc:e="Three dots stacked on top of one another",width:n="4",height:o="14",className:r,focusable:a="false"})=>Ap("svg",{className:j4("i i-ellipsis--vert",r),focusable:a,height:o,viewBox:"0 0 4 14",width:n,children:[mc("title",{children:t}),mc("desc",{children:e}),Ap("g",{transform:"translate(.158 .445)",children:[mc("circle",{cx:"1.5",cy:"11.5",r:"1.5"}),mc("circle",{cx:"1.5",cy:"6.5",r:"1.5"}),mc("circle",{cx:"1.5",cy:"1.5",r:"1.5"})]})]}),ZZ=null;var k4,A0,A4;const YZ=({title:t="Embed",desc:e="Embed icon",width:n="16",height:o="15",className:r,focusable:a="false"})=>k4("svg",{className:A4("i i-embed",r),focusable:a,height:o,viewBox:"0 0 16 15",width:n,children:[A0("title",{children:t}),A0("desc",{children:e}),A0("path",{d:"M13.2 11.263l-1.4-1.4 2.3-2.3-2.3-2.3 1.4-1.4 3 3c.4.4.4 1 0 1.4l-3 3M3.8 11.263l-3-3c-.4-.4-.4-1 0-1.4l3-3 1.4 1.4-2.3 2.3 2.3 2.3-1.4 1.4M6.5 14.563c-.1 0-.2 0-.3-.1-.5-.2-.8-.7-.6-1.3l4-12c.2-.5.7-.8 1.3-.6.5.2.8.7.6 1.3l-4 12c-.2.4-.6.7-1 .7"})]}),XZ=null;var R4,Fl,P4;const JZ=({title:t="Empty folder",desc:e="Empty folder",width:n="46",height:o="46",className:r,focusable:a="false"})=>R4("svg",{className:P4("i i-emptyFolder",r),focusable:a,height:o,viewBox:"0 0 46 46",width:n,children:[Fl("title",{children:t}),Fl("desc",{children:e}),Fl("path",{d:"M38 6.867a1 1 0 0 0-1-1H16.84l.805.407-4.32-5.867A1 1 0 0 0 12.52 0H1a1 1 0 0 0-1 1v39.6C0 43.578 2.377 46 5.32 46a1 1 0 0 0 0-2C3.49 44 2 42.482 2 40.6V1L1 2h11.52l-.805-.407 4.32 5.867a1 1 0 0 0 .805.407H37l-1-1v8.8a1 1 0 0 0 2 0v-8.8z"}),Fl("path",{d:"M9.333 40.65A3.341 3.341 0 0 1 6 44v2h34.667C43.613 46 46 43.604 46 40.65V16a1 1 0 0 0-1-1H10.333a1 1 0 0 0-1 1v24.65zm1-23.65H45l-1-1v24.65A3.341 3.341 0 0 1 40.667 44H6c-1.333 0-1.333 2 0 2 2.947 0 5.333-2.396 5.333-5.35V16l-1 1z"})]}),qZ=null;var w4,Vl,M4;const eY=({title:t="End Slide",desc:e="End Slide",width:n="16",height:o="14",className:r,focusable:a="false"})=>w4("svg",{className:M4("i i-end-slide",r),focusable:a,height:o,viewBox:"0 0 16 14",width:n,children:[Vl("title",{children:t}),Vl("desc",{children:e}),Vl("path",{d:"M6,0.6L4.6,2l4,4H0v2h8.6l-4,4L6,13.4l5.7-5.7c0.4-0.4,0.4-1,0-1.4L6,0.6",fillRule:"evenodd"}),Vl("rect",{fillRule:"evenodd",height:"14",width:"2",x:"14"})]}),tY=null;var Rp,zl,O4;const sY=({title:t="Envelope",desc:e="Envelope",width:n="17",height:o="14",className:r,focusable:a="false"})=>Rp("svg",{className:O4("i i-envelope",r),focusable:a,height:o,viewBox:"0 0 17 14",width:n,xmlns:"http://www.w3.org/2000/svg",children:[zl("title",{children:t}),zl("desc",{children:e}),Rp("g",{fillRule:"nonzero",children:[zl("path",{d:"M8.5 7.316L1.341.634a.5.5 0 0 0-.682.732l7.5 7a.5.5 0 0 0 .682 0l7.5-7a.5.5 0 1 0-.682-.732L8.5 7.316z"}),zl("path",{d:"M1.5 1.5v11h14v-11h-14zM1 .5h15a.5.5 0 0 1 .5.5v12a.5.5 0 0 1-.5.5H1a.5.5 0 0 1-.5-.5V1A.5.5 0 0 1 1 .5z"})]})]}),nY=null;var D4,Ul,B4;const oY=({title:t="Error",desc:e="An x with a circle",width:n="50",height:o="50",className:r,focusable:a="false"})=>D4("svg",{className:B4("i i-error",r),focusable:a,height:o,viewBox:"0 0 50 50",width:n,children:[Ul("title",{children:t}),Ul("desc",{children:e}),Ul("path",{d:"M25 50C11.193 50 0 38.807 0 25S11.193 0 25 0s25 11.193 25 25-11.193 25-25 25zm0-2c12.703 0 23-10.297 23-23S37.703 2 25 2 2 12.297 2 25s10.297 23 23 23z"}),Ul("path",{d:"M31.679 18.321a1.036 1.036 0 0 0-1.5 0L24.5 24l-5.679-5.679a1.036 1.036 0 0 0-1.5 0 1.036 1.036 0 0 0 0 1.5L23 25.5l-5.679 5.679a1.036 1.036 0 0 0 0 1.5c.215.214.429.321.75.321.322 0 .536-.107.75-.321L24.5 27l5.679 5.679c.214.214.535.321.75.321.214 0 .535-.107.75-.321a1.036 1.036 0 0 0 0-1.5L26 25.5l5.679-5.679a1.036 1.036 0 0 0 0-1.5"})]}),rY=null;var H4,$l,F4;const aY=({title:t="Error Alert",desc:e="A red circle with a white exclamation point in the middle",width:n="18",height:o="18",className:r,focusable:a="false"})=>H4("svg",{className:F4("i i-errorAlert",r),focusable:a,height:o,viewBox:"0 0 18 18",width:n,children:[$l("title",{children:t}),$l("desc",{children:e}),$l("circle",{cx:"9",cy:"9",r:"9"}),$l("path",{d:"M9.897 4v4.004c0 .425-.021.841-.063 1.25-.042.408-.098.84-.168 1.298H8.497c-.07-.457-.126-.89-.168-1.298a12.206 12.206 0 0 1-.063-1.25V4h1.631zM8 13.17c0-.145.027-.282.08-.413a.987.987 0 0 1 .225-.336 1.103 1.103 0 0 1 .759-.308 1.06 1.06 0 0 1 .749.308 1.06 1.06 0 0 1 .308.749 1.07 1.07 0 0 1-.308.749 1.077 1.077 0 0 1-.749.301 1.095 1.095 0 0 1-.76-.301.995.995 0 0 1-.223-.333A1.069 1.069 0 0 1 8 13.17z"})]}),iY=null,Pp=({"aria-hidden":t,"aria-label":e="X mark",className:n,dataTestId:o="x-mark",desc:r,height:a="10",overrideStyle:i=!1,role:l="img",title:u,width:d="10"})=>(0,s.jsxs)("svg",{"aria-hidden":t,"aria-label":e,className:Z()(n,{"i i-exMark":!i}),"data-testid":o,focusable:"false",height:a,role:l,viewBox:"0 0 10 10",width:d,xmlns:"http://www.w3.org/2000/svg",children:[u&&(0,s.jsx)("title",{children:u}),r&&(0,s.jsx)("desc",{children:r}),(0,s.jsx)("path",{d:"M5,4.17,9.17,0,10,.83,5.83,5,10,9.17,9.17,10,5,5.83.83,10,0,9.17,4.17,5,0,.83.83,0Z"})]});var V4,Wl,z4;const lY=({title:t="Export",desc:e="Export",width:n="12",height:o="15",className:r,focusable:a="false"})=>V4("svg",{className:z4("i i-export",r),focusable:a,height:o,viewBox:"0 0 12 15",width:n,children:[Wl("title",{children:t}),Wl("desc",{children:e}),Wl("polygon",{points:"7,6.4 7,1 5,1 5,6.4 2.3,6.4 6,10.8 9.7,6.4"}),Wl("rect",{height:"2",width:"10",x:"1",y:"12"})]}),dY=null,wp=({"aria-hidden":t,"aria-label":e,className:n,desc:o="",height:r="50",role:a="img",title:i="",width:l="40"})=>(0,s.jsxs)("svg",{"aria-hidden":t,"aria-label":e,className:n,fill:"none",focusable:"false",height:r,role:a,viewBox:"0 0 40 50",width:l,xmlns:"http://www.w3.org/2000/svg",children:[i&&(0,s.jsx)("title",{children:i}),o&&(0,s.jsx)("desc",{children:o}),(0,s.jsx)("path",{clipRule:"evenodd",d:"M2 0C0.89543 0 0 0.89543 0 2V48C0 49.1046 0.895431 50 2 50H38C39.1046 50 40 49.1046 40 48V14L26 0H2Z",fill:"#DFE1E2",fillRule:"evenodd"}),(0,s.jsx)("path",{clipRule:"evenodd",d:"M26 0V14H40",fill:"#C7CACC",fillRule:"evenodd"}),(0,s.jsx)("path",{d:"M13.534 22.9863V24.4163H10.245V26.4458H12.984V27.8813H10.245V30.9998H8.375V22.9863H13.534Z",fill:"#414448"}),(0,s.jsx)("path",{d:"M17.533 30.9998H15.663V22.9863H17.533V30.9998Z",fill:"#414448"}),(0,s.jsx)("path",{d:"M21.8805 29.5148H24.8505V30.9998H20.0215V22.9863H21.8805V29.5148Z",fill:"#414448"}),(0,s.jsx)("path",{d:"M31.8846 22.9863V24.4163H28.5956V26.2863H31.1146V27.6613H28.5956V29.5698H31.8846V30.9998H26.7256V22.9863H31.8846Z",fill:"#414448"})]}),U4=({"aria-hidden":t,"aria-label":e,className:n,desc:o="",height:r="50",role:a="img",title:i="",width:l="40"})=>(0,s.jsxs)("svg",{"aria-hidden":t,"aria-label":e,className:n,fill:"none",focusable:"false",height:r,role:a,viewBox:"0 0 40 50",width:l,xmlns:"http://www.w3.org/2000/svg",children:[i&&(0,s.jsx)("title",{children:i}),o&&(0,s.jsx)("desc",{children:o}),(0,s.jsx)("path",{clipRule:"evenodd",d:"M2 0C0.89543 0 0 0.89543 0 2V48C0 49.1046 0.895431 50 2 50H38C39.1046 50 40 49.1046 40 48V14L26 0H2Z",fill:"#C3CEED",fillRule:"evenodd"}),(0,s.jsx)("path",{clipRule:"evenodd",d:"M26 0V14H40",fill:"#96A9E0",fillRule:"evenodd"}),(0,s.jsx)("path",{d:"M14.8355 26.9904C14.8355 27.5698 14.7346 28.1051 14.533 28.5964C14.335 29.0841 14.0545 29.5076 13.6915 29.8669C13.3285 30.2226 12.8903 30.5013 12.377 30.7029C11.8673 30.9009 11.3008 30.9999 10.6775 30.9999H7.56445V22.9864H10.6775C11.3008 22.9864 11.8673 23.0873 12.377 23.2889C12.8903 23.4906 13.3285 23.7693 13.6915 24.1249C14.0545 24.4806 14.335 24.9041 14.533 25.3954C14.7346 25.8831 14.8355 26.4148 14.8355 26.9904ZM12.9325 26.9904C12.9325 26.5944 12.8811 26.2369 12.7785 25.9179C12.6758 25.5989 12.5273 25.3294 12.333 25.1094C12.1423 24.8858 11.9076 24.7153 11.629 24.5979C11.3503 24.4769 11.0331 24.4164 10.6775 24.4164H9.43445V29.5699H10.6775C11.0331 29.5699 11.3503 29.5113 11.629 29.3939C11.9076 29.2729 12.1423 29.1024 12.333 28.8824C12.5273 28.6588 12.6758 28.3874 12.7785 28.0684C12.8811 27.7494 12.9325 27.3901 12.9325 26.9904Z",fill:"#0C3092"}),(0,s.jsx)("path",{d:"M24.6375 26.9904C24.6375 27.5698 24.5367 28.1088 24.335 28.6074C24.137 29.1061 23.8565 29.5406 23.4935 29.9109C23.1305 30.2776 22.6923 30.5654 22.179 30.7744C21.6693 30.9834 21.1028 31.0879 20.4795 31.0879C19.8562 31.0879 19.2878 30.9834 18.7745 30.7744C18.2612 30.5654 17.8212 30.2776 17.4545 29.9109C17.0915 29.5406 16.8092 29.1061 16.6075 28.6074C16.4095 28.1088 16.3105 27.5698 16.3105 26.9904C16.3105 26.4111 16.4095 25.8721 16.6075 25.3734C16.8092 24.8748 17.0915 24.4421 17.4545 24.0754C17.8212 23.7088 18.2612 23.4209 18.7745 23.2119C19.2878 23.0029 19.8562 22.8984 20.4795 22.8984C21.1028 22.8984 21.6693 23.0048 22.179 23.2174C22.6923 23.4264 23.1305 23.7143 23.4935 24.0809C23.8565 24.4476 24.137 24.8803 24.335 25.3789C24.5367 25.8776 24.6375 26.4148 24.6375 26.9904ZM22.7345 26.9904C22.7345 26.5944 22.6832 26.2388 22.5805 25.9234C22.4779 25.6044 22.3293 25.3349 22.135 25.1149C21.9443 24.8949 21.7097 24.7263 21.431 24.6089C21.1523 24.4916 20.8352 24.4329 20.4795 24.4329C20.1202 24.4329 19.7993 24.4916 19.517 24.6089C19.2383 24.7263 19.0018 24.8949 18.8075 25.1149C18.6168 25.3349 18.4702 25.6044 18.3675 25.9234C18.2648 26.2388 18.2135 26.5944 18.2135 26.9904C18.2135 27.3901 18.2648 27.7494 18.3675 28.0684C18.4702 28.3838 18.6168 28.6514 18.8075 28.8714C19.0018 29.0914 19.2383 29.2601 19.517 29.3774C19.7993 29.4911 20.1202 29.5479 20.4795 29.5479C20.8352 29.5479 21.1523 29.4911 21.431 29.3774C21.7097 29.2601 21.9443 29.0914 22.135 28.8714C22.3293 28.6514 22.4779 28.3838 22.5805 28.0684C22.6832 27.7494 22.7345 27.3901 22.7345 26.9904Z",fill:"#0C3092"}),(0,s.jsx)("path",{d:"M31.9109 28.9264C31.9549 28.9264 31.9989 28.9356 32.0429 28.9539C32.0869 28.9686 32.129 28.9961 32.1694 29.0364L32.9064 29.8119C32.5837 30.2336 32.1785 30.5526 31.6909 30.7689C31.2069 30.9816 30.633 31.0879 29.9694 31.0879C29.3607 31.0879 28.8144 30.9853 28.3304 30.7799C27.85 30.5709 27.4412 30.2849 27.1039 29.9219C26.7702 29.5553 26.5135 29.1226 26.3339 28.6239C26.1542 28.1216 26.0644 27.5771 26.0644 26.9904C26.0644 26.3928 26.167 25.8446 26.3724 25.3459C26.5777 24.8436 26.8637 24.4109 27.2304 24.0479C27.6007 23.6849 28.0425 23.4026 28.5559 23.2009C29.0692 22.9993 29.6357 22.8984 30.2554 22.8984C30.556 22.8984 30.8384 22.9259 31.1024 22.9809C31.37 23.0323 31.6194 23.1056 31.8504 23.2009C32.0814 23.2926 32.294 23.4044 32.4884 23.5364C32.6827 23.6648 32.855 23.8078 33.0054 23.9654L32.3784 24.8069C32.338 24.8583 32.2904 24.9059 32.2354 24.9499C32.1804 24.9903 32.1034 25.0104 32.0044 25.0104C31.9384 25.0104 31.876 24.9958 31.8174 24.9664C31.7587 24.9371 31.6964 24.9023 31.6304 24.8619C31.5644 24.8179 31.491 24.7721 31.4104 24.7244C31.3334 24.6731 31.2399 24.6273 31.1299 24.5869C31.0235 24.5429 30.897 24.5063 30.7504 24.4769C30.6074 24.4476 30.4387 24.4329 30.2444 24.4329C29.907 24.4329 29.599 24.4934 29.3204 24.6144C29.0417 24.7318 28.8015 24.9023 28.5999 25.1259C28.4019 25.3459 28.246 25.6136 28.1324 25.9289C28.0224 26.2443 27.9674 26.5981 27.9674 26.9904C27.9674 27.4011 28.0224 27.7659 28.1324 28.0849C28.246 28.4039 28.3982 28.6734 28.5889 28.8934C28.7832 29.1098 29.0087 29.2748 29.2654 29.3884C29.522 29.5021 29.797 29.5589 30.0904 29.5589C30.259 29.5589 30.413 29.5516 30.5524 29.5369C30.6917 29.5186 30.82 29.4893 30.9374 29.4489C31.0584 29.4086 31.172 29.3573 31.2784 29.2949C31.3884 29.2289 31.4984 29.1483 31.6084 29.0529C31.6524 29.0163 31.7 28.9869 31.7514 28.9649C31.8027 28.9393 31.8559 28.9264 31.9109 28.9264Z",fill:"#0C3092"})]});var $4,_l,W4;const mY=({title:t="No File",desc:e="Paper icon with one corner bent inwards",width:n="40",height:o="50",className:r,focusable:a="false"})=>$4("svg",{className:W4("i i-fileNone",r),focusable:a,height:o,viewBox:"0 0 40 50",width:n,children:[_l("title",{children:t}),_l("desc",{children:e}),_l("path",{d:"M2.00804893,0 C0.899034128,0 0,0.889064278 0,1.99091407 L0,48.0090859 C0,49.1086374 0.892756032,50 1.99862555,50 L37.2170607,50 C38.3208711,50 39.2156863,49.1011186 39.2156863,47.993136 L39.2156863,13.6363636 L26.1437908,0 L2.00804893,0 Z",opacity:"0.205748601"}),_l("path",{d:"M26.1437908,0 L26.1437908,11.7296861 C26.1437908,12.8319383 27.0422752,13.7254902 28.1433598,13.7254902 L39.2156863,13.7254902",opacity:"0.25"})]}),pY=null,_4=({"aria-hidden":t,"aria-label":e,className:n,desc:o="",height:r="50",role:a="img",title:i="",width:l="40"})=>(0,s.jsxs)("svg",{"aria-hidden":t,"aria-label":e,className:n,fill:"none",focusable:"false",height:r,role:a,viewBox:"0 0 40 50",width:l,xmlns:"http://www.w3.org/2000/svg",children:[i&&(0,s.jsx)("title",{children:i}),o&&(0,s.jsx)("desc",{children:o}),(0,s.jsx)("path",{clipRule:"evenodd",d:"M2 0C0.89543 0 0 0.89543 0 2V48C0 49.1046 0.895431 50 2 50H38C39.1046 50 40 49.1046 40 48V14L26 0H2Z",fill:"#F5D0CE",fillRule:"evenodd"}),(0,s.jsx)("path",{clipRule:"evenodd",d:"M26 0V14H40",fill:"#EDADA9",fillRule:"evenodd"}),(0,s.jsx)("path",{d:"M10.8678 28.3213V30.9998H9.00879V22.9863H11.8358C12.4005 22.9863 12.8845 23.0542 13.2878 23.1898C13.6948 23.3218 14.0285 23.5052 14.2888 23.7398C14.5528 23.9745 14.7471 24.2513 14.8718 24.5703C14.9965 24.8893 15.0588 25.234 15.0588 25.6043C15.0588 26.004 14.9946 26.3707 14.8663 26.7043C14.738 27.038 14.5418 27.324 14.2778 27.5623C14.0138 27.8007 13.6783 27.9877 13.2713 28.1233C12.868 28.2553 12.3895 28.3213 11.8358 28.3213H10.8678ZM10.8678 26.9188H11.8358C12.3198 26.9188 12.6681 26.8033 12.8808 26.5723C13.0935 26.3413 13.1998 26.0187 13.1998 25.6043C13.1998 25.421 13.1723 25.2542 13.1173 25.1038C13.0623 24.9535 12.978 24.8252 12.8643 24.7188C12.7543 24.6088 12.6131 24.5245 12.4408 24.4658C12.2721 24.4072 12.0705 24.3778 11.8358 24.3778H10.8678V26.9188Z",fill:"#771D18"}),(0,s.jsx)("path",{d:"M24.2944 26.9903C24.2944 27.5697 24.1936 28.105 23.9919 28.5963C23.7939 29.084 23.5134 29.5075 23.1504 29.8668C22.7874 30.2225 22.3493 30.5012 21.8359 30.7028C21.3263 30.9008 20.7598 30.9998 20.1364 30.9998H17.0234V22.9863H20.1364C20.7598 22.9863 21.3263 23.0872 21.8359 23.2888C22.3493 23.4905 22.7874 23.7692 23.1504 24.1248C23.5134 24.4805 23.7939 24.904 23.9919 25.3953C24.1936 25.883 24.2944 26.4147 24.2944 26.9903ZM22.3914 26.9903C22.3914 26.5943 22.3401 26.2368 22.2374 25.9178C22.1348 25.5988 21.9863 25.3293 21.7919 25.1093C21.6013 24.8857 21.3666 24.7152 21.0879 24.5978C20.8093 24.4768 20.4921 24.4163 20.1364 24.4163H18.8934V29.5698H20.1364C20.4921 29.5698 20.8093 29.5112 21.0879 29.3938C21.3666 29.2728 21.6013 29.1023 21.7919 28.8823C21.9863 28.6587 22.1348 28.3873 22.2374 28.0683C22.3401 27.7493 22.3914 27.39 22.3914 26.9903Z",fill:"#771D18"}),(0,s.jsx)("path",{d:"M31.3465 22.9863V24.4163H28.0575V26.4458H30.7965V27.8813H28.0575V30.9998H26.1875V22.9863H31.3465Z",fill:"#771D18"})]}),G4=({"aria-hidden":t,"aria-label":e,className:n,desc:o="",height:r="50",role:a="img",title:i="",width:l="40"})=>(0,s.jsxs)("svg",{"aria-hidden":t,"aria-label":e,className:n,fill:"none",focusable:"false",height:r,role:a,viewBox:"0 0 40 50",width:l,xmlns:"http://www.w3.org/2000/svg",children:[i&&(0,s.jsx)("title",{children:i}),o&&(0,s.jsx)("desc",{children:o}),(0,s.jsx)("path",{clipRule:"evenodd",d:"M2 0C0.89543 0 0 0.89543 0 2V48C0 49.1046 0.895431 50 2 50H38C39.1046 50 40 49.1046 40 48V14L26 0H2Z",fill:"#FBDACC",fillRule:"evenodd"}),(0,s.jsx)("path",{clipRule:"evenodd",d:"M26 0V14H40",fill:"#F8BFA6",fillRule:"evenodd"}),(0,s.jsx)("path",{d:"M11.2115 28.3213V30.9998H9.35254V22.9863H12.1795C12.7442 22.9863 13.2282 23.0542 13.6315 23.1898C14.0385 23.3218 14.3722 23.5052 14.6325 23.7398C14.8965 23.9745 15.0909 24.2513 15.2155 24.5703C15.3402 24.8893 15.4025 25.234 15.4025 25.6043C15.4025 26.004 15.3384 26.3707 15.21 26.7043C15.0817 27.038 14.8855 27.324 14.6215 27.5623C14.3575 27.8007 14.022 27.9877 13.615 28.1233C13.2117 28.2553 12.7332 28.3213 12.1795 28.3213H11.2115ZM11.2115 26.9188H12.1795C12.6635 26.9188 13.0119 26.8033 13.2245 26.5723C13.4372 26.3413 13.5435 26.0187 13.5435 25.6043C13.5435 25.421 13.516 25.2542 13.461 25.1038C13.406 24.9535 13.3217 24.8252 13.208 24.7188C13.098 24.6088 12.9569 24.5245 12.7845 24.4658C12.6159 24.4072 12.4142 24.3778 12.1795 24.3778H11.2115V26.9188Z",fill:"#7C2B0E"}),(0,s.jsx)("path",{d:"M19.2262 28.3213V30.9998H17.3672V22.9863H20.1942C20.7589 22.9863 21.2429 23.0542 21.6462 23.1898C22.0532 23.3218 22.3869 23.5052 22.6472 23.7398C22.9112 23.9745 23.1055 24.2513 23.2302 24.5703C23.3549 24.8893 23.4172 25.234 23.4172 25.6043C23.4172 26.004 23.353 26.3707 23.2247 26.7043C23.0964 27.038 22.9002 27.324 22.6362 27.5623C22.3722 27.8007 22.0367 27.9877 21.6297 28.1233C21.2264 28.2553 20.7479 28.3213 20.1942 28.3213H19.2262ZM19.2262 26.9188H20.1942C20.6782 26.9188 21.0265 26.8033 21.2392 26.5723C21.4519 26.3413 21.5582 26.0187 21.5582 25.6043C21.5582 25.421 21.5307 25.2542 21.4757 25.1038C21.4207 24.9535 21.3364 24.8252 21.2227 24.7188C21.1127 24.6088 20.9715 24.5245 20.7992 24.4658C20.6305 24.4072 20.4289 24.3778 20.1942 24.3778H19.2262V26.9188Z",fill:"#7C2B0E"}),(0,s.jsx)("path",{d:"M31.2008 22.9863V24.4603H28.9458V30.9998H27.0868V24.4603H24.8318V22.9863H31.2008Z",fill:"#7C2B0E"})]}),K4=({"aria-hidden":t,"aria-label":e,className:n,desc:o="",height:r="50",role:a="img",title:i="",width:l="40"})=>(0,s.jsxs)("svg",{"aria-hidden":t,"aria-label":e,className:n,fill:"none",focusable:"false",height:r,role:a,viewBox:"0 0 40 50",width:l,xmlns:"http://www.w3.org/2000/svg",children:[i&&(0,s.jsx)("title",{children:i}),o&&(0,s.jsx)("desc",{children:o}),(0,s.jsx)("path",{clipRule:"evenodd",d:"M2 0C0.89543 0 0 0.89543 0 2V48C0 49.1046 0.895431 50 2 50H38C39.1046 50 40 49.1046 40 48V14L26 0H2Z",fill:"#CFEAF8",fillRule:"evenodd"}),(0,s.jsx)("path",{clipRule:"evenodd",d:"M26 0V14H40",fill:"#ABDBF3",fillRule:"evenodd"}),(0,s.jsx)("path",{d:"M11.6738 28.0355V31H9.81476V22.9865H12.4218C13.0011 22.9865 13.4943 23.047 13.9013 23.168C14.3119 23.2853 14.6456 23.4503 14.9023 23.663C15.1626 23.8757 15.3514 24.1268 15.4688 24.4165C15.5861 24.7062 15.6448 25.0215 15.6448 25.3625C15.6448 25.6228 15.6099 25.8685 15.5403 26.0995C15.4706 26.3305 15.3661 26.545 15.2268 26.743C15.0911 26.9373 14.9224 27.1115 14.7208 27.2655C14.5228 27.4195 14.2936 27.546 14.0333 27.645C14.1579 27.7073 14.2734 27.7843 14.3798 27.876C14.4898 27.9677 14.5851 28.0795 14.6658 28.2115L16.3708 31H14.6878C14.3761 31 14.1524 30.8827 14.0168 30.648L12.6858 28.3215C12.6271 28.2188 12.5574 28.1455 12.4768 28.1015C12.3998 28.0575 12.2898 28.0355 12.1468 28.0355H11.6738ZM11.6738 26.754H12.4218C12.6748 26.754 12.8893 26.7228 13.0653 26.6605C13.2449 26.5945 13.3916 26.5047 13.5053 26.391C13.6189 26.2773 13.7014 26.1453 13.7528 25.995C13.8041 25.841 13.8298 25.676 13.8298 25.5C13.8298 25.148 13.7143 24.873 13.4833 24.675C13.2559 24.477 12.9021 24.378 12.4218 24.378H11.6738V26.754Z",fill:"#144E6C"}),(0,s.jsx)("path",{d:"M23.6162 22.9865V24.4605H21.3612V31H19.5022V24.4605H17.2472V22.9865H23.6162Z",fill:"#144E6C"}),(0,s.jsx)("path",{d:"M30.5411 22.9865V24.4165H27.2521V26.446H29.9911V27.8815H27.2521V31H25.3821V22.9865H30.5411Z",fill:"#144E6C"})]}),Q4=({"aria-hidden":t,"aria-label":e,className:n,desc:o="",height:r="50",role:a="img",title:i="",width:l="40"})=>(0,s.jsxs)("svg",{"aria-hidden":t,"aria-label":e,className:n,fill:"none",focusable:"false",height:r,role:a,viewBox:"0 0 40 50",width:l,xmlns:"http://www.w3.org/2000/svg",children:[i&&(0,s.jsx)("title",{children:i}),o&&(0,s.jsx)("desc",{children:o}),(0,s.jsx)("path",{clipRule:"evenodd",d:"M2 0C0.89543 0 0 0.89543 0 2V48C0 49.1046 0.895431 50 2 50H38C39.1046 50 40 49.1046 40 48V14L26 0H2Z",fill:"#D1E5D1",fillRule:"evenodd"}),(0,s.jsx)("path",{clipRule:"evenodd",d:"M26 0V14H40",fill:"#AFD1AE",fillRule:"evenodd"}),(0,s.jsx)("path",{d:"M11.8861 26.8804L9.40564 22.9864H11.2646C11.3856 22.9864 11.4736 23.0029 11.5286 23.0359C11.5873 23.0653 11.6386 23.1166 11.6826 23.1899L13.2776 25.8904C13.296 25.8428 13.3161 25.7969 13.3381 25.7529C13.3638 25.7089 13.3913 25.6631 13.4206 25.6154L14.8176 23.2174C14.9093 23.0634 15.034 22.9864 15.1916 22.9864H16.9736L14.4601 26.7979L17.0286 30.9999H15.1696C15.0486 30.9999 14.9496 30.9706 14.8726 30.9119C14.7993 30.8533 14.7406 30.7836 14.6966 30.7029L13.0906 27.8979C13.0613 27.9786 13.0283 28.0483 12.9916 28.1069L11.4956 30.7029C11.4516 30.7799 11.393 30.8496 11.3196 30.9119C11.2463 30.9706 11.1546 30.9999 11.0446 30.9999H9.30664L11.8861 26.8804Z",fill:"#265026"}),(0,s.jsx)("path",{d:"M20.6017 29.5149H23.5717V30.9999H18.7427V22.9864H20.6017V29.5149Z",fill:"#265026"}),(0,s.jsx)("path",{d:"M29.9128 24.6144C29.8578 24.7024 29.7991 24.7684 29.7368 24.8124C29.6781 24.8564 29.6011 24.8784 29.5058 24.8784C29.4215 24.8784 29.3298 24.8528 29.2308 24.8014C29.1355 24.7464 29.0255 24.6859 28.9008 24.6199C28.7798 24.5539 28.6405 24.4953 28.4828 24.4439C28.3251 24.3889 28.1455 24.3614 27.9438 24.3614C27.5955 24.3614 27.3351 24.4366 27.1628 24.5869C26.9941 24.7336 26.9098 24.9334 26.9098 25.1864C26.9098 25.3478 26.9611 25.4816 27.0638 25.5879C27.1665 25.6943 27.3003 25.7859 27.4653 25.8629C27.634 25.9399 27.8246 26.0114 28.0373 26.0774C28.2536 26.1398 28.4736 26.2113 28.6973 26.2919C28.921 26.3689 29.1391 26.4606 29.3518 26.5669C29.5681 26.6733 29.7588 26.8089 29.9238 26.9739C30.0925 27.1389 30.2281 27.3406 30.3308 27.5789C30.4335 27.8136 30.4848 28.0978 30.4848 28.4314C30.4848 28.8018 30.4206 29.1483 30.2923 29.4709C30.164 29.7936 29.977 30.0759 29.7313 30.3179C29.4893 30.5563 29.1886 30.7451 28.8293 30.8844C28.4736 31.0201 28.0685 31.0879 27.6138 31.0879C27.3645 31.0879 27.1096 31.0623 26.8493 31.0109C26.5926 30.9596 26.3433 30.8881 26.1013 30.7964C25.8593 30.7011 25.632 30.5893 25.4193 30.4609C25.2066 30.3326 25.0215 30.1896 24.8638 30.0319L25.4138 29.1629C25.4541 29.0969 25.511 29.0438 25.5843 29.0034C25.6576 28.9631 25.7365 28.9429 25.8208 28.9429C25.9308 28.9429 26.0408 28.9778 26.1508 29.0474C26.2645 29.1171 26.391 29.1941 26.5303 29.2784C26.6733 29.3628 26.8365 29.4398 27.0198 29.5094C27.2031 29.5791 27.4195 29.6139 27.6688 29.6139C28.0061 29.6139 28.2683 29.5406 28.4553 29.3939C28.6423 29.2436 28.7358 29.0071 28.7358 28.6844C28.7358 28.4974 28.6845 28.3453 28.5818 28.2279C28.4791 28.1106 28.3435 28.0134 28.1748 27.9364C28.0098 27.8594 27.821 27.7916 27.6083 27.7329C27.3956 27.6743 27.1775 27.6101 26.9538 27.5404C26.7301 27.4671 26.512 27.3791 26.2993 27.2764C26.0866 27.1701 25.896 27.0326 25.7273 26.8639C25.5623 26.6916 25.4285 26.4789 25.3258 26.2259C25.2231 25.9693 25.1718 25.6539 25.1718 25.2799C25.1718 24.9793 25.2323 24.6859 25.3533 24.3999C25.4743 24.1139 25.6521 23.8591 25.8868 23.6354C26.1215 23.4118 26.4093 23.2339 26.7503 23.1019C27.0913 22.9663 27.4818 22.8984 27.9218 22.8984C28.1675 22.8984 28.4058 22.9186 28.6368 22.9589C28.8715 22.9956 29.0933 23.0524 29.3023 23.1294C29.5113 23.2028 29.7056 23.2926 29.8853 23.3989C30.0686 23.5016 30.2318 23.6189 30.3748 23.7509L29.9128 24.6144Z",fill:"#265026"})]}),Z4=({"aria-hidden":t,"aria-label":e,className:n,desc:o="",height:r="50",role:a="img",title:i="",width:l="40"})=>(0,s.jsxs)("svg",{"aria-hidden":t,"aria-label":e,className:n,fill:"none",focusable:"false",height:r,role:a,viewBox:"0 0 40 50",width:l,xmlns:"http://www.w3.org/2000/svg",children:[i&&(0,s.jsx)("title",{children:i}),o&&(0,s.jsx)("desc",{children:o}),(0,s.jsx)("path",{clipRule:"evenodd",d:"M2 0C0.89543 0 0 0.89543 0 2V48C0 49.1046 0.895431 50 2 50H38C39.1046 50 40 49.1046 40 48V14L26 0H2Z",fill:"#CFEAF8",fillRule:"evenodd"}),(0,s.jsx)("path",{clipRule:"evenodd",d:"M26 0V14H40",fill:"#ABDBF3",fillRule:"evenodd"}),(0,s.jsx)("path",{d:"M16.8968 22.9863V23.6573C16.8968 23.7527 16.8802 23.8462 16.8472 23.9378C16.8179 24.0295 16.7757 24.1157 16.7207 24.1963L12.9587 29.5698H16.7758V30.9998H10.5938V30.2848C10.5938 30.2005 10.6084 30.118 10.6377 30.0373C10.6671 29.953 10.7074 29.876 10.7587 29.8063L14.5317 24.4163H10.9017V22.9863H16.8968Z",fill:"#124F6E"}),(0,s.jsx)("path",{d:"M20.7826 30.9998H18.9126V22.9863H20.7826V30.9998Z",fill:"#124F6E"}),(0,s.jsx)("path",{d:"M25.1301 28.3213V30.9998H23.2711V22.9863H26.0981C26.6627 22.9863 27.1467 23.0542 27.5501 23.1898C27.9571 23.3218 28.2907 23.5052 28.5511 23.7398C28.8151 23.9745 29.0094 24.2513 29.1341 24.5703C29.2587 24.8893 29.3211 25.234 29.3211 25.6043C29.3211 26.004 29.2569 26.3707 29.1286 26.7043C29.0002 27.038 28.8041 27.324 28.5401 27.5623C28.2761 27.8007 27.9406 27.9877 27.5336 28.1233C27.1302 28.2553 26.6517 28.3213 26.0981 28.3213H25.1301ZM25.1301 26.9188H26.0981C26.5821 26.9188 26.9304 26.8033 27.1431 26.5723C27.3557 26.3413 27.4621 26.0187 27.4621 25.6043C27.4621 25.421 27.4346 25.2542 27.3796 25.1038C27.3246 24.9535 27.2402 24.8252 27.1266 24.7188C27.0166 24.6088 26.8754 24.5245 26.7031 24.4658C26.5344 24.4072 26.3327 24.3778 26.0981 24.3778H25.1301V26.9188Z",fill:"#124F6E"})]});var Y4,Gl,X4;const bY=({title:t="More",desc:e="Filled caret pointing right",width:n="7",height:o="5",className:r,focusable:a="false"})=>Y4("svg",{className:X4("i i-filledChevronRight",r),focusable:a,height:o,viewBox:"0 0 5 7",width:n,children:[Gl("title",{children:t}),Gl("desc",{children:e}),Gl("g",{children:Gl("path",{d:"M4 3.625L1 1v5.25z",strokeLinecap:"round",strokeLinejoin:"round"})})]}),yY=null,R0=({title:t="Fill in the Blank",desc:e="Pencil writing on a surface",width:n="15",height:o="15",className:r,focusable:a="false"})=>(0,s.jsxs)("svg",{className:Z()("i i-fillInTheBlank",r),focusable:a,height:o,viewBox:"0 0 15 15",width:n,children:[(0,s.jsx)("title",{children:t}),(0,s.jsx)("desc",{children:e}),(0,s.jsx)("path",{d:"M2.488 8.246l5.25-5.25 1.4 1.4-5.25 5.25h-1.4v-1.4zm-.875 3.15h2.625a.794.794 0 0 0 .613-.262l6.125-6.125a.846.846 0 0 0 0-1.225L8.35 1.159a.846.846 0 0 0-1.225 0L1 7.284a.794.794 0 0 0-.263.612v2.625c0 .525.35.875.875.875zM.739 13.146h14v1.75h-14z"})]});var J4,P0;const EY=({"aria-hidden":t,"aria-label":e,className:n,desc:o,height:r="16",role:a="img",title:i,width:l="16"})=>J4("svg",{"aria-hidden":t,"aria-label":e,className:n,focusable:"false",height:r,role:a,viewBox:"0 0 16 16",width:l,xmlns:"http://www.w3.org/2000/svg",children:[i&&P0("title",{children:i}),o&&P0("desc",{children:o}),P0("path",{d:"M11.793 2.793L9 0h7v7l-2.793-2.793-2.5 2.5a.997.997 0 0 1-1.414 0 1 1 0 0 1 0-1.414l2.5-2.5zm-5.086 6.5a1 1 0 0 1 0 1.414l-2.5 2.5L7 16H0V9l2.793 2.793 2.5-2.5a1 1 0 0 1 1.414 0zm-2.5-6.5l2.5 2.5a1 1 0 1 1-1.414 1.414l-2.5-2.5L0 7V0h7L4.207 2.793zm5.086 6.5a1 1 0 0 1 1.414 0l2.5 2.5L16 9v7H9l2.793-2.793-2.5-2.5a1 1 0 0 1 0-1.414z",fill:"currentColor",fillRule:"evenodd"})]}),SY=null;var q4,w0,e9;const TY=({title:t="Flashcard Block",desc:e="Flashcard Block",width:n="16",height:o="15",className:r,focusable:a="false"})=>q4("svg",{className:e9("i i-flashcard-block",r),focusable:a,height:o,viewBox:"0 0 16 15",width:n,children:[w0("title",{children:t}),w0("desc",{children:e}),w0("path",{d:"M2.759 1.9v3.2h3.2V1.9h-3.2zm5-.186v3.572c0 .925-.689 1.614-1.614 1.614H2.573C1.648 6.9.96 6.211.96 5.286V1.714C.959.79 1.648.1 2.573.1h3.572c.925 0 1.614.689 1.614 1.614zm8 0v3.572c0 .925-.689 1.614-1.614 1.614h-3.572c-.925 0-1.614-.689-1.614-1.614V1.714C8.959.79 9.648.1 10.573.1h3.572c.925 0 1.614.689 1.614 1.614zm-5 .186v3.2h3.2V1.9h-3.2zm-3 7.814v3.572c0 .925-.689 1.614-1.614 1.614H2.573c-.925 0-1.614-.689-1.614-1.614V9.714c0-.925.689-1.614 1.614-1.614h3.572c.925 0 1.614.689 1.614 1.614zm-5 .186v3.2h3.2V9.9h-3.2zm13-.186v3.572c0 .925-.689 1.614-1.614 1.614h-3.572c-.925 0-1.614-.689-1.614-1.614V9.714c0-.925.689-1.614 1.614-1.614h3.572c.925 0 1.614.689 1.614 1.614zm-5 .186v3.2h3.2V9.9h-3.2z",fillRule:"nonzero"})]}),IY=null;var Mp,t9;const NY=t=>Mp(t9,{viewBox:"0 0 15 15",...t,children:Mp("path",{d:"M13.32 2.84H7.543L5.182.477a.794.794 0 0 0-.613-.262h-3.5c-.525 0-.875.35-.875.875v12.25c0 .525.35.875.875.875h12.25c.525 0 .875-.35.875-.875V3.715c0-.525-.35-.875-.875-.875"})}),jY=null;var s9,Op,n9;function kY(t){return s9(n9,{...t,viewBox:"0 0 16 14",children:[Op("path",{clipRule:"evenodd",d:"M2.66675 1.66683C2.48994 1.66683 2.32037 1.73707 2.19534 1.86209C2.07032 1.98712 2.00008 2.15668 2.00008 2.3335V11.6668C2.00008 11.8436 2.07032 12.0132 2.19534 12.1382C2.32037 12.2633 2.48994 12.3335 2.66675 12.3335H13.3334C13.5102 12.3335 13.6798 12.2633 13.8048 12.1382C13.9298 12.0132 14.0001 11.8436 14.0001 11.6668V4.3335C14.0001 4.15669 13.9298 3.98712 13.8048 3.86209C13.6798 3.73707 13.5102 3.66683 13.3334 3.66683H7.33341C7.11051 3.66683 6.90236 3.55543 6.77871 3.36996L5.64329 1.66683H2.66675ZM1.25253 0.919282C1.62761 0.54421 2.13632 0.333496 2.66675 0.333496H6.00008C6.22298 0.333496 6.43114 0.444897 6.55478 0.630363L7.6902 2.3335H13.3334C13.8638 2.3335 14.3726 2.54421 14.7476 2.91928C15.1227 3.29436 15.3334 3.80306 15.3334 4.3335V11.6668C15.3334 12.1973 15.1227 12.706 14.7476 13.081C14.3726 13.4561 13.8638 13.6668 13.3334 13.6668H2.66675C2.13631 13.6668 1.62761 13.4561 1.25253 13.081C0.877462 12.706 0.666748 12.1973 0.666748 11.6668V2.3335C0.666748 1.80306 0.877462 1.29436 1.25253 0.919282Z",fillRule:"evenodd"}),Op("path",{clipRule:"evenodd",d:"M7.52868 5.86209C7.78903 5.60174 8.21114 5.60174 8.47149 5.86209L10.4715 7.86209C10.7318 8.12244 10.7318 8.54455 10.4715 8.8049L8.47149 10.8049C8.21114 11.0653 7.78903 11.0653 7.52868 10.8049C7.26833 10.5446 7.26833 10.1224 7.52868 9.86209L8.39061 9.00016H6.00008C5.63189 9.00016 5.33341 8.70169 5.33341 8.3335C5.33341 7.96531 5.63189 7.66683 6.00008 7.66683H8.39061L7.52868 6.8049C7.26833 6.54455 7.26833 6.12244 7.52868 5.86209Z",fillRule:"evenodd"})]})}var o9,Kl,r9;const AY=({title:t="Folder Empty",desc:e="Folder outline empty",width:n="47",height:o="47",className:r,focusable:a="false"})=>o9("svg",{className:r9("i i-folder--empty",r),focusable:a,height:o,viewBox:"0 0 47 47",width:n,children:[Kl("title",{children:t}),Kl("desc",{children:e}),Kl("path",{d:"M38.254 7.148a1 1 0 0 0-1-1h-20.16l.805.407L13.58.688a1 1 0 0 0-.805-.407H1.254a1 1 0 0 0-1 1v39.6c0 2.979 2.377 5.4 5.32 5.4a1 1 0 0 0 0-2c-1.83 0-3.32-1.518-3.32-3.4v-39.6l-1 1h11.52l-.805-.407 4.32 5.867a1 1 0 0 0 .805.407h20.16l-1-1v8.8a1 1 0 0 0 2 0v-8.8z"}),Kl("path",{d:"M9.587 40.931a3.341 3.341 0 0 1-3.333 3.35v2H40.92c2.946 0 5.333-2.396 5.333-5.35v-24.65a1 1 0 0 0-1-1H10.587a1 1 0 0 0-1 1v24.65zm1-23.65h34.667l-1-1v24.65a3.341 3.341 0 0 1-3.333 3.35H6.254c-1.333 0-1.333 2 0 2 2.946 0 5.333-2.396 5.333-5.35v-24.65l-1 1z"})]}),RY=null;var a9,M0,i9;const PY=({title:t="Folder Outline",desc:e="Outline of a folder",width:n="24",height:o="24",className:r,focusable:a="false"})=>a9("svg",{className:i9("i",r),focusable:a,height:o,viewBox:"0 0 24 24",width:n,children:[M0("title",{children:t}),M0("desc",{children:e}),M0("path",{d:"M1 22l1 1V1L1 2h8l-.8-.4 3 4a1 1 0 0 0 .8.4h11l-1-1v18l1-1H1zm23 1V5a1 1 0 0 0-1-1H12l.8.4-3-4A1 1 0 0 0 9 0H1a1 1 0 0 0-1 1v22a1 1 0 0 0 1 1h22a1 1 0 0 0 1-1z",fillRule:"nonzero"})]}),wY=null;var c9,O0,l9;const MY=({title:t="FolderSort",desc:e="Sort by Folders",width:n="13",height:o="13",className:r,focusable:a="false"})=>c9("svg",{className:l9("i",r),focusable:a,height:o,viewBox:"0 0 13 13",width:n,children:[O0("title",{children:t}),O0("desc",{children:e}),O0("path",{d:"M12.188 13H.812C.326 13 0 12.675 0 12.187V.813C0 .325.325 0 .813 0h3.25c.243 0 .406.081.568.244l2.194 2.194h5.362c.488 0 .813.325.813.812v8.938c0 .487-.325.812-.813.812zM1.624 11.375h9.75V4.062H6.5a.738.738 0 0 1-.569-.243L3.737 1.625H1.625v9.75z"})]}),OY=null;var d9,D0,u9;const DY=({title:t="Font",desc:e="A capital letter T with a second smaller capital T to the right",width:n="35",height:o="27",className:r,focusable:a="false"})=>d9("svg",{className:u9("i",r),focusable:a,height:o,viewBox:"0 0 35 27",width:n,children:[D0("title",{children:t}),D0("desc",{children:e}),D0("path",{d:"M1 1v5h8.333v20h5V6h8.334V1H1zm32.667 10.333h-15v5h5V26h5v-9.667h5v-5z",fill:"none",fillRule:"nonzero",stroke:"#adaeaf",strokeWidth:"2"})]}),BY=null;var h9,Ql,m9;const HY=t=>h9(m9,{...t,viewBox:"0 0 16 16",children:[Ql("path",{d:"M6,0 L1,0 C0.4,0 0,0.4 0,1 L0,6 C0,6.6 0.4,7 1,7 L6,7 C6.6,7 7,6.6 7,6 L7,1 C7,0.4 6.6,0 6,0"}),Ql("path",{d:"M15,0 L10,0 C9.4,0 9,0.4 9,1 L9,6 C9,6.6 9.4,7 10,7 L15,7 C15.6,7 16,6.6 16,6 L16,1 C16,0.4 15.6,0 15,0"}),Ql("path",{d:"M15,9 L10,9 C9.4,9 9,9.4 9,10 L9,15 C9,15.6 9.4,16 10,16 L15,16 C15.6,16 16,15.6 16,15 L16,10 C16,9.4 15.6,9 15,9"}),Ql("path",{d:"M6,9 L1,9 C0.4,9 0,9.4 0,10 L0,15 C0,15.6 0.4,16 1,16 L6,16 C6.6,16 7,15.6 7,15 L7,10 C7,9.4 6.6,9 6,9"})]}),FY=null;var p9,Zl,f9;const VY=({title:t="Group",desc:e="Silhouettes of two people",width:n="18",height:o="17",className:r,focusable:a="false"})=>p9("svg",{className:f9("i",r),focusable:a,height:o,viewBox:"0 0 18 17",width:n,children:[Zl("title",{children:t}),Zl("desc",{children:e}),Zl("path",{d:"M4.5 8.25C3.50544 8.25 2.55161 7.85491 1.84835 7.15165C1.14509 6.44839 0.75 5.49456 0.75 4.5C0.75 3.50544 1.14509 2.55161 1.84835 1.84835C2.55161 1.14509 3.50544 0.75 4.5 0.75C5.49456 0.75 6.44839 1.14509 7.15165 1.84835C7.85491 2.55161 8.25 3.50544 8.25 4.5C8.25 5.49456 7.85491 6.44839 7.15165 7.15165C6.44839 7.85491 5.49456 8.25 4.5 8.25ZM4.5 6.75C5.09674 6.75 5.66903 6.51295 6.09099 6.09099C6.51295 5.66903 6.75 5.09674 6.75 4.5C6.75 3.90326 6.51295 3.33097 6.09099 2.90901C5.66903 2.48705 5.09674 2.25 4.5 2.25C3.90326 2.25 3.33097 2.48705 2.90901 2.90901C2.48705 3.33097 2.25 3.90326 2.25 4.5C2.25 5.09674 2.48705 5.66903 2.90901 6.09099C3.33097 6.51295 3.90326 6.75 4.5 6.75ZM13.5 12.25C12.5054 12.25 11.5516 11.8549 10.8483 11.1517C10.1451 10.4484 9.75 9.49456 9.75 8.5C9.75 7.50544 10.1451 6.55161 10.8483 5.84835C11.5516 5.14509 12.5054 4.75 13.5 4.75C14.4946 4.75 15.4484 5.14509 16.1517 5.84835C16.8549 6.55161 17.25 7.50544 17.25 8.5C17.25 9.49456 16.8549 10.4484 16.1517 11.1517C15.4484 11.8549 14.4946 12.25 13.5 12.25ZM13.5 10.75C14.0967 10.75 14.669 10.5129 15.091 10.091C15.5129 9.66903 15.75 9.09674 15.75 8.5C15.75 7.90326 15.5129 7.33097 15.091 6.90901C14.669 6.48705 14.0967 6.25 13.5 6.25C12.9033 6.25 12.331 6.48705 11.909 6.90901C11.4871 7.33097 11.25 7.90326 11.25 8.5C11.25 9.09674 11.4871 9.66903 11.909 10.091C12.331 10.5129 12.9033 10.75 13.5 10.75Z",fill:"black"}),Zl("path",{d:"M8.75 11.5C8.75 11.6989 8.67098 11.8897 8.53033 12.0303C8.38968 12.171 8.19891 12.25 8 12.25C7.80109 12.25 7.61032 12.171 7.46967 12.0303C7.32902 11.8897 7.25 11.6989 7.25 11.5C7.25 10.7707 6.96027 10.0712 6.44454 9.55546C5.92882 9.03973 5.22935 8.75 4.5 8.75C3.77065 8.75 3.07118 9.03973 2.55546 9.55546C2.03973 10.0712 1.75 10.7707 1.75 11.5C1.75 11.5985 1.7306 11.696 1.69291 11.787C1.65522 11.878 1.59997 11.9607 1.53033 12.0303C1.46069 12.1 1.37801 12.1552 1.28701 12.1929C1.19602 12.2306 1.09849 12.25 1 12.25C0.901509 12.25 0.803982 12.2306 0.712987 12.1929C0.621993 12.1552 0.539314 12.1 0.46967 12.0303C0.400026 11.9607 0.344781 11.878 0.30709 11.787C0.269399 11.696 0.25 11.5985 0.25 11.5C0.25 10.9419 0.359929 10.3892 0.573512 9.8736C0.787094 9.35796 1.10015 8.88944 1.4948 8.4948C1.88945 8.10015 2.35796 7.78709 2.8736 7.57351C3.38923 7.35993 3.94188 7.25 4.5 7.25C5.05812 7.25 5.61077 7.35993 6.1264 7.57351C6.64204 7.78709 7.11055 8.10015 7.5052 8.4948C7.89985 8.88944 8.21291 9.35796 8.42649 9.8736C8.64007 10.3892 8.75 10.9419 8.75 11.5ZM17.75 15.402C17.75 15.6009 17.671 15.7917 17.5303 15.9323C17.3897 16.073 17.1989 16.152 17 16.152C16.8011 16.152 16.6103 16.073 16.4697 15.9323C16.329 15.7917 16.25 15.6009 16.25 15.402C16.25 14.6727 15.9603 13.9732 15.4445 13.4575C14.9288 12.9417 14.2293 12.652 13.5 12.652C12.7707 12.652 12.0712 12.9417 11.5555 13.4575C11.0397 13.9732 10.75 14.6727 10.75 15.402C10.75 15.6009 10.671 15.7917 10.5303 15.9323C10.3897 16.073 10.1989 16.152 10 16.152C9.80109 16.152 9.61032 16.073 9.46967 15.9323C9.32902 15.7917 9.25 15.6009 9.25 15.402C9.25 14.2748 9.69777 13.1938 10.4948 12.3968C11.2918 11.5998 12.3728 11.152 13.5 11.152C14.6272 11.152 15.7082 11.5998 16.5052 12.3968C17.3022 13.1938 17.75 14.2748 17.75 15.402Z",fill:"black"})]}),zY=null;var Dp,v9;function UY(t){return Dp(v9,{viewBox:"0 0 20 14",...t,children:Dp("path",{d:"M0 0H20V2H0V0Z M0 6H20V8H0V6Z M20 12H0V14H20V12Z"})})}const B0=({className:t,decorative:e=!0,desc:n="Heart",focusable:o="false",height:r="16",isFilled:a=!0,title:i="Heart",width:l="16"})=>(0,s.jsxs)("svg",{"aria-hidden":e,className:Z()(`i i-heart${a?"Filled":"Outline"}`,t),focusable:o,height:r,viewBox:"0 0 16 16",width:l,children:[(0,s.jsx)("title",{children:i}),(0,s.jsx)("desc",{children:n}),(0,s.jsx)("path",{d:"M11.15 1C9.838 1 8.7 1.7 8 2.75 7.3 1.7 6.162 1 4.85 1 2.75 1 1 2.75 1 4.85c0 3.85 7 9.538 7 9.538S15 8.7 15 4.85C15 2.75 13.25 1 11.15 1"})]});var g9,H0,C9;const WY=({title:t="Hidden",desc:e="Eye crossed out",width:n="16",height:o="14",className:r=null,focusable:a="false"})=>g9("svg",{className:C9("i i-hidden",r),focusable:a,height:o,viewBox:"0 0 16 14",width:n,children:[H0("title",{children:t}),H0("desc",{children:e}),H0("path",{d:"M15.9,6.3c-0.1-0.1-1-1.8-2.7-3.3l1.3-1.3c0.4-0.4,0.4-1,0-1.4s-1-0.4-1.4,0l-1.6,1.6c-1-0.6-2.2-1-3.6-1 c-4.8,0-7.7,5.3-7.9,5.5C0,6.6,0,7,0.1,7.3c0.1,0.1,1,1.8,2.7,3.3l-1,1c-0.4,0.4-0.4,1,0,1.4c0.2,0.2,0.5,0.3,0.7,0.3S3,13.2,3.2,13 l1.2-1.2c1,0.6,2.2,1,3.6,1h0c4.7,0,7.7-5.3,7.9-5.5C16,7,16,6.6,15.9,6.3z M2.2,6.8c0.8-1.2,3-4,5.8-4c0.7,0,1.4,0.2,2.1,0.5 L8.5,4.9C8.4,4.8,8.2,4.8,8,4.8c-1.1,0-1.9,0.9-2,2c0,0.2,0,0.4,0.1,0.5L4.2,9.2C3.3,8.3,2.6,7.4,2.2,6.8z M8,10.8 c-0.7,0-1.4-0.2-2.1-0.5l1.6-1.6c0.2,0,0.3,0.1,0.5,0.1c0,0,0.1,0,0.1,0c1.1,0,2-0.9,2-2c0-0.2,0-0.3-0.1-0.5l1.8-1.8 c1,0.8,1.7,1.8,2,2.4C13,8,10.8,10.8,8,10.8z"})]}),_Y=null;var x9,F0,b9;const GY=({title:t="Image Block",desc:e="Image Block",width:n="17",height:o="17",className:r,focusable:a="false"})=>x9("svg",{className:b9("i i-image-block",r),focusable:a,height:o,viewBox:"0 0 17 17",width:n,children:[F0("title",{children:t}),F0("desc",{children:e}),F0("path",{d:"M15.992.5c.6 0 1 .4 1 1v14c0 .6-.4 1-1 1h-14c-.6 0-1-.4-1-1v-14c0-.6.4-1 1-1h14zm-13 2v12h12v-12h-12zm4.1 8.3l-2.1 2.1-1.4-1.4 3.3-3.3 3 2 3.1-3.1 1.4 1.4-4.3 4.3-3-2zm.9-6.3a1 1 0 1 1 0 2 1 1 0 0 1 0-2z",fillRule:"evenodd"})]}),KY=null;var y9,V0,L9;const QY=({title:t="Labeled Graphic Block",desc:e="Labeled Graphic Block",width:n="17",height:o="17",className:r,focusable:a="false"})=>y9("svg",{className:L9("i i-labeled-graphic-block",r),focusable:a,height:o,viewBox:"0 0 17 17",width:n,children:[V0("title",{children:t}),V0("desc",{children:e}),V0("path",{d:"M13.753 16.5h-12a1 1 0 0 1-1-1v-12a1 1 0 0 1 1-1h7v2h-6v10h10v-6h2v7a1 1 0 0 1-1 1zm0-16a3 3 0 1 1 0 6 3 3 0 0 1 0-6z",fillRule:"evenodd"})]}),ZY=null;var E9,Yl,S9;const YY=({title:t="Label Set",desc:e="Label Set",width:n="17",height:o="17",className:r,focusable:a="false"})=>E9("svg",{className:S9("i i-labelSet",r),focusable:a,height:o,viewBox:"0 0 18 18",width:n,children:[Yl("title",{children:t}),Yl("desc",{children:e}),Yl("path",{d:"M17.63,9.76,8.24.37A.59.59,0,0,0,7.83.2h-7A.59.59,0,0,0,.2.78v7a.59.59,0,0,0,.17.42l9.39,9.39a.59.59,0,0,0,.83,0l7-7A.59.59,0,0,0,17.63,9.76ZM1.37,7.58V1.37H7.58l8.8,8.8-6.21,6.21Z"}),Yl("path",{d:"M5.48,3.33A2.15,2.15,0,1,0,7.63,5.48,2.15,2.15,0,0,0,5.48,3.33Zm0,3.13a1,1,0,1,1,1-1A1,1,0,0,1,5.48,6.46Z"})]}),XY=null;var T9,z0,I9;function JY(t){return T9(I9,{fill:"none",stroke:"currentColor",viewBox:"0 0 13 14",...t,children:[z0("path",{clipRule:"evenodd",d:"M6.57031 1 L1 3.85715 L6.57031 6.71431 L12.1406 3.85715 L6.57031 1 Z",fillRule:"evenodd",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.37143"}),z0("path",{d:"M1 6.71431 L6.57031 9.57147 L12.1406 6.71431",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.37143"}),z0("path",{d:"M1 9.57147 L6.57031 12.42863 L12.1406 9.57147",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.37143"})]})}var N9,U0;const qY=({"aria-hidden":t,"aria-label":e,className:n,desc:o,height:r="15",role:a="img",title:i,width:l="16"})=>N9("svg",{"aria-hidden":t,"aria-label":e,className:n,focusable:"false",height:r,role:a,viewBox:"0 0 16 15",width:l,xmlns:"http://www.w3.org/2000/svg",children:[i&&U0("title",{children:i}),o&&U0("desc",{children:o}),U0("path",{d:"M0 0h16v2H0V0zm0 13h16v2H0v-2zm1-9h8a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1z",fill:"currentColor",fillRule:"evenodd"})]}),eX=null;var j9,$0,k9;const tX=({title:t="Lesson",desc:e="Lesson Icon",width:n="23",height:o="17",className:r,focusable:a="false"})=>j9("svg",{className:k9("i i-lesson",r),focusable:a,height:o,viewBox:"0 0 23 17",width:n,children:[$0("title",{children:t}),$0("desc",{children:e}),$0("path",{d:"M1.898 16.692a1 1 0 0 1 0-2h11.428a1 1 0 0 1 0 2H1.898zm0-7.083a1 1 0 0 1 0-2h19.286a1 1 0 0 1 0 2H1.898zm0-7.084a1 1 0 0 1 0-2h15a1 1 0 1 1 0 2h-15z",fillRule:"nonzero"})]}),sX=null;var A9,W0,R9;const nX=t=>A9(R9,{...t,viewBox:"0 0 16 16",children:[W0("path",{d:"M0 1C0 0.447715 0.447715 0 1 0H15C15.5523 0 16 0.447715 16 1V2.5C16 3.05228 15.5523 3.5 15 3.5H1C0.447715 3.5 0 3.05228 0 2.5V1Z"}),W0("path",{d:"M0 13.6667C0 13.0223 0.447715 12.5 1 12.5H15C15.5523 12.5 16 13.0223 16 13.6667V14.8333C16 15.4777 15.5523 16 15 16H1C0.447715 16 0 15.4777 0 14.8333V13.6667Z"}),W0("path",{d:"M0 7.25C0 6.69772 0.447715 6.25 1 6.25H15C15.5523 6.25 16 6.69772 16 7.25V8.75C16 9.30228 15.5523 9.75 15 9.75H1C0.447715 9.75 0 9.30228 0 8.75V7.25Z"})]}),oX=null;var P9,_0,w9;const rX=({title:t="List Block",desc:e="List Block",width:n="16",height:o="13",className:r,focusable:a="false"})=>P9("svg",{className:w9("i i-list-block",r),focusable:a,height:o,viewBox:"0 0 16 13",width:n,children:[_0("title",{children:t}),_0("desc",{children:e}),_0("path",{d:"M1.495 10.252a1.25 1.25 0 1 1 0 2.502 1.25 1.25 0 0 1 0-2.502zm0-4.975a1.25 1.25 0 1 1 0 2.502 1.25 1.25 0 0 1 0-2.502zm0-5.031a1.25 1.25 0 1 1 0 2.501 1.25 1.25 0 0 1 0-2.501zm4 .257h10v2h-10v-2zm0 5h10v2h-10v-2zm0 5h10v2h-10v-2z",fillRule:"evenodd"})]}),aX=null;var M9,Xl;const iX=({"aria-hidden":t,"aria-label":e,className:n,desc:o,height:r,role:a="img",title:i,width:l})=>M9("svg",{"aria-hidden":t,"aria-label":e,className:n,fill:"none",focusable:"false",height:r,role:a,viewBox:"0 0 40 40",width:l,xmlns:"http://www.w3.org/2000/svg",children:[i&&Xl("title",{children:i}),o&&Xl("desc",{children:o}),Xl("path",{clipRule:"evenodd",d:"M24 23C24 24.5064 23.1673 25.8183 21.9371 26.5005C21.9782 26.6602 22 26.8275 22 27V30C22 31.1046 21.1046 32 20 32C18.8954 32 18 31.1046 18 30V27C18 26.8275 18.0218 26.6602 18.0629 26.5005C16.8327 25.8183 16 24.5064 16 23C16 20.7909 17.7909 19 20 19C22.2091 19 24 20.7909 24 23ZM20 25C21.1046 25 22 24.1046 22 23C22 21.8954 21.1046 21 20 21C18.8954 21 18 21.8954 18 23C18 24.1046 18.8954 25 20 25Z",fill:"#000",fillRule:"evenodd"}),Xl("path",{clipRule:"evenodd",d:"M12 10V13C8.68629 13 6 15.6863 6 19V32C6 35.3137 8.68629 38 12 38H28C31.3137 38 34 35.3137 34 32V19C34 15.6863 31.3137 13 28 13V10C28 5.58172 24.4183 2 20 2C15.5817 2 12 5.58172 12 10ZM20 4C16.6863 4 14 6.68629 14 10V13H26V10C26 6.68629 23.3137 4 20 4ZM8 19C8 16.7909 9.79086 15 12 15H28C30.2091 15 32 16.7909 32 19V32C32 34.2091 30.2091 36 28 36H12C9.79086 36 8 34.2091 8 32V19Z",fill:"#000",fillRule:"evenodd"})]}),cX=null;var Bp,O9;function lX(t){return Bp(O9,{viewBox:"0 0 20 22",...t,children:Bp("path",{clipRule:"evenodd",d:"M4 9V6C4 4.4087 4.63214 2.88258 5.75736 1.75736C6.88258 0.632141 8.4087 0 10 0C11.5913 0 13.1174 0.632141 14.2426 1.75736C15.3679 2.88258 16 4.4087 16 6V9H17C18.6569 9 20 10.3431 20 12V19C20 20.6569 18.6569 22 17 22H3C1.34315 22 0 20.6569 0 19V12C0 10.3431 1.34315 9 3 9H4ZM7.17157 3.17157C7.92172 2.42143 8.93913 2 10 2C11.0609 2 12.0783 2.42143 12.8284 3.17157C13.5786 3.92172 14 4.93913 14 6V9H6V6C6 4.93913 6.42143 3.92172 7.17157 3.17157Z",fillRule:"evenodd"})})}var D9,Jl,B9;const dX=({title:t="Mail",desc:e="Mail",width:n="14",height:o="12",className:r,focusable:a="false"})=>D9("svg",{className:B9("i",r),focusable:a,height:o,viewBox:"0 0 14 12",width:n,children:[Jl("title",{children:t}),Jl("desc",{children:e}),Jl("path",{d:"M1.692.958a.55.55 0 0 0-.74.814l5.74 5.217c.209.19.53.19.74 0l5.738-5.217a.55.55 0 1 0-.74-.814l-5.369 4.88L1.692.959z"}),Jl("path",{d:"M1.872 10.206H12.25V1.915H1.872v8.291zM1.322.815H12.8a.55.55 0 0 1 .55.55v9.391a.55.55 0 0 1-.55.55H1.322a.55.55 0 0 1-.55-.55V1.365a.55.55 0 0 1 .55-.55z"})]}),uX=null,H9=({title:t="Matching",desc:e="Two rows of stacked squares",width:n="15",height:o="15",className:r,focusable:a="false"})=>(0,s.jsxs)("svg",{className:Z()("i i-matching",r),focusable:a,height:o,viewBox:"0 0 15 15",width:n,children:[(0,s.jsx)("title",{children:t}),(0,s.jsx)("desc",{children:e}),(0,s.jsx)("path",{d:"M4.814 4.975H2.19V2.35h2.625v2.625zM5.69.6H1.314C.79.6.44.95.44 1.475V5.85c0 .525.35.875.875.875H5.69c.525 0 .875-.35.875-.875V1.475C6.564.95 6.214.6 5.69.6zM12.69 4.975h-2.626V2.35h2.625v2.625zM13.563.6H9.19c-.525 0-.875.35-.875.875V5.85c0 .525.35.875.875.875h4.375c.525 0 .875-.35.875-.875V1.475c0-.525-.35-.875-.875-.875zM4.814 12.85H2.19v-2.625h2.625v2.625zm.875-4.375H1.314c-.525 0-.875.35-.875.875v4.375c0 .525.35.875.875.875H5.69c.525 0 .875-.35.875-.875V9.35c0-.525-.35-.875-.875-.875zM12.69 12.85h-2.626v-2.625h2.625v2.625zm.874-4.375H9.19c-.525 0-.875.35-.875.875v4.375c0 .525.35.875.875.875h4.375c.525 0 .875-.35.875-.875V9.35c0-.525-.35-.875-.875-.875z"})]});var F9,pc,V9;const mX=({title:t="Move to Folder",desc:e="Folder with an arrow",width:n="15",height:o="15",className:r,focusable:a="false"})=>F9("svg",{className:V9("i i-move",r),focusable:a,height:o,viewBox:"0 0 15 15",width:n,children:[pc("title",{children:t}),pc("desc",{children:e}),pc("path",{d:"M1.295 13.223l.584.583V.973l-.584.583h4.667l-.467-.233 1.75 2.333c.11.147.283.234.467.234h6.417l-.584-.584v10.5l.584-.583H1.295zm13.417.583v-10.5a.583.583 0 0 0-.583-.583H7.712l.467.233L6.429.623A.583.583 0 0 0 5.962.39H1.295a.583.583 0 0 0-.583.583v12.833c0 .322.261.584.583.584H14.13a.583.583 0 0 0 .583-.584z"}),pc("path",{d:"M4.795 7.973a.583.583 0 0 0 0 1.167h5.834a.583.583 0 1 0 0-1.167H4.795z"}),pc("path",{d:"M10.216 8.969v-.825l-2.333 2.333a.583.583 0 0 0 .825.825L11.04 8.97a.583.583 0 0 0 0-.825L8.708 5.81a.583.583 0 0 0-.825.824l2.333 2.334z"})]}),pX=null,z9=({title:t="Multiple Choice",desc:e="Stacked circles to the left of stacked lines",width:n="16",height:o="16",className:r,focusable:a="false"})=>(0,s.jsxs)("svg",{className:Z()("i i-multipleChoice",r),focusable:a,height:o,viewBox:"0 0 16 16",width:n,children:[(0,s.jsx)("title",{children:t}),(0,s.jsx)("desc",{children:e}),(0,s.jsx)("path",{d:"M8 16A8 8 0 1 1 8 0a8 8 0 0 1 0 16zm0-2A6 6 0 1 0 8 2a6 6 0 0 0 0 12z"}),(0,s.jsx)("circle",{cx:"7.904",cy:"7.904",r:"1.904"})]}),U9=({title:t="Multiple Response",desc:e="A box with a checkmark in it",width:n="16",height:o="16",className:r,focusable:a="false"})=>(0,s.jsxs)("svg",{className:Z()("i i-multipleResponse",r),focusable:a,height:o,viewBox:"0 0 16 16",width:n,children:[(0,s.jsx)("title",{children:t}),(0,s.jsx)("desc",{children:e}),(0,s.jsx)("path",{d:"M15.142.332c.6 0 1 .4 1 1v14c0 .6-.4 1-1 1h-14c-.6 0-1-.4-1-1v-14c0-.6.4-1 1-1h14zm-1 14v-12h-12v12h12zm-7.978-3.308l-2-2-.707-.708L4.87 6.902l.707.707 1.3 1.3 3.317-3.33.707-.708 1.414 1.414-.707.707-4.03 4.032-.708.707-.707-.707z"})]});var $9,G0,W9;const gX=({"aria-hidden":t,title:e="New Folder",desc:n="Folder with plus sign",width:o="14",height:r="14",className:a,focusable:i="false"})=>$9("svg",{"aria-hidden":t,className:W9("i i-newFolder",a),focusable:i,height:r,viewBox:"0 0 14 14",width:o,children:[e&&G0("title",{children:e}),G0("desc",{children:n}),G0("path",{d:"M13.125 2.625c.525 0 .875.35.875.875v9.625c0 .525-.35.875-.875.875H.875C.35 14 0 13.65 0 13.125V.875C0 .35.35 0 .875 0h3.5c.263 0 .438.087.612.262L7.35 2.625h5.775zM10 7H8V5H6v2H4v2h2v2h2V9h2V7z"})]}),CX=null;var _9,ql,G9;const xX=({title:t="New Slide",desc:e="New Slide",width:n="16",height:o="16",className:r,focusable:a="false"})=>_9("svg",{className:G9("i i-new-slide",r),focusable:a,height:o,viewBox:"0 0 16 16",width:n,children:[ql("title",{children:t}),ql("desc",{children:e}),ql("path",{d:"M7,12h2V9h3V7H9V4H7v3H4v2h3V12z",fillRule:"evenodd"}),ql("path",{d:"M14,14H2V2h12V14z M15,0H1C0.4,0,0,0.4,0,1v14c0,0.6,0.4,1,1,1h14c0.6,0,1-0.4,1-1V1C15.9,0.4,15.5,0,15,0z",fillRule:"evenodd"})]}),bX=null;var K9,K0,Q9;const yX=({title:t="Next Slide",desc:e="Next Slide",width:n="16",height:o="13.4",className:r,focusable:a="false"})=>K9("svg",{className:Q9("i i-next-slide",r),focusable:a,height:o,viewBox:"0 0 16 13.4",width:n,children:[K0("title",{children:t}),K0("desc",{children:e}),K0("path",{d:"M9.3,0L7.9,1.4l4.3,4.3H0v2h12.2L7.9,12l1.4,1.4L16,6.7L9.3,0",fillRule:"evenodd"})]}),LX=null;var Z9,Q0,Y9;const EX=({title:t="Not Allowed",desc:e="A circle with a slanted line through it",width:n="12",height:o="12",className:r,focusable:a="false"})=>Z9("svg",{className:Y9("i i-notAllowed",r),focusable:a,height:o,viewBox:"0 0 12 12",width:n,children:[Q0("title",{children:t}),Q0("desc",{children:e}),Q0("path",{d:"M6 10.5c-.975 0-1.875-.3-2.625-.825l6.3-6.3c.525.75.825 1.65.825 2.625 0 2.475-2.025 4.5-4.5 4.5m0-9c.975 0 1.875.3 2.625.825l-6.3 6.3A4.546 4.546 0 0 1 1.5 6c0-2.475 2.025-4.5 4.5-4.5M6 0C2.7 0 0 2.7 0 6s2.7 6 6 6 6-2.7 6-6-2.7-6-6-6",fill:"#FFF",fillRule:"evenodd"})]}),SX=null;var X9,Hp;const TX=({className:t})=>X9("svg",{"aria-hidden":"true",className:t,fill:"currentColor",focusable:"false",viewBox:"0 0 12 14",xmlns:"http://www.w3.org/2000/svg",children:[Hp("path",{clipRule:"evenodd",d:"M1.26256 1.09594C1.59075 0.767748 2.03587 0.583374 2.5 0.583374H6.58333C6.73804 0.583374 6.88642 0.644832 6.99581 0.754228L11.0791 4.83756C11.1885 4.94696 11.25 5.09533 11.25 5.25004V11.6667C11.25 12.1308 11.0656 12.576 10.7374 12.9041C10.4092 13.2323 9.96413 13.4167 9.5 13.4167H2.5C2.03587 13.4167 1.59075 13.2323 1.26256 12.9041C0.934374 12.576 0.75 12.1308 0.75 11.6667V2.33337C0.75 1.86925 0.934374 1.42413 1.26256 1.09594ZM2.5 1.75004C2.34529 1.75004 2.19692 1.8115 2.08752 1.92089C1.97812 2.03029 1.91667 2.17866 1.91667 2.33337V11.6667C1.91667 11.8214 1.97812 11.9698 2.08752 12.0792C2.19692 12.1886 2.34529 12.25 2.5 12.25H9.5C9.65471 12.25 9.80308 12.1886 9.91248 12.0792C10.0219 11.9698 10.0833 11.8214 10.0833 11.6667V5.49166L6.34171 1.75004H2.5Z",fillRule:"evenodd"}),Hp("path",{clipRule:"evenodd",d:"M6.58333 0.583374C6.9055 0.583374 7.16667 0.844541 7.16667 1.16671V4.66671H10.6667C10.9888 4.66671 11.25 4.92787 11.25 5.25004C11.25 5.57221 10.9888 5.83337 10.6667 5.83337H6.58333C6.26117 5.83337 6 5.57221 6 5.25004V1.16671C6 0.844541 6.26117 0.583374 6.58333 0.583374Z",fillRule:"evenodd"})]}),IX=null;var J9,fc,q9;const NX=({title:t="Hide",desc:e="Shape of an eye with a stroke through it",width:n="20",height:o="16",className:r,focusable:a="false"})=>J9("svg",{className:q9("i",r),focusable:a,height:o,viewBox:"0 0 20 16",width:n,children:[fc("title",{children:t}),fc("desc",{children:e}),fc("path",{d:"M3.23,12.35 L3.94,11.64 C2.73771334,10.6447807 1.76251115,9.40361431 1.08,8 C2.47,5 5.96,2 9.99,2 C11.0161024,2.00843654 12.0323067,2.20151536 12.99,2.57 L13.76,1.8 C12.5726697,1.28490674 11.2941824,1.01288817 10,1 C5.61,1 1.52,4.28 0,8 C0.716531693,9.68559192 1.82365735,11.1766125 3.23,12.35 L3.23,12.35 Z"}),fc("path",{d:"M16.77,3.65 L16.06,4.36 C17.2622867,5.35521926 18.2374889,6.59638569 18.92,8 C17.53,11 14.04,14 10.01,14 C8.9838976,13.9915635 7.96769327,13.7984846 7.01,13.43 L6.24,14.2 C7.43352094,14.717712 8.71907199,14.9897863 10.02,15 C14.41,15 18.5,11.72 20.02,8 C19.297748,6.3123309 18.1836278,4.82112397 16.77,3.65 L16.77,3.65 Z"}),fc("rect",{height:"1.41",transform:"translate(9.992148, 7.999769) rotate(-45.000000) translate(-9.992148, -7.999769) ",width:"21.21",x:"-0.61285173",y:"7.29476926"})]}),jX=null;var e8,Fp,t8;const kX=t=>e8(t8,{viewBox:"0 0 16 16",...t,children:[Fp("path",{clipRule:"evenodd",d:"M7.33351 13.3333C7.33351 12.9651 7.63199 12.6667 8.00018 12.6667H14.0002C14.3684 12.6667 14.6668 12.9651 14.6668 13.3333C14.6668 13.7015 14.3684 14 14.0002 14H8.00018C7.63199 14 7.33351 13.7015 7.33351 13.3333Z",fillRule:"evenodd"}),Fp("path",{clipRule:"evenodd",d:"M12.0002 2.58579C11.8019 2.58579 11.6118 2.66455 11.4716 2.80474L3.26882 11.0075L2.91642 12.4171L4.32601 12.0647L12.5288 3.86193C12.5982 3.79251 12.6533 3.7101 12.6908 3.61941C12.7284 3.52871 12.7477 3.4315 12.7477 3.33333C12.7477 3.23516 12.7284 3.13796 12.6908 3.04726C12.6533 2.95656 12.5982 2.87415 12.5288 2.80474C12.4594 2.73532 12.3769 2.68026 12.2863 2.64269C12.1956 2.60512 12.0983 2.58579 12.0002 2.58579ZM10.5288 1.86193C10.919 1.47169 11.4483 1.25245 12.0002 1.25245C12.2734 1.25245 12.544 1.30628 12.7965 1.41085C13.049 1.51542 13.2784 1.6687 13.4716 1.86193C13.6648 2.05516 13.8181 2.28455 13.9227 2.53701C14.0272 2.78948 14.0811 3.06007 14.0811 3.33333C14.0811 3.6066 14.0272 3.87719 13.9227 4.12965C13.8181 4.38212 13.6648 4.61151 13.4716 4.80474L5.13825 13.1381C5.05281 13.2235 4.94576 13.2841 4.82853 13.3134L2.16187 13.9801C1.93468 14.0369 1.69436 13.9703 1.52877 13.8047C1.36319 13.6392 1.29662 13.3988 1.35342 13.1716L2.02008 10.505C2.04939 10.3878 2.11 10.2807 2.19544 10.1953L10.5288 1.86193Z",fillRule:"evenodd"})]}),AX=null;var s8,Z0,n8;const RX=({title:t="Edit",desc:e="Pencil",width:n="11",height:o="11",className:r,focusable:a="false"})=>s8("svg",{className:n8("i i-pencil",r),focusable:a,height:o,viewBox:"0 0 10 10",width:n,children:[Z0("title",{children:t}),Z0("desc",{children:e}),Z0("path",{d:"M8.19.19a.6.6,0,0,0-.87,0L0,7.5V10H2.5L9.81,2.69a.6.6,0,0,0,0-.87Z"})]}),PX=null;var o8,Y0;const wX=({"aria-hidden":t,"aria-label":e,className:n,desc:o,height:r="16",role:a="img",title:i,width:l="16"})=>o8("svg",{"aria-hidden":t,"aria-label":e,className:n,fill:"none",focusable:"false",height:r,role:a,viewBox:"0 0 16 16",width:l,xmlns:"http://www.w3.org/2000/svg",children:[i&&Y0("title",{children:i}),o&&Y0("desc",{children:o}),Y0("path",{clipRule:"evenodd",d:"M12.668 2.11458C12.5079 2.11458 12.3494 2.14611 12.2015 2.20737C12.0536 2.26863 11.9192 2.35842 11.8061 2.47161L2.93124 11.3464L2.2848 13.7167L4.6551 13.0703L13.5299 4.19546C13.6431 4.08227 13.7329 3.9479 13.7941 3.80001C13.8554 3.65212 13.8869 3.49361 13.8869 3.33353C13.8869 3.17346 13.8554 3.01495 13.7941 2.86706C13.7329 2.71917 13.6431 2.5848 13.5299 2.47161C13.4167 2.35842 13.2823 2.26863 13.1345 2.20737C12.9866 2.14611 12.8281 2.11458 12.668 2.11458ZM11.6913 0.975531C12.0009 0.847267 12.3328 0.78125 12.668 0.78125C13.0032 0.78125 13.335 0.847267 13.6447 0.975531C13.9544 1.1038 14.2357 1.2918 14.4727 1.5288C14.7097 1.7658 14.8977 2.04716 15.026 2.35682C15.1543 2.66648 15.2203 2.99837 15.2203 3.33353C15.2203 3.6687 15.1543 4.00059 15.026 4.31025C14.8977 4.61991 14.7097 4.90127 14.4727 5.13827L5.47272 14.1383C5.39069 14.2203 5.28866 14.2795 5.17673 14.31L1.51006 15.31C1.27925 15.373 1.03241 15.3074 0.863246 15.1383C0.69408 14.9691 0.628527 14.7223 0.691475 14.4915L1.69148 10.8248C1.722 10.7129 1.78121 10.6108 1.86325 10.5288L10.8632 1.5288C11.1002 1.2918 11.3816 1.1038 11.6913 0.975531Z",fill:"currentColor",fillRule:"evenodd"})]}),MX=null;var r8,ed,a8;const OX=({title:t="Person",desc:e="Person outline",width:n="16",height:o="18",className:r,focusable:a="false"})=>r8("svg",{className:a8("i",r),focusable:a,height:o,viewBox:"0 0 16 18",width:n,children:[ed("title",{children:t}),ed("desc",{children:e}),ed("path",{d:"M1.72039 11.8884C2.50179 11.107 3.5616 10.668 4.66667 10.668H11.3333C12.4384 10.668 13.4982 11.107 14.2796 11.8884C15.061 12.6698 15.5 13.7296 15.5 14.8346V16.5013C15.5 16.9615 15.1269 17.3346 14.6667 17.3346C14.2064 17.3346 13.8333 16.9615 13.8333 16.5013V14.8346C13.8333 14.1716 13.5699 13.5357 13.1011 13.0669C12.6323 12.598 11.9964 12.3346 11.3333 12.3346H4.66667C4.00363 12.3346 3.36774 12.598 2.8989 13.0669C2.43006 13.5357 2.16667 14.1716 2.16667 14.8346V16.5013C2.16667 16.9615 1.79357 17.3346 1.33333 17.3346C0.873096 17.3346 0.5 16.9615 0.5 16.5013V14.8346C0.5 13.7296 0.938987 12.6698 1.72039 11.8884Z"}),ed("path",{d:"M8 2.33464C6.61929 2.33464 5.5 3.45392 5.5 4.83464C5.5 6.21535 6.61929 7.33464 8 7.33464C9.38071 7.33464 10.5 6.21535 10.5 4.83464C10.5 3.45392 9.38071 2.33464 8 2.33464ZM3.83333 4.83464C3.83333 2.53345 5.69881 0.667969 8 0.667969C10.3012 0.667969 12.1667 2.53345 12.1667 4.83464C12.1667 7.13582 10.3012 9.0013 8 9.0013C5.69881 9.0013 3.83333 7.13582 3.83333 4.83464Z"})]}),DX=null;class X0 extends h.Component{constructor(...e){super(...e),this.maskId=`person-unknown-mask-${ft()()}`,this.pathId=`person-unknown-path-${ft()()}`}render(){const{title:e="Person Unknown",desc:n,width:o="38",height:r="38",className:a,decorative:i,focusable:l="false"}=this.props;return(0,s.jsxs)("svg",{"aria-hidden":i,className:Z()("i i-person-unknown",a),focusable:l,height:r,viewBox:"0 0 38 38",width:o,children:[e&&(0,s.jsx)("title",{children:e}),n&&(0,s.jsx)("desc",{children:n}),(0,s.jsx)("defs",{children:(0,s.jsx)("circle",{cx:"19",cy:"19",id:this.pathId,r:"19"})}),(0,s.jsxs)("g",{fill:"none",fillRule:"evenodd",stroke:"none",strokeWidth:"1",children:[(0,s.jsx)("mask",{fill:"#fff",id:this.maskId,children:(0,s.jsx)("use",{href:`#${this.pathId}`})}),(0,s.jsx)("use",{fill:"#D8D8D8",href:`#${this.pathId}`}),(0,s.jsx)("path",{d:"M15.1239928,24 C12.6645753,22.6352711 11,20.0120267 11,17 C11,12.581722 14.581722,9 19,9 C23.418278,9 27,12.581722 27,17 C27,20.0120267 25.3354247,22.6352711 22.8760072,24 L23,24 C27.4182847,24 31,27.5817153 31,32 L31,43 C31,43.5522847 30.5522847,44 30,44 L8,44 C7.44771525,44 7,43.5522847 7,43 L7,32 C7,27.5817153 10.5817153,24 15,24 L15.1239928,24 Z",fill:"#ADAEAF",fillRule:"nonzero",mask:`url(#${this.maskId})`})]})]})}}const Vp=({title:t="Pick One",desc:e="Pick One",width:n="16",height:o="14",className:r,focusable:a="false","aria-hidden":i})=>(0,s.jsxs)("svg",{"aria-hidden":i,className:Z()("i i-pickOne",r),focusable:a,height:o,viewBox:"0 0 16 14",width:n,xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("title",{children:t}),(0,s.jsx)("desc",{children:e}),(0,s.jsxs)("g",{fillRule:"evenodd",children:[(0,s.jsx)("path",{d:"M5.039 10.865A1.284 1.284 0 1 1 3.754 9.58v-1.6a2.884 2.884 0 1 0-.001 5.768 2.884 2.884 0 0 0 0-5.768v1.6c.71 0 1.286.575 1.286 1.285zM5.039 3.851a1.284 1.284 0 1 1-1.285-1.285v-1.6a2.884 2.884 0 1 0-.001 5.769 2.884 2.884 0 0 0 0-5.769v1.6c.71 0 1.286.575 1.286 1.285z",fillRule:"nonzero"}),(0,s.jsx)("path",{d:"M8.862 1.324h7v2h-7zM8.862 4.324h7v2h-7zM8.862 8.324h7v2h-7zM8.862 11.324h7v2h-7z"})]})]});var i8,td,c8;const HX=({title:t="Play",desc:e="Triangle facing right that will play the media",width:n="16",height:o="22",className:r,focusable:a="false"})=>i8("svg",{className:c8("i",r),focusable:a,height:o,viewBox:"0 0 16 22",width:n,children:[td("desc",{children:e}),td("title",{children:t}),td("g",{transform:"translate(-124 -107)",children:td("path",{d:"M139.493031,116.612695 L126.142419,107.267267 C125.207876,106.599736 124.006321,107.267267 124.006321,108.335316 L124.006321,127.026172 C124.006321,128.094221 125.207876,128.761751 126.142419,128.094221 L139.493031,118.748793 C140.160561,118.214768 140.160561,117.146719 139.493031,116.612695"})})]}),FX=null;var l8,J0,d8;const VX=({title:t="Process Block",desc:e="Process Block",width:n="29",height:o="17",className:r,focusable:a="false"})=>l8("svg",{className:d8("i i-process-block",r),focusable:a,height:o,viewBox:"0 0 29 17",width:n,children:[J0("title",{children:t}),J0("desc",{children:e}),J0("path",{d:"M21.22 16.5h-14c-.6 0-1-.4-1-1v-14c0-.6.4-1 1-1h14c.6 0 1 .4 1 1v14c0 .6-.4 1-1 1zm-13-2h12v-12h-12v12zm2-10h7v2h-7v-2zm0 3h8v2h-8v-2zm0 3h6v2h-6v-2zm14.413-3.293a1 1 0 0 1 1.415-1.414l2.121 2.121a1 1 0 0 1 0 1.414l-2.121 2.122a1 1 0 0 1-1.415-1.414l1.415-1.415-1.415-1.414zM2.4 8.621l1.415 1.415A1 1 0 0 1 2.4 11.45L.28 9.328a1 1 0 0 1 0-1.414L2.4 5.793a1 1 0 0 1 1.415 1.414L2.4 8.621z",fillRule:"evenodd"})]}),zX=null;function u8(t){return(0,s.jsxs)(Vs,{viewBox:"0 0 16 16",...t,children:[(0,s.jsx)("path",{d:"M14,14 L2,14 L2,2 L14,2 L14,14 Z M15,0 L1,0 C0.4,0 0,0.4 0,1 L0,15 C0,15.6 0.4,16 1,16 L15,16 C15.6,16 16,15.6 16,15 L16,1 C16,0.4 15.6,0 15,0 L15,0 Z"}),(0,s.jsx)("path",{d:"M7.9997,11 C8.5517,11 8.9997,11.448 8.9997,12 C8.9997,12.552 8.5517,13 7.9997,13 C7.4477,13 6.9997,12.552 6.9997,12 C6.9997,11.448 7.4477,11 7.9997,11"}),(0,s.jsx)("path",{d:"M7.0997,5.5 C7.2997,5.2 7.5997,5 7.9997,5 C8.5997,5 8.9997,5.4 8.9997,6 C8.9997,6.3 8.8997,6.4 8.3997,6.7 C7.7997,7.1 6.9997,7.7 6.9997,9 L6.9997,10 L8.9997,10 L8.9997,9 C8.9997,8.8 8.9997,8.7 9.4997,8.4 C10.0997,8 10.9997,7.4 10.9997,6 C10.9997,4.3 9.6997,3 7.9997,3 C6.8997,3 5.8997,3.6 5.3997,4.5 L4.8997,5.4 L6.5997,6.4 L7.0997,5.5 Z"})]})}var h8,q0,m8;const UX=({title:t="Quiz",desc:e="Quiz Icon",width:n="25",height:o="25",className:r,focusable:a="false"})=>h8("svg",{className:m8("i i-quiz",r),focusable:a,height:o,viewBox:"0 0 25 25",width:n,children:[q0("title",{children:t}),q0("desc",{children:e}),q0("path",{d:"M1.078.609h22a1 1 0 0 1 1 1v22a1 1 0 0 1-1 1h-22a1 1 0 0 1-1-1v-22a1 1 0 0 1 1-1zm1 2v20h20v-20h-20zm11 11.157a1 1 0 1 1-2 0v-1a1 1 0 0 1 1-1c1.048 0 2-.952 2-2 0-1.047-.952-2-2-2-.715 0-1.521.58-1.905 1.348a1 1 0 1 1-1.79-.895c.703-1.404 2.164-2.453 3.695-2.453 2.152 0 4 1.848 4 4 0 1.81-1.305 3.403-3 3.866v.134zm-2 3.843a1 1 0 1 1 2 0v1a1 1 0 1 1-2 0v-1z",fillRule:"nonzero"})]}),$X=null;var zp,p8;const WX=t=>zp(p8,{...t,viewBox:"0 0 10 13",children:zp("path",{d:"M2.81 5.188H8.5V12a.75.75 0 1 0 1.5 0V4.437a.75.75 0 0 0-.75-.75H2.81L4.969 1.53A.75.75 0 0 0 3.908.47L.47 3.907a.75.75 0 0 0 0 1.06l3.437 3.438a.75.75 0 0 0 1.06-1.06L2.812 5.188z"})}),_X=null;var f8,Up,v8;function GX(t){return f8(v8,{viewBox:"0 0 15 14",...t,children:[Up("path",{clipRule:"evenodd",d:"M0.666669 1.00005C1.03486 1.00005 1.33334 1.29853 1.33334 1.66672V5.00005H4.66667C5.03486 5.00005 5.33334 5.29853 5.33334 5.66672C5.33334 6.0349 5.03486 6.33338 4.66667 6.33338H0.666669C0.298479 6.33338 2.01494e-06 6.0349 2.01494e-06 5.66672V1.66672C2.01494e-06 1.29853 0.298479 1.00005 0.666669 1.00005Z",fillRule:"evenodd"}),Up("path",{clipRule:"evenodd",d:"M7.07024 0.404628C8.50152 0.203255 9.95947 0.472493 11.2244 1.17177C12.4894 1.87106 13.4928 2.9625 14.0835 4.28165C14.6742 5.60081 14.8202 7.07621 14.4995 8.48555C14.1788 9.89489 13.4088 11.1618 12.3054 12.0955C11.202 13.0291 9.82511 13.5789 8.38212 13.6619C6.93913 13.745 5.50824 13.3568 4.30504 12.5559C3.10184 11.755 2.19151 10.5848 1.71122 9.22158C1.58887 8.87431 1.7712 8.49361 2.11847 8.37127C2.46574 8.24892 2.84644 8.43125 2.96879 8.77852C3.35302 9.86911 4.08128 10.8053 5.04384 11.446C6.0064 12.0867 7.15112 12.3972 8.30551 12.3308C9.4599 12.2644 10.5614 11.8245 11.4441 11.0776C12.3268 10.3307 12.9429 9.31717 13.1994 8.18969C13.456 7.06222 13.3392 5.8819 12.8666 4.82658C12.3941 3.77125 11.5913 2.8981 10.5794 2.33867C9.56739 1.77925 8.40102 1.56386 7.256 1.72496C6.11098 1.88606 5.04933 2.41492 4.23101 3.23185C4.22625 3.2366 4.22142 3.24128 4.21652 3.24588L1.12319 6.15255C0.854867 6.40468 0.432961 6.39155 0.180833 6.12323C-0.0712944 5.85491 -0.0581685 5.43301 0.210151 5.18088L3.29633 2.28094C4.31823 1.26392 5.64238 0.60552 7.07024 0.404628Z",fillRule:"evenodd"})]})}var $p,g8;function KX(t){return $p(g8,{viewBox:"0 0 28 28",...t,children:$p("path",{d:"M0.602462 14.9446C-0.0244077 15.1759 -0.0720487 15.7437 0.0596979 16.4712C1.24525 23.0177 7.00549 28 13.9288 28C22.0136 28 28.5288 21.1924 27.9661 13.0292C27.4922 6.10378 21.8359 0.475002 14.8765 0.0329519C10.0788 -0.291229 5.72563 1.80126 2.97148 5.21978L1.63888 4.12944C1.07616 3.68748 0.217442 4.07044 0.217442 4.8072V9.84668C0.217442 10.4067 0.720862 10.8192 1.25405 10.7012L1.49079 10.6422L2.61619 10.4064L3.09007 10.318L6.22894 9.64027C6.93974 9.49288 7.17671 8.57935 6.58425 8.10777L4.98518 6.84067C7.32461 3.95266 11.0858 2.21377 15.2022 2.65593C20.4735 3.21591 24.738 7.45959 25.3303 12.7052C26.0709 19.5717 20.681 25.4068 13.9287 25.4068C8.30488 25.4068 3.62815 21.3639 2.64243 16.0542C2.51095 15.346 2.19718 14.5886 1.49075 14.7383L0.602462 14.9446Z",fill:"currentColor"})})}var C8,e1;const QX=({"aria-hidden":t,"aria-label":e,className:n,desc:o,height:r="15",role:a="img",title:i,width:l="16"})=>C8("svg",{"aria-hidden":t,"aria-label":e,className:n,focusable:"false",height:r,role:a,viewBox:"0 0 16 15",width:l,xmlns:"http://www.w3.org/2000/svg",children:[i&&e1("title",{children:i}),o&&e1("desc",{children:o}),e1("path",{d:"M0 0h16v2H0V0zm0 13h16v2H0v-2zm7-9h8a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1z",fill:"currentColor",fillRule:"evenodd"})]}),ZX=null;function x8(t){return(0,s.jsx)(Vs,{viewBox:"0 0 23 17",...t,children:(0,s.jsx)("path",{d:"M19.347 8.275l1.88 1.714a.727.727 0 0 0 .98-1.074l-3.225-2.941a.727.727 0 0 0-1.027.047l-2.94 3.224a.727.727 0 0 0 1.075.98l1.802-1.976a6.545 6.545 0 0 1-11.56 4.288.727.727 0 1 0-1.114.935 8 8 0 0 0 14.129-5.197zm-16.039.162l-1.79-1.633a.727.727 0 1 0-.98 1.074l3.223 2.94c.297.272.757.25 1.028-.046l2.94-3.224a.727.727 0 0 0-1.075-.98L4.768 8.636a6.545 6.545 0 0 1 11.555-4.482.727.727 0 1 0 1.114-.936A8 8 0 0 0 3.308 8.437z",fillRule:"nonzero"})})}var Wp,b8;const YX=({width:t="16",height:e="16",className:n})=>Wp("svg",{"aria-hidden":"true",className:b8("i i-search",n),fill:"currentColor",focusable:"false",height:e,viewBox:"0 0 15.6 14.7",width:t,children:Wp("path",{d:"M15.2,12.8l-2.9-2.9c0.5-1,0.9-2,0.9-3.2c0-3.6-2.9-6.5-6.5-6.5c-3.6,0-6.5,2.9-6.5,6.5s2.9,6.5,6.5,6.5c1.7,0,3.2-0.6,4.4-1.7l2.8,2.8c0.4,0.4,1,0.4,1.4,0C15.6,13.8,15.6,13.2,15.2,12.8z M6.7,11.2c-2.5,0-4.5-2-4.5-4.5s2-4.5,4.5-4.5s4.5,2,4.5,4.5S9.1,11.2,6.7,11.2z"})}),XX=null;var _p,y8;const JX=t=>_p(y8,{...t,viewBox:"0 0 15 15",children:_p("path",{d:"M13.32 2.844c.524 0 .874.35.874.875v9.625c0 .525-.35.875-.875.875H1.07c-.525 0-.875-.35-.875-.875V1.094c0-.525.35-.875.875-.875h3.5c.263 0 .438.087.613.262l2.362 2.363h5.775zM7.173 5.312c-.874 0-1.589.715-1.589 1.59v.396c0 .874.715 1.589 1.589 1.589s1.589-.715 1.589-1.589v-.397c0-.874-.715-1.589-1.59-1.589zm1.589 3.734a2.218 2.218 0 0 1-1.59.635 2.218 2.218 0 0 1-1.588-.635c-.715.238-1.191.754-1.191 1.43v1.191h5.56v-1.191c0-.676-.477-1.192-1.191-1.43z"})}),qX=null;var L8,vc,E8;const eJ=({title:t="Share Folder",desc:e="Share folder",width:n="14",height:o="14",className:r,focusable:a="false"})=>L8("svg",{className:E8("i",r),focusable:a,height:o,viewBox:"0 0 14 14",width:n,children:[vc("title",{children:t}),vc("desc",{children:e}),vc("path",{d:"M2.74509 3.33986C2.74509 1.50367 4.24876 0 6.08495 0C7.92114 0 9.42481 1.50367 9.42481 3.33986V4.25489C9.42481 6.09108 7.92114 7.59475 6.08495 7.59475C4.24876 7.59475 2.74509 6.09108 2.74509 4.25489V3.33986ZM6.08495 1.18954C4.90154 1.18954 3.93463 2.15645 3.93463 3.33986V4.25489C3.93463 5.4383 4.90154 6.40521 6.08495 6.40521C7.26836 6.40521 8.23527 5.4383 8.23527 4.25489V3.33986C8.23527 2.15645 7.26836 1.18954 6.08495 1.18954Z"}),vc("path",{d:"M0 13.4052C0 11.02 1.86968 9.1503 4.25489 9.1503H6.67972V10.3398H4.25489C2.92848 10.3398 1.79889 11.1591 1.38898 12.3889L1.24847 12.8104H6.67972V14H0V13.4052Z"}),vc("path",{d:"M10.9804 10.9804V9.1503H12.1699V10.9804H14V12.1699H12.1699V14H10.9804V12.1699H9.1503V10.9804H10.9804Z"})]}),tJ=null;var Gp,S8;const sJ=t=>Gp(S8,{viewBox:"0 0 16 16",...t,children:Gp("path",{d:"M14.1259 3.625C14.65 3.625 15 3.975 15 4.5V14.125C15 14.65 14.65 15 14.1249 15H1.87506C1.35003 15 1 14.65 1 14.125V1.875C1 1.35 1.35003 1 1.87506 1H5.37531C5.63833 1 5.81334 1.087 5.98836 1.262L8.35052 3.625H14.1259ZM7.9785 6.093C7.10444 6.093 6.38938 6.808 6.38938 7.683V8.079C6.38938 8.953 7.10444 9.668 7.9785 9.668C8.85256 9.668 9.56761 8.953 9.56761 8.079V7.682C9.56761 6.808 8.85256 6.093 7.9775 6.093H7.9785ZM9.56761 9.827C9.35786 10.0329 9.10928 10.1951 8.8363 10.3041C8.56332 10.4131 8.2714 10.4668 7.9775 10.462C7.68393 10.4665 7.39239 10.4127 7.11977 10.3037C6.84716 10.1947 6.5989 10.0327 6.38938 9.827C5.67433 10.065 5.1983 10.581 5.1983 11.257V12.448H10.7587V11.257C10.7587 10.581 10.2817 10.065 9.56761 9.827Z"})}),nJ=null;var T8,gc,I8;const oJ=({title:t="Sortable",desc:e="Three horizontal lines stacked on top of each other",width:n="22",height:o="7",className:r,focusable:a="false"})=>T8("svg",{className:I8("i i-sortable",r),focusable:a,height:o,viewBox:"0 0 22 7",width:n,children:[gc("title",{children:t}),gc("desc",{children:e}),gc("rect",{height:"1",strokeWidth:"1",width:"100%",x:"0",y:"0"}),gc("rect",{height:"1",strokeWidth:"1",width:"100%",x:"0",y:"3"}),gc("rect",{height:"1",strokeWidth:"1",width:"100%",x:"0",y:"6"})]}),rJ=null;var N8,t1,j8;const aJ=({title:t="Sorting Block",desc:e="Sorting Block",width:n="22",height:o="15",className:r,focusable:a="false"})=>N8("svg",{className:j8("i i-sorting-block",r),focusable:a,height:o,viewBox:"0 0 22 15",width:n,children:[t1("title",{children:t}),t1("desc",{children:e}),t1("path",{d:"M2.056 9.736v3.4h6.4v-3.4h-6.4zm-.8-1.8h8a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1h-8a1 1 0 0 1-1-1v-5a1 1 0 0 1 1-1zm11 0h8a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1h-8a1 1 0 0 1-1-1v-5a1 1 0 0 1 1-1zm.8 5.2h6.4v-3.4h-6.4v3.4zM6.772.064h8a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1h-8a1 1 0 0 1-1-1v-5a1 1 0 0 1 1-1zm.8 1.8v3.4h6.4v-3.4h-6.4z",fillRule:"nonzero"})]}),iJ=null,k8=({title:t="Spinner",desc:e="Hollow circle fading from transparent to gray",width:n="21",height:o="20",className:r,focusable:a="false"})=>(0,s.jsxs)("svg",{className:Z()("i i-spinner",r),focusable:a,height:o,viewBox:"0 0 21 20",width:n,children:[(0,s.jsx)("title",{children:t}),(0,s.jsx)("desc",{children:e}),(0,s.jsx)("defs",{children:(0,s.jsxs)("radialGradient",{cx:"89.364%",cy:"24.157%",fx:"89.364%",fy:"24.157%",gradientTransform:"rotate(69.991 .842 .205) scale(1 .69785)",id:"spinner-radial-gradient",r:"45.607%",children:[(0,s.jsx)("stop",{offset:"0%",stopColor:"#C8C8C8",stopOpacity:"0"}),(0,s.jsx)("stop",{offset:"100%",stopColor:"#979797"})]})}),(0,s.jsx)("path",{d:"M74.5 3c-5.523 0-10 4.477-10 10s4.477 10 10 10 10-4.477 10-10a9.957 9.957 0 0 0-1.477-5.233 1 1 0 0 0-1.703 1.048A8 8 0 1 1 74.5 5a1 1 0 0 0 0-2z",fill:"url(#spinner-radial-gradient)",fillRule:"nonzero",transform:"rotate(-159 42.222 17.43)"})]});var Kp,sd,A8;const lJ=({title:t="SquareIcon",desc:e="Outline of a square",width:n="30",height:o="30",className:r,focusable:a="false"})=>Kp("svg",{className:A8("i i-square-outline",r),focusable:a,height:o,viewBox:"0 0 30 30",width:n,children:[sd("title",{children:t}),sd("desc",{children:e}),Kp("g",{fill:"none",fillRule:"evenodd",children:[sd("rect",{className:"overlay",fill:"none",fillRule:"evenodd",height:"28",rx:"2",strokeWidth:"2",transform:"translate(0 -1)",width:"28",x:"1",y:"2"}),sd("rect",{fill:"none",fillRule:"evenodd",height:"28",rx:"2",stroke:"#FFF",strokeOpacity:"0.63",strokeWidth:"2",transform:"translate(0 -1)",width:"28",x:"1",y:"2"})]})]}),dJ=null;var Qp,sa,R8;const s1="overlay",uJ=({title:t="Stack",desc:e="Three horizontal bars stacked",width:n="30",height:o="30",className:r,focusable:a="false"})=>Qp("svg",{className:R8("i i-stack",r),focusable:a,height:o,viewBox:"0 0 30 30",width:n,children:[sa("title",{children:t}),sa("desc",{children:e}),Qp("g",{fill:"none",fillRule:"evenodd",children:[sa("rect",{className:s1,height:"8.824",rx:"1",width:"30"}),sa("rect",{className:s1,height:"8.824",rx:"1",width:"30",y:"10.588"}),sa("rect",{className:s1,height:"8.824",rx:"1",width:"30",y:"21.176"}),sa("rect",{fill:"#FFF",fillOpacity:"0.63",height:"8.824",rx:"1",width:"30"}),sa("rect",{fill:"#FFF",fillOpacity:"0.4",height:"8.824",rx:"1",width:"30",y:"10.588"})]})]}),hJ=null;var Zp,P8;function mJ(t){return Zp(P8,{viewBox:"0 0 16 16",...t,children:Zp("path",{d:"M12.586 7H1C0.734784 7 0.48043 7.10535 0.292893 7.29289C0.105357 7.48042 0 7.73478 0 8C0 8.26521 0.105357 8.51957 0.292893 8.7071C0.48043 8.89464 0.734784 9 1 9H12.586L9.293 12.293C9.11084 12.4816 9.01005 12.7342 9.01233 12.9964C9.0146 13.2586 9.11977 13.5094 9.30518 13.6948C9.49059 13.8802 9.7414 13.9854 10.0036 13.9877C10.2658 13.9899 10.5184 13.8892 10.707 13.707L15.707 8.707C15.8945 8.51947 15.9998 8.26516 15.9998 8C15.9998 7.73483 15.8945 7.48052 15.707 7.293L10.707 2.293C10.5184 2.11084 10.2658 2.01004 10.0036 2.01232C9.7414 2.0146 9.49059 2.11977 9.30518 2.30518C9.11977 2.49058 9.0146 2.7414 9.01233 3.00359C9.01005 3.26579 9.11084 3.51839 9.293 3.707L12.586 7Z"})})}var w8,nd,M8;const pJ=({title:t="Success",desc:e="Checkmark with a circle",width:n="51",height:o="51",className:r=null,focusable:a="false"})=>w8("svg",{className:M8("i",r),focusable:a,height:o,viewBox:"0 0 51 51",width:n,children:[nd("title",{children:t}),nd("desc",{children:e}),nd("path",{d:"M25.06 50.57c-13.808 0-25-11.194-25-25 0-13.808 11.192-25 25-25 13.806 0 25 11.192 25 25 0 13.806-11.194 25-25 25zm0-2c12.702 0 23-10.298 23-23 0-12.703-10.298-23-23-23-12.703 0-23 10.297-23 23 0 12.702 10.297 23 23 23z"}),nd("path",{d:"M17.659 25.622a1 1 0 0 0-1.318 1.505l6.2 5.425a1 1 0 0 0 1.367-.047l10.763-10.8a1 1 0 1 0-1.416-1.41L23.153 30.428l-5.494-4.807z"})]}),fJ=null;var O8,n1,D8;const vJ=({title:t="Text Block",desc:e="Text Block",width:n="17",height:o="17",className:r,focusable:a="false"})=>O8("svg",{className:D8("i i-text-block",r),focusable:a,height:o,viewBox:"0 0 17 17",width:n,children:[n1("title",{children:t}),n1("desc",{children:e}),n1("path",{d:"M15.747.5c.6 0 1 .4 1 1v14c0 .6-.4 1-1 1h-14c-.6 0-1-.4-1-1v-14c0-.6.4-1 1-1h14zm-13 2v12h12v-12h-12zm2 1h8v3h-1l-1-1h-1v6l1 1v1h-4v-1l1-1v-6h-1l-1 1h-1v-3z",fillRule:"evenodd"})]}),gJ=null;var Yp,od,B8;const CJ=({title:t="Text Slide",desc:e="Text Slide",width:n="16",height:o="14",className:r,focusable:a="false"})=>Yp("svg",{className:B8("i i-text-slide",r),focusable:a,height:o,viewBox:"0 0 16 14",width:n,children:[od("title",{children:t}),od("desc",{children:e}),Yp("g",{fillRule:"evenodd",children:[od("path",{d:"M2 12h12V2H2v10zM16 1v12a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V1a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1z"}),od("path",{d:"M4 8h8v2H4z"})]})]}),xJ=null;var H8,o1,F8;const bJ=({title:t="TitleSort",desc:e="Letters A and Z next to a downard arrow",width:n="17",height:o="11",className:r,focusable:a="false"})=>H8("svg",{className:F8("i",r),focusable:a,height:o,viewBox:"0 0 17 11",width:n,children:[o1("title",{children:t}),o1("desc",{children:e}),o1("path",{d:"M4.679 7.311l.755-.755a.8.8 0 0 1 1.132 1.131L4.444 9.808a.8.8 0 0 1-1.131 0L1.192 7.687a.8.8 0 1 1 1.131-1.131l.756.755V1.5a.8.8 0 1 1 1.6 0v5.811zM9.842 6C9.377 6 9 5.552 9 5s.377-1 .842-1h6.316c.465 0 .842.448.842 1s-.377 1-.842 1H9.842zM9.842 2C9.377 2 9 1.552 9 1s.377-1 .842-1h6.316c.465 0 .842.448.842 1s-.377 1-.842 1H9.842zM9.842 10C9.377 10 9 9.552 9 9s.377-1 .842-1h6.316c.465 0 .842.448.842 1s-.377 1-.842 1H9.842z"})]}),yJ=null;function V8(t){return(0,s.jsxs)(Vs,{viewBox:"0 0 15 16",...t,children:[(0,s.jsx)("path",{d:"M8.69169169,1.65459164 C7.42998802,0.732912554 5.79691384,0.425404591 4.21164279,0.810071145 C2.01180284,1.34426767 0.429519485,3.32166778 0.449238273,5.51223961 C0.454317355,6.09008425 0.560978072,6.64511922 0.766531499,7.16185651 C0.884545458,7.45866364 1.19914976,7.66620336 1.53138146,7.66620336 C1.60756769,7.66620336 1.72289272,7.66620336 1.80027403,7.62903206 C2.21496611,7.48682371 2.41812939,7.05879065 2.26276924,6.65638325 C2.09725092,6.18836289 2.02345485,5.8315748 2.02345485,5.49928598 C2.02345485,4.55873965 2.44860388,3.66071502 3.19044858,3.03527987 C3.94334777,2.40027029 4.91763516,2.10993997 5.93524413,2.21694824 C6.90415367,2.31888769 7.79388929,2.81901053 8.37648985,3.58890684 C8.96058425,4.36077436 9.17300938,5.31962473 8.9590904,6.21962057 C8.94235931,6.29002074 8.92204298,6.35957612 8.89754388,6.42913149 C8.84436291,6.5969655 8.8709534,6.79042518 8.97074242,6.9599488 C9.07979329,7.14524206 9.26204269,7.2823816 9.47088259,7.33616734 C9.67285078,7.38770027 9.89573284,7.36517221 10.0812687,7.27308878 C10.2742738,7.17762614 10.4108115,7.01936655 10.4654863,6.83041248 C10.6062067,6.40012662 10.6773139,5.94111748 10.6773139,5.4666203 C10.6773139,3.96597018 9.95369412,2.57655233 8.69169169,1.65459164"}),(0,s.jsx)("path",{d:"M12.4033641,9.43002363 L7.46962051,8.60458861 L7.42312479,5.65704834 C7.42257778,4.87028142 6.91659487,4.17992696 6.16391111,3.93838024 C5.57177436,3.74839098 4.94490256,3.83320301 4.44493675,4.1709044 C3.94633846,4.50757465 3.64849231,5.04841246 3.64849231,5.61734909 L3.64849231,12.0692503 L3.27543248,11.4577787 C3.01177436,11.0154157 2.60233846,10.7096799 2.12288547,10.5967691 C1.65355214,10.4859205 1.14620171,10.5673813 0.72637265,10.8220752 C0.0398769231,11.2721719 -0.184396581,12.1996907 0.158577778,13.1957809 C0.165415385,13.210217 0.18237265,13.2532675 0.209176068,13.3208077 C0.319671795,13.5979291 0.578406838,14.2475532 0.952013675,15.0616455 L0.999603419,15.1523867 C1.20227009,15.608928 1.48534701,15.7290569 1.72739829,15.7290569 C1.84445812,15.7290569 1.95139829,15.7009581 2.03563761,15.6692503 C2.21204786,15.6022256 2.33922735,15.4880258 2.40322735,15.3387669 C2.47816752,15.1637293 2.46285128,14.9407433 2.36356923,14.7319356 C2.32992821,14.653826 1.5422359,12.8165757 1.50968889,12.7477465 C1.36828718,12.295072 1.41396239,11.9890784 1.49437265,11.9455124 C1.58845812,11.9011729 1.69403077,11.8869946 1.7730735,11.9009151 C1.9133812,11.9449968 1.98832137,12.0042879 2.05697094,12.1321504 L3.53963761,14.292666 C3.71905641,14.5633426 4.15146667,14.7654479 4.59946667,14.6061353 C4.93888547,14.4857487 5.12568889,14.2596692 5.12568889,13.9699162 L5.12568889,5.69416971 C5.12568889,5.5072739 5.23317607,5.33739205 5.39317607,5.27114071 C5.54469744,5.20927175 5.70797949,5.21984103 5.84117607,5.3018174 C5.97546667,5.38456713 6.05560342,5.52196778 6.05560342,5.66916434 L6.05560342,9.09129108 C6.05560342,9.4367261 6.34715897,9.7540623 6.69232137,9.78396563 L6.6942359,9.78396563 L12.1632274,10.6988528 C12.7868171,10.8042879 13.2397402,11.3141912 13.2397402,11.9112266 L13.2397402,15.0784017 C13.2397402,15.434406 13.5457915,15.72287 13.9235009,15.72287 C14.3009368,15.72287 14.6072615,15.434406 14.6072615,15.0784017 L14.6072615,11.9112266 C14.6072615,10.6893147 13.6809026,9.64579162 12.4033641,9.43002363"})]})}var z8,r1,U8;const LJ=({title:t="Remove",desc:e="Trash can",width:n="10",height:o="13",className:r=null,focusable:a="false"})=>z8("svg",{className:U8("i i-trash",r),focusable:a,height:o,viewBox:"0 0 10 13",width:n,children:[r1("title",{children:t}),r1("desc",{children:e}),r1("path",{d:"M9.28713712,12.0991694 C9.28713712,12.4960933 8.96564674,12.814808 8.57149855,12.814808 L1.42899128,12.814808 C1.03500637,12.814808 0.714169089,12.4960933 0.714169089,12.0991694 L0.714169089,4.9568254 L9.28713712,4.9568254 L9.28713712,12.0991694 L9.28713712,12.0991694 Z M10,3.33274903 L0,3.33274903 L0,2.62053925 C0,2.22508485 0.319367795,1.90571706 0.714169089,1.90571706 L2.85830911,1.90571706 L2.85830911,1.19220107 C2.85830911,0.798052883 3.17702381,0.4765625 3.5724782,0.4765625 L6.42948111,0.4765625 C6.82346602,0.4765625 7.1436502,0.798052883 7.1436502,1.19220107 L7.1436502,1.90571706 L9.28713712,1.90571706 C9.68046893,1.90571706 10,2.22524813 10,2.62053925 L10,3.33274903 L10,3.33274903 Z"})]}),EJ=null;var $8,a1,W8;const SJ=({title:t="Trash Folder",desc:e="Solid trash can",width:n="16",height:o="17",className:r,focusable:a="false"})=>$8("svg",{className:W8("i i-trashFolder",r),focusable:a,height:o,viewBox:"0 0 16 17",width:n,children:[a1("title",{children:t}),a1("desc",{children:e}),a1("path",{d:"M2.57 7.175v7.5a1.88 1.88 0 0 0 1.874 1.875h7.5a1.88 1.88 0 0 0 1.875-1.875v-7.5H2.57zM11.944 3.773V1.898c0-.562-.375-.937-.937-.937H5.382c-.563 0-.938.375-.938.937v1.875H.694v1.875h15V3.773h-3.75z"})]}),TJ=null;var _8,_a;const IJ=({"aria-hidden":t,"aria-label":e,className:n,desc:o,height:r="16",role:a="img",title:i,width:l="14"})=>_8("svg",{"aria-hidden":t,"aria-label":e,className:n,fill:"none",focusable:"false",height:r,role:a,viewBox:"0 0 14 16",width:l,xmlns:"http://www.w3.org/2000/svg",children:[i&&_a("title",{children:i}),o&&_a("desc",{children:o}),_a("path",{clipRule:"evenodd",d:"M0.332031 4.00033C0.332031 3.63214 0.630508 3.33366 0.998698 3.33366H12.9987C13.3669 3.33366 13.6654 3.63214 13.6654 4.00033C13.6654 4.36852 13.3669 4.66699 12.9987 4.66699H0.998698C0.630508 4.66699 0.332031 4.36852 0.332031 4.00033Z",fill:"currentColor",fillRule:"evenodd"}),_a("path",{clipRule:"evenodd",d:"M5.66536 2.00033C5.48855 2.00033 5.31898 2.07056 5.19396 2.19559C5.06894 2.32061 4.9987 2.49018 4.9987 2.66699V3.33366H8.9987V2.66699C8.9987 2.49018 8.92846 2.32061 8.80344 2.19559C8.67841 2.07056 8.50884 2.00033 8.33203 2.00033H5.66536ZM10.332 3.33366V2.66699C10.332 2.13656 10.1213 1.62785 9.74624 1.25278C9.37117 0.877706 8.86246 0.666992 8.33203 0.666992H5.66536C5.13493 0.666992 4.62622 0.877706 4.25115 1.25278C3.87608 1.62785 3.66536 2.13656 3.66536 2.66699V3.33366H2.33203C1.96384 3.33366 1.66536 3.63214 1.66536 4.00033V13.3337C1.66536 13.8641 1.87608 14.3728 2.25115 14.7479C2.62622 15.1229 3.13493 15.3337 3.66536 15.3337H10.332C10.8625 15.3337 11.3712 15.1229 11.7462 14.7479C12.1213 14.3728 12.332 13.8641 12.332 13.3337V4.00033C12.332 3.63214 12.0336 3.33366 11.6654 3.33366H10.332ZM2.9987 4.66699V13.3337C2.9987 13.5105 3.06894 13.68 3.19396 13.8051C3.31898 13.9301 3.48855 14.0003 3.66536 14.0003H10.332C10.5088 14.0003 10.6784 13.9301 10.8034 13.8051C10.9285 13.68 10.9987 13.5105 10.9987 13.3337V4.66699H2.9987Z",fill:"currentColor",fillRule:"evenodd"}),_a("path",{clipRule:"evenodd",d:"M5.66536 6.66699C6.03355 6.66699 6.33203 6.96547 6.33203 7.33366V11.3337C6.33203 11.7018 6.03355 12.0003 5.66536 12.0003C5.29717 12.0003 4.9987 11.7018 4.9987 11.3337V7.33366C4.9987 6.96547 5.29717 6.66699 5.66536 6.66699Z",fill:"currentColor",fillRule:"evenodd"}),_a("path",{clipRule:"evenodd",d:"M8.33203 6.66699C8.70022 6.66699 8.9987 6.96547 8.9987 7.33366V11.3337C8.9987 11.7018 8.70022 12.0003 8.33203 12.0003C7.96384 12.0003 7.66536 11.7018 7.66536 11.3337V7.33366C7.66536 6.96547 7.96384 6.66699 8.33203 6.66699Z",fill:"currentColor",fillRule:"evenodd"})]}),NJ=null;var G8,i1,K8;const jJ=({title:t="Remove",desc:e="Trash can",width:n="13.3",height:o="16",className:r,focusable:a="false"})=>G8("svg",{className:K8("i",r),focusable:a,height:o,viewBox:"0 0 13.3 16",width:n,children:[i1("title",{children:t}),i1("desc",{children:e}),i1("path",{d:"M1.2,4.9c0,0,0-1.2,0-1.2c0,0,10.9,0,10.9,0c0,0,0,1.2,0,1.2 M10.9,14.8 c0,0-8.5,0-8.5,0c0,0,0-8.6,0-8.6h8.5C10.9,6.2,10.9,14.8,10.9,14.8 M4.8,1.2c0,0,3.6,0,3.6,0c0,0,0,1.2,0,1.2h0H4.8 C4.8,2.5,4.8,1.2,4.8,1.2 M12.1,2.5H9.7V1.2C9.7,0.5,9.2,0,8.5,0H4.8C4.2,0,3.6,0.6,3.6,1.2v1.2H1.2C0.5,2.5,0,3,0,3.7v1.2 c0,0.7,0.5,1.2,1.2,1.2h0v8.6c0,0.7,0.5,1.2,1.2,1.2h8.5c0.7,0,1.2-0.6,1.2-1.2V6.2h0c0.7,0,1.2-0.6,1.2-1.2V3.7 C13.3,3,12.8,2.5,12.1,2.5"})]}),kJ=null;var Q8,rd,Z8;const AJ=({title:t="Upload",desc:e="Upload icon",width:n="15",height:o="15",className:r="",focusable:a="false"})=>Q8("svg",{className:Z8("i",r),focusable:a,height:o,viewBox:"0 0 15 15",width:n,children:[rd("title",{children:t}),rd("desc",{children:e}),rd("polygon",{points:"6.52941176 3.52941176 6.52941176 9.70588235 8.29411765 9.70588235 8.29411765 3.52941176 10.4117647 3.52941176 7.41176471 0 4.41176471 3.52941176"}),rd("path",{d:"M14.0625,14.1176471 L0.9375,14.1176471 C0.375,14.1176471 0,13.7647059 0,13.2352941 L0,5.29411765 C0,4.76470588 0.375,4.41176471 0.9375,4.41176471 L3.75,4.41176471 L3.75,6.17647059 L1.875,6.17647059 L1.875,12.3529412 L13.125,12.3529412 L13.125,6.17647059 L11.25,6.17647059 L11.25,4.41176471 L14.0625,4.41176471 C14.625,4.41176471 15,4.76470588 15,5.29411765 L15,13.2352941 C15,13.7647059 14.625,14.1176471 14.0625,14.1176471"})]}),RJ=null;var Y8,Cc;const PJ=({"aria-hidden":t,"aria-label":e,className:n,desc:o,height:r="14",role:a="img",title:i,width:l="14"})=>Y8("svg",{"aria-hidden":t,"aria-label":e,className:n,fill:"none",focusable:"false",height:r,role:a,viewBox:"0 0 14 14",width:l,xmlns:"http://www.w3.org/2000/svg",children:[i&&Cc("title",{children:i}),o&&Cc("desc",{children:o}),Cc("path",{clipRule:"evenodd",d:"M1.00065 8.33301C1.36884 8.33301 1.66732 8.63148 1.66732 8.99967V11.6663C1.66732 11.8432 1.73756 12.0127 1.86258 12.1377C1.9876 12.2628 2.15717 12.333 2.33398 12.333H11.6673C11.8441 12.333 12.0137 12.2628 12.1387 12.1377C12.2637 12.0127 12.334 11.8432 12.334 11.6663V8.99967C12.334 8.63148 12.6325 8.33301 13.0007 8.33301C13.3688 8.33301 13.6673 8.63148 13.6673 8.99967V11.6663C13.6673 12.1968 13.4566 12.7055 13.0815 13.0806C12.7065 13.4556 12.1978 13.6663 11.6673 13.6663H2.33398C1.80355 13.6663 1.29484 13.4556 0.919771 13.0806C0.544698 12.7055 0.333984 12.1968 0.333984 11.6663V8.99967C0.333984 8.63148 0.632461 8.33301 1.00065 8.33301Z",fill:"currentColor",fillRule:"evenodd"}),Cc("path",{clipRule:"evenodd",d:"M6.52925 0.52827C6.7896 0.26792 7.21171 0.26792 7.47206 0.52827L10.8054 3.8616C11.0657 4.12195 11.0657 4.54406 10.8054 4.80441C10.545 5.06476 10.1229 5.06476 9.86258 4.80441L7.00065 1.94248L4.13872 4.80441C3.87837 5.06476 3.45626 5.06476 3.19591 4.80441C2.93556 4.54406 2.93556 4.12195 3.19591 3.8616L6.52925 0.52827Z",fill:"currentColor",fillRule:"evenodd"}),Cc("path",{clipRule:"evenodd",d:"M7.00065 0.333008C7.36884 0.333008 7.66732 0.631485 7.66732 0.999674V8.99967C7.66732 9.36786 7.36884 9.66634 7.00065 9.66634C6.63246 9.66634 6.33398 9.36786 6.33398 8.99967V0.999674C6.33398 0.631485 6.63246 0.333008 7.00065 0.333008Z",fill:"currentColor",fillRule:"evenodd"})]}),wJ=null;var X8,ad,J8;const MJ=({title:t="UploadXml",desc:e="UploadXml",width:n="18",height:o="21",className:r,focusable:a="false"})=>X8("svg",{className:J8("i i-uploadXml",r),focusable:a,height:o,viewBox:"0 0 18 21",width:n,children:[ad("title",{children:t}),ad("desc",{children:e}),ad("path",{d:"M15.88,1.2H1.6A.59.59,0,0,0,1,1.79V19.21a.59.59,0,0,0,.59.59H15.88a.59.59,0,0,0,.59-.59V1.79A.59.59,0,0,0,15.88,1.2Zm-.59,1.19V18.61H2.19V2.39Z"}),ad("path",{d:"M5.14,10.13a.59.59,0,0,0,.84,0L8.13,8v6.48a.59.59,0,0,0,1.19,0V8l2.15,2.15a.59.59,0,0,0,.84-.84L9.14,6.12a.6.6,0,0,0-.84,0L5.14,9.29A.59.59,0,0,0,5.14,10.13Z"})]}),OJ=null;var q8,c1,e7;const DJ=({title:t="Video Block",desc:e="Video Block",width:n="17",height:o="13",className:r,focusable:a="false"})=>q8("svg",{className:e7("i i-video-block",r),focusable:a,height:o,viewBox:"0 0 17 13",width:n,children:[c1("title",{children:t}),c1("desc",{children:e}),c1("path",{d:"M10.49 12.5h-9c-.6 0-1-.4-1-1v-10c0-.6.4-1 1-1h9c.6 0 1 .4 1 1V3l3.6-1.5c.7-.2 1.4.3 1.4 1v8c0 .7-.7 1.2-1.4.9l-3.6-1.4v1.5c0 .6-.4 1-1 1zm-8-2h7v-2c0-.7.7-1.2 1.4-.9l3.6 1.5v-5l-3.6 1.5c-.7.1-1.4-.4-1.4-1.1v-2h-7v8z",fillRule:"evenodd"})]}),BJ=null;function t7(t){return(0,s.jsx)(Vs,{viewBox:"0 0 16 12",...t,children:(0,s.jsx)("g",{transform:"translate(-1 -2)",children:(0,s.jsx)("path",{d:"M11,14 L2,14 C1.4,14 1,13.6 1,13 L1,3 C1,2.4 1.4,2 2,2 L11,2 C11.6,2 12,2.4 12,3 L12,4.5 L15.6,3 C16.3,2.8 17,3.3 17,4 L17,12 C17,12.7 16.3,13.2 15.6,12.9 L12,11.5 L12,13 C12,13.6 11.6,14 11,14 L11,14 L11,14 Z M3,12 L10,12 L10,10 C10,9.3 10.7,8.8 11.4,9.1 L15,10.6 L15,5.6 L11.4,7.1 C10.7,7.2 10,6.7 10,6 L10,4 L3,4 L3,12 L3,12 L3,12 Z"})})})}var s7,Xp,n7;function HJ(t){return s7(n7,{...t,viewBox:"0 0 14 10",children:[Xp("path",{clipRule:"evenodd",d:"M13.6836 1.56433C13.8779 1.66431 14 1.8645 14 2.08301V7.91634C14 8.13485 13.8779 8.33504 13.6836 8.43502C13.4893 8.53501 13.2554 8.51802 13.0776 8.39102L8.99428 5.47435C8.84098 5.36485 8.75 5.18806 8.75 4.99967C8.75 4.81129 8.84098 4.63449 8.99428 4.525L13.0776 1.60833C13.2554 1.48132 13.4893 1.46434 13.6836 1.56433ZM10.3369 4.99967L12.8333 6.78281V3.21653L10.3369 4.99967Z",fillRule:"evenodd"}),Xp("path",{clipRule:"evenodd",d:"M1.75 1.49967C1.42783 1.49967 1.16667 1.76084 1.16667 2.08301V7.91634C1.16667 8.23851 1.42783 8.49967 1.75 8.49967H8.16667C8.48883 8.49967 8.75 8.23851 8.75 7.91634V2.08301C8.75 1.76084 8.48883 1.49967 8.16667 1.49967H1.75ZM0 2.08301C0 1.11651 0.783502 0.333008 1.75 0.333008H8.16667C9.13317 0.333008 9.91667 1.11651 9.91667 2.08301V7.91634C9.91667 8.88284 9.13317 9.66634 8.16667 9.66634H1.75C0.783502 9.66634 0 8.88284 0 7.91634V2.08301Z",fillRule:"evenodd"})]})}var Jp,id,o7;const FJ=({title:t="Visible",desc:e="Eye",width:n="16",height:o="12",className:r=null,focusable:a="false"})=>Jp("svg",{className:o7("i i-visible",r),focusable:a,height:o,viewBox:"0 0 16 12",width:n,children:[id("title",{children:t}),id("desc",{children:e}),Jp("g",{children:[id("path",{d:"M8 2c2.84 0 5.036 2.835 5.818 4-.784 1.166-2.98 4-5.818 4-2.84 0-5.038-2.838-5.819-4.001C2.958 4.835 5.146 2 8.001 2m0 10c4.706 0 7.743-5.284 7.87-5.508a1 1 0 0 0 .001-.98C15.746 5.287 12.732 0 8 0 3.245 0 .251 5.289.126 5.514a.998.998 0 0 0 .002.975C.254 6.713 3.27 12 8 12"}),id("path",{d:"M8 4a2 2 0 1 1 .001 3.999A2 2 0 0 1 8 4"})]})]}),VJ=null,r7=({"aria-hidden":t,"aria-label":e,className:n,desc:o="",height:r="20",role:a="img",title:i="",style:l,width:u="20"})=>(0,s.jsxs)("svg",{"aria-hidden":t,"aria-label":e,className:Z()("i i-xMarkFilled",n),focusable:"false",height:r,role:a,style:l,viewBox:"0 0 20 20",width:u,xmlns:"http://www.w3.org/2000/svg",children:[i&&(0,s.jsx)("title",{children:i}),o&&(0,s.jsx)("desc",{children:o}),(0,s.jsx)("path",{d:"M10 9.08L6.904 5.986a.65.65 0 1 0-.92.92L9.082 10l-3.096 3.096a.65.65 0 0 0 .92.92L10 10.918l3.096 3.096a.65.65 0 0 0 .92-.92L10.918 10l3.096-3.096a.65.65 0 1 0-.92-.92L10 9.082zM10 20C4.477 20 0 15.523 0 10S4.477 0 10 0s10 4.477 10 10-4.477 10-10 10z"})]});var a7=c(21863),i7=c.n(a7),c7=c(57955),xc=c.n(c7),l7=c(36087),Ts=c.n(l7),d7=c(34597),u7=c.n(d7),h7=c(53095),m7=c.n(h7);const p7=Ts()(i7()({}),u7()(["first_name","last_name"]),xc()(" "),m7()),f7=({className:t,decorative:e,size:n,...o})=>{const r=Xt()(["avatars","medium"],o),a=e?"":p7(o)||"Unknown User";return r?(0,s.jsx)("img",{alt:a,className:t||"user-avatar",src:r,style:{height:n,width:n}}):(0,s.jsx)(X0,{decorative:e,height:n,title:a,width:n})};var v7=c(19245);const ee=(0,v7.setup)({el:"__",mod:"--",modValue:"-"}),g7=`${(0,et._$)("CDN_URI")}/assets/rise/assets/trophy.svg`,cd=ee("cover");function C7(){const{certificateDownload:t,riseComCurrentUser:e}=Lt(),n=(0,nt.useLabelsMap)(),o=$5(),a=ea()?.quizPassed??!0;return!(o&&a&&!(0,et.Wk)())||window.viewType==="preview"?null:(0,s.jsxs)("div",{className:cd("completed-info"),children:[(0,s.jsxs)("div",{className:cd("completed-info-avatar"),children:[(0,s.jsx)(f7,{...e,decorative:!0}),(0,s.jsx)("img",{alt:"",className:cd("completed-info-trophy"),src:g7})]}),(0,s.jsxs)("div",{className:cd("completed-info-label"),children:[(0,s.jsx)("span",{"aria-hidden":"true",children:n?.coverCompleted||"Completed"}),(0,s.jsx)("span",{className:"visually-hidden",children:n?.a11yCoverCourseCompleted||"Course Completed"})]}),t&&(0,s.jsx)(Kn,{})]})}var x7=c(74083),no=c.n(x7);const l1=t=>{if(!t)return"";const e=no()(t),n=no()(),o=no()(n).add(24,"hours");return e.isBefore(n)?"Overdue":e.isBefore(o)?`Due in ${n.to(e,!0)}`:`Due ${e.format("MMM D")}`},qp=t=>no()(t).isSameOrBefore(no()().add(3,"d"),"days");function b7(t){return function({Default:n,className:o,...r}){const a=`brand--${t}`,i=o?`${o} ${a}`:a;return(0,s.jsx)(n,{...r,className:i})}}const Ga=b7("ui"),d1=t=>t==="<p><br></p>"?"":t;var e2=c(66015);const u1="data-change-path",h1="data-l10n-id",t2=(t,e)=>{if(t)return e?["l10n","translations",e,t.getAttribute(h1)]:JSON.parse(t.getAttribute(u1))};let Xo;const y7=()=>{const t=Ka();t&&t.classList.add("selected")},ld=()=>{Ka()&&Xo&&bc(Xo)},L7=(t,e)=>n=>{const o=document.elementsFromPoint(n.clientX,n.clientY),r=e?o.find(a=>a.getAttribute(h1)):o.find(a=>a.getAttribute(u1));r!=null&&(t&&Xo!==r&&(Xo=r,t(t2(r,e))),bc(r))},E7=(t,e)=>n=>{n.stopPropagation(),n.preventDefault();const o=document.elementsFromPoint(n.clientX,n.clientY),r=e?o.find(a=>a.getAttribute(h1)):o.find(a=>a.getAttribute(u1));if(r){bc(r),n2();const a=t2(r,e);a&&(t(a),y7())}},m1=()=>document.getElementById("target-container"),Ka=()=>document.getElementById("target-highlight"),s2=()=>{if(m1())return;const e=document.createElement("div");e.classList.add("target-container"),e.id="target-container",document.body.appendChild(e);const n=document.createElement("div");n.classList.add("target-highlight"),n.id="target-highlight",e.appendChild(n)},n2=()=>{const t=Ka();t&&t.classList.add("selected")},S7=({top:t,left:e,width:n,height:o})=>{const r=document.querySelector("[data-page=true]")?.getBoundingClientRect().width??window.innerWidth-20;return n<r&&(t=t-10,o=o+20,e=e-20,n=n+40),{top:t,left:e,width:n,height:o}},bc=t=>{const{top:e,left:n,width:o,height:r}=S7(t.getBoundingClientRect()),a=Ka();a&&(t!==Xo&&a.classList.contains("selected")&&a.classList.remove("selected"),a.classList.add("active"),Object.assign(a.style,{top:`${e}px`,left:`${n}px`,width:`${o}px`,height:`${r}px`}),Xo=t)},T7=()=>{window.removeEventListener("scroll",ld,{capture:!0}),dd()},dd=()=>{Ka()?.classList?.remove("active"),Ka()?.classList?.remove("selected")};let Qa,ud;const I7=({locale:t})=>({isActive:e},n)=>{const o=!!m1();if(e){if(Qa)return Qa;s2();const r=L7(n,t);let a;return Qa=new Promise((i,l)=>{a=E7(i,t),ud=l,document.body.classList.add("target-mode"),window.addEventListener("mousemove",r,!0),window.addEventListener("click",a,!0),window.addEventListener("resize",dd,!0),window.addEventListener("scroll",ld,!0)}).finally(()=>{Qa=null,ud=null,document.body.classList.remove("target-mode"),window.removeEventListener("mousemove",r,!0),window.removeEventListener("click",a,!0),window.removeEventListener("resize",dd,!0),window.removeEventListener("scroll",ld,!0)}),Qa}else dd(),m1()?.remove(),Xo=null;return o&&ud!=null&&ud(new Error("cancelled")),Promise.resolve()},N7=t=>{let e=t.findIndex(n=>n==="items");return e===-1?t:t.slice(0,e+2)},o2=t=>{const e=(0,e2.Ce)(t);return e?e.type==="translation"||e.type==="caption"&&e.l10nId?document.querySelector(`[data-l10n-id='${e.l10nId}']`)??document.querySelector(`[data-l10n-id*='${e.l10nId}']`):document.querySelector(`[data-change-path='${JSON.stringify(N7(t))}']`):null},j7=t=>{s2(),window.addEventListener("scroll",ld,{capture:!0}),document.body.classList.add("target-mode");const e=o2(t);e&&bc(e)},k7=t=>{if(!Qa)return;const e=o2(t);e&&(Xo!==e&&(Xo=e),bc(e),n2(),e.scrollIntoView({behavior:"smooth",block:"center"}))},A7=t=>["course",t],r2=(t,e)=>["lessons",{id:t},e],R7=(t,e)=>[...r2(t,"items"),{id:e}],Za=t=>JSON.stringify(A7(t)),a2=(t,e)=>JSON.stringify(r2(t,e)),P7=(t,e)=>JSON.stringify(R7(t,e)),dn={STATUS:"targetMode:status",TOGGLE:"targetMode:toggle",FOCUS:"targetMode:focus",CLEAR:"targetMode:clear",SELECTED:"targetMode:selected",HOVERED:"targetMode:hovered",TRANSLATION_HOVERED:"targetMode:translationHovered",TRANSLATION_HOVER_CLEAR:"targetMode:translationHoverClear"},Ya=(t,e)=>{const n={};for(let o=0;o<t.length;o++){const r=t[o];if(typeof r=="object"&&r.id){const a=t[o-1],i=a==="items"?e.shift():a.replace(/s$/,"");n[`${i??"item"}Id`]=r.id}}return n};var xe=c(88254),st=c(18154);function p1(t,e){const n=(0,h.useMemo)(()=>matchMedia(`(${t}: ${e*.0625}em)`),[t,e]),[o,r]=(0,h.useState)(n.matches);return(0,h.useEffect)(()=>{const a=n.addEventListener??n.addListener,i=n.removeEventListener??n.removeListener;return a.call(n,"change",l),()=>i.call(n,"change",l);function l(){r(n.matches)}},[n]),o}const w7="matches";function M7(t,e,n,o="withPxToEmMedia"){return r=>{function a(i){const l=p1(t,e);return(0,s.jsx)(r,{...i,[n??w7]:l})}return a.displayName=`${o}(${r.displayName||r.name})`,a}}function Is(t){return p1("max-width",t-1)}function $J(t){return p1("min-width",t)}function O7(t,e,n){return M7("min-width",t,e,n)}const D7=()=>Is(1200),B7=()=>Is(768),f1=()=>Is(480),v1=ee("cover");function H7(t,e,n){return t===1?e:n}function F7(){const t=(0,xe.v1)(),e=(0,xe.vU)(),n=H7(t,e?.coverLesson||"Lesson",e?.coverLessons||"Lessons");return(0,s.jsxs)("li",{className:v1("num-lessons"),role:"listitem",children:[(0,s.jsx)("span",{className:v1("num-lessons-value"),children:t}),"\xA0",(0,s.jsx)("span",{className:v1("num-lessons-units"),children:n})]})}const V7=36e5,g1=ee("cover");function z7(t){return Math.round(10*t)/10}function i2(t,e,n){return t===1?e:n}function U7(){const{showTimeToComplete:t,timeToComplete:e}=(0,xe.DX)(),n=(0,xe.vU)();if(!t)return null;const o=e>=V7,r=o?z7(no().duration(e).asHours()):no().duration(e).asMinutes(),a=o?i2(r,n?.coverHour||"Hour",n?.coverHours||"Hours"):i2(r,n?.coverMinute||"Minute",n?.coverMinutes||"Minutes");return(0,s.jsxs)("li",{className:g1("time-to-complete"),role:"listitem",children:[(0,s.jsx)("span",{className:g1("time-to-complete-value"),children:r}),"\xA0",(0,s.jsx)("span",{className:g1("time-to-complete-units"),children:a})]})}const C1=ee("cover");function x1(){const t=(0,xe.vU)();return ze.BI?(0,s.jsxs)("section",{className:C1("course-length-section"),children:[(0,s.jsx)("h2",{className:C1("course-length-title"),children:t?.a11yCoverCourseLength||"Course Length"}),(0,s.jsxs)("ul",{className:C1("course-length-list"),role:"list",children:[(0,s.jsx)(F7,{}),(0,s.jsx)(U7,{})]})]}):null}const $7=ee("cover"),W7="MMMM D, YYYY";function c2({format:t=W7}){const{publishedAt:e}=(0,xe.DX)(),n=(0,xe.vU)(),o=$7("details-content-published-at");if(!e)return null;const r=no()(e);return r.isValid()?(0,s.jsxs)("div",{className:o,children:[n?.coverPublished||"Published"," ",r.format(t)]}):null}var _7=c(58443),yc=c.n(_7);const l2=yc()(async()=>(await c.e("math").then(c.bind(c,6338))).browserAdaptor(),{promise:!0}),d2=yc()(async()=>{const[{TeX:t},{AllPackages:e}]=await Promise.all([c.e("math").then(c.t.bind(c,85274,23)),c.e("math").then(c.bind(c,71923))]);return new t({packages:e})}),u2=yc()(async()=>{const t=await c.e("math").then(c.t.bind(c,89826,23));return new t.SVG({fontCache:"local"})},{promise:!0}),h2=yc()(async()=>{const[t,e,n,{RegisterHTMLHandler:o},{mathjax:r}]=await Promise.all([l2(),d2(),u2(),c.e("math").then(c.bind(c,27475)),c.e("math").then(c.bind(c,56605))]);return o(t),r.document(document,{InputJax:e,OutputJax:n})},{promise:!0}),G7=yc()(async t=>{const e=new CSSStyleSheet;t.adoptedStyleSheets.push(e);const[n,o]=await Promise.all([u2(),h2()]),r=n.styleSheet(o);r instanceof HTMLStyleElement&&await e.replace(r.innerText)},{promise:!0});class K7 extends HTMLElement{static observedAttributes=["long-description","short-description","tex"];_ready;_anchor=this;_renderController;constructor(){super(),this._ready=G7(this.ownerDocument)}get longDescription(){return this.getAttribute("long-description")??null}set longDescription(e){e==null?this.removeAttribute("long-description"):this.setAttribute("long-description",e)}get shortDescription(){return this.getAttribute("short-description")??null}set shortDescription(e){e==null?this.removeAttribute("short-description"):this.setAttribute("short-description",e)}get tex(){return this.getAttribute("tex")??""}set tex(e){this.setAttribute("tex",e)}disconnectedCallback(){this._renderController?.abort()}attributeChangedCallback(e){e==="tex"?this._renderTex():this._renderAria()}async _renderTex(){this._renderController?.abort();const e=this._renderController=new AbortController,[n,o,r]=await Promise.all([h2(),l2(),d2(),this._ready]);if(e.signal.aborted)return;r.reset();const{tex:a}=this,i=a.includes("begin{")?a:String.raw`\begin{align*}${a}\end{align*}`,l=n.convert(i),u=o.firstChild(l),d=document.evaluate("//@data-mjx-error",u,null,XPathResult.STRING_TYPE).stringValue;if(d.length>0){let m=d;if(d===String.raw`Missing \begin{align*} or extra \end{align*}`){const p=n.convert(a),f=o.firstChild(p);m=document.evaluate("//@data-mjx-error",f,null,XPathResult.STRING_TYPE).stringValue??"An error occured"}this.dispatchEvent(new Q7("matherror",{bubbles:!1,composed:!1,detail:{errorMessage:m}})),this._anchor.replaceChildren()}else this._anchor.replaceChildren(u);await this._renderAria()}async _renderAria(){if(await this._ready,this._renderController?.signal.aborted||this.firstElementChild==null)return;const e=[this.shortDescription,this.longDescription].filter(n=>(n?.length??0)>0).join(`

`);this.firstElementChild.ariaLabel=e.trim().length===0?null:e}}customElements.define("rise-math",K7);class Q7 extends CustomEvent{}var oo=c(45869),Rs=c(7927),Z7=c(2758),hd=c.n(Z7);function b1(t){if(t==null)return{value:t};let e;if(typeof t=="string"?e=t:e=t.innerHTML,!e.includes("data-editor-id"))return{value:t};const n=e.match(/^<[^>]+data-editor-id=["']([^"']+)["'][^>]*>/);if(n){const o=n[1],r=e.match(/^<[^>]*>(.*)<\/[^>]*>$/s),a=r?r[1]:e;return{editorId:o,value:typeof t=="string"?a:t}}return{value:t}}var yo=c(16323);const m2=(t="")=>t.split(".").slice(-2).join("."),p2=ot()(m2,ze._$),Y7=t=>t.includes("#/lessons/"),Pn=t=>{if(!t||X7(t)||Y7(t))return!1;t.slice(0,2)==="//"&&(t=`https:${t}`);try{const{hostname:e}=new URL(t),n=m2(e);return n!==p2("ARTICULATE_DOMAIN")&&n!==p2("RISE_DOMAIN")}catch{return!1}},X7=t=>t?t.slice(0,7)==="mailto:":!1,J7=t=>t.includes("rise.articulate")&&t.includes("/authoring/")&&t.includes("/lesson");var ht=c(26842),jt=c(34234);const y1=ee("external-link-disabled-popover");function md(t={}){const{delay:e=200}=t,n=h.useRef(new Map),o=h.useCallback(l=>{const u=n.current.get(l);u&&clearTimeout(u);const d=setTimeout(()=>{const m=`trial-external-link-popover-${l}`;jt.ArcPopover.handlePopover(m,"show"),n.current.delete(l)},e);n.current.set(l,d)},[e]),r=h.useCallback(l=>{const u=n.current.get(l);u&&clearTimeout(u);const d=setTimeout(()=>{const m=`trial-external-link-popover-${l}`;jt.ArcPopover.handlePopover(m,"hide"),n.current.delete(l)},e);n.current.set(l,d)},[e]),a=h.useCallback(l=>{const u=`trial-external-link-popover-${l}`;jt.ArcPopover.handlePopover(u,"show")},[]),i=h.useCallback(l=>{const u=`trial-external-link-popover-${l}`;jt.ArcPopover.handlePopover(u,"hide")},[]);return h.useEffect(()=>{const l=n.current;return()=>{l.forEach(u=>clearTimeout(u)),l.clear()}},[]),{handleMouseEnter:o,handleMouseLeave:r,handleFocus:a,handleBlur:i}}function q7(t){return e=>{const{handleMouseEnter:n,handleMouseLeave:o,handleFocus:r,handleBlur:a}=md(),i=h.useId();return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(t,{...e,attachmentId:i,onLinkBlur:a,onLinkFocus:r,onLinkMouseEnter:n,onLinkMouseLeave:o}),e.externalLinksDisabled&&(0,s.jsx)(pd,{anchorId:i})]})}}const pd=({anchorId:t})=>{const e=`trial-external-link-popover-${t}`;return h.useEffect(()=>{const n=o=>{o.key==="Escape"&&jt.ArcPopover.handlePopover(e,"hide")};return document.addEventListener("keydown",n),()=>{document.removeEventListener("keydown",n)}},[e]),(0,s.jsx)(jt.ArcPopover,{alternateAnchorId:t,anchorAt:"top-center",boundary:"flip",className:y1(),hasTail:!0,headerSlot:(0,s.jsx)("div",{className:y1("header"),children:"Subscribe to unlock full access"}),hidePopoverButton:!0,id:e,offset:8,popover:"manual",variant:"common",children:(0,s.jsx)("div",{className:y1("content"),children:"To protect learners from phishing, scams, or malicious redirects, external links are disabled when sharing with Quick Share during your trial."})})},ex=({allowTabNavigation:t=!0,className:e="","data-testid":n,externalLinksDisabled:o,id:r,ref:a,tagName:i="div",value:l})=>{const u=(0,xe.vU)(),d=(0,h.useRef)(null),m=(0,st.QQ)(l),[p,f]=(0,h.useState)([]),{handleMouseEnter:v,handleMouseLeave:g,handleFocus:C,handleBlur:x}=md(),{currentLocale:L}=(0,bt.nY)(),y=(0,st.D_)(),E=(0,h.useMemo)(()=>{const b=(0,yo.aj)(m),S=Array.prototype.concat(lx,dx,ox,sx,nx(L,y),o?rx:[],t?ix:ax,cx(u?.a11yNoticeLinkNewTab));return tx(S,b)},[t,L,y,o,u,m]);return(0,h.useLayoutEffect)(()=>{if(!o||!d.current){f([]);return}const b=[];d.current.querySelectorAll("[data-tooltip-target]").forEach((T,I)=>{const j=T.nextElementSibling;if(j?.hasAttribute("data-external")){const M=j.getAttribute("data-external-text")||"",H=j.getAttribute("data-external-id")||`link-${I}`;b.push({placeholder:T,text:M,id:H})}}),f(b)},[E,o]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{"aria-hidden":t?void 0:!0,className:`${e} brand--linkColor`,"data-l10n-id":(0,St.pP)(l),"data-testid":n,id:r,ref:b=>{d.current=b,typeof a=="function"?a(b):a&&(a.current=b)},children:(0,h.createElement)(i,{className:"fr-view rise-tiptap",dangerouslySetInnerHTML:(0,h.useMemo)(()=>({__html:E}),[E])})}),p.map(({placeholder:b,text:S,id:T})=>(0,s.jsxs)(h.Fragment,{children:[(0,oo.createPortal)((0,s.jsx)("span",{id:T,onBlur:()=>x(T),onFocus:()=>C(T),onMouseEnter:()=>v(T),onMouseLeave:()=>g(T),role:"button",style:{cursor:"pointer",color:"var(--arc-color-text-disabled)",textDecoration:"underline"},tabIndex:0,children:S}),b),(0,s.jsx)(pd,{anchorId:T})]},T))]})};function tx(t,e){const n=document.createElement("div");n.innerHTML=e;for(const o of t)o(n);return n.innerHTML}const f2=t=>t.getAttribute("data-link-type")==="lesson"?!0:(t.getAttribute("href")??"").startsWith("#/lessons/");function sx(t){for(const e of t.querySelectorAll("a")){f2(e)?e.removeAttribute("target"):e.setAttribute("target","_blank");const o=new Set((e.getAttribute("rel")??"").split(/\s+/));o.delete("opener"),o.add("noopener"),o.add("noreferrer"),o.add("nofollow"),e.setAttribute("rel",Array.from(o).join(" "))}}function nx(t,e){return n=>{if(!(!t||t===e)){for(const o of n.querySelectorAll("a"))if(f2(o)){const r=o.getAttribute("href");if(r){const a=r.includes("?")?"&":"?";o.setAttribute("href",`${r}${a}locale=${encodeURIComponent(t)}`)}}}}}function ox(t){for(const e of t.querySelectorAll("table"))if(!e.parentElement.classList.contains("rise-table-wrap")){const n=document.createElement("div");n.className="rise-table-wrap",e.parentNode.replaceChild(n,e),n.appendChild(e)}}function rx(t){let e=0;const n=[];for(const o of t.querySelectorAll("a"))if(Pn(o.href)){const r=o.textContent||"",a=`external-link-anchor-${Date.now()}-${e++}`;o.removeAttribute("href"),o.removeAttribute("rel"),o.removeAttribute("target"),o.setAttribute("data-external",""),o.setAttribute("data-external-text",r),o.setAttribute("data-external-id",a),o.setAttribute("role","button"),o.style.display="none";const i=document.createElement("span");i.setAttribute("data-tooltip-target",""),o.parentNode?.insertBefore(i,o),n.push({placeholder:i,text:r,id:a})}return n}function ax(t){for(const e of t.querySelectorAll("a"))e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex","-1")}function ix(t){for(const e of t.querySelectorAll("a"))e.removeAttribute("aria-hidden"),e.hasAttribute("data-external")?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}function cx(t="(opens in a new tab)"){return e=>{for(const n of e.querySelectorAll('a[target="_blank"]')){const o=document.createElement("span");o.className="visually-hidden-always",o.textContent=t,n.appendChild(o)}}}function lx(t){return b1(t).value}function dx(t){for(const e of t.querySelectorAll("rise-math")){const{shortDescription:n,longDescription:o}=e,r=e.querySelector('[slot="short-description"]'),a=e.querySelector('[slot="long-description"]');n==null&&r!=null&&(e.shortDescription=r.textContent),o==null&&a!=null&&(e.longDescription=a.textContent)}return t}const ux=hd()({externalLinksDisabled:Xt()(["course","externalLinksDisabled"]),courseColors:t=>{const{course:e}=t,{colorAccent:n}=e?.theme||{},o=(0,ht.WA)(n);return[...e?.theme?.colors||A.B4,n,o]}}),Et=(0,Rs.Ls)(ux)(ex),v2=ee("cover");function hx(){const t=(0,xe.DX)(),e=D7(),n=(0,st.QQ)(t.description);if(!n)return null;const o=Za("description"),r=(0,fs.uW)(t.description)?{"data-l10n-id":t.description.l10nId}:{"data-change-path":o};return(0,s.jsx)("div",{...r,children:(0,s.jsxs)("section",{className:v2("details-content-section"),children:[e?(0,s.jsx)(x1,{}):(0,s.jsx)(c2,{}),(0,s.jsx)(Et,{className:v2("details-content-description"),value:d1(n)},"text")]})})}function mx({Default:t,...e}){const{dueAt:n}=e,r=n&&qp(n)?"brand--background":"brand--color";return(0,s.jsx)(t,{...e,className:r})}var g2=c(78933);function Cn(t){const{to:e,children:n}=t,o=(0,ie.zy)(),r=(0,h.useMemo)(()=>(0,g2.B)(e,o),[o,e]);return(0,s.jsx)(ie.N_,{...t,to:r,children:n})}const px=({children:t,disabled:e,onClick:n,to:o,...r},a)=>e?(0,s.jsx)("a",{"aria-disabled":"true",ref:a,role:"link",...r,children:t}):(0,s.jsx)(Cn,{onClick:n,ref:a,to:o,...r,children:t}),fx=(0,h.forwardRef)(px);class xn{static get isChrome(){return!window||!window.navigator?!1:/Chrome/.test(window.navigator.userAgent)&&/Google Inc/.test(window.navigator.vendor)}static get isSafari(){return!window||!window.navigator?!1:/Safari/.test(window.navigator.userAgent)&&/Apple Computer/.test(window.navigator.vendor)&&!/CriOS/.test(window.navigator.userAgent)}static get isIphoneSafari(){if(!window||!window.navigator)return!1;const e=/iPhone|iPod/.test(window.navigator.userAgent)&&!window.MSStream,n=/Safari/.test(window.navigator.userAgent)&&/Apple Computer/.test(window.navigator.vendor),o=/CriOS/.test(window.navigator.userAgent);return e&&n&&!o}static get isSafari9(){if(!window||!window.navigator)return!1;const e=/Safari/.test(window.navigator.userAgent)&&/Apple Computer/.test(window.navigator.vendor),n=/version\/9./i.test(window.navigator.userAgent);return e&&n}static get isIe11(){return!!(window&&Object.hasOwnProperty.call(window,"ActiveXObject")&&!window.ActiveXObject)}static get isEdge(){return!window||!window.navigator?!1:/Edge/.test(window.navigator.userAgent)}static get isMobile(){return!window||!window.navigator?!1:/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}static get isLocalFilesystem(){return!window||!window.navigator?!1:/file:/.test(window.location.protocol)}static get isFirefox(){return window?.navigator?.userAgent.includes("Firefox")??!1}}function vx(){return!(typeof document>"u"||!("startViewTransition"in document)||xn.isFirefox)}function gx(t){if(!vx()){const e=t();return Promise.resolve(e)}return new Promise(e=>{try{document.startViewTransition(async()=>{await t()}).finished.then(()=>e()).catch(()=>e())}catch{const n=t();Promise.resolve(n).then(()=>e()).catch(()=>e())}})}let L1=!1;function Jo(t,e="default"){return L1?Promise.resolve():(L1=!0,gx(()=>{document.documentElement.classList.add(`transition-${e}`),t()}).then(()=>{document.documentElement.classList.remove(`transition-${e}`)}).finally(()=>{L1=!1}))}const C2=ee("cover"),Xs=Pt("CoverAction",()=>{const t=(0,xe.DX)(),{trackingQuizId:e,theme:n}=t,o=(0,Re.Z)(),r=window.viewType==="preview",a=(0,xe._z)(),i=(0,xe.MT)(),l=(0,xe.Sd)(),u=a?.id,d=n?.showStartButton??!0,m=(0,ze.Wk)()?l===100:(0,ze.As)(),p=i!=null,f=p?i:u,v=!r&&ze.BI&&(m||!p&&!e),{courseCTALabel:g}=(0,xe.cN)({isCourseComplete:m,percentCourseComplete:l}),C=Z()("cover__header-content-action-link","overview__button-enrolled",{"overview__start-again":v}),x=L=>{L.preventDefault(),Jo(()=>{o((0,wt.p1)(f))},"cover-to-lesson")};return d&&g?(0,s.jsx)("div",{className:C2("header-content-action-wrapper"),children:(0,s.jsx)(fx,{className:C,onClick:x,to:(0,wt.p1)(f),children:(0,s.jsx)("span",{className:C2("header-content-action-link-text"),children:g})})}):null});var Cx=c(54811),yr=c.n(Cx),Vt=c(31155);const Lc=yr()("partner-content-course-author__"),xx=({partnerContentAuthors:t,darkText:e,isImage:n,learn:o,lesson:r,isOnePage:a,selectedContentId:i})=>{const l=Fs()(Ft()("id",i),t),u=Xt()(["data","authors"],l),m=(r?u:t).filter(C=>C.name),p=Z()(Lc("author-container"),{[Lc("author-container-padding-top")]:e}),f=Z()({[Lc("gray-text")]:!o&&!a}),v=Z()(Lc("author-image")),g=C=>`url(${(0,Vt.ny)({width:"76",height:"76",imageKey:C.image})})`;return(0,s.jsxs)("section",{children:[(0,s.jsx)("h2",{className:"visually-hidden",children:"Authors"}),(0,s.jsx)("ol",{className:p,"data-testid":"partner-content-course-author-container",role:"list",children:m.map(C=>(0,s.jsxs)("li",{className:Lc("author"),"data-testid":"partner-content-course-author",role:"listitem",children:[(0,s.jsx)("div",{"aria-hidden":"true",className:v,"data-testid":"partner-content-course-author-image",disabled:n,style:{backgroundImage:g(C)}}),(0,s.jsx)("span",{className:f,children:C.name})]},C.name))})]})},Xa=ee("cover"),bx=()=>{const t=(0,xe.UG)();if(t==null)return null;const{avatar:e,authorName:n,title:o}=t;return(0,s.jsxs)("div",{className:Xa("author-with-title"),children:[(0,s.jsx)(x2,{avatar:e}),(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{className:Xa("author-name"),children:n}),(0,s.jsx)("div",{className:Xa("author-title"),children:o})]})]})},x2=({avatar:t})=>{const e=Xa("header-content-authors-avatar");return t?(0,s.jsx)("div",{className:e,"data-testid":"cover-header-content-authors-avatar",style:{backgroundImage:`url(${(0,ze.o1)(t)})`}}):(0,s.jsx)("div",{className:e,"data-testid":"cover-header-content-authors-avatar",children:(0,s.jsx)(X0,{decorative:!0})})},Lo=Pt("CoverAuthors",({className:t})=>{const{color:e,partnerContentId:n,selectedAuthorId:o,theme:r,themeId:a}=(0,xe.DX)(),{accentContrast:i,coverPageType:l}=r??{},{authorName:u,avatar:d}=(0,xe.UG)()??{},m=(0,xe.vU)(),p=(0,xe.hM)(),f=!!n&&!!p,g=Is(768)&&(0,_t.yL)(a,l),C=l===A.BL.LEFT_OVERLAY||l===A.BL.CENTERED_OVERLAY||g;if(o==="none")return null;const x=u||"Unknown User",L=Xa("header-content-authors").mix(t),y=Xa("header-content-authors-name");return f?(0,s.jsx)("div",{className:L,"data-testid":"cover-authors",children:(0,s.jsx)(xx,{accentContrast:i,color:e,isImage:C,learn:!0,partnerContentAuthors:p})}):(0,s.jsxs)("div",{className:L,"data-testid":"cover-authors",children:[(0,s.jsx)(x2,{avatar:d,isImage:C}),(0,s.jsxs)("div",{className:y,"data-testid":"cover-header-content-authors-name",children:[(0,s.jsx)("span",{className:"visually-hidden-always",children:m?.a11yAuthorPrefix}),(0,s.jsx)("span",{children:x})]})]})}),yx=ee("cover"),wn=Pt("CoverContentNoImage",({children:t})=>{const e=yx("header-content");return(0,s.jsx)("div",{className:e,"data-testid":"cover-header-content",children:t})});var zs=c(25726);const na=t=>{const e=(0,xe.DX)(),n=(0,st.gY)();return Lx(e,t,n)},Lx=(t,e,n)=>{const{media:o,alpha:r}=e==="coverImage"?(0,zs.dM)(t,n):(0,zs.LI)(t,n),a="image"in o?(0,zs.I6)(o?.image?.alt):void 0;return{alpha:r,ariaLabel:a,media:o,role:(0,zs.Vx)(a)}},Ex=ee("cover"),E1=()=>{const t=(0,xe.dT)(),{alpha:e,ariaLabel:n,media:o,role:r}=na("coverImage"),a=Ex("header-image"),i=(0,_t.b9)({alpha:e,color:t,media:o});return(0,s.jsx)("div",{"aria-label":n,className:a,role:r,style:i})},Sx=ee("cover"),S1=({children:t})=>{const e=(0,xe.dT)(),n=`overlay-${e.toLowerCase()}`,o=Sx("header-content",{[n]:!!e});return(0,s.jsxs)("div",{className:o,"data-testid":"cover-header-content",children:[t,(0,s.jsx)(E1,{})]})},Tx=ee("cover"),Ec=({hasOverlay:t=!1})=>{const{alpha:e,ariaLabel:n,media:o,role:r}=na("coverImage"),a=(0,_t.b9)({alpha:e,hasOverlay:t,media:o}),i=Tx("header-graphic",{"dot-com":ze.BI});return(0,s.jsx)("div",{"aria-label":n,className:i,"data-testid":"cover-header-graphic",role:r,style:a})},Ix=ee("cover");function Js({children:t}){const e=!!(0,xe.Bd)(),n=Ix("header-content-info",{rbc:e,"rise-com":ze.BI});return(0,s.jsx)("div",{className:n,"data-testid":"cover-header-content-info",children:t})}var Nx=c(26372);function jx(t,e){const n=(0,zs.sg)(t.src),o=t.width&&t.height&&!n,r=o?"async":void 0,a=o?"lazy":void 0,i=o?t.width:void 0,l=o?t.height:void 0;return(0,s.jsx)("img",{...t,decoding:r,height:l,loading:a,ref:e,width:i})}const T1=Nx.forwardRef(jx),kx={ImageEagerOrLazy:T1},b2=Object.assign((0,h.createContext)(kx),{displayName:"BundleContext"});function Ax({children:t,...e}){return(0,s.jsx)(b2.Provider,{value:e,children:t})}function Rx(){return null}function Ja(t){function e(n,o){const a=(0,h.useContext)(b2)[t]??Rx;return(0,s.jsx)(a,{ref:o,...n})}return e.displayName=`BundleComponent(${t})`,(0,h.forwardRef)(e)}const Ps=Ja("CoverProgress"),Px=ee("cover"),qs=Pt("CoverTitle",()=>{const t=(0,xe.DX)(),e=(0,st.QQ)(t.title),n=Px("header-content-title"),o=Za("title"),r=(0,fs.uW)(t.title)?{"data-l10n-id":t.title.l10nId}:{"data-change-path":o};return(0,s.jsx)("h1",{...r,className:n,"data-testid":"cover-header-content-title",tabIndex:-1,children:e})}),wx={SPLIT_LEFT_IMAGE:"LEFT_OVERLAY",SPLIT_RIGHT_IMAGE:"LEFT_OVERLAY",TWO_THIRDS_LEFT_IMAGE:"LEFT_OVERLAY",TWO_THIRDS_RIGHT_IMAGE:"LEFT_OVERLAY"};function y2(){const t=(0,xe.DX)(),e=B7(),n=t?.theme?.coverPageType||"CENTERED";return e?wx[n]??n:n}const Mx=()=>(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(S1,{children:(0,s.jsxs)(Js,{children:[(0,s.jsx)(Lo,{}),(0,s.jsx)(qs,{}),(0,s.jsx)(Ps,{}),(0,s.jsx)(Xs,{})]})})}),Ox=()=>(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(wn,{children:(0,s.jsxs)(Js,{children:[(0,s.jsx)(Lo,{}),(0,s.jsx)(qs,{}),(0,s.jsx)(Ps,{}),(0,s.jsx)(Xs,{})]})})}),Dx=()=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(Ec,{}),(0,s.jsx)(wn,{children:(0,s.jsxs)(Js,{children:[(0,s.jsx)(Lo,{}),(0,s.jsx)(qs,{}),(0,s.jsx)(Ps,{}),(0,s.jsx)(Xs,{})]})})]}),Bx=()=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(wn,{children:(0,s.jsxs)(Js,{children:[(0,s.jsx)(Lo,{}),(0,s.jsx)(qs,{}),(0,s.jsx)(Ps,{}),(0,s.jsx)(Xs,{})]})}),(0,s.jsx)(Ec,{})]});function Hx(){switch(y2()){default:case A.BL.LEFT_OVERLAY:case A.BL.CENTERED_OVERLAY:return(0,s.jsx)(Mx,{});case A.BL.LEFT:case A.BL.CENTERED:return(0,s.jsx)(Ox,{});case A.BL.SPLIT_LEFT_IMAGE:case A.BL.TWO_THIRDS_LEFT_IMAGE:return(0,s.jsx)(Bx,{});case A.BL.SPLIT_RIGHT_IMAGE:case A.BL.TWO_THIRDS_RIGHT_IMAGE:return(0,s.jsx)(Dx,{})}}function Fx(){return(0,s.jsx)("header",{className:"cover__header","data-testid":"cover-header",children:(0,s.jsx)(Hx,{})})}var Vx=c(59607),qa=c.n(Vx),zx=c(26372);const Ux=ee("cover");function $x({children:t}){const e=(0,xe.DX)(),{themeId:n}=e?.theme??{},o=y2(),r=zx.useMemo(()=>qa()(o),[o]),a=Ux({layout:r});return(0,s.jsx)("div",{className:a,"data-testid":`cover-layout-${r}`,"data-theme-id":n,id:"cover",children:t})}var N=c(30994),We=c.n(N),Wx=c(57819),en=c.n(Wx),_x=c(98283),I1=c.n(_x);const Lr=({id:t="portal",childType:e="other",attributes:n}={})=>{const o=document.querySelector('dialog[open][aria-modal="true"]');let r,a;if(o!=null&&e!=="dialog"?(t=`${t}-dialog`,r=o.querySelector(`#${t}`),a=o):(r=document.querySelector(`#${t}`),a=document.body),r==null&&(r=document.createElement("div"),r.setAttribute("id",t),a.appendChild(r)),n)for(const[i,l]of Object.entries(n))r.setAttribute(i,l);return r};var L2=c(26372);class Gx extends L2.Component{static propTypes={id:We().any.isRequired,lessonProgress:We().object.isRequired,type:We().string.isRequired,items:We().array};refProgressWrap=L2.createRef(null);constructor(e){super(e),this.state={isSticky:!1},this.portal=Lr()}componentDidMount(){this.timeoutScroll=setTimeout(()=>{document.getElementById("page-wrap")?.addEventListener("scroll",this.onScroll)},10)}componentWillUnmount(){clearTimeout(this.timeoutScroll),document.getElementById("page-wrap")?.removeEventListener("scroll",this.onScroll)}onScroll=()=>{const e=document.getElementsByClassName("page-wrap")[0],n=e.scrollTop,o=e.scrollTop,r=this.refProgressWrap.current;if(!r)return;const i=r.getBoundingClientRect().top+o,l=n>i;this.state.isSticky!==l&&this.setState({isSticky:l})};isLessonPreview(){return!!document.querySelector(".lesson--preview")}timelineProgressValue(){const{items:e,lessonProgress:n}=this.props,o=en()(-1,"activeIndex",n),r=vs()(e);return o===-1?0:Yn()(o)===r?100:I1()("%","",Xt()([o,"linePosition"],e))}processProgressValue(){const{items:e,lessonProgress:n}=this.props,o=en()(0,"activeIndex",n),r=vs()(e);return o>r?100:Math.round(o/r*100)}progressValue(){const{lessonProgress:e,type:n}=this.props;switch(n){case"process":return this.processProgressValue();case"sorting":return en()(0,"percentViewed",e);case"timeline":return this.timelineProgressValue();default:return en()(0,"percentComplete",e)}}render(){const{type:e,items:n}=this.props,{isSticky:o}=this.state,r=Z()("progress-wrap",{}),a=Z()("lesson-progress-wrapper",{"lesson-progress-wrapper--visible":o}),i=Z()("progress",{"progress--timeline":e==="timeline","progress--video":e==="video"}),l=this.progressValue(),u=e==="timeline"&&n&&n.map(m=>{const p=Z()("progress__marker",{"progress__marker--active brand--background":parseInt(l)>=parseInt(m.linePosition.slice(0,-1))});return(0,s.jsx)("div",{className:p,style:{left:m.linePosition}},m.id)}),d=(0,s.jsx)("div",{className:r,children:(0,s.jsx)("div",{className:i,children:(0,s.jsxs)("div",{className:"progress__container",children:[(0,s.jsx)("div",{className:"progress__indicator brand--background",style:{transform:`translate3d(calc(${l}% * var(--dir-x)),0px,0px)`}}),u]})})});return(0,s.jsxs)("div",{ref:this.refProgressWrap,children:[d,(0,oo.createPortal)((0,s.jsx)("div",{className:a,children:d}),this.portal)]})}}const N1=ee("lesson-header"),Eo=Pt("LessonHeaderAuthor",({avatar:t,authorName:e,className:n=""})=>{const o=(0,xe.vU)();return(0,s.jsxs)("div",{className:`lesson-header__author ${n}`,children:[(0,s.jsx)("img",{alt:"",className:"lesson-header__author-img",src:(0,ze.o1)(t)}),(0,s.jsx)("span",{className:"visually-hidden-always",children:o?.a11yAuthorPrefix}),(0,s.jsx)("span",{className:"lesson-header__author-name",children:e})]})}),Sc=({showPartnerContent:t=!1})=>(0,s.jsx)("div",{className:N1("author",{"partner-content":t})}),So=()=>(0,s.jsx)("div",{className:"lesson-header__counter"}),To=({lessonName:t,lessonPreposition:e,totalLessons:n,lessonNumber:o,showPartnerContent:r=!1})=>{const{lmsOptions:a}=(0,xe.DX)();return(0,s.jsx)("div",{className:N1("counter",{"partner-content":r}),children:(0,s.jsx)("div",{className:N1("count",{"exit-button-enabled":a?.enableExitCourse}),children:`${t} ${o} ${e} ${n}`})})},oa=({description:t})=>(0,s.jsx)(Et,{className:"lesson-header__description",value:t}),Kx=({children:t})=>(0,s.jsx)("div",{className:"lesson-header__grouped-row",children:t}),Qx=({ariaLabel:t,imgRole:e,children:n,sectionStyles:o,topWrapClassName:r})=>(0,s.jsxs)("header",{className:"page__header",children:[(0,s.jsx)("div",{className:"page__header-limit",children:(0,s.jsx)("div",{className:"page__header-container",children:(0,s.jsx)("div",{className:"lesson-header__row",children:(0,s.jsx)("div",{className:"lesson-header__main",children:(0,s.jsx)("div",{className:"lesson-header",children:(0,s.jsx)("div",{className:r,children:n})})})})})}),(0,s.jsx)("div",{"aria-label":t,className:"page__header-bg",role:e,style:o})]}),Io=({title:t,id:e})=>{const n=a2(e,"title");return(0,s.jsx)("h1",{className:"lesson-header__title","data-change-path":n,tabIndex:-1,children:(0,s.jsx)(Et,{value:t})})},Zx=t=>{const{authorName:e,avatar:n,color:o,description:r,labels:a,lessonHeaderStyle:i,lessonId:l,lessonNumber:u,partnerContentAuthors:d,showAuthor:m,showLessonCount:p,title:f,totalLessons:v}=t,{lessonName:g,lessonPreposition:C}=a,x=E=>`url(${(0,Vt.ny)({width:"76",height:"76",imageKey:E.image})})`,L=i===A.xj.TINT?{color:o}:null,y=n&&e&&m&&!d;return(0,s.jsxs)("div",{className:"lesson-header",children:[(0,s.jsxs)("div",{className:"lesson-header__top-wrap",style:L,children:[(0,s.jsx)(Io,{id:l,title:f}),d&&(0,s.jsx)("div",{className:"lesson-header__partner-content",children:d.map(E=>(0,s.jsxs)("div",{className:"lesson-header__partner-content-author",children:[(0,s.jsx)("div",{className:"lesson-header__partner-content-author-img",style:{backgroundImage:x(E)}}),(0,s.jsxs)("div",{children:[(0,s.jsx)("span",{className:"visually-hidden-always",children:a?.a11yAuthorPrefix}),(0,s.jsx)("span",{children:E.name})]})]},E.name))}),(0,s.jsxs)("div",{className:"lesson-header__author-count-wrap",children:[y?(0,s.jsx)(Eo,{authorName:e,avatar:n}):(0,s.jsx)(Sc,{}),p?(0,s.jsx)(To,{lessonName:g,lessonNumber:u,lessonPreposition:C,totalLessons:v}):(0,s.jsx)(So,{})]})]}),r&&(0,s.jsx)(oa,{description:r})]})};class eq extends h.Component{static propTypes={authorName:We().string,avatar:We().string,description:We().string,showLessonCount:We().bool,steps:We().number,title:We().string.isRequired,type:We().string.isRequired};render(){const{children:e}=this.props;return(0,s.jsx)("section",{className:"page__header",children:(0,s.jsxs)("div",{className:"page__header-limit",children:[(0,s.jsx)("div",{className:"page__header-container",children:(0,s.jsx)("div",{className:"lesson-header__row",children:(0,s.jsx)("div",{className:"lesson-header__main",children:(0,s.jsx)(Zx,{...this.props})})})}),h.Children.map(e,n=>n&&n.type!==Gx?null:n)]})})}}const Er=ee("lesson-header"),E2=t=>`url(${(0,Vt.ny)({width:"76",height:"76",imageKey:t?.image})})`,j1=({partnerContentAuthors:t})=>{const e=t.map(o=>o.name).join(", "),n=t.length===1;return(0,s.jsxs)("div",{className:Er("partner-content",{mobile:!0}),children:[(0,s.jsx)("div",{className:Er("partner-content-author",{single:n}),children:t.map(o=>(0,s.jsx)("div",{className:Er("partner-content-author-img",{single:n}),style:{backgroundImage:E2(o)}},o.name))}),(0,s.jsx)("span",{"aria-hidden":"true",className:Er("author-name"),children:e})]})},ei=({partnerContentAuthors:t})=>{const e=(0,xe.vU)();return(0,s.jsx)("div",{className:Er("partner-content"),children:t.map(n=>(0,s.jsxs)("div",{className:Er("partner-content-author"),children:[(0,s.jsx)("div",{className:Er("partner-content-author-img"),style:{backgroundImage:E2(n)}}),(0,s.jsxs)("div",{children:[(0,s.jsxs)("span",{className:"visually-hidden",children:[e?.a11yAuthorPrefix," ",n.name]}),(0,s.jsx)("span",{"aria-hidden":"true",className:Er("author-name"),tag:"span",children:n.name})]})]},n.name))})};var S2=c(26372);const ti=ee("lesson-header"),Yx=({authorName:t,avatar:e,description:n,lessonName:o,lessonNumber:r,lessonPreposition:a,partnerContentAuthors:i,showAuthor:l,showLessonCount:u,title:d,totalLessons:m,lessonId:p})=>{const f=i!=null&&l,v=e&&t&&l&&!f,g=v||f||u,C=u&&(v||f);return(0,s.jsxs)("div",{className:ti("content"),children:[g&&(0,s.jsxs)("div",{className:ti("info-row"),children:[v?(0,s.jsx)(Eo,{authorName:t,avatar:e}):(0,s.jsx)(Sc,{}),f&&(0,s.jsx)(ei,{partnerContentAuthors:i}),C&&(0,s.jsx)("span",{"aria-hidden":"true",className:ti("info-row--divider"),children:"|"}),u?(0,s.jsx)(To,{lessonName:o,lessonNumber:r,lessonPreposition:a,totalLessons:m}):(0,s.jsx)(So,{})]}),(0,s.jsxs)("div",{className:ti("title-wrapper",{"no-info":!g}),children:[(0,s.jsx)(Io,{id:p,title:d}),n&&(0,s.jsx)(oa,{description:n})]})]})},Xx=({authorName:t,avatar:e,description:n,lessonName:o,lessonNumber:r,lessonPreposition:a,partnerContentAuthors:i,showAuthor:l,showLessonCount:u,title:d,totalLessons:m,lessonId:p})=>{const f=i!=null,v=S2.useMemo(()=>e&&t&&l&&!f,[e,t,l,f]);return(0,s.jsxs)("div",{className:ti("content"),children:[u?(0,s.jsx)(To,{lessonName:o,lessonNumber:r,lessonPreposition:a,totalLessons:m}):(0,s.jsx)(So,{}),v&&(0,s.jsx)(Eo,{authorName:t,avatar:e}),l&&f&&(0,s.jsx)(j1,{partnerContentAuthors:i}),(0,s.jsx)(Io,{id:p,title:d}),n&&(0,s.jsx)(oa,{description:n})]})},Jx=({authorName:t,avatar:e,description:n,lessonName:o,lessonNumber:r,lessonPreposition:a,partnerContentAuthors:i,showAuthor:l,showLessonCount:u,title:d,totalLessons:m,lessonId:p})=>{const f=i!=null,v=S2.useMemo(()=>e&&t&&l&&!f,[e,t,l,f]);return(0,s.jsxs)("div",{className:ti("content"),children:[u?(0,s.jsx)(To,{lessonName:o,lessonNumber:r,lessonPreposition:a,totalLessons:m}):(0,s.jsx)(So,{}),(0,s.jsx)(Io,{id:p,title:d}),v?(0,s.jsx)(Eo,{authorName:t,avatar:e}):(0,s.jsx)(Sc,{showPartnerContent:f}),l&&f&&(0,s.jsx)(ei,{partnerContentAuthors:i}),n&&(0,s.jsx)(oa,{description:n})]})};function qx(t){const e=f1();return t.lessonHeaderSize===A.OX.SMALL&&!e?(0,s.jsx)(Yx,{...t}):e?(0,s.jsx)(Xx,{...t}):(0,s.jsx)(Jx,{...t})}const si=t=>t===A.AY.FLOATING||t===A.AY.FLOATING_FULL;function ra(){const t=(0,Rs.LY)(({course:{buttonNavigationStyle:n}})=>n);return Is(480)&&t===A.AY.FLOATING?A.AY.FLOATING_FULL:t}function k1({className:t,ref:e}){return(0,s.jsxs)("svg",{"aria-hidden":"true",className:t,fill:"none",focusable:"false",height:"15",ref:e,role:"img",viewBox:"0 0 16 15",width:"16",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("path",{d:"M2.34315 7.34315L8 13L13.6569 7.34315",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"}),(0,s.jsx)("rect",{fill:"currentColor",height:"12",rx:"0.999999",width:"2",x:"7",y:"1"})]})}function T2({className:t,ref:e}){return(0,s.jsx)("svg",{"aria-hidden":"true",className:t,fill:"none",focusable:"false",ref:e,viewBox:"0 0 15 16",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("path",{d:"M2 8L7.65685 13.6569L13.3137 8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"})})}const ni=Ja("LessonNav"),I2=ee("lesson-nav");function eb({allowTooltip:t,courseFinishLabel:e,onFocus:n,nextLesson:o,restrictionData:r,restrictionType:a,ref:i}){const l=o?.id,u=ra(),d=si(u),m=d?k1:T2;return(0,s.jsxs)(ni,{allowTooltip:t,direction:"next",finish:!0,isFloating:d,navLessonId:l,onFocus:n,ref:i,restrictionData:r,restrictionType:a,children:[(0,s.jsx)("span",{className:I2("link-text").mix("brand--ui"),children:e}),(0,s.jsx)(m,{className:I2("link-icon")})]})}const N2=ee("lesson-nav");function tb({allowTooltip:t,lessonNameLabel:e,nextLesson:n,nextLessonNumber:o,onFocus:r,ref:a,restrictionData:i,restrictionType:l}){const u=n?.id,d=ra(),m=si(d),f=(0,wt.GG)(n)&&u,v=(0,st.QQ)(n?.title)||"",g=m?k1:T2,C=f?`${e} ${o} - `:"",x=m&&f?`${e} ${o}`:`${C}${v}`;return(0,s.jsxs)(ni,{allowTooltip:t,direction:"next",isFloating:m,navLessonId:u,onFocus:r,ref:a,restrictionData:i,restrictionType:l,children:[(0,s.jsx)("span",{className:N2("link-text").mix("brand--ui"),children:x}),(0,s.jsx)(g,{className:N2("link-icon")})]})}function j2({className:t,ref:e}){return(0,s.jsxs)("svg",{"aria-hidden":"true",className:t,fill:"none",focusable:"false",height:"15",ref:e,role:"img",viewBox:"0 0 16 15",width:"16",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("path",{d:"M13.6569 7.65685L8 2L2.34315 7.65686",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"}),(0,s.jsx)("rect",{fill:"currentColor",height:"12",rx:"0.999999",transform:"rotate(180 9 14)",width:"2",x:"9",y:"14"})]})}function sb({className:t,ref:e}){return(0,s.jsx)("svg",{"aria-hidden":"true",className:t,fill:"none",focusable:"false",ref:e,viewBox:"0 0 15 16",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("path",{d:"M2 8L7.65685 2.34315L13.3137 8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"})})}const fd=ee("lesson-nav");function nb({allowTooltip:t,className:e,courseHomeLabel:n,lessonNameLabel:o,onFocus:r,previousLesson:a,previousLessonNumber:i,ref:l}){const u=a?.id,d=ra(),m=si(d),f=(0,wt.GG)(a)&&u,v=(0,st.QQ)(a?.title)||n,g=m?j2:sb,C=f?`${o} ${i} - ${v}`:v,x=f&&m?`${o} ${i}`:C;return(0,s.jsx)(ni,{allowTooltip:t,className:e,direction:"previous",isFloating:m,navLessonId:u,onFocus:r,ref:l,children:m?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:fd("link-text").mix("brand--ui"),children:x}),(0,s.jsx)(g,{className:fd("link-icon")})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(g,{className:fd("link-icon")}),(0,s.jsx)("span",{className:fd("link-text").mix("brand--ui"),children:x})]})})}var qt=c(52836),ob=c(53755);function rb({className:t,cx:e,cy:n,diameter:o,onTransitionEnd:r,r:a,strokeLinecap:i,strokeWidth:l,value:u=0}){const d=(0,h.useRef)(null),m=`mask-${(0,ob.A)()}`,p=(100-u)/100*(2*a);return(0,qt.A)("transitionend",r,d.current),(0,s.jsxs)("svg",{height:o,viewBox:`0 0 ${o} ${o}`,width:o,children:[(0,s.jsx)("defs",{children:(0,s.jsx)("mask",{id:m,children:(0,s.jsx)("rect",{fill:"white",height:2.3*a,width:2.3*a,x:"0",y:u===0?100:p})})}),(0,s.jsx)("circle",{className:t,cx:e,cy:n,fill:"none",mask:`url(#${m})`,r:a,ref:d,strokeLinecap:i,strokeWidth:l})]})}const A1=rb;function ab({className:t,cx:e,cy:n,diameter:o,onTransitionEnd:r,r:a,strokeLinecap:i,strokeWidth:l,transform:u,value:d=0}){const m=(0,h.useRef)(null),p=Math.PI*(Number(o)-Number(l)),f=p*(100-d)/100;return(0,qt.A)("transitionend",r,m.current),(0,s.jsx)("circle",{className:t,cx:e,cy:n,fill:"transparent",r:a,ref:m,strokeDasharray:p,strokeDashoffset:f,strokeLinecap:i,strokeWidth:l,transform:u})}const k2=ab;var it=c(76906),R1=c(26372);const{COMPACT:ib,COVER:cb,OVERLAY:lb,SIDEBAR:db}=it.by,Tc=ee("progress-circle");function ub({"aria-hidden":t,"aria-label":e,isCurrent:n,isFailed:o,isPassed:r,scope:a,value:i}){const[l,u]=R1.useState(i===100),d=(0,qe.A)(i),{theme:m}=(0,xe.DX)(),p=m?.progressIndicatorStyle??A.Y2.THEME_DEFAULT,f=a===cb,v=a===lb,g=p===A.Y2.THEME_DEFAULT,C=p===A.Y2.CIRCULAR_FILL,x=p===A.Y2.INCOMPLETE_COMPLETE,L=Tc({compact:a===ib,cover:f,current:n,sidebar:a===db,overlay:v}),y=Tc("track",{"circular-fill":!v&&C,"incomplete-complete":f&&x}),E=Tc("runner",{"circular-fill":C,done:l,failed:o,passed:r,unstarted:i===0}),b=Tc("pass",{done:l,visible:r}),S=Tc("fail",{done:l,visible:o}),T=R1.useMemo(()=>C||i===100?i:0,[C,i]);return R1.useEffect(()=>{if(i!==100&&d===100)u(!1);else if(i===100&&!l&&!x){const I=setTimeout(()=>u(!0),300);return clearTimeout.bind(null,I)}else i===100&&!l&&x&&u(!0)},[l,x,d,i]),(0,s.jsxs)("svg",{"aria-hidden":t,"aria-label":e,className:L,fill:"none",focusable:"false",role:"img",viewBox:"0 0 16 16",xmlns:"https://www.w3.org/2000/svg",children:[(0,s.jsx)("circle",{className:y,cx:"8",cy:"8",fill:"transparent",r:"7",strokeWidth:"2",transform:"rotate(-89.9 8 8)"}),g?(0,s.jsx)(k2,{className:E,cx:8,cy:8,diameter:16,r:7,strokeWidth:2,transform:"rotate(-89.9 8 8)",value:i}):(0,s.jsx)(A1,{className:E,cx:8,cy:8,diameter:16,r:7,strokeLinecap:"round",strokeWidth:2,value:T}),(0,s.jsx)("path",{className:b,d:"M11.3227 6.65905C11.6133 6.37599 11.6347 5.89413 11.3705 5.58277C11.1063 5.27141 10.6566 5.24847 10.366 5.53152L6.93323 8.87512L5.6338 7.60944C5.3432 7.32639 4.89345 7.34933 4.62927 7.66069C4.36509 7.97205 4.38651 8.45391 4.67711 8.73697L6.45488 10.4686C6.72611 10.7328 7.14034 10.7328 7.41157 10.4686L11.3227 6.65905Z"}),(0,s.jsx)("path",{className:S,clipRule:"evenodd",d:"M9.46967 10.5303C9.76256 10.8232 10.2374 10.8232 10.5303 10.5303C10.8232 10.2374 10.8232 9.76256 10.5303 9.46967L9.06066 8L10.5303 6.53033C10.8232 6.23744 10.8232 5.76256 10.5303 5.46967C10.2374 5.17678 9.76256 5.17678 9.46967 5.46967L8 6.93934L6.53033 5.46967C6.23744 5.17678 5.76256 5.17678 5.46967 5.46967C5.17678 5.76256 5.17678 6.23744 5.46967 6.53033L6.93934 8L5.46967 9.46967C5.17678 9.76256 5.17678 10.2374 5.46967 10.5303C5.76256 10.8232 6.23744 10.8232 6.53033 10.5303L8 9.06066L9.46967 10.5303Z",fillRule:"evenodd"})]})}const P1=(0,h.createContext)(null);P1.displayName="CourseNavContext";function hb(t){const{children:e,isCourseNavOpen:n}=t;return(0,s.jsx)(P1.Provider,{value:{isCourseNavOpen:n},children:e})}function mb(){return(0,h.useContext)(P1)}const A2=960;function Ic(){return Is(A2)}function pb(){const t=(0,xe.DX)(),e=Ic(),n=(0,xe.SQ)();return(0,_t.L3)({course:t,isMobile:e,search:n})}function fb(){const t=(0,xe.DX)(),e=Ic();return(0,_t.IO)({course:t,isMobile:e})}var R2=c(26372);class vb extends R2.Component{refProgressWrap=R2.createRef();timeoutScroll;portal;constructor(e){super(e),this.state={isSticky:!1},this.portal=Lr()}componentDidMount(){this.timeoutScroll=setTimeout(()=>{document.getElementById("page-wrap")?.addEventListener("scroll",this.onScroll)},10)}componentWillUnmount(){clearTimeout(this.timeoutScroll),document.getElementById("page-wrap")?.removeEventListener("scroll",this.onScroll)}onScroll=()=>{const e=document.getElementsByClassName("page-wrap")[0],n=e.scrollTop,o=e.scrollTop,r=this.refProgressWrap.current;if(!r)return;const i=r.getBoundingClientRect().top+o,l=n>i&&n>0;this.state.isSticky!==l&&this.setState({isSticky:l})};isLessonPreview(){return!!document.querySelector(".lesson--preview")}timelineProgressValue(){const{items:e,lessonProgress:n}=this.props,o=n.activeIndex??-1,r=e?.length??0;return o===-1?0:o+1===r?100:e?.[o]?.linePosition?.replace("%","")??"0"}processProgressValue(){const{items:e,lessonProgress:n}=this.props,o=n.activeIndex??0,r=e?.length??0;return o>r?100:Math.round(o/r*100)}progressValue(){const{lessonProgress:e,type:n}=this.props;switch(n){case"process":return this.processProgressValue();case"sorting":return e.percentViewed??0;case"timeline":return this.timelineProgressValue();default:return e.percentComplete??0}}render(){const{type:e,items:n,sidebarAvailable:o,isCourseNavOpen:r,isMobile:a}=this.props,{isSticky:i}=this.state,l=Z()("progress-wrap",{}),u=r,d=r&&a,m=Z()("lesson-progress-wrapper",{"lesson-progress-wrapper--visible":i&&!d,"lesson--open":u&&o&&!this.isLessonPreview(),"lesson--open-mobile":o&&d&&!this.isLessonPreview()}),p=Z()("progress",{"progress--timeline":e==="timeline","progress--video":e==="video"}),f=this.progressValue(),v=e==="timeline"&&n&&n.map(C=>{const x=Z()("progress__marker",{"progress__marker--active brand--background":parseInt(String(f))>=parseInt(C.linePosition.slice(0,-1))});return(0,s.jsx)("div",{className:x,style:{left:C.linePosition}},C.id)}),g=(0,s.jsx)("div",{className:l,children:(0,s.jsx)("div",{className:p,children:(0,s.jsxs)("div",{className:"progress__container",children:[(0,s.jsx)("div",{className:"progress__indicator brand--background",style:{transform:`translate3d(calc(${f}% * var(--dir-x)),0px,0px)`}}),v]})})});return(0,s.jsxs)("div",{ref:this.refProgressWrap,children:[g,(0,oo.createPortal)((0,s.jsx)("div",{"aria-hidden":"true",className:m,children:g}),this.portal)]})}}const gb=t=>{const e=pb(),{isCourseNavOpen:n}=mb()??{},o=Is(480);return(0,s.jsx)(vb,{...t,isCourseNavOpen:n,isMobile:o,sidebarAvailable:e})},Cb=Ga,xb=Ga,bb=Ga,yb=Ga,Lb=Ga,Eb=Ga;function ys({children:t,className:e,height:n,width:o,viewBox:r}){return(0,s.jsx)("svg",{"aria-hidden":"true",className:e,fill:"none",focusable:"false",height:n,viewBox:r,width:o,xmlns:"http://www.w3.org/2000/svg",children:t})}function Sb(t){return(0,s.jsxs)(ys,{viewBox:"0 0 24 24",...t,children:[(0,s.jsx)("path",{d:"M1 10.9609L10 19.9609",stroke:"currentColor",strokeWidth:"1.5"}),(0,s.jsx)("path",{d:"M1 11.9609L10 2.96094",stroke:"currentColor",strokeWidth:"1.5"}),(0,s.jsx)("path",{d:"M2 11.5H23",stroke:"currentColor",strokeWidth:"1.5"})]})}function Tb({className:t}){return(0,s.jsx)("svg",{"aria-hidden":"true",className:t,fill:"none",focusable:"false",height:"8",role:"img",viewBox:"0 0 16 8",width:"16",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("path",{d:"M1 5h11.6l-1.3 1.3c-.4.4-.4 1 0 1.4.2.2.4.3.7.3.3 0 .5-.1.7-.3l3-3c.4-.4.4-1 0-1.4l-3-3c-.4-.4-1-.4-1.4 0-.4.4-.4 1 0 1.4L12.6 3H1c-.6 0-1 .4-1 1s.4 1 1 1",fill:"currentColor",fillRule:"evenodd"})})}function Ib(t){return(0,s.jsx)(ys,{height:"12",viewBox:"0 0 18 12",width:"18",...t,children:(0,s.jsx)("path",{clipRule:"evenodd",d:"M0.666992 1.00002C0.666992 0.539783 1.04009 0.166687 1.50033 0.166687H14.0003C14.4606 0.166687 14.8337 0.539783 14.8337 1.00002C14.8337 1.46026 14.4606 1.83335 14.0003 1.83335H1.50033C1.04009 1.83335 0.666992 1.46026 0.666992 1.00002ZM0.666992 6.00002C0.666992 5.53978 1.04009 5.16669 1.50033 5.16669H16.5003C16.9606 5.16669 17.3337 5.53978 17.3337 6.00002C17.3337 6.46026 16.9606 6.83335 16.5003 6.83335H1.50033C1.04009 6.83335 0.666992 6.46026 0.666992 6.00002ZM0.666992 11C0.666992 10.5398 1.04009 10.1667 1.50033 10.1667H10.667C11.1272 10.1667 11.5003 10.5398 11.5003 11C11.5003 11.4603 11.1272 11.8334 10.667 11.8334H1.50033C1.04009 11.8334 0.666992 11.4603 0.666992 11Z",fill:"currentColor",fillRule:"evenodd"})})}function Nb(t){return(0,s.jsx)(ys,{height:"6",viewBox:"0 0 10 6",width:"10",...t,children:(0,s.jsx)("path",{d:"M9 1L5 5L1 1",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"})})}function jb(t){return(0,s.jsx)(ys,{height:"6",viewBox:"0 0 10 6",width:"10",...t,children:(0,s.jsx)("path",{d:"M1 5L5 1L9 5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"})})}function kb(t){return(0,s.jsxs)(ys,{height:"21",viewBox:"0 0 20 21",width:"20",...t,children:[(0,s.jsx)("path",{d:"M9.94535 6.125C9.1938 6.125 8.52385 6.6729 8.30039 7.48015C8.17194 7.9442 7.70954 8.21104 7.26759 8.07617C6.82564 7.94129 6.5715 7.45577 6.69996 6.99172C7.11282 5.50025 8.3916 4.375 9.94535 4.375C11.8499 4.375 13.3335 6.05606 13.3335 8.05C13.3335 9.7417 12.2656 11.2082 10.7787 11.6139V12.25C10.7787 12.7332 10.4056 13.125 9.94535 13.125C9.48511 13.125 9.11201 12.7332 9.11201 12.25V10.85C9.11201 10.3668 9.48511 9.975 9.94535 9.975C10.8628 9.975 11.6668 9.14886 11.6668 8.05C11.6668 6.95114 10.8628 6.125 9.94535 6.125Z",fill:"currentColor"}),(0,s.jsx)("path",{d:"M10.0002 14C9.53992 14 9.16683 14.3918 9.16683 14.875C9.16683 15.3582 9.53992 15.75 10.0002 15.75H10.0085C10.4687 15.75 10.8418 15.3582 10.8418 14.875C10.8418 14.3918 10.4687 14 10.0085 14H10.0002Z",fill:"currentColor"}),(0,s.jsx)("path",{clipRule:"evenodd",d:"M0.833496 3.55556C0.833496 2.01519 2.09493 0.875 3.51868 0.875H16.4816C17.9054 0.875 19.1668 2.01519 19.1668 3.55556V17.4444C19.1668 18.9848 17.9054 20.125 16.4816 20.125H3.51868C2.09493 20.125 0.833496 18.9848 0.833496 17.4444V3.55556ZM3.51868 2.625C2.89693 2.625 2.50016 3.10156 2.50016 3.55556V17.4444C2.50016 17.8984 2.89693 18.375 3.51868 18.375H16.4816C17.1034 18.375 17.5002 17.8984 17.5002 17.4444V3.55556C17.5002 3.10156 17.1034 2.625 16.4816 2.625H3.51868Z",fill:"currentColor",fillRule:"evenodd"})]})}var Us=c(94992);function P2(t){const e=(0,Us.QD)(t,["Default"]);return(0,s.jsx)(Vs,{...e,fill:"none",viewBox:"1 1 18 18",children:(0,s.jsx)("path",{clipRule:"evenodd",d:"M9.99998 0.833336C4.93737 0.833336 0.833313 4.93739 0.833313 10C0.833313 15.0626 4.93737 19.1667 9.99998 19.1667C15.0626 19.1667 19.1666 15.0626 19.1666 10C19.1666 4.93739 15.0626 0.833336 9.99998 0.833336ZM13.0892 6.91075C13.4147 7.23618 13.4147 7.76382 13.0892 8.08926L11.1785 10L13.0892 11.9107C13.4147 12.2362 13.4147 12.7638 13.0892 13.0893C12.7638 13.4147 12.2362 13.4147 11.9107 13.0893L9.99998 11.1785L8.08923 13.0893C7.7638 13.4147 7.23616 13.4147 6.91072 13.0893C6.58529 12.7638 6.58529 12.2362 6.91072 11.9107L8.82147 10L6.91072 8.08926C6.58529 7.76382 6.58529 7.23618 6.91072 6.91075C7.23616 6.58531 7.7638 6.58531 8.08923 6.91075L9.99998 8.82149L11.9107 6.91075C12.2362 6.58531 12.7638 6.58531 13.0892 6.91075Z",fill:"black",fillRule:"evenodd"})})}function vd(t){const e=(0,Us.QD)(t,["Default"]);return(0,s.jsxs)(Vs,{...e,fill:"none",viewBox:"0 0 18 18",children:[(0,s.jsx)("circle",{cx:"9",cy:"9",fill:"#74BF44",r:"9"}),(0,s.jsx)("path",{d:"M6.43994 9.12061L8.43994 11.1206L11.9399 7.62061",stroke:"white",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"})]})}function Ab(t){return(0,s.jsx)(ys,{height:"12",viewBox:"0 0 12 12",width:"12",...t,children:(0,s.jsx)("path",{clipRule:"evenodd",d:"M5.325 9.01843C3.225 9.01843 1.5 7.37868 1.5 5.29172C1.5 3.20476 3.225 1.49048 5.325 1.49048C7.425 1.49048 9.15 3.20476 9.15 5.29172C9.15 7.37868 7.425 9.01843 5.325 9.01843ZM9.525 8.42236C10.2 7.52795 10.575 6.48447 10.575 5.29193C10.575 2.38509 8.25 0 5.325 0C2.4 0 0 2.38509 0 5.29193C0 8.19876 2.4 10.5839 5.325 10.5839C6.525 10.5839 7.65 10.2112 8.475 9.54037L10.725 11.7764C10.875 11.9255 11.1 12 11.25 12C11.4 12 11.625 11.9255 11.775 11.7764C12.075 11.4783 12.075 11.0311 11.775 10.7329L9.525 8.42236Z",fill:"currentColor",fillRule:"evenodd"})})}function Rb(t){return(0,s.jsx)(ys,{height:"5",viewBox:"0 0 10 5",width:"10",...t,children:(0,s.jsx)("path",{d:"M5.56569 4.75592L8.76601 1.42259C9.27003 0.897618 8.91306 0 8.20027 0L1.79963 0C1.08683 0 0.729863 0.897618 1.23389 1.42259L4.43421 4.75592C4.74666 5.08136 5.25324 5.08136 5.56569 4.75592Z",fill:"currentColor"})})}function Pb(t){return(0,s.jsxs)(ys,{height:"18",viewBox:"0 0 18 18",width:"18",...t,children:[(0,s.jsx)("path",{d:"M3.1665 6.08335C3.1665 4.01229 4.84544 2.33335 6.9165 2.33335C8.98757 2.33335 10.6665 4.01229 10.6665 6.08335C10.6665 6.37941 10.6324 6.66643 10.5681 6.9411C10.4634 7.38925 10.7417 7.83748 11.1899 7.94225C11.6381 8.04702 12.0863 7.76865 12.1911 7.3205C12.2841 6.92235 12.3332 6.50805 12.3332 6.08335C12.3332 3.09181 9.90805 0.666687 6.9165 0.666687C3.92496 0.666687 1.49984 3.09181 1.49984 6.08335C1.49984 6.46923 1.54032 6.84657 1.61756 7.21105C1.679 7.50095 1.76362 7.78236 1.86938 8.05316C1.97511 8.32389 2.10191 8.5839 2.24772 8.83119C2.48148 9.22764 2.99237 9.35953 3.38882 9.12577C3.78527 8.89201 3.91716 8.38112 3.6834 7.98467C3.58248 7.81352 3.49485 7.63379 3.42186 7.44688C3.34886 7.25994 3.29045 7.0657 3.24802 6.86551C3.1947 6.61395 3.1665 6.3524 3.1665 6.08335Z",fill:"currentColor"}),(0,s.jsx)("path",{d:"M9.18922 9.34412L14.8186 10.2697C16.2762 10.5117 17.3332 11.6819 17.3332 13.0521V16.6037C17.3332 17.0029 16.9837 17.3264 16.553 17.3264C16.122 17.3264 15.7728 17.0029 15.7728 16.6037V13.0521C15.7728 12.3826 15.2561 11.8108 14.5446 11.6926L8.30452 10.6667H8.30233C7.90851 10.6331 7.57585 10.2773 7.57585 9.8899V6.0524C7.57585 5.88733 7.48441 5.73325 7.33119 5.64046C7.17921 5.54853 6.99291 5.53668 6.82002 5.60606C6.63747 5.68035 6.51483 5.87085 6.51483 6.08044V15.3607C6.51483 15.6856 6.30169 15.9391 5.91441 16.0741C5.40325 16.2528 4.90988 16.0261 4.70516 15.7226L3.01346 13.2999C2.93513 13.1565 2.84963 13.09 2.68954 13.0406C2.59935 13.0249 2.47889 13.0408 2.37154 13.0906C2.2798 13.1394 2.22768 13.4826 2.38902 13.9902C2.41984 14.0542 3.0442 15.4844 3.27756 16.0189C3.32536 16.1284 3.35676 16.2003 3.36328 16.2152C3.47656 16.4494 3.49404 16.6994 3.40853 16.8957C3.33551 17.0631 3.1904 17.1911 2.98912 17.2663C2.893 17.3018 2.77099 17.3334 2.63742 17.3334C2.36124 17.3334 2.03826 17.1986 1.80702 16.6867L1.75272 16.5849C1.3289 15.6773 1.03464 14.952 0.90735 14.6382L0.905151 14.6328L0.896561 14.6115C0.87092 14.548 0.854463 14.5072 0.847419 14.4926C0.45609 13.3756 0.711983 12.3355 1.49527 11.8308C1.97428 11.5452 2.55316 11.4538 3.08867 11.5781C3.63572 11.7047 4.10288 12.0476 4.40371 12.5436L4.82936 13.2293V5.99429C4.82936 5.3563 5.1692 4.74981 5.7381 4.37228C6.30855 3.99359 7.0238 3.89848 7.69942 4.11153C8.55823 4.3824 9.13554 5.15654 9.13617 6.03881L9.18922 9.34412Z",fill:"currentColor"})]})}function wb(t){return(0,s.jsxs)(ys,{height:"14",viewBox:"0 0 20 14",width:"20",...t,children:[(0,s.jsx)("path",{clipRule:"evenodd",d:"M19.548 2.09234C19.8255 2.23518 20 2.52116 20 2.83331V11.1666C20 11.4788 19.8255 11.7648 19.548 11.9076C19.2704 12.0505 18.9363 12.0262 18.6823 11.8448L12.849 7.67809C12.63 7.52166 12.5 7.2691 12.5 6.99998C12.5 6.73085 12.63 6.47829 12.849 6.32187L18.6823 2.1552C18.9363 1.97376 19.2704 1.9495 19.548 2.09234ZM14.7671 6.99998L18.3333 9.54732V4.45264L14.7671 6.99998Z",fill:"currentColor",fillRule:"evenodd"}),(0,s.jsx)("path",{clipRule:"evenodd",d:"M2.5 1.99998C2.03976 1.99998 1.66667 2.37308 1.66667 2.83331V11.1666C1.66667 11.6269 2.03976 12 2.5 12H11.6667C12.1269 12 12.5 11.6269 12.5 11.1666V2.83331C12.5 2.37308 12.1269 1.99998 11.6667 1.99998H2.5ZM0 2.83331C0 1.4526 1.11929 0.333313 2.5 0.333313H11.6667C13.0474 0.333313 14.1667 1.4526 14.1667 2.83331V11.1666C14.1667 12.5474 13.0474 13.6666 11.6667 13.6666H2.5C1.11929 13.6666 0 12.5474 0 11.1666V2.83331Z",fill:"currentColor",fillRule:"evenodd"})]})}function Mb(t){return(0,s.jsx)(ys,{height:"10",viewBox:"0 0 10 10",width:"10",...t,children:(0,s.jsx)("path",{clipRule:"evenodd",d:"M9.78572 9.78572C9.5 10.0714 9.07143 10.0714 8.78571 9.78572L5 6.00001L1.21429 9.78572C0.928571 10.0714 0.500001 10.0714 0.214285 9.78572C-0.0714284 9.49999 -0.0714284 9.07144 0.214285 8.78571L4 5L0.214285 1.21429C-0.0714284 0.928564 -0.0714284 0.500007 0.214285 0.214279C0.357143 0.0714143 0.500001 0 0.714286 0C0.928571 0 1.07143 0.0714143 1.21429 0.214279L5 3.99999L8.78571 0.214279C8.92857 0.0714143 9.14286 0 9.28572 0C9.42857 0 9.64286 0.0714143 9.78572 0.214279C10.0714 0.500007 10.0714 0.928564 9.78572 1.21429L6 5L9.78572 8.78571C10.0714 9.07144 10.0714 9.49999 9.78572 9.78572Z",fill:"currentColor",fillRule:"evenodd"})})}const Ob=ee("cover"),gd=Pt("CoverDetailsSection",({children:t,type:e})=>(0,s.jsx)("section",{className:Ob("details-content-section",{type:e}),children:t}));var Db=c(16997),qo=c.n(Db),Bb=c(51335),Sr=c.n(Bb),Hb=c(81783),oi=c.n(Hb),Fb=c(89831),Vb=c.n(Fb),zb=c(22672),Ub=c.n(zb),$b=c(7334),Wb=c.n($b),_b=c(10358),Gb=c.n(_b),Kb=c(19892),Qb=c.n(Kb),Zb=c(88747),w1=c.n(Zb),Yb=c(65301),ri=c.n(Yb),Xb=c(41211),Jb=c.n(Xb),qb=c(9391),M1=c.n(qb),ey=c(15509),O1=c.n(ey),ty=c(50283),Nc=c.n(ty),jc=c(12100),un=c(57487),sy=c(2396);const ny=Qb()(yr()),w2=t=>e=>`${t}/${e.id}`,oy=(t,e)=>hd()({data:(0,jc.action)(e),method:"POST",url:(0,un.rq)(ny(`/${e}`),Ct()("url"),t),...Xn()(["headers","withCredentials"],t)}),ry=t=>(e,n)=>Vb()(e,w2(n),D1(t,n)),ay=t=>Ts()(Rt()({},["response","data"]),O1()(Ct()("type"),(0,jc.error)(t))),iy=(t,e)=>n=>t.postRequest?t.postRequest(e,n):n,M2=t=>e=>n=>o=>(0,un.Ve)(o,oy(e,n),t,Wb()(ay(n),Nc()(w1()("data"),Ct()("data"))),Gb()(ri()(Ct()("error"),oi().Rejected,oi().of)),iy(e,{type:n,payload:o})),cy=({url:t,method:e,data:n,headers:o})=>{if(xn.isFirefox){const r=new Blob([JSON.stringify(n)],{type:"application/json"}),a=window.navigator.sendBeacon(t,r);return Promise.resolve({type:n.type,payload:{...n.payload,queued:a}})}return fetch(t,{method:e,credentials:"include",headers:{"Content-Type":"application/json",...o},body:JSON.stringify(n),keepalive:!0}).then(r=>r.json()).then(Jb()("data"))},ly=oi().fromPromise(cy),D1=M1()(3,M2(sy.Em)),dy=M1()(3,M2(ly)),uy=t=>(e,n)=>Ub()(e,w2(n),D1(t,n)),hy=t=>({debounce:ry(t),send:D1(t),fetchWithKeepAlive:dy(t),throttle:uy(t)}),my=`${(0,ze._$)("RISE_RUNTIME_URI")}/ducks`,py=hy({headers:()=>({"x-rise-authoring-client":"aff819ac854cba6bc9b5cb5b1790f824cd191bf6"}),postRequest:(t,e)=>e,url:my,withCredentials:!0});var fy=c(76019),vy=c.n(fy);const gy=vy()({context:{app:{name:"rise-frontend"}},payload:{articulate_user:(0,Fe.Xl)(),userRole:(0,Fe.O0)(),subId:(0,Fe.EO)(),subPlan:(0,Fe.QJ)(),subStatus:(0,Fe.l6)()}});var Cy=c(28667),kc=c(57893);const xy=yr()("rise/track/")("TRACK"),by=t=>({...t,context:{locale:navigator.language,device:(0,kc.Pf)(),channel:(0,kc.c)(),userAgentData:(0,kc.NO)(),page:(0,kc.WE)(),userAgent:(0,kc.$t)(),...t.context}}),yy=(t,e)=>({...t,properties:{...(0,Cy.yV)(e),...t.properties}}),O2=t=>(e,n)=>{const o=n(),r=(0,Fe.kn)();let a=by(t);return a=yy(a,o),a.userId=a.userId??r,a.author=a.author??r,ze.BI&&(a=gy(a)),e(py.send(xy)(a))},tn=yr()("partner-content-book-info__"),Ly=t=>{const{authors:e,backgroundColor:n,bookImage:o,bookTitle:r,buyLink:a,block:i,publishedAt:l,track:u,trackingInfo:d}=t,m=e.filter(I=>!hs()(I.name)),p=qo()(I=>I.name,m),f=p.length>1?xc()(" & ",p):p[0],v=f.slice(-1)==="s"?"":"s",g=(0,ht.cP)(n),C=Z()({[tn("book-image-block")]:i&&!g},{[tn("book-image-block")&&tn("dark-theme-book-image")]:i&&g},{[tn("book-image-course")]:!i}),x=tn(i?"flex-block":"flex-course"),L=tn(i?"image-container-block":"image-container-course"),y=Z()(tn("small-text"),{[tn("dark-theme")]:g}),E=Z()(tn("black-text"),{[tn("dark-theme")]:g}),b=Z()(tn("button"),{[tn("dark-theme-button")]:g}),S=(0,Vt.ny)({height:"210",width:"140",imageKey:o}),T=(0,h.useCallback)(()=>{ze.BI&&l&&u({event:"Click Tracked",payload:Sr()(d,{type:"Buy Link"})})},[l,u,d]);return(0,s.jsxs)("section",{className:x,children:[(0,s.jsx)("h2",{className:"visually-hidden",children:"Book Info"}),(0,s.jsx)("div",{"aria-hidden":"true",className:L,children:o?(0,s.jsx)("img",{alt:"",className:C,src:S}):(0,s.jsx)("div",{className:C})}),(0,s.jsxs)("div",{className:tn("text-container"),children:[(0,s.jsxs)("p",{className:y,children:["From ",f,"'",v]}),(0,s.jsx)("p",{className:E,children:r}),(0,s.jsx)("a",{className:b,href:a,onClick:T,rel:"noopener noreferrer",target:"_blank",children:"Buy the book"})]})]})},Ey={track:O2},D2=(0,Rs.Ls)(null,Ey)(Ly),Mn=yr()("partner-content-partner-info__"),Sy=({backgroundColor:t,block:e,link:n,publishedAt:o,track:r,trackingInfo:a})=>{const i=e?(0,Vt.H5)():(0,Vt.DB)(),l=Mn(e?"nbic-logo-light-bulb":"nbic-logo"),u=Mn(e?"block-logo-container":"logo-container"),d=(0,ht.cP)(t),m=Z()(Mn("small-text"),{[Mn("dark-theme")]:d}),p=Z()(Mn("black-text"),{[Mn("dark-theme")]:d}),f=Z()(Mn("button"),{[Mn("dark-theme-button")]:d}),v=(0,h.useCallback)(()=>{ze.BI&&o&&r({event:"Click Tracked",payload:Sr()(a,{type:"Partner Link"})})},[o,r,a]);return(0,s.jsxs)("section",{className:Mn("flex"),children:[(0,s.jsx)("h2",{className:"visually-hidden",children:"Partner Info"}),(0,s.jsx)("div",{"aria-hidden":"true",className:u,children:(0,s.jsx)("img",{alt:"",className:l,src:i})}),(0,s.jsxs)("div",{className:Mn("text-container"),children:[(0,s.jsx)("p",{className:m,children:"In partnership with"}),(0,s.jsx)("p",{className:p,children:"Next Big Idea Club"}),(0,s.jsx)("a",{className:f,href:n,onClick:v,rel:"noopener noreferrer",target:"_blank",children:"Learn more"})]})]})},Ty={track:O2},B2=(0,Rs.Ls)(null,Ty)(Sy),ai=yr()("partner-content-author-card__"),H2=t=>{const{courseId:e,partnerContent:n,publishedAt:o,tenantId:r}=t,{data:a,type:i}=n,{authors:l,bookImage:u,bookTitle:d,buyLink:m,internalId:p,nbicLink:f}=a,v=l.filter(y=>y.name),g={courseId:e,partnerContentId:n.id,partnerContentInternalId:p,tenantId:r,contentSubtype:i},C=Z()(ai("flex"),ai("author-container")),x=y=>(0,Vt.ny)({width:"122",height:"122",imageKey:y}),L=(y,E)=>(0,s.jsx)("div",{"aria-hidden":"true",className:ai("image-container"),children:y?(0,s.jsx)("img",{alt:E,className:ai("author-image"),src:x(y)}):(0,s.jsx)("div",{className:ai("author-image")})});return(0,s.jsxs)("ol",{className:"partner-content-author-card","data-testid":"partner-content-author-card",role:"list",children:[(0,s.jsx)("li",{role:"listitem",children:(0,s.jsxs)("section",{children:[(0,s.jsx)("h2",{className:"visually-hidden",children:"Authors"}),v.map(y=>(0,s.jsxs)("li",{className:C,children:[L(y.image,y.name),(0,s.jsx)("p",{className:ai("author-name-text"),children:y.name})]},y.name))]})}),(0,s.jsx)("li",{role:"listitem",children:(0,s.jsx)(D2,{authors:l,bookImage:u,bookTitle:d,buyLink:m,publishedAt:o,trackingInfo:g})}),(0,s.jsx)("li",{role:"listitem",children:(0,s.jsx)(B2,{link:f,publishedAt:o,trackingInfo:g})})]})},Iy=ee("cover");function Ny(t){const{courseId:e,coursePartnerContent:n,hasLogo:o,hasPartnerContent:r,publishedAt:a,tenantId:i}=t;if(!r)return null;const l=Iy("details-content-aside",{logo:o});return(0,s.jsx)("div",{className:l,children:(0,s.jsx)(gd,{type:"partner-content",children:(0,s.jsx)(H2,{courseId:e,partnerContent:n,publishedAt:a,tenantId:i})})})}var jy=c(32050),Cd=c.n(jy);const ky=ee("cover"),Ay=Pt("CoverDetailsContentHeading",({className:t="",type:e,...n})=>{const o=Cd()(["Default"],n);return(0,s.jsx)("header",{...o,className:ky("details-content-heading",{type:e}).mix(t)})}),Ry=ee("cover");function Py({children:t,title:e,type:n}){const o=(0,xe.DX)(),{description:r,media:a,partnerContentId:i}=o,l=!!i,d=(a&&"image"in a?a.image?.key:null)!=null,p=n==="outline"?r?!d&&!l?"outline-no-logo":l&&!d?"outline-has-partner-content":l&&d?"outline-has-pc-and-logo":"outline":"outline-no-description":n;return(0,s.jsxs)("section",{className:Ry("details-content-section",{type:p}),children:[(0,s.jsx)(Ay,{type:n,children:(0,s.jsx)("h2",{children:e})}),t]})}const wy=ee("cover");function Ac(){return(0,s.jsxs)("svg",{"aria-hidden":"true",className:wy("header-star"),fill:"none",height:"18",viewBox:"0 0 18 18",width:"18",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("path",{d:"M9 0V18",strokeMiterlimit:"10",strokeWidth:"0.75"}),(0,s.jsx)("path",{d:"M18 9H0",strokeMiterlimit:"10",strokeWidth:"0.75"}),(0,s.jsx)("path",{d:"M15.3 15.3002L2.69995 2.7002",strokeMiterlimit:"10",strokeWidth:"0.75"}),(0,s.jsx)("path",{d:"M2.69995 15.3002L15.3 2.7002",strokeMiterlimit:"10",strokeWidth:"0.75"})]})}const My=()=>Is(480),Oy=()=>Is(768),Dy={SPLIT_LEFT_IMAGE:"CENTERED_OVERLAY",SPLIT_RIGHT_IMAGE:"CENTERED_OVERLAY",TWO_THIRDS_LEFT_IMAGE:"CENTERED_OVERLAY",TWO_THIRDS_RIGHT_IMAGE:"CENTERED_OVERLAY"};function F2(){const t=(0,xe.DX)(),e=Oy(),n=t?.theme?.coverPageType||"CENTERED";return e?Dy[n]??n:n}const By=ee("cover"),Hy=()=>null,Fy=()=>(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(S1,{children:(0,s.jsxs)(Js,{children:[(0,s.jsx)(Ps,{}),(0,s.jsx)(Ac,{}),(0,s.jsx)(Lo,{}),(0,s.jsx)(qs,{}),(0,s.jsx)(Xs,{})]})})}),Vy=()=>(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(wn,{children:(0,s.jsxs)(Js,{children:[(0,s.jsx)(Ps,{}),(0,s.jsx)(Ac,{}),(0,s.jsx)(Lo,{}),(0,s.jsx)(qs,{}),(0,s.jsx)(Xs,{})]})})}),zy=()=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(Ec,{}),(0,s.jsx)(wn,{children:(0,s.jsxs)(Js,{children:[(0,s.jsx)(Ps,{}),(0,s.jsx)(Ac,{}),(0,s.jsx)(Lo,{}),(0,s.jsx)(qs,{}),(0,s.jsx)(Xs,{})]})})]}),Uy=()=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(wn,{children:(0,s.jsxs)(Js,{children:[(0,s.jsx)(Ps,{}),(0,s.jsx)(Ac,{}),(0,s.jsx)(Lo,{}),(0,s.jsx)(qs,{}),(0,s.jsx)(Xs,{})]})}),(0,s.jsx)(Ec,{})]}),$y=()=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(wn,{children:(0,s.jsxs)(Js,{children:[(0,s.jsx)(Ps,{}),(0,s.jsx)(Ac,{}),(0,s.jsx)(Lo,{}),(0,s.jsx)(qs,{}),(0,s.jsx)(Xs,{})]})}),(0,s.jsx)("div",{className:"cover__header-graphic-wrap",children:(0,s.jsx)(Ec,{})})]});function Wy(){switch(F2()){default:case"CENTERED_IMAGE":return(0,s.jsx)($y,{});case"CENTERED":case"CENTERED_ACCENT_TINT":return(0,s.jsx)(Vy,{});case"SPLIT_LEFT_IMAGE":case"TWO_THIRDS_LEFT_IMAGE":return(0,s.jsx)(Uy,{});case"SPLIT_RIGHT_IMAGE":case"TWO_THIRDS_RIGHT_IMAGE":return(0,s.jsx)(zy,{});case"CENTERED_OVERLAY":return(0,s.jsx)(Fy,{})}}function _y(){return(0,s.jsxs)("header",{className:By("header",{meta:!1}),"data-testid":"cover-header",children:[(0,s.jsx)(Wy,{}),(0,s.jsx)(h.Suspense,{children:(0,s.jsx)(Hy,{})})]})}var Gy=c(26372);const Ky=ee("cover");function Qy({children:t}){const e=(0,xe.DX)(),{themeId:n}=e?.theme??{},o=F2(),r=Gy.useMemo(()=>qa()(o),[o]),a=Ky(null,{layout:r});return(0,s.jsx)("div",{className:a,"data-testid":`cover-layout-${r}`,"data-theme-id":n,id:"cover",children:t})}var V2=c(26372);const B1=ee("lesson-header"),Zy=({authorName:t,avatar:e,lessonName:n,lessonNumber:o,lessonPreposition:r,partnerContentAuthors:a,showAuthor:i,showLessonCount:l,title:u,totalLessons:d,lessonId:m})=>{const p=a!=null&&i,f=e&&t&&i&&!p,v=f||p||l,g=l&&(f||p);return(0,s.jsxs)("div",{className:B1("content"),children:[v&&(0,s.jsxs)("div",{className:B1("info-row"),children:[f?(0,s.jsx)(Eo,{authorName:t,avatar:e}):(0,s.jsx)(Sc,{}),p&&(0,s.jsx)(ei,{partnerContentAuthors:a}),g&&(0,s.jsx)("span",{"aria-hidden":"true",className:B1("info-row--divider"),children:"|"}),l?(0,s.jsx)(To,{lessonName:n,lessonNumber:o,lessonPreposition:r,totalLessons:d}):(0,s.jsx)(So,{})]}),(0,s.jsx)("div",{children:(0,s.jsx)(Io,{id:m,title:u})})]})},Yy=({authorName:t,avatar:e,lessonName:n,lessonNumber:o,lessonPreposition:r,partnerContentAuthors:a,showAuthor:i,showLessonCount:l,title:u,totalLessons:d,lessonId:m})=>{const p=a!=null,f=V2.useMemo(()=>e&&t&&i&&!p,[e,t,i,p]);return(0,s.jsxs)(s.Fragment,{children:[l?(0,s.jsx)(To,{lessonName:n,lessonNumber:o,lessonPreposition:r,totalLessons:d}):(0,s.jsx)(So,{}),f&&(0,s.jsx)(Eo,{authorName:t,avatar:e}),i&&p&&(0,s.jsx)(j1,{partnerContentAuthors:a}),(0,s.jsx)(Io,{id:m,title:u})]})},Xy=({authorName:t,avatar:e,lessonName:n,lessonNumber:o,lessonPreposition:r,partnerContentAuthors:a,showAuthor:i,showLessonCount:l,title:u,totalLessons:d,lessonId:m})=>{const p=a!=null,f=V2.useMemo(()=>e&&t&&i&&!p,[e,t,i,p]);return(0,s.jsxs)(s.Fragment,{children:[f?(0,s.jsx)(Eo,{authorName:t,avatar:e}):(0,s.jsx)(Sc,{}),i&&p&&(0,s.jsx)(ei,{partnerContentAuthors:a}),(0,s.jsx)(Io,{id:m,title:u}),l?(0,s.jsx)(To,{lessonName:n,lessonNumber:o,lessonPreposition:r,totalLessons:d}):(0,s.jsx)(So,{})]})};function Jy(t){const e=My();return t.lessonHeaderSize===A.OX.SMALL&&!e?(0,s.jsx)(Zy,{...t}):e?(0,s.jsx)(Yy,{...t}):(0,s.jsx)(Xy,{...t})}var H1=c(26372);const{COMPACT:qy,COVER:eL,OVERLAY:tL,SIDEBAR:sL}=it.by,ii=ee("progress-circle");function nL({"aria-hidden":t,"aria-label":e,isFailed:n,isPassed:o,scope:r,value:a}){const[i,l]=H1.useState(a===100),u=(0,qe.A)(a),{theme:d}=(0,xe.DX)(),m=d?.progressIndicatorStyle??A.Y2.THEME_DEFAULT,p=r===eL,f=r===tL,v=m===A.Y2.THEME_DEFAULT,g=m===A.Y2.CIRCULAR_FILL,C=m===A.Y2.INCOMPLETE_COMPLETE,x=ii("default",{failed:n,passed:o}),L=ii({compact:r===qy,cover:p,overlay:f,sidebar:r===sL}),y=ii("track",{"circular-fill":!f&&g,"incomplete-complete":p&&C}),E=ii("fill",{"circular-fill":g,done:i,failed:n,passed:o,unstarted:a===0}),b=ii("pass",{done:i,visible:o}),S=ii("fail",{done:i,visible:n}),T=H1.useMemo(()=>g||a===100?a:0,[g,a]);return H1.useEffect(()=>{if(a!==100&&u===100)l(!1);else if(a===100&&!i&&!C){const I=setTimeout(()=>l(!0),300);return clearTimeout.bind(null,I)}else a===100&&!i&&C&&l(!0)},[i,C,u,a]),(0,s.jsx)(s.Fragment,{children:v?(0,s.jsx)("svg",{"aria-hidden":t,"aria-label":e,className:x,focusable:"false",viewBox:"0 0 7 7",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("circle",{cx:"3.5",cy:"3.5",r:"2.5"})}):(0,s.jsxs)("svg",{"aria-hidden":t,"aria-label":e,className:L,fill:"none",focusable:"false",role:"img",viewBox:"0 0 7 7",xmlns:"https://www.w3.org/2000/svg",children:[(0,s.jsx)("circle",{className:y,cx:"8",cy:"8",fill:"transparent",r:"7",strokeWidth:"2",transform:"rotate(-89.9 8 8)"}),(0,s.jsx)(A1,{className:E,cx:8,cy:8,diameter:16,r:7,strokeLinecap:"round",strokeWidth:2,value:T}),(0,s.jsx)("path",{className:b,d:"M11.3227 6.65905C11.6133 6.37599 11.6347 5.89413 11.3705 5.58277C11.1063 5.27141 10.6566 5.24847 10.366 5.53152L6.93323 8.87512L5.6338 7.60944C5.3432 7.32639 4.89345 7.34933 4.62927 7.66069C4.36509 7.97205 4.38651 8.45391 4.67711 8.73697L6.45488 10.4686C6.72611 10.7328 7.14034 10.7328 7.41157 10.4686L11.3227 6.65905Z"}),(0,s.jsx)("path",{className:S,clipRule:"evenodd",d:"M9.46967 10.5303C9.76256 10.8232 10.2374 10.8232 10.5303 10.5303C10.8232 10.2374 10.8232 9.76256 10.5303 9.46967L9.06066 8L10.5303 6.53033C10.8232 6.23744 10.8232 5.76256 10.5303 5.46967C10.2374 5.17678 9.76256 5.17678 9.46967 5.46967L8 6.93934L6.53033 5.46967C6.23744 5.17678 5.76256 5.17678 5.46967 5.46967C5.17678 5.76256 5.17678 6.23744 5.46967 6.53033L6.93934 8L5.46967 9.46967C5.17678 9.76256 5.17678 10.2374 5.46967 10.5303C5.76256 10.8232 6.23744 10.8232 6.53033 10.5303L8 9.06066L9.46967 10.5303Z",fillRule:"evenodd"})]})})}function oL({Default:t,...e}){return(0,s.jsx)(t,{...e,hasOverlay:!1})}var rL=c(59419),xd=c.n(rL);const z2=t=>e=>(t(e),e.preventDefault()),Tr=t=>{t.stopPropagation(),t.nativeEvent.stopImmediatePropagation()},ro=t=>e=>{t(e),e.preventDefault(),Tr(e)};function bd(t,e){const n=[];if(t){let o=t.parentElement;for(;o&&(e?.limit==null||n.length<e.limit);){if(o===document.body){n.push(window);break}const r=window.getComputedStyle(o);(r.overflowX==="auto"||r.overflowX==="scroll"||r.overflowY==="auto"||r.overflowY==="scroll")&&n.push(o),o=o.parentElement}}return n}function aL(t){return bd(t,{limit:1})[0]??null}function U2(t,e){(0,h.useLayoutEffect)(()=>{let n=t.current;const o=bd(n);for(const r of o)r?.addEventListener("scroll",e);return()=>{for(const r of o)r?.removeEventListener("scroll",e)}},[e,t])}var No=c(23456),iL=c(48819),On=c.n(iL),cL=c(56438),aa=c.n(cL),lL=c(11748),ia=c.n(lL),dL=c(8486),Ir=c.n(dL);const uL={keys:["End"],keyCode:No.KEY_END},hL={keys:["Enter"],keyCode:No.KEY_RETURN},mL={keys:["Home"],keyCode:No.KEY_HOME},pL={keys:["Tab"],keyCode:No.KEY_TAB},fL={keys:[" "],keyCode:No.KEY_SPACE},vL={keys:["Escape","Esc"],keyCode:No.KEY_ESCAPE},gL={keys:["ArrowUp"],keyCode:No.KEY_UP},CL={keys:["ArrowDown"],keyCode:No.KEY_DOWN},xL={keys:["ArrowLeft"],keyCode:No.KEY_LEFT},bL={keys:["ArrowRight"],keyCode:No.KEY_RIGHT},jo=({keyCode:t,keys:e})=>n=>n.keyCode?n.keyCode===t:aa()(n.key,e),yL=t=>t.altKey||t.ctrlKey||t.metaKey,LL=jo(uL),ci=jo(hL),EL=jo(mL),yd=jo(pL),F1=jo(fL),hn=jo(vL),ca=jo(gL),la=jo(CL),Nr=jo(xL),jr=jo(bL),Rc=Ir()(F1,ci),dq=Ir()(yd,ci),SL=Ir()(jr,ca),TL=Ir()(Nr,la),IL=Ir()(ca,la),$2=Nc()(Rc),W2=25,NL=ia()((t,e)=>{t.scrollTop!==0&&(e.preventDefault(),t.scrollTop-=W2)}),jL=ia()((t,e,n)=>{e&&(n.preventDefault(),t.scrollTop+=W2)}),kL=(t,e)=>n=>{const o=jL(t,e),r=NL(t);On()([[la,o],[ca,r]])(n)},Ld=ee("lesson-progress"),{COMPACT:V1,COVER:Pc,OVERLAY:z1,SIDEBAR:wc}=it.by;function AL({canComplete:t,color:e,hasRestriction:n,isComplete:o,isCurrentLesson:r,isDark:a,isEnabled:i,isFailed:l,isLegacy:u=void 0,isPassed:d,isTooltipVisible:m,navigationStyle:p,onHideTooltip:f,onMarkComplete:v=void 0,onMarkReset:g=void 0,onShowTooltip:C,percentComplete:x,progressGraphic:L,scope:y,labels:E}){const b=(0,h.useRef)(),S=(0,h.useRef)(),T=(0,h.useRef)(),I=(0,h.useRef)(),{theme:{progressIndicatorStyle:j=A.Y2.THEME_DEFAULT}}=(0,xe.DX)(),M=j===A.Y2.THEME_DEFAULT,H=Ld({compact:y===V1,cover:y===Pc&&!u,"legacy-cover":y===Pc&&u,inactive:n,overlay:y===z1,sidebar:y===wc&&!u,"legacy-sidebar":y===wc&&u,"theme-default":M}),D=Ld("graphic",{compact:y===V1,cover:y===Pc&&!u,"legacy-cover":y===Pc&&u,overlay:y===z1,sidebar:y===wc&&!u,"legacy-sidebar":y===wc&&u}),P=Ld("tooltip",{legacy:u}).toString(),F=(0,h.useCallback)(()=>{o?g?.():v?.()},[o,v,g]),k=(0,h.useCallback)($=>{xd()(f)&&hn($)&&m&&f()},[f,m]),w=(0,h.useCallback)(()=>{clearTimeout(T.current),!n&&xd()(C)&&(S.current=setTimeout(C,600))},[n,C]),O=(0,h.useCallback)(()=>{clearTimeout(S.current),xd()(f)&&(T.current=setTimeout(f,150))},[f]),W=(0,h.useCallback)(()=>{setTimeout(()=>{if(m){const $=b.current.getBoundingClientRect(),ce=I.current.offsetParent.getBoundingClientRect(),{height:Ee,width:Ne}=$,De=$.left-ce.left,Ke=$.top-ce.top;Object.assign(I.current.style,{transform:`translate(${De}px, ${Ke}px)`,width:`${Ne}px`,height:`${Ee}px`})}},0)},[m]);if((0,h.useLayoutEffect)(()=>W(),[W]),(0,qt.A)("resize",W,window),(0,qt.A)("keydown",k,document),U2(b,O),t){const $=ze.BI&&x===100,ce=RL({labels:E,percentComplete:x,canReset:!$}),Ee=!i||$,Ne=Ld("action",{disabled:Ee});return(0,s.jsx)("span",{className:H,"data-testid":"lesson-progress",children:(0,s.jsx)("button",{"aria-label":ce,className:Ne,disabled:Ee,onBlur:f,onClick:F,onFocus:C,type:"button",children:(0,s.jsxs)("span",{className:D,onMouseEnter:w,onMouseLeave:O,ref:b,children:[(0,s.jsx)(L,{"aria-hidden":"true",color:e,isCurrent:r,isDark:a,isFailed:l,isPassed:d,navigationStyle:p,scope:y,value:x}),i&&!n&&(0,s.jsx)(_2,{className:P,dark:a,ref:I,scope:y,visible:m,children:ce})]})})})}const G=PL({labels:E,isFailed:l,percentComplete:x});return(0,s.jsx)("span",{className:H,"data-testid":"lesson-progress",children:(0,s.jsxs)("span",{className:D,onMouseEnter:w,onMouseLeave:O,ref:b,children:[(0,s.jsx)(L,{"aria-label":G,color:e,isCurrent:r,isDark:a,isFailed:l,isPassed:d,navigationStyle:p,scope:y,value:x}),i&&!n&&(0,s.jsx)(_2,{className:P,dark:a,ref:I,scope:y,visible:m,children:G})]})})}const _2=(0,h.forwardRef)((t,e)=>{const{children:n,className:o,dark:r,scope:a,visible:i}=t,l=(0,h.useMemo)(()=>ee(o),[o]),u=l({compact:a===V1,cover:a===Pc,overlay:a===z1,sidebar:a===wc,visible:i}),d=l("inner",{dark:r,light:!r}),m=(0,s.jsx)("div",{"aria-hidden":"true",onClick:Tr,ref:e,style:{left:0,pointerEvents:"none",position:"absolute",top:0,zIndex:Number.MAX_SAFE_INTEGER},children:(0,s.jsx)("div",{style:{pointerEvents:"all"},children:(0,s.jsx)("div",{className:u,children:(0,s.jsx)("div",{className:d,children:n})})})});return(0,oo.createPortal)(m,Lr())});function RL({labels:t,canReset:e,percentComplete:n}){const o=n===100,{progressPieCompleted:r,progressPieUnstarted:a,progressPieClickToComplete:i,progressPieClickToReset:l}=t;return o&&e?`${r}. ${l}`:n===100&&!e?r:n===0?`${a}. ${i}`:`${n}% ${r}. ${i}`}function PL({labels:t,isFailed:e,percentComplete:n}){const o=n===100,{progressPieCompleted:r,progressPieUnstarted:a,progressPieQuizFailed:i}=t;return e?i:o?r:n===0?a:`${n}% ${r}`}const G2=h.memo(AL);function wL({color:t,hasRestriction:e,isComplete:n,isCurrentLesson:o,isFailed:r,isPassed:a,isTooltipVisible:i,lessonTitle:l,navigationStyle:u,onHideTooltip:d,onShowTooltip:m,percentComplete:p,progressGraphic:f,scope:v,labels:g}){return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:"overview-list-item__progress",children:(0,s.jsx)(G2,{canComplete:!1,color:t,hasRestriction:e,isComplete:n,isCurrentLesson:o,isDark:!1,isEnabled:!0,isFailed:r,isPassed:a,isTooltipVisible:i,labels:g,navigationStyle:u,onHideTooltip:d,onShowTooltip:m,percentComplete:p,progressGraphic:f,scope:v})}),(0,s.jsx)("span",{className:"overview-list-item__title",children:l})]})}function ML(){return null}function K2({className:t,ref:e}){return(0,s.jsx)("svg",{"aria-hidden":"true",className:t,fill:"currentColor",focusable:"false",ref:e,viewBox:"0 0 13 13",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("path",{d:"M3.33177 4.1487L6.48034 1.00013M9.6289 4.14869L6.48034 1.00013M6.48034 1.00013L6.47966 11.9601"})})}function OL(t){const e=(0,Us.QD)(t,["Default"]);return(0,s.jsxs)(Vs,{...e,fill:"none",viewBox:"0 3 16 10",children:[(0,s.jsx)("path",{d:"M1.51472 7.99993H14.4853",stroke:"currentColor",strokeMiterlimit:"10",strokeWidth:"0.75"}),(0,s.jsx)("path",{d:"M9.50008 12.4994L14.5004 7.99932L9.50008 3.99973",stroke:"currentColor",strokeMiterlimit:"10",strokeWidth:"0.75"})]})}function DL(t){const e=(0,Us.QD)(t,["Default"]);return(0,s.jsx)(Vs,{viewBox:"0 0 25 16",...e,children:(0,s.jsx)("path",{clipRule:"evenodd",d:"M1.10699 7.7986L0.778547 7.50301L1.1236 7.22701L10.013 0.116623L10.4815 0.702312L2.42567 7.14593H24.4443V7.89593H2.3363L10.4981 15.2413L9.9964 15.7988L1.10699 7.7986Z",fill:"currentColor",fillRule:"evenodd"})})}function Q2(t){return(0,s.jsx)(ys,{height:"8",viewBox:"0 0 14 8",width:"14",...t,children:(0,s.jsx)("path",{clipRule:"evenodd",d:"M13 1L7 7L1 1",stroke:"currentColor"})})}function Z2(t){const e=(0,Us.QD)(t,["Default"]);return(0,s.jsxs)(Vs,{...e,fill:"none",viewBox:"0 0 16 16",children:[(0,s.jsx)("circle",{cx:"8",cy:"8",r:"7",stroke:"white"}),(0,s.jsx)("path",{d:"M5 7.71429L7.54545 10L11.5 5.5",stroke:"white"})]})}function Y2(t){const e=(0,Us.QD)(t,["Default"]);return(0,s.jsxs)(Vs,{...e,fill:"none",viewBox:"0 0 16 16",children:[(0,s.jsx)("path",{d:"M8.00085 5.20305L5.14081 8.06339C5.14079 8.06341 5.14077 8.06343 5.14075 8.06345C5.00146 8.20273 4.92319 8.39163 4.92314 8.58861V8.5887V9.93926C4.92314 10.1851 5.12244 10.3844 5.36829 10.3844H6.71884H6.71894C6.91593 10.3844 7.10484 10.3061 7.24413 10.1668C7.24414 10.1668 7.24415 10.1667 7.24416 10.1667L10.104 7.30664C10.104 7.30657 10.1041 7.3065 10.1042 7.30643L10.1042 7.30638C10.1043 7.30631 10.1044 7.30622 10.1044 7.30615L10.9465 6.46442C11.03 6.38095 11.0769 6.26773 11.0769 6.14966C11.0769 6.0316 11.03 5.91836 10.9466 5.83487L9.47304 4.36105C9.29924 4.18722 9.01746 4.18716 8.84359 4.36091L8.00111 5.20279C8.0011 5.2028 8.0011 5.2028 8.0011 5.2028L8.00085 5.20305Z",stroke:"white",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"0.890284"}),(0,s.jsx)("circle",{cx:"8",cy:"7.5293",r:"7",stroke:"white"})]})}function BL({className:t}){return(0,s.jsxs)("svg",{"aria-hidden":"true",className:t,fill:"none",viewBox:"0 0 15 15",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("circle",{cx:"6",cy:"6",r:"5"}),(0,s.jsx)("path",{d:"M9.5 9.5L14 14"})]})}function HL(t){const e=(0,Us.QD)(t,["Default"]);return(0,s.jsxs)(Vs,{...e,fill:"none",viewBox:"0 0 16 16",children:[(0,s.jsx)("circle",{cx:"8",cy:"8",r:"7",stroke:"white"}),(0,s.jsx)("path",{d:"M10 6L6 10",stroke:"white"}),(0,s.jsx)("path",{d:"M6 6L10 10",stroke:"white"})]})}function FL({className:t}){return(0,s.jsx)("svg",{"aria-hidden":"true",className:t,fill:"none",focusable:"false",viewBox:"0 0 10 7",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("path",{d:"M1 1.40002L5 5.40002L9 1.40002",strokeWidth:"1.6"})})}function VL(t){const e=(0,Us.QD)(t,["Default"]);return(0,s.jsxs)(Vs,{viewBox:"0 0 12 12",...e,children:[(0,s.jsx)("path",{d:"M10.7425 0.742189L11.4496 1.4493L1.55012 11.3488L0.843012 10.6417L10.7425 0.742189Z",fill:"currentColor"}),(0,s.jsx)("path",{d:"M11.1571 10.6417L10.45 11.3488L0.550537 1.44929L1.25764 0.742188L11.1571 10.6417Z",fill:"currentColor"})]})}const zL=()=>Is(1200),UL=()=>Is(768),U1=()=>Is(480),X2=ee("cover");function $L(){const t=(0,xe.DX)(),e=zL(),n=(0,st.QQ)(t.description);if(!n)return null;const o=Za("description"),r=(0,fs.uW)(t.description)?{"data-l10n-id":t.description.l10nId}:{"data-change-path":o};return(0,s.jsx)("div",{...r,children:(0,s.jsxs)("section",{className:X2("details-content-section"),children:[e&&(0,s.jsx)(x1,{}),(0,s.jsx)(Et,{className:X2("details-content-description"),value:d1(n)},"text")]})})}const WL={SPLIT_LEFT:"LEFT",SPLIT_LEFT_IMAGE:"LEFT_OVERLAY",SPLIT_RIGHT:"LEFT",SPLIT_RIGHT_IMAGE:"LEFT_OVERLAY"};function $1(){const t=(0,xe.DX)(),e=UL(),n=t?.theme?.coverPageType||"CENTERED";return e?WL[n]??n:n}function _L({Default:t,...e}){const n=$1(),o=["SPLIT_RIGHT","SPLIT_RIGHT_IMAGE"].includes(n);return(0,s.jsx)(t,{...e,reverseColumns:o})}const J2=ee("cover");function Mc({accentColor:t,hasOverlay:e=!1,isShape:n=!1}){const{alpha:o,ariaLabel:r,media:a,role:i}=na("coverImage"),l=n?{backgroundColor:t}:(0,_t.b9)({alpha:o,hasOverlay:e,media:a});return(0,s.jsx)("div",{className:J2("header-graphic-container"),children:(0,s.jsx)("div",{"aria-label":r,className:J2("header-graphic"),"data-testid":"cover-header-graphic",role:i,style:l})})}const q2=t=>(0,s.jsx)(Ed,{...t,children:(0,s.jsx)("clipPath",{clipPathUnits:"objectBoundingBox",id:"cover-page-clip-path",children:(0,s.jsx)("path",{d:"M0.319,0.998 L1,0.899 V0 H0 V0.899 L0.192,0.98 C0.234,0.998,0.277,1,0.319,0.998"})})}),ef=t=>(0,s.jsx)(Ed,{...t,children:(0,s.jsx)("clipPath",{clipPathUnits:"objectBoundingBox",id:"cover-page-clip-path",children:(0,s.jsx)("path",{d:"M0.661,0.963 L1,0.804 V0 H0 V0.804 L0.339,0.963 C0.445,1,0.555,1,0.661,0.963"})})}),tf=t=>(0,s.jsx)(Ed,{...t,children:(0,s.jsx)("clipPath",{clipPathUnits:"objectBoundingBox",id:"cover-page-clip-path",children:(0,s.jsx)("path",{d:"M0.481,0.991 L0.908,0.825 C0.99,0.793,1,0.694,0.982,0.616 L0.68,0.075 C0.636,-0.003,0.534,-0.023,0.465,0.033 L0.055,0.364 C-0.007,0.414,-0.017,0.505,0.031,0.568 L0.316,0.944 C0.355,0.995,0.422,1,0.481,0.991"})})}),sf=t=>(0,s.jsx)(Ed,{...t,children:(0,s.jsx)("clipPath",{clipPathUnits:"objectBoundingBox",id:"cover-page-clip-path",children:(0,s.jsx)("path",{d:"M0.519,0.991 L0.093,0.825 C0.01,0.793,-0.025,0.694,0.019,0.616 L0.321,0.075 C0.364,-0.003,0.466,-0.023,0.536,0.033 L0.946,0.364 C1,0.414,1,0.505,0.97,0.568 L0.685,0.944 C0.646,0.995,0.579,1,0.519,0.991"})})}),GL={LEFT_OVERLAY:q2,LEFT:q2,CENTERED:ef,CENTERED_OVERLAY:ef,SPLIT_LEFT:tf,SPLIT_LEFT_IMAGE:tf,SPLIT_RIGHT:sf,SPLIT_RIGHT_IMAGE:sf},Ed=({children:t,className:e="svgPath",height:n,width:o,viewBox:r})=>(0,s.jsx)("svg",{"aria-hidden":"true",className:e,fill:"none",focusable:"false",height:n,viewBox:r,width:o,xmlns:"http://www.w3.org/2000/svg",children:t});function da({className:t,coverPageType:e}){const n=e?GL[e]:null;return n?(0,s.jsx)(n,{className:t}):null}const nf=ee("cover"),li=()=>(0,s.jsxs)("div",{className:nf("author-published-wrap"),children:[(0,s.jsx)(Lo,{}),(0,s.jsx)(c2,{})]}),KL=({coverPageType:t})=>{const e=U1();return(0,s.jsxs)(S1,{children:[(0,s.jsx)(da,{coverPageType:t}),(0,s.jsxs)(Js,{children:[!e&&(0,s.jsx)(Ps,{}),(0,s.jsx)(li,{}),(0,s.jsx)(qs,{}),e&&(0,s.jsx)(Ps,{}),(0,s.jsx)(Xs,{})]})]})},QL=({coverPageType:t})=>{const e=U1();return(0,s.jsxs)(wn,{children:[(0,s.jsx)(da,{coverPageType:t}),(0,s.jsxs)(Js,{children:[!e&&(0,s.jsx)(Ps,{}),(0,s.jsx)(li,{}),(0,s.jsx)(qs,{}),e&&(0,s.jsx)(Ps,{}),(0,s.jsx)(Xs,{})]})]})},ZL=({coverPageType:t})=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(da,{coverPageType:t}),(0,s.jsx)(Mc,{}),(0,s.jsx)(wn,{children:(0,s.jsxs)(Js,{children:[(0,s.jsx)(Ps,{}),(0,s.jsx)(li,{}),(0,s.jsx)(qs,{}),(0,s.jsx)(Xs,{})]})})]}),YL=({accentColor:t,coverPageType:e})=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(wn,{children:(0,s.jsxs)(Js,{children:[(0,s.jsx)(Ps,{}),(0,s.jsx)(li,{}),(0,s.jsx)(qs,{}),(0,s.jsx)(Xs,{})]})}),(0,s.jsx)(da,{coverPageType:e}),(0,s.jsx)(Mc,{accentColor:t,isShape:!0})]}),XL=({coverPageType:t})=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(wn,{children:(0,s.jsxs)(Js,{children:[(0,s.jsx)(Ps,{}),(0,s.jsx)(li,{}),(0,s.jsx)(qs,{}),(0,s.jsx)(Xs,{})]})}),(0,s.jsx)(da,{coverPageType:t}),(0,s.jsx)(Mc,{})]}),JL=({accentColor:t,coverPageType:e})=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(da,{coverPageType:e}),(0,s.jsx)(Mc,{accentColor:t,isShape:!0}),(0,s.jsx)(wn,{children:(0,s.jsxs)(Js,{children:[(0,s.jsx)(Ps,{}),(0,s.jsx)(li,{}),(0,s.jsx)(qs,{}),(0,s.jsx)(Xs,{})]})})]});function qL(t){const e=$1(),n={...t,coverPageType:e};switch(e){default:case A.BL.LEFT_OVERLAY:case A.BL.CENTERED_OVERLAY:return(0,s.jsx)(KL,{...n});case A.BL.LEFT:case A.BL.CENTERED:return(0,s.jsx)(QL,{...n});case A.BL.SPLIT_LEFT:return(0,s.jsx)(YL,{...n});case A.BL.SPLIT_LEFT_IMAGE:return(0,s.jsx)(XL,{...n});case A.BL.SPLIT_RIGHT:return(0,s.jsx)(JL,{...n});case A.BL.SPLIT_RIGHT_IMAGE:return(0,s.jsx)(ZL,{...n})}}function eE(t){const{partnerContentId:e}=(0,xe.DX)(),n=(0,xe.Bd)(),r=!!(!!e&&!!n||ze.BI);return(0,s.jsx)("header",{className:nf("header",{"with-info":r}),"data-testid":"cover-header",children:(0,s.jsx)(qL,{...t})})}var tE=c(26372);const sE=ee("cover");function nE({children:t}){const e=(0,xe.DX)(),{themeId:n}=e?.theme??{},o=$1(),r=tE.useMemo(()=>qa()(o),[o]),a=sE(null,{layout:r});return(0,s.jsx)("div",{className:a,"data-testid":`cover-layout-${r}`,"data-theme-id":n,id:"cover",children:t})}const oE=Ns("AlignLeft"),Sd=Ns("ArrowDown"),of=Ns("ArrowRight"),rf=Ns("ArrowUp"),rE=Ns("Category"),aE=Ns("ChevronDown"),iE=Ns("ChevronUp"),cE=Ns("LessonsComplete"),lE=Ns("LessonsRequirement"),dE=Ns("QuestionBox"),uE=Ns("QuizFailed"),hE=Ns("QuizPassed"),mE=Ns("QuizRequirement"),Oc=Ns("Search"),af=Ns("ToggleDown"),pE=Ns("Touch"),fE=Ns("VideoCamera"),Td=Ns("X"),vE=t=>{const e=t.indexOf("-");return e===-1?t:t.slice(0,e)},uq=(t,e)=>{const n=vE(t);return e.find(({iso639Code:o})=>o===t)||e.find(({iso639Code:o})=>o===n)||e.find(({defaultId:o,defaultSet:r})=>r&&o===1)},di=({percent:t,label:e,isRTL:n})=>{if(e.includes("%")){const o=n?`%${t}`:`${t}%`;return e.replace("%",o)}return`${t} ${e}`},er=ee("cover");function gE({nextLesson:t,percentComplete:e}){const n=U1(),o=(0,xe.Wz)(),r=(0,xe.vU)();if(e===0||!ze.BI)return null;const a=di({percent:e,label:r.progressSummaryPercentComplete,isRTL:o});return(0,s.jsxs)("div",{className:er("progress"),children:[n&&(0,s.jsx)("div",{className:er("progress-text"),children:a}),(0,s.jsx)("div",{className:er("progress-outer"),children:(0,s.jsx)("div",{className:er("progress-inner"),style:{width:`${e}%`}})}),(0,s.jsxs)("div",{className:er("progress-text-wrap"),children:[!n&&(0,s.jsx)("div",{className:er("progress-text"),children:a}),t&&(0,s.jsxs)("div",{className:er("progress-next-lesson"),children:[(0,s.jsx)(of,{className:er("progress-next-lesson-icon").toString(),decorative:!0}),(0,s.jsx)("span",{"aria-hidden":"true",className:er("progress-next-lesson-text"),children:t.title}),(0,s.jsxs)("span",{className:"visually-hidden",children:["Next lesson: ",t.title]})]})]})]})}var cf=c(26372);const Id=ee("lesson-header"),W1=()=>(0,s.jsx)("div",{className:Id("author--hidden")}),CE=({authorName:t,avatar:e,description:n,lessonName:o,lessonNumber:r,lessonPreposition:a,partnerContentAuthors:i,showAuthor:l,showLessonCount:u,title:d,totalLessons:m,lessonId:p})=>{const f=i!=null&&l,v=e&&t&&l&&!f,g=v||f||u,C=u&&(v||f);return(0,s.jsxs)("div",{className:Id("content"),children:[g&&(0,s.jsxs)("div",{className:Id("info-row"),children:[v?(0,s.jsx)(Eo,{authorName:t,avatar:e}):(0,s.jsx)(W1,{}),f&&(0,s.jsx)(ei,{partnerContentAuthors:i}),C&&(0,s.jsx)("span",{"aria-hidden":"true",className:Id("info-row--divider"),children:"|"}),u?(0,s.jsx)(To,{lessonName:o,lessonNumber:r,lessonPreposition:a,totalLessons:m}):(0,s.jsx)(So,{})]}),(0,s.jsxs)("div",{children:[(0,s.jsx)(Io,{id:p,title:d}),n&&(0,s.jsx)(oa,{description:n})]})]})},xE=t=>{const{authorName:e,avatar:n,description:o,lessonName:r,lessonNumber:a,lessonPreposition:i,partnerContentAuthors:l,showAuthor:u,showLessonCount:d,title:m,totalLessons:p,lessonId:f}=t,v=l!=null,g=cf.useMemo(()=>n&&e&&u&&!v,[n,e,u,v]);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(Io,{id:f,title:m}),(0,s.jsxs)(Kx,{children:[g?(0,s.jsx)(Eo,{authorName:e,avatar:n}):(0,s.jsx)(W1,{}),u&&v&&(0,s.jsx)(ei,{partnerContentAuthors:l}),d?(0,s.jsx)(To,{lessonName:r,lessonNumber:a,lessonPreposition:i,showPartnerContent:v,totalLessons:p}):(0,s.jsx)(So,{})]}),o&&(0,s.jsx)(oa,{description:o})]})},bE=t=>{const{authorName:e,avatar:n,description:o,lessonName:r,lessonNumber:a,lessonPreposition:i,partnerContentAuthors:l,showAuthor:u,showLessonCount:d,title:m,totalLessons:p,lessonId:f}=t,v=l!=null,g=cf.useMemo(()=>n&&e&&u&&!v,[n,e,u,v]);return(0,s.jsxs)(s.Fragment,{children:[d?(0,s.jsx)(To,{lessonName:r,lessonNumber:a,lessonPreposition:i,totalLessons:p}):(0,s.jsx)(So,{}),g?(0,s.jsx)(Eo,{authorName:e,avatar:n}):(0,s.jsx)(W1,{}),u&&v&&(0,s.jsx)(j1,{partnerContentAuthors:l}),(0,s.jsx)(Io,{id:f,title:m}),o&&(0,s.jsx)(oa,{description:o})]})};function yE(t){const e=f1();return t.lessonHeaderSize===A.OX.SMALL&&!e?(0,s.jsx)(CE,{...t}):e?(0,s.jsx)(bE,{...t}):(0,s.jsx)(xE,{...t})}var Nd=c(26372);const{COMPACT:LE,COVER:EE,OVERLAY:SE,SIDEBAR:TE}=it.by,Dc=ee("progress-circle");function IE({"aria-hidden":t,"aria-label":e,isFailed:n,isPassed:o,scope:r,value:a}){const[i,l]=Nd.useState(a===100),u=(0,qe.A)(a),{theme:d}=(0,xe.DX)(),m=d?.progressIndicatorStyle??A.Y2.THEME_DEFAULT,p=r===EE,f=r===SE,v=m===A.Y2.THEME_DEFAULT,g=m===A.Y2.CIRCULAR_FILL,C=m===A.Y2.INCOMPLETE_COMPLETE,x=Dc({compact:r===LE,cover:p,sidebar:r===TE,overlay:f}),L=Dc("track",{"circular-fill":!f&&g,"incomplete-complete":p&&C}),y=Dc("runner",{"circular-fill":g,done:i,failed:n,passed:o,unstarted:a===0}),E=Dc("pass",{done:i,visible:o}),b=Dc("fail",{done:i,visible:n}),S=Nd.useMemo(()=>g||a===100?a:0,[g,a]);Nd.useEffect(()=>{if(a!==100&&u===100)l(!1);else if(a===100&&!i&&!C){const I=setTimeout(()=>l(!0),300);return clearTimeout.bind(null,I)}else a===100&&!i&&C&&l(!0)},[i,C,u,a]);const T=Nd.useCallback(()=>{a===100&&l(!0)},[a]);return(0,s.jsxs)("svg",{"aria-hidden":t,"aria-label":e,className:x,fill:"none",focusable:"false",role:"img",viewBox:"0 0 15 15",xmlns:"https://www.w3.org/2000/svg",children:[(0,s.jsx)("circle",{className:L,cx:"7.5",cy:"7.5",fill:"transparent",r:"6.5",strokeWidth:"2",transform:"rotate(-89.9 7.5 7.5)"}),v?(0,s.jsx)(k2,{className:y,cx:7.5,cy:7.5,diameter:15,onTransitionEnd:T,r:6.5,strokeWidth:2,transform:"rotate(-89.9 7.5 7.5)",value:a}):(0,s.jsx)(A1,{className:y,cx:7.5,cy:7.5,diameter:15,onTransitionEnd:T,r:6.5,strokeLinecap:"round",strokeWidth:2,value:S}),(0,s.jsx)("path",{className:E,d:"M11.3227 6.65905C11.6133 6.37599 11.6347 5.89413 11.3705 5.58277C11.1063 5.27141 10.6566 5.24847 10.366 5.53152L6.93323 8.87512L5.6338 7.60944C5.3432 7.32639 4.89345 7.34933 4.62927 7.66069C4.36509 7.97205 4.38651 8.45391 4.67711 8.73697L6.45488 10.4686C6.72611 10.7328 7.14034 10.7328 7.41157 10.4686L11.3227 6.65905Z"}),(0,s.jsx)("path",{className:b,clipRule:"evenodd",d:"M7.5 8.56157L8.84426 9.90564L9.90503 8.84473L8.56078 7.50066L9.90543 6.15582L8.84452 5.09504L7.49986 6.43988L6.15452 5.09473L5.09375 6.15564L6.43909 7.5008L5.09452 8.84555L6.15543 9.90632L7.5 8.56157Z",fillRule:"evenodd"})]})}const jd=({"aria-hidden":t=void 0,"aria-label":e=void 0,progress:n=0,runnerClass:o,trackClass:r})=>(0,s.jsx)("div",{"aria-hidden":t,"aria-label":e,className:r,role:"img",children:(0,s.jsx)("div",{className:o,style:{width:`${n}%`}})}),NE=ee("nav-sidebar-header");function jE(t){const{classProgressRunner:e,classProgressText:n,classProgressTrack:o,percentComplete:r,percentCompleteText:a}=t;return(0,s.jsxs)("div",{className:NE("progress"),"data-testid":"nav-sidebar-progress",children:[(0,s.jsx)("div",{className:n,children:a}),(0,s.jsx)(jd,{"aria-hidden":"true",progress:r,runnerClass:e,trackClass:o})]})}function kE({className:t,ref:e}){return(0,s.jsx)("svg",{"aria-hidden":"true",className:t,fill:"currentColor",focusable:"false",height:"17",ref:e,role:"img",viewBox:"0 0 17 17",width:"17",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("path",{clipRule:"evenodd",d:"M8.029 16.2343L8.7361 16.9414L9.44321 16.2343L16.707 8.97048L15.2928 7.55627L9.73903 13.11L9.73903 1.99985L7.73903 1.99985L7.73904 13.1159L2.17939 7.55627L0.765176 8.97048L8.029 16.2343Z",fillRule:"evenodd"})})}function AE(t){return(0,s.jsx)(Vs,{...t,viewBox:"0 0 16 8",children:(0,s.jsx)("path",{clipRule:"evenodd",d:"M15,3H3.4l1.3-1.3c0.4-0.4,0.4-1,0-1.4C4.5,0.1,4.3,0,4,0S3.5,0.1,3.3,0.3l-3,3c-0.4,0.4-0.4,1,0,1.4l3,3c0.4,0.4,1,0.4,1.4,0c0.4-0.4,0.4-1,0-1.4L3.4,5H15c0.6,0,1-0.4,1-1S15.6,3,15,3",fill:"currentColor",fillRule:"evenodd"})})}function RE(t){const e=(0,Us.QD)(t,["Default"]);return(0,s.jsx)(Vs,{...e,viewBox:"0 0 16 8",children:(0,s.jsx)("path",{clipRule:"evenodd",d:"M1 5H12.6L11.3 6.3C10.9 6.7 10.9 7.3 11.3 7.7C11.5 7.9 11.7 8 12 8C12.3 8 12.5 7.9 12.7 7.7L15.7 4.7C16.1 4.3 16.1 3.7 15.7 3.3L12.7 0.3C12.3 -0.1 11.7 -0.1 11.3 0.3C10.9 0.7 10.9 1.3 11.3 1.7L12.6 3H1C0.4 3 0 3.4 0 4C0 4.6 0.4 5 1 5",fill:"currentColor",fillRule:"evenodd"})})}function PE({className:t,ref:e}){return(0,s.jsx)("svg",{"aria-hidden":"true",className:t,fill:"currentColor",focusable:"false",ref:e,version:"1.1",viewBox:"0 0 17 17",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("path",{clipRule:"evenodd",d:"M8.971 0.7657L8.2639 0.0585938L7.55679 0.765701L0.292969 8.02952L1.70718 9.44374L7.26096 3.88995L7.26097 15.0002H9.26097L9.26096 3.88409L14.8206 9.44373L16.2348 8.02952L8.971 0.7657Z",fillRule:"evenodd"})})}function wE(t){return(0,s.jsx)(ys,{height:"12",viewBox:"0 0 16 12",width:"16",...t,children:(0,s.jsx)("path",{clipRule:"evenodd",d:"M9.6665 2H0.666504V0H9.6665V2ZM12.6665 6H0.666504V4H12.6665V6ZM0.666504 10H7.6665V8H0.666504V10Z",fill:"currentColor",fillRule:"evenodd"})})}function lf(t){return(0,s.jsx)(ys,{height:"8",viewBox:"0 0 12 8",width:"12",...t,children:(0,s.jsx)("path",{clipRule:"evenodd",d:"M6.00008 7.91406L11.7072 2.20696L10.293 0.792742L6.00007 5.08564L1.70718 0.792742L0.292969 2.20696L6.00008 7.91406Z",fill:"currentColor",fillRule:"evenodd"})})}function ME(t){return(0,s.jsx)(ys,{height:"8",viewBox:"0 0 12 8",width:"12",...t,children:(0,s.jsx)("path",{clipRule:"evenodd",d:"M5.99992 0.0859375L0.292818 5.79304L1.70703 7.20726L5.99993 2.91436L10.2928 7.20726L11.707 5.79304L5.99992 0.0859375Z",fill:"currentColor",fillRule:"evenodd"})})}function OE(t){return(0,s.jsxs)(ys,{height:"21",viewBox:"0 0 20 21",width:"20",...t,children:[(0,s.jsx)("path",{d:"M9.94535 6.125C9.1938 6.125 8.52385 6.6729 8.30039 7.48015C8.17194 7.9442 7.70954 8.21104 7.26759 8.07617C6.82564 7.94129 6.5715 7.45577 6.69996 6.99172C7.11282 5.50025 8.3916 4.375 9.94535 4.375C11.8499 4.375 13.3335 6.05606 13.3335 8.05C13.3335 9.7417 12.2656 11.2082 10.7787 11.6139V12.25C10.7787 12.7332 10.4056 13.125 9.94535 13.125C9.48511 13.125 9.11201 12.7332 9.11201 12.25V10.85C9.11201 10.3668 9.48511 9.975 9.94535 9.975C10.8628 9.975 11.6668 9.14886 11.6668 8.05C11.6668 6.95114 10.8628 6.125 9.94535 6.125Z",fill:"currentColor"}),(0,s.jsx)("path",{d:"M10.0002 14C9.53992 14 9.16683 14.3918 9.16683 14.875C9.16683 15.3582 9.53992 15.75 10.0002 15.75H10.0085C10.4687 15.75 10.8418 15.3582 10.8418 14.875C10.8418 14.3918 10.4687 14 10.0085 14H10.0002Z",fill:"currentColor"}),(0,s.jsx)("path",{clipRule:"evenodd",d:"M0.833496 3.55556C0.833496 2.01519 2.09493 0.875 3.51868 0.875H16.4816C17.9054 0.875 19.1668 2.01519 19.1668 3.55556V17.4444C19.1668 18.9848 17.9054 20.125 16.4816 20.125H3.51868C2.09493 20.125 0.833496 18.9848 0.833496 17.4444V3.55556ZM3.51868 2.625C2.89693 2.625 2.50016 3.10156 2.50016 3.55556V17.4444C2.50016 17.8984 2.89693 18.375 3.51868 18.375H16.4816C17.1034 18.375 17.5002 17.8984 17.5002 17.4444V3.55556C17.5002 3.10156 17.1034 2.625 16.4816 2.625H3.51868Z",fill:"currentColor",fillRule:"evenodd"})]})}function DE(t){return(0,s.jsx)(ys,{height:"15",viewBox:"0 0 16 15",width:"16",...t,children:(0,s.jsx)("path",{clipRule:"evenodd",d:"M2 6.51982C2 4.02359 4.02359 2 6.51982 2C9.01605 2 11.0396 4.02359 11.0396 6.51982C11.0396 9.01605 9.01605 11.0396 6.51982 11.0396C4.02359 11.0396 2 9.01605 2 6.51982ZM6.51982 0C2.91902 0 0 2.91902 0 6.51982C0 10.1206 2.91902 13.0396 6.51982 13.0396C8.06462 13.0396 9.48394 12.5024 10.6011 11.6045L13.9964 14.9998L15.4106 13.5856L11.9518 10.1268C12.6391 9.09384 13.0396 7.8536 13.0396 6.51982C13.0396 2.91902 10.1206 0 6.51982 0Z",fill:"currentColor",fillRule:"evenodd"})})}function BE(t){return(0,s.jsxs)(ys,{height:"18",viewBox:"0 0 18 18",width:"18",...t,children:[(0,s.jsx)("path",{d:"M3.1665 6.08335C3.1665 4.01229 4.84544 2.33335 6.9165 2.33335C8.98757 2.33335 10.6665 4.01229 10.6665 6.08335C10.6665 6.37941 10.6324 6.66643 10.5681 6.9411C10.4634 7.38925 10.7417 7.83748 11.1899 7.94225C11.6381 8.04702 12.0863 7.76865 12.1911 7.3205C12.2841 6.92235 12.3332 6.50805 12.3332 6.08335C12.3332 3.09181 9.90805 0.666687 6.9165 0.666687C3.92496 0.666687 1.49984 3.09181 1.49984 6.08335C1.49984 6.46923 1.54032 6.84657 1.61756 7.21105C1.679 7.50095 1.76362 7.78236 1.86938 8.05316C1.97511 8.32389 2.10191 8.5839 2.24772 8.83119C2.48148 9.22764 2.99237 9.35953 3.38882 9.12577C3.78527 8.89201 3.91716 8.38112 3.6834 7.98467C3.58248 7.81352 3.49485 7.63379 3.42186 7.44688C3.34886 7.25994 3.29045 7.0657 3.24802 6.86551C3.1947 6.61395 3.1665 6.3524 3.1665 6.08335Z",fill:"currentColor"}),(0,s.jsx)("path",{d:"M9.18922 9.34412L14.8186 10.2697C16.2762 10.5117 17.3332 11.6819 17.3332 13.0521V16.6037C17.3332 17.0029 16.9837 17.3264 16.553 17.3264C16.122 17.3264 15.7728 17.0029 15.7728 16.6037V13.0521C15.7728 12.3826 15.2561 11.8108 14.5446 11.6926L8.30452 10.6667H8.30233C7.90851 10.6331 7.57585 10.2773 7.57585 9.8899V6.0524C7.57585 5.88733 7.48441 5.73325 7.33119 5.64046C7.17921 5.54853 6.99291 5.53668 6.82002 5.60606C6.63747 5.68035 6.51483 5.87085 6.51483 6.08044V15.3607C6.51483 15.6856 6.30169 15.9391 5.91441 16.0741C5.40325 16.2528 4.90988 16.0261 4.70516 15.7226L3.01346 13.2999C2.93513 13.1565 2.84963 13.09 2.68954 13.0406C2.59935 13.0249 2.47889 13.0408 2.37154 13.0906C2.2798 13.1394 2.22768 13.4826 2.38902 13.9902C2.41984 14.0542 3.0442 15.4844 3.27756 16.0189C3.32536 16.1284 3.35676 16.2003 3.36328 16.2152C3.47656 16.4494 3.49404 16.6994 3.40853 16.8957C3.33551 17.0631 3.1904 17.1911 2.98912 17.2663C2.893 17.3018 2.77099 17.3334 2.63742 17.3334C2.36124 17.3334 2.03826 17.1986 1.80702 16.6867L1.75272 16.5849C1.3289 15.6773 1.03464 14.952 0.90735 14.6382L0.905151 14.6328L0.896561 14.6115C0.87092 14.548 0.854463 14.5072 0.847419 14.4926C0.45609 13.3756 0.711983 12.3355 1.49527 11.8308C1.97428 11.5452 2.55316 11.4538 3.08867 11.5781C3.63572 11.7047 4.10288 12.0476 4.40371 12.5436L4.82936 13.2293V5.99429C4.82936 5.3563 5.1692 4.74981 5.7381 4.37228C6.30855 3.99359 7.0238 3.89848 7.69942 4.11153C8.55823 4.3824 9.13554 5.15654 9.13617 6.03881L9.18922 9.34412Z",fill:"currentColor"})]})}function HE(t){return(0,s.jsxs)(ys,{height:"14",viewBox:"0 0 20 14",width:"20",...t,children:[(0,s.jsx)("path",{clipRule:"evenodd",d:"M19.548 2.09234C19.8255 2.23518 20 2.52116 20 2.83331V11.1666C20 11.4788 19.8255 11.7648 19.548 11.9076C19.2704 12.0505 18.9363 12.0262 18.6823 11.8448L12.849 7.67809C12.63 7.52166 12.5 7.2691 12.5 6.99998C12.5 6.73085 12.63 6.47829 12.849 6.32187L18.6823 2.1552C18.9363 1.97376 19.2704 1.9495 19.548 2.09234ZM14.7671 6.99998L18.3333 9.54732V4.45264L14.7671 6.99998Z",fill:"currentColor",fillRule:"evenodd"}),(0,s.jsx)("path",{clipRule:"evenodd",d:"M2.5 1.99998C2.03976 1.99998 1.66667 2.37308 1.66667 2.83331V11.1666C1.66667 11.6269 2.03976 12 2.5 12H11.6667C12.1269 12 12.5 11.6269 12.5 11.1666V2.83331C12.5 2.37308 12.1269 1.99998 11.6667 1.99998H2.5ZM0 2.83331C0 1.4526 1.11929 0.333313 2.5 0.333313H11.6667C13.0474 0.333313 14.1667 1.4526 14.1667 2.83331V11.1666C14.1667 12.5474 13.0474 13.6666 11.6667 13.6666H2.5C1.11929 13.6666 0 12.5474 0 11.1666V2.83331Z",fill:"currentColor",fillRule:"evenodd"})]})}function FE(t){return(0,s.jsx)(ys,{height:"14",viewBox:"0 0 14 14",width:"14",...t,children:(0,s.jsx)("path",{clipRule:"evenodd",d:"M13.4646 2.46462L11.8484 0.848376L7.00023 5.69652L2.15186 0.848143L0.535612 2.46439L5.38399 7.31276L0.534668 12.1621L2.15091 13.7783L7.00023 8.92901L11.8493 13.7781L13.4656 12.1619L8.61648 7.31276L13.4646 2.46462Z",fill:"currentColor",fillRule:"evenodd"})})}var df=c(26372);const uf=B,VE={classic:B,default:B,imaginative:q,organic:se},hf=Object.assign(df.createContext(uf),{displayName:"ThemeContext"});function zE(){return df.useContext(hf)}function UE({themeId:t,...e}){return(0,s.jsx)(hf.Provider,{...e,value:VE[t]??uf})}function $E(t){return(0,s.jsx)(s.Fragment,{children:t.children})}function WE(){return null}function mf(t,e,n){function o(r){const i=zE()?.[t]?.[e]??n;return(0,s.jsx)(i,{...r,Default:n})}return o.displayName=`ThemeComponent(${e})`,o}function Pt(t,e=$E){return mf("components",t,e)}function Ns(t){return mf("icons",t,WE)}const _E=ee("cover");function GE({className:t="",dueAt:e}){const n=$a(),o=ea(),r=o==null||o.quizPassed||o.outOfAttempts,a=qp(e),i=_E("due-date",{urgent:a}).mix(t);return!e||n&&r?null:(0,s.jsx)("div",{className:i,tag:"div",children:l1(e)})}const KE=Pt("CoverDueDate",GE);function QE(t){const{dueAt:e}=Ot(t);return{dueAt:e}}const ZE=(0,Q.Ng)(QE)(KE),ua=ee("cover"),YE=Pt("CoverProgress",({nextLesson:t,percentComplete:e})=>{const n=(0,xe.Wz)(),o=(0,nt.useLabelsMap)();if(e===0||window.isPublicShare||!ze.BI)return null;const r=di({percent:e,label:o.progressSummaryPercentComplete,isRTL:n});return(0,s.jsxs)("div",{className:ua("progress"),children:[(0,s.jsx)("div",{className:ua("progress-text"),children:r}),(0,s.jsx)("div",{className:ua("progress-outer"),children:(0,s.jsx)("div",{className:ua("progress-inner"),style:{width:`${e}%`}})}),t&&(0,s.jsxs)("div",{className:ua("progress-next-lesson"),children:[(0,s.jsx)(of,{className:ua("progress-next-lesson-icon").toString(),decorative:"true"}),(0,s.jsx)("span",{"aria-hidden":"true",className:ua("progress-next-lesson-text"),children:t.title}),(0,s.jsxs)("span",{className:"visually-hidden",children:["Next lesson: ",t.title]})]})]})}),XE=()=>{const t=Tt();return(e,{currentLocale:n})=>{const o=t(n,e),r=Qe(e);return{nextLesson:o,percentComplete:r}}},JE=ot()(bt.wZ,(0,Q.Ng)(XE))(YE),{useLabelsMap:qE}=c(35873),pf=({failed:t,complete:e})=>{const n=qE();return(0,s.jsxs)("span",{className:"visually-hidden-always",children:[t?n?.a11yCoverRequirementFailed||"Requirement failed":e?n?.a11yCoverRequirementComplete||"Requirement complete":n?.a11yCoverRequirementIncomplete||"Requirement incomplete",": "]})},ao=ee("cover");function eS(){const t=(0,xe.DX)(),e=(0,nt.useLabelsMap)(),{trackingCompletionPercentage:n,trackingQuizId:o}=t;return n==null&&!o?null:(0,s.jsxs)("section",{className:ao("requirements-section"),children:[(0,s.jsx)("h2",{className:ao("requirements-title"),children:e?.coverCourseRequirements||"Course Requirements"}),(0,s.jsxs)("ul",{className:ao("requirements-list"),children:[(0,s.jsx)(tS,{}),(0,s.jsx)(nS,{})]})]})}function tS(){const{trackingCompletionPercentage:t}=(0,xe.DX)(),e=(0,xe.v1)(),n=gr(),o=(0,nt.useLabelsMap)(),r=Math.ceil(t/100*e),a=r===e;if(t==null||r==null)return null;const i=n>=t,l=i?cE:lE;return(0,s.jsxs)("li",{className:ao("lesson-requirement"),role:"listitem",children:[(0,s.jsx)(l,{"aria-hidden":"true",className:ao("lesson-requirement-icon",{complete:i}).toString()}),(0,s.jsxs)("span",{className:ao("lesson-requirement-text"),children:[(0,s.jsx)(pf,{complete:i}),a?o?.coverCompleteAllLessons||"Complete all lessons in this course":[o?.coverCompleteLessonsName||"Complete",r,o?.coverCompleteLessonsPreposition||"of",e,o?.coverCompleteLessonsInCourse||"lessons in this course"].join(" ")]})]})}const sS={passed:hE,failed:uE,requirement:mE};function nS(){const t=(0,nt.useLabelsMap)(),e=Il(),n=ea(),o=(0,xe.Wz)(),r=Qt(e?.title),a=e?.settings?.passingScore;if(!r||!n)return null;const{outOfAttempts:i,quizPassed:l}=n,u=!l&&i;let d="requirement";l?d="passed":u&&(d="failed");const m=sS[d],p=di({percent:a,label:t?.coverQuizPercentOrHigher||"% or higher",isRTL:o});return(0,s.jsxs)("li",{className:ao("quiz-requirement"),role:"listitem",children:[(0,s.jsx)(m,{"aria-hidden":"true",className:ao("quiz-requirement-icon",{type:d}).toString()}),(0,s.jsxs)("span",{className:ao("quiz-requirement-text"),children:[(0,s.jsx)(pf,{complete:l,failed:u}),r,a!=null&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{"aria-hidden":"true",className:ao("quiz-requirement-seperator"),children:"\xA0|\xA0"}),t?.coverQuizScoreOf||"Score of"," ",p]}),u&&(0,s.jsx)("div",{className:ao("quiz-requirement-no-attempts"),children:t?.coverNoAttemptsRemaining||"No attempts remaining"})]})]})}function Bc(t){const{to:e,children:n}=t,o=(0,ie.zy)(),r=(0,h.useMemo)(()=>(0,g2.B)(e,o),[o,e]);return(0,s.jsx)(ie.k2,{...t,to:r,children:n})}var _1=c(10605),oS=c(25609),rS=c(9805),aS=c(94058),iS=c(44141),cS=c(75149),lS=c(86320),dS=c(24938),uS=c(25652),hS=c(76791),mS=c(66601),pS=c(52881),fS=c(84173),vS=c(79439),gS=c(84112),CS=c(50314),xS=c(66102),bS=c(51399),yS=c(82666),LS=c(27081),ES=c(85925),SS=c(67056),TS=c(19284),IS=c(66919),NS=c(92401),jS=c(57941),kS=c(74416),AS=c(18822),RS=c(25409),PS=c(80071),wS=c(5684),MS=c(38899),OS=c(70649),DS=c(63570),BS=c(76578),HS=c(24786),FS=c(94635),VS=c(4091),zS=c(50402),US=c(83169),$S=c(22617),WS=c(72844),_S=c(13793),GS=c(35965),KS=c(81958),QS=c(43829),ZS=c(93816),YS=c(63467),XS=c(49378),JS=c(91021),qS=c(17151),eT=c(38231),tT=c(80693),sT=c(24330),nT=c(33500),oT=c(80343),rT=c(53248),aT=c(35349),iT=c(74940),cT=c(4507),lT=c(37915),dT=c(42195),uT=c(71841),hT=c(55856),mT=c(73164),pT=c(33922),fT=c(12349),vT=c(45247),gT=c(98061),CT=c(81484),xT=c(9858),bT=c(32138),yT=c(87129),LT=c(23909),ET=c(4164),ST=c(21744),TT=c(35610),IT=c(24651),NT=c(55680),jT=c(87708),kT=c(77615),AT=c(92717),RT=c(37010),PT=c(9834),wT=c(2627),MT=c(77162),OT=c(42832),DT=c(44569),BT=c(85065),HT=c(39030),FT=c(88164),VT=c(288),zT=c(77313),UT=c(15077),$T=c(82814),WT=c(43759),_T=c(92208),GT=c(72687),KT=c(7505),QT=c(13355),ZT=c(39168),YT=c(19557),XT=c(47700),JT=c(35096),qT=c(37384),eI=c(97615),tI=c(22812),sI=c(93685),nI=c(97114),oI=c(73668),rI=c(74817),aI=c(35834),iI=c(57991),cI=c(33605),lI=c(97681),dI=c(67454),uI=c(2648),hI=c(20489),mI=c(71096),pI=c(97754),fI=c(51464),vI=c(13866),gI=c(45379),CI=c(14195),xI=c(48215),bI=c(81760),yI=c(85375),LI=c(58795),EI=c(91463),SI=c(65873),TI=c(16121),II=c(75299),NI=c(27990),jI=c(15480),kI=c(98213),AI=c(66389),RI=c(35630),PI=c(75822),wI=c(88964),MI=c(12421),OI=c(90986),DI=c(37522),BI=c(62663),HI=c(59968),FI=c(28052),ff=c(29135),VI=c(12989),zI=c(65222),UI=c(98108),$I=c(38964),WI=c(17318),_I=c(76664),GI=c(95342),KI=c(72981),QI=c(47689),ZI=c(38242),YI=c(22191),XI=c(73350),JI=c(48625),qI=c(19027),eN=c(51844),tN=c(18084),sN=c(10526),nN=c(11670),oN=c(70185),rN=c(29533),aN=c(27737),iN=c(71294),cN=c(78003),lN=c(63033),dN=c(67361),uN=c(53886),hN=c(3079),mN=c(1875),pN=c(19341),fN=c(85034),vN=c(23851),gN=c(63496),CN=c(35510);const xN={prefix:"fab",iconName:"rise-com",icon:[512,512,[],"e001","M248 3.34C111 3.34 0 114 0 252c0 137 111 248 248 248 137 0 248-111 248-248-.457-137-112-248-248-248zm0 421c-75.4 0-139-48-163-116l326 0c-23.8 67.7-88.2 116-163 116z"]},bN={prefix:"fab",iconName:"reach",icon:[182,182,[],"e001",["M181.97 99.3826C136.326 99.3826 99.3497 136.325 99.3497 181.926H35.1699C35.1699 100.912 100.881 35.2632 181.97 35.2632V99.3826Z","M41.5029 82.9278C64.4243 82.9278 83.0058 64.3638 83.0058 41.4639C83.0058 18.564 64.4243 0 41.5029 0C18.5815 0 0 18.564 0 41.4639C0 64.3638 18.5815 82.9278 41.5029 82.9278Z"]]},yN={prefix:"fab",iconName:"audio-plus",icon:[20,20,[],"e001","M1.5 8.75C1.5 8.34375 1.8125 8 2.25 8C2.65625 8 3 8.34375 3 8.75V10C3 12.2188 4.78125 14 7 14C7.71875 14 8.40625 13.8125 9 13.4688C9 13.5 9 13.5 9 13.5C9 14.0625 9.0625 14.5625 9.21875 15.0625C8.75 15.25 8.25 15.4062 7.75 15.4688V16.5H9.25C9.65625 16.5 10 16.8438 10 17.25C10 17.6875 9.65625 18 9.25 18H7H4.75C4.3125 18 4 17.6875 4 17.25C4 16.8438 4.3125 16.5 4.75 16.5H6.25V15.4688C3.5625 15.0938 1.5 12.8125 1.5 10V8.75ZM4 5C4 3.34375 5.34375 2 7 2C8.65625 2 10 3.34375 10 5V10C10 10.125 9.96875 10.25 9.96875 10.375C9.625 10.875 9.34375 11.4375 9.1875 12.0625C8.625 12.6562 7.84375 13 7 13C5.34375 13 4 11.6562 4 10V5ZM5.5 5V10C5.5 10.8438 6.15625 11.5 7 11.5C7.8125 11.5 8.5 10.8438 8.5 10V5C8.5 4.1875 7.8125 3.5 7 3.5C6.15625 3.5 5.5 4.1875 5.5 5ZM10 13.5C10 11.0312 12 9 14.5 9C16.9688 9 19 11.0312 19 13.5C19 16 16.9688 18 14.5 18C12 18 10 16 10 13.5ZM11 8.75C11 8.34375 11.3125 8 11.75 8C12.0312 8 12.2812 8.1875 12.4062 8.40625C11.875 8.625 11.4062 8.90625 11 9.28125V8.75ZM12 13.5C12 13.7812 12.2188 14 12.5 14H14V15.5C14 15.7812 14.2188 16 14.5 16C14.75 16 15 15.7812 15 15.5V14H16.5C16.75 14 17 13.7812 17 13.5C17 13.25 16.75 13 16.5 13H15V11.5C15 11.25 14.75 11 14.5 11C14.2188 11 14 11.25 14 11.5V13H12.5C12.2188 13 12 13.25 12 13.5Z"]},LN={prefix:"fab",iconName:"clone-plus",icon:[20,20,[],"e001","M4 16H11V14.5H13V16C13 17.1031 12.1031 18 11 18H4C2.89688 18 2 17.1031 2 16V9C2 7.89687 2.89688 7 4 7H5.5V9H4V16ZM7 11V4C7 2.89688 7.89687 2 9 2H16C17.1031 2 18 2.89688 18 4V11C18 12.1031 17.1031 13 16 13H9C7.89687 13 7 12.1031 7 11ZM12.5 4.5C12.0844 4.5 11.75 4.83437 11.75 5.25V6.75H10.25C9.83437 6.75 9.5 7.08437 9.5 7.5C9.5 7.91563 9.83437 8.25 10.25 8.25H11.75V9.75C11.75 10.1656 12.0844 10.5 12.5 10.5C12.9156 10.5 13.25 10.1656 13.25 9.75V8.25H14.75C15.1656 8.25 15.5 7.91563 15.5 7.5C15.5 7.08437 15.1656 6.75 14.75 6.75H13.25V5.25C13.25 4.83437 12.9156 4.5 12.5 4.5Z"]};var vf,EN;const SN={"alert-circle-solid":iT.lE,"alert-circle":FT.lE,"alert-diamond":tI.xG,"arrow-down-from-line":pT.xZ,"arrow-down-to-bracket":fT.a_,"arrow-down-to-line":vT.yH,"arrow-down":mT.B0,"arrow-left":gT.Ce,"arrow-right-from-line":xT.Pe,"arrow-right":CT.dm,"arrow-rotate-left-light":CS.V3,"arrow-rotate-left":bT.V3,"arrow-up-from-bracket":LT.MN,"arrow-up-from-line":ET.s8,"arrow-up-right-from-square":ST.faArrowUpRightFromSquare,"arrow-up":yT.IN,"arrows-two-from-center":rS.A1,"arrows-two-to-center":aS.hL,"badge-check":wS.Zs,"bar-chart":TT.X8,bars:MS.ck,"bars-regular":IT.ck,"block-selector":lT.iH,"book-open":jT.Re,"book-sparkles":kT.E4,book:NT.LB,"browser-light":cS.c9,browser:AT.c9,building:iS.UR,"cards-blank":RT.Xm,"caret-down":DS.xB,"caret-right":BS.fU,"chart-column":PS.q9,"check-regular":uT.e6,check:OS.e6,"chevron-down-solid":HS.Jt,"chevron-down":PT.Jt,"chevron-left-light":lS.Wz,"chevron-left-solid":VS.Wz,"chevron-left":wT.Wz,"chevron-right-light":dS.Xk,"chevron-right-solid":zS.Xk,"chevron-right":MT.Xk,"chevron-up-solid":FS.w2,"chevron-up":OT.w2,"circle-arrow-right":WS.Ni,"circle-arrow-up":$S.yi,"circle-check-regular":BT.QR,"circle-check-solid":_S.QR,"circle-check":LS.QR,"circle-dot":HT.pp,"circle-half-stroke":VT.B2,"circle-info":zT.faCircleInfo,"circle-notch":WT.s4,"circle-plus-duotone":ES.q_,"circle-plus-regular":UT.q_,"circle-plus":GS.q_,"circle-small-solid":KS.ZP,"circle-small":$T.ZP,"circle-solid":US.GE,"circle-x":QS.Ub,"circle-xmark":_T.bn,"circle-xmark-solid":ZS.bn,"circle-xmark-duotone":SS.bn,circle:DT.GE,"clipboard-list-check":GT.S3,"clock-rotate-left":KT.Yj,clone:ZT.$3,close:YT.yY,"closed-captioning":QT.UM,"code-fork-duotone":TS.zt,"code-fork-regular":XT.zt,code:gN.jT,comment:JT.DN,copy:qT.jP,crop:eI.K1,"edit-regular":sI.MT,"ellipsis-regular":nI.Dw,"ellipsis-vertical-regular":oI.nx,envelope:rI.y_,"external-link":aI.vM,"eye-slash":hS.k6,eye:uS.pS,"face-frown":xS.Ho,"face-laugh":bS.ou,"face-smile":yS.H8,"file-audio":cI.qe,"file-duotone":IS.A4,"file-export-light":pS.o1,"file-export":lI.o1,"file-import":dI.$M,"file-lines":uI.bL,"file-pdf-light":mS.O_,"file-pdf":hI.O_,file:iI.A4,"folder-image":mI.JK,"folder-open":NS.Uj,gear:pI.BH,globe:fI.Bw,"graduation-cap":vI.eS,"grid-2":gI.Qy,"grid-solid":YS.Qy,"grip-dots-vertical":CI.IM,"hand-pointer":xI.A8,"image-landscape":yI.oC,"image-portrait":LI.E4,image:bI.jb,"photo-film":EI._Z,"info-circle":SI.iW,"layers-solid":aT.qI,"link-simple-slash":NI.r2,"link-simple":II.wi,"link-slash":jI.TH,link:TI.CQ,list:kI.IT,"list-check":AI.UN,"location-dot":vS.gK,"lock-keyhole-light":fS.Yp,lock:XS.DW,"magnifying-glass-plus":PI.bM,"magnifying-glass":RI.$U,megaphone:cT.OR,"message-quote":wI.ps,"minus-solid":JS.EZ,minus:MI.EZ,paintbrush:jS.ue,palette:OI.fy,paste:DI.R9,pause:BI.G1,"pause-solid":qS.G1,"pen-line":HI.pg,"pen-to-square":FI.faPenToSquare,"pencil-duotone":kS.zL,"pencil-regular":hT.zL,"pencil-thin":CN.zL,pencil:gS.zL,"play-regular":ff.ij,"play-solid":eT.ij,play:ff.ij,"plus-regular":VI.QL,plus:zI.TS,"quote-left":UI.$7,"rectangle-history-circle-plus":WI.Hu,"rectangle-regular":$I.vt,"rectangle-vertical-history":_I.Lt,rocket:GI.KM,"ruler-horizontal":KI.Si,"ruler-triangle":QI.cb,"sliders-simple":tT.AD,"sparkles-solid":sT.p7,sparkles:ZI.p7,"spinner-third":YI.sq,"square-arrow-down":JI.Y1,"square-arrow-right":qI.mT,"square-arrow-up-right":eN.fL,"square-check-solid":nT.Dn,"square-check":tN.Dn,"square-duo":AS.Nf,"square-info":sN.Lg,"square-plus":nN.Vd,square:XI.Nf,"stopwatch-regular":oN.nw,table:rN.w9,tag:aN._2,text:iN.jw,"trash-can":lN.sj,trash:cN.yL,"user-group":oT.US,"users-regular":dN.gd,users:RS.gd,video:uN.n2,volume:hN.eF,volumeHigh:mN.AI,volumeLow:pN.gN,volumeXmark:fN.H_,"wand-magic-sparkles":vN.Ys,"waveform-lines":dT.Wx,xmark:rT.Jy},TN={"audio-plus":yN,"clone-plus":LN,reach:bN,"rise-com":xN};function rt({"aria-label":t,className:e,classNameIcon:n,color:o,"data-testid":r,name:a,rotation:i,spin:l,style:u,styleIcon:d}){return(0,s.jsx)("span",{className:e,"data-testid":r,style:{color:o,...u},children:(0,s.jsx)(oS.g,{"aria-label":t,className:n,icon:SN[a],rotation:i,spin:l,style:d})})}function gq({className:t,classNameIcon:e,color:n,name:o,style:r,styleIcon:a}){return vf("span",{className:t,style:{color:n,...r},children:vf(EN,{className:e,icon:TN[o],style:a})})}const gf="focus-lesson-content",Cq="preview-nav-to-first-lesson",xq="preview-nav-to-cover-page",Kt="preview-nav-to-lesson-item",bq="preview-scroll-to-nav-prev",yq="preview-scroll-to-header",G1="preview-clear-state",kd="preview-show-nav-prev",Ad="preview-show-nav-next",Cf="preview-nav-open",xf="preview-nav-close",bf="event-lesson-transition-start",yf="event-lesson-transition-end",Lf="event-lesson-nav-prev-visible",K1="event-lesson-nav-prev-hidden",Ef="event-lesson-nav-next-visible",Q1="event-lesson-nav-next-hidden",Z1=new WeakMap,Sf=new ResizeObserver(t=>{for(const e of t)Z1.get(e.target)?.(e)});function Rd(t,e){(0,h.useEffect)(()=>{if(t)return Z1.set(t,e),()=>Z1.delete(t)},[t,e]),(0,h.useEffect)(()=>{if(t)return Sf.observe(t),()=>Sf.unobserve(t)},[t])}function IN(){const t=(0,Q.wA)(),[e,n]=(0,h.useState)(null),o=(0,nt.useLabelsMap)(),r=(0,h.useCallback)(a=>{t((0,_1.s)({offsetHeight:a.target.offsetHeight}))},[t]);return(0,h.useLayoutEffect)(()=>{if(e)return t((0,_1.s)({offsetHeight:e.offsetHeight})),()=>t((0,_1.s)(null))},[t,e]),Rd(e,r),(0,s.jsx)("button",{className:"visually-hidden btn-skip-to-lesson brand--ui",onClick:Tf,ref:n,type:"button",children:(0,s.jsxs)("span",{className:"btn-skip-to-lesson__wrap",children:[o?.courseSkipToLesson,(0,s.jsx)(rt,{"aria-hidden":"true",classNameIcon:"btn-skip-to-lesson__icon",name:"arrow-right"})]})})}function NN(t){(0,qt.A)(gf,t,document)}function Tf(){document.dispatchEvent(new CustomEvent(gf))}const If=(0,h.createContext)(!1);function Hc({children:t,inert:e}){const n=Y1();return(0,s.jsx)(If.Provider,{value:n||e,children:t})}function Y1(){return(0,h.useContext)(If)}function jN(t){return t?.sessionPreferences}function Pd(){return(0,Q.d4)(jN)}const kN=(0,h.forwardRef)((t,e)=>{const{children:n,className:o="lesson-link-item-tooltip",dark:r,visible:a}=t,i=(0,h.useMemo)(()=>ee(o),[o]),l=(0,s.jsx)("div",{"aria-hidden":"true",ref:e,style:{left:0,pointerEvents:"none",position:"absolute",top:0,zIndex:Number.MAX_SAFE_INTEGER},children:(0,s.jsx)("div",{style:{pointerEvents:"all"},children:(0,s.jsx)("div",{className:i({visible:a}),children:(0,s.jsx)("div",{className:i("inner",{dark:r,light:!r}),children:n})})})});return(0,oo.createPortal)(l,document.getElementById("portal"))});function Nf(t){const{children:e,className:n,dark:o,restriction:r,tooltipClassName:a,style:i}=t,{prefersKeyboardNavigation:l}=Pd(),u=(0,h.useRef)(),d=(0,h.useRef)(),m=(0,h.useRef)(),p=(0,nt.useLabelsMap)(),f=Y1(),[v,g]=(0,h.useState)(!1),C=(0,h.useCallback)(()=>g(!0),[]),x=(0,h.useCallback)(()=>g(!1),[]),L=(0,h.useCallback)(()=>{setTimeout(C,0)},[C]),y=(0,h.useCallback)(()=>{l&&x()},[x,l]),E=(0,h.useCallback)(M=>{hn(M)&&v&&(M.stopPropagation(),x())},[x,v]),b=(0,h.useCallback)(()=>{document.activeElement===u.current&&(clearTimeout(m.current),C())},[C]),S=(0,h.useCallback)(()=>{m.current=setTimeout(x,150)},[x]),T=(0,h.useCallback)(()=>{if(v){const M=u.current.getBoundingClientRect(),H=d.current.offsetParent.getBoundingClientRect(),{height:D,width:P}=M,F=M.left-H.left,k=M.top-H.top;Object.assign(d.current.style,{transform:`translate(${F}px, ${k}px)`,width:`${P}px`,height:`${D}px`})}},[v]);(0,h.useEffect)(()=>{f&&g(!1)},[f]),(0,h.useLayoutEffect)(()=>T(),[T]),(0,qt.A)("resize",T,window),(0,qt.A)("keydown",E,document),U2(u,x);const I=Qt(r?.data);let j;return r?.type===wt.XQ.QUIZ?j=`${p.quizRequirePassingScore}: "${I}"`:r?.type===wt.XQ.ORDER?j=p.lessonRestricted:r?.type===wt.XQ.KNOWLEDGE_CHECK&&(j=p.knowledgeCheckCorrectAnswerRequiredNav),(0,s.jsxs)("div",{"aria-disabled":!0,className:n,onBlur:y,onFocus:L,onMouseEnter:b,onMouseLeave:S,ref:u,role:"link",style:i,tabIndex:f?-1:0,children:[e,(0,s.jsx)("div",{className:"visually-hidden-always",children:p?.a11yRestrictedNav}),(0,s.jsx)("div",{className:"visually-hidden-always",children:j}),(0,s.jsx)(kN,{className:a,dark:o,ref:d,visible:v,children:j})]})}function AN(t){const{b:e,children:n,"data-direction":o,isCurrentLesson:r,isTooltipEnabled:a,lessonId:i,onClick:l=Function.prototype,onFocus:u,onHideProgressTooltip:d,onNavigate:m=Function.prototype,onShowProgressTooltip:p,restriction:f,showProgressDelay:v,style:g}=t,C=Y1(),{theme:{progressIndicatorStyle:x=A.Y2.THEME_DEFAULT}}=(0,xe.DX)(),L=x===A.Y2.THEME_DEFAULT,y=(0,h.useCallback)(D=>{l(D),r?(D.preventDefault(),Tf()):m(i)},[i,r,l,m]),[E,b]=(0,h.useState)(!1),S=(0,h.useCallback)(D=>{!E&&a&&(v!=null?setTimeout(p,v):p()),u?.(D)},[E,u,v,p,a]),T=(0,h.useCallback)(D=>{a&&hn(D)&&d()},[d,a]),I=(0,h.useCallback)(()=>{a&&b(!0)},[a]),j=(0,h.useCallback)(()=>{a&&b(!1)},[a]),M=f?.type!=null,H=e("link",{active:r,restricted:M,"theme-default":L}).toString();return M?(0,s.jsx)(Nf,{...t,className:H,style:g}):(0,s.jsx)(Bc,{"aria-current":"page",className:H.toString(),"data-direction":o,"data-nav-item":"",onBlur:a?d:void 0,onClick:y,onFocus:S,onKeyDown:T,onMouseDown:I,onMouseUp:j,style:g,tabIndex:C?-1:void 0,to:(0,wt.p1)(i),children:n})}function Fc(t){const{className:e="lesson-link-item",isCurrentLesson:n,last:o,lessonId:r,style:a}=t,i=(0,h.useMemo)(()=>ee(e),[e]),l=He(r),u=l?.type!=null,{isComplete:d=!1}=gn(r)??{},m=i({active:n,complete:d,last:o,restricted:u});return(0,s.jsx)("div",{className:m,children:(0,s.jsx)(AN,{...t,b:i,isCurrentLesson:n,restriction:l,style:a})})}const RN=ee("lesson-nav"),PN=t=>{const{children:e,finish:n,lessonId:o,onFocus:r}=t,a=(0,Re.Z)();if(o)return(0,s.jsx)(Fc,{className:"lesson-nav-link",onFocus:r,tooltipClassName:"lesson-nav-link-tooltip",...t});const i=n?"/lessons/progress-summary":"/",l=u=>{u.preventDefault(),Jo(()=>{a(i)},i==="/"?"lesson-to-cover":"default")};return(0,s.jsx)("span",{className:"lesson-nav-link",children:(0,s.jsx)(Cn,{className:"lesson-nav-link__link","data-direction":t["data-direction"],onClick:l,onFocus:r,to:i,children:e})})},wN=({buttonScheme:t,accentContrast:e,children:n,className:o,direction:r,finish:a,navLessonId:i,onFocus:l,restrictionType:u},d)=>{const m=u!=null,p=ra(),v={className:RN(null,{[r]:!0,accent:t===A.LE.ACCENT,dark:t===A.LE.DARK,floating:p===A.AY.FLOATING,"floating-full":p===A.AY.FLOATING_FULL,finish:a,full:p===A.AY.FULL,light:t===A.LE.LIGHT,restricted:m,tint:t===A.LE.TINT}).mix(o),[`data-${r}-lesson`]:!0};return(0,s.jsx)("div",{ref:d,...v,children:(0,s.jsx)(PN,{accentContrast:e,"data-direction":r,finish:a,lessonId:i,onFocus:l,children:n})})};function MN(t,e){const{currentLocale:n}=e,o=Ot(t),r=(0,nt.selectLabelsMap)(n,t);return{buttonScheme:o.buttonScheme,accentContrast:o.theme?.accentContrast,labelLessonRestricted:r.lessonRestricted,labelQuizRequirePassingScore:r.quizRequirePassingScore}}const ON=ot()(bt.wZ,(0,Q.Ng)(MN,null,null,{forwardRef:!0}),h.forwardRef)(wN),DN={CoverCompletedInformation:C7,CoverDueDate:ZE,CoverProgress:JE,CoverRequirements:eS,ImageEagerOrLazy:T1,LessonNav:ON};function BN({children:t}){return(0,s.jsx)(Ax,{...DN,children:t})}var HN=c(1957),FN=c(74724),jf;const kf={"rise-course-navigation":!0},VN={"ai-assistant-settings":!0,"ai-assistant-summaries":!0,"ai-assistant-quizzes":!0,"ai-assistant-blocks":!0,"ai-text-to-video":!1,"ai-assistant-images":!0,"ai-assistant-magic-block-import":!0,"ai-assistant-writing":!0,"ai-assistant-enable":!0,"ai-assistant-thumbs-feedback-ui":!1,"ai-assistant-subscription-override":!1,"ai-assistant-next-gen-chat-prototype":!1,"experiment-business-creator-role":!1,"experiment-new-delivery-formats":!1,"rise-ai-avatar-prompt-testing":!1,"rise-com-360-upsell":!0,"rise-update-block":!1},X1=(0,h.createContext)(kf);X1.displayName="FeatureFlagsContext";const{Provider:zN}=X1;function UN({children:t,value:e}){const n=(0,h.useMemo)(()=>({...VN,...e,...kf}),[e]);return(0,s.jsx)(zN,{value:n,children:t})}function wd(){return(0,h.useContext)(X1)}function $N(t){return wd()[t]}function Eq(t){function e(n){const o=wd();return jf(t,{...n,flags:o})}return e.displayName=`withFeatureFlags(${t.displayName||t.name})`,e}function Sq(t,e){return function(n){const o=r=>{const a=$N(t),i={...r,[e]:a};return jf(n,{...i})};return o.displayName=`withFeatureFlag(${n.displayName||n.name})`,o}}const Af=({children:t})=>(0,s.jsx)(s.Fragment,{children:t});Af.displayName="On";const Rf=({children:t})=>(0,s.jsx)(s.Fragment,{children:t});Rf.displayName="Off";const Md=({children:t,featureFlags:e})=>{const n=wd(),o=(0,h.useMemo)(()=>{const i=[].concat(e??[]);return i.length&&i.every(l=>n[l])},[e,n]),{on:r=null,off:a=null}=(0,h.useMemo)(()=>{const i={};return h.Children.forEach(t,l=>{switch(l.type.displayName){case Md.On.displayName:i.on=l;break;case Md.Off.displayName:i.off=l;break;default:i.on=t}}),i},[t]);return o?r:a};Md.On=Af,Md.Off=Rf;const WN={};function _N({children:t}){const e=(0,Q.wA)(),n=wd();return(0,HN.A)(()=>{e((0,FN.G)(n))},[n]),t}function GN({children:t}){const n=Lt()?.features??WN;return(0,s.jsx)(UN,{value:n,children:(0,s.jsx)(_N,{children:t})})}var KN=c(37072),J1=c(53395),QN=c(1404),io=c.n(QN);const ZN=t=>ze.BI?t??"":t?`${t} | ${ze.mZ}`:ze.mZ,Vc=t=>(0,ze.Hm)()?t:ZN(t);let q1=!1;function ha({children:t,title:e,isExplicit:n=!1}){const o=Vc((0,xe.d_)()),r=e??o;return h.useEffect(()=>{if(n)return q1=!0,document.title=r,()=>{q1=!1};q1||(document.title=r)},[r,n]),(0,s.jsx)(s.Fragment,{children:t})}var YN=c(18259),XN=c.n(YN),JN=c(83972),qN=c(46044);const eh=Object.assign((0,h.createContext)(void 0),{displayName:"BlockContext"});function th({block:t,children:e}){const[n,o]=(0,h.useState)(t);return(0,h.useEffect)(()=>o(r=>t||r),[t]),(0,s.jsx)(eh.Provider,{value:n,children:(0,s.jsx)(ih,{...n?.settings,children:e})})}const Iq=eh.Consumer;function js(){return(0,h.useContext)(eh)}function Od(t){return function(n){const o=js();return(0,s.jsx)(t,{...n,block:o})}}const ej={text:{backgroundType:"blockTextBackgroundType",backgroundColor:"blockTextBackgroundColor",backgroundColorContrast:"blockTextBackgroundColorContrast",paddingStart:"blockTextPaddingStart",paddingEnd:"blockTextPaddingEnd",bodyFontSize:"blockTextBodyFontSize",headingFontSize:"blockTextHeadingFontSize",subheadingFontSize:"blockTextSubheadingFontSize"}};function tj(t,e){if(!t||!e)return null;const n=ej[t];if(!n)return null;const o=r=>r?e[r]:void 0;return{backgroundType:o(n.backgroundType),backgroundColor:o(n.backgroundColor),backgroundColorContrast:o(n.backgroundColorContrast),paddingStart:o(n.paddingStart),paddingEnd:o(n.paddingEnd),bodyFontSize:o(n.bodyFontSize),headingFontSize:o(n.headingFontSize),subheadingFontSize:o(n.subheadingFontSize)}}function ma(){const t=js(),e=(0,xe.DX)(),n=t?.family,o=e?.theme;return(0,h.useMemo)(()=>tj(n,o),[n,o])}var sj=c(48831),nj=c.n(sj),oj=c(41272),rj=c.n(oj),aj=c(95932),Pf=c.n(aj),ij=c(14579),cj,lj,dj,uj,sh,wf,pa;const Mf=2,Nq=(t,e,n)=>t??e??n,Of=(t,e,n,o)=>t??e??n??o,Dn=nj()({WHITE:null,TRANSPARENT:null}),hj={markerColorContrast:A.Em.AUTO,paddingBottom:3,paddingLinked:!0,paddingTop:3,snippetColorContrast:A.Em.AUTO},mj={knowledge:["knowledge"],knowledgeCheck:["draw from question bank","fillin","matching","multiple choice","multiple response"],flashcard:["flashcard","stack"],interactive:["accordion","tabs"],"interactive-fullscreen":["sorting","timeline","process"],multimedia:["attachment","embed","step"],quote:["carousel"],survey:["survey"]};function pj(t,e){return mj[t]?.includes(e)??!1}const fj={360:{storyline:"#fafafa"},impact:{c:"#ececec",d:"#f5f5f5"},"interactive-fullscreen":{timeline:"#f5f5f5"},quote:{d:"#f5f5f5"}};function nh(t,e){const n=fj[t]?.[e];return n==null?{}:{backgroundColor:n,backgroundType:A.xj.COLOR}}const vj={360:["storyline"],knowledge:["knowledge"],knowledgeCheck:["multiple choice","multiple response","fillin","matching"],flashcard:["flashcard"],impact:["note"],interactive:["accordion","tabs"],"interactive-fullscreen":["scenario","sorting","timeline"],multimedia:["attachment","code"],quote:["background","carousel"],survey:["survey"],text:["code"]};function jq(t,e){return vj[t]?.includes(e)??!1?.1:.5}function gj(t){switch(t.backgroundType){case A.xj.COLOR:return t.backgroundColor;case A.xj.ACCENT:return t.courseColor;case A.xj.TINT:return(0,ht.WA)(t.courseColor);case A.xj.LIGHT:return"#ffffff";case A.xj.GRAY:return"#fafafa";case A.xj.DARK:return"#303030";case A.xj.BLACK:return"#000000"}}const Cj={multimedia:{embed(t){return{cardMode:t.showBorder===!1?Dn.TRANSPARENT:Dn.WHITE}}}};function xj(t,e,n){return bj(t,e,n)}function bj(t,e,n){const o=nh(t,e);(n.v==null||n.v<Mf)&&(n=yj(n),n.backgroundColor?.toLowerCase()==="#ffffff"&&Object.keys(o).length===0&&(n=rj()("backgroundColor",n)));const r=Cj[t]?.[e]?.(n),a=n.backgroundColor&&n.backgroundType==null?{backgroundType:A.xj.COLOR}:{};return[{accentColor:null},hj,r,n,a,{v:Mf}].reduce((u,d)=>d==null?u:{...u,...Pf()(ij.A,d)},{})}function yj(t){return{...t,backgroundType:null,cardMode:null,v:1}}const Lj={text:["table"],divider:["divider","numbered divider","spacing divider"],knowledgeCheck:["draw from question bank"],multimedia:[]};function kq(t,e){return!Lj[t]?.includes(e)}const Ej={};function Aq(t,e){return!Ej[t]?.includes(e)}function Sj(t){return t===uj.LIGHT?pa.LIGHT:pa.DARK}function Tj(t,e){if(e===sh.AUTO){const n=cj(t),o=lj[n](t);return dj(o)===sh.DARK?pa.DARK:pa.LIGHT}else return e===sh.LIGHT?pa.LIGHT:pa.DARK}function Rq(t,e,n,o,r){const a=t?.backgroundType;return t?.cardMode===Dn.TRANSPARENT?a===wf.IMAGE?Sj(e?.overlayColor):o&&a!==wf.ACCENT?r:Tj(n,t?.customBackgroundColorContrast):o?r:pa.DARK}const Ij={interactive:["accordion","tabs"],"interactive-fullscreen":["labeledgraphic","process","timeline"],list:["numbered","bulleted","checkboxes"],impact:["a","b","c","d","note"],quote:["a","b","c","d","background","carousel"],text:["paragraph","heading paragraph","subheading paragraph","two column","three column","four column"]};function Pq(t,e){return Ij[t]?.includes(e)??!1}const Nj=new RegExp(/^#([a-f0-9]{6}|[a-f0-9]{3})$/,"i"),oh=(t,e)=>Nj.test(e)?e:t;function ws(t){const{contrast:e=A.Em.AUTO,backgroundColor:n="#fff"}=t,o=oh("#fff",n),r=(0,ht.xD)(o);return e===A.Em.DARK||e===A.Em.AUTO&&r===A.Em.DARK?it.S6.DARK:it.S6.LIGHT}const jj=t=>t.blockBackgroundType??t.familyBackgroundType??t.courseBackgroundType??t.blockTypeFallbackType??A.xj.LIGHT,kj=t=>t.effectiveBackgroundType===A.xj.COLOR?t.blockBackgroundColor||t.familyBackgroundColor||t.courseBackgroundColor||t.blockTypeFallbackColor||null:t.settingsBackgroundColor??null,Aj=t=>t.blockCustomContrast??t.familyBackgroundColorContrast??t.courseBackgroundColorContrast??A.Em.AUTO,Df=t=>{const{family:e,variant:n,customBackgroundColorContrast:o}=t;return!o&&(e==="image"&&n!=="text aside"||e==="chart"||n==="sorting")},Bf=t=>(0,ht.cP)(t)?A.Em.LIGHT:A.Em.DARK,Rj=t=>{const{backgroundType:e,backgroundColor:n,accentColor:o,customBackgroundColorContrast:r,accentContrast:a,family:i,variant:l}=t;if(!(e===A.xj.ACCENT||e===A.xj.COLOR))return null;const d=e===A.xj.ACCENT?o:n;let m;return e===A.xj.ACCENT?m=a:Df({family:i,variant:l,customBackgroundColorContrast:r})?m=Bf(n):m=r??A.Em.DARK,ws({backgroundColor:d??void 0,contrast:m})},Pj=t=>Rj(t)===it.S6.LIGHT,wj=t=>{const e=t.blockBackgroundType!=null||t.familyBackgroundType!=null||t.courseBackgroundType!=null,n=t.blockCustomContrast!=null||t.familyBackgroundColorContrast!=null||t.courseBackgroundColorContrast!=null;return!e&&!n},Mj=t=>{const{backgroundColor:e,family:n,variant:o,blockCustomContrast:r,familyBackgroundColorContrast:a,courseBackgroundColorContrast:i}=t,l=r??a??i??A.Em.AUTO,d=Df({family:n,variant:o,customBackgroundColorContrast:l})?Bf(e):l;return ws({backgroundColor:e??void 0,contrast:d})};var rh=c(1131);const Oj=t=>{const{effectiveBackgroundType:e,blockImage:n}=t;return e!==A.xj.IMAGE?null:n??null},Dj=t=>(0,zs.I6)(t?.alt),Bj=t=>{if(!t)return null;const{alpha:e,overlayColor:n=A.df.DARK}=t,o=(0,Vt.ME)(t),r=n===A.df.LIGHT?A.qH:A.KJ;return(0,rh.A)({alpha:e,color:r,url:o})};function ko(){const t=(0,xe.DX)(),e=ma(),n=sn(),o=js(),r=o?nh(o.family,o.variant):{};return jj({blockBackgroundType:n?.backgroundType,familyBackgroundType:e?.backgroundType,courseBackgroundType:t?.theme?.blockBackgroundType,blockTypeFallbackType:r.backgroundType})}function Hj(){return ko().toLowerCase()}function Dd(){const t=js(),e=ko(),n=t?.background,o=(0,st.QQ)(n?.media)?.image;return Oj({effectiveBackgroundType:e,blockImage:o})}function Fj(){const t=Dd();return Dj(t)}function Vj(){const t=Dd();return Bj(t)}function zj(){const t=Dd();return!!t&&t?.overlayColor===A.df.LIGHT}function Uj(){const t=js(),e=t?.family,n=t?.variant,o=pj(e,n),r=t?.settings?.cardMode??Dn.WHITE;return o?r.toLowerCase():null}function $j(){const t=bn(),e=t?(0,ht.XC)(t):ht.lL.LIGHT;return qa()(e.toLowerCase())}function Wj(){const t=js(),e=(0,xe.DX)(),n=ma();return Aj({blockCustomContrast:t?.settings?.customBackgroundColorContrast,familyBackgroundColorContrast:n?.backgroundColorContrast,courseBackgroundColorContrast:e?.theme?.blockBackgroundColorContrast})}function _j(){const t=(0,xe.DX)(),e=sn(),n=bn(),o=js(),r=ko(),a=Wj(),i=e.accentColor||t?.theme?.colorAccent;return Pj({accentColor:i,accentContrast:t?.theme?.accentContrast,backgroundColor:n,backgroundType:r,customBackgroundColorContrast:a,family:o?.family,variant:o?.variant})}function Gj(){const t=js(),e=(0,xe.DX)(),n=bn(),o=ma();return Mj({backgroundColor:n,blockCustomContrast:t?.settings?.customBackgroundColorContrast,courseBackgroundColorContrast:e?.theme?.blockBackgroundColorContrast,family:t?.family,familyBackgroundColorContrast:o?.backgroundColorContrast,variant:t?.variant})}function Kj(){const t=js(),e=(0,xe.DX)(),n=ma();return wj({blockBackgroundType:t?.settings?.backgroundType,familyBackgroundType:n?.backgroundType,courseBackgroundType:e?.theme?.blockBackgroundType,blockCustomContrast:t?.settings?.customBackgroundColorContrast,familyBackgroundColorContrast:n?.backgroundColorContrast,courseBackgroundColorContrast:e?.theme?.blockBackgroundColorContrast})}function Qj(){const t=Hj(),e=$j(),n=Uj(),o=_j(),r=zj(),a=Kj(),i=bn(),l=Vj(),u=Fj();return{backgroundColor:i,backgroundImageAlt:u,backgroundImageCss:l,backgroundTypeLowercase:t,cardMode:n,colorRange:e,isContrastLight:o,isLegacyBackground:a,isOverlayLight:r}}var Hf=c(26372);const Ff=Object.assign((0,h.createContext)({}),{displayName:"BlockSettingsContext"});function sn(){return(0,h.useContext)(Ff)}const Zj="settings";function ah(t){return e=>{const n=Hf.forwardRef((o,r)=>{const a=sn(),i={...o,[t??Zj]:a};return(0,s.jsx)(e,{...i,ref:r})});return n.displayName=`withBlockSettings(${e.displayName||e.name})`,n}}function bn(){const t=(0,xe.DX)(),e=sn(),n=ma(),o=ko(),r=js();if(e==null)return null;const a=r?nh(r.family,r.variant):{},i=kj({effectiveBackgroundType:o,blockBackgroundColor:e.backgroundColor,familyBackgroundColor:n?.backgroundColor,courseBackgroundColor:t?.theme?.blockBackgroundColor,blockTypeFallbackColor:a.backgroundColor,settingsBackgroundColor:e.backgroundColor}),l={...e,backgroundType:o,backgroundColor:i};return gj(l)}const Yj="backgroundColor";function Xj(t){return e=>{const n=Hf.forwardRef((o,r)=>{const a=bn(),i={...o,[t??Yj]:a};return(0,s.jsx)(e,{ref:r,...i})});return n.displayName=`withBackgroundColor(${e.displayName||e.name})`,n}}function ih({children:t,...e}){const n=js(),o=sn(),r=(0,xe.kJ)(),a=(0,h.useMemo)(()=>{const i=n==null?e:xj(n.family,n.variant,e);return{courseColor:r,...o,...i}},[n,e,r,o]);return(0,s.jsx)(Ff.Provider,{value:a,children:t})}var Vf=c(91541),Jj=c(45857),qj=c(93949),zf=c(40069),ek=c(7003),ch=c.n(ek),lh=c(23077);const Uf=":focus{outline: none}",tk=":focus:not(:focus-visible){outline: none}",$f="focus-ring-style",dh=()=>document.getElementById($f)||sk(),sk=()=>{const t=document.createElement("style");return t.id=$f,document.head.appendChild(t),t},uh=0,Bd=-1,nk=()=>{const t=dh();document.addEventListener("mousedown",()=>{setTimeout(()=>{t.innerHTML=Uf},0),(0,Q.JD)((0,lh.xi)(!1))}),window.addEventListener("keydown",ok)},ok=t=>{const e=t.target,n=dh();(yd(t)||Rc(t)&&!e.classList.contains("ignore-prefers"))&&(n.innerHTML="",(0,Q.JD)((0,lh.xi)(!0)))},Wf=({focusVisible:t}={})=>dh().innerHTML=t?tk:Uf,rk=t=>t?uh:Bd,_f=({list:t,index:e})=>{e>=0&&e<vs()(t)&&t[e].focus()},ak=({list:t,currentIndex:e})=>{const n=Yn()(e||0),o=n<vs()(t)?n:0;return _f({list:t,index:o}),o},ik=({list:t,currentIndex:e})=>{const n=ch()(e||vs()(t));return _f({list:t,index:n}),n};var zc=c(11892),ui=c(2998),ck=c(44914),os=c.n(ck),lk=c(49034),Uc=c.n(lk),dk=c(64943),hh=c.n(dk),uk=c(30349),hk=c.n(uk);const mk=O1()(hh()(/^#([0-9a-f]{3}|[0-9a-f]{6})$/i),os()("#FFF")),pk=Uc()({color:mk}),fk=({accentContrast:t,bodyTypeface:e,color:n,headingTypeface:o,isLegacyCourse:r,uiTypeface:a})=>{const i=(0,h.useMemo)(()=>{const d=!(0,ht.Wn)(n),m=(0,ht.xD)(n),p=t===A.Em.DARK||t===A.Em.AUTO&&m===A.Em.DARK;return!r&&(t&&p||!t&&d)?[it.S6.DARK,it.S6.LIGHT]:[it.S6.LIGHT,it.S6.DARK]},[t,n,r]),[l,u]=i;return(0,s.jsx)("div",{dangerouslySetInnerHTML:{__html:hk()({bodyTypeface:e,colorThemeRGB:(0,ui.A)(n)?.slice(0,3),colorTheme:n,colorThemeContrast:l,colorThemeContrastComplementary:u,colorThemeContrastComplementaryRGB:(0,ui.A)(u)?.slice(0,3),colorThemeContrastRGB:(0,ui.A)(l)?.slice(0,3),colorThemeTint:(0,ht.WA)(n),colorThemeTransparent:n+"1A",headingTypeface:o,uiTypeface:a})}})},mh=ot()(fk,pk);mh.displayName="Branding",mh.propTypes={bodyTypeface:We().string,color:We().string.isRequired,headingTypeface:We().string,uiTypeface:We().string};const vk=(0,h.memo)(mh);var gk=c(26372);const Gf="riseUnsupportedBrowser",Ck={authoring:/Android|webOS|iPhone|iPad|iPod|BlackBerry|MSIE|Trident/,runtime:/MSIE/},xk=t=>new RegExp(Ck[t],"i").test(window.navigator.userAgent);class Kf extends gk.Component{render(){return xk(this.props.env)&&!window.sessionStorage.getItem(Gf)?this.renderUnsupported():this.props.children}renderUnsupported(){return(0,s.jsxs)("div",{children:[this.props.children,(0,s.jsx)("div",{className:"browser-support",children:(0,s.jsxs)("div",{className:"browser-support__inner",children:[(0,s.jsx)("p",{className:"browser-support__text browser-support__text--full",children:"You\u2019re using an unsupported browser. For better results, use a modern browser.\xA0"}),(0,s.jsx)("p",{className:"browser-support__text browser-support__text--mobile",children:"Unsupported browser"}),(0,s.jsxs)("a",{className:"browser-support__link",href:"https://articulate.com/support/article/System-Requirements-for-Rise",rel:"noopener noreferrer",target:"_blank",children:[(0,s.jsx)("span",{children:"Learn more"}),(0,s.jsx)("i",{className:"icon icon-chevron-right"})]}),(0,s.jsx)("div",{className:"browser-support__dismiss",onClick:this.handleDismiss.bind(this),children:(0,s.jsx)("span",{className:"browser-support__dismiss-icon",children:"\xD7"})})]})})]})}handleDismiss(){window.sessionStorage.setItem(Gf,"true"),this.forceUpdate()}}Kf.propTypes={env:We().string.isRequired};const Ao={get isInstantLink(){return!!window.InstantLinks?.publicId}},hi=ee("cover");function bk(){const{categories:t}=(0,xe.DX)();return!Array.isArray(t)||t.length===0?null:(0,s.jsxs)("section",{className:hi("categories-section"),children:[(0,s.jsx)("h2",{className:hi("categories-title"),children:"Topics"}),(0,s.jsx)("ul",{className:hi("categories-list"),role:"list",children:t.map(e=>(0,s.jsxs)("li",{className:hi("categories-item"),role:"listitem",children:[(0,s.jsx)(rE,{className:hi("categories-icon")}),(0,s.jsx)("span",{className:hi("categories-item-wrap"),children:e})]},e))})]})}const yk=Ja("CoverCompletedInformation"),Lk=Ja("CoverDueDate"),Ek=Ja("CoverRequirements"),Sk=ee("cover"),Tk=t=>{const{courseId:e,coursePartnerContent:n,hasPartnerContent:o,publishedAt:r,tenantId:a}=t;return o?(0,s.jsx)(gd,{type:"partner-content",children:(0,s.jsx)(H2,{courseId:e,partnerContent:n,publishedAt:r,tenantId:a})}):null},Ik=Pt("CoverCourseInfo",t=>{const{courseId:e,coursePartnerContent:n,hasLogo:o,hasPartnerContent:r,publishedAt:a,tenantId:i}=t,l=Sk("details-content-aside",{logo:o});return(0,s.jsxs)("div",{className:l,children:[ze.BI&&(0,s.jsx)(x1,{}),(0,s.jsx)(Tk,{courseId:e,coursePartnerContent:n,hasPartnerContent:r,publishedAt:a,tenantId:i}),ze.BI&&!r&&(0,s.jsx)(bx,{}),ze.BI&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(Ek,{}),(0,s.jsx)(Lk,{}),(0,s.jsx)(yk,{}),(0,s.jsx)(bk,{})]})]})}),Nk=ee("cover"),jk=Pt("CoverDescription",()=>{const t=(0,xe.DX)(),{navigation:e}=t,n=(0,st.QQ)(t.description),o=e?"description":"description-no-outline";if(!n)return null;const r=Za("description"),a=(0,fs.uW)(t.description)?{"data-l10n-id":t.description.l10nId}:{"data-change-path":r};return(0,s.jsx)("div",{...a,children:(0,s.jsx)(gd,{type:o,children:(0,s.jsx)(Et,{className:Nk("details-content-description"),value:d1(n)},"text")})})}),Qf=ee("cover"),kk=({className:t=Qf("details-logo"),imageClassName:e=Qf("details-logo-image")})=>{const n=(0,xe.DX)()??{},o=(0,st.QQ)(n.media)?.image??{},{height:r,key:a,width:i,scalar:l=it.C_.SMALL.value}=o,u={width:i*l,height:r*l};if(!a)return null;const d=(0,Vt.ME)(o);return(0,s.jsx)("div",{className:t,"data-testid":"cover-details-logo",children:(0,s.jsx)("img",{alt:"",className:e,"data-testid":"cover-details-logo-image",height:u.height,src:d,width:u.width})})},Ak=(t,e)=>{const n=Xt()(["lessons",e],t),o=Rt()(0,["percentComplete"],n),r=Xt()(["passed"],n);return{isComplete:Xt()(["isComplete"],n),percentComplete:o,passedQuiz:r}};function Rk({icon:t,...e}){switch(t){case it.xA.ARTICLE:return(0,s.jsx)(q5,{...e});case it.xA.INTERACTION:return(0,s.jsx)(V8,{...e});case it.xA.QUIZ:return(0,s.jsx)(u8,{...e});case it.xA.VIDEO:return(0,s.jsx)(t7,{...e});default:return(0,s.jsx)("i",{className:"icon icon-Master-02"})}}var $c=c(38743);function Bn(){const t=(0,ie.RQ)("/lessons/:currentLessonId"),e=(0,ie.RQ)("/lessons/:currentLessonId/:mode");return t?.params?.currentLessonId??e?.params?.currentLessonId}var tr=c(61254);const Pk=Pt("LessonProgressGraphic");function Hd({canComplete:t,id:e,isDark:n,isEnabled:o,isTooltipVisible:r,onHideTooltip:a,onShowTooltip:i,scope:l}){const{color:u,navigationStyle:d}=Lt(),m=gn(e),p=Bn(),f=Ss(e),v=kl(e),g=He(e),C=(0,nt.useLabelsMap)(),x=g?.type!=null,L=m?.isComplete,y=e===p,E=m?.percentComplete??0,b=(0,h.useCallback)(()=>{(0,Q.JD)((0,tr.eQ)(e))},[e]),S=(0,h.useCallback)(()=>{(0,Q.JD)((0,tr.ss)(e))},[e]);return(0,s.jsx)(G2,{canComplete:t,color:u,hasRestriction:x,isComplete:L,isCurrentLesson:y,isDark:n,isEnabled:o,isFailed:f,isPassed:v,isTooltipVisible:r,labels:C,navigationStyle:d,onHideTooltip:a,onMarkComplete:b,onMarkReset:S,onShowTooltip:i,percentComplete:E,progressGraphic:Pk,scope:l})}const wk=ee("overview-list-item");function Mk({className:t,id:e,last:n}){const o=(0,Re.Z)(),r=Bn(),{color:a,isLegacyCourse:i,navigationStyle:l,theme:u}=Lt(),{accentContrast:d}=u,{icon:m,title:p}=Es(e)??{},f=Qt(p),v=gn(e),g=Ss(e),C=kl(e),x=He(e),L=(0,nt.useLabelsMap)(),y=(0,fs.uW)(p)?{"data-l10n-id":p.l10nId}:{"data-change-path":a2(e,"title")},E=v?.isComplete,b=v?.percentComplete??0,S=x?.type!=null,[T,I]=(0,h.useState)(!1),j=(0,h.useCallback)(()=>I(!0),[]),M=(0,h.useCallback)(()=>I(!1),[]),H=Z()("overview-list__li",{"overview-list__li--last":n}),D=Z()(t,"overview-list-item"),P=(0,h.useCallback)(F=>{const{currentTarget:{hash:k}}=F;F.preventDefault(),$c.Ay.Events.scrollEvent.register("end",()=>{Jo(()=>{o(k.slice(1))},"cover-to-lesson"),$c.Ay.Events.scrollEvent.remove("end")}),$c.Ay.animateScroll.scrollTo(0,{containerId:"overview"})},[o]);return(0,s.jsx)("li",{...y,className:H,"data-testid":`overview-list-item-${e}`,role:"listitem",children:(0,s.jsx)(Fc,{className:D,isTooltipEnabled:!0,lessonId:e,onBlur:M,onClick:P,onHideProgressTooltip:M,onShowProgressTooltip:j,showProgressDelay:25,tooltipClassName:"overview-list-item-tooltip",children:(0,s.jsx)(Bk,{accentContrast:d,color:a,hasRestriction:S,isComplete:E,isCurrentLesson:e===r,isFailed:g,isLegacyCourse:i,isPassed:C,isTooltipVisible:T,labels:L,lessonIcon:m,lessonId:e,lessonTitle:f,navigationStyle:l,onHideTooltip:M,onShowTooltip:j,percentComplete:b,progressGraphic:Ok,scope:it.by.COVER})})})}const Ok=Pt("LessonProgressGraphic");function Dk({isTooltipVisible:t,lessonIcon:e,lessonId:n,lessonTitle:o,onHideTooltip:r,onShowTooltip:a,scope:i}){const l=wk("progress-circle");return(0,s.jsxs)("div",{className:l,children:[(0,s.jsx)("span",{"aria-hidden":"true",className:"overview-list-item__icon",children:(0,s.jsx)(Rk,{icon:e})}),(0,s.jsx)("span",{className:"overview-list-item__title","data-testid":`overview-list-item-title-${n}`,children:o}),(0,s.jsx)(Hd,{canComplete:!1,id:n,isDark:!1,isEnabled:!0,isTooltipVisible:t,onHideTooltip:r,onShowTooltip:a,scope:i})]})}const Bk=Pt("OverviewListItemLinkContent",Dk),Hk=({value:t,fallback:e})=>{const n=(0,st.QQ)(t),o=(0,St.pP)(t);return e?(0,s.jsx)("span",{"data-l10n-id":o,children:n||e}):(0,s.jsx)("span",{"data-l10n-id":o,children:n})};function Fk({value:t,children:e}){const n=(0,st.QQ)(t);return e(n)}const ms=Hk,Vk=ee("overview-list"),zk=t=>t.reduce((e,n)=>(n.type==="section"?e.push([n]):e[e.length-1]?e[e.length-1].push(n):e.push([n]),e),[]),Uk=Pt("OverviewListSectionTitle",({className:t="",...e})=>{const n=Cd()(["Default"],e);return(0,s.jsx)("h2",{...n,className:`${t} overview-list__section-title`})}),$k=({courseProgress:t,lessons:e})=>{const n=(0,nt.useLabelsMap)(),o=zk(e);return(0,s.jsx)("nav",{"aria-label":n?.a11yRegionNavOverview,className:"overview-list",children:o.map((r,a)=>{const[i={},...l]=r,{title:u,type:d}=i,m=d==="section",p=m?l:r,f=Vk("list",{sectionless:!m});return(0,s.jsxs)("section",{children:[m&&u&&(0,s.jsx)(Uk,{children:(0,s.jsx)(ms,{value:u})}),(0,s.jsx)("ol",{className:f,role:"list",children:p.map((v,g)=>{const{passedQuiz:C}=Ak(t,v.id);return(0,s.jsx)(Mk,{id:v.id,last:p.length>1&&g===p.length-1,passedQuiz:C},v.id)})})]},a)})})};function Wk(t){const e=Ot(t),n=qn(t),o=ac(t),r=Xr({course:e,courseProgress:n});return{course:e,courseProgress:n,lessons:o,restrictingQuiz:r}}const _k=(0,h.memo)((0,Q.Ng)(Wk)($k));function Gk(t){return t?.partnerContent?.content??[]}function ph(){return(0,Q.d4)(Gk)}const Kk=t=>Object.values(it.C_).find(e=>e.value==t);function Qk(t){return(0,h.useMemo)(()=>Kk(t)??it.C_.SMALL,[t])?.label.toLowerCase()}const mi=ee("cover"),Zk=Pt("CoverDetails",({reverseColumns:t})=>{const e=Is(1200),{description:n,id:o,media:r,navigation:a,partnerContentId:i,publishedAt:l,selectedAuthorId:u,tenantId:d}=Lt(),m=ph(),p=Fs()(Ft()("id",u),m),f=!!i&&p,v=Qt(r)?.image,g=!hs()(v),C=!n||!a,x=!n&&!a,L=!!(f||ze.BI),y=mi("details",{"rise-com":ze.BI,"rise-com-authoring":ze.BI&&!l}),E=mi("details-content-wrap",{columns:L,logo:g}),b=mi("details-content",{"no-description-or-outline":C}),S=mi("details-logo",{centered:x,"no-description-or-outline":C,"has-partner-content":!!i}),T=L&&(0,s.jsx)(Ik,{courseId:o,coursePartnerContent:p,hasLogo:g,hasPartnerContent:f,publishedAt:l,tenantId:d}),I=Qk(v?.scalar),j=mi("details-logo-image",{[I]:!0}),M=mi("details-description-outline");return(0,s.jsx)("section",{className:y,"data-testid":"cover-details",children:(0,s.jsxs)("div",{className:E,children:[!e&&t&&T,(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)(kk,{className:S,imageClassName:j}),(0,s.jsxs)("div",{className:M,children:[n&&(0,s.jsx)(jk,{}),e&&T,a&&(0,s.jsx)(gd,{type:"outline",children:(0,s.jsx)(_k,{})})]})]}),!e&&!t&&T]})})}),Yk=Pt("CoverHeader"),Xk=Pt("CoverLayout");var Jk=c(78638),qk=c(73333),eA=c.n(qk);const tA=["[href]",'[tabindex]:not([tabindex=""])',"audio[controls]","button:not([disabled])","details:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","summary:not([disabled])","textarea:not([disabled])","video[controls]"].map(t=>`${t}:not([tabindex="-1"]):not([hidden]):not([aria-hidden="true"])`).join(", "),Zf=(t,e=!1)=>n=>{const o=Yf(n);if(o.length===0)return;const r=t>=o.length&&e?0:t;return eA()(r,o)},Yf=t=>t?Array.from(t.querySelectorAll(tA)).filter(e=>window.getComputedStyle(e).display!=="none"):[],Xf=Zf(0),sA=Zf(-1),fh=t=>Xf(t)?.focus?.();function nA(){const t=(0,h.useRef)(null);function e(n){const o=Xf(t.current),r=sA(t.current);yd(n)&&(n.shiftKey?document.activeElement===o&&(r.focus(),n.preventDefault()):document.activeElement===r&&(o.focus(),n.preventDefault()))}return(0,h.useEffect)(()=>{const n=t?.current;return n?.addEventListener("keydown",e),()=>{n?.removeEventListener("keydown",e)}},[]),t}var vh,oA,gh=c(26372);const Ch=gh.createContext(null);Ch.displayName="UndoManagerContext";function Vq(t){const n=oA("rise-undo")===!0?t.undoManager:null;return vh(Ch,{value:n,children:t.children})}function Jf(){return gh.useContext(Ch)}function zq(t){function e(n){const o=Jf();return vh(t,{...n,undoManager:o})}return e.displayName=`withUndoManager(${t.displayName||t.name})`,e}function qf(){const t=Jf();gh.useEffect(()=>{if(t!=null)return t.disable(),()=>t.enable()},[t])}function Uq(t){function e(n){return qf(),vh(t,{...n})}return e.displayName=`withDisableUndoManager(${t.displayName||t.name})`,e}const yn=ee("modal"),ev=h.forwardRef((t,e)=>{const{children:n,className:o,"data-testid":r,darkOverlay:a,disableBackgroundScroll:i,disableCloseOnOverlayClick:l,disableCloseOnEscape:u=!1,focusFirstInput:d=!0,footer:m,forceToTop:p=!1,fullscreen:f=!1,heading:v,hideCloseButton:g=!1,hideHeader:C=!1,skipDialogClose:x=!1,useTopLayer:L=!0,onCancel:y,onClose:E=un.lQ,onClickBack:b,onCloseBubbles:S=!1,onOverlayClick:T,scroll:I=!1,subHeading:j,subText:M,width:H}=t;qf();const D=nA(),P=(0,h.useRef)(null),F=(0,h.useCallback)(()=>{const W=D.current;!x&&W?.open&&W.close(),E()},[E,D,x]);(0,h.useEffect)(()=>{const W=G=>{hn(G)&&!u&&(G.preventDefault(),G.stopPropagation(),y?.(G),F())};return document.addEventListener("keydown",W,!S),()=>{document.removeEventListener("keydown",W,!S)}},[u,y,F,S]),(0,h.useEffect)(()=>{const W=D.current;return L?W?.showModal():W?.show(),()=>{W?.close()}},[D,L]),(0,h.useEffect)(()=>{if(d&&D.current){const W=Yf(D.current).find($=>$.tagName==="INPUT"||$.tagName==="TEXTAREA"||$.tagName==="SELECT"),G=W||P?.current;G?.focus(),G instanceof HTMLTextAreaElement&&G.setSelectionRange(G.value.length,G.value.length)}},[d,D]),(0,h.useEffect)(()=>(i&&(document.scrollingElement||document.documentElement).classList.add("no-scroll"),()=>{i&&(document.scrollingElement||document.documentElement).classList.remove("no-scroll")}),[i,D]);const k=yn({"force-to-top":p}).mix(o),w=yn("content",{"with-footer":!!m,"force-scroll":!!I}),O=yn("overlay",{dark:!!a});return(0,s.jsxs)("dialog",{"aria-labelledby":"modal-heading","aria-modal":"true",className:k.toString(),"data-testid":r,onClose:F,ref:W=>{D.current=W,e&&(e.current=W)},role:"dialog",children:[(0,s.jsx)("div",{id:"modal-portal"}),(0,s.jsx)("div",{className:O,onClick:l?void 0:T||F}),(0,s.jsxs)("div",{className:yn("dialog",{fullscreen:f}),style:H&&!f?{width:H}:{},children:[(!C||!g)&&(0,s.jsxs)("div",{className:yn("heading-wrapper"),children:[(0,s.jsxs)("div",{className:yn("heading-flexbox"),children:[!C&&(0,s.jsxs)("div",{className:yn("header"),children:[b&&(0,s.jsx)(jt.ArcButton,{"aria-label":"back to previous page",hierarchy:"secondary",icon:"fa-regular fa-arrow-left",layout:"icon",onClick:b,shape:"square",size:"md",type:"button"}),(0,s.jsxs)("h1",{className:yn("heading"),id:"modal-heading",children:[v,(0,s.jsx)("span",{className:yn("subheading"),children:j})]})]}),!g&&(0,s.jsx)("button",{"aria-label":"close dialog",className:yn("close"),onClick:F,ref:P,type:"button",children:(0,s.jsx)(rt,{className:"icon",name:"close"})})]}),M?(0,s.jsx)("h2",{className:yn("subtitle"),children:M}):[]]}),(0,s.jsx)("div",{className:w,children:n}),m&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:yn("footer-shadow")}),(0,s.jsx)("div",{className:yn("footer"),children:m})]})]})]})});var xh=c(29046),gs=c(84980);const tv=new Intl.DisplayNames(["en"],{type:"language",fallback:"code"}),rA=(t,e)=>{const n=t?.toLowerCase();try{return e?.[n]?.authorDisplayName??tv.of(t)}catch(o){return console.warn(`Language ${t} invalid`,o),t}},aA=(t,e)=>{try{return e?.[t]?.learnerDisplayName??tv.of(t)}catch(n){return console.warn(`Language ${t} invalid`,n),t}},bh=()=>{const t=(0,st.iR)(),e=(0,St.vC)(t);return(0,h.useCallback)(o=>rA(o,e),[e])},iA=()=>{const t=(0,st.iR)(),e=(0,St.vC)(t);return(0,h.useCallback)(o=>aA(o,e),[e])},pi=ee("locale-selector"),yh=({onClose:t})=>{const e=(0,ie.zy)(),n=(0,xe.DX)(),o=(0,st.MQ)(),r=(0,st.jc)(),a=(0,st.bs)(),i=a?.length?a:o&&r?r?.map(S=>S.locale):void 0,[l,u]=(0,h.useState)(!1),d=l&&(i?.length||0)>1,m=(0,qe.A)(d),p=Qt(n.title),{currentLocale:f,setCurrentLocale:v}=(0,bt.nY)(),g=iA(),C=(0,xe.vU)(),[x,L]=(0,h.useState)(!1),y=(0,h.useCallback)(S=>{(0,et.xS)(S),v(S)},[v]),E=()=>{(0,Q.JD)((0,xh.Wp)(!1))};(0,h.useEffect)(()=>{m&&!d&&t?.()},[t,m,d]),(0,h.useEffect)(()=>{if(!i||x||o===void 0||!r)return;if(i.length===1){y(i[0]),L(!0);return}const S=(0,et.y4)(void 0),T=(0,et.JK)()??"";if(T!==""){y(T),L(!0),u(!1);return}S?.[Jk.WY]==null&&T===""?u(!0):(u(!1),E());const j=(navigator.language??"en-US").toLowerCase(),M=i.find(H=>H.toLowerCase()===j);y(M?j:i[0]),L(!0)},[i,e,y,x,o,r,u]);const b=S=>{S.preventDefault();const T=S.target.value;y(T)};return!d||o===void 0||!r?null:(0,s.jsx)(gs.B1,{classNames:"modal",timeout:400,children:(0,s.jsx)(ev,{className:pi("modal"),disableCloseOnOverlayClick:!0,hideCloseButton:!0,hideHeader:!0,onClose:E,children:(0,s.jsxs)("div",{className:pi("container"),children:[(0,s.jsx)("div",{className:pi("heading"),children:C.l10nChooseLanguage}),(0,s.jsx)("div",{className:pi("course-title"),children:p}),(0,s.jsx)("div",{className:pi("selector"),children:(0,s.jsx)("select",{onChange:b,value:f,children:i.map(S=>(0,s.jsx)("option",{value:S,children:g(S)},S))})}),(0,s.jsx)("div",{className:pi("footer"),children:(0,s.jsx)(jt.ArcButton,{onClick:E,size:"lg",children:C.l10nChooseLanguageContinue})})]})})})};var cA=c(26372);const lA=ee("cover-container"),sv=()=>document.querySelector("h1")?.focus({preventScroll:!0});function dA({didNavigate:t}){const n=(0,nt.useLabelsMap)()?.overviewPageTitleSuffix,o=cn();return cA.useEffect(()=>{t&&sv()},[t]),(0,s.jsxs)(ha,{title:Vc(`${o} - ${n}`),children:[(0,s.jsx)("main",{children:(0,s.jsx)("div",{className:lA({}),children:(0,s.jsxs)(Xk,{children:[(0,s.jsx)(Yk,{}),(0,s.jsx)(Zk,{})]})})}),(0,s.jsx)(yh,{onClose:sv})]})}const nv=dA;var Lh=c(22562);const ov=(0,jc.action)(Lh.l6),Wc=(0,jc.action)(Lh.ju),kr=(0,jc.action)(Lh.Y8),rv=(0,h.createContext)(void 0);function Fd(){const t=(0,h.useContext)(rv);return t||(console.warn("useMediaContext must be used within a MediaProvider"),{mode:"readonly",openTranscript:null,closeTranscript:null,lessonId:"",uploadAudio:null,aiEnabled:!1,aiWriterContext:void 0,removeMediaRecordType:void 0,removeItemMedia:void 0,handleOpenMediaModal:void 0,showAssetLibraryDialog:void 0,hideAssetLibraryDialog:void 0,handleDelete:void 0})}function av(t){function e(n){const o=Fd();return(0,s.jsx)(t,{...n,...o})}return e.displayName=`WithMediaContextWrapper(${t.name})`,e}function co(t){return t.refs?qa()("audio-id__refs_"+t.refs.toLowerCase()):""}function Eh(t){if(t)return`audio-transcript--${t}`}function iv(t){if(t)return`audio-player-transcript-toggle--${t}`}function uA({children:t,lessonId:e,mode:n="readonly",openTranscript:o,closeTranscript:r,disableTranscriptButton:a=!1}){const i=(0,Rs.y4)(),d={mode:n,lessonId:e||"",openTranscript:o||(({item:m,refs:p})=>{if(!m)return;const f="media"in m?m.media:null;return i(ov({audioPlayerId:co({refs:p}),transcriptMedia:f}))}),closeTranscript:r||(()=>i(Wc())),disableTranscriptButton:a,uploadAudio:null,aiEnabled:!1,aiWriterContext:void 0,removeMediaRecordType:void 0,removeItemMedia:void 0,handleOpenMediaModal:void 0,showAssetLibraryDialog:void 0,hideAssetLibraryDialog:void 0,handleDelete:void 0};return(0,s.jsx)(rv.Provider,{value:d,children:t})}const cv=ee("course-exit");function lv(t){const e=(0,nt.useLabelsMap)(),{className:n,lmsOptions:o,style:r}=t;return o?.enableExitCourse?(0,s.jsx)("div",{className:cv("wrapper"),children:(0,s.jsx)("button",{className:cv("button").mix(n),onClick:ze.NS,style:r,type:"button",children:e?.courseExit})}):null}const Sh=ee("nav-control"),hA=()=>{const[t,e]=(0,h.useState)(!1);return(0,qt.A)(Lf,()=>e(!0)),(0,qt.A)(K1,()=>e(!1)),t},mA=({"aria-controls":t,isNavOpen:e,toggleNav:n,hideNav:o})=>{const{buttonNavigationStyle:r,lmsOptions:a,showNavigationButtons:i,...l}=(0,xe.DX)(),u=(0,h.useRef)(null),[d,m]=(0,h.useState)(0),p=(0,nt.useLabelsMap)(),f=Ic(),v=to(),g=hA(),x=!!(0,h.useMemo)(()=>l.lessons?.find(T=>T.id===v),[l.lessons,v])?.settings?.timer,L=a?.enableExitCourse,y=x||L,E=l.navigationType===A.br.COMPACT,b=E?"fixed-course-exit":void 0;(0,h.useEffect)(()=>{u.current=document.querySelector(".page-wrap");const I=document.querySelector(".lesson-nav--previous")?.clientHeight??60,j=!i||r===A.AY.FLOATING&&!f;function M({target:H}){const D=H?.scrollTop??0,P=I-D;m(P)}return g&&!j?u.current.scrollTop===0?m(I):u.current.addEventListener("scroll",M):m(0),()=>u.current.removeEventListener("scroll",M)},[r,f,g,i]);const S=(0,h.useCallback)(()=>{const T=document.getElementsByClassName("nav-control__menu--top-nav-bar")?.item(0);if(u.current&&T){const I=u.current.offsetWidth-u.current.clientWidth||0;T.style.maxWidth=`calc(100% - ${I}px)`}},[]);return(0,h.useLayoutEffect)(()=>{y&&S()},[y,S]),(0,s.jsx)("div",{className:Sh("wrapper"),children:(0,s.jsxs)("div",{className:Sh("menu",{"is-timed-quiz":x,"nav-off":o,"top-nav-bar":y}),style:{marginTop:d},children:[!o&&(!E||f)&&(0,s.jsx)("button",{"aria-controls":t,"aria-expanded":e,"aria-label":e?p?.a11yNavigationMenuClose:p?.a11yNavigationMenuOpen,className:Sh("button"),onClick:n,type:"button",children:(0,s.jsx)(rt,{classNameIcon:"page-menu-toggle__icon",name:"bars-regular"})}),(0,s.jsx)(lv,{className:b,lmsOptions:a})]})})};var Cs=c(18235);const dv=ee("nav-compact"),pA=Pt("NavCompactHeaderCounter",t=>{const{lessonPosition:e,labelLessonName:n,labelLessonPreposition:o,totalLessons:r}=t;return e<=0?null:(0,s.jsx)("div",{className:dv("header-counter"),"data-testid":"nav-compact-counter",children:`${n} ${e} ${o} ${r}`})}),fA=Pt("NavCompactHeaderProgress",t=>{const{classProgressRunner:e,classProgressText:n,classProgressTrack:o,percentComplete:r,percentCompleteText:a,navExpanded:i}=t;return(0,s.jsxs)("div",{className:dv("header-progress"),"data-testid":"nav-compact-progress",children:[(0,s.jsx)("div",{className:n,children:a}),(0,s.jsx)(jd,{"aria-hidden":i,"aria-label":a,progress:r,runnerClass:e,trackClass:o})]})}),vA=({closeNav:t,isExpanded:e,openNav:n})=>{const o=(0,Re.Z)(),r=(0,Q.wA)(),a=dr(),i=Lt(),l=cn(),u=gr(),d=(0,nt.useLabelsMap)(),m=Ys(),p=Wr(),f=to(),v=tp(),g=(0,h.useMemo)(()=>i?.lessonsOnly?.length??0,[i?.lessonsOnly]),C=(0,h.useMemo)(()=>v[f]??-1,[v,f]),x=a?.navigationStyle,L=(0,h.useMemo)(()=>(0,_t.FH)(x),[x]),y=(0,h.useCallback)(()=>{e?t():n()},[e,n,t]),E=a?.exportSettings?.webExportSettings,b=!Ao.isInstantLink&&(a?.lmsOptions?.disableCoverPage||E?.disableCoverPage),S=(0,h.useCallback)(Ke=>{Ke.preventDefault(),Jo(()=>{o("/")},"lesson-to-cover")},[o]),j=`${(0,xe.Wz)()?`%${u}`:`${u}%`} ${d?.lessonComplete??""}`,{alpha:M,ariaLabel:H,media:D,role:P}=na("coverImage"),F=(0,h.useMemo)(()=>(0,_t.b9)({alpha:M,color:a?.theme?.coverImageColor,media:D}),[M,a?.theme?.coverImageColor,D]),k=Z()("nav-compact__header",{"nav-compact__header--collapsed":!e}),w=Z()("nav-compact__header-image",{"nav-compact__header-image--collapsed":!e}),O="nav-compact__header-inner",W="nav-compact__header-control",G=Z()("nav-compact__header-title-link",{"nav-compact__header-title-link--collapsed":!e}),$=Z()("nav-compact__header-progress-text",{"nav-compact__header-progress-text--collapsed":!e}),ce=Z()("nav-compact__header-progress-track",{"nav-compact__header-progress-track--collapsed":!e}),Ee=Z()("nav-compact__header-progress-runner",{"nav-compact__header-progress-runner--collapsed":!e}),Ne="nav-compact__header-strip",De=(0,h.useCallback)(()=>{r((0,Cs.ts)(!m?.active))},[r,m?.active]);return(0,s.jsxs)("section",{"aria-label":"Course Information",className:k,"data-testid":"nav-compact-header",children:[L&&F&&(0,s.jsx)("div",{"aria-label":H,className:w,role:P,style:F}),(0,s.jsxs)("div",{className:O,children:[(0,s.jsxs)("div",{className:Ne,children:[(0,s.jsxs)("div",{className:"nav-compact__header-controls",children:[a?.allowSearch&&p!=="restricted"&&e&&(0,s.jsx)("button",{"aria-label":d?.a11ySearchOpen,className:`${W} nav-compact__header-search`,"data-testid":"nav-compact-search",onClick:De,type:"button",children:(0,s.jsx)(Oc,{className:"nav-compact__header-control-icon nav-compact__header-search-icon"})}),(0,s.jsxs)("button",{"aria-controls":"nav-compact-outline","aria-expanded":e,"aria-label":e?d?.a11yNavigationMenuClose:d?.a11yNavigationMenuOpen,className:`${W} nav-compact__header-toggle`,"data-testid":"nav-compact-toggle",onClick:y,type:"button",children:[e&&(0,s.jsx)(aE,{className:"nav-compact__header-control-icon nav-compact__header-toggle-icon"}),!e&&(0,s.jsx)(iE,{className:"nav-compact__header-control-icon nav-compact__header-toggle-icon"})]})]}),(0,s.jsx)(pA,{labelLessonName:d?.lessonName??"",labelLessonPreposition:d?.lessonPreposition??"",lessonPosition:C,totalLessons:g})]}),(0,s.jsx)("div",{className:"nav-compact__header-title","data-testid":"nav-compact-title",children:b?(0,s.jsx)("span",{className:G,children:l}):(0,s.jsx)(Cn,{className:G,onClick:S,to:"/",children:l})}),(0,s.jsx)(fA,{classProgressRunner:Ee,classProgressText:$,classProgressTrack:ce,navExpanded:e,percentComplete:u,percentCompleteText:j})]})]})};var gA=c(24160),uv=c.n(gA),Zq=c(22713),CA=c(47971),hv=c.n(CA),xA=c(12764),bA=c.n(xA),yA=c(37541),LA=c.n(yA),EA,SA,TA,IA,NA;function mv(t,e,n="..."){const o=t?t.toString():"";return o.length>e?o.substr(0,e-1)+n:o}const Yq=t=>NA(e=>SA(e)>t,TA(0,t)),jA=null,kA=t=>jA.test(t),AA=t=>t>=0,RA=t=>t<=100,Xq=t=>t==="",Jq=t=>kA(t)&&RA(t)&&AA(t),qq=t=>String(Number(t)),pv=ot()(xc()(""),uv()(bA(),0)),eee=ot()(xc()(" "),qo()(pv),hv()(" ")),fv=ot()(xc()(" "),hv()(/(?=[A-Z]|^)/)),tee=t=>t?EA(pv,IA,fv)(t):"",see=ot()(LA(),fv);function vv({id:t,isEnabled:e,isSectionLesson:n,last:o}){const{navigationStyle:r}=Lt(),a=xr(t),i=Bn(),l=l0(t),u=(0,h.useMemo)(()=>(0,_t.I8)(r),[r]),d=t===i,m=mv(a||"",45),[p,f]=(0,h.useState)(!1),v=(0,h.useCallback)(()=>f(!0),[]),g=(0,h.useCallback)(()=>f(!1),[]),C=n?"nav-compact__outline-section-item":"nav-compact__outline-item",x=(0,s.jsx)(Hd,{canComplete:l,id:t,isDark:u,isEnabled:e,isTooltipVisible:p,onHideTooltip:g,onShowTooltip:v,scope:it.by.COMPACT});return(0,s.jsxs)("li",{className:"nav-compact__outline-list-item","data-testid":`nav-compact-lesson-${t}`,role:"listitem",children:[(0,s.jsxs)(Fc,{className:C,dark:u,isCurrentLesson:d,isTooltipEnabled:!l,last:o,lessonId:t,onHideProgressTooltip:g,onShowProgressTooltip:v,showProgressDelay:0,tooltipClassName:`${C}-tooltip`,children:[m,!l&&x]}),l&&x]})}const PA=ee("nav-compact"),wA=({id:t})=>{const e=Es(t),n=Qt(e?.title),o=PA("outline-section-empty");return(0,s.jsx)("div",{className:o,children:(0,s.jsx)("span",{children:n})})};var fi=c(26372);const MA=({index:t,isEnabled:e,lessonIds:n,id:o})=>{const r=Lt(),a=r?.theme,i=r?.themeId,l=a?.navigationSectionsExpanded??!0,u=Es(String(o)),d=Qt(u?.title),[m,p]=fi.useState(l);fi.useEffect(()=>{p(l)},[l]);const[f,v]=fi.useState(),g=fi.useRef(null),C=`sublistCompact-${t}`,x=String(i),L=Z()("nav-compact__outline-section-toggle-icon",{"nav-compact__outline-section-toggle-icon--collapsed":!m}),y=Z()("nav-compact__outline-section-list",{"nav-compact__outline-section-list--collapsed":!m}),E=Z()("nav-compact__outline-section-toggle",{"nav-compact__outline-section-toggle--collapsed":!m}),b=fi.useCallback(()=>{p(S=>!S)},[]);return fi.useLayoutEffect(()=>{const S=setTimeout(()=>{g.current&&v(g.current.scrollHeight)},0);return()=>{clearTimeout(S)}},[n.length,x]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("button",{"aria-controls":C,"aria-expanded":m,className:E,onClick:b,tabIndex:e?void 0:-1,type:"button",children:[(0,s.jsx)("span",{className:"nav-compact__outline-section-toggle-text",children:d}),(0,s.jsx)(af,{className:L})]}),(0,s.jsx)(Hc,{inert:!m,children:(0,s.jsx)("ol",{"aria-hidden":m?void 0:!0,className:y,id:C,ref:g,role:"list",style:{maxHeight:f},children:n.map((S,T)=>(0,s.jsx)(vv,{id:S,isEnabled:e&&m,isSectionLesson:!0,last:T===n.length-1},S))})})]})},OA=({index:t,isEnabled:e,lessonIds:n})=>{const[o,...r]=n,a="nav-compact__outline-item nav-compact__outline-section";return hs()(r)?(0,s.jsx)("li",{className:a,role:"listitem",children:(0,s.jsx)(wA,{id:o})}):(0,s.jsx)("li",{className:a,role:"listitem",children:(0,s.jsx)(MA,{id:o,index:t,isEnabled:e,lessonIds:r})})},DA=({index:t,isEnabled:e,lessonIds:n})=>Rl(n)?(0,s.jsx)(OA,{index:t,isEnabled:e,lessonIds:n}):n.map((r,a)=>(0,s.jsx)(vv,{id:r,isEnabled:e,isSectionLesson:!1,last:a===n.length-1},r)),BA=t=>t.displayName||t.name||"Component";var HA=c(99278),FA=c.n(HA);function VA(t,e,n){const o=[];let r=0;return n.replace(t,function(...a){const i=a.length,l=a[0],u=a[i-1],d=a[i-2],m=u.slice(r,d),p=typeof e=="function"?e(...a):e;return o.push(m,p),r=d+l.length,""}),o.push(n.slice(r)),o}const zA=(t,e)=>(0,s.jsx)("mark",{children:t},e),UA=(t,e)=>VA(new RegExp(FA()(e),"igm"),zA,t);var $A=c(47198),WA=c.n($A),_A=c(80888),GA=c.n(_A);const _c=GA()(WA()),lee=t=>t.toLowerCase();var KA=c(32261),gv=c.n(KA),QA=c(92369),Th=c.n(QA),ZA=c(5811),Vd=c.n(ZA),YA=c(66048),Gc=c.n(YA),XA=c(97930),JA=c.n(XA),qA=c(74355),eR=c.n(qA),tR=c(3099),sR=c.n(tR),nR,oR;const rR=t=>t===-1,aR=t=>t>=0,iR=Gc()(3,(t,e,n)=>uv()(t,n,e)),Ih=Gc()(3,(t,e,n)=>n[t]==e),dee=Gc()(3,(t,e,n)=>Ts()(Qo()(Ih("id",e)),ri()(rR,os()(n),iR(t,n)))(n)),uee=t=>oR(nR(Ih("id",t))),hee=Gc()(3,(t,e,n)=>JA()(e,n[t],sR()(t,1,n)));function cR(t,e){const n=[];for(const o of e)if(n.push(o),t(o))break;return n}const lR=Th()(eR()(gv(),0)),Cv=ot()(Array.from,Array),xv=ia()((t,e)=>Cv(e).map(()=>t)),dR=ia()((t,e,n,o)=>Cv(n).map((r,a)=>a===o?e:t)),mee=Gc()(3,(t,e,n)=>Ts()(Qo()(Ih(t,e)),aR)(n));function pee(t,e,n){if(e>=n.length)return n.slice(0);const o=Math.floor(e/2),r=Math.ceil(e/2),a=t-o,i=t+r;return i>n.length?n.slice(n.length-e):a>=0?n.slice(a,i):n.slice(0,e)}const zd=(t,e)=>{const n=Math.min(t.length,e.length),o=new Array(n);for(let r=0;r<n;r++)o[r]=[t[r],e[r]];return o},fee=ia()((t,e,n)=>n>=t&&n<e),bv=t=>t<10?`0${t}`:String(t),uR=t=>Intl.NumberFormat(void 0,{style:"percent",maximumFractionDigits:2}).format(t),yv=t=>t.reduce((e,n)=>isNaN(n)||n==null?e:e+n,0),hR=Pt("NavCompactOutline",({className:t="",isEnabled:e,lessonIdGroups:n})=>{const o=(0,nt.useLabelsMap)(),r=Z()(t,"nav-compact__outline",{"nav-compact__outline--collapsed":!e});return(0,s.jsx)("section",{"aria-label":o?.a11yRegionNavOverview,className:r,"data-testid":"nav-compact-outline",id:"nav-compact-outline",children:_c(n)&&(0,s.jsx)("ol",{className:"nav-compact__outline-list","data-testid":"nav-compact-outline-list",role:"list",children:n.map((a,i)=>hs()(a)?null:(0,s.jsx)(DA,{index:i,isEnabled:e,lessonIds:a},i))})})});function mR(t){const e=Ot(t);return{lessonIdGroups:c0(t),navigationStyle:e.navigationStyle}}const pR=(0,Q.Ng)(mR)(hR);var fR=c(26372);const vR=()=>{const[t,e]=fR.useState(!1);return(0,qt.A)(Ef,()=>e(!0)),(0,qt.A)(Q1,()=>e(!1)),t},Lv=ee("nav-compact"),Ev="nav-content-compact",gR=({closeNav:t,coverImageColor:e,isExpanded:n,navigationStyle:o,openNav:r,progressIndicatorStyle:a,translateY:i},l)=>{const u=(0,h.useMemo)(()=>(0,_t.I8)(o),[o]),d=(0,h.useMemo)(()=>o===A.Py.LIGHT_ACCENT||o===A.Py.DARK_ACCENT,[o]),m=vR(),p=(0,h.useMemo)(()=>(0,_t.FH)(o),[o]),f=a===A.Y2.CIRCULAR_FILL,v=a===A.Y2.INCOMPLETE_COMPLETE,g=(0,h.useMemo)(()=>p&&e===A.df.LIGHT,[p,e]),C=Lv({accent:d,dark:u,light:!u,"image-dark-overlay":p&&!g,"image-light-overlay":p&&g,"progress-circular-fill":f,"progress-incomplete-complete":v,collapsed:!n,navNextIsVisible:m}),x=Lv("wrap",{collapsed:!n}),L={transform:`translateY(${i}px)`};return(0,s.jsx)("div",{className:C,"data-testid":"nav-compact",id:Ev,ref:l,style:L,children:(0,s.jsxs)("div",{className:x,children:[(0,s.jsx)(vA,{closeNav:t,isExpanded:n,openNav:r}),(0,s.jsx)(Hc,{inert:!n,children:(0,s.jsx)(pR,{isEnabled:n})})]})})};function CR(t){return Ot(t).buttonNavigationStyle==="FULL"?Math.round(-(t.ui.lessonNavNextButton?.intersectionRect?.height??0)):0}function xR(t){const{color:e,navigationStyle:n,theme:o}=Ot(t),r=o?.coverImageColor,a=o?.progressIndicatorStyle,i=CR(t);return{color:e,coverImageColor:r,navigationStyle:n,progressIndicatorStyle:a,translateY:i}}const bR=ot()((0,Q.Ng)(xR,null,null,{forwardRef:!0}),h.forwardRef)(gR);var Sv=c(48519);const Tv=Object.assign((0,h.createContext)(null),{displayName:"OverlayNavControlContext"});function yR(t){const{children:e,closeNav:n,openNav:o}=t,[r,a]=(0,h.useState)(!1),i=(0,h.useCallback)(()=>{a(!0)},[]),l=(0,h.useCallback)(()=>{a(!1)},[]);return(0,s.jsx)(Tv.Provider,{value:{closeNav:n,openNav:o,openSearch:i,closeSearch:l,searchActive:r},children:e})}const Ud=h.useContext.bind(null,Tv),$d=ee("nav-overlay"),LR=({className:t})=>{const{navigationStyle:e}=Lt(),{lessonComplete:n}=(0,nt.useLabelsMap)(),o=(0,xe.Wz)(),r=gr(),i=`${o?`%${r}`:`${r}%`} ${n}`,l=e!==A.qB.ACCENT,u=$d("header-progress-runner"),d=$d("header-progress-text"),m=$d("header-progress-track");return(0,s.jsxs)("div",{className:$d("header-progress").mix(t),"data-testid":"nav-overlay-progress",children:[(0,s.jsx)(jd,{"aria-hidden":!0,background:!0,disabled:l,progress:r,runnerClass:u,trackClass:m}),(0,s.jsx)("div",{className:d,children:i})]})},sr=ee("nav-overlay"),ER=()=>{const t=Lt(),e=(0,Re.Z)(),n=cn(),{allowSearch:o,lmsOptions:r={}}=t||{},a=Wr(),i=(0,nt.useLabelsMap)(),l=Ud(),u=(0,h.useRef)(),d=sr("header-control-btn"),m=t?.exportSettings?.webExportSettings,p=!Ao.isInstantLink&&(r?.disableCoverPage||m?.disableCoverPage),f=v=>{v.preventDefault(),Jo(()=>{e("/")},"lesson-to-cover")};return(0,s.jsx)("section",{"aria-label":"Course Information","data-testid":"nav-overlay-header",children:(0,s.jsxs)("div",{className:sr("header-container"),children:[(0,s.jsxs)("div",{className:sr("header-controls"),children:[(0,s.jsx)("button",{"aria-label":i?.a11yNavigationMenuClose,className:d,"data-testid":"nav-overlay-close",onClick:l.closeNav,ref:u,type:"button",children:(0,s.jsx)(Td,{className:sr("header-close-icon")})}),o&&a!=="restricted"&&(0,s.jsx)("button",{"aria-label":i?.a11ySearchOpen,className:d,"data-testid":"nav-overlay-search",onClick:l.openSearch,type:"button",children:(0,s.jsx)(Oc,{className:sr("header-search-icon")})})]}),(0,s.jsxs)("div",{className:sr("header-title-progress-container"),children:[(0,s.jsx)("h1",{className:sr("header-title"),"data-testid":"nav-overlay-title",id:"nav-overlay-title",children:p?(0,s.jsx)("span",{className:sr("header-title"),children:n}):(0,s.jsx)(Cn,{className:sr("header-title-link"),onClick:f,to:"/",children:n})}),(0,s.jsx)(LR,{})]})]})})},Nh=({icon:t,...e})=>{switch(t){case it.xA.INTERACTION:return(0,s.jsx)(pE,{...e});case it.xA.QUIZ:return(0,s.jsx)(dE,{...e});case it.xA.VIDEO:return(0,s.jsx)(fE,{...e});default:return(0,s.jsx)(oE,{...e})}},vi=ee("nav-overlay"),Iv=Pt("NavOverlayOutlineLesson",({first:t,id:e,isEnabled:n,isSectionLesson:o,last:r})=>{const{navigationStyle:a}=Lt(),{icon:i}=Es(e),l=xr(e),u=Ud(),d=l0(e),m=(0,_t.I8)(a),p=vi("outline-item",{section:o}),f=vi("outline-item-link-icon",{quiz:i==="Quiz"}),v=(0,h.useCallback)(()=>{u.closeNav()},[u]),[g,C]=(0,h.useState)(!1),x=(0,h.useCallback)(()=>C(!0),[]),L=(0,h.useCallback)(()=>C(!1),[]),y=(0,s.jsx)(Hd,{canComplete:d,id:e,isDark:m,isEnabled:n,isTooltipVisible:g,onHideTooltip:L,onShowTooltip:x,scope:it.by.OVERLAY});return(0,s.jsxs)("li",{className:vi("outline-list-item",{first:t,last:r}),"data-testid":`nav-overlay-lesson-${e}`,role:"listitem",children:[(0,s.jsxs)(Fc,{className:p.toString(),dark:m,isTooltipEnabled:!d,lessonId:e,onHideProgressTooltip:L,onNavigate:v,onShowProgressTooltip:x,showProgressDelay:null,tooltipClassName:vi("outline-item-tooltip").toString(),children:[(0,s.jsx)("span",{className:vi("outline-icon-wrap"),children:(0,s.jsx)(Nh,{className:f,icon:i})}),(0,s.jsx)("span",{className:vi("outline-lesson-title"),children:l}),!d&&y]}),d&&y]})}),SR=ee("nav-overlay"),TR=({id:t})=>{const e=Es(t),n=Qt(e.title);return(0,s.jsx)("span",{className:SR("outline-section-text"),children:n})},Nv=ee("nav-overlay"),IR=({isEnabled:t,lessonIds:e})=>{const n=(0,h.useRef)();return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:Nv("outline-section-divider")}),(0,s.jsx)("ol",{className:Nv("outline-section-list"),ref:n,role:"list",children:e.map((o,r)=>(0,s.jsx)(Iv,{id:o,isEnabled:t,isSectionLesson:!0,last:r===e.length-1},o))})]})},NR=ee("nav-overlay"),jR=({index:t,isEnabled:e,lessonIds:n})=>{const[o,...r]=n,a=NR("outline-item").mix("nav-overlay__outline-section");return hs()(r)?(0,s.jsx)("li",{className:a,role:"listitem",children:(0,s.jsx)(TR,{id:o})}):(0,s.jsx)("li",{className:a,role:"listitem",children:(0,s.jsx)(IR,{index:t,isEnabled:e,lessonIds:r})})},kR=({index:t,isEnabled:e,lessonIds:n})=>{const o=Rl(n),r=xr(n[0]),a=ee("nav-overlay");return o?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("h2",{className:a("outline-section-text"),children:r}),(0,s.jsx)("ol",{className:a("outline-list"),"data-testid":"nav-overlay-outline-list",role:"list",children:(0,s.jsx)(jR,{index:t,isEnabled:e,lessonIds:n})})]}):n.map((i,l)=>(0,s.jsx)(Iv,{first:l===0,id:i,isEnabled:e,isSectionLesson:!1,last:l===n.length-1},i))},AR=ee("nav-overlay"),RR=Pt("NavOverlayOutline",({isEnabled:t})=>{const e=ap(),n=(0,nt.useLabelsMap)();return(0,s.jsx)("section",{"aria-label":n?.a11yRegionNavOverview,className:AR("outline"),"data-testid":"nav-overlay-outline",id:"nav-overlay-outline",children:_c(e)&&(0,s.jsx)(s.Fragment,{children:e.map((o,r)=>hs()(o)?null:(0,s.jsx)(kR,{index:r,isEnabled:t,lessonIds:o},`lessonIdGroup-${r}`))})})});var PR=c(68903),Wd=c.n(PR),fa=c(75656),wR=c(5651),va=c.n(wR),MR=c(34638),_d=c.n(MR),OR=c(98757),nr=c.n(OR),DR=c(5832),nn=c.n(DR);const jh=Array.isArray,BR=t=>typeof t=="number",Gd=t=>!nn()(t)&&typeof t=="object",kh=t=>typeof t=="string",HR=(t,e,n)=>(o,r)=>{const a=aa()(r,t);if((0,fs.uW)(o)){const i=n[o.l10nId];return typeof i!="string"?!1:!hs()(_d()(e,(0,fa.htmlDecode)(i)))}else return Gd(o)?jv(t,e,n)(o):a&&kh(o)?!hs()(_d()(e,(0,fa.htmlDecode)(o))):!1},jv=(t,e,n)=>o=>Ts()(va(),nr(),aa()(!0))(HR(t,e,n),o),FR=jv;var VR=c(43180),Ah=c.n(VR),zR=c(97285),Rh=c.n(zR),UR=c(89565),Kd=c.n(UR);const $R=(t,e,n)=>(o,r)=>{const a=aa()(r,t);return jh(o)?nr()(Ph(t,e,n)(o)):(0,fs.uW)(o)?typeof n[o.l10nId]!="string"?0:vs()(_d()(e,(0,fa.htmlDecode)(n[o.l10nId]))):Gd(o)?Ph(t,e,n)(o):a&&kh(o)?vs()(_d()(e,(0,fa.htmlDecode)(o))):0},Ph=(t,e,n)=>o=>va()($R(t,e,n),o),wh=t=>{if(jh(t))return qo()(wh,t);if(Gd(t))return wh(nr()(t));if(BR(t))return t},WR=(t,e,n)=>o=>Ts()(Ph(t,e,n),nr(),qo()(wh),Rh(),Kd()(Ah(),0),r=>io()("results",r,o))(o),_R=(t,e,n)=>(o,r)=>{const a=aa()(r,t);return jh(o)?nr()(Mh(t,e,n)(o)):Gd(o)?Mh(t,e,n)(o):a&&kh(o)?I1()(e,n,o):o},Mh=(t,e,n)=>o=>va()(_R(t,e,n),o),kv=Mh,Av=(t,e,n,o,r)=>{const a=["caption","code","description","heading","message","name","paragraph","title"];if(hs()(t))return!1;const i=t.replace(/[-[\]{}()"'*+?.,\\^$|#\s]/g,"\\$&"),l=new RegExp(`(${i})(?![^<]*>)`,"ig"),u=L=>`<mark>${L}</mark>`,d=kv(a,l,u),m=kv(Object.keys(n),l,u),p=qo()(d,e),f=o?o(t):{},v=m(n),g=L=>f[L.id]>0||FR(a,l,n)(L),C=WR(a,l,n),x=Ts()(As()(g),qo()(C))(e);x.forEach(L=>{L.results+=f[L.id]??0}),r(t,x,v,p)};function GR(t){if(!t)return!0;for(const e in t)return!1;return!0}function Rv(){const{lessons:t,mondrian:e}=Lt(),{currentLocale:n}=(0,bt.nY)(),[o,r]=(0,h.useState)(null);return(0,h.useEffect)(()=>{GR(e)||c.e("webpack_container_remote_mondrian_learn-react").then(c.t.bind(c,4246,23)).then(a=>r(()=>a.searchItemsByLesson))},[e]),(0,h.useCallback)(a=>o?.(a,t,e,n)??{},[o,t,e,n])}const KR=$c.Ay.animateScroll,Hn=ee("nav-overlay"),QR=()=>{const t=(0,Q.wA)(),e=_o(),n=Ud(),{lessons:o}=Lt(),[r,a]=(0,h.useState)(""),i=Rv(),l=(0,h.useRef)(),u=(0,nt.useLabelsMap)(),d=Hn("search-close-btn"),m=Hn("search-clear-btn"),p=(0,h.useCallback)(()=>{n.closeSearch(),n.closeNav(),t([(0,Cs.Se)(!0),(0,Cs.ts)(!1),(0,Cs.NM)(null)])},[t,n]),f=(0,h.useCallback)(()=>{a(""),l.current?.focus?.()},[]);(0,h.useEffect)(()=>{l.current?.focus?.()},[]);const v=(0,h.useCallback)(x=>{hn(x)&&!Wd()(r)?(x.preventDefault(),a(""),t((0,Cs.NM)(null))):hn(x)&&Wd()(r)&&p()},[t,p,r]);(0,qt.A)("keydown",v);const g=(0,h.useCallback)(x=>{a(x.target.value)},[]),C=(0,h.useCallback)(x=>{if(x.preventDefault(),r){const L=(y,E,b,S)=>{t([(0,Cs.NM)(y),(0,Cs.gA)(E),(0,Cs.D2)(b),(0,Cs.u)(S),(0,Cs.ts)(!0)]),KR.scrollToTop({duration:500,smooth:!0})};n.closeNav(),n.closeSearch(),Av(r,o,e??{},i,L)}},[r,i,n,o,e,t]);return(0,s.jsxs)("div",{className:Hn("search"),"data-testid":"nav-overlay-search-container",children:[(0,s.jsx)("div",{className:Hn("search-header"),children:(0,s.jsx)("button",{"aria-label":u?.a11ySearchClose,className:d,"data-testid":"nav-overlay-search-close",onClick:p,type:"button",children:(0,s.jsx)(Td,{className:Hn("search-close-icon")})})}),(0,s.jsx)("div",{className:Hn("search-body"),children:(0,s.jsxs)("form",{autoComplete:"off",onSubmit:C,children:[(0,s.jsxs)("div",{className:Hn("search-container"),children:[(0,s.jsx)(Oc,{className:Hn("search-icon")}),(0,s.jsx)("input",{"aria-label":u?.a11ySearchInput,className:Hn("search-input").mix("brand--ui"),"data-testid":"nav-overlay-search-input",name:"search",onChange:g,placeholder:u?.search,ref:l,type:"input",value:r}),r&&(0,s.jsx)("button",{"aria-label":u?.a11ySearchInputClear,className:m,"data-testid":"nav-overlay-search-clear",onClick:f,type:"button",children:(0,s.jsx)(Td,{className:Hn("search-clear-icon").toString()})})]}),(0,s.jsx)("div",{className:Hn("search-actions"),children:(0,s.jsx)("button",{className:Hn("search-submit-btn").mix("brand--ui"),"data-testid":"nav-overlay-search-submit",type:"submit",children:u?.search})})]})})]})},Oh=ee("nav-overlay"),Pv="nav-content-overlay",ZR=({isExpanded:t,outlineRef:e})=>{const o=ap()[0],r=Rl(o),a=Oh("body",{section:r});return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(ER,{}),(0,s.jsx)("div",{className:a,ref:e,children:(0,s.jsx)(RR,{isEnabled:t})})]})},YR=({children:t,isImage:e,hasStickyHeader:n})=>{const o=Oh("content",{graphic:e,"has-sticky-header":n});return(0,s.jsxs)("div",{className:o,"data-nav-scrollable":!0,"data-testid":"nav-overlay-content",children:[t,e&&(0,s.jsx)(E1,{})]})},XR=({isExpanded:t})=>{const e=(0,h.useRef)(null),n=(0,h.useRef)(),o=Lt(),r=Ud(),a=(0,qe.A)(t),{navigationStyle:i,theme:{progressIndicatorStyle:l}={}}=o||{},u=o?.theme?.coverImageColor,d=i===A.qB.ACCENT,m=i===A.qB.TINT,p=(0,_t.I8)(i),f=i===A.qB.GRAY,v=i===A.qB.LIGHT,g=(0,_t.FH)(i),C=l===A.Y2.CIRCULAR_FILL,x=l===A.Y2.INCOMPLETE_COMPLETE,[L,y]=(0,h.useState)(!0),{isIntersecting:E=!1}=(0,Sv.A)(n,{root:e?.current,threshold:1})||{},b=(0,qe.A)(E),S=(0,h.useMemo)(()=>g&&u===A.df.LIGHT,[g,u]),T=Oh({"accent-tint":m,accent:d,dark:p,gray:f,"image-dark-overlay":g&&!S,"image-light-overlay":g&&S,light:v,"progress-circular-fill":C,"progress-incomplete-complete":x,closing:a&&!t});return(0,h.useEffect)(()=>{t?e.current?.showModal():setTimeout(()=>{e.current?.close()},500)},[t]),(0,h.useEffect)(()=>{const I=j=>{hn(j)&&!r.searchActive&&(j.preventDefault(),r.closeNav())};return t?document.addEventListener("keydown",I):document.removeEventListener("keydown",I),()=>{document.removeEventListener("keydown",I)}},[t,r]),(0,h.useEffect)(()=>{!L&&E?y(!0):b&&!E&&y(!1)},[E,L,b,y]),(0,s.jsx)("dialog",{"aria-labelledby":"nav-overlay-title","aria-modal":"true",className:T,"data-testid":"nav-overlay",id:Pv,ref:e,children:(0,s.jsx)(YR,{hasStickyHeader:L,isImage:g,children:r.searchActive?(0,s.jsx)(QR,{}):(0,s.jsx)(ZR,{isExpanded:t,outlineRef:n})})})},Kc=ee("nav-sidebar-search"),JR=Pt("NavSidebarSearch",({className:t="",isEnabled:e})=>{const n=(0,Q.wA)(),o=_o(),r=(0,qe.A)(e),{lessons:a}=Lt(),i=Ys(),l=(0,nt.useLabelsMap)(),u=(0,h.useRef)(),d=Kc({disabled:!e}).mix(t),m=Kc("icon"),p=Kc("input"),f=Kc("close"),v=Kc("close-icon"),g=i?.term,C=e?void 0:"disabled",[x,L]=(0,h.useState)(""),y=Rv(),E=(0,h.useCallback)(()=>{n([(0,Cs.Se)(!0),(0,Cs.ts)(!1),(0,Cs.NM)(null)]),L("")},[n]),b=(0,h.useCallback)(I=>{hn(I)&&!Wd()(x)?(I.preventDefault(),L(""),n((0,Cs.NM)(null))):hn(I)&&Wd()(x)&&E()},[n,E,x]),S=(0,h.useCallback)(I=>{g!=null&&n((0,Cs.NM)(null)),L(I.target.value)},[n,g]),T=(0,h.useCallback)(I=>{I.preventDefault(),Av(x,a,o??{},y,(M,H,D,P)=>n([(0,Cs.NM)(M),(0,Cs.gA)(H),(0,Cs.D2)(D),(0,Cs.u)(P)]))},[n,a,o,x,y]);return(0,h.useEffect)(()=>{!r&&e&&setTimeout(()=>{u.current?.focus()},50)},[e,r]),(0,h.useEffect)(()=>{g&&g!==x&&L(g)},[x,g]),(0,s.jsxs)("form",{autoComplete:"off",className:d,"data-testid":"nav-sidebar-search",onSubmit:T,children:[(0,s.jsx)(Oc,{className:m}),(0,s.jsx)("input",{"aria-label":l?.a11ySearchInput,className:p,disabled:C,name:"search",onChange:S,onKeyDown:b,placeholder:l?.search,ref:u,type:"search",value:x}),(0,s.jsx)("button",{"aria-label":l?.a11ySearchClose,className:f,onClick:E,type:"reset",children:(0,s.jsx)(Td,{className:v})})]})}),Fn=ee("nav-sidebar-header"),qR=ee("nav-sidebar-header-ghost"),eP=()=>(0,Q.d4)(t=>t.ui.skipToNavButton?.offsetHeight??0),tP=Pt("NavSidebarHeaderProgress",t=>{const{classProgressRunner:e,classProgressText:n,classProgressTrack:o,color:r,percentComplete:a,percentCompleteText:i}=t;return(0,s.jsxs)("div",{className:Fn("progress"),"data-testid":"nav-sidebar-progress",children:[(0,s.jsx)(jd,{"aria-hidden":"true",color:r,progress:a,runnerClass:e,trackClass:o}),(0,s.jsx)("div",{className:n,children:i})]})}),sP=Pt("NavSidebarHeader",({className:t,isCompact:e,isEnabled:n,navRefWidth:o,setIsCompact:r})=>{const a=(0,Q.wA)(),i=(0,Re.Z)(),[l,u]=(0,h.useState)(""),[d,m]=(0,h.useState)({height:0,width:0}),[p,f]=(0,h.useState)(d),[v,g]=(0,h.useState)(d),C=eP(),x=(0,h.useRef)(),L=(0,h.useRef)(),y=(0,h.useRef)(),[E,b]=(0,h.useState)(null),S=Lt(),T=cn(),I=(0,nt.useLabelsMap)(),j=gr(),M=Ys(),H=f1(),D=(0,xe.Wz)(),P=Wr(),F=S?.exportSettings?.webExportSettings,k=!Ao.isInstantLink&&(S?.lmsOptions?.disableCoverPage||F?.disableCoverPage),w=S?.allowSearch&&P!=="restricted",O=S?.theme?.coverImageColor,W=S?.navigationStyle,G=(0,h.useMemo)(()=>(0,_t.FH)(W),[W]),$=fb(),ce=(0,qe.A)(M),Ee=(M?.active||$)??!1,[Ne,De]=(0,h.useState)(!0),[Ke,Ae]=(0,h.useState)(null),we=Fn({compact:e,searching:Ee,transition:Ne}).mix(t),he=Fn("inner",{compact:e}),oe=Fn("content",{compact:e,hidden:Ee}),Be=Fn("graphic",{image:G}),Pe=Fn("progress-runner"),$e=Fn("progress-text",{compact:e}),Oe=Fn("progress-track"),pt=Fn("search-area",{hidden:!Ee}),vt=Fn("search-btn",{hidden:Ee}),It=Fn("search-icon"),Ht=Fn("title",{compact:e}),Wt=qR({compact:e,searching:Ee}),Vo=`${D?`%${j}`:`${j}%`} ${I?.lessonComplete}`,Bs=n&&!Ee?void 0:-1,zo=n&&!Ee?void 0:-1,{alpha:Fr,media:Uo}=na("coverImage"),ar=(0,h.useMemo)(()=>{let Yt={};return G&&Object.assign(Yt,(0,_t.b9)({alpha:Fr,color:O,media:Uo})),Ee&&(Yt.height=p.height),Yt},[Fr,O,Uo,G,Ee,p.height]),Na=(0,h.useMemo)(()=>{let Yt={};return e&&(Yt.bottom=`calc(100% - ${C}px)`,Yt.width=o||0,Yt.transition="width 0.3s",n||(Yt.transition="width 0.3s",Yt.width="0rem")),d.height&&(Yt.height=d.height,Yt.overflow="hidden",e&&(Yt.transition="height 0.3s ease .1s, transform 0.3s ease .1s")),Yt},[e,n,o,d.height,C]);(0,h.useEffect)(()=>{u(e&&H?mv(T,45):T)},[T,e,H]);const ir=Ee?void 0:{height:v.height},zi=(0,h.useCallback)(()=>{f(d),a((0,Cs.ts)(!0))},[a,d]),Ui=(0,h.useCallback)(Yt=>{Yt.preventDefault(),Jo(()=>{i("/")},"lesson-to-cover")},[i]);(0,h.useLayoutEffect)(()=>{Ae(document.querySelector("[data-nav-scrollable]"))},[]);const{isIntersecting:$o=!1}=(0,Sv.A)(x,{root:Ke,threshold:0})||{},ja=(0,qe.A)($o);(0,h.useEffect)(()=>{const Yt=E!=null&&window.innerHeight*.4>=E.offsetHeight;ja&&!$o&&Yt?r(!0):!ja&&$o&&r(!1)},[$o,ja,E,r]);const e0=(0,h.useCallback)(({target:Yt})=>{const Ws={height:Yt?.scrollHeight??0,width:o??0};m(Ws),f(Ws),e||g(Ws)},[e,o]);Rd(E,e0),(0,h.useLayoutEffect)(()=>{const Yt=Ke?.scrollTop;(Ke||Yt>0)&&(Ke.scrollTop=0);const Ws={height:E?.scrollHeight??0,width:o??0};m(Ws),f(Ws),g(Ws)},[Ke,o,E]),(0,h.useEffect)(()=>{w&&ce?.active&&!M.active&&L?.current?.focus()},[w,M,ce]),(0,h.useEffect)(()=>{Ee?De(!0):e&&De(!1)},[Ee,e]);const bl=(0,h.useCallback)(Yt=>{if(!Yt.target.hasAttribute("data-nav-item")||!e)return;const Ws=E.getBoundingClientRect(),cr=Yt.target.getBoundingClientRect();Ws.bottom>cr.top&&(Ke.scrollTop-=Ws.height-cr.top+5)},[Ke,e,E]);return(0,qt.A)("focusin",bl,Ke),(0,h.useEffect)(()=>u(T),[T]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:Wt,ref:x,style:ir}),(0,s.jsx)("div",{className:we,"data-testid":"nav-sidebar-header",ref:y,style:Na,children:(0,s.jsxs)("div",{className:he,ref:b,children:[(0,s.jsx)("div",{className:Be,style:ar}),w&&(0,s.jsx)("button",{"aria-label":I?.a11ySearchOpen,className:vt,onClick:zi,tabIndex:Bs,type:"button",children:(0,s.jsx)(Oc,{className:It})}),(0,s.jsx)("div",{className:pt,children:(0,s.jsx)(JR,{isEnabled:n&&Ee})}),(0,s.jsxs)("div",{className:oe,children:[k?(0,s.jsx)("span",{className:Ht,"data-testid":"nav-sidebar-title",tabIndex:zo,children:l}):(0,s.jsx)(Cn,{className:Ht,"data-testid":"nav-sidebar-title",onClick:Ui,tabIndex:zo,to:"/",children:l}),(0,s.jsx)(tP,{classProgressRunner:Pe,classProgressText:$e,classProgressTrack:Oe,percentComplete:j,percentCompleteText:Vo})]})]})})]})}),nP=ee("nav-sidebar");function wv({closeNav:t,id:e,isEnabled:n,isSectionLesson:o,last:r}){const{navigationStyle:a}=Lt(),{icon:i}=Es(e)??{},l=xr(e),u=Bn(),d=Ic(),m=l0(e),p=e===u,f=(0,h.useMemo)(()=>(0,_t.I8)(a),[a]),v=o?"nav-sidebar__outline-section-item":"nav-sidebar__outline-item",g=Z()(`${v}-link-icon`),C=(0,s.jsx)(Nh,{className:g,icon:i}),[x,L]=(0,h.useState)(!1),y=(0,h.useCallback)(()=>L(!0),[]),E=(0,h.useCallback)(()=>L(!1),[]),b=(0,s.jsx)(Hd,{canComplete:m,id:e,isDark:f,isEnabled:n,isTooltipVisible:x,onHideTooltip:E,onShowTooltip:y,scope:it.by.SIDEBAR}),S=()=>{t&&d&&t()};return(0,s.jsxs)("li",{className:nP("outline-list-item",{last:r}),"data-testid":`nav-outline-lesson-${e}`,role:"listitem",children:[(0,s.jsxs)(Fc,{className:v,dark:f,isCurrentLesson:p,isTooltipEnabled:!m,lessonId:e,onHideProgressTooltip:E,onNavigate:S,onShowProgressTooltip:y,showProgressDelay:0,tooltipClassName:`${v}-tooltip`,children:[C,l,!m&&b]}),m&&b]})}const oP=({title:t})=>(0,s.jsx)("span",{className:"nav-sidebar__outline-section-text",children:t});function rP(){const t=bo(),e=Qn();return(n,o)=>{const{currentLocale:r}=o,a=Ot(n),i=t(o.id,n),l=e(i.title,r,n);return{navigationStyle:a.navigationStyle,title:l}}}const aP=ot()(bt.wZ,(0,Q.Ng)(rP))(oP);var gi=c(26372);const iP=({closeNav:t,id:e,index:n,isEnabled:o,lessonIds:r})=>{const a=Lt(),i=a?.theme,l=a?.themeId,u=i?.navigationSectionsExpanded??!0,d=xr(String(e)),[m,p]=gi.useState(u);gi.useEffect(()=>{p(u)},[u]);const[f,v]=gi.useState(),g=gi.useRef(null),C=`sidebar-sublist-${n}`,x=g.current?.clientWidth,L=String(l),y=Z()("nav-sidebar__outline-section-toggle-icon",{"nav-sidebar__outline-section-toggle-icon--collapsed":!m}),E=Z()("nav-sidebar__outline-section-list",{"nav-sidebar__outline-section-list--collapsed":!m}),b=gi.useCallback(()=>{p(S=>!S)},[]);return gi.useLayoutEffect(()=>{const S=setTimeout(()=>{g.current&&v(g.current.scrollHeight)},0);return()=>{clearTimeout(S)}},[r.length,x,L]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("button",{"aria-controls":C,"aria-expanded":m,className:"nav-sidebar__outline-section-toggle","data-nav-item":"",onClick:b,tabIndex:o?void 0:-1,type:"button",children:[(0,s.jsx)("span",{className:"nav-sidebar__outline-section-toggle-text",children:d}),(0,s.jsx)(af,{className:y})]}),(0,s.jsx)(Hc,{inert:!m,children:(0,s.jsx)("ol",{"aria-hidden":m?void 0:!0,className:E,id:C,ref:g,role:"list",style:{maxHeight:f},children:r.map((S,T)=>(0,s.jsx)(wv,{closeNav:t,id:S,isEnabled:o&&m,isSectionLesson:!0,last:T===r.length-1},S))})})]})},cP=({closeNav:t,index:e,isEnabled:n,lessonIds:o})=>{const[r,...a]=o,i="nav-sidebar__outline-item nav-sidebar__outline-section";return hs()(a)?(0,s.jsx)("li",{className:i,role:"listitem",children:(0,s.jsx)(aP,{id:r})}):(0,s.jsx)("li",{className:i,role:"listitem",children:(0,s.jsx)(iP,{closeNav:t,id:r,index:e,isEnabled:n,lessonIds:a})})},lP=({closeNav:t,index:e,isEnabled:n,lessonIds:o})=>Rl(o)?(0,s.jsx)(cP,{closeNav:t,index:e,isEnabled:n,lessonIds:o}):o.map((a,i)=>(0,s.jsx)(wv,{closeNav:t,id:a,isEnabled:n,isSectionLesson:!1,last:i===o.length-1},a)),dP=Pt("NavSidebarOutline",({className:t="",closeNav:e,isEnabled:n,lessonIdGroups:o})=>{const r=(0,qe.A)(n),[a,i]=(0,h.useState)(!n),l=(0,nt.useLabelsMap)(),u=(0,h.useRef)(),d=Z()(t,"nav-sidebar__outline",{"nav-sidebar__outline--hidden":a,"nav-sidebar__outline--safari":xn.isSafari}),m=Z()("nav-sidebar__outline-list",{"nav-sidebar__outline-list--disabled":!n,"nav-sidebar__outline-list--hidden":a});return(0,h.useEffect)(()=>{let p;return r&&!n?p=setTimeout(()=>{i(!0)},350):!r&&n&&a&&i(!1),()=>{clearTimeout(p)}},[n,a,r]),(0,s.jsx)("section",{"aria-label":l?.a11yRegionNavOverview,className:d,"data-testid":"nav-sidebar-outline",id:"nav-sidebar-outline",children:_c(o)&&(0,s.jsx)("ol",{className:m,"data-testid":"nav-sidebar-outline-list",ref:u,role:"list",children:o.map((p,f)=>hs()(p)?null:(0,s.jsx)(lP,{closeNav:e,index:f,isEnabled:n,lessonIds:p},f))})})});function uP(t){const e=Ot(t),n=c0(t);return{isLegacyCourse:e.isLegacyCourse,lessonIdGroups:n,navigationStyle:e.navigationStyle}}const hP=(0,Q.Ng)(uP)(dP);var mP=c(29590),pP=c(51352);const Ci=ee("nav-sidebar-result"),Mv=({result:t})=>{const e=(0,nt.useLabelsMap)(),n=t?.icon,o=Qt(t?.title),r=t?.results??0,a=r===1?e?.result:e?.results,i=Ci("icon"),l=Ci("title"),u=Ci("count");return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(Nh,{className:i,icon:n}),(0,s.jsx)("span",{className:l,children:o}),(0,s.jsx)("span",{className:u,children:`${r} ${a}`})]})},fP=({id:t,index:e,isEnabled:n,onSelectResult:o})=>{const r=Lt(),a=(0,ie.RQ)("/*"),i=Hs(t),l=a?.params?.id===t,u=l?"page":void 0,d=r?.color,m=r?.navigationStyle,p=n?void 0:-1,f={animationDelay:`${e/10}s`},v=He(i?.id),g=(0,h.useMemo)(()=>(0,_t.I8)(m),[m]),C=Ci(),x=Ci("inner",{active:l}),L=Ci("link",{dark:g,light:!g});return(0,s.jsx)("li",{className:C,role:"listitem",style:f,children:(0,s.jsx)("div",{className:x,style:{color:d},children:n&&v==null?(0,s.jsx)(Cn,{"aria-current":u,className:L,onClick:o,tabIndex:p,to:(0,wt.p1)(t),children:(0,s.jsx)(Mv,{result:i})}):(0,s.jsx)(Nf,{className:L,restriction:v,tooltipClassName:"lesson-nav-link-tooltip",children:(0,s.jsx)(Mv,{result:i})})})})},Qd=ee("nav-sidebar-results"),vP=[],gP=({closeNav:t,isEnabled:e})=>{const{announcePolite:n}=gt(),o=Lt(),r=Ys(),a=(0,nt.useLabelsMap)(),l=(r?.activeLessons??vP).filter(za),u=r?.term,d=(0,mP.A)(l),m=(0,pP.A)(u),p=a?.noResults??"",f=o?.navigationStyle,v=(0,h.useMemo)(()=>(0,_t.I8)(f),[f]),g=Qd(),C=Qd("message",{dark:v,light:!v}),x=Qd("term"),L=Qd("list"),y=Is(A2),E=h.useCallback(()=>{y&&t()},[t,y]);return(0,h.useEffect)(()=>{if(m){const b=l.length===1?a?.result:a?.results,S=d?`${l.length} ${b}`:`${a?.noResults} ${u}`;n?.(S)}},[n,d,m,l,a,u]),(0,s.jsxs)("div",{className:g,"data-testid":"nav-sidebar-results",children:[!d&&m&&(0,s.jsxs)("div",{className:C,children:[p," ",(0,s.jsxs)("span",{className:x,children:['"',u,'"']})]}),d&&m&&(0,s.jsx)("ol",{className:L,"data-testid":"nav-sidebar-results-list",role:"list",children:l.map((b,S)=>(0,s.jsx)(fP,{id:b.id,index:S,isEnabled:e,onSelectResult:E},b.id))})]})},Zd=ee("nav-sidebar"),Ov="nav-content-sidebar",CP=({isExpanded:t,closeNav:e})=>{const n=Lt(),o=Ys(),[r,a]=(0,h.useState)(!1),[i,l]=(0,h.useState)(0),u=(0,h.useRef)(null),d=(0,h.useRef)(null),m=n?.color,p=n?.theme?.coverImageColor,f=n?.isLegacyCourse,v=n?.navigationStyle,g=n?.theme?.accentContrast,C=n?.theme?.progressIndicatorStyle,x=o?.active??!1,L=x||t?void 0:"true";(0,h.useLayoutEffect)(()=>{u&&u?.current&&l(u.current?.scrollWidth)},[r,t,u,x,l]);const y=(0,h.useMemo)(()=>(0,_t.zH)(v),[v]),E=(0,h.useMemo)(()=>(0,_t.I8)(v),[v]),b=(0,h.useMemo)(()=>(0,_t.FH)(v),[v]),S=(0,h.useMemo)(()=>b&&p===A.df.LIGHT,[b,p]),T=!(0,ht.Wn)(m),I=(0,ht.xD)(m),j=C===A.Y2.CIRCULAR_FILL,M=C===A.Y2.INCOMPLETE_COMPLETE,H=g===A.Em.AUTO&&I===A.Em.DARK,D=(0,h.useMemo)(()=>g?g===A.Em.DARK||H:T,[H,T,g]),P=Zd("header"),F=Zd("body"),k=Zd("content"),w=Zd({accent:y,"dark-contrast":!b&&D,"light-contrast":!b&&!D,"legacy-pre-themes":f,"image-dark-overlay":b&&!S,"image-light-overlay":b&&S,"progress-circular-fill":j,"progress-incomplete-complete":M,collapsed:!t,dark:E,light:!E,searching:x});return(0,s.jsx)(Hc,{inert:!t,children:(0,s.jsx)(gs.F,{children:(0,s.jsx)(gs.eB,{in:t,mountOnEnter:!0,nodeRef:d,timeout:300,unmountOnExit:!0,children:(0,s.jsx)("div",{"aria-hidden":L,className:w,"data-testid":"nav-sidebar",ref:d,children:(0,s.jsxs)("div",{className:k,"data-nav-scrollable":!0,id:Ov,children:[(0,s.jsx)(sP,{className:P,isCompact:r,isEnabled:t,navRefWidth:i,setIsCompact:a}),(0,s.jsxs)("div",{className:F,"data-testid":"nav-sidebar-body",ref:u,children:[(0,s.jsx)(hP,{closeNav:e,isEnabled:t&&!x}),(0,s.jsx)(gP,{closeNav:e,isEnabled:t&&x})]})]})})})})})},ga={x:null,y:null},Yd={passive:!0};function Dv({children:t,onSwipeDown:e,onSwipeLeft:n,onSwipeRight:o,onSwipeUp:r,onShouldRecognizeGesture:a=()=>!0,thresholdX:i=100,thresholdY:l=100}){const u=(0,h.useRef)(),[d,m]=(0,h.useState)(ga),[p,f]=(0,h.useState)(ga),v=(0,h.useCallback)(L=>{const y=L.touches?.length??0,E=L.targetTouches[0],b=a?a():!0;y==1&&E&&b?m({x:E.clientX,y:E.clientY}):m(ga)},[a]),g=(0,h.useCallback)(L=>{const y=L.targetTouches[0];y&&f({x:y.clientX,y:y.clientY})},[]),C=(0,h.useCallback)(()=>{m(ga),f(ga)},[]),x=(0,h.useCallback)(L=>{const y=L.touches?.length??0;if(d.x==null||d.y==null||p.x==null||p.y==null||y>0)return;const E=p.x-d.x,b=p.y-d.y;Math.abs(E)>Math.abs(b)?Math.abs(E)>i&&(E<0?n?.():o?.()):Math.abs(b)>l&&(b<0?r?.():e?.()),m(ga),f(ga)},[e,n,o,r,i,l,p,d]);return(0,qt.A)("touchstart",v,u.current,Yd),(0,qt.A)("touchcancel",C,u.current,Yd),(0,qt.A)("touchmove",g,u.current,Yd),(0,qt.A)("touchend",x,u.current,Yd),(0,s.jsx)("div",{ref:u,children:t})}Dv.propTypes={children:We().oneOfType([We().arrayOf(We().element),We().element]).isRequired,onShouldRecognizeGesture:We().func,onSwipeDown:We().func,onSwipeLeft:We().func,onSwipeRight:We().func,onSwipeUp:We().func,thresholdX:We().number.isRequired,thresholdY:We().number.isRequired};function Xd({isEnabled:t=!0,...e}){return t?(0,s.jsx)(Dv,{...e}):(0,s.jsx)("div",{children:e.children})}Xd.propTypes={children:We().oneOfType([We().arrayOf(We().element),We().element]).isRequired,isEnabled:We().bool.isRequired};const Jd={DESKTOP:"desktop",TABLET_PORTRAIT:"tablet-portrait",TABLET_LANDSCAPE:"tablet-landscape",MOBILE_PORTRAIT:"mobile-portrait",MOBILE_LANDSCAPE:"mobile-landscape"},xP=[Jd.TABLET_PORTRAIT,Jd.TABLET_LANDSCAPE,Jd.MOBILE_PORTRAIT,Jd.MOBILE_LANDSCAPE],Qc=t=>xP.includes(t),bP=t=>(0,h.useMemo)(()=>{const e=window.matchMedia("(pointer: coarse)").matches,n=Qc(t);return e||n},[t]),Bv=ee("course-navigation"),{COMPACT:qd,OVERLAY:Dh,SIDEBAR:Ca}=A.br,yP={[qd]:Ev,[Ca]:Ov,[Dh]:Pv},LP=({hasSearchResults:t,courseNavType:e,openNav:n,closeNav:o})=>{const[r,a]=(0,h.useState)(t);return(0,h.useEffect)(()=>{r&&!t&&!(e===Ca)?(o(),a(!1)):r&&e===Dh?n():a(t)},[t,e,n,o,r]),r},EP=t=>{const[e,n]=(0,h.useState)();(0,h.useEffect)(()=>{const{activeNavType:o,beginWithSidebarOpen:r,isNavOpen:a,isTablet:i,openNav:l,closeNav:u}=t;o===Ca&&r&&(!e&&i&&a?u():e&&!i&&!a&&l(),n(i))},[e,t])},SP=({beginWithSidebarOpen:t,children:e,closeNav:n,courseNavType:o,isNavOpen:r,isTablet:a,lessonNavType:i,openNav:l,previewType:u,toggleNav:d,hideNav:m})=>{const p=(0,h.useRef)(),f=(0,h.useRef)(),{active:v}=Ys(),g=(0,nt.useLabelsMap)(),C=LP({hasSearchResults:v,courseNavType:o,openNav:l,closeNav:n}),x=(0,h.useMemo)(()=>C||o===qd&&a?Ca:o,[o,C,a]);EP({activeNavType:x,beginWithSidebarOpen:t,closeNav:n,openNav:l,isNavOpen:r,isTablet:a}),(0,h.useEffect)(()=>{const T=j=>{f.current?.contains(j.relatedTarget)&&n()},I=()=>{f.current?.removeEventListener("click",n),f.current?.removeEventListener("keypress",n),f.current?.removeEventListener("blur",T,!0)};return x===qd&&r?(f.current?.addEventListener("click",n),f.current?.addEventListener("keypress",n),f.current?.addEventListener("blur",T,!0)):I(),I},[x,r,f,n]);const L=bP(u),y=(0,h.useCallback)(()=>{const T=x===A.br.SIDEBAR;L&&T&&r&&n()},[n,r,L,x]),E=(0,h.useMemo)(()=>yP[x],[x]),b=Bv(x?.toLowerCase(),{"nav-open":r,"search-open":v&&r,"course-nav-type":o?.toLowerCase()}),S=Bv("lessonNav",{type:i?.toLowerCase()});return(0,s.jsx)(hb,{isCourseNavOpen:r,children:(0,s.jsx)("div",{className:b,children:(0,s.jsx)(Xd,{isEnabled:x===A.br.SIDEBAR,onSwipeLeft:y,children:(0,s.jsxs)("div",{className:S,children:[(0,s.jsxs)("nav",{"aria-label":g?.a11yRegionNavLesson,children:[(0,s.jsx)(mA,{"aria-controls":E,hideNav:m,isNavOpen:r,toggleNav:d}),x===Ca&&(0,s.jsx)(CP,{closeNav:n,isExpanded:r}),x===qd&&(0,s.jsx)(bR,{closeNav:n,isExpanded:r,openNav:l,ref:p}),x===Dh&&(0,s.jsx)(yR,{closeNav:n,openNav:l,children:(0,s.jsx)(XR,{isExpanded:r})})]}),(0,s.jsx)("div",{ref:f,children:e})]})})})})},TP=({children:t,isPreviewLesson:e,...n})=>{const{buttonNavigationStyle:o,navigationType:r,lmsOptions:a,...i}=(0,xe.DX)(),l=Ic(),u=(0,_t.zh)(i),d=!l,m=i.sidebarMode===A.RE.OPEN,p=u&&r===Ca&&m&&d,f=(0,as.c3)(i),v=f&&i?.theme?.blockNavigationType===A.HC.CONTINOUS,[g,C]=(0,h.useState)(p),x=(0,h.useCallback)(()=>{C(!0)},[]),L=(0,h.useCallback)(()=>{C(!1)},[]),y=(0,h.useCallback)(()=>g?L():x(),[g,L,x]);(0,qt.A)(Cf,x),(0,qt.A)(xf,L);const E=f||e?"fixed-course-exit":void 0,b=v?{marginInlineEnd:"2rem"}:void 0,S=u?r:"";return f||e?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(lv,{className:E,lmsOptions:a,style:b}),t]}):(0,s.jsx)(SP,{...n,beginWithSidebarOpen:m,closeNav:L,courseNavType:S,enableExitCourse:a?.enableExitCourse||!0,hideNav:!u,isNavOpen:g,isTablet:l,lessonNavType:o,openNav:x,toggleNav:y,children:t})};var IP=c(66350),NP=c(44192),eu=c.n(NP);const jP=eu()(Ft()("family","continue"),Ft()("variant","continue")),Hv=ot()(Th()(jP),en()([],"items"));var Fv=c(45555);function kP(t){return t==="a"?46.5:7.6}function AP(t){return t==="d"?2:3.2}function RP(t){switch(t){case"a":return 30;case"c":case"d":return 92;default:return 76}}function Vv(t){switch(t){case"b":return 95;case"background":return 52;default:return 76}}function zv(t){switch(t){case"a":case"b":case"carousel":default:return 6.4;case"c":return 18.6;case"d":return 8;case"background":return 6}}function PP(t){return .3}function Gee(t){switch(t){case 3:return"three";case 4:return"four";default:return"two"}}function wP(t){return t==="light"?"#fff":"#000"}function Kee(t){switch(t){case"a":case"b":default:return[6.4,9.6,16];case"c":return[10,14.8,18.6];case"d":return[8,12,16];case"background":return[6,9.6,16];case"carousel":return[6.4,10,16]}}function Qee(t){return t==="b"?[52,76,95]:[52,76,92]}function Zee(t){return t==="a"?[30,76,92]:[52,76,92]}function Yee(t){return t==="d"?[2,4.8,5.6]:[3.2,4.8,5.6]}function Xee(t){return t==="a"?[46.5,78,120]:[7.6,20,32]}function MP(t){switch(t){case 3:return"sm";case 10:return"lg";default:return"med"}}function Uv(t,e){switch(e){case 6:case 6.4:case 8:default:return"sm";case 9.6:case 12:case 14.8:return"med";case 16:case 18.6:return"lg";case 10:return t==="c"?"sm":"med"}}function OP(t){switch(t){case 52:return"sm";case 76:return"med";default:return"lg"}}function $v(t){switch(t){case 52:return"sm";case 76:return"med";default:return"lg"}}function Wv(t){switch(t){case 4:return"med";case 6:return"lg";default:return"sm"}}function Bh(t){switch(t){case 52:return"sm";case 92:return"lg";default:return"med"}}function DP(t){switch(t){case 30:case 52:return"sm";case 92:return"lg";default:return"med"}}function BP(t){switch(t){case 4.8:return"med";case 5.6:return"lg";default:return"sm"}}function HP(t){switch(t){case 20:case 78:return"med";case 32:case 120:return"lg";default:return"sm"}}function FP(t){switch(t){case 1:return"sm";case 3:return"lg";default:return"med"}}function VP(t){switch(t){case 3.2:return"med";case 5.6:return"lg";default:return"sm"}}const ls=({value:t,className:e,allowTabNavigation:n=!0,tagName:o,id:r})=>{const{value:a}=b1((0,st.QQ)(t));return a?(0,s.jsx)(Et,{allowTabNavigation:n,className:e,id:r,tagName:o,value:t}):null};function zP(t,e){const{className:n="",tag:o="div",style:r={},...a}=t,{backgroundColor:i}=sn(),l=Gj(),u=l===it.S6.DARK?it.S6.LIGHT:it.S6.DARK;return i!==""&&Object.assign(r,{"--color-background-contrast":l,"--color-background-contrast-complementary":u,"--color-background-contrast-rgb":(0,ui.A)(l)?.slice(0,3)}),(0,s.jsx)(o,{...a,className:n,ref:e,style:r})}const _v=(0,h.forwardRef)(zP),UP=10,Gv=t=>`${t}rem`,Hh=t=>t!=null?`${t/UP}rem`:void 0,$P=["image full","image text overlay","quote background"];function WP(t){const{family:e,variant:n,backgroundType:o,isOnlyBlockInStep:r,isOnePage:a}=t;if(!a||!r)return!1;if(o===A.xj.IMAGE)return!0;if(!e||!n)return!1;const i=`${e} ${n}`;return $P.some(l=>l===i)}const _P={paddingBottom:"0rem",paddingTop:"0rem"},GP=t=>{const{blockSettings:e,familyTheme:n,courseTheme:o,isFullWidthImage:r}=t;if(r)return _P;const a=Gv(Number(Of(e?.paddingTop,n?.paddingStart,o?.blockPaddingStart,A.S$)));return{paddingBottom:Gv(Number(Of(e?.paddingBottom,n?.paddingEnd,o?.blockPaddingEnd,A.S$))),paddingTop:a}},KP={},QP=t=>t?{bodyFontSize:Hh(t.bodyFontSize),headingFontSize:Hh(t.headingFontSize),subheadingFontSize:Hh(t.subheadingFontSize)}:KP;function ZP(){const t=js(),e=(0,xe.DX)(),n=ma(),o=(0,as.c3)(e),r=WP({backgroundType:t?.settings?.backgroundType,family:t?.family,isOnePage:o,isOnlyBlockInStep:t?.isOnlyBlockInStep,variant:t?.variant});return GP({blockSettings:t?.settings,courseTheme:e?.theme,familyTheme:n,isFullWidthImage:r})}function YP(){const t=ma();return QP(t)}function XP(){const t=ZP();return{fontSize:YP(),padding:t}}const JP=Cd()(["settings"]),Kv=ee("block-wrapper"),qP=ee("bg"),ew=(t,e)=>{const{children:n,className:o,defaultBackgroundColor:r="",style:a,tag:i,type:l,...u}=t,d=js(),m=Qj(),p=XP(),f=oh(r,m.backgroundColor),v=f||"transparent",g=d?.className,C={...a,...m.backgroundImageCss,"--color-background":f,...p.fontSize.bodyFontSize&&{"--block-text-body-font-size":p.fontSize.bodyFontSize},...p.fontSize.headingFontSize&&{"--block-text-heading-font-size":p.fontSize.headingFontSize},...p.fontSize.subheadingFontSize&&{"--block-text-subheading-font-size":p.fontSize.subheadingFontSize},boxShadow:`0px 1px 0px ${v} `,paddingBottom:p.padding.paddingBottom,paddingTop:p.padding.paddingTop},x=Z()(o,{"bg--legacy-background":m.isLegacyBackground,[`block-${l}`]:!!l}),L=qP({card:m.cardMode,range:m.colorRange,type:m.backgroundTypeLowercase,"overlay-light":m.isOverlayLight,"contrast-light":m.isContrastLight}),y=g?Kv({}).mix(L).mix(g):Kv({}).mix(L),E=[x,y.toString()].join(" ");return(0,s.jsxs)(_v,{...JP(u),className:E,ref:e,style:C,tag:i,children:[(0,s.jsx)("span",{"aria-label":m.backgroundImageAlt,role:(0,zs.Vx)(m.backgroundImageAlt)}),n]})},kt=(0,h.forwardRef)(ew),Ln=Ja("ImageEagerOrLazy");var tw=c(31818),qee=c(2983);function Qv(t){return(0,s.jsx)(tw.i,{IconUnzoom:nw,IconZoom:sw,...t})}const sw=()=>(0,s.jsx)(rt,{name:"arrows-two-from-center"}),nw=()=>(0,s.jsx)(rt,{name:"arrows-two-to-center"}),Zv=ee("block-text");function ow({children:t,item:e,labels:n}){const o="media"in e?e.media:void 0,r=(0,st.QQ)(o)?.image,a=(0,Vt.ME)(r),i=(0,zs.Ll)(r?.alt??""),u=js()?.settings,d=u?.images,m=u?.zoomOnClick,p=(0,h.useRef)(void 0);let f=(0,s.jsx)(Ln,{alt:i,"data-l10n-id":(0,St.pP)(o),ref:p,src:a});return m&&(f=(0,s.jsx)(Qv,{a11yNameButtonUnzoom:n?.a11yUnzoomImage,a11yNameButtonZoom:n?.a11yZoomImage,children:f})),(0,s.jsxs)("div",{className:Zv("col"),children:[d&&r&&(0,s.jsx)("div",{className:Zv("image"),children:f}),t]})}var rw=c(24779),aw=c.n(rw),iw=c(26422),tu=c(34965);const cw=ee("portal-tooltip"),Ms={LEFT:"LEFT",RIGHT:"RIGHT",ABOVE:"ABOVE",BELOW:"BELOW"},lw=(t,e,n)=>{const o=t.getBoundingClientRect(),r=e.getBoundingClientRect(),a=window.visualViewport;let i=n;(i===Ms.ABOVE||i===Ms.BELOW)&&(o.bottom-r.height<0&&(i=Ms.BELOW),r.height+o.top>a.height&&(i=Ms.ABOVE)),(i===Ms.LEFT||i===Ms.RIGHT)&&(r.left<0&&(i=Ms.RIGHT),r.width+o.left>a.width&&(i=Ms.LEFT));const l={left:0,right:0,top:0,bottom:0};i===Ms.ABOVE&&(l.top=o.top-r.height-25),i===Ms.BELOW&&(l.top=o.top+o.height),i===Ms.RIGHT&&(l.left=o.left+o.width+70),i===Ms.LEFT&&(l.left=o.left-r.width-25),(i===Ms.LEFT||i===Ms.RIGHT)&&(l.top=o.top-o.height/2),(i===Ms.ABOVE||i===Ms.BELOW)&&(l.left=o.left+o.width/2);const u=o.left+o.width/2,d=r.width/2+u>a.width,m=r.width/2>u;d?e.classList.add("portal-tooltip__tooltip--offset-right"):m&&e.classList.add("portal-tooltip__tooltip--offset-left"),Object.keys(l).map(p=>l[p]===0?e.style.removeProperty(p):e.style.setProperty(p,`${l[p]}px`)),e.classList.add(`portal-tooltip__tooltip--${i.toLowerCase()}`)};function dw({children:t,className:e,direction:n=Ms.ABOVE,elementFocused:o,exitAnimation:r=!0,message:a,style:i,renderInModalWhenPresent:l=!1}){const[u,d]=(0,h.useState)(!1),[m]=(0,h.useState)(!1),p=(0,h.useRef)(null),f=(0,h.useRef)(null),[v,g]=(0,iw.A)((()=>t)),C=(0,h.useCallback)(()=>d(!0),[d]),x=(0,h.useCallback)(()=>d(!1),[d]);return(0,h.useEffect)(()=>(document.addEventListener("scroll",C),document.addEventListener("scrollend",x),()=>{document.removeEventListener("scroll",C),document.removeEventListener("scrollend",x)})),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{ref:p,children:v}),a&&(g||m||o)&&!u&&(0,s.jsx)(gs.B1,{classNames:"portal-tooltip__tooltip",exit:r,timeout:200,children:(0,s.jsx)(uw,{buttonRef:p,className:e,direction:n,elementFocused:o,hovering:g,message:a,portalRef:f,renderInModalWhenPresent:l,style:i})})]})}function uw({buttonRef:t,className:e,direction:n,elementFocused:o,hovering:r,message:a,portalRef:i,style:l,renderInModalWhenPresent:u=!1}){const d=(0,h.useCallback)(()=>lw(t.current,i.current,n),[t,n,i]),m=(0,h.useCallback)(()=>{i.current&&d()},[i,d]),p=()=>{!r&&!o&&i.current&&(i.current.style=null)};return(0,tu.A)(m),(0,oo.createPortal)((0,s.jsx)("div",{"aria-hidden":!r||!o,className:cw("tooltip").mix(e).toString(),onTransitionEnd:p,ref:i,style:l,children:a}),u?Lr({id:"portal",childType:"other"}):document.getElementById("portal"))}const Zc=dw,hw=(0,Rs.GF)(),Yc=()=>hw(t=>t.transcriptPanel),mw=({audioPlayerId:t,condensed:e=!1,transcriptMedia:n,onDelete:o,onTranscriptClick:r,onTranscriptClose:a})=>{const{mode:i,disableTranscriptButton:l}=Fd(),u=Yc(),[d,m]=(0,h.useState)(!1),[p,f]=(0,h.useState)(!1),v=(0,st.QQ)(n)?.audio?.transcript,g=(0,h.useCallback)(()=>m(!0),[]),C=(0,h.useCallback)(()=>m(!1),[]),x=(0,h.useCallback)(()=>f(!0),[]),L=(0,h.useCallback)(()=>f(!1),[]),y=(0,xe.vU)(),E=u?.audioPlayerIdOpen&&u.audioPlayerIdOpen===t,b=l?"Transcripts are only available in lesson previews":E?y?.audioHideTranscript:i==="edit"?"Edit transcript":y?.audioShowTranscript,S=(0,h.useCallback)(()=>{const M=document.getElementById(Eh(t));M&&M.focus()},[t]),[T,I]=(0,h.useState)(!1);function j(){l||(E?a?.():(r?.(),I(!0)))}return(0,h.useEffect)(()=>{T&&(I(!1),S())},[T,S]),(0,s.jsxs)(s.Fragment,{children:[o&&(0,s.jsx)(Zc,{elementFocused:d,message:"Remove audio",children:(0,s.jsx)(jt.ArcButton,{hierarchy:"tertiary",icon:(0,s.jsx)(rt,{name:"trash"}),layout:"icon",onBlur:C,onClick:o,onFocus:g,onMouseOut:C,onMouseOver:g,size:e?"sm":"md",type:"button"})}),(i==="edit"||v)&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(Zc,{elementFocused:p,message:b,renderInModalWhenPresent:i==="readonly",style:{whiteSpace:"nowrap"},children:(0,s.jsx)(jt.ArcButton,{"aria-label":b,disabled:l,hierarchy:"tertiary",icon:(0,s.jsx)(rt,{name:"file-audio"}),id:i==="readonly"?iv(t):void 0,layout:"icon",onBlur:L,onClick:j,onFocus:x,onMouseOut:L,onMouseOver:x,size:e?"sm":"md",style:l?{opacity:.5,pointerEvents:"auto"}:void 0,type:"button"})}),E?(0,s.jsx)("div",{onFocus:S,tabIndex:0}):null]})]})};var pw=c(61962);const Yv="change";class fw extends pw.EventEmitter{_isMuted;_isPlaying;_playerId;constructor(e){super(),this.setMaxListeners(e)}get isPlaying(){return this._isPlaying}set isPlaying(e){this._isPlaying=e,this.emit("change")}set playerId(e){this._playerId=e}get playerId(){return this._playerId}pause(){this.isPlaying=!1}addChangeListener(e){this.on(Yv,e)}removeChangeListener(e){this.removeListener(Yv,e)}}const ct=new fw(1/0);var vw=c(89239),Xc=c.n(vw);const xi="group",gw="tablist",Cw="tabpanel",xw="tab",tte="radio",Jc=({caption:t,editable:e,id:n,isOverlayType:o,getL10nValue:r})=>{const a=!!(!o&&!e&&r(t));return{figcaptionId:a?`figcaption-${n}`:void 0,isFigure:a,role:a?"figure":void 0,tagName:a?"figure":"div"}},bw=[.5,.75,1,1.25,1.5,1.75,2].toReversed().map(t=>({value:t,label:`${t}x`})),su=.05,Xv=ee("audio-player-icon"),xa=({x:t,width:e,height:n,y:o,pulseBaseHeight:r,pulseBaseY:a,pulseHeight:i,pulseY:l,delay:u="0s"})=>(0,s.jsx)("rect",{className:Xv("bar"),height:n,rx:1,style:{"--base-height":`${n/10}rem`,"--base-y":`${o/10}rem`,"--pulse-base-height":r&&`${r/10}rem`,"--pulse-base-y":a&&`${a/10}rem`,"--pulse-height":`${i/10}rem`,"--pulse-y":`${l/10}rem`,"--delay":u},width:e,x:t,y:o}),Jv=({animating:t})=>(0,s.jsx)("span",{className:Xv({animating:t}),children:(0,s.jsxs)("svg",{"aria-hidden":"true",height:"16",viewBox:"0 0 20 16",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)(xa,{delay:"0s",height:2,pulseBaseHeight:1,pulseBaseY:7.5,pulseHeight:6,pulseY:5,width:2,x:0,y:7}),(0,s.jsx)(xa,{delay:"0.1s",height:4,pulseBaseHeight:3,pulseBaseY:6.5,pulseHeight:8,pulseY:4,width:2,x:3,y:6}),(0,s.jsx)(xa,{delay:"0.2s",height:10,pulseBaseHeight:8,pulseBaseY:4,pulseHeight:12,pulseY:2,width:2,x:6,y:3}),(0,s.jsx)(xa,{delay:"0.3s",height:16,pulseBaseHeight:12,pulseBaseY:2,pulseHeight:16,pulseY:0,width:2,x:9,y:0}),(0,s.jsx)(xa,{delay:"0.4s",height:8,pulseBaseHeight:6,pulseBaseY:5,pulseHeight:12,pulseY:2,width:2,x:12,y:4}),(0,s.jsx)(xa,{delay:"0.5s",height:11,pulseBaseHeight:9,pulseBaseY:3.5,pulseHeight:15,pulseY:.5,width:2,x:15,y:2.5}),(0,s.jsx)(xa,{delay:"0.6s",height:2,pulseBaseHeight:1,pulseBaseY:7.5,pulseHeight:6,pulseY:5,width:2,x:18,y:7})]})});var yw;function qv(){return document.getElementById("page-wrap")}const ote=t=>{const e=t.value.length;t.focus(),t.setSelectionRange(e,e)},rte=t=>{const e=yw(["current","editor"],t);if(!e)return null;const n=e.value.length;return e.focus(),e.setSelectionRange(n,n),t};function Fh(t,e){const n=t.getBoundingClientRect(),o=window.innerHeight||document.documentElement.clientHeight,r=window.innerWidth||document.documentElement.clientWidth;if(e==="start")return n.top>=0;if(e==="center"){if(n.height>o)return n.top<=0&&n.bottom>=o;const a=o/2,i=n.top+n.height/2,l=o*.25;return Math.abs(a-i)<l}return e==="end"?n.bottom<=o:n.top>=0&&n.left>=0&&n.bottom<=o&&n.right<=r}function eg({anchor:t,popover:e,positionX:n}){if(!t||!e)return null;const o=t.getBoundingClientRect(),a=window.getComputedStyle(t).direction==="rtl",i=window.getComputedStyle(e),l=parseFloat(i.marginTop),u=e.offsetWidth,d=window.visualViewport??{width:window.innerWidth,height:window.innerHeight},m=o.top+o.height+e.offsetHeight+l>d.height?o.top-(l*2+e.offsetHeight):o.top+o.height;let p;if(n==="center"){const f=o.left+o.width/2;p=a?d.width-f-u/2:f-u/2}else n==="right"?p=a?d.width-o.left-u:o.right-u:p=Math.min(a?d.width-o.right:o.left,d.width-u);return{left:p,top:m}}var Lw,zt=c(26372);const nu=zt.createContext(null);function Ew({children:t,isDisabled:e,onClose:n,onOpen:o,onSelect:r,positionX:a="left"}){const[i,l]=zt.useState(!1),u=(0,qe.A)(i),[d,m]=zt.useState(null),p=zt.useRef(null),f=zt.useRef(null),v=zt.useRef(null),x=`${`menu-${zt.useId()}`}-content`,L=zt.useCallback(({direction:k,predFn:w=()=>!0})=>{if(!v.current)return;const O=Array.from(v.current.querySelectorAll('[role="menuitem"]')),W=O.length,G=O.findIndex(Ne=>Ne===document.activeElement);let $,ce,Ee;switch(k){case"start":$=0,ce=1;break;case"end":$=W-1,ce=-1;break;case"backwards":$=G-1,ce=-1;break;case"forwards":$=G+1,ce=1;break;default:$=G+1,ce=1}for(let Ne=0;Ne<=W;Ne++){$>=W?$=0:$<0&&($=W-1);const De=O[$];if(De!=null&&Iw(De)&&w(De)){Ee=De;break}else $=$+ce}Ee&&Ee.focus()},[]),y=zt.useCallback(()=>{L({direction:"start"})},[L]),E=zt.useCallback(()=>{L({direction:"end"})},[L]),b=zt.useCallback(()=>{L({direction:"backwards"})},[L]),S=zt.useCallback(()=>{L({direction:"forwards"})},[L]),T=zt.useCallback(k=>{L({direction:"forwards",predFn:w=>Nw(w,k)})},[L]),I=zt.useCallback(()=>{i?l(!1):(l(!0),setTimeout(S,25))},[S,i]),j=zt.useCallback(()=>{f.current?.focus(),l(!1)},[]),M=zt.useCallback(()=>{l(!0),setTimeout(S,25)},[S]),H=zt.useCallback(()=>{l(!0),setTimeout(b,25)},[b]),D=zt.useCallback(()=>{const{left:k,top:w}=eg({anchor:f.current,popover:v.current,positionX:a});m({transform:`translate3d(${k}px, ${w}px, 0)`,visibility:"visible"})},[a]),P=zt.useCallback(k=>{const w=k.currentTarget;tg(w)||(r?.(w.getAttribute("data-name")),j())},[j,r]),F=zt.useCallback(k=>{const w=k.key;if(k.altKey||k.ctrlKey||k.metaKey)return;let O=!1;if(k.shiftKey)w==="Tab"?b():w.trim()!==""&&T(w),O=!0;else switch(w){case" ":case"Enter":P(k),O=!0;break;case"Esc":case"Escape":j(),O=!0;break;case"ArrowUp":b(),O=!0;break;case"Tab":case"ArrowDown":S(),O=!0;break;case"Home":case"PageUp":y(),O=!0;break;case"End":case"PageDown":E(),O=!0;break;default:T(w);break}O&&(k.stopPropagation(),k.preventDefault())},[j,P,T,y,E,S,b]);return zt.useEffect(()=>{const k=w=>{i&&p.current!=null&&v.current!=null&&!p.current.contains(w.target)&&!v.current.contains(w.target)&&l(!1)};return i?document.addEventListener("click",k):document.removeEventListener("click",k),()=>{document.removeEventListener("click",k)}},[i]),zt.useEffect(()=>(i?window.addEventListener("resize",D):window.removeEventListener("resize",D),()=>{window.removeEventListener("resize",D)}),[D,i]),zt.useEffect(()=>{const k=bd(p.current);for(const w of k)i?w?.addEventListener("scroll",D,{passive:!0}):w?.removeEventListener("scroll",D);return()=>{for(const w of k)w?.removeEventListener("scroll",D)}},[D,i]),zt.useEffect(()=>{i?D():m(null)},[D,i]),zt.useEffect(()=>{if(u&&!i)n?.();else if(!u&&i&&(o?.(),p.current)){const k=new CustomEvent("menuopen",{bubbles:!0,detail:{target:p.current}});p.current.dispatchEvent(k)}},[u,i,n,o]),zt.useEffect(()=>{const k=w=>{w.detail.target!==p.current&&l(!1)};return document.addEventListener("menuopen",k),()=>{document.removeEventListener("menuopen",k)}},[]),(0,s.jsx)(nu.Provider,{value:{htmlIdContent:x,isExpanded:i,onCloseFocusTrigger:j,onExpandFocusMenuItemNext:M,onExpandFocusMenuItemPrevious:H,onFocusMenuItemByPrefix:T,onFocusMenuItemFirst:y,onFocusMenuItemLast:E,onFocusMenuItemNext:S,onFocusMenuItemPrevious:b,onItemClick:P,onItemKeyDown:F,onTriggerClick:I,refContent:v,refTrigger:f,styleContent:d},children:(0,s.jsx)("div",{"aria-owns":x,inert:e?!0:void 0,ref:p,children:t})})}function Sw({as:t,children:e,label:n,labelledBy:o,...r}){const{htmlIdContent:a,isExpanded:i,onTriggerClick:l,onCloseFocusTrigger:u,onExpandFocusMenuItemNext:d,onExpandFocusMenuItemPrevious:m,refTrigger:p}=zt.useContext(nu),f=zt.useCallback(g=>{let C=!1;switch(g.key){case" ":case"Enter":case"ArrowDown":case"Down":d(),C=!0;break;case"Esc":case"Escape":u(),C=!0;break;case"Up":case"ArrowUp":m(),C=!0;break;default:break}C&&(g.stopPropagation(),g.preventDefault())},[u,d,m]),v=t??"button";return(0,s.jsx)(v,{...r,"aria-controls":a,"aria-expanded":i,"aria-haspopup":"menu","aria-label":n,"aria-labelledby":o,"data-menu-trigger":"",onClick:l,onKeyDown:f,ref:p,type:"button",children:e})}function Tw({children:t,className:e}){const{htmlIdContent:n,isExpanded:o,refContent:r,styleContent:a}=zt.useContext(nu);return o?oo.createPortal((0,s.jsx)("div",{className:e,"data-menu-content":"",hidden:o?void 0:!0,id:n,ref:r,role:"menu",style:a,children:t}),Lr()):null}function ou({children:t,className:e,isDisabled:n,name:o,tooltipId:r}){const{onItemClick:a,onItemKeyDown:i}=zt.useContext(nu),l=zt.useCallback(u=>{u.currentTarget?.focus()},[]);return(0,s.jsx)("button",{"aria-describedby":r,"aria-disabled":n,className:e,"data-menu-item":"","data-name":o,onClick:n?void 0:a,onKeyDown:i,onMouseOver:l,role:"menuitem",tabIndex:n?-1:void 0,type:"button",children:t})}function ate({children:t}){return Lw("span",{"data-menu-item-icon":"",children:t})}function tg(t){return t!=null&&t.getAttribute("disabled")!=null||t.getAttribute("aria-disabled")==="true"}function Iw(t){return t!=null&&t.tagName==="BUTTON"&&!tg(t)}function Nw(t,e){return t?.textContent.toLowerCase().startsWith(e?.toLowerCase())}const qc=ee("audio-player-actions-condensed"),Ar=Object.freeze({DeleteAudio:"delete-audio",EditAudio:"edit-audio",EditTranscript:"edit-transcript",RevertToSource:"revert-audio-to-source"}),jw=({audioPlayerId:t,condensed:e=!1,transcriptMedia:n,onTranscriptClick:o,onTranscriptClose:r,item:a,side:i,refs:l})=>{const{mode:u,isVariantLocale:d,handleOpenMediaModal:m,handleDelete:p,handleRevertToSource:f}=Fd(),v=Yc(),g=js(),C=(0,st.gY)(),x=a&&"media"in a&&a.media?C(a.media):void 0,L=x&&"audio"in x?x.audio.aiAudioSettings:void 0,y=(0,st.D_)(),E=bh(),b=y?E(y):"",[S,T]=(0,h.useState)(!1),I=(0,h.useCallback)(()=>T(!0),[]),j=(0,h.useCallback)(()=>T(!1),[]),M=L?.l10nAutoGenStatus==="reverted-to-source",H=d&&"audio"in x&&x.audio?.sourceType==="ai-audio"&&L?.l10nAutoGenStatus!=="unsupported-locale",D=(0,xe.vU)(),P=v?.audioPlayerIdOpen===t,F=P?D?.audioHideTranscript:u==="edit"?"Edit transcript":D?.audioShowTranscript;function k(O){switch(O){case Ar.DeleteAudio:p(g.id,a,l);break;case Ar.EditTranscript:P?r?.():o?.();break;case Ar.EditAudio:m(g,a,l,i,{triggeredFrom:"block_audio_button"});break;case Ar.RevertToSource:f(g.id,a);break}}const w=!!C(n)?.audio?.transcript;return m||p||w?(0,s.jsx)(Zc,{elementFocused:S,message:"Options",children:(0,s.jsxs)(Ew,{onSelect:k,positionX:"left",children:[(0,s.jsx)(Sw,{as:jt.ArcButton,hierarchy:"tertiary",icon:"fa-regular fa-ellipsis",label:"Options",layout:"icon",onBlur:j,onFocus:I,onMouseEnter:I,onMouseLeave:j,shape:"square",size:e?"sm":"md"}),(0,s.jsxs)(Tw,{className:qc("content"),children:[m?(0,s.jsx)(ou,{className:qc("menu-item"),name:Ar.EditAudio,children:"Edit audio"}):null,u==="edit"||w?(0,s.jsx)(ou,{className:qc("menu-item"),name:Ar.EditTranscript,children:F}):null,p&&g?.variant!=="audio"?(0,s.jsx)(ou,{className:qc("menu-item"),name:Ar.DeleteAudio,children:"Remove audio"}):null,f&&H?(0,s.jsx)(jt.ArcTooltip,{id:"revert-to-source-tooltip",isEnabled:M,text:"Audio currently synced to source",children:(0,s.jsxs)(ou,{className:qc("menu-item"),isDisabled:M,name:Ar.RevertToSource,tooltipId:"revert-to-source-tooltip",children:["Revert to source audio (",b,")"]})}):null]})]})}):null};var kw,Aw,Ut=c(26372);const el=Ut.createContext(null);function Rw({children:t,className:e,isDisabled:n,onClose:o,onItemActiveChange:r,onOpen:a,onSelect:i,portalArgs:l,positionX:u="left",value:d}){const[m,p]=Ut.useState(null),f=(0,qe.A)(m),[v,g]=Ut.useState(!1),C=(0,qe.A)(v),[x,L]=Ut.useState(null),y=Ut.useRef(null),E=Ut.useRef(null),b=Ut.useRef(null),T=`select-${Ut.useId()}`,I=`${T}-content`,j=m?.id,M=Ut.useCallback(w=>{const O=w.currentTarget;sg(O)||(g(!1),p(O),i(O.getAttribute("data-value")),w.stopPropagation())},[i]),H=Ut.useCallback(w=>{p(w)},[]),D=Ut.useCallback(()=>{g(w=>!w)},[]),P=Ut.useCallback(()=>{const{left:w,top:O}=eg({anchor:E.current,popover:b.current,positionX:u}),$=window.getComputedStyle(E.current).direction==="rtl"?-w:w;L({transform:`translate3d(${$}px, ${O}px, 0)`,visibility:"visible",width:`${E.current?.offsetWidth}px`})},[u]),F=Ut.useCallback(w=>{const O=Array.from(b.current?.querySelectorAll("[data-select-item]")??[]),W=O.length,G=O.findIndex(Ee=>Ee.getAttribute("data-select-item")==="current");let $,ce=G+1;for(let Ee=0;Ee<W;Ee++){ce>=W&&(ce=0);const Ne=O[Ee];if(Ne!=null&&!sg(Ne)&&Ow(Ne,w)){$=Ee;break}else ce=W-1}$&&(p(O[$]),O[$]?.scrollIntoView({block:"center"}))},[]),k=Ut.useCallback(w=>{const O=w.key;if(w.ctrlKey||w.metaKey)return;let W=!1;const G=Array.from(b.current?.querySelectorAll("[data-select-item]")??[]),$=G.findIndex(ce=>ce.getAttribute("data-select-item")==="current");if(v)if(O.length===1&&O!==" "&&!w.altKey&&!w.ctrlKey&&!w.metaKey)F(O);else switch(O){case" ":case"Enter":g(!1),G[$]!=null&&i(G[$].getAttribute("data-value")),W=!0;break;case"Esc":case"Escape":g(!1),p(G.find(ce=>ce.getAttribute("aria-selected")==="true")),W=!0;break;case"ArrowUp":w.altKey?(g(!1),G[$]!=null&&i(G[$].getAttribute("data-value")??"")):$>0&&(p(G[$-1]),G[$-1].scrollIntoView({block:"center"})),W=!0;break;case"ArrowDown":$<G.length-1&&(p(G[$+1]),G[$+1].scrollIntoView({block:"center"})),W=!0;break;case"Home":p(G[0]),G[0]?.scrollIntoView({block:"center"}),W=!0;break;case"End":p(G[G.length-1]),G[G.length-1]?.scrollIntoView({block:"center"}),W=!0;break;case"PageUp":p(G[0]),G[0]?.scrollIntoView({block:"center"}),W=!0;break;case"PageDown":p(G[G.length-1]),G[G.length-1]?.scrollIntoView({block:"center"}),W=!0;break;case"Tab":g(!1),G[$]!=null&&i(G[$].getAttribute("data-value"));break}else if(O.length===1&&O!==" "&&!w.altKey&&!w.ctrlKey&&!w.metaKey)g(!0),F(O);else switch(O){case" ":case"Enter":g(!0),W=!0;break;case"ArrowUp":g(!0),p(G[0]),W=!0;break;case"ArrowDown":g(!0),W=!0;break;case"Home":g(!0),p(G[0]),W=!0;break;case"End":g(!0),p(G[G.length-1]),W=!0;break}W&&(w.stopPropagation(),w.preventDefault())},[F,v,i]);return Ut.useEffect(()=>{const w=b.current?.querySelector('[data-select-item][aria-selected="true"]');p(w)},[]),Ut.useEffect(()=>{const w=b.current?.querySelector(`[data-select-item][data-value="${d}"]`);p(w)},[d]),Ut.useEffect(()=>{const w=O=>{v&&y.current!=null&&b.current!=null&&!y.current.contains(O.target)&&!b.current.contains(O.target)&&g(!1)};return v?document.addEventListener("click",w):document.removeEventListener("click",w),()=>{document.removeEventListener("click",w)}},[v]),Ut.useEffect(()=>(v?window.addEventListener("resize",P):window.removeEventListener("resize",P),()=>{window.removeEventListener("resize",P)}),[P,v]),Ut.useEffect(()=>{const w=bd(y.current);for(const O of w)v?O?.addEventListener("scroll",P,{passive:!0}):O?.removeEventListener("scroll",P);return()=>{for(const O of w)O?.removeEventListener("scroll",P)}},[P,v]),Ut.useEffect(()=>{v?P():L(null)},[P,v]),Ut.useEffect(()=>{v&&f!=null&&f!==m&&r?.({value:m.getAttribute("data-value")})},[v,f,m,r]),Ut.useEffect(()=>{if(C&&!v)o?.();else if(!C&&v&&(a?.(),y.current)){const w=new CustomEvent("comboboxopen",{bubbles:!0,detail:{target:y.current}});y.current.dispatchEvent(w)}},[C,v,o,a]),Ut.useEffect(()=>{const w=O=>{O.detail.target!==y.current&&g(!1)};return document.addEventListener("comboboxopen",w),()=>{document.removeEventListener("comboboxopen",w)}},[]),(0,s.jsx)(el.Provider,{value:{activeEl:m,htmlIdActiveDescendant:j,htmlIdBase:T,htmlIdContent:I,isExpanded:v,onItemClick:M,onItemHover:H,onTriggerClick:D,onTriggerKeyDown:k,portalArgs:l,refContent:b,refTrigger:E,selectedValue:d,styleContent:x},children:(0,s.jsx)("div",{"aria-owns":I,className:e,inert:n?!0:void 0,ref:y,children:t})})}function Pw({children:t,className:e,labelledBy:n,as:o,...r}){const{htmlIdActiveDescendant:a,htmlIdContent:i,isExpanded:l,onTriggerClick:u,onTriggerKeyDown:d,refTrigger:m}=Ut.useContext(el),p=!!o,f=o??"button";return(0,s.jsxs)(f,{"aria-activedescendant":a,"aria-controls":i,"aria-expanded":l,"aria-haspopup":"listbox","aria-labelledby":n,className:e,"data-select-trigger":p?void 0:"",onClick:u,onKeyDown:d,ref:m,role:"combobox",type:"button",...r,children:[(0,s.jsx)("span",{"data-select-trigger-text":"",children:t}),(0,s.jsx)("span",{"data-select-trigger-icon":"",children:l?(0,s.jsx)(rt,{name:"chevron-up"}):(0,s.jsx)(rt,{name:"chevron-down"})})]})}function ww({children:t,className:e,label:n,labelledBy:o,style:r={}}){const{htmlIdContent:a,isExpanded:i,portalArgs:l,refContent:u,styleContent:d}=Ut.useContext(el);return oo.createPortal((0,s.jsx)("div",{"aria-label":n,"aria-labelledby":o,className:e,"data-select-content":"",hidden:i?void 0:!0,id:a,ref:u,role:"listbox",style:{...d,...r},children:t}),Lr(l))}function cte({children:t,className:e,labelText:n}){const{htmlIdBase:o}=Ut.useContext(el),r=Ut.useId(),a=`${o}-group-label-${r}`;return kw("div",{"aria-labelledby":a,className:e,"data-select-group":"",role:"group",children:[Aw("div",{"data-select-group-label":"",id:a,role:"presentation",children:n}),t]})}function Mw({children:t,className:e,labelledBy:n,isDisabled:o,value:r}){const{activeEl:a,htmlIdBase:i,onItemClick:l,onItemHover:u,selectedValue:d}=Ut.useContext(el),m=Ut.useRef(null),p=Ut.useId(),f=m.current===a,v=r===d,g=`${i}-option-${p}`,C=Ut.useCallback(()=>{u(m.current)},[u]);return(0,s.jsxs)("div",{"aria-disabled":o,"aria-labelledby":n,"aria-selected":v,className:e,"data-select-item":f?"current":"","data-value":r,id:g,onClick:o?void 0:l,onMouseEnter:C,ref:m,role:"option",children:[t,v&&(0,s.jsx)("span",{"data-select-item-selected":"",children:(0,s.jsx)(rt,{name:"check"})})]})}function sg(t){return t!=null&&t.getAttribute("disabled")!=null||t.getAttribute("aria-disabled")==="true"}function Ow(t,e){return t?.textContent.toLowerCase().startsWith(e?.toLowerCase())}const Vh=ee("playback-speed-menu"),Dw=({onChange:t,condensed:e=!1,speed:n})=>{const o=(0,xe.vU)(),[r,a]=(0,h.useState)(!1),i=(0,h.useCallback)(()=>a(!0),[]),l=(0,h.useCallback)(()=>a(!1),[]);return(0,s.jsx)(Zc,{elementFocused:r,message:o?.audioPlaySpeed,children:(0,s.jsxs)(Rw,{className:Vh(),onOpen:l,onSelect:u=>t(parseFloat(u)),portalArgs:{id:"portal",childType:"other"},value:String(n),children:[(0,s.jsxs)(Pw,{"aria-label":o?.audioPlaySpeed,as:jt.ArcButton,className:Vh("trigger"),hierarchy:"tertiary",labelledBy:void 0,layout:"hug",onBlur:l,onFocus:i,onMouseEnter:i,onMouseLeave:l,shape:"square",size:e?"sm":"md",children:[n,"x"]}),(0,s.jsx)(ww,{className:Vh("content"),label:o?.audioPlaySpeed,children:bw.map((u,d)=>(0,s.jsx)(Mw,{value:String(u.value??""),children:u.label},d))})]})})};function Bw(t=!1,e=200){const n=(0,h.useRef)(void 0),[o,r]=(0,h.useState)(t),a=(0,h.useCallback)(()=>{n.current&&clearTimeout(n.current),r(!0)},[]),i=(0,h.useCallback)(l=>{n.current&&clearTimeout(n.current),l?r(!1):n.current=setTimeout(()=>{r(!1)},e)},[e]);return(0,h.useEffect)(()=>()=>{n.current&&clearTimeout(n.current)},[]),{isActive:o,setActive:a,setInactive:i}}const ng=ee("audio-player-volume"),Hw=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"];function Fw(t,e){return e||t<=0?"volumeXmark":t<=1/3?"volumeLow":t<=2/3?"volume":"volumeHigh"}function Vw({condensed:t=!1,muted:e,onChange:n,onMute:o,volume:r}){const a=(0,xe.vU)(),i=(0,h.useRef)(null),l=(0,h.useRef)(null),u=(0,h.useRef)(null),{isActive:d,setActive:m,setInactive:p}=Bw(!1,200),f=e?0:r;function v(C){if(Hw.includes(C.code)){const y=window.getComputedStyle(C.currentTarget).direction==="rtl"?"ArrowLeft":"ArrowRight",E=C.code==="ArrowUp"||C.code===y?Math.min(f+su,1):Math.max(f-su,0);n(E),C.stopPropagation(),C.preventDefault()}else C.code==="KeyM"&&(o(),C.stopPropagation(),C.preventDefault())}(0,h.useEffect)(()=>{u.current.style.setProperty("--slider-volume",`${f*100}%`)},[f]);const g=`${Math.round(f*100)}%`;return(0,s.jsxs)("div",{className:ng(),onKeyDown:v,onMouseEnter:m,onMouseLeave:()=>p(!1),ref:i,children:[(0,s.jsx)(jt.ArcButton,{"aria-label":f<=0?a?.a11yMediaUnmute:a?.a11yMediaMute,color:"primary",hierarchy:"tertiary",icon:(0,s.jsx)(rt,{name:Fw(f,e)}),layout:"icon",onClick:o,ref:l,size:t?"sm":"md",type:"button"}),(0,s.jsx)("input",{"aria-label":a?.a11yMediaVolume,"aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":f*100,"aria-valuetext":g,className:ng("slider").mix(d?"":"visually-hidden"),max:100,min:0,onChange:C=>n(C.currentTarget.valueAsNumber/100),ref:u,type:"range",value:f*100})]})}const En=ee("audio-player"),ru=({currentTime:t,duration:e})=>Math.round(t/e*100)||0,og=t=>{if(!t)return{hours:0,minutes:0,seconds:0};const e=Math.floor(t/3600),n=Math.floor(t%3600/60),o=t%60;return{hours:e,minutes:n,seconds:o}},rg=t=>{const{minutes:e,seconds:n}=og(t);let o="";return e>0&&(o+=`${new Intl.NumberFormat(void 0,{style:"unit",unit:"minute",unitDisplay:"long"}).format(e)} `),o+=new Intl.NumberFormat(void 0,{style:"unit",unit:"second",unitDisplay:"long"}).format(Math.round(n)),o},zw=t=>{const{hours:e,minutes:n,seconds:o}=og(t);function r(l,u,d){return(new Array(d+1).join(u)+l).slice(-d)}const a=r(n,"0",2),i=r(o,"0",2);return e>0?`${e}:${a}:${i}`:`${n}:${i}`};class bi extends h.Component{audio;play;playerControls;seekSlider;onDelete;constructor(e){super(e),this.state={condensed:!1,currentTime:0,playheadPositionSaveThrottle:0,playbackSpeed:1,playerExpanded:!0,shouldLoadPlayheadPosition:!0,volume:1,muted:!1,maxTime:e.audioVideoPlayhead||0},this.handleChange=this.handleChange.bind(this),this.handleClickInsideAudioPlayer=this.handleClickInsideAudioPlayer.bind(this),this.onPlayClick=this.onPlayClick.bind(this),this.onTogglePlayer=this.onTogglePlayer.bind(this)}static defaultProps={allowTabNavigation:!0,mediaSrc:null,onEnd:()=>{},onLoad:()=>{},onPause:()=>{},onPlay:()=>{},onSeek:()=>{},shouldPause:!1,transcriptMedia:null};static timeMs(e){return Math.round(e*1e3)}keySeek(e){const{canRestrictSeek:n}=this.props,{currentTime:o,duration:r}=this.audio,{maxTime:a}=this.state;let i=o+e;n&&i>a&&(i=a);const l=Math.max(0,r-.01);this.audio.currentTime=e<0?Math.max(i,0):Math.min(i,l)}changeVolume=e=>{this.audio.volume=Math.round(e*100)/100,this.audio.muted=!1};muteToggle=()=>{this.audio.volume<=0?(this.audio.volume=1,this.audio.muted=!1):this.audio.muted=!this.audio.muted};changeVolumeDelta=e=>{const n=e<0?Math.max(this.audio.volume+e,0):Math.min(this.audio.volume+e,1);this.changeVolume(n)};componentDidMount(){ct.addChangeListener(this.handleChange)}componentDidUpdate(e,n){const r=this.props.activeIndex!=null&&this.props.itemIndex!=null&&e.activeIndex!==this.props.activeIndex&&this.props.activeIndex!==this.props.itemIndex;(!e.shouldPause&&this.props.shouldPause||r)&&(this.audio.pause(),ct.isPlaying&&ct.playerId===this.props.id&&ct.pause()),n.playbackSpeed!==this.state.playbackSpeed&&(this.audio.playbackRate=this.state.playbackSpeed)}componentWillUnmount(){const{recordMediaPlayheadPosition:e,id:n}=this.props;ct.playerId===n&&ct.pause(),ct.removeChangeListener(this.handleChange),e&&e(ru(this.audio))}handleClickInsideAudioPlayer=e=>{e.stopPropagation(),e.preventDefault()};handleChange(){ct.playerId===this.props.id?this.audio&&(ct.isPlaying&&this.audio.paused?this.audio.play():!ct.isPlaying&&!this.audio.paused&&this.audio.pause(),this.forceUpdate()):ct.isPlaying&&(this.audio.pause(),this.forceUpdate())}containerResizeRef=e=>{const n=new ResizeObserver(([o])=>{if(!o)return;const r=getComputedStyle(document.documentElement),a=parseFloat(r.fontSize)/10;this.setState({condensed:o.contentRect.width<300*a})});return this.setState({condensed:e.getBoundingClientRect().width<256}),n.observe(e),()=>{n.disconnect()}};render(){const{allowTabNavigation:e,id:n,isEditor:o,isOverlayAudio:r,labels:a,mediaSrc:i,mode:l,onDelete:u,onTranscriptClick:d,onTranscriptClose:m,transcriptMedia:p,item:f,side:v,refs:g,transcriptAudioPlayerIdOpen:C}=this.props,x=ct.isPlaying&&ct.playerId===n,{currentTime:L,playerExpanded:y}=this.state,E=this.audio?.duration??0,b=Number.isNaN(E)?0:E,S=Math.round(b-L),T=zw(S),I=rg(S),j=rg(L),M=e?0:-1,H=!o,{a11yGroupAudioPlayer:D,a11yMediaPlay:P,a11yMediaPause:F,a11yMediaSeek:k}=a??{},w=En({overlay:r,collapsed:r&&!y,expanded:!r||y,"volume-slider-below":this.props.volumeSliderPosition==="below"}),O=o||l==="edit"?"Collapse audio player":a?.audioCollapsePlayer,W=o||l==="edit"?"Expand audio player":a?.audioExpandPlayer,G=y?O:W,$=co({refs:g}),Ee=C===$?Eh(C):void 0;return(0,s.jsx)("div",{className:En("container"),onClick:this.handleClickInsideAudioPlayer,ref:this.containerResizeRef,children:(0,s.jsxs)("div",{className:w,id:n,children:[H&&(0,s.jsx)("div",{className:En("waveform"),children:r?(0,s.jsx)(Zc,{message:G,children:(0,s.jsx)("button",{"aria-label":G,className:En("waveform-icon"),onClick:this.onTogglePlayer,type:"button",children:(0,s.jsx)(Jv,{animating:x})})}):(0,s.jsx)("div",{className:En("waveform-icon",{disabled:!0}),children:(0,s.jsx)(Jv,{animating:x})})}),(0,s.jsxs)("div",{"aria-hidden":!e,"aria-label":D,"aria-owns":Ee,className:En("housing",{"with-border":H}),inert:!this.state.playerExpanded,onKeyDown:this.onKeyDown.bind(this),role:xi,tabIndex:M,children:[(0,s.jsxs)("div",{className:En("play-timer-housing"),children:[(0,s.jsx)(jt.ArcButton,{"aria-label":x?F:P,className:En("play"),hierarchy:"tertiary",icon:(0,s.jsx)(rt,{className:En("icon"),name:x?"pause-solid":"play-solid"}),layout:"icon",onClick:this.onPlayClick,ref:Ne=>{this.play=Ne},shape:"square",size:this.state.condensed?"sm":"md",tabIndex:M,type:"button"}),(0,s.jsx)("input",{"aria-label":k,"aria-valuemax":b,"aria-valuemin":0,"aria-valuenow":L,"aria-valuetext":j,className:En("seek-slider"),max:b,min:0,onChange:this.onSeekSliderChange.bind(this),ref:Ne=>{this.seekSlider=Ne},step:.01,type:"range",value:L}),(0,s.jsx)("div",{"aria-label":I,className:En("timer").mix(this.state.condensed?"visually-hidden-always":""),role:"timer",children:T})]}),(0,s.jsxs)("div",{className:En("player-controls"),ref:Ne=>{this.playerControls=Ne},children:[(0,s.jsx)(Dw,{condensed:this.state.condensed,onChange:Ne=>{this.setState({playbackSpeed:Ne})},speed:this.state.playbackSpeed}),(0,s.jsx)(Vw,{condensed:this.state.condensed,muted:this.state.muted,onChange:this.changeVolume,onMute:this.muteToggle,volume:this.state.volume}),l==="readonly"||o?(0,s.jsx)(mw,{audioPlayerId:$,condensed:this.state.condensed,onDelete:u,onTranscriptClick:d,onTranscriptClose:m,transcriptMedia:p}):(0,s.jsx)(jw,{audioPlayerId:$,condensed:this.state.condensed,item:f,onTranscriptClick:d,onTranscriptClose:m,refs:g,side:v,transcriptMedia:p})]})]}),(0,s.jsx)("audio",{className:En("audio-element"),"data-testid":"audio-player-element",onEnded:this.onEnded.bind(this),onLoadedMetadata:this.onLoadedMetadata.bind(this),onPause:this.onAudioPlayPause,onPlay:this.onAudioPlayPause,onSeeked:this.onSeeked.bind(this),onTimeUpdate:this.onTimeUpdate.bind(this),onVolumeChange:this.onVolumeChangeHandler,ref:Ne=>{this.audio=Ne},src:(0,ze.o1)(`${i}`)},"audio-"+n)]},`player-${n}`)})}onKeyDown(e){const o=ro(this.onPlayClick),r=ro(()=>this.keySeek(5)),a=ro(()=>this.keySeek(-5)),i=ro(()=>this.changeVolumeDelta(su)),l=ro(()=>this.changeVolumeDelta(-su)),u=ro(()=>this.muteToggle()),d=C=>C.target===this.play,m=C=>C.target===this.seekSlider,p=C=>this.playerControls===C.target||this.playerControls.contains(C.target),f=On()([[Rc,o],[jr,Tr],[Nr,Tr],[la,Tr],[ca,Tr]]),v=On()([[Rc,o],[SL,r],[TL,a]]),g=On()([[Rc,o],[jr,r],[Nr,a],[ca,i],[la,l],[C=>C.code==="KeyM",u]]);On()([[d,f],[m,v],[p,Tr],[Xc(),g]])(e)}onPlayClick(e){e.stopPropagation(),e.preventDefault();const{audioVideoPlayhead:n}=this.props,{duration:o,paused:r}=this.audio;r&&n&&this.state.shouldLoadPlayheadPosition&&(this.audio.currentTime=o*n/100||0),r?this.audio.play():this.audio.pause()}onAudioPlayPause=e=>{const{dispatch:n,id:o,onPause:r,onPlay:a,recordMediaPlayheadPosition:i,refs:l,transcriptMedia:u}=this.props,{paused:d,currentTime:m,duration:p}=e.currentTarget;if(d)d&&ct.playerId===o&&(ct.isPlaying=!1,r(bi.timeMs(m)),i&&i(ru({currentTime:m,duration:p})));else{ct.playerId=o,ct.isPlaying=!0,a(bi.timeMs(m));const f=co({refs:l});n(kr({audioPlayerId:f,transcriptMedia:u}))}this.setState({shouldLoadPlayheadPosition:!1})};onVolumeChangeHandler=e=>{const{volume:n,muted:o}=e.currentTarget;this.setState({volume:n,muted:o})};onSeekSliderChange(e){const{canRestrictSeek:n}=this.props,{maxTime:o}=this.state;let r=e.currentTarget.valueAsNumber;n&&r>o&&(r=o),this.audio.currentTime=r}onLoadedMetadata(e){const{currentTime:n,duration:o,muted:r,volume:a}=e.currentTarget;this.setState({currentTime:n,muted:r,volume:a});const i=n/o*100;this.seekSlider.style.setProperty("--seek-slider-percent",`${i}%`);const{onLoad:l}=this.props;l()}onEnded(e){const n=e.currentTarget;this.audio.currentTime=0,this.setState({currentTime:n.currentTime}),ct.isPlaying=!1,this.props.onEnd(bi.timeMs(n.currentTime)),this.forceUpdate()}onSeeked(e){const{id:n,onSeek:o,recordMediaPlayheadPosition:r}=this.props,{currentTime:a,duration:i}=e.currentTarget;ct.isPlaying&&ct.playerId!==n&&(ct.isPlaying=!1),ct.playerId=n,o(bi.timeMs(a)),r&&r(ru({currentTime:a,duration:i}))}onTimeUpdate(e){const n=e.currentTarget,{recordMediaPlayheadPosition:o}=this.props,{currentTime:r,duration:a}=n,i=Math.floor(r);r>this.state.maxTime&&this.setState({maxTime:r});const l=r/a*100;this.seekSlider.style.setProperty("--seek-slider-percent",`${l}%`),(0,ze.ih)(),this.setState({currentTime:r}),i%5===0&&this.state.playheadPositionSaveThrottle!==i&&o&&(o(ru(n)),this.setState({playheadPositionSaveThrottle:i}))}onTogglePlayer(e){this.setState(({playerExpanded:n})=>({playerExpanded:!n})),e.preventDefault(),e.stopPropagation()}}const Uw=(0,Rs.Ls)()(bi),or=t=>e=>e!=null&&typeof e=="object"&&"status"in e&&typeof e.status=="string"&&t.includes(e.status),$w=or(["uploading","processing","cropping","crushing"]),dte=or(["canceled"]),ag=or(["complete"]),Ww=or(["cropping"]),_w=or(["crushing"]),Gw=or(["uploading"]),Kw=or(["processing"]),Qw=or(["errored"]),ig=or(["cropping","crushing","errored","processing","uploading"]);function Zw(t){return t==null||typeof t!="object"?0:Object.values(t).filter($w).length}function ute(t){return Math.round(t.loaded*100/t.total)}const hte=t=>t?.file?.name||t?.opts?.filename||"";function mte(t){return t==null||typeof t!="object"?!1:Object.keys(t).length>0&&Zw(t)>0}const au=t=>Z()("upload-progress__wrapper",t),cg=(0,h.createContext)(null);function lg(){return(0,h.useContext)(cg)}const pte=cg.Provider;function Yw(t){function e(n){const o=lg();return o?(0,s.jsx)(t,{...n,getUpload:o.getUpload,handleUploadDismiss:o.handleUploadDismiss}):(0,s.jsx)(t,{...n})}return e.displayName=`withUploadStatusContext(${t.displayName||t.name})`,e}const iu=({onClick:t,text:e})=>(0,s.jsxs)(jt.ArcButton,{hierarchy:"tertiary",onClick:t,size:"sm",type:"button",children:[e,(0,s.jsx)("span",{className:"visually-hidden-always",children:" upload"})]}),zh=20,tl=zh/2,Uh=tl-2,dg=+(2*Math.PI*Uh).toFixed(3),Xw=t=>dg*(100-t)/100;function ug({classes:t,percent:e}){return(0,s.jsxs)("svg",{className:Z()("upload-progress__pie",t),focusable:"false",height:`${zh}px`,width:`${zh}px`,children:[(0,s.jsx)("circle",{className:"upload-progress__border",cx:tl,cy:tl,r:Uh}),(0,s.jsx)("circle",{className:"upload-progress__progress",cx:tl,cy:tl,r:Uh,strokeDasharray:dg,strokeDashoffset:Xw(e)})]})}const Jw=({text:t})=>(0,s.jsxs)("div",{className:"upload-progress",children:[(0,s.jsx)(ug,{classes:"upload-progress__pie--processing",percent:70}),(0,s.jsx)("div",{className:"upload-progress__text",children:t})]}),qw=({percentage:t,text:e="Uploading\u2026"})=>(0,s.jsxs)("div",{className:"upload-progress",children:[(0,s.jsx)(ug,{percent:t}),(0,s.jsx)("div",{className:"upload-progress__text",children:e})]}),$h=({classes:t,jobId:e,onCancel:n,text:o})=>(0,s.jsxs)("div",{className:au(t),children:[(0,s.jsx)(Jw,{text:o}),e&&(0,s.jsx)(iu,{onClick:n,text:"Cancel"})]}),eM=({classes:t,onCancel:e,percentage:n,text:o})=>(0,s.jsxs)("div",{className:au(t),children:[(0,s.jsx)(qw,{percentage:n,text:o}),(0,s.jsx)(iu,{onClick:e,text:"Cancel"})]}),tM=({message:t="Error"})=>(0,s.jsxs)("div",{className:"upload-error",children:[(0,s.jsx)(jt.ArcIcon,{icon:"fa-regular fa-circle-exclamation"}),(0,s.jsx)("div",{className:"upload-error__text",children:t})]}),sM=({classes:t,message:e,onClick:n})=>(0,s.jsxs)("div",{className:au(t),children:[(0,s.jsx)(tM,{message:e}),(0,s.jsx)(iu,{onClick:n,text:"Dismiss"})]}),nM=({message:t="Success"})=>(0,s.jsxs)("div",{className:"upload-success",children:[(0,s.jsx)(jt.ArcIcon,{icon:"fa-regular fa-check"}),(0,s.jsx)("div",{className:"upload-success__text",children:t})]}),oM=({classes:t,message:e,onClick:n})=>(0,s.jsxs)("div",{className:au(t),children:[(0,s.jsx)(nM,{message:e}),n?(0,s.jsx)(iu,{onClick:n,text:"Dismiss"}):null]}),rM=t=>{const{classes:e,data:n={},errorMessage:o,jobId:r,progress:a,onCancelUpload:i,onCancelProcess:l,onErrorDismiss:u,onSuccessDismiss:d,successMessage:m,uploadType:p}=t;return Qw(t)?(0,s.jsx)(sM,{classes:e,message:o||n?.message,onClick:u}):Gw(t)?(0,s.jsx)(eM,{classes:e,onCancel:i,percentage:a,text:`Uploading ${p}\u2026`}):Kw(t)?(0,s.jsx)($h,{classes:e,jobId:r,onCancel:l,text:`Processing ${p}\u2026`}):_w(t)?(0,s.jsx)($h,{classes:e,onCancel:l,text:`Uploading ${p}\u2026`}):Ww(t)?(0,s.jsx)($h,{classes:e,onCancel:l,text:"Cropping image\u2026"}):ag(t)&&m?(0,s.jsx)(oM,{classes:e,message:m,onClick:d}):(0,s.jsx)("div",{})},Wh=ee("audio-player"),aM=Wh("upload-state");function hg({uploadId:t,onAIUploadFinish:e,volumeSliderPosition:n,...o}){const r=lg(),{mode:a}=Fd(),i=Yc(),l=r&&t?r.getUpload(t):null,u=(0,h.useMemo)(()=>l&&l.mediaType==="audio"&&ig(l),[l]),d=(0,qe.A)(u);if((0,h.useEffect)(()=>{!u&&d&&e?.()},[u,d,e]),u){const{jobId:m,status:p,progress:f,data:v}=l,g=x=>()=>r?.handleUploadDismiss(x,l),C=Wh({overlay:o.isOverlayAudio,static:o.isOverlayAudio});return(0,s.jsx)("div",{className:Wh("container"),children:(0,s.jsx)("div",{className:C,children:(0,s.jsx)(rM,{classes:aM,errorMessage:v?.message,jobId:m,onCancelProcess:g("process"),onCancelUpload:g("upload"),onErrorDismiss:g("error"),progress:f,status:p,successMessage:"Processing\u2026",uploadType:"audio"})})})}return(0,s.jsx)(Uw,{...o,mode:a,transcriptAudioPlayerIdOpen:i?.audioPlayerIdOpen??null,volumeSliderPosition:n})}var iM=c(66560),cM=c.n(iM),lM=c(33308),dM=c.n(lM);const mg={course:({courseId:t})=>`/authoring/${t}`,courseLocales:({courseId:t})=>`/manage/locales/${t}`,dashboard:"/manage/all-content",lesson:({courseId:t,lessonId:e})=>`/authoring/${t}/lesson/${e}`};function uM(){const e=(0,xe.DX)()?.id;return(0,h.useCallback)(n=>typeof window<"u"&&window.location?.pathname?.includes("/authoring/")&&e!=null?mg.lesson({courseId:e,lessonId:n}):`/lessons/${n}`,[e])}var hM=c(97865),mM=c(79182),pM=c.n(mM);const fM=/(\.\.\/)|(\.\.\.\.\/)+|%2e%2e\/|%252e%252e\/|%2f\/|\/%2e%2e/gi,vM=t=>typeof t=="string"&&t.replace(fM,""),Sn=pM()(vM,hM.J),gM="about:blank",CM=t=>{const e=t?.trim();if(!e)return null;const n=Sn(e);return n===gM?null:/^(https?:\/\/|mailto:)/i.test(n)||/^(\.?\/|[#?])/.test(n)?n:`http://${n.replace(/^\/\//,"")}`},yi=h.memo(({align:t,alt:e,allowTabNavigation:n=!0,cornerRadius:o,disableZoom:r,getLessonPath:a,height:i,l10nId:l,labels:u,link:d,maxHeight:m=380,onLoad:p,shouldFillWidth:f,src:v,width:g})=>{const C=uM(),x=a??C,L=(0,zs.Ll)(e),y=d?.type==="url"&&d.destination?CM(d.destination):null,E=d?.type==="lesson"&&!!d.destination||!!y,b=n&&!r&&!E,S=Z()("img-img",{"img-img--left":t==="left","img-img--right":t==="right","img-img--center":!t||t==="center","img-img--fill":f});let T={};o!=null&&(T["--corner-radius"]=`${Number(o)}px`),g>0&&i>0&&i>m?(g=Math.round(g*m/i),i=m):m&&(!g||!i)&&(T={maxHeight:m});let I=(0,s.jsx)(Ln,{alt:L,className:S,"data-l10n-id":l,height:i,onLoad:p,src:v,style:T,width:g});return E&&d?d.type==="lesson"?I=(0,s.jsx)(Cn,{className:"img__link",to:x(d.destination),children:I}):y&&(I=(0,s.jsx)("a",{className:"img__link",href:y,rel:"noopener noreferrer nofollow",target:"_blank",children:I})):b&&(I=(0,s.jsx)(Qv,{a11yNameButtonUnzoom:u?.a11yUnzoomImage,a11yNameButtonZoom:u?.a11yZoomImage,children:I})),(0,s.jsx)("div",{className:"img",children:I})});var Lte=c(54543),xM=c(20596),bM=c.n(xM),yM,LM,EM,pg;const{validIframe:fg,validUrl:vg}=it.yG,gg=io()("type","embed"),SM=bM()("type","embedType"),TM=I1()(/http:/i,"https:"),IM=t=>({embedType:"iframe",originalUrl:t,src:t}),NM=t=>ba(t.embed),ba=t=>t?.embedType||t?.type,Ete=t=>EM([[pg(fg),yM(gg,IM,TM)],[pg(vg),LM(gg,SM,t)]]),Ste=Ir()(ot()(hh()(fg),yo.R9),hh()(vg)),Tte="We are unable to generate an embed for this URL. Please check that the URL is valid and the content is publicly accessible.";var ya=c(26372);const Cg=t=>{const e=(0,ze._$)("CDN_USER_CONTENT_URI"),n=new RegExp((0,ze._$)("CDN_URI"),"g");return(0,ze.Hm)()?t:n.test(t)?`${e}${new URL(t).pathname}${new URL(t).search}`:t},jM=t=>{const e=new window.URL("https:"+t);return e.searchParams.set("src",e.searchParams.get("src")+"&disable-auto-focus=true"),e.toString().replace("https:","")},kM=/^\/\/cdn.embedly.+src=.*\.typeform\.com%2F/,AM=t=>kM.test(t),RM=/^\/\//,PM=t=>t?.replace(RM,"https://"),wM=ot()(PM,Nc()(AM,jM),Nc()(Boolean,ze.o1),Sn),MM=t=>{const{paddingBottom:e,ref:n,value:o}=t;return(0,s.jsx)("div",{className:"embed--iframe",dangerouslySetInnerHTML:ya.useMemo(()=>({__html:o}),[o]),ref:n,style:{paddingBottom:e}})};class OM extends ya.Component{player;refIframeContainer=ya.createRef();refIframePlayer=ya.createRef();state={duration:0,isReady:!1};static get defaultProps(){return{allowTabNavigation:!0,shouldPause:!1,showMetaData:!0}}componentDidUpdate(e){!e.shouldPause&&this.props.shouldPause&&ct.isPlaying&&(this.player?.pause(),ct.isPlaying=!1)}componentWillUnmount(){ba(this.props.data)==="video"&&this.teardownPlayer()}handlePlayerReady=()=>{this.player&&(this.player.on("play",this.handlePlayerPlay),this.player.on("timeupdate",this.handlePlayerUpdate),this.setState({isReady:!0}),ct.addChangeListener(this.handlePlayerChange))};handlePlayerPlay=()=>{const{id:e}=this.props;ct.isPlaying&&ct.playerId!==e&&(ct.isPlaying=!1),ct.playerId=e,ct.isPlaying=!0};handlePlayerUpdate=e=>{this.props.progressChanged?.({done:e.seconds/e.duration*100})};handlePlayerChange=()=>{const{id:e}=this.props;ct.playerId===e&&(ct.isPlaying?this.player.play():this.player.pause())};setupPlayer=()=>{this.refIframePlayer.current?.contentWindow!=null&&(this.player!=null&&this.teardownPlayer(),this.player=new(cM()).Player(this.refIframePlayer.current),this.player.on("ready",this.handlePlayerReady))};teardownPlayer=()=>{ct.isPlaying=!1,ct.removeChangeListener(this.handlePlayerChange),this.player&&(this.player.off("play"),this.player.off("ready"),this.player.off("timeupdate"),delete this.player)};playerSupportsMethods=e=>{const n=o=>this.player.supports("method",o);return dM()(n)(e)};togglePlay=()=>{this.playerSupportsMethods(["play","pause"])&&this.player.on("ready",()=>{this.player.getPaused(e=>{e?this.player.play():this.player.pause()})})};keySeek=e=>{this.playerSupportsMethods(["getCurrentTime","setCurrentTime"])&&this.player.on("ready",()=>{this.player.getCurrentTime(n=>{this.player.setCurrentTime(n+e)})})};changeVolume=e=>{this.playerSupportsMethods(["getVolume","setVolume"])&&this.player.getVolume(n=>{this.player.setVolume(n+e)})};onKeyDown=e=>{const r=ro(this.togglePlay),a=ro(()=>this.keySeek(5)),i=ro(()=>this.keySeek(-5)),l=ro(()=>this.changeVolume(10)),u=ro(()=>this.changeVolume(-10));On()([[F1,r],[jr,a],[Nr,i],[ca,l],[la,u]])(e)};renderProvider=()=>{const{allowTabNavigation:e,embedId:n,externalLinksDisabled:o,onLinkBlur:r,onLinkFocus:a,onLinkMouseEnter:i,onLinkMouseLeave:l,showMetaData:u,data:d}=this.props,{providerUrl:m,provider:p,favicon:f}=d;if(!(u&&m))return null;const v=Sn(m),g=o&&Pn(v),C=`${n}-provider`,x=g?"":void 0,L=g?void 0:v,y=g?void 0:"noopener noreferrer",E=g?"button":void 0,b=g?void 0:"_blank";return(0,s.jsx)("h2",{className:"embed__provider",children:(0,s.jsxs)("a",{className:"brand--hoverColor","data-external":x,href:L,id:g?C:void 0,onBlur:g?()=>r?.(C):void 0,onFocus:g?()=>a?.(C):void 0,onMouseEnter:g?()=>i?.(C):void 0,onMouseLeave:g?()=>l?.(C):void 0,rel:y,role:E,style:g?{display:"inline-block"}:void 0,tabIndex:e?0:-1,target:b,children:[(0,s.jsx)(Ln,{alt:f?p:"",className:"embed__providerIcon",src:f}),(0,s.jsx)("span",{className:"embed__providerName",children:p})]})})};renderMetaData=()=>{const{allowTabNavigation:e,data:n,embedId:o,externalLinksDisabled:r,labels:a,onLinkBlur:i,onLinkFocus:l,onLinkMouseEnter:u,onLinkMouseLeave:d,showMetaData:m}=this.props,{src:p,title:f,description:v,provider:g}=n,C=ba(n);if(!m&&C!=="link")return null;const x=Sn(p),L=r&&Pn(x),y=`${o}-metadata-title`,E=`${o}-metadata-readmore`,b=S=>({"data-external":L?"":void 0,href:L?void 0:x,id:L?S:void 0,onBlur:L?()=>i?.(S):void 0,onFocus:L?()=>l?.(S):void 0,onMouseEnter:L?()=>u?.(S):void 0,onMouseLeave:L?()=>d?.(S):void 0,rel:L?void 0:"noopener noreferrer nofollow",role:L?"button":void 0,style:L?{display:"inline-block"}:void 0,tabIndex:e?0:-1,target:L?void 0:"_blank"});return(0,s.jsxs)("div",{className:"embed__meta__content",children:[(0,s.jsx)("h2",{className:"embed__title",children:(0,s.jsx)("a",{className:"brand--hoverColor",...b(y),children:(0,s.jsx)(Et,{value:f})})}),(0,s.jsx)(Et,{className:"embed__description",value:v}),(0,s.jsxs)("a",{className:"embed__readMore brand--hoverColor",...b(E),children:[C==="link"?`${a?.embedReadMore} ${g}`:`${a?.embedViewOn} ${g}`,(0,s.jsx)("i",{className:"icon icon-chevron-right"})]})]})};render(){const{allowTabNavigation:e,data:n,embedId:o,externalLinksDisabled:r,isLesson:a,labels:i,onLinkBlur:l,onLinkFocus:u,onLinkMouseEnter:d,onLinkMouseLeave:m,showMetaData:p}=this.props,{useRelativePath:f}=n??{},{description:v,originalUrl:g,src:C,thumbnail:x,title:L}=n,y=ba(n);if(y==="iframe"){const E=document.createElement("div");E.innerHTML=(0,yo.R9)(C);const b=E.firstChild,S=b&&b.tagName&&b.tagName.toLowerCase()==="iframe";let T=100,I=32;if(J7(window.location.href)&&f)return(0,s.jsxs)("div",{children:[(0,s.jsx)("h2",{className:"embed__relativeUrl--iframe",children:"Embedded iframe with a relative url"}),(0,s.jsx)("p",{className:"embed__relativeUrl--title",children:L}),(0,s.jsx)("p",{className:"embed__relativeUrl--url",children:g})]});if(S){const F=b.width.match(/%/),k=parseInt(b.width);b.src=Sn(b.src),T=F?700*(k/100):k||16,I=parseInt(b.height)}const j=I/T,M=S?`${j*100}%`:"3rem";if(b.src.includes("typeform")){const F=new window.URL(b.src);F.searchParams.append("disable-auto-focus","true"),b.src=F.toString()}if(b.src.includes("forms.office.com")){const F=new window.URL(b.src);F.searchParams.append("embed","true"),b.src=F.toString()}const P=S?b.outerHTML:"<div>Error: Invalid iframe tag. Please check the iframe source.</div>";return(0,s.jsxs)("div",{"aria-hidden":!e,"aria-label":i?.embedPlayerGroup,className:"embed",role:xi,children:[f&&(0,s.jsx)("div",{className:"embed__title embed--iframe__title",children:L}),(0,s.jsx)(MM,{paddingBottom:M,ref:this.refIframeContainer,value:P})]})}else if(a){const E=f?C:Sn(C),b=r&&Pn(E),S=`${o}-lesson-title`,T=`${o}-lesson-url`,I=b?"":void 0,j=b?void 0:E,M=b?void 0:"noopener noreferrer nofollow",H=b?"button":void 0,D=b?void 0:"_blank";if(f){const P={"data-external":b?"":void 0,href:E,id:b?S:void 0,onBlur:b?()=>l?.(S):void 0,onFocus:b?()=>u?.(S):void 0,onMouseEnter:b?()=>d?.(S):void 0,onMouseLeave:b?()=>m?.(S):void 0,rel:b?void 0:"noopener noreferrer nofollow",role:b?"button":void 0,tabIndex:e?0:-1,target:b?void 0:"_blank"};return(0,s.jsxs)("div",{"aria-hidden":!e,"aria-label":i?.a11yBlockEmbed,className:"embed embed--link embed--rich",role:xi,children:[(0,s.jsx)("h2",{className:"embed__title",children:(0,s.jsx)("a",{className:"brand--hoverColor",...P,children:(0,s.jsx)(Et,{value:L})})}),["link","photo"].includes(y)?(0,s.jsxs)("a",{className:"embed__relativeUrl--url","data-external":I,href:j,id:b?T:void 0,onBlur:b?()=>l?.(T):void 0,onFocus:b?()=>u?.(T):void 0,onMouseEnter:b?()=>d?.(T):void 0,onMouseLeave:b?()=>m?.(T):void 0,rel:M,role:H,tabIndex:e?0:-1,target:D,children:[E,y==="photo"?(0,s.jsx)("div",{className:"embed__relativeUrl--image",children:(0,s.jsx)(Ln,{alt:x?L:"",className:"embed__img",src:E})}):null]}):this.renderEmbedIframe({allowTabNavigation:e,labels:i,src:C,thumbnail:x,title:L,type:y})]})}return(0,s.jsxs)("div",{"aria-hidden":!e,"aria-label":i?.a11yBlockEmbed,className:"embed embed--link embed--rich",role:xi,children:[this.renderProvider(),["link","photo"].includes(y)?(0,s.jsx)("a",{"data-external":I,href:j,id:b?T:void 0,onBlur:b?()=>l?.(T):void 0,onFocus:b?()=>u?.(T):void 0,onMouseEnter:b?()=>d?.(T):void 0,onMouseLeave:b?()=>m?.(T):void 0,rel:M,role:H,tabIndex:e?0:-1,target:D,children:(0,s.jsx)(Ln,{alt:x?L:"",className:"embed__img",src:Cg(x)})}):this.renderEmbedIframe({allowTabNavigation:e,labels:i,src:C,thumbnail:x,title:L,type:y}),this.renderMetaData()]})}else if(y==="link"){const E=f?C:Sn(C),b=f||r&&Pn(E),S=`${o}-link-readmore`,T=b?"":void 0,I=b?void 0:E,j=b?void 0:"noopener noreferrer nofollow",M=b?"button":void 0,H=b?void 0:"_blank";return(0,s.jsxs)("div",{"aria-hidden":!e,"aria-label":i?.embedLinkGroup,className:"embed embed--link brand--linkColor",role:xi,children:[(0,s.jsx)(Et,{className:"embed__title",value:L}),(0,s.jsx)(Et,{className:"embed__description",value:v}),(0,s.jsx)("a",{className:"embed__readMore brand--hoverColor","data-external":T,href:I,id:b?S:void 0,onBlur:b?()=>l?.(S):void 0,onFocus:b?()=>u?.(S):void 0,onMouseEnter:b?()=>d?.(S):void 0,onMouseLeave:b?()=>m?.(S):void 0,rel:j,role:M,target:H,children:i?.embedReadMore})]})}else return(0,s.jsxs)("div",{className:"embed embed--media",children:[p?(0,s.jsx)(Et,{"aria-hidden":!e,className:"embed__title",value:L}):null,this.renderEmbedIframe({allowTabNavigation:e,labels:i,src:C,thumbnail:x,title:L,type:y})]})}renderEmbedIframe=e=>{const{allowTabNavigation:n,labels:o,src:r,thumbnail:a,title:i,type:l}=e,{useRelativePath:u}=this.props.data??{};if(l==="photo")return(0,s.jsx)("figure",{className:"embed__media-wrap embed__media-wrap--photo",children:(0,s.jsx)(yi,{allowTabNavigation:n,labels:o,src:Cg(a)})});{const d=xn.isIe11||xn.isEdge,m=Z()("embed__media-wrap",{"embed__media-wrap--ms_browser":d});return(0,s.jsxs)("figure",{"aria-hidden":!n,"aria-label":o?.embedPlayerGroup,className:m,onKeyDown:this.onKeyDown,ref:this.refIframeContainer,tabIndex:n?0:-1,children:[(0,s.jsx)("meta",{content:"origin",name:"referrer"}),(0,s.jsx)("iframe",{allowFullScreen:!0,className:"embed__media",frameBorder:"0",inert:n?void 0:!0,loading:"lazy",onLoad:this.setupPlayer,ref:this.refIframePlayer,scrolling:u?"yes":"no",src:u?r:wM(r),title:i})]})}}}const DM=hd()({externalLinksDisabled:Xt()(["course","externalLinksDisabled"])}),BM=t=>{const{handleMouseEnter:e,handleMouseLeave:n,handleFocus:o,handleBlur:r}=md(),[a,i]=ya.useState([]),l=ya.useId();return ya.useEffect(()=>{if(!t.externalLinksDisabled||!t.data){i([]);return}const u=[],{providerUrl:d,src:m,useRelativePath:p}=t.data,f=ba(t.data);t.isLesson&&m&&Pn(Sn(m))&&(u.push(`${l}-lesson-title`),["link","photo"].includes(f)&&u.push(`${l}-lesson-url`),f!=="iframe"&&(u.push(`${l}-metadata-title`),u.push(`${l}-metadata-readmore`)),d&&Pn(Sn(d))&&u.push(`${l}-provider`)),!t.isLesson&&t.showMetaData&&d&&Pn(Sn(d))&&u.push(`${l}-provider`),!t.isLesson&&t.showMetaData&&m&&Pn(Sn(m))&&f!=="iframe"&&(u.push(`${l}-metadata-title`),u.push(`${l}-metadata-readmore`)),f==="link"&&(p||m&&Pn(Sn(m)))&&u.push(`${l}-link-readmore`),i(u)},[t.externalLinksDisabled,t.data,t.showMetaData,t.isLesson,l]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(OM,{...t,embedId:l,onLinkBlur:r,onLinkFocus:o,onLinkMouseEnter:e,onLinkMouseLeave:n}),a.map(u=>(0,s.jsx)(pd,{anchorId:u},u))]})},xg=(0,Rs.Ls)(DM)(BM);var HM=c(16601);function bg({allowTabNavigation:t=!0,audioVideoPlayhead:e,canAdjustPlaybackSpeed:n,canRestrictSeek:o,captions:r,cornerRadius:a,id:i,onLoad:l,poster:u,progressChanged:d,recordMediaPlayheadPosition:m,ref:p,shouldPause:f,src:v,subtitle:g,type:C}){const x=h.useRef(null),L=h.useCallback($=>{x.current=$,typeof p=="function"?p($):p&&(p.current=$)},[p]),y=(0,qe.A)(f),E=(0,xe.DX)(),{currentLocale:b}=(0,bt.nY)(),S=(0,xe.vU)(),T=(0,xe.nZ)(),I=bh(),j=C==="customVideo",M=h.useCallback($=>{(0,ze.ih)(),d?.($)},[d]),H=h.useCallback($=>{m?.($)},[m]),D=h.useCallback(()=>{ct.playerId=i,ct.isPlaying=!0},[i]),P=h.useCallback(()=>{ct.playerId===i&&(ct.isPlaying=!1)},[i]),[F,k]=h.useState(!1),w=h.useRef(!1),O=h.useCallback(()=>{k(!0),l?.()},[l]);h.useEffect(()=>{F&&!w.current&&e!=null&&e>0&&(x.current?.seekToPercent(e),w.current=!0)},[F,e]),h.useEffect(()=>{!y&&f&&x.current?.pause()},[y,f]),h.useEffect(()=>{const $=()=>{(!ct.isPlaying||ct.playerId!==i)&&x.current?.pause()};return ct.addChangeListener($),()=>{ct.removeChangeListener($)}},[i]);const W=h.useMemo(()=>{const $={};return(typeof a=="number"||typeof a=="string")&&($["--video-corner-radius"]=`${Number(a)}px`),$},[a]),G=u==null?void 0:j?u:(0,ze.o1)(u);return(0,s.jsxs)(HM.L,{crossOrigin:xn.isLocalFilesystem?void 0:"anonymous",enablePlaybackSpeed:n??void 0,enableSeek:o==null?void 0:!o,inert:!t,labelCaptions:S?.a11yMediaCaptions,labelCaptionsOff:S?.a11yMediaCaptionsOff,labelContainer:S?.a11yGroupVideoPlayer??"Video player",labelCurrentTime:S?.a11yMediaCurrentTime,labelDuration:S?.a11yMediaDuration,labelExitFullscreen:S?.a11yMediaExitFullscreen,labelExitPictureInPicture:S?.a11yMediaExitPictureInPicture,labelFullscreen:S?.a11yMediaFullscreen,labelMute:S?.a11yMediaMute,labelPause:S?.a11yMediaPause,labelPictureInPicture:S?.a11yMediaPictureInPicture,labelPlay:S?.a11yMediaPlay,labelPlaybackRate:S?.a11yMediaPlaybackRate,labelPlayVideo:S?.a11yMediaPlayVideo,labelRemainingTime:S?.a11yMediaRemainingTime,labelSeek:S?.a11yMediaSeek,labelSeekDisabled:S?.a11yMediaSeekDisabled,labelUnmute:S?.a11yMediaUnmute,labelVolume:S?.a11yMediaVolume,language:T??b??E?.locale??void 0,onLoad:O,onPause:P,onPlay:D,onPlayheadSave:H,onTimeUpdate:M,poster:G,ref:L,style:W,timeUpdateInterval:1e3,children:[(0,s.jsx)("source",{src:`${j?v:(0,ze.o1)(v)}?v=1`,type:j?"application/x-mpegURL":void 0}),r==null&&g&&(0,s.jsx)("track",{kind:"captions",label:"English",src:j?g:(0,ze.o1)(g),srcLang:"en"}),r?.map($=>(0,s.jsx)("track",{kind:"captions",label:$.name||I?.($.code),src:$.url||($.key!=null?(0,ze.o1)($.key):void 0),srcLang:$.code},$.id))??null]})}var yg=c(26372);function Jt(t){const e=yg.forwardRef((n,o)=>{const r=(0,st.gY)();return(0,s.jsx)(t,{...n,getL10nValue:r,ref:o})});return e.displayName=`withLocalizedLookup(${t.displayName||t.name})`,e}function FM(t){const e=yg.forwardRef((n,o)=>{const r=(0,st.gY)(),a=(0,st.NB)();return(0,s.jsx)(t,{...n,getL10nRecursive:a,getL10nValue:r,ref:o})});return e.displayName=`withLocalizedLookupRecursive(${t.displayName||t.name})`,e}var VM=c(80687),Lg=c.n(VM),zM=c(60922),UM=c.n(zM);const $M=t=>({...t,courseId:t.courseId||Xt()(["course","id"],t)}),WM=t=>({...t,lessonId:t.lessonId||Xt()(["lesson","id"],t)}),_M=({id:t,courseId:e,lessonId:n,refs:o})=>t||(o&&n?`${n}-${o}`:n||e),_h=ot()(_M,WM,$M),Nte=Ts()(O1()(Ct()("id"),Lg()("id",_h)),Ir()(UM()(Ct(),[Ct()("id"),Ct()("uploads")]),Xn()(["id"])),Lg()("isUploading",Ft()("status","uploading")));function jte(t){const e=t.match(/^(.*\/)?([^/]+)$/);if(!e)return encodeURIComponent(t);const n=e[1]??"",o=e[2],r=encodeURIComponent(o);return`${n}${r}`}function GM(t){return t.replace(/%2F/g,"/")}var KM=c(26372);const Gh=t=>!!(t&&("key"in t&&t.key||"src"in t&&t.src)),cu=t=>Gh(t)&&!t.isProcessing&&!t.error,QM=(t,e)=>e?.mediaType==="audio"?!!t&&(Gh(t)||ig(e)||ag(e)&&!Gh(t)):cu(t),ZM=t=>Nc()(os()(!!t),aw()(`-${t}`));class YM extends KM.Component{constructor(e){super(e),this.onTranscriptClick=this.onTranscriptClick.bind(this)}static get defaultProps(){return{defaultAlign:"left",media:{},index:"1",hasPadding:!0,opts:{},allowTabNavigation:!0,lessonNumber:1,getL10nValue:()=>{}}}onTranscriptClick(){const{block:e,blockId:n,openTranscript:o,refs:r}=this.props,a=e?.items?.length===1?e.items[0]:void 0,i=this.props.item??a;let l=n;try{e!=null&&typeof e=="object"&&!Array.isArray(e)?"blockId"in e?l=e.blockId:"id"in e&&(l=e.id):e?.id&&(l=e.id)}catch{l=n}let u="";try{i!=null&&typeof i=="object"&&!Array.isArray(i)&&"id"in i&&(u=String(i.id))}catch{u=""}const d=r??`items:${l||""}/items:${u}`;if((e||n)&&i&&o)return o({blockId:e?.id??n,item:i,refs:d})}renderAudio(e,n){const{activeIndex:o,allowTabNavigation:r,block:a,blockId:i,getL10nValue:l,index:u,isOverlayAudio:d,item:m,itemIndex:p,labels:f,lessonNumber:v,shouldPause:g,side:C}=this.props,{audio:x}=l(e),L=a&&typeof a=="object"&&"blockId"in a?a.blockId:a?.id||i||"",y=m&&typeof m=="object"&&"id"in m?m.id:"",E=this.props.refs??`items:${L}/items:${y}`,b=`audio-${v}-${u}`;return(0,s.jsx)(hg,{activeIndex:o,allowTabNavigation:r,id:b,isOverlayAudio:d,item:m,itemIndex:p,labels:f,mediaSrc:x.key,onTranscriptClick:this.onTranscriptClick,onTranscriptClose:this.props.closeTranscript,refs:E,shouldPause:x.pause||g,side:C,transcriptMedia:e,uploadId:n,volumeSliderPosition:this.props.volumeSliderPosition},b)}renderImage(e){const{allowTabNavigation:n,cornerRadius:o,defaultAlign:r,getL10nValue:a,imageMaxHeight:i,index:l,labels:u,onLoad:d,opts:m}=this.props,p=e?.align??r,f=e?.dimensions,v=`image-${l}`,{disableZoom:g}=m,C=a(e?.link?.destination),x=e?.link&&typeof C=="string"?{type:e.link.type,destination:C}:void 0;return(0,s.jsx)(yi,{align:p,allowTabNavigation:n,alt:e.alt,cornerRadius:o,disableZoom:g,height:f?.height||f?.originalHeight,labels:u,link:x,maxHeight:i,onLoad:d,shouldFillWidth:e.fillWidth,src:(0,Vt.ME)(e),width:f?.width||f?.originalWidth},v)}renderVideo(e){const{allowTabNavigation:n,blockId:o,lessonNumber:r,index:a,enableVideoPlaybackSpeed:i,shouldPause:l}=this.props,u=e.skipProcess?GM(e.poster):e.poster,d=ZM(o)(`video-${r}-${a}-${u||""}`);return(0,s.jsx)(bg,{allowTabNavigation:n,canAdjustPlaybackSpeed:i,captions:e.captions,id:d,poster:u,shouldPause:e.pause||l,src:e.key},d)}renderEmbed(e){const{allowTabNavigation:n,embedClass:o,labels:r,opts:a,shouldPause:i}=this.props,{fullEmbed:l,showMetaData:u=!0}=a,d=`embed-${this.props.index}`;return(0,s.jsx)("div",{className:o,children:(0,s.jsx)(xg,{allowTabNavigation:n,data:e,id:d,isLesson:l,labels:r,shouldPause:e.pause||i,showMetaData:u},d)})}render(){const{blockId:e,hasPadding:n,item:o,lessonId:r,renderMediaType:a}=this.props,i=o&&typeof o=="object"&&"id"in o?o.id:"",l=this.props.refs??`items:${e??""}/items:${i}`,u=this.props.media,d=Z()({"media-group":n}),{audio:m,embed:p,image:f,video:v}=this.props.getL10nValue(u)??{},g=_h({lessonId:r,refs:l}),C=this.props.getUpload?this.props.getUpload(g):null;return(0,s.jsxs)("div",{className:d,"data-l10n-id":(0,St.pP)(u),children:[(!a||a==="image")&&cu(f)&&this.renderImage(f),(!a||a==="audio")&&QM(m,C)&&this.renderAudio(u,g),(!a||a==="video")&&cu(v)&&this.renderVideo(v),(!a||a==="embed")&&cu(p)&&this.renderEmbed(p)]})}}const $s=(0,Rs.Ls)()(Yw(Od(av(Jt(YM)))));function lo(t,e,n,o){const a=e==="bottom"||!n&&e!=="top"?"bottom":"top",i={renderOrder:["text"],isOverlayAudio:!1};if(!t)return i;const l=!!t.audio,u=!!t.image,d=!!t.video,m=!!t.embed,p=u||d,f=()=>{const C=u?"image":"video",x={top:l?["audio","text",C]:["text",C],bottom:l?["text","audio",C]:["text",C],legacyTop:l?["audio",C,"text"]:[C,"text"],legacyBottom:l?[C,"text","audio"]:[C,"text"]};return n&&o==="timeline"&&!e?x.top:n&&o!=="timeline"?a==="bottom"?x.legacyBottom:x.legacyTop:a==="bottom"?x.bottom:x.top},v=()=>{const C={top:l?["audio","text","embed"]:["text","embed"],bottom:l?["text","embed","audio"]:["text","embed"],legacyTop:l?["audio","embed","text"]:["embed","text"],legacyBottom:l?["embed","text","audio"]:["embed","text"]};return n&&o==="timeline"&&!e?C.legacyTop:n&&o!=="timeline"?a==="bottom"?C.legacyBottom:C.legacyTop:a==="bottom"?C.bottom:C.top},g=()=>a==="bottom"?["text","audio"]:["audio","text"];return l&&!p&&!m?{...i,renderOrder:g()}:p&&!l&&!m?{...i,renderOrder:f()}:m&&!l&&!p?{...i,renderOrder:v()}:l&&p&&!m?o==="statement"?{...i,renderOrder:g()}:o==="labeled-graphic"||a==="top"||o==="process"?{...i,renderOrder:f(),audioOnlyMedia:{audio:t.audio},imageOnlyMedia:{image:t.image},videoOnlyMedia:{video:t.video}}:{...i,renderOrder:t.video?["text","video","audio"]:["text","overlay"],audioOnlyMedia:{audio:t.audio},imageOnlyMedia:{image:t.image},videoOnlyMedia:{video:t.video},isOverlayAudio:!t.video}:l&&m&&!p?{...i,renderOrder:v(),audioOnlyMedia:{audio:t.audio},embedOnlyMedia:{embed:t.embed}}:i}var XM=c(26372);const Ro=ee("block-text"),JM=class extends XM.Component{renderHeadingDelegate;renderTextDelegate;constructor(t){super(t),this.renderTextDelegate=this.renderText.bind(this),this.renderHeadingDelegate=this.renderHeading.bind(this)}static get defaultProps(){return{columns:1,heading:"",items:[],type:"onecol",getL10nValue:()=>{}}}getHeadingComponent=()=>{const{heading:t}=this.props;return t?t==="heading"?"h2":"h3":"div"};renderHeading(t){const e="heading"in t?t.heading:null;return(0,s.jsx)(Et,{value:e})}renderText(t){const{labels:e,takingSnapshot:n,variant:o}=this.props,r=o?.includes("column"),a="paragraph"in t?t.paragraph:void 0;return r||n?(0,s.jsx)(ow,{item:t,labels:e,children:(0,s.jsx)(ls,{value:a||""})}):(0,s.jsx)(ls,{className:Ro("col"),value:a||""})}render(){const{blockId:t,columns:e,defaultBackgroundColor:n,heading:o,isLearner:r,items:a,labels:i,lessonId:l,media:u,settings:d,type:m,variant:p,renderText:f=this.renderTextDelegate,renderHeading:v=this.renderHeadingDelegate,getL10nValue:g}=this.props,C=g(u),x=Object.keys(C?.audio??{}).length>0,{audioPosition:L,entranceAnimation:y,cellPadding:E=1.5,tableWidth:b=76,textPadding:S=.8,textWidth:T=76}=d,I=p==="table",j=e===1,M=e>1,H=I?b:T,D=!I&&j,P=I,F=FP(E),k=VP(S),w=Bh(H),O=Ro({[m]:!D&&!P||M,[`${m}-custom-width`]:!M,[`${m}-custom-width-table-${w}`]:P,[`${m}-custom-width-text-${w}`]:D,[`heading-custom-text-padding-${k}`]:D,[`${m}-custom-cell-padding-${F}`]:P,"no-animation":!y}),W=e>2?Ro("container-wide"):Ro("container",{authoring:!r}),G=this.getHeadingComponent(),$=g(Array.isArray(u)?{}:u),ce=lo($,L);return(0,s.jsx)(kt,{className:O.toString(),defaultBackgroundColor:n,children:(0,s.jsxs)("div",{className:W,"data-block-id":t,"data-block-text":"",children:[(0,s.jsx)("div",{className:Ro("row"),children:o!==""?a.slice(0,1).map((Ee,Ne)=>(0,s.jsx)("div",{className:Ro("col"),children:(0,s.jsx)("div",{className:Ro("heading"),children:(0,s.jsx)(G,{children:v(Ee)})})},"id"in Ee?Ee.id:Ne)):null}),ce.renderOrder.map((Ee,Ne)=>{if(Ee==="text")return(0,s.jsx)("div",{className:Ro("row"),children:m!=="heading"?a.slice(0,e).map((De,Ke)=>(0,s.jsx)(h.Fragment,{children:f(De)},"id"in De?De.id:Ke)):null},`text-${Ne}`);if(Ee==="audio"&&x){const De=ce.renderOrder.indexOf("audio")<ce.renderOrder.indexOf("text");return(0,s.jsx)("div",{className:Ro("row",{media:!0,top:De,bottom:!De,hasHeading:p==="heading paragraph"||p==="subheading paragraph"}),children:(0,s.jsx)("div",{className:Ro("col",{media:!0}),children:(0,s.jsx)($s,{blockId:t,hasPadding:!1,index:t,item:{id:t,media:u},labels:i,lessonId:l,media:u,refs:`items:${t}`})})},`audio-${Ne}`)}})]})})}},Rr=Jt(JM),qM=Rr,eO=t=>(0,s.jsx)(Rr,{columns:2,type:"twocol",...t}),tO=t=>(0,s.jsx)(Rr,{columns:3,type:"threecol",...t}),sO=t=>(0,s.jsx)(Rr,{columns:4,type:"fourcol",...t}),nO=t=>(0,s.jsx)(Rr,{heading:"heading",type:"heading",...t}),oO=t=>(0,s.jsx)(Rr,{heading:"subheading",type:"heading",...t}),rO=t=>(0,s.jsx)(Rr,{heading:"heading",...t}),aO=t=>(0,s.jsx)(Rr,{heading:"subheading",...t});var sl=c(26372);const iO=1e3,cO={fadeInGrow:"scale(0.95)",fadeInLeft:"translateX(-50px)",fadeInLeftSmall:"translateX(-25px)",fadeInRight:"translateX(50px)",fadeInUp:"translateY(25px)"},lO=t=>{const{afterAnimatedIn:e,animateIn:n="fadeIn",children:o,className:r,duration:a=1,initiallyVisible:i,siblingDelay:l=0}=t,u=sl.useRef(null),[d,m]=sl.useState(!1);sl.useEffect(()=>{const f=u.current;if(i&&f){m(!0);return}if(d||!f||typeof window>"u")return;const v=qv(),g=new IntersectionObserver(([x])=>{x!=null&&(x.isIntersecting||x.intersectionRatio>0)&&(m(!0),g.unobserve(x.target))},{root:v,rootMargin:it.CY,threshold:0});g.observe(f);const C=setTimeout(()=>{m(x=>{if(x)return x;const L=u.current;if(!L)return x;const y=L.getBoundingClientRect(),E=v?.getBoundingClientRect(),b=E?.top??0,S=E?.bottom??window.innerHeight,T=(S-b)*.1;return y.bottom>b-T&&y.top<S+T?!0:x})},iO);return()=>{g.disconnect(),clearTimeout(C)}},[i,d]),sl.useEffect(()=>{const f=u.current;if(!f||!e)return;const v=g=>{g.target instanceof Element&&g.target.parentElement===f&&g.propertyName==="opacity"&&e()};return f.addEventListener("transitionend",v),()=>{f.removeEventListener("transitionend",v)}},[e]),sl.useEffect(()=>{const f=u.current;if(!f||!Array.isArray(o))return;Array.from(f.children).forEach((g,C)=>{g instanceof HTMLElement&&g.style.setProperty("--idx",String(C))})},[o]);const p={"--scroll-animation-step":`${l}s`,"--scroll-animation-duration":n==="none"?"0s":`${a}s`,"--scroll-animation-from":cO[n]??"translateY(0)"};return(0,s.jsx)("div",{className:Z()("scroll-animation",r,{"scroll-animation--in":d}),ref:u,style:p,children:o})},dO=matchMedia("(prefers-reduced-motion: reduce)");function Tn(){return dO.matches}const Mt=t=>{const{afterAnimatedIn:e,animateBlockEntrance:n,animateIn:o,children:r,className:a,duration:i,initiallyVisible:l,isLearner:u,siblingDelay:d}=t;return u&&n&&!Tn()?(0,s.jsx)(lO,{afterAnimatedIn:e,animateIn:o,className:a,duration:i,initiallyVisible:l,siblingDelay:d,children:r}):Array.isArray(r)?(0,s.jsx)("div",{children:r}):r};var Eg=c(26372);const uO=Eg.lazy(async()=>{const[t,e]=await Promise.all([c.e("ace").then(c.t.bind(c,51477,23)),c.e("ace").then(c.bind(c,52617)),c.e("ace").then(c.t.bind(c,4668,23)),c.e("ace").then(c.t.bind(c,61321,23)),c.e("ace").then(c.t.bind(c,16773,23)),c.e("ace").then(c.t.bind(c,41159,23)),c.e("ace").then(c.t.bind(c,16773,23)),c.e("ace").then(c.t.bind(c,74844,23)),c.e("ace").then(c.t.bind(c,21503,23)),c.e("ace").then(c.t.bind(c,97332,23)),c.e("ace").then(c.t.bind(c,6686,23)),c.e("ace").then(c.t.bind(c,55482,23)),c.e("ace").then(c.t.bind(c,39682,23)),c.e("ace").then(c.t.bind(c,3266,23)),c.e("ace").then(c.t.bind(c,1279,23)),c.e("ace").then(c.t.bind(c,68934,23)),c.e("ace").then(c.t.bind(c,50416,23)),c.e("ace").then(c.t.bind(c,62337,23)),c.e("ace").then(c.t.bind(c,30840,23)),c.e("ace").then(c.t.bind(c,72887,23)),c.e("ace").then(c.t.bind(c,23520,23)),c.e("ace").then(c.t.bind(c,64051,23))]);return{default:e.default}}),hO=({classNames:t,code:e,blockId:n})=>{const[o,r]=(0,h.useState)(!1),{announcePolite:a}=gt(),i=async()=>{const l=(0,fa.htmlDecode)(e);await navigator.clipboard.writeText(l),r(!0),setTimeout(()=>r(!1),1e3),a("Copied!")};return(0,s.jsx)("div",{className:t,children:(0,s.jsx)(jt.ArcTooltip,{id:`code-snippet-copy-tooltip-${n}`,text:o?"Copied!":"Copy",children:(0,s.jsx)(jt.ArcButton,{icon:(0,s.jsx)(rt,{name:o?"check":"copy"}),layout:"icon",onClick:i,shape:"square",size:"md",variant:"tertiary"})})})};class mO extends Eg.Component{renderCaptionDelegate;constructor(e){super(e),this.renderCaptionDelegate=this.renderCaption.bind(this)}renderCaption({caption:e}){return(0,s.jsx)(ls,{className:"block-text__code-caption",value:e||""})}render(){const{animateBlockEntrance:e,blockId:n,defaultBackgroundColor:o="",getL10nValue:r,initiallyVisible:a,isLearner:i,items:l,labels:u,settings:d,renderCaption:m=this.renderCaptionDelegate}=this.props,{entranceAnimation:p,language:f,paddingBottom:v,paddingTop:g,snippetBackgroundColor:C,snippetColorContrast:x,theme:L,useAdvancedEditor:y,wrapWords:E}=d,b=Z()("block-text block-text--code",{"block-text--padding-top":Number(g)===2,"block-text--padding-bottom":Number(v)===2,"block-text--no-animation":!p}),S={backgroundColor:C},T=C==="#fafafa"||nn()(C),I=x??A.Em.DARK;if(!T){const j=ws({backgroundColor:C,contrast:I});Object.assign(S,{"--color-snippet-contrast":j})}return(0,s.jsx)(kt,{className:b,defaultBackgroundColor:o,children:(0,s.jsx)(Mt,{animateBlockEntrance:e,initiallyVisible:a,isLearner:i,children:(0,s.jsx)("div",{className:"block-text__container",children:l.slice(0,1).map(j=>{const M=Jc({...j,getL10nValue:r});return(0,s.jsx)("div",{className:"block-text__row",children:(0,s.jsx)("div",{"aria-label":u?.a11yBlockCodeSnippet,className:"block-text__col",role:xi,children:(0,s.jsxs)("figure",{"aria-labelledby":M.figcaptionId,className:"block-text__figure block-text__figure--with-copy",role:"figure",children:[(0,s.jsx)(Fk,{value:j.code,children:H=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(hO,{blockId:n,classNames:"block-text__copy-button",code:H}),y?(0,s.jsx)(h.Suspense,{fallback:null,children:(0,s.jsx)(uO,{editorProps:{$blockScrolling:!0},maxLines:25,mode:f,name:String(j.id),readOnly:!0,setOptions:{enableSnippets:!1,showLineNumbers:!0,tabSize:2,fontSize:"1.6rem",useWorker:!1},theme:L,value:(0,fa.htmlDecode)((0,yo.aj)(H)),width:"100%",wrapEnabled:E})}):(0,s.jsx)("pre",{className:"block-text__code",dangerouslySetInnerHTML:{__html:(0,yo.aj)(H)},dir:"ltr",style:S})]})}),j.caption&&(0,s.jsx)("figcaption",{id:M.figcaptionId,children:m(j)})]})})},j.id)})})})})}}const Sg=Jt(mO);function pO({accentColor:t,backgroundType:e,blockBackgroundColor:n,noteColor:o,imageBackgroundDefault:r="#ffffff"}){return o!=null&&o!==""?o:fO({accentColor:t,backgroundType:e,blockBackgroundColor:n,imageBackgroundDefault:r})}function fO({accentColor:t,backgroundType:e,blockBackgroundColor:n,imageBackgroundDefault:o="#ffffff"}){if(e!==A.xj.IMAGE&&n==null)return"#000000b3";switch(e){case A.xj.IMAGE:return o;case A.xj.LIGHT:case A.xj.GRAY:return(0,ht.W8)(.9,t);case A.xj.DARK:return"#494949";case A.xj.BLACK:return"#333333";default:switch((0,ht.XC)(n)){case ht.lL.LIGHT:return(0,ht.W8)(.3,n);case ht.lL.MED:return(0,ht.W8)(-.2,n);case ht.lL.DARK:case ht.lL.NEAR_BLACK:return(0,ht.W8)(-.4,n);default:return t}}}function vO(t,e){const n=sn(),{cardMode:o,className:r="",children:a,disabled:i=!1,tag:l="div",overrideBackground:u=!1,style:d={},...m}=t,{cardMode:p,customBackgroundColorContrast:f}=n,g=(0,xe.DX)()?.theme,C=ko(),x=o??p??Dn.WHITE,L=bn()??"#ffffff",y=x===Dn.WHITE,E=C===A.xj.COLOR,b=C===A.xj.ACCENT,S=g?.accentContrast,T=C===A.xj.ACCENT||C===A.xj.COLOR,I=S===A.Em.AUTO&&b||f===A.Em.AUTO&&E,j=C===A.xj.COLOR?f:S,M=[r,"block-card"];if(y)M.push("bg--range-light","block-card--white");else if(i){M.push("block-card--disabled");const H=ws({backgroundColor:L,contrast:j});I&&(d["--color-text"]=H,d["--color-text-opposite"]=H===it.S6.DARK?it.S6.LIGHT:it.S6.DARK)}else{M.push("block-card--transparent");const H=(0,ht.XC)(L),D=ht.t9[H](L);switch(C){case A.xj.LIGHT:case A.xj.GRAY:M.push("bg--range-light");break;case A.xj.IMAGE:M.push("bg--range-dark");break;case A.xj.DARK:case A.xj.BLACK:M.push("bg--range-dark"),d["--color-background-rgb"]=(0,ui.A)(D)?.slice(0,3);break;default:{const F=d["--color-background"]??(u?L:D),k=ws({backgroundColor:F,contrast:j});T&&k==it.S6.LIGHT&&M.push("block-card--contrast-light");const w=(0,ht.XC)(F);M.push(`bg--range-${qa()(w.toLowerCase())}`),d["--color-background"]=F,d["--color-background-rgb"]=(0,ui.A)(F)?.slice(0,3);break}}}return(0,s.jsx)(l,{...m,className:M.join(" "),ref:e,style:d,children:a})}const Os=(0,h.forwardRef)(vO);var gO=c(26372);const In=ee("block-statement");class CO extends gO.Component{renderTextDelegate;constructor(e){super(e),this.renderTextDelegate=this.renderText.bind(this)}static get defaultProps(){return{items:[],type:"a",getL10nValue:()=>{}}}getEntranceAnimationType(){const{type:e}=this.props;switch(e){case"a":return"fadeIn";case"b":case"d":return"fadeInUp";case"c":return"fadeInRight";case"note":return"fadeInGrow"}}getEntranceAnimationDuration(){const{type:e}=this.props;switch(e){case"a":return 1;case"b":case"c":case"d":return .75;case"note":return .5}}renderText({blockId:e,getL10nValue:n,type:o,labels:r,lessonId:a,media:i,settings:l},{paragraph:u}){const d=o==="note",m=n(Array.isArray(i)?{}:i),p=!!m?.audio,f=lo(m,l.audioPosition,!1,"statement"),v=(0,s.jsx)("div",{className:In("quote"),children:f.renderOrder.map((g,C)=>{if(g==="text")return(0,s.jsx)("div",{children:(0,s.jsx)(ls,{value:u})},`text-${C}`);if(g==="audio"&&p){const x=f.renderOrder.indexOf("audio")<f.renderOrder.indexOf("text");return(0,s.jsx)("div",{className:In("audio-container",{top:x,bottom:!x}),children:(0,s.jsx)($s,{blockId:e,hasPadding:!1,index:e,item:{media:i,id:e},labels:r,lessonId:a,media:i,refs:`items:${e}`,renderMediaType:"audio"})},`audio-${C}`)}return null})});return d?(0,s.jsx)(SO,{getL10nValue:n,media:i,children:v}):v}render(){const{animateBlockEntrance:e,isLearner:n,items:o,renderText:r=this.renderTextDelegate,settings:a,type:i,initiallyVisible:l}=this.props,{entranceAnimation:u,divider:d=!0,dividerPadding:m=AP(i),dividerSize:p=kP(i),noteIcon:f=!0,noteSize:v="sm",statementWidth:g=RP(i)}=a,C=DP(g),x=BP(m),L=HP(p),y=v,E=i==="a"||i==="b"||i==="d",b=i==="note",S=In({[i]:!0,[`${i}-custom-width-${C}`]:!0,[`${i}-divider-off`]:E&&!d,[`${i}-divider-padding-${x}`]:E&&d,[`${i}-divider-size-${L}`]:E&&d,[`note-size-${y}`]:b,[`note-size-${y}-no-icon`]:b&&!f,"no-animation":!u});return(0,s.jsx)(kt,{className:S.toString(),children:(0,s.jsx)("div",{className:In("wrap"),children:(0,s.jsx)("div",{className:In("container"),children:(0,s.jsx)("div",{className:In("row"),children:o.slice(0,1).map(T=>(0,s.jsx)(Mt,{animateBlockEntrance:e,animateIn:this.getEntranceAnimationType(),duration:this.getEntranceAnimationDuration(),initiallyVisible:l,isLearner:n,children:(0,s.jsxs)("div",{className:In("col"),children:[(0,s.jsx)("div",{className:In("divider-top-container"),children:(0,s.jsx)("div",{className:In("divider-top")})}),r(this.props,T),(0,s.jsx)("div",{className:In("divider-bottom")})]})},T.id))})})})})}}const nl=Jt(CO),xO=nl,bO=t=>(0,s.jsx)(nl,{type:"b",...t}),yO=t=>(0,s.jsx)(nl,{type:"c",...t}),LO=t=>(0,s.jsx)(nl,{type:"d",...t}),EO=t=>(0,s.jsx)(nl,{type:"note",...t}),SO=({children:t,getL10nValue:e,media:n})=>{const o=sn(),{accentColor:r,cardMode:a,cornerRadius:i,courseColor:l,customBackgroundColorContrast:u,noteIcon:d=!0,noteIconColor:m}=o,p=o.noteColor,f=o.noteColorContrast,{theme:v}=(0,xe.DX)(),g=bn(),C=ko(),x=C===A.xj.COLOR,L=C===A.xj.ACCENT,y=v?.accentContrast,E=C===A.xj.DARK||C===A.xj.BLACK,b=p!=null&&p!=="",T=x||L||E||b?Dn.TRANSPARENT:a,I=b&&(f??A.Em.AUTO)===A.Em.AUTO||y===A.Em.AUTO&&L||u===A.Em.AUTO&&x,j=(0,h.useMemo)(()=>pO({accentColor:r??l,backgroundType:C,blockBackgroundColor:g,noteColor:p,imageBackgroundDefault:""}),[r,C,g,l,p]),M=b?f??A.Em.AUTO:C===A.xj.COLOR?u:y,H=ws({backgroundColor:j,contrast:M}),D={"--color-background":j,...(I||b)&&{"--color-text":H},...i&&{"--corner-radius":`${Number(i)}px`},...m&&{"--color-theme-decorative":m},...b&&{"--color-theme":p}},P=In("note-icon",{off:!d}),k=(e?e(Array.isArray(n)?{}:n):void 0)?.image,w=k?.key&&Object.keys(k).length>0,O=w?(0,zs.$D)(k)?(0,ze.o1)(k.key):(0,Vt.ME)(k):null,W=()=>d?w&&O?(0,s.jsx)("div",{"aria-hidden":!0,className:In("note-icon__custom"),style:{WebkitMaskImage:`url('${O}')`,maskImage:`url('${O}')`}}):(0,s.jsx)(rt,{name:"circle-info"}):null;return(0,s.jsxs)(Os,{cardMode:T,className:In("note-card"),style:D,children:[(0,s.jsx)("div",{className:P,children:W()}),t]})};var ps=c(26372);function Tg({ariaLabel:t,children:e,className:n="carousel-controls-item-btn",isActive:o,onClick:r,onKeyDown:a}){return(0,s.jsx)("li",{className:"carousel-controls-item",role:"listitem",children:(0,s.jsx)("button",{"aria-current":o,"aria-label":t,className:n,onClick:r,onKeyDown:a,tabIndex:o?0:-1,type:"button",children:e})})}function lu({children:t,iconNameLeft:e="chevron-left-light",iconNameRight:n="chevron-right-light",isInfinite:o=!0,isRTL:r=!1,labelCarousel:a="Carousel",labelCarouselRoleDesc:i="Carousel",labelSlideControls:l="Slide controls",labelSlideControlsGoToNext:u="Go to next slide",labelSlideControlsGoToPrevious:d="Go to previous slide",labelSlideControlsGoToSlide:m="Go to slide",labelSlideCounterPreposition:p="of",labelSlidePreposition:f="of",labelSlideRoleDesc:v="Slide",onChange:g,ref:C,renderSlideIndicator:x,shouldMouseEmulateTouch:L=!1,shouldUseCounter:y=!1,shouldUseGoToSlide:E=!0}){const b=ps.useId(),[S,T]=ps.useState(0),I=(0,qe.A)(S)??0,j=ps.useRef(null),M=ps.useRef(null),H=ps.useRef(!1),D=ps.useRef(!1),P=ps.useRef(void 0),F=ps.useRef(void 0),k=`carousel-${b}`,w=ps.Children.count(t),O=(0,qe.A)(w),W=ps.useMemo(()=>Array.from({length:w}),[w]),G=w>1;ps.useImperativeHandle(C,()=>({navigateToSlide:(Ae,we=!0)=>{T(Ae);const he=j.current?.children?.[Ae]?.firstElementChild;we&&he?.focus()}}),[]);const $=ps.useCallback(({activeIndex:Ae,dir:we})=>{const he=o?Ae-1>=0?Ae-1:w-1:Math.max(0,Ae-1),oe=o?Ae+1<=w-1?Ae+1:0:Math.min(w-1,Ae+1);return we==="left"?r?oe:he:r?he:oe},[o,r,w]),ce=ps.useCallback(()=>{T(Ae=>$(r?{activeIndex:Ae,dir:"right"}:{activeIndex:Ae,dir:"left"}))},[$,r]),Ee=ps.useCallback(()=>{T(Ae=>$(r?{activeIndex:Ae,dir:"left"}:{activeIndex:Ae,dir:"right"}))},[$,r]),Ne=ps.useCallback(Ae=>{const we=j.current?.children?.[Ae],he=j.current;if(we&&he){const oe=we.getBoundingClientRect(),Be=he.getBoundingClientRect(),Pe=oe.left+oe.width/2,$e=Be.left+Be.width/2,Oe=Pe-$e;he.scrollBy({left:Oe,behavior:"smooth"})}},[]),De=ps.useCallback(Ae=>{let we=!1,he=S;switch(Ae.key){case"ArrowLeft":we=!0,he=$({activeIndex:S,dir:"left"});break;case"ArrowRight":we=!0,he=$({activeIndex:S,dir:"right"});break;case"Home":we=!0,he=0;break;case"End":we=!0,he=w-1;break}we&&(Ae.stopPropagation(),Ae.preventDefault()),S!==he&&(j.current?.children?.[he]?.firstChild?.focus(),Ne(he),T(he))},[S,$,Ne,w]);ps.useEffect(()=>{I!==S&&g?.(S)},[S,g,I]),ps.useEffect(()=>{w<O&&S>w-1&&T(w-1)},[S,O,w]),ps.useEffect(()=>{const Ae=Oe=>{Oe.target.tagName==="IMG"&&Oe.preventDefault(),P.current=Oe.screenX},we=Oe=>{const pt=window.visualViewport?.scale??1,vt=window.getSelection().toString()!=="";if(!D.current&&pt<=1.01&&!vt&&P.current!=null){F.current=Oe.screenX;const It=F.current-P.current;Math.abs(It)>50&&(window.getSelection().empty(),H.current=!0,P.current=void 0,F.current=void 0,It<0?T(Wt=>$({activeIndex:Wt,dir:"right"})):T(Wt=>$({activeIndex:Wt,dir:"left"})))}},he=Oe=>{H.current&&Oe.stopPropagation(),H.current=!1,D.current=!1,P.current=void 0,F.current=void 0},oe=Oe=>{if(Oe.touches.length>1){D.current=!0;return}Oe.changedTouches.length===1&&Oe.changedTouches[0]&&(P.current=Oe.changedTouches[0].screenX)},Be=Oe=>{const pt=window.visualViewport?.scale??1,vt=window.getSelection().toString()!=="";if(!D.current&&pt<=1.01&&!vt&&P.current!=null&&Oe.changedTouches[0]){F.current=Oe.changedTouches[0].screenX;const It=F.current-P.current;Math.abs(It)>50&&(H.current=!0,P.current=void 0,F.current=void 0,It<0?T(Wt=>$({activeIndex:Wt,dir:"right"})):T(Wt=>$({activeIndex:Wt,dir:"left"})))}},Pe=()=>{H.current=!1,D.current=!1,P.current=void 0,F.current=void 0},$e=M.current;return L&&($e?.addEventListener("mousedown",Ae,{capture:!0}),$e?.addEventListener("mousemove",we,{capture:!0}),$e?.addEventListener("click",he,{capture:!0})),$e?.addEventListener("touchstart",oe,{passive:!0}),$e?.addEventListener("touchmove",Be,{passive:!0}),$e?.addEventListener("touchend",Pe,{passive:!0}),$e?.addEventListener("touchcancel",Pe,{passive:!0}),()=>{L&&($e?.removeEventListener("mousedown",Ae),$e?.removeEventListener("mousemove",we),$e?.removeEventListener("mouseup",Pe)),$e?.removeEventListener("touchstart",oe),$e?.removeEventListener("touchmove",Be),$e?.removeEventListener("touchend",Pe),$e?.removeEventListener("touchcancel",Pe)}},[$,L,w]);const Ke=ps.useCallback(Ae=>()=>{Ne(Ae),T(Ae)},[Ne]);return(0,s.jsxs)("div",{"aria-label":a,"aria-roledescription":i,className:"carousel",dir:r?"rtl":void 0,role:"region",style:{"--carousel-active-index":S},children:[G&&(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)("div",{"aria-label":l,className:"carousel-controls",role:"group",children:[E&&(0,s.jsx)("ul",{className:"carousel-controls-items",ref:j,role:"list",children:W.map((Ae,we)=>{const he=S===we,oe=Ke(we);return x?x({index:we,isActive:he,onClick:oe,onKeyDown:De}):(0,s.jsx)(Tg,{ariaLabel:m+" "+(we+1),isActive:he,onClick:oe,onKeyDown:De,children:(0,s.jsx)(rt,{className:"carousel-controls-item-btn-icon",name:he?"circle":"circle-solid"})},we)})}),(0,s.jsx)("button",{"aria-disabled":o?void 0:S===0,"aria-label":d,className:"carousel-controls-prev",onClick:!o&&S===0?void 0:ce,type:"button",children:(0,s.jsx)(rt,{className:"carousel-controls-prev-icon",name:r?n:e})}),(0,s.jsx)("button",{"aria-disabled":o?void 0:S===w-1,"aria-label":u,className:"carousel-controls-next",onClick:!o&&S===w-1?void 0:Ee,type:"button",children:(0,s.jsx)(rt,{className:"carousel-controls-next-icon",name:r?e:n})}),y&&(0,s.jsxs)("div",{className:"carousel-controls-counter",children:[(0,s.jsx)("div",{className:"carousel-controls-counter-text",children:`${S+1} ${p} ${w}`}),(0,s.jsx)("div",{className:"carousel-controls-counter-line",children:(0,s.jsx)("div",{className:"carousel-controls-counter-line-runner",style:{width:`${Number(((S+1)/w).toFixed(2))*100}%`}})})]})]})}),(0,s.jsx)("div",{"aria-live":"polite",className:"carousel-slides",ref:M,children:ps.Children.map(t,(Ae,we)=>{const he=`${k}-${we}-counter`;return(0,s.jsxs)("div",{"aria-labelledby":he,"aria-roledescription":v,className:"carousel-slide",hidden:S!==we,inert:S!==we,role:"group",children:[(0,s.jsx)("div",{className:"visually-hidden-always",id:he,children:`${we+1} ${f} ${w}`}),Ae]})})})]})}var ol=c(26372);const TO="div",Ig=ol.createContext(void 0);function IO({children:t,element:e,...n},o){const[r,a]=ol.useState(null);return(0,s.jsx)(Ig.Provider,{value:r,children:ol.createElement(e??TO,{...n,ref:o},t,(0,s.jsx)("div",{ref:a}))})}const du=ol.forwardRef(IO);function Ate(){return ol.useContext(Ig)}function Kh(t){const e=n=>{const o=(0,xe.Wz)();return(0,s.jsx)(t,{...n,isRTL:o})};return e.displayName=`withRTL(${t.displayName||t.name})`,e}const uu=({blockId:t,carouselRef:e,children:n,items:o})=>{const r=(0,h.useRef)(null),a=e??r;return(0,h.useEffect)(()=>{const i=l=>{const{path:u}=l.detail,{blockId:d,cardId:m}=Ya(u,["block","card"]);if(d===t){const p=o.findIndex(f=>f.id===m);p>=0&&a.current?.navigateToSlide?.(p,!1)}};return window.addEventListener(Kt,i),()=>{window.removeEventListener(Kt,i)}},[o,t,a]),(0,s.jsx)(s.Fragment,{children:n({carouselRef:e})})},Bt=ee("block-quote"),rl=({avatar:t,alt:e,l10nId:n,showAvatar:o})=>o?(0,s.jsx)(Ln,{alt:(0,zs.Ll)(e),className:Bt("avatar"),"data-l10n-id":n,src:t}):null,NO=({alt:t,animateBlockEntrance:e,avatar:n,children:o,l10nId:r,initiallyVisible:a,isAuthorBlank:i=!1,isLearner:l,showAvatar:u,type:d})=>{const m=Bt("col",{"no-avatar":!n}),p=n?(0,s.jsx)("div",{className:Bt("image"),children:(0,s.jsx)("div",{className:Bt("avatar-wrap"),children:d==="c"?(0,s.jsx)(Mt,{animateBlockEntrance:e,animateIn:"fadeInLeftSmall",initiallyVisible:a,isLearner:l,children:(0,s.jsx)(rl,{alt:t,avatar:n,l10nId:r,showAvatar:u})}):(0,s.jsx)(rl,{alt:t,avatar:n,l10nId:r,showAvatar:u})})}):null;return(0,s.jsx)("div",{className:Bt("container"),children:(0,s.jsx)("div",{className:Bt("row"),children:(0,s.jsxs)("div",{className:m,children:[(0,s.jsx)("div",{className:Bt("divider-top")}),(0,s.jsxs)("div",{className:Bt("figure",{"no-author":i,"no-avatar":!i&&!u}),children:[p,o]}),(0,s.jsx)("div",{className:Bt("divider-bottom")})]})})})},jO=({avatar:t,children:e,alt:n,l10nId:o,showAvatar:r})=>(0,s.jsx)("div",{className:Bt("figure"),children:(0,s.jsx)("div",{className:Bt("container"),children:(0,s.jsxs)("div",{className:Bt("row"),children:[(0,s.jsx)("div",{className:Bt("col"),children:t&&r?(0,s.jsx)(rl,{alt:n,avatar:t,l10nId:o,showAvatar:r}):null}),(0,s.jsx)("div",{className:Bt("col"),children:e})]})})}),kO=({background:t,avatar:e,children:n,alt:o,l10nId:r,showAvatar:a})=>(0,s.jsx)("div",{className:Bt("background"),style:{backgroundImage:t??""},children:(0,s.jsx)("div",{className:Bt("container"),children:(0,s.jsx)("div",{className:Bt("row"),children:(0,s.jsx)("div",{className:Bt("col"),children:(0,s.jsxs)("div",{className:Bt("figure"),children:[e&&a?(0,s.jsx)(rl,{alt:o,avatar:e,l10nId:r,showAvatar:a}):null,n]})})})})});class AO extends h.Component{renderTextDelegate;renderCaptionDelegate;constructor(e){super(e),this.renderTextDelegate=this.renderText.bind(this),this.renderCaptionDelegate=this.renderCaption.bind(this)}static get defaultProps(){return{editable:!1,items:[],type:"a",getL10nValue:()=>{}}}getQuoteEntranceAnimationType(){const{type:e}=this.props;switch(e){case"a":case"b":case"background":return"fadeInUp";case"d":case"c":return"fadeInRight"}}getBackgroundImageUrl(e,n){const o=e?.alpha??PP(n),r=(0,Vt.ME)(e),a=wP(n);return(0,rh.A)({alpha:o,color:a,url:r})?.backgroundImage}renderText(e,{paragraph:n}){const o=n||"",r=Bt("text",{blank:o===""}).toString();return(0,s.jsx)(ls,{className:r,value:o})}renderCaption(e,{name:n}){const o=Bt("caption",{blank:n===""}).toString();return(0,s.jsx)(ls,{className:o,value:n})}render(){const{animateBlockEntrance:e,getL10nValue:n,initiallyVisible:o,isLearner:r,items:a,settings:i,type:l,renderText:u=this.renderTextDelegate,renderCaption:d=this.renderCaptionDelegate}=this.props,m=92,{avatarSize:p=zv(l),divider:f=!0,dividerSize:v=m,entranceAnimation:g,quoteAlignment:C="left",quoteIcon:x=!0,quotesInline:L,quotePadding:y=2,quoteWidth:E=Vv(l)}=i,[b]=a,{avatar:S,background:T}=b,I=n(S?.media)?.image,j=(0,Vt.xm)(I),M=I?.alt,H=(0,St.pP)(S.media),D=n(T?.media)?.image,P=D?.overlayColor,F=this.getBackgroundImageUrl(D,P),k=i?.avatar??j!=="",w=j&&j!=="",O=l==="background",W=O&&P==="light",G=$v(E),$=Wv(y),ce=Uv(l,p),Ee=OP(v),Ne=l==="a",De=l==="c"||O,Ke=l!=="b"&&!O,Ae=b?.name==="",we=b?.paragraph==="",he=Bt(null,{[l]:!0,[`${l}-custom-width-${G}`]:!0,[`${l}-divider-off`]:Ne&&!f,[`${l}-divider-size-${Ee}`]:Ne&&f,[`${l}-quote-padding-${$}`]:!0,[`${l}-align-${C}`]:O,[`${l}-${G}-no-avatar`]:!j||!k,[`${l}-avatar-size-${ce}`]:k&&w,[`${l}-quote-icon-off`]:De&&!x,[`${l}-legacy-quote-mark`]:Ke&&!L,[`${l}-overlay-legacy`]:!P,[`${l}-overlay-light`]:W,"no-animation":!g}).toString(),oe=(0,s.jsx)("div",{className:Bt("wrap",{blank:Ae||we}),children:(0,s.jsx)(Mt,{animateBlockEntrance:e,animateIn:this.getQuoteEntranceAnimationType(),initiallyVisible:o,isLearner:r,siblingDelay:.15,children:(0,s.jsxs)("figure",{children:[(0,s.jsx)("blockquote",{children:u(this.props,b)}),(0,s.jsx)("figcaption",{children:d(this.props,b)})]})})});let Be;switch(l){case"d":Be=(0,s.jsx)(jO,{alt:M,avatar:j,initiallyVisible:o,l10nId:H,showAvatar:k,type:l,children:oe});break;case"background":Be=(0,s.jsx)(kO,{alt:M,avatar:j,background:F,initiallyVisible:o,l10nId:H,showAvatar:k,type:l,children:oe});break;default:Be=(0,s.jsx)(NO,{alt:M,animateBlockEntrance:e,avatar:j,initiallyVisible:o,isAuthorBlank:Ae,isLearner:r,l10nId:H,showAvatar:k,type:l,children:oe})}return(0,s.jsx)(kt,{className:he,children:Be})}}const al=Jt(AO),RO=(t=>(0,s.jsx)(al,{...t})),PO=t=>(0,s.jsx)(al,{type:"b",...t}),wO=t=>(0,s.jsx)(al,{type:"c",...t}),MO=t=>(0,s.jsx)(al,{type:"d",...t}),OO=t=>(0,s.jsx)(al,{type:"background",...t});class DO extends h.Component{static get defaultProps(){return{type:"carousel",items:[],onStep:Function.prototype,getL10nValue:()=>{}}}handleChangeCarousel=e=>{this.props.onStep?.(this.props.items[e])};renderText=(e,{paragraph:n})=>{const o=n||"",r=Bt("text",{blank:n===""}).toString();return(0,s.jsx)(ls,{className:r,value:o})};renderCaption=(e,{name:n})=>{const o=Bt("caption",{blank:n===""}).toString();return(0,s.jsx)(ls,{className:o,value:n})};render(){const{blockId:e,animateBlockEntrance:n,editable:o,getL10nValue:r,initiallyVisible:a=!1,isRTL:i,isLearner:l,isLessonBlocksList:u=!1,items:d,labels:m,previewType:p,settings:f,renderText:v=this.renderText,renderCaption:g=this.renderCaption,type:C}=this.props,{avatar:x=!0,avatarSize:L=zv(C),entranceAnimation:y,quotesInline:E,quotePadding:b=2,quoteWidth:S=Vv(C),showBorder:T=!0}=f,j=C!=="b"&&!(C==="background"),M=$v(S),H=Wv(b),D=Uv(C,L),P=p==="mobile-portrait"||p==="mobile-landscape",F=Bt({[C]:!0,[`${C}-custom-width-${M}`]:!0,[`${C}-quote-padding-${H}`]:!0,[`${C}-${M}-no-avatar`]:!x,[`${C}-avatar-size-${D}`]:x,[`${C}-legacy-quote-mark`]:!u&&j&&!E,"no-animation":!y,"hide-border":!T,editable:o}).toString(),k=d.map(w=>{const O=r(w?.avatar?.media)?.image,W=O?.alt,G=(0,Vt.xm)(O),$=x??G!=="",ce="l10nId"in w.avatar.media?w.avatar.media.l10nId:void 0;return(0,s.jsx)("div",{className:Bt("slide"),children:(0,s.jsxs)("figure",{className:Bt("figure"),children:[G&&x?(0,s.jsx)(rl,{alt:W,avatar:G,l10nId:ce,showAvatar:$}):null,(0,s.jsx)("blockquote",{children:v(this.props,w)}),(0,s.jsx)("figcaption",{children:g(this.props,w)})]})},w.id)});return(0,s.jsx)("div",{className:Bt("slider-container"),children:(0,s.jsx)(kt,{className:F,children:(0,s.jsx)(du,{className:Bt("wrap"),children:(0,s.jsx)("div",{className:Bt("container"),children:(0,s.jsx)("div",{className:Bt("col"),children:(0,s.jsx)(Os,{className:Bt("box"),children:(0,s.jsx)(Mt,{animateBlockEntrance:n,animateIn:"fadeInUp",initiallyVisible:a,isLearner:l,children:(0,s.jsx)(uu,{blockId:e,items:d,children:({carouselRef:w})=>(0,s.jsx)(lu,{isRTL:i,labelCarousel:m?.a11yBlockQuoteCarousel,labelCarouselRoleDesc:m?.a11yBlockQuoteCarouselRoleDescription,labelSlideControls:m?.a11yBlockQuoteCarouselSlideControls,labelSlideControlsGoToNext:m?.a11yBlockQuoteCarouselSlideControlsGoToNext,labelSlideControlsGoToPrevious:m?.a11yBlockQuoteCarouselSlideControlsGoToPrevious,labelSlideControlsGoToSlide:m?.a11yBlockQuoteCarouselSlideControlsGoToSlide,labelSlideCounterPreposition:m?.blocksPreposition,labelSlidePreposition:m?.a11yBlockQuoteCarouselSlidePreposition,labelSlideRoleDesc:m?.a11yBlockQuoteCarouselSlideRoleDescription,onChange:this.handleChangeCarousel,ref:w,shouldMouseEmulateTouch:P,children:k})})})})})})})})})}}const BO=Kh(Jt(DO));var Ng=c(26372);const Vn=ee("block-list"),HO=class extends Ng.Component{static get defaultProps(){return{editable:!1,items:[],onStep:Function.prototype,type:"numbered",getL10nValue:()=>{}}}nextNumber(t){const{items:e}=this.props,o=e.length>0?e[t].number:null;let r;return!isNaN(o)&&o!==""&&(r=parseInt(o,10)+1),(r<1||r>99)&&(r=null),r}render(){const{animateBlockEntrance:t,blockId:e,defaultBackgroundColor:n,editable:o,getL10nValue:r,initiallyVisible:a,isLearner:i,items:l,labels:u,lessonId:d,media:m,onStep:p,settings:f,type:v}=this.props,{audioPosition:g,bulletPadding:C,entranceAnimation:x,listItemColor:L,listItemColorContrast:y,listWidth:E}=f,b=r(Array.isArray(m)?{}:m),S=lo(b,g),T=MP(C),I=Bh(E),j=Vn({[v]:!0,[`${v}-custom-width-${I}`]:!0,[`${v}-bullet-padding-${T}`]:!0,"no-animation":!x}),M=v==="numbered"?"ol":"ul";return(0,s.jsx)(kt,{className:j.toString(),defaultBackgroundColor:n,children:(0,s.jsx)("div",{className:Vn("container"),children:(0,s.jsx)("div",{className:Vn("row"),children:(0,s.jsx)(du,{className:Vn("col"),children:(0,s.jsx)("div",{className:"blocks-list__container",children:S.renderOrder.map((H,D)=>{if(H==="text")return(0,s.jsx)("div",{children:(0,s.jsx)(M,{className:Vn("list"),role:"list",children:(0,s.jsx)(Mt,{animateBlockEntrance:t,animateIn:"fadeInRight",className:Vn("animated-item").toString(),initiallyVisible:a,isLearner:i,siblingDelay:.25,children:l.map((P,F)=>{const k={key:P.id,index:F,lessonId:d,blockId:e,type:v,editable:o,nextNumber:this.nextNumber.bind(this),onStep:p,listItemColor:L,listItemColorContrast:y,...P};return this.props.renderItem?this.props.renderItem(k):(0,h.createElement)(FO,{...k,key:k.key})})})})},`text-${D}`);if(H==="audio")return(0,s.jsx)("div",{className:Z()("block-list__media",{"audio-on-top":S.renderOrder[0]==="audio","audio-on-bottom":S.renderOrder[0]!=="audio"}),children:(0,s.jsx)($s,{blockId:e,hasPadding:!1,index:e,item:{media:m,id:e},labels:u,lessonId:d,media:m,refs:`items:${e}`})},`${H}-${D}`)})})})})})})}};class FO extends Ng.Component{renderTextDelegate;animateRef=null;static get defaultProps(){return{className:""}}constructor(e){super(e),this.renderTextDelegate=this.renderText.bind(this)}renderText(e){return(0,s.jsx)(ls,{...e})}handleChangeCheckbox=()=>{this.props.onStep(this.props)};render(){const{type:e,id:n,index:o,number:r,paragraph:a,editable:i,className:l,renderText:u=this.renderTextDelegate,style:d,listItemColor:m,listItemColorContrast:p}=this.props,f={allowTabNavigation:!0,className:"block-list__content brand--linkColor cursorAuto",editable:i,id:n,value:a};return(0,s.jsxs)("li",{className:Z()("block-list__item",`block-list__item--${e}`,l),ref:v=>{this.animateRef=v},role:"listitem",style:d,children:[e==="numbered"&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:Vn("number"),style:m?{backgroundColor:m,color:ws({contrast:p||A.Em.AUTO,backgroundColor:m})}:void 0,children:r||o+1}),u(f)]}),e==="bulleted"&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:"visually-hidden-always",children:"\u2022"}),(0,s.jsx)(rt,{className:Vn("bullet"),name:"circle-solid",style:m?{color:m}:void 0}),u(f)]}),e==="checkboxes"&&(0,s.jsxs)("label",{className:Vn("option"),children:[(0,s.jsx)("input",{className:Vn("checkbox-input"),onChange:this.handleChangeCheckbox,type:"checkbox"}),(0,s.jsx)("div",{className:Vn("checkbox"),style:m?{borderColor:m,"--color-background":m}:void 0,children:(0,s.jsx)(rt,{className:Vn("checkbox__icon"),name:"check",style:m?{color:ws({contrast:p||A.Em.AUTO,backgroundColor:m})}:void 0})}),u(f)]})]})}}const VO=Jt(HO),Qh=t=>(0,s.jsx)(VO,{...t}),zO=Qh,UO=t=>(0,s.jsx)(Qh,{type:"checkboxes",...t}),$O=t=>(0,s.jsx)(Qh,{type:"bulleted",...t});var Zh=c(26372);const Yh=t=>["hero","full","aside"].includes(t);class WO extends Zh.Component{renderCaptionDelegate;constructor(e){super(e),this.renderCaptionDelegate=this.renderCaption.bind(this)}static get defaultProps(){return{type:"hero",editable:!1,getL10nValue:()=>{},lessonId:"",blockId:"",items:[]}}renderCaption(e,n){return(0,s.jsx)(ls,{className:"block-image__caption",value:n})}render(){const{aiMagicIcon:e,aiOverlay:n,animateBlockEntrance:o,blockId:r,defaultBackgroundColor:a,editable:i,getL10nValue:l,initiallyVisible:u,isLearner:d,items:m,type:p,labels:f,lessonId:v,settings:g,renderCaption:C=this.renderCaptionDelegate}=this.props,{entranceAnimation:x,cornerRadius:L,zoomOnClick:y}=g,E=Z()(`block-image block-image--${p}`,"block-image--flag-dimensions",{"block-image--no-animation":!x}),b=m[0],{id:S,caption:T}=b,{image:I,audio:j}=l(b.media)??{},M=I?.alt,H=(0,Vt.ME)(I),D=I?.dimensions,P=D?.width||D?.originalWidth,F=D?.height||D?.originalHeight,k=Jc({caption:T,editable:i,id:S,getL10nValue:l}),w=!d&&!H,O=P&&F?P/F:void 0,W=I?.link?l(I.link.destination):void 0,G=I?.link&&typeof W=="string"?{type:I.link.type,destination:W}:void 0,$=Z()("block-image__image",{"block-image__image--audio-overlay":!!j});return(0,s.jsx)(kt,{className:E,defaultBackgroundColor:a,children:(0,s.jsx)("div",{className:"block-image__container",children:(0,s.jsx)("div",{className:"block-image__row",children:(0,s.jsx)("div",{className:"block-image__col",children:(0,s.jsx)(Mt,{animateBlockEntrance:o,initiallyVisible:u,isLearner:d,children:(0,s.jsxs)(k.tagName,{"aria-labelledby":k.figcaptionId,className:"block-image__figure",role:k.role,children:[(0,s.jsxs)("div",{className:$,children:[w?(0,s.jsxs)("div",{className:"block-image__waiting",style:{aspectRatio:O},children:[(0,s.jsx)("div",{children:e}),(0,s.jsx)("div",{className:"block-image__waiting-text",children:"Waiting for image\u2026"})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(yi,{alt:M,cornerRadius:L,disableZoom:!y,height:F,l10nId:(0,St.pP)(b.media),labels:f,link:G,maxHeight:p==="full"?380:900,src:H,width:P}),j&&Yh(p)&&(0,s.jsx)($s,{blockId:r,cornerRadius:L,index:`${r}-${S}-0`,isOverlayAudio:!0,item:b,labels:f,lessonId:v,media:b.media,renderMediaType:"audio"})]}),n&&(0,s.jsx)("div",{className:"block-image__ai-overlay",children:n})]}),(i||T)&&(0,s.jsx)("figcaption",{id:k.figcaptionId,children:C(S,T)})]})})})})})})}}const _O=Jt(WO),GO=(t,e,n,o,r)=>e?r:(0,s.jsx)(Mt,{animateBlockEntrance:t,initiallyVisible:n,isLearner:o,children:r});class KO extends Zh.Component{renderCaptionDelegate;renderParagraphDelegate;constructor(e){super(e),this.renderParagraphDelegate=this.renderParagraph.bind(this),this.renderCaptionDelegate=this.renderCaption.bind(this)}static get defaultProps(){return{blockId:"",getL10nValue:()=>{},editable:!1,items:[],lessonId:"",type:"text-aside"}}renderParagraph(e,n){return(0,s.jsx)(ls,{className:"block-image__text",value:n})}renderCaption(e,n){return(0,s.jsx)(ls,{className:"block-image__caption",value:n})}renderImage(e,n,o,r){const{blockId:a,editable:i,lessonId:l,renderCaption:u=this.renderCaptionDelegate,getL10nValue:d}=this.props,m=d(o.media),p=m?.image,f=m?.audio,v=p?.alt,g=(0,Vt.ME)(p),C=p?.dimensions,x=C?.width||C?.originalWidth,L=C?.height||C?.originalHeight,y=Jc({caption:n,editable:i,id:e,getL10nValue:d}),{animateBlockEntrance:E,initiallyVisible:b,isLearner:S,labels:T,settings:{cornerRadius:I,zoomOnClick:j}}=this.props,M=Z()("block-image__image",{"block-image__image--audio-overlay":!!f}),H=p?.link?d(p.link.destination):void 0,D=p?.link&&typeof H=="string"?{type:p.link.type,destination:H}:void 0;return(0,s.jsx)(Mt,{animateBlockEntrance:E,animateIn:r==="right"?"fadeInRight":"fadeInLeft",initiallyVisible:b,isLearner:S,children:(0,s.jsxs)(y.tagName,{"aria-labelledby":y.figcaptionId,className:"block-image__figure",role:y.role,children:[(0,s.jsxs)("div",{className:M,children:[(0,s.jsx)(yi,{alt:v,cornerRadius:I,disableZoom:!j,height:L,l10nId:(0,St.pP)(o?.media),labels:T,link:D,maxHeight:900,src:g,width:x}),f&&Yh("aside")&&(0,s.jsx)($s,{blockId:a,cornerRadius:I,index:`${a}-${e}-0`,isOverlayAudio:!0,item:o,labels:T,lessonId:l,media:o.media,renderMediaType:"audio"})]}),(i||n)&&(0,s.jsx)("figcaption",{id:y.figcaptionId,children:u(e,n)})]})})}render(){const{defaultBackgroundColor:e,items:n,renderParagraph:o=this.renderParagraphDelegate,settings:r,type:a}=this.props,{entranceAnimation:i,imagePosition:l,imageSize:u}=r,d=l==="right",m=Z()(`block-image block-image--${a}`,{"block-image--small":u==="small","block-image--large":u==="large","block-image--reverse":d,"block-image--no-animation":!i}),p=n[0],{id:f,caption:v}=p,g="paragraph"in p?p.paragraph:void 0;return(0,s.jsx)(kt,{className:m,defaultBackgroundColor:e,children:(0,s.jsx)("div",{className:"block-image__container",children:(0,s.jsxs)("div",{className:"block-image__row",children:[(0,s.jsx)("div",{className:"block-image__col",children:d?o(f,g):this.renderImage(f,v,p,"left")}),(0,s.jsx)("div",{className:"block-image__col",children:d?this.renderImage(f,v,p,"right"):o(f,g)})]})})})}}const QO=Jt(KO);class ZO extends Zh.Component{renderCaptionDelegate;renderOverlayDelegate;constructor(e){super(e),this.renderCaptionDelegate=this.renderCaption.bind(this),this.renderOverlayDelegate=this.renderOverlay.bind(this)}static get defaultProps(){return{blockId:"",editable:!1,getL10nValue:()=>{},items:[],lessonId:"",type:"full"}}renderCaption(e,n){return(0,s.jsx)(ls,{className:"block-image__caption",value:n})}renderOverlay(e,n){return(0,s.jsx)(ls,{className:"block-image__paragraph",value:n})}renderOverlayCaption(e,n){const{animateBlockEntrance:o,initiallyVisible:r,isLearner:a,renderOverlay:i=this.renderOverlayDelegate}=this.props;return(0,s.jsx)("div",{className:"block-image__container",children:(0,s.jsx)("div",{className:"block-image__row",children:(0,s.jsx)("div",{className:"block-image__col",children:(0,s.jsx)(Mt,{animateBlockEntrance:o,animateIn:"fadeInUp",duration:1,initiallyVisible:r,isLearner:a,children:i(e,n)})})})})}render(){const{animateBlockEntrance:e,blockId:n,defaultBackgroundColor:o,editable:r,getL10nValue:a,initiallyVisible:i,isLearner:l,items:u,labels:d,lessonId:m,settings:p,type:f,renderCaption:v=this.renderCaptionDelegate}=this.props,{entranceAnimation:g,opacity:C,opacityColor:x}=p,L=oh(p?.backgroundColor,o),y=Z()(`block-image block-image--${f}`,"block-image--flag-dimensions",{"block-image--no-animation":!g,"block-image--dark":(0,ht.cP)(L)}),E={opacity:C||.6,backgroundColor:x||"transparent"},b=u[0],{id:S,caption:T}=b,I=a(b.media),j=I?.image,M=I?.audio,H=j?.key,D=(0,Vt.ME)(j),P=j?.dimensions,F=P?.width||P?.originalWidth,k=P?.height||P?.originalHeight,w=(0,zs.Ll)(j?.alt),O=f==="overlay",W=Jc({caption:T,editable:r,id:S,isOverlayType:O,getL10nValue:a});return(0,s.jsxs)(kt,{"aria-labelledby":W.figcaptionId,className:y,defaultBackgroundColor:o,role:W.role,tag:W.tagName,children:[GO(e,O,i,l,(0,s.jsxs)("div",{className:"block-image__figure",children:[H&&(0,s.jsxs)("div",{className:"block-image__image","data-l10n-id":(0,St.pP)(b?.media),style:{backgroundImage:`url('${D}')`},children:[(0,s.jsx)(Ln,{alt:w,height:k,src:D,width:F}),(0,s.jsx)("div",{className:"block-image__overlay",style:E}),M&&Yh(f)&&(0,s.jsx)($s,{blockId:n,index:`${n}-${S}-0`,isOverlayAudio:!0,item:b,labels:d,lessonId:m,media:b.media,renderMediaType:"audio"})]}),O?this.renderOverlayCaption(S,T):null]})),!O&&(r||T)&&(0,s.jsx)("figcaption",{className:"block-image__container",id:W.figcaptionId,children:v(S,T)})]})}}const jg=Jt(ZO),YO=t=>(0,s.jsx)(jg,{type:"overlay",...t});var XO=c(26372);function kg(t){class e extends XO.Component{static displayName=`withGalleryCaption(${t.displayName||t.name})`;renderCaptionDelegate;constructor(o){super(o),this.renderCaptionDelegate=this.renderCaption.bind(this)}renderCaption(o,r,a=!0){return(0,s.jsx)(ls,{allowTabNavigation:a,className:"block-gallery__caption",value:r})}render(){const{renderCaption:o=this.renderCaptionDelegate}=this.props;return(0,s.jsx)(t,{...this.props,renderCaption:o})}}return e}var hu=c(26372);const Ag=ee("block-gallery-carousel");function JO({blockId:t,animateBlockEntrance:e,defaultBackgroundColor:n,editable:o,initiallyVisible:r,isLearner:a,labels:i,lessonId:l,items:u,onStep:d,previewType:m,renderCaption:p,settings:f}){u||=[];const[v,g]=hu.useState(0),C=hu.useCallback(E=>{g(E),d?.(u[E])},[u,d]),x=m===it.o4.MOBILE_PORTRAIT||m===it.o4.MOBILE_LANDSCAPE,L=Ag({noAnimation:!f?.entranceAnimation||Tn()}).toString(),y=(0,xe.Wz)();return(0,s.jsx)(kt,{className:L,defaultBackgroundColor:n,children:(0,s.jsx)(Mt,{animateBlockEntrance:e,initiallyVisible:r,isLearner:a,children:(0,s.jsx)(du,{className:Ag("container").toString(),children:(0,s.jsx)(uu,{blockId:t,items:u,children:({carouselRef:E})=>(0,s.jsx)(lu,{isRTL:y,labelCarousel:i?.a11yBlockImageCarousel,labelCarouselRoleDesc:i?.a11yBlockImageCarouselRoleDescription,labelSlideControls:i?.a11yBlockImageCarouselSlideControls,labelSlideControlsGoToNext:i?.a11yBlockImageCarouselSlideControlsGoToNext,labelSlideControlsGoToPrevious:i?.a11yBlockImageCarouselSlideControlsGoToPrevious,labelSlideControlsGoToSlide:i?.a11yBlockImageCarouselSlideControlsGoToSlide,labelSlideCounterPreposition:i?.blocksPreposition,labelSlidePreposition:i?.a11yBlockImageCarouselSlidePreposition,labelSlideRoleDesc:i?.a11yBlockImageCarouselSlideRoleDescription,onChange:C,ref:E,shouldMouseEmulateTouch:x,children:u.map((b,S)=>(0,s.jsx)(eD,{activeIndex:v,blockId:t,editable:o,index:S,item:b,labels:i,lessonId:l,renderCaption:p,settings:f},b.id))})})})})})}const qO=kg(JO),Xh=ee("block-gallery-carousel-item");function eD({activeIndex:t,blockId:e,editable:n,index:o,item:r,labels:a,lessonId:i,renderCaption:l,settings:u}){const[d,m]=hu.useState(!1),{image:p,audio:f}=(0,st.QQ)(r.media),v=(0,st.QQ)(p?.link?.destination),g=p?.dimensions,C=hu.useCallback(()=>{m(!0)},[]);return(0,s.jsxs)("figure",{className:Xh(),children:[n&&!d&&(0,s.jsx)("div",{className:Xh("loading"),children:"Loading image..."}),(0,s.jsxs)("div",{className:Xh("image-container",{"audio-overlay":!!f}),children:[(0,s.jsx)(yi,{alt:p?.alt,cornerRadius:u?.cornerRadius,disableZoom:!u?.zoomOnClick,height:g?.height||g?.originalHeight,l10nId:(0,St.pP)(r?.media),labels:a,link:p?.link&&typeof v=="string"?{type:p.link.type,destination:v}:void 0,maxHeight:900,onLoad:C,src:(0,Vt.ME)(p),width:g?.width||g?.originalWidth}),f&&(0,s.jsx)($s,{blockId:e,cornerRadius:u?.cornerRadius,index:`${e}-${r.id}-${o}`,isOverlayAudio:!0,item:r,labels:a,lessonId:i,media:r.media,renderMediaType:"audio",shouldPause:t!==o})]}),(n||r.caption)&&d&&(0,s.jsx)("figcaption",{children:l(r.id,r.caption)})]})}const tD=({alt:t,cornerRadius:e,disableZoom:n,height:o,l10nId:r,labels:a,link:i,src:l,width:u})=>(0,s.jsx)("div",{className:"block-gallery__image",children:(0,s.jsx)(yi,{alt:t,cornerRadius:e,disableZoom:n,height:o,l10nId:r,labels:a,link:i,maxHeight:900,src:l,width:u})}),sD=t=>{switch(t){case 3:return"threecol";case 4:return"fourcol";default:return"twocol"}};function nD(t){return(0,s.jsx)(qO,{...t})}class oD extends h.Component{static get defaultProps(){return{blockId:"",getL10nValue:()=>{},items:[],lessonId:"",width:2}}render(){const{animateBlockEntrance:e,defaultBackgroundColor:n,editable:o,getL10nValue:r,initiallyVisible:a,isLearner:i,items:l,labels:u,renderCaption:d,settings:m,width:p}=this.props,{entranceAnimation:f,cornerRadius:v,zoomOnClick:g}=m,C=Z()(`block-gallery block-gallery--${sD(p)}`,{"block-gallery--no-animation":!f||Tn()});return(0,s.jsx)(kt,{className:C,defaultBackgroundColor:n,children:(0,s.jsx)("div",{className:"block-gallery__container",children:(0,s.jsx)("div",{className:"block-gallery__row",children:(0,s.jsx)(Mt,{animateBlockEntrance:e,initiallyVisible:a,isLearner:i,siblingDelay:.25,children:l.map(x=>{const{id:L}=x,y=x.caption,E=r(x.media)?.image,b=E?.alt,S=E?.key,T=E?.dimensions,I=T?.width||T?.originalWidth,j=T?.height||T?.originalHeight,M=(0,Vt.ME)(E),H=r(E?.link?.destination),D=Jc({caption:y,editable:o,id:L,getL10nValue:this.props.getL10nValue});return(0,s.jsx)("div",{className:"block-gallery__col",children:(0,s.jsxs)(D.tagName,{"aria-labelledby":D.figcaptionId,className:"block-gallery__figure",role:D.role,children:[S&&(0,s.jsx)(tD,{alt:b,cornerRadius:v,disableZoom:!g,height:j,l10nId:(0,St.pP)(x?.media),labels:u,link:E?.link&&typeof H=="string"?{type:E.link.type,destination:H}:void 0,src:M,width:I}),(o||y)&&(0,s.jsx)("figcaption",{id:D.figcaptionId,children:d(L,y)})]})},L)})})})})})}}const Jh=kg(Jt(oD)),qh=ee("block-divider"),em=({isLearner:t,labels:{numberedDividerGroup:e},number:n,settings:o,type:r="divider"})=>{const{entranceAnimation:a}=o,i=r==="numbered",u=qh({authoring:!t,spacing:r==="spacing",numbered:i,"no-animation":!a}).toString(),d=i?(0,s.jsxs)("div",{className:qh("wrap__number"),children:[(0,s.jsx)("span",{className:"visually-hidden-always",children:e}),n]}):null;return(0,s.jsx)(kt,{className:u,children:(0,s.jsx)("div",{className:qh("wrap",{authoring:!t&&!i}),children:d})})},rD=em,aD=t=>(0,s.jsx)(em,{type:"numbered",...t}),iD=t=>(0,s.jsx)(em,{type:"spacing",...t});var cD=c(59252),lD=c.n(cD),dD=c(96231),Rg=c.n(dD),uD=c(99858),mu=c.n(uD),hD=c(23180),pu=c.n(hD),fu=c(26372);const mD=30,Pg=ah("blockSettings");class pD extends fu.Component{static defaultProps={blockId:"",blockSettings:{},editable:!1,items:[],lessonId:"",onStep:()=>{}};render(){const{animateBlockEntrance:e,blockId:n,editable:o,initiallyVisible:r,isLearner:a,items:i,labels:l,lessonId:u,onStep:d,settings:m,enableVideoPlaybackSpeed:p}=this.props,{entranceAnimation:f,accordionBehavior:v="keepOpen"}=m,g=Z()("blocks-accordion",{"blocks-accordion--no-animation":!f});return(0,s.jsx)(kt,{className:g,"data-block-id":n,children:(0,s.jsx)(Mt,{animateBlockEntrance:e,duration:.75,initiallyVisible:r,isLearner:a,children:(0,s.jsx)("div",{className:"blocks-accordion__container",children:(0,s.jsx)("div",{className:"blocks-accordion__row",children:(0,s.jsx)("div",{className:"blocks-accordion__col",children:(0,s.jsx)(yD,{blockId:n,editable:o,enableVideoPlaybackSpeed:p,items:i,keepOpen:v==="keepOpen",labels:l,lessonId:u,onStep:d,settings:m})})})})})})}}const fD={isOpen:!1,isActive:!1},vD=t=>(e,{id:n})=>Object.assign({},e,{[n]:t[n]||fD}),wg=(t,e)=>e.reduce(vD(t),{}),gD=(t,e)=>(n,o)=>{const r=t==o,a=r?!n.isOpen:n.isOpen,i=r&&!n.isOpen;return{isOpen:e?a:i,isActive:r}},CD=t=>(e,n)=>{const o=n==t;return{isOpen:o,isActive:o}},xD=t=>(e,n)=>({isOpen:n==t,isActive:e.isActive});class bD extends fu.Component{static defaultProps={blockId:"",blockSettings:{},editable:!1,items:[],keepOpen:!1,lessonId:"",onStep:()=>{}};constructor(e){super(e);const{items:n}=this.props;this.state={itemStatusMap:wg({},n)},this.handleNavtoTab=this.handleNavtoTab.bind(this)}componentDidMount(){window.addEventListener(Kt,this.handleNavtoTab)}componentWillUnmount(){window.removeEventListener(Kt,this.handleNavtoTab)}handleNavtoTab(e){const n=e.detail.path[e.detail.path.indexOf("items")+1]?.id,o=e.detail.path[e.detail.path.lastIndexOf("items")+1]?.id;if(n===this.props.blockId){const r=this.props.items.findIndex(({id:m})=>m===o),{items:a,onStep:i}=this.props,{itemStatusMap:l}=this.state,u=a[r].id,d=CD(u);this.setState({itemStatusMap:va()(d,l)}),open&&i(a[r])}}UNSAFE_componentWillReceiveProps(e){const n=e.items,o=vs()(n)!==vs()(this.props.items);!e.keepOpen&&this.props.keepOpen?this.updateMapForOneAtATimePreference():o&&this.rebuildItemStatusMap(n)}updateMapForOneAtATimePreference(){const{itemStatusMap:e}=this.state,{items:n}=this.props,o=lD()(a=>e[a.id].isOpen,n);if(!o)return;const r=xD(o.id);this.setState({itemStatusMap:va()(r,e)})}rebuildItemStatusMap(e){const n=this.state.itemStatusMap;this.setState({itemStatusMap:wg(n,e)})}handleItemClick(e){const{items:n,keepOpen:o,onStep:r}=this.props,{itemStatusMap:a}=this.state,i=n[e].id,l=gD(i,o);this.setState({itemStatusMap:va()(l,a)}),open&&r(n[e])}render(){const{items:e,settings:n,editable:o,labels:r,lessonId:a,blockId:i,enableVideoPlaybackSpeed:l}=this.props,{itemStatusMap:u}=this.state,{zoomOnClick:d}=n,m=Object.values(u)?.find(p=>p.isOpen)?"open":"closed";return(0,s.jsx)("div",{className:"blocks-accordion__wrapper","data-accordion-status":m,children:e.map((p,f)=>(0,s.jsx)(ED,{blockId:i,disableZoom:!d,editable:o,focused:u[p.id].isActive,index:f,item:{...p,enableVideoPlaybackSpeed:l},labels:r,lessonId:a,onClick:this.handleItemClick.bind(this,f),open:u[p.id].isOpen},p.id))})}}const yD=Pg(bD);class LD extends fu.Component{static get defaultProps(){return{editable:!1,getL10nValue:()=>{},onClick:()=>{},lessonId:"",blockId:"",open:null}}id;content;constructor(e){super(e),this.id=mu()(),this.toggle=this.toggle.bind(this),this.renderDescription=this.renderDescription.bind(this),this.renderTitle=this.renderTitle.bind(this)}componentDidUpdate(e){if(!this.props.open)return;const n=this.content;if(n&&(n.classList.add("blocks-accordion__content--visible"),!e.open&&this.props.open)){const o=n.parentElement,r=o?.getBoundingClientRect()?.top,a=r!=null&&r>0&&r<window.innerHeight,i=Tn()?"instant":"smooth";a||o.scrollIntoView({behavior:i,block:"start"})}}toggle(e){const{blockId:n,index:o}=this.props,r=ct.playerId,a=new RegExp(`-${o}(?:-.+)?$`);open&&r&&r.includes(n.toString())&&a.test(r)&&ct.pause(),this.props.onClick(),e.preventDefault()}renderTitle(e){const{title:n}=this.props.item;return(0,s.jsx)(Et,{className:"blocks-accordion__title",id:e,value:n})}renderDescription(e){const{description:n=""}=this.props.item;return(0,s.jsx)(ls,{className:"blocks-accordion__description",value:n||""},e)}render(){const{blockId:e,blockSettings:n,editable:o,disableZoom:r,getL10nValue:a,index:i,item:l,focused:u,labels:d,lessonId:m,open:p,renderDescription:f=this.renderDescription,renderTitle:v=this.renderTitle}=this.props,{settings:g={},enableVideoPlaybackSpeed:C}=l,x=a(l.media)??{},L=lo(x,n.audioPosition),y=Object.assign({},g,{disableZoom:r,fullEmbed:!0}),E=n?.backgroundType===A.xj.ACCENT||n?.backgroundType===A.xj.IMAGE,b=Z()("blocks-accordion__item",{"blocks-accordion__item--closed":!p}),S=Z()("blocks-accordion__header",{"blocks-accordion__header--editing":o,"brand--border":p&&u&&!E}),T=Z()("blocks-accordion__content",{"blocks-accordion__content--will-enter":p,"brand--border":p&&u&&!E}),I=`title-${this.id}`,j=`panel-${this.id}`,M=n?.headingLevel,H=M?`h${M}`:"h2";let D=(0,s.jsxs)("button",{"aria-controls":j,"aria-expanded":p,className:S,onClick:this.toggle,onKeyDown:!o&&$2(this.toggle)||void 0,type:"button",children:[v(I),(0,s.jsx)("span",{className:"blocks-accordion__toggler-wrap",children:(0,s.jsx)(rt,{className:"blocks-accordion__toggler",name:p?"minus":"plus"})})]});return o&&(D=(0,s.jsxs)("div",{className:S,children:[v(I),(0,s.jsx)("button",{"aria-controls":j,"aria-expanded":p,"aria-label":p?"Close":"Open",className:"blocks-accordion__toggler-wrap",onClick:this.toggle,type:"button",children:(0,s.jsx)(rt,{className:"blocks-accordion__toggler",name:p?"minus":"plus"})})]})),(0,s.jsxs)(Os,{className:b,tag:"section",children:[(0,s.jsx)("div",{className:"blocks-accordion__header-wrap",children:(0,s.jsx)(H,{children:D})}),(0,s.jsx)("section",{"aria-labelledby":I,className:T,id:j,ref:P=>{this.content=P},children:L.renderOrder.map((P,F)=>{if(P==="text")return f(`text-${F}`);const k={blockId:e,hasPadding:!1,imageMaxHeight:1e3,item:l,labels:d,lessonId:m,enableVideoPlaybackSpeed:C,opts:y,shouldPause:!p},w=tm(x),O=w==="image-with-audio",W=O?"left":"center",$={audio:{media:L.audioOnlyMedia||x,isOverlayAudio:!1,index:`${e}-${i}-audio`,className:"blocks-accordion__audio"},image:{media:L.imageOnlyMedia||x,isOverlayAudio:!1,index:`${e}-${i}-image`,className:Z()(`blocks-accordion__${w}`,{[`blocks-accordion__${w}--${W}`]:O})},video:{media:L.videoOnlyMedia||x,isOverlayAudio:!1,index:`${e}-${i}-video`,className:Z()(`blocks-accordion__${w}`,{[`blocks-accordion__${w}--${W}`]:O})},embed:{media:L.embedOnlyMedia||x,isOverlayAudio:!1,index:`${e}-${i}-embed`,className:Z()(`blocks-accordion__${w}`,{[`blocks-accordion__${w}--${W}`]:O})},overlay:{media:x,isOverlayAudio:!0,index:`${e}-${i}-overlay`,className:Z()(`blocks-accordion__${w}`,{[`blocks-accordion__${w}--${W}`]:O})}}[P];if(!$)return null;const{className:ce,...Ee}=$;return(0,s.jsx)("div",{className:Z()(ce,{"audio-on-top":this.props.blockSettings.audioPosition==="top"}),children:(0,s.jsx)("div",{className:"blocks-accordion__figure",children:(0,s.jsx)($s,{...k,...Ee})})},`${P}-${F}`)})})]})}getMediaContainerClasses(e,n){const o=this.props.getL10nValue(this.props.item.media)??{},r=tm(o),a=r==="image-with-audio",i=a&&!Array.isArray(o)?o?.image?.align:"left";return Z()("blocks-accordion__media",`blocks-accordion__${r}`,{[`blocks-accordion__${r}--${i}`]:a,"blocks-accordion__media-container":e,"blocks-accordion__media-container--audio-overlay":n})}}const ED=Pg(Jt(t=>(0,s.jsx)(LD,{...t}))),tm=t=>{const{image:e,embed:n,video:o,audio:r}=t;return e&&!r?"image":n&&!r?"embed":o?"video":r&&!e&&!n?"audio":e&&r?"image-with-audio":r&&n?"audio-and-embed":"image"};class SD extends fu.Component{static get defaultProps(){return{items:[],activeIndex:0,getL10nValue:()=>{},lessonId:"",blockId:"",blockSettings:{},onStep:Function.prototype}}tabs;id;tabResize;tabScroll;arrowNextEl;arrowPrevEl;container;tabControls;tabsHeaderEl;constructor(e){super(e),this.renderDescription=this.renderDescription.bind(this);const n=this.props.activeIndex;this.state={activeIndex:n,activeTouch:!1,activeMouse:!1},this.tabs=[],this.id=mu()(),this.handleNavtoTab=this.handleNavtoTab.bind(this)}componentDidMount(){this.handleControls(),window.addEventListener("resize",this.tabResize=pu()(this.handleControls.bind(this),100)),window.addEventListener(Kt,this.handleNavtoTab),this.tabsHeaderEl?.addEventListener("scroll",this.tabScroll=pu()(this.handleControls.bind(this),50))}handleNavtoTab(e){const n=e.detail.path[e.detail.path.indexOf("items")+1]?.id,o=e.detail.path[e.detail.path.lastIndexOf("items")+1]?.id;n===this.props.blockId&&(this.tabsHeaderEl.scrollIntoView({behavior:"smooth",block:"start"}),this.setState({activeIndex:this.props.items.findIndex(({id:r})=>r===o)},()=>{Fh(this.tabsHeaderEl,"start")||this.tabsHeaderEl.scrollIntoView({behavior:"instant",block:"start"})}))}componentDidUpdate(){this.handleControls()}componentWillUnmount(){this.tabsHeaderEl?.removeEventListener("scroll",this.tabScroll),window.removeEventListener("resize",this.tabResize),window.removeEventListener(Kt,this.handleNavtoTab)}setActive(e){this.setState({activeIndex:e});const{blockId:n}=this.props,o=ct.playerId;this.state.activeIndex!=e&&o&&o.includes(n.toString())&&ct.pause(),this.props.onStep?.(this.props.items[e])}handleControls(){const{isRTL:e}=this.props;this.tabsHeaderEl.offsetWidth===this.tabsHeaderEl.scrollWidth?(this.arrowPrevEl.classList.add("hidden"),this.arrowNextEl.classList.add("hidden"),this.tabControls.classList.add("start"),this.tabControls.classList.add("end")):(this.tabsHeaderEl.scrollLeft===0?(this.arrowPrevEl.classList.add("hidden"),this.tabControls.classList.add("start")):(this.arrowPrevEl.classList.remove("hidden"),this.tabControls.classList.remove("start")),this.tabsHeaderEl.scrollLeft===(this.tabsHeaderEl.scrollWidth-this.tabsHeaderEl.offsetWidth)*(e?-1:1)?(this.arrowNextEl.classList.add("hidden"),this.tabControls.classList.add("end")):(this.arrowNextEl.classList.remove("hidden"),this.tabControls.classList.remove("end")))}handleMouseEnter(){this.state.activeTouch||this.setState({activeMouse:!0})}handleMouseLeave(){this.setState({activeMouse:!1})}handleTouchStart(){this.setState({activeTouch:!0})}scrollTabs(e){const{isRTL:n}=this.props,o=this.tabsHeaderEl.offsetWidth,r=this.tabsHeaderEl.scrollLeft,i=(e==="next"?n?Rg():Ah():n?Ah():Rg())(r,o*.8);this.tabsHeaderEl.scrollTo({left:i,behavior:"smooth"})}arrowPrevInset(e){const n=this.arrowPrevEl.getBoundingClientRect(),o=n.right-e,r=n.left-e;return o+r}focusTab(e){e.currentTarget?.scrollIntoView({behavior:"smooth",block:"nearest"})}handleTabKeyDown(e,n){const{isRTL:o}=this.props;let r=!1,a;Nr(n)?(r=!0,a=o?e+1>this.tabs.length-1?0:e+1:e-1>=0?e-1:this.tabs.length-1):jr(n)&&(r=!0,a=o?e-1>=0?e-1:this.tabs.length-1:e+1>this.tabs.length-1?0:e+1),r&&n.preventDefault(),a!=null&&(this.tabs[a]?.focus(),this.setActive(a))}renderHeader(e,n){const{activeIndex:o,activeTouch:r,activeMouse:a}=this.state,i=this.tabsHeaderEl&&this.tabsHeaderEl.scrollWidth>this.tabsHeaderEl.clientWidth,l=Z()("blocks-tabs__header-wrap",{touch:r,mouse:a&&i});return(0,s.jsxs)("div",{className:l,onMouseEnter:this.handleMouseEnter.bind(this),onMouseLeave:this.handleMouseLeave.bind(this),onTouchStart:this.handleTouchStart.bind(this),children:[(0,s.jsx)("div",{className:"blocks-tabs__header",ref:u=>{this.tabsHeaderEl=u},role:gw,children:e.map(({title:u},d)=>{const m=e.length===1||d===o,p=e.length>1&&d+1===o,f=e.length>1&&d-1===o,v=Z()("blocks-tabs__header-item",{"brand--color":m&&!n,"blocks-tabs__header-item--active":m,"blocks-tabs__header-item--before-active":p,"blocks-tabs__header-item--after-active":f}),g=`tab-${this.id}-${d}`,C=`tabpanel-${this.id}-${d}`;return(0,s.jsx)("button",{"aria-controls":C,"aria-selected":m,className:v,id:g,onClick:this.setActive.bind(this,d),onFocus:this.focusTab.bind(this),onKeyDown:this.handleTabKeyDown.bind(this,d),ref:x=>{this.tabs[d]=x},role:xw,tabIndex:m?void 0:-1,type:"button",children:(0,s.jsx)(Et,{value:u})},g)})}),(0,s.jsxs)("div",{className:"blocks-tabs__controls",ref:u=>{this.tabControls=u},children:[(0,s.jsx)("div",{"aria-hidden":"true",className:"blocks-tabs__arrow blocks-tabs__arrow--prev brand--background",onClick:this.scrollTabs.bind(this,"previous"),ref:u=>{this.arrowPrevEl=u},children:(0,s.jsx)(rt,{className:"blocks-tabs__arrow-icon",name:"chevron-right-solid"})}),(0,s.jsx)("div",{"aria-hidden":"true",className:"blocks-tabs__arrow blocks-tabs__arrow--next brand--background",onClick:this.scrollTabs.bind(this,"next"),ref:u=>{this.arrowNextEl=u},children:(0,s.jsx)(rt,{className:"blocks-tabs__arrow-icon blocks-tabs__arrow-icon--next",name:"chevron-right-solid"})})]})]})}renderDescription({description:e}){return(0,s.jsx)(ls,{className:"blocks-tabs__description",value:e})}renderItem(e,n,o){const{blockId:r,getL10nValue:a,labels:i,lessonId:l,renderDescription:u=this.renderDescription}=this.props,{activeIndex:d}=this.state,m=d===n,{settings:p={},enableVideoPlaybackSpeed:f}=e,v=a(e.media)??{},g=lo(v,this.props.settings.audioPosition,!1),C=Z()("blocks-tabs__content-item",{"blocks-tabs__content-item--active":m}),x=Object.assign({},p,{disableZoom:o,fullEmbed:!0}),L=`tabpanel-${this.id}-${n}`,y=`tab-${this.id}-${n}`,E=tm(v),b=E==="image-with-audio",S=E==="audio-and-embed",T=b?v?.image?.align:"left",I=S?"embed-border":void 0;return(0,s.jsx)("div",{"aria-labelledby":y,className:C,id:L,role:Cw,tabIndex:m?0:void 0,children:g.renderOrder.map((j,M)=>{if(j==="text")return(0,s.jsx)("div",{className:"blocks-tabs__description",children:u(e)},`text-${M}`);const H={blockId:r,embedClass:I,hasPadding:!1,imageMaxHeight:1e3,item:e,labels:i,lessonId:l,enableVideoPlaybackSpeed:f,opts:x,shouldPause:!m},P={audio:{media:g.audioOnlyMedia||v,isOverlayAudio:!1,index:`${r}-${n}-audio`,className:"blocks-tabs__audio"},image:{media:g.imageOnlyMedia||v,isOverlayAudio:!1,index:`${r}-${n}-image`,className:Z()(`blocks-tabs__${E}`,{[`blocks-tabs__${E}--${T}`]:b})},video:{media:g.videoOnlyMedia||v,isOverlayAudio:!1,index:`${r}-${n}-video`,className:Z()(`blocks-tabs__${E}`,{[`blocks-tabs__${E}--${T}`]:b})},embed:{media:g.embedOnlyMedia||v,isOverlayAudio:!1,index:`${r}-${n}-embed`,className:Z()(`blocks-tabs__${E}`,{[`blocks-tabs__${E}--${T}`]:b})},overlay:{media:v,isOverlayAudio:!0,index:`${r}-${n}-overlay`,className:Z()(`blocks-tabs__${E}`,{[`blocks-tabs__${E}--${T}`]:b})}}[j];if(!P)return null;const{className:F,...k}=P;return(0,s.jsx)("div",{className:Z()(F,{"audio-on-top":this.props.settings.audioPosition==="top"}),children:(0,s.jsx)("div",{className:"blocks-tabs__figure",children:(0,s.jsx)($s,{...H,...k})})},`${j}-${M}`)})},L)}render(){const{animateBlockEntrance:e,initiallyVisible:n,isLearner:o,items:r,settings:a,enableVideoPlaybackSpeed:i}=this.props,{backgroundType:l,cardMode:u,entranceAnimation:d,zoomOnClick:m}=a,p=Z()("blocks-tabs",{"blocks-tabs--no-animation":!d}),f=r.length>0?r.slice(0,mD):[],v=u===Dn.TRANSPARENT&&(l===A.xj.ACCENT||l===A.xj.IMAGE),g=Z()("blocks-tabs__container",{"blocks-tabs--single":f.length===1});return(0,s.jsx)(kt,{className:p,children:(0,s.jsx)(Mt,{animateBlockEntrance:e,initiallyVisible:n,isLearner:o,children:(0,s.jsx)("div",{className:g,children:(0,s.jsx)("div",{className:"blocks-tabs__row",children:(0,s.jsx)("div",{className:"blocks-tabs__col",children:(0,s.jsx)("div",{className:"blocks-tabs__wrapper",ref:C=>{this.container=C},children:(0,s.jsxs)(Os,{children:[this.renderHeader(f,v),(0,s.jsx)("div",{className:"blocks-tabs__content",children:f.map((C,x)=>this.renderItem({...C,enableVideoPlaybackSpeed:i},x,!m))})]})})})})})})})}}const TD=Kh(Jt(t=>(0,s.jsx)(SD,{...t}))),ID=Rt()(null,["payload","result"]),ND=t=>{if(t.meta?.thumbnail)return`${t.contentPrefix}/${t.meta.thumbnail}`},jD=t=>t.meta?.version,Mg=t=>t.src??null,kD=t=>t.processing,AD=Xt()(["payload","result","completion"]),RD=Rt()(!1,["payload","result","score"]),PD=ia()((t,e)=>{if(!e)return!1;const{majorLimit:n,minorLimit:o}=t,[r,a]=e.split("."),i=parseInt(r)===n&&Number(a)>=o;return Number(r)>n||i}),wD={mobile:"?forcemobile=1&devicepreview=1&phone=1&rise=true",tablet:"?forcemobile=1&devicepreview=1&rise=true"},MD=t=>{const e=ln()(t.split("-"));return wD[e]},OD=PD({majorLimit:3,minorLimit:13}),DD=(t,e,n,o)=>{const r=e&&MD(n),a=r?`${t}${r}`:`${t}?rise=true`;if(o){const i=a.includes("?")?"&":"?";return`${a}${i}locale=${o}`}return a};var BD=c(26372);class HD extends BD.Component{constructor(e){super(e),this.state={fullscreen:!1,reopenMenu:!1},this.iframe=null,this.canFullscreen=this.canFullscreen.bind(this),this.handleCourseUpdate=this.handleCourseUpdate.bind(this),this.handleFullscreenEnter=this.handleFullscreenEnter.bind(this),this.handleFullscreenExit=this.handleFullscreenExit.bind(this),this.handleMessages=this.handleMessages.bind(this),this.renderItem=this.renderItem.bind(this)}iframe;static get defaultProps(){return{getL10nValue:()=>{},isLesson:!1,onStep:Function.prototype,hasManySlBlocks:Function.prototype,previewType:""}}UNSAFE_componentWillMount(){window.addEventListener("message",this.handleMessages)}componentWillUnmount(){window.removeEventListener("message",this.handleMessages)}componentDidMount(){const{getL10nValue:e,items:n,onStep:o}=this.props,r=ln()(n),a=e(r?.media)?.storyline??{},i=jD(a);OD(i)||o(r)}canFullscreen(e){const{blockId:n,hasManySlBlocks:o}=this.props,{windowName:r}=e;return n===r||!o()}handleMessages(e){const{data:n}=e,{type:o}=n,r={"fullscreen:enter":this.handleFullscreenEnter,"fullscreen:exit":this.handleFullscreenExit,"course:update":this.handleCourseUpdate}[o];r&&r(n)}handleCourseUpdate(e){const{items:n,onStep:o,blockId:r}=this.props,a=ln()(n),{windowName:i}=e;if(r===i&&AD(e)){const{score:l,success:u}=ID(e);if(RD(e)){const d=l.scaled*100;(0,et.jr)(r,u,!0,d)}else(0,et.jr)(r,!0,!1);o(a)}}handleFullscreenEnter(e){const{menuOpen:n,handleStorylineFullscreen:o}=this.props;this.canFullscreen(e)&&(n&&o(!0),this.setState({fullscreen:!0,reopenMenu:n}))}handleFullscreenExit(e){const{handleStorylineFullscreen:n}=this.props,{reopenMenu:o}=this.state;this.canFullscreen(e)&&(o&&n(!1),this.setState({fullscreen:!1,reopenMenu:!1}))}render(){const{animateBlockEntrance:e,getL10nValue:n,initiallyVisible:o,isLesson:r,isLearner:a,isOnlyBlockInStep:i,items:l,labels:{a11yBlockStoryline:u},settings:d,takingSnapshot:m}=this.props,p=ln()(l),f=n(p?.media)?.storyline??{},{mediaWidth:v="0"}=d,g=i?{}:{display:r&&!Mg(f)?"none":"block"},C=Z()("blocks-storyline__wrapper",{"blocks-storyline__wrapper--small":v==="0","blocks-storyline__wrapper--medium":v==="1","blocks-storyline__wrapper--full":v==="2","blocks-storyline__wrapper--snapshot":m});return(0,s.jsx)(kt,{className:"blocks-storyline",style:g,children:(0,s.jsx)(Mt,{animateBlockEntrance:e,initiallyVisible:o,isLearner:a,children:(0,s.jsx)("div",{"aria-label":u,className:C,role:"group",children:m?this.renderThumbnail(f):this.renderStorylineBlock(f)})})})}renderStorylineBlock(e){return kD(e)?this.renderProcessing():Mg(e)?this.renderItem(e):this.renderEmpty()}renderThumbnail(e){const n=ND(e),o=`${(0,ze._$)("CDN_USER_CONTENT_URI")}/${n}`;return(0,s.jsx)("img",{alt:"Thumbnail",src:o})}renderEmpty(){const{renderEmpty:e}=this.props;return typeof e=="function"?e():null}renderItem(e){const{fullscreen:n}=this.state,{blockId:o,currentLocale:r,isLesson:a,previewType:i,settings:l}=this.props,{cornerRadius:u}=l,{src:d,meta:m,title:p}=e,{player:f}=m,v=DD(d,a,i,r),C={paddingBottom:`${f.height/f.width*100}%`,...u!=null&&{"--corner-radius":`${Number(u)}px`}},x=Z()("blocks-storyline__item__iframe",{"blocks-storyline__item__iframe--fullscreen":n});return(0,s.jsx)("div",{className:"blocks-storyline__item",style:C,children:(0,s.jsx)("iframe",{allowFullScreen:!0,allowtransparency:"true",className:x,loading:"lazy",name:o.toString(),ref:L=>{this.iframe=L},src:(0,ze.o1)(v),title:p})})}renderProcessing(){const{renderProcessing:e}=this.props;return typeof e=="function"?e():null}}const FD=(0,bt.wZ)(Jt(HD));var Og=c(26372);const vu=ee("blocks-button"),Dg=A.zV,VD=({description:t})=>(0,s.jsx)(Et,{className:vu("description"),value:t}),zD=({color:t,destination:e,editBlock:n,handleNavigate:o,isEditable:r,label:a,type:i})=>{const l=(0,xe.d_)(),u=(0,xe.DX)()?.externalLinksDisabled,d=(0,xe.DX)()?.theme,m=(0,xe.kJ)(),{mode:p}=(0,ie.g)(),f=sn(),v=(0,xe.vU)(),g=(0,st.QQ)(e),C=(0,fa.htmlDecode)((0,yo.QZ)((0,st.QQ)(a))),x=i==="email",L=i==="exit-course",y=i==="lesson",E=i==="relative-url",b=vu("button"),S=!t||t===""||t===m,T=t??m,I={},j=(0,xe.Ge)(m),M=S&&d?.accentContrast===A.Em.AUTO?A.Em.AUTO:j,H=f?.buttonColorContrast??M,D=f?.buttonRadius??null,P=f?.buttonWidth??null,F=ws({backgroundColor:T,contrast:H});Object.assign(I,{...!S&&{"--color-button-bg":T},...!S&&{"--color-button-text":F},...!S&&{"--color-button-border":"transparent"},...D!=null&&{"--radius-button":`${Number(D)}px`},...P!=null&&{"--width-button":`${Number(P)}rem`}});const k=u&&Pn(g),{handleMouseEnter:w,handleMouseLeave:O,handleFocus:W,handleBlur:G}=md(),$=Og.useId(),ce=(0,h.useCallback)(()=>{if(r)n();else{if(k)return;if(L)return(0,ze.NS)()}},[n,k,r,L]),Ee=(0,h.useCallback)(()=>{o(g)},[g,o]);if(r||k||L){const Ne=(0,s.jsx)("button",{"aria-label":C,className:b,id:k?$:void 0,onBlur:k?()=>G($):void 0,onClick:ce,onFocus:k?()=>W($):void 0,onKeyDown:$2(ce),onMouseEnter:k?()=>w($):void 0,onMouseLeave:k?()=>O($):void 0,style:I,tabIndex:uh,type:"button",children:C});return k?(0,s.jsxs)(s.Fragment,{children:[Ne,(0,s.jsx)(pd,{anchorId:$})]}):Ne}else if(y){const Ne=p?`/${p}`:"",De=`/lessons/${g}${Ne}`,Ke=g===""?"#":De;return(0,s.jsx)(Cn,{"aria-label":C,className:b,onClick:Ee,style:I,to:Ke,children:C})}else{const Ne=E?g:Sn(g),De=x?`mailto:${g}?subject=${l}`:Ne,Ke=xn.isIphoneSafari?"_top":"_self",Ae=x?Ke:"_blank",we=Ae==="_blank",he=we?"noopener noreferrer nofollow":void 0,oe=v?.a11yNoticeLinkNewTab||"(opens in a new tab)",Be=we?`${C} ${oe}`:C;return(0,s.jsx)("a",{"aria-label":Be,className:b,href:De,rel:he,style:I,tabIndex:uh,target:Ae,children:C})}},Bg=t=>{const{animateBlockEntrance:e,editable:n,editBlock:o=()=>{},handleNavigate:r,initiallyVisible:a,isLearner:i,items:l=[],renderDescription:u=VD,settings:d}=t,{buttonAlignment:m=A.Ht,buttonColor:p,buttonShowDescription:f=!0,buttonStack:v,entranceAnimation:g}=d,C=vu(null,{"no-animation":!g,description:f==!0,center:m==="center",left:m==="left",right:m==="right",rounded:Dg==="rounded"}),x=l?.map(({id:L,description:y,...E})=>{const b=(0,s.jsx)(zD,{...E,color:p,editBlock:o,handleNavigate:r,isEditable:n}),S=f&&u({id:L,description:y});return(0,s.jsx)("section",{className:vu("container"),children:m==="left"&&f?(0,s.jsxs)(s.Fragment,{children:[b,S]}):(0,s.jsxs)(s.Fragment,{children:[S,b]})},L)})??null;if(v){const{paddingBottom:L,paddingTop:y}=d,E={...y!=null&&{paddingTop:`${Number(y)}rem`},...L!=null&&{paddingBottom:`${Number(L)}rem`}};return(0,s.jsx)("div",{className:C.toString(),style:E,children:x})}return(0,s.jsx)(kt,{className:C.toString(),children:(0,s.jsx)(Mt,{animateBlockEntrance:e,animateIn:"fadeIn",initiallyVisible:a,isLearner:i,children:(0,s.jsx)("div",{className:"blocks-button",children:x})})})},UD=Bg;class $D extends Og.Component{renderButtonDelegate;constructor(e){super(e),this.renderButtonDelegate=this.renderButton.bind(this)}static get defaultProps(){return{items:[],lessonId:"",blockId:"",editBlock:()=>{}}}renderButton(e,n){const{blockId:o,editable:r,editBlock:a,handleNavigate:i,isLearner:l,lessonId:u,initiallyVisible:d}=this.props;return(0,s.jsx)(Bg,{animateBlockEntrance:!1,blockId:o,editable:r,editBlock:a,handleNavigate:i,initiallyVisible:d,isLearner:l,items:[e],lessonId:u,settings:n,type:"right"})}render(){const{animateBlockEntrance:e,initiallyVisible:n,isLearner:o,items:r,settings:a,renderButton:i=this.renderButtonDelegate}=this.props,{entranceAnimation:l,buttonShowDescription:u=!0,buttonAlignment:d=A.Ht,buttonSpacing:m=3}=a,p=Z()("blocks-buttonstack",{"blocks-buttonstack--no-animation":!l,"blocks-button--description":u==!0,"blocks-button--center":d==="center","blocks-button--left":d==="left","blocks-button--right":d==="right","blocks-button--rounded":Dg==="rounded"});return(0,s.jsx)(kt,{className:p,children:(0,s.jsx)(Mt,{animateBlockEntrance:e,initiallyVisible:n,isLearner:o,children:r.map((f,v)=>{const g=v===0,C={buttonColor:a.buttonColor||this.props.color,buttonStyle:a.buttonStyle,buttonStack:!0,buttonShowDescription:u,buttonAlignment:d,...g?{}:{paddingTop:m}};return(0,s.jsx)(h.Fragment,{children:i(f,C)},f.id)})})})}}var WD=c(16580),_D=c.n(WD);const gu=ee("block-video");function GD({item:t}){const e=(0,st.gY)(),{media:n}=t,o=e(n)??{},{customVideo:r={},tmp:a={},video:i={}}=o,l="poster"in i?i:{...i,...r},u=a.video&&"poster"in a.video?a.video:void 0,{poster:d}=(0,ze.Hm)()?l:u||l;return(0,s.jsxs)("div",{className:gu("poster-container"),children:[(0,s.jsx)(Ln,{alt:"Video Poster",className:gu("poster"),src:d}),(0,s.jsx)("div",{className:gu("play-overlay"),children:(0,s.jsxs)("svg",{className:gu("play-icon"),fill:"currentColor",height:"80",viewBox:"0 0 24 24",width:"80",children:[(0,s.jsx)("circle",{cx:"12",cy:"12",fill:"rgba(0,0,0,0.6)",r:"12"}),(0,s.jsx)("polygon",{fill:"white",points:"10,8 10,16 16,12"})]})})]})}const Hg=ee("block-video");function KD({mediaWidth:t}){const e=Hg("item",{small:t==="0",medium:t==="1",full:t==="2"});return(0,s.jsx)("div",{className:e,children:(0,s.jsx)("div",{className:Hg("placeholder")})})}const QD=yr()("partner-content-block-card__"),ZD=t=>{const{backgroundColor:e,blockId:n,courseId:o,partnerContent:r,publishedAt:a,tenantId:i}=t,{data:l,type:u}=r,{authors:d,bookImage:m,bookTitle:p,buyLink:f,internalId:v,nbicLink:g}=l,C={blockId:n,courseId:o,partnerContentId:v,tenantId:i,contentSubtype:u};return(0,s.jsxs)("section",{children:[(0,s.jsx)("h2",{className:"visually-hidden",children:"More Info"}),(0,s.jsxs)("ol",{className:"partner-content-block-card",role:"list",children:[(0,s.jsx)("li",{role:"listitem",children:(0,s.jsx)(D2,{authors:d,backgroundColor:e,block:!0,bookImage:m,bookTitle:p,buyLink:f,publishedAt:a,trackingInfo:C})}),(0,s.jsx)("li",{role:"listitem",children:(0,s.jsx)("div",{className:QD("divider")})}),(0,s.jsx)("li",{role:"listitem",children:(0,s.jsx)(B2,{backgroundColor:e,block:!0,link:g,publishedAt:a,trackingInfo:C})})]})]})};var YD=c(26372);const sm=ee("block-video");function XD({audioVideoPlayhead:t,backgroundColor:e,blockId:n,blockPartnerContent:o,blockPartnerContentExists:r,captions:a,courseId:i,cornerRadius:l,currentLocale:u,dataL10nId:d,enableVideoPlaybackSpeed:m,forwardSeekRestricted:p,id:f,isLoaded:v,item:g,lessonId:C,loadMedia:x,mediaWidth:L,onLoad:y,onProgressChanged:E,poster:b,publishedAt:S,recordMediaPlayheadPosition:T,renderCaption:I,subtitle:j,tenantId:M,type:H,videoKey:D,videoSrc:P}){const F=sm("item",{small:L==="0",medium:L==="1",full:L==="2"}),k=YD.useCallback(w=>{const O=sm("caption",{visible:v}).toString();return(0,s.jsx)(ls,{className:O,value:w.caption})},[v]);return(0,s.jsxs)("div",{className:F,children:[(0,s.jsxs)("figure",{"data-l10n-id":d,children:[x&&(0,s.jsx)(bg,{audioVideoPlayhead:t,canAdjustPlaybackSpeed:m,canRestrictSeek:p,captions:a,cornerRadius:l,id:`${C}-${n}-${f}-${u}`,onLoad:y,poster:b,progressChanged:E,recordMediaPlayheadPosition:T,src:P,subtitle:j,type:D?"video":H},`${C}-${n}-${f}-${u}-${b||""}`),v&&(0,s.jsx)("figcaption",{className:sm("wrapper"),children:(I??k)(g)})]}),r&&(0,s.jsx)(ZD,{backgroundColor:e,blockId:n,courseId:i,partnerContent:o,publishedAt:S,tenantId:M})]})}var nm=c(26372);function JD({backgroundColor:t,blockId:e,cornerRadius:n,courseId:o,enableVideoPlaybackSpeed:r,forwardSeekRestricted:a,item:i,lessonId:l,loadMedia:u,mediaWidth:d,onStep:m,partnerContent:p,audioVideoPlayhead:f,publishedAt:v,recordMediaPlayheadPosition:g,renderCaption:C,tenantId:x,type:L}){const[y,E]=nm.useState(!1),{currentLocale:b}=(0,bt.nY)(),S=(0,st.gY)(),{id:T,media:I,partnerContentId:j}=i,M=S(I)??{},{customVideo:H={},tmp:D={},video:P={}}=M,F="poster"in P?P:{...P,...H},k=D.video&&"poster"in D.video?D.video:void 0,{captions:w,key:O,poster:W,src:G,subtitle:$}=(0,ze.Hm)()?F:k||F,ce=O||G,Ee=p?.find(we=>j!=null&&(0,Us.Gv)(we)&&"id"in we&&we.id===j),Ne=Ee!=null&&(0,Us.Gv)(Ee),De=(0,Us.Gv)(I)&&"l10nId"in I?I.l10nId:void 0,Ke=nm.useCallback(()=>{E(!0)},[]),Ae=nm.useCallback(({percentComplete:we})=>{we>=100&&m?.({id:T})},[T,m]);return ce?(0,s.jsx)(XD,{audioVideoPlayhead:f,backgroundColor:t,blockId:e,blockPartnerContent:Ee,blockPartnerContentExists:Ne,captions:w,cornerRadius:n,courseId:o,currentLocale:b,dataL10nId:De,enableVideoPlaybackSpeed:r,forwardSeekRestricted:a,id:T,isLoaded:y,item:i,lessonId:l,loadMedia:u,mediaWidth:d,onLoad:Ke,onProgressChanged:Ae,poster:W,publishedAt:v,recordMediaPlayheadPosition:g,renderCaption:C,subtitle:$,tenantId:x,type:L,videoKey:O,videoSrc:ce},O):(0,s.jsx)(KD,{mediaWidth:d})}const qD=ee("block-video");function om({animateBlockEntrance:t,blockId:e,courseId:n,enableVideoPlaybackSpeed:o,initiallyVisible:r,isDragPreview:a,isLearner:i,isSidebarPreview:l,items:u,lessonId:d,loadMedia:m,onStep:p,partnerContent:f,progress:v,publishedAt:g,recordMediaPlayheadPosition:C,renderCaption:x,settings:L,takingSnapshot:y,tenantId:E,type:b}){const S=u?.[0];if(S==null)return null;const T=qD({"no-animation":!L?.entranceAnimation}).toString(),I=(0,Us.Gv)(L)&&"forwardSeekRestricted"in L?L.forwardSeekRestricted:void 0,j=(0,Us.Gv)(L)&&"mediaWidth"in L?L.mediaWidth??"1":"1",M=y||a||l;return(0,s.jsx)(kt,{className:T,children:(0,s.jsx)(Mt,{animateBlockEntrance:t,initiallyVisible:r,isLearner:i,children:M?(0,s.jsx)(GD,{item:S}):(0,s.jsx)(JD,{audioVideoPlayhead:v?.items?.[e]?.items?.[S.id]?.audioVideoPlayhead??0,backgroundColor:L?.backgroundColor,blockId:e,cornerRadius:L?.cornerRadius,courseId:n,enableVideoPlaybackSpeed:o,forwardSeekRestricted:I,item:S,lessonId:d,loadMedia:m,mediaWidth:j,onStep:p,partnerContent:f,publishedAt:g,recordMediaPlayheadPosition:C,renderCaption:x,tenantId:E,type:b})})})}var rm=c(26372);const Cu=ee("block-audio"),am=ee("block-embed"),Nn=ee("block-attachment");class eB extends rm.Component{renderCaptionDelegate;constructor(e){super(e),this.renderCaptionDelegate=this.renderCaption.bind(this),this.onLoad=this.onLoad.bind(this),this.state={loaded:!1}}static get defaultProps(){return{audioVideoPlayhead:0,blockId:"",getL10nValue:()=>{},editable:!1,items:[],lessonId:"",onStep:()=>{},recordMediaPlayheadPosition:()=>{}}}renderCaption({caption:e}){const{loaded:n}=this.state,o=Cu("caption",{hidden:!n}).toString();return(0,s.jsx)(ls,{className:o,value:e})}onLoad(){this.setState({loaded:!0})}renderItem(e){const{blockId:n,getL10nValue:o,labels:r,lessonId:a,loadMedia:i,progress:l,recordMediaPlayheadPosition:u,renderCaption:d=this.renderCaptionDelegate,settings:m}=this.props,p="forwardSeekRestricted"in m?m.forwardSeekRestricted:!1,f=e.media,v=o(f)??{},{id:g}=e,C=v?.tmp?.audio?.key||v?.audio?.key,x=`${a}-${n}-${g}`,L=Rt()(0,["items",n,"items",g,"audioVideoPlayhead"],l),y=_h({lessonId:a,refs:`items:${n}/items:${g}`});return(0,s.jsxs)("div",{className:Cu("item"),children:[i&&(0,s.jsx)(hg,{audioVideoPlayhead:L,canRestrictSeek:!!p,id:x,item:e,labels:r,mediaSrc:C,onAIUploadFinish:this.props.onAIUploadFinish,onEnd:this.handleOnEnd.bind(this,g),onLoad:this.onLoad,onTranscriptClick:this.onTranscriptClick.bind(this,e),onTranscriptClose:this.props.closeTranscript,recordMediaPlayheadPosition:u,refs:`items:${n}/items:${g}`,transcriptMedia:f,uploadId:y},x),d(e)]},g)}handleOnEnd(e){this.props.onStep({id:e})}onTranscriptClick(e){const{blockId:n}=this.props;return this.props.openTranscript?.({blockId:n,item:e,refs:`items:${n}/items:${e.id}`})}render(){const{animateBlockEntrance:e,initiallyVisible:n,isLearner:o,items:r,settings:a}=this.props,{entranceAnimation:i}=a,l=Cu({"no-animation":!i}).toString(),u=r.length>0?r.slice(0,1):[];return(0,s.jsx)(kt,{className:l,children:(0,s.jsx)(Mt,{animateBlockEntrance:e,initiallyVisible:n,isLearner:o,children:(0,s.jsx)("div",{className:Cu("wrapper"),children:u.map(d=>this.renderItem(d))})})})}}const tB=av(Jt(eB));class sB extends rm.Component{static get defaultProps(){return{items:[],editable:!1,lessonId:"",blockId:"",settings:{}}}renderItem(e,n){const{id:o,settings:r={}}=e,a=this.props.getL10nValue(e.media)??{},i="embed"in a?a.embed:void 0,{loadMedia:l,labels:u,settings:d}=this.props,{showMetaData:m}=r,{cardMode:p,showBorder:f=!0}=d,v=am("item",{border:f}).toString();return(0,s.jsx)(Os,{className:v,disabled:!f&&p==Dn.TRANSPARENT,tag:"section",children:l&&(0,s.jsx)(xg,{data:i,id:`${n}-${o}`,isLesson:!0,labels:u,showMetaData:m})},o)}render(){const{animateBlockEntrance:e,blockId:n,getL10nValue:o,initiallyVisible:r,isLearner:a,items:i,settings:l}=this.props,{entranceAnimation:u,mediaWidth:d="0"}=l,m=o(i?.[0]?.media);if(!m)return null;const p=NM(m)!=="link",f=am({"no-animation":!u}).toString(),v=am("wrapper",{medium:p&&d==="1",full:p&&d==="2"}),g=i.length>0?i.slice(0,1):[];return(0,s.jsx)(kt,{className:f,children:(0,s.jsx)(Mt,{animateBlockEntrance:e,initiallyVisible:r,isLearner:a,children:(0,s.jsx)("div",{className:v,children:g.map(C=>this.renderItem(C,n))})})})}}const nB=Jt(ah()(sB));class oB extends rm.Component{get attachment(){const e=this.props.items[0].media;return this.props.getL10nValue(e)?.attachment??{}}render(){const{animateBlockEntrance:e,initiallyVisible:n,isLearner:o}=this.props;return(0,s.jsx)(kt,{children:(0,s.jsx)(Mt,{animateBlockEntrance:e,initiallyVisible:n,isLearner:o,children:(0,s.jsx)("div",{className:"block-text--onecol",children:(0,s.jsx)("div",{className:"block-text__container",children:(0,s.jsx)("div",{className:"block-text__row",children:(0,s.jsx)("div",{className:"block-text__col",children:this.renderAttachment(this.attachment)})})})})})})}renderAttachment(e){return e.key?this.renderDownload(e):this.renderNoFile()}renderDownload({key:e,mimeType:n,originalUrl:o,size:r}){const{attachmentId:a,blockId:i,externalLinksDisabled:l,onLinkBlur:u,onLinkFocus:d,onLinkMouseEnter:m,onLinkMouseLeave:p}=this.props,f=(0,ze.o1)(e),v=l?"":void 0,g=l?void 0:f,C=l?void 0:"noopener noreferrer nofollow",x=l?"button":void 0,L=l?0:void 0,y=l?void 0:"_blank",E=Nn({}).mix("brandHover").toString(),b=Nn("info");return(0,s.jsxs)(Os,{"aria-labelledby":`attachment-name-${i} attachment-icon-${i}`,className:E,"data-external":v,download:o,href:g,id:l?a:void 0,onBlur:l?()=>u?.(a):void 0,onFocus:l?()=>d?.(a):void 0,onMouseEnter:l?()=>m?.(a):void 0,onMouseLeave:l?()=>p?.(a):void 0,rel:C,role:x,tabIndex:L,tag:"a",target:y,children:[(0,s.jsxs)("div",{className:Nn("main"),children:[(0,s.jsx)("div",{className:Nn("icon"),id:`attachment-icon-${i}`,children:this.fileIcon(n)}),(0,s.jsxs)("div",{className:b,children:[(0,s.jsx)(Et,{className:Nn("title").toString(),id:`attachment-name-${i}`,value:o}),(0,s.jsx)("div",{className:Nn("size").toString(),children:_D()(r,{round:1})})]})]}),(0,s.jsx)("div",{className:Nn("rest"),children:(0,s.jsx)(g4,{className:"brandHover__target--fill"})})]})}renderNoFile(){const e=Nn({none:!0}).toString(),n=Nn("info");return(0,s.jsx)(Os,{className:e,children:(0,s.jsxs)("div",{className:Nn("main"),children:[(0,s.jsx)("div",{className:Nn("icon"),children:(0,s.jsx)(wp,{"aria-label":"File"})}),(0,s.jsxs)("div",{className:n,children:[(0,s.jsx)("div",{className:Nn("title").toString(),children:"File Attachment Block"}),(0,s.jsx)("div",{className:Nn("size").toString(),children:"No file added"})]})]})})}fileIcon(e){const{labels:n}=this.props,o=/excel|spreadsheet/,r=/pdf/,a=/word/,i=/powerpoint|presentation/,l=/rtf|richtext/,u=/zip/;return o.test(e)?(0,s.jsx)(Q4,{"aria-label":n?.a11yExcelIcon}):r.test(e)?(0,s.jsx)(_4,{"aria-label":n?.a11yPDFIcon}):a.test(e)?(0,s.jsx)(U4,{"aria-label":n?.a11yWordIcon}):i.test(e)?(0,s.jsx)(G4,{"aria-label":n?.a11yPPTIcon}):l.test(e)?(0,s.jsx)(K4,{"aria-label":n?.a11yRTFIcon}):u.test(e)?(0,s.jsx)(Z4,{"aria-label":n?.a11yZipIcon}):(0,s.jsx)(wp,{"aria-label":n?.a11yFileIcon})}}const rB=hd()({externalLinksDisabled:Xt()(["course","externalLinksDisabled"])});function aB(t){const e=ah()(t),n=Jt(e),o=q7(n);return(0,Rs.Ls)(rB)(o)}const iB=aB(oB),uo=ee("block-step"),cB=t=>{const{blockId:e,disableZoom:n,enableVideoPlaybackSpeed:o,isOverlayAudio:r,item:a,labels:i,lessonId:l,lessonNumber:u,mediaType:d,audioPosition:m}=t,{settings:p}=a,f=(0,st.QQ)(a.media)??{},v=d==="audio"&&f.audio,g=d==="embed"&&f.embed,C=d==="image"&&f.image,x=d==="video"&&f.video;if(!v&&!g&&!C&&!x&&!(d==="image-with-audio"&&r))return;const y=f.embed?ba(f.embed):void 0,E=!!f.image,b=!!f.audio,S=E?f.image.align:"center",T=uo("media",{audio:b&&!r,"audio-and-embed":!!(f.audio&&f.embed),"image-with-audio":r,[`image-with-audio-${S}`]:r&&!!S,"audio-on-bottom":b&&!r&&m==="bottom",linkEmbed:y==="link",videoEmbed:y==="video",visual:!r&&E||!nn()(f.video)}),I=p||{};return(0,s.jsx)("div",{className:T,children:(0,s.jsx)($s,{blockId:e,enableVideoPlaybackSpeed:o,index:`${a.id}`,isOverlayAudio:r,item:a,labels:i,lessonId:l,lessonNumber:u,media:f,opts:{disableZoom:n,...I},pauseOnLoad:!0,renderMediaType:r?void 0:d})})},lB=t=>{const{headingLevel:e,innerRef:n,item:o,isActive:r,loadMedia:a,audioPosition:i,onFocus:l,renderTitle:u,renderDescription:d,style:m}=t,{id:p}=o,f=uo({active:r}),v=!!o.step,g=!!o.title,C=e||2,x=`h${C}`,L=`h${C+1}`,y=(0,st.QQ)(o.media),E=lo(y,i,!0,"timeline"),b=(0,st.QQ)(o.description),S=(0,h.useMemo)(()=>!!Object.keys(y??{}).length||!!b1(b).value?.length,[y,b]),T=()=>{const I={audio:{item:{...o,media:E.audioOnlyMedia||y},mediaType:"audio"},image:{item:{...o,media:E.imageOnlyMedia||y},mediaType:"image"},video:{item:{...o,media:E.videoOnlyMedia||y},mediaType:"video"},embed:{item:{...o,media:E.embedOnlyMedia||y},mediaType:"embed"},overlay:{mediaType:"image-with-audio",isOverlayAudio:!0}};return(0,s.jsx)(s.Fragment,{children:E.renderOrder.map((j,M)=>{if(j==="text")return d?(0,s.jsx)("div",{className:uo("description"),children:d(o)},`text-${M}`):(0,s.jsx)(Et,{className:uo("description"),value:o.description},`text-${M}`);if(!y||!a)return null;const H=I[j];return H?(0,h.createElement)(cB,{...t,...H,key:`${j}-${M}`}):null})})};return(0,s.jsx)(kt,{children:(0,s.jsx)("div",{className:f,"data-id":p,ref:n,style:m,children:(0,s.jsx)(Os,{className:uo("body"),onFocus:l,children:(0,s.jsxs)("div",{className:uo("main-wrap"),children:[(0,s.jsxs)("div",{className:uo("heading",{solo:!S}),children:[v&&(0,s.jsx)("div",{className:uo("step"),children:(0,s.jsx)(x,{children:(0,s.jsx)(ms,{value:o.step})})}),(g||u)&&(0,s.jsx)("div",{className:uo("title"),children:u?u(o):(0,s.jsx)(L,{children:(0,s.jsx)(Et,{value:o.title})})})]}),(0,s.jsx)("div",{className:uo("main"),children:T()})]})})})})},dB=t=>{const{id:e,settings:n,items:o,onEnter:r,enableVideoPlaybackSpeed:a,initiallyVisible:i,isLearner:l,labels:u,lessonId:d,renderTitle:m,renderDescription:p}=t,f=o[0],v=n.audioPosition,g=!n.zoomOnClick,C=n.headingLevel,x=(0,h.useCallback)((y,E)=>{r?.({id:e,payload:{activeIndex:y,itemId:E}})},[e,r]),L=(0,s.jsx)(lB,{audioPosition:v,blockId:e,disableZoom:g,enableVideoPlaybackSpeed:a,headingLevel:C,isActive:!0,item:f,labels:u,lessonId:d,lessonNumber:e,loadMedia:!0,onFocus:x,renderDescription:p,renderTitle:m,style:{"--block-step-padding-top":`${n.paddingTop}rem`,"--block-step-padding-bottom":`${n.paddingBottom}rem`,"--block-step-corner-radius":`${n.cornerRadius??0}px`}});return l?(0,s.jsx)(Mt,{animateBlockEntrance:!0,className:uo("animate").toString(),initiallyVisible:i,isLearner:!0,children:L}):L},uB=ee("continue-btn"),im=({href:t,onClick:e,text:n})=>{const o=`${uB()} brand--ui`;return t?(0,s.jsx)(Cn,{className:o,"data-continue-btn":"","data-testid":"continue-btn",onClick:e,to:t,children:(0,s.jsx)(ms,{value:n})}):(0,s.jsx)("button",{className:o,"data-continue-btn":"","data-testid":"continue-btn",onClick:e,type:"button",children:(0,s.jsx)(Et,{value:n})})},Fg=({bgType:t,text:e,iconType:n="locked"})=>{const o=Z()("continue-hint",{"continue-hint--bg-transparent":t==="transparent"});return(0,s.jsxs)("div",{className:o,"data-continue-btn":"",children:[n==="locked"&&(0,s.jsx)(rt,{className:"continue-hint__icon",name:"lock-keyhole-light"}),(0,s.jsx)("div",{className:"continue-hint__content",children:(0,s.jsx)(ms,{value:e})})]})},cm=ee("block-text");function hB({blockId:t,animateBlockEntrance:e,canContinue:n=!1,isComplete:o,isLearner:r,isLastBlock:a=!1,isOnlyBlockInStep:i,items:l=[],labels:u,onStep:d=()=>{},skipContinue:m=!1,initiallyVisible:p}){const v=(0,h.useRef)(null),g=(0,qe.A)(o),[C,x]=h.useState(!1),{announcePolite:L}=gt(),[y,E]=h.useState(!1),b=sn(),S=(0,xe.DX)(),T=(0,xe.kJ)(),I=(0,xe.Ge)(T),j=l[0],{id:M,title:H,type:D}=j,P=!D||(m?y:n||i&&o),F=m||!o||i,k=b?.continueColor||T,w=!k||k===T,O=w&&S?.theme?.accentContrast===A.Em.AUTO?A.Em.AUTO:I,W=b?.continueColorContrast??O,G=b?.continueRadius??null,$=b?.continueWidth??76,ce=ws({backgroundColor:k,contrast:W}),Ee={...!w&&{"--color-button-bg":k},...!w&&{"--color-button-text":ce},...!w&&{"--color-button-border":"transparent"},...G!=null&&{"--radius-button":`${Number(G)}px`},...$!=null&&{maxWidth:`${Number($)}rem`}},Ne=(0,h.useCallback)(()=>{d({id:M}),x(!0),a?setTimeout(()=>{const De=document.querySelector("[data-lesson-id]"),Ke=document.querySelector("main"),Ae=document.querySelector("h1.lesson-header__title, .lesson-header__title h1"),we=De?.querySelector('.block-wrapper, [role="region"], .lesson-content > *:first-child');let he=null;Ae?he=Ae:we&&we!==v.current?.parentElement?he=we:De?he=De:Ke&&(he=Ke),he&&(he.setAttribute("tabindex","-1"),he.focus({preventScroll:!0}))},200):setTimeout(()=>{const De=v.current;De&&De.focus()},100)},[M,d,a]);return(0,h.useEffect)(()=>{!g&&o&&(a||setTimeout(()=>{L?.(u?.a11yStatusAdditionalContent)},300))},[L,o,u,g,a]),(0,h.useEffect)(()=>{const De=Ke=>{const{path:Ae}=Ke.detail,{blockId:we,buttonId:he}=Ya(Ke.detail.path,["block","button"]);if(t==we&&he===j.id){const oe=Ae.at(-1);oe==="title"?E(!0):oe==="completeHint"&&E(!1)}};return window.addEventListener(Kt,De),()=>{window.removeEventListener(Kt,De)}},[t,j.id]),(0,s.jsxs)(s.Fragment,{children:[F&&(0,s.jsx)(kt,{children:(0,s.jsx)(Mt,{animateBlockEntrance:e,initiallyVisible:p,isLearner:r,children:(0,s.jsx)("div",{className:cm("container"),children:(0,s.jsx)("div",{className:cm("row"),children:(0,s.jsxs)("div",{className:cm("continue"),style:Ee,children:[P&&(0,s.jsx)(im,{onClick:Ne,text:H}),!P&&(0,s.jsx)(Fg,{text:j.completeHint})]})})})})}),C&&(0,s.jsx)("div",{"aria-live":"off",className:"visually-hidden-always",ref:v,role:"status",tabIndex:-1,children:u?.a11yStatusContinued||"Continued"})]})}var lm=c(85429),mB=c(23875),xu=c.n(mB);const pB=ee("flashcard");class fB extends h.PureComponent{static defaultProps={allowTabNavigation:!0,backType:"description",forceFlipped:!1,frontType:"description",getL10nValue:()=>{},onFlip:Function.prototype,onStep:Function.prototype,settingShowHint:!0};state={areSidesReady:!0,flipped:!1,hasFlippedOnce:!1,isMounted:!1};cardRef=(0,h.createRef)();render(){const{cardRef:e,handleFlip:n,handleSideReady:o,handleTouchEnd:r,props:{activeIndex:a,allowTabNavigation:i,backDescription:l,backMedia:u,backType:d,block:m,forceFlipped:p,frontDescription:f,frontMedia:v,frontType:g,id:C,index:x,isHidden:L,labels:y,lessonId:E,prefersKeyboardNavigation:b,settingShowHint:S,size:T,type:I,wrapElement:j,wrapRole:M},state:{areSidesReady:H,flipped:D,isMounted:P}}=this,F=p||D,k=pB({large:T==="large",small:T==="small",flipped:F,stack:I==="stack"});return(0,s.jsxs)(j,{"aria-hidden":!i,className:k,onClick:n,onTouchEnd:r,ref:e,role:M,children:[(0,s.jsx)(Os,{activeIndex:a,allowTabNavigation:i,blockId:m?.id,blockType:I,description:f,index:x,isActiveSide:!F,isAriaHidden:F&&P&&H,isFlipped:F,isHidden:L,itemId:C,labels:y,lessonId:E,media:v,onFlip:n,onReady:o,prefersKeyboardNavigation:b,settingShowHint:S,side:"front",size:T,tag:zg,type:g}),(0,s.jsx)(Os,{activeIndex:a,allowTabNavigation:i,blockId:m?.id,blockType:I,description:l,index:x,isActiveSide:F,isAriaHidden:!F&&P&&H,isFlipped:F,isHidden:L,itemId:C,labels:y,lessonId:E,media:u,onFlip:n,onReady:o,prefersKeyboardNavigation:b,settingShowHint:S,side:"back",size:T,tag:vB,type:d})]})}componentDidMount(){this.setState({isMounted:!0}),window.addEventListener(Kt,this.handleNavEvent)}componentDidUpdate(e,n){const{props:{allowTabNavigation:o,id:r,onStep:a},state:{hasFlippedOnce:i}}=this;!n.hasFlippedOnce&&i&&a({id:r}),e.allowTabNavigation&&!o&&this.setState({flipped:!1})}componentWillUnmount(){window.removeEventListener(Kt,this.handleNavEvent)}handleNavEvent=e=>{const{path:n}=e.detail,{cardId:o}=Ya(n,["block","card"]);if(o===this.props.id){let r=!1;n.includes("back")&&(r=!0),this.setState({flipped:r},()=>{this.props.type!=="stack"&&!Fh(this.cardRef.current,"center")&&this.cardRef.current.scrollIntoView({behavior:"instant",block:"center"})})}};handleFlip=e=>{const{block:n,dispatch:o,index:r}=this.props,a=window.getSelection(),i=a.toString()&&this.cardRef.current?.contains(a.anchorNode);if(e.detail>1&&a.empty(),e&&e.target.closest("a")||i)return;const l=!this.state.flipped;this.setState({areSidesReady:!1,flipped:l,hasFlippedOnce:!0});const u=l?"back":"front",d=n.items?.[r],m=d?.[u]?.media,p=`items:${n?.id}/items:${d?.id}/${u}`;o(kr({audioPlayerId:co({refs:p}),transcriptMedia:m})),this.props.onFlip?.(this.props.index,l)};handleTouchEnd=e=>{e.stopPropagation()};handleSideReady=()=>{this.setState({areSidesReady:!0})}}const Vg=(0,Rs.Ls)()(Od(Jt(fB))),Li=ee("flashcard-side"),bu=ee("flashcard-side-flip");class La extends h.PureComponent{static descriptionActionTypes={INITIAL:"INITIAL",INSERTING:"INSERTING",DELETING:"DELETING"};static initialState={descriptionAction:La.descriptionActionTypes.INITIAL,isAtLongOverflowBottom:!1,isLong:!1,isLongOverflow:!1,isTooltipVisible:!1,scrollbarWidthOffset:void 0};id;constructor(e){super(e),this.handleMouseEnterAudio=this.handleMouseEnterAudio.bind(this),this.handleMouseLeaveAudio=this.handleMouseLeaveAudio.bind(this),this.id=(0,lm.uniqueId)("flashcard-side")}state=La.initialState;longBottomObserver=void 0;readyTimeout=void 0;refDescription=(0,h.createRef)();refDescriptionBottom=(0,h.createRef)();refSide=(0,h.createRef)();refBtnTimeoutMouseLeave=(0,h.createRef)();checkDescriptionSizeDebounced;handleMouseEnterAudio=()=>{const{itemId:e,index:n,settingShowHint:o,side:r}=this.props,a=document.getElementById(`${e}-${n}-${r}-flip-btn`);a&&o&&(a.style.opacity="0.6")};handleMouseLeaveAudio=()=>{const{itemId:e,index:n,settingShowHint:o,side:r}=this.props,a=document.getElementById(`${e}-${n}-${r}-flip-btn`);a&&o&&(a.style.opacity="1")};render(){const{props:{activeIndex:e,allowTabNavigation:n,block:o,className:r,description:a,getL10nValue:i,index:l,itemId:u,media:d,isActiveSide:m,isAriaHidden:p,isFlipped:f,labels:v,lessonId:g,onFlip:C,prefersKeyboardNavigation:x,settingShowHint:L,side:y,size:E,style:b,type:S},refDescription:T,refDescriptionBottom:I,refSide:j,state:{isAtLongOverflowBottom:M,isLong:H,isLongOverflow:D,isTooltipVisible:P,scrollbarWidthOffset:F}}=this,k=y==="front",w=y==="back",O=E==="small",W=E==="large",G=S==="description",$=S==="fullimage",ce=S==="image",Ee=k?v?.a11yBlockFlashcardFront:v?.a11yBlockFlashcardBack,Ne=`items:${o?.id}/items:${u}/${k?"front":"back"}`,De=Li({back:w,flipped:f,front:k,fullimage:$}).mix(r),{image:Ke,audio:Ae}=i(d)??{},we=Li("content",{small:O,large:W,front:k,fullimage:$,image:ce,"long-overflow":D,"long-overflow-bottom":M,"has-audio":!!Ae}),he=bu({"audio-expansion":!0}),oe=bu("btn",{"visually-hidden":!L,"prefers-keyboard":x,round:!0}),Be=bu("icon"),Pe=bu("tooltip",{visible:P}),$e=Li("img",{small:O,large:W,centered:ce,full:$}),Oe=Li("description",{"has-audio":!!Ae,long:H&&!D,"long-overflow":D,short:!H,large:W}),pt=Li("description-bottom"),vt=F==null?void 0:{right:F},It=Ke?.alt??`Image ${l+1}`,Ht=(0,Vt.ME)(Ke),Wt=`${this.id}-click-to-flip-text`,ds=`${this.id}-image`,Vo=`${this.id}-description`;return(0,s.jsxs)("div",{"aria-label":Ee,className:De,inert:p,ref:j,role:"group",style:b,tabIndex:-1,children:[(0,s.jsxs)("div",{className:we,children:[(0,s.jsxs)("div",{className:he,onMouseEnter:this.handleBtnMouseEnter,onMouseLeave:this.handleBtnMouseLeave,style:vt,children:[(0,s.jsx)("button",{"aria-labelledby":`${Wt} ${Vo} ${ds}`,className:oe,id:`${u}-${l}-${y}-flip-btn`,onBlur:this.handleBtnBlur,onClick:C,onFocus:this.handleBtnFocus,tabIndex:n&&m?0:-1,type:"button",children:(0,s.jsx)(x8,{className:Be})}),(0,s.jsx)("div",{"aria-hidden":"true",className:Pe,id:Wt,onClick:Tr,children:v?.blocksClickToFlip})]}),($||ce)&&(0,s.jsx)(gB,{alt:It,className:$e,imageId:ds,l10nId:(0,St.pP)(d),url:Ht}),G&&(0,s.jsxs)("div",{className:Oe,ref:T,tabIndex:m&&D?0:void 0,children:[(0,s.jsx)(Et,{allowTabNavigation:n&&!p,id:Vo,value:a}),D&&(0,s.jsx)("div",{className:pt,ref:I})]})]}),Ae&&(0,s.jsx)("div",{className:Li("audio-player",{text:G,image:ce}),onMouseEnter:this.handleMouseEnterAudio,onMouseLeave:this.handleMouseLeaveAudio,children:(0,s.jsx)($s,{activeIndex:e,blockId:o.id,index:`${u}-${l}-${y}`,isOverlayAudio:$,item:{id:u,media:d},itemIndex:l,labels:v,lessonId:g,media:d,refs:Ne,renderMediaType:"audio",shouldPause:!m,side:y})})]})}componentDidMount(){this.checkDescriptionSize(this.props),this.checkDescriptionSizeDebounced=xu()(this.checkDescriptionSize,250),window.addEventListener("resize",this.checkDescriptionSizeDebounced),document.addEventListener("keydown",this.handleDocumentKeyDown)}componentWillUnmount(){clearTimeout(this.readyTimeout),this.cleanupLongBottomObserver(),window.removeEventListener("resize",this.checkDescriptionSizeDebounced),document.removeEventListener("keydown",this.handleDocumentKeyDown)}componentDidUpdate(e,n){const{props:{allowTabNavigation:o,blockType:r,isFlipped:a,isActiveSide:i,isHidden:l,onReady:u,type:d}}=this;e.isHidden&&!l&&this.checkDescriptionSize(this.props),e.isFlipped!==a&&(i&&o?(this.refSide.current?.focus?.(),this.readyTimeout=setTimeout(()=>{u()},700)):clearTimeout(this.readyTimeout)),d==="description"&&this.handleUpdatesDescription(e,n),r==="stack"&&i&&!e.allowTabNavigation&&o&&this.refSide.current?.focus?.()}handleBtnBlur=()=>{this.setState({isTooltipVisible:!1})};handleBtnFocus=()=>{this.setState({isTooltipVisible:!0})};handleBtnMouseEnter=()=>{clearTimeout(this.refBtnTimeoutMouseLeave.current),this.setState({isTooltipVisible:!0})};handleBtnMouseLeave=()=>{this.refBtnTimeoutMouseLeave.current=setTimeout(()=>{this.setState({isTooltipVisible:!1})},150)};handleDocumentKeyDown=e=>{hn(e)&&this.state.isTooltipVisible&&this.setState({isTooltipVisible:!1})};handleUpdatesDescription=(e,n)=>{const{props:{isFlipped:o,isActiveSide:r},state:{isLongOverflow:a}}=this;e.isFlipped!==o&&r&&this.scrollDescriptionToTop(),this.handleUpdatesDescriptionSize(e,n),!n.isLongOverflow&&a?(this.setLongBottomObserver(),this.setScrollbarWidth()):n.isLongOverflow&&!a&&this.cleanupLongBottomObserver()};handleUpdatesDescriptionSize=(e,n)=>{const{INSERTING:o,DELETING:r}=La.descriptionActionTypes,{props:{description:a,size:i,type:l,getL10nValue:u},state:{descriptionAction:d,isLong:m,isLongOverflow:p}}=this,f=u(a)?.length||0,v=u(e.description)?.length||0;d!==o&&f>v?this.setState({descriptionAction:o}):d!==r&&f<v?this.setState({descriptionAction:r}):(d!==n.descriptionAction||m!==n.isLong||p!==n.isLongOverflow||i!==e.size||l!==e.type||f!==v)&&this.checkDescriptionSize(e)};checkDescriptionSize=e=>{const{DELETING:n}=La.descriptionActionTypes,{props:{size:o},refDescription:{current:r},state:{descriptionAction:a,isLong:i,isLongOverflow:l}}=this;if(!r)return;r&&r.scrollHeight>r.clientHeight?i&&!l?this.setState({isLongOverflow:!0}):!i&&!l&&this.setState({isLong:!0}):(a===n||o!==e.size)&&this.setState(La.initialState)};scrollDescriptionToTop=()=>{const e=this.refDescription.current;this.state.isLong&&e&&(e.scrollTop=0)};setLongBottomObserver=()=>{const e=this.refDescriptionBottom.current;if(e&&this.longBottomObserver==null){const n=o=>{const r=o?.[0]?.isIntersecting??!1;this.setState({isAtLongOverflowBottom:!r})};this.longBottomObserver=new IntersectionObserver(n,{threshold:[0,1]}),this.longBottomObserver.observe(e)}};cleanupLongBottomObserver=()=>{this.longBottomObserver?.disconnect?.(),this.longBottomObserver=void 0};setScrollbarWidth=()=>{const e=this.refDescription.current;if(e){const n=e.offsetWidth-e.clientWidth;n>0&&this.setState({scrollbarWidthOffset:n})}}}const zg=(0,Rs.Ls)()(Od(Jt(t=>(0,s.jsx)(La,{...t})))),vB=t=>{const{cardMode:e,customBackgroundColorContrast:n}=sn(),o=(0,xe.DX)()?.theme,r=Dd(),a=ko(),l=a===A.xj.IMAGE&&r?.overlayColor===A.df.LIGHT,u=bn(),d=o?.accentContrast,m=d===A.Em.AUTO,p=(0,h.useMemo)(()=>{let v="#fafafa";if(e===Dn.TRANSPARENT)switch(a){case A.xj.DARK:v="#525252";break;case A.xj.BLACK:v="#1a1a1a";break;case A.xj.IMAGE:l?v="rgba(0, 0, 0, 0.7)":v="rgba(255, 255, 255, 0.7)";break;case A.xj.ACCENT:case A.xj.COLOR:case A.xj.TINT:{let x=0;switch((0,ht.XC)(u)){case ht.lL.LIGHT:x=.5;break;case ht.lL.MED:x=-.35;break;case ht.lL.DARK:x=-.65;break;case ht.lL.NEAR_BLACK:x=.1;break}v=(0,ht.W8)(x,u)}}const g={"--color-background":v},C=a===A.xj.COLOR?n:d;if((a===A.xj.ACCENT||a===A.xj.COLOR)&&e===Dn.TRANSPARENT&&m){const x=ws({backgroundColor:v,contrast:C});g["--color-text"]=x}return g},[u,a,e,n,m,l,d]),f={...t,style:p};return(0,s.jsx)(zg,{...f})},gB=({alt:t,className:e,imageId:n,l10nId:o,url:r})=>{const a=(0,zs.Ll)(t);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(Ln,{alt:a,className:e,"data-l10n-id":o,id:n,src:r}),!a&&(0,s.jsx)("span",{className:"visually-hidden-always",children:"No image alternative text"})]})};class CB extends h.Component{static defaultProps={editable:!1,isRTL:!1,items:[],onStep:()=>{},stack:!1};state={activeIndex:0,flipStateMap:{},prefersKeyboardNavigation:!0};render(){const{blockId:e,animateBlockEntrance:n,initiallyVisible:o,isHidden:r,isLearner:a,items:i,labels:l,lessonId:u,onStep:d,previewType:m,isRTL:p,settings:f,stack:v}=this.props,{activeIndex:g}=this.state,{prefersKeyboardNavigation:C}=this.state,{entranceAnimation:x,showHint:L}=f,y=Z()("block-flashcards",{"block-flashcard--column":!v,"block-flashcard--stack":v,"block-flashcards--no-animation":!x}),b=f.flashcardSize==="1"?"small":f.flashcardSize==="2"?"large":i.length>2?"small":"large",S=m===it.o4.MOBILE_PORTRAIT||m===it.o4.MOBILE_LANDSCAPE;return(0,s.jsx)(kt,{className:y,children:v?(0,s.jsx)(Mt,{animateBlockEntrance:n,initiallyVisible:o,isLearner:a,children:(0,s.jsx)("div",{className:"block-flashcard-carousel",children:(0,s.jsx)(uu,{blockId:e,items:i,children:({carouselRef:T})=>(0,s.jsx)(lu,{iconNameLeft:"chevron-left",iconNameRight:"chevron-right",isInfinite:!1,isRTL:p,labelCarousel:l?.a11yBlockFlashcardStack,labelCarouselRoleDesc:l?.a11yBlockFlashcardStackRoleDescription,labelSlideControls:l?.a11yBlockFlashcardStackSlideControls,labelSlideControlsGoToNext:l?.a11yBlockFlashcardStackSlideControlsGoToNext,labelSlideControlsGoToPrevious:l?.a11yBlockFlashcardStackSlideControlsGoToPrevious,labelSlideControlsGoToSlide:l?.a11yBlockFlashcardStackSlideControlsGoToSlide,labelSlideCounterPreposition:l?.blocksPreposition,labelSlidePreposition:l?.a11yBlockFlashcardStackSlidePreposition,labelSlideRoleDesc:l?.a11yBlockFlashcardStackSlideRoleDescription,onChange:this.handleCarouselChange.bind(this),ref:T,shouldMouseEmulateTouch:S,shouldUseCounter:!0,shouldUseGoToSlide:!1,children:i.map((I,j)=>(0,s.jsx)(Vg,{activeIndex:g,backDescription:I?.back?.description,backMedia:I?.back?.media,backType:I?.back?.type,frontDescription:I?.front?.description,frontMedia:I?.front?.media,frontType:I?.front?.type,id:I?.id,index:j,isHidden:r,labels:l,lessonId:u,onFlip:this.handleFlip.bind(this),onStep:d,prefersKeyboardNavigation:C,settingShowHint:L,size:"large",type:"stack",wrapElement:"div"},I?.id))})})})}):(0,s.jsx)(Mt,{animateBlockEntrance:n,className:"block-flashcards__animation",initiallyVisible:o,isLearner:a,siblingDelay:.25,children:(0,s.jsx)("ol",{className:"block-flashcards__wrapper",role:"list",children:i.map((T,I)=>(0,s.jsx)(Vg,{activeIndex:g,backDescription:T?.back?.description,backMedia:T?.back?.media,backType:T?.back?.type,blockId:e,frontDescription:T?.front?.description,frontMedia:T?.front?.media,frontType:T?.front?.type,id:T?.id,index:I,isHidden:r,labels:l,lessonId:u,onStep:d,prefersKeyboardNavigation:C,settingShowHint:L,size:b,type:"grid",wrapElement:"li",wrapRole:"listitem"},T?.id))})})})}componentDidMount(){document.addEventListener("keydown",this.handleKeyDown),document.addEventListener("mousedown",this.handleMouseDown)}componentWillUnmount(){document.removeEventListener("keydown",this.handleKeyDown),document.removeEventListener("mousedown",this.handleMouseDown)}handleKeyDown=e=>{!this.state.prefersKeyboardNavigation&&!yL(e)&&this.setState({prefersKeyboardNavigation:!0})};handleMouseDown=()=>{this.state.prefersKeyboardNavigation&&this.setState({prefersKeyboardNavigation:!0})};handleFlip(e,n){this.setState(o=>({flipStateMap:{...o.flipStateMap,[e]:n}}))}handleCarouselChange(e){const{block:n,dispatch:o}=this.props,{flipStateMap:r}=this.state,a=r[e]?"back":"front",i=n.items?.[e],l=i?.[a]?.media,u=`items:${n?.id}/items:${i?.id}/${a}`;o(kr({audioPlayerId:co({refs:u}),transcriptMedia:l})),this.setState({activeIndex:e})}}const Ug=(0,Rs.Ls)()(Kh(Jt(Od(CB)))),$g=({canProceed:t,isReduceMotion:e,onNext:n,onSubmit:o,quizNext:r,quizSubmit:a,allowNext:i=!1})=>{const l=t?!0:void 0,u=t?void 0:o,d=t?-1:void 0,m=t?void 0:!0,p=t?n:void 0,f=t?void 0:-1,v=(0,h.useRef)(null),g=(0,qe.A)(t);(0,h.useEffect)(()=>{i&&!g&&t&&setTimeout(()=>{v.current?.focus?.({preventScroll:e})},0)},[i,t,e,g]);const C=Z()("quiz-card__actions",{"quiz-card__actions--proceed":t}),x=Z()("quiz-card__button","quiz-card__button--next","brand_ui",{"brand--background":t,"visually-hidden-always":!t});return(0,s.jsxs)("div",{className:C,children:[(0,s.jsx)("div",{className:"quiz-card__submit brand--ui",children:!l&&(0,s.jsx)("button",{className:"quiz-card__button","data-testid":"quiz-submit-button",onClick:u,tabIndex:d,type:"button",children:a})}),(0,s.jsx)("br",{className:"visually-hidden-always",role:"presentation"}),i&&(0,s.jsx)("div",{className:"quiz-card__next brand--ui",children:(0,s.jsx)("button",{"aria-disabled":m,"aria-hidden":m,className:x,"data-testid":"quiz-next-button",onClick:p,ref:v,tabIndex:f,type:"button",children:r})})]})},xB=({children:t,isActive:e,isComplete:n,isTimedQuiz:o,style:r})=>(0,s.jsx)("div",{"aria-hidden":e?void 0:!0,className:bB({isActive:e,isComplete:n,isTimedQuiz:o}),"data-testid":"quiz-card",inert:e?void 0:!0,style:r,children:(0,s.jsx)("div",{className:"quiz-card__container",children:(0,s.jsx)("div",{className:"quiz-card__row",children:(0,s.jsx)("div",{className:"quiz-card__main",children:t})})})}),bB=({isActive:t,isComplete:e,isTimedQuiz:n})=>Z()("quiz-card",{"quiz-card--active":t,"quiz-card--done":e,"quiz-card--timed":n}),Wg=xB;var dm=c(78774),mt=c(22737);const{FILL_IN_THE_BLANK:_g,MATCHING:yB,MULTIPLE_CHOICE:LB,MULTIPLE_RESPONSE:EB}=mt.UQ;function SB({answers:t},e){return t.map(n=>e(n?.title)).filter(Boolean).join(", ")}function TB({answers:t,correct:e},n){const o=e!=null?(0,dm.propEq)("id",e):(0,dm.propEq)("correct",!0);return n(t.find(o)?.title)}function IB({answers:t,selection:e},n){return n(t?.[e]?.title)}function Gg(t,e,n){return e.filter(t).reduce((o,r,a)=>{const i=n(r?.title)??"";return a===0?i:o+", "+i},"")}function NB({corrects:t,answers:e},n){return Gg(r=>Array.isArray(t)?t.includes?.(r.id):r.correct,e,n)}function jB({answers:t,selection:e},n){return Gg((r,a)=>e.includes(a),t,n)}function kB({answers:t,getL10nValue:e,selection:n,correctLabel:o,userLabel:r,matchLabel:a="Match Item: ",revealAnswers:i}){const l=(0,dm.invertObj)(n);return t.map((u,d)=>{const m=e(u?.title)??"",p=e(u?.matchTitle)??"",f=l?.[d],v=e(t?.[f]?.title)??"";return i===mt.iV.INCORRECT?a+p+". "+r+": "+v+".":a+p+". "+o+": "+m+". "+r+": "+v+"."}).join(" ")}function um({correctAnswer:t,selectedAnswer:e,correctLabel:n,userLabel:o,revealAnswers:r}){return!t||!e||r===mt.iV.NONE?"":r===mt.iV.INCORRECT?o+": "+(0,yo.QZ)(e)+".":n+": "+(0,yo.QZ)(t)+". "+o+": "+(0,yo.QZ)(e)+"."}function AB({item:t,labels:e}){return t.type===_g?e?.quizAcceptableResponses:e?.a11yCorrectLive}function RB({getL10nValue:t,isComplete:e,item:n,selection:o,labels:r,revealAnswers:a}){if(!n||!e)return null;const i=n?.answers??[],l=n?.correct,u=n?.corrects,d=AB({item:n,labels:r}),m=r?.a11yAnswerLive;switch(n.type){case yB:return kB({getL10nValue:t,answers:i,selection:o,correctLabel:d,userLabel:m,revealAnswers:a});case _g:return um({correctAnswer:SB({answers:i},t),selectedAnswer:o,correctLabel:d,userLabel:m,revealAnswers:a});case LB:return um({correctAnswer:TB({answers:i,correct:l},t),selectedAnswer:IB({answers:i,selection:o},t),correctLabel:d,userLabel:m,revealAnswers:a});case EB:return um({correctAnswer:NB({corrects:u,answers:i},t),selectedAnswer:jB({answers:i,selection:o},t),correctLabel:d,userLabel:m,revealAnswers:a})}return null}const Kg=({canProceed:t,feedbackRef:e,feedbackValue:n,isActive:o,isComplete:r,isCorrect:a,item:i,labels:l,quizCorrect:u,quizIncorrect:d,revealAnswers:m,selection:p})=>{const{announcePolite:f,clearAnnouncements:v}=gt(),g=(0,qe.A)(t),C=(0,st.gY)(),L=!!(0,st.QQ)(n),y=a?u:d,E=(0,h.useCallback)(()=>{const T=RB({getL10nValue:C,isComplete:r,item:i,labels:l,revealAnswers:m,selection:p}),I=n?(0,yo.QZ)(C(n)):"",j=y+". "+T+" "+I;let M;return j&&(M=setTimeout(()=>{f(j)},250)),()=>{clearTimeout(M)}},[f,n,C,r,i,l,y,m,p]);(0,h.useLayoutEffect)(()=>{!g&&t&&m!==mt.iV.NONE&&E()},[t,g,E,m]),(0,h.useEffect)(()=>v,[v]);const b=Z()("quiz-card__feedback",{"quiz-card__feedback--active":t,"quiz-card__feedback--frame":L}),S=Z()("quiz-card__feedback-icon",{"quiz-card__feedback-icon--correct":a});return(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("div",{"aria-hidden":o?void 0:!0,className:b,ref:e,children:(0,s.jsx)("div",{className:"quiz-card__main--feedback",children:(0,s.jsxs)("div",{"aria-label":l?.a11yQuizFeedback,className:"quiz-card__feedback-wrap",role:"group",children:[(0,s.jsx)("div",{className:S,children:(0,s.jsx)("i",{"aria-hidden":"true",className:a?"icon icon-Master-05":"icon icon-Master-06"})}),(0,s.jsx)("div",{className:"quiz-card__feedback-label",children:y}),n&&(0,s.jsx)("div",{children:(0,s.jsx)(Et,{allowTabNavigation:r&&o,className:"quiz-card__feedback-text",value:n})})]})})})})},{FILL_IN_THE_BLANK:PB}=mt.UQ,wB=({children:t,type:e})=>(0,s.jsx)("div",{className:MB({type:e}),children:t}),MB=({type:t})=>Z()("quiz-card__interactive",{"quiz-card__interactive--no-border":[PB].includes(t)}),Qg=wB,Pr=({allowTabNavigation:t,blockId:e,enableVideoPlaybackSpeed:n,index:o,isOverlayAudio:r,item:a,labels:i,media:l,settings:u,shouldPause:d})=>l==null||!Object.keys(l).some(m=>m!=="tmp")?null:(0,s.jsx)("div",{className:"quiz-card__media",children:(0,s.jsx)($s,{allowTabNavigation:t,blockId:e,enableVideoPlaybackSpeed:n,index:o,isOverlayAudio:r,item:a,labels:i,media:l,opts:u,shouldPause:d})}),OB=(t,e)=>{const n=Tn(),o=(0,qe.A)(e);(0,h.useEffect)(()=>{!o&&e&&t&&xd()(t.focus)&&t.focus({preventScroll:n})},[e,n,o,t])},yu=ee("question-counter"),DB=({isActive:t=!1,labels:e,questionLabel:n,questionNumber:o,totalQuestions:r})=>{const a=(0,h.useRef)(null);OB(a.current,t);const i=`${e?.quizQuestion} ${o} ${e?.lessonPreposition} ${r}`,l=`${bv(o)}/${bv(r)}`;return(0,s.jsx)("div",{className:yu(),children:(0,s.jsxs)("h1",{"aria-label":i,className:yu("heading"),ref:a,tabIndex:-1,children:[(0,s.jsx)("span",{"aria-hidden":"true",className:yu("label"),children:n}),(0,s.jsx)("span",{"aria-hidden":"true",className:yu("count"),children:l})]})})},BB=ee("question-title"),HB=({allowTabNavigation:t,htmlId:e,value:n})=>(0,s.jsx)(Et,{allowTabNavigation:t,className:BB(),"data-testid":"quiz-question-title",id:e,value:n}),FB=({allowTabNavigation:t,correctAnswerColor:e,correctAnswerColorContrast:n,errorMessageId:o,incorrectAnswerColor:r,incorrectAnswerColorContrast:a,isComplete:i,isCorrect:l,labels:u,onEnterToSubmit:d=Function.prototype,onChange:m=Function.prototype,options:p,questionHtmlId:f,quizAcceptableResponses:v,quizAnswerPlaceholder:g,revealAnswers:C,value:x})=>{const L=(0,h.useRef)(null),[y]=(0,h.useState)(()=>ft()("fitb-")),E=(0,st.gY)(),b=VB({options:p,getL10nValue:E}),S=`${y}-feedback`,T=`${y}-acceptable`,I=`${y}-input`,j=i?`${S} ${T}`:o||void 0,M=i?void 0:g,H=t?0:Bd,D=C===mt.iV.ALL||C===mt.iV.INCORRECT,P=C===mt.iV.ALL||l&&C===mt.iV.INCORRECT,F=l?e:r,w=e&&r&&{"--fa-primary-color":ws({backgroundColor:F,contrast:l?n:a}),"--fa-secondary-color":F},O=r&&{backgroundColor:ws({backgroundColor:r,contrast:a}),fill:r,borderRadius:"50%"},W=Z()("quiz-fill__icon",{"quiz-fill__icon--visible":i}),G=Z()("quiz-fill__options",{"quiz-fill__options--visible":i}),$=(0,h.useCallback)(De=>{m(De.currentTarget.value)},[m]),ce=(0,h.useCallback)(De=>{ci(De)&&d(De)},[d]),Ee=i?void 0:$,Ne=i?void 0:ce;return(0,s.jsxs)("div",{className:"quiz-fill",children:[(0,s.jsxs)("div",{className:"quiz-fill__container",children:[(0,s.jsx)("input",{"aria-describedby":j,"aria-hidden":!t,"aria-invalid":o?!0:void 0,"aria-labelledby":f,"aria-readonly":i,"aria-required":"true",autoComplete:"off",className:"quiz-fill__input ignore-prefers",id:I,onChange:Ee,onKeyDown:Ne,placeholder:M,readOnly:i,ref:L,tabIndex:H,type:"text",value:x}),D&&(0,s.jsxs)("div",{className:W,id:S,children:[l&&(0,s.jsx)(rt,{"aria-label":u?.quizCorrect,name:"circle-check",styleIcon:{height:"2rem",...w}}),!l&&(0,s.jsx)(r7,{"aria-label":u?.quizIncorrect,style:O})]})]}),P&&i&&(0,s.jsx)("div",{className:G,id:T,children:(0,s.jsx)(Et,{value:`${v}: ${b}`})})]})},VB=({options:t,getL10nValue:e})=>t.map(o=>(e(o.title)??"").trim()).join(", "),Zg=FB;function zB({correctAnswerColor:t,correctAnswerColorContrast:e}){const n=(0,xe.vU)(),o=ws({backgroundColor:t,contrast:e}),r=t?{"--fa-primary-color":o,"--fa-secondary-color":t}:void 0;return(0,s.jsxs)("div",{className:"matching-results-item-feedback",children:[(0,s.jsx)(rt,{className:"matching-results-item-feedback-icon matching-results-item-feedback-icon--correct",name:"circle-check",style:r}),(0,s.jsx)("span",{className:"matching-results-item-feedback-text",children:(0,s.jsx)("span",{className:"matching-results-item-feedback-text-result",children:n?.quizCorrect})})]})}var Ei=c(26372);function UB({correctAnswerValue:t,incorrectAnswerColor:e,incorrectAnswerColorContrast:n,shouldRevealCorrectAnswer:o}){const[r,a]=Ei.useState(!0),[i,l]=Ei.useState(!1),u=Ei.useRef(null),m=`matching-text-${Ei.useId()}`,p=(0,xe.vU)(),f=(0,qe.A)(t),v=Ei.useCallback(()=>{a(b=>!b)},[]);Ei.useLayoutEffect(()=>{if(f!==t){const b=u.current;b!=null&&b.scrollWidth>b.clientWidth&&l(!0)}},[f,t]);const g=ws({backgroundColor:e,contrast:n}),C=e?{"--fa-primary-color":g,"--fa-secondary-color":e}:void 0,x=Z()("matching-results-item-feedback-text",{"matching-results-item-feedback-text--collapsed":r}),L=Z()("matching-results-item-feedback-text-btn-icon",{"matching-results-item-feedback-text-btn-icon--collapsed":r}),y=Z()("matching-results-item-feedback-text-extra",{"matching-results-item-feedback-text-extra--collapsed":r}),E=Z()("matching-results-item-feedback-text-extra-text",{"matching-results-item-feedback-text-extra-text--collapsed":r});return(0,s.jsxs)("div",{className:"matching-results-item-feedback",children:[(0,s.jsx)(rt,{className:"matching-results-item-feedback-icon matching-results-item-feedback-icon--incorrect",name:"circle-xmark-duotone",style:C}),!o&&(0,s.jsx)("span",{className:"matching-results-item-feedback-text",children:(0,s.jsx)("span",{className:"matching-results-item-feedback-text-result",children:p?.quizIncorrect})}),o&&(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)("span",{className:x,children:[(0,s.jsxs)("span",{className:"matching-results-item-feedback-text-result",children:[p?.quizIncorrect,"."]}),i&&(0,s.jsx)("button",{"aria-controls":m,"aria-expanded":!r,"aria-label":r?p?.a11yMatchingItemShowMore:p?.a11yMatchingItemShowLess,className:"matching-results-item-feedback-text-btn",onClick:v,type:"button",children:(0,s.jsx)(rt,{className:L,name:"caret-down",style:C})}),(0,s.jsx)("span",{className:y,children:(0,s.jsxs)("span",{className:E,id:m,ref:u,children:[p?.quizCorrect,": ",(0,s.jsx)(ms,{value:t})]})})]})})]})}function $B({col1Id:t,col1Value:e,col2Id:n,col2Value:o,correctAnswerColor:r,correctAnswerColorContrast:a,correctAnswerValue:i,height:l,incorrectAnswerColor:u,incorrectAnswerColorContrast:d,revealAnswers:m}){const p=t===n,f=m!=="incorrect",v=m!=="none";return(0,s.jsxs)("li",{className:"matching-results-item",role:"listitem",children:[(0,s.jsxs)("div",{className:"matching-results-item-pieces",children:[(0,s.jsxs)("div",{className:"matching-results-item-piece",style:l?{height:l}:void 0,children:[(0,s.jsx)("span",{className:"matching-results-item-piece-decoration"}),(0,s.jsx)("span",{className:"matching-results-item-piece-jigsaw"}),(0,s.jsx)("span",{className:"matching-results-item-piece-content",children:(0,s.jsx)("span",{"data-matching-results-item-piece-content-inline":"",children:(0,s.jsx)(ms,{value:e})})})]}),(0,s.jsxs)("div",{className:"matching-results-item-piece",children:[(0,s.jsx)("span",{className:"matching-results-item-piece-decoration"}),(0,s.jsx)("span",{className:"matching-results-item-piece-jigsaw"}),(0,s.jsx)("span",{className:"matching-results-item-piece-content",children:(0,s.jsx)("span",{"data-matching-results-item-piece-content-inline":"",children:(0,s.jsx)(ms,{value:o})})})]})]}),v&&p&&(0,s.jsx)(zB,{correctAnswerColor:r,correctAnswerColorContrast:a}),v&&!p&&(0,s.jsx)(UB,{correctAnswerValue:i,incorrectAnswerColor:u,incorrectAnswerColorContrast:d,shouldRevealCorrectAnswer:f})]})}function WB({answers:t,columnBehavior:e,correctAnswerColor:n,correctAnswerColorContrast:o,incorrectAnswerColor:r,incorrectAnswerColorContrast:a,itemHeight:i,revealAnswers:l,rows:u}){return(0,s.jsx)("div",{className:"matching-results",children:(0,s.jsx)("ul",{className:"matching-results-list",role:"list",children:u.map((d,m)=>{const[p,f]=d,v=e==="freezeFirst"?t.find(g=>g.id===p.id)?.matchTitle:t.find(g=>g.id===f.id)?.title;return(0,s.jsx)($B,{col1Id:p.id,col1Value:p.value,col2Id:f.id,col2Value:f.value,correctAnswerColor:n,correctAnswerColorContrast:o,correctAnswerValue:v,height:i,incorrectAnswerColor:r,incorrectAnswerColorContrast:a,revealAnswers:l},m)})})})}function _B(t){return Object.keys(t).length===0}function GB(t,e){return e in t}function KB(t,e){return Object.values(t).includes(e)}function hm(t,e){for(const n in t)if(t[n]===e)return n}function QB(t,e,n){return{...t,[e]:n}}function Lu(t,e){return e in t?(0,Us.QD)(t,[e]):t}function ZB(t,e){const n=hm(t,e);return n===void 0?t:Lu(t,n)}function Yg(t,e,n){let o=Lu(t,e);return o=ZB(o,n),QB(o,e,n)}function YB(t){return Object.keys(t).length}var XB=c(18077),mm=c.n(XB);mm().dynamicDrop(!0),mm().pointerMoveTolerance(8);const Po=mm();var Si=c(26372);function JB(t,{onStart:e,onMove:n,onEnd:o,isEnabled:r=!0}){const a=Si.useRef({x:0,y:0}),i=Si.useRef({x:0,y:0}),l=Si.useRef(!1),u=Si.useRef(null),d=Si.useRef(void 0);Si.useEffect(()=>{const m=t.current;if(!m||!r||l.current)return;u.current=aL(m);function p(){const f=u.current;return f instanceof Window?{x:window.scrollX,y:window.scrollY}:{x:f.scrollLeft,y:f.scrollTop}}return d.current=()=>{const f=p(),v=f.x-i.current.x,g=f.y-i.current.y;(v!==0||g!==0)&&(a.current.x+=v,a.current.y+=g,t.current&&(t.current.style.transform=`translate3d(${a.current.x}px, ${a.current.y}px, 0)`,n?.({...a.current})),i.current=f)},Po(m).draggable({inertia:!1,autoScroll:{container:u.current,distance:5,interval:10,margin:50},listeners:{start:()=>{a.current={x:0,y:0},i.current=p(),u.current?.addEventListener("scroll",d.current,{passive:!0}),e?.()},move:f=>{a.current.x+=f.dx,a.current.y+=f.dy,m.style.transform=`translate3d(${a.current.x}px, ${a.current.y}px, 0)`,n?.({...a.current})},end:()=>{a.current={x:0,y:0},m.style.transform="",u.current?.removeEventListener("scroll",d.current),setTimeout(()=>{o?.()},0)}}}),l.current=!0,()=>{Po(m).unset(),u.current?.removeEventListener("scroll",d.current),l.current=!1}},[t,e,n,o,r])}var Xg=c(26372);function qB(t,{isEnabled:e=!0,onDrop:n,onEnter:o,onLeave:r,overlap:a=.015}){const i=Xg.useRef(!1);Xg.useEffect(()=>{const l=t.current;if(!(!l||!e||i.current))return Po(l).dropzone({overlap:a,listeners:{drop:()=>{n?.()},dragenter:()=>{o?.()},dragleave:()=>{r?.()}}}),i.current=!0,()=>{Po(l).unset(),i.current=!1}},[t,n,o,r,e,a])}var zn=c(26372);const Jg=zn.memo(function({col:e,height:n,id:o,index:r,isActive:a,isFrozen:i,isMatched:l,isMoved:u,onClick:d,onDragEnd:m,onDragStart:p,onDrop:f,onDropZoneEnter:v,onDropZoneLeave:g,onKeyDown:C,value:x,valueOtherColumnActive:L,valueOtherColumnMatch:y}){const[E,b]=zn.useState(!1),S=zn.useRef(null),T=zn.useRef(null),I=(0,xe.vU)(),j=zn.useCallback(()=>{d({col:e,id:o,value:x})},[e,o,d,x]),M=zn.useCallback(()=>{b(!0),p({col:e,id:o,value:x})},[e,o,p,x]),H=zn.useCallback(()=>{m(),b(!1)},[m]),D=zn.useCallback(()=>{f({col:e,id:o,value:x})},[e,o,f,x]),P=zn.useCallback(()=>{v({col:e,id:o,value:x})},[e,o,v,x]),F=zn.useCallback(()=>{g()},[g]),k=zn.useCallback($=>{C($,{col:e,index:r})},[e,r,C]);zn.useEffect(()=>{e===1&&r===0||T.current?.setAttribute("tabindex","-1")},[]),JB(S,{isEnabled:!i,onStart:M,onEnd:H}),qB(S,{isEnabled:i,onDrop:D,onEnter:P,onLeave:F});const w=Z()("matching-interaction-piece",{"matching-interaction-piece--matched":l,"matching-interaction-piece--moved":u}),O=y==null?null:(0,s.jsxs)(s.Fragment,{children:[I?.a11yMatchingItemMatchedWith," ",(0,s.jsx)(ms,{value:y})]}),W=L==null?(0,s.jsx)(s.Fragment,{children:I?.a11yMatchingItemSelectableItem}):(0,s.jsxs)(s.Fragment,{children:[I?.a11yMatchingItemMatchWith," ",(0,s.jsx)(ms,{value:L})]}),G=Z()("matching-interaction-item",{draggable:!i,"draggable--dragging":!i&&E,droppable:i});return(0,s.jsx)("li",{className:G,ref:S,role:"listitem",children:(0,s.jsxs)("button",{"aria-pressed":a||l?!0:void 0,className:w,"data-state":a?"active":void 0,onClick:E?void 0:j,onKeyDown:k,ref:T,style:n?{height:n}:void 0,type:"button",children:[i?(0,s.jsx)("span",{className:"matching-interaction-piece-decoration"}):(0,s.jsx)(rt,{className:"matching-interaction-piece-decoration",name:"grip-dots-vertical"}),e===2?(0,s.jsx)("span",{className:"matching-interaction-piece-jigsaw"}):null,(0,s.jsx)("span",{className:"matching-interaction-piece-content",children:(0,s.jsx)("span",{"data-matching-interaction-piece-content-inline":"",children:(0,s.jsx)(ms,{value:x})})}),(0,s.jsx)("span",{className:"visually-hidden-always",children:O}),(0,s.jsx)("span",{className:"visually-hidden-always",children:W})]},o)})});var $t=c(26372);function eH({answers:t,columnBehavior:e,isActive:n,itemHeight:o,matches:r,onChange:a,onChangeItemHeight:i,onChangeRows:l,prefersKeyboardNavigation:u}){const d=(0,qe.A)(n),m=(0,qe.A)(e),p=(0,qe.A)(t),f=(0,qe.A)(r),v=(0,xe.vU)(),[g,C]=$t.useState(void 0),[x,L]=$t.useState(void 0),[y,E]=$t.useState(void 0),[b,S]=$t.useState(!1),T=$t.useRef(null),I=$t.useRef(null),j=$t.useRef(null),M=$t.useRef(void 0),H=$t.useRef(void 0),[D,P]=$t.useState(()=>Eu({answers:t,columnBehavior:e,columnBehaviorToShuffle:"freezeSecond"})),[F,k]=$t.useState(()=>Eu({answers:t,columnBehavior:e,columnBehaviorToShuffle:"freezeFirst"})),w=$t.useMemo(()=>t.map(oe=>({col:1,id:oe.id,value:oe.title})).toSorted((oe,Be)=>{const Pe=D.get(oe.id)??1/0,$e=D.get(Be.id)??1/0;return Pe-$e}),[t,D]),O=$t.useMemo(()=>t.map(oe=>({col:2,id:oe.id,value:oe.matchTitle})).toSorted((oe,Be)=>{const Pe=F.get(oe.id)??1/0,$e=F.get(Be.id)??1/0;return Pe-$e}),[t,F]),W=$t.useCallback(()=>{for(const he of T.current?.querySelectorAll('button:not([tabindex="-1"])')??[])he.setAttribute("tabindex","-1")},[]),G=$t.useCallback(he=>{const oe=Array.from(D),Be=Array.from(F);if(e==="freezeSecond"){const Pe=new Array(Be.length),$e=oe.map(vt=>vt[0]).filter(vt=>!(vt in he));for(const[vt,It]of Object.entries(he)){const Ht=F.get(It);Pe[Ht]=[vt,Ht]}for(let vt=0;vt<Pe.length;vt++)if(Pe[vt]==null){const It=$e.shift();Pe[vt]=[It,vt]}const Oe=new Map(Pe),pt=qg(D,Oe);pt.length>0&&L(pt),P(Oe)}else{const Pe=new Array(oe.length),$e=new Set(Object.values(he)),Oe=Be.map(It=>It[0]).filter(It=>!$e.has(It));for(const[It,Ht]of Object.entries(he)){const Wt=D.get(It);Pe[Wt]=[Ht,Wt]}for(let It=0;It<Pe.length;It++)if(Pe[It]==null){const Ht=Oe.shift();Pe[It]=[Ht,It]}const pt=new Map(Pe),vt=qg(F,pt);vt.length>0&&E(vt),k(pt)}},[e,D,F]),$=$t.useCallback(he=>{M.current=he},[]),ce=$t.useCallback(()=>{H.current==null&&(M.current=void 0)},[]),Ee=$t.useCallback(he=>{H.current=he},[]),Ne=$t.useCallback(()=>{H.current=void 0},[]),De=$t.useCallback(he=>{const oe=M.current;if(oe!=null){const Be=he.col===1?he.id:oe.id,Pe=he.col===1?oe.id:he.id,$e=Yg(r,Be,Pe);M.current=void 0,H.current=void 0,a($e)}},[r,a]),Ke=$t.useCallback(he=>{let oe=null,Be=!1,Pe=g;if(he.col===1&&he.id in r)oe=Lu(r,he.id),Pe=null;else if(he.col===2&&hm(r,he.id)){const $e=hm(r,he.id);oe=Lu(r,$e),Pe=null}else g==null&&(Pe={col:he.col,id:he.id,value:he.value},Be=!0);if(g!=null)if(g.col===he.col)g.id===he.id?Pe=null:Pe={col:he.col,id:he.id,value:he.value};else{const $e=he.col===1?he.id:g.id,Oe=he.col===1?g.id:he.id;oe=Yg(r,$e,Oe),Be=!0,Pe=null}if(oe!=null&&a(oe),g!==Pe&&C(Pe),Be){const Oe=(he.col===1?j:I).current?.querySelector('button:not([aria-pressed="true"])');Oe&&(W(),Oe.removeAttribute("tabindex"),Oe.focus({preventScroll:!u}))}},[u,g,r,a,W]),Ae=$t.useCallback((he,{col:oe,index:Be})=>{const Pe=he.currentTarget;let $e=!1,Oe=null;switch(he.key){case"ArrowUp":$e=!0,Oe=Pe.parentElement.previousElementSibling?.firstElementChild;break;case"ArrowDown":$e=!0,Oe=Pe.parentElement.nextElementSibling?.firstElementChild;break;case"ArrowRight":$e=!0,Oe=oe===1?j.current?.children[Be]?.firstElementChild:void 0;break;case"ArrowLeft":$e=!0,Oe=oe===2?I.current?.children[Be]?.firstElementChild:void 0;break;case"Home":$e=!0,Oe=Pe.closest("ul").firstElementChild.firstElementChild;break;case"End":$e=!0,Oe=Pe.closest("ul").lastElementChild.firstElementChild;break}$e&&(he.preventDefault(),he.stopPropagation()),Oe&&(W(),Oe.removeAttribute("tabindex"),Oe.focus())},[W]);$t.useEffect(()=>{r!==f&&!_B(r)&&G(r)},[G,r,f]),$t.useEffect(()=>{const he=({shouldFocus:Pe})=>{const $e=g.col===1?I:j;W();const Oe=$e.current.querySelector('button[data-state="active"]');Oe?.removeAttribute("tabindex"),Pe&&Oe?.focus(),C(null)},oe=Pe=>{T.current?.contains(Pe.target)||he({shouldFocus:!1})},Be=Pe=>{hn(Pe)&&g!=null&&he({shouldFocus:!0})};return g==null?(document.removeEventListener("mousedown",oe),document.removeEventListener("keydown",Be)):(document.addEventListener("mousedown",oe),document.addEventListener("keydown",Be)),()=>{document.removeEventListener("mousedown",oe),document.removeEventListener("keydown",Be)}},[g,W]);const we=$t.useCallback(()=>{const he=Array.from(T.current?.querySelectorAll("[data-matching-interaction-piece-content-inline]")??[]);if(he.length===0)return;const oe=he[0].closest("button");let Be=0,Pe;if(oe){const Oe=window.getComputedStyle(oe),pt=parseFloat(Oe.paddingBlockStart)+parseFloat(Oe.paddingBlockEnd),vt=parseFloat(Oe.borderTopWidth)+parseFloat(Oe.borderBottomWidth);Be=pt+vt,Pe=parseFloat(Oe.minHeight)}const $e=he.reduce((Oe,pt)=>Math.max(Oe,pt.scrollHeight+Be),0);Pe&&Pe>=$e?i(void 0):i($e)},[i]);return $t.useEffect(()=>{(!d&&n||p!==t)&&we()},[d,n,t,p,we]),$t.useEffect(()=>{const he=T.current?.closest(".quiz-card");let oe;return he!=null&&(oe=new ResizeObserver(()=>{we()}),oe.observe(he)),()=>{he!=null&&oe!=null&&oe.unobserve(he)}},[we]),$t.useEffect(()=>{let he,oe;return x&&(he=setTimeout(()=>{L(void 0)},1e3)),y&&(oe=setTimeout(()=>{E(void 0)},1e3)),()=>{clearTimeout(he),clearTimeout(oe)}},[x,y]),$t.useEffect(()=>{b&&m!==e&&(a({}),G({}),C(void 0),P(Eu({answers:t,columnBehavior:e,columnBehaviorToShuffle:"freezeSecond"})),k(Eu({answers:t,columnBehavior:e,columnBehaviorToShuffle:"freezeFirst"})))},[b,e,m,t,a,G]),$t.useEffect(()=>{if(w.length<=0)return;const he=w.map((oe,Be)=>[oe,O[Be]]);l(he)},[w,O,l]),$t.useEffect(()=>{S(!0)},[]),(0,s.jsxs)("div",{className:"matching-interaction","data-testid":"matching-interaction",ref:T,children:[(0,s.jsx)("ul",{"aria-label":v?.a11yMatchingColumn1,className:"matching-interaction-col matching-interaction-col-1","data-col":"1",ref:I,role:"list",children:w.map((he,oe)=>{const Be=GB(r,he.id);return(0,s.jsx)(Jg,{col:1,height:o,id:he.id,index:oe,isActive:g?.col===1&&g?.id===he.id,isFrozen:e==="freezeFirst",isMatched:Be,isMoved:x?.map(Pe=>Pe.id).includes(he.id)??!1,onClick:Ke,onDragEnd:ce,onDragStart:$,onDrop:De,onDropZoneEnter:Ee,onDropZoneLeave:Ne,onKeyDown:Ae,value:he.value,valueOtherColumnActive:g?.col===2?g?.value:void 0,valueOtherColumnMatch:Be?O[oe]?.value:void 0},he.id)})}),(0,s.jsx)("ul",{"aria-label":v?.a11yMatchingColumn2,className:"matching-interaction-col matching-interaction-col-2","data-col":"2",ref:j,role:"list",children:O.map((he,oe)=>{const Be=KB(r,he.id);return(0,s.jsx)(Jg,{col:2,height:o,id:he.id,index:oe,isActive:g?.col===2&&g?.id===he.id,isFrozen:e==="freezeSecond",isMatched:Be,isMoved:y?.map(Pe=>Pe.id).includes(he.id)??!1,onClick:Ke,onDragEnd:ce,onDragStart:$,onDrop:De,onDropZoneEnter:Ee,onDropZoneLeave:Ne,onKeyDown:Ae,value:he.value,valueOtherColumnActive:g?.col===1?g?.value:void 0,valueOtherColumnMatch:Be?w[oe]?.value:void 0},he.id)})})]})}const Eu=({answers:t,columnBehavior:e,columnBehaviorToShuffle:n})=>{let o=t.map(r=>r.id);return e===n&&(o=(0,lm.shuffle)(o)),new Map(o.map((r,a)=>[r,a]))};function qg(t,e){const n=[];for(const[o,r]of t){const a=e.get(o);a!==r&&n.push({id:o,from:r,to:a})}return n}var Su=c(26372);function e3({columnBehavior:t="freezeSecond",...e}){const[n,o]=Su.useState([]),[r,a]=Su.useState(void 0),i=Su.useCallback(u=>{o(u)},[]),l=Su.useCallback(u=>{a(u)},[]);return e.isComplete?(0,s.jsx)(WB,{...e,columnBehavior:t,itemHeight:r,rows:n}):(0,s.jsx)(eH,{...e,columnBehavior:t,itemHeight:r,onChangeItemHeight:l,onChangeRows:i})}function t3(t){return t==null||t===-1}function tH(t,e){return t===e}const sH=({allowTabNavigation:t,color:e,correctId:n,errorMessageId:o,isComplete:r,isCorrect:a,isReduceMotion:i,labels:l,onChange:u,onEnterToSubmit:d,options:m=[],questionHtmlId:p,renderOptionText:f,isRetaking:v,revealAnswers:g,selectedIndex:C,shouldFocusFirst:x,onFocusFirstComplete:L})=>{const y=t3(C);return(0,s.jsx)(du,{"aria-invalid":o?!0:void 0,"aria-labelledby":[p,o].filter(Boolean).join(" "),"aria-required":"true",role:"radiogroup",children:m.map((E,b,S)=>(0,s.jsx)(nH,{allowTabNavigation:t,color:e,id:E.id,index:b,isComplete:r,isCorrect:a,isCorrectOption:n===E.id,isFirst:b===0,isFresh:y,isLast:b===S.length-1,isReduceMotion:i,isRetaking:v,isSelected:!v&&tH(C,b),labels:l,onChange:u,onEnterToSubmit:d,onFocusFirstComplete:L,questionHtmlId:p,renderOptionText:f,revealAnswers:g,shouldFocusFirst:x,title:E.title},E.id))})},nH=({allowTabNavigation:t,color:e,id:n,index:o,isComplete:r,isCorrect:a,isCorrectOption:i,isFresh:l,isSelected:u,isReduceMotion:d,labels:m,onChange:p,onEnterToSubmit:f,questionHtmlId:v,renderOptionText:g,isRetaking:C,revealAnswers:x,shouldFocusFirst:L,onFocusFirstComplete:y,title:E})=>{const[b]=(0,h.useState)(()=>ft()("qmc-")),S=(0,h.useRef)(null),T=(0,qe.A)(u),I=!!r,j=t&&(u||l&&o===0)?0:Bd,M=x===mt.iV.ALL,H=x==mt.iV.INCORRECT,D=M||H&&a,P=M||H&&a||H&&!a&&u,F=r&&i&&D,k=r&&!i&&P,w=(F||k)&&!C,O=w?`${b}-result`:void 0,W=Z()("quiz-multiple-choice-option",{"is-complete":r,"is-correct":F,"is-incorrect":k,"is-selected":u}),G=Z()("quiz-multiple-choice-option__dot",{"quiz-multiple-choice-option__dot--active":u&&!r}),$=Z()("quiz-multiple-choice-option__check",{"quiz-multiple-choice-option__check--active":F}),ce=Z()("quiz-multiple-choice-option__x",{"quiz-multiple-choice-option__x--active":k}),Ee=Z()("quiz-multiple-choice-option__border"),Ne=(0,h.useCallback)(Ae=>{ci(Ae)&&f(Ae)},[f]),De=(0,h.useCallback)(()=>{p({selectedIndex:o})},[o,p]),Ke=r?void 0:Ne;return(0,h.useEffect)(()=>{t&&S.current&&(!T&&u?S.current.focus({preventScroll:d}):L&&l&&o===0&&(S.current.focus({preventScroll:d}),y?.()))},[t,u,d,T,L,l,o,y]),(0,s.jsxs)("div",{"data-testid":"quiz-card-option",children:[(0,s.jsxs)("label",{"aria-describedby":O,className:W,ref:S,children:[(0,s.jsx)("input",{checked:u,className:"quiz-multiple-choice-option__input",disabled:I,name:v,onClick:r?void 0:De,onKeyDown:Ke,tabIndex:j,type:"radio"}),(0,s.jsxs)("div",{className:"quiz-multiple-choice-option__indicator",style:{color:e},children:[(0,s.jsx)(VC,{className:G,dataTestId:u&&!r?"selected-dot-active":"selected-dot"}),(0,s.jsx)(bp,{className:$,"data-testid":F?"correct-check-active":"correct-check"}),(0,s.jsx)(Pp,{"aria-hidden":"true",className:ce,dataTestId:k?"incorrect-x-active":"incorrect-x",overrideStyle:!0})]}),(0,s.jsx)("div",{className:Ee}),(0,s.jsx)("div",{className:"quiz-multiple-choice-option__text","data-testid":"quiz-mc-option-text",children:g({optionId:n,title:E})})]}),w&&(0,s.jsxs)("div",{className:"visually-hidden-always",id:O,children:[u&&i&&m?.a11yQuizReviewCorrectlySelected,u&&!i&&m?.a11yQuizReviewIncorrectlySelected,!u&&i&&m?.a11yQuizReviewIncorrectlyUnselected,!u&&!i&&m?.a11yQuizReviewCorrectlyUnselected]})]})},s3=sH;function oH(t){return t.length===0}function rH(t,e){return t.includes(e)}function aH(t,e){return t.includes(e)?t.filter(n=>n!==e):[...t,e]}const iH=({allowTabNavigation:t,correctIds:e=[],errorMessageId:n,isComplete:o,isCorrect:r,labels:a,onChange:i,onEnterToSubmit:l,options:u=[],questionHtmlId:d,renderOptionText:m,isRetaking:p,revealAnswers:f,selectedIndices:v=[]})=>(0,s.jsx)("div",{"aria-labelledby":[d,n].filter(Boolean).join(" "),role:"group",children:(0,s.jsx)("ul",{children:u.map((g,C)=>(0,s.jsx)(cH,{allowTabNavigation:t,errorMessageId:n,id:g.id,index:C,isComplete:o,isCorrect:r,isCorrectOption:e.includes(g.id),isRetaking:p,isSelected:!p&&rH(v,C),labels:a,onChange:i,onEnterToSubmit:l,renderOptionText:m,revealAnswers:f,title:g.title},g.id))})}),cH=({allowTabNavigation:t,errorMessageId:e,id:n,index:o,isComplete:r,isCorrect:a,isCorrectOption:i,isSelected:l,labels:u,onChange:d,onEnterToSubmit:m,renderOptionText:p,isRetaking:f,revealAnswers:v,title:g})=>{const[C]=(0,h.useState)(()=>ft()("qmr-")),x=r&&v===mt.iV.ALL&&!f,L=x?`${C}-result`:void 0,y=!!r,E=t?0:Bd,b=v===mt.iV.ALL,S=v==mt.iV.INCORRECT,T=b||S&&a||S&&!a&&l,I=Z()("quiz-multiple-response-option",{"quiz-multiple-response-option--complete":r,"quiz-multiple-response-option--selected":l,"quiz-multiple-response-option--correct":r&&i&&T,"quiz-multiple-response-option--incorrect":r&&!i&&T}),j=Z()("quiz-multiple-response-option__border"),M=(0,h.useCallback)(P=>{ci(P)&&m(P)},[m]),H=(0,h.useCallback)(()=>{d({optionIndex:o})},[o,d]),D=r?void 0:M;return(0,s.jsxs)("li",{children:[(0,s.jsxs)("label",{"aria-describedby":L,className:I,children:[(0,s.jsx)("input",{"aria-describedby":e||void 0,"aria-invalid":e?!0:void 0,checked:l,className:"quiz-multiple-response-option__input",disabled:y,onChange:r?void 0:H,onKeyDown:D,tabIndex:E,type:"checkbox"}),(0,s.jsxs)("div",{className:"quiz-multiple-response-option__indicator",children:[(0,s.jsx)(bp,{className:"quiz-multiple-response-option__check"}),(0,s.jsx)(Pp,{"aria-hidden":"true",className:"quiz-multiple-response-option__x",height:"8",overrideStyle:!0,width:"8"})]}),(0,s.jsx)("div",{className:j}),(0,s.jsx)("div",{className:"quiz-multiple-response-option__text",children:p({optionId:n,title:g})})]}),x&&(0,s.jsxs)("div",{className:"visually-hidden-always",id:L,children:[l&&i&&u?.a11yQuizReviewCorrectlyChecked,l&&!i&&u?.a11yQuizReviewIncorrectlyChecked,!l&&i&&u?.a11yQuizReviewIncorrectlyUnchecked,!l&&!i&&u?.a11yQuizReviewCorrectlyUnchecked]})]})},n3=iH;var lH=c(17193),Ea=c.n(lH),dH=c(37262),o3=c.n(dH),uH,hH;const mH=As()(Ft()("correct",!0)),Wte=t=>uH(hH(t),pm),pH=t=>({MATCHING:Ea(),FILL_IN_THE_BLANK:fm,MULTIPLE_CHOICE:Ea(),MULTIPLE_RESPONSE:Ea()})[t],pm=ot()(o3()("id"),mH),fH=ot()(ln(),pm),fm=As()(Ft()("correct",!0)),vH=ot()(Ct()("id"),ln()),_te={MULTIPLE_CHOICE:{label:"Multiple Choice",icon:(0,s.jsx)(z9,{})},MULTIPLE_RESPONSE:{label:"Multiple Response",icon:(0,s.jsx)(U9,{})},FILL_IN_THE_BLANK:{label:"Fill in the blank",icon:(0,s.jsx)(R0,{})},MATCHING:{label:"Matching",icon:(0,s.jsx)(H9,{})}};var gH=c(15107);const{FILL_IN_THE_BLANK:CH,MATCHING:r3,MULTIPLE_CHOICE:xH,MULTIPLE_RESPONSE:bH}=mt.UQ;function a3({type:t,text:e="",matches:n={},answersLength:o=0,selectedIndices:r=[],selectedIndex:a}){switch(t){case CH:return!(0,gH.h)(e);case r3:return YB(n)===o;case bH:return!oH(r);case xH:default:return!t3(a)}}function yH({answered:t=!1,...e}){return t&&e.type!==r3?!1:a3(e)}function i3(t,e){const n=t.trim();return e?n:n.toLowerCase()}function c3({answers:t,text:e,caseSensitive:n=!1,getL10nValue:o}){if(!e)return!1;const r=i3(e,n);return t.some(a=>{const i=o(a.title);return typeof i!="string"?!1:i3(i,n)===r})}function l3(t){return Object.entries(t).every(([e,n])=>e===String(n))}function LH(t){const e=t.answers??[],n=t.correct;if(n!=null)return e.findIndex(r=>r.id===n);const o=e.findIndex(r=>r.correct===!0);return o===-1?0:o}function d3({isCorrectAnswerUnshuffled:t=!1,isShuffled:e=!1,item:n,selectedIndex:o,shuffledAnswerIndices:r}){if(o==null||e&&!Array.isArray(r))return!1;const a=e&&!t?r.indexOf(o):o,i=LH(n);return a===i}function EH(t,e){return e.map(n=>t.indexOf(n))}function SH(t){return typeof t=="object"&&t!==null&&"id"in t?t.id:t}function TH(t){const e=t.answers??[],n=t.corrects??[];return n.length>0?n.map(a=>{const i=SH(a);return e.findIndex(l=>l.id===i)}).filter(a=>a>=0).sort((a,i)=>a-i):e.map((r,a)=>r.correct===!0?a:-1).filter(r=>r>=0).sort((r,a)=>r-a)}function u3(t){return[...t].sort((e,n)=>e-n)}function h3({isShuffled:t=!1,item:e,selectedIndices:n,shuffledAnswerIndices:o}){if(!Array.isArray(n)||t&&!Array.isArray(o))return!1;const r=t?EH(o,n):n,a=TH(e),i=u3(r),l=u3(a);return i.length!==l.length?!1:i.every((u,d)=>u===l[d])}function m3({answers:t,feedback:e,feedbackCorrect:n,feedbackIncorrect:o,feedbackType:r,isCorrect:a,isShuffled:i=!1,selectedIndex:l,shuffledAnswerIndices:u}){switch(r){case"CHOICE":{if(l==null||!t)return;const d=i&&Array.isArray(u)?u.indexOf(l):l;return t[d]?.feedback}case"CORRECT_INCORRECT":return a?n:o;default:return e}}var Gte=c(11253),Kte=c(68692),Qte=c(51890),IH,NH,p3,jH,kH,AH,RH;const PH=(t,e,n=[])=>{const o=NH(AH("id",t),e),{parentId:r}=o||{},a=o?[o,...n]:n;return r?PH(r,e,a):a},vm="owner",f3="manager",v3="editor",g3=["viewer",v3,f3,vm],gm=({effectiveRole:t,requiredRole:e})=>{const n=p3(t,g3),o=p3(e,g3);return n>=o},wH=t=>({editor:gm({effectiveRole:t,requiredRole:v3}),manager:gm({effectiveRole:t,requiredRole:f3}),owner:gm({effectiveRole:t,requiredRole:vm})}),Yte=(t,e,n)=>{const{authorId:o}=t,r=o===n,a=l=>r||l,i=MH(e);return kH(jH(["canChangePermissions","canMoveTo"]),IH({canDelete:a,canEdit:a,canMove:a,canRename:a,canUnshare:a}))(i)},MH=t=>{const{effectiveRole:e,type:n}=t||[],o=n!==RH?vm:e,{editor:r,manager:a,owner:i}=wH(o);return{canChangePermissions:a,canCreate:r,canDelete:i,canEdit:r,canMove:a,canMoveTo:r,canRename:r,canUnshare:i}};var OH,DH,il,BH,HH,FH,VH,C3,Ti,zH,x3,b3,UH,$H,cl,WH,_H,y3,GH,Tu,KH,QH,L3,ZH,E3,YH,XH,Ii;const JH={[mt.UQ.FILL_IN_THE_BLANK]:"fillin",[mt.UQ.MATCHING]:"matching",[mt.UQ.MULTIPLE_CHOICE]:"multiple choice",[mt.UQ.MULTIPLE_RESPONSE]:"multiple response"},Ni="personal",S3="team",Xte=500,Jte={id:null,deleted:!1,type:Ni},qte={id:"deleted",deleted:!0,type:Ni},T3=({questions:t=[],drawnQuestionIds:e=[]})=>{const n=a=>!e.some(i=>i.includes(a.id)),o=t.filter(n),r=Math.floor(Math.random()*o.length);return o[r]??null},qH=t=>e=>e.type===Ni||E3({effectiveRole:e.effectiveRole,requiredRole:t}),eF=({folders:t,requiredRole:e,teamAccount:n})=>Ii(t,L3,x3,Ti(o=>qH(e)&&(n||o.type===Ni))),ese=({questionBanks:{folders:t,questionBanks:e},requiredRole:n=YH,teamAccount:o,term:r})=>{if(r&&$H(QH(r)))return{folders:[],questionBanks:[]};const a=new RegExp("("+ZH(r)+")","i"),i=eF({folders:t,requiredRole:n,teamAccount:o}),l=y3("id",i),u=Ti(m=>m.title.match(a)&&!m.deleted,i),d=Ti(m=>(cl(m.folderId)||C3(m.folderId,l))&&m.title.match(a)&&!m.deleted,e);return{folders:u,questionBanks:d}},I3=(t,e,n=!1)=>Ii(e,UH(il(!cl(t)),GH(t),_H(L3,x3)),KH(Tu("deleted",!n))),tF=(t,e,n,o=!1)=>{const r=t===S3,a=t===Ni,i=Ii(I3(S3,n),y3("id")),l=u=>!cl(u.folderId)&&C3(u.folderId,i);return Ii(e,Ti(VH([[il(o),u=>u.deleted],[il(r),u=>!u.deleted&&l(u)],[il(a),u=>!u.deleted&&!l(u)],[il(cl(t)),u=>!u.deleted],[OH,b3]])))},sF=({type:t})=>t===Ni,N3=({effectiveRole:t})=>E3({effectiveRole:t,requiredRole:XH}),nF=(t,e)=>({id:n})=>n?FH(BH(b3),WH(DH([Tu("folderId",n),Tu("authorId",t)])))(e):!1,oF=(t,e,n,o)=>Ii(I3(e,t),Ti(HH([sF,N3,nF(o,n)]))),rF=(t,e)=>n=>{if(cl(n.folderId))return!0;const o=zH(Tu("id",n.folderId),t);if(!o)return!1;const r=N3(o),a=n.authorId===e;return r||a},aF=(t,e,n,o,r)=>Ii(tF(t,e,n),Ti(rF(o,r))),tse=(t,e,n,o)=>{const r=oF(t,n,e,o),a=aF(n,e,t,r,o);return{folders:r,questionBanks:a}},{FILL_IN_THE_BLANK:ji,MATCHING:Iu,MULTIPLE_CHOICE:Nu,MULTIPLE_RESPONSE:ju}=mt.UQ,iF={FILL_IN_THE_BLANK:"a11yBlockKnowledgeCheckFIB",MATCHING:"a11yBlockKnowledgeCheckM",MULTIPLE_CHOICE:"a11yBlockKnowledgeCheckMC",MULTIPLE_RESPONSE:"a11yBlockKnowledgeCheckMR"},cF=Rt()(null,[0,"type"]),Cm=Tn();class j3 extends h.Component{static get defaultProps(){return{items:[],lessonId:"",blockId:"",onStep:Function.prototype}}retakeAnimationStageOne;retakeAnimationStageTwo;takeAgainRef;block;wrapper;id;constructor(e){super(e),this.state={errorIncomplete:!1,selectedAnswer:null,selectedIndices:[],chosen:!1,answered:!1,fillInText:"",matches:{},questionHtmlId:`q-${mu()()}`},this.retakeAnimationStageOne=null,this.retakeAnimationStageTwo=null,this.takeAgainRef=(0,h.createRef)(),this.getSelection=this.getSelection.bind(this),this.handleFillIn=this.handleFillIn.bind(this),this.handleChoiceSelect=this.handleChoiceSelect.bind(this),this.handleMultipleResponseChange=this.handleMultipleResponseChange.bind(this),this.handleRetake=this.handleRetake.bind(this),this.renderQuestionTitle=this.renderQuestionTitle.bind(this),this.renderMultipleResponseOptionText=this.renderMultipleResponseOptionText.bind(this),this.renderMultipleChoiceOptionText=this.renderMultipleChoiceOptionText.bind(this),this.previewOnly__forceShowFeedback=this.previewOnly__forceShowFeedback.bind(this),this.previewOnly__clearOverrides=this.previewOnly__clearOverrides.bind(this),window.addEventListener(Kt,this.previewOnly__forceShowFeedback),window.addEventListener(G1,this.previewOnly__clearOverrides),this.id=ft()("kc-")}componentDidUpdate(e,n){n.answered&&!this.state.answered?this.getType()!==ji&&fh(this.wrapper):!n.answered&&this.state.answered&&setTimeout(()=>{this.takeAgainRef.current?.focus?.()},0)}componentWillUnmount(){this.retakeAnimationStageOne&&(clearTimeout(this.retakeAnimationStageOne),this.retakeAnimationStageOne=null),this.retakeAnimationStageTwo&&(clearTimeout(this.retakeAnimationStageTwo),this.retakeAnimationStageTwo=null),window.removeEventListener(Kt,this.previewOnly__forceShowFeedback),window.removeEventListener(G1,this.previewOnly__clearOverrides)}previewOnly__forceShowFeedback(e){const{itemId:n,path:o}=e.detail,{getL10nValue:r}=this.props;if(n!==this.props.blockId)return;const a=o.at(-1);if(typeof a=="string"&&a.startsWith?.("feedback")){const i=a==="feedbackCorrect",l=o.indexOf("answers"),u=o[l+1],d=l>-1&&typeof u!="string"?u.id:null,m={forceShowFeedback:!0,forceShowFeedbackCorrect:i,forceShowFeedbackMessage:""};if(d&&"answers"in this.props.items[0]){const p=this.props.items[0].answers.find(({id:v})=>v===d),f=p&&"feedback"in p?p?.feedback:void 0;m.forceShowFeedbackCorrect=p?.correct??!1,m.forceShowFeedbackMessage=r(f)}this.setState(m)}}previewOnly__clearOverrides(){this.setState({forceShowFeedback:!1,forceShowFeedbackCorrect:!1})}getSelection({item:e}){switch(e.type){case ji:return this.state.fillInText;case Iu:return this.state.matches;case ju:return this.state.selectedIndices;case Nu:default:return this.state.selectedAnswer}}handleMatchesChange=e=>{this.setState({errorIncomplete:!1,matches:e})};handleMultipleResponseChange({optionIndex:e}){const{selectedIndices:n}=this.state;this.setState({errorIncomplete:!1,selectedIndices:aH(n,e)})}handleChoiceSelect({selectedIndex:e}){const{answered:n}=this.state;n||this.setState({errorIncomplete:!1,selectedAnswer:e,chosen:!0})}onSubmit(e,n,o,r,a){if(!n){switch(this.setState({errorIncomplete:!0}),r.type){case ji:this.wrapper?.querySelector("input")?.focus();break;case ju:case Nu:this.wrapper?.querySelector("input")?.focus();break;case Iu:default:break}return}a?.preventDefault(),this.setState({answered:!0,isRetaking:!1}),o&&this.props.onStep({id:e})}handleFillIn(e){this.setState({errorIncomplete:!1,fillInText:e})}handleRetake(e){const{blockId:n,lessonId:o,settings:r}=this.props,{id:a}=e;this.setState({isRetaking:!0}),this.retakeAnimationStageOne=setTimeout(()=>{this.setState({answered:!1,chosen:!1,matches:{}},()=>{this.retakeAnimationStageOne=null})},400),this.retakeAnimationStageTwo=setTimeout(()=>{this.setState({fillInText:"",selectedAnswer:null,selectedIndices:[],isRetaking:!1,shouldFocusFirst:!0},()=>{!Cm&&this.getType()===ji&&fh(this.wrapper),this.retakeAnimationStageTwo=null}),r?.retryCount!=null&&(0,Q.JD)((0,tr.Sw)({blockId:n,itemId:a,lessonId:o}))},950)}resetErrorIncomplete(){this.state.errorIncomplete&&this.setState({errorIncomplete:!1})}resetShouldFocusFirst=()=>{this.state.shouldFocusFirst&&this.setState({shouldFocusFirst:!1})};renderQuestionTitle({title:e}){return(0,s.jsx)(ls,{className:"quiz-card__title",id:this.state.questionHtmlId,value:e})}renderQuestion(e){const{answered:n,errorIncomplete:o,isRetaking:r,selectedAnswer:a}=this.state,{blockId:i,enableVideoPlaybackSpeed:l,getL10nValue:u,labels:d,progress:m,renderQuestionTitle:p=this.renderQuestionTitle,settings:f}=this.props,{quizCorrect:v,quizIncorrect:g,quizRequireAnswer:C,quizSubmit:x,quizTakeAgain:L}=d,{id:y,type:E}=e,b=e.type!=="DRAW_FROM_QUESTION_BANK"?e.settings:{},S=u("media"in e?e.media:{}),T=this.state.forceShowFeedbackCorrect||this.getIsCorrect({item:e}),I=this.getCanSubmit({item:e}),j=f?.requireCorrectAnswer?T:!0,M=this.onSubmit.bind(this,y,I,j,e),H=this.getFeedback({item:e,isCorrect:T,selectedAnswer:a}),D=this.getSelection({item:e}),{columnBehavior:P,correctAnswerColor:F,correctAnswerColorContrast:k,incorrectAnswerColor:w,incorrectAnswerColorContrast:O}=f,W=T?F:w,G=d.knowledgeCheckCorrectAnswerRequiredBlock,$=d.knowledgeCheckRetriesAttemptsRemaining,ce=d.knowledgeCheckMaxRetriesReached,Ee=m?.items?.[i]?.items?.[y]?.retryAttemptCount??0,Ne=f?.retryCount!==0&&(f?.retryCount==null||f?.retryCount===-1||Ee<f?.retryCount),De=f?.retryCount!=null||f?.retryCount===-1?f?.retryCount-Ee:-1,Ke=!T,Ae={"--color-feedback-icon":W,"--color-matching-feedback-bubble-bg":w,"--color-multiple-choice-complete-border":w,"--color-multiple-choice-correct-border":F,"--color-multiple-response-correct-border":F,"--color-multiple-response-incorrect-border":w,"--color-multiple-response-option-check":n?F:void 0,"--color-quiz-option-check":F,"--color-x-fill":w},he=f?.revealCorrectAnswers!==!1&&(f.retryCount==null||f.retryCount===-1||!Ne)?mt.iV.ALL:mt.iV.INCORRECT,oe=Z()("block-knowledge__retake-container",{"block-knowledge__retake-container--active":n,"block-knowledge__retake-container--active-attempts-left":n&&!r&&De>0}),Be=Z()("block-knowledge__retake",{"block-knowledge__retake--active":n&&!r&&Ne}),Pe=Z()("block-knowledge__retake","block-knowledge__attempts-left",{"block-knowledge__retake--active":n&&!r&&Ne&&De>0}),$e=Z()("block-knowledge__retake","block-knowledge__no-more-attempts",{"block-knowledge__retake--active":n&&!r&&!Ne}),Oe=!!S?.image,pt=!!S?.audio,vt=!!S?.video,It=!!S?.embed;let Ht=null;pt&&Oe?Ht=(0,s.jsx)(Pr,{blockId:i,enableVideoPlaybackSpeed:l,index:`${i}-${y}-audio`,isOverlayAudio:!0,item:e,labels:d,media:S,settings:b}):pt&&(vt||It)?Ht=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(Pr,{blockId:i,enableVideoPlaybackSpeed:l,index:`${i}-${y}-audio`,item:e,labels:d,media:{audio:S.audio},settings:b}),(0,s.jsx)(Pr,{blockId:i,enableVideoPlaybackSpeed:l,index:`${i}-${y}-video`,item:e,labels:d,media:vt?{video:S.video}:{embed:S.embed},settings:b})]}):Ht=(0,s.jsx)(Pr,{blockId:i,enableVideoPlaybackSpeed:l,index:`${i}-${y}-audio`,item:e,labels:d,media:S,settings:b});const Wt=Z()("block-knowledge__media",{"block-knowledge__image-with-audio":pt&&Oe});return(0,s.jsxs)(Wg,{isActive:!0,style:Ae,children:[f?.requireCorrectAnswer&&(n&&!T||!n)&&(0,s.jsxs)("div",{className:"quiz-card__require-correct-answer-disclaimer",children:[(0,s.jsx)(rt,{className:"quiz-card__require-correct-answer-disclaimer-icon",name:"info-circle"}),G]}),p(e),(0,s.jsx)("div",{className:Wt,children:Ht}),(0,s.jsx)(Qg,{type:E,children:this.renderType({columnBehavior:P,correctAnswerColor:F,correctAnswerColorContrast:k,incorrectAnswerColor:w,incorrectAnswerColorContrast:O,isCorrect:T,item:e,onSubmit:M})}),(0,s.jsx)("div",{"aria-live":"assertive",children:o&&(0,s.jsxs)("div",{className:"quiz-card__validations","data-testid":"quiz-validation-error",children:[(0,s.jsx)("span",{"data-testid":"quiz-validation-icon",children:(0,s.jsx)(rt,{className:"quiz-card__validation-icon",name:"alert-circle"})}),(0,s.jsx)("span",{id:`${this.id}-error-incomplete-message`,children:C})]})}),(0,s.jsx)($g,{canProceed:n,canSubmit:I,isReduceMotion:Cm,onSubmit:M,quizSubmit:x}),(0,s.jsx)(Kg,{canProceed:this.state.forceShowFeedback||n,feedbackValue:H,isActive:n,isComplete:n,isCorrect:T,item:e,labels:d,quizCorrect:v,quizIncorrect:g,revealAnswers:he,selection:D}),(0,s.jsxs)("div",{"aria-hidden":!n,className:oe,children:[Ke&&(0,s.jsxs)(s.Fragment,{children:[Ne?(0,s.jsx)(jt.ArcButton,{className:Be,hierarchy:"secondary",icon:(0,s.jsx)(rt,{name:"arrow-rotate-left"}),onClick:this.handleRetake.bind(this,e),ref:this.takeAgainRef,size:"md",tabIndex:n?void 0:-1,text:L}):null,De>0&&(0,s.jsxs)("div",{className:Pe,children:[$," ",De]})]}),!Ne&&!T&&(0,s.jsx)("div",{className:$e,children:ce})]})]},y)}getIsCorrect({item:e}){const{fillInText:n,matches:o,selectedAnswer:r,selectedIndices:a}=this.state,{type:i}=e,l="answers"in e?e.answers:void 0,u="isCaseSensitive"in e?e.isCaseSensitive:!1;switch(i){case ji:return c3({answers:fm(l),text:n,caseSensitive:u,getL10nValue:this.props.getL10nValue});case Iu:return l3(o);case ju:return h3({item:{answers:l},selectedIndices:a});case Nu:default:return d3({item:{answers:l},selectedIndex:r})}}getType(){const{items:e}=this.props;return cF(e)}getCanSubmit({item:e}){const n="answers"in e?e.answers:void 0,{answered:o,fillInText:r,matches:a,selectedAnswer:i,selectedIndices:l}=this.state;return yH({type:e.type,text:r,matches:a,answersLength:n?.length??0,selectedIndices:l,selectedIndex:i,answered:o})}getFeedback({item:e,isCorrect:n,selectedAnswer:o}){if(this.state.forceShowFeedbackMessage)return this.state.forceShowFeedbackMessage;const r="feedback"in e?e.feedback:void 0,a="feedbackCorrect"in e?e.feedbackCorrect:void 0,i="feedbackIncorrect"in e?e.feedbackIncorrect:void 0,l="feedbackType"in e?e.feedbackType:void 0,u="answers"in e?e.answers:void 0,d=this.state.forceShowFeedbackCorrect??n;return m3({answers:u,feedback:r,feedbackCorrect:a,feedbackIncorrect:i,feedbackType:l,isCorrect:d,selectedIndex:typeof o=="number"?o:null})}getTypeLabel(){const{labels:e}=this.props,n=this.getType(),o=iF[n];return o?e?.[o]:e?.a11yBlockKnowledgeCheck}renderMultipleResponseOptionText(e,{title:n}){return(0,s.jsx)(ls,{className:"cursorAuto",value:n})}renderMultipleChoiceOptionText(e,{title:n}){return(0,s.jsx)(ls,{className:"quiz-multiple-choice-option__label cursorAuto",value:n})}renderType({columnBehavior:e,correctAnswerColor:n,correctAnswerColorContrast:o,incorrectAnswerColor:r,incorrectAnswerColorContrast:a,isCorrect:i,item:l,onSubmit:u}){const{isHidden:d,labels:m,prefersKeyboardNavigation:p,renderMultipleResponseOptionText:f=this.renderMultipleResponseOptionText,renderMultipleChoiceOptionText:v=this.renderMultipleChoiceOptionText,settings:g,progress:C,blockId:x}=this.props,{answered:L,fillInText:y,isRetaking:E,matches:b,selectedAnswer:S,selectedIndices:T,shouldFocusFirst:I,questionHtmlId:j}=this.state,{id:M,type:H}=l,D="answers"in l?l.answers:[],{quizAcceptableResponses:P,quizAnswerPlaceholder:F}=m,k=C?.items?.[x]?.items?.[M]?.retryAttemptCount??0,w=g?.retryCount!==0&&(g?.retryCount==null||g?.retryCount===-1||k<g?.retryCount),W=g?.revealCorrectAnswers!==!1&&(g.retryCount==null||g.retryCount===-1||!w)?mt.iV.ALL:mt.iV.INCORRECT,G=this.state.errorIncomplete?`${this.id}-error-incomplete-message`:void 0;switch(H){case ji:return(0,s.jsx)(Zg,{allowTabNavigation:!0,correctAnswerColor:n,correctAnswerColorContrast:o,errorMessageId:G,incorrectAnswerColor:r,incorrectAnswerColorContrast:a,isComplete:L,isCorrect:i,labels:m,onChange:this.handleFillIn,onEnterToSubmit:u,options:fm(D),questionHtmlId:j,quizAcceptableResponses:P,quizAnswerPlaceholder:F,revealAnswers:W,value:y});case Iu:return(0,s.jsx)(e3,{answers:pH(H)(D),columnBehavior:e,correctAnswerColor:n,correctAnswerColorContrast:o,incorrectAnswerColor:r,incorrectAnswerColorContrast:a,isActive:!d,isComplete:L,matches:b,onChange:this.handleMatchesChange,prefersKeyboardNavigation:p,revealAnswers:W});case ju:return(0,s.jsx)(n3,{allowTabNavigation:!0,correctIds:pm(D),errorMessageId:G,isComplete:L,isCorrect:i,isRetaking:E,labels:m,onChange:this.handleMultipleResponseChange,onEnterToSubmit:u,options:D,questionHtmlId:j,renderOptionText:f.bind(this,l),revealAnswers:W,selectedIndices:T});case Nu:default:return(0,s.jsx)(s3,{allowTabNavigation:!0,correctId:fH(D)||vH(D),errorMessageId:G,isComplete:L,isCorrect:i,isReduceMotion:Cm,isRetaking:E,labels:m,onChange:this.handleChoiceSelect,onEnterToSubmit:u,onFocusFirstComplete:this.resetShouldFocusFirst,options:D,questionHtmlId:j,renderOptionText:v.bind(this,l),revealAnswers:W,selectedIndex:S,shouldFocusFirst:I})}}render(){const{animateBlockEntrance:e,initiallyVisible:n,isLearner:o,items:r,settings:a,variant:i}=this.props,{answered:l,isRetaking:u}=this.state,{entranceAnimation:d,knowledgeCheckWidth:m=76}=a,p=Bh(m),f=Z()("block-knowledge",{"block-knowledge--answered":l,"block-knowledge--no-animation":!d,"block-knowledge--retake":u}),v=Z()("block-knowledge__wrapper",`block-knowledge__wrapper--${i}`,{[`block-knowledge__container--custom-width-${p}`]:!0}),g=Array.isArray(r)&&r.length>0?r.slice(0,1):[];return(0,s.jsx)(kt,{className:f,"data-testid":"block-kc-card",ref:C=>{this.block=C},style:this.getStyle(),children:(0,s.jsx)(Mt,{animateBlockEntrance:e,initiallyVisible:n,isLearner:o,children:(0,s.jsx)("div",{className:"block-knowledge__container",children:(0,s.jsx)("div",{className:"block-knowledge__row",children:(0,s.jsx)("div",{className:`block-knowledge__col--custom-width-${p}`,children:(0,s.jsx)(Os,{"aria-label":this.getTypeLabel(),className:v,"data-testid":"block-knowledge-wrapper",ref:C=>{this.wrapper=C},children:g.map(C=>this.renderQuestion(C))})})})})})})}getStyle(){const{backgroundColor:e,settings:n}=this.props;if(n?.cardMode===Dn.TRANSPARENT)switch(n?.backgroundType){case A.xj.ACCENT:case A.xj.COLOR:case A.xj.TINT:switch((0,ht.XC)(e)){case ht.lL.LIGHT:return{"--color-background-choice-hover":(0,ht.W8)(.5,e),"--color-background-feedback-frame":(0,ht.W8)(.5,e)};case ht.lL.MED:return{"--color-background-choice-hover":(0,ht.W8)(-.3,e),"--color-background-feedback-frame":(0,ht.W8)(-.3,e)};case ht.lL.DARK:return{"--color-background-choice-hover":(0,ht.W8)(-.6,e),"--color-background-feedback-frame":(0,ht.W8)(-.6,e)};case ht.lL.NEAR_BLACK:return{"--color-background-choice-hover":(0,ht.W8)(.15,e),"--color-background-feedback-frame":(0,ht.W8)(.15,e)}}}}}const lF=t=>{const{blockId:e,items:[n]}=t,{questions:o}=n,[r,a]=(0,h.useState)(()=>T3({questions:o}));(0,h.useEffect)(()=>{if(!o)return;const l=u=>{const{path:d}=u.detail;if(d[d.indexOf("items")+1]?.id!==e)return;const p=d[d.lastIndexOf("questions")+1]?.id;if(p===r?.id)return;const f=o.find(({id:v})=>v===p);f&&a(f)};return window.addEventListener(Kt,l),()=>window.removeEventListener(Kt,l)},[e,r,o]);const i=(0,h.useMemo)(()=>r?{variant:JH[r.type],items:[r]}:{},[r]);return r?(0,s.jsx)(j3,{...t,...i}):(0,s.jsx)("div",{})},dF=t=>t.variant==="draw from question bank",ki=t=>{const e=bn()??"",n=sn(),o=(0,st.gY)(),r={...t,backgroundColor:e,getL10nValue:o,blockSettings:n};return dF(r)?(0,s.jsx)(lF,{...r}):(0,s.jsx)(j3,{...r})};var uF=c(61812),hF=c.n(uF);class mF extends h.Component{refWrap;refBubbleTitle;portal;contentRef;scrollRef;videoContainer;constructor(e){super(e),this.state={hasOverflow:!1},this.refWrap=(0,h.createRef)(),this.refBubbleTitle=(0,h.createRef)(),this.renderOverflowMask=this.renderOverflowMask.bind(this),this.handleScroll=this.handleScroll.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleNextClick=this.handleNextClick.bind(this),this.handlePreviousClick=this.handlePreviousClick.bind(this),this.portal=Lr()}static defaultProps={allowNav:!0,onClose:()=>{},onNextClick:()=>{},onPreviousClick:()=>{}};componentWillUnmount(){document.removeEventListener("click",this.handleDocumentClick),document.removeEventListener("keydown",this.handleDocumentKeyDown),this.contentRef.removeEventListener("scroll",this.scrollRef)}UNSAFE_componentWillReceiveProps(e){e.isActive&&setTimeout(this.renderOverflowMask,100)}componentDidUpdate(e){if(!e.isActive&&this.props.isActive){setTimeout(()=>{document.addEventListener("click",this.handleDocumentClick),document.addEventListener("keydown",this.handleDocumentKeyDown)},0),this.contentRef.scrollTop=0,this.refBubbleTitle.current?.focus?.();const n=this.props.media;this.props.dispatch(kr({audioPlayerId:co({refs:`items:${this.props.blockId}/items:${this.props.item?.id}`}),transcriptMedia:n}))}else e.isActive&&!this.props.isActive&&(document.removeEventListener("click",this.handleDocumentClick),document.removeEventListener("keydown",this.handleDocumentKeyDown),this.state.hasOverflow&&this.contentRef.removeEventListener("scroll",this.scrollRef))}render(){const{accentColor:e,allowNav:n,description:o,htmlId:r,isActive:a,media:i,title:l,x:u,y:d}=this.props,m=Z()("bubble",{"bubble--active":a}),p=vF({x:u,y:d}),f=gF({hasOverflow:this.state.hasOverflow,x:u,y:d}),v={borderBottomColor:e},g=`${r}-title`,C=()=>{if(!i)return(0,s.jsx)(Et,{allowTabNavigation:a,className:"bubble__description",value:o});const L=this.props.getL10nValue(i)??{},y=lo(L,this.props.audioPosition,!0,"labeled-graphic"),E={blockId:this.props.blockId,hasPadding:!1,imageMaxHeight:1e3,item:this.props.item,labels:this.props.labels,lessonId:this.props.lessonId,enableVideoPlaybackSpeed:this.props.enableVideoPlaybackSpeed,opts:this.props.mediaOpts,refs:`items:${this.props.blockId}/items:${this.props.item?.id}`,shouldPause:!a},b={audio:{media:y.audioOnlyMedia||L,isOverlayAudio:!1,index:`${this.props.blockId}-${this.props.item.id}-${this.props.index}-audio`},image:{media:y.imageOnlyMedia||L,isOverlayAudio:!1,index:`${this.props.blockId}-${this.props.item.id}-${this.props.index}-image`},video:{media:y.videoOnlyMedia||L,isOverlayAudio:!1,index:`${this.props.blockId}-${this.props.item.id}-${this.props.index}-video`},embed:{media:y.embedOnlyMedia||L,isOverlayAudio:!1,index:`${this.props.blockId}-${this.props.item.id}-${this.props.index}-embed`},overlay:{media:L,isOverlayAudio:!0,index:`${this.props.blockId}-${this.props.item.id}-${this.props.index}-overlay`}};return(0,s.jsx)(s.Fragment,{children:y.renderOrder.map((S,T)=>{if(S==="text")return(0,s.jsx)(Et,{allowTabNavigation:a,className:"bubble__description",value:o},`text-${T}`);const I=b[S];return!I||S==="embed"&&!a?null:(0,s.jsx)("div",{className:"bubble__media",children:(0,s.jsx)("div",{className:"bubble__figure",children:(0,s.jsx)("div",{className:Z()({"labeled-graphic-bubble-media-container--audio-bottom":S==="audio"&&this.props.audioPosition==="bottom"}),children:(0,s.jsx)($s,{...E,...I})})})},`${S}-${T}`)})})},x=(0,s.jsx)("div",{className:m,ref:this.refWrap,style:p,children:(0,s.jsxs)("dialog",{"aria-hidden":!a,"aria-labelledby":g,"aria-modal":"false",className:f,id:r,onKeyDown:this.handleKeyDown,style:v,children:[(0,s.jsx)("h2",{className:"bubble__title",id:g,ref:this.refBubbleTitle,tabIndex:-1,children:(0,s.jsx)(ms,{value:l})}),(0,s.jsx)("button",{"aria-label":"Close modal",className:"bubble__close",onClick:this.handleCloseClick,type:"button",children:(0,s.jsx)(UC,{className:"bubble__close-icon"})}),(0,s.jsx)("div",{className:"bubble__content",ref:L=>{this.contentRef=L},children:C()}),n&&this.renderControls()]})});return window.matchMedia("(max-width: 767px)").matches?(0,oo.createPortal)((0,s.jsx)(_v,{children:x}),this.portal):x}renderControls(){const{accentColor:e,labels:n}=this.props,o={"--color-lg-accent":e};return(0,s.jsxs)("div",{className:"bubble__controls",style:o,children:[(0,s.jsx)("button",{"aria-label":n?.a11yCarouselPrevious,className:"bubble__prev",onClick:this.handlePreviousClick,type:"button",children:(0,s.jsx)("i",{className:"icon icon-chevron-left"})}),(0,s.jsx)("button",{"aria-label":n?.a11yCarouselNext,className:"bubble__next",onClick:this.handleNextClick,type:"button",children:(0,s.jsx)("i",{className:"icon icon-chevron-right"})})]})}renderOverflowMask(){if(!this.contentRef)return;const e=this.contentRef,n=e.offsetHeight;e.scrollHeight>n?(e.addEventListener("scroll",this.scrollRef=pu()(this.handleScroll,50)),this.setState({hasOverflow:!0}),this.scrollRef()):(e.removeEventListener("scroll",this.scrollRef),this.setState({hasOverflow:!1}))}handleDocumentClick=e=>{const n=Array.from(document.querySelectorAll("dialog[open]"))?.reduce((o,r)=>r.contains(e.target)||o,!1);!this.props.isActive||n||this.props.onClose({shouldFocusMarker:!1})};handleDocumentKeyDown=e=>{hn(e)&&this.props.isActive&&this.props.onClose({shouldFocusMarker:!1})};handleKeyDown(e){const{allowNav:n,onNextClick:o,onPreviousClick:r}=this.props,a=kL(this.contentRef,this.state.hasOverflow),i=hF()(os()(n));On()([[i(Nr),r],[i(jr),o],[IL,a]])(e)}handleCloseClick=()=>{this.props.onClose()};handleNextClick(e){this.props.onNextClick(e)}handlePreviousClick(e){this.props.onPreviousClick(e)}handleScroll(){const e=this.contentRef,n=e.scrollTop,o=e.scrollHeight,r=e.offsetHeight;n>=o-r-10?this.setState({hasOverflow:!1}):this.state.hasOverflow||this.setState({hasOverflow:!0})}getMediaContainerClasses(e,n){return Z()({"labeled-graphic-bubble-media-container":e,"labeled-graphic-bubble-media-container--audio-overlay":n,"labeled-graphic-bubble-media-container--audio-on-bottom":e&&this.props.audioPosition==="bottom"})}}const pF=Jt(mF),fF=(0,Rs.Ls)()(pF),vF=({x:t,y:e})=>{const n={top:"initial",bottom:"initial",left:"0",right:"0"};return t>50?n.right=100-t+"%":n.left=t+"%",e>50?n.bottom=100-e+"%":n.top=e+"%",n},gF=({hasOverflow:t,x:e,y:n})=>{const o=e<50;let r="top";return n>33&&(r=n>66?"bottom":"middle"),Z()("bubble__body","bg--range-light",{"bubble__body--has-overflow":t,"bubble__body--left":o,"bubble__body--right":!o,"bubble__body--top":r==="top","bubble__body--middle":r==="middle","bubble__body--bottom":r==="bottom"})};var CF=c(26372);const xF=t=>new URL(t).pathname.slice(1)+new URL(t).search;class bF extends CF.Component{imageEl;constructor(e){super(e),this.state={style:{}}}render(){const{canvasClassNames:e,children:n,cornerRadius:o,editable:r,editingDisabled:a,getL10nValue:i,imageLoaded:l,media:u,onCreateMarker:d,onShowAltDialog:m}=this.props,{style:p}=this.state,f=i(u)?.image??{},{alt:v,dimensions:g,key:C,src:x}=f,L=!!f.alt,y=(0,zs.Ll)(v),E=(0,zs.Zd)(f),b=Z()("labeled-graphic-canvas__figure",{"labeled-graphic-canvas__figure--editable":r&&!a,"labeled-graphic-canvas__figure--editing-disabled":r&&a});let S;C?S=(0,Vt.ME)(f):x&&(S=(0,Vt.ME)({key:xF(x),...f}));const T=Z()("labeled-graphic-canvas__image","labeled-graphic-canvas__image--flag-dimensions",{"labeled-graphic-canvas__image--svg":(0,zs.sg)(S)}),I={...p,...o!=null&&{"--corner-radius":`${Number(o)}px`}},j=(0,s.jsx)(Ln,{alt:y,className:T,"data-l10n-id":(0,St.pP)(u),height:g?.height||g?.originalHeight,onClick:d,onLoad:()=>this.setState({style:E}),ref:M=>{this.imageEl=M},src:S,style:I,width:g?.width||g?.originalWidth});return(0,s.jsx)("div",{className:e||"labeled-graphic-canvas",children:(0,s.jsx)("div",{className:"labeled-graphic-canvas__item",children:(0,s.jsx)("div",{className:"labeled-graphic-canvas__bounds",children:(0,s.jsxs)("figure",{className:b,children:[L&&r&&(0,s.jsx)(jt.ArcTooltip,{anchorAt:"top-center",text:"Edit alt text",children:(0,s.jsx)("div",{className:"item-media__tooltip",children:(0,s.jsx)("button",{className:"labeled-graphic-canvas__alt-tag",onClick:m,type:"button",children:"ALT"})})}),l&&j,(0,s.jsx)("ol",{role:"list",children:n})]})})})})}}const yF=Jt(bF),LF={"01":"a11yLabeledGraphicIconPlus","02":"a11yLabeledGraphicIconDot","03":"a11yLabeledGraphicIconInformation","04":"a11yLabeledGraphicIconQuestion","05":"a11yLabeledGraphicIconCheck","06":"a11yLabeledGraphicIconX","07":"a11yLabeledGraphicIconHeart","08":"a11yLabeledGraphicIconPin","09":"a11yLabeledGraphicIconArrowLeft",10:"a11yLabeledGraphicIconArrowRight",11:"a11yLabeledGraphicIconArrowUp",12:"a11yLabeledGraphicIconArrowDown",13:"a11yLabeledGraphicIconArrowUpLeft",14:"a11yLabeledGraphicIconArrowUpRight",15:"a11yLabeledGraphicIconArrowDownLeft",16:"a11yLabeledGraphicIconArrowDownRight",17:"1",18:"2",19:"3",20:"4",21:"5",22:"6",23:"7",24:"8",25:"9",26:"0"},EF=(t,e)=>{const n=LF[e];return n?.startsWith("a11y")?t?.[n]||"":n||""};var SF=c(26372);const k3=ee("labeled-graphic-marker");class TF extends SF.Component{marker;onMouseMove;onMouseLeave;constructor(e){super(e),this.state={dragging:!1,hovering:!1,isComplete:!1,isDragged:!1,offsetX:0,offsetY:0,wasDragged:!1},this.onClick=this.onClick.bind(this)}parentCanvasElement(){return this.marker.parentElement.parentElement.parentElement}componentDidMount(){const e=this.parentCanvasElement();e.addEventListener("mousemove",this.onMouseMove=n=>{this.onItemDrag(n)}),e.addEventListener("mouseleave",this.onMouseLeave=n=>{this.onItemRelease(n)})}componentWillUnmount(){const e=this.parentCanvasElement();e.removeEventListener("mousemove",this.onMouseMove),e.removeEventListener("mouseleave",this.onMouseLeave)}UNSAFE_componentWillReceiveProps(e){const{isSelected:n,useLocalStateForCompletion:o}=e;n&&o&&!this.state.isComplete&&this.setState({isComplete:!0})}buildMarkerLabel=({icon:e,label:n,title:o,viewed:r})=>{const{labels:a}=this.props;return[].concat(n||[]).concat(o||[]).concat(e||[]).concat(r?a?.a11yLabeledGraphicViewed:a?.a11yLabeledGraphicUnviewed).join(", ")};render(){const{accentColor:e,ariaControls:n,icon:o,isActive:r,isComplete:a,isLessonBlocksList:i,isSelected:l,isVisible:u,labels:d,markerColor:m,markerColorContrast:p,onFocus:f,styles:v,useLocalStateForCompletion:g}=this.props,C=this.props.getL10nValue(this.props.title),x=EF(d,o),L=g?this.state.isComplete:a,y=!!m,E=(0,ht.cP)(m)?A.Em.LIGHT:A.Em.DARK,S=ws({backgroundColor:m,contrast:p??E}),T=y?m:"#ffffff",I=y?S:e,j=this.buildMarkerLabel({icon:x,label:d&&d.a11yLabeledGraphicButtonMarker||"",title:C,viewed:L}),M=k3({active:l,dragged:this.state.isDragged,visible:u,complete:L}),H={...v,"--color-lg-accent":T,"--color-lg-font":I},D=k3("pin",{selected:l,disabled:i});return(0,s.jsx)("button",{"aria-controls":n,"aria-expanded":r,"aria-label":j,className:M,onClick:this.onClick,onContextMenu:this.onItemRelease.bind(this),onFocus:f,onMouseDown:this.onItemGrab.bind(this),onMouseEnter:this.onHover.bind(this),onMouseLeave:this.onLeave.bind(this),onMouseUp:this.onItemRelease.bind(this),ref:P=>{this.marker=P},style:H,type:"button",children:(0,s.jsx)("span",{className:D,children:(0,s.jsx)("i",{className:`icon icon-Master-${o}`})})})}focus(){this.marker&&this.marker.focus&&this.marker.focus()}onHover(){this.state.wasDragged&&this.props.onHover(),this.setState({hovering:!0})}onLeave(){this.props.onLeave(),this.setState({hovering:!1})}onClick(){const{editable:e,itemId:n,onClick:o,parentId:r}=this.props,a="labeledGraphicMarkerClick",i={detail:{itemId:n,parentId:r}},l=new CustomEvent(a,i);document.dispatchEvent(l),e||o()}onItemGrab(e){const{editable:n}=this.props;if(!n)return;const o=this.marker.getBoundingClientRect(),r=o.left-e.clientX+this.marker.offsetWidth/2,a=o.top-e.clientY+this.marker.offsetHeight/2;this.setState({posX:e.clientX,posY:e.clientY,offsetX:r,offsetY:a,isDragged:!0})}onItemDrag(e){if(this.state.isDragged){const n=e.clientX-this.state.posX,o=e.clientY-this.state.posY;this.marker.style.transform=`translate3d(${n}px, ${o}px, 0)`}}onItemRelease(e){const{editable:n}=this.props,o={isDragged:!1};this.marker.style.transform="translate3d(0, 0, 0)",this.state.isDragged&&this.state.posX===e.clientX&&this.state.posY===e.clientY?this.props.onClick():n&&e.currentTarget instanceof HTMLElement&&e.currentTarget.classList.contains("labeled-graphic-marker")?this.props.onSetPosition(e,this.state.offsetX,this.state.offsetY):this.state.isDragged&&(o.offsetX=0,o.offsetY=0),this.setState(o)}}const IF=Jt(TF);class NF extends h.Component{static get defaultProps(){return{animateBlockEntrance:!1,editable:!0,getL10nValue:e=>e,markerDelay:0,onClose:Function.prototype,onCreateMarker:Function.prototype,onItemClear:Function.prototype,onItemHint:Function.prototype,onItemSelected:Function.prototype,onNextClick:Function.prototype,onPreviousClick:Function.prototype,onSetMarkerPosition:Function.prototype,showBubbles:!0}}markerRefs;timeout;entranceDoneTimeout;canvas;constructor(e){super(e);const{isLearner:n}=e;this.afterAnimatedIn=this.afterAnimatedIn.bind(this),this.createMarker=this.createMarker.bind(this),this.onBubbleClose=this.onBubbleClose.bind(this),this.onMarkerFocus=this.onMarkerFocus.bind(this),this.markerRefs={},this.state={showMarkers:!n||Tn()}}componentDidMount(){const{isBlock:e,isLearner:n,isPreview:o,markerDelay:r}=this.props;n&&!e&&(this.timeout=setTimeout(()=>this.setState({showMarkers:!0}),o?0:r))}componentWillUnmount(){clearTimeout(this.timeout),clearTimeout(this.entranceDoneTimeout)}render(){const{accentColor:e,animateBlockEntrance:n,blockId:o,color:r,canvasClassNames:a,disableCreateMarker:i,editable:l,getL10nValue:u,imageLoaded:d=!0,isBlock:m,isLearner:p,isLessonBlocksList:f,isPreview:v,initiallyVisible:g,items:C,labels:x,lessonId:L,media:y,onItemClear:E,onItemHint:b,onItemSelected:S,onNextClick:T,onPreviousClick:I,onShowAltDialog:j,parentId:M,progress:H,selected:D,settings:P={},showBubbles:F,enableVideoPlaybackSpeed:k}=this.props,{cornerRadius:w,markerColor:O,markerColorContrast:W}=P,{showMarkers:G}=this.state,ce=O||(e||r),Ee=Z()("map-item",{"map-item--animated":!l}),Ne=n?"fadeIn":"none",De=n?1:0,Ke=C.length>1;return(0,s.jsx)(h.Fragment,{children:(0,s.jsx)(Mt,{afterAnimatedIn:this.afterAnimatedIn,animateBlockEntrance:!v,animateIn:Ne,duration:v?0:De,initiallyVisible:g,isLearner:p,children:(0,s.jsx)(yF,{canvasClassNames:a,cornerRadius:w,editable:l,editingDisabled:i,imageLoaded:d,media:y,onCreateMarker:this.createMarker,onShowAltDialog:j,ref:Ae=>{this.canvas=Ae},children:C.map((Ae,we)=>{const{description:he,id:oe,icon:Be,media:Pe,title:$e}=Ae,Oe=u(Ae.x),pt=u(Ae.y),vt={top:pt+"%",left:Oe+"%"},It=Xt()(["items",oe,"isComplete"],H),Ht=D===oe,Wt=`bubble-${o}-${oe}`;return(0,s.jsxs)("li",{className:Ee,role:"listitem",children:[(0,s.jsx)(IF,{accentColor:ce,ariaControls:Wt,editable:l,icon:Be,isActive:D===oe,isComplete:It,isLessonBlocksList:f,isSelected:Ht,isVisible:G,itemId:oe,labels:x,markerColor:O,markerColorContrast:W,onClick:()=>{S(oe)},onFocus:this.onMarkerFocus(oe),onHover:()=>{b()},onLeave:()=>{E()},onSetPosition:this.onSetPosition.bind(this,Ae),parentId:M,ref:ds=>{this.markerRefs[oe]=ds},styles:vt,title:$e,useLocalStateForCompletion:m},oe),!l&&F&&(0,s.jsx)(fF,{accentColor:ce,allowNav:Ke,audioPosition:P.audioPosition,blockId:o,description:he,enableVideoPlaybackSpeed:k,htmlId:Wt,index:we,isActive:Ht,item:Ae,labels:x,lessonId:L,media:Pe,mediaOpts:{disableZoom:!P.zoomOnClick},onClose:this.onBubbleClose(oe),onNextClick:()=>{T(we)},onPreviousClick:()=>{I(we)},title:$e,x:Number(Oe),y:Number(pt)},Wt)]},oe)})})})})}createMarker(e){const{disableCreateMarker:n,editable:o,onCreateMarker:r}=this.props;if(!o||n)return;const{x:a,y:i}=this.findItemCoordinates({e}),l=this.props.items.length,d={description:"",hasMedia:!1,icon:"01",id:mu()(),isActive:!1,title:"",x:String(a),y:String(i)};r({index:l,payload:d})}onBubbleClose(e){const{onClose:n}=this.props;return(o={shouldFocusMarker:!0})=>{const r=this.markerRefs[e];o.shouldFocusMarker&&r?.focus?.(),n()}}onMarkerFocus(e){return()=>{const{onClose:n,selected:o}=this.props;o&&o!==e&&n()}}onSetPosition(e,n,o,r){if(!this.props.editable)return;const{lesson:a,onSetMarkerPosition:i}=this.props,{id:l,items:u}=a,{x:d,y:m}=this.findItemCoordinates({e:n,offsetX:o,offsetY:r}),p={x:String(d),y:String(m)};(0,fs.uW)(e.x)&&(0,fs.uW)(e.y)?(this.props.updateL10n({l10n:e.x,value:p.x}),this.props.updateL10n({l10n:e.y,value:p.y})):i({itemId:e.id,lessonId:l,items:u,payload:p})}findItemCoordinates({e,offsetX:n=0,offsetY:o=0}){const r=this.canvas.imageEl.getBoundingClientRect(),a=20,i=this.findItemCoordinate({clientPos:e.clientX,clientOffset:n,rectSubtractor:r.left,rectDivisor:r.width,validOffsetAmount:a}),l=this.findItemCoordinate({clientPos:e.clientY,clientOffset:o,rectSubtractor:r.top,rectDivisor:r.height,validOffsetAmount:a});return{x:i,y:l}}findItemCoordinate({clientPos:e,clientOffset:n,rectSubtractor:o,rectDivisor:r,validOffsetAmount:a}){const i=a/r*100,l=100-i;let u=(e+n-o)/r*100;return u>l?u=l:u<i&&(u=i),u}afterAnimatedIn(){const{isBlock:e}=this.props;e&&this.setState({showMarkers:!0})}}const jF=Jt(NF);var kF=c(26372);const A3="page-wrap--noscroll";class AF extends kF.Component{static get defaultProps(){return{onItemSelected:Function.prototype,onStep:Function.prototype,getL10nValue:()=>{}}}constructor(e){super(e),this.state={imageLoaded:!1},this.closeOpenedBubble=this.closeOpenedBubble.bind(this),this.handleMarkerClick=this.handleMarkerClick.bind(this),this.handleNavEvent=this.handleNavEvent.bind(this),this.onItemSelected=this.onItemSelected.bind(this),this.onNextClick=this.onNextClick.bind(this),this.onPreviousClick=this.onPreviousClick.bind(this),this.setImageLoaded=this.setImageLoaded.bind(this)}componentDidMount(){this.loadImage(),this.props.readOnly||document.addEventListener("labeledGraphicMarkerClick",this.handleMarkerClick),window.addEventListener(Kt,this.handleNavEvent)}handleNavEvent(e){const n=e.detail.path[e.detail.path.indexOf("items")+1]?.id,o=e.detail.path[e.detail.path.lastIndexOf("items")+1]?.id;n===this.props.blockId&&this.state.selectedItemId!==o&&this.onItemSelected(o)}componentWillUnmount(){this.props.readOnly||document.removeEventListener("labeledGraphicMarkerClick",this.handleMarkerClick),window.removeEventListener(Kt,this.handleNavEvent)}render(){const{imageLoaded:e}=this.state,{initiallyVisible:n,isLessonBlocksList:o,isPreview:r,items:a,labels:i,parentId:l,settings:u={}}=this.props,{mediaWidth:d="2"}=u,m=r?a[0].id:this.state.selectedItemId,p=Z()("view-labeled-graphic",{"view-labeled-graphic--small":d==="0","view-labeled-graphic--medium":d==="1","view-labeled-graphic--full":d==="2"});return(0,s.jsx)("div",{"aria-label":i?.a11yLabeledGraphicBlock,className:p,role:"group",children:(0,s.jsx)(jF,{...this.props,canvasClassNames:this.getCanvasClassNames(),editable:!1,imageLoaded:e,initiallyVisible:n,isLessonBlocksList:o,labels:i,markerDelay:1e3,onClose:this.closeOpenedBubble,onItemSelected:this.onItemSelected,onNextClick:this.onNextClick,onPreviousClick:this.onPreviousClick,parentId:l,selected:m})})}setImageLoaded(){this.setState({imageLoaded:!0})}loadImage(){const{image:e}=this.props.getL10nValue(this.props.media),{key:n,src:o}=e??{};if(!n&&!o)return;const r=setTimeout(this.setImageLoaded,1e3),a=new Image,i=n?(0,Vt.ME)(e):o;a.src=i,a.onload=()=>{clearTimeout(r),this.setImageLoaded()}}getCanvasClassNames(){return Z()("labeled-graphic-canvas",{"labeled-graphic-canvas--visible":this.state.imageLoaded})}onNextClick(e){const{blockId:n,items:o}=this.props,r=Ct()("id",o[Yn()(e)]||o[0]);document.querySelector(`dialog#bubble-${n}-${this.state.selectedItemId}[open]`)?.close(),this.onItemSelected(r)}onPreviousClick(e){const{blockId:n,items:o}=this.props,r=Ct()("id",o[ch()(e)]||o[ch()(vs()(o))]);document.querySelector(`dialog#bubble-${n}-${this.state.selectedItemId}[open]`)?.close(),this.onItemSelected(r)}onItemSelected(e){const{editBlock:n,items:o,onItemSelected:r,onStep:a}=this.props,{selectedItemId:i}=this.state;n&&window.matchMedia("(max-width: 768px)").matches||(i===e?this.closeOpenedBubble():(this.openBubble(e),ot()(a,Fs()(l=>l.id===e))(o)),r(e))}handleMarkerClick(e){const{itemId:n,parentId:o}=e.detail,{selectedItemId:r}=this.state;(o!==this.props.parentId||r!==n)&&this.closeOpenedBubble()}openBubble(e){const{blockId:n}=this.props;if(window.matchMedia("(max-width: 767px)").matches){const r=document.querySelector(".page-wrap");r&&r.classList.add(A3)}this.setState({selectedItemId:e}),document.getElementById(`bubble-${n}-${e}`).show()}closeOpenedBubble(){const{blockId:e}=this.props;if(window.matchMedia("(max-width: 767px)").matches){const o=document.querySelector(".page-wrap");o&&o.classList.remove(A3)}document.getElementById(`bubble-${e}-${this.state.selectedItemId}`)?.close(),this.setState({selectedItemId:void 0})}}const RF=Jt(AF),PF=t=>{const{blockId:e,progress:n,isLessonBlocksList:o=!1}=t,r=Xt()(["items",e],n);return(0,s.jsx)(kt,{className:"block-labeled-graphic",children:(0,s.jsx)(RF,{...t,editable:!1,isBlock:!0,isLessonBlocksList:o,parentId:e,progress:r})})},Dt=ee("block-survey"),wF=[{value:"bad",label:"Bad",icon:"face-frown"},{value:"fair",label:"Fair",icon:"face-smile"},{value:"great",label:"Great",icon:"face-laugh"}],MF={bad:1,fair:2,great:3},OF={1:"bad",2:"fair",3:"great"},xm=t=>!t||t.trim()==="";function DF({animateBlockEntrance:t,blockId:e,initiallyVisible:n,isLearner:o,items:r=[],lessonId:a,onSubmit:i,settings:l={},title:u}){const[d,m]=(0,h.useState)({}),[p,f]=(0,h.useState)(!1),[v,g]=(0,h.useState)(!1),[C]=(0,h.useState)(()=>r.map(()=>ft()("survey-q-"))),[x,L]=(0,h.useState)(!1),[y,E]=(0,h.useState)(new Set),b=(0,h.useRef)(null),S=(0,h.useRef)(null),{announcePolite:T}=gt(),I=(0,qe.A)(p),j=l.cardMode==="TRANSPARENT",M=(0,h.useCallback)((k,w)=>{m(O=>({...O,[k]:w})),y.has(k)&&(E(W=>{const G=new Set(W);return G.delete(k),G}),r.find(W=>W.id===k)&&r.filter(G=>G.isRequired&&G.id!==k&&xm(d[G.id])).length===0&&L(!1))},[y,r,d]),H=(0,h.useCallback)((k,w,O)=>{if(O&&w.length>O)return;const W=d[k]||"",G=O&&w.length===O&&W.length<O;m($=>({...$,[k]:w})),G&&T(`Character limit reached. ${O} characters maximum.`),y.has(k)&&w.trim()!==""&&(E(ce=>{const Ee=new Set(ce);return Ee.delete(k),Ee}),r.filter(ce=>ce.isRequired&&ce.id!==k&&xm(d[ce.id])).length===0&&L(!1))},[d,T,y,r]),D=(0,h.useCallback)(async()=>{if(!e||!a){console.error("Missing blockId or lessonId");return}g(!0);try{const k=r.map(w=>{const O=d[w.id]||"",W={id:String(e),lessonId:String(a),itemId:w.id,questionTitle:String(w.question),surveyTitle:String(u),isUnfinished:!1};return w.questionType==="RATING"?{...W,ratingOptions:OF,type:w.questionType,response:MF[O]}:{...W,type:w.questionType,response:O}});window.Runtime?.reportUngradedAnswers&&await window.Runtime.reportUngradedAnswers(k),i?.(d),f(!0)}catch(k){console.error("Failed to submit survey:",k)}finally{g(!1)}},[e,a,r,d,i,u]),P=(0,h.useCallback)(k=>{if(k.preventDefault(),v)return;const O=r.filter(W=>W.isRequired).filter(W=>xm(d[W.id]));if(O.length>0){L(!0),E(new Set(O.map(W=>W.id))),T("Please answer all required questions to continue"),S.current&&S.current.focus();return}D()},[v,D,r,d,T]);(0,h.useEffect)(()=>{v&&T("Submitting survey responses.")},[v,T]),(0,h.useEffect)(()=>{!I&&p&&(T("Thanks! Your responses were sent."),b.current&&b.current.focus())},[p,I,T]);const F=(k,w)=>{const O=d[k.id]||"",W=C[w],G=`${W}-char-count`,$=`${W}-error`,ce=y.has(k.id),Ee=ce&&w===r.findIndex(Ae=>y.has(Ae.id));if(k.questionType==="RATING"){const Ae=Z()(Dt("question"),{[Dt("question--error")]:ce}),we=Z()(Dt("rating-options"),{[Dt("rating-options--error")]:ce}),he=ce?$:void 0;return(0,s.jsxs)("fieldset",{"aria-describedby":he,"aria-invalid":ce?!0:void 0,"aria-required":k.isRequired?!0:void 0,className:Ae,ref:Ee?S:void 0,children:[(0,s.jsxs)("legend",{className:Dt("question-text"),children:[String(k.question),k.isRequired?(0,s.jsxs)("span",{className:Dt("required-indicator"),children:[" ",(0,s.jsx)(jt.ArcIcon,{icon:"fa-solid fa-asterisk"}),(0,s.jsx)("span",{className:"visually-hidden-always",children:"Required"})]}):(0,s.jsx)("span",{className:Dt("optional-indicator"),children:" (Optional)"})]}),(0,s.jsx)("div",{className:we,children:wF.map(oe=>{const Be=O===oe.value,Pe=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("input",{"aria-label":oe.label,checked:Be,className:Dt("rating-input"),name:`survey-${k.id}`,onChange:()=>M(k.id,oe.value),type:"radio",value:oe.value}),(0,s.jsx)(rt,{"aria-hidden":"true",className:Dt("rating-icon"),name:oe.icon}),(0,s.jsx)("span",{"aria-hidden":"true",className:Dt("rating-label"),children:oe.label})]}),$e=Z()(Dt("rating-option"),{[Dt("rating-option--selected")]:Be,[Dt("rating-option--error")]:ce});return j?(0,s.jsx)(Os,{cardMode:"WHITE",className:$e,tag:"label",children:Pe},oe.value):(0,s.jsx)("label",{className:$e,children:Pe},oe.value)})}),ce&&(0,s.jsxs)("div",{className:Dt("error-message"),id:$,children:[(0,s.jsx)(rt,{"aria-hidden":"true",name:"alert-circle"})," Required"]})]},k.id)}const Ne=Z()(Dt("question"),{[Dt("question--error")]:ce}),De=Z()(Dt("text-input"),{[Dt("text-input--error")]:ce}),Ke=[k.maxLength?G:null,ce?$:null].filter(Boolean).join(" ")||void 0;return(0,s.jsxs)("div",{className:Ne,children:[(0,s.jsxs)("label",{className:Dt("question-text"),htmlFor:W,children:[String(k.question),k.isRequired?(0,s.jsxs)("span",{className:Dt("required-indicator"),children:[" ",(0,s.jsx)(jt.ArcIcon,{icon:"fa-solid fa-asterisk"}),(0,s.jsx)("span",{className:"visually-hidden-always",children:"Required"})]}):(0,s.jsx)("span",{className:Dt("optional-indicator"),children:" (Optional)"})]}),(0,s.jsxs)("div",{className:Dt("text-response"),children:[(0,s.jsx)("textarea",{"aria-describedby":Ke,"aria-invalid":ce?!0:void 0,"aria-required":k.isRequired?!0:void 0,className:De,id:W,maxLength:k.maxLength,onChange:Ae=>H(k.id,Ae.target.value,k.maxLength),placeholder:"Share your thoughts",ref:Ee?S:void 0,rows:k.questionType==="LONG_RESPONSE"?4:2,value:O}),k.maxLength&&(0,s.jsxs)("div",{className:Dt("character-count"),children:[(0,s.jsxs)("span",{"aria-hidden":"true",children:[O.length," / ",k.maxLength]}),(0,s.jsxs)("span",{className:"visually-hidden-always",id:G,children:["Character count: ",O.length," of ",k.maxLength]})]})]}),ce&&(0,s.jsxs)("div",{className:Dt("error-message"),id:$,children:[(0,s.jsx)(rt,{name:"alert-circle"})," Required"]})]},k.id)};return(0,s.jsx)(ih,{...l,children:(0,s.jsx)(kt,{className:Dt(),children:(0,s.jsx)(Mt,{animateBlockEntrance:t,initiallyVisible:n,isLearner:o,children:(0,s.jsx)("div",{children:(0,s.jsx)(Os,{className:Dt("container"),children:p?(0,s.jsx)("div",{className:Dt("confirmation"),ref:b,tabIndex:-1,children:(0,s.jsxs)("p",{className:Dt("confirmation-text"),children:[(0,s.jsx)(jt.ArcIcon,{icon:"fa-regular fa-circle-check"})," Thanks! Your responses were sent."]})}):(0,s.jsxs)("form",{noValidate:!0,onSubmit:P,children:[u&&(0,s.jsx)("h2",{className:Dt("title"),children:String(u)}),(0,s.jsx)("div",{className:Dt("questions"),children:r.map((k,w)=>F(k,w))}),(0,s.jsxs)("div",{className:Dt("actions"),children:[x&&(0,s.jsxs)("div",{className:Dt("validation-error"),role:"alert",children:[(0,s.jsx)(rt,{"aria-hidden":"true",name:"alert-circle"})," Please answer all required questions to continue."]}),(0,s.jsx)("div",{className:`${Dt("submit")} brand--ui`,children:(0,s.jsx)("button",{"aria-busy":v,className:Dt("submit-button"),"data-testid":"survey-submit-button",disabled:v,type:"submit",children:v?"Submitting...":"Submit"})})]})]})})})})})})}const bm=ee("block-process-card"),R3=({icon:t,isOverlayAudio:e=!1,onClick:n,text:o,variant:r})=>{const a=`${r}-btn`;return(0,s.jsxs)("button",{className:bm(a,{"audio-overlay":e}),onClick:n,type:"button",children:[(0,s.jsx)("span",{className:bm(`${a}-text`),children:o}),(0,s.jsx)(rt,{classNameIcon:bm(`${a}-icon`),name:t})]})},BF=ee("block-process-card"),HF=({activeIndex:t,enableVideoPlaybackSpeed:e,id:n,index:o,isIntroStep:r=!1,isOverlayAudio:a=!1,item:i,labels:l,lessonId:u,media:d,onMediaLoad:m,settingZoomOnClick:p})=>{const{image:f}=d??{},v=a?f?.align??"center":"center",g=BF("media",{legacy:!1,"audio-overlay":a,[`audio-overlay-${v}`]:a,"intro-step":r}),C=t===o;return(0,s.jsx)("div",{className:g,children:(0,s.jsx)($s,{activeIndex:t,blockId:n,defaultAlign:"center",enableVideoPlaybackSpeed:e,hasPadding:!1,index:`${n}-${o}`,isOverlayAudio:a,item:i,itemIndex:o,labels:l,lessonId:u,media:d,onLoad:m,opts:{disableZoom:!p},shouldPause:!C})})};var ym=c(26372);const wr=ee("block-process-card"),FF=({text:t})=>{const e=ym.useRef(null),{isInView:n}=VF({ref:e,threshold:.75});return(0,s.jsxs)("div",{className:wr("swipe-badge",{animate:n}),ref:e,children:[(0,s.jsx)("span",{className:wr("swipe-badge-text"),children:t}),(0,s.jsx)(rt,{className:wr("swipe-badge-icon"),name:"chevron-right-solid"})]})};function VF({ref:t,rootMargin:e="0px",threshold:n=.1}){const[o,r]=ym.useState(!1);return ym.useEffect(()=>{if(!t.current||o)return;const a=new IntersectionObserver(([i])=>{i.isIntersecting&&(r(!0),a.disconnect())},{rootMargin:e,threshold:n});return a.observe(t.current),()=>a.disconnect()},[o,t,e,n]),{isInView:o}}const zF=({activeIndex:t,className:e,description:n,enableVideoPlaybackSpeed:o,hasIntro:r,id:a,index:i,item:l,labels:u,lessonId:d,media:m,onClickRestart:p,onClickStart:f,settingAudioPosition:v,settingHeadingLevel:g=2,settingShowStepLabel:C=!0,settingStepLabel:x,settingZoomOnClick:L,showSwipeBadge:y,style:E,title:b,totalSteps:S,type:T})=>{const I=`h${g}`,j=T==="intro",M=T==="summary",H=T==="step",D=r?i:i+1,P=(0,st.QQ)(x)||u.processStepName,F=(0,st.QQ)(Array.isArray(m)?{}:m),k=lo(F,v,!0,"process"),w=()=>{if(!m)return null;const O={activeIndex:t,blockId:a,enableVideoPlaybackSpeed:o,id:a,index:i,isIntroStep:j,labels:u,lessonId:d,media:m,onMediaLoad:()=>{},settingZoomOnClick:L,item:l},W={audio:{media:k.audioOnlyMedia||F,isOverlayAudio:!1},image:{media:k.imageOnlyMedia||F,isOverlayAudio:!1},video:{media:k.videoOnlyMedia||F},embed:{media:k.embedOnlyMedia||F,isOverlayAudio:!1},overlay:{media:F,isOverlayAudio:!1}};return k.renderOrder.map((G,$)=>{if(G==="text")return(0,s.jsx)(Et,{className:wr("description"),value:n},`text-${$}`);const ce=W[G];return ce?(0,s.jsx)(HF,{...O,...ce},`${G}-${$}`):null})};return(0,s.jsxs)("div",{className:wr(null,{[T]:!0}).mix(e),style:E,children:[H&&C&&(0,s.jsx)("div",{className:wr("number"),children:`${P} ${D}`}),(0,s.jsx)("div",{className:wr("title"),children:(0,s.jsx)(I,{children:(0,s.jsx)(Et,{value:b})})}),w(),!m&&(0,s.jsx)(Et,{className:wr("description"),value:n}),j&&S>1&&(0,s.jsx)(R3,{icon:"chevron-right-solid",isOverlayAudio:k.isOverlayAudio,onClick:f,text:u.processStart,variant:"start"}),M&&S>1&&(0,s.jsx)(R3,{icon:"arrow-rotate-left",isOverlayAudio:k.isOverlayAudio,onClick:p,text:u.processStartAgain,variant:"restart"}),y&&H&&(0,s.jsx)(FF,{text:u.processSwipe})]})};var wo=c(26372);const UF=ee("block-process-carousel"),P3=t=>t?.type==="intro",Lm=t=>t?.type==="summary",Em=t=>t?.type==="step",w3=t=>t?.isHidden,$F=({animateBlockEntrance:t,enableVideoPlaybackSpeed:e,id:n,initiallyVisible:o,isLearner:r,items:a,labels:i,lessonId:l,onStep:u,previewType:d,processRef:m,settings:{audioPosition:p,headingLevel:f,stepLabel:v,showStepLabel:g,zoomOnClick:C}})=>{const x=Is(480),L=(0,xe.Wz)(),y=(0,st.gY)(),E=(0,Rs.y4)(),b=wo.useRef(null),[S,T]=wo.useState(0),[I,j]=wo.useState(!1),M=wo.useMemo(()=>d===it.o4.MOBILE_PORTRAIT||d===it.o4.MOBILE_LANDSCAPE,[d]),H=wo.useMemo(()=>{const ce=a.filter(Ke=>!w3(Ke)),Ee=ce.find(P3),Ne=ce.find(Lm),De=ce.filter(Em);return[Ee,...De,Ne].filter(Boolean)},[a]),D=wo.useMemo(()=>H.findIndex((ce,Ee)=>Em(ce)&&(Em(H[Ee+1])||Lm(H[Ee+1]))),[H]),P=P3(H[0]),F=Lm(H[H.length-1]),k=!!d;wo.useEffect(()=>{u&&(a.forEach(ce=>w3(ce)&&u(ce)),H.length>0&&u(H[0]))},[]);const w=wo.useCallback(()=>{b.current?.navigateToSlide?.(0)},[]),O=wo.useCallback(()=>{b.current?.navigateToSlide?.(1)},[]),W=wo.useCallback(ce=>{T(ce);const Ee=m.current;k||Ee?.scrollIntoView({behavior:"smooth",block:"start"}),ce!==D&&!I&&j(!0),u?.(H[ce]);const Ne=H[ce]?.media;y(Ne)?.audio&&E(kr({audioPlayerId:co({refs:`items:${n}/items:${H[ce]?.id}`}),transcriptMedia:Ne}))},[H,E,D,y,I,n,k,u,m]),G=({index:ce,isActive:Ee,onClick:Ne,onKeyDown:De})=>{const Ke=P&&ce===0,Ae=F&&ce===H.length-1,we=P?ce:ce+1;let he,oe;Ke?(he=i?.a11yBlockProcessSlideControlsIntroduction,oe=(0,s.jsx)(rt,{className:"carousel-controls-item-intro-icon",name:"chevron-right"})):Ae?(he=i?.a11yBlockProcessSlideControlsSummary,oe=(0,s.jsx)(rt,{name:"check-regular"})):(he=we.toString(),oe=we.toString());const Be=`${i?.a11yBlockProcessSlideControlsGoToSlide} ${he}`;return(0,s.jsx)(Tg,{"aria-label":Be,ariaLabel:Be,className:"carousel-controls-item-btn",isActive:Ee,onClick:Ne,onKeyDown:De,children:oe},ce)},$=t?"fadeIn":"none";return(0,s.jsx)(Mt,{animateBlockEntrance:k,animateIn:$,duration:k&&t?1:0,initiallyVisible:o,isLearner:r,children:(0,s.jsx)("div",{className:UF(),children:(0,s.jsx)(uu,{blockId:n,carouselRef:b,items:H,children:()=>(0,s.jsx)(lu,{iconNameLeft:"chevron-left-solid",iconNameRight:"chevron-right-solid",isInfinite:!1,isRTL:L,labelCarousel:i?.a11yBlockProcessCarousel,labelCarouselRoleDesc:i?.a11yBlockProcessRoleDescription,labelSlideControls:i?.a11yBlockProcessSlideControls,labelSlideControlsGoToNext:i?.a11yBlockProcessSlideControlsGoToNext,labelSlideControlsGoToPrevious:i?.a11yBlockProcessSlideControlsGoToPrevious,labelSlideControlsGoToSlide:i?.a11yBlockProcessSlideControlsGoToSlide,labelSlideCounterPreposition:i?.blocksPreposition,labelSlidePreposition:i?.a11yBlockProcessSlidePreposition,labelSlideRoleDesc:i?.a11yBlockProcessSlideRoleDescription,onChange:W,ref:b,renderSlideIndicator:G,shouldMouseEmulateTouch:M,shouldUseCounter:!1,shouldUseGoToSlide:!0,children:H.map((ce,Ee)=>(0,s.jsx)(Os,{activeIndex:S,description:ce.description,enableVideoPlaybackSpeed:e,hasIntro:P,id:n,index:Ee,isHidden:ce.isHidden,item:ce,labels:i,lessonId:l,media:ce.media,onClickRestart:w,onClickStart:O,settingAudioPosition:p,settingHeadingLevel:f,settingShowStepLabel:g,settingStepLabel:v,settingZoomOnClick:C,showSwipeBadge:x&&!I&&Ee===D,tag:zF,title:ce.title,totalSteps:H.length,type:ce.type},ce.id))})})})})};var WF=c(26372);const _F=t=>{const{blockId:e}=t,n=WF.useRef(null);return(0,s.jsx)(kt,{className:"block-process",ref:n,children:(0,s.jsx)($F,{id:e,processRef:n,...t})})};var GF=c(33670),KF=c.n(GF),QF=c(74469),M3=c.n(QF),ZF=c(33182),Mo=c.n(ZF),YF=c(60165),O3=c.n(YF),XF=c(76065),JF=c.n(XF),qF=c(29894),Mr=c.n(qF);const D3=t=>({...t.responses[t.response],hasCharacter:t.hasCharacter,type:"response"}),eV=(t,e)=>{const n=t.responses[t.response],o={emotion:e.emotion,goTo:e.goTo,nextSlide:e.nextSlide},r="action"in e?{action:e.action}:{};return{...o,...r,description:n?.feedback||"",type:"dialogue",hasCharacter:t.hasCharacter}},tV=t=>[D3(t)],sV=t=>{const e=!!t.responses[t.response],n=D3(t),o=eV(t,n);return e?[n,o]:[o]},nV=t=>t.hasFeedback?[t,...sV(t)]:t.response!=null?[t,...tV(t)]:[t],oV=(t,e)=>{if(!e)return;const{scene:n,slide:o}=e,r=t.findIndex(l=>l.id===n),i=(t[r]?.slides||[]).findIndex(l=>l.id===o);return{scene:r,slide:i}},B3=ia()(oV);var rV=c(53994),aV=c.n(rV);const iV=Ts()(Ct()("filters"),As()(Ft()("name","rise_emotion")),Vd()(hs())),cV=Ts()(Ct()("filters"),Fs()(Ft()("name","rise_emotion")),Ct()("value")),H3=t=>new URL(t).pathname.slice(1),lV=t=>Ts()(io()("key",H3(t.src)),io()("thumbnailKey",H3(t.thumbnail)))(t),dV=Ts()(Ct()("poses"),As()(iV),qo()(t=>[cV(t),t]),aV(),va()(lV));var Oo=c(26372);const Sm=t=>t===-1?null:t,F3=t=>ri()(nn(),Ea(),t),ku=Vd()(hs()),V3=Vd()(nn()),Ai=eu()(V3,ku),z3=KF()(Kd()),U3=ze.BI?F3(Vt.dE):F3(Vt.bX),Tm=t=>ln()(t);class uV extends Oo.Component{static get defaultProps(){return{getCharacter:Function.prototype,onItemUpdate:Function.prototype}}continueRef;feedbackRef;resetRef;buttonRef=Oo.createRef();responseItemRef=Oo.createRef();scenarioRef=Oo.createRef();blockContentRef=Oo.createRef();endRef=Oo.createRef();textRef=Oo.createRef();refs=Oo.createRef();dynamicRefs=Oo.createRef();fadeObservers=new Map;shouldFocus=!1;constructor(e){super(e);const n={activeScene:0,activeSlide:0,initiated:!1,prevScene:0,prevSlide:0,resizes:0,slides:{}};this.refs.current={},this.state=e.initialState||n,this.fetchCharacters=this.fetchCharacters.bind(this),this.fetchCharacterPose=this.fetchCharacterPose.bind(this),this.getCharacterPose=this.getCharacterPose.bind(this),this.handleNavEvent=this.handleNavEvent.bind(this),this.onClick=this.onClick.bind(this),this.onFocus=this.onFocus.bind(this),this.onInit=this.onInit.bind(this),this.onResize=this.onResize.bind(this),this.onResponseClick=this.onResponseClick.bind(this),this.onTryAgainClick=this.onTryAgainClick.bind(this),this.renderBackground=this.renderBackground.bind(this),this.renderButton=this.renderButton.bind(this),this.renderDetails=this.renderDetails.bind(this),this.renderDialogues=this.renderDialogues.bind(this),this.renderEnd=this.renderEnd.bind(this),this.renderPose=this.renderPose.bind(this),this.renderResponse=this.renderResponse.bind(this),this.renderText=this.renderText.bind(this),this.renderAudioMedia=this.renderAudioMedia.bind(this),this.renderDialogueWithAudioPositioning=this.renderDialogueWithAudioPositioning.bind(this),this.renderTextWithAudioPositioning=this.renderTextWithAudioPositioning.bind(this),this.resetSlide=this.resetSlide.bind(this),this.resetSlides=this.resetSlides.bind(this),this.setNextSlide=this.setNextSlide.bind(this),this.dynamicRefs.current={},this.setupFadeObserver=this.setupFadeObserver.bind(this)}setupFadeObserver(e){if(!e)return;const n=this.fadeObservers.get(e);n&&(n.observer.disconnect(),e.removeEventListener("scroll",n.scrollHandler),this.fadeObservers.delete(e));const o=Array.from(e.children).find(d=>d.className.includes("-bottom"));if(!o)return;const r=e.parentElement?.classList.contains("scenario-block__dialogue__bubble")||e.parentElement?.classList.contains("scenario-block__dialogue__pane")?e.parentElement:e,a=()=>{const{scrollHeight:d,clientHeight:m}=e;return d>m+2},i=d=>{const m=d?.[0]?.isIntersecting??!1,p=a();p?r.classList.add("has-overflow"):r.classList.remove("has-overflow"),!m&&p?r.classList.add("show-fade"):r.classList.remove("show-fade")},l=new IntersectionObserver(i,{root:e,threshold:[0,1]}),u=()=>{};this.fadeObservers.set(e,{observer:l,scrollHandler:u}),l.observe(o)}componentDidMount(){const{initialState:e,items:n}=this.props,o=ot()(w1()("poses"),en()({},"character"),Tm);Ai(n)&&!o(n)&&this.fetchCharacters(),e||this.resetSlides(),window.addEventListener("resize",this.onResize),window.addEventListener(Kt,this.handleNavEvent)}handleNavEvent(e){const{path:n}=e.detail,{blockId:o,sceneId:r,slideId:a,responseId:i}=Ya(n,["block","scene"]),l=n.at(-1)==="feedback";if(o!==this.props.blockId)return;const u=Sm(this.props.items.findIndex(p=>p.id===r)),d=u!==null?Sm(this.props.items[u].slides.findIndex(p=>p.id===a)):null,m=d!==null?Sm(this.props.items[u].slides[d].responses.findIndex(p=>p.id===i)):null;this.setState({activeScene:u??0,activeSlide:d??0},()=>{u!==null&&d!==null&&this.setState({slides:{...this.state.slides,[`${u}.${d}`]:{...this.state.slides[`${u}.${d}`],hasFeedback:l,response:m}}})})}componentDidUpdate(){const{items:e,onStep:n}=this.props,{activeScene:o,activeSlide:r}=this.state,a=Rt()([],[o,"slides"],e),i=Rt()(null,[r,"goTo"],a),l=Rt()(null,[r,"type"],a);if(n&&(i==="end"&&l==="text"||!i&&!l)&&O3()(n,e),this.shouldFocus){this.shouldFocus=!1;const p=this.scenarioRef.current?.querySelector('[data-scenario-focus][tabindex="-1"]');p?p.focus():fh(this.scenarioRef.current)}this.fadeObservers.forEach(({observer:p,scrollHandler:f},v)=>{document.contains(v)||(p.disconnect(),v.removeEventListener("scroll",f),this.fadeObservers.delete(v))})}componentWillUnmount(){clearTimeout(this.continueRef),clearTimeout(this.feedbackRef),clearTimeout(this.resetRef),window.removeEventListener("resize",this.onResize),window.removeEventListener(Kt,this.handleNavEvent),this.fadeObservers.forEach(({observer:e,scrollHandler:n},o)=>{e.disconnect(),o.removeEventListener("scroll",n)}),this.fadeObservers.clear()}getActiveScene(){return this.getScene(this.state.activeScene)}getScene(e){const{items:n}=this.props;return n&&e>=0&&e<n.length?n[e]:null}fetchCharacterPose(e,n){const o=this.getScene(e),r=o?.slides,a=r&&n>=0&&n<r.length;if(!o||!r||!a)return{name:"",pose:null};const{character:i}=o,l=r[n],u=`${e}.${n}`,d=[u,"response"],m=[u,"hasFeedback"],p=Rt()(null,d,this.state.slides),f=Rt()(!1,m,this.state.slides),v=en()("neutral","emotion",l),g=ri()(os()(f),Rt()(v,["responses",p,"emotion"]),os()(v)),C=Ts()(Rt()(i?.poses?.neutral,["poses",g(l)]),U3);return{name:i?.name||"",pose:C(i)}}fetchCharacters(){const{getCharacter:e,items:n,onItemUpdate:o}=this.props,r=Xn()(["id","name","poses","src"]),a=l=>u=>o({itemId:l,payload:{character:u}}),i=({character:l,id:u})=>Ai(l)&&e(l.id).then(d=>io()("poses",dV(d),d)).then(r).then(a(u));n.map(i)}isCharacterHidden(){const{items:e}=this.props,{activeScene:n,activeSlide:o}=this.state,a=this.getActiveScene()?.slides?.[o],i=o===null,l=e[n];return i?!(l?.slidesHaveCharacterByDefault??!1):a&&!a.hasCharacter}getCharacterPose(){const{items:e}=this.props,{activeScene:n,activeSlide:o,prevScene:r,prevSlide:a}=this.state,i=Rt()([],[n,"slides"],e),l=Rt()(!0,[o,"hasCharacter"],i);return V3(r)&&An()(l)?this.fetchCharacterPose(r,a):this.fetchCharacterPose(n,o)}onClick(e,n){const{items:o,onStep:r}=this.props,{activeScene:a,activeSlide:i}=this.state,l=this.getActiveScene()?.slides,u=en()(null,"type",l?.[i])==="dialogue",d=a===o.length-1,m=i===(l?.length??0)-1,p={activeSlide:i+1},f={activeScene:a+1,activeSlide:0},v={activeSlide:null},g={activeScene:0,activeSlide:0},C=Ts()(B3(o),b=>({activeScene:b.scene,activeSlide:b.slide})),x=On()([[os()(m&&d),os()(v)],[os()(m&&!d),os()(f)],[Xc(),os()(p)]]),L=ri()(os()(u),os()(v),os()(g)),y=On()([[Mo()("slide"),Mr()(C,[n])],[Mo()("next"),x],[Mo()("end"),L]]),E=()=>this.continueRef=setTimeout(this.setNextSlide,300);this.resetRef=setTimeout(this.resetSlide.bind(this,a,i),0),this.setState({prevScene:a,prevSlide:i}),this.setState(y(e),E),e==="end"&&this.resetSlides(),e==="end"&&r&&O3()(r,o)}onFocus(){this.shouldFocus=!0}onInit(){this.setState({initiated:!0})}onResize(){this.setState({resizes:this.state.resizes+1})}onResponseClick(e,n){const{activeScene:o,activeSlide:r,slides:a}=this.state,{getL10nValue:i,lessonId:l,blockId:u}=this.props,d=`${o}.${r}`,m=io()("response",e),p=io()("hasFeedback",!0),f=Uc()({[`${d}`]:m}),v=Uc()({[`${d}`]:p});n.media&&i(n.media)?.audio&&ct.playerId===`audio-${l}-${u}`&&ct.pause();const C=ot()(v,f);this.setState({slides:f(a)},()=>{this.shouldFocus=!0,this.setState({slides:C(a)})})}onTryAgainClick(){const{activeScene:e,activeSlide:n,slides:o}=this.state,r=`${e}.${n}`,a=M3()({hasFeedback:null,response:null}),i=Uc()({[`${r}`]:a});this.setState({slides:i(o)})}render(){const{blockId:e,getL10nValue:n,isPDF:o,items:r,labels:a}=this.props,{activeScene:i,activeSlide:l,initiated:u}=this.state,m=this.getActiveScene()?.slides?.[l],p=ot()(ku,en()({},"character"),Tm),f=ot()(w1()("poses"),en()({},"character"),Tm),v=ot()(nr(),Rt()({},["character","poses"])),g=ot()(Rh(),nr(),qo()(v)),C=this.isCharacterHidden(),x=Z()("scenario-block",{"scenario-block--initiated":u,"scenario-block--mobile":xn.isMobile,"scenario-block--loading":p(r)&&!f(r),"scenario-block--character-hidden":C}),L=`scenario-live-${e}`,y={"aria-label":a?.a11yGroupScenario,"aria-describedby":L,className:x,ref:this.scenarioRef,role:"group",style:window.innerWidth<480?{height:window.innerHeight}:void 0},E=(0,Vt.ME)(n(r?.[0].background?.media)?.image),b=On()([[nn(),this.renderEnd],[Ft()("type","dialogue"),this.renderDialogues],[Ft()("type","text"),this.renderText],[Xc(),os()(null)]]),S=Z()("scenario-block__character",{"scenario-block__character--hidden":C}),T=`${i}.${l}`,I=this.state.slides[T],j=I?.hasFeedback?m?.responses?.[I?.response]?.alt:m?.alt,M=n(j);return(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{...y,"data-l10n-id":(0,St.pP)(j),children:[(0,s.jsx)("div",{"aria-live":"polite",className:"visually-hidden-always",id:L,children:M}),(0,s.jsx)("div",{className:"scenario-block__spinner"}),(0,s.jsx)("div",{className:"scenario-block__background-wrapper",children:Ai(r)&&r.map(this.renderBackground)}),E&&(0,s.jsx)(Ln,{alt:"",onLoad:this.onInit,src:E}),(0,s.jsxs)("div",{className:"scenario-block__inner",children:[(0,s.jsx)("div",{className:S,children:f(r)&&g(r).map(this.renderPose)}),(0,s.jsx)(gs.F,{children:Ai(r)&&b(m)})]})]}),o&&m&&this.renderDetails(m)]})}renderBackground(e,n){const{activeScene:o}=this.state,{id:r,blurBackground:a}=e,i=this.props.getL10nValue(e?.background?.media)?.image,l=Z()("scenario-block__background",{"scenario-block__background--active":o===n,"scenario-block__background--blur":a??!0}),u=(0,Vt.ME)(i);return u?(0,s.jsx)(Ln,{alt:"",className:l,src:u},r):(0,s.jsx)(s.Fragment,{})}renderButton(e){const{labels:n}=this.props,{scenarioContinue:o,scenarioTryAgain:r}=n,{goTo:a,nextSlide:i}=e,l="action"in e?e.action:void 0,u={appear:!0,classNames:"scenario-block__dialogue__button-",nodeRef:this.buttonRef,timeout:{enter:0,exit:1e3}},d=l==="tryAgain"?(0,s.jsxs)("span",{children:[r," ",(0,s.jsx)("i",{className:"icon icon-reload"})]}):(0,s.jsx)("span",{children:o}),p={className:"scenario-block__dialogue__button",key:"button",onClick:l==="tryAgain"?ot()(this.onFocus,this.onTryAgainClick):ot()(this.onFocus,Mr()(this.onClick,[a,i]))};return(0,s.jsx)(gs.F,{children:(0,s.jsx)(gs.B1,{...u,children:(0,s.jsx)("button",{...p,type:"button",children:d})})})}renderDetails(e){const{items:n}=this.props,{activeScene:o,activeSlide:r}=this.state,{responses:a,type:i}=e,l=(p,f)=>(0,s.jsxs)("span",{children:[p," ",(0,s.jsx)(c4,{})," ",f]},p),u=Ts()(B3(n),p=>`Scene ${p.scene+1} Slide ${p.slide+1}`),d=(p,{goTo:f,nextSlide:v})=>On()([[Mo()("next"),Mr()(l,[p,"Next Slide"])],[Mo()("end"),Mr()(l,[p,"End of Scenario"])],[Xc(),Mr()(l,[p,u(v||{})])]])(f),m=i==="text"?d("Continue",e):a.map((p,f)=>d(f,p));return(0,s.jsxs)("div",{className:"scenario-block__pdf-details",children:[(0,s.jsxs)("h3",{children:["Scene ",o+1," Slide ",r+1]}),m]})}renderDialogue(e,n,o){const{description:r,id:a,hasCharacter:i}=n,l="type"in n?n.type:void 0,{count:u,firstKey:d,hasFeedback:m,slide:p,totalDialogues:f}=e,v=o===0?a:o,g=o===1?d:o-1,C=o===0&&u===1,x=o===u,L=l==="dialogue"&&(C||x),y=this.dynamicRefs.current[`dialogue-${v}`],E=x&&this.dynamicRefs.current[`dialogue-${g}`],b=y&&y.offsetHeight,S=x&&E&&E.offsetHeight,T=m?30:0,I=window.innerWidth<480?20:30,j=I*2+60+S-T,M=I+60-T,H=JF()(b+T-60),D=Oo.createRef(),{settings:P,getL10nValue:F}=this.props,k=P?.audioPosition,w=F(p.media),O=lo(w,k),W=O.renderOrder.indexOf("audio")<O.renderOrder.indexOf("text"),G=!!w?.audio,$=m&&o===f-1,ce=Z()("scenario-block__dialogue",{"scenario-block__dialogue--response":l==="response","scenario-block__dialogue--feedback":$,"scenario-block__dialogue--done":o<u-1,"scenario-block__dialogue--audio-top":W&&G}),Ee=On()([[os()(C),os()(null)],[Mo()(u),os()({top:`${j}px`})],[Mo()(u-1),os()({top:`${M}px`})],[Mo()(u-2),os()({top:`${H}px`})],[Xc(),os()({top:`-${b+30}px`})]]),Ne={className:ce,ref:oe=>{this.dynamicRefs.current[`dialogue-${v}`]=oe},style:Ee(o)},De={appear:!0,classNames:"scenario-block__dialogue-",nodeRef:D,key:o,timeout:{enter:400,exit:400}},Ke=Z()({"scenario-block__dialogue__bubble":i||l==="response","scenario-block__dialogue__pane":!i}),Ae=this.props.getL10nValue(r)||"",we=l!=="response"&&!$&&G&&W&&(0,s.jsx)("div",{className:"audio-position-wrapper audio-position-wrapper--top",children:this.renderAudioMedia(p)}),he=(0,s.jsxs)("div",{className:Ke,"data-scenario-focus":L?"":void 0,tabIndex:L?-1:void 0,children:[we,(0,s.jsxs)("div",{className:"scenario-block__dialogue__bubble__content",ref:this.setupFadeObserver,children:[l!=="response"&&!$?this.renderDialogueWithAudioPositioning(p,Ae,O):(0,s.jsx)(Et,{value:Ae}),(0,s.jsx)("div",{className:"scenario-block__dialogue__bubble-bottom"})]})]});return(0,s.jsx)(gs.B1,{...De,children:(0,s.jsx)("div",{children:(0,s.jsx)("div",{...Ne,children:Ai(r)&&he})})})}renderDialogues(e){const{activeScene:n,activeSlide:o,slides:r}=this.state,{id:a,responses:i}=e,l=`${n}.${o}`,u=r[l]||{},m=ot()(Rh(),nV,Sr()(u))(e),{hasFeedback:p,response:f}=u,{feedback:v}=i[f]||{},g=nn()(f)&&ku(i),C=p?m.length-1:m.length,x=(C===1&&hs()(i)||C===2&&ku(i))&&p,L={count:C,firstKey:Rt()(null,[0,"id"],m),hasFeedback:p&&Ai(v),slide:e,totalDialogues:m.length},y={classNames:"scenario-block__content-",nodeRef:this.blockContentRef,timeout:{enter:0,exit:1e3}},E=(0,s.jsx)("div",{className:"scenario-block__dialogues__bottom",children:(0,s.jsx)("div",{className:"scenario-block__dialogues__bottom__inner",children:(0,s.jsx)("div",{className:"scenario-block__dialogues__responses",children:(0,s.jsx)(gs.F,{component:"ol",role:"list",children:i.map((b,S)=>this.renderResponse(b,e,S))})})})});return(0,s.jsx)(gs.B1,{...y,children:(0,s.jsx)("div",{className:"scenario-block__dialogues scenario-block__content",children:(0,s.jsxs)("div",{className:"scenario-block__dialogues__inner",children:[(0,s.jsx)("div",{className:"scenario-block__dialogues__top",children:(0,s.jsx)("div",{className:"scenario-block__dialogues__top__inner",children:(0,s.jsx)(gs.F,{children:m.map(this.renderDialogue.bind(this,L))})})}),g&&E,x&&this.renderButton(m[C-1])]})})},a)}renderEnd(){const{labels:e}=this.props,{scenarioComplete:n,scenarioStartOver:o}=e,r=ot()(this.onFocus,Mr()(this.onClick,["end",null])),a=Z()(["scenario-block__text","scenario-block__text--end","scenario-block__content"]),i={classNames:"scenario-block__content-",nodeRef:this.endRef,timeout:{enter:0,exit:400}};return(0,s.jsx)(gs.B1,{...i,children:(0,s.jsx)("div",{className:a,children:(0,s.jsxs)("div",{className:"scenario-block__text__inner","data-scenario-focus":"",tabIndex:-1,children:[(0,s.jsx)("div",{className:"scenario-block__text__title",children:(0,s.jsx)("h2",{children:n})}),(0,s.jsxs)("button",{className:"scenario-block__text__end",onClick:r,type:"button",children:[(0,s.jsx)("span",{children:o}),(0,s.jsx)("i",{className:"icon icon-reload"})]})]})},"end")},"end")}renderPose(e,n){const{pose:o}=this.getCharacterPose(),{filters:r,id:a}=e,i=U3(e),l=eu()(Ft()("name","style")),u=l(Ft()("value","left_aligned")),d=l(Ft()("value","right_aligned")),m=Z()("scenario-block__character__inner",{"scenario-block__character__inner--active":o===i,"scenario-block__character__inner--right":Fs()(d,r),"scenario-block__character__inner--left":Fs()(u,r)});return(0,s.jsx)("div",{className:m,"data-pose-id":a,children:(0,s.jsx)(Ln,{alt:"",src:i})},`pose-${n}-${a}`)}renderResponse({description:e},n,o){const{isPDF:r}=this.props,a=r?mV:ot()(this.onFocus,Mr()(this.onResponseClick,[o,n])),i=v=>{const C=v.currentTarget.querySelector(".scenario-block__response__inner");if(C){const x=C.getBoundingClientRect();if(v.clientX>x.right-16){v.preventDefault();return}}a(v)},l=v=>{const C=v.currentTarget.querySelector(".scenario-block__response__inner");if(C){const x=C.getBoundingClientRect();v.clientX>x.right-16?C.classList.add("hovering-scrollbar"):C.classList.remove("hovering-scrollbar")}},u=v=>{const C=v.currentTarget.querySelector(".scenario-block__response__inner");C&&C.classList.remove("hovering-scrollbar")},d=Z()(["scenario-block__response",`scenario-block__response--${o}`]),m=Z()("scenario-block__response-item",`scenario-block__response-item--${o}`),p={appear:!0,classNames:"scenario-block__response-item-",nodeRef:this.responseItemRef,timeout:{enter:0,exit:1e3}},f=(0,s.jsx)("button",{className:d,onClick:i,onMouseLeave:u,onMouseMove:l,type:"button",children:(0,s.jsxs)("div",{className:"scenario-block__response__inner",ref:this.setupFadeObserver,children:[(0,s.jsx)("div",{className:"scenario-block__response__number",children:o+1}),(0,s.jsx)(Et,{value:e}),(0,s.jsx)("div",{className:"scenario-block__response__inner-bottom"})]})});return(0,s.jsx)(gs.B1,{...p,children:(0,s.jsx)("li",{className:m,role:"listitem",children:f})},o)}renderText(e){const{description:n,goTo:o,hasCharacter:r,id:a,nextSlide:i}=e,l=this.props.getL10nValue(e.title),u=this.props.getL10nValue(n)||"",{labels:d,settings:m,getL10nValue:p}=this.props,{scenarioContinue:f,scenarioStartOver:v}=d,g=!n&&(l||"").length<22,C=m?.audioPosition,x=p(e.media),L=lo(x,C),y=L.renderOrder.indexOf("audio")<L.renderOrder.indexOf("text"),E=!!x?.audio,b=Z()("scenario-block__text","scenario-block__content",{"scenario-block__text--no-character":!r,"scenario-block__text--short":g,"scenario-block__text--audio-top":y&&E}),S={classNames:"scenario-block__content-",nodeRef:this.textRef,timeout:{enter:0,exit:400}},T=m?.headingLevel,I=T?`h${T}`:"h2",j=`scenario-title-${a}`,M=`scenario-description-${a}`,H=`${j} ${M}`,D=Z()("scenario-block__text__inner",{"scenario-block__text__inner--end":o==="end"}),P=Z()("scenario-block__text__title",{"scenario-block__text__title--end":o==="end"}),F=(0,s.jsx)("div",{className:P,"data-l10n-id":(0,St.pP)(e.title),id:j,children:(0,s.jsx)(I,{children:l})}),k=E&&y&&(0,s.jsx)("div",{className:"audio-position-wrapper audio-position-wrapper--top",children:this.renderAudioMedia(e)}),w=(0,s.jsx)("div",{className:"scenario-block__text__description",id:M,ref:this.setupFadeObserver,children:this.renderTextWithAudioPositioning(e,u,L)}),O=ot()(this.onFocus,Mr()(this.onClick,[o,i])),W=(0,s.jsx)("button",{"aria-describedby":H,className:"scenario-block__text__continue",onClick:O,type:"button",children:(0,s.jsx)("span",{children:f})}),G=(0,s.jsxs)("button",{"aria-describedby":H,className:"scenario-block__text__end",onClick:O,type:"button",children:[(0,s.jsx)("span",{children:v}),(0,s.jsx)("i",{className:"icon icon-reload"})]});return(0,s.jsx)(gs.B1,{...S,children:(0,s.jsx)("div",{className:b,children:(0,s.jsxs)("div",{className:D,"data-scenario-focus":"",tabIndex:-1,children:[l&&F,k,n&&w,o==="end"?G:W]})},a)},a)}renderAudioMedia(e){const{blockId:n,getL10nValue:o,labels:r,lessonId:a,items:i,settings:l}=this.props,u=o(e.media),d=i?.[this.state.activeScene];return u?(0,s.jsx)($s,{blockId:n,index:n,item:e,labels:r,lessonId:a,lessonNumber:a,media:u,refs:`items:${n}/items:${d.id}/slides:${e.id}`,shouldPause:e.type,volumeSliderPosition:l?.audioPosition==="top"?"below":"above"}):null}renderDialogueWithAudioPositioning(e,n,o){const r=o.renderOrder.indexOf("audio")<o.renderOrder.indexOf("text");return(0,s.jsxs)(s.Fragment,{children:[o.renderOrder.map((a,i)=>{if(a==="text")return(0,s.jsx)("div",{children:(0,s.jsx)(Et,{value:n})},`text-${i}`);if(a==="audio"&&!r){const l=this.renderAudioMedia(e);return l?(0,s.jsx)("div",{children:l},`audio-${i}`):null}return null}),(0,s.jsx)("div",{className:"scenario-block__dialogue__bubble-bottom"})]})}renderTextWithAudioPositioning(e,n,o){const r=o.renderOrder.indexOf("audio")<o.renderOrder.indexOf("text");return(0,s.jsxs)(s.Fragment,{children:[o.renderOrder.map((a,i)=>{if(a==="text")return(0,s.jsx)("div",{children:(0,s.jsx)(Et,{value:n})},`text-${i}`);if(a==="audio"&&!r){const l=this.renderAudioMedia(e);return l?(0,s.jsx)("div",{children:l},`audio-${i}`):null}return null}),(0,s.jsx)("div",{className:"scenario-block__text__description-bottom"})]})}resetSlide(e,n){const{slides:o}=this.state,r=`${e}.${n}`,a={hasFeedback:!1,response:null};this.setState({slides:io()(r,a,o)})}resetSlides(){const{items:e}=this.props,n=r=>(a,i,l)=>{const{type:u,responses:d=[]}=i,m=u==="dialogue"&&d.length===0;return io()(`${r}.${l}`,{hasFeedback:m,response:null},a)},o=(r,a,i)=>Ts()(en()([],"slides"),z3(n(i),{}),M3()(r))(a);this.setState({slides:z3(o,{},e)})}setNextSlide(){const{activeScene:e,activeSlide:n,slides:o}=this.state,r=this.getActiveScene()?.slides;if(!r)return;const{responses:a=[],type:i}=r[n]||{},l=`${e}.${n}`,u=io()("hasFeedback",!0),d=Uc()({[l]:u});i==="dialogue"&&hs()(a)&&(this.shouldFocus=!0,this.setState({slides:d(o)}))}shouldComponentUpdate(e,n){return e.items!==this.props.items||e.settings!==this.props.settings||n.activeScene!==this.state.activeScene||n.activeSlide!==this.state.activeSlide||n.initiated!==this.state.initiated||n.resizes!==this.state.resizes||n.slides!==this.state.slides||e.labels!==this.props.labels}}const hV=t=>{const e=(0,st.gY)();return(0,s.jsx)(uV,{...t,getL10nValue:e})};function mV(){}var pV=c(26372);class fV extends pV.Component{render(){const{animateBlockEntrance:e,isLearner:n,previewType:o,initiallyVisible:r}=this.props,a=!nn()(o),u={animateBlockEntrance:a,animateIn:e?"fadeIn":"none",duration:a&&e?1:0,initiallyVisible:r,isLearner:n};return(0,s.jsx)(kt,{className:"block-scenario",children:(0,s.jsx)(Mt,{...u,children:(0,s.jsx)(hV,{...this.props})})})}}var vV=c(51991),Au=c.n(vV);function gV(t){t&&(t.addEventListener("touchstart",Or,!0),t.addEventListener("touchmove",Or,!0),t.addEventListener("touchcancel",Or,!0),t.addEventListener("touchend",Or,!0))}function CV(t){t&&(t.removeEventListener("touchstart",Or,!0),t.removeEventListener("touchmove",Or,!0),t.removeEventListener("touchcancel",Or,!0),t.removeEventListener("touchend",Or,!0))}function Or(t){t?.stopPropagation?.()}const Ri=ee("playing-card"),$3=({id:t,isDeckTopCard:e,title:n,ref:o})=>{const[r,a]=(0,h.useState)(!1),[i,l]=(0,h.useState)(!1),[u,d]=(0,h.useState)({x:0,y:0}),[m,p]=(0,h.useState)(!0),[f,v]=(0,h.useState)(!1),[g,C]=(0,h.useState)(0),x=sn(),L=(0,h.useRef)(null),y=(0,h.useRef)(null),E=(0,h.useRef)(void 0),b=(0,h.useRef)(void 0),S=(0,h.useRef)(!1),T=(0,h.useCallback)(()=>{const{innerWidth:O}=window,W=L.current&&L.current.scrollHeight>L.current.clientHeight,G=O<g;W&&O>g&&C(O),v(W||G)},[g]),I=(0,h.useRef)(()=>{a(!0),l(!1)}),j=(0,h.useRef)(()=>{a(!1)});(0,h.useImperativeHandle)(o,()=>({onStartSortAttempt:I.current,onEndSortAttempt:j.current})),(0,h.useEffect)(()=>{const O=setTimeout(()=>{p(!1)},300);return()=>clearTimeout(O)},[]),(0,h.useEffect)(()=>{const O=y.current;if(!O)return;const W=()=>{a(!0),l(!1)},G=({dx:ce,dy:Ee})=>{d(Ne=>({x:Ne.x+ce,y:Ne.y+Ee}))},$=()=>{a(!1)};return I.current=W,j.current=$,gV(O),Po(O).draggable({inertia:!0,autoScroll:!1,modifiers:[Po.modifiers.snap({targets:[(ce,Ee)=>({x:ce,y:Ee})],range:1/0,endOnly:!0,relativePoints:[{x:.5,y:.5}]})]}).on("dragstart",W).on("dragmove",G).on("dragend",$),T(),E.current=xu()(T,250),window.addEventListener("resize",E.current),()=>{CV(O),Po(O).off("dragstart",W).off("dragmove",G).off("dragend",$),E.current&&(E.current.cancel(),window.removeEventListener("resize",E.current)),clearTimeout(b.current)}},[T]),(0,h.useEffect)(()=>{T()},[t,T]),(0,h.useEffect)(()=>{const O=S.current;S.current=r,O&&!r&&(l(!0),clearTimeout(b.current),b.current=setTimeout(()=>{d({x:0,y:0}),l(!1)},300))},[r]);const M=x?.backgroundType===A.xj.ACCENT||x?.backgroundType===A.xj.IMAGE,H=`translate3d(${u.x}px, ${u.y}px, 0)`,D={WebkitTransform:H,transform:H},P=Ri("title",{"is-max-length":f}),F=Ri({draggable:!0,moving:r,fail:i,reset:m}),k=M?Ri("content"):Ri("content").mix("brand--border"),w=typeof n=="string"?n:n?.["en-US"]||"Card";return(0,s.jsxs)("div",{"aria-hidden":!e,className:F,id:t.toString(),onMouseDown:O=>{O.preventDefault()},ref:y,style:D,children:[e&&(0,s.jsxs)("div",{className:"visually-hidden-always",children:["Current item: ",w]}),(0,s.jsxs)(Os,{"aria-hidden":"true",className:k,children:[(0,s.jsx)(Et,{className:P,id:`card-title-${t}`,ref:L,value:n}),(0,s.jsx)("div",{className:Ri("handle")}),(0,s.jsx)("div",{className:Ri("status"),children:(0,s.jsx)("i",{className:"icon icon-check"})})]})]},`card-${t}`)},Ru=ee("restart-button");function xV({allowTabNavigation:t=!0,onClick:e,onFocus:n=un.lQ,ref:o,text:r}){const a=Ru({}).mix("button");return(0,s.jsx)("button",{"aria-hidden":!t,className:a,"data-testid":"quiz-take-again-button",onClick:e,onFocus:n,ref:o,tabIndex:rk(t),type:"button",children:(0,s.jsxs)("div",{className:Ru("content"),children:[(0,s.jsx)("span",{className:Ru("text").mix("brand--ui"),children:r}),(0,s.jsx)("i",{"aria-hidden":"true",className:Ru("icon").mix("icon").mix("icon-reload")})]})})}const W3=xV,ll=ee("deck"),bV=t=>t?.percentViewed===100,yV=(t,e)=>`${t?.correctlyAnswered??0}/${e}`,LV=(t,e)=>String(e?.lastIncorrectCardId)===String(t.id),EV=({count:t,items:e,labels:n,id:o,onReplay:r,progress:a,ref:i})=>{const l=(0,h.useRef)([]),u=(0,h.useRef)(null);(0,h.useImperativeHandle)(i,()=>({startKeyDrop(){l.current[0]?.onStartSortAttempt()},endKeyDrop(){l.current[0]?.onEndSortAttempt()},focusReplayButton(){u.current?.focus()}}));const d=bV(a),m=yV(a,t),p=()=>{r?.({id:o})};return(0,s.jsxs)("div",{className:ll({complete:a?.percentViewed===100}),children:[(0,s.jsx)("div",{className:ll("spacer")}),d&&(0,s.jsxs)("div",{className:ll("cardholder"),children:[(0,s.jsxs)("div",{className:ll("title").mix("brand--ui"),children:[m," ",n.sortingCardsCorrect]}),(0,s.jsx)(W3,{allowTabNavigation:d,onClick:p,ref:u,text:n.sortingReplay})]}),(0,s.jsx)("div",{className:ll("content"),children:e.map((f,v)=>(0,s.jsx)($3,{id:f.id,isDeckTopCard:l.current[v]===l.current[0],isIncorrect:LV(f,a),ref:g=>{l.current[v]=g},title:f.title},f.id))})]})},Sa=ee("pile"),SV=({id:t,lessonId:e,deckTopCard:n,nextCard:o,isComplete:r=!1,onCardDrop:a,onNavigateToNext:i,onNavigateToPrevious:l,onKeyDropStart:u,onKeyDropEnd:d,title:m,ref:p})=>{const[f,v]=(0,h.useState)(void 0),[g,C]=(0,h.useState)(!1),[x,L]=(0,h.useState)(!0),[y,E]=(0,h.useState)(!1),[b,S]=(0,h.useState)(!1),[T,I]=(0,h.useState)(0),j=(0,h.useRef)(null),M=(0,h.useRef)(null),H=(0,h.useRef)(null),D=(0,h.useRef)(void 0),P=(0,h.useRef)(void 0),F=(0,h.useRef)(void 0),k=(0,h.useRef)(void 0),w=(0,h.useRef)(void 0),{announcePolite:O}=gt(),W=(0,h.useEffectEvent)(()=>{if(r||!n)return;const oe=n.id.toString(),Be=n.pileId===t;a?.({id:e,itemId:oe,isCorrect:Be});const Pe=typeof n.title=="string"?n.title:n.title?.["en-US"]||"",$e=typeof m=="string"?m:m?.["en-US"]||"";if(Be){clearTimeout(P.current),clearTimeout(F.current),clearTimeout(k.current),v(n),C(!0),L(!1);const Oe=`Correct. ${Pe}, category: ${$e}`;O(Oe);const pt=o?typeof o.title=="string"?o.title:o.title?.["en-US"]||"":"";pt&&(k.current=setTimeout(()=>{O(`Next item. ${pt}`)},500)),P.current=setTimeout(()=>{v(void 0),C(!1)},1500),F.current=setTimeout(()=>{L(!0)},1300)}else clearTimeout(P.current),clearTimeout(F.current),clearTimeout(k.current),v(void 0),C(!1),L(!0),O("Incorrect. Choose another category.")});(0,h.useImperativeHandle)(p,()=>({focus(){M.current?.focus()}}));const G=(0,h.useCallback)(()=>{const{innerWidth:oe}=window,Be=j.current&&j.current.scrollHeight>(j.current.offsetParent?.clientHeight??0),Pe=oe<T;Be&&oe>T&&I(oe),S(Be||Pe)},[T]),$=(0,h.useCallback)(()=>{if(r||!n)return;u?.();const oe=n.id.toString(),Be=n.pileId===t;a?.({id:e,itemId:oe,isCorrect:Be});const Pe=typeof n.title=="string"?n.title:n.title?.["en-US"]||"Card",$e=typeof m=="string"?m:m?.["en-US"]||"Pile";if(Be){clearTimeout(P.current),clearTimeout(F.current),clearTimeout(k.current),v(n),C(!0),L(!1);const Oe=`Correct. ${Pe}, category: ${$e}`;O(Oe);const pt=o?typeof o.title=="string"?o.title:o.title?.["en-US"]||"":"";pt&&(k.current=setTimeout(()=>{O(`Next item. ${pt}`)},500)),P.current=setTimeout(()=>{v(void 0),C(!1)},1500),F.current=setTimeout(()=>{L(!0)},1300)}else clearTimeout(P.current),clearTimeout(F.current),clearTimeout(k.current),v(void 0),C(!1),L(!0),O("Incorrect. Choose another category.")},[r,n,o,t,e,m,u,a,O]),ce=(0,h.useCallback)(oe=>{Nr(oe)?z2(()=>l?.())(oe):jr(oe)&&z2(()=>i?.())(oe)},[l,i]),Ee=(0,h.useCallback)(()=>{r||($(),clearTimeout(w.current),w.current=setTimeout(()=>d?.(),100))},[$,d,r]),Ne=(0,h.useCallback)(()=>{E(!0)},[]),De=(0,h.useCallback)(()=>{E(!1)},[]);(0,h.useEffect)(()=>{const oe=H.current;if(!oe)return;const Be=Oe=>{const pt=Po.getElementRect(Oe.target),vt={x:pt.left+pt.width/2,y:pt.top+pt.height/2};Oe.draggable.draggable({snap:{targets:[vt]}})},Pe=Oe=>{Oe.draggable.draggable({snap:{targets:[(pt,vt)=>({x:pt,y:vt})]}})},$e=Oe=>{Oe.draggable.draggable({snap:{targets:[(pt,vt)=>({x:pt,y:vt})]}}),Oe.stopPropagation?.(),Oe.preventDefault?.(),W()};return Po(oe).dropzone({overlap:"pointer"}).on("dragenter",Be).on("dragleave",Pe).on("drop",$e),G(),D.current=xu()(G,250),window.addEventListener("resize",D.current),()=>{Po(oe).off("dragenter",Be).off("dragleave",Pe).off("drop",$e),clearTimeout(P.current),clearTimeout(F.current),clearTimeout(k.current),clearTimeout(w.current),D.current&&(D.current.cancel(),window.removeEventListener("resize",D.current))}},[]);const Ke=Z()(Sa(),{"drop-success":g,complete:r}),Ae=Z()(Sa("content"),{"drop-animating":!x&&!y}),we=Sa("title",{"is-max-length":b}),he=typeof m=="string"?m:m?.["en-US"]||"Category";return(0,s.jsx)("div",{className:Ke,ref:H,children:(0,s.jsx)("div",{className:Sa("wrapwrap"),children:(0,s.jsxs)(Os,{className:Sa("wrap"),overrideBackground:!0,children:[(0,s.jsx)("div",{"aria-hidden":"true",className:Sa("message"),children:(0,s.jsx)(Et,{className:we,ref:j,value:m})}),(0,s.jsx)("button",{"aria-disabled":r,"aria-label":he,className:Ae,disabled:r,onBlur:De,onClick:Ee,onFocus:Ne,onKeyDown:ce,ref:M,type:"button",children:f&&(0,s.jsx)($3,{id:f.id,title:f.title})}),(0,s.jsx)("div",{className:Sa("background")})]})})})},Im=ee("sorting"),TV=(t,e)=>!e||!e.items?t:t.filter(n=>!e.items?.[n.id]?.isViewed),IV=({id:t,labels:e,items:n,piles:o,onCardDrop:r,onReplay:a,progress:i})=>{const[l,u]=(0,h.useState)(()=>Au()(n)),[d,m]=(0,h.useState)(!1),p=(0,h.useRef)([]),f=(0,h.useRef)(null),v=(0,h.useRef)(i?.retryAttempts),g=(0,h.useRef)(i?.percentViewed),C=(0,h.useRef)(void 0),x=(0,h.useRef)(void 0),L=(0,h.useRef)(void 0),{announcePolite:y}=gt(),E=(0,h.useEffectEvent)(()=>{p.current[0]?.focus()}),b=(0,h.useEffectEvent)(()=>{const P=i?.correctlyAnswered??0,F=n.length;y(`${P} of ${F} cards correct`)}),S=(0,h.useEffectEvent)(()=>{f.current?.focusReplayButton()});(0,h.useEffect)(()=>{const P=F=>{const{blockId:k,cardId:w}=Ya(F.detail.path,["block","card"]);t!==k||!w||u(O=>{const W=O.find($=>$.id===w),G=O.filter($=>$.id!==w);return W?[W,...G]:O})};return window.addEventListener(Kt,P),()=>{window.removeEventListener(Kt,P)}},[t]),(0,h.useEffect)(()=>{const P=i?.retryAttempts,F=v.current;return P!==F?(v.current=P,u(Au()(n)),clearTimeout(C.current),C.current=setTimeout(()=>{E()},100)):u(k=>{const w=n.filter(G=>!k.find($=>$.id===G.id));return[...k.filter(G=>n.find($=>$.id===G.id)).map(G=>{const $=n.find(ce=>ce.id===G.id);return $?{...G,...$}:G}),...w]}),()=>{clearTimeout(C.current)}},[n,i?.retryAttempts]),(0,h.useEffect)(()=>{const P=i?.percentViewed,F=g.current;return P===100&&F!==100&&(m(!0),clearTimeout(x.current),x.current=setTimeout(()=>{b()},500),clearTimeout(L.current),L.current=setTimeout(()=>{S()},100)),P!==100&&F===100&&m(!1),g.current=P,()=>{clearTimeout(x.current),clearTimeout(L.current)}},[y,i?.correctlyAnswered,i?.percentViewed,n.length]);const{sortingLandmark:T}=e,I=TV(l,i),j=T,M=I?.[0],H=M?typeof M.title=="string"?M.title:M.title?.["en-US"]||"":"",D=d?"Categories. Interaction completed.":H?`Categories. ${H}`:"Categories";return(0,s.jsxs)("div",{"aria-label":j,className:Im(),role:"group",children:[(0,s.jsx)("div",{className:Im("row"),children:(0,s.jsx)(EV,{count:l.length,id:t,items:I,labels:e,onReplay:a,progress:i,ref:f})}),(0,s.jsx)("ul",{"aria-label":D,className:Im("row"),role:"list",children:o.map((P,F)=>(0,s.jsx)("li",{role:"listitem",children:(0,s.jsx)(SV,{deckTopCard:I?.[0],id:P.id,isComplete:d,lessonId:t,nextCard:I?.[1],onCardDrop:r,onKeyDropEnd:()=>{f.current?.endKeyDrop()},onKeyDropStart:()=>{f.current?.startKeyDrop()},onNavigateToNext:()=>ak({list:p.current,currentIndex:F}),onNavigateToPrevious:()=>ik({list:p.current,currentIndex:F}),ref:k=>{p.current[F]=k},title:P.title})},P.id))})]})},NV=({blockId:t,lessonId:e})=>({itemId:n,isCorrect:o})=>(0,Q.JD)((0,tr.i$)({itemId:n,lessonId:e,blockId:t,isCorrect:o})),jV=({blockId:t,lessonId:e})=>()=>(0,Q.JD)((0,tr.V9)({lessonId:e,blockId:t})),kV=t=>{const{animateBlockEntrance:e,blockId:n,initiallyVisible:o,items:r,labels:a,piles:i,progress:l}=t,u=t.onCardDrop||NV,d=t.onReplay||jV;return(0,s.jsx)(kt,{type:"sorting-activity",children:(0,s.jsx)(Mt,{animateBlockEntrance:e,initiallyVisible:o,isLearner:!0,children:(0,s.jsx)(IV,{id:n,items:r,labels:a,onCardDrop:u(t),onReplay:d(t),piles:i,progress:Rt()({},["items",n],l)})})})};var _3=c(24177);class AV extends h.Component{static defaultProps={scope:"error-boundary"};constructor(e){super(e),this.state={hasError:!1,prevScope:e.scope}}static getDerivedStateFromError(e){return{hasError:!0,error:e}}static getDerivedStateFromProps(e,n){return n.prevScope!==e.scope?{hasError:!1,error:void 0,prevScope:e.scope}:n}componentDidCatch(e){_3.L.addError(e,{scope:this.props.scope},"source")}render(){const{hasError:e,error:n}=this.state,{FallbackComponent:o}=this.props;return e||n?(0,s.jsx)(o,{}):this.props.children}}const RV=AV,G3=(0,h.createContext)({translationHoveredPath:null});function PV(){return(0,h.use)(G3)}const wV=G3.Provider,MV=(0,h.lazy)(()=>c.e("webpack_container_remote_mondrian_learn-react").then(c.t.bind(c,4246,23))),OV={subscribe(t,e){const n=`mondrian:${t}`,o=()=>{ct.isPlaying&&ct.playerId!==n&&e()};return ct.addChangeListener(o),()=>{ct.removeChangeListener(o)}},play(t){const e=`mondrian:${t}`;ct.playerId=e,ct.isPlaying=!0}};function DV(t){const e={};return t.backgroundType==="IMAGE"&&(e["--color-background"]="transparent"),e.maxWidth=(t.contentWidth??9999)+"rem",e.minWidth="0",e.margin="0 auto",e}function BV({blockumentId:t,manifest:e}){let n=920,o=600;try{const r=e.blockuments?.[t];if(r){const a=e.items?.[r.children[0]?.id];if(a){const i=a.states[a.initialState];if(i){const l=i.width.value,u=i.height.value;typeof l=="number"&&typeof u=="number"&&(n=l,o=u)}}}}catch{}return(0,s.jsx)("svg",{"aria-hidden":"true",className:"block-mondrian__fallback",height:o,width:n})}function HV({animateBlockEntrance:t=!0,initiallyVisible:e,blockumentId:n,isLearner:o=!1,settings:r,onStep:a,labels:i}){const l=(0,xe.DX)(),u=l.mondrian,d=(0,xe.SQ)(),m=(0,Rs.y4)(),p=Yc(),f={externalLinksDisabled:"externalLinksDisabled"in l?l.externalLinksDisabled:!1,isExternalLink:Pn},{currentLocale:v}=(0,bt.nY)(),g=(0,st.D_)(),C=PV(),x=(0,h.useMemo)(()=>({active:v,source:g}),[v,g]),L=(0,h.useCallback)(I=>p?.audioPlayerIdOpen===co({refs:`items:${n}/items:${I}`}),[n,p?.audioPlayerIdOpen]),y=(0,h.useCallback)(({refocusTarget:I,itemId:j,transcript:M})=>{L(j)?m(Wc()):m(ov({audioPlayerId:co({refs:`items:${n}/items:${j}`}),focusing:!0,refocusTarget:I,transcriptMedia:{mondrianTranscript:M}}))},[n,m,L]),E=(0,h.useCallback)(({itemId:I,transcript:j})=>{p?.audioPlayerIdOpen&&m(kr({audioPlayerId:co({refs:`items:${n}/items:${I}`}),transcriptMedia:{mondrianTranscript:j}}))},[n,m,p]),b=(0,h.useCallback)(I=>{m(kr({audioPlayerId:co({refs:`items:${n}/items:${I}`}),focusing:!0}))},[n,m]),S=(0,h.useMemo)(()=>({isPanelOpenForItem:L,focusPanel:b,togglePanel:y,updateTranscript:E}),[b,L,y,E]),T=(0,h.useCallback)(I=>{if(a)for(const j of Object.values(I))j.progress>=100&&a({id:j.itemId})},[a]);return(0,s.jsx)(kt,{children:(0,s.jsx)(RV,{FallbackComponent:zV,children:(0,s.jsx)(Mt,{animateBlockEntrance:t,initiallyVisible:e,isLearner:o,children:(0,s.jsx)("div",{style:DV(r),children:(0,s.jsx)(h.Suspense,{fallback:(0,s.jsx)(BV,{blockumentId:n,manifest:u}),children:(0,s.jsx)(MV,{blockumentId:n,hoveredItemPath:C.translationHoveredPath,labels:i,linkRenderConfig:f,locale:x,manifest:u,mediaStoreAdapter:OV,onMediaProgress:T,runtimeInterface:window.Runtime,searchTerm:d?.term,transcriptPanelAdapter:S})})})})})})}const FV=(0,h.memo)(HV,VV);function VV(t,e){return t.blockumentId===e.blockumentId&&t.settings.backgroundType===e.settings.backgroundType&&t.settings.contentWidth===e.settings.contentWidth&&t.labels===e.labels}function zV(){return null}var K3=c(67750),ts=c(26372);const ks=ee("block-code"),UV=`${(0,ze._$)("CDN_URI")}/assets/rise/assets/blocks/code_block_unavailable.svg`;function Q3(t,e){const n=Z3(K3.parse(t.data));for(const o of n)if(o.type==="notification")e[o.method]?.(o.params);else throw new Error(`Unsupported RPC type "${o.type}"`)}function*Z3(t){if(Array.isArray(t))for(const e of t)yield*Z3(e);else yield t}function Y3(t,e,n){return ts.useEffect(()=>{const r=new AbortController;return window.addEventListener("message",a=>{a.origin===window.origin&&e!=null&&t.current&&a.source===t.current.contentWindow&&Q3(a,e)},{signal:r.signal}),()=>r.abort()},[e,t]),ts.useCallback(r=>{t.current?.contentWindow?.postMessage(r,n)},[t,n])}const $V=(t,e,n)=>Y3(t,n,window.origin),WV=(t,e,n)=>Y3(t,n,"*"),_V=(t,e,n)=>{const[o,r]=ts.useState(()=>new BroadcastChannel(e));return ts.useEffect(()=>()=>o.close(),[o]),ts.useEffect(()=>{o.name!==e&&r(new BroadcastChannel(e))},[o,e]),ts.useEffect(()=>{const i=new AbortController;return o.addEventListener("message",l=>Q3(l,n),{signal:i.signal}),()=>i.abort()},[o,n]),ts.useCallback(i=>{o.postMessage(i)},[o])},GV=(0,ze.Hm)()?xn.isLocalFilesystem?WV:_V:$V,KV=window.location.origin==="";function QV(t){let e=KV?"":"lib/sandbox/sandbox.html";return e+=`#channel=${encodeURIComponent(t)}`,e}function ZV(t){return typeof t=="number"?`${t/10}rem`:"-1px"}const YV={0:"small",1:"medium",2:"full"};function XV({editBlock:t,errors:e,isDragPreview:n,isLearn:o,isSidebarPreview:r,items:a,labels:i,onClearErrors:l,onError:u,onStep:d,previewType:m,settings:p}){const f=ts.useRef(null),g=(0,xe.DX)()?.htmlBlocksDisabled,C=n||r||!!m,[x]=a,L=(0,st.QQ)(x.srcdoc),y=(0,st.QQ)(x.media),E=y?.sandbox?.src==null?void 0:`${y.sandbox.src}/index.html`,b=p?.autoResize===!0,S=p?.width??"0",[T,I]=ts.useState("-1px");ts.useEffect(()=>{b||I(ZV(p?.height))},[b,p?.height]);const[j,M]=ts.useState(0),[H,D]=ts.useState(!1),[P,F]=ts.useState(!1),[k]=ts.useState(()=>`rise-frontend-sandbox-${window.crypto.randomUUID()}`),w=QV(k),O=ts.useCallback(()=>{d?.({id:x.id})},[x.id,d]),W=ts.useCallback(({message:we})=>{u?.({message:we}),F(!0),console.error("Sandbox Error",we)},[u,F]),G=ts.useCallback(()=>{l?.(),F(!1),M(we=>we+1)},[l]),$=ts.useCallback(()=>{D(j>0)},[j]),ce=ts.useCallback(({height:we})=>{b&&I(`${we}px`)},[b]),Ee=ts.useMemo(()=>({oncomplete:O,onerror:W,onload:$,onready:G,onresize:ce}),[O,W,G,$,ce]),Ne=GV(f,k,Ee),De=ts.useCallback((we,he)=>{if(f==null&&j===0)throw new Error("Attempted to send message to sandbox before it is ready");const oe=K3.format.notification(we,he);Ne(oe)},[j,f,Ne]),Ke=ts.useCallback(()=>{window.location.reload()},[]),Ae=ts.useCallback(()=>{t?.()},[t]);return ts.useEffect(()=>{j&&De("onupdate",{autoResize:b,src:E,srcDoc:L})},[b,j,De,E,L]),o&&e!=null||P?(0,s.jsx)(kt,{children:(0,s.jsxs)("div",{className:ks("error-general",{learn:o}),children:[(0,s.jsx)("div",{className:ks("error-message"),children:"Something went wrong"}),(0,s.jsx)("div",{className:ks("error-message-subtitle"),children:"There was an error loading this code block. Please contact your admin if the issue continues."}),(0,s.jsx)(jt.ArcButton,{className:ks("error-button"),onClick:Ke,size:"lg",variant:"primary",children:"Refresh page"})]})}):e!=null&&Object.keys(e).length>0?(0,s.jsx)(kt,{children:e[404]?(0,s.jsxs)("div",{className:ks("error-404"),children:[(0,s.jsx)("div",{className:ks("error-message"),children:"We couldn\u2019t find your file"}),(0,s.jsx)("div",{className:ks("error-message-subtitle"),children:"Make sure your zip file contains an index.html file."}),(0,s.jsx)(jt.ArcButton,{className:ks("error-button"),onClick:Ae,size:"lg",variant:"primary",children:"Retry upload"})]}):(0,s.jsxs)("div",{className:ks("error-general"),children:[(0,s.jsx)("div",{className:ks("error-message"),children:"Something went wrong"}),(0,s.jsxs)("div",{className:ks("error-message-subtitle"),children:["Try refreshing the page or entering your code again. If the issue isn't fixed,"," ",(0,s.jsx)("a",{href:"https://community.articulate.com/group/code-block",rel:"noopener noreferrer",target:"_blank",children:"visit our community"}),"."]}),(0,s.jsx)(jt.ArcButton,{className:ks("error-button"),onClick:Ke,size:"lg",variant:"primary",children:"Refresh page"})]})}):g&&!C?(0,s.jsx)(kt,{children:(0,s.jsx)("div",{className:ks("restricted"),children:(0,s.jsxs)("div",{className:ks("restricted-card"),children:[(0,s.jsx)(T1,{alt:"",className:ks("restricted-icon"),src:UV}),(0,s.jsx)("div",{className:ks("restricted-title"),children:"Subscribe to unlock full access"}),(0,s.jsx)("div",{className:ks("restricted-message"),children:"To protect learners from phishing, scams, or malicious redirects, code blocks are disabled when sharing with Quick Share during your trial."})]})})}):(0,s.jsx)(kt,{children:(0,s.jsx)("iframe",{allow:"fullscreen",className:ks({"auto-resize":b,loaded:C||H,width:YV[S]}),"data-rise-frontend-sandbox":"",loading:"lazy",ref:f,sandbox:"allow-forms allow-popups allow-same-origin allow-scripts",scrolling:b?"no":void 0,src:w,style:{"--block-html-height":T},title:i?.a11yBlockCode},k)})}const Dr=ee("timeline-card"),JV=t=>{const{blockId:e,disableZoom:n,enableVideoPlaybackSpeed:o,isOverlayAudio:r,item:a,labels:i,lessonId:l,lessonNumber:u,mediaType:d,audioPosition:m}=t,{settings:p}=a,f=(0,st.QQ)(a.media)??{},v=d==="audio"&&f.audio,g=d==="embed"&&f.embed,C=d==="image"&&f.image,x=d==="video"&&f.video;if(!v&&!g&&!C&&!x&&!(d==="image-with-audio"&&r))return;const y=f.embed?ba(f.embed):void 0,E=!!f.image,b=!!f.audio,S=E?f.image.align:"center",T=Dr("media",{audio:b&&!r,"audio-and-embed":!!(f.audio&&f.embed),"image-with-audio":r,[`image-with-audio-${S}`]:r&&!!S,"audio-on-bottom":b&&!r&&m==="bottom",linkEmbed:y==="link",videoEmbed:y==="video",visual:!r&&E||!nn()(f.video)}),I=p||{};return(0,s.jsx)("div",{className:T,children:(0,s.jsx)($s,{blockId:e,enableVideoPlaybackSpeed:o,index:`${a.id}`,isOverlayAudio:r,item:a,labels:i,lessonId:l,lessonNumber:u,media:f,opts:{disableZoom:n,...I},renderMediaType:r?void 0:d})})},qV=t=>{const{headingLevel:e,innerRef:n,item:o,isActive:r,loadMedia:a,audioPosition:i,onFocus:l}=t,{id:u}=o,d=Dr({active:r}),m=!!o.date,p=!!o.title,f=e||2,v=`h${f}`,g=`h${f+1}`,C=(0,st.QQ)(o.media)??{},x=lo(C,i,!0,"timeline"),L=()=>{if(!C||!a)return null;const y={audio:{item:{...o,media:x.audioOnlyMedia||C},mediaType:"audio"},image:{item:{...o,media:x.imageOnlyMedia||C},mediaType:"image"},video:{item:{...o,media:x.videoOnlyMedia||C},mediaType:"video"},embed:{item:{...o,media:x.embedOnlyMedia||C},mediaType:"embed"},overlay:{mediaType:"image-with-audio",isOverlayAudio:!0}};return(0,s.jsx)(s.Fragment,{children:x.renderOrder.map((E,b)=>{if(E==="text")return(0,s.jsx)(Et,{className:Dr("description"),value:o.description},`text-${b}`);const S=y[E];return S?(0,h.createElement)(JV,{...t,...S,key:`${E}-${b}`}):null})})};return(0,s.jsx)("div",{className:d,"data-id":u,ref:n,children:(0,s.jsx)(Os,{className:Dr("body"),onFocus:l,children:(0,s.jsx)("div",{className:Dr("main-wrap"),children:(0,s.jsxs)("div",{className:Dr("main"),children:[m&&(0,s.jsx)("div",{className:Dr("date"),children:(0,s.jsx)(v,{children:(0,s.jsx)(ms,{value:o.date})})}),p&&(0,s.jsx)("div",{className:Dr("title"),children:(0,s.jsx)(g,{children:(0,s.jsx)(ms,{value:o.title})})}),L()]})})})})},dl=ee("timeline"),ez=t=>{const{audioPosition:e,disableZoom:n,enableVideoPlaybackSpeed:o,headingLevel:r,id:a,initiallyVisible:i,isBlock:l,isLearner:u,item:d,labels:m,lessonId:p,onFocus:f}=t,v=(0,s.jsx)(qV,{audioPosition:e,blockId:a,disableZoom:n,enableVideoPlaybackSpeed:o,headingLevel:r,isActive:!0,item:d,labels:m,lessonId:p,lessonNumber:a,loadMedia:!0,onFocus:f});return l?u?(0,s.jsx)(Mt,{animateBlockEntrance:!0,className:dl("animate").toString(),initiallyVisible:i,isLearner:!0,children:v}):v:null},tz=t=>{const{id:e,items:n,labels:o,onEnter:r=Function.prototype,settings:a={}}=t,i=(0,h.useRef)(null),l=(0,h.useCallback)((u,d)=>{r({id:e,payload:{activeIndex:u,itemId:d}})},[e,r]);return(0,h.useEffect)(()=>{function u(d){const{blockId:m,cardId:p}=Ya(d.detail.path,["block","card"]);if(m!==e)return;const f=i.current.querySelector(`[data-id="${p}"]`);f&&!Fh(f,"center")&&f.scrollIntoView({behavior:"instant",block:"center"})}return window.addEventListener(Kt,u),()=>{window.removeEventListener(Kt,u)}}),(0,s.jsx)("div",{"aria-label":o?.a11yBlockTimeline,className:"page__content-container",ref:i,role:"group",children:(0,s.jsx)("div",{className:dl("wrapper"),children:(0,s.jsx)("div",{className:dl(),children:(0,s.jsx)("ul",{className:dl("container"),role:"list",children:n.map((u,d)=>(0,s.jsx)("li",{className:dl("card-wrapper"),role:"listitem",children:ez({index:d,item:u,onFocus:l,...t,disableZoom:!a.zoomOnClick,headingLevel:a.headingLevel,audioPosition:a.audioPosition})},d))})})})})},sz=t=>{const{animateBlockEntrance:e,blockId:n,enableVideoPlaybackSpeed:o,initiallyVisible:r,isLearner:a=!0,items:i,labels:l,lessonId:u,settings:d}=t;return(0,s.jsx)(kt,{type:"timeline",children:(0,s.jsx)(Mt,{animateBlockEntrance:e,animateIn:"fadeIn",initiallyVisible:r,isLearner:!0,children:(0,s.jsx)(tz,{enableVideoPlaybackSpeed:o,id:n,initiallyVisible:r,isBlock:!0,isLearner:a,items:i,labels:l,lessonId:u,settings:d})})})},nz=t=>(0,s.jsx)("div",{className:"unsupported-block",...t,children:(0,s.jsxs)("span",{children:["We no longer support this block, so you can safely delete it. If you have any questions, please"," ",(0,s.jsx)("a",{href:"https://access.articulate.com/support/contact",children:"contact Articulate Support."})]})});var mn=c(30467),oz=c(28565),X3=c(32584),rz=c(35534),J3=c.n(rz),q3=c(85291);const az=matchMedia("(forced-colors: active)");function ul(){return az.matches}const iz=({activeIndex:t,values:e,opts:n})=>{const{background:o,variant:r}=js(),{chartColor:a,lineCurve:i}=sn(),l=bn(),u=(0,xe.kJ)(),d=n?.defaultFontColor,m=ko(),p=m===A.xj.IMAGE,v=(0,st.QQ)(o?.media)?.image?.overlayColor??A.df.DARK,g=ul();let C=a??u,x=l||"#fff";!a&&m===A.xj.ACCENT||a===x?C=d:p&&(C=v===A.df.DARK?"#fff":"#000",x=v===A.df.DARK?"#000":"#fff"),g&&(C="Highlight",x="Canvas");let L=C,y=Array(e.length).fill(C);if(t!=null&&!g){const E=p&&v===A.df.LIGHT?.2:.7,b=(0,q3.A)(C,x,E);L=b,y=dR(b,C,e.length,t)}return r==="bar"?{backgroundColor:y,data:e,hoverBackgroundColor:y}:{borderColor:L,cubicInterpolationMode:i==="linear"?"default":"monotone",data:e,lineTension:i==="linear"?0:void 0,pointBackgroundColor:y,pointBorderColor:y,pointBorderWidth:0,pointHitRadius:20,pointHoverBackgroundColor:C,pointHoverBorderColor:C,pointHoverBorderWidth:0,pointRadius:4}};function cz({activeIndex:t,children:e,opts:n,values:o}){const r=iz({activeIndex:t,opts:n,values:o});return e(r)}class lz extends h.PureComponent{handleMouseEnter=()=>{this.props.onEvent(this.props.index)};handleMouseLeave=()=>{this.props.onEvent(null)};render(){const{activeIndex:e,identifier:n,index:o,label:r,value:a}=this.props,i=e!=null&&e!==o,l=Z()("block-chart__cartesianLegendItem",{"block-chart__cartesianLegendItem--unfocused":i});return(0,s.jsxs)("div",{className:l,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,children:[(0,s.jsx)("dt",{className:"block-chart__cartesianLegendTerm",children:`${n}.`}),(0,s.jsxs)("dd",{className:"block-chart__cartesianLegendDefn","data-l10n-id":r.l10nId,children:[r.label,(0,s.jsx)("span",{className:"block-chart__cartesianLegendDefnPipe",role:"separator",children:"|"}),(0,s.jsx)("span",{className:"block-chart__cartesianLegendDefnVal",children:a})]})]})}}const dz=lz,uz=({activeIndex:t,labels:e,letters:n,onEvent:o,values:r})=>{const a=zd(n,zd(e,r));return a.length===0?null:(0,s.jsx)("dl",{className:"block-chart__cartesianLegend",children:a.map(([i,[l,u]],d)=>(0,s.jsx)(dz,{activeIndex:t,identifier:i,index:d,label:l,onEvent:o,value:u},i))})},hz=(0,h.memo)(uz);var mz=c(78285),pz=c.n(mz);function fz(t){const e=this.getLabelForValue(t),n=15,o=e.split(" "),r=[];let a="";return o.forEach(i=>{(a+i).length>n?(r.push(a),a=i):a+=(a.length>0?" ":"")+i}),r.push(a),r}const vz={animation:{},barPercentage:.5,defaultFontFamily:'"lato", sans-serif',elements:{arc:{},bar:{},line:{borderWidth:2,fill:!1}},layout:{padding:{bottom:0,left:0,right:0,top:50}},maxBarThickness:60,plugins:{datalabels:{display:!1},legend:{display:!1,labels:{}},tooltip:{animation:!0,boxPadding:"14px 10px",callbacks:{label:()=>null,title:t=>{const{label:e,formattedValue:n}=t[0];return`${e}: ${n}`}},caretPadding:10,cornerRadius:3,displayColors:!1,titleFont:{weight:"normal"},titleMarginBottom:0,titleSpacing:0,xAlign:"center",yAlign:"bottom"}},responsive:!1,scales:{x:{border:{display:!1},grid:{display:!1,offset:!0},offset:!0,ticks:{autoSkip:!1,callback:fz,padding:10}},y:{beginAtZero:!0,border:{display:!1},grid:{drawTicks:!1},ticks:{maxTicksLimit:8,padding:15}}}};function gz({values:t,contrastColor:e}){const n=js(),o=ko(),r=o===A.xj.IMAGE,a=(0,h.useMemo)(()=>lR(t),[t]);let i,l;const d=(0,st.QQ)(n?.background?.media)?.image?.overlayColor??A.df.DARK,m=r&&d===A.df.LIGHT;switch(o){case A.xj.LIGHT:case A.xj.GRAY:case A.xj.TINT:[i,l]=["#e1e1e1","#c9c9c9"];break;case A.xj.DARK:case A.xj.BLACK:case A.xj.IMAGE:[i,l]=["#ffffff80","#ffffffe9"];break;case A.xj.ACCENT:case A.xj.COLOR:{[i,l]=e==="#000"?["#00000080","#0000001a"]:["#ffffff80","#ffffffe9"];break}}return r&&m&&([i,l]=["#00000080","#0000001a"]),a||(l=i),[i,l]}const Cz=({onEvent:t,reduceMotion:e,shouldAnimate:n,values:o})=>{const r=bn(),{customBackgroundColorContrast:a}=sn(),i=(0,xe.DX)(),l=(0,xe.kJ)(),u=i?.theme?.accentContrast,d=ko(),m=d===A.xj.IMAGE,p=js(),f=ul(),v=(0,ht.cP)(r)?A.Em.LIGHT:A.Em.DARK,g=!a&&p?.family==="chart",C=a??A.Em.DARK,x=g?v:C,y=(0,st.QQ)(p?.background?.media)?.image?.overlayColor??A.df.DARK,E=m&&y===A.df.LIGHT,b=d===A.xj.ACCENT||d===A.xj.COLOR,S=d===A.xj.ACCENT?l:r,T=d===A.xj.ACCENT?u:x,I=ws({backgroundColor:S,contrast:T}),[j,M]=gz({values:o,contrastColor:I}),H=(0,h.useCallback)(P=>f&&m?E?"#000000":"#FFFFFF":P.tick.value===0?M:j,[j,f,M,m,E]);return(0,h.useMemo)(()=>{let P="#000";if(f)m?P=E?"#000000":"#FFFFFF":P="FieldText";else{switch(d){case A.xj.DARK:case A.xj.BLACK:case A.xj.IMAGE:P="#fff";break}b&&(P=I),m&&E&&(P="#000")}const F=n&&!e?1e3:0;let k,w;f?m?(k=P,w=E?"#FFFFFF":"#000000"):(k="Highlight",w="HighlightText"):(k=P,w=P==="#000"||P==="#000000"||P===A.Em.DARK?"#FFFFFF":"#000000");const O=pz()(vz);return O.animation.duration=F,O.defaultFontColor=P,O.onClick=t,O.onHover=t,O.plugins.tooltip.animation=!e,O.plugins.tooltip.backgroundColor=k,O.plugins.tooltip.titleColor=w,f&&!m?(O.scales.x.grid.color="FieldText",O.scales.y.grid.color="FieldText"):(O.scales.x.grid.color=j,O.scales.y.grid.color=H),O.scales.x.ticks.color=P,O.scales.y.ticks.color=P,f&&(m?O.plugins.legend.labels.color=E?"#000000":"#FFFFFF":O.plugins.legend.labels.color="FieldText"),O},[d,I,j,b,f,m,E,t,e,H,n])};function xz(t){const{children:e,onEvent:n,reduceMotion:o,shouldAnimate:r,values:a}=t,i=Cz({onEvent:n,reduceMotion:o,shouldAnimate:r,values:a});return e(i)}var bz=c(870),Nm=c.n(bz);const yz=/<mark>|<\/mark>/gm,Lz=t=>e=>{const n=t(e.type).replace(yz,"")??"";return{label:Nm()(n,{length:30}),l10nId:(0,St.pP)(e?.type)}},Ez=t=>parseFloat(t.value??"0"),e6=(t,e)=>({labels:t.map(Lz(e)),values:t.map(Ez)}),t6=(t,e,n)=>{const o=Nm()(e,{length:t});return n?UA(o,n):o};function Sz(){const[t,e]=h.useState(null),n=h.useRef(null),{announcePolite:o}=gt(),{a11yBlockChartPreposition:r}=(0,xe.vU)()??{},a=h.useCallback(f=>{e(f)},[]),i=h.useCallback(()=>{n.current?.resize()},[]),l=h.useCallback(()=>{n.current?.update()},[]),u=h.useCallback(()=>{i(),l()},[i,l]),d=h.useCallback(()=>{const f=n.current;if(f==null)return;const v=f.getDatasetMeta(0),g=v.data;if(!g?.length)return;const C=0,L=[{datasetIndex:0,element:v.data[C],index:C}];f.setActiveElements(L),f.tooltip?.setActiveElements(L,{x:0,y:0}),f.update(),a(C);const y=f.data.labels[C],E=f.data.datasets[0].data[C];setTimeout(()=>{o(`${C+1} ${r??""} ${g.length} - ${y}: ${E}`)},0)},[r,o,n,a]),m=h.useCallback(()=>{const f=n.current;if(f==null)return;const v=[];f.setActiveElements(v),f.tooltip?.setActiveElements(v,{x:0,y:0}),f.update(),a(null),o(null)},[o,n,a]),p=h.useCallback(f=>{const v=n.current;if(v==null)return;const g=v.getDatasetMeta(0),C=g.data;if(!C?.length)return;let x=!1,L=t;switch(f.key){case"ArrowLeft":x=!0,L=(t-1+C.length)%C.length;break;case"ArrowRight":x=!0,L=(t+1+C.length)%C.length;break;case"Home":x=!0,L=0;break;case"End":x=!0,L=C.length-1;break}if(x&&(f.stopPropagation(),f.preventDefault()),L!==t){const E=[{datasetIndex:0,element:g.data[L],index:L}];v.setActiveElements(E),v.tooltip?.setActiveElements(E,{x:0,y:0}),v.update(),a(L);const b=v.data.labels?.[L],S=v.data.datasets[0].data[L];o(`${L+1} ${r??""} ${C.length} - ${b}: ${S}`)}},[r,t,o,n,a]);return h.useEffect(()=>{n.current&&(n.current.resize(),n.current.update())},[]),h.useEffect(()=>{n.current&&n.current.update()},[t]),{activeIndex:t,chartRef:n,onBlur:m,onFocus:d,onKeyDown:p,onEvent:a,onResize:u}}function s6(t){const e=n=>{const{activeIndex:o,chartRef:r,onBlur:a,onEvent:i,onFocus:l,onKeyDown:u,onResize:d}=Sz();return(0,s.jsx)(t,{...n,activeIndex:o,chartRef:r,onBlur:a,onEvent:i,onFocus:l,onKeyDown:u,onResize:d})};return e.displayName=`withChartEvents(${t.displayName||t.name})`,e}const Tz="ABCDEFGHIJKLMNOPQRSTUVWXYZ".split("");class Iz extends h.PureComponent{wrapRef;id;resizeObserver;constructor(e){super(e),this.wrapRef=(0,h.createRef)(),this.state={labelYTop:"50%"}}componentDidMount(){this.resizeObserver=new ResizeObserver(this.handleResize),this.resizeObserver.observe(this.wrapRef.current)}componentWillUnmount(){this.resizeObserver.unobserve(this.wrapRef.current)}handleEvent=(e,n)=>{const o=n.length?n[0].index:null;this.props.onEvent(o)};handleResize=()=>{requestAnimationFrame(()=>{this.props.onResize(),this.setLabelYTop()})};setLabelYTop=()=>{const e=this.props.chartRef.current;if(e){const{bottom:n,top:o}=e?.scales?.y??{};J3()(n)&&J3()(o)&&this.setState({labelYTop:`${(n+o)/2}px`})}};render(){const{props:{activeIndex:e,chartRef:n,getL10nValue:o,htmlIdBase:r,htmlIdTitle:a,onBlur:i,onFocus:l,onKeyDown:u,isDesktop:d,isVisible:m,items:p,itemsLabel:f,labels:v,onEvent:g,search:C,shouldAnimate:x,valuesLabel:L,variant:y},state:{labelYTop:E}}=this,b=t6(80,o(f),C),S=t6(30,o(L),C),T=e6(p,o),I=d?[]:Tz.slice(0,p.length),j=d?T.labels:I.map(k=>({label:k})),M=m?T.values:xv(0,p.length),H=`${r}-type`,D=`${r}-instructions`,P=j.map(k=>k.label),F=j.map(k=>k.l10nId).join(",");return(0,s.jsxs)("div",{className:"block-chart__cartesian",children:[(0,s.jsx)("p",{className:"visually-hidden-always",id:D,children:v?.a11yBlockChartInstructions}),(0,s.jsxs)("div",{className:"block-chart__cartesianChart",ref:this.wrapRef,children:[S&&_c(S)&&(0,s.jsxs)("div",{className:"block-chart__cartesianLabelY","data-l10n-id":(0,St.pP)(L),style:{insetInlineEnd:E},children:[S,(0,s.jsx)("span",{className:"visually-hidden-always",children:v?.a11yBlockChartAxisY})]}),b&&_c(b)&&(0,s.jsxs)("div",{className:"block-chart__cartesianLabelX","data-l10n-id":(0,St.pP)(f),children:[b,(0,s.jsx)("span",{className:"visually-hidden-always",children:v?.a11yBlockChartAxisX})]}),(0,s.jsx)(xz,{onEvent:this.handleEvent,reduceMotion:Tn(),shouldAnimate:x,values:M,children:k=>(0,s.jsx)(cz,{activeIndex:e,opts:k,values:M,children:w=>(0,s.jsxs)("div",{"aria-describedby":D,"aria-labelledby":`${a} ${H}`,className:"block-chart__cartesian-canvas-wrap",onBlur:i,onFocus:l,onKeyDown:u,role:"application",tabIndex:0,children:[(0,s.jsx)("div",{className:"visually-hidden-always",id:H,children:y==="bar"?v?.a11yBlockChartBar:v?.a11yBlockChartLine}),(0,s.jsx)(X3.Chart,{"aria-hidden":"true",data:{labels:P,datasets:[w]},"data-l10n-id":F,options:k,ref:n,role:"presentation",type:y,updateMode:"default"})]})})})]}),!d&&(0,s.jsx)(hz,{activeIndex:e,labels:T.labels,letters:I,onEvent:g,values:M})]})}}const Nz=t=>({search:t?.search?.term??""});function jz(t){const e=Jt(t),n=O7(960,"isDesktop","Desktop")(e),o=s6(n);return(0,Rs.Ls)(Nz)(o)}const kz=jz(Iz),jm=({valueType:t,value:e,values:n})=>t==="numeric"?String(e):uR(e/yv(n)),Az=t=>{if(ul())return"FieldText";const e=t.dataset.backgroundColor[t.dataIndex]??"#000";return(0,ht.xD)(e)===A.Em.DARK?it.S6.DARK:it.S6.LIGHT},Rz=(t,e,n)=>jm({valueType:t,value:e,values:n.dataset.data}),Pz=(t,e)=>{const{label:n,dataset:o,parsed:r}=e[0],a=jm({valueType:t,value:r,values:o.data});return`${n}: ${a}`},wz=(t,e)=>{const n=e.dataIndex,o=e.dataset.data??[1],r=o[n],a=t==null&&r/yv(o)>=.06;return t===n||a},Mz=({activeIndex:t,onEvent:e,reduceMotion:n,settings:{valueType:o},shouldAnimate:r})=>{const a=ul();return{animation:{animateRotate:r&&!n,duration:r&&!n?1e3:0},defaultFontFamily:'"lato", sans-serif',onClick:e,onHover:e,maintainAspectRatio:!1,plugins:{datalabels:{color:Az,display:wz.bind(null,t),font:{size:12,weight:"bold"},formatter:Rz.bind(null,o)},legend:{display:!1,labels:a?{color:"FieldText"}:void 0},tooltip:{animation:!n,boxPadding:"14px 10px",callbacks:{label:()=>null,title:Pz.bind(null,o)},caretPadding:10,cornerRadius:3,displayColors:!1,titleFont:{weight:"normal"},titleMarginBottom:0,titleSpacing:0,xAlign:"center",yAlign:"bottom",backgroundColor:a?"Highlight":it.S6.LIGHT,titleColor:a?"HighlightText":it.S6.DARK}},responsive:!1,rotation:130}},Oz=({activeIndex:t,colors:e,hasBorder:n,values:o})=>{const r=bn(),a=ul(),i=t==null?e:e.map((l,u)=>u===t?l:(0,q3.A)(l,r||"#fff",.5));return a?{backgroundColor:i,hoverBackgroundColor:i,borderWidth:.5,borderColor:"rgba(255, 255, 255, 0.3)",data:o}:{backgroundColor:i,hoverBackgroundColor:i,borderWidth:0,data:o,...n&&{borderWidth:1,borderColor:"#000"}}};function Dz({activeIndex:t,children:e,colors:n,hasBorder:o,values:r}){const a=Oz({activeIndex:t,colors:n,hasBorder:o,values:r});return e(a)}class Bz extends h.PureComponent{handleMouseEnter=()=>{this.props.onEvent(this.props.index)};handleMouseLeave=()=>{this.props.onEvent(null)};render(){const{activeIndex:e,color:n,index:o,label:r,value:a}=this.props,i=e!=null&&e!==o,l=Z()("block-chart__circleLegendItem",{"block-chart__circleLegendItem--unfocused":i});return(0,s.jsxs)("div",{className:l,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,children:[(0,s.jsxs)("dt",{className:"block-chart__circleLegendTerm",children:[(0,s.jsx)("svg",{"aria-hidden":"true",className:"block-chart__circleLegendSymbol","data-ignore":"contrast",fill:n,focusable:"false",role:"presentation",viewBox:"0 0 10 10",children:(0,s.jsx)("rect",{height:"10",rx:"1.5",width:"10"})}),(0,s.jsx)("span",{className:"block-chart__circleLegendText","data-l10n-id":r.l10nId,children:r.label})]}),(0,s.jsx)("dd",{className:"visually-hidden-always",children:a})]})}}const Hz=Bz,Fz=({activeIndex:t,colors:e,hasBorder:n,labels:o,onEvent:r,values:a,valueType:i="numeric"})=>{const l=zd(e,zd(o,a));if(l.length===0)return null;const u=Z()("block-chart__circleLegend",{"block-chart__circleLegend--border":n});return(0,s.jsx)("dl",{className:u,children:l.map(([d,[m,p]],f)=>(0,s.jsx)(Hz,{activeIndex:t,color:d,index:f,label:m,onEvent:r,value:jm({valueType:i,value:p,values:a})},m.label))})},Vz=(0,h.memo)(Fz),zz=(t,e)=>{const n=t.filter(a=>Number(a.value)>=0),o=e6(n,e),r=n.map(a=>a.color);return{...o,colors:r}};class Uz extends h.PureComponent{wrapRef;id;resizeObserver;constructor(e){super(e),this.wrapRef=(0,h.createRef)()}componentDidMount(){this.resizeObserver=new ResizeObserver(this.props.onResize),this.resizeObserver.observe(this.wrapRef.current)}componentWillUnmount(){this.resizeObserver.unobserve(this.wrapRef.current)}buildOptions=()=>{const{activeIndex:e,settings:n,shouldAnimate:o}=this.props;return Mz({activeIndex:e,onEvent:this.handleEvent,reduceMotion:Tn(),settings:n,shouldAnimate:o})};handleEvent=(e,n)=>{const o=n.length?n[0].index:null;this.props.onEvent(o)};render(){const{activeIndex:e,backgroundColor:n,chartRef:o,getL10nValue:r,htmlIdBase:a,htmlIdTitle:i,onBlur:l,onFocus:u,onKeyDown:d,isVisible:m,items:p,labels:f,onEvent:v,settings:g}=this.props,{colors:C,labels:x,values:L}=zz(p,r),y=m?L:xv(0,p.length),E=this.buildOptions(),b=`${a}-type`,S=`${a}-instructions`,T=x.map(j=>j.label),I=C.includes(n);return(0,s.jsxs)("div",{className:"block-chart__circle",children:[(0,s.jsx)("p",{className:"visually-hidden-always",id:S,children:f?.a11yBlockChartInstructions}),(0,s.jsx)("div",{className:"block-chart__circleChart",ref:this.wrapRef,children:(0,s.jsx)(Dz,{activeIndex:e,colors:C,hasBorder:I,values:y,children:j=>(0,s.jsxs)("div",{"aria-describedby":S,"aria-labelledby":`${i} ${b}`,className:"block-chart__circle-canvas-wrap",onBlur:l,onFocus:u,onKeyDown:d,role:"application",tabIndex:0,children:[(0,s.jsx)("div",{className:"visually-hidden-always",id:b,children:f?.a11yBlockChartPie}),(0,s.jsx)(X3.Chart,{"aria-hidden":"true",data:{labels:T,datasets:[j]},options:E,ref:o,role:"presentation",type:"pie",updateMode:"default"})]})})}),(0,s.jsx)(Vz,{activeIndex:e,colors:C,hasBorder:I,labels:x,onEvent:v,values:y,valueType:g?.valueType})]})}}function $z(t){const e=Xj()(t),n=s6(e);return Jt(n)}const Wz=$z(Uz);mn.Chart.register(mn.ArcElement,mn.BarController,mn.BarElement,mn.CategoryScale,oz.default,mn.Legend,mn.Legend,mn.LineController,mn.LineElement,mn.LinearScale,mn.PieController,mn.PointElement,mn.Title,mn.Tooltip);const _z=t=>(0,ht.cP)(t.backgroundColor);class Gz extends h.PureComponent{id;constructor(e){super(e),this.state={isVisible:!1},this.id=(0,lm.uniqueId)("chart-")}componentDidMount(){this.setState({isVisible:!this.props.animateBlockEntrance||Tn()})}handleAnimationEnd=()=>{this.setState({isVisible:!0})};renderTitle=()=>{const{title:e}=this.props;return(0,s.jsx)(Et,{value:e})};render(){const{props:{animateBlockEntrance:e,children:n,editable:o,initiallyVisible:r,isLearner:a,items:i,itemsLabel:l,labels:u,settings:d,title:m,valuesLabel:p,variant:f,renderTitle:v=this.renderTitle},state:{isVisible:g}}=this,C=_z(d),x=d?.headingLevel,L=x?`h${x}`:"h2",y=this.id,E=`${y}-title`;return(0,s.jsx)(kt,{type:"chart",children:(0,s.jsx)(Mt,{afterAnimatedIn:this.handleAnimationEnd,animateBlockEntrance:e,initiallyVisible:r,isLearner:a,children:(0,s.jsx)("div",{className:"block-chart__container",children:(0,s.jsx)("div",{className:"block-chart__row",children:(0,s.jsx)("div",{className:"block-chart__rowInner",children:(0,s.jsxs)("figure",{children:[(!o&&m||o)&&(0,s.jsx)("figcaption",{children:(0,s.jsx)(L,{className:"block-chart__title",id:E,children:v()})}),(0,s.jsx)("div",{className:"block-chart__chart",children:h.cloneElement(h.Children.only(n),{hasDarkBgColor:C,htmlIdBase:y,htmlIdTitle:E,isVisible:g,items:i,itemsLabel:l,labels:u,settings:d,shouldAnimate:e,valuesLabel:p,variant:f})})]})})})})})})}}const Kz=Gz;function n6(t){const e=n=>(0,s.jsx)(Kz,{...n,children:(0,s.jsx)(t,{})});return e.displayName=`ChartWrap(${BA(t)})`,e}const Qz=n6(kz),Zz=n6(Wz),Yz=({lessonId:t,scrollTop:e})=>window.sessionStorage.setItem(t,JSON.stringify(e)),bse=t=>JSON.parse(window.sessionStorage.getItem(t)),yse=t=>window.sessionStorage.removeItem(t),o6=ee("block-ai-scenario"),Xz=(0,h.lazy)(()=>c.e("webpack_container_remote_ai_scenario_player-react").then(c.t.bind(c,79812,23)));function Jz({lessonId:t,blockId:e,scenarioId:n}){const{currentLocale:o}=(0,bt.nY)(),r=(0,st.D_)(),a=(0,h.useMemo)(()=>({active:o,source:r}),[o,r]),i=(0,h.useCallback)(()=>{t!==void 0&&Yz({lessonId:String(t),scrollTop:document.scrollingElement?.scrollTop})},[t]);return(0,s.jsx)(kt,{className:o6("wrapper"),children:e?(0,s.jsx)(h.Suspense,{children:(0,s.jsx)(Xz,{blockId:e,locale:a,onExit:i,scenarioId:n})}):(0,s.jsx)("div",{className:o6("loading"),children:(0,s.jsx)(k8,{})})})}const qz=(0,h.memo)(Jz);var eU=c(26372);const tU=As()(Ft()("variant","storyline")),sU=Ts()(tU,vs(),Da()(1));class nU extends eU.Component{render(){const{dividerNumber:e,family:n,handleStorylineFullscreen:o,partnerContent:r,variant:a,enableVideoPlaybackSpeed:i,initiallyVisible:l}=this.props,d={...Cd()(["type","handleStorylineFullscreen","dividerNumber"],this.props),enableVideoPlaybackSpeed:i,partnerContent:r,initiallyVisible:l};return Xe("text","paragraph",d)||Xe("text","table",d)?(0,s.jsx)(qM,{...d}):Xe("text","heading paragraph",d)?(0,s.jsx)(rO,{...d}):Xe("text","subheading paragraph",d)?(0,s.jsx)(aO,{...d}):Xe("text","heading",d)?(0,s.jsx)(nO,{...d}):Xe("text","subheading",d)?(0,s.jsx)(oO,{...d}):Xe("text","two column",d)?(0,s.jsx)(eO,{...d}):Xe("text","three column",d)?(0,s.jsx)(tO,{...d}):Xe("text","four column",d)?(0,s.jsx)(sO,{...d}):Xe("text","code",d)?(0,s.jsx)(Sg,{...d}):Xe("impact","a",d)?(0,s.jsx)(xO,{...d}):Xe("impact","b",d)?(0,s.jsx)(bO,{...d}):Xe("impact","c",d)?(0,s.jsx)(yO,{...d}):Xe("impact","d",d)?(0,s.jsx)(LO,{...d}):Xe("impact","note",d)?(0,s.jsx)(EO,{...d}):Xe("quote","a",d)?(0,s.jsx)(RO,{...d}):Xe("quote","b",d)?(0,s.jsx)(PO,{...d}):Xe("quote","c",d)?(0,s.jsx)(wO,{...d}):Xe("quote","d",d)?(0,s.jsx)(MO,{...d}):Xe("quote","background",d)?(0,s.jsx)(OO,{...d}):Xe("quote","carousel",d)?(0,s.jsx)(BO,{...d}):Xe("list","numbered",d)?(0,s.jsx)(zO,{...d}):Xe("list","checkboxes",d)?(0,s.jsx)(UO,{...d}):Xe("list","bulleted",d)?(0,s.jsx)($O,{...d}):Xe("image","hero",d)?(0,s.jsx)(_O,{...d}):Xe("image","full",d)?(0,s.jsx)(jg,{...d}):Xe("image","text aside",d)?(0,s.jsx)(QO,{...d}):Xe("image","text overlay",d)?(0,s.jsx)(YO,{...d}):Xe("gallery","centered",d)||Xe("gallery","full",d)?(0,s.jsx)(nD,{...d}):Xe("gallery","two column",d)?(0,s.jsx)(Jh,{...d}):Xe("gallery","three column",d)?(0,s.jsx)(Jh,{width:3,...d}):Xe("gallery","four column",d)?(0,s.jsx)(Jh,{width:4,...d}):Xe("divider","divider",d)?(0,s.jsx)(rD,{...d}):Xe("divider","numbered divider",d)?(0,s.jsx)(aD,{number:e,...d}):Xe("divider","spacing divider",d)?(0,s.jsx)(iD,{...d}):Xe("360","storyline",d)?(0,s.jsx)(FD,{...d,handleStorylineFullscreen:o,hasManySlBlocks:this.hasManySlBlocks.bind(this),isLesson:!0}):Xe("interactive","accordion",d)?(0,s.jsx)(pD,{...d}):Xe("interactive","tabs",d)?(0,s.jsx)(TD,{...d}):Xe("interactive-fullscreen","labeledgraphic",d)?(0,s.jsx)(PF,{...d}):Xe("interactive-fullscreen","process",d)?(0,s.jsx)(_F,{...d}):Xe("interactive-fullscreen","scenario",d)?(0,s.jsx)(fV,{...d}):Xe("interactive-fullscreen","sorting",d)?(0,s.jsx)(kV,{...d}):Xe("interactive-fullscreen","timeline",d)?(0,s.jsx)(sz,{...d}):Xe("buttons","button",d)?(0,s.jsx)(UD,{...d}):Xe("buttons","button stack",d)?(0,s.jsx)($D,{...d}):Xe("flashcard","flashcard",d)?(0,s.jsx)(Ug,{...d}):Xe("flashcard","stack",d)?(0,s.jsx)(Ug,{stack:!0,...d}):Xe("knowledge","knowledge",d)?(0,s.jsx)(ki,{...d}):Xe("continue","continue",d)?(0,s.jsx)(hB,{...d}):Xe("multimedia","step",d)?(0,s.jsx)(dB,{...d}):Xe("multimedia","audio",d)?(0,s.jsx)(tB,{...d}):Xe("multimedia","video",d)?(0,s.jsx)(om,{...d}):Xe("multimedia","ai_avatar",d)?(0,s.jsx)(om,{...d}):Xe("multimedia","custom video",d)?(0,s.jsx)(om,{...d,type:"customVideo"}):Xe("multimedia","embed",d)?(0,s.jsx)(nB,{...d}):Xe("multimedia","attachment",d)?(0,s.jsx)(iB,{...d}):Xe("multimedia","code",d)?(0,s.jsx)(Sg,{...d}):Xe("knowledgeCheck","multiple choice",d)?(0,s.jsx)(ki,{...d}):Xe("knowledgeCheck","multiple response",d)?(0,s.jsx)(ki,{...d}):Xe("knowledgeCheck","fillin",d)?(0,s.jsx)(ki,{...d}):Xe("knowledgeCheck","matching",d)?(0,s.jsx)(ki,{...d}):Xe("knowledgeCheck","draw from question bank",d)?(0,s.jsx)(ki,{...d}):Xe("chart","bar",d)||Xe("chart","line",d)?(0,s.jsx)(Qz,{...d}):Xe("chart","pie",d)?(0,s.jsx)(Zz,{...d}):Xe("mondrian","mondrian",d)?(0,s.jsx)(FV,{...d}):Xe("textToVideo","textToVideo",d)?(0,s.jsx)(nz,{}):Xe("survey","survey",d)?(0,s.jsx)(DF,{...d}):Xe("html","inline",d)||Xe("html","cdn",d)||Xe("html","vibe",d)?(0,s.jsx)(XV,{...d,isLearn:!0}):Xe("ai-scenario","ai-scenario",d)?(0,s.jsx)(qz,{...d}):`Unknown type: ${n} ${a}`}hasManySlBlocks(){const{items:e}=this.props;return e&&sU(e)}}function r6(t){return(0,s.jsx)(th,{block:t,children:(0,s.jsx)(nU,{...t})})}function Xe(t,e,n){return n.family===t&&n.variant===e}const oU=1e3,rU=150,aU="onscrollend"in window;function a6(t,e){const n=t.getBoundingClientRect(),o=e?.getBoundingClientRect(),r=o?.top??0,a=o?.bottom??window.innerHeight,i=(a-r)*.02,l=n.bottom>r-i&&n.top<a+i,u=n.bottom<r;return l||u}const km={entries:new Map,scrollHandler:null,scrollEndHandler:null,scrollTarget:null,debounceTimer:null,register(t,e,n){const o=this.entries.size===0,r=e??window;if(this.entries.set(t,{el:t,scrollableParent:e,callback:n}),o){this.scrollTarget=r;const a=()=>{this.debounceTimer!=null&&clearTimeout(this.debounceTimer),this.debounceTimer=setTimeout(()=>this.checkAll(),rU)};aU?(this.scrollEndHandler=()=>this.checkAll(),this.scrollTarget.addEventListener("scrollend",this.scrollEndHandler),this.scrollHandler=a,this.scrollTarget.addEventListener("scroll",this.scrollHandler)):(this.scrollHandler=a,this.scrollTarget.addEventListener("scroll",this.scrollHandler))}},unregister(t){this.entries.delete(t),this.entries.size===0&&(this.scrollEndHandler&&this.scrollTarget&&(this.scrollTarget.removeEventListener("scrollend",this.scrollEndHandler),this.scrollEndHandler=null),this.scrollHandler&&this.scrollTarget&&(this.scrollTarget.removeEventListener("scroll",this.scrollHandler),this.scrollHandler=null),this.scrollTarget=null,this.debounceTimer!=null&&(clearTimeout(this.debounceTimer),this.debounceTimer=null))},checkAll(){requestAnimationFrame(()=>{const t=[];for(const e of this.entries.values())a6(e.el,e.scrollableParent)&&t.push(e);t.forEach(e=>e.callback())})}},i6=({children:t,onViewed:e})=>{const n=(0,h.useRef)(null),o=(0,h.useRef)(!1),r=(0,h.useRef)(e);return(0,h.useEffect)(()=>{r.current=e},[e]),(0,h.useEffect)(()=>{const a=n.current;if(!a||o.current)return;const i=qv(),l=()=>{o.current||(o.current=!0,u.disconnect(),clearTimeout(d),km.unregister(a),r.current())},u=new IntersectionObserver(([m])=>{m!=null&&(m.isIntersecting||m.intersectionRatio>0)&&l()},{root:i,rootMargin:it.CY,threshold:0});u.observe(a);const d=setTimeout(()=>{!o.current&&a6(a,i)&&l()},oU);return km.register(a,i,l),()=>{u.disconnect(),clearTimeout(d),km.unregister(a)}},[]),(0,s.jsx)("div",{ref:n,children:t})};var Am=c(26372);class iU extends Am.PureComponent{render(){return(0,s.jsx)(i6,{onViewed:this.handleViewed,children:Am.cloneElement(Am.Children.only(this.props.children),{onStep:this.handleStep})})}handleStep=e=>{e!=null&&"id"in e&&!e.isDone&&this.props.onStep(e.id)};handleViewed=()=>{const{block:e}=this.props;if(!e.items?.length){this.props.onViewed();return}if(!e.requiresInteraction){this.props.onViewed();return}(cU.test(e.variant)||lU.test(e.family))&&e.items.length>0&&this.handleStep(e.items[0])}}const cU=/tabs|carousel/,lU=/gallery/,dU=["timeline"],uU=({family:t,variant:e})=>(/interactive|flashcard|knowledge|continue|360/.test(t)||/carousel|centered|checkboxes|audio|video|storyline/.test(e))&&!dU.includes(e),hU=({family:t,settings:e})=>t==="html"&&e?.hasCustomCompletion,mU=({family:t,items:e})=>!!(t==="mondrian"&&e?.length),pU="draw from question bank",c6=t=>{const{animateBlockEntrance:e,block:n,className:o,color:r,courseId:a,courseTitle:i,defaultBackgroundColor:l,enableVideoPlaybackSpeed:u,handleNavigate:d,handleStorylineFullscreen:m,hideBlock:p,index:f,isLastBlock:v,isOnlyBlockInStep:g,labels:C,lessonId:x,lessonProgress:L,loadMedia:y,match:E,onContinue:b,partnerContent:S,prefersKeyboardNavigation:T,previewType:I,publishedAt:j,tenantId:M}=t,{blockId:H,family:D,items:P=[],variant:F,settings:k}=n,w=`block-${H}`,O=(0,Q.wA)(),W=G5({blockId:String(H),lessonId:String(x)}),G=(0,h.useCallback)(Ae=>{const we=F===pU?P[0]:Fs()(Ft()("id",Ae),P);O((0,tr.re)({blockId:H,lessonId:x,items:[we]})),D==="continue"&&b(H,Ae)},[H,O,D,P,x,b,F]),$=(0,h.useCallback)(()=>{O((0,tr.re)({blockId:H,lessonId:x,items:P}))},[H,O,P,x]),ce=(0,h.useCallback)(Ae=>{const we=P?.[0],he=we&&"id"in we?we.id:void 0;he&&O((0,tr.RA)({blockId:H,itemId:he,lessonId:x,audioVideoPlayhead:Ae}))},[H,O,x,P]),Ee=Sr()(n,{animateBlockEntrance:e,className:o?.toString(),color:r,courseId:a,courseTitle:i,defaultBackgroundColor:l,dividerNumber:W,enableVideoPlaybackSpeed:u,family:D,handleNavigate:d,handleStorylineFullscreen:m,initiallyVisible:f===0,isHidden:p,isLastBlock:v,isLearner:!0,isOnlyBlockInStep:g,labels:C,lessonId:x,loadMedia:y,match:E,originalVariant:void 0,partnerContent:S,prefersKeyboardNavigation:T,previewType:I,progress:L,publishedAt:j,recordMediaPlayheadPosition:ce,tenantId:M}),Ne=uU({family:D,variant:F})||hU({family:D,settings:k})||mU({family:D,items:P}),De=P7(x,H),Ke=Z()("noOutline",o,{"blocks-lesson__block-wrapper--hidden":p});return(0,s.jsx)("div",{className:Ke,"data-block-id":H,"data-change-path":De,children:Ne?(0,s.jsx)(iU,{block:n,onStep:G,onViewed:$,children:(0,s.jsx)(r6,{...Ee})}):(0,s.jsx)(i6,{onViewed:$,children:(0,s.jsx)(r6,{...Ee})})},w)},fU=({slides:t,currentSlide:e},n)=>(e.push(n),n.settings?.attachedToNextBlock||(t.push(e),e=[]),{slides:t,currentSlide:e}),vU=t=>{const{slides:e}=Kd()(fU,{slides:[],currentSlide:[]},t);return e};function Rm(t,e,n){if(t.length){const r=t.slice(-1)[0];if(!hl(r.id,n))return t}const o=cR(gU(n),e.slice(t.length)).map(CU);return o.length?Rm(t.concat(o),e,n):t}const hl=(t,e)=>Rt()(!1,["items",t,"isComplete"],e),gU=t=>({family:e,items:n})=>{const o=Rt()({},0,n);return e==="continue"&&!hl(o.id,t)};function CU(t,e,n){const o=n.slice(-1)[0]||{},{family:r}=o,a=r==="continue"?Rt()(!1,["items",0,"type"],o):!1;return t.family==="knowledgeCheck"&&t.settings?.requireCorrectAnswer?Sr()(t,{requiresInteraction:!0}):t.variant!=="continue"&&(!a||a==="completeBlock"&&e!==n.length-1&&e!==n.length-2)?t:Sr()(t,{requiresInteraction:!0})}function l6({id:t,...e},n,o,r){if(e.family==="continue"){const a=Rt()("",["items",0,"type"],e);return Sr()({blockId:t,...e},{skipContinue:r,canContinue:xU({continueType:a,blocks:n,progress:o}),lessonProgress:o,isComplete:hl(t,o)})}return{blockId:t,...e}}const xU=({continueType:t,blocks:e,progress:n})=>{switch(t){case"completeAll":return Mo()(vs()(e),EU(n));case"completeBlock":return e.length===0?!0:hl(SU(e),n);default:return!0}},bU=ot()(nr(),Ct()("items")),yU=t=>ot()(LU,bU)(t),LU=As()(Ft()("isComplete",!0)),EU=ot()(vs(),yU),SU=ot()(Ct()("id"),hr()),TU=({family:t,variant:e,isComplete:n,requiresInteraction:o})=>t==="continue"&&e==="continue"&&o&&!n,IU=(t,e)=>!!t.find(o=>{if(o?.family==="knowledgeCheck"&&o?.settings?.requireCorrectAnswer)return!e?.items?.[o?.id]?.isComplete}),NU=t=>t.length===0?!1:Th()(TU,t),jU=(t,e)=>t.length===0?!1:IU(t,e),kU=({blocks:t,lessonProgress:e})=>t.findIndex(n=>{const o=e?.items?.[n?.id],r=o&&o?.isComplete==null;return n?.family==="knowledgeCheck"&&n?.settings?.requireCorrectAnswer&&r}),d6=({blocks:t,lessonProgress:e,currentBlockIndex:n})=>{const o=kU({blocks:t,lessonProgress:e});return o>-1&&n>o},AU=(t,e)=>{const n=["embed","video","full"];return["interactive","interactive-fullscreen","image","flashcard","gallery","chart","knowledgeCheck"].includes(t)||n.includes(e)};function u6(){const{pathname:t}=new URL(window.location.href);return t.split("/")[1]==="review"}function h6(){const t=window.location.hash.slice(1),e=new URLSearchParams(t.split("?")[1]??"");return u6()&&!!e.get("locale")}function RU(t,e,n){if(!t||!e||!u6())return!1;if((0,St.uQ)(n,{l10n:e}))return!0;const{locales:o,defaultLocale:r}=e,a=o.find(i=>i.locale===r)?.id;return a&&a!==t}class PU extends h.Component{ref=h.createRef();constructor(...e){super(...e),this.state={randomQuestions:{},transitioning:!1,isBlockActionsSidebarPreview:!1},this.handleContinue=this.handleContinue.bind(this),this.handleScrollToBlock=this.handleScrollToBlock.bind(this),this.handlePreviewMessage=this.handlePreviewMessage.bind(this),window.addEventListener(Kt,this.handleScrollToBlock),window.addEventListener("message",this.handlePreviewMessage)}componentDidUpdate(e){this.scrollIfContinued(),e.isLessonEntering&&!this.props.isLessonEntering&&this.scrollToBlockAfterEnter!=null&&this.scrollToBlock(this.scrollToBlockAfterEnter)}componentWillUnmount(){window.removeEventListener(Kt,this.handleScrollToBlock),window.removeEventListener("message",this.handlePreviewMessage)}handlePreviewMessage(e){if(e.origin!==window.location.origin)return;(Array.isArray(e.data)?e.data:[e.data]).forEach(o=>{o?.type==="preview:lessonUpdate"&&this.setState({isBlockActionsSidebarPreview:!0})})}render(){const{className:e,isOnePage:n}=this.props,o=Z()("blocks-lesson",e,{"blocks-lesson--one-page":n});return(0,s.jsx)("section",{className:o,ref:this.ref,children:this.renderBlocks()})}renderBlocks(){const{blocks:e,lessonProgress:n,isLocalizedReviewMode:o}=this.props,{isBlockActionsSidebarPreview:r}=this.state,a=o||r;return(a?e:Rm([],e,n)).map(this.buildBlock.bind(this,this.props.lessonProgress,a)).filter(Fv.A)}handleContinue(e,n){const{blocks:o,handleNavigate:r,lessonId:a,lessonProgress:i,nextLesson:l}=this.props;hl(n,i)||(this.continueFromId=e),e===o[o.length-1]?.id&&l&&((0,Q.JD)((0,tr.eQ)(a)),r(l))}buildBlock(e,n,o,r,a){const{animateBlockEntrance:i,blocks:l,color:u,courseId:d,courseTitle:m,enableVideoPlaybackSpeed:p,handleNavigate:f,handleStorylineFullscreen:v,labels:g,lessonId:C,loadMedia:x,match:L,partnerContent:y,prefersKeyboardNavigation:E,previewType:b,publishedAt:S,tenantId:T}=this.props,{isBlockActionsSidebarPreview:I}=this.state,j=l6(o,a.slice(0,-1),e,n),M=a.length-1,D=j.family==="continue"?o.id===l[l.length-1]?.id:r===M,P=!I&&d6({blocks:l,lessonProgress:e,currentBlockIndex:r});return(0,s.jsx)(c6,{animateBlockEntrance:i,block:j,color:u,courseId:d,courseTitle:m,enableVideoPlaybackSpeed:p,handleNavigate:f,handleStorylineFullscreen:v,hideBlock:P,index:r,isFirstLesson:!0,isLastBlock:D,labels:g,lessonId:C,lessonProgress:e,loadMedia:x,match:L,onContinue:this.handleContinue,partnerContent:y,prefersKeyboardNavigation:E,previewType:b,publishedAt:S,tenantId:T},j.blockId)}scrollIfContinued(){if(this.continueFromId){const{blocks:e}=this.props,n=Qo()(Ft()("id",this.continueFromId),e),o=Yn()(n),r=Rt()(null,["blocks",o,"id"],this.props);if(r){const a=document.querySelector(".page-wrap"),i=a.querySelector(`[data-block-id="${r}"]`),l=i?i.getBoundingClientRect().top:0;$c.Ay.animateScroll.scrollTo(l+a.scrollTop,{smooth:!0,containerId:"page-wrap"})}delete this.continueFromId}}handleScrollToBlock(e){if(this.props.isLessonExiting||e.detail.lessonId!==this.props.lessonId)return;const n=e.detail.itemId;n==null?this.ref.current?.closest(".page").scrollIntoView({behavior:"smooth",block:"start"}):this.props.isLessonEntering?this.scrollToBlockAfterEnter=n:this.scrollToBlock(n)}scrollToBlock(e){const o=document.querySelector(".page-wrap").querySelector(`[data-block-id="${e}"]`);o?.scrollIntoView({behavior:"smooth",block:"nearest"})}}const wU=(t,e)=>{const{currentLocale:n}=e;return{isOnePage:ka(t),isCourseLocalized:Ll(t),isLocalizedReviewMode:RU(t.course?.defaultLocaleId,t.l10n,n)}},m6=ot()(J1.A,bt.wZ,(0,Q.Ng)(wU))(PU);function Pu({children:t}){const e=(0,h.useRef)(),n=(0,h.useCallback)(()=>{e.current?.focus?.()},[]);return NN(n),(0,s.jsx)("main",{className:"lesson-main",ref:e,tabIndex:"-1",children:t})}const MU=ee("page"),p6=({type:t,children:e})=>(0,s.jsx)("div",{className:MU({lessonTypeQuiz:t==="quiz"}),"data-page":!0,"data-type":t,children:e});p6.propTypes={type:We().string.isRequired,children:We().node.isRequired};const ml=p6,Pi=({type:t,children:e})=>{const n=t==="video"||t==="embed"||t==="blocks"||t==="progress-summary",o=Z()("page__wrapper",{"page__wrapper--white":n});return(0,s.jsx)("div",{className:o,children:e})};Pi.propTypes={type:We().string.isRequired,children:We().node.isRequired};const wi=({className:t,type:e,children:n})=>{const o=Z()("page__content",t,{"page__content--timeline":e==="timeline"});return(0,s.jsx)("div",{className:o,children:n})};wi.propTypes={type:We().string,children:We().node.isRequired};const OU=({animateBlockEntrance:t,color:e,courseId:n,courseTitle:o,data:r,enableVideoPlaybackSpeed:a,handleNavigate:i,handleStorylineFullscreen:l,labels:u,lessonHeader:d,lessonHeaderWrapClasses:m,lessonHeaderWrapStyles:p,lessonProgress:f,loadMedia:v,match:g,nextLesson:C,partnerContent:x,prefersKeyboardNavigation:L,previewType:y,publishedAt:E,tenantId:b,hideLessonHeaders:S})=>{const{id:T,items:I,type:j}=r,M={animateBlockEntrance:t,blocks:I,color:e,courseId:n,courseTitle:o,enableVideoPlaybackSpeed:a,handleNavigate:i,handleStorylineFullscreen:l,isFirstLesson:!0,labels:u,lessonId:T,lessonProgress:f,loadMedia:v,match:g,nextLesson:C,partnerContent:x,previewType:y,prefersKeyboardNavigation:L,publishedAt:E,tenantId:b,type:j};return(0,s.jsx)(ml,{type:j,children:(0,s.jsx)(Pi,{type:j,children:(0,s.jsxs)(Pu,{children:[(0,s.jsx)("div",{className:m,inert:S,style:p,children:d}),(0,s.jsx)(wi,{children:(0,s.jsx)(m6,{...M})})]})})})},DU=t=>({partnerContent:Rt()([],["partnerContent","content"],t)}),BU=(0,Q.Ng)(DU)(OU);var HU=c(53166);const FU=({percentComplete:t,trackingCompletionPercentage:e,labelCompletionRequirement:n="Completion Requirement",labelPercentCompletion:o="% Completion",labelYouCompleted:r="You completed:",labelA11yRequirementCompleted:a="Requirement completed, check mark",labelA11yRequirementNotCompleted:i="Requirement not completed, empty square"})=>{const l=(0,xe.Wz)();if(nn()(e))return null;const u=di({percent:e,label:o,isRTL:l}),d=l?`%${t}`:`${t}%`;return(0,s.jsxs)("div",{className:"progress-summary__requirement",children:[(0,s.jsxs)("div",{className:"progress-summary__requirement-stats-wrap",children:[(0,s.jsx)("h2",{className:"progress-summary__requirement-title",children:n}),(0,s.jsxs)("div",{className:"progress-summary__requirement-stats",children:[(0,s.jsx)("div",{children:u}),(0,s.jsxs)("div",{children:[r,"\xA0",(0,s.jsx)("strong",{className:"progress-summary__requirement-stats-percent-achieved",children:d})]})]})]}),(0,s.jsx)(f6,{labelA11yRequirementCompleted:a,labelA11yRequirementNotCompleted:i,requirementMet:e<=t})]})},VU=({outOfAttempts:t,quizPassed:e,quizPassingScore:n,quizScore:o,quizTitle:r,trackingQuizId:a,labelQuizRequirement:i="Quiz Requirement",labelScoreOf:l="Score of",labelScoreOfPreposition:u="% on",labelViewQuiz:d="View quiz",labelYouScored:m="You scored",labelNoAttemptsRemaining:p="No attempts remaining.",labelA11yRequirementCompleted:f="Requirement completed, check mark",labelA11yRequirementNotCompleted:v="Requirement not completed, empty square"})=>{const g=(0,xe.Wz)();if(!a)return null;const C=di({percent:n,label:u,isRTL:g});return(0,s.jsxs)("div",{className:"progress-summary__requirement",children:[(0,s.jsxs)("div",{className:"progress-summary__requirement-stats-wrap",children:[(0,s.jsx)("h2",{className:"progress-summary__requirement-title",children:i}),(0,s.jsxs)("div",{className:"progress-summary__requirement-stats",children:[(0,s.jsxs)("div",{children:[l," ",C," ",r]}),nn()(o)?(0,s.jsx)("div",{children:(0,s.jsx)(Cn,{className:"progress-summary__requirement-stats-link brand--color",to:`/lessons/${a}`,children:d})}):(0,s.jsxs)("div",{children:[m,"\xA0",(0,s.jsxs)("strong",{className:"progress-summary__requirement-stats-percent-achieved",children:[o,"%"]})]})]}),t&&(0,s.jsx)("span",{className:"progress-summary__requirement-no-attempts",children:p})]}),(0,s.jsx)(f6,{labelA11yRequirementCompleted:f,labelA11yRequirementNotCompleted:v,requirementMet:e})]})},f6=({requirementMet:t,labelA11yRequirementCompleted:e,labelA11yRequirementNotCompleted:n})=>t?(0,s.jsx)(rt,{"aria-label":e,classNameIcon:"progress-summary__requirement-checkbox-checked",name:"square-check"}):(0,s.jsx)("div",{"aria-label":n,className:"progress-summary__requirement-checkbox-empty",role:"img"}),zU=({dueAt:t})=>t?(0,s.jsx)("div",{className:"progress-summary__header-due brand--color brand--border",children:l1(t)}):null;var UU=c(39645),$U=c.n(UU),WU=c(26372);const _U=["#eb524d","#ffac02","#ffcc00","#28cea9","#4fbdf4","#6788e4"];class GU extends WU.Component{constructor(...e){super(...e),this.state={run:!1,recycle:!0},this.startConfetti=this.startConfetti.bind(this)}startConfetti(){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setState({recycle:!1}),1e4),this.setState({run:!0})}componentDidMount(){clearTimeout(this.timeout),this.timeout=setTimeout(this.startConfetti,900)}shouldComponentUpdate(e,n){return n.recycle!==this.state.recycle||n.run!==this.state.run}componentWillUnmount(){clearTimeout(this.timeout)}render(){const{state:{recycle:e,run:n}}=this;return(0,s.jsx)("div",{className:"progress-summary__confetti",children:(0,s.jsx)($U(),{colors:_U,gravity:.4,height:window.innerHeight,numberOfPieces:500,recycle:e,run:n,width:window.innerWidth})})}}const KU=GU;var QU=c(45330),ZU=c.n(QU),YU=c(92213),XU=c.n(YU),JU=c(74955);const v6=ee("progress-summary-card"),qU=({completeLabel:t,isComplete:e,isUrgent:n,completedDate:o,labelDue:r})=>e?(0,s.jsxs)("div",{className:"progress-summary-card__completed-label",children:[t,(0,s.jsx)("span",{className:"progress-summary-card__completed-date",children:o})]}):r?(0,s.jsx)("div",{className:Z()("progress-summary-card__due-label",{"brand--color":n}),children:r}):null,e$=({cardImageKey:t=null,className:e,color:n="#ff6602",completedAt:o=null,coverImageKey:r=null,disable:a=!1,durationHidden:i=!1,enrolledAt:l=null,hidden:u=!1,imagesUri:d="",isLearningPath:m=!1,isUrgent:p=!1,labelAssignedToMe:f="",labelDue:v="",labelDuration:g="",labelLearningPath:C="",onClick:x=un.lQ,progress:L=0,title:y=""})=>{const E=(0,nt.useLabelsMap)(),b=(0,xe.Wz)(),S=o!==null,T=(0,h.useCallback)(()=>{a||x?.()},[a,x]),I=(0,h.useCallback)(k=>{F1(k)&&k.preventDefault(),!a&&ci(k)&&x?.()},[a,x]),j=di({percent:Math.round(L),label:E?.progressSummaryPercentComplete||"% Complete",isRTL:b}),M=t||r,H=E?.progressSummaryCompleted||"Completed: ",D=`${no()(new Date(o)).format("MM/DD/YY")}`,P=v6("card",{disabled:a}),F=v6("image-overlay",{"not-started":!(L||S),"in-progress-completed":L||S});return(0,s.jsxs)("div",{"aria-hidden":u,className:P,onClick:T,children:[(0,s.jsxs)("div",{className:"progress-summary-card__content",children:[(0,s.jsx)("button",{"aria-disabled":a,className:Z()("progress-summary-card__title-button",{[e]:e}),onKeyDown:I,role:"link",tabIndex:u?-1:void 0,type:"button",children:(0,s.jsx)("span",{className:"progress-summary-card__title",children:y||E?.progressSummaryNoTitle||"(No Title)"})}),(0,s.jsxs)("div",{className:"progress-summary-card__course-info",children:[m&&(0,s.jsx)("div",{className:"progress-summary-card__hide",children:C}),l&&(0,s.jsx)("div",{className:"progress-summary-card__hide",children:f}),!!L&&!a&&!o&&(0,s.jsx)("span",{className:"progress-summary-card__hide",children:j}),!i&&!S&&(0,s.jsx)("div",{className:"progress-summary-card__duration",children:g}),(0,s.jsx)(qU,{completedDate:D,completeLabel:H,isComplete:S,isUrgent:p,labelDue:v})]})]}),(0,s.jsxs)("div",{className:"progress-summary-card__image-wrap",children:[(0,s.jsx)(JU.A,{alt:"","aria-hidden":"true",b:"fff",className:"progress-summary-card__image",f:"jpg",h:150,imageKey:M,imagesUri:d,s:"cover",style:{backgroundColor:n},w:300}),(0,s.jsx)("div",{className:F}),(0,s.jsx)("div",{className:"progress-summary-card__image-overlay-bottom-bar",children:!!L&&!a&&!S&&(0,s.jsx)("div",{"aria-hidden":"true",className:"progress-summary-card__progress-bar-wrap",children:(0,s.jsx)("div",{className:"progress-summary-card__wrap-light",children:(0,s.jsx)("div",{className:"progress-summary-card__progress-bar",style:{width:`${L}%`}})})})})]})]})},t$=(0,ze._$)("IMAGES_URI"),s$=["cardImageKey","color","coverImageKey","progress","score","title"],g6=(t,e)=>t===1?e:e.concat("s"),Pm=Rt()([],["course","course","lessons"]),n$=t=>ot()(ln(),Pf()(Ir()(Ft()("type","section"),XU()(aa()(gv(),t),"id"))),Pm),o$=t=>{const e=Pm(t),{trackingQuizId:n}=t,{score:o}=t;if(n&&e.length){const r=Fs()(Ft()("id",n),e),{settings:{passingScore:a}={}}=r;return o<a?r:!1}},r$=ot()(Fs()(Vd()(Ft()("type","section"))),Pm),a$=M1()(2,t=>ot()(en()("","id"),Fs()(Boolean),ZU()([n$(t),o$,r$]))),i$=t=>{const e=no().duration(t),n=e.hours(),o=e.minutes(),r=`${n} ${g6(n,"hr")}`,a=`${o} min`;return n>=100?"100+ hrs":n>0&&o>0?[r,a].join(" "):n>0?r:a},c$=t=>{const{color:e,learningPathComplete:n,learningPathId:o,isSuccess:r,nextCourse:a,nextCourse:{dueAt:i,courseId:l="",lessonCount:u,lessonsCompleted:d=[],sourceType:m,timeToComplete:p}={}}=t,f=(0,nt.useLabelsMap)(),v=(0,h.useMemo)(()=>a$(d,a),[a,d]);nn()(a.color)&&(a.color=e);const g=Xn()(s$,a),C=(0,h.useCallback)(()=>{m==="PACKAGE"?(top.sessionStorage.setItem("upNextCourseId",l),top.location.assign(`/learning-path/${o}`)):(0,us.kT)(`${l}/lessons/${v}`)},[l,o,v,m]);return r&&!n&&(0,s.jsx)("div",{className:"progress-summary__lp-next",children:(0,s.jsxs)("div",{className:"progress-summary__lp-next-inner",children:[(0,s.jsxs)("div",{className:"progress-summary__lp-next-label",children:[f?.progressSummaryNextUp||"Next up"," ",(0,s.jsx)(rt,{"aria-hidden":"true",classNameIcon:"progress-summary__lp-next-label-icon",name:"arrow-right"})]}),(0,s.jsx)("div",{className:"progress-summary__lp-next-card",children:(0,s.jsx)(e$,{imagesUri:t$,labelCount:`${u} ${g6(u,"lesson")}`,labelDue:l1(i),labelDuration:i$(p),noCertDownload:!0,noFavoriteBtn:!0,onClick:C,...g})})]})})},l$=Ct()("learningPathUpNext"),d$=(0,Q.Ng)(l$)(c$),u$=`${(0,ze._$)("CDN_URI")}/assets/rise/assets/trophy.svg`,h$=ot()(vs(),As()(Ct()("isComplete")),nr()),m$=t=>{const{color:e,course:n={},courseProgress:o={},fetchLpUpNext:r,lessons:a=[],learningPathComplete:i,lpHasFailedQuiz:l}=t,{lessons:u={},percentComplete:d}=o,{dueAt:m,certificateDownload:p,completionCelebration:f,lessonsOnly:v=[],riseComLearningPathId:g,trackingCompletionPercentage:C,trackingQuizId:x}=n,L=cn(),y=(0,nt.useLabelsMap)(),E=nn()(C)&&nn()(x),b=E?d===100:(0,et.As)(),S=v.length,T=h$(u);(0,h.useEffect)(()=>{g&&r()},[]);const I=(0,h.useMemo)(()=>b?n.completedAt?n.completedAt:new Date:null,[n.completedAt,b]),j=(0,h.useMemo)(()=>Fs()(eu()(Ft()("type","quiz"),Ft()("id",x)),a),[x,a]),M=Qt(j?.title),H=(0,h.useMemo)(()=>Rt()(100,["settings","passingScore"],j),[j]),D=Rt()(null,["lessons",x,"passed"],o),P=(0,h.useMemo)(()=>ot()(ri()(Ft()("percentComplete",100),Ct()("score"),os()(null)),Rt()({},["lessons",x]))(o),[o,x]),{outOfAttempts:F}=oc(o,j,x);let k=x?D:!0,w=Tn();const O=Z()("progress-summary",{"progress-summary__no-req":E}),W=(0,as.c3)(n),G=`You've completed ${T} of ${S} lessons.`,ce=W?b?"Complete":"Incomplete":G;return(0,s.jsx)(ha,{title:Vc(L+" - Progress Summary"),children:(0,s.jsxs)("div",{className:O,children:[b&&f&&k&&!w&&(0,s.jsx)(KU,{}),(0,s.jsxs)("header",{className:"progress-summary__header",children:[(0,s.jsx)("h1",{className:"progress-summary__header-title",tabIndex:-1,children:b&&!E&&k?y?.progressSummaryCongratulations||"Congratulations!":y?.progressSummary||"Progress Summary"}),E?(0,s.jsx)("div",{className:"progress-summary__lessons-completed",children:ce}):b?(0,s.jsxs)("div",{className:"progress-summary__header-completion-date",children:[k&&(0,s.jsx)("img",{alt:"trophy",className:"progress-summary__header-trophy",src:u$}),no()(I).format("MMMM Do, YYYY")]}):(0,s.jsx)(zU,{dueAt:m})]}),(0,s.jsxs)("section",{className:"progress-summary__section",children:[!E&&b&&(0,s.jsx)("div",{className:"progress-summary__requirements-met",children:y?.progressSummaryRequirementsMet||"You've met all the requirements."}),E?!g&&(0,s.jsxs)(Cn,{className:"progress-summary__start-over",to:"/",children:[y?.progressSummaryStartOver||"Start Over",(0,s.jsx)("i",{className:"progress-summary__start-over-icon icon icon-reload"})]}):(0,s.jsxs)("div",{className:"progress-summary__requirements",children:[(0,s.jsx)(FU,{labelA11yRequirementCompleted:y?.a11yProgressSummaryRequirementCompleted,labelA11yRequirementNotCompleted:y?.a11yProgressSummaryRequirementNotCompleted,labelCompletionRequirement:y?.progressSummaryCompletionRequirement,labelPercentCompletion:y?.progressSummaryPercentCompletion,labelYouCompleted:y?.progressSummaryYouCompleted,percentComplete:d,trackingCompletionPercentage:C}),(0,s.jsx)(VU,{labelA11yRequirementCompleted:y?.a11yProgressSummaryRequirementCompleted,labelA11yRequirementNotCompleted:y?.a11yProgressSummaryRequirementNotCompleted,labelNoAttemptsRemaining:y?.progressSummaryNoAttemptsRemaining,labelQuizRequirement:y?.progressSummaryQuizRequirement,labelScoreOf:y?.progressSummaryScoreOf,labelScoreOfPreposition:y?.progressSummaryScoreOfPreposition,labelViewQuiz:y?.progressSummaryViewQuiz,labelYouScored:y?.progressSummaryYouScored,outOfAttempts:F,quizPassed:D,quizPassingScore:H,quizScore:P,quizTitle:M,trackingQuizId:x})]}),(b||E)&&(0,s.jsxs)("div",{className:"progress-summary__completion-controls",children:[(0,s.jsx)("button",{className:"progress-summary__btn-back progress-summary__completion-control",onClick:us.NS,role:"link",type:"button",children:y?.progressSummaryBackToLearning||"Back to my learning"}),b&&(!g&&p||g&&i)&&p&&k&&!l&&(0,s.jsx)("span",{className:"progress-summary__completion-control",children:(0,s.jsx)(zr,{})})]})]}),b&&!!g&&(0,s.jsx)(d$,{color:e,learningPathId:g})]})})},p$=(t,{course:{riseComCourseId:e,riseComLearningPathId:n}})=>({fetchLpUpNext:ot()(t,HU.R,os()({courseId:e,learningPathId:n}))}),f$=ot()(Xn()(["learningPathComplete","lpHasFailedQuiz"]),Ct()("learningPathUpNext")),v$=(0,Q.Ng)(f$,p$)(m$),C6=({contentClassName:t,...e})=>(0,s.jsx)(ml,{type:wu.type,children:(0,s.jsx)(Pi,{type:wu.type,children:(0,s.jsx)(Pu,{children:(0,s.jsx)(wi,{className:t,type:wu.type,children:(0,s.jsx)(v$,{...e})})})})}),wu={id:"progress-summary",type:"progress-summary",title:"Progress Summary",description:"Summary of course progress"},x6=Pt("Progress"),g$=t=>t===mt.IK.CONTINUE,C$=({hasPassed:t,nextLessonId:e,shouldSkipOnPass:n,skipToLessonId:o})=>e&&n&&o&&t?o:e,x$=({isContinueBtn:t,isPreviewMode:e})=>t&&!e,b$=({canShowContinue:t,isExport:e,isRiseCom:n,nextLesson:o})=>t&&n&&!o&&!e,y$=t=>(0,Us.Gv)(t)&&"id"in t&&"type"in t,L$=({item:t,question:e})=>{if(t.type===mt.UQ.DRAW_FROM_QUESTION_BANK){const n=String(e.id);return t.id===n.split("-")[0]}return t.id===e.id},E$=(t,e)=>!t||!e||t.length!==e.length?!1:t.some((n,o)=>e[n]?.id!==e[o]?.id),S$=(t,e,n)=>{if(!Array.isArray(t)||!Array.isArray(e)||!n)return!1;const o=t.map(i=>e[i]),r=e.findIndex(i=>i.id===n),a=o.findIndex(i=>i.id===n);return r===a},T$=({lesson:t,question:e})=>{const o=t?.items?.filter(y$)?.find(a=>L$({item:a,question:e}));if(o?.type!==mt.UQ.DRAW_FROM_QUESTION_BANK)return o;const r=String(e.id).split("-")[1];return o.questions.find(a=>a.id===r)},I$=ee("quiz"),Mu=0,Mi=2,N$=t=>({start:t<Mi?0:t-Mi,end:t+Mi});function j$(t){return t+1}function k$(t){return t<Mu+Mi}function A$(t,e){const{start:n,end:o}=N$(e);return{items:t.slice(n,o),startOffset:n}}function wm({activeIndex:t,index:e}){return I$("card",{active:e===t,done:e<t,next:e===t+1,penultimate:e===t+Mi,future:e>t+Mi})}var xs=c(26481);function R$({settings:t}){const e=(0,Q.wA)();return(0,h.useMemo)(()=>({onChoiceSelect:n=>{e((0,xs.Yu)(n))},onFillInChange:n=>{e((0,xs.Nj)(n))},onMatchSet:n=>{e((0,xs.NC)(n))},onResponseToggle:n=>{e((0,xs.mg)(n))},onSetIndex:n=>{e((0,xs.QI)(n))},onSubmit:n=>{const{skipLessonsIfPassed:o,skipToLessonId:r}=t||{};return e((0,xs.kK)({...n,skipLessonsIfPassed:o??void 0,skipToLessonId:r??void 0}))}}),[e,t])}function P$(t){return t.type===mt.UQ.DRAW_FROM_QUESTION_BANK}function w$({sourceItems:t,progress:e,lessonId:n}){const o=[],r=[];let a=0;for(const l of t){if(!P$(l)){o.push(l);continue}const{drawCount:u,questions:d}=l,m=h6()?d.length:u,p=[],f=[],v=[];if(e?.questionsDrawn){const C=e.questionList?.[a]??[];for(const x of C){const L=d[x];L&&(p.push({...L,drawn:!0,id:`${l.id}-${L.id}`}),v.push(x))}}else for(;p.length<m;){const g=h6()?d[p.length]:T3({questions:d,drawnQuestionIds:f});if(!g)break;const C=d.findIndex(x=>x.id===g.id);p.push({...g,drawn:!0,id:`${l.id}-${g.id}`}),f.push(String(g.id)),v.push(C)}o.push(...p),r.push(v),a++}const i=M$({items:o,progress:e,questionIndexList:r});return{concreteItems:o,drawPayload:{lessonId:n,lessonProgress:i}}}function M$({items:t,progress:e,questionIndexList:n}){const o=e?.items??{},r=e?.originalItemProgress,a={},i=new Map(Object.values(o).map(l=>[l.index,l]));return t.forEach((l,u)=>{const d=r?.[u]??{},m=i.get(u);a[l.id]={...d,...m,id:l.id,index:u}}),{...e,questionsDrawn:!0,questionList:n,items:a}}function O$({items:t,progress:e}){const n=e?.items??{},o=[],r=[];for(const a of t)n[a.id]?.isComplete?o.push(a):r.push(a);return[...o,...Au()(r)]}function D$(t){const e=t.answers??[],n=Au()(e),o=n.map(r=>e.findIndex(a=>a.id===r.id));return Object.assign({},t,{answers:n,shuffledAnswerIndices:o})}function b6({items:t,settings:e,progress:n}){const o=e?.randomizeQuestionOrder?O$({items:t,progress:n}):t;return e?.shuffleAnswerChoices??!1?o.map(a=>!!n?.items?.[a.id]?.isComplete?a:D$(a)):o}function B$({lessonId:t,sourceItems:e,progress:n,settings:o}){const{concreteItems:r,drawPayload:a}=w$({sourceItems:e,progress:n,lessonId:t});return{resolvedItems:b6({items:r,settings:o??void 0,progress:a.lessonProgress}),drawPayload:a}}function jse(t){return b6({items:t.items,settings:t.settings,progress:t.progress})}function kse({lessonIds:t,lessons:e}){return!Array.isArray(t)||!e?!1:t.some((n,o)=>{const r=e[n];return r?.type!=="quiz"||r.settings?.skipLessonsIfPassed!==!0?!1:t.slice(o+1).some(i=>{const l=e[i];return l&&l.type!=null&&l.type!=="section"})})}function H$(t,e){const n=Es(t),o=po(n)?n.settings:void 0,r=(0,et.GJ)({id:t,passingScore:e?.passingScore??mt.hB});return(0,h.useMemo)(()=>o&&{...o,passingScore:r??o?.passingScore??mt.hB},[o,r])}const Ou=typeof matchMedia<"u"?matchMedia("(prefers-reduced-motion: reduce)"):void 0;function y6(){const[t,e]=(0,h.useState)(Ou?.matches??!1);return(0,h.useEffect)(()=>{if(!Ou)return;const n=o=>e(o.matches);return Ou.addEventListener("change",n),()=>Ou.removeEventListener("change",n)},[]),t}function F$({lessonId:t}){const e=(0,Q.wA)(),n=Es(t),o=Cr(t),r=(0,h.useMemo)(()=>n?.items??[],[n?.items]),a=H$(t,o),[{resolvedItems:i,drawPayload:l}]=(0,h.useState)(()=>B$({lessonId:t,progress:o,settings:a,sourceItems:r}));(0,h.useEffect)(()=>{e((0,xs.x6)(l))},[]);const u=o?.activeIndex??0,d=y6();return V$({activeIndex:u,isReduceMotion:d,progress:o,resolvedItems:i,settings:a,sourceItems:r}),{activeIndex:u,progress:o,resolvedItems:i,retryAttempts:o?.retryAttempts??0,settings:a,sourceItems:r}}function V$({activeIndex:t,isReduceMotion:e,progress:n,resolvedItems:o,settings:r,sourceItems:a}){const i=(0,h.useRef)(t);(0,h.useEffect)(()=>{},[t])}const z$=t=>t.length===3,U$=t=>{const e=t.findIndex(n=>n==="answers");return e===-1?null:t[e+1]?.id},$$=t=>{const e=t.findIndex(n=>n==="questions");return e===-1?null:t[e+1]?.id},W$=t=>{const e=t.at(-1);return typeof e=="string"&&e.startsWith("feedback")},_$=({items:t,itemId:e,questionBankQuestionId:n})=>{const o=t.find(({id:r})=>r===e);return o?"questions"in o?n?o.questions.find(({id:r})=>r===n):null:o:null},G$=(t,e,n)=>{const o=n==="feedbackCorrect";return t?[t]:n==="feedback"?e.answers.slice(0,1):n==="feedbackIncorrect"&&e.type==="FILL_IN_THE_BLANK"?[{title:""}]:e.answers.filter(r=>"correct"in r?r.correct===o:"corrects"in e?e.corrects.includes(r.id)===o:e.answers)},K$=({lessonId:t,items:e})=>{const n=(0,Q.wA)(),o=(0,h.useCallback)(({lessonId:a,progressId:i,question:l,answer:u},d=!0)=>{switch(l.type){case"MULTIPLE_CHOICE":n((0,xs.Yu)({lessonId:a,itemId:i,selectedIndex:l.answers.indexOf(u)}));break;case"MULTIPLE_RESPONSE":n((0,xs.mg)({lessonId:a,itemId:i,selectedIndex:l.answers.indexOf(u)}));break;case"FILL_IN_THE_BLANK":n((0,xs.Nj)({lessonId:a,itemId:i,text:typeof u.title=="string"?u.title:""}));break;case"MATCHING":n((0,xs.NC)({lessonId:a,itemId:i,matches:d?Object.fromEntries(l.answers.map(m=>[m.id,m.id])):{}}));break}},[n]),r=(0,h.useCallback)(({detail:a})=>{const{lessonId:i,path:l}=a,u=String(a.itemId);if(i!==t)return;if(z$(l)){n((0,xs.FU)(t));return}const d=$$(l),m=_$({items:e,itemId:u,questionBankQuestionId:d});if(!m)return;const p=d?`${u}-${d}`:u;if(n((0,xs.QI)({lessonId:t,progressId:p})),W$(l)){const f=U$(l),v=f?m.answers.find(({id:L})=>L===f)??null:null,g=l.at(-1),C=g==="feedbackCorrect",x=G$(v,m,g);m.type==="MULTIPLE_RESPONSE"&&n((0,xs.RW)({lessonId:t,itemId:p})),x.forEach(L=>{o({lessonId:t,question:m,progressId:p,answer:L},C)}),n((0,xs.kK)({finalRetryAttempt:!1,lessonId:t,isCorrect:C,itemId:p,passToContinue:!0}))}},[n,t,e,o]);(0,h.useEffect)(()=>(window.addEventListener(Kt,r),()=>{window.removeEventListener(Kt,r)}),[r])};function Q$(){const[t,e]=(0,h.useState)();return(0,h.useEffect)(()=>{const n=document.querySelector("[data-previous-lesson]");if(!n)return;e(n.clientHeight);const o=new ResizeObserver(([r])=>{e(r.target.clientHeight)});return o.observe(n),()=>{o.disconnect()}},[]),t}const Z$=(0,N.shape)({a11yAnswerLive:N.string,a11yAuthorPrefix:N.string,a11yBlockChartAxisX:N.string,a11yBlockChartAxisY:N.string,a11yBlockChartBar:N.string,a11yBlockChartInstructions:N.string,a11yBlockChartLine:N.string,a11yBlockChartPie:N.string,a11yBlockChartPreposition:N.string,a11yBlockCode:N.string,a11yBlockCodeSnippet:N.string,a11yBlockEmbed:N.string,a11yBlockFlashcardBack:N.string,a11yBlockFlashcardFront:N.string,a11yBlockFlashcardGrid:N.string,a11yBlockFlashcardStack:N.string,a11yBlockFlashcardStackRoleDescription:N.string,a11yBlockFlashcardStackSlideControls:N.string,a11yBlockFlashcardStackSlideControlsGoToNext:N.string,a11yBlockFlashcardStackSlideControlsGoToPrevious:N.string,a11yBlockFlashcardStackSlideControlsGoToSlide:N.string,a11yBlockFlashcardStackSlidePreposition:N.string,a11yBlockFlashcardStackSlideRoleDescription:N.string,a11yBlockKnowledgeCheck:N.string,a11yBlockKnowledgeCheckFIB:N.string,a11yBlockKnowledgeCheckM:N.string,a11yBlockKnowledgeCheckMC:N.string,a11yBlockKnowledgeCheckMR:N.string,a11yBlockProcessCarousel:N.string,a11yBlockProcessRoleDescription:N.string,a11yBlockProcessSlideControls:N.string,a11yBlockProcessSlideControlsGoToNext:N.string,a11yBlockProcessSlideControlsGoToPrevious:N.string,a11yBlockProcessSlideControlsGoToSlide:N.string,a11yBlockProcessSlideControlsIntroduction:N.string,a11yBlockProcessSlideControlsSummary:N.string,a11yBlockProcessSlidePreposition:N.string,a11yBlockProcessSlideRoleDescription:N.string,a11yBlockQuoteCarousel:N.string,a11yBlockQuoteCarouselRoleDescription:N.string,a11yBlockQuoteCarouselSlideControls:N.string,a11yBlockQuoteCarouselSlideControlsGoToNext:N.string,a11yBlockQuoteCarouselSlideControlsGoToPrevious:N.string,a11yBlockQuoteCarouselSlideControlsGoToSlide:N.string,a11yBlockQuoteCarouselSlidePreposition:N.string,a11yBlockQuoteCarouselSlideRoleDescription:N.string,a11yBlockStoryline:N.string,a11yBlockTimeline:N.string,a11yCarouselNext:N.string,a11yCarouselPrevious:N.string,a11yCertificateDownloadFailed:N.string,a11yCorrectLive:N.string,a11yCoverCourseCompleted:N.string,a11yCoverCourseLength:N.string,a11yCoverRequirementComplete:N.string,a11yCoverRequirementFailed:N.string,a11yCoverRequirementIncomplete:N.string,a11yExcelIcon:N.string,a11yFileIcon:N.string,a11yGroupAudioPlayer:N.string,a11yGroupScenario:N.string,a11yGroupVideoPlayer:N.string,a11yLabeledGraphicBlock:N.string,a11yLabeledGraphicButtonMarker:N.string,a11yLabeledGraphicIconPlus:N.string,a11yLabeledGraphicIconDot:N.string,a11yLabeledGraphicIconInformation:N.string,a11yLabeledGraphicIconQuestion:N.string,a11yLabeledGraphicIconCheck:N.string,a11yLabeledGraphicIconX:N.string,a11yLabeledGraphicIconHeart:N.string,a11yLabeledGraphicIconPin:N.string,a11yLabeledGraphicIconArrowLeft:N.string,a11yLabeledGraphicIconArrowRight:N.string,a11yLabeledGraphicIconArrowUp:N.string,a11yLabeledGraphicIconArrowDown:N.string,a11yLabeledGraphicIconArrowUpLeft:N.string,a11yLabeledGraphicIconArrowUpRight:N.string,a11yLabeledGraphicIconArrowDownLeft:N.string,a11yLabeledGraphicIconArrowDownRight:N.string,a11yLabeledGraphicUnviewed:N.string,a11yLabeledGraphicViewed:N.string,a11yMatchingItemMatchedWith:N.string,a11yMatchingItemMatchWith:N.string,a11yMatchingItemSelectableItem:N.string,a11yMediaPause:N.string,a11yMediaPlay:N.string,a11yMediaSeek:N.string,a11yNavigationMenuClose:N.string,a11yNavigationMenuOpen:N.string,a11yPDFIcon:N.string,a11yPPTIcon:N.string,a11yQuizFailed:N.string,a11yQuizFeedback:N.string,a11yQuizPassed:N.string,a11yQuizReviewCorrectlyChecked:N.string,a11yQuizReviewCorrectlySelected:N.string,a11yQuizReviewCorrectlyUnchecked:N.string,a11yQuizReviewCorrectlyUnselected:N.string,a11yQuizReviewIncorrectlyChecked:N.string,a11yQuizReviewIncorrectlySelected:N.string,a11yQuizReviewIncorrectlyUnchecked:N.string,a11yQuizReviewIncorrectlyUnselected:N.string,a11yRegionMainLesson:N.string,a11yRegionMainOverview:N.string,a11yRegionNavLesson:N.string,a11yRegionNavOverview:N.string,a11yRestrictedNav:N.string,a11yRTFIcon:N.string,a11ySearchClose:N.string,a11ySearchInput:N.string,a11ySearchOpen:N.string,a11yStatusAdditionalContent:N.string,a11yStatusContinued:N.string,a11yUnzoomImage:N.string,a11yWordIcon:N.string,a11yZipIcon:N.string,a11yZoomImage:N.string,courseStart:N.string,courseResume:N.string,courseExit:N.string,courseHome:N.string,courseSkipToLesson:N.string,lessonName:N.string,lessonPreposition:N.string,lessonComplete:N.string,lessonRestricted:N.string,quizStart:N.string,quizQuestion:N.string,quizSubmit:N.string,quizRequireAnswer:N.string,quizNext:N.string,quizIncorrect:N.string,quizCorrect:N.string,quizResults:N.string,quizScore:N.string,quizPassing:N.string,quizTakeAgain:N.string,quizTimerElapsed:N.string,quizTimerExpired:N.string,quizTimerExpiredAction:N.string,quizTimerExpiredMessage:N.string,quizTimerHide:N.string,quizTimerLimit:N.string,quizTimerMinute:N.string,quizTimerMinutePlural:N.string,quizTimerRemaining:N.string,quizTimerShow:N.string,quizAcceptableResponses:N.string,quizAnswerPlaceholder:N.string,quizRequirePassingScore:N.string,quizContinue:N.string,processStepName:N.string,processStepPreposition:N.string,processNextStep:N.string,processLessonName:N.string,processComplete:N.string,processStart:N.string,processStartAgain:N.string,processSwipe:N.string,sortingCardsCorrect:N.string,sortingReplay:N.string,embedViewOn:N.string,embedReadMore:N.string,blocksClickToFlip:N.string,blocksPreposition:N.string,salutation:N.string,exitMessage:N.string,overviewPageTitleSuffix:N.string,labeledGraphicMarkerLabel:N.string,seekSliderLabel:N.string,playButtonLabel:N.string,pauseButtonLabel:N.string,embedPlayerGroup:N.string,embedLinkGroup:N.string,numberedDividerGroup:N.string,processLandmark:N.string,sortingLandmark:N.string,search:N.string,result:N.string,results:N.string,noResults:N.string,scenarioTryAgain:N.string,scenarioContinue:N.string,scenarioComplete:N.string,scenarioStartOver:N.string,progressPieUnstarted:N.string,progressPieCompleted:N.string,progressPieClickToComplete:N.string,progressPieClickToReset:N.string,progressPieQuizFailed:N.string,certificateDownload:N.string,certificateDownloadInProgress:N.string,certificateRetryDownload:N.string,coverCompleteAllLessons:N.string,coverCompleteLessonsName:N.string,coverCompleteLessonsPreposition:N.string,coverCompleteLessonsInCourse:N.string,coverCompleted:N.string,coverCourseRequirements:N.string,coverHour:N.string,coverHours:N.string,coverLesson:N.string,coverLessons:N.string,coverMinute:N.string,coverMinutes:N.string,coverNoAttemptsRemaining:N.string,coverPublished:N.string,coverQuizScoreOf:N.string,coverQuizPercentOrHigher:N.string,progressSummary:N.string,progressSummaryBackToLearning:N.string,progressSummaryCompleted:N.string,progressSummaryCongratulations:N.string,progressSummaryNextUp:N.string,progressSummaryNoTitle:N.string,progressSummaryPercentComplete:N.string,progressSummaryRequirementsMet:N.string,progressSummaryStartOver:N.string,curtainLoading:N.string,curtainOffline:N.string,curtainOfflineReconnecting:N.string,curtainSessionTimedOut:N.string,curtainSessionTimedOutRestart:N.string,curtainSessionTimedOutRefresh:N.string,curtainSomethingWrong:N.string,curtainSomethingWrongTryAgain:N.string,curtainSomethingWrongRefresh:N.string}),Mm=(0,N.shape)({image:(0,N.shape)({key:N.string,originalUrl:N.string,sourcedFrom:(0,N.oneOf)(["DEFAULT","USER","LIBRARY","AI"]),src:N.string,thumbnail:N.string,type:N.string,useCrushedKey:N.bool})}),Y$=(0,N.shape)({themeId:N.string,coverImage:N.string,navigation:N.bool,showAuthor:N.bool,allowSearch:N.bool,colorAccent:N.string,blockCorners:N.string,buttonScheme:N.string,uiTypefaceId:N.string,coverPageType:N.string,bodyTypefaceId:N.string,navigationType:N.string,blockPaddingTop:N.number,coverImageAlpha:N.number,navigationStyle:N.string,showLessonCount:N.bool,lessonHeaderSize:N.string,buttonInlineStyle:N.string,coverImageDefault:N.string,headingTypefaceId:N.string,lessonHeaderColor:N.string,lessonHeaderImage:N.string,lessonHeaderStyle:N.string,sidebarStartsOpen:N.bool,blockPaddingBottom:N.number,markLessonsComplete:N.bool,animateBlockEntrance:N.bool,navigationRestricted:N.bool,buttonNavigationStyle:N.string,showNavigationButtons:N.bool,compactShowLessonCount:N.bool,lessonHeaderImageAlpha:N.number,lessonHeaderImageColor:N.string,enableVideoPlaybackSpeed:N.bool,blockNavigationType:N.string,blockNavigationStyle:N.string,progressIndicatorStyle:N.string}),X$=(0,N.shape)({disableCoverPage:N.bool}),J$=(0,N.shape)({activeEdition:N.number,activeLMS:N.number,completeWith:(0,N.oneOf)(["reporting","quiz","storyline"]),completionPercentage:N.number,enableExitCourse:N.bool,enableTelemetryCollection:N.bool,exportType:(0,N.oneOf)(["lms","pdf","raw","business-content"]),format:(0,N.oneOf)(["zip"]),identifier:N.string,quizId:N.string,quizComplete:N.bool,reporting:(0,N.oneOf)(["passed-incomplete"]),shareId:N.string,storylineId:N.string,storylineComplete:N.bool,target:(0,N.oneOf)(["scorm12","scorm2004","aicc","xapi","cmi5"]),targetName:(0,N.oneOf)(["SCORM 1.2","SCORM 2004","AICC","xAPI","cmi5"]),title:(0,N.oneOfType)([N.string,(0,N.shape)({l10nId:N.string})]),resetLearnerData:N.bool,hideLmsUi:N.bool,webExportSettings:X$}),Om=N.string,pn=N.string,Dm=t=>(0,N.oneOfType)([t,(0,N.shape)({l10nId:N.string})]),Ase=(0,N.shape)({id:pn,originalId:pn,author:pn,selectedAuthorId:pn,color:N.string,navigationMode:N.string,title:Dm(N.string),sharePassword:N.string,description:Dm(N.string),shareId:pn,copyOf:N.string,order:N.string,fonts:N.object,media:Mm,coverImage:(0,N.shape)({alpha:N.number,displaySidebar:N.bool,media:Mm}),lessons:(0,N.arrayOf)(pn),jobs:(0,N.arrayOf)(pn),labelSetId:pn,deleted:N.bool,createdAt:Om,updatedAt:Om,markComplete:N.bool,isDefault:N.bool,ready:N.bool,reviewId:pn,exportSettings:J$,headingTypefaceId:pn,bodyTypefaceId:pn,uiTypefaceId:pn,sidebarMode:N.string,tenantId:pn,showLessonCount:N.bool,showNavigationButtons:N.bool,allowSearch:N.bool,authorPermissions:(0,N.arrayOf)(N.string),animateBlockEntrance:N.bool,transferredAt:Om,allowCopy:N.bool,enableVideoPlaybackSpeed:N.bool,jobType:N.string,partnerContentId:pn,cardImage:Mm,theme:Y$,lessonHeaderImage:N.object,overlayNavigationImage:N.object,type:N.string,features:N.object,courseId:N.string,typefaces:(0,N.objectOf)(N.string)}),{FILL_IN_THE_BLANK:Du,MATCHING:Bu,MULTIPLE_CHOICE:Hu,MULTIPLE_RESPONSE:Fu}=mt.UQ,q$=3,L6=yr()("quiz-item__"),Oi=Rt()(0,["progress","activeIndex"]),E6=(t,e)=>{if(!(t===void 0||!e)){if(Array.isArray(t))return t.map(n=>e.indexOf(n)).filter(n=>n!==-1);{const n=e.indexOf(t);return n===-1?void 0:n}}};class eW extends h.Component{constructor(e){super(e),this.getSelection=this.getSelection.bind(this),this.submitAndSetNextIndex=this.submitAndSetNextIndex.bind(this),this.onChoiceSelect=this.onChoiceSelect.bind(this),this.onFillInChange=this.onFillInChange.bind(this),this.onMatchSet=this.onMatchSet.bind(this),this.onNextClick=this.onNextClick.bind(this),this.onResponseToggle=this.onResponseToggle.bind(this),this.onSubmit=this.onSubmit.bind(this),this.state={errorIncomplete:!1,startTime:Date.now(),matches:{},isRetaking:!1},this.wrapper=h.createRef(),this.id=ft()("qi-")}componentDidUpdate(e){const{isReduceMotion:n}=this.props;this.isNewlyActive({prevProps:e})&&(this.scrollTop(),this.setState({startTime:Date.now()})),n||this.scrollActionsIfComplete({prevProps:e})}componentWillUnmount(){clearTimeout(this.timeoutScrollActionsIfComplete)}static propTypes={enableVideoPlaybackSpeed:We().bool,getClassName:We().func,hasStart:We().bool,id:We().string.isRequired,index:We().number,isCorrectAnswerUnshuffled:We().bool,isReduceMotion:We().bool.isRequired,isShuffled:We().bool,isTimedQuiz:We().bool,item:We().object.isRequired,items:We().arrayOf(We().object),labels:Z$,onChoiceSelect:We().func,onFillInChange:We().func,onMatchSet:We().func,onResponseToggle:We().func,prefersKeyboardNavigation:We().bool,progress:We().object,quizTop:We().number,reportAnswer:We().func,retryAttempts:We().number,scrollId:We().string,setNextIndex:We().func,settings:We().object,showNextButton:We().bool,submitAction:We().func,title:Dm(We().string.isRequired)};static get defaultProps(){return{getClassName:()=>{},labels:{},onChoiceSelect:()=>{},onFillInChange:()=>{},onMatchSet:()=>{},onResponseToggle:()=>{},reportAnswer:()=>{},retryAttempts:0,setNextIndex:()=>{},settings:{revealAnswers:mt.iV.ALL},showNextButton:!0,submitAction:()=>[]}}getCanSubmit({itemProgress:e}){const{item:n}=this.props;return a3({answersLength:n.answers?.length??0,matches:e?.matches,selectedIndex:e?.selectedIndex,selectedIndices:e?.selectedIndices,text:e?.text,type:n.type})}getFeedback({isCorrect:e,selectedIndex:n}){const{isShuffled:o,item:r}=this.props,{answers:a,feedback:i,feedbackCorrect:l,feedbackIncorrect:u,feedbackType:d,shuffledAnswerIndices:m}=r;return m3({answers:a,feedback:i,feedbackCorrect:l,feedbackIncorrect:u,feedbackType:d,isCorrect:e,isShuffled:o,selectedIndex:n,shuffledAnswerIndices:m})}getIndex(){return this.props.hasStart?Yn()(this.props.index):this.props.index}getIsComplete({itemProgress:e}){return en()(!1,"isComplete",e)}getIsDoneCard(){const e=this.getIndex(),n=Oi(this.props);return e<n}getIsCorrect({itemProgress:e}){const{isCorrectAnswerUnshuffled:n,isShuffled:o,item:r,getL10nValue:a}=this.props;switch(r.type){case Du:return c3({answers:r.answers??[],text:e.text,caseSensitive:r.settings?.isCaseSensitive??!1,getL10nValue:a});case Bu:return l3(e.matches??{});case Fu:return h3({isShuffled:o,item:r,selectedIndices:e.selectedIndices,shuffledAnswerIndices:e.shuffledAnswerIndices});case Hu:default:return d3({isCorrectAnswerUnshuffled:n,isShuffled:o,item:r,selectedIndex:e.selectedIndex,shuffledAnswerIndices:e.shuffledAnswerIndices})}}getItemProgress({props:e}){return Rt()({},["items",e.item.id],e.progress)}getSelection({itemProgress:e}){const{type:n}=this.props.item;switch(n){case Du:return e.text;case Bu:return e.matches;case Fu:return e.selectedIndices;case Hu:default:return e.selectedIndex}}submitAndSetNextIndex(e=()=>[],n={}){const{id:o,setNextIndex:r}=this.props;e(n),r({lessonId:o})}isNewlyActive({prevProps:e}){const n=Oi(this.props),o=Oi(e),r=this.getIndex();return o!==n&&r===n}onChoiceSelect({selectedIndex:e}){const{id:n,item:o,onChoiceSelect:r}=this.props,{id:a,shuffledAnswerIndices:i}=o;this.resetErrorIncomplete(),r({lessonId:n,itemId:a,selectedIndex:e,shuffledAnswerIndices:i})}onFillInChange(e){const{id:n,item:o,onFillInChange:r}=this.props,{id:a}=o;this.resetErrorIncomplete(),r({lessonId:n,itemId:a,text:e})}onMatchSet(e){const{id:n,item:o,onMatchSet:r}=this.props,{id:a}=o;this.resetErrorIncomplete(),r({lessonId:n,itemId:a,matches:e})}onNextClick(e=()=>[],n={}){ct.pause(),this.submitAndSetNextIndex(e,n)}onNextFeedbackClick(e){e&&this.onNextClick()}onTakeAgain=()=>{this.setState({isRetaking:!0}),setTimeout(()=>{this.props.onTakeAgain(),this.setState({isRetaking:!1})},50)};resetErrorIncomplete(){this.state.errorIncomplete&&this.setState({errorIncomplete:!1})}onResponseToggle({optionIndex:e}){const{id:n,item:o,onResponseToggle:r}=this.props,{id:a,shuffledAnswerIndices:i}=o;this.resetErrorIncomplete(),r({lessonId:n,itemId:a,selectedIndex:e,shuffledAnswerIndices:i})}onSubmit({canSubmit:e,isCorrect:n,itemProgress:o}){return r=>{r.preventDefault();const{getL10nRecursive:a,id:i,item:l,reportAnswer:u,retryAttempts:d,settings:m,submitAction:p,title:f}=this.props;if(!e){switch(this.setState({errorIncomplete:!0}),l.type){case Du:this.wrapper.current?.querySelector("input")?.focus();break;case Fu:case Hu:this.wrapper.current?.querySelector("input")?.focus();break;case Bu:this.wrapper.current?.querySelector("button")?.focus();break;default:break}return}const{startTime:v}=this.state,{id:g}=l,{revealAnswers:C,passToContinue:x}=m,L={startTime:v,stopTime:Date.now()},y=en()(-1,"retryCount",m),E=parseInt(y,10),b=parseInt(d,10),S=Mo()(E,b),T=a({duration:L,id:i,isCorrect:n,item:l,itemProgress:o,retryAttempts:d,title:f});u(T);const I={finalRetryAttempt:S,lessonId:i,isCorrect:n,itemId:g,passToContinue:x,revealAnswers:C};if(C===mt.iV.ALL||C===mt.iV.INCORRECT)return p(I);this.onNextClick(p,I)}}render(){return this.props.isCard?this.renderCard():this.renderDefault()}renderCard(){const{getClassName:e,settings:n}=this.props,{correctAnswerColor:o,incorrectAnswerColor:r}=n,a=this.getIndex(),i=Oi(this.props),l=a===i,u=this.getItemProgress({props:this.props}),d=this.getIsComplete({itemProgress:u}),m=this.getIsCorrect({itemProgress:u}),p=this.props.isTimedQuiz,f=e(a),g={"--color-feedback-icon":m?o:r,"--color-matching-feedback-bubble-bg":r,"--color-multiple-choice-complete-border":r,"--color-multiple-choice-correct-border":o,"--color-multiple-response-correct-border":o,"--color-multiple-response-incorrect-border":r,"--color-multiple-response-option-check":d?o:void 0,"--color-quiz-option-check":o,"--color-x-fill":r};return(0,s.jsx)("div",{className:f,"data-testid":"quiz-item-card",inert:l?void 0:!0,children:(0,s.jsx)("div",{className:L6("content"),children:(0,s.jsx)(Wg,{isActive:l,isComplete:d,isTimedQuiz:p,style:g,children:(0,s.jsx)("div",{style:l||d?void 0:{display:"none"},children:this.renderItem()})})})})}renderMediaContent(){const{enableVideoPlaybackSpeed:e,isActive:n,labels:o,item:r,itemSettings:a,getL10nValue:i}=this.props,{media:l,id:u}=r,d=this.getIndex(),m=i(l),p=!!m?.image,f=!!m?.audio,v=!!m?.video,g=!!m?.embed;return f&&p?(0,s.jsx)("div",{className:"quiz-card__media--image-with-audio",children:(0,s.jsx)(Pr,{allowTabNavigation:n,blockId:u,enableVideoPlaybackSpeed:e,index:String(d),isOverlayAudio:!0,item:r,labels:o,media:l,settings:a})}):f&&(v||g)?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(Pr,{allowTabNavigation:n,blockId:u,enableVideoPlaybackSpeed:e,index:`${d}-audio`,item:r,labels:o,media:{audio:m.audio},settings:a}),(0,s.jsx)(Pr,{allowTabNavigation:n,blockId:u,enableVideoPlaybackSpeed:e,index:String(d),item:r,labels:o,media:v?{video:m.video}:{embed:m.embed},settings:a,shouldPause:!n})]}):(0,s.jsx)(Pr,{allowTabNavigation:n,blockId:u,enableVideoPlaybackSpeed:e,index:String(d),item:r,labels:o,media:l,settings:a,shouldPause:!n})}renderDefault(){return(0,s.jsx)("div",{className:L6("wrap"),children:this.renderItem()})}renderItem(){const{hasStart:e,isReduceMotion:n,isQuestionBankQuiz:o,isShuffled:r,item:a,items:i,labels:l,onTakeAgain:u,progress:d,settings:m,showNextButton:p}=this.props,{errorIncomplete:f}=this.state,{quizAcceptableResponses:v,quizAnswerPlaceholder:g,quizCorrect:C,quizIncorrect:x,quizNext:L,quizRequireAnswer:y,quizRestart:E,quizQuestion:b,quizSubmit:S}=l,{id:T,title:I,type:j,settings:M}=a,{correctAnswerColor:H,correctAnswerColorContrast:D,incorrectAnswerColor:P,incorrectAnswerColorContrast:F,revealAnswers:k=mt.iV.NONE}=m,w=this.getIndex(),O=Oi(this.props),W=w===O,G=this.getItemProgress({props:this.props}),$=this.getIsComplete({itemProgress:G}),ce=this.getIsCorrect({itemProgress:G}),Ee=k==mt.iV.ALL||k==mt.iV.INCORRECT,Ne=W&&$&&Ee,De=W&&!$&&this.getCanSubmit({itemProgress:G}),Ke=this.onSubmit({canSubmit:De,isCorrect:ce,itemProgress:G,item:a}),Ae=Ct()("selectedIndex",G),we=this.getFeedback({isCorrect:ce,selectedIndex:Ae}),he=`q-${T}`,oe=this.getSelection({itemProgress:G}),Be=Z()("quiz-card__retake-container",{"quiz-card__retake-container--active":$}),Pe=Z()("quiz-card__retake","brand--hoverColor",{"quiz-card__retake--active":$});return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(DB,{isActive:W,labels:l,questionLabel:b,questionNumber:e?w:w+1,totalQuestions:vs()(i)}),(0,s.jsx)(HB,{allowTabNavigation:W,htmlId:he,value:I}),this.renderMediaContent(),(0,s.jsx)(Qg,{type:j,children:(0,s.jsx)("div",{ref:this.wrapper,children:this.renderType({columnBehavior:M?.columnBehavior,correctAnswerColor:H,correctAnswerColorContrast:D,incorrectAnswerColor:P,incorrectAnswerColorContrast:F,isActive:W,isComplete:$,isCorrect:ce,isShuffled:r,itemProgress:G,labels:l,onSubmit:Ke,revealAnswers:k,questionHtmlId:he,quizAcceptableResponses:v,quizAnswerPlaceholder:g})})}),(0,s.jsx)("div",{"aria-live":"assertive",children:f&&(0,s.jsxs)("div",{className:"quiz-card__validations","data-testid":"quiz-validation-error",children:[(0,s.jsx)(rt,{className:"quiz-card__validation-icon","data-testid":"quiz-validation-icon",name:"alert-circle"}),(0,s.jsx)("span",{id:`${this.id}-error-incomplete-message`,children:y})]})}),(0,s.jsx)(Kg,{canProceed:this.state.forceShowFeedback||Ne,feedbackRef:$e=>{this.feedback=$e},feedbackValue:this.state.forceFeedbackMessage||we,isActive:W,isComplete:$,isCorrect:this.state.forceShowFeedbackCorrect||ce,item:a,labels:l,progress:G,quizCorrect:C,quizIncorrect:x,revealAnswers:k,selection:oe}),(0,s.jsx)($g,{allowNext:!u,canProceed:Ne,canSubmit:De,isReduceMotion:n,item:a,onNext:p?this.onNextFeedbackClick.bind(this,W):null,onSubmit:Ke,quizNext:d?.percentComplete===100&&o?E:L,quizSubmit:S}),u&&(0,s.jsx)("div",{className:Be,children:(0,s.jsx)("button",{className:Pe,onClick:this.onTakeAgain,type:"button",children:(0,s.jsxs)("div",{className:"quiz-card__retake-content",children:[(0,s.jsx)("div",{className:"quiz-card__retake-text brand--ui",children:"TAKE AGAIN"}),(0,s.jsx)("i",{className:"quiz-card__retake-icon icon icon-reload"})]})})})]})}renderMCOptionText(e,{title:n}){return(0,s.jsx)(Et,{allowTabNavigation:e,className:"quiz-multiple-choice-option__label",value:n})}renderMROptionText(e,{title:n}){return(0,s.jsx)(Et,{allowTabNavigation:e,component:"span",value:n})}renderType(e){const{columnBehavior:n,correctAnswerColor:o,correctAnswerColorContrast:r,incorrectAnswerColor:a,incorrectAnswerColorContrast:i,isActive:l,isComplete:u,isCorrect:d,isReduceMotion:m,isShuffled:p,itemProgress:f,labels:v,onSubmit:g,revealAnswers:C,questionHtmlId:x,quizAcceptableResponses:L,quizAnswerPlaceholder:y}=e,{color:E,item:b,prefersKeyboardNavigation:S}=this.props,{answers:T,correct:I,corrects:j,type:M}=b,H=l&&!u,D=this.state.errorIncomplete?`${this.id}-error-incomplete-message`:void 0;switch(M){case Du:return(0,s.jsx)(Zg,{allowTabNavigation:l,correctAnswerColor:o,correctAnswerColorContrast:r,errorMessageId:D,incorrectAnswerColor:a,incorrectAnswerColorContrast:i,isComplete:u,isCorrect:d,labels:v,onChange:this.onFillInChange,onEnterToSubmit:g,options:T,questionHtmlId:x,quizAcceptableResponses:L,quizAnswerPlaceholder:y,revealAnswers:C,value:en()("","text",f)});case Bu:return(0,s.jsx)(e3,{answers:T,columnBehavior:n,correctAnswerColor:o,correctAnswerColorContrast:r,incorrectAnswerColor:a,incorrectAnswerColorContrast:i,isActive:l,isComplete:u,matches:f?.matches??{},onChange:this.onMatchSet,prefersKeyboardNavigation:S,revealAnswers:C});case Fu:{const P=Ct()("selectedIndices",f),F=Ct()("shuffledAnswerIndices",f)??[],k=p?E6(P,F):P;return(0,s.jsx)(n3,{allowTabNavigation:l,correctAnswerColor:o,correctIds:j,errorMessageId:D,incorrectAnswerColor:a,isComplete:u,isCorrect:d,isRetaking:this.state.isRetaking,labels:v,onChange:this.onResponseToggle,onEnterToSubmit:g,options:T,questionHtmlId:x,renderOptionText:this.renderMROptionText.bind(this,l),revealAnswers:C,selectedIndices:k})}case Hu:default:{const P=Ct()("selectedIndex",f),F=Ct()("shuffledAnswerIndices",f)??[],k=p?E6(P,F):P;return(0,s.jsx)(s3,{allowTabNavigation:H,color:E,correctAnswerColor:o,correctId:I,errorMessageId:D,incorrectAnswerColor:a,isComplete:u,isCorrect:d,isReduceMotion:m,isRetaking:this.state.isRetaking,labels:v,onChange:this.onChoiceSelect,onEnterToSubmit:g,options:T,questionHtmlId:x,renderOptionText:this.renderMCOptionText.bind(this,l),revealAnswers:C,selectedIndex:k})}}}scrollActionsIfComplete({prevProps:e}){const{isReduceMotion:n,scrollId:o,settings:r}=this.props,{revealAnswers:a=mt.iV.NONE}=r,i=this.getIndex(),l=Oi(this.props);if(!(i===l)||a===mt.iV.NONE)return;const d=this.getItemProgress({props:e}),m=this.getIsComplete({itemProgress:d}),p=this.getItemProgress({props:this.props}),f=this.getIsComplete({itemProgress:p}),v=()=>{const{offsetHeight:g,offsetTop:C}=this.feedback,x=g+C;document.getElementById(o||"page-wrap")?.scrollTo({top:x,behavior:n?"instant":"smooth"})};!m&&f&&(this.timeoutScrollActionsIfComplete=setTimeout(v,750))}scrollTop(){const{isReduceMotion:e,quizTop:n,scrollId:o}=this.props,r=n||q$;document.getElementById(o||"page-wrap")?.scrollTo({top:r,behavior:e?"instant":"smooth"})}}const tW=ot()(FM)(eW),ss=ee("odometer"),S6=1e3,T6=2e3,sW=4e3,nW=750,Vu=200,Bm=170,Un=Vu/2,$n=Bm/2,pl=70,I6=1.5,oW=2.5,rW=225,aW=135,N6=270,Hm=7,Di={start:{dx:-19,dy:8},mid:{dx:-5,dy:22},end:{dx:26,dy:-7}},Br={size:12,topOffset:-3,bottomOffset:21};function iW(t){return t<.5?16*t**5:1+16*(t-1)**5}function cW(t){return t<.5?2*t**2:1-(-2*t+2)**2/2}function zu({angle:t,centerX:e,centerY:n,radius:o}){const r=(t-90)*Math.PI/180;return{x:e+o*Math.cos(r),y:n+o*Math.sin(r)}}function Fm({centerX:t,centerY:e,counterClockwise:n=!1,endAngle:o,radius:r,startAngle:a}){const i=zu({angle:a,centerX:t,centerY:e,radius:r}),l=zu({centerX:t,centerY:e,radius:r,angle:o}),d=Math.abs(o-a)>180?"1":"0",m=n?"0":"1";return`M ${i.x} ${i.y} A ${r} ${r} 0 ${d} ${m} ${l.x} ${l.y}`}function j6(t,e,n){return e+n*N6*t/100}function lW({hasPassed:t,isResultsVisible:e,isRTL:n,onAnimationDone:o,passingLabel:r,passingScore:a,score:i=0,scoreLabel:l,shouldAnimate:u}){const[d,m]=(0,h.useState)(0),[p,f]=(0,h.useState)(0),[v,g]=(0,h.useState)(!1),x=`hatch-pattern${(0,h.useId)()}`,L=(0,h.useRef)(null),y=(0,h.useRef)(!1),E=(0,h.useRef)([]),b=(0,h.useCallback)(()=>{E.current.forEach(clearTimeout),E.current=[]},[]),S=(0,h.useCallback)(()=>{L.current!==null&&(cancelAnimationFrame(L.current),L.current=null),b()},[b]);(0,h.useEffect)(()=>{e||(S(),y.current=!1,m(0),f(0),g(!1))},[e,S]),(0,h.useEffect)(()=>{if(!e||!u||y.current)return;y.current=!0;const De=i,Ke=setTimeout(()=>{let Ae=null;const we=he=>{Ae===null&&(Ae=he);const oe=he-Ae,Be=Math.min(oe/T6,1),Pe=iW(Be),$e=cW(Be);if(f(Pe),m(Math.round($e*De)),Be<1)L.current=requestAnimationFrame(we);else{f(1),m(De);const Oe=setTimeout(()=>{g(!0);const pt=setTimeout(()=>{o?.()},nW);E.current.push(pt)},sW-S6-T6);E.current.push(Oe)}};L.current=requestAnimationFrame(we)},S6);E.current.push(Ke)},[e,u,i,o]),(0,h.useEffect)(()=>()=>{S()},[S]);const T=n?aW:rW,I=n?-1:1,j=j6(a,T,I),M=j6(p*i,T,I),H=T+I*N6,D=zu({centerX:Un,centerY:$n,radius:pl,angle:M}),P=zu({centerX:Un,centerY:$n,radius:pl,angle:j}),F=p*i>=a,k=n?`%${a}`:`${a}%`,w=n?`%${d}`:`${d}%`,O=`${l} ${n?`%${i}`:`${i}%`}`,W=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:ss("pass-mark-label"),children:r}),(0,s.jsx)("div",{className:ss("pass-mark-percent"),children:k})]}),G=Fm({centerX:Un,centerY:$n,counterClockwise:n,radius:pl,startAngle:T,endAngle:H}),$=Fm({centerX:Un,centerY:$n,counterClockwise:n,radius:pl+3,startAngle:j,endAngle:H}),ce=p>0?Fm({centerX:Un,centerY:$n,counterClockwise:n,radius:pl,startAngle:T,endAngle:M}):"",Ee={x:P.x+(n?-13:13),y:P.y-13},Ne={x:Ee.x+(n?-13:13),y:Ee.y};return(0,s.jsxs)("div",{className:ss(),children:[(0,s.jsxs)("svg",{"aria-hidden":"true",className:ss("svg"),viewBox:`0 0 ${Vu} ${Bm}`,children:[(0,s.jsx)("defs",{children:(0,s.jsx)("pattern",{height:"1.5",id:x,patternTransform:"rotate(45)",patternUnits:"userSpaceOnUse",width:"1.5",children:(0,s.jsx)("line",{className:ss("hatch-line"),x1:"0",x2:"0",y1:"0",y2:"1.5"})})}),(0,s.jsx)("path",{className:ss("passing-zone"),d:$,fill:"none",stroke:`url(#${x})`,strokeWidth:"6"}),(0,s.jsxs)("g",{className:ss("pass-mark-lines"),children:[(0,s.jsx)("line",{className:ss("pass-mark-line"),x1:P.x,x2:Ee.x,y1:P.y,y2:Ee.y}),(0,s.jsx)("line",{className:ss("pass-mark-line"),x1:Ee.x,x2:Ne.x,y1:Ee.y,y2:Ne.y})]}),(0,s.jsx)("path",{className:ss("track"),d:G,fill:"none",strokeWidth:I6}),ce&&(0,s.jsx)("path",{className:ss("progress",{passing:F}),d:ce,fill:"none",strokeWidth:I6}),p>0&&(0,s.jsx)("circle",{className:ss("dot",{passing:F}),cx:D.x,cy:D.y,r:oW}),v&&(0,s.jsx)("g",{className:ss("result-icon"),children:t?(0,s.jsx)("path",{className:ss("checkmark"),d:`M ${Un+Di.start.dx} ${$n+Di.start.dy} L ${Un+Di.mid.dx} ${$n+Di.mid.dy} L ${Un+Di.end.dx} ${$n+Di.end.dy}`,fill:"none",strokeLinecap:"square",strokeLinejoin:"miter",strokeWidth:Hm}):(0,s.jsxs)("g",{className:ss("x-mark"),children:[(0,s.jsx)("path",{className:ss("x-line",{first:!0}),d:`M ${Un-Br.size} ${$n+Br.topOffset} L ${Un+Br.size} ${$n+Br.bottomOffset}`,fill:"none",strokeLinecap:"square",strokeWidth:Hm}),(0,s.jsx)("path",{className:ss("x-line",{second:!0}),d:`M ${Un+Br.size} ${$n+Br.topOffset} L ${Un-Br.size} ${$n+Br.bottomOffset}`,fill:"none",strokeLinecap:"square",strokeWidth:Hm})]})})]}),(0,s.jsxs)("div",{className:ss("score",{pass:v&&t,fail:v&&!t}),children:[(0,s.jsx)("div",{className:ss("score-label"),children:l}),(0,s.jsx)("div",{className:ss("pass-label"),children:O}),(0,s.jsx)("div",{className:ss("fail-label"),children:O}),(0,s.jsx)("div",{className:ss("score-percent",{hidden:v}),children:w})]}),(0,s.jsx)("div",{className:ss("pass-mark"),style:{"--pass-mark-x":`${(n?Vu-Ne.x:Ne.x)/Vu*100}%`,"--pass-mark-y":`${(Ne.y+3)/Bm*100}%`},children:W}),(0,s.jsx)("div",{className:ss("pass-mark-mobile"),children:W})]})}var dW;const uW=t=>t===it.Yq.PREVIEW,Pse=t=>t!==dW.HIDDEN,k6=(0,h.createContext)({handleExpiredQuiz:un.lQ,hideTimer:un.lQ,quizTime:0,resetQuizTimer:un.lQ,timerDuration:0,timerHidden:!1,timerRunning:!1});function hW({children:t,handleExpiredQuiz:e=()=>{},isTimedQuiz:n,courseProgress:o,setQuizLessonTimeRemaining:r=()=>{},timerDuration:a=10}){const i=(0,h.useRef)(void 0),[l,u]=(0,h.useState)(),[d,m]=(0,h.useState)(!1),[p,f]=(0,h.useState)(!1),[v,g]=(0,h.useState)(),C=(0,h.useMemo)(()=>Number(a),[a]),{activeIndex:x,endIndex:L,lessonId:y,lessonProgress:E,startIndex:b}=(0,h.useMemo)(()=>{const O=o?.currentLesson,W=o?.lessons?.[O],G=W?.activeIndex||0,$=Object.keys(W?.items||{}).length+1;return{activeIndex:G,lessonId:O,endIndex:$,lessonProgress:W,startIndex:0}},[o]),S=(0,qe.A)(y),T=(0,qe.A)(x),I=(0,h.useCallback)(()=>{u(C*60)},[C]),j=(0,h.useCallback)(()=>{u(O=>O-1)},[u]),M=(0,h.useCallback)(()=>{m(!0),i.current||(i.current=setInterval(j,1e3))},[j,m]),H=(0,h.useCallback)(O=>{f(O!==void 0?O:!p)},[p]),D=(0,h.useCallback)(()=>{m(!1),i.current&&(i.current=clearInterval(i.current))},[m]),P=(0,h.useCallback)(()=>{l&&v!==void 0&&r({lessonId:v,timeRemaining:l})},[v,l,r]),F=(0,h.useCallback)(()=>{P(),u(void 0)},[u,P]),k=(0,h.useCallback)(()=>u(E.timeRemaining||C*60),[E,C,u]);(0,h.useEffect)(()=>{if(!n)return;const O=S!==y,W=O&&l,G=O&&n;n&&!O&&v!==y&&g(y),W&&F(),G&&k()},[n,v,y,S,l,k,F]),(0,h.useEffect)(()=>{if(n)switch(x){case b:D();break;case L:I(),D();break;default:M(),T!==x&&S===y&&P()}},[x,L,n,y,T,S,I,b,M,D,P]),(0,h.useEffect)(()=>{n&&l<1&&D()},[n,l,D]);const w=(0,h.useMemo)(()=>({handleExpiredQuiz:e,hideTimer:H,quizTime:l,resetQuizTimer:I,timerDuration:C,timerHidden:p,timerRunning:d}),[e,H,l,I,C,p,d]);return(0,s.jsx)(k6.Provider,{value:w,children:t})}const A6=()=>(0,h.useContext)(k6),mW=t=>t.isTimedQuiz?(0,s.jsx)(hW,{...t,children:t.children}):(0,s.jsx)(s.Fragment,{children:t.children}),pW={isRestricted:!1,restrictingQuiz:{},isRestrictedCourse:!1,currentLesson:void 0};function fW(t){const e=Lt(),n=vr(),o=Es(t??""),r=(0,h.useMemo)(()=>{if(!e||!n||!o)return pW;const l=Xr({course:e,courseProgress:n});return Ji({course:e,courseProgress:n,lesson:o,restrictingQuiz:l})},[e,n,o]),{restrictingQuiz:a}=r,i=Qt(a?.title);return(0,h.useMemo)(()=>a?.title?{...r,restrictingQuiz:{...a,title:i}}:r,[r,a,i])}const vW=ee("quiz-results");function gW({isFooterVisible:t,isResultsVisible:e,onTryAgainFocus:n}){const o=(0,Q.wA)(),{mode:r}=(0,ie.g)(),a=uW(r),i=Bn(),l=Cr(i),{passed:u=!1,retryAttempts:d=0}=l??{},{continueType:m,retryCount:p,skipLessonsIfPassed:f,skipToLessonId:v}=Q5(i),{resetQuizTimer:g}=A6(),C=g$(m),x=(0,nt.useLabelsMap)(),L=K5(i),y=fW(L),{isRestricted:E}=y,{courseFinish:b,quizContinue:S,quizTakeAgain:T}=x??{},I=C$({hasPassed:u,nextLessonId:L,shouldSkipOnPass:f,skipToLessonId:v}),j=x$({isContinueBtn:C,isPreviewMode:a}),M=b$({canShowContinue:j,isExport:(0,et.Hm)(),isRiseCom:ze.BI,nextLesson:I}),H=(0,h.useCallback)(()=>{g(),o((0,xs.FU)(i))},[o,g,i]);return(0,s.jsxs)("div",{className:vW("footer",{active:e,hidden:!t}),"data-testid":"quiz-results-footer",children:[(p===-1||d<p)&&(0,s.jsx)(W3,{allowTabNavigation:e,onClick:H,onFocus:n,text:T}),j&&E&&I&&x&&(0,s.jsx)(Fg,{bgType:"transparent",text:qi({labels:x,restrictions:y})}),j&&!E&&I&&(0,s.jsx)(im,{href:(0,wt.p1)(I),text:S}),M&&(0,s.jsx)(im,{href:wt.X1,text:b})]})}const Bi=ee("quiz-results");function CW({questionCount:t}){const e=Bn()??"",n=Cr(e),{activeIndex:o=0,passed:r=!1,passingScore:a=mt.hB,reportResults:i=!1,score:l=0}=n??{},u=(0,nt.useLabelsMap)(),d=(0,xe.Wz)(),[m,p]=(0,h.useState)(!1),f=t+1===o,v=(0,h.useRef)(f),g=(0,h.useRef)(void 0),C=(0,h.useRef)(null),x=(0,h.useId)(),{a11yQuizFailed:L="",a11yQuizPassed:y="",quizPassing:E="",quizResults:b="",quizScore:S=""}=u??{},T=`quiz-results-desc-${x}`,I=(0,h.useCallback)(()=>{g.current=setTimeout(()=>{p(!0),window.dispatchEvent(new CustomEvent(Ad))},mt.R8)},[]),j=(0,h.useCallback)(()=>{clearTimeout(g.current),g.current=void 0,p(!0)},[]);return(0,h.useEffect)(()=>()=>{clearTimeout(g.current)},[]),(0,h.useEffect)(()=>{f!==v.current&&(f?C.current?.focus():p(!1),v.current=f)},[f]),(0,s.jsx)("div",{className:Bi(),children:(0,s.jsx)("div",{className:Bi("container"),children:(0,s.jsxs)("div",{className:Bi("content",{active:f}),"data-testid":"quiz-results",children:[(0,s.jsxs)("div",{className:Bi("header"),children:[(0,s.jsx)("h1",{"aria-describedby":T,className:Bi("label").mix("noOutline"),ref:C,tabIndex:-1,children:b}),(0,s.jsxs)("div",{className:"visually-hidden-always",id:T,children:[(0,s.jsx)("div",{children:`${E}: ${a}%`}),(0,s.jsx)("div",{children:`${S}: ${l}%`}),(0,s.jsx)("div",{children:r?y:L})]})]}),(0,s.jsx)("div",{"aria-hidden":"true",className:Bi("results"),children:(0,s.jsx)(lW,{hasPassed:r,isResultsVisible:f,isRTL:d,onAnimationDone:I,passingLabel:E,passingScore:a,score:l,scoreLabel:S,shouldAnimate:i})}),(0,s.jsx)(gW,{isFooterVisible:m,isResultsVisible:f,onTryAgainFocus:j})]})})})}const xW=5,bW=15,yW=30,LW=60,EW=180,R6=300,P6=600,w6=120,SW=t=>t<=xW?{regularInterval:LW,lowTimeThreshold:w6}:t<=bW?{regularInterval:EW,lowTimeThreshold:w6}:t<=yW?{regularInterval:R6,lowTimeThreshold:R6}:{regularInterval:P6,lowTimeThreshold:P6},TW=(t,e,n,o)=>{const r=Math.floor(o/60),a=o%60,i=r===1?t:e;if(r>0&&a>0)return`${n}: ${r} ${i} and ${a} seconds`;if(r>0&&a===0)return`${n}: ${r} ${i}`;if(r===0&&a>0)return`${n}: ${a} seconds`};var Do=c(26372);const on=ee("quiz-timer"),Vm=(t,e)=>`${t.toString().padStart(2,"0")}:${e.toString().padStart(2,"0")}`,IW=t=>{const e=Math.floor(t/60),n=t%60;return Vm(e,n)},M6=t=>{const e=Math.floor(t/60),n=t%60;return Vm(e,n)},NW=t=>Vm(t,0),O6=({area:t,exitCourseEnabled:e=!1,isStartScreenActive:n=!1,isEndScreenActive:o=!1,labelQuizTimerElapsed:r,labelQuizTimerExpired:a,labelQuizTimerExpiredAction:i,labelQuizTimerExpiredMessage:l,labelQuizTimerHide:u,labelQuizTimerLimit:d,labelQuizTimerMinute:m,labelQuizTimerMinutePlural:p,labelQuizTimerRemaining:f,labelQuizTimerShow:v,timerDisplay:g=mt.sS.REMAINING,timerEnabled:C=!1})=>{const[x,L]=Do.useState(!1),[y,E]=Do.useState(""),b=Do.useRef(null),S=Do.useRef(!1),{hideTimer:T,quizTime:I,timerDuration:j,timerHidden:M,timerRunning:H,handleExpiredQuiz:D}=A6(),P=j*60,{isCover:F,isHeader:k,isHidden:w}=Do.useMemo(()=>({isCover:t==="cover",isHeader:t==="header",isHidden:g===mt.sS.HIDE_TIMER}),[t,g]),O=n&&!F,W=Do.useMemo(()=>SW(j),[j]),G=Do.useMemo(()=>({expired:a||"Time expired",minute:m||"minute",minutePlural:p||"minutes",remaining:f||"Time left"}),[a,m,p,f]),$=()=>{L(!1),D()},ce=Do.useCallback(()=>{const{regularInterval:Ke,lowTimeThreshold:Ae}=W,we=I<=Ae&&I>0&&!S.current,he=b.current!==null&&b.current-I>=Ke,oe=b.current===null;if(we||he){we&&(S.current=!0),b.current=I;const Be=TW(G.minute,G.minutePlural,G.remaining,I);E(Be)}oe&&(b.current=I)},[W,I,G]);if(Do.useEffect(()=>{C&&I!==0&&(F||ce())},[ce,F,C,H,I]),Do.useEffect(()=>{if(!C||I!==0||n)return;const Ke=setTimeout(()=>{L(!0)},1200);return()=>clearTimeout(Ke)},[I,C,n]),!C||O||o)return null;const Ee={"header-area":k,"cover-area":F,"hide-timer":w,"exit-course":e},Ne={display:[F,k&&!n].some(Ea())?null:"none"},De=()=>({[mt.sS.SUMMARY]:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:on("label"),children:[d,":"]}),(0,s.jsxs)("div",{className:on("value"),children:[j," ",j===1?m:p]})]}),[mt.sS.REMAINING]:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:on("label"),children:[f,":"]}),(0,s.jsx)("div",{className:on("value"),children:IW(I)})]}),[mt.sS.ELAPSED]:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:on("label"),children:[r,":"]}),(0,s.jsx)("div",{className:on("value"),children:M6(P-I)})]}),[mt.sS.ELAPSED_TOTAL]:(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:on("label"),children:[r,":"]}),(0,s.jsxs)("div",{className:on("value"),children:[M6(P-I)," /"," ",NW(j)]})]})})[F?mt.sS.SUMMARY:g];return(0,s.jsxs)("div",{className:on(Ee),"data-testid":"quiz-timer",style:Ne,children:[I!==0&&(0,s.jsx)("div",{"aria-atomic":"true","aria-live":"polite",className:"visually-hidden",role:"status",children:y}),I===0&&(0,s.jsx)("div",{className:"visually-hidden",role:"alert",children:a||"Time expired"}),k&&M?(0,s.jsxs)("button",{className:on("hide"),onClick:()=>T(!1),type:"button",children:[(0,s.jsx)(rt,{className:on("icon"),name:"stopwatch-regular"}),v]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:on("time"),children:[(0,s.jsx)(rt,{className:on("icon"),name:"stopwatch-regular"}),(0,s.jsx)("div",{className:on("desc"),children:De()})]}),k&&(0,s.jsx)("button",{className:on("hide"),onClick:()=>T(!0),type:"button",children:u})]}),!F&&x&&oo.createPortal((0,s.jsxs)(ev,{className:"quiz-timer-modal","data-testid":"quiz-timer-modal",disableBackgroundScroll:!0,heading:a,hideCloseButton:!0,onCancel:$,onClose:$,onOverlayClick:()=>{},children:[(0,s.jsx)("p",{children:l}),(0,s.jsx)("button",{"data-testid":"quiz-view-results-button",onClick:$,type:"button",children:i})]}),Lr({childType:"dialog"}))]})},Bo=ee("quiz-start"),jW=t=>(t?.retryAttempts??0)>0;function kW({lessonId:t,isActive:e}){const n=(0,Q.wA)(),o=(0,h.useRef)(null),r=Cr(t),a=(0,nt.useLabelsMap)(),i=Lt(),l=(0,xe.UG)(),u=Es(t),d=tp(),m=(0,Q.d4)(i0),p=l?.authorName,f=l?.avatar,v=i?.theme?.showAuthor??!1,g=i?.theme?.showLessonCount??!1,C=d[t]??0,x=Qt(u?.description),L=Qt(u?.title),y=u?.settings?.timer,E=u?.settings?.asLesson!==!1,{a11yAuthorPrefix:b="",lessonName:S="",lessonPreposition:T="",quizStart:I="",quizTakeAgain:j="",quizTimerElapsed:M="",quizTimerExpired:H="",quizTimerExpiredAction:D="",quizTimerExpiredMessage:P="",quizTimerHide:F="",quizTimerLimit:k="",quizTimerMinute:w="",quizTimerMinutePlural:O="",quizTimerRemaining:W="",quizTimerShow:G=""}=a??{},$=jW(r),ce=e&&$,Ee=$?"quiz-take-again-button":"quiz-start-button";(0,h.useEffect)(()=>{ce&&o.current?.focus()},[ce]);const Ne=()=>{n((0,xs.QI)({lessonId:t}))},De=$?j:I;return(0,s.jsx)("div",{"aria-hidden":!e,className:Bo(),children:(0,s.jsx)("div",{className:Bo("container"),children:(0,s.jsxs)("div",{className:Bo("content"),children:[(0,s.jsxs)("div",{className:Bo("header"),children:[(0,s.jsx)("div",{className:Bo("counter"),children:E&&g&&(0,s.jsx)("div",{className:Bo("count"),children:`${S} ${C} ${T} ${m}`})}),(0,s.jsx)("h1",{ref:o,tabIndex:-1,children:(0,s.jsx)(Et,{className:Bo("title"),value:L})}),v&&f&&p?(0,s.jsxs)("div",{className:Bo("author"),children:[(0,s.jsx)("img",{alt:"",src:(0,et.o1)(f)}),(0,s.jsxs)("span",{className:"visually-hidden",children:[b," ",p]}),(0,s.jsx)("span",{"aria-hidden":"true",children:p})]}):null]}),y&&(0,s.jsx)(O6,{area:"cover",exitCourseEnabled:i?.lmsOptions?.enableExitCourse,isStartScreenActive:e,labelQuizTimerElapsed:M,labelQuizTimerExpired:H,labelQuizTimerExpiredAction:D,labelQuizTimerExpiredMessage:P,labelQuizTimerHide:F,labelQuizTimerLimit:k,labelQuizTimerMinute:w,labelQuizTimerMinutePlural:O,labelQuizTimerRemaining:W,labelQuizTimerShow:G,timerEnabled:y}),(0,s.jsx)(Et,{allowTabNavigation:e,className:Bo("description"),value:x}),(0,s.jsx)(jt.ArcButton,{className:Bo("start-button"),"data-testid":Ee,hierarchy:"plain",iconEnd:(0,s.jsx)(rt,{name:"chevron-right-solid"}),onClick:e?Ne:un.lQ,size:"sm",tabIndex:e?void 0:-1,children:De})]})})})}const AW=tW,D6=ee("quiz");function RW(){const t=Bn(),e=Lt(),n=e?.color,o=(0,nt.useLabelsMap)(),a=Pd()?.prefersKeyboardNavigation??!1,i=xr(t)??"",{resolvedItems:l,sourceItems:u,activeIndex:d,retryAttempts:m,progress:p,settings:f}=F$({lessonId:t}),v=R$({settings:f});K$({lessonId:t,items:u});const g=j$(l.length),C=k$(d),{items:x,startOffset:L}=A$(l,d),y=Q$(),E=y6();return(0,s.jsxs)("section",{className:D6(),"data-quiz":!0,"data-testid":"quiz",children:[f?.timer&&(0,s.jsx)(O6,{area:"header",exitCourseEnabled:e?.lmsOptions?.enableExitCourse,isEndScreenActive:d===g,isStartScreenActive:d===Mu,labelQuizTimerElapsed:o?.quizTimerElapsed,labelQuizTimerExpired:o?.quizTimerExpired,labelQuizTimerExpiredAction:o?.quizTimerExpiredAction,labelQuizTimerExpiredMessage:o?.quizTimerExpiredMessage,labelQuizTimerHide:o?.quizTimerHide,labelQuizTimerLimit:o?.quizTimerLimit,labelQuizTimerMinute:o?.quizTimerMinute,labelQuizTimerMinutePlural:o?.quizTimerMinutePlural,labelQuizTimerRemaining:o?.quizTimerRemaining,labelQuizTimerShow:o?.quizTimerShow,timerDisplay:f?.timerDisplay??void 0,timerEnabled:f?.timer}),(0,s.jsxs)("div",{className:D6("wrap"),children:[C&&(0,s.jsx)("div",{className:wm({activeIndex:d,index:Mu}),children:(0,s.jsx)(kW,{isActive:d===Mu,lessonId:t})}),x.map((b,S)=>{const T=b.type===mt.UQ.MULTIPLE_CHOICE;return(0,s.jsx)(AW,{color:n,getClassName:I=>wm({activeIndex:d,index:I}),hasStart:!0,id:t,index:S+L,isCard:!0,isCorrectAnswerUnshuffled:T?S$(b.shuffledAnswerIndices,b.answers,b.correct):void 0,isReduceMotion:E,isShuffled:E$(b.shuffledAnswerIndices,b.answers),isTimedQuiz:f?.timer,item:b,items:l,labels:o,lessons:e?.lessonsOnly,onChoiceSelect:v.onChoiceSelect,onFillInChange:v.onFillInChange,onMatchSet:v.onMatchSet,onResponseToggle:v.onResponseToggle,prefersKeyboardNavigation:a,progress:p,quizTop:y,reportAnswer:et.bb,retryAttempts:m,scrollId:"page-wrap",setNextIndex:v.onSetIndex,settings:f,submitAction:v.onSubmit,title:i},`item-${b.id}`)}),(0,s.jsx)("div",{className:wm({activeIndex:d,index:g}),inert:g===d?void 0:!0,children:(0,s.jsx)(CW,{questionCount:l.length})})]})]})}const PW=({data:{type:t},lessonProgress:e})=>(0,s.jsx)(ml,{type:t,children:(0,s.jsx)(Pi,{type:t,children:(0,s.jsx)(Pu,{children:(0,s.jsxs)(wi,{className:void 0,type:t,children:[(0,s.jsx)(x6,{lessonProgress:e,type:"quiz"}),(0,s.jsx)(RW,{},e?.retryAttempts??0)]})})})});var wW=c(63947),zm=c.n(wW);function MW({authors:t,lessonAuthor:e,courseAuthor:n,selectedAuthorId:o}){if(o==="none")return{};if(o){const r=zm()(t,{id:o});if(r)return r}if(e){const r=zm()(t,{id:e});if(r)return r}if(n){const r=zm()(t,{id:n});if(r)return r}return{}}const B6={addEventListeners(t,e){t.addEventListener("animationend",e,!1)},removeEventListeners(t,e){t.removeEventListener("animationend",e,!1)}},OW=Pt("LessonHeader"),DW=ee("lesson-header"),BW=({authorName:t,avatar:e,children:n,color:o,description:r,labels:{lessonName:a,lessonPreposition:i},lessonHeaderColor:l,lessonHeaderImageColor:u,lessonHeaderSize:d,lessonHeaderStyle:m,partnerContentAuthors:p,totalLessons:f,lessonNumber:v,showAuthor:g,showLessonCount:C,title:x})=>{const L=$r(),y=Bn(),E=(0,as.qg)(L),b=m===A.xj.IMAGE,S=DW("top-wrap"),{alpha:T,ariaLabel:I,media:j,role:M}=na("lessonHeaderImage"),H=j?.image,D=(0,h.useMemo)(()=>{if(H&&b){const P=u===A.df.LIGHT?A.qH:A.KJ;return(0,rh.A)({alpha:T,color:P,url:(0,Vt.ME)(H)})}},[H,b,u,T]);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(Qx,{ariaLabel:b?I:void 0,imgRole:b?M:void 0,sectionStyles:D,topWrapClassName:S,children:(0,s.jsx)(OW,{authorName:t,avatar:e,color:o,description:r,lessonHeaderColor:l,lessonHeaderSize:d,lessonHeaderStyle:m,lessonId:y,lessonName:a,lessonNumber:v,lessonPreposition:i,partnerContentAuthors:p,showAuthor:g,showLessonCount:C&&!E,title:x,totalLessons:f})}),n]})},Hi=ee("one-page-authors");function HW({className:t}){const e=(0,xe.vU)(),n=(0,xe._z)(),o=(0,xe.$H)(),r=(0,xe.PH)();if(!o)return null;const a=n?.isPartnerContentAuthor&&r!=null,i=Hi({}).mix(t);return a?(0,s.jsx)("div",{className:i,children:(0,s.jsx)("ul",{className:Hi("list"),role:"list",children:r.map((l,u)=>(0,s.jsxs)("li",{className:Hi("item"),role:"listitem",children:[(0,s.jsx)(H6,{avatarUrl:(0,Vt.ny)({width:76,height:76,imageKey:l?.image})}),(0,s.jsx)(F6,{a11yAuthorPrefix:e?.a11yAuthorPrefix,name:l?.name})]},u))})}):(0,s.jsxs)("div",{className:i,children:[(0,s.jsx)(H6,{avatarUrl:(0,ze.o1)(o.avatar)}),(0,s.jsx)(F6,{a11yAuthorPrefix:e?.a11yAuthorPrefix,name:o.authorName})]})}function H6({avatarUrl:t}){return t?(0,s.jsx)("div",{className:Hi("avatar"),style:{backgroundImage:`url(${t})`}}):(0,s.jsx)("div",{className:Hi("avatar-fallback"),children:(0,s.jsx)(X0,{decorative:!0})})}function F6({a11yAuthorPrefix:t,name:e}){const n=e||"Unknown User",o=Hi("name");return(0,s.jsxs)("div",{className:o.toString(),children:[(0,s.jsx)("span",{className:"visually-hidden-always",children:t}),(0,s.jsx)("span",{children:n})]})}const V6=Pt("OnePageAuthors",HW),FW=ee("one-page-title"),z6=Pt("OnePageTitle",({className:t,htmlId:e})=>{const n=(0,xe.DX)(),o=(0,st.QQ)(n.title),r=Za("title"),a=(0,fs.uW)(n.title)?{"data-l10n-id":n.title.l10nId}:{"data-change-path":r},i=FW({}).mix(t);return(0,s.jsx)("h1",{...a,className:i,id:e,tabIndex:-1,children:o})}),Um=ee("one-page-lesson-header-info");function VW(){const t=(0,xe.DX)(),e=Um({}),{accentContrast:n,coverImageColor:o,coverPageType:r}=t?.theme??{},l=r===A.BL.IMAGE&&o===A.df.LIGHT||n===A.Em.DARK||r===A.BL.WHITE||r===A.BL.VIDEO||r===A.BL.ACCENT&&!(0,ht.Wn)(t?.color);return(0,s.jsxs)("div",{className:e,children:[(0,s.jsx)(z6,{className:Um("title").toString(),hasDarkText:l}),(0,s.jsx)(V6,{className:Um("authors").toString(),hasDarkText:l})]})}const zW=Pt("OnePageCoverInfo",VW),UW=Pt("CoverSVG"),$m=ee("one-page-lesson-header"),$W=ee("page"),WW=$m("main").mix("lesson-header__main"),_W=$m("container").mix($W("header-container")),U6=()=>{const t=Lt(),{alpha:e,media:n}=na("coverImage"),o=t?.theme?.coverImageColor,r=t?.coverPageType===A.BL.WHITE,a=t?.coverPageType===A.BL.IMAGE,i=t?.coverPageType===A.BL.ACCENT,l=t?.coverPageType===A.BL.VIDEO,u=o===A.df.LIGHT,d=$m({accent:i,image:a,white:r||l,video:l,"overlay-light":a&&u}),m=a?(0,_t.b9)({alpha:e,color:o,media:n}):{};return(0,s.jsxs)("header",{className:d,style:m,children:[(0,s.jsx)("div",{className:_W,children:(0,s.jsx)("div",{className:WW,children:(0,s.jsx)(zW,{})})}),(0,s.jsx)(UW,{coverPageType:"LEFT"})]})},Wm=(0,h.createContext)({visibleLessons:[],registerLesson:()=>{},unregisterLesson:()=>{}});Wm.displayName="LessonContentContext";function GW({children:t}){const[e,n]=(0,h.useState)(()=>[]),o=(0,h.useCallback)(i=>{n(l=>l.concat(i))},[]),r=(0,h.useCallback)(i=>{n(l=>l.filter(u=>u!==i))},[]),a=(0,h.useMemo)(()=>({visibleLessons:e,registerLesson:o,unregisterLesson:r}),[e,o,r]);return(0,s.jsx)(Wm.Provider,{value:a,children:t})}function KW(){return(0,h.useContext)(Wm)}const{LARGE:QW,SMALL:ZW}=A.OX,{ACCENT:YW,BLACK:XW,COLOR:$6,DARK:JW,GRAY:qW,IMAGE:W6,LIGHT:e_,TINT:t_}=A.xj,s_=ee("lesson-header-wrap");function n_({didNavigate:t,handleNavigate:e,handleStorylineFullscreen:n,isMobileHeader:o,isProgressSummary:r,lessonProgress:a,navigateDirection:i,onNavigateTransitionEnd:l,onPageReady:u,previewType:d,ref:m,registerLesson:p,unregisterLesson:f,visibleLessons:v}){const g=(0,h.useRef)(null),C=(0,h.useRef)(0),x=(0,h.useRef)(!1),L=(0,st.gY)(),y=(0,ie.g)(),E=dr(),b=(0,xe.up)(),S=(0,xe.vU)(),{partnerContent:T}=(0,xe.qm)(),I=Pd(),j=E?.theme?.themeId,[M,H]=(0,h.useState)(!1),D=y.mode||"",P=y.id,F=r?wu:a?.index!=null?E?.lessons?.[a.index]??{}:{},k=r?null:qr({course:E,lesson:F}),w=r?0:tc({course:E,lesson:F}),O=sc(E),W=(0,h.useCallback)((_s,Gs)=>{const xt=i(),es=g.current;if(!es){Gs();return}const rs=`page ${xt}-${_s}`,Vr=()=>{_s==="enter"?es.className=`page ${xt}-complete`:es.className="page",B6.removeEventListeners(es,Vr),window.dispatchEvent(new CustomEvent(yf)),l(),Gs()};es.className=rs,B6.addEventListeners(es,Vr)},[i,l]);(0,h.useImperativeHandle)(m,()=>({componentWillEnter(_s){W("enter",_s)},componentDidEnter(){H(!0)},componentWillExit(_s){const Gs=document.getElementById("page-wrap"),xt=Gs?.scrollTop??0;Gs&&(Gs.scrollTop=0),C.current=xt,W("leave",_s),window.dispatchEvent(new CustomEvent(bf)),g.current&&(g.current.scrollTop=C.current)},componentDidExit(){}}),[W]),(0,h.useEffect)(()=>(H(!0),r||((0,et.no)(P),(0,Q.JD)((0,IP.B)(P))),p(P),()=>{f(P)}),[]),(0,h.useEffect)(()=>{t&&!x.current&&M&&u(),x.current=M},[t,M,u]);const G=(0,h.useMemo)(()=>{const{theme:_s}=E??{},Gs=_s?.customColorLessonHeaderContrast,xt=_s?.lessonHeaderColor,es=(0,ht.xD)(xt),rs=!(0,ht.Wn)(xt),Vr=Gs===A.Em.DARK||Gs===A.Em.AUTO&&es===A.Em.DARK;return!Gs&&rs||Vr?it.S6.DARK:it.S6.LIGHT},[E]),$=(_s,Gs)=>{if(r)return(0,s.jsx)(C6,{...Gs,course:E,courseProgress:b,labels:S,lessons:E?.lessons,sessionPreferences:I});switch(_s){case"blocks":return(0,s.jsx)(BU,{...Gs,animateBlockEntrance:E?.animateBlockEntrance,handleNavigate:e,isFirstLesson:Jr({course:E,lesson:F})});case"quiz":return(0,s.jsx)(PW,{...Gs,course:E});default:return null}},ce=F,{author:Ee,selectedAuthorId:Ne,type:De}=ce,{prefersKeyboardNavigation:Ke}=I??{},{authors:Ae,color:we,enableVideoPlaybackSpeed:he,id:oe,lessonHeaderImage:Be,showLessonCount:Pe,showNavigationButtons:$e,tenantId:Oe,theme:pt}=E??{},{hideLessonHeaders:vt,lessonHeaderColor:It,lessonHeaderImageColor:Ht,lessonHeaderSize:Wt,lessonHeaderStyle:ds,navigationType:Vo,showAuthor:Bs}=pt??{},zo=E?.publishedAt,Fr=T?.content??[],Uo=Fr.length>0,ar=Uo?Fr.find(_s=>_s.id===Ne):void 0,Na=Uo?ar?.data?.authors:void 0,{avatar:ir,authorName:zi}=MW({authors:Ae,lessonAuthor:Ee,courseAuthor:E?.author,selectedAuthorId:Ne}),Ui=Xr({course:E,courseProgress:b}),$o=r?{}:Ji({course:E,courseProgress:b,lesson:k,restrictingQuiz:Ui}),ja=Hv(F),bl=(0,as.c3)(E)?U6:BW,Yt=(0,s.jsx)(bl,{authorName:zi,avatar:ir,color:we,course:E,description:ce.description,labels:S,lessonHeaderColor:It,lessonHeaderImage:Be,lessonHeaderImageColor:Ht,lessonHeaderSize:Wt,lessonHeaderStyle:ds,lessonNumber:w,partnerContentAuthors:Na,showAuthor:Bs,showLessonCount:Pe,themeId:j,title:ce.title,totalLessons:O,children:!r&&(0,s.jsx)(x6,{id:ce.id,items:ce.items,lessonProgress:a,navigationType:Vo,scrollPosition:0,type:ce.type})}),cr=`image-${(Ht??A.df.DARK).toLowerCase()}`,t0=s_({[cr]:ds===W6,accent:ds===YW,black:ds===XW,collapsed:vt,custom:ds===$6,dark:ds===JW,gray:ds===qW,image:ds===W6,large:Wt===QW&&!o,light:ds===e_,mobile:o,small:Wt===ZW&&!o,tint:ds===t_}),ep=ds===$6?{"--lesson-header-contrast-color":G,"--color-background":It}:{},s0={authorName:zi,avatar:ir,color:we,courseId:oe,courseTitle:L(E?.title),data:F,enableVideoPlaybackSpeed:he,handleStorylineFullscreen:n,hideLessonHeaders:vt,isLesson:(0,wt.GG)(ce),labels:S,lessonHeader:Yt,lessonHeaderImage:Be,lessonHeaderWrapClasses:t0,lessonHeaderWrapStyles:ep,lessonHasContinues:ja,lessonNumber:w,lessonProgress:a,loadMedia:P===v[0],mode:D,nextLesson:k?.id??null,nextLessonRestrictions:$o,partnerContent:Fr,publishedAt:zo,prefersKeyboardNavigation:Ke,previewType:d,scrollPosition:0,showAuthor:Bs,showLessonCount:Pe,showNavigationButtons:$e,tenantId:Oe,totalLessons:O};return(0,s.jsx)(ha,{title:Vc(`${L(ce.title)} - ${s0.courseTitle}`),children:(0,s.jsx)("div",{"data-lesson-id":P,ref:g,children:$(De,s0)})})}function o_(t){const{visibleLessons:e,registerLesson:n,unregisterLesson:o}=KW();return(0,s.jsx)(n_,{...t,registerLesson:n,unregisterLesson:o,visibleLessons:e})}const r_=o_;var _6=c(9560);function a_(t,e){const o=e.filter(r=>(0,wt.GG)(r)).findIndex(r=>r.id===t);return o!==-1?o+1:null}function i_({defaultNextLesson:t,defaultNextLessonNumber:e,lesson:n,lessonProgress:o,lessonsOnly:r,skipTargetLesson:a}){const i=n?.type==="quiz",{skipLessonsIfPassed:l,skipToLessonId:u}=n?.settings??{},d=o&&"passed"in o&&o.passed;return i&&l&&u&&d&&a?{nextLesson:a,nextLessonNumber:a_(a.id,r)}:{nextLesson:t,nextLessonNumber:e}}function c_(t){const e=Es(t),n=gn(t),o=Lt(),r=(0,nt.useLabelsMap)(),a=F5(t),i=V5(t),l=z5(),u=e?.settings?.skipToLessonId,d=Es(u),{nextLesson:m,nextLessonNumber:p}=i_({defaultNextLesson:a,defaultNextLessonNumber:i,lesson:e,lessonProgress:n,lessonsOnly:o?.lessonsOnly??[],skipTargetLesson:u?d:void 0}),f=m?.id,v=He(f),g=Qt(v?.data);return{lessonNameLabel:r?.lessonName,lessonPrepositionLabel:r?.lessonPreposition,nextLesson:m,nextLessonNumber:p,restrictionData:f?g:void 0,restrictionType:f?v?.type:void 0,totalLessons:l}}const Uu=ee("lesson-nav");function l_({allowTooltip:t,lessonNameLabel:e,lessonPrepositionLabel:n,nextLesson:o,nextLessonNumber:r,onFocus:a,ref:i,restrictionData:l,restrictionType:u,totalLessons:d}){const m=o?.id,p=ra(),f=si(p),g=o&&(0,wt.GG)(o)&&m,C=(0,st.QQ)(o?.title)||"",x=g?`${r} ${n} ${d} \u2014 ${C}`:C,L=f&&g?`${e} ${r}`:x;return(0,s.jsx)(ni,{allowTooltip:t,direction:"next",navLessonId:m,onFocus:a,ref:i,restrictionData:l,restrictionType:u,children:f?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:Uu("link-text"),children:L}),(0,s.jsx)(Sd,{className:Uu("link-icon")})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(Sd,{className:Uu("link-icon")}),(0,s.jsx)("span",{className:Uu("link-text"),children:L})]})})}const d_=Pt("LessonNavNext",l_);function G6({lessonId:t,...e}){const n=c_(t);return(0,s.jsx)(d_,{...e,...n})}const $u=ee("lesson-nav"),u_=({allowTooltip:t,courseFinishLabel:e,onFocus:n,restrictionData:o,restrictionType:r},a)=>{const i=ra(),l=si(i);return(0,s.jsx)(ni,{allowTooltip:t,direction:"next",finish:!0,onFocus:n,ref:a,restrictionData:o,restrictionType:r,children:l?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:$u("link-text"),children:e}),(0,s.jsx)(Sd,{className:$u("link-icon")})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(Sd,{className:$u("link-icon")}),(0,s.jsx)("span",{className:$u("link-text"),children:e})]})})},h_=Pt("LessonNavFinish",(0,h.forwardRef)(u_));function m_(t,e){const{currentLocale:n}=e,o=Ot(t),r=(0,nt.selectLabelsMap)(n,t);return{buttonNavigationStyle:o.buttonNavigationStyle,courseFinishLabel:r?.courseFinish||"Finish"}}const _m=ot()(bt.wZ,(0,Q.Ng)(m_))(h_),Wu=ee("lesson-nav"),p_=({allowTooltip:t,className:e,courseHomeLabel:n,lessonNameLabel:o,lessonPrepositionLabel:r,onFocus:a,previousLesson:i,previousLessonNumber:l,totalLessons:u},d)=>{const m=i?.id,p=ra(),f=si(p),g=(0,wt.GG)(i)&&m,C=Qt(i?.title)||n,x=g?`${l} ${r} ${u} \u2014 ${C}`:C,L=f&&g?`${o} ${l}`:x;return(0,s.jsx)(ni,{allowTooltip:t,className:e,direction:"previous",navLessonId:m,onFocus:a,ref:d,children:f?(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("span",{className:Wu("link-text"),children:L}),(0,s.jsx)(rf,{className:Wu("link-icon")})]}):(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(rf,{className:Wu("link-icon")}),(0,s.jsx)("span",{className:Wu("link-text"),children:L})]})})},f_=Pt("LessonNavPrevious",h.forwardRef(p_));function v_(){const t=np(),e=H5();return(n,{lessonId:o,currentLocale:r})=>{const a=Ot(n),i=t(o,n)||{},l=e(o,n),u=(0,nt.selectLabelsMap)(r,n),d=i0(n);return{buttonNavigationStyle:a.buttonNavigationStyle,courseHomeLabel:u.courseHome,lessonNameLabel:u.lessonName,lessonPrepositionLabel:u.lessonPreposition,previousLesson:i,previousLessonNumber:l,totalLessons:d}}}const Gm=ot()(bt.wZ,(0,Q.Ng)(v_,null,null,{forwardRef:!0}))(f_),g_={threshold:0},_u=(t,e)=>{const[n,o]=(0,h.useState)(!1),r=(0,h.useRef)(null);return(0,h.useEffect)(()=>{r.current&&r.current.disconnect(),r.current=new IntersectionObserver(([i])=>{o(i.isIntersecting)},e||g_);const{current:a}=r;return t.current?a.observe(t.current):o(!1),()=>{a.disconnect()}},[t,e]),n},K6=ee("navButtonsFull"),C_=()=>{const[t,e]=(0,h.useState)(!1);return(0,qt.A)(bf,()=>e(!0)),(0,qt.A)(yf,()=>e(!1)),t},x_=({isVisible:t})=>{(0,_6.A)(()=>window.dispatchEvent(new CustomEvent(K1))),(0,h.useEffect)(()=>{const e=t?Lf:K1;window.dispatchEvent(new CustomEvent(e))},[t])},b_=({isVisible:t})=>{(0,_6.A)(()=>window.dispatchEvent(new CustomEvent(Q1))),(0,h.useEffect)(()=>{const e=t?Ef:Q1;window.dispatchEvent(new CustomEvent(e))},[t])},y_=({children:t,hideNavToHome:e,navNextEnabled:n,navFinishEnabled:o})=>{const r=(0,h.useRef)(null),a=(0,h.useRef)(null),i=(0,h.createRef)(null),l=(0,h.useRef)(),u=Bn(),d=_u(a),m=_u(i),p=C_(),f=(0,h.useCallback)(()=>{r.current?.scrollTo({top:0,behavior:"smooth"})},[]),v=(0,h.useCallback)(()=>{const C=r.current?.scrollHeight;r.current?.scrollTo({top:C,behavior:"smooth"})},[]);(0,qt.A)(kd,f),(0,qt.A)(Ad,v),x_({isVisible:d}),b_({isVisible:m}),(0,h.useEffect)(()=>{if(!p&&a.current){const x=(a.current?.clientHeight??0)+1;r.current?.scrollTo({top:x})}},[p,a]);const g=K6("navPrev",{visible:d,hide:p});return(0,s.jsx)("div",{className:"page-wrap",id:"page-wrap",ref:r,children:(0,s.jsxs)("div",{className:K6(),children:[!e&&(0,s.jsx)("div",{className:g,children:(0,s.jsx)(Gm,{lessonId:u,ref:a})}),t,n&&(0,s.jsx)(G6,{lessonId:u,ref:i}),o&&(0,s.jsx)(_m,{lessonId:u,ref:l})]})})},fl=ee("navButtonsFloating"),Q6=({transitionIn:t,buttonType:e,children:n})=>{const o=(0,h.useRef)(),r={entered:fl(e,{entered:!0}),exiting:fl(e,{exiting:!0}),exited:fl(e,{exited:!0})};return(0,s.jsx)(gs.eB,{in:t,nodeRef:o,timeout:250,children:a=>(0,s.jsx)("div",{className:r[a],ref:o,children:n})})},L_=250,Z6={threshold:.2},E_=({topRef:t,bottomRef:e,pageWrapRef:n,currentLessonId:o})=>{const r=_u(t,Z6),a=_u(e,Z6),[i,l]=(0,h.useState)(!1),[u,d]=(0,h.useState)(!1),[m,p]=(0,h.useState)(!1),f=(0,h.useCallback)(()=>{n.current?.scrollTo({top:2,behavior:"smooth"})},[n]);return(0,tu.A)(f),(0,h.useEffect)(()=>{l(!0);const v=setTimeout(()=>{f(),l(!1)},L_);return()=>{clearTimeout(v)}},[o,f]),(0,h.useEffect)(()=>{d(a&&!i),p(r&&!i)},[a,r,i]),{showPrev:m,showNext:u}},S_=({children:t,isCurrentLessonQuiz:e,navNextEnabled:n,hideNavToHome:o,navFinishEnabled:r})=>{const a=(0,h.useRef)(),i=(0,h.useRef)(),l=(0,h.useRef)(),u=(0,h.useRef)(),d=(0,h.useRef)(),m=(0,h.useRef)(),p=Bn(),{showNext:f,showPrev:v}=E_({topRef:d,bottomRef:m,pageWrapRef:a,currentLessonId:p}),g=(0,h.useCallback)(()=>{a.current?.scrollTo({top:0,behavior:"smooth"})},[]),C=(0,h.useCallback)(()=>{const x=a.current?.scrollHeight;a.current?.scrollTo({top:x,behavior:"smooth"})},[]);return(0,qt.A)(kd,g),(0,qt.A)(Ad,C),(0,h.useEffect)(()=>{e&&(n||r)&&C()},[e,n,r,C]),(0,s.jsxs)("div",{className:"page-wrap",id:"page-wrap",ref:a,children:[(0,s.jsx)("div",{className:fl("top"),ref:d}),!o&&(0,s.jsx)(Q6,{buttonType:"prev",transitionIn:v,children:(0,s.jsx)(Gm,{lessonId:p,onFocus:g,ref:i})}),t,(0,s.jsx)(Q6,{buttonType:"next",transitionIn:f&&(n||r),children:n?(0,s.jsx)(G6,{lessonId:p,onFocus:C,ref:l}):r?(0,s.jsx)(_m,{lessonId:p,onFocus:C,ref:u}):null}),(0,s.jsx)("div",{className:fl("bottom"),ref:m})]})};var Gu=c(26372);class T_ extends Gu.Component{nodeRef=Gu.createRef();constructor(e){super(e),this.handleTransition=this.handleTransition.bind(this),this.onEnter=this.onEnter.bind(this),this.onEntered=this.onEntered.bind(this),this.onExit=this.onExit.bind(this),this.onExited=this.onExited.bind(this)}handleTransition(e){const n=this.transitionState;n==="entering"?this.onEnter(e):n==="exiting"&&this.onExit(e)}onEnter(e){const n=this.nodeRef.current;n&&n.componentWillEnter?n.componentWillEnter(e):e()}onEntered(){const e=this.nodeRef.current;e&&e.componentDidEnter&&e.componentDidEnter()}onExit(e){const n=this.nodeRef.current;n&&n.componentWillExit?n.componentWillExit(e):e()}onExited(){const e=this.nodeRef.current;e&&e.componentDidExit&&e.componentDidExit()}render(){const{children:e}=this.props;return(0,s.jsx)(gs.eB,{addEndListener:this.handleTransition,nodeRef:this.nodeRef,onEntered:this.onEntered,onExited:this.onExited,unmountOnExit:!0,...this.props,children:n=>(this.transitionState=n,e&&Gu.cloneElement(Gu.Children.only(e),{ref:this.nodeRef}))})}}const{FULL:I_,FLOATING:Y6}=A.AY,N_=ee("lessonNavigation"),j_=({children:t})=>{const e=(0,h.createRef)();return(0,s.jsx)("div",{className:"page-wrap",id:"page-wrap",ref:e,children:t})},k_=(t,e)=>t+(e?.drawCount??1),A_=(t=[])=>t.reduce(k_,0),R_=({children:t,isPreviewLesson:e})=>{const{buttonNavigationStyle:n}=(0,xe.DX)(),{pathname:o}=(0,ie.zy)(),r=(0,xe.DX)(),{showNavigationButtons:a,lessonsOnly:i,lmsOptions:l={}}=r,u=(0,h.useRef)(),d=Is(480),m=Bn(),p=Es(m)||{},f=gn(m)||{},[v,g]=(0,h.useState)(n),C=i[0].id,x=r?.exportSettings?.webExportSettings,L=!Ao.isInstantLink&&(l?.disableCoverPage||x?.disableCoverPage)&&C===m,y=!Ao.isInstantLink&&l?.disableCoverPage,E=l?.disableCoverPage?L:y;(0,h.useEffect)(()=>{n!==v&&(g(n),window.dispatchEvent(new CustomEvent(kd)))},[n,v]);const b=Hv(p)||(0,wt.Sg)(p)?f.isComplete:!0,S=f.activeIndex===A_(p.items)+1,T=p.type==="quiz"&&!S||p.settings?.continueType==="continue",I=p&&qr({course:r,lesson:p}),j=m==="progress-summary",M=window.isPublicShare,H=I&&!e&&b&&!T&&!j,D=!I&&b&&ze.BI&&!M&&!j&&!e&&!(0,et.Hm)()&&!T,P=N_("wrapper",{full:n===I_||d,floating:n===Y6&&!d}),k=!a||e?j_:n===Y6&&!d?S_:y_;return(0,h.useEffect)(()=>{const w=document.querySelector(".page__content");w&&w.classList.add("page__content--preview-nav")},[k]),(0,s.jsx)("div",{className:P,ref:u,children:(0,s.jsx)(k,{hideNavToHome:E,navFinishEnabled:D,navNextEnabled:H,children:(0,s.jsx)(GW,{children:(0,s.jsx)(gs.F,{component:"div",children:(0,s.jsx)(T_,{children:t},o)})})})})};var P_=c(44795),w_=c.n(P_),M_=c(80006),O_=c.n(M_),D_=c(63083),X6=c(75921);function B_(t){return t?.slidesUI?.slideDirection??it.fY.UP}function H_(){return(0,Q.d4)(B_)}function F_(t){return t?.slidesUI?.exitingSlideOffset??0}function V_(){return(0,Q.d4)(F_)}const Ta=ee("blocks-lesson-slide"),J6="#fff",z_=["image full","image text overlay","quote background"],q6=({className:t})=>{const e=bn()||J6;return(0,s.jsx)("div",{className:t,style:{background:e}})},U_=({block:t})=>(0,s.jsx)(th,{block:t,children:(0,s.jsx)(q6,{className:Ta("background-top")})}),$_=({block:t})=>(0,s.jsx)(th,{block:t,children:(0,s.jsx)(q6,{className:Ta("background-bottom")})});function W_(t,e){const n=e.blocks?.length??1,o=n==1,r=n==2,a=e.blocks?.[0],i=e.blocks?.find(H=>H.settings.backgroundType===A.xj.IMAGE),l=t.settings.backgroundType===A.xj.IMAGE,u=t.id===a?.id,d=t.family==="multimedia",m=t.family==="mondrian",p=t.family==="buttons",v=t.variant==="accordion"&&document.querySelector(`[data-block-id="${t.id}"] [data-accordion-status="closed"]`)!=null,g=document.querySelector(`[data-block-id="${t.id}"] [data-block-text]`)?.clientHeight>300,C=AU(t.family,t.variant)||g,x=document.querySelector("[data-continue-sr]")!=null,L=!C&&r&&x&&document.querySelector("[data-continue-btn]")==null,y=o&&l&&!L,E=l&&!L&&!C,b=d||p||m;return Ta("connected-blocks",{"min-half-height":i&&(r&&!L&&!C||v||E),"full-height":L||y,"top-block":u&&!o&&!C&&!b,"top-block-centered":u&&!o&&b})}const __=({hasTransitioned:t,onContinue:e,prefersKeyboardNavigation:n,previewType:o,slide:r,transitionState:a},i)=>{const l=Lt(),u=Bn(),d=(0,nt.useLabelsMap)(),m=ph(),p=gn(u),f=!0,{animateBlockEntrance:v,color:g,id:C,title:x,enableVideoPlaybackSpeed:L,publishedAt:y,tenantId:E}=l;(0,h.useImperativeHandle)(i,()=>b.current);const b=(0,h.useRef)(),S=H_(),T=V_(),I=`${a}-${S}`,j=Ta("wrapper",{exiting:a==="exiting"}),{blocks:M,lastBlock:H}=r,D=(0,h.useCallback)(we=>{we===H?.id&&e()},[H,e]),P=Ta("inner",{[I]:!0}),F=Ta("lesson",{slides:f,"touch-preview":Qc(o)}).toString(),k=r.blocks.length==1,{settings:w,type:O,variant:W}=r.blocks?.[0]??{},G=k&&w.backgroundType===A.xj.IMAGE,$=k&&!G&&aa()(`${O} ${W}`,z_),ce=$||G,Ee=r.blocks?.[0],Ne=r.blocks?.[r.blocks.length-1],De=Ee?.settings?.backgroundType!==A.xj.IMAGE,Ke=Ne?.settings?.backgroundType!==A.xj.IMAGE,Ae=Ta("full-width-image",{legacy:$,background:G});return(0,s.jsx)("div",{className:j,style:{top:T},children:(0,s.jsxs)("div",{className:P,children:[De&&(0,s.jsx)(U_,{block:Ee}),Ke&&(0,s.jsx)($_,{block:Ne}),(0,s.jsx)("div",{className:F,ref:b,children:M.map((we,he)=>{const oe=k?!1:d6({blocks:r.blocks,lessonProgress:p,currentBlockIndex:he}),Be=ce?Ae:W_(we,r);return(0,s.jsx)(c6,{animateBlockEntrance:v,block:we,className:Be,color:g,courseId:C,courseTitle:x,defaultBackgroundColor:J6,enableVideoPlaybackSpeed:L,hideBlock:oe,index:he,isFirstLesson:!0,isOnlyBlockInStep:k,labels:d,lessonId:u,lessonProgress:p,loadMedia:t,onContinue:D,partnerContent:m,prefersKeyboardNavigation:n,previewType:o,publishedAt:y,tenantId:E},we.blockId)})})]})})},G_=(0,h.forwardRef)(__);var K_=c(68061),Q_=c.n(K_);const e5=ee("blocks-slide-indicator-tooltip"),Z_=({disabled:t,left:e,text:n,top:o,visible:r},a)=>{let i=(0,s.jsx)("span",{"aria-hidden":"true",children:n});return t&&(i=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(rt,{classNameIcon:e5("icon"),name:"lock"}),(0,s.jsx)("span",{className:"visually-hidden-always",children:"(locked content)"})]})),(0,s.jsx)("div",{"aria-hidden":!r,className:e5("wrapper",{disabled:t,visible:r}),ref:a,role:"tooltip",style:{left:e,top:o},children:i})},t5=(0,h.forwardRef)(Z_);t5.propTypes={disabled:We().bool.isRequired,left:We().number,text:We().string.isRequired,top:We().number,visible:We().bool.isRequired};const Y_=t5;function X_(t){const e=(0,h.useRef)();return e.current||=t(),e}const Ku=ee("blocks-slide-indicator"),J_=({active:t,blockNavigationStyle:e,disabled:n,numberOfSlides:o,onKeyDown:r,onClick:a,slideIndex:i},l)=>{const{prefersKeyboardNavigation:u}=Pd()??{},[d,m]=(0,h.useState)(!1),[p,f]=(0,h.useState)(),v=(0,h.useRef)(),g=(0,h.useRef)(),C=(0,h.useRef)(),x=e===A.Dw.NUMBERS,L=i+1,y=`${L} / ${o}`,E=t?`Step ${L} of ${o}, current step`:`Go to step ${L} of ${o}`,b=X_(()=>document.getElementById("portal")),S=(0,h.useCallback)(()=>{if(v.current&&g.current){const W=v.current.getBoundingClientRect(),G=g.current.getBoundingClientRect(),$=W.left-G.width-18,ce=Math.round(W.top-G.height/2+W.height/2);f({left:$,top:ce})}},[]),T=(0,h.useCallback)(()=>{C.current=setTimeout(()=>{S(),m(!0)},300)},[S]),I=(0,h.useCallback)(()=>{clearTimeout(C.current),m(!1)},[]),j=(0,h.useCallback)(()=>{a(i)},[a,i]),M=(0,h.useCallback)(W=>{hn(W)&&m(!1),r(W)},[r]),H=(0,h.useCallback)(()=>{T()},[T]),D=(0,s.jsx)(Y_,{disabled:n,left:p?.left,ref:g,text:y,top:p?.top,visible:d}),P=Ku("button",{active:t,disabled:n,numbers:x}),F=Ku("wrapper"),k=Ku("circle",{active:t,disabled:n}),w=Ku("number",{active:t,disabled:n}),O=x?(0,s.jsx)("span",{"aria-hidden":"true",className:w,children:L}):(0,s.jsx)(rt,{classNameIcon:k,name:"circle-solid"});return(0,s.jsxs)("div",{className:F,ref:l,children:[(0,s.jsx)("button",{"aria-current":t?"page":void 0,"aria-disabled":n,"aria-label":E+(n?" (unavailable until previous content is completed)":""),className:P,"data-control":"",onBlur:I,onClick:n?void 0:j,onFocus:u?H:void 0,onKeyDown:M,onMouseEnter:T,onMouseLeave:I,ref:v,type:"button",children:O}),(0,oo.createPortal)(D,b.current)]})},q_=(0,h.forwardRef)(J_),Ia=ee("blocks-slide-controls"),s5=38,eG=8,tG=t=>{const{activeSlideIndex:e,blockNavigationStyle:n,numberOfSlides:o,onGoToCover:r,onSlideClick:a,slideDisabledState:i,previewType:l}=t,u=(0,h.useRef)(),d=(0,h.useRef)(),[m,p]=(0,h.useState)(!1),[f,v]=(0,h.useState)(!1),g=(0,h.useCallback)(y=>{let E=!1,b=-1;if(ca(y)||Nr(y)){if(e-1>=0)b=e-1;else{r();return}E=!0}else la(y)||jr(y)?(e+1<=o-1&&(b=e+1),E=!0):EL(y)?(b=0,E=!0):LL(y)&&(b=o-1,i[b]&&(b=i.findLastIndex(S=>!S)),E=!0);b>=0&&!i[b]&&a(b),E&&(y.stopPropagation(),y.preventDefault())},[e,o,r,a,i]);(0,h.useEffect)(()=>{const y=u.current,E=d.current;if(y&&E){const b=y.getBoundingClientRect(),S=E.getBoundingClientRect(),T=b.bottom-s5,I=b.top+s5;S.bottom>T?y.scrollBy({top:S.bottom-T,left:0,behavior:"smooth"}):S.top<I&&y.scrollBy({top:S.top-I,left:0,behavior:"smooth"})}},[e]);const C=(0,h.useCallback)(()=>{const y=u.current;y&&(p(y.scrollTop>eG),v(y.clientHeight+y.scrollTop<y.scrollHeight))},[]);(0,tu.A)(C);const x=(0,h.useCallback)(xu()(C,100),[C]);Rd(u.current,C);const L=Ia({"touch-preview":Qc(l)});return(0,s.jsx)("div",{className:L,children:(0,s.jsx)("div",{className:Ia("page-control-wrapper"),children:(0,s.jsxs)("div",{className:Ia("page-control-inner-wrapper"),children:[(0,s.jsx)("div",{className:Ia("page-control"),onScroll:x,ref:u,children:(0,s.jsx)("div",{className:Ia("slide-dot-wrapper"),children:Q_()(y=>{const E=y===e;return(0,s.jsx)(q_,{active:E,blockNavigationStyle:n,disabled:i[y],numberOfSlides:o,onClick:a,onKeyDown:g,ref:E?d:null,slideIndex:y},y)},o)})}),(0,s.jsx)("div",{className:Ia("overlay-top",{visible:m})}),(0,s.jsx)("div",{className:Ia("overlay-bottom",{visible:f})})]})})})},n5=100;var vl=c(26372);const sG=50,nG=1e3,oG=({onSwipeDownHandler:t,onSwipeUpHandler:e,target:n,timeoutDuration:o=nG})=>{const[r,a]=vl.useState(!1),i=vl.useRef(void 0),l=vl.useCallback(()=>{i.current&&clearTimeout(i.current),i.current=setTimeout(()=>a(!1),o)},[o]),u=vl.useCallback(d=>{const m=Math.abs(d.deltaY);if(r)m<sG?(i.current&&clearTimeout(i.current),a(!1)):l();else if(m>n5){const p=d.deltaY>0?t:e;a(!0),l(),p()}},[l,r,t,e]);vl.useEffect(()=>{if(!(!n||!e||!t))return n.addEventListener("wheel",u,{passive:!0}),()=>{i.current&&clearTimeout(i.current),n?.removeEventListener?.("wheel",u,{passive:!0})}},[t,e,u,n])};var Hr=c(70695);const o5="rise-presenter-sync",Kse="presenterMode",rG="NAVIGATE_TO_COVER",r5="NAVIGATE_TO_SLIDE",a5="SLIDE_CHANGE",Qse="PRESENTER_VIEW_EXIT",Wn=ee("lesson-one-page-slides"),aG=ee("page-wrap"),i5=100;function c5(t){if(t==null)return!1;const e=t.tagName.toLowerCase(),n=t.getAttribute("type"),o=t.getAttribute("role"),r=t.tabIndex,a=e==="button"||["div","span"].includes(e)&&(o==="button"||r===0),i=e==="input"&&["radio","text"].includes(n)||e==="textarea"||o==="radio",l=["audio","video"].includes(e),u=o==="tab",d=document.querySelector(".quiz-card__interactive")?.contains?.(t)??!1;return a||i||l||u||d}const iG=t=>(e,n,o)=>l6(e,o.slice(0,-1),t),cG=(t,e)=>({disabled:n,slides:o},r)=>{const a=Ts()(As()(d=>t[d.id]),qo()(d=>Sr()(d,t[d.id])))(r),i=r[r.length-1],l=n||NU(a)||jU(a,e),u={blocks:a,lastBlock:i,disabled:n};return{disabled:l,slides:w_()(u,o)}},Qu=t=>{let e=!1,n=!1;if(t){const{clientHeight:o,scrollHeight:r,scrollTop:a}=t,i=Math.max(0,a),l=r-i;e=l===r,n=l-5<=o}return{isAtTop:e,isAtBottom:n}},lG=/,? +/,dG=[],uG=({lessonProgress:t,prefersKeyboardNavigation:e,previewType:n},o)=>{(0,h.useImperativeHandle)(o,Function.prototype,[]);const{announcePolite:r,clearAnnouncements:a}=gt(),i=(0,h.useRef)(),l=(0,h.useRef)(),u=(0,h.useRef)(),d=(0,h.useRef)(),m=(0,h.useRef)(),p=(0,h.useRef)(),f=(0,h.useRef)(),v=(0,h.useRef)(),g=(0,h.useRef)(null),C=(0,h.useRef)(null),x=(0,h.useRef)(null),L=(0,h.useRef)(0),y=(0,h.useRef)(0),E=(0,Re.Z)(),b=(0,Q.wA)(),[S,T]=(0,h.useState)(0),[I,j]=(0,h.useState)(!0),[M,H]=(0,h.useState)(!1),D=(0,qe.A)(I),P=(0,qe.A)(M),F=(0,h.useRef)(),k=Tn(),w=k?.01:600,{lessons:O,...W}=(0,xe.DX)()||{},G=W?.theme?.blockNavigationStyle||A.Dw.DOTS,$=O[0],ce=$?.items||dG,Ee=(0,h.useCallback)(()=>{const xt=u.current?.scrollHeight>u.current?.clientHeight,{isAtBottom:es}=Qu(u.current),rs=xt&&!I&&!es;rs!=M&&H(rs)},[M,I]);Rd(i.current,Ee),(0,h.useLayoutEffect)(Ee,[I]);const Ne=(0,h.useCallback)(()=>{u.current?.scrollTo({top:0})},[]),De=(0,h.useMemo)(()=>(0,un.Ve)(Rm([],ce,t).map(iG(t)),As()(Fv.A),O_()(Ct()("blockId"))),[ce,t]),Ke=(0,h.useCallback)(xt=>{const es={disabled:!1,slides:[]},{slides:rs}=Kd()(cG(De,t),es,xt);return rs},[De,t]),Ae=(0,h.useMemo)(()=>(0,un.Ve)(ce,vU,Ke),[ce,Ke]),we=(0,h.useMemo)(()=>o3()("disabled",Ae),[Ae]),he=(0,as.No)(W);(0,h.useEffect)(()=>{L.current=S},[S]),(0,h.useEffect)(()=>{y.current=Ae.length},[Ae.length]),(0,h.useEffect)(()=>{if(!(!he||typeof BroadcastChannel>"u"))try{g.current||(g.current=new BroadcastChannel(o5));const xt=g.current,es=rs=>{if(rs.data.type===rG)C.current&&C.current();else if(rs.data.type===r5){const Vr=rs.data.slideIndex,yl=Math.min(Vr-1,y.current-1);if(yl>=0){const sQ=yl<L.current?it.fY.DOWN:it.fY.UP;b((0,Hr.zP)(sQ)),x.current&&x.current(yl)}}};return xt.addEventListener("message",es),()=>{xt.removeEventListener("message",es)}}catch{}},[he,b]),(0,h.useEffect)(()=>{if(!(!he||!g.current))try{const xt=S+1;g.current.postMessage({type:a5,slideIndex:xt})}catch{}},[he,S]),(0,h.useEffect)(()=>()=>{g.current?.close(),g.current=null},[]);const oe=Ae.length,Be=Ae[S],Pe=Qc(n),$e=G!==A.Dw.NONE,Oe=S===oe-1,pt=t?.isComplete,vt=M||Oe?!pt||!ze.BI||window.isPublicShare:we[S+1],It=!M&&!Oe,Ht=Oe&&!ze.BI,Wt=(0,qe.A)(Ht),ds=M&&!Oe,Vo=(0,h.useCallback)(pu()(Ee,100),[Ee]);(0,h.useEffect)(()=>{const xt=u.current;return xt?.addEventListener("scroll",Vo,{passive:!0}),()=>xt?.removeEventListener("scroll",Vo,{passive:!0})},[Vo]),(0,h.useEffect)(()=>{document.activeElement===p.current?!P&&M?m.current?.focus({preventScroll:!0}):!Wt&&Ht&&f.current?.focus({preventScroll:!0}):document.activeElement===m.current&&P&&!M&&p.current?.focus({preventScroll:!0})},[M,P,Wt,D,Ht,I]),(0,D_.A)(()=>{Wf(),F.current=setTimeout(()=>{j(!1),u.current?.focus?.()},w+i5)},()=>{clearTimeout(F.current)});const Bs=(0,h.useCallback)(xt=>{const es=i.current?.getBoundingClientRect()?.top??0;b((0,Hr.ty)(es));const rs=Math.max(0,Math.min(xt,Ae.length-1));T(rs),Ne()},[b,Ne,Ae.length]),zo=(0,h.useCallback)(()=>{I||(j(!0),Jo(()=>{E("/")},"lesson-to-one-page-cover-stepped"))},[E,I]),Fr=W?.exportSettings?.webExportSettings,Uo=!Ao.isInstantLink&&(W?.lmsOptions?.disableCoverPage||Fr?.disableCoverPage),ar=(0,h.useCallback)(Uo?()=>{b((0,Hr.zP)(it.fY.DOWN)),Bs(0)}:zo,[Uo,Bs,zo,b,Hr.zP]);(0,h.useEffect)(()=>{C.current=ar},[ar]),(0,h.useEffect)(()=>{x.current=Bs},[Bs]);const Na=(0,h.useCallback)(()=>{I||(S>0?(b((0,Hr.zP)(it.fY.DOWN)),Bs(S-1)):zo())},[Bs,b,S,I,zo]),ir=(0,h.useCallback)(()=>{I||(Oe&&ze.BI?E("/lessons/progress-summary"):(b((0,Hr.zP)(it.fY.UP)),Bs(S+1)))},[Bs,b,E,Oe,S,I]),zi=(0,h.useCallback)(()=>{(S<oe-1||Oe&&ze.BI)&&ir()},[Oe,S,oe,ir]),Ui=(0,h.useCallback)(()=>{const xt=u.current?.scrollTop??0,es=u.current?.clientHeight??0,rs=k?"instant":"smooth";u.current?.scrollTo({top:xt+es,behavior:rs})},[k]),$o=(0,h.useCallback)(()=>{ir()},[ir]),ja=(0,h.useCallback)(()=>{Ui()},[Ui]),e0=(0,h.useCallback)(xt=>{if(xt===S||I)return;const es=xt<S?it.fY.DOWN:it.fY.UP;b((0,Hr.zP)(es)),Bs(xt),queueMicrotask(()=>{d.current?.querySelectorAll("[data-control]")?.[xt]?.focus?.()})},[Bs,b,S,I]),bl=(0,h.useCallback)(()=>j(!0),[]),Yt=(0,h.useCallback)(()=>{j(!1),setTimeout(()=>{if(l.current&&d.current?.contains?.(document.activeElement)){const xt=Nm()(l.current.innerText,{length:75,separator:lG});a(),r(`Content preview: ${xt}`)}else u.current?.focus?.()},0)},[r,a]),Ws=(0,h.useCallback)(()=>{if(Pe)return;const{isAtTop:xt}=Qu(u.current);if(xt){S===0?ar():Na();return}},[Pe,Na,S,ar]),cr=(0,h.useCallback)(()=>{if(Pe||Oe&&!ze.BI||vt)return;const{isAtBottom:xt}=Qu(u.current);if(xt){$o();return}},[Oe,vt,Pe,$o]),t0=(0,h.useCallback)(()=>{const{isAtBottom:xt,isAtTop:es}=Qu(u.current),rs=document.documentElement.clientWidth===window.innerWidth;return(xt||es)&&rs},[]),ep=(0,h.useCallback)(xt=>{!d.current?.contains?.(document.activeElement)&&!c5(xt.target)&&Ws()},[Ws]),s0=(0,h.useCallback)(xt=>{!d.current?.contains?.(document.activeElement)&&!c5(xt.target)&&cr()},[cr]),_s=(0,h.useCallback)(xt=>{const{itemId:es}=xt.detail,rs=Ae.findIndex(Vr=>Vr.blocks.find(yl=>yl.id===es));rs===-1||rs===S||(b((0,Hr.zP)(rs>S?it.fY.UP:it.fY.DOWN)),Bs(rs))},[Ae,S,b,Bs]);(0,h.useEffect)(()=>(window.addEventListener(Kt,_s),()=>{window.removeEventListener(Kt,_s)})),(0,X6.A)("ArrowUp",Ea(),ep),(0,X6.A)("ArrowDown",Ea(),s0),oG({target:u.current,onSwipeUpHandler:Ws,onSwipeDownHandler:cr,timeoutDuration:w+i5});const Gs=Wn("gradient",{visible:M});return(0,s.jsx)("div",{className:Wn({}),children:(0,s.jsx)("div",{className:aG({transitioning:I}),id:"page-wrap",ref:u,tabIndex:"-1",children:(0,s.jsx)(ml,{type:W.type,children:(0,s.jsx)(Pi,{type:W.type,children:(0,s.jsx)(wi,{children:(0,s.jsx)(ha,{children:(0,s.jsxs)("div",{"data-lesson-id":$?.id,children:[(0,s.jsxs)("nav",{"aria-label":"Step navigation",className:Wn("controls",{"touch-preview":Pe}),ref:d,children:[(0,s.jsxs)("button",{"aria-disabled":S===0&&Uo,"aria-hidden":S===0&&Uo,className:Wn("prev-btn",{"touch-preview":Pe}),onClick:Na,type:"button",children:[(0,s.jsx)(rt,{classNameIcon:Wn("arrow-icon",{"touch-preview":Pe}),name:"arrow-up"}),(0,s.jsx)("span",{className:"visually-hidden-always",children:"Previous"})]}),$e&&(0,s.jsx)(tG,{activeSlideIndex:S,blockNavigationStyle:G,numberOfSlides:oe,onGoToCover:zo,onSlideClick:e0,previewType:n,slideDisabledState:we}),(0,s.jsxs)("div",{className:Wn("next-btns"),children:[(0,s.jsxs)("button",{"aria-disabled":!ds,"aria-hidden":!ds,className:Wn("page-down-btn",{"touch-preview":Pe}),onClick:ds?ja:void 0,ref:m,tabIndex:ds?void 0:-1,type:"button",children:[(0,s.jsx)(rt,{classNameIcon:Wn("arrow-icon",{"touch-preview":Pe}),name:"arrow-down"}),(0,s.jsxs)("span",{className:"visually-hidden-always",children:["Scroll page down",!M&&(0,s.jsx)("span",{children:"(disabled because this is the bottom of the page)"}),Oe&&(0,s.jsx)("span",{children:"(disabled since this is the last step)"})]})]}),(0,s.jsxs)("button",{"aria-disabled":vt,"aria-hidden":!It,className:Wn("next-btn",{"touch-preview":Pe}),onClick:vt?void 0:$o,ref:p,tabIndex:Oe?-1:void 0,type:"button",children:[(0,s.jsx)(rt,{classNameIcon:Wn("arrow-icon",{"touch-preview":Pe}),name:"arrow-down"}),(0,s.jsxs)("span",{className:"visually-hidden-always",children:["Go to next step",vt&&(0,s.jsx)("span",{children:"(disabled until content is completed)"}),Oe&&(0,s.jsx)("span",{children:"(disabled since this is the last step)"})]})]}),(0,s.jsxs)("button",{"aria-disabled":!Ht,"aria-hidden":!Ht,className:Wn("restart-btn",{"touch-preview":Pe}),onClick:Ht?ar:void 0,ref:f,tabIndex:Oe?void 0:-1,type:"button",children:[(0,s.jsx)(rt,{classNameIcon:Wn("restart-icon",{"touch-preview":Pe}),name:"arrow-rotate-left"}),(0,s.jsx)("span",{className:"visually-hidden-always",children:"Restart"})]})]})]}),(0,s.jsxs)(Xd,{onShouldRecognizeGesture:t0,onSwipeDown:Ws,onSwipeUp:cr,children:[(0,s.jsx)("main",{"aria-describedby":"step-counter",ref:l,tabIndex:"0",children:(0,s.jsx)(gs.F,{children:(0,s.jsx)(gs.eB,{mountOnEnter:!0,nodeRef:v,onExited:Yt,onExiting:bl,timeout:w,unmountOnExit:!0,children:xt=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"visually-hidden-always",id:"step-counter",ref:v,children:`Step ${S+1} of ${oe}`}),(0,s.jsx)(G_,{hasTransitioned:!I,onContinue:zi,prefersKeyboardNavigation:e,previewType:n,ref:i,slide:Be,transitionState:xt})]})},S)})}),(0,s.jsx)("div",{className:Gs})]})]})})})})})})})},hG=(0,h.forwardRef)(uG),l5=ee("blocks-lesson-restart-button"),mG=({className:t,onClick:e})=>{const n=l5.mix(t);return(0,s.jsx)("button",{className:n,onClick:e,type:"button",children:(0,s.jsx)(rt,{classNameIcon:l5("icon"),name:"arrow-rotate-left"})})},pG=ee("lesson-one-page-scroll"),fG=({previewType:t,prefersKeyboardNavigation:e,lessonProgress:n})=>{const o=(0,h.useRef)(),[r,a]=(0,h.useState)(!1),{lessons:i,...l}=(0,xe.DX)()||{},{lmsOptions:u={}}=l||{},d=(0,xe.d_)(),m=(0,nt.useLabelsMap)(),{match:p}=(0,ie.zy)(),f=(0,Re.Z)(),v=i[0],g=v?.id,C=ph(),x=v?.items||[],L=(0,as.cZ)(l),y=n?.isComplete&&!ze.BI&&!L,E=n?.isComplete&&ze.BI,b=l?.exportSettings?.webExportSettings,S=!Ao.isInstantLink&&(u?.disableCoverPage||b?.disableCoverPage),T=(0,h.useCallback)(()=>{r||(S?o.current?.scrollTo({top:0,behavior:Tn()?"instant":"smooth"}):(a(!0),Jo(()=>{f("/")},"lesson-to-one-page-cover-continuous").finally(()=>{a(!1)})))},[f,S,r]);return(0,s.jsx)("div",{className:pG(),children:(0,s.jsx)("div",{className:"page-wrap",id:"page-wrap",ref:o,children:(0,s.jsx)(ml,{type:l.type,children:(0,s.jsx)(Pi,{type:"blocks",children:(0,s.jsxs)(Pu,{children:[(0,s.jsx)(U6,{}),(0,s.jsx)(wi,{children:(0,s.jsx)(ha,{children:(0,s.jsxs)("div",{"data-lesson-id":v?.id,children:[(0,s.jsx)(m6,{animateBlockEntrance:l?.animateBlockEntrance,blocks:x,color:l?.color,courseId:l?.id,courseTitle:d,enableVideoPlaybackSpeed:l?.enableVideoPlaybackSpeed,isFirstLesson:!0,isNavTypeStepped:!1,labels:m,lessonId:g,lessonProgress:n,loadMedia:!0,match:p,partnerContent:C,prefersKeyboardNavigation:e,previewType:t,publishedAt:l?.publishedAt,tenantId:l?.tenantId,type:l?.type}),y&&(0,s.jsx)(mG,{onClick:T}),E&&(0,s.jsx)(_m,{lessonId:g})]})})})]})})})})})},d5=ee("microlearning-progress-summary"),vG=ee("page-wrap"),gG=({course:t,courseProgress:e,isStepped:n,lesson:o})=>{const r=(0,h.useRef)(),a=(0,h.useRef)(),[i,l]=(0,h.useState)(!1),u=d5("content",{stepped:n,mounted:i}).toString();return(0,tu.A)(()=>{const d=(a.current?.clientHeight??0)+1;r.current?.scrollTo({top:d}),l(!0)}),(0,s.jsxs)("div",{className:vG(),id:"page-wrap",ref:r,children:[(0,s.jsx)(Gm,{className:d5("previous").toString(),lessonId:o?.id,ref:a}),(0,s.jsx)(C6,{contentClassName:u,course:t,courseProgress:e})]})},CG=t=>{const{isProgressSummary:e,courseProgress:n,lessonProgress:o,prefersKeyboardNavigation:r,previewType:a}=t,i=Lt(),l=i?.theme?.blockNavigationType===A.HC.STEPPED;return e?(0,s.jsx)(gG,{course:i,courseProgress:n,isStepped:l}):l?(0,s.jsx)(hG,{lessonProgress:o,prefersKeyboardNavigation:r,previewType:a}):(0,s.jsx)(fG,{lessonProgress:o,prefersKeyboardNavigation:r,previewType:a})};var xG=c(26372);function u5(){const t=(0,Q.wA)();return xG.useMemo(()=>({advanceQuizLessonToEnd:e=>t((0,xs.YC)(e)),submitQuizAnswer:e=>t((0,xs.kK)(e)),setQuizLessonTimeRemaining:e=>t((0,xs.hy)(e))}),[t])}var bG=c(26372);const h5=-1,yG="MULTIPLE_CHOICE";function LG({allowedRetries:t,currentRetries:e}){return t===h5?!1:e>=t}function EG({lesson:t,lessonProgress:e,getL10nRecursive:n}){const{advanceQuizLessonToEnd:o,submitQuizAnswer:r}=u5();return bG.useCallback(()=>{if(!t||!po(t))return;const a=t.settings??{},i=a.passToContinue??!1,l=Number(a.retryCount??h5),u=Object.values(e?.items??{}).filter(d=>!d.isComplete);if(u.length>0){const d=e.retryAttempts??0,m=LG({allowedRetries:l,currentRetries:d});u.forEach(p=>{const f=T$({lesson:t,question:p});if(!f)return;const v=f.type||yG,g=n({duration:{startTime:0,stopTime:0},id:t.id,isCorrect:!1,isUnfinished:!0,item:{id:String(f.id||""),title:String(f.title||""),type:v},itemProgress:p,retryAttempts:d,title:t.title});(0,et.bb)(g),r({finalRetryAttempt:m,isCorrect:!1,itemId:p.id,lessonId:t.id,passToContinue:i})})}o(t.id)},[o,n,e,t,r])}var m5=c(26372);function SG({children:t}){const e=vr(),n=to(),o=Es(n),r=gn(n),a=(0,st.NB)(),{setQuizLessonTimeRemaining:i}=u5(),l=m5.useMemo(()=>r??{},[r]),u=EG({lesson:o,lessonProgress:l,getL10nRecursive:a}),d=m5.useMemo(()=>mo(o)?o.settings:void 0,[o]),m=!!d?.timer,p=d?.timerDuration;return(0,s.jsx)(mW,{courseProgress:e,currentLessonId:n,handleExpiredQuiz:u,isTimedQuiz:m,setQuizLessonTimeRemaining:i,timerDuration:p,children:t})}const TG=t=>t?"mondrianTranscript"in t?t.mondrianTranscript:"tmp"in t&&t.tmp?.audio?.transcript||t.audio?.transcript:null;var IG=c(26372);const NG=960,Km=ee("transcript-panel");function jG({enhancedLabels:t,lessonId:e,questionBankActiveIndex:n}){const o=(0,Q.wA)(),{audioPlayerIdOpen:r,focusing:a,refocusTarget:i,transcriptMedia:l}=Yc(),u=!!r,d=(0,h.useId)(),m=(0,Q.d4)(oe=>e?eo(e,oe):null),f=e?.startsWith("question-bank-")?n:m?.type==="quiz"?m.activeIndex:void 0,v=Is(NG),[g,C]=(0,h.useState)(0),[x,L]=(0,h.useState)(!1),[y,E]=(0,h.useState)(!1),b=(0,h.useRef)(!1),S=(0,h.useRef)(null),T=(0,h.useRef)(null),I=(0,h.useRef)(l),j=(0,h.useRef)(e),M=(0,h.useRef)(f),H=(0,xe.vU)()||t,D=(0,h.useRef)(null),P=(0,h.useRef)({panelHeight:0,startY:null,startHeight:null,startTime:null,velocity:null}),F=(0,h.useCallback)(oe=>{const Pe=P.current.panelHeight,$e=performance.now();E(!0);const Oe=pt=>{const vt=pt-$e,It=Math.min(vt/300,1),Ht=1-Math.pow(1-It,3),Wt=Pe+(oe-Pe)*Ht;C(Wt),P.current.panelHeight=Wt,It<1?requestAnimationFrame(Oe):(E(!1),L(!1),P.current={startY:null,startHeight:null,startTime:null,panelHeight:null,velocity:null})};requestAnimationFrame(Oe)},[L,E,C]),k=(0,h.useCallback)(oe=>{const{startTime:Be,startY:Pe,startHeight:$e}=P.current;if(!v||Pe===null)return;const Oe=Pe-(oe?.clientY??oe?.touches?.[0]?.clientY??0),pt=$e+Oe;if(C(pt),P.current.panelHeight=pt,Be!==null){const vt=performance.now()-Be,It=Oe/vt;P.current.velocity=It}},[v]),w=(0,h.useCallback)(oe=>{const{velocity:Be}=P.current;if(!Be)return;Object.assign(P.current,{startY:null,startHeight:null,startTime:null}),L(!1);const Pe=window.innerHeight*.66;let $e;Math.abs(Be)>.5?$e=Be>0?window.innerHeight:150:$e=g>=Pe?window.innerHeight:150,F($e),oe instanceof MouseEvent&&(window.removeEventListener("mousemove",k),window.removeEventListener("mouseup",w))},[F,g,k]),O=(0,h.useCallback)(oe=>{!v||T.current.contains(oe.target)||S.current.contains(oe.target)||(Object.assign(P.current,{startY:oe?.clientY??oe?.touches?.[0]?.clientY??null,startHeight:D.current?.clientHeight??0,startTime:performance.now()}),L(!0),oe.nativeEvent instanceof MouseEvent&&(window.addEventListener("mousemove",k),window.addEventListener("mouseup",w)))},[k,w,v,L]);(0,h.useEffect)(()=>{let oe;const Be=()=>{D?.current?.style&&(D.current.style.transition="none",D.current.parentNode.querySelectorAll("div:not(.transcript-panel)").forEach(Oe=>{Oe.style.transition="none"}))},Pe=()=>{clearTimeout(oe),oe=setTimeout(()=>{D?.current?.style&&(D.current.style.transition="",D.current.parentNode.querySelectorAll("div:not(.transcript-panel)").forEach(Oe=>{Oe.style.transition=""}))},200)};return window.addEventListener("resize",Be),window.addEventListener("resize",Pe),()=>{window.removeEventListener("resize",Be),window.removeEventListener("resize",Pe),clearTimeout(oe)}},[]),(0,h.useEffect)(()=>{!u&&b.current&&C(0),a&&u&&D.current&&(D.current.focus(),o(kr({audioPlayerId:r,focusing:!1}))),b.current=u},[r,o,a,u]),(0,h.useEffect)(()=>{u&&l!==I.current&&(I.current=l)},[u,l]),(0,h.useEffect)(()=>{u&&j.current!==e&&o(Wc()),j.current=e},[e,u,o]),(0,h.useEffect)(()=>{u&&M.current!==f&&M.current!==void 0&&o(Wc()),M.current=f},[f,u,o]);const W={role:"button",tabIndex:0,onMouseDown:O,onTouchStart:O,onTouchEnd:w,onTouchMove:k},[G,$]=IG.useState(!1),ce=(0,st.QQ)(G?I.current:l),Ee=TG(ce);let Ne;u&&(Ne=Eh(r));const De=(0,h.useCallback)(()=>{const oe=i??document.getElementById(iv(r));return oe?(oe.focus(),!0):!1},[r,i]),Ke=(0,h.useCallback)(oe=>{oe.stopPropagation(),oe.preventDefault(),o(Wc()),De()},[o,De]),Ae=(0,h.useCallback)(()=>{De()||T.current.focus()},[De]),we=(0,h.useCallback)(()=>{T.current.focus()},[]),he=(0,h.useCallback)(oe=>{r&&oe.key==="Escape"&&Ke(oe)},[r,Ke]);return(0,s.jsxs)(s.Fragment,{children:[u?(0,s.jsx)("div",{onFocus:Ae,tabIndex:0}):null,(0,s.jsx)(gs.B1,{classNames:"transcript-panel",in:u,nodeRef:D,onEnter:()=>$(!1),onEntered:()=>$(!1),onEntering:()=>$(!1),onExit:()=>$(!0),onExited:()=>$(!1),onExiting:()=>$(!0),timeout:300,unmountOnExit:!0,children:(0,s.jsxs)("section",{"aria-hidden":!u,"aria-labelledby":d,className:Z()(Km({isOpen:u,isAnimatingMobileSwipe:y,isDragging:x})),id:Ne,onKeyDown:he,ref:D,style:v&&u?{height:`${g/10}rem`,minHeight:g>0?"33vh":void 0}:{},tabIndex:-1,children:[(0,s.jsxs)("header",{...v?W:{},children:[(0,s.jsx)("h3",{id:d,ref:S,children:H?.audioTranscript}),(0,s.jsx)(jt.ArcButton,{"aria-label":H?.audioHideTranscript,className:Km("close-button"),hierarchy:"tertiary",icon:(0,s.jsx)(rt,{name:"close"}),layout:"icon",onClick:Ke,ref:T})]}),(0,s.jsx)("section",{className:Km("transcript-text",{"not-available":!Ee}),children:Ee||H?.audioNoTranscriptAvailable})]})}),u?(0,s.jsx)("div",{onFocus:we,tabIndex:0}):null]})}var gl=c(26372);const p5={FORWARD:"page-transition",BACK:"page-transition-back"},Zu=({id:t,lessons:e})=>t==="progress-summary"?1/0:e.findIndex(n=>n.id===t),kG=t=>{window.parent.postMessage({type:"preview:lessonChange",data:t},"*")};function AG({currentLessonId:t,lessons:e,isProgressSummary:n}){const o=(0,Re.Z)(),r=gl.useRef(!1),a=gl.useRef(t),i=gl.useCallback(()=>r.current?p5.FORWARD:p5.BACK,[]),l=gl.useCallback(u=>{const d=Zu({id:u,lessons:e});if(n)r.current=!1;else if(u==="progress-summary")r.current=!0;else{const m=Zu({id:t,lessons:e});r.current=m<d}o(`/lessons/${encodeURIComponent(u)}`)},[o,e,n,t]);return gl.useEffect(()=>{const u=Zu({id:t,lessons:e}),d=Zu({id:a.current,lessons:e});u!==d&&e.length>0&&(r.current=d<u),a.current=t,kG(t)},[t,e]),{getNavigateDirection:i,handleNavigate:l}}const Qm=({course:t,courseProgress:e,didNavigate:n,lessons:o=[],previewType:r,sessionPreferences:a})=>{const i=(0,ie.g)(),l=(0,ie.zy)(),u=ze.BI&&i.id==="progress-summary",[d]=(0,h.useState)(i.mode==="preview-lesson"),m=(0,h.useRef)(null),p=Is(480),{getNavigateDirection:f,handleNavigate:v}=AG({currentLessonId:i.id,lessons:o,isProgressSummary:u}),g=(0,as.c3)(t),C=(0,h.useCallback)(()=>{g||(t.theme?.hideLessonHeaders?document.querySelector("main"):document.querySelector("h1"))?.focus({preventScroll:!0})},[t,g]),x=Z()("lesson",{"lesson--preview":d}),L=gn(i.id),y=(0,h.useMemo)(()=>L??{},[L]),E=(0,h.useMemo)(()=>({didNavigate:n,handleNavigate:v,handleStorylineFullscreen:un.lQ,isMobileHeader:p,isProgressSummary:u,lessonProgress:y,navigateDirection:f,onNavigateTransitionEnd:un.lQ,onPageReady:C,previewType:r}),[n,f,C,v,p,u,y,r]);return(0,s.jsxs)(SG,{children:[(0,s.jsxs)("div",{className:"page-lesson-wrap",children:[!g&&(0,s.jsx)(IN,{}),(0,s.jsxs)("div",{className:"page-lesson",children:[(0,s.jsx)(uA,{mode:"readonly",children:(0,s.jsx)("div",{className:x,"data-lesson":!0,ref:m,children:(0,s.jsx)("div",{className:"lesson__content",children:(0,s.jsx)("div",{className:"page-view page-view--visible",children:(0,s.jsx)(TP,{isPreviewLesson:d,children:g?(0,s.jsx)(CG,{courseProgress:e,isProgressSummary:u,lessonProgress:y,prefersKeyboardNavigation:a.prefersKeyboardNavigation,previewType:r}):(0,s.jsx)(R_,{isPreviewLesson:d,children:(0,s.jsx)(r_,{...E},l.pathname)})})})})})}),(0,s.jsx)(jG,{lessonId:String(e.currentLesson)})]})]}),(0,s.jsx)(yh,{onClose:C})]})},RG=t=>{const{course:e}=t,{exportSettings:n,lmsOptions:o}=e,r=n?.webExportSettings,a=n?.exportType==="raw",i=n?.exportType==="lms",l=a&&r?.disableCoverPage,u=i&&o?.disableCoverPage,d=!Ao.isInstantLink&&(l||u),m=e.lessonsOnly[0]?.id;return(0,s.jsxs)(ie.BV,{children:[(0,s.jsx)(ie.qh,{element:(0,s.jsx)(Qm,{...t}),path:"/lessons/:id"}),(0,s.jsx)(ie.qh,{element:(0,s.jsx)(Qm,{...t}),path:"/lessons/:id/:mode"}),d?(0,s.jsx)(ie.qh,{element:(0,s.jsx)(ie.C5,{replace:!0,to:(0,wt.p1)(m)}),index:!0}):(0,s.jsx)(ie.qh,{element:(0,s.jsx)(nv,{...t}),index:!0}),d?(0,s.jsx)(ie.qh,{element:(0,s.jsx)(ie.C5,{replace:!0,to:(0,wt.p1)(m)}),path:"/:mode"}):(0,s.jsx)(ie.qh,{element:(0,s.jsx)(nv,{...t}),path:"/:mode"})]})},Zm=ee("one-page-cover-info");function PG({htmlIdTitle:t}){const e=Za("title");return(0,s.jsxs)("div",{className:Zm(),"data-change-path":e,children:[(0,s.jsx)(z6,{className:Zm("title").toString(),htmlId:t}),(0,s.jsx)(V6,{className:Zm("authors").toString()})]})}const wG=Pt("OnePageCoverInfo",PG);function MG(t){const e=(0,J1.A)(({forwardedRef:o,...r})=>(0,s.jsx)(t,{...r,ref:o})),n=(0,h.forwardRef)((o,r)=>(0,s.jsx)(e,{...o,forwardedRef:r}));return n.displayName=`withRouterRef(${t.displayName||t.name})`,n}const Yu=ee("one-page-cover"),OG=ee("cover");class DG extends h.Component{constructor(e){super(e),this.refLink=(0,h.createRef)(),this.refMain=(0,h.createRef)(),this.transitioning=!1,this.broadcastChannel=null}componentDidMount(){if(Wf(),this.focusMain(),document.addEventListener("keyup",this.onKeyUp),document.addEventListener("wheel",this.onWheel,{passive:!0}),(0,as.No)(this.props.course)&&typeof BroadcastChannel<"u")try{this.broadcastChannel=new BroadcastChannel(o5),this.broadcastChannel.postMessage({type:a5,slideIndex:0}),this.broadcastChannel.onmessage=e=>{e.data.type===r5&&e.data.slideIndex===1&&!this.transitioning&&(this.transitioning=!0,this.transitionToLessonContent())}}catch{}}componentDidEnter(){this.focusMain()}componentWillUnmount(){document.removeEventListener("keyup",this.onKeyUp),document.removeEventListener("wheel",this.onWheel,{passive:!0}),this.broadcastChannel&&this.broadcastChannel.close()}focusMain=()=>{this.refMain.current?.focus?.()};getLessonPath=()=>{const e=this.props.lesson?.id;return e?(0,wt.p1)(e):null};transitionToLessonContent=()=>{const e=this.getLessonPath();if(e!=null){const o=this.props.course?.theme?.blockNavigationType===A.HC.STEPPED?"one-page-cover-to-lesson-stepped":"one-page-cover-to-lesson-continuous";Jo(()=>{this.props.navigate(e)},o)}};onClickStartArea=e=>{!this.refLink.current?.contains?.(e.target)&&!this.transitioning&&(this.transitioning=!0,this.transitionToLessonContent())};onClickStartLink=e=>{e.preventDefault(),this.transitioning||(this.transitioning=!0,this.transitionToLessonContent())};onKeyUp=e=>{(e.key==="ArrowDown"||e.key==="ArrowRight")&&!this.transitioning&&(this.transitioning=!0,document.removeEventListener("keyup",this.onKeyUp),this.transitionToLessonContent())};onWheel=e=>{Qc(this.props.previewType)||this.transitioning||e.deltaY>n5&&(this.transitioning=!0,document.removeEventListener("wheel",this.onWheel,{passive:!0}),this.transitionToLessonContent())};render(){const{props:{course:e}}=this,n=e?.coverPageType===A.BL.WHITE,o=e?.coverPageType===A.BL.VIDEO,r=e?.coverPageType===A.BL.IMAGE,a=e?.coverPageType===A.BL.ACCENT,i=e?.theme?.blockNavigationType===A.HC.STEPPED,l=e?.theme?.coverImageColor??A.df.DARK,u="title",m=`overlay-${l?.toLowerCase()}`,p=Yu("wrapper",{[m]:r,accent:a,image:r,white:n||o,video:o}).mix(OG("header-content"));return(0,s.jsxs)(Xd,{onSwipeUp:this.transitionToLessonContent,children:[(0,s.jsxs)("main",{className:p,ref:this.refMain,tabIndex:"-1",children:[(0,s.jsx)(wG,{htmlIdTitle:u}),i&&(0,s.jsx)("div",{className:"visually-hidden-always",children:"To quickly navigate between steps, use the up and down arrow keys or the step navigation found on subsequent steps."}),(0,s.jsx)("div",{className:Yu("start-wrapper"),onClick:this.onClickStartArea,children:(0,s.jsx)(Cn,{"aria-label":"Start",className:Yu("start-link"),onClick:this.onClickStartLink,ref:this.refLink,to:this.getLessonPath(),children:(0,s.jsx)(rt,{className:Yu("start-icon"),name:"arrow-down"})})}),r&&(0,s.jsx)(E1,{})]}),(0,s.jsx)(yh,{onClose:this.focusMain})]})}}function BG(t){const e=Ot(t),n=(0,_t.Vu)(e);return{course:e,lesson:n}}const f5=ot()(MG,(0,Q.Ng)(BG,null,null,{forwardRef:!0}))(DG),HG=t=>{const{course:e}=t,{exportSettings:n,lmsOptions:o}=e,r=n?.webExportSettings,a=n?.exportType==="raw",i=n?.exportType==="lms",l=a&&r?.disableCoverPage,u=i&&o?.disableCoverPage,d=(0,as.VJ)(e),m=(0,as.cZ)(e);let p=!1;d||m?p=!0:Ao.isInstantLink?p=!1:p=l||u;const f=e.lessonsOnly[0].id;return(0,s.jsxs)(ie.BV,{children:[(0,s.jsx)(ie.qh,{element:(0,s.jsx)(Qm,{...t}),path:"/lessons/:id"}),p?(0,s.jsx)(ie.qh,{element:(0,s.jsx)(ie.C5,{replace:!0,to:(0,wt.p1)(f)}),index:!0}):(0,s.jsx)(ie.qh,{element:(0,s.jsx)(f5,{}),index:!0}),p?(0,s.jsx)(ie.qh,{element:(0,s.jsx)(ie.C5,{replace:!0,to:(0,wt.p1)(f)}),path:"/:mode"}):(0,s.jsx)(ie.qh,{element:(0,s.jsx)(f5,{}),path:"/:mode"})]})};class FG extends h.Component{constructor(e){super(e),this.passwordRef=(0,h.createRef)(),this.state={failAttempt:!1,shouldShake:!1}}static propTypes={onSubmit:We().func.isRequired,failAttempt:We().bool.isRequired};componentDidMount(){this.dialog.addEventListener("animationend",this.handleRemoveAnimationEnd.bind(this))}UNSAFE_componentWillReceiveProps({failAttempt:e}){const{shouldShake:n}=this.state;this.setState({failAttempt:e&&n})}componentWillUnmount(){this.dialog.removeEventListener("animationend",this.handleRemoveAnimationEnd.bind(this))}handleRemoveAnimationEnd(){this.setState({failAttempt:!1,shouldShake:!1})}onSubmitPassword(e){e.preventDefault();const{onSubmit:n}=this.props;this.setState({shouldShake:!0},()=>{n(this.passwordRef.current)})}render(){const{isOnePage:e}=this.props,{failAttempt:n}=this.state,o=Z()("brand--border","share-password-dialog",{"fail-password":n}),r=e?"You need a password to view this microlearning. If you don\u2019t know it, ask the person who shared this with you.":"You need a password to view this course. If you don\u2019t know it, ask the person who shared this with you.";return(0,s.jsxs)("div",{className:o,ref:a=>{this.dialog=a},children:[(0,s.jsx)("h1",{className:"heading",children:"Enter Password"}),(0,s.jsx)("p",{className:"instructions",children:r}),(0,s.jsxs)("form",{onSubmit:this.onSubmitPassword.bind(this),children:[(0,s.jsx)("label",{className:"label",htmlFor:"share-password",children:"password"}),(0,s.jsx)("input",{className:"input",id:"share-password",ref:this.passwordRef,type:"password"}),(0,s.jsx)("div",{className:"dialog__toolbar",children:(0,s.jsx)("input",{className:"button brand--background",type:"submit",value:"View"})})]})]})}}const VG=t=>({isOnePage:ka(t)}),zG=(0,Q.Ng)(VG)(FG),Ym=ee("lesson-navigation-dropdown"),v5=({lessonTitle:t})=>(0,s.jsx)("li",{children:(0,s.jsxs)("div",{className:Ym("option",{"ai-loading":!0}),children:[(0,s.jsx)(ms,{value:t||"Generating lesson..."}),(0,s.jsx)("div",{className:Ym("ai-loading-progress"),children:(0,s.jsx)("div",{className:Ym("spinner")})})]})});var g5=c(26372);const Cl=ee("lesson-navigation-dropdown"),UG=({disabled:t,index:e,option:n,selectedLessonId:o,onSelect:r,getLessonPath:a})=>{const[i,l]=g5.useState(!0),u=`lesson-navigation-dropdown-section-${e}`,d=g5.useCallback(p=>{p.stopPropagation(),p.preventDefault(),l(f=>!f)},[]),m=Cl("group-header-icon",{collapsed:!i});return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("button",{"aria-controls":u,"aria-expanded":i,className:Cl("group-header"),onClick:d,type:"button",children:[(0,s.jsx)(rt,{className:m,name:"caret-down"}),(0,s.jsx)("span",{className:Cl("group-header-text"),children:(0,s.jsx)(ms,{value:n.label})})]}),(0,s.jsx)(Hc,{inert:!i,children:(0,s.jsx)("ol",{"aria-hidden":i?void 0:!0,className:Cl("group-list",{collapsed:!i}),id:u,children:n.options?.map((p,f)=>{const v=String(p.value),g=t||p.disabled;return p.lesson?.settings?.isGeneratingAIContent?(0,s.jsx)(v5,{lessonTitle:p.label},`${v}-${f}`):(0,s.jsx)("li",{children:(0,s.jsx)(Bc,{className:Cl("option",{disabled:g,selected:p.value===o}),onClick:g?void 0:()=>r(v),to:g?void 0:a(v),children:(0,s.jsx)(ms,{value:p.label})})},`${v}-${f}`)})})})]})},$G=(t,e="section")=>t.reduce((n,o)=>(o.type===e?n.grouped.push([o]):n.grouped.length===0||n.grouped[n.grouped.length-1][0].type!==e?n.ungrouped.push(o):n.grouped[n.grouped.length-1].push(o),n),{grouped:[],ungrouped:[]}),WG=(t,e={})=>{if(!Array.isArray(t))return{options:[],hasGrouping:!1};const{sectionType:n}=e;if(!t.some(d=>d.type===n))return{options:t.filter(m=>m&&m.id).map(m=>({label:m.title||"Untitled Lesson",type:m.type,value:String(m.id),disabled:m.type===null,lesson:m})),hasGrouping:!1};const{grouped:r,ungrouped:a}=$G(t,n),i=r.map((d,m)=>{const[p,...f]=d,v=p&&"title"in p?p.title:void 0;return{label:v||"Untitled Section",type:p?.type||null,value:v||`section-${m}`,options:f.filter(g=>g&&g.id).map(g=>({label:g.title||"Untitled Lesson",type:g.type,value:String(g.id),disabled:g.type===null,lesson:g}))}}).filter(d=>d.options&&d.options.length>0);return{options:[...a.filter(d=>d&&d.id).map(d=>({label:d.title||"Untitled Lesson",type:d.type,value:String(d.id),disabled:d.type===null,lesson:d})),...i],hasGrouping:!0}};function _G(t="course-overview"){const e=(0,xe.DX)(),n=(0,xe.H7)()??{},o=(0,st.dx)(n),r=e.id,a=o,i=e.lessons||Object.keys(n),l=mg,u=WG,[d,m]=(0,h.useState)(t),p=(0,h.useMemo)(()=>Array.isArray(a)?a:i.map(y=>a[y]).filter(Boolean),[i,a]),{options:f,hasGrouping:v}=(0,h.useMemo)(()=>u(p,{sectionType:"section"}),[p,u]),g=(0,h.useMemo)(()=>{for(const y of f){if(y.value===d)return y.label??"Untitled Lesson";if(y.options){for(const E of y.options)if(E.value===d)return E.label??"Untitled Lesson"}}return d},[f,d]),C=(0,h.useMemo)(()=>{for(const y of f)if(y.value===d)return y.type??null;return null},[f,d]),x=(0,h.useCallback)(y=>{m(y),y==="course-stack"&&(window.location.href=l.courseLocales({courseId:r}))},[l,r]),L=(0,h.useCallback)(y=>{const E=typeof window<"u"&&window.location?.pathname?.includes("/authoring/");switch(y){case"course-overview":return E?l.course({courseId:r}):"/";case"course-stack":return l.courseLocales({courseId:r});default:return E?l.lesson({courseId:r,lessonId:y}):`/lessons/${y}`}},[r,l]);return{options:f,hasGrouping:v,selectedLessonId:d,selectedLessonType:C,selectedOptionLabel:g,onLessonChange:x,getLessonPath:L}}var rr=c(26372);const ho=ee("lesson-navigation-dropdown"),GG=({disabled:t,options:e,selectedLessonId:n,handleOnSelect:o,getLessonPath:r})=>{const a=(0,xe.DX)(),i=(0,fs.HX)(a);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:ho("course-nav-links"),children:[i&&(0,s.jsxs)(Bc,{className:ho("option",{selected:n==="course-stack","with-icon":!0}),onClick:()=>o("course-stack"),to:r("course-stack"),children:[(0,s.jsx)(jt.ArcIcon,{icon:"fa-regular fa-globe"}),(0,s.jsx)(ms,{value:"Course Stack"})]}),(0,s.jsxs)(Bc,{className:ho("option",{disabled:t,selected:n==="course-overview","with-icon":!0}),onClick:()=>o("course-overview"),to:r("course-overview"),children:[(0,s.jsx)(jt.ArcIcon,{className:ho("book-icon"),icon:"fa-regular fa-book-open"}),(0,s.jsx)(ms,{value:"Course Overview"})]})]}),(0,s.jsx)("div",{"aria-labelledby":"lesson-navigation-title",className:ho("list-header"),role:"group",children:(0,s.jsx)("div",{id:"lesson-navigation-title",children:(0,s.jsx)(ms,{value:"Lessons"})})}),(0,s.jsx)("ol",{className:ho("list"),children:e.map((l,u)=>{if(l.options&&l.options.length>0)return(0,s.jsx)("li",{children:(0,s.jsx)(UG,{disabled:t,getLessonPath:r,index:u,onSelect:o,option:l,selectedLessonId:String(n)})},`${String(l.value)}-${u}`);{const d=String(l.value),m=t||l.disabled;return l.lesson?.settings?.isGeneratingAIContent?(0,s.jsx)(v5,{lessonTitle:String(l.label)},d):(0,s.jsx)("li",{children:(0,s.jsx)(Bc,{className:ho("option",{disabled:m,selected:l.value===n}),onClick:m?void 0:()=>o(d),to:m?void 0:r(d),children:(0,s.jsx)(ms,{value:l.label})})},d)}})})]})},KG=({currentLessonId:t,sendTrackingEvent:e})=>{const[n,o]=rr.useState(!1),r=rr.useRef(!1),a=rr.useRef(null),{onLessonChange:i,options:l,selectedLessonId:u,selectedOptionLabel:d,getLessonPath:m}=_G(t),p=rr.useCallback(()=>{setTimeout(()=>{const y=document.querySelector("[popover]#lesson-navigation-dropdown");if(!y)return;const E=y.querySelector(`.${ho("option--selected")}`);E&&(E.scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"}),E.focus())},100)},[]),f=rr.useCallback(y=>{if(!n)return;const E=document.querySelector("[popover]#lesson-navigation-dropdown");if(!E)return;const b=E.querySelectorAll(`.${ho("option")}, .${ho("group-header")}`);if(b.length===0)return;const S=document.activeElement,T=Array.from(b).indexOf(S);let I=T;switch(y.key){case"ArrowDown":y.preventDefault(),I=T===-1?0:(T+1)%b.length;break;case"ArrowUp":y.preventDefault(),I=T===-1?b.length-1:(T-1+b.length)%b.length;break;case"Home":y.preventDefault(),I=0;break;case"End":y.preventDefault(),I=b.length-1;break;case"Escape":y.preventDefault(),jt.ArcPopover.handlePopover("lesson-navigation-dropdown","hide");return;case"Enter":case" ":case"Space":y.preventDefault(),T>=0&&b[T]?.click();return;default:return}b[I]?.focus(),b[I]?.scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"})},[n]);rr.useEffect(()=>{if(n)return document.addEventListener("keydown",f),()=>document.removeEventListener("keydown",f)},[n,f]);const v=rr.useCallback(y=>{i(y),jt.ArcPopover.handlePopover("lesson-navigation-dropdown","hide")},[i]),g=rr.useCallback(y=>{n||(y.currentTarget.style.borderColor="var(--arc-color-border-stark)")},[n]),C=rr.useCallback(y=>{y.currentTarget.style.borderColor="transparent"},[]),x={backgroundColor:"var(--arc-color-background-secondary)",borderRadius:"var(--arc-border-radius-md)",height:"var(--arc-size-4)",paddingInline:"var(--arc-space-1-5)",border:"var(--arc-border-width-sm) solid transparent",transition:"border-color 0.2s ease"},L={fontSize:"1.1rem",fontWeight:"var(--arc-font-weight-600)",marginBlockStart:"var(--arc-space-0-25)"};return(0,s.jsx)("nav",{children:(0,s.jsx)(jt.ArcPopover,{anchorAt:"bottom-start",anchorProps:{iconEnd:(0,s.jsx)("i",{className:"fa-regular fa-chevron-down",style:L}),layout:"hug",onMouseEnter:g,onMouseLeave:C,style:x,text:d,variant:"tertiary",ref:a},"aria-labelledby":"lesson-navigation-title",className:ho(),hasTail:!1,id:"lesson-navigation-dropdown",onToggle:y=>{const E=y.newState==="open";if(o(E),E)e();else{r.current=!1;return}r.current||(p(),r.current=!0)},variant:"common",children:(0,s.jsx)(GG,{disabled:!1,getLessonPath:m,handleOnSelect:v,options:l,selectedLessonId:String(u)})})})},xl=ee("app-header"),QG=({children:t,className:e="",currentLessonId:n,isArcButtonGroup:o=!1,isAIAssistantEnabled:r=!1,isBlockActionsSidebarOpen:a=!1,isMicrolearning:i=!1,localesDropdown:l=null,menuButton:u=null,sendLessonNavDropdownTrackingEvent:d=()=>{},snapshotDropdown:m=null,title:p})=>{const f=xl({v2:r}).mix(e),v=!!(m||l),C=n!=null&&n!=="course-overview"&&!ze.BI&&!i&&!a;return(0,s.jsxs)("div",{className:f,dir:"ltr",id:"app-header",children:[u,(0,s.jsxs)("div",{className:xl("title-dropdowns"),children:[p&&!C&&(0,s.jsx)("div",{className:xl("title"),"data-testid":"AppHeaderTitle",children:(0,s.jsx)(ms,{value:p})}),C&&(0,s.jsx)(KG,{currentLessonId:n,sendTrackingEvent:d}),v&&(0,s.jsxs)("div",{className:xl("dropdowns"),children:[m,l]})]}),(0,s.jsx)("div",{className:xl("btn-group",{arc:o}),"data-testid":"AppHeaderButtonGroup",children:t})]})},ZG=t=>Z()("button",{[t.className]:!nn()(t.className),"button--default":t.mode===void 0,"button--extraPadding":t.extraPadding,"button--sidebar brand--ui":t.sidebar,"button--header":t.header,"button--header-done":t.headerDone,"button--outline":t.outline,"button--outline button--outline-transparent":t.outlineTransparent,"button--condensed":t.condensed,"button--inverted":t.inverted,"button--logo":t.logo,"button--inline":t.mode==="inline","button--next":t.next,"button--disabled":t.disabled,"button--controls":t.controls,"button--controls-enhanced":t.controlsEnhanced,"brand--ui":t.accent,"brand--background brand--border":t.branded}),YG=({icon:t})=>t?(0,s.jsx)("i",{className:`button__icon icon-${t}`}):null,XG=({onlyIcon:t,children:e})=>h.Children.map(e,n=>t&&n.type===void 0?null:n),JG=({accent:t,ariaControls:e,ariaExpanded:n,ariaHidden:o,ariaLabel:r,ariaPressed:a,branded:i,className:l,children:u,condensed:d,controls:m,controlsEnhanced:p,disabled:f,el:v,extraPadding:g,header:C,headerDone:x,icon:L,inverted:y,mode:E,next:b,onClick:S=Function.prototype,onlyIcon:T,onMouseDown:I=Function.prototype,outline:j,outlineTransparent:M,sidebar:H,tabIndex:D,type:P,...F})=>{const k=v||"button";return k==="button"&&!P&&(P="button"),(0,s.jsxs)(k,{"aria-controls":e,"aria-expanded":n,"aria-hidden":o,"aria-label":r,"aria-pressed":a,className:ZG({accent:t,branded:i,className:l,condensed:d,controls:m,controlsEnhanced:p,disabled:f,extraPadding:g,header:C,headerDone:x,inverted:y,mode:E,next:b,outline:j,outlineTransparent:M,sidebar:H}),disabled:f,onClick:S,onMouseDown:I,tabIndex:D,type:P,...F,children:[(0,s.jsx)(YG,{icon:L}),XG({onlyIcon:T,children:u})]})};var rn,C5,qG,eK,x5,tK,sK,nK,Xm,b5,oK,rK;const Ho=ee("app-header"),y5=(0,ze._$)("CDN_URI"),aK=({disabled:t,onClick:e})=>(0,s.jsx)("button",{className:Ho("promo-btn"),disabled:t,onClick:e,type:"button",children:"New"}),L5=({children:t,disabled:e=!1,done:n=!1,onClick:o=()=>{},tooltipText:r="",icon:a=null,isNewPromo:i=!1,el:l="button",href:u=void 0,external:d=!1,capitalize:m=!0,...p})=>{const f=(0,Re.Z)(),v=(0,h.useCallback)(async C=>{e||(o&&await o(C),u&&(d?window.location.href=u:f(u)))},[f,u,o,e,d]),g=(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(JG,{disabled:e,el:u?"a":l,header:!n,headerDone:n,onClick:v,style:m?null:{textTransform:"none",fontWeight:600,fontSize:"1.4rem",letterSpacing:0},...p,children:t}),i&&(0,s.jsx)(aK,{disabled:e,onClick:v}),a]});return(0,s.jsx)(jt.ArcTooltip,{anchorAt:"left-center","data-testid":"AppHeaderButtonTooltipContainer",isEnabled:e&&!!r,text:r,children:g})};L5.propTypes={children:We().node,disabled:We().bool,done:We().bool,el:We().string,href:We().string,onClick:We().func,tooltipText:We().string,dataBa:We().string};const ine=()=>rn("div",{className:Ho("divider")}),cne=({href:t,label:e,onClick:n,xhref:o,...r})=>{const a=eK(),i=x5(async l=>{if(o||l.preventDefault(),n)return n();t&&a(t)},[t,o,a,n]);return rn("div",{className:Ho("menu-btn"),...r,children:rn("a",{"aria-label":e,className:Ho("menu-close"),href:o,onClick:i,children:rn(nK,{})})})},lne=({onClick:t,label:e,...n})=>{const o=rK("rise-lesson-nav-dropdown-release"),r=oK(),a=!!r?.defaultLocaleId,l=window.location.search.includes("fromDashboard")||!r?.id,u=r?.id?Xm.course({courseId:r.id}):null,d=x5(m=>{t&&t(m)},[t]);return rn(C5,{children:o?rn(C5,{children:a?qG(b5,{className:Ho("menu-btn"),onClick:d,to:Xm.courseLocales,...n,children:[rn(sK,{className:Ho("back-icon"),icon:"fa-regular fa-chevron-left"}),rn("div",{className:"visually-hidden-always",children:e})]}):l?rn("a",{className:Ho("menu-btn"),href:Xm.dashboard,onClick:d,...n,children:rn("img",{alt:e,src:`${y5}/assets/rise/assets/articulate-a-logo.svg`})}):rn(b5,{className:Ho("menu-btn"),onClick:d,to:u,...n,children:rn("img",{alt:e,src:`${y5}/assets/rise/assets/articulate-a-logo.svg`})})}):rn("div",{className:Ho("menu-btn"),children:rn(tK,{ariaLabel:e,icon:"up-level-2",onClick:t,...n})})})},dne=({children:t,...e})=>rn("div",{className:Ho("owner-label"),...e,children:t});var Xu=c(26372);const Ds=ee("curtain"),iK=({labelCurtainLoading:t="Your content is loading.",labelCurtainOffline:e="Your computer is offline.",labelCurtainOfflineReconnecting:n="Attempting to reconnect\u2026",labelCurtainSessionTimedOut:o="Your session has timed out.",labelCurtainSessionTimedOutRefresh:r="Refresh",labelCurtainSessionTimedOutRestart:a="Click refresh to restart your session.",labelCurtainSomethingWrong:i="Something went wrong.",labelCurtainSomethingWrongRefresh:l="Refresh",labelCurtainSomethingWrongTryAgain:u="Click to refresh and try again.",loadingText:d,showHeader:m,status:p})=>{const[f,v]=Xu.useState(!1),g=()=>v(!0),C=Xu.useRef(null);return Xu.useEffect(()=>(C.current=setTimeout(g,1e4),()=>{C.current&&clearTimeout(C.current)}),[]),Xu.useEffect(()=>{if(p==="error"){const x=new Error("There was a socket connection error. The renderReconnect curtain was displayed");_3.y.logger.error(x.message,x)}},[p]),p==="fatalError"?(0,s.jsx)(lK,{labelCurtainSomethingWrong:i,labelCurtainSomethingWrongRefresh:l,labelCurtainSomethingWrongTryAgain:u,showHeader:m}):p==="error"&&f?(0,s.jsx)(uK,{labelCurtainSessionTimedOut:o,labelCurtainSessionTimedOutRefresh:r,labelCurtainSessionTimedOutRestart:a,showHeader:m}):p==="error"?(0,s.jsx)(dK,{labelCurtainOffline:e,labelCurtainOfflineReconnecting:n,showHeader:m}):(0,s.jsx)(cK,{labelCurtainLoading:t,showHeader:m,text:d})},E5=()=>window.location.reload(),cK=({labelCurtainLoading:t,showHeader:e,text:n})=>(0,s.jsx)("div",{className:Ds("container",{"show-header":e}),children:(0,s.jsxs)("div",{className:Ds(),children:[(0,s.jsx)("div",{className:Ds("spinner")}),(0,s.jsx)("div",{className:Ds("text"),children:n||t})]})}),lK=({labelCurtainSomethingWrong:t,labelCurtainSomethingWrongRefresh:e,labelCurtainSomethingWrongTryAgain:n,showHeader:o})=>(0,s.jsx)("div",{className:Ds("container",{"show-header":o}),children:(0,s.jsxs)("div",{className:Ds(),children:[(0,s.jsx)("div",{className:Ds("title"),children:t}),(0,s.jsx)("div",{className:Ds("description"),children:n}),(0,s.jsx)(jt.ArcButton,{onClick:E5,children:e})]})}),dK=({labelCurtainOffline:t,labelCurtainOfflineReconnecting:e,showHeader:n})=>(0,s.jsx)("div",{className:Ds("container",{"show-header":n}),children:(0,s.jsxs)("div",{className:Ds(),children:[(0,s.jsx)("div",{className:Ds("spinner",{reconnect:!0})}),(0,s.jsx)("div",{className:Ds("title"),children:t}),(0,s.jsx)("div",{className:Ds("description"),children:e})]})}),uK=({labelCurtainSessionTimedOut:t,labelCurtainSessionTimedOutRefresh:e,labelCurtainSessionTimedOutRestart:n,showHeader:o})=>(0,s.jsx)("div",{className:Ds("container",{"show-header":o}),children:(0,s.jsxs)("div",{className:Ds(),children:[(0,s.jsx)("div",{className:Ds("title"),children:t}),(0,s.jsx)("div",{className:Ds("description"),children:n}),(0,s.jsx)(jt.ArcButton,{onClick:E5,children:e})]})}),S5=iK;var hK=c(61162);function mK({children:t,locale:e,...n}){const o=(0,ie.zy)(),r=(0,st.D_)(),a=(0,h.useMemo)(()=>{const i=e===r?"":e,l=new URLSearchParams(o.search);return l.set("locale",i),o.pathname+"?"+l.toString()+o.hash},[r,e,o]);return(0,s.jsx)(Cn,{...n,to:a,children:t})}const Fo=ee("locales-dropdown"),pK=({backToStackCourseId:t,currentLocale:e,defaultLocale:n,locales:o,message:r,onChange:a,optionType:i,showMessageIndicator:l})=>{const u=(0,h.useRef)(null),d=(0,h.useRef)(null),[m,p]=(0,h.useState)(!1),[f,v]=(0,h.useState)(!1),g=(0,h.useMemo)(()=>o.filter(b=>b.localeCode!==n),[n,o]),C=(0,h.useMemo)(()=>o.find(b=>b.localeCode===n),[n,o]),x=(0,h.useMemo)(()=>o.find(b=>b.localeCode===e),[e,o]);(0,h.useLayoutEffect)(()=>{m&&f&&(u.current?.querySelector(`[data-locale="${e}"]`)?.focus(),v(!1))},[m,f,e]),(0,h.useEffect)(()=>{const b=S=>{hn(S)&&(d.current?.focus(),p(!1)),yd(S)&&setTimeout(()=>{u.current.contains(document.activeElement)||p(!1)},0)};return m&&document.addEventListener("keydown",b),()=>{document.removeEventListener("keydown",b)}},[m]);const L=(0,h.useCallback)(b=>{!m&&document.activeElement===b.currentTarget&&v(!0),p(!m)},[m]),y=(0,h.useCallback)(b=>{m&&!d.current?.contains(b?.target)&&p(!1)},[m]);(0,hK.A)(u,y),(0,h.useEffect)(()=>{const b=()=>setTimeout(()=>{document.activeElement.tagName==="IFRAME"&&y()},0);return window.addEventListener("blur",b),()=>window.removeEventListener("blur",b)},[y]);const E=(0,h.useCallback)(b=>{document.activeElement===b.currentTarget&&d.current?.focus(),p(!1),a?.(b.currentTarget.getAttribute("data-locale"))},[a]);return(0,s.jsxs)("div",{className:Fo({isOpen:m}),children:[(0,s.jsx)("div",{className:Fo("trigger-wrap"),children:(0,s.jsxs)("button",{className:Fo("trigger"),onClick:L,ref:d,type:"button",children:[l&&(0,s.jsx)("div",{className:Fo("message-indicator")}),(0,s.jsx)(rt,{name:"globe"}),x.displayName,(0,s.jsx)(rt,{name:"chevron-down"})]})}),(0,s.jsxs)("div",{className:Fo("contents"),ref:u,children:[r,(0,s.jsx)("div",{className:Fo("grouping-header"),children:"Source"}),(0,s.jsx)(T5,{checked:n===e,locale:C,onClick:E,type:i}),(0,s.jsx)("div",{className:Fo("grouping-header"),children:"Translations"}),g.map(b=>(0,s.jsx)(T5,{checked:b.localeCode===e,locale:b,onClick:E,type:i},b.localeCode)),t&&(0,s.jsx)("a",{className:Fo("stack-button"),href:`/manage/locales/${t}`,children:"Back to Stack"})]})]})},T5=({checked:t,locale:e,onClick:n,type:o})=>o==="link"?(0,s.jsx)(mK,{className:Fo("option",{checked:t}),"data-locale":e.localeCode,locale:e.localeCode,onClick:n,children:e.displayName},e.localeCode):(0,s.jsx)("button",{className:Fo("option",{checked:t}),"data-locale":e.localeCode,onClick:n,type:"button",children:e.displayName},e.localeCode),fK=({hideBackToStack:t,...e})=>{const n=(0,xe.DX)(),{currentLocale:o}=(0,bt.nY)(),r=(0,st.jc)(),a=(0,st.D_)(),i=bh(),l=t?void 0:n?.id,u=(0,h.useMemo)(()=>r.map(d=>({localeCode:d.locale,displayName:i(d.locale)})),[i,r]);return(0,s.jsx)(pK,{backToStackCourseId:l,currentLocale:o,defaultLocale:a,locales:u,optionType:"link",...e})},I5=window.location.origin,vK=1e3,gK="course:ready",N5="localizedSharePreview:ready",CK="preview:selectLocale",Jm="localizedSharePreview:toggleCurtain",j5="localizedSharePreview:togglePreview",Fi=ee("localized-share-preview"),Vi=!!window.frameElement,k5=t=>(0,fs.HX)(t)&&(0,et.GS)(),xK=t=>k5(t)&&!Vi,bK=(t,e)=>window.parent?.postMessage({type:t,data:e});let A5=null;const yK=({children:t})=>{const e=(0,Q.wA)(),n=(0,Re.Z)(),o=(0,ie.zy)(),{currentLocale:r,setCurrentLocale:a}=(0,bt.nY)(),i=(0,st.D_)(),l=Go(),u=Lt(),m=!!(u&&"hasPassword"in u?u.hasPassword:void 0)||(0,et.og)(),p=(0,h.useRef)(null),[f,v]=(0,h.useState)(!1),[g,C]=(0,h.useState)(!1),[x,L]=(0,h.useState)(!m),y=(0,h.useMemo)(()=>`${I5}/share/${window.shareId}#/?locale=${r}`,[]),[E,b]=(0,h.useState)(null),[S,T]=(0,h.useState)(r),[I,j]=(0,h.useState)(!1),[M,H]=(0,h.useState)(!Vi),D=(F,k)=>p.current?.contentWindow.postMessage({type:F,data:k});(0,h.useEffect)(()=>{Vi||D(CK,r)},[r]),(0,h.useEffect)(()=>{Vi&&(bK(N5),setTimeout(()=>j(!0),0))},[]),(0,h.useEffect)(()=>{const F=k=>{if(k.origin!==I5)return;const O=k.data?.type,W=k.data?.data;if(Vi)switch(O){case Jm:{H(W);break}case j5:{W?(T(r),b(o),e((0,xh.Wp)(!0)),a(i),n("/",{replace:!0})):(e((0,xh.Wp)(!1)),a(S),n(E.pathname+E.search+E.hash||"/",{replace:!0})),document.querySelector(".cover")?.scrollTo(0,0),document.querySelector(".page-wrap")?.scrollTo(0,0);break}}else switch(O){case gK:{H(!1);break}case N5:{L(!0);break}}};return window.addEventListener("message",F),()=>{window.removeEventListener("message",F)}},[i,e,n,r,o,S,E,a]);const P=(0,h.useCallback)(()=>{const F=!f;clearTimeout(A5),C(!0),D(Jm,!0),A5=setTimeout(()=>{C(!1),D(Jm,!1),v(F)},vK),setTimeout(()=>{D(j5,F)},0)},[f]);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:Fi("curtain",{hide:!M}),children:(0,s.jsx)(S5,{})}),Vi?I&&t:(0,s.jsxs)("div",{className:Fi(),children:[x&&(0,s.jsx)(QG,{className:Fi("header"),localesDropdown:!f&&!g&&(0,s.jsx)(fK,{hideBackToStack:!0}),title:l,children:(0,s.jsx)(L5,{capitalize:!1,className:Fi("preview-button"),disabled:g,done:!0,onClick:P,children:f?"Close Learner Preview":(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(rt,{className:Fi("preview-button-icon"),name:"play-regular"}),"Preview as Learner"]})})}),(0,s.jsx)("iframe",{allowFullScreen:!0,"aria-label":"Course preview",className:Fi("iframe"),ref:p,src:y})]})]})},LK=(0,h.lazy)(()=>c.e("_b106").then(c.t.bind(c,63744,23))),EK=({children:t})=>{const e=(0,xe.qm)(),{setCurrentLocale:n,currentLocale:o}=(0,bt.nY)(),r=(0,st.QQ)(e?.course.title),a=e?.l10n?.languageCodeMetadata??{},i=Object.entries(a).map(([l,u])=>({code:l,learnerDisplayName:u.learnerDisplayName})).sort((l,u)=>l.learnerDisplayName.localeCompare(u.learnerDisplayName));return(0,s.jsx)(h.Suspense,{fallback:null,children:(0,s.jsx)(LK,{courseTitle:r,currentLocale:o,locales:i,setCurrentLocale:n,children:t})})};class SK extends h.Component{static defaultProps={scope:"error-boundary"};constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(e){return console.error(e),{hasError:!0,error:e}}render(){const{hasError:e,error:n}=this.state,{FallbackComponent:o}=this.props;return e||n?(0,s.jsx)(o,{}):this.props.children}}const TK=SK;var IK=c(38870);const NK=(0,h.lazy)(()=>c.e("webpack_container_remote_learn_distribution_frontend_learn_ai-learner-popout").then(c.t.bind(c,68789,23))),jK=()=>{const t=(0,st.dx)(Lt()),e=(0,xe.Wz)(),n=to(),{currentLocale:o}=(0,bt.nY)(),r=window,a=r?.growth?.getSubscription?.()?.id||t?.tenantId||void 0,i=r?.growth?.getUser?.()?.id||`learner_${t.author}`,l=async()=>{try{await(0,IK.wD)()}catch{}};return t.settings?.aiTutorEnabled?(0,s.jsx)(TK,{FallbackComponent:()=>null,children:(0,s.jsx)(h.Suspense,{fallback:null,children:(0,s.jsx)(NK,{apiKey:t.aiLearnerCourseApiKey,course:t,currentLessonId:n,currentLocale:o,resetSession:l,rtl:e,subscriptionId:a,userId:i})})}):null};var Ju=c(26372);const R5=Ju.createContext({typefaces:[]});function kK({addTypefaces:t,children:e,typefaces:n=[]}){AK(n);const o=Ju.useMemo(()=>({addTypefaces:t,typefaces:n}),[t,n]);return(0,s.jsx)(R5.Provider,{value:o,children:e})}function hne(){return Ju.useContext(R5)}function AK(t){Ju.useEffect(()=>{const e=new CSSStyleSheet;for(const n of t){const o=`[data-rise-typeface-id="${CSS.escape(n.id)}"] { font-family: "${CSS.escape(n.name)}"; }`;e.insertRule(o)}return e.insertRule('[data-rise-typeface-id="@@heading@@"] { font-family: var(--font-family-head); }'),e.insertRule('[data-rise-typeface-id="@@body@@"] { font-family: var(--font-family-body); }'),document.adoptedStyleSheets=[...document.adoptedStyleSheets,e],()=>{document.adoptedStyleSheets=document.adoptedStyleSheets.filter(n=>n!==e)}},[t])}var RK=c(26372);function PK({children:t}){const e=(0,Q.d4)(o=>o.fonts),n=RK.useMemo(()=>{const o=new Map;for(const r of e)o.set(r.id,{id:String(r.id),name:r.name,default:r.default});return Array.from(o.values())},[e]);return(0,s.jsx)(kK,{typefaces:n,children:t})}const P5=Object.assign(document.createElement("div"),{id:"portal"});function w5(t){(t??document.body).appendChild(P5),P5.style.display=t?"":"none"}w5();const wK=(t,e)=>!(t==="firstLesson"&&e.includes("/lessons/"))&&!(t==="cover"&&(e==="/"||e==="/preview")),MK=t=>["preview:lessonUpdate","preview:navigate","preview:overlayNavClose","preview:scrollto","preview:showLessonNavNext","preview:showLessonNavPrev","preview:themeUpdate","preview:update","preview:navOpen","preview:navClose","preview:replace","preview:changeset","preview:selectLocale",dn.FOCUS,dn.TOGGLE,dn.CLEAR,dn.TRANSLATION_HOVERED,dn.TRANSLATION_HOVER_CLEAR].includes(t),OK=t=>t===window.location.origin||t==="articulate.com"||t.endsWith(".articulate.com"),DK=({course:t,fonts:e,l10n:n})=>()=>((0,Q.JD)((0,zc.V7)({course:t,fonts:e,l10n:n})),oi().Resolved()),BK=()=>(window.parent.postMessage({type:"preview:themeUpdateComplete"},window.location.origin),oi().Resolved()),HK=({course:t,fonts:e,l10n:n})=>oi()((o,r)=>{(0,qj.U2)(e,r)}).chain(DK({course:t,fonts:e,l10n:n})).chain(BK),FK=t=>k5(t)?yK:Ao.isInstantLink?EK:h.Fragment;function VK(t){const e=(0,ie.zy)(),n=(0,h.useRef)(e);(0,h.useEffect)(()=>{n.current!==e&&(t(),n.current=e)},[e,t])}const zK=()=>{let t=[],e=0;return n=>{clearTimeout(e);for(const o of n)t.push(o);e=setTimeout(()=>{const o=t;t=[],(0,Q.JD)((0,zc.TJ)(o))},15)}};class UK extends h.Component{constructor(e){super(e),this.state={didNavigate:!1,previewType:"",failAttempt:!1,scrollTo:null,isInvalidPassword:!0,targetModeContext:{translationHoveredPath:null}},this.onSharePasswordSubmit=this.onSharePasswordSubmit.bind(this),this.onFavoriteAdded=this.onFavoriteAdded.bind(this),this.onFavoriteRemoved=this.onFavoriteRemoved.bind(this),this.isRTLEnabled=this.isRTLEnabled.bind(this),this.updateRTL=this.updateRTL.bind(this),this.handleMessage=this.handleMessage.bind(this),this.handleLocationChange=this.handleLocationChange.bind(this),window.targetMode=I7({locale:e.currentLocale})}handleLocationChange(){this.setState({didNavigate:!0})}UNSAFE_componentWillMount(){const{l10n:e}=this.props;xn.isIe11&&document.documentElement.classList.add("ie11"),xn.isSafari9&&document.documentElement.classList.add("safari9"),xn.isIphoneSafari&&document.documentElement.classList.add("iphone-safari"),xn.isSafari&&this.props.match.params.mode==="iframe"&&XN().enable(),window.addEventListener("message",this.handleMessage),window.parent.postMessage({type:"ready"},"*"),window.parent.postMessage({type:dn.STATUS,data:!!window.targetMode},"*"),(0,et.xr)()&&window.parent.postMessage({type:"preview:snapshotLoaded",data:{defaultLocale:e?.defaultLocale,locales:e?.locales?.map(({locale:n})=>n)}}),nk(),this.updateRTL()}componentDidMount(){const{currentLocale:e,languageCode:n}=this.props;document.documentElement.lang=e??n,(0,us.on)("favoriteAdded",this.onFavoriteAdded),(0,us.on)("favoriteRemoved",this.onFavoriteRemoved),document.addEventListener("click",()=>{window.parent.postMessage("coursePreviewIframeClicked","*")})}updateConnectionStatus(e){(0,Q.JD)((0,zf.zq)(e))}componentDidUpdate(){const{currentLocale:e,languageCode:n}=this.props;document.documentElement.lang=e??n,this.updateRTL(),this.state.didNavigate&&setTimeout(()=>{this.setState({didNavigate:!1})},0)}componentWillUnmount(){window.removeEventListener("message",this.handleMessage),(0,us.AU)("favoriteAdded",this.onFavoriteAdded),(0,us.AU)("favoriteRemoved",this.onFavoriteRemoved)}isRTLEnabled(){const{course:e,l10n:n,currentLocale:o}=this.props;return(0,Jj.V)({course:e,locales:n?.locales,locale:o})}updateRTL(){this.isRTLEnabled()?document.documentElement.dir="rtl":document.documentElement.dir=""}handleMessage(e){const{data:n,origin:o}=e;if(!OK(o))return;const{navigate:r,location:a={},setCurrentLocale:i}=this.props,{pathname:l}=a,{course:{lessonsOnly:u}}=this.props;(0,KN.A)(n).forEach(({type:d,data:m})=>{if(MK(d)){if(d===dn.TOGGLE&&window.targetMode(m,p=>{window.parent.postMessage({type:dn.HOVERED,data:p},"*")}).then(p=>{window.parent.postMessage({type:dn.SELECTED,data:p},"*")}).catch(()=>{window.parent.postMessage({type:dn.SELECTED,data:[]},"*")}),d==="preview:update"&&this.setState({previewType:m}),d==="preview:themeUpdate"&&this.handleThemePreviewUpdate(m),d==="preview:navigate"){let{type:p,lessonId:f,itemId:v,path:g,replace:C}=m;const x=C?L=>r(L,{replace:!0}):r;if(wK(p,l)){if(Array.isArray(g)){const L=(0,e2.Ce)(g);if(L)({type:p,lessonId:f,itemId:v}=L);else if(g[0]==="mondrian"){const{course:y}=this.props;for(const E of y.lessons){const b=E.items.find(S=>S.blockumentId===g[1]);if(b){p="lesson",f=E.id,v=b.id;break}}}else return}if(p==="firstLesson")x(`/lessons/${u[0].id}`);else if(p==="cover"||p==="course")x("/");else if(p==="lesson"&&u.find(({id:y})=>y===f)!=null){const y=()=>{window.dispatchEvent(new CustomEvent(Kt,{detail:{lessonId:f,itemId:v,path:g}}))};`/lessons/${f}`!==l?(x(`/lessons/${f}`),setTimeout(y,1500)):y()}}}if(d===dn.CLEAR&&window.dispatchEvent(new CustomEvent(G1)),d==="preview:navOpen"&&window.dispatchEvent(new CustomEvent(Cf)),d==="preview:navClose"&&window.dispatchEvent(new CustomEvent(xf)),d==="preview:showLessonNavPrev"&&window.dispatchEvent(new CustomEvent(kd)),d==="preview:showLessonNavNext"&&window.dispatchEvent(new CustomEvent(Ad)),d==="preview:scrollto"&&typeof m.target=="string"){const p=document.querySelector(m.target);p&&(0,JN.A)(p,{behavior:"smooth",block:"start"})}d==="preview:replace"&&(0,Q.JD)((0,zc.HC)(m)),d==="preview:changeset"&&this.applyChangesetDebounced(m),d==="preview:selectLocale"&&i(m,"replace"),d===dn.FOCUS&&k7(m.path),d===dn.TRANSLATION_HOVERED&&(this.setState({targetModeContext:{translationHoveredPath:m.path}}),j7(m.path)),d===dn.TRANSLATION_HOVER_CLEAR&&(this.setState({targetModeContext:{translationHoveredPath:null}}),T7()),d==="preview:lessonUpdate"&&this.handleLessonPreviewUpdate(m)}})}cancelThemePreviewUpdate(){}handleThemePreviewUpdate({course:e,l10n:n,fonts:o,theme:r}){this.cancelThemePreviewUpdate();const{course:a}=this.props,i=io()("theme",r,e),l=(0,qN.MT)({course:a,updates:i});this.cancelThemePreviewUpdate=HK({course:l,fonts:o,l10n:n}).fork(console.warn,un.lQ)}handleLessonPreviewUpdate(e){(0,Q.JD)((0,zc.YB)(e)),window.parent.postMessage({type:"preview:lessonUpdateComplete"},window.location.origin)}onSharePasswordSubmit(e){return(0,et.m5)(e.value).then(({isValid:n})=>{n?this.setState({isInvalidPassword:!1}):(e.value="",this.setState({failAttempt:!0,isInvalidPassword:!0}))}).catch(n=>console.error("Verify password error",n))}onFavoriteAdded(){(0,Q.JD)((0,Vf.nF)())}onFavoriteRemoved(){(0,Q.JD)((0,Vf.pp)())}applyChangesetDebounced=zK();renderAppLayout(){if(!this.props.course)return null;const{course:e,course:{bodyTypeface:n,color:o,headingTypeface:r,themeId:a,theme:i,uiTypeface:l},courseProgress:u,currentLocale:d,l10n:m,labels:p,languageCode:f,lessons:v,partnerContent:g,search:C,sessionPreferences:x}=this.props,{didNavigate:L,previewType:y,targetModeContext:E}=this.state,b=m?.localeLabelSets?.[d]?.labels||p,S=m?.localeLabelSets?.[d]!=null?d:f,T={course:e,courseProgress:u,didNavigate:L,lessons:v,previewType:y,sessionPreferences:x},I=i?.accentContrast,j=(0,as.c3)(e),M={accentContrast:I,bodyTypeface:n,color:o,headingTypeface:r,isLegacyCourse:e?.isLegacyCourse,uiTypeface:l},H=Z()("theme",a,{"one-page":j}),D=FK(e),P=j?HG:RG;return(0,s.jsx)(xe.rv,{course:e,courseProgress:u,l10n:m,labels:b,labelsLocale:S,partnerContent:g,search:C,children:(0,s.jsx)(UE,{themeId:a,children:(0,s.jsx)(ih,{courseColor:o,children:(0,s.jsx)(wV,{value:E,children:(0,s.jsx)(PK,{children:(0,s.jsxs)("div",{className:H,id:"innerApp",ref:w5,children:[(0,s.jsx)(vk,{...M}),(0,s.jsx)(Kf,{env:"runtime",children:(0,s.jsx)(D,{children:(0,s.jsxs)(ha,{children:[(0,s.jsx)(P,{...T}),(0,s.jsx)(jK,{})]})})})]})})})})})})}showPasswordDialog(){const{isInvalidPassword:e}=this.state,{course:n}=this.props,{hasPassword:o}=n;return e&&(0,et.GS)()&&!xK(n)&&(!!o||(0,et.og)())}render(){const{failAttempt:e}=this.state,{onSharePasswordSubmit:n}=this;return this.showPasswordDialog()?(0,s.jsx)(zG,{failAttempt:e,onSubmit:n}):this.renderAppLayout()}}function $K(t){const e=(0,h.useRef)(null);return VK(()=>{e.current&&e.current.handleLocationChange()}),(0,s.jsx)(UK,{...t,ref:e})}const WK=ot()(J1.A,bt.wZ)($K),qm=ee("not-found"),_K=()=>(0,s.jsx)(ha,{title:Vc(),children:(0,s.jsx)("div",{children:(0,s.jsx)("div",{className:qm(),children:(0,s.jsxs)("div",{className:qm("copy"),children:[(0,s.jsx)("h1",{className:qm("copy",{heading:!0}),tabIndex:-1,children:"Hmm..."}),(0,s.jsx)("div",{children:"We can't seem to find the page you're looking for."})]})})})});var GK=c(39801);function M5(){return(0,Q.d4)(t=>{const{course:e,courseLabels:n,courseProgress:o,fonts:r,l10n:a,partnerContent:i,search:l,sessionPreferences:u,status:d}=t;return{course:e,courseProgress:o,fonts:r,l10n:a,labels:n.labels,languageCode:e?.locale??n?.iso639Code,lessons:e&&e.lessons,partnerContent:i,search:l,sessionPreferences:u,status:d}})}function KK(){const t=(0,Q.wA)();(0,h.useEffect)(()=>{t((0,zc.EL)()),t((0,lh.pb)())},[t])}function QK(){const t=(0,Q.wA)(),e=(0,h.useCallback)(()=>{t((0,zf.$2)(!0))},[t]),n=M5(),o=Qt(n.course?.coverImage?.media);(0,h.useEffect)(()=>{const{courseLoaded:r,coverLoaded:a}=n.status;if(r&&!a){const i=o?.image,{key:l,src:u}=i||{};if(l||u){const d=l?(0,Vt.ME)(i):u,m=setTimeout(e,5e3),p=new Image;return p.src=d,p.onload=()=>{clearTimeout(m),e()},()=>clearTimeout(m)}else e()}},[n,o,e])}function ZK(){KK(),QK();const t=M5(),e=(0,Q.wA)(),{fonts:n,labels:o,status:{courseLoaded:r,coverLoaded:a,fontsLoaded:i,notFound:l,partnerContentLoaded:u}}=t,d=(0,qe.A)(r),m=r&&i&&a&&u,p=!m;return(0,h.useEffect)(()=>{!d&&r&&!i&&(n??[]).length>0&&e((0,GK.r)(n))},[e,d,r,i,n]),(0,h.useEffect)(()=>{if(!m||window.parent===window)return;window.parent.postMessage({type:"course:ready"},window.location.origin);const f=v=>{v.key==="Escape"&&window.parent.postMessage({type:"preview:escape"},window.location.origin)};return window.addEventListener("keydown",f),()=>window.removeEventListener("keydown",f)},[m]),l?(0,s.jsx)(_K,{}):p?(0,s.jsx)(S5,{labelCurtainLoading:o?.curtainLoading,labelCurtainOffline:o?.curtainOffline,labelCurtainOfflineReconnecting:o?.curtainOfflineReconnecting,labelCurtainSessionTimedOut:o?.curtainSessionTimedOut,labelCurtainSessionTimedOutRefresh:o?.curtainSessionTimedOutRefresh,labelCurtainSessionTimedOutRestart:o?.curtainSessionTimedOutRestart,labelCurtainSomethingWrong:o?.curtainSomethingWrong,labelCurtainSomethingWrongRefresh:o?.curtainSomethingWrongRefresh,labelCurtainSomethingWrongTryAgain:o?.curtainSomethingWrongTryAgain,status}):(0,s.jsx)(WK,{...t})}const YK=ZK,qu=document.createElement("style");qu.innerHTML=`
  @layer rise-reset, arc-theme, arc-utils;

  :root {
    --arc-font-size-base: 1;

    /*  Override arc body font because of Inter naming conflict in Rise
        https://github.com/articulate/rise-authoring/issues/7263
    */
    --arc-internal-font-body: 'DS Inter', system-ui, sans-serif;
  }
`;function XK(){(0,h.useEffect)(()=>(qu.parentElement!==document.head&&document.head.prepend(qu),()=>{qu.remove()}),[])}const JK=()=>{const t=(0,Re.Z)(),e=(0,ie.zy)(),n=h.useRef(new Set),o=h.useRef(null);if(o.current===null){const r=n.current;o.current={push:t,replace:a=>t(a,{replace:!0}),go:a=>t(a),goBack:()=>t(-1),goForward:()=>t(1),listen:a=>(r.add(a),()=>r.delete(a)),location:e},(0,et.IV)(o.current)}return(0,h.useEffect)(()=>{if(n.current.forEach(r=>r(e)),typeof window<"u"&&window.dispatchEvent){const r=new HashChangeEvent("hashchange",{oldURL:window.location.href,newURL:window.location.href});window.dispatchEvent(r)}},[e]),(0,s.jsx)(YK,{})},qK=document.getElementById("app"),eQ=(0,ne.createRoot)(qK),tQ=({children:t})=>(XK(),(0,s.jsx)(s.Fragment,{children:t}));eQ.render((0,s.jsx)(h.Suspense,{fallback:null,children:(0,s.jsx)(Q.Kq,{store:Q.M_,children:(0,s.jsx)(tQ,{children:(0,s.jsx)(BN,{children:(0,s.jsx)(Ze,{children:(0,s.jsx)(GN,{children:(0,s.jsx)(ie.I9,{unstable_useTransitions:!1,children:(0,s.jsx)(bt.fH,{children:(0,s.jsx)(ie.BV,{children:(0,s.jsx)(ie.qh,{element:(0,s.jsx)(JK,{}),path:"/*"})})})})})})})})})}))},78638(tt,Le,c){"use strict";c.d(Le,{Ay:()=>Y,BW:()=>_,En:()=>R,Ig:()=>z,JG:()=>ue,Ko:()=>U,M$:()=>le,Pz:()=>te,S$:()=>me,WY:()=>q,Wj:()=>Ie,Ze:()=>ve,ce:()=>ae,eZ:()=>B,fd:()=>X,ft:()=>J,jw:()=>se,l7:()=>K,mj:()=>s,p3:()=>ye,pd:()=>be,qX:()=>V,sZ:()=>re,w5:()=>Ce});const R="a",U="n",B="t",K="c",J="ps",q="p",ve="v",re="r",se="s",s="rr",ye="pq",be="qd",ae="ql",le="qt",Y="vp",Ce="k",Ie="v",X="i",_="pv",V="m",te="s",z="x",ue="sa",me="t"},13578(tt,Le,c){"use strict";c.d(Le,{AU:()=>J,G7:()=>re,NS:()=>B,RR:()=>se,gj:()=>ve,kT:()=>q,on:()=>K});const{RiseDotCom:R}=window,U=s=>R&&R[s],B=()=>{U("exit")&&R.exit()},K=(...s)=>{U("on")&&R.on(...s)},J=(...s)=>{U("off")&&R.off(...s)},q=(...s)=>{U("goToLearn")&&R.goToLearn(...s)},ve=(...s)=>{if(U("downloadCertificate"))return R.downloadCertificate(...s)},re=(...s)=>{if(U("downloadCertificateCancel"))return R.downloadCertificateCancel(...s)},se=(...s)=>{if(U("fetchLpUpNext"))return R.fetchLpUpNext(...s)}},46044(tt,Le,c){"use strict";c.d(Le,{MT:()=>X,MJ:()=>Ie,uK:()=>Ce});var R=c(78570),U=c(25726),B=c(42900);const K={accentContrast:B.Em.AUTO,allowSearch:!0,animateBlockEntrance:!0,blockBackgroundColor:null,blockBackgroundColorContrast:B.Em.AUTO,blockBackgroundType:B.xj.LIGHT,blockCorners:B.rE.ROUNDED,blockPaddingEnd:B.S$,blockPaddingStart:B.S$,blockTextBackgroundColor:null,blockTextBackgroundColorContrast:B.Em.AUTO,blockTextBackgroundType:B.xj.LIGHT,blockTextBodyFontSize:B.Ty,blockTextHeadingFontSize:B.Bj,blockTextPaddingEnd:B.S$,blockTextPaddingStart:B.S$,blockTextSubheadingFontSize:B.pL,buttonInlineStyle:B.qu.ROUNDED,buttonNavigationStyle:B.jq.FULL,buttonScheme:B.LE.LIGHT,colorAccent:B.Zs,compactShowLessonCount:!0,coverImageAlpha:B.HU,coverPageType:B.BL.SPLIT_LEFT_IMAGE,customColorLessonHeaderContrast:B.Em.AUTO,enableVideoPlaybackSpeed:!0,lessonHeaderImageAlpha:B._g,lessonHeaderImageColor:B.df.DARK,lessonHeaderSize:B.OX.MEDIUM,lessonHeaderStyle:B.xj.LIGHT,markLessonsComplete:!1,navigation:!0,navigationRestricted:!1,navigationSectionsExpanded:!0,navigationStyle:B.kY.LIGHT,navigationType:B.br.SIDEBAR,progressIndicatorStyle:B.Y2.THEME_DEFAULT,showAuthor:!0,showLessonCount:!0,showNavigationButtons:!0,showStartButton:!0,sidebarStartsOpen:!0,themeId:B.V7.RISE_CLASSIC},J=["bodyTypeface","coverImage","experiments","headingTypeface","lessonHeaderImage","media","theme","uiTypeface"],q=_=>_.theme?.colorAccent||_.color||K.colorAccent,ve=_=>_.theme?.navigationRestricted??K.navigationRestricted?B.b$.RESTRICTED:B.b$.FREE,re=_=>_.theme?.sidebarStartsOpen??K.sidebarStartsOpen?B.RE.OPEN:B.RE.CLOSED,se=_=>_.theme?.showLessonCount??_.showLessonCount??K.showLessonCount,s=({sidebarMode:_})=>_!==B.RE.HIDDEN,ye=({navigationMode:_})=>_===B.b$.RESTRICTED,be=({sidebarMode:_})=>_===B.RE.OPEN,ae=_=>_.coverImage?.media?.image?B.kY.LIGHT_IMAGE:B.kY.LIGHT,le=_=>_.coverImage?.media?.image?B.BL.LEFT_OVERLAY:B.BL.LEFT,Y=(_,V)=>V[_]??V.theme?.[_]??K[_],Ce=_=>{const V=re(_),te=ve(_),z={allowSearch:Y("allowSearch",_),animateBlockEntrance:Y("animateBlockEntrance",_),bodyTypefaceId:_.bodyTypefaceId,colorAccent:(_.color||"").toLowerCase(),compactShowLessonCount:Y("compactShowLessonCount",_),coverImageDefault:null,coverPageType:le(_),enableVideoPlaybackSpeed:Y("enableVideoPlaybackSpeed",_),headingTypefaceId:_.headingTypefaceId,markLessonsComplete:Y("markComplete",_),navigation:s({sidebarMode:V}),navigationSectionsExpanded:Y("navigationSectionsExpanded",_),navigationRestricted:ye({navigationMode:te}),navigationStyle:ae(_),showAuthor:Y("showAuthor",_),showLessonCount:Y("showLessonCount",_),showNavigationButtons:Y("showNavigationButtons",_),sidebarStartsOpen:be({sidebarMode:V}),uiTypefaceId:_.uiTypefaceId},ue={...K,...z};return{..._,theme:{...ue,isLegacyCourse:!0}}},Ie=_=>{const V=q(_),te={allowSearch:_.theme?.allowSearch??K.allowSearch,animateBlockEntrance:_.theme?.animateBlockEntrance??K.animateBlockEntrance,buttonNavigationStyle:_.theme?.buttonNavigationStyle??K.buttonNavigationStyle,buttonScheme:_.theme?.buttonScheme??K.buttonScheme,color:V,colorAccentTint:V?(0,R.FB)(V):void 0,coverImage:(0,U.dM)(_),coverPageType:_.theme?.coverPageType??K.coverPageType,enableVideoPlaybackSpeed:_.theme?.enableVideoPlaybackSpeed??K.enableVideoPlaybackSpeed,lessonHeaderImage:(0,U.LI)(_),lessonHeaderSize:_.theme?.lessonHeaderSize??K.lessonHeaderSize,lessonHeaderStyle:_.theme?.lessonHeaderStyle??K.lessonHeaderStyle,markComplete:_.theme?.markLessonsComplete??K.markLessonsComplete,navigation:_.theme?.navigation??K.navigation,navigationSectionsExpanded:_.theme?.navigationSectionsExpanded??K.navigationSectionsExpanded,navigationMode:ve(_),navigationRestricted:_.theme?.navigationRestricted??K.navigationRestricted,navigationStyle:_.theme?.navigationStyle??K.navigationStyle,navigationType:_.theme?.navigationType??K.navigationType,progressIndicatorStyle:_.theme?.progressIndicatorStyle??B.Y2.THEME_DEFAULT,themeId:_.theme?.themeId??K.themeId,showAuthor:_.theme?.showAuthor??K.showAuthor,showLessonCount:se(_),showStartButton:_.theme?.showStartButton??K.showStartButton,sidebarMode:re(_),sidebarStartsOpen:_.theme?.sidebarStartsOpen??K.sidebarStartsOpen,showNavigationButtons:_.theme?.showNavigationButtons??K.showNavigationButtons};return{..._,...te}},X=({course:_,updates:V})=>{const te=Object.fromEntries(Object.entries(V||{}).filter(([ue])=>J.includes(ue))),z={..._,...te};return Ie(z)}},53395(tt,Le,c){"use strict";c.d(Le,{A:()=>K});var R=c(16881),U=c(94036),B=c(68902);function K(J){function q(ve){const re=(0,U.zy)(),se=(0,B.Z)(),s=(0,U.g)();return(0,R.jsx)(J,{...ve,location:re,match:{params:s},navigate:se})}return q.displayName=`withRouter(${J.displayName||J.name})`,q}},2396(tt,Le,c){"use strict";c.d(Le,{gf:()=>at,Em:()=>qn});var R={};c.r(R),c.d(R,{callbackComponent:()=>Da,callbackPath:()=>hr,errorPath:()=>Ra,getToken:()=>vs,initAuth:()=>Kr,login:()=>mr,logout:()=>Ct,onFetchTokensThunk:()=>Qr,refreshSession:()=>Rt,request:()=>lt.Em});var U={};c.r(U),c.d(U,{callbackComponent:()=>Va,callbackPath:()=>za,getToken:()=>Xi,initAuth:()=>nc,login:()=>Ji,logout:()=>qi,refreshSession:()=>ec,request:()=>lt.Em});var B=c(7507),K=c(44914),J=c.n(K),q=c(31735),ve=c.n(q),re=c(5832),se=c.n(re),s=c(32050),ye=c.n(s),be=c(22713),ae=c.n(be),le=c(36330),Y=c.n(le),Ce=c(26372),Ie=c(53395),X=c(39919),_=c.n(X),V=c(53755),te=c(81783),z=c.n(te),ue=c(89831),me=c.n(ue),je=c(7334),Se=c.n(je),fe=c(54811),h=c.n(fe),ne=c(49034),ie=c.n(ne),Q=c(17193),Fe=c.n(Q),ge=c(65301),Me=c.n(ge),Ve=c(51335),pe=c.n(Ve),ke=c(97110),Ye=c.n(ke),Je=c(41211),Ze=c.n(Je),gt=c(36087),et=c.n(gt),Re=c(58862),_e=c.n(Re),ut=c(57487),ft=c(24177);const qe={"Content-Type":"application/json"},Gt=[(Te,Qe)=>(Qe.Authorization=`Bearer ${at()}`,JSON.stringify(Te))],Z=Me()(se(),Fe(),Ye()(["data","status","statusText"])),nt=et()(Ye()(["name","message","response"]),ie()({response:Z})),us=({baseURL:Te,...Qe})=>ve()(pe()({headers:qe,transformRequest:Gt}),pe()(Qe),ie()({url:h()(Te)})),ze=({data:Te,method:Qe,url:Nt})=>fetch(Nt,{body:JSON.stringify(Te),headers:{...qe,Authorization:`Bearer ${at()}`},keepalive:!0,method:Qe}).then(is=>is.json()).then(Ze()("data")),Ks=z().fromPromise(ze),_n=Te=>({method:Qe,url:Nt})=>`${Qe}:${Te}${Nt}`,Gn=Te=>{const Qe=new Error("Nil token detected");return ft.L.addError(Qe,Te),z().Rejected(Qe)},Ge=Te=>Qe=>Te.preRequest?Te.preRequest(Qe):Qe,an=Te=>Qe=>Te.postRequest?Te.postRequest(Qe):Qe,Qs=()=>!B.BI&&se()(at()),Zs=Te=>(Qe,Nt)=>me()(Qe,_n(Nt),jn(qn,Te)),jn=(Te,Qe)=>Nt=>(0,ut.Ve)(Nt,Ge(Qe),us(Qe),Me()(Qs,Gn,Te),Se()(nt,_e()("data")),an(Qe)),Kn=Te=>({debounce:Zs(Te),send:jn(qn,Te),sendWithKeepAlive:jn(Ks,Te)});var At=c(50283),fs=c.n(At);const as=()=>document.visibilityState==="visible",Wo=Te=>fs()(as,()=>Te()),mo=(Te=>{document.addEventListener("visibilitychange",Wo(Te)),window.addEventListener("focus",()=>Te())});var po=c(48819),A=c.n(po),bt=c(88747),St=c.n(bt),Qn=c(44522),Qt=c.n(Qn),fo=c(89239),_o=c.n(fo),kn=c(42662),Go=c(28667),Zn=c(57893);const fn=(Te,Qe=null)=>{const Nt={...Te,context:{locale:navigator.language,device:(0,Zn.Pf)(),channel:(0,Zn.c)(),userAgentData:(0,Zn.NO)(),page:(0,Zn.WE)(),userAgent:(0,Zn.$t)(),...Te.context},properties:{...Qe?(0,Go.yV)(Qe):{},...Te.properties}};return(0,kn.Em)({method:"POST",url:`${(0,B._$)("RISE_RUNTIME_URI")}/analytics`,json:!0,data:Nt})},Ys=(0,B._$)("SUBSCRIPTIONS_ENDPOINT"),Ue=(0,B._$)("THREESIXTY_FRONTEND_URI"),yt=Qt()(["error","status"],404),Zt=ve()(Ze()("error"),_e()("response")),Hs=()=>window.location.href=Ue,Ot=[(Te,Qe)=>(Qe.Authorization=`Bearer ${at()}`,Te)],vo=async Te=>{const Qe=`${Ys}/users/authorized_status`,Nt=await qn({transformRequest:Ot,url:Qe}).toPromise().catch(Zt),is=ve()(Te,Y()(bs=>fn({event:"Unexpected Logout",payload:{category:"auth",data:bs,detail:"Subscription Error"}})));return A()([[yt,Hs],[St()("error"),is],[_o(),_e()("data")]])(Nt)};var lr=c(76906),cn;const Ur=Te=>Te.status==="active",$r=Te=>Te.status==="inactive",ka=Te=>Te.plan==="individual",Ll=Te=>Te.features?.enable_review===!0,$i=Te=>Te.features?.enable_rise===!0,dr=Te=>Te.plan==="trial",Wi=Te=>Te.plan==="trial"&&Te.status==="inactive"&&Te.is_retrial_eligible===!1,_i=Te=>Te.plan==="team"||Te.plan==="individual",Wr=Te=>Te.plan==="team"&&Te.is_team_admin===!0,_r=Te=>Te.plan==="trial"&&Te.is_team_admin===!0,ot=Te=>{if(!Te.end_date)return 0;const Qe=new Date(Te.end_date);Qe.setUTCHours(0,0,0,0);const Nt=Qe.setDate(Qe.getDate()+1);return Nt&&(Nt.valueOf()-new Date().setUTCHours(0,0,0,0))/cn||0};var lt=c(38870),Ls=c(63557),go=c(68692),Gi=c.n(go),Ko=c(2758),As=c.n(Ko),Gr=c(5811),Fs=c.n(Gr),ur=c(57819),Qo=c.n(ur);const Zo=(Te,Qe)=>`${(0,B._$)("ID_MAPPER_URI")}/v1/avatars/${encodeURIComponent(Te)}?size=${Qe}`,ln=Te=>({large:Zo(Te,"large"),medium:Zo(Te,"medium"),micro:Zo(Te,"micro"),mini:Zo(Te,"mini"),small:Zo(Te,"small")}),Aa=As()({features:Qo()({},"features"),subscription:ye()(["features"])}),Yn=Gi()([Wi,$r,Fs()($i)]),Co="/auth-callback",hs="/auth-error",xo=()=>new Promise(Te=>{if(!window.Osano)return Te();if(window.Osano.cm.dialogOpen){const Qe=setTimeout(()=>{Te()},1e4);window.Osano.cm.addEventListener("osano-cm-ui-changed",(Nt,is)=>{Nt==="dialog"&&is==="hide"&&(Te(),clearTimeout(Qe))})}else Te()}),hr=Co,Ra=hs,vs=Ls.rS,Pa=()=>window.location.pathname===hr;let An=!1,vn=!1;const Xt=Te=>{if(An)return;const Qe=(0,V.A)();An=!0,window.localStorage.setItem(Qe,Te);const Nt=(0,lt.xQ)({client_id:(0,B._$)("OKTA_CLIENT_ID"),issuer:(0,B._$)("OIDC_ISSUER_URI"),redirect_uri:`${window.location.origin}${hr}`,response_mode:"fragment",scope:(0,B._$)("OIDC_SCOPE"),state:Qe,prompt:null});xo().then(()=>{window.location.href=Nt})},mr=()=>{const Te=new URLSearchParams(window.location.search),Qe=Te.has("redirect_url")?Te.get("redirect_url"):window.location.href;return Xt(Qe)},Rt=()=>(0,lt.uI)().catch(Te=>{Te.response?.status===404&&Ct({onLogout:()=>window.location.reload(!0),reason:"Session expired"})}),wa=()=>{if(vn)return;const Te=(0,Ls.mA)(),Qe=(0,Ls.kn)();se()(Te)?(fn({event:"Unexpected Logout",payload:{category:"auth",userId:Qe,detail:"id from cookie was null"}}),ft.L.addError(new Error("Unexpected Logout"),{type:"User Meta",idFromToken:Qe,idFromCookie:Te,detail:"id from cookie was null"}),vn=!0,Ct({onLogout:()=>window.location.reload(!0),reason:"Unexpected logout: user id/session cookie missing"})):Te!==Qe&&(fn({event:"Unexpected Logout",payload:{category:"auth",userId:Te,idFromToken:Qe,detail:"Session/Token ID Mismatch"}}),ft.L.addError(new Error("Unexpected Logout"),{type:"User Meta",idFromToken:Qe,idFromCookie:Te,detail:"Session/Token ID Mismatch"}),vn=!0,(0,lt.wD)().then(()=>window.location.reload(!0)))},Xn=async Te=>{try{const[,Qe,Nt,is]=await(0,lt.wD)(),{aid:ns,content_team_admin:bs}=is;if(fn({event:"Setting Session Cookie",payload:{category:"auth",userId:ns,detail:"Resuming existing session"}}),(0,Ls.ac)(ns),Pa()){Te();return}const{first_name:eo,last_name:vr,launchdarkly:to,staff:gr}=Qe,ea={avatars:ln(ns),first_name:eo,user_id:ns,last_name:vr,staff:gr,content_team_admin:bs},$a={author:ns,profile:ea},gn=()=>Ct({onLogout:J()(null)}),Cr=rc=>Te({...$a,...Aa(rc),launchdarkly:to,token:Nt}),ta=await vo(gn).then(Y()(Cr)).catch(()=>Te({...$a,token:Nt}));if(Yn(ta)){fn({event:"Unexpected Logout",payload:{category:"auth",userId:(0,Ls.mA)(),subscription:ta,detail:"Invalid Subscription"}}),ft.L.addError(new Error("Unexpected Logout"),{type:"User Meta",userId:(0,Ls.mA)(),detail:"Invalid Subscription"}),Ct({onLogout:()=>window.location=`${(0,B._$)("THREESIXTY_FRONTEND_URI")}/rise`});return}mo(wa)}catch(Qe){fn({event:"Unexpected Logout",payload:{category:"auth",userId:(0,Ls.mA)(),error:Qe,detail:"Error Resuming Session"}}),ft.L.addError(Qe,{type:"User Meta",userId:(0,Ls.mA)(),detail:"Error Resuming Session"}),Ct({onLogout:()=>window.location.reload(!0)})}},Kr=({onFetchTokens:Te})=>{if(Pa()){Xn(Te);return}const Qe=(0,Ls.mA)(),Nt=(0,Ls.kn)();if(se()(Qe)||Qe!==Nt){xo().then(mr);return}Xn(Te)},Ct=({onLogout:Te,reason:Qe})=>{Qe&&fn({event:"Logout",payload:{category:"auth",userId:(0,Ls.mA)(),detail:Qe}});const Nt=(0,B._$)("RISE_AUTHORING_URI"),is=()=>B.BI?Promise.resolve():Kn({baseURL:Nt}).send({method:"DELETE",url:"/logout"}),ns=()=>{(0,Ls.sm)(),(0,Ls.gZ)(),(0,lt.Vu)().then(Te)};is().fork(bs=>{console.error("Failed to log out of rise-authoring-api",bs),ns()},ns)},Ki=ve()(_().parse,ae()(1,1/0)),Ft=(Te,Qe)=>{xo().then(()=>{const is=window.localStorage.getItem(Qe)||"/",ns=is===Te?"/":is;window.localStorage.removeItem(Qe),window.location.href=ns})},Ma=Te=>()=>window.location.href=`${hs}?description=${Te}`,Qi=({location:Te})=>()=>{const{hash:Qe,pathname:Nt}=Te,{state:is,error:ns,error_description:bs}=Ki(Qe);ns?(ft.L.addError(ns,{type:"Logout Error",reason:"Error encountered when parsing auth callback.",error_description:bs}),Ct({onLogout:Ma(bs),reason:`Error encountered when parsing auth callback. Error: ${ns}; description: ${bs}`})):Kr({onFetchTokens:()=>Ft(Nt,is)})},Oa=Te=>((0,Ce.useEffect)(Qi(Te),[]),null),Da=(0,Ie.A)(Oa),Qr=({dispatch:Te,loadProfileOKTA:Qe})=>Nt=>{const is=ye()(["token"],Nt);ve()(Te,Qe)(is)};var Zi=c(32261),Zr=c.n(Zi),Yr=c(56438),Ba=c.n(Yr),Xr=c(16997),Ha=c.n(Xr),_t=c(89837),wt=c.n(_t),Yi=c(34597),pr=c.n(Yi),Jn=c(15509),Fa=c.n(Jn);const fr=async()=>{await xo();const[Te,Qe]=Ha()(encodeURIComponent,pr()(["hash","pathname"],window.location));window.location.href=`/login#c=${Qe}${Te}`},Jr=()=>{window.location.href="/"},Va=null,za=null,Xi=Ls.rS,Ji=fr,qi=lt.Vu,ec=()=>(0,lt.uI)().catch(()=>qi()),tc=et()(Qo()([],"roles"),Fa()(Ba()("author"),Jr)),qr=et()(wt()("",["subscription","status"]),Fa()(Ba()(Zr(),["active","in_trial","non_renewing"]),Jr)),sc=()=>window.location.reload(),nc=async({onFetchTokens:Te})=>{try{const[Qe,Nt]=await(0,lt.wD)(),{launchdarkly:is,riseId:ns,sub:bs,staff:eo,subscription:vr}=Nt,to={staff:eo,user_id:ns||bs};return qr(Nt),Te({author:to.user_id,launchdarkly:is,profile:to,subscription:vr,token:Qe}),(0,lt.on)("change:roles",tc),(0,lt.on)("change:status",qr),(0,lt.on)("change:subdomain",sc),(0,lt.on)("unauthorized",fr),(0,lt.on)("session:closed",fr),Qe}catch{fr()}},{callbackComponent:El,callbackPath:Ua,getToken:at,initAuth:Sl,logout:Tl,refreshSession:oc,request:qn}=B.BI?U:R},1131(tt,Le,c){"use strict";c.d(Le,{A:()=>B});var R=c(240);const B=({alpha:K,color:J,url:q})=>{const ve=(0,R.A)(J,K);return{backgroundImage:`linear-gradient(0deg,${ve},${ve}), url("${q}")`}}},63557(tt,Le,c){"use strict";c.d(Le,{EO:()=>z,O0:()=>te,QJ:()=>me,W5:()=>se,Xl:()=>Ce,ac:()=>ye,gZ:()=>ae,kn:()=>V,l6:()=>je,mA:()=>le,rS:()=>Y,sm:()=>be});var R,U=c(57308),B=c.n(U),K=c(31675),J=c.n(K),q=c(7507);const ve="_articulate_user_id",re="_rise_authoring_api_session",se=()=>q.BI?(0,q._$)("SESSION_COOKIE_NAME"):"_articulate_rise_",s=(Se,fe)=>`${Se}=${fe}; domain=${(0,q._$)("SESSION_COOKIE_DOMAIN")}; path=/; secure=true`,ye=Se=>document.cookie=s(ve,Se),be=()=>document.cookie=`${s(ve,"")}; Max-Age=-99999999`,ae=()=>document.cookie=`${s(re,"")}; Max-Age=-99999999`,le=()=>B().load(ve),Y=()=>B().load(se()),Ce=()=>Y()?J()(Y()).staff:!1,Ie=()=>Y()?R(Y())?.staffRoles||[]:[],X=()=>Y()?R(Y())?.content_team_admin:!1,_=()=>Ie().includes("content-team")||X(),V=()=>Y()?J()(Y()).riseId||J()(Y()).sub||J()(Y()).aid:"",te=()=>Y()?J()(Y()).roles:[],z=()=>Y()?J()(Y()).tenantId:"",ue=()=>Y()?J()(Y()).subscription||{}:{},me=()=>ue().plan_id||"",je=()=>ue().status||""},78570(tt,Le,c){"use strict";c.d(Le,{FB:()=>Zs,FH:()=>an,I8:()=>Gt,IO:()=>Ge,L3:()=>Gn,Vu:()=>Z,b9:()=>qe,bQ:()=>nt,jI:()=>po,yL:()=>jn,zH:()=>Qs,zh:()=>_n});var R,U,B=c(44914),K=c.n(B),J=c(31735),q=c.n(J),ve=c(5811),re=c.n(ve),se=c(21863),s=c.n(se),ye=c(8486),be=c.n(ye),ae=c(33182),le=c.n(ae),Y=c(54708),Ce=c.n(Y),Ie=c(19892),X=c.n(Ie),_=c(54425),V=c.n(_),te=c(65301),z=c.n(te),ue=c(84134),me=c.n(ue),je=c(5832),Se=c.n(je),fe=c(79443),h=c.n(fe),ne=c(36087),ie=c.n(ne),Q=c(58862),Fe=c.n(Q),ge=c(77592),Me=c.n(ge),Ve=c(92213),pe=c.n(Ve),ke=c(99657),Ye=c.n(ke),Je=c(9391),Ze=c.n(Je),gt=c(31155),et=c(1131),Re=c(42900),_e=c(63656),ut=c(26842);const ft=re()(Me()("sidebarMode","hidden")),qe=({alpha:A,color:bt=void 0,hasOverlay:St=!0,media:Qn={}})=>{const{image:Qt={}}=Qn,{key:fo,src:_o}=Qt,kn=fo?(0,gt.ME)(Qt):_o,Go=bt===Re.df.LIGHT?Re.qH:Re.KJ;return kn?St?(0,et.A)({alpha:A/100,color:Go,url:kn}):{backgroundImage:`url("${kn}")`}:null},Gt=A=>[Re.Py.DARK,Re.Py.DARK_ACCENT,Re.Py.DARK_IMAGE,Re.qB.DARK,Re.kY.DARK,Re.kY.DARK_IMAGE].includes(A),Z=ie()(Fe()("lessons"),V()),nt=Me()("navigationMode",Re.b$.RESTRICTED),us=re()(Me()("sidebarMode",Re.RE.HIDDEN)),ze=Me()("navigationType",Re.br.SIDEBAR),Ks=Me()("navigationType",Re.br.COMPACT),_n=z()(pe()(Se(),"navigation"),us,Me()("navigation",!0)),Gn=({course:A,search:bt,isMobile:St})=>(0,_e.c3)(A)?!1:(ze(A)||Ks(A)&&!!St)&&_n(A)||bt.active,Ge=({course:A,isMobile:bt})=>Ks(A)&&_n(A)&&!bt,an=A=>[Re.Py.DARK_IMAGE,Re.Py.LIGHT_IMAGE,Re.qB.DARK_IMAGE,Re.qB.IMAGE,Re.kY.DARK_IMAGE,Re.kY.LIGHT_IMAGE].includes(A),Qs=A=>[Re.kY.DARK,Re.kY.LIGHT].includes(A),Zs=ut.WA,jn=(A,bt)=>{if(A===Re.V7.RISE_CLASSIC||A===Re.V7.HORIZON)switch(bt){case Re.BL.SPLIT_LEFT_IMAGE:case Re.BL.SPLIT_RIGHT_IMAGE:case Re.BL.TWO_THIRDS_LEFT_IMAGE:case Re.BL.TWO_THIRDS_RIGHT_IMAGE:return!0;default:return!1}else if(A===Re.V7.APEX)switch(bt){case Re.BL.SPLIT_LEFT_IMAGE:case Re.BL.SPLIT_RIGHT_IMAGE:return!0;default:return!1}return!1},zr=(A,bt)=>{switch(A){case R.RISE_CLASSIC:case R.APEX:case R.HORIZON:return bt===U.CENTERED_OVERLAY||bt===U.LEFT_OVERLAY||bt===U.IMAGE;default:return!1}},Kn=be()(Se(),me()),At=be()(Se(),le()(!1)),fs=pe()(At,"isComplete"),as=be()(pe()(le()(!1),"passed"),pe()(At,"isComplete")),Wo=Ze()(2,A=>Ce()(z()(q()(le()(A),V()),q()(as,h()),q()(fs,h())))),mo=Ze()(2,A=>ie()(Ye(),Wo(A),s()([]),V())),po=X()(Ze()(2,A=>z()(Kn,K()(A),mo(A))))},16323(tt,Le,c){"use strict";c.d(Le,{QZ:()=>X,R9:()=>Ie,aj:()=>Ce});var R=c(44914),U=c.n(R),B=c(19892),K=c.n(B),J=c(17193),q=c.n(J),ve=c(65301),re=c.n(ve),se=c(42117),s=c.n(se);const ye=K()(s()),be=["a","b","blockquote","br","div","em","h1","h2","h3","h4","h5","h6","i","img","li","mark","ol","p","table","td","th","tbody","thead","tr","s","strong","span","sub","sup","u","ul","details","summary","rise-image","rise-math"],ae=["align","allow","allowfullscreen","frameborder","height","longdesc","marginheight","marginwidth","name","referrerpolicy","sandbox","scrolling","src","title","width"],le=ye({allowedAttributes:{"*":["aria-*","class","colspan","id","rowspan","slot","style"],a:["data-external","data-link-type","data-link-destination","href","target","rel"],img:["alt","src"],ol:["start"],span:["data-*"],"rise-image":["key","src","width","height","originalwidth","originalheight"],"rise-math":["data-translate-attrs","long-description","short-description","tex"]},allowedClasses:["fr-*"],allowedSchemes:["data","http","https","mailto"],allowedTags:be}),Y=ye({allowedAttributes:{iframe:ae},allowedTags:["iframe"],allowedSchemes:["http","https"]}),Ce=re()(q(),le,U()("")),Ie=re()(q(),Y,U()("")),X=ye({allowedTags:[],allowedAttributes:[]}),_=ye({allowedAttributes:{"*":["aria-*","class","colspan","rowspan","style"],a:["data-external","data-link-type","data-link-destination","href","target","rel"],ol:["start"],span:["data-*"],"rise-image":["key","src","width","height","originalwidth","originalheight"],"rise-math":["tex"]},allowedClasses:["fr-*"],allowedSchemes:["data","http","https","mailto"],allowedTags:be.filter(te=>te!=="img")}),V=te=>{const z=te.replace(/((<br>)|(<\/[a-z]*>))+/g," ");return X(z).replace(/\s{2,}/g," ")}},93949(tt,Le,c){"use strict";c.d(Le,{U2:()=>ne});var R,U,B=c(31735),K=c.n(B),J=c(54811),q=c.n(J),ve=c(19892),re=c.n(ve),se=c(57955),s=c.n(se),ye=c(2639),be=c.n(ye),ae=c(16997),le=c.n(ae),Y=c(98757),Ce=c.n(Y),Ie=c(8833),X=c.n(Ie),_=c(44310),V=c.n(_),te=c(7507);const z=5e3,me=le()(re()(q())(":n3,n4,i4,n7,n9")),je=K()(s()(","),be()),Se=(Fe,ge)=>{const Me=new FontFace(ge.name,Fe,{family:ge.name,style:ge.style,weight:ge.weight});return Me.load().then(()=>document.fonts.add(Me))},fe=(Fe,ge)=>{const Me=document.createElement("style");return Me.innerText=`@font-face { font-family: '${ge.name}'; src: ${Fe}; font-weight: ${ge.weight}; font-style: ${ge.style}; }`,document.head.appendChild(Me),new(X())(ge.name,{style:ge.style,weight:ge.weight}).load()},h=Fe=>{const ge=`url(${(0,te.PJ)(Fe)}) format('woff')`;return("fonts"in document?Se:fe)(ge,Fe)},ne=(Fe,ge)=>{const Me=Promise.all(Fe.map(h));let Ve;const pe=new Promise(ke=>{Ve=setTimeout(ke,z)});return Promise.race([Me,pe]).catch(ke=>{console.error("Failed to load learn course fonts:",{fonts:Fe,error:ke.message||ke})}).finally(()=>{clearTimeout(Ve),ge()})},ie=({baseUri:Fe,typefaces:ge,onLoad:Me,onError:Ve})=>{const pe=R(ge).join(", ");return U.load({active:Me,fontinactive:(ke,Ye)=>{console.error("Individual font failed to load:",{familyName:ke,fvd:Ye,typefaces:ge})},inactive:()=>{console.error("Failed to load course fonts:",{typefaces:ge,typefaceList:pe}),Ve?.(),Me?.()},timeout:z,custom:{families:me(R(ge)),urls:[`${Fe}/course_fonts.css?typefaceIds=${je(ge)}`]}})},Q=()=>U.load({google:{families:["Noto Sans Myanmar:300,400,500,600,700"]},timeout:z})},28667(tt,Le,c){"use strict";c.d(Le,{yV:()=>B});var R,U=c(63557);const B=re=>{const se=re.user,s=se?.profile?.user_id,ye=se?.subscription?.subscription_id||se?.subscription?.id;return{application_source:"360_rise",application_service:"authoring",user_role:(0,U.O0)()||"Creator",reach_user_id:void 0,a360_user_id:s,user_permissions:se?.permissions||[],session_id:re?.user?.session,subscription_id:se?.subscription?.subscription_id||ye,tenant_id:ye,risecom_billing_id:void 0,...se?.subscription?.plan&&{subscription:{plan:se.subscription.plan,trial_type:se.subscription.trial_type??null}},...re.ai?.subscription&&{ai:{plan:re.ai.subscription.plan,start_date:re.ai.subscription.start_date,end_date:re.ai.subscription.end_date,status:re.ai.subscription.status}},...re.l10n?.subscription&&{localization:{end_date:re.l10n.subscription.end_date,plan:re.l10n.subscription.plan,start_date:re.l10n.subscription.start_date,status:re.l10n.subscription.status}}}},K=re=>{const se=re.course;return{course_id:se?.id,course_locale:se?.locale||re.l10n&&R(re.l10n)||null,course_created_via:se?.metadata?.createdVia??null,course_snapshot_id:se?.metadata?.restoredFromSnapshotId??null,copied_course_id:se?.copyOf??null}},J=(re,se)=>{if(!se)return{};const s=re?.lessons?.[se];if(!s)return{};const ye=re?.course?.lessons?.indexOf(se)+1||null;return{lesson_id:se,lesson_type:s.type,lesson_position:ye}},q=(re,se,s)=>{if(!se||!s)return{};const be=(re.lessons||{})[se];if(!be?.items)return{};const ae=be.items.find(Ce=>Ce.id===s);if(!ae)return{};const Y=be.items.map(Ce=>Ce.id).indexOf(s)+1;return{block_id:s,block_type:ae.type,block_variant:ae.variant,block_family:ae.family,block_position:Y,block_created_via:ae?.metadata?.createdVia??"manual"}},ve=({interactionSetId:re,interactionSetWorkflowKey:se,taskType:s,resourceType:ye,hasSourceContent:be}={})=>re?{interaction_set_id:re,...se&&{interaction_set_workflow_key:se},interaction_set_task_type:s,interaction_set_task_resource_type:ye,interaction_set_has_source_content:be}:{}},88254(tt,Le,c){"use strict";c.d(Le,{$H:()=>Se,Bd:()=>fe,DX:()=>le,Ge:()=>Fe,H7:()=>pe,MT:()=>je,PH:()=>ne,SQ:()=>ie,Sd:()=>ue,UG:()=>Ce,Wz:()=>Ve,_z:()=>me,cN:()=>V,dT:()=>Me,d_:()=>Y,hM:()=>h,kJ:()=>ge,nZ:()=>_,qm:()=>ae,rv:()=>be,up:()=>te,v1:()=>Q,vU:()=>X});var R=c(16881),U=c(26372),B=c(42900),K=c(78570),J=c(26842),q=c(18154),ve=c(45857),re=c(47543),se=c(78774),s=c.n(se);const ye=(0,U.createContext)(null);ye.displayName="CourseContext";function be({children:ke,course:Ye,courseProgress:Je,l10n:Ze,labels:gt,labelsLocale:et,lessons:Re,partnerContent:_e,search:ut}){const ft=(0,U.useMemo)(()=>({course:Ye,courseProgress:Je,l10n:Ze,labels:gt,labelsLocale:et,lessons:Re,partnerContent:_e,search:ut}),[Ye,Ze,gt,et,Re,Je,_e,ut]),qe=(0,U.useMemo)(()=>({l10n:(0,se.omit)(["locales","defaultLocale"],Ze)}),[Ze]),Gt=(0,U.useMemo)(()=>({l10n:{locales:Ze?.locales,defaultLocale:Ze?.defaultLocale,localeSelectorOptions:Ze?.localeSelectorOptions,showLocaleSelector:Ze?.showLocaleSelector,languageCodeMetadata:Ze?.languageCodeMetadata}}),[Ze?.locales,Ze?.defaultLocale,Ze?.localeSelectorOptions,Ze?.showLocaleSelector,Ze?.languageCodeMetadata]);return(0,R.jsx)(ye.Provider,{value:ft,children:(0,R.jsx)(q.xr.Provider,{value:qe,children:(0,R.jsx)(q.zE.Provider,{value:Gt,children:ke})})})}function ae(){return(0,U.useContext)(ye)}function le(){return ae()?.course}function Y(){return(0,q.QQ)(le()?.title)}function Ce(){const ke=le();return ke.selectedAuthorId==="none"||!("authors"in ke)?null:ke.selectedAuthorId?ke.authors?.find(Ye=>Ye.id===ke.selectedAuthorId):ke.authors?.find(Ye=>Ye.id===ke.author)}function Ie(){return le().trackingQuizId}function X(){const{labels:ke}=ae()??{};return ke}function _(){return ae()?.labelsLocale}const V=({isCourseComplete:ke,percentCourseComplete:Ye})=>{const Je=X()??{},{courseResume:Ze,courseStart:gt,processStartAgain:et}=Je;return{courseCTALabel:ke?et:Ye>0?Ze:gt}};function te(){const{courseProgress:ke}=ae();return ke}function z(){return te()?.lessons}function ue(){return te()?.percentComplete}function me(){return le().lessonsOnly?.[0]}function je(){const ke=z(),Ye=Ie();return(0,K.jI)(ke,Ye)}function Se(){const ke=le(),{selectedAuthorId:Ye}=ke?.lessons?.[0]??{};return Ye==="none"||!Ye?null:ke?.authors?.find(Je=>Je.id===Ye)??null}function fe(){const{course:ke,partnerContent:Ye}=ae();return Ye.content?.find(Je=>Je.id===ke.selectedAuthorId)}function h(){return fe()?.data?.authors??null}function ne(){const{partnerContent:ke}=ae();return ke?.content?.[0]?.data?.authors}function ie(){return ae().search}function Q(){const{lessons:ke}=le();return(0,U.useMemo)(()=>Array.isArray(ke)?ke.filter(({type:Je})=>Je!=="section").length:0,[ke])}function Fe(ke){const Ze=le()?.theme?.accentContrast;return typeof Ze!="string"?B.Em.LIGHT:Ze===B.Em.AUTO?(0,J.xD)(ke):Ze}function ge(){const ke=le();return ke?.theme?.colorAccent??ke?.color}function Me(){return le()?.theme?.coverImageColor??B.df.DARK}function Ve(){const{currentLocale:ke}=(0,re.nY)(),Ye=(0,q.jc)(),Je=le();return(0,ve.V)({course:Je,locales:Ye,locale:ke})}function pe(){const{lessons:ke}=ae();return ke}},18154(tt,Le,c){"use strict";c.d(Le,{D_:()=>ae,MQ:()=>Ce,NB:()=>re,QQ:()=>se,bs:()=>Ie,dx:()=>s,gY:()=>ve,iR:()=>ye,jc:()=>be,xr:()=>J,zE:()=>q});var R=c(57898),U=c(88254),B=c(26372),K=c(47543);const J=(0,B.createContext)({l10n:null});J.displayName="TranslationContext";const q=(0,B.createContext)({l10n:null});q.displayName="LocalesContext";function ve(){const{currentLocale:X}=(0,K.nY)(),_=ae(),V=le();return(0,B.useCallback)(te=>(0,R.Dh)(te,X,_,V),[X,_,V])}function re(){const{currentLocale:X}=(0,K.nY)(),_=ae(),V=le();return(0,B.useCallback)(te=>(0,R.UR)(te,X,_,V),[X,_,V])}function se(X){const{currentLocale:_}=(0,K.nY)(),V=ae();let te=le();const z=Y();return z&&Object.keys(z).length&&_&&te&&(te={...te,[_]:z}),(0,R.Dh)(X,_,V,te)}function s(X){const{currentLocale:_}=(0,K.nY)(),V=ae(),te=le();return(0,B.useMemo)(()=>(0,R.UR)(X,_,V,te),[_,V,X,te])}function ye(){return(0,B.use)(q)}function be(){const X=ye();return(0,R.S)(X)}function ae(){const X=ye();return(0,R.HH)(X)}function le(){const X=(0,B.use)(J);return(0,R.fF)(X)}function Y(){return(0,U.qm)()?.search?.translations}function Ce(){const X=(0,B.use)(J);return(0,R.Zn)(X)}function Ie(){const X=(0,B.use)(J);return(0,R.cP)(X)}},47543(tt,Le,c){"use strict";c.d(Le,{fH:()=>s,nY:()=>ye,wZ:()=>be});var R=c(16881),U=c(26372),B=c(94036);function K(ae,le=window.location){const{defaultLocale:Y,locales:Ce}=ae??{},Ie=le.hash?(0,B.Rr)(le.hash.slice(1)):le;let _=new URLSearchParams(Ie.search).get("locale");const V=new URL(window.location.href);return V.pathname.startsWith("/view-pdf/")&&(_=V.searchParams.get("locale")),Ce?.find(z=>z.locale===_)?.locale||Y}var J=c(18154),q=c(68902),ve=c(57898),re=c(7927);const se=(0,U.createContext)({currentLocale:void 0,setCurrentLocale:()=>{}});function s({children:ae}){const le=(0,q.Z)(),Y=(0,B.zy)(),Ce=(0,re.LY)(ve.HH),Ie=(0,J.D_)(),X=Ce||Ie,_=(0,re.LY)(ve.S),V=(0,J.jc)(),te=Ce?_:V,z=(0,U.useMemo)(()=>K({defaultLocale:X,locales:te},Y),[X,te,Y]),ue=(0,U.useCallback)((je,Se="replace")=>{const fe=je===X?"":je,h=new URLSearchParams(Y.search);h.set("locale",fe);const ne=Y.pathname+"?"+h.toString()+Y.hash;Se==="push"?le(ne):le(ne,{replace:!0})},[X,le,Y]),me=(0,U.useMemo)(()=>({currentLocale:z,setCurrentLocale:ue}),[z,ue]);return(0,R.jsx)(se.Provider,{value:me,children:ae})}function ye(){return(0,U.useContext)(se)}function be(ae){const le=Y=>{const Ce=ye();return(0,R.jsx)(ae,{...Y,...Ce})};return le.displayName=`withCurrentLocale(${ae.displayName||ae.name})`,le}},84980(tt,Le,c){"use strict";c.d(Le,{B1:()=>ye,BN:()=>ae,F:()=>re,R6:()=>q,eB:()=>s,q2:()=>ve});var R=c(16881),U=c(26372),B=c(26741),K=c(23233),J=c(98806);const q=U.createContext(null),ve=U.createContext(!1),re=le=>(0,R.jsx)(ve.Provider,{value:!0,children:(0,R.jsx)(K.A,{...le})});function se(le){return class extends U.Component{static displayName=`withStaleTransitionState(${le.displayName||le.name})`;static defaultProps={onEnter:()=>{},onEntered:()=>{},onEntering:()=>{},onExit:()=>{},onExited:()=>{},onExiting:()=>{}};nodeRef=U.createRef();onEnterDelegate;onEnteringDelegate;onEnteredDelegate;onExitDelegate;onExitingDelegate;onExitedDelegate;constructor(Ce){super(Ce),this.state={transitionState:null},this.onEnterDelegate=this.onTransition.bind(this,"enter"),this.onEnteringDelegate=this.onTransition.bind(this,"entering"),this.onEnteredDelegate=this.onTransition.bind(this,"entered"),this.onExitDelegate=this.onTransition.bind(this,"exit"),this.onExitingDelegate=this.onTransition.bind(this,"exiting"),this.onExitedDelegate=this.onTransition.bind(this,"exited")}onTransition=(Ce,...Ie)=>{this.setState({transitionState:Ce});const X="on"+Ce[0].toUpperCase()+Ce.slice(1),_=this.props[X];typeof _=="function"&&_(...Ie)};render(){return(0,R.jsx)(q.Provider,{value:this.state.transitionState,children:(0,R.jsx)(le,{nodeRef:this.nodeRef,...this.props,onEnter:this.onEnterDelegate,onEntered:this.onEnteredDelegate,onEntering:this.onEnteringDelegate,onExit:this.onExitDelegate,onExited:this.onExitedDelegate,onExiting:this.onExitingDelegate})})}}}const s=se(J.Ay),ye=se(B.A);function be(le){const Y=U.useContext(ve),Ce=U.useContext(q),Ie=U.useRef(le);return Y&&Ce?.startsWith?.("exit")||(Ie.current=le),Ie.current}function ae(le){const Y=Ce=>{const Ie=be(Ce);return(0,R.jsx)(le,{...Ie,nodeRef:Ce.ref,ref:Ce.ref})};return Y.displayName=`withTransitionableState(${le.displayName||le.name||"Component"})`,Y}},31926(tt,Le,c){var R={"./en-au":65854,"./en-au.js":65854,"./en-ca":51940,"./en-ca.js":51940,"./en-gb":71753,"./en-gb.js":71753,"./en-ie":56566,"./en-ie.js":56566,"./en-il":25437,"./en-il.js":25437,"./en-in":61019,"./en-in.js":61019,"./en-nz":4208,"./en-nz.js":4208,"./en-sg":2930,"./en-sg.js":2930};function U(K){var J=B(K);return c(J)}function B(K){if(!c.o(R,K)){var J=new Error("Cannot find module '"+K+"'");throw J.code="MODULE_NOT_FOUND",J}return R[K]}U.keys=function(){return Object.keys(R)},U.resolve=B,tt.exports=U,U.id=31926},54357(){},38954(){}}]);
