(globalThis.wpRiseJsonp=globalThis.wpRiseJsonp||[]).push([["learn_main_tsx-node_modules_pnpm_moment_2_30_1_node_modules_moment_locale_sync_recursive_en"],{30349(Kc){Kc.exports=function(li){li||(li={});var __t,__p="";with(li)__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}},79878(Kc,li,f){"use strict";var Wo={};f.r(Wo),f.d(Wo,{callbackComponent:()=>yS,callbackPath:()=>k0,errorPath:()=>hS,getToken:()=>mS,initAuth:()=>G2,login:()=>_2,logout:()=>ar,onFetchTokensThunk:()=>LS,refreshSession:()=>fS,request:()=>Uf});var vo={};f.r(vo),f.d(vo,{callbackComponent:()=>ES,callbackPath:()=>jS,getToken:()=>wS,initAuth:()=>OS,login:()=>AS,logout:()=>Z2,refreshSession:()=>RS,request:()=>Uf});var zr={};f.r(zr),f.d(zr,{CoverDescription:()=>n$,CoverDetailsContentHeading:()=>k_,CoverDueDate:()=>o$,CoverHeader:()=>_$,CoverLayout:()=>W$,LessonHeader:()=>e_,LessonNavFinish:()=>l_,LessonNavNext:()=>d_,LessonNavPrevious:()=>h_,LessonProgressGraphic:()=>x_,NavCompactHeaderCounter:()=>I_,NavCompactHeaderProgress:()=>E_,NavCompactOutline:()=>j_,OverviewListItem:()=>w_,OverviewListSectionTitle:()=>A_,Progress:()=>N_});var xn={};f.r(xn),f.d(xn,{AlignLeft:()=>M_,ArrowDown:()=>mm,ArrowLeft:()=>R_,ArrowRight:()=>P_,ArrowUp:()=>nC,Category:()=>dB,ChevronDown:()=>O_,ChevronUp:()=>B_,Favorite:()=>ph,LessonsComplete:()=>Nd,LessonsRequirement:()=>R6,QuestionBox:()=>D_,QuizFailed:()=>iC,QuizPassed:()=>Nd,QuizRequirement:()=>ch,Search:()=>H_,ToggleDown:()=>F_,Touch:()=>V_,VideoCamera:()=>z_,X:()=>$_});var bn={};f.r(bn),f.d(bn,{components:()=>zr,icons:()=>xn});var Zu={};f.r(Zu),f.d(Zu,{CoverCourseInfo:()=>G_,CoverDetailsSection:()=>Z_,CoverHeader:()=>cU,CoverLayout:()=>uU,LessonHeader:()=>fU,LessonProgressGraphic:()=>bU,NavSidebarHeader:()=>yU,OverviewListItemLinkContent:()=>kU,Progress:()=>IU});var Yu={};f.r(Yu),f.d(Yu,{ArrowDown:()=>gC,ArrowLeft:()=>jU,ArrowRight:()=>EU,ArrowUp:()=>gC,ChevronDown:()=>vC,ChevronUp:()=>vC,Favorite:()=>ph,LessonsComplete:()=>CC,LessonsRequirement:()=>xC,QuizFailed:()=>AU,QuizPassed:()=>CC,QuizRequirement:()=>xC,Search:()=>wU,ToggleDown:()=>RU,X:()=>PU});var Xu={};f.r(Xu),f.d(Xu,{components:()=>Zu,icons:()=>Yu});var Ju={};f.r(Ju),f.d(Ju,{CoverDescription:()=>BU,CoverDetails:()=>HU,CoverGraphic:()=>hc,CoverHeader:()=>KU,CoverLayout:()=>YU,CoverProgress:()=>XU,CoverSVG:()=>kr,LessonHeader:()=>tG,LessonProgressGraphic:()=>aG,NavSidebarHeaderProgress:()=>cG});var qu={};f.r(qu),f.d(qu,{AlignLeft:()=>mG,ArrowDown:()=>lG,ArrowLeft:()=>dG,ArrowRight:()=>uG,ArrowUp:()=>hG,ChevronDown:()=>EC,ChevronUp:()=>pG,Favorite:()=>ph,LessonsComplete:()=>Nd,LessonsRequirement:()=>R6,QuestionBox:()=>fG,QuizFailed:()=>iC,QuizPassed:()=>Nd,QuizRequirement:()=>ch,Search:()=>gG,ToggleDown:()=>EC,Touch:()=>vG,VideoCamera:()=>CG,X:()=>xG});var e0={};f.r(e0),f.d(e0,{components:()=>Ju,icons:()=>qu});var n=f(93572),Fle=f(99951),Vle=f(77935),zle=f(8509),$le=f(37397),_le=f(64834),Ule=f(74230),Gle=f(78082),Wle=f(99114),Kle=f(79263),Qle=f(43618),Zle=f(25084),Yle=f(79962),Xle=f(53984),Jle=f(24844),qle=f(73821),ede=f(16551),tde=f(95396),u=f(80588),Ex=f(41440),Ce=f(80615),jx=f(85759),Qc=f(18398),Ko=f(63707),wx=f(51541),Ax=f(63929),Rx=f(353);const t0=u.createContext(null),s0=u.createContext(!1),Qo=e=>(0,n.jsx)(s0.Provider,{value:!0,children:(0,n.jsx)(wx.A,{...e})});function gf(e){return class extends u.Component{static displayName=`withStaleTransitionState(${e.displayName||e.name})`;static defaultProps={onEnter:()=>{},onEntered:()=>{},onEntering:()=>{},onExit:()=>{},onExited:()=>{},onExiting:()=>{}};nodeRef=u.createRef();onEnterDelegate;onEnteringDelegate;onEnteredDelegate;onExitDelegate;onExitingDelegate;onExitedDelegate;constructor(s){super(s),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=(s,...o)=>{this.setState({transitionState:s});const r="on"+s[0].toUpperCase()+s.slice(1),a=this.props[r];typeof a=="function"&&a(...o)};render(){return(0,n.jsx)(t0.Provider,{value:this.state.transitionState,children:(0,n.jsx)(e,{nodeRef:this.nodeRef,...this.props,onEnter:this.onEnterDelegate,onEntered:this.onEnteredDelegate,onEntering:this.onEnteringDelegate,onExit:this.onExitDelegate,onExited:this.onExitedDelegate,onExiting:this.onExitingDelegate})})}}}const Zc=gf(Ax.Ay),Un=gf(Rx.A);function Px(e){const t=u.useContext(s0),s=u.useContext(t0),o=u.useRef(e);return t&&s?.startsWith?.("exit")||(o.current=e),o.current}function Mx(e){const t=s=>{const o=Px(s);return(0,n.jsx)(e,{...o,nodeRef:s.ref,ref:s.ref})};return t.displayName=`withTransitionableState(${e.displayName||e.name||"Component"})`,t}const vf=e=>e!=null&&typeof e=="object"&&"map"in e&&typeof e.map=="function",Ox=e=>e!=null&&typeof e=="object"&&"run"in e&&typeof e.run=="function",Cf=e=>e!=null&&typeof e=="object"&&"then"in e&&typeof e.then=="function",Bx=e=>e!=null&&typeof e=="object"&&"fork"in e&&typeof e.fork=="function",xf=e=>e!=null&&typeof e=="function",bf=(e,t)=>{const s=o=>bf(o,t);if(typeof e=="object"&&"type"in e&&typeof e.type=="string"){const o="meta"in e&&typeof e.meta=="object"?e.meta:void 0;return{...e,meta:{...o,origin:t}}}if("bimap"in e&&typeof e.bimap=="function")return e.bimap(s,s);if(vf(e))return e.map(s);if(Cf(e))return e.then(s);if(xf(e))return function(r,a){return e(i=>r(s(i)),a)}};function Dx(){return({dispatch:e,getState:t})=>s=>o=>{if(xf(o))return o(e,t);if(Cf(o))return o.then(e);if(Bx(o)){o.fork(e,e);return}return Ox(o)?e(o.run()):vf(o)?o.map(e):s(o)}}function Hx(){return[Dx()]}var Yc=f(80588);const Fx=Qc.Zz;function Vx(e,t){const s=(0,Qc.y$)(e,t,Fx((0,Qc.Tw)(...Hx()))),o=zx(),r=$x(),a=_x(),i=Ux(),c=Gx();return{Provider:Ko.Kq,connect:o,connectBase:r,dispatch:s.dispatch,store:s,useDispatch:a,useDispatchWithOrigin:i,useSelector:c}}function zx(){return function(t,s,o,r){return function(a){return(0,Ko.Ng)(t,s,o,r)(Mx(a))}}}function $x(){return function(t,s,o,r){return function(a){return(0,Ko.Ng)(t,s,o,r)(a)}}}function _x(){return Ko.wA}function Ux(){return function(t){const s=(0,Ko.wA)();return Yc.useCallback(r=>s(bf(r,t)),[s,t])}}function Gx(){return function(t,s=Ko.bN){const o=Yc.useContext(s0),r=Yc.useContext(t0),a=Yc.useRef(void 0),i=(0,jx.S)(),c=(0,Ko.d4)(t,s),d=!i&&o&&r?.startsWith?.("exit");return d||(a.current=c),d&&a.current!==void 0?a.current:c}}var $r=f(75063),Wx=f(71556),Zo=f.n(Wx),le=f(80189),Kx;function Qx(){return le.action}function sde(){return Kx}var Yo=f(58644),Zx=f(4239),Le=f.n(Zx),Yx=f(26005),Xc=f.n(Yx),Xx=f(8628),ve=f.n(Xx),Jx=f(2364),Gt=f.n(Jx),qx=f(42117),n0=f.n(qx);const Jc=Xc()(n0()),yf=["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"],eb=["align","allow","allowfullscreen","frameborder","height","longdesc","marginheight","marginwidth","name","referrerpolicy","sandbox","scrolling","src","title","width"],tb=Jc({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:yf}),sb=Jc({allowedAttributes:{iframe:eb},allowedTags:["iframe"],allowedSchemes:["http","https"]}),o0=Gt()(ve(),tb,Le()("")),Lf=Gt()(ve(),sb,Le()("")),yn=Jc({allowedTags:[],allowedAttributes:[]}),nde=Jc({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:yf.filter(e=>e!=="img")}),ode=e=>{const t=e.replace(/((<br>)|(<\/[a-z]*>))+/g," ");return yn(t).replace(/\s{2,}/g," ")};var nb=f(53452),ce=f.n(nb),ob=f(80163),Gn=f.n(ob),rb=f(31544),ws=f.n(rb),ab=f(48534),di=f.n(ab),ib=f(41422),tt=f.n(ib),cb=f(37316),ms=f.n(cb),lb=f(54506),Sf=f.n(lb),db=f(29921),qc=f.n(db),ub=f(12379),xe=f.n(ub),hb=f(66457),Ae=f.n(hb),mb=f(88612),Ft=f.n(mb);const el=e=>ce()(yn,e),Tf=e=>Gn()({[e]:yn}),pb=({startTime:e,stopTime:t})=>t-e,fb=e=>{switch(e.type){case"FILL_IN_THE_BLANK":return jf(e);case"MATCHING":return Mf(e);default:return _r(e)}},gb=e=>{switch(e.type){case"FILL_IN_THE_BLANK":return jf(e);case"MATCHING":return Mf(e);case"MULTIPLE_CHOICE":return wf(e);case"MULTIPLE_RESPONSE":return xb(e);default:return wf(e)}},vb=({isUnfinished:e,item:t,itemProgress:s})=>{switch(t.type){case"FILL_IN_THE_BLANK":return Cb(e)(s);case"MATCHING":return Sb(t,e)(s);case"MULTIPLE_CHOICE":return Af(t,e)(s);case"MULTIPLE_RESPONSE":return bb(t,e)(s);default:return Af(t,e)(s)}},Nf=e=>[e],_r=e=>{const t=e.answers||[];if(e.shuffledAnswerIndices&&Array.isArray(e.shuffledAnswerIndices)){const s=[];return t.forEach((o,r)=>{const a=e.shuffledAnswerIndices[r];s[a]=o}),s.map(Tf("title"))}return t.map(Tf("title"))},r0=el(xe()("id")),kf=el(xe()("title")),If=e=>t=>ws()(Ae()("id",t),_r(e)),Ef=e=>Xc()(Sf())(_r(e)),jf=ce()(qc()("title"),_r),Cb=e=>Gt()(Le()(e),Le()(""),el(xe()("text"))),wf=e=>ce()(If(e),xe()("correct"))(e),Af=(e,t)=>Gt()(Le()(t),Le()([]),s=>{const o=xe()("selectedIndex",s);return o===void 0?[]:Nf(Ef(e)(o))}),xb=e=>ce()(di(),tt()(If(e)),xe()("corrects"))(e),bb=(e,t)=>Gt()(Le()(t),Le()([]),s=>{const o=xe()("selectedIndices",s)||[];return di()(o.map(r=>Nf(Ef(e)(r))))}),Rf=({sourceId:e,sourceTitle:t,targetId:s,targetTitle:o})=>({source:{id:`source_${e}`,title:t},target:{id:`target_${s}`,title:o}}),Pf=el(xe()("matchTitle")),yb=e=>{const t=r0(e);return Rf({sourceId:t,sourceTitle:kf(e),targetId:t,targetTitle:Pf(e)})},Lb=e=>(t,s)=>{const o=_r(e),r=o.find(i=>i.id===s),a=o.find(i=>i.id===t);return Rf({sourceId:r0(r),sourceTitle:kf(r),targetId:r0(a),targetTitle:Pf(a)})},Mf=ce()(tt()(yb),_r),Sb=(e,t)=>Gt()(Le()(t),Le()([]),ce()(Ft(),ms()(Lb(e)),xe()("matches")));var Tb=f(89681),Of=f.n(Tb),Nb=f(26017),Bf=f.n(Nb),kb=f(49118),Xo=f.n(kb);const{Runtime:Wt}=window,ye=e=>window.env?.[e],Se=!1,rde=null,Df="Rise 360",Ib=e=>`${ye("CDN_USER_CONTENT_URI")}/${e}`,mt=e=>{const t=e||"",s=Wt?.resolvePath!=null?Wt.resolvePath.bind(Wt):Ib;return t.startsWith("http")||t.startsWith("data:")||t.startsWith("//")?t:s(t)||t},Eb=e=>Wt?.resolveFontPath!=null?Wt.resolveFontPath(e):`${e.default?ye("CDN_URI"):ye("CDN_USER_CONTENT_URI")}/${e.key}`,Hf=()=>{Wt?.exit!=null&&Wt.exit()},jb=()=>Wt?.isComplete!=null?Wt.isComplete():null,ui=()=>Wt?.isExport!=null?Wt.isExport():!1;function wb(){if(Wt?.isExport!=null){const e=window.partnerContent?.content;return Wt.isExport()&&!!e}return!1}const Ff=()=>{if(Wt?.sendTouch!=null)return Wt.sendTouch()};var Vf;const a0="_articulate_user_id",Ab="_rise_authoring_api_session",zf=()=>Se?ye("SESSION_COOKIE_NAME"):"_articulate_rise_",i0=(e,t)=>`${e}=${t}; domain=${ye("SESSION_COOKIE_DOMAIN")}; path=/; secure=true`,Rb=e=>document.cookie=i0(a0,e),Pb=()=>document.cookie=`${i0(a0,"")}; Max-Age=-99999999`,Mb=()=>document.cookie=`${i0(Ab,"")}; Max-Age=-99999999`,Jo=()=>Bf().load(a0),pt=()=>Bf().load(zf()),Ob=()=>pt()?Xo()(pt()).staff:!1,Bb=()=>pt()?Vf(pt())?.staffRoles||[]:[],Db=()=>pt()?Vf(pt())?.content_team_admin:!1,ade=()=>Bb().includes("content-team")||Db(),c0=()=>pt()?Xo()(pt()).riseId||Xo()(pt()).sub||Xo()(pt()).aid:"",Hb=()=>pt()?Xo()(pt()).roles:[],Fb=()=>pt()?Xo()(pt()).tenantId:"",$f=()=>pt()?Xo()(pt()).subscription||{}:{},Vb=()=>$f().plan_id||"",zb=()=>$f().status||"";var $b=f(71066),_b=f(31272),ps=f.n(_b);const Ub=Se?window.env:ps()(window.env,{ACCESS_COOKIE_NAME:zf(),REDIRECT_URI:window.location.origin+"/auth-callback"}),qo=(0,$b.A)(Ub),_f=qo.closeSession,hi=qo.on,Uf=qo.request,Gf=qo.refreshSession,mi=qo.resetSession,Gb=qo.getAuthorizationUrl,ide=qo.fetch;var Wn=f(52423);const tl=(e,t)=>((...s)=>{try{return e(...s)}catch(o){window.env?.SERVICE_ENV&&window.env?.SERVICE_ENV!=="prod"&&console.error(o),Wn.L2.addError(o),t(o)}}),Wb=e=>{const t=e.getResponseHeader("content-type")||"",s=t.includes("application/json");if(!(s||t.includes("text/")))return e.response;try{const r=new TextDecoder("utf-8").decode(e.response);try{return s?JSON.parse(r):r}catch{return r}}catch{return e.response}};function Kb(e,t){const s=t.indexOf(":"),o=t.substr(0,s).trim().toLowerCase(),r=t.substr(s+1).trim();return o&&(e[o]=e[o]?e[o]+", "+r:r),e}function Qb(e){return e?e.split(`
`).reduce(Kb,{}):{}}function Wf(e){const t=[];for(const s in e){const o=e[s];if(!Array.isArray(o)){t.push(encodeURIComponent(s)+"="+encodeURIComponent(o));continue}for(const r of o)t.push(Wf(r))}return t.join("&")}function l0(e){let t,s=!1;const o=new Promise(function r(a,i){const c=e.signal;if(c?.aborted){i(new DOMException("Aborted","AbortError"));return}const d=I=>{throw i(I),I},l=()=>{t.abort(),i(new DOMException("Aborted","AbortError"))},h=e.data;let m=tl(e.deserialize??Of(),d);const p=e.headers??{},v=e.json??!1,C=e.jwt??!1,g=e.token??null,x=e.method??"GET",L=e.reviewEnv??!1,T=e.onUploadProgress;let y=tl(e.serialize??Of(),d),b=e.url;const S=e.withCredentials??!1,N=e.file,k=e.timeout??3e3;t=new XMLHttpRequest;const E=setTimeout(()=>{t.abort(),i({error:"request timed out"})},k);if(v&&(m=tl(JSON.parse,i),y=tl(JSON.stringify,i),p["Content-Type"]="application/json"),x==="GET"&&h&&(b+="?"+Wf(h)),C){const I=g||pt();p.Authorization="Bearer "+I}c?.addEventListener("abort",l),t.withCredentials=S,t.addEventListener("abort",i),t.addEventListener("error",i),t.addEventListener("load",function(){t.status>=400?[401,403].includes(t.status)?s?i({error:"Unable to resume session",status:t.status}):mi().then(()=>{r(a,i),s=!0}).catch(I=>{Wn.L2.addError(I),i({error:"Unable to resume session",status:t.status})}):e.arrayBuffer?i(Wb(t)):i(m(t.response)):(a({body:t.status===204?void 0:m(t.response),headers:Qb(t.getAllResponseHeaders()),status:t.status}),c?.removeEventListener("abort",l)),clearTimeout(E)}),t.upload&&typeof T=="function"&&t.upload.addEventListener("progress",T),t.open(x,b),e.arrayBuffer&&(t.responseType="arraybuffer");for(const I in p)t.setRequestHeader(I,p[I]);x!=="GET"&&h?t.send(y(h)):N?t.send(N):t.send()});return o.abort=(...r)=>t.abort(...r),o}function Zb(e){return e.status===200||e.status===201?e.body:Promise.reject(e.body)}const Kf=(e,t=!0)=>t?`${e}s`:e;var sl=(e=>(e[e.KB=1024]="KB",e[e.MB=1048576]="MB",e[e.GB=1073741824]="GB",e[e.TB=1099511627776]="TB",e))(sl||{});const cde={KB:(e=1)=>1024*e,MB:(e=1)=>1048576*e,GB:(e=1)=>1073741824*e,TB:(e=1)=>1099511627776*e},Qf={KB:{short:"KB",long:"Kilobyte"},MB:{short:"MB",long:"Megabyte"},GB:{short:"GB",long:"Gigabyte"},TB:{short:"TB",long:"Terabyte"}},lde=(e,t="short")=>{const o=Object.keys(sl).reverse().find(c=>e>=sl[c]);if(!o)return`${e} ${Kf("byte",e>1)}`;const r=e/sl[o],a=r%1===0?r.toFixed(0):r.toFixed(2),i=t==="long"?Kf(Qf[o].long,r>1):Qf[o].short;return`${a} ${i}`},Zf="a",nl="n",Yf="t",pi="c",Xf="ps",fi="p",Jf="v",ol="r",qf="s",e2="rr",t2="pq",d0="qd",u0="ql",s2="qt",rl="vp",n2="k",o2="is",r2="v",gi="i",a2="pv",i2="m",c2="sr",l2="s",d2="x",u2="sa",h2="t";var Yb=f(31946),Xb=f.n(Yb);const ns=e=>!!e&&e.type==="quiz",Ln=e=>!!e&&e.type==="blocks",rt=({courseProgress:e,lessonId:t,updatedLessonProgress:s})=>({...e,lessons:{...e.lessons,[t]:s}});function at({lessonId:e,nextCourseProgress:t,prevCourseProgress:s}){const o=t.lessons[e],r=s.lessons[e];if(o&&!Xb()(o,r)&&(kT(o),Jb({lessonId:e,courseProgress:t,prevCourseProgress:s})),qb({lessonId:e,prevCourseProgress:s,nextCourseProgress:t})){const a=p2(s),i=p2(t),c=i!==a,d={...t,percentComplete:i};return c&&(ey({courseProgress:d,lessonProgress:o}),d.percentComplete!=null&&ET(d.percentComplete)),d}return t}function Jb({courseProgress:e,prevCourseProgress:t,lessonId:s}){const o=e.lessons?.[s],r=t.lessons?.[s];if(o?.percentComplete===100&&r?.percentComplete!==100){const a=m2(o);a&&NT(a)}}function qb({lessonId:e,nextCourseProgress:t,prevCourseProgress:s}){const o=t.lessons?.[e];if(!o)return!1;const r=s.lessons?.[e]?.percentComplete===100,a=o.percentComplete===100,i=r!==a,c=t.currentLesson!=null&&ns(t.lessons[t.currentLesson])&&t.lessons[t.currentLesson]?.percentComplete===100;return i||c}function m2(e){const{id:t}=e;if(!t)throw new Error("Cannot create lesson payload: lesson.id is missing");if(ns(e)){const{passed:s,score:o,passingScore:r=0}=e;return{id:t,...s!==void 0&&{passed:s},...o!==void 0&&{score:o},passingScore:r}}return{id:t}}function p2(e){const{lessons:t={}}=e,s=Object.keys(t).length;if(s===0)return 0;const o=Object.values(t).filter(r=>r.isComplete).length;return Math.round(o/s*100)}function ey({courseProgress:e,lessonProgress:t}){if(!e||!t)return;const s=m2(t);s&&IT(e,s)}const ty=e=>e.reduce((t,s,o)=>("id"in s&&(t[s.id]={id:s.id,index:o}),t),{}),h0=e=>({...e,percentComplete:m0({items:e.items,key:"isComplete"})}),f2=e=>({...e,percentComplete:m0({items:e.items,key:"isComplete"})}),g2=e=>({...e,percentViewed:m0({items:e.items,key:"isViewed"})});function dde({itemId:e,isCorrect:t,progress:s}){const o={...s,items:{...s.items,[e]:{...s.items?.[e],id:e,index:s.items?.[e]?.index??0,isComplete:t,isViewed:t,...s.items?.[e].isCorrect===void 0?{isCorrect:t}:{}}}};o.items[e]?.isCorrect===!1&&(o.lastIncorrectCardId=e);const r=sy(o),a=r.percentComplete!==100?f2(r):r,i=g2(a);return i.percentComplete===100?{...i,isComplete:!0}:i}function m0({items:e,key:t}){const s=e??{},o=Object.keys(s).length,r=Object.values(s).filter(a=>a?.[t]).length;return o===0?0:Math.round(r/o*100)}function sy(e){const s=Object.values(e.items||{}).filter(o=>o.isCorrect===!0).length;return{...e,correctlyAnswered:s}}var p0=f(64933),ny,oy;const As=e=>!!e&&Object.prototype.toString.call(e)==="[object Object]",v2=Array.isArray,ude=(e,t)=>Object.fromEntries(Object.entries(t).map(e)),C2=(e,t,s)=>{const o={};for(const r in s)o[e(r)]=t(s[r]);return o},ry=e=>e.map(x2),ay=e=>e.map(b2),iy=e=>C2(ny,x2,e),cy=e=>C2(oy,b2,e),x2=e=>As(e)?iy(e):v2(e)?ry(e):e,b2=e=>As(e)?cy(e):v2(e)?ay(e):e,Et=(e,t)=>{const s=new Set(t),o={};for(const r in e)s.has(r)||(o[r]=e[r]);return o},Co=(e,t)=>Object.fromEntries(Object.entries(e).map(([s,o])=>t(s,o)));function y2(e,t){const s=e.lessons[t];if(!Ln(s))return e;const o={...f0(s),id:t},r=rt({courseProgress:e,lessonId:t,updatedLessonProgress:o});return at({lessonId:t,prevCourseProgress:e,nextCourseProgress:r})}function ly(e,t){const{lessonId:s,blockId:o,itemId:r}=t,a=e.lessons[s];if(!Ln(a))return e;const i=a.items[o],c=xy({blockProgress:i,itemId:r}),d=er({lessonProgress:a,blockId:o,updatedProgressBlock:c}),l=h0(d),h=rt({courseProgress:e,lessonId:s,updatedLessonProgress:l});return at({lessonId:s,prevCourseProgress:e,nextCourseProgress:h})}function dy(e,t){const s=e.lessons[t];if(!Ln(s))return e;const o=yy(s),r=rt({courseProgress:e,lessonId:t,updatedLessonProgress:o});return at({lessonId:t,prevCourseProgress:e,nextCourseProgress:r})}function uy(e,{blockId:t,lessonId:s}){const o=e.lessons[s];if(!Ln(o))return e;const r=Ly(o.items[t]),a=er({lessonProgress:o,blockId:t,updatedProgressBlock:r}),i=rt({courseProgress:e,lessonId:s,updatedLessonProgress:a});return at({lessonId:s,prevCourseProgress:e,nextCourseProgress:i})}function hy(e,t){const{lessonId:s,blockId:o,items:r}=t,a=e.lessons[s];if(!Ln(a))return e;const i=Cy({blockId:o,lessonProgress:a,items:r}),c=rt({courseProgress:e,lessonId:s,updatedLessonProgress:i});return at({lessonId:s,prevCourseProgress:e,nextCourseProgress:c})}function my(e,t){const{lessonId:s,blockId:o,itemId:r,audioVideoPlayhead:a}=t,i=e.lessons[s],c=i?.items?.[o];if(!Ln(i)||!c||!("items"in c)||!c.items||!c.items[r])return e;const l={...c.items[r],audioVideoPlayhead:a},h={...c,items:{...c.items,[r]:l}},m=er({lessonProgress:i,blockId:o,updatedProgressBlock:h}),p=rt({courseProgress:e,lessonId:s,updatedLessonProgress:m});return at({lessonId:s,prevCourseProgress:e,nextCourseProgress:p})}function py(e,t){const{lessonId:s,blockId:o,itemId:r,isCorrect:a}=t,i=e.lessons[s];if(!Ln(i))return e;const c=Sy({itemId:r,isCorrect:a,blockProgress:i.items[o]}),d=h0(er({lessonProgress:i,blockId:o,updatedProgressBlock:c})),l=rt({courseProgress:e,lessonId:s,updatedLessonProgress:d});return at({lessonId:s,prevCourseProgress:e,nextCourseProgress:l})}function fy(e,t){const{lessonId:s,blockId:o,itemId:r,response:a}=t,i=e.lessons[s],c=i?.items?.[o];if(!Ln(i)||!c||!("items"in c)||!c.items||!c.items[r])return e;const l={...c.items[r],response:a},h={...c,items:{...c.items,[r]:l}},m=er({lessonProgress:i,blockId:o,updatedProgressBlock:h}),p=rt({courseProgress:e,lessonId:s,updatedLessonProgress:m});return at({lessonId:s,prevCourseProgress:e,nextCourseProgress:p})}function gy(e,t){const{lessonId:s,blockId:o,isSubmitted:r}=t,a=e.lessons[s];if(!Ln(a))return e;const i=a?.items?.[o]??{},c=Co(i?.items??{},(m,p)=>[m,Et(p,["response"])]),d={...i,items:c,isSubmitted:r},l=er({lessonProgress:a,blockId:o,updatedProgressBlock:d}),h=rt({courseProgress:e,lessonId:s,updatedLessonProgress:l});return at({lessonId:s,prevCourseProgress:e,nextCourseProgress:h})}const vy=e=>Object.values(e).length>0&&Object.values(e).every(t=>t.isComplete),f0=e=>{const t=Co(e.items,(s,o)=>{const r=Co(o.items??{},(a,i)=>[a,{...i,isComplete:!0,id:i.id,index:i.index}]);return[s,{...o,items:r,isComplete:!0}]});return{...e,isComplete:!0,items:t,percentComplete:100}},Cy=({blockId:e,items:t,lessonProgress:s})=>{const o=s.items?.[e]??{items:{}},r=new Set(t.map(l=>String(l.id))),a=Co(o.items??{},(l,h)=>{const m=r.has(l);return[l,{...h,isComplete:h.isComplete||m,id:h.id,index:h.index}]}),c=Object.keys(a).length===0||vy(a),d={...o,id:e,items:a,...c&&{isComplete:!0}};return by(er({lessonProgress:s,blockId:e,updatedProgressBlock:d}))},xy=({blockProgress:e,itemId:t})=>{if(!e.items)return e;const s=e.items[t];return{...e,items:{...e.items,[t]:{...s,retryAttemptCount:(s?.retryAttemptCount??0)+1}}}},by=e=>{const t=h0(e);return t.percentComplete===100?{...t,isComplete:!0}:t},er=({blockId:e,lessonProgress:t,updatedProgressBlock:s})=>({...t,items:{...t.items,[e]:s}}),yy=e=>{const t=Co(e.items,(s,o)=>{const r=Co(o.items??{},(a,i)=>[a,Et(i,["isComplete","isCorrect","isViewed"])]);return[s,{id:o.id,index:o.index,items:r}]});return{...Et(e,["isComplete","percentComplete"]),items:t}},Ly=e=>({...Et(e,["percentViewed","correctlyAnswered"]),id:e.id,index:e.index,items:Co(e.items??{},(t,s)=>[t,Et(s,["isViewed","isCorrect"])]),retryAttempts:(e.retryAttempts??0)+1}),Sy=({isCorrect:e,itemId:t,blockProgress:s})=>{if(!s.items)return s;const o=s.items[t],r={...o,isComplete:e,isViewed:e,...o?.isCorrect===void 0&&{isCorrect:e}},a={...s.items,[t]:r},i=Object.values(a).filter(m=>m.isCorrect).length,c={...s,items:a,correctlyAnswered:i,...!e&&{lastIncorrectCardId:t}},d=g2(c),l=f2(d),h=l.percentComplete===100;return{...l,...h&&{isComplete:!0}}};function L2(e){return e.trim()===""}const Kt={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"},tr={SUMMARY:"SUMMARY",REMAINING:"REMAINING",ELAPSED:"ELAPSED",ELAPSED_TOTAL:"ELAPSED_TOTAL",HIDE_TIMER:"HIDE_TIMER"},Ty={CONTINUE:"continue",NONE:""},Ee={ALL:"all",NONE:"none",INCORRECT:"incorrect"},hde=10,Ur=80,Ny=500;function ky(e,{lessonId:t,progressId:s}){const o=e.lessons[t];if(!ns(o))return e;const r=o.activeIndex??0,a=s?(o.items[s]?.index??r)+1:r+1,i={...o,activeIndex:a},c=rt({courseProgress:e,lessonId:t,updatedLessonProgress:i});return at({lessonId:t,prevCourseProgress:e,nextCourseProgress:c})}function Iy(e,t){const s=e.lessons[t];if(!ns(s))return e;const o=Object.keys(s?.items)?.length,r={...s,activeIndex:o+1},a=rt({courseProgress:e,lessonId:t,updatedLessonProgress:r});return at({lessonId:t,prevCourseProgress:e,nextCourseProgress:a})}function Ey(e,{lessonId:t,itemId:s}){const o=e.lessons[t];if(!ns(o))return e;const r=o.items[s];if(!r)return e;const a={...r,selectedIndices:[]},i=vi({lessonProgress:o,itemId:s,updatedProgressQuizItem:a}),c=rt({courseProgress:e,lessonId:t,updatedLessonProgress:i});return at({lessonId:t,prevCourseProgress:e,nextCourseProgress:c})}function jy(e,{lessonId:t,lessonProgress:s}){return{...e,lessons:{...e.lessons,[t]:s}}}function wy(e,{lessonId:t,itemId:s,text:o}){const r=e.lessons[t];if(!ns(r))return e;const a=r.items[s];if(!a)return e;const i=typeof o=="string"&&L2(o)?Et(a,["text"]):{...a,text:o},c=vi({lessonProgress:r,itemId:s,updatedProgressQuizItem:i}),d=rt({courseProgress:e,lessonId:t,updatedLessonProgress:c});return at({lessonId:t,prevCourseProgress:e,nextCourseProgress:d})}function Ay(e,t){const s=e.lessons[t];if(!ns(s))return e;const o=Co(s.items,(c,d)=>{const l={id:d.id,index:d.index};return[c,l]}),a={...Et(s,["activeIndex","originalItemProgress","passed","percentComplete","questionList","questionsDrawn","reportResults","score"]),...s.passed!==!1&&{passed:s.passed},...s.isComplete!==!1&&{isComplete:s.isComplete},retryAttempts:(s.retryAttempts??0)+1,items:o},i=rt({courseProgress:e,lessonId:t,updatedLessonProgress:a});return at({lessonId:t,prevCourseProgress:e,nextCourseProgress:i})}function Ry(e,{lessonId:t,itemId:s,selectedIndex:o,shuffledAnswerIndices:r}){const a=e.lessons[t];if(!ns(a))return e;const i=a.items[s];if(!i)return e;const c=r??i.shuffledAnswerIndices;if(o==null)return e;const d=Array.isArray(c)&&c[o]!=null?c[o]:o,l={...i,selectedIndex:d,...Array.isArray(c)&&{shuffledAnswerIndices:c}},h=vi({lessonProgress:a,itemId:s,updatedProgressQuizItem:l}),m=rt({courseProgress:e,lessonId:t,updatedLessonProgress:h});return at({lessonId:t,prevCourseProgress:e,nextCourseProgress:m})}function Py(e,{lessonId:t,itemId:s,matches:o}){const r=e.lessons[t];if(!ns(r))return e;const a=r.items[s];if(!a)return e;const i={...a,matches:o},c=vi({lessonProgress:r,itemId:s,updatedProgressQuizItem:i}),d=rt({courseProgress:e,lessonId:t,updatedLessonProgress:c});return at({lessonId:t,prevCourseProgress:e,nextCourseProgress:d})}function My(e,{lessonId:t,timeRemaining:s}){const o=e.lessons[t];if(!ns(o))return e;const r={...o,timeRemaining:s},a=rt({courseProgress:e,lessonId:t,updatedLessonProgress:r});return at({lessonId:t,prevCourseProgress:e,nextCourseProgress:a})}function Oy(e,{lessonId:t,itemId:s,isCorrect:o,finalRetryAttempt:r,passToContinue:a,skipLessonsIfPassed:i,skipToLessonId:c}){const d=e.lessons[t];if(!ns(d))return e;const l=d.passingScore??Ur,h=d.items[s];if(!h)return e;const m={...h,isCorrect:o,isComplete:!0},p={...d.items,[s]:m},v=Object.keys(p).length,C=Object.values(p).filter(b=>b.isCorrect).length,g=Object.values(p).filter(b=>b.isComplete).length,x=Math.round(C/v*100),L=Math.round(g/v*100);let T={...d,items:p,score:x,percentComplete:L};if(L===100){const b=x>=l,S=a?b:!0;if(cg(b,x,t,r),T={...T,passed:b,isComplete:S,reportResults:!0},i&&c&&b)return Hy(e,{quizId:t,destinationId:c,updatedLessonProgress:T})}const y=rt({courseProgress:e,lessonId:t,updatedLessonProgress:T});return at({lessonId:t,prevCourseProgress:e,nextCourseProgress:y})}function By(e,{lessonId:t,itemId:s,selectedIndex:o,shuffledAnswerIndices:r}){const a=e.lessons[t];if(!ns(a))return e;const i=a.items[s];if(!i)return e;const c=r??i.shuffledAnswerIndices;if(o==null)return e;const d=Array.isArray(c)&&c[o]!=null?c[o]:o,l=i.selectedIndices??[],m=l.includes(d)?l.filter(L=>L!==d):[...l,d],{selectedIndices:p,...v}=i,C=m.length>0?{...v,selectedIndices:m,...Array.isArray(c)&&{shuffledAnswerIndices:c}}:{...v,...Array.isArray(c)&&{shuffledAnswerIndices:c}},g=vi({lessonProgress:a,itemId:s,updatedProgressQuizItem:C}),x=rt({courseProgress:e,lessonId:t,updatedLessonProgress:g});return at({lessonId:t,prevCourseProgress:e,nextCourseProgress:x})}function vi({itemId:e,lessonProgress:t,updatedProgressQuizItem:s}){return{...t,items:{...t.items,[e]:s}}}function Dy(e,t){const{id:s,passed:o,passingScore:r,score:a,retryAttempts:i}=t,c=[o,i,a];if(!(c.length===3&&c.every(C=>C!=null)))return e;const l=e.lessons?.[s]?.items??{},h=Object.keys(l).length+1,m=e.lessons?.[s];if(!m)return e;const p={...m,isComplete:!0,activeIndex:h,reportResults:!0,passed:o,passingScore:r,percentComplete:100,retryAttempts:i,score:a};return{...e,lessons:{...e.lessons,[s]:p}}}function Hy(e,{quizId:t,destinationId:s,updatedLessonProgress:o}){const r=rt({courseProgress:e,lessonId:t,updatedLessonProgress:o}),a=at({lessonId:t,prevCourseProgress:e,nextCourseProgress:r}),i=Object.keys(a.lessons),c=i.findIndex(h=>h===t),d=i.findIndex(h=>h===s);return c===-1||d===-1||d<=c?a:i.slice(c+1,d).reduce((h,m)=>{const p=h.lessons[m];if(!p)return h;let v;ns(p)?v=Fy(p):v=f0(p);const C=rt({courseProgress:h,lessonId:m,updatedLessonProgress:v});return at({lessonId:m,prevCourseProgress:h,nextCourseProgress:C})},a)}function Fy(e){const t=Object.fromEntries(Object.entries(e.items||{}).map(([s,o])=>[s,{...o,isComplete:!0,isCorrect:!0}]));return cg(!0,100,e.id,!1),{...e,items:t,isComplete:!0,passed:!0,percentComplete:100,reportResults:!0,score:100}}var Vy=f(80949),zy=f(56374),Kn=f.n(zy);const $y=e=>e!==void 0,S2=Kn()($y,ce()(JSON.parse,Vy.Base64.decode)),_y=(e,t)=>window.courseData?e(window.courseData):window.course?{course:e(window.course),media:[]}:t;var Uy=f(67970),en=f.n(Uy),Gy=f(16661),Vt=f.n(Gy),Wy=f(10103),Xe=f.n(Wy),Ky=f(9207),Gr=f.n(Ky),Qy=f(68510),Zy=f.n(Qy),Yy=f(25785),T2=f.n(Yy);const Xy=["fromDashboard","locale","embed"];function Jy(e,t){const s=typeof e=="function"?e(t):e;return typeof s=="string"?(0,Ce.Rr)(s):s}function g0(e,t){const s=Jy(e,t),o=new URLSearchParams(t?.search||""),r=new URLSearchParams(s?.search||"");for(const a of Xy){const i=o.get(a);i&&!r.has(a)?r.set(a,i):r.has(a)&&!r.get(a)&&r.delete(a)}return{...s,search:r.toString()}}function zt(){const e=(0,Ce.Zp)(),t=(0,Ce.zy)();return(0,u.useCallback)((s,o)=>{if(typeof s=="number")return e(s);const r=g0(s,t),a=r.pathname+(r.search?`?${r.search}`:"")+(r.hash||"");return e(a,o)},[e,t])}function qy(e){function t(s){const o=(0,Ce.zy)(),r=zt(),a=(0,Ce.g)(),[i]=(0,Ce.ok)();return(0,n.jsx)(e,{...s,location:o,match:{params:a},navigate:r,queryParams:i})}return t.displayName=`withRouter(${e.displayName||e.name})`,t}var eL=f(83824),tL=f.n(eL),N2=f(11376),sL=f(60466),k2=f.n(sL),nL=f(61081),v0=f.n(nL),oL=f(53163),Sn=f.n(oL),rL=f(74084),Wr=f.n(rL),aL=f(80070),st=f.n(aL),iL=f(34567),cL=f.n(iL),lL=f(80678),xo=f.n(lL),fde=f(82852),dL;function uL(...e){return ce()(...cL()(1,e))(xo()(e))}function al(e,...t){return st()(...t)(e)}function gde(e,...t){return dL(...t)(e)}const tn=()=>{};var hL=f(68005);const vde="datadoghq.com",Cde=ye("SERVICE_ENV"),xde=ye("RISE_FRONTEND_SHA"),bde=ye("RISE_FRONTEND_LOCAL_DEV")==="true"||window.location.hostname==="rise.dev.articulate.zone",yde=window.Cypress!=null,Lde=Se?[/https:\/\/.*(\.dev)?\.rise\.(com|zone).*/,location.origin]:[/https:\/\/(rise(\.dev)?|360)\.articulate\.(com|zone).*/],I2={"Content-Type":"application/json"},mL=[(e,t)=>(t.Authorization=`Bearer ${xi()}`,JSON.stringify(e))],pL=Gt()(Xe(),ve(),Sn()(["data","status","statusText"])),fL=st()(Sn()(["name","message","response"]),Gn()({response:pL})),gL=({baseURL:e,...t})=>ce()(ps()({headers:I2,transformRequest:mL}),ps()(t),Gn()({url:en()(e)})),vL=({data:e,method:t,url:s})=>fetch(s,{body:JSON.stringify(e),headers:{...I2,Authorization:`Bearer ${xi()}`},keepalive:!0,method:t}).then(o=>o.json()).then(Wr()("data")),CL=Zo().fromPromise(vL),xL=e=>({method:t,url:s})=>`${t}:${e}${s}`,bL=e=>{const t=new Error("Nil token detected");return Wn.L2.addError(t,e),Zo().Rejected(t)},yL=e=>t=>e.preRequest?e.preRequest(t):t,LL=e=>t=>e.postRequest?e.postRequest(t):t,SL=()=>!Se&&Xe()(xi()),TL=e=>(t,s)=>k2()(t,xL(s),C0(bi,e)),C0=(e,t)=>s=>al(s,yL(t),gL(t),Gt()(SL,bL,e),v0()(fL,xe()("data")),LL(t)),NL=e=>({debounce:TL(e),send:C0(bi,e),sendWithKeepAlive:C0(CL,e)}),kL=()=>document.visibilityState==="visible",IL=e=>Kn()(kL,()=>e()),x0=(e=>{document.addEventListener("visibilitychange",IL(e)),window.addEventListener("focus",()=>e())});(Object.getOwnPropertyDescriptor(x0,"name")||{}).writable||Object.defineProperty(x0,"name",{value:"default",configurable:!0});var EL=f(24578),os=f.n(EL),jL=f(30684),Kr=f.n(jL),wL=f(23403),AL=f.n(wL),RL=f(75884),sr=f.n(RL),PL;const E2=e=>{const t=e.user,s=t?.profile?.user_id,o=t?.subscription?.subscription_id||t?.subscription?.id;return{application_source:"360_rise",application_service:"authoring",user_role:t?.subscription?.is_business_creator?"Business Creator":"Creator",reach_user_id:void 0,a360_user_id:s,user_permissions:t?.permissions||[],session_id:e?.user?.session,subscription_id:t?.subscription?.subscription_id||o,tenant_id:o,risecom_billing_id:void 0,...t?.subscription?.plan&&{subscription:{plan:t.subscription.plan,trial_type:t.subscription.trial_type??null}},...e.ai?.subscription&&{ai:{plan:e.ai.subscription.plan,start_date:e.ai.subscription.start_date,end_date:e.ai.subscription.end_date,status:e.ai.subscription.status}},...e.l10nAuthoring?.subscription&&{localization:{end_date:e.l10nAuthoring.subscription.end_date,plan:e.l10nAuthoring.subscription.plan,start_date:e.l10nAuthoring.subscription.start_date,status:e.l10nAuthoring.subscription.status,billing_model:e.l10nAuthoring.subscription.billing_model}}}},Tde=e=>{const t=e.course;return{course_id:t?.id,course_locale:t?.locale||e.l10n&&PL(e.l10n)||null,course_created_via:t?.metadata?.createdVia??null,course_snapshot_id:t?.metadata?.restoredFromSnapshotId??null,copied_course_id:t?.copyOf??null}},Nde=(e,t)=>{if(!t)return{};const s=e?.lessons?.[t];if(!s)return{};const o=e?.course?.lessons?.indexOf(t)+1||null;return{lesson_id:t,lesson_type:s.type,lesson_position:o}},kde=(e,t,s)=>{if(!t||!s)return{};const r=(e.lessons||{})[t];if(!r?.items)return{};const a=r.items.find(d=>d.id===s);if(!a)return{};const c=r.items.map(d=>d.id).indexOf(s)+1;return{block_id:s,block_type:a.type,block_variant:a.variant,block_family:a.family,block_position:c,block_created_via:a?.metadata?.createdVia??"manual"}},Ide=({interactionSetId:e,interactionSetWorkflowKey:t,taskType:s,resourceType:o,hasSourceContent:r}={})=>e?{interaction_set_id:e,...t&&{interaction_set_workflow_key:t},interaction_set_task_type:s,interaction_set_task_resource_type:o,interaction_set_has_source_content:r}:{},ML=()=>{if(!navigator.userAgent)return"unknown";const t=new Yo.UAParser(navigator.userAgent).getResult();return t.device?.model?t.device.model:t.os?.name?t.os.name:t.browser?.name?t.browser.name:"unknown"},OL=()=>{if(!navigator.userAgent)return"unknown";const t=new Yo.UAParser(navigator.userAgent).getResult();return t.device?.model&&t.os?.version?t.os.version:t.browser?.version?t.browser.version:"unknown"},BL=()=>{if(!navigator.userAgent)return"desktop";const t=new Yo.UAParser(navigator.userAgent).getResult();return t.device?.type==="mobile"?"mobile":t.device?.type==="tablet"?"tablet":"desktop"},DL=()=>{if(!navigator.userAgent)return"unknown";const t=new Yo.UAParser(navigator.userAgent).getResult();if(t.device?.vendor)return t.device.vendor;if(t.os?.name)switch(t.os.name){case"Mac OS":case"iOS":return"Apple";case"Windows":return"Microsoft";case"Android":return"Google"}return"unknown"},HL=()=>{if(!navigator.userAgent)return"unknown";const t=new Yo.UAParser(navigator.userAgent).getResult();return t.device?.model?t.device.model:"unknown"},j2=()=>{if(!navigator.userAgent)return"browser";const t=new Yo.UAParser(navigator.userAgent).getResult();return t.device?.type==="mobile"?"mobile":t.device?.type==="tablet"?"tablet":"browser"};function FL(e){return"userAgentData"in e}const w2=()=>{if(FL(navigator))return{platform:navigator.userAgentData.platform,mobile:navigator.userAgentData.mobile,brands:navigator.userAgentData.brands}},A2=()=>({name:ML(),version:OL(),type:BL(),manufacturer:DL(),model:HL()}),R2=()=>{const t=new URLSearchParams(window.location.search).get("query");return{referrer:document.referrer||null,search:t||null,url:window.location.href,path:window.location.pathname+window.location.search+window.location.hash}},P2=()=>navigator.userAgent||null,nr=(e,t=null)=>{const s={...e,context:{locale:navigator.language,device:A2(),channel:j2(),userAgentData:w2(),page:R2(),userAgent:P2(),...e.context},properties:{...t?E2(t):{},...e.properties}};return l0({method:"POST",url:`${ye("RISE_RUNTIME_URI")}/analytics`,json:!0,data:s})},VL=ye("SUBSCRIPTIONS_ENDPOINT"),zL=ye("THREESIXTY_FRONTEND_URI"),$L=AL()(["error","status"],404),_L=ce()(Wr()("error"),xe()("response")),UL=()=>window.location.href=zL,GL=[(e,t)=>(t.Authorization=`Bearer ${xi()}`,e)],WL=async e=>{const t=`${VL}/users/authorized_status`,s=await bi({transformRequest:GL,url:t}).toPromise().catch(_L),o=ce()(e,T2()(a=>nr({event:"Unexpected Logout",payload:{category:"auth",data:a,detail:"Subscription Error"}})));return os()([[$L,UL],[Kr()("error"),o],[sr(),xe()("data")]])(s)};var KL=f(19526),Rs=f.n(KL);const M2=e=>e===D2,bo=e=>M2(e?.type),jde=(e,t)=>s=>bo(s)?e:t,QL=null,b0={guide:"Guide",presentation:"Presentation",video:"Video Training",microlearning:"Microlearning"},O2=e=>Object.prototype.hasOwnProperty.call(b0,e),y0=e=>{const t=e?.outputType;return typeof t=="string"&&O2(t)?t:void 0},L0=(e,t)=>e===D2&&t!==void 0,ZL=e=>{const t=y0(e?.experiments);return L0(e?.type,t)&&t==="guide"},il=e=>{const t=y0(e?.experiments);return L0(e?.type,t)&&t==="presentation"},S0=e=>{const t=y0(e?.experiments);return L0(e?.type,t)&&t==="video"},wde=e=>typeof e=="string"&&O2(e)?b0[e]:b0.microlearning,Ade=e=>e?QL.includes(e):!1;var YL,XL;const JL={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*)?$/},or={ARTICLE:"Article",INTERACTION:"Interaction",QUIZ:"Quiz",VIDEO:"Video"},cl={EDITOR:1,MANAGER:2,OWNER:3},qL={[cl.EDITOR]:"Author",[cl.MANAGER]:"Admin",[cl.OWNER]:"Owner"},Rde=Object.values(cl).map(e=>({id:e,title:qL[e]})),Pde=({name:e,isOnePage:t,outputType:s})=>{const o=t?XL(s):null,r={Admin:o?`${o} manager`:"Manager",Author:o?`${o} editor`:"Editor",Owner:o?`${o} owner`:"Owner"},a={Admin:o?`${o} manager`:"Course manager",Author:o?`${o} collaborator`:"Course collaborator",Owner:o?`${o} owner`:"Course owner"};return YL?r[e]:a[e]},Mde="questionBanks",B2="2% 0px 2% 0px",Ode=9,Bde=13,Dde=27,Hde=32,Fde=38,Vde=40,$de=864e5*3,_de=100,D2="onePage",Ps={UP:"up",DOWN:"down"},yo=Rs()({COMPACT:null,COVER:null,OVERLAY:null,SIDEBAR:null}),rr={DESKTOP:"desktop",TABLET_PORTRAIT:"tablet-portrait",TABLET_LANDSCAPE:"tablet-landscape",MOBILE_PORTRAIT:"mobile-portrait",MOBILE_LANDSCAPE:"mobile-landscape"},Ude=Object.values(rr),Gde={PORTRAIT:"portrait",LANDSCAPE:"landscape"},ft={DARK:"#000",LIGHT:"#fff"},T0={SMALL:{label:"Small",value:1},MEDIUM:{label:"Medium",value:1.5},LARGE:{label:"Large",value:2}},H2=["embed","map","process","sorting","timeline","video","screencast","slidecast"];var eS;const Wde=e=>e.status==="active",tS=e=>e.status==="inactive",Kde=e=>e.plan==="individual",Qde=e=>e.features?.enable_review===!0,sS=e=>e.features?.enable_rise===!0,Zde=e=>e.plan==="trial",nS=e=>e.plan==="trial"&&e.status==="inactive"&&e.is_retrial_eligible===!1,Yde=e=>e.plan==="team"||e.plan==="individual",Xde=e=>e.plan==="team"&&e.is_team_admin===!0,Jde=e=>e.plan==="trial"&&e.is_team_admin===!0,qde=e=>{if(!e.end_date)return 0;const t=new Date(e.end_date);t.setUTCHours(0,0,0,0);const s=t.setDate(t.getDate()+1);return s&&(s.valueOf()-new Date().setUTCHours(0,0,0,0))/eS||0};var oS=f(42896),N0=f.n(oS),rS=f(46341),F2=f.n(rS),aS=f(19282),Qr=f.n(aS),iS=f(63562),St=f.n(iS);const Ci=(e,t)=>`${ye("ID_MAPPER_URI")}/v1/avatars/${encodeURIComponent(e)}?size=${t}`,cS=e=>({large:Ci(e,"large"),medium:Ci(e,"medium"),micro:Ci(e,"micro"),mini:Ci(e,"mini"),small:Ci(e,"small")}),lS=F2()({features:St()({},"features"),subscription:Gr()(["features"])}),dS=N0()([nS,tS,Qr()(sS)]),uS="/auth-callback",V2="/auth-error",ll=()=>new Promise(e=>{if(!window.Osano)return e();if(window.Osano.cm.dialogOpen){const t=setTimeout(()=>{e()},1e4);window.Osano.cm.addEventListener("osano-cm-ui-changed",(s,o)=>{s==="dialog"&&o==="hide"&&(e(),clearTimeout(t))})}else e()}),k0=uS,hS=V2,mS=pt,z2=()=>window.location.pathname===k0;let $2=!1,I0=!1;const pS=e=>{if($2)return;const t=(0,N2.A)();$2=!0,window.localStorage.setItem(t,e);const s=Gb({client_id:ye("OKTA_CLIENT_ID"),issuer:ye("OIDC_ISSUER_URI"),redirect_uri:`${window.location.origin}${k0}`,response_mode:"fragment",scope:ye("OIDC_SCOPE"),state:t,prompt:null});ll().then(()=>{window.location.href=s})},_2=()=>{const e=new URLSearchParams(window.location.search),t=e.has("redirect_url")?e.get("redirect_url"):window.location.href;return pS(t)},fS=()=>Gf().catch(e=>{e.response?.status===404&&ar({onLogout:()=>window.location.reload(!0),reason:"Session expired"})}),gS=()=>{if(I0)return;const e=Jo(),t=c0();Xe()(e)?(nr({event:"Unexpected Logout",payload:{category:"auth",userId:t,detail:"id from cookie was null"}}),Wn.L2.addError(new Error("Unexpected Logout"),{type:"User Meta",idFromToken:t,idFromCookie:e,detail:"id from cookie was null"}),I0=!0,ar({onLogout:()=>window.location.reload(!0),reason:"Unexpected logout: user id/session cookie missing"})):e!==t&&(nr({event:"Unexpected Logout",payload:{category:"auth",userId:e,idFromToken:t,detail:"Session/Token ID Mismatch"}}),Wn.L2.addError(new Error("Unexpected Logout"),{type:"User Meta",idFromToken:t,idFromCookie:e,detail:"Session/Token ID Mismatch"}),I0=!0,mi().then(()=>window.location.reload(!0)))},U2=async e=>{try{const[,t,s,o]=await mi(),{aid:r,content_team_admin:a}=o;if(nr({event:"Setting Session Cookie",payload:{category:"auth",userId:r,detail:"Resuming existing session"}}),Rb(r),z2()){e();return}const{first_name:i,last_name:c,launchdarkly:d,staff:l}=t,m={avatars:cS(r),first_name:i,user_id:r,last_name:c,staff:l,content_team_admin:a},p={author:r,profile:m},v=()=>ar({onLogout:Le()(null)}),C=x=>e({...p,...lS(x),launchdarkly:d,token:s}),g=await WL(v).then(T2()(C)).catch(()=>e({...p,token:s}));if(dS(g)){nr({event:"Unexpected Logout",payload:{category:"auth",userId:Jo(),subscription:g,detail:"Invalid Subscription"}}),Wn.L2.addError(new Error("Unexpected Logout"),{type:"User Meta",userId:Jo(),detail:"Invalid Subscription"}),ar({onLogout:()=>window.location=`${ye("THREESIXTY_FRONTEND_URI")}/rise`});return}x0(gS)}catch(t){nr({event:"Unexpected Logout",payload:{category:"auth",userId:Jo(),error:t,detail:"Error Resuming Session"}}),Wn.L2.addError(t,{type:"User Meta",userId:Jo(),detail:"Error Resuming Session"}),ar({onLogout:()=>window.location.reload(!0)})}},G2=({onFetchTokens:e})=>{if(z2()){U2(e);return}const t=Jo(),s=c0();if(Xe()(t)||t!==s){ll().then(_2);return}U2(e)},ar=({onLogout:e,reason:t})=>{t&&nr({event:"Logout",payload:{category:"auth",userId:Jo(),detail:t}});const s=ye("RISE_AUTHORING_URI"),o=()=>Se?Promise.resolve():NL({baseURL:s}).send({method:"DELETE",url:"/logout"}),r=()=>{Pb(),Mb(),_f().then(e)};o().fork(a=>{console.error("Failed to log out of rise-authoring-api",a),r()},r)},vS=ce()(tL().parse,Zy()(1,1/0)),CS=(e,t)=>{ll().then(()=>{const o=window.localStorage.getItem(t)||"/",r=o===e?"/":o;window.localStorage.removeItem(t),window.location.href=r})},xS=e=>()=>window.location.href=`${V2}?description=${e}`,bS=({location:e})=>()=>{const{hash:t,pathname:s}=e,{state:o,error:r,error_description:a}=vS(t);r?(Wn.L2.addError(r,{type:"Logout Error",reason:"Error encountered when parsing auth callback.",error_description:a}),ar({onLogout:xS(a),reason:`Error encountered when parsing auth callback. Error: ${r}; description: ${a}`})):G2({onFetchTokens:()=>CS(s,o)})},yS=qy(e=>((0,u.useEffect)(bS(e),[]),null)),LS=({dispatch:e,loadProfileOKTA:t})=>s=>{const o=Gr()(["token"],s);ce()(e,t)(o)};var SS=f(8124),W2=f.n(SS),TS=f(68971),Tn=f.n(TS),NS=f(71716),De=f.n(NS),kS=f(62510),K2=f.n(kS),IS=f(60092),Ms=f.n(IS);const dl=async()=>{await ll();const[e,t]=tt()(encodeURIComponent,K2()(["hash","pathname"],window.location));window.location.href=`/login#c=${t}${e}`},Q2=()=>{window.location.href="/"},ES=null,jS=null,wS=pt,AS=dl,Z2=_f,RS=()=>Gf().catch(()=>Z2()),PS=st()(St()([],"roles"),Ms()(Tn()("author"),Q2)),Y2=st()(De()("",["subscription","status"]),Ms()(Tn()(W2(),["active","in_trial","non_renewing"]),Q2)),MS=()=>window.location.reload(),OS=async({onFetchTokens:e})=>{try{const[t,s]=await mi(),{launchdarkly:o,riseId:r,sub:a,staff:i,subscription:c}=s,d={staff:i,user_id:r||a};return Y2(s),e({author:d.user_id,launchdarkly:o,profile:d,subscription:c,token:t}),hi("change:roles",PS),hi("change:status",Y2),hi("change:subdomain",MS),hi("unauthorized",dl),hi("session:closed",dl),t}catch{dl()}},{callbackComponent:tue,callbackPath:sue,getToken:xi,initAuth:nue,logout:oue,refreshSession:rue,request:bi}=Se?vo:Wo;var X2,J2;const q2=`${ye("RBC_URI")}/api/partner_content`,BS=null,DS=en()(`${q2}/`),E0={transformRequest:[(e,t)=>(t.Authorization=`Bearer ${xi()}`,e)],headers:{"Content-Type":"application/json"}},cue=()=>J2({...E0,url:BS}).toPromise().then(X2(["data","types"])),lue=e=>J2({...E0,url:DS(e)}).toPromise().then(X2(["data","content"])),HS=e=>bi({method:"POST",url:q2,data:JSON.stringify({ids:e}),...E0}).map(Vt()(["data","content"]));var FS=f(85052),ir=f.n(FS);const eg=ye("SERVICE_ENV")==="prod",ul=eg?"com":"zone",VS=st()(JSON.stringify,ir()(new RegExp(`https://images.riseusercontent.${ul}/`,"g"),`${ye("IMAGES_URI")}/`),ir()(new RegExp(`https://riseusercontent.${ul}/`,"g"),`${ye("CDN_USER_CONTENT_URI")}/`),ir()(new RegExp(`https://video.rise.${ul}/`,"g"),`https://video.riseusercontent.${ul}/`),Kn()(Le()(!eg),ir()(new RegExp("https://video.rise.com/","g"),"https://video.riseusercontent.zone/")),JSON.parse);var zS=f(11346),$S=f.n(zS),_S=f(9711),rs=f.n(_S),US=f(53100),as=f.n(US),GS=f(95821),gt=f.n(GS),WS=f(62802),hl=f.n(WS),KS=f(5331),QS=f.n(KS),ZS=f(3705),Zr=f.n(ZS),YS=f(79212),XS=f.n(YS);const yi=e=>!!e,j0={[Zf]:["activeIndex",ve()],[rl]:["audioVideoPlayhead",Number],[pi]:["isComplete",yi],[nl]:["correctlyAnswered",ve()],[fi]:["percentComplete",ve()],[ol]:["retryAttempts",ve()],[qf]:["score",ve()],[Yf]:["currentTime",ve()],[Jf]:["percentViewed",ve()],[e2]:["reportResults",ve()],[t2]:["passed",ve()],[Xf]:["passingScore",ve()],[d0]:["questionsDrawn",ve()],[u0]:["questionList",tt()(tt()(ve()))],[s2]:["timeRemaining",Number]},JS=e=>(t,s)=>rs()([as()(j0[s])],xo()(j0[s])(t),e),tg=e=>(t,s)=>{let o=xo()(ng[s])(t);return s===gi&&(o=o(xe()("items",e))),{[as()(ng[s])]:o}},qS=e=>t=>{const s=e?.[t.index];return Ms()(()=>Xe()(s),()=>ce()(ps()(t),Zr(),Ft(),ms()(tg(t)))(s))(t)},sg=e=>tt()(qS(e)),eT=ce()(Zr(),Ft(),ms()(tg(null))),tT=e=>t=>{const s=xe()(gi,e),o=xe()("items",t);return ce()(Kn()(()=>$S()([Kr()(u0),Ae()(d0,!0),()=>!Xe()(s)])(e),r=>{const a=tt()(eT,s);return rs()("originalItemProgress",a,r)}),ps()(t),Ms()(()=>gt()(s),XS()(QS()("items"),sg(s)(o))),Zr(),Ft(),ms()(JS(t)))(Sn()(hl()(j0),e))};function sT(e,t){const s=xe()("lessons",t),o=r=>{const a=xe()(r.index,s);return Ms()(()=>Xe()(a),tT(a))(r)};return Ms()(()=>gt()(s),ce()(rs()("percentComplete",St()(0,fi,t)),Gn()({lessons:tt()(o)})))(e)}const ng={[rl]:["audioVideoPlayhead",Number],[nl]:["correctlyAnswered",ve()],[pi]:["isComplete",yi],[n2]:["isCorrect",yi],[o2]:["isSubmitted",yi],[r2]:["isViewed",yi],[gi]:["items",sg],[a2]:["percentViewed",ve()],[i2]:["matches",ve()],[c2]:["response",ve()],[ol]:["retryAttemptCount",Number],[l2]:["selectedIndex",ve()],[d2]:["selectedIndices",ve()],[u2]:["shuffledAnswerIndices",ve()],[h2]:["text",ve()]};var nT=f(98623),Nn=f.n(nT),oT=f(23525),w0=f.n(oT);const A0={activeIndex:[Zf,ve()],audioVideoPlayhead:[rl,Number],correctlyAnswered:[nl,ve()],currentTime:[Yf,ve()],isComplete:[pi,Number],passingScore:[Xf,ve()],percentComplete:[fi,ve()],percentViewed:[Jf,ve()],retryAttempts:[ol,ve()],score:[qf,ve()],questionsDrawn:[d0,ve()],questionList:[u0,tt()(tt()(ve()))],reportResults:[e2,ve()],passed:[t2,ve()],timeRemaining:[s2,Number]},rT=(e,t)=>({[as()(R0[t])]:xo()(R0[t])(e)}),aT=e=>ce()(Ms()(gt(),Wr()(xe()("index",e))),Zr(),Ft(),ms()(rT))(w0()(gt(),Sn()(hl()(R0),e))),og=ce()(Zr(),Ft(),tt()(aT)),iT=(e,t)=>({[as()(A0[t])]:xo()(A0[t])(e)});function cT(e){const t=xe()("items",e),s=xe()("index",e),o=Ms()(Nn()(Xe(),gt()),og)(t);return ce()(Wr()(s),Ms()(()=>Nn()(Xe(),gt())(o),rs()(gi,o)),Zr(),Ft(),ms()(iT))(Sn()(hl()(A0),e))}const lT=ce()(Wr()(fi),St()(0,"percentComplete")),R0={audioVideoPlayhead:[rl,Number],correctlyAnswered:[nl,ve()],isComplete:[pi,Number],isCorrect:[n2,Number],isSubmitted:[o2,ve()],isViewed:[r2,Number],items:[gi,og],matches:[i2,ve()],percentViewed:[a2,ve()],retryAttemptCount:[ol,Number],selectedIndex:[l2,ve()],selectedIndices:[d2,tt()(Number)],shuffledAnswerIndices:[u2,tt()(Number)],text:[h2,ve()],response:[c2,ve()]},cr=e=>window.env?.[e],dT=e=>`${cr("CDN_USER_CONTENT_URI")}/${e}`,uT=()=>!!window.shareId,rg=()=>!!window.contentId,ag=()=>!!window.snapshotId,hT=()=>!!window.shareId&&!!window.hasPassword,mT=rg()&&!Se?VS:e=>e,pT={fetch:()=>P0.isExport?.()||window.courseData||window.course?_y(S2,{}):l0({method:"GET",url:window.shareId?`${cr("RISE_RUNTIME_URI")}/boot/share/${window.shareId}`:rg()?`${cr("RISE_RUNTIME_URI")}/boot/businessContent/${window.contentId}`:ag()?`${cr("RISE_RUNTIME_URI")}/boot/snapshot/${window.snapshotId}`:`${cr("RISE_RUNTIME_URI")}/boot/${window.courseId}`,json:!0,withCredentials:!0,timeout:3e4}).then(Zb).then(t=>typeof t=="object"?t:S2(t)).then(mT),fetchPartnerContent:e=>P0.isExport?.()||window.partnerContent?window.partnerContent.content:HS(e).toPromise(),getEnv:cr,isPasswordProtected:hT,isShare:uT,isSnapshotPreview:ag,resolvePath:dT,verifySharePassword:e=>l0({method:"POST",url:`${cr("RISE_RUNTIME_URI")}/password`,data:{shareId:window.shareId,password:e},json:!0}).then(t=>t.body)},fT=(e,{id:t,type:s,...o})=>s==="quiz"?Dy(e,{id:t,...o}):y2(e,t),gT=(e,t)=>e+((t||{})[pi]||0),vT=(e,t)=>(s,{id:o,type:r,...a})=>t.lessons[o]?{...s,...e(fT(t,{id:o,type:r,...a}).lessons[o])}:s,CT=(e,t,s)=>{const o=t.reduce(vT(e,s),{}),r=Object.keys(s.lessons||{}).length,a=Object.values(o).reduce(gT,0),i=Math.round(a/r*100);return{lessons:o,p:i}};window.Rise=Object.assign(window.Rise||{},{completeLessons:CT,decodeCourseProgress:sT,encodeCourseProgress:lT,encodeLessonProgress:cT});const P0={...pT,...window.Runtime??{}},fe=P0,xT=e=>window.env?.[e],bT=e=>fe.getMasteryScore!=null?fe.getMasteryScore(e):e.passingScore,yT=e=>{if(fe.onCreateHistory!=null)return fe.onCreateHistory(e)},LT=(e={})=>fe.fetch!=null?Promise.resolve(fe.fetch()):Promise.resolve(e),ST=(e=[])=>{if(fe.fetchPartnerContent!=null)return fe.fetchPartnerContent(e)},TT=e=>{if(fe.bookmark!=null)return fe.bookmark(e)},ig=e=>fe.getProgress!=null?fe.getProgress(e):e,NT=e=>fe.setLessonComplete!=null?fe.setLessonComplete(e):e,kT=e=>fe.setLessonProgress!=null?fe.setLessonProgress(e):e,IT=(e,t)=>fe.setCourseProgress!=null?fe.setCourseProgress(e,t):e,ET=e=>{if(fe.finish!=null)return fe.finish(e)},cg=(e,t,s,o)=>{fe.finishQuiz!=null&&fe.finishQuiz(e,t,s,o)},jT=(e,t,s,o)=>{fe.finishStoryline!=null&&fe.finishStoryline(e,t,s,o)},lg=()=>fe.isComplete!=null?fe.isComplete():null,dg=()=>fe.isExport!=null?fe.isExport():!1;function ug(){if(fe.isExport!=null){const e=window.partnerContent?.content;return fe.isExport()&&!!e}return!1}const hg=()=>fe.isShare!=null?fe.isShare():!1,wT=()=>fe.isSnapshotPreview!=null?fe.isSnapshotPreview():!1,mg=()=>fe.isPasswordProtected!=null?fe.isPasswordProtected():!1,pg=e=>{const t=e||"";return fe.resolvePath!=null?t.startsWith("http")||t.startsWith("data:")||t.startsWith("//")?t:fe.resolvePath(t):t.startsWith("data:")||t.startsWith("http")||t.startsWith("//")?t:`/${t}`},AT=e=>fe.verifySharePassword!=null?fe.verifySharePassword(e):Promise.resolve({isValid:!0}),fg=e=>{if(fe.reportAnswer!=null){const{id:t,isCorrect:s,isUnfinished:o=!1,item:r,itemProgress:a,duration:i,retryAttempts:c,title:d}=e,{id:l,title:h,type:m}=r;return fe.reportAnswer({id:t,type:m,isCorrect:s,itemId:l,questionTitle:yn(h),quizTitle:yn(d),retryAttempts:c,answers:fb(r),correctResponse:gb(r),response:vb({isUnfinished:o,item:r,itemProgress:a}),isUnfinished:o,latency:pb(i)})}return!1},RT=e=>{if(fe.startLesson!=null)return fe.startLesson(e)},PT=()=>{if(fe.getLocale!=null)return fe.getLocale()},MT=e=>{if(fe.setLocale!=null)return fe.setLocale(e)},{browser:gg,os:vg}=new Yo.UAParser(window.navigator.userAgent).getResult(),OT=e=>{if(fe.sendTelemetry!=null)return fe.sendTelemetry({...e,browser:{name:gg.name??"",version:gg.version??""},os:{name:vg.name??"",version:vg.version??""}})};var Cg=f(4214),BT=f(69792),DT=f(92506),HT=f(45834),FT=f(52164),VT=f(21307),M0=f(14291),O0=f(27395),zT=f(1400);Cg.A.register(BT.A),Cg.A.register(DT.A);function Yr(...e){try{return(0,HT.Ay)(...e)}catch{return null}}const sn=(e,t)=>{const s=Yr(t);return s==null?null:(0,O0.A)((0,M0.jh)(s,Yr("#ffffff"),e),{format:"hex",collapse:!1})},B0=e=>sn(.9,e);var $T=f(9967),Qt=f.n($T),_T=f(53983),UT=f.n(_T),GT=f(28876),D0=f.n(GT),jt=f(85800);const WT=ce()(Tn()(".svg"),St()("","originalUrl")),KT=Gt()(WT,Le()({width:"500rem"}),Le()({})),lr=e=>{if(e){const t=e.trim();if(t!==""&&t!=='""')return e}return""},xg=e=>lr(e)||void 0,bg=e=>e?"img":void 0,yg=e=>st()(St()("","originalUrl"),D0()("."),xo(),Qt()(e)),QT=yg("svg"),pue=yg("gif"),ZT=/\.svg$/i,Lg=e=>ZT.test(e),YT={process:"center",timeline:"left"},fue=e=>YT[e]||"left",XT=(e,t)=>{const s=UT()(e,t);return s.media.image.key===t.media.image.key&&Object.assign(s.media.image,{crushedKey:t.media.image.key,useCrushedKey:!0}),s},JT=({src:e,alpha:t})=>({alpha:t,media:{image:{key:qT(e),src:e}}}),qT=e=>typeof e!="string"?"":e.startsWith("http")?new URL(e).pathname.slice(1):e,eN=(({coverImageAlpha:e,coverImage:t})=>({alpha:e,src:t})),tN=(({lessonHeaderImageAlpha:e,lessonHeaderImage:t})=>({alpha:e,src:t})),Sg=(e,t)=>(s,o)=>{const r=s[t];if(s?.theme){const a=o?o(r?.media):r?.media;if((0,jt.uW)(a))return r;const i={...r,media:{...a}},c=JT(e(s.theme));return XT(i,c)}else return r},Tg=Sg(eN,"coverImage"),Ng=Sg(tN,"lessonHeaderImage"),gue=async e=>{const t=new Image;return t.src=e,await t.decode(),t};function kn(e){return Rs()(e)}class sN extends Error{constructor(t="Assert Error",s){super(t,s)}}function vue(e,t="Assertion Error"){if(!e)throw new sN(t)}const ml={RISE_CLASSIC:"classic",APEX:"organic",HORIZON:"imaginative"},nN="#ff631e",Xr=3,oN=17,rN=32,aN=24,iN=50,cN=.6,kg="right",lN="rounded",dN=[{color:"#4baaf4",name:"Sky"},{color:"#285f9f",name:"Blueberry"},{color:"#7837a8",name:"Jelly"},{color:"#d84738",name:"Cherry"},{color:"#ff631e",name:"Tangerine"},{color:"#25bb64",name:"Basil"}],Cue="#ffffff",xue=qc()("color",dN),H0="#000",F0="#fff",bue="Rise",q=kn({ACCENT:null,BLACK:null,COLOR:null,DARK:null,GRAY:null,IMAGE:null,LIGHT:null,TINT:null}),Li=kn({LARGE:null,MEDIUM:null,SMALL:null}),pl=kn({STEPPED:null,CONTINOUS:null}),V0=Rs()({NUMBERS:null,DOTS:null,NONE:null}),dr=kn({COMPACT:null,OVERLAY:null,SIDEBAR:null}),Qn=Rs()({DARK:null,DARK_IMAGE:null,LIGHT:null,LIGHT_IMAGE:null}),ur=Rs()({DARK:null,DARK_ACCENT:null,DARK_IMAGE:null,LIGHT:null,LIGHT_ACCENT:null,LIGHT_IMAGE:null}),Lo={FREE:"free",RESTRICTED:"restricted"},So=Rs()({ACCENT:null,DARK:null,GRAY:null,IMAGE:null,LIGHT:null,TINT:null}),Je=Rs()({THEME_DEFAULT:null,CIRCULAR_FILL:null,INCOMPLETE_COMPLETE:null}),Si=kn({ACCENT:null,DARK:null,LIGHT:null,TINT:null}),Zn=kn({FULL:null,FLOATING:null,FLOATING_FULL:null}),se=kn({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}),yue={default:[{text:"Centered",type:se.CENTERED},{text:"Centered overlay",type:se.CENTERED_OVERLAY},{text:"Left",type:se.LEFT},{text:"Left overlay",type:se.LEFT_OVERLAY},{text:"Split left image",type:se.SPLIT_LEFT_IMAGE},{text:"Split right image",type:se.SPLIT_RIGHT_IMAGE},{text:"Two-Thirds left image",type:se.TWO_THIRDS_LEFT_IMAGE},{text:"Two-Thirds right image",type:se.TWO_THIRDS_RIGHT_IMAGE}],classic:[{text:"Centered",type:se.CENTERED},{text:"Centered overlay",type:se.CENTERED_OVERLAY},{text:"Left",type:se.LEFT},{text:"Left overlay",type:se.LEFT_OVERLAY},{text:"Split left image",type:se.SPLIT_LEFT_IMAGE},{text:"Split right image",type:se.SPLIT_RIGHT_IMAGE},{text:"Two-Thirds left image",type:se.TWO_THIRDS_LEFT_IMAGE},{text:"Two-Thirds right image",type:se.TWO_THIRDS_RIGHT_IMAGE}],organic:[{text:"Centered",type:se.CENTERED},{text:"Centered overlay",type:se.CENTERED_OVERLAY},{text:"Left",type:se.LEFT},{text:"Left overlay",type:se.LEFT_OVERLAY},{text:"Split left",type:se.SPLIT_LEFT},{text:"Split right",type:se.SPLIT_RIGHT},{text:"Split left image",type:se.SPLIT_LEFT_IMAGE},{text:"Split right image",type:se.SPLIT_RIGHT_IMAGE}],imaginative:[{text:"Centered",type:se.CENTERED},{text:"Centered overlay",type:se.CENTERED_OVERLAY},{text:"Centered image",type:se.CENTERED_IMAGE},{text:"Centered accent tint",type:se.CENTERED_ACCENT_TINT},{text:"Split left image",type:se.SPLIT_LEFT_IMAGE},{text:"Split right image",type:se.SPLIT_RIGHT_IMAGE},{text:"Two-thirds left image",type:se.TWO_THIRDS_LEFT_IMAGE},{text:"Two-thirds right image",type:se.TWO_THIRDS_RIGHT_IMAGE}]},Lue=null,Sue=null,Tue=[{text:"Image",type:se.IMAGE},{text:"Accent",type:se.ACCENT},{text:"White",type:se.WHITE}],Jr={CLOSED:"closed",HIDDEN:"hidden",OPEN:"open"},pe=kn({AUTO:null,BLACK:null,LIGHT:null,DARK:null}),uN=kn({ROUNDED:null,SQUARED:null}),hN=Rs()({ROUNDED:null,SQUARED:null}),mN=Rs()({FLOATING:null,FULL:null}),nt=Rs()({ACCENT:null,DARK:null,LIGHT:null}),Nue=[{value:pe.AUTO,label:"Auto"},{value:pe.DARK,label:"Dark"},{value:pe.LIGHT,label:"Light"}],_e={accentContrast:pe.AUTO,allowSearch:!0,animateBlockEntrance:!0,blockBackgroundColor:null,blockBackgroundColorContrast:pe.AUTO,blockBackgroundType:q.LIGHT,blockContinueCompletionType:"",blockContinueCompleteHint:"Complete the content above before moving on.",blockContinueLabel:"Continue",blockCorners:uN.ROUNDED,blockPaddingEnd:Xr,blockPaddingStart:Xr,blockTextBackgroundColor:null,blockTextBackgroundColorContrast:pe.AUTO,blockTextBackgroundType:q.LIGHT,blockTextBodyFontSize:oN,blockTextHeadingFontSize:rN,blockTextPaddingEnd:Xr,blockTextPaddingStart:Xr,blockTextSubheadingFontSize:aN,buttonInlineStyle:hN.ROUNDED,buttonNavigationStyle:mN.FULL,buttonScheme:Si.LIGHT,colorAccent:nN,compactShowLessonCount:!0,coverImageAlpha:iN,coverPageType:se.SPLIT_LEFT_IMAGE,customColorLessonHeaderContrast:pe.AUTO,enableVideoPlaybackSpeed:!0,lessonHeaderImageAlpha:cN,lessonHeaderImageColor:nt.DARK,lessonHeaderSize:Li.MEDIUM,lessonHeaderStyle:q.LIGHT,markLessonsComplete:!1,navigation:!0,navigationRestricted:!1,navigationSectionsExpanded:!0,navigationStyle:Qn.LIGHT,navigationType:dr.SIDEBAR,progressIndicatorStyle:Je.THEME_DEFAULT,showAuthor:!0,showLessonCount:!0,showNavigationButtons:!0,showStartButton:!0,sidebarStartsOpen:!0,themeId:ml.RISE_CLASSIC},kue=[{label:"None (Always show button)",value:""},{label:"Complete Block Directly Above",value:"completeBlock"},{label:"Complete All Blocks Above",value:"completeAll"}],pN=["bodyTypeface","coverImage","experiments","headingTypeface","lessonHeaderImage","media","theme","uiTypeface"],fN=e=>e.theme?.colorAccent||e.color||_e.colorAccent,Ig=e=>e.theme?.navigationRestricted??_e.navigationRestricted?Lo.RESTRICTED:Lo.FREE,Eg=e=>e.theme?.sidebarStartsOpen??_e.sidebarStartsOpen?Jr.OPEN:Jr.CLOSED,gN=e=>e.theme?.showLessonCount??e.showLessonCount??_e.showLessonCount,vN=({sidebarMode:e})=>e!==Jr.HIDDEN,CN=({navigationMode:e})=>e===Lo.RESTRICTED,xN=({sidebarMode:e})=>e===Jr.OPEN,bN=e=>e.coverImage?.media?.image?Qn.LIGHT_IMAGE:Qn.LIGHT,yN=e=>e.coverImage?.media?.image?se.LEFT_OVERLAY:se.LEFT,Yn=(e,t)=>t[e]??t.theme?.[e]??_e[e],jg=e=>{const t=Eg(e),s=Ig(e),o={allowSearch:Yn("allowSearch",e),animateBlockEntrance:Yn("animateBlockEntrance",e),bodyTypefaceId:e.bodyTypefaceId,colorAccent:(e.color||"").toLowerCase(),compactShowLessonCount:Yn("compactShowLessonCount",e),coverImageDefault:null,coverPageType:yN(e),enableVideoPlaybackSpeed:Yn("enableVideoPlaybackSpeed",e),headingTypefaceId:e.headingTypefaceId,markLessonsComplete:Yn("markComplete",e),navigation:vN({sidebarMode:t}),navigationSectionsExpanded:Yn("navigationSectionsExpanded",e),navigationRestricted:CN({navigationMode:s}),navigationStyle:bN(e),showAuthor:Yn("showAuthor",e),showLessonCount:Yn("showLessonCount",e),showNavigationButtons:Yn("showNavigationButtons",e),sidebarStartsOpen:xN({sidebarMode:t}),uiTypefaceId:e.uiTypefaceId},r={..._e,...o};return{...e,theme:{...r,isLegacyCourse:!0}}},z0=e=>{const t=fN(e),s={allowSearch:e.theme?.allowSearch??_e.allowSearch,animateBlockEntrance:e.theme?.animateBlockEntrance??_e.animateBlockEntrance,buttonNavigationStyle:e.theme?.buttonNavigationStyle??_e.buttonNavigationStyle,buttonScheme:e.theme?.buttonScheme??_e.buttonScheme,color:t,colorAccentTint:t?B0(t):void 0,coverImage:Tg(e),coverPageType:e.theme?.coverPageType??_e.coverPageType,enableVideoPlaybackSpeed:e.theme?.enableVideoPlaybackSpeed??_e.enableVideoPlaybackSpeed,lessonHeaderImage:Ng(e),lessonHeaderSize:e.theme?.lessonHeaderSize??_e.lessonHeaderSize,lessonHeaderStyle:e.theme?.lessonHeaderStyle??_e.lessonHeaderStyle,markComplete:e.theme?.markLessonsComplete??_e.markLessonsComplete,navigation:e.theme?.navigation??_e.navigation,navigationSectionsExpanded:e.theme?.navigationSectionsExpanded??_e.navigationSectionsExpanded,navigationMode:Ig(e),navigationRestricted:e.theme?.navigationRestricted??_e.navigationRestricted,navigationStyle:e.theme?.navigationStyle??_e.navigationStyle,navigationType:e.theme?.navigationType??_e.navigationType,progressIndicatorStyle:e.theme?.progressIndicatorStyle??Je.THEME_DEFAULT,themeId:e.theme?.themeId??_e.themeId,showAuthor:e.theme?.showAuthor??_e.showAuthor,showLessonCount:gN(e),showStartButton:e.theme?.showStartButton??_e.showStartButton,sidebarMode:Eg(e),sidebarStartsOpen:e.theme?.sidebarStartsOpen??_e.sidebarStartsOpen,showNavigationButtons:e.theme?.showNavigationButtons??_e.showNavigationButtons};return{...e,...s}},LN=({course:e,updates:t})=>{const s=Object.fromEntries(Object.entries(t||{}).filter(([r])=>pN.includes(r))),o={...e,...s};return z0(o)},SN={padding:"medium",alignment:"left"},TN={embed:{aspectRatio:"16:9"},video:{},labeledgraphic:{hotspotStyle:"numbers"},process:{navigation:"stepped"},sorting:{feedback:"immediate"},timeline:{orientation:"vertical"},paragraph:{fontSize:"medium"}},nn=(e,t=0)=>`item_${e}_${t}`,wg=(e,t)=>[{id:nn(`${t}_placeholder`,0),placeholder:!0,type:e,title:`Add ${e} content`}],hr=e=>({...SN,...TN[e]??{}}),NN=e=>typeof e=="string"?e.replace(/<p><br><\/p>/g,""):e,Ag=e=>e.map(t=>{if(t&&typeof t=="object"&&!Array.isArray(t)){const s={};for(const[o,r]of Object.entries(t))s[o]=NN(r);return s}return t}),kN=e=>["Introduction","Summary"].map((t,s)=>({id:nn(`${e}_process`,s),title:t,type:t.toLowerCase(),description:null,isHidden:!0})),IN=(e,t)=>[{id:nn(`${t}_text`,0),paragraph:e}],EN=(e,t)=>[...kN(t),...e],jN=(e,t)=>[{id:nn(`${t}_video`,0),caption:"",media:e}],wN=(e=[],t)=>({family:"multimedia",id:nn(`${t}_embed`,0),items:e.length?e:wg("embed",t),media:{},settings:hr("embed"),type:"multimedia",variant:"embed"}),AN=(e,t,s)=>({family:"interactive-fullscreen",id:nn(`${s}_labeledgraphic`,0),items:e,media:t,settings:hr("labeledgraphic"),type:"interactive",variant:"labeledgraphic"}),RN=(e,t)=>({family:"interactive-fullscreen",id:nn(`${t}_process`,0),items:Ag(e),media:{},settings:hr("process"),type:"interactive",variant:"process"}),PN=({items:e,piles:t},s)=>({family:"interactive-fullscreen",id:nn(`${s}_sorting`,0),items:e,media:{},piles:t,settings:hr("sorting"),type:"interactive",variant:"sorting"}),MN=(e,t)=>({family:"text",id:nn(`${t}_text`,0),items:Ag(e),settings:hr("paragraph"),type:"text",variant:"paragraph"}),ON=(e,t)=>({family:"interactive-fullscreen",id:nn(`${t}_timeline`,0),items:e,media:{},settings:hr("timeline"),type:"interactive",variant:"timeline"}),BN=(e,t={},s)=>({family:"multimedia",id:nn(`${s}_video`,0),items:e?.video?jN(e,s):wg("video",s),media:{},settings:{...t,...hr("video")},type:"multimedia",variant:"video"}),DN=({items:e=[]},t)=>wN(e.map(({icon:s,...o})=>o),t),HN=({items:e=[],media:t},s)=>AN(e.map(({hasMedia:o,...r})=>r),t,s),FN=({items:e=[]},t)=>{const s=e.map(o=>({...o,isHidden:!1,type:"step"}));return RN(EN(s,t),t)},VN=({items:e=[]},t)=>ON(e.map(({linePosition:s,...o})=>o),t),zN=(e,t)=>MN(IN(e,t),t),$N=(e,t)=>{switch(e.type){case"embed":return DN(e,t);case"map":return HN(e,t);case"process":return FN(e,t);case"sorting":return PN(e,t);case"timeline":return VN(e,t);case"screencast":case"slidecast":case"video":return BN(e.media,e.settings,t);default:throw new Error(`Unknown legacy lesson type: ${e.type}`)}},Rg=e=>typeof e?.type=="string"&&H2.includes(e.type),_N=e=>{if(!Rg(e))return e;const t=String(e.id),s={description:"",icon:"Article",type:"blocks"},o=[$N(e,t)],r=typeof e.description=="string"?e.description.trim():"";return r&&o.unshift(zN(r,`${t}_desc`)),{...e,...s,items:o,media:{}}},Pg=e=>`rise/rise-com/${e}`,Mg=Pg("FAVORITE_ADDED"),Og=Pg("FAVORITE_REMOVED"),UN=()=>(0,le.action)(Mg,void 0),GN=()=>(0,le.action)(Og,void 0),Bg=(e=>`rise/partnerContent/${e}`)("SET_ALL_PARTNER_CONTENT"),mr=(e=>`rise/status/${e}`)("SET_LOADED"),WN=(e,t)=>({...e,...t}),KN={connection:"connected",courseLoaded:!1,fatalError:!1,fontsLoaded:!1,notFound:!1,partnerContentLoaded:!1},QN=(0,le.handle)(KN,{[mr]:WN}),ZN=(e=!1)=>(0,le.action)(mr,{fontsLoaded:e}),YN=(e=!1)=>(0,le.action)(mr,{courseLoaded:e}),XN=(e=!1)=>(0,le.action)(mr,{coverLoaded:e}),JN=(e=!1)=>(0,le.action)(mr,{notFound:e}),qN=(e=!1)=>(0,le.action)(mr,{fatalError:e}),Dg=(e=!1)=>(0,le.action)(mr,{partnerContentLoaded:e}),ek=(e=[],t)=>t?.partnerContentId?e.concat(t.partnerContentId):e,tk=(e,t)=>t?.items?.reduce(ek,e)??e,sk=(e,t)=>t?.items?.reduce(tk,e)??e,nk=({course:e,lessons:t})=>{const s=t?.reduce(sk,[])||[],o=e?.partnerContentId||null,r=o?[o]:[],a=new Set([...s,...r]);return Array.from(a)},ok=e=>typeof e=="string"&&e.length>0,jue=`${ye("CDN_URI")}/assets/rise/assets/themes/thumbnails/sample-avatar.jpeg`,wue=Rs()({ACTIVE:null,PREVIEW:null}),Aue=({themeId:e,themeCoverImage:t,coverImageDefault:s})=>e==="classic"&&ok(s)?s:t,rk=e=>({...e,theme:{...e?.theme,hideLessonHeaders:e?.theme?.hideLessonHeaders??!1,showStartButton:e?.theme?.showStartButton??!0}});var Rue;const ak=os()([[N0()([Qt()(!0),Qt()(Ee.ALL)]),Le()(Ee.ALL)],[N0()([Qt()(!1),Qt()(Ee.NONE)]),Le()(Ee.NONE)],[Qt()(Ee.INCORRECT),Le()(Ee.INCORRECT)],[sr(),Le()(Ee.ALL)]]),Pue="draw from question bank",Mue="fillin",Oue="matching",Bue="multiple choice",Due="multiple response",Hue=null;var ik=f(80029),$0=f.n(ik);const _0={LESSON:"lesson",QUIZ:"quiz",SECTION:"section"},qr={KNOWLEDGE_CHECK:"KNOWLEDGE_CHECK",ORDER:"ORDER",QUIZ:"QUIZ"},Os=e=>`/lessons/${encodeURIComponent(e)}`,ck="/lessons/progress-summary",lk=e=>e.type===_0.SECTION,dk=e=>e.type===_0.QUIZ,uk=e=>e.settings?.passToContinue===!0,Hg=e=>e?.items?.find(t=>t.family==="knowledgeCheck"&&t.settings?.requireCorrectAnswer),pr=e=>e.type!=="quiz"||e.settings?.asLesson!==!1,hk=e=>e!=null&&e.type==="blocks",mk=e=>{const t=$0()(e);return t!=null&&Array.isArray(t.items)&&(t.items=t.items.reduce((s,o)=>(o!=null&&s.push(pk(o)),s),[])),t},pk=e=>{const t=$0()(e);return t!=null&&Array.isArray(t.items)&&(t.items=t.items.filter(Boolean)),t};var fk=f(26501),gk=f.n(fk);const Fg="^1.4.0";class U0 extends Error{}function vk(e){try{if(e==null)return;if(typeof e!="object"||!("version"in e)||typeof e.version!="string")throw new U0("Missing Runtime.version");if(!gk()(e.version,Fg))throw new U0(`Runtime.version ${e.version} does not satisfy ${Fg}`)}catch(t){console.warn(t)}}const ea="rise/course/LOAD_COURSE",Ck="rise/course/UPDATE_COMPLETED_AT",fl="rise/course/UPDATE_COURSE_PREVIEW",Vg="rise/course/UPDATE_LESSON_PREVIEW",G0="rise/course/APPLY_CHANGESET";let W0;(async()=>{try{({applyReviewDataToManifest:W0}=await f.e("webpack_container_remote_mondrian_learn-react").then(f.t.bind(f,4246,23)))}catch{}})();const Ti=Qx(),xk=e=>{if("settings"in e&&e.settings&&As(e.settings)&&"revealAnswers"in e.settings){const s=e.settings;return{...e,settings:{...e.settings,revealAnswers:ak(s.revealAnswers)}}}return e},bk=e=>hk(e)?mk(e):e,zg=e=>bk(xk(e)),yk=e=>({...e,lessons:e.lessons?.map(zg)||[]}),Lk=e=>{const t=e.lessons?.filter(s=>s.type!=="section")||[];return{...e,lessonsOnly:t}},Sk=e=>e.theme==null,Tk=e=>z0(jg(e)),Nk=e=>Sk(e)?Tk(e):z0(e),kk=e=>rk(Nk(e)),Ik=(e,t)=>{let s=(0,$r.TJ)(["course"],t,e).result;const o=(0,$r.TJ)(["lessons"],t,s.lessons).result;return t.some(r=>r.path[0]==="mondrian")&&s.mondrian&&W0&&(s={...s,mondrian:W0(s.mondrian,t)}),{...s,lessons:o}},Ek=e=>({...e,lessons:e.lessons?.map(_N)||[]}),jk=(e,{completedAt:t,course:s,favoritedAt:o,riseComCurrentUser:r,riseComCourseId:a,riseComEnrollmentType:i,riseComLearningPathId:c})=>{const d=yk(s),l=Lk(d),h={...l,theme:l.theme??jg(l).theme};return{...kk(h),completedAt:t,favoritedAt:o,riseComCourseId:a,riseComEnrollmentType:i,riseComCurrentUser:r,riseComLearningPathId:c}},wk=e=>({...e,favoritedAt:new Date}),Ak=e=>({...e,favoritedAt:null}),Rk=e=>({...e,completedAt:new Date().toISOString()}),Pk={[Mg]:wk,[Og]:Ak,[ea]:jk,[Ck]:Rk,[fl]:(e,{course:t})=>t,[Vg]:(e,{lessons:t})=>({...e,lessons:t.map(zg)}),[G0]:Ik},Mk=(0,le.handle)({},Pk),Ok=e=>t=>{const{statusCode:s}=t;s===404?e(JN(!0)):t instanceof U0&&(e(qN(!0)),console.error(t))},Bk=e=>t=>t([{type:Bg,payload:e},Dg(!0)]),Dk=Zo().fromPromise(async(...e)=>await ST(...e)),Hk=e=>e.length===0?Dg(!0):Dk(e).map(Bk),Fk=e=>t=>{const{course:s}=t,o=Ek(s),r=nk({course:o,lessons:o.lessons});e([Ti(ea,{...t,course:o,_originalLessons:s.lessons}),YN(!0),Hk(r)])},Vk=()=>async e=>{try{vk(window.Runtime);const t=await LT();Fk(e)(t),OT(t)}catch(t){await Ok(e)(t)}},zk=Ti(ea),$k=Ti(fl),_k=Ti(Vg),Uk=Ti(G0),Gk=(e,{labelSet:t})=>({...e,...t}),Wk=(0,le.handle)({},{[ea]:Gk}),Xn=e=>`rise/course/${e}`,$g=Xn("BLOCKS_LESSON_COMPLETE"),_g=Xn("BLOCKS_LESSON_INCREMENT_RETRY_ATTEMPT"),Ug=Xn("BLOCKS_LESSON_RESET"),Gg=Xn("BLOCKS_LESSON_RETRY_SORTING_ACTIVITY"),Wg=Xn("BLOCKS_LESSON_SET_ITEMS_PROGRESS"),Kg=Xn("BLOCKS_LESSON_SET_MEDIA_PLAY_PROGRESS"),Qg=Xn("BLOCKS_LESSON_SET_SORTING_ITEM_RESULT"),Zg=Xn("BLOCKS_LESSON_SET_SURVEY_PARTIAL"),Yg=Xn("BLOCKS_LESSON_SET_SURVEY_SUBMITTED"),Xg=(0,le.action)($g),Kk=(0,le.action)(_g),Qk=(0,le.action)(Ug),Zk=(0,le.action)(Gg),Jg=(0,le.action)(Wg),Yk=(0,le.action)(Kg),Xk=(0,le.action)(Qg),Jk=(0,le.action)(Zg),qk=(0,le.action)(Yg),on=e=>`rise/course/${e}`,qg=on("QUIZ_LESSON_ADVANCE_STEP"),ev=on("QUIZ_LESSON_CLEAR_ANSWER_SELECTION"),tv=on("QUIZ_LESSON_INITIALIZE_DRAWN_QUESTIONS"),sv=on("QUIZ_LESSON_RESTART"),nv=on("QUIZ_LESSON_SELECT_QUIZ_ANSWER"),ov=on("QUIZ_LESSON_SET_ANSWER_MATCHES"),rv=on("QUIZ_LESSON_SET_ANSWER_TEXT"),av=on("QUIZ_LESSON_ADVANCE_TO_END"),iv=on("QUIZ_LESSON_SET_TIME_REMAINING"),cv=on("QUIZ_LESSON_SUBMIT_ANSWER"),lv=on("QUIZ_LESSON_TOGGLE_ANSWER_SELECTION"),K0=(0,le.action)(qg),eI=(0,le.action)(av),dv=(0,le.action)(sv),uv=(0,le.action)(nv),hv=(0,le.action)(rv),mv=(0,le.action)(lv),tI=(0,le.action)(iv),pv=(0,le.action)(ov),Q0=(0,le.action)(cv),sI=(0,le.action)(ev),nI=(0,le.action)(tv),Z0=e=>e&&typeof e=="object"&&e.type&&H2.includes(e.type),oI=(e,t)=>{const s=new Map;return e.forEach(o=>{if(Rg(o)){const r=t.find(a=>String(a.id)===String(o.id));r&&r.type==="blocks"&&s.set(String(o.id),String(r.id))}}),s},rI=(e,t)=>{const s={id:String(e.id),index:e.index,type:"blocks",items:{}};return typeof e.isComplete=="boolean"&&(s.isComplete=e.isComplete),typeof e.percentComplete=="number"&&(s.percentComplete=e.percentComplete),t.type==="blocks"&&t.items&&t.items.forEach((o,r)=>{if(o?.id!=null&&(s.items[o.id]={id:o.id,index:r,isComplete:e.isComplete===!0&&r===0,items:o.items?{}:void 0},o.items&&Array.isArray(o.items))){const a={};o.items.forEach((i,c)=>{i?.id!=null&&(a[i.id]={id:i.id,index:c,isComplete:e.isComplete===!0})}),Object.keys(a).length>0&&(s.items[o.id].items=a)}}),s},aI=(e,t)=>{const s=new Set(t.map(r=>String(r.id))),o=[];return Object.values(e.lessons).forEach(r=>{Z0(r)&&(s.has(String(r.id))||o.push(r))}),o},iI=(e,t,s)=>{const o={totalLegacyLessons:0,successfulMigrations:0,failedMigrations:0},r={...e,lessons:{...e.lessons}},a=aI(e,s);o.totalLegacyLessons=a.length;const i=oI(t,s),c=[];return a.forEach(d=>{try{const l=i.get(String(d.id))||String(d.id),h=s.find(m=>String(m.id)===l);if(h&&h.type==="blocks"){const m=rI(d,h);r.lessons[String(h.id)]=m,String(d.id)!==String(h.id)&&delete r.lessons[String(d.id)],o.successfulMigrations++}else c.push(String(d.id)),o.failedMigrations++}catch(l){console.warn(`Failed to migrate legacy lesson progress for lesson ${d.id}:`,l),c.push(String(d.id)),o.failedMigrations++}}),{migratedProgress:r,orphanedLessonIds:c,migrationSummary:o}},fv=e=>Object.values(e.lessons).some(Z0),Fue=e=>{let t=0,s=0;const o=[];return Object.values(e.lessons).forEach(r=>{s++,Z0(r)&&(t++,o.includes(r.type)||o.push(r.type))}),{legacyCount:t,totalCount:s,legacyTypes:o,hasLegacyProgress:t>0}},cI=(e,t,s)=>{if(!fv(e))return e;const o=iI(e,t,s);return o.orphanedLessonIds.length>0&&console.warn("Some legacy lessons could not be migrated:",o.orphanedLessonIds),o.migratedProgress},Y0=e=>`rise/course/${e}`,gv=Y0("BOOKMARK_LESSON"),lI=Y0("LOAD_COURSE"),vv=Y0("PREVIEW_COMPLETE_PRECEDING_LESSONS"),dI=(0,le.action)(gv),uI=(0,le.action)(vv),hI={lessons:{},percentComplete:0},mI=(0,le.handle)(hI,{[$g]:y2,[_g]:ly,[Ug]:dy,[Gg]:uy,[Wg]:hy,[Kg]:my,[Qg]:py,[Zg]:fy,[Yg]:gy,[qg]:ky,[av]:Iy,[ev]:Ey,[tv]:jy,[sv]:Ay,[nv]:Ry,[ov]:Py,[rv]:wy,[iv]:My,[cv]:Oy,[lv]:By,[gv]:fI,[lI]:pI,[vv]:gI});function pI(e,t){const s=t.course?.lessons??[],o=t._originalLessons??s,r=ig(yI(s));if(typeof r!="object"||r===null)return e;const a={...e,...r};return fv(e)&&o!==s?cI(a,o,s):a}function fI(e,t){return TT(t),{...e,currentLesson:t}}function gI(e,{targetLessonId:t,lessons:s}){const o=e.lessons[t];if(!o)return e;let r=o.index;for(const i of s){if(i.type!=="quiz")continue;const c=e.lessons[i.id];if(!c||c.index>=r)continue;const d=i.settings;if(!d?.skipLessonsIfPassed||!d.skipToLessonId)continue;const l=e.lessons[d.skipToLessonId];l&&l.index>r&&(r=l.index)}const a=Object.fromEntries(Object.entries(e.lessons).map(([i,c])=>c.index>=r||c.isComplete?[i,c]:[i,vI(c)]));return{...e,lessons:a}}function vI(e){return Ln(e)?f0(e):ns(e)?CI(e):e}function CI(e){const t=Object.fromEntries(Object.entries(e.items??{}).map(([o,r])=>[o,{...r,isComplete:!0,isCorrect:!0}])),s=Object.keys(t).length;return{...e,items:t,activeIndex:s+1,isComplete:!0,passed:!0,passingScore:e.passingScore??Ur,percentComplete:100,reportResults:!0,score:100}}const xI=({index:e,lessonId:t,settings:s,type:o})=>o==="quiz"?{id:t,index:e,type:o,items:{},passingScore:Number(s?.passingScore??Ur)}:{id:t,index:e,type:"blocks",items:{}};function bI(e){return e.type==="quiz"&&"settings"in e}function yI(e){return{lessons:e.reduce((s,o,r)=>bI(o)?Cv({index:r,items:o.items,lessonId:o.id,lessonProgress:s,settings:o.settings,type:o.type}):o.type==="blocks"?Cv({index:r,items:o.items,lessonId:o.id,lessonProgress:s,type:o.type}):s,{})}}function Cv(e){const{lessonId:t,index:s,items:o,lessonProgress:r={},settings:a,type:i}=e,c=xI({lessonId:t,index:s,settings:a,type:i});if(o.length===0)return{...r,[t]:c};const d=i==="quiz"?SI(o):LI(o);return{...r,[t]:{...c,items:d}}}function LI(e){return e.reduce((t,s,o)=>{const r=s.id,a=s.items??[],i=ty(a);return t[r]={id:r,index:o,items:i},t},{})}function SI(e){return e.reduce((t,s,o)=>(t[s.id]={id:s.id,index:o},t),{})}var TI=f(30358),ta=f.n(TI),NI=f(5752),kI=f.n(NI),Vue=f(59641),xv,bv;const X0=5e3,II=tt()(Xc()(en())(":n3,n4,i4,n7,n9")),EI=ce()(ta()(","),hl()),jI=(e,t)=>{const s=new FontFace(t.name,e,{family:t.name,style:t.style,weight:t.weight});return s.load().then(()=>document.fonts.add(s))},wI=(e,t)=>{const s=document.createElement("style");return s.innerText=`@font-face { font-family: '${t.name}'; src: ${e}; font-weight: ${t.weight}; font-style: ${t.style}; }`,document.head.appendChild(s),new(kI())(t.name,{style:t.style,weight:t.weight}).load()},AI=e=>{const t=`url(${Eb(e)}) format('woff')`;return("fonts"in document?jI:wI)(t,e)},yv=(e,t)=>{const s=Promise.all(e.map(AI));let o;const r=new Promise(a=>{o=setTimeout(a,X0)});return Promise.race([s,r]).catch(a=>{console.error("Failed to load learn course fonts:",{fonts:e,error:a.message||a})}).finally(()=>{clearTimeout(o),t()})},$ue=({baseUri:e,typefaces:t,onLoad:s,onError:o})=>{const r=xv(t).join(", ");return bv.load({active:s,fontinactive:(a,i)=>{console.error("Individual font failed to load:",{familyName:a,fvd:i,typefaces:t})},inactive:()=>{console.error("Failed to load course fonts:",{typefaces:t,typefaceList:r}),o?.(),s?.()},timeout:X0,custom:{families:II(xv(t)),urls:[`${e}/course_fonts.css?typefaceIds=${EI(t)}`]}})},_ue=()=>bv.load({google:{families:["Noto Sans Myanmar:300,400,500,600,700"]},timeout:X0}),RI=(e,{fonts:t})=>[...e,...t],PI=(e,{fonts:t})=>t,MI=(0,le.handle)([],{[ea]:RI,[fl]:PI}),OI=e=>t=>{yv(e,()=>{t(ZN(!0))})},BI={isPreview:window.viewType==="preview"},J0=((e=BI)=>e);(Object.getOwnPropertyDescriptor(J0,"name")||{}).writable||Object.defineProperty(J0,"name",{value:"default",configurable:!0});const Lv="rise/l10n/TOGGLE_LOCALE_SELECTOR",Sv=(e,{l10n:t})=>t?{...e,...t}:e,DI=(e,t)=>(0,$r.TJ)(["l10n"],t,e).result,q0=(0,le.action)(Lv),HI=(e,t)=>e&&{...e,...!t&&{localeSelectorOptions:void 0},showLocaleSelector:t},FI=(0,le.handle)(null,{[ea]:Sv,[fl]:Sv,[G0]:DI,[Lv]:HI});var VI=f(63630),gl=f.n(VI);const zI=gl()(2,e=>v0()((0,le.error)(e),(0,le.action)(e))),{RiseDotCom:Jn}=window,fr=e=>Jn&&Jn[e],$I=()=>{fr("exit")&&Jn.exit()},Tv=(...e)=>{fr("on")&&Jn.on(...e)},Nv=(...e)=>{fr("off")&&Jn.off(...e)},_I=(...e)=>{fr("goToLearn")&&Jn.goToLearn(...e)},UI=(...e)=>{if(fr("downloadCertificate"))return Jn.downloadCertificate(...e)},GI=(...e)=>{if(fr("downloadCertificateCancel"))return Jn.downloadCertificateCancel(...e)},WI=(...e)=>{if(fr("fetchLpUpNext"))return Jn.fetchLpUpNext(...e)},kv="rise/learningPathUpNext/FETCH_LP_UP_NEXT",Iv="rise/learningPathUpNext/FETCH_LP_UP_NEXT_PENDING",KI={isPending:!1,isSuccess:!1,learningPathComplete:!1,nextCourse:{}},QI=e=>!("id"in e),ZI=(e,t)=>{const s=QI(t);return{...e,isPending:!1,isSuccess:!0,learningPathComplete:s,lpHasFailedQuiz:t.lpHasFailedQuiz,nextCourse:s?{}:t}},YI=e=>({...e,isPending:!0}),XI=(0,le.handle)(KI,{[kv]:(0,le.onSuccess)(ZI),[Iv]:YI}),JI=e=>[(0,le.action)(Iv),zI(kv)(Zo().fromPromise(WI)(e))],qI=(e,t)=>{const s=e.content.findIndex(r=>r.id===t.id),o=[...e.content];return s===-1?o.push(t):o[s]=t,{...e,content:o}},eE=(e,t)=>t.reduce(qI,e),tE={[Bg]:eE},sE=(0,le.handle)({content:[]},tE),Ev="rise/search/RESET_SEARCH",jv="rise/search/SET_SEARCH_ACTIVE",wv="rise/search/SET_SEARCH_ACTIVE_LESSONS",Av="rise/search/SET_SEARCH_TRANSLATIONS",Rv="rise/search/SET_SEARCH_LESSONS",Pv="rise/search/SET_SEARCH_TERM",Mv={active:!1,activeLessons:[],translations:{},lessons:[],term:null},nE=(e,t)=>t?{...Mv,active:e.active}:e,oE=(e,t)=>({...e,active:t}),rE=(e,t)=>({...e,activeLessons:t}),aE=(e,t)=>({...e,translations:t}),iE=(e,t)=>({...e,lessons:t}),cE=(e,t)=>({...e,term:t}),lE=(0,le.handle)(Mv,{[Ev]:nE,[jv]:oE,[wv]:rE,[Av]:aE,[Rv]:iE,[Pv]:cE}),sa=e=>(0,le.action)(e),Ov=sa(Ev),Ni=sa(jv),Bv=sa(wv),Dv=sa(Av),Hv=sa(Rv),gr=sa(Pv),e1=e=>`rise/sessionPreferences/${e}`,Fv=e1("LOAD_SESSION_PREFERENCES"),Vv=e1("SET_PREFERS_KEYBOARD_NAVIGATION"),dE=e1("SET_STARTING_COURSE_LESSON_SELECTED"),uE={prefersKeyboardNavigation:!1,startedCourseWithLessonSelected:!1},hE=(e,t)=>({...e,prefersKeyboardNavigation:t}),mE=(e,t)=>({...e,startedCourseWithLessonSelected:t}),pE=(0,le.handle)(uE,{[Fv]:(e,t)=>({...e,...t}),[Vv]:hE,[dE]:mE}),fE=()=>(0,le.action)(Fv,null),gE=(0,le.action)(Vv),zv="rise/slidesUI/SET_SLIDE_DIRECTION",$v="rise/slidesUI/SET_EXITING_SLIDE_OFFSET",vE={slideDirection:Ps.UP,exitingSlideOffset:0},CE=(0,le.handle)(vE,{[zv]:(e,t)=>({...e,slideDirection:t}),[$v]:(e,t)=>({...e,exitingSlideOffset:t})}),To=(0,le.action)(zv),xE=(0,le.action)($v),t1=en()("rise/transcriptPanel/"),_v=t1("OPEN_TRANSCRIPT_PANEL"),Uv=t1("CLOSE_TRANSCRIPT_PANEL"),Gv=t1("UPDATE_TRANSCRIPT_PANEL"),bE={audioPlayerIdOpen:null,focusing:!1,refocusTarget:null,transcriptMedia:null},yE=(e,t)=>t.audioPlayerId?{...e,audioPlayerIdOpen:t.audioPlayerId,focusing:t.focusing??!1,refocusTarget:t.refocusTarget??null,transcriptMedia:t.transcriptMedia??null}:e,Wv=()=>({audioPlayerIdOpen:null,focusing:!1,refocusTarget:null,transcriptMedia:null}),LE=(e,t)=>e.audioPlayerIdOpen?t.audioPlayerId?{...e,audioPlayerIdOpen:t.audioPlayerId,focusing:t.focusing??e.focusing,transcriptMedia:t.transcriptMedia??e.transcriptMedia}:Wv():e,SE={[_v]:yE,[Uv]:Wv,[Gv]:LE},TE=(0,le.handle)(bE,SE),Kv=(e=>`rise/ui/${e}`)("SET_SKIP_TO_NAV_BUTTON_UI"),NE={skipToNavButton:null},kE=(0,le.handle)(NE,{[Kv]:(e,t)=>({...e,skipToNavButton:t})}),s1=(0,le.action)(Kv),IE=Se?{learningPathUpNext:XI}:{},EE=(0,Qc.HY)({course:Mk,courseLabels:Wk,courseProgress:mI,fonts:MI,global:J0,l10n:FI,partnerContent:sE,search:lE,sessionPreferences:pE,slidesUI:CE,status:QN,transcriptPanel:TE,ui:kE,...IE}),{Provider:jE,dispatch:fs,store:Qv,useDispatch:it,useSelector:ae}=Vx(EE),Zv="_course_token",n1=new URLSearchParams(window.location.hash.substr(1)),Yv=n1.get(Zv);Yv&&(n1.delete(Zv),window.history.replaceState(null,null,`#${n1.toString()}`));const wE=e=>{const{data:{method:t,id:s,jsonrpc:o}}=e;if(o==="2.0"&&t==="getBearerToken"){const r=Yv||pt();navigator.serviceWorker.ready.then(a=>{a.active.postMessage({id:s,jsonrpc:"2.0",method:t,result:{token:r}})})}};navigator.serviceWorker&&navigator.serviceWorker.addEventListener("message",wE);const Xv=(0,u.createContext)({});function AE(e,{type:t,message:s}){switch(t){case"polite":return{...e,politeMessage1:e.alternatePolite?s:"",politeMessage2:e.alternatePolite?"":s,alternatePolite:!e.alternatePolite};case"assertive":return{...e,assertiveMessage1:e.alternateAssertive?s:"",assertiveMessage2:e.alternateAssertive?"":s,alternateAssertive:!e.alternateAssertive};default:return{politeMessage1:"",politeMessage2:"",alternatePolite:!1,assertiveMessage1:"",assertiveMessage2:"",alternateAssertive:!1}}}function vl({ariaLive:e,message:t}){return(0,n.jsx)("div",{"aria-atomic":"true","aria-live":e,"aria-relevant":"additions text",className:"visually-hidden-always",role:"log",children:t})}function RE({children:e}){const[{politeMessage1:t,politeMessage2:s,assertiveMessage1:o,assertiveMessage2:r},a]=(0,u.useReducer)(AE,{politeMessage1:"",politeMessage2:"",alternatePolite:!1,assertiveMessage1:"",assertiveMessage2:"",alternateAssertive:!1}),i=(0,u.useMemo)(()=>({announcePolite:c=>{a({type:"polite",message:c})},announceAssertive:c=>{a({type:"assertive",message:c})},clearAnnouncements:()=>{a({type:"clear"})}}),[a]);return(0,n.jsxs)(Xv.Provider,{value:i,children:[(0,n.jsx)(vl,{ariaLive:"polite",id:"polite-announcer1",message:t}),(0,n.jsx)(vl,{ariaLive:"polite",id:"polite-announcer2",message:s}),(0,n.jsx)(vl,{ariaLive:"assertive",id:"assertive-announcer1",message:o}),(0,n.jsx)(vl,{ariaLive:"assertive",id:"assertive-announcer2",message:r}),e]})}function qn(){return(0,u.useContext)(Xv)}var PE=f(76294),G=f.n(PE),Ue=f(10595);const Jv={BLOCKS:"blocks",QUIZ:"quiz",SECTION:"section"},qv=e=>e?.type===Jv.QUIZ,o1=e=>e?.type===Jv.QUIZ,r1=({locales:e,course:t,locale:s})=>!!(e?.find(a=>a.locale===s)?.rightToLeft||t?.features?.["rise-rtl"]&&t?.experiments?.rtl),e3=(0,u.createContext)({currentLocale:void 0,setCurrentLocale:()=>{}});function ME({children:e,currentLocale:t,setCurrentLocale:s}){const o=(0,u.useMemo)(()=>({currentLocale:t,setCurrentLocale:s}),[t,s]);return(0,n.jsx)(e3.Provider,{value:o,children:e})}function Ze(){return(0,u.useContext)(e3)}function OE(e){const t=s=>{const o=Ze();return(0,n.jsx)(e,{...s,...o})};return t.displayName=`withCurrentLocale(${e.displayName||e.name})`,t}const ki=(e,t,s)=>(0,jt.uW)(e)&&t?s?.[t]?.[e.l10nId]:void 0,Cl=(e,t,s,o)=>{if(!(0,jt.uW)(e))return e;if(!t||!s||!o)return;const r=ki(e,t,o);if(r!==void 0)return r;const a=ki(e,s,o);if(a!==void 0)return a;const i=t3(e,o);return i.length>0?i[0].value:void 0},a1=new WeakMap,i1=(e,t)=>{if(e&&t in e)return e[t]},c1=(e,t,s,o)=>{if(!t||!s||!o||!e)return e;if(typeof e=="object"){const l=a1.get(e)?.get(o);if(l&&l.locale===t&&l.defaultLocale===s)return l.result}const r=o[t],a=o[s],i=Object.values(o).filter(l=>l!==r&&l!==a);function c(l){let h;if(h=i1(r,l),h!==void 0||(h=i1(a,l),h!==void 0))return h;for(const m of i)if(h=i1(m,l),h!==void 0)return h}let d;if(!Array.isArray(e)&&typeof e=="object"&&typeof e.l10nId=="string")d=c(e.l10nId);else{d=structuredClone(e);for(const{mutate:l,l10nId:h}of(0,$r.pr)(d))l(c(h))}if(typeof e=="object"){let l=a1.get(e);l||(l=new WeakMap,a1.set(e,l)),l.set(o,{locale:t,defaultLocale:s,result:d})}return d},Wue=(e,t,s)=>c1(e,t,na(s),No(s)),Kue=(e,t,s)=>Cl(e,t,na(s),No(s)),Que=(e,t,s)=>ki(e,t,No(s));function Zue(e,t){return t?.find(s=>s.locale===e)}function BE(e){return e?.l10n?.locales??[]}function na(e){return e?.l10n?.defaultLocale}function DE(e,t){const s=na(t);return!!(e&&s&&e!==s)}function No(e){return e?.l10n?.translations??{}}function t3(e,t){return(0,jt.uW)(e)?Object.keys(t).flatMap(s=>{const o=ki(e,s,t);return o?{locale:s,value:o}:[]}):[]}const Yue=(e,t)=>t3(e,No(t)),wt=e=>(0,jt.uW)(e)?e.l10nId:void 0;function HE(e){return e?.l10n?.localeSelectorOptions}function l1(e){return e?.l10n?.languageCodeMetadata}function FE(e){return e?.l10n?.showLocaleSelector}function d1(e,t="#ffffff"){if(e==null||e.trim()==="")return null;const s=Yr(e);if(s==null)return null;const o=s.alpha??1,r=Yr(t),a=o<1&&r!=null?(0,M0.jh)(r,{...s,alpha:1},o,{space:"srgb"}):s;return(0,zT.A)(a,"srgb")}function VE(e,t){const s=d1(t);if(s==null)return 1;const o=d1(e,(0,O0.A)(s));return o==null?1:(0,FT.A)(o,s,"WCAG21")}const Bs=e=>e==null?pe.DARK:VE("#fff",e)>=4.5?pe.LIGHT:pe.DARK,u1=(0,u.createContext)(null);u1.displayName="CourseContext";function zE({children:e,course:t,courseProgress:s,labels:o,labelsLocale:r,lessons:a,partnerContent:i,search:c}){const d=(0,u.useMemo)(()=>({course:t,courseProgress:s,labels:o,labelsLocale:r,lessons:a,partnerContent:i,search:c}),[t,s,o,r,a,i,c]);return(0,n.jsx)(u1.Provider,{value:d,children:e})}function oa(){return(0,u.useContext)(u1)}function Re(){return oa()?.course}function s3(){return Te(Re()?.title)}function gs(){const{labels:e}=oa()??{};return e}function $E(){return oa()?.labelsLocale}function h1(){return oa().search}function n3(e){const o=Re()?.theme?.accentContrast;return typeof o!="string"?pe.LIGHT:o===pe.AUTO?Bs(e):o}function Ii(){const e=Re();return e?.theme?.colorAccent??e?.color}function m1(){const{currentLocale:e}=Ze(),t=xl(),s=Re();return s?r1({course:s,locales:t,locale:e}):!1}function _E(){const{lessons:e}=oa();return e}const Ei=(0,u.createContext)({l10n:null});Ei.displayName="TranslationContext";const p1=(0,u.createContext)({l10n:null});p1.displayName="LocalesContext";function vs(){const{currentLocale:e}=Ze(),t=Ds(),s=bl();return(0,u.useCallback)(o=>Cl(o,e,t,s),[e,t,s])}function o3(){const{currentLocale:e}=Ze(),t=Ds(),s=bl();return(0,u.useCallback)(o=>c1(o,e,t,s),[e,t,s])}function Te(e,t){const{currentLocale:s}=Ze(),o=Ds();let r=bl();const a=GE();return a&&Object.keys(a).length&&s&&r&&(r={...r,[s]:a}),Cl(e,t??s,o,r)}function UE(e){const{currentLocale:t}=Ze(),s=Ds(),o=bl();return(0,u.useMemo)(()=>c1(e,t,s,o),[t,s,e,o])}function ra(){return(0,u.use)(p1)}function xl(){const e=ra();return BE(e)}function Ds(){const e=ra();return na(e)}function bl(){const e=(0,u.use)(Ei);return No(e)}function GE(){return oa()?.search?.translations}function WE(){const e=(0,u.use)(Ei);return FE(e)}function KE(){const e=(0,u.use)(Ei);return HE(e)}const QE=()=>(0,Ue.Mz)(t=>t,(t,s)=>s,(t,s,o)=>na(o),(t,s,o)=>No(o),Cl);function vt(e){const{currentLocale:t}=Ze(),s=(0,u.useMemo)(()=>QE(),[]);return ae(o=>s(e,t,o))}const ZE=(0,Ue.Mz)(e=>e,(e,t)=>No(t),(e,t)=>t?.[e]);function r3(){const{currentLocale:e}=Ze();return ae(t=>ZE(e,t))}const YE=(0,Ue.Mz)(e=>e.course?.title,na,No,(e,t,s)=>{if(e)return ki(e,t,s)});function XE(){return ae(YE)}function yl(){return ae(e=>e.l10n)}var JE=f(80588);function a3(e){return e?.search}function ko(){return ae(a3)}function qE(e){return a3(e)?.activeLessons}const ej=(0,Ue.Mz)(qE,e=>e?e.reduce((t,s)=>(s?.id&&(t[s.id]=s),t),{}):{});function tj(){return(0,Ue.Mz)(e=>e,(e,t)=>ej(t),(e,t)=>t?.[e])}function sj(e){const t=JE.useMemo(()=>tj(),[]);return ae(s=>t(e,s))}function Cs(e){return e.course}function ee(){return ae(Cs)}function nj(e){return Cs(e)?.navigationMode}function f1(e){return Cs(e)?.trackingQuizId}function aa(){const e=ee();return vt(e?.title)}function oj(e){return Cs(e)?.type}function rj(){return ae(e=>oj(e))}function g1(e){const t=Cs(e);return bo(t)}function i3(){return ae(g1)}const aj=e=>e.filter(t=>t.type!=="section");function ji(){const e=ee(),t=ko();return(0,u.useMemo)(()=>t?.active&&t?.lessons?.length>0?{...e,lessons:t.lessons,lessonsOnly:aj(t.lessons)}:e,[e,t?.active,t?.lessons])}const ij=(0,Ue.Mz)(Cs,e=>(e?.lessons??[]).filter(qv).some(t=>t.settings?.skipLessonsIfPassed&&t.settings?.skipToLessonId));function v1(e){const t=nj(e);return ij(e)?Lo.RESTRICTED:t??Lo.FREE}function Ll(){return ae(v1)}function cj(e){return Cs(e)?.theme?.buttonNavigationStyle??_e.buttonNavigationStyle}function lj(){return ae(cj)}function C1(){const e=ee();return e?.selectedAuthorId==="none"||!("authors"in(e??{}))?null:e?.selectedAuthorId?e?.authors?.find(t=>t.id===e.selectedAuthorId):e?.authors?.find(t=>t.id===e?.author)}function c3(){return ee()?.theme?.coverImageColor??nt.DARK}function l3(){return ee()?.lessonsOnly?.[0]}function dj(){const e=ee(),{selectedAuthorId:t}=e?.lessons?.[0]??{};return t==="none"||!t?null:e?.authors?.find(s=>s.id===t)??null}function rn(){const{currentLocale:e}=Ze(),t=xl(),s=ee();return s?r1({course:s,locales:t,locale:e}):!1}function d3(){const t=ee()?.lessons;return(0,u.useMemo)(()=>Array.isArray(t)?t.filter(({type:s})=>s!=="section").length:0,[t])}class uj extends u.Component{static defaultProps={scope:"error-boundary"};constructor(t){super(t),this.state={hasError:!1}}static getDerivedStateFromError(t){return console.error(t),{hasError:!0,error:t}}render(){const{hasError:t,error:s}=this.state,{FallbackComponent:o}=this.props;return t||s?(0,n.jsx)(o,{}):this.props.children}}const hj=uj;var mj=f(90526),pj=f.n(mj),fj=f(35592),gj=f.n(fj),vj=f(35905),Hs=f.n(vj),Cj=f(37853),u3=f.n(Cj),xj=f(29464),ia=f.n(xj),bj=f(20746),Zt=f.n(bj),yj=f(79905),wi=f.n(yj),Lj=f(20137),Sj=f.n(Lj);const x1=({course:e,courseProgress:t})=>!e||!t?{}:e.lessons.filter(r=>!!r.settings?.passToContinue).filter(r=>!t.lessons[String(r.id)]?.passed)[0]??{},Tj=({courseProgress:e,lesson:t,restrictingQuiz:s})=>{if(!e)return{};const o=c=>e.lessons[String(c)]?.index,r=o(t.id),a="id"in s?s.id:void 0,i=a!=null?o(a):void 0;return r!==void 0&&i!==void 0&&r>i?s:{}};var Nj=f(34558),h3=f.n(Nj),kj=f(58986),Ai=f.n(kj);const Io=ye("CDN_USER_CONTENT_URI"),m3=ye("CDN_URI"),Ri=Kr()("useCrushedKey"),an=ye("IMAGES_URI"),Ij=Ai()(/-stock[-_]image.jpg/),b1=ye("RBC_IMAGES_URI"),Ej=ye("ASSETS_URI"),jj=Ai()(new RegExp(`^${Io}/review`)),p3=ye("CDN_US_URI"),Pi=e=>{const{crushedKey:t,key:s,useCrushedKey:o,src:r}=e;return Ri(e)?mt(o&&t?t:s):mt(r)},Xue=e=>`${Io}/${e}`,Jue=e=>!e||!e.key?"":`${b1}/b:fff,f:jpg,s:cover,w:550,h:296/${e.key}`,que=e=>{if(!e||!e.key)return"";const{crushedKey:t,key:s,useCrushedKey:o}=e;return Ri(e)&&o?t?`${an}/f:jpg,b:fff,s:cover,w:340/${t}`:"":`${an}/f:jpg,b:fff,s:cover,w:340/${s}`},f3=e=>{if(!e||!e.key)return"";const{crushedKey:t,key:s,useCrushedKey:o}=e;return an?Ri(e)&&o&&t?`${an}/f:png,a:retain,s:cover,t:true,w:340/${t}`:`${an}/f:png,a:retain,s:cover,t:true,w:340/${s}`:Pi(e)},Ct=e=>{if(!e||!e.key)return"";const{crushedKey:t,key:s,useCrushedKey:o,sourcedFrom:r}=e;if(!an)return Pi(e);const a=r==="AI",i=r==="LIBRARY",c=r==="EXTRACTED";return Ij(s)||a||i?`${an}/f:jpg,a:retain,b:fff,w:1680,q:90/${s}`:Ri(e)?o&&t?`${Io}/${t}`:`${Io}/${s}`:c&&e.src||jj(e.src)?e.src:`${an}/f:jpg|png,a:retain,b:fff/${s}`},wj=(e,t="src")=>{const{key:s,src:o,thumbnail:r,thumbnailKey:a}=e,i=Io?`${Io}/${s}`:Pi({key:s,src:o}),c=Io?`${Io}/${a}`:Pi({key:a,src:r});return t==="src"?i:c},e0e=e=>{if(!e||!e.key)return"";const{crushedKey:t,key:s,useCrushedKey:o}=e;return Ri(e)&&o&&t?`${an}/f:jpg,b:fff,h:100,s:cover,t:true,w:100/${t}`:`${an}/f:jpg,b:fff,h:100,s:cover,t:true,w:100/${s}`},ca=({height:e,imageKey:t,width:s})=>{if(b1){const o=encodeURIComponent(t);return`${b1}/b:fff,f:jpg,s:cover,w:${s},h:${e}/${o}`}return mt(`partnerContent/${t}`)},Aj=()=>{const e=Ej||an,t="NBIC_logo_light_bulb.png";return e?`${e}/f:png,a:retain,s:cover,w:276,h:160/assets/rise/assets/partner-content/${t}`:mt(`partnerContent/${t}`)},Rj=()=>{const e="NBIC_logo_blue.svg";return m3?`${m3}/assets/rise/assets/partner-content/${e}`:mt(`partnerContent/${e}`)},Pj=e=>{const{key:t,src:s}=e;return p3?`${p3}/${t}`:Pi({key:t,src:s})};var Mj=f(17776);const Sl=({alpha:e,color:t,url:s})=>{const o=(0,Mj.A)(t,e);return{backgroundImage:`linear-gradient(0deg,${o},${o}), url("${s}")`}};var y1,L1;const s0e=Qr()(Ae()("sidebarMode","hidden")),la=({alpha:e,color:t=void 0,hasOverlay:s=!0,media:o={}})=>{const{image:r={}}=o,{key:a,src:i}=r,c=a?Ct(r):i,d=t===nt.LIGHT?F0:H0;return c?s?Sl({alpha:e/100,color:d,url:c}):{backgroundImage:`url("${c}")`}:null},Eo=e=>[ur.DARK,ur.DARK_ACCENT,ur.DARK_IMAGE,So.DARK,Qn.DARK,Qn.DARK_IMAGE].includes(e),Oj=st()(xe()("lessons"),as()),Bj=Ae()("navigationMode",Lo.RESTRICTED),Dj=Qr()(Ae()("sidebarMode",Jr.HIDDEN)),Hj=Ae()("navigationType",dr.SIDEBAR),g3=Ae()("navigationType",dr.COMPACT),S1=Gt()(h3()(Xe(),"navigation"),Dj,Ae()("navigation",!0)),Fj=({course:e,search:t,isMobile:s})=>bo(e)?!1:(Hj(e)||g3(e)&&!!s)&&S1(e)||t.active,Vj=({course:e,isMobile:t})=>g3(e)&&S1(e)&&!t,Mi=e=>[ur.DARK_IMAGE,ur.LIGHT_IMAGE,So.DARK_IMAGE,So.IMAGE,Qn.DARK_IMAGE,Qn.LIGHT_IMAGE].includes(e),zj=e=>[Qn.DARK,Qn.LIGHT].includes(e),$j=(e,t)=>{if(e===ml.RISE_CLASSIC||e===ml.HORIZON)switch(t){case se.SPLIT_LEFT_IMAGE:case se.SPLIT_RIGHT_IMAGE:case se.TWO_THIRDS_LEFT_IMAGE:case se.TWO_THIRDS_RIGHT_IMAGE:return!0;default:return!1}else if(e===ml.APEX)switch(t){case se.SPLIT_LEFT_IMAGE:case se.SPLIT_RIGHT_IMAGE:return!0;default:return!1}return!1},n0e=(e,t)=>{switch(e){case y1.RISE_CLASSIC:case y1.APEX:case y1.HORIZON:return t===L1.CENTERED_OVERLAY||t===L1.LEFT_OVERLAY||t===L1.IMAGE;default:return!1}},v3=e=>e==null?!0:typeof e=="string"||Array.isArray(e)?e.length===0:typeof e=="object"?Object.keys(e).length===0:!1,cn=e=>!v3(e),C3=ce()(ws()(pr),xe()("lessonsOnly")),_j=({course:e,courseProgress:t})=>Hs()(Uj(t))(e.lessonsOnly),Uj=e=>t=>wi()(Vt()(["lessons",t.id,"isComplete"],e)),Gj=({lesson:e,currentLesson:t})=>e&&Ae()("id",e.id,t),Wj=({course:e,lesson:t})=>Ae()("id",t.id,as()(xe()("lessonsOnly",e))),Kj=({course:e,lesson:t})=>Ae()("id",t.id,xo()(xe()("lessonsOnly",e))),x3=ce()(wi(),Ae()("type","section")),Qj=({lesson:e,courseProgress:t})=>De()(!1,["lessons",e.id,"isComplete"],t),T1=({course:e,courseProgress:t,lesson:s,restrictingQuiz:o})=>{const r=Tj({courseProgress:t,lesson:s,restrictingQuiz:o}),a=Bj(e),i=a||cn(r),c=_j({course:e,courseProgress:t}),d=x3(s)&&wi()(Qj({lesson:s,courseProgress:t}));return{isRestricted:i&&d&&wi()(Gj({lesson:s,currentLesson:c})),restrictingQuiz:r,isRestrictedCourse:a,currentLesson:c}},Zj=({labels:e,restrictions:t})=>{const{lessonRestricted:s,quizRequirePassingScore:o}=e,{isRestrictedCourse:r,restrictingQuiz:a,currentLesson:i}=t,c=i&&gj()("id",a,i);return!r||r&&c?a.title?o.replace("quiz",`"${a.title}"`):o:s},b3=pj()(e=>u3()(Sj()(Sn()(["id"],e||{})))),Yj=({course:e,lesson:t})=>ce()(ia(),b3(t),C3)(e),y3=({course:e,lesson:t})=>!Kj({course:e,lesson:t})&&e.lessonsOnly[ia()(b3(t,e.lessonsOnly))],Xj=ce()(Zt(),C3),Jj=e=>typeof e=="object"&&Object.keys(e).length>0,qj=e=>e==null||e===!1,L3=e=>qj(e?.isComplete),ew=e=>e?.passed===!1||L3(e),tw=(e,t)=>e.find(([s,o])=>s===t?ew(o):L3(o)),sw=(e,t)=>{const s=Object.entries(e),[o]=tw(s,t)||[];return o},nw=(e,t)=>Jj(e)?sw(e,t):t,S3=(e,t,s)=>{if(!s)return{outOfAttempts:!1,quizPassed:!0};const o=Vt()(["lessons",s],e),r=De()(-1,["settings","retryCount"],t),a=De()(0,["retryAttempts"],o),i=Vt()(["passed"],o);return{outOfAttempts:Vt()(["isComplete"],o)&&r>-1&&Number(a)===Number(r),quizPassed:i}};function N1(e){return e.courseProgress}function ow(e){return e.courseProgress?.currentLesson??""}function rw(e){return e.courseProgress?.percentComplete??0}const T3=(0,Ue.Mz)(f1,Cs,(e,t)=>{const{lessons:s}=t;return Array.isArray(s)?s.find(({id:o,type:r})=>r==="quiz"&&o===e)??null:null}),aw=(0,Ue.Mz)(N1,T3,(e,t)=>t?S3(e,t,t.id):null);function N3(e){const t=N1(e);return ug()?t?.percentComplete===100:!!lg()}function da(e){return e.courseProgress?.lessons}function Oi(e,t){if(e!=null)return da(t)?.[e]}function jo(){return ae(N1)}function Tl(){return ae(ow)}function ua(){return ae(rw)}function iw(){return ae(T3)}function k1(){return ae(aw)??{outOfAttempts:!1,quizPassed:!1}}function cw(){return ae(N3)}function wo(e){return ae(t=>Oi(e,t))}function Nl(e){const t=wo(e);if(t?.type==="quiz")return t}const lw=(0,Ue.Mz)(da,e=>e?Object.values(e).some(t=>t.type==="quiz"&&t.activeIndex!==void 0&&!t.isComplete):!1);function dw(){return ae(lw)}const k3=e=>e>9999?1:e,uw=({current:e,restart:t,restartValue:s})=>{const o=Number(s),r=k3(Number.isInteger(o)&&o>0?o:1),a=t?r:e+1;return k3(a)},hw=(e,t)=>{if(t.family==="divider"&&t.variant==="numbered divider"){const s=t.settings??{},o=uw({current:e.currentNumber,restart:s.restartNumbering,restartValue:s.restartNumberingValue});return{map:{...e.map,[t.id]:o},currentNumber:o}}return e},I3=e=>lk(e),kl=e=>dk(e),mw=e=>uk(e),pw=e=>!!Hg(e);function ha(){return(0,Ue.Mz)(e=>e,(e,t)=>A3(t),(e,t)=>t[String(e)])}function At(e){const t=(0,u.useMemo)(()=>ha(),[]);return ae(s=>t(e,s))}function ma(e){const t=At(e);return vt(t?.title)}function fw(){const e=ha();return(0,Ue.Mz)(e,t=>I3(t))}function E3(){const e=Il();return(0,Ue.Mz)(t=>t,(t,s)=>e(s),(t,s)=>v1(s),(t,s)=>Lw(s),(t,s)=>Sw(s),(t,s)=>da(s),(t,s,o,r,a,i)=>{const c=i?.[t],d=i?.[s];if(t!==s&&!c?.isComplete&&c?.index>d?.index){const l=i?.[r?.id]?.index??1/0,h=o==="restricted"?d?.index??1/0:i?.[a?.id]?.index??1/0;if(c?.index>Math.min(l,h))return h<l?o==="restricted"?{type:qr.ORDER}:{type:qr.KNOWLEDGE_CHECK}:{type:qr.QUIZ,data:r.title}}return null})}function Bi(e){const t=(0,u.useMemo)(()=>E3(),[]);return ae(s=>t(e,s))}function Il(){return(0,Ue.Mz)(da,f1,(e,t)=>nw(e,t))}function gw(){const e=(0,u.useMemo)(()=>Il(),[]);return ae(t=>e(t))}function vw(){const e=Il();return(0,Ue.Mz)(e,A3,(t,s)=>{if(!(!t||!s[t]))return s[String(t)]})}function Cw(){const e=ha();return(0,Ue.Mz)(e,Oi,(t,s)=>{const o=s?.percentComplete??0,r=s?.isComplete??!1,a=s?.passed??!1;return o===100&&(!r||kl(t)&&!a)})}function j3(e){const t=(0,u.useMemo)(()=>Cw(),[]);return ae(s=>t(e,s))}function xw(){const e=ha();return(0,Ue.Mz)(e,Oi,(t,s)=>{const o=s?.percentComplete??0,r=s?.isComplete??!1,a=s?.passed??!1;return o===100&&r&&(!kl(t)||a)})}function w3(e){const t=(0,u.useMemo)(()=>xw(),[]);return ae(s=>t(e,s))}const I1=(0,Ue.Mz)(Cs,e=>e?.lessons??[]),A3=(0,Ue.Mz)(I1,e=>e.reduce((t,s)=>(s?.id&&(t[s.id]=s),t),{})),pa=(0,Ue.Mz)(Cs,e=>e?.lessonsOnly??[]),bw=(0,Ue.Mz)(pa,e=>e.reduce((t,s,o)=>(t[s.id]=o+1,t),{}));function R3(){return ae(e=>bw(e))}const E1=(0,Ue.Mz)(pa,e=>e.filter(t=>pr(t))),P3=(0,Ue.Mz)(E1,e=>e.length),yw=(0,Ue.Mz)(I1,e=>e.reduce((t,s)=>{const o=t[t.length-1];return I3(s)||o==null?t.push([s.id]):o.push(s.id),t},[])),Lw=(0,Ue.Mz)(pa,da,(e,t)=>e.find(s=>kl(s)&&mw(s)&&!t?.[s.id]?.isComplete)),Sw=(0,Ue.Mz)(pa,da,(e,t)=>e.find(s=>!kl(s)&&pw(s)&&!t?.[s.id]?.isComplete));function El(e){const t=(0,u.useMemo)(fw,[]);return ae(s=>t(e[0],s))}function j1(e){const t=(0,u.useMemo)(()=>ha(),[]),s=(0,u.useMemo)(()=>E3(),[]),o=Ll();return ae(r=>{const a=Cs(r),i=t(e,r),c=Oi(e,r),l=s(e,r)?.type!=null;return o!==Lo.RESTRICTED&&a?.markComplete&&!l&&i?.type!==_0.QUIZ&&!(Se&&c?.percentComplete===100)})}const jl=(e,t)=>t.findIndex(s=>s.id===e);function M3(){return(0,Ue.Mz)(e=>e,(e,t)=>pa(t),(e,t)=>{if(e==="progress-summary")return t[t.length-1];const o=jl(e,t)-1;return t[o]})}function O3(){return(0,Ue.Mz)(e=>e,(e,t)=>pa(t),(e,t)=>{const o=jl(e,t)+1;return t[o]})}function B3(e){return(0,Ue.Mz)((s,o)=>e(s,o),(s,o)=>E1(o),(s,o)=>jl(s?.id||"",o)+1)}function Tw(){return B3(O3())}function Nw(){return B3(M3())}function kw(e){const t=(0,u.useMemo)(()=>O3(),[]);return ae(s=>t(String(e),s))}function Iw(e){const t=(0,u.useMemo)(()=>Tw(),[]);return ae(s=>t(String(e),s))}function Ew(e){return ae(t=>{if(!e)return 0;const s=E1(t);return jl(String(e),s)+1})}function w1(){return ae(P3)}function wl(){return ae(e=>yw(e))}function jw(){const e=Il();return(0,Ue.Mz)(N3,e,f1,(t,s,o)=>{const r=!!s,a=o!=null;return t||!r&&!a})}function ww(){const e=(0,u.useMemo)(()=>jw(),[]);return ae(t=>e(t))}function Aw(){const e=ee(),t=jo();return(0,u.useMemo)(()=>{if(!e||!t||!e.lessonsOnly)return[];const s=x1({course:e,courseProgress:t});return e.lessonsOnly.filter(o=>{const{isRestricted:r}=T1({course:e,courseProgress:t,lesson:o,restrictingQuiz:s});return r}).map(o=>o.id)},[e,t])}const Rw=e=>e?.items?.reduce?.(hw,{map:{},currentNumber:0})?.map||{},Pw=e=>{const t=(0,u.useMemo)(()=>ha(),[]),s=ae(o=>t(e,o));return(0,u.useMemo)(()=>Rw(s),[s])},Mw=({blockId:e,lessonId:t})=>Pw(t)?.[e];function Ow(e){const s=ee()?.lessonsOnly??[],o=s.findIndex(a=>a.id===e);return(o>=0?s[o+1]:void 0)?.id??null}function Bw(e){const t=At(e),s=ee(),o=t?.settings,r=s?.lessonsOnly;return(0,u.useMemo)(()=>{const a=o?.skipToLessonId,i=a&&r?.some(c=>c.id===a)?a:void 0;return{continueType:o?.continueType??"",retryCount:Number(o?.retryCount??-1),skipLessonsIfPassed:o?.skipLessonsIfPassed??!1,skipToLessonId:i}},[o,r])}function Dw(){return ae(I1)}function Hw(e){const t=(0,u.useMemo)(()=>M3(),[]);return ae(s=>t(e,s))}function Fw(e){const t=(0,u.useMemo)(()=>Nw(),[]);return ae(s=>t(e,s))}function Vw(){const e=(0,u.useMemo)(()=>vw(),[]);return ae(e)}function D3(){const e=Vw();return vt(e?.title)}function zw(e){return e.courseLabels}function $w(){return ae(zw)}function _w(e,t){return t?.l10n?.localeLabelSets?.[e]?.labels||t?.courseLabels?.labels}function ue(){const{currentLocale:e}=Ze();return ae(t=>_w(e,t))}function Uw({isCourseComplete:e,percentCourseComplete:t}){const s=ue()??{},{courseResume:o,courseStart:r,processStartAgain:a}=s;return{courseCTALabel:e?a:t>0?o:r}}function A1(){const{pathname:e}=new URL(window.location.href);return e.split("/")[1]==="review"}function Gw(){const e=window.location.hash.slice(1),t=new URLSearchParams(e.split("?")[1]??"");return A1()&&!!t.get("locale")}const Ww=(0,u.lazy)(()=>f.e("webpack_container_remote_learn_distribution_frontend_learn_ai-learner-popout").then(f.t.bind(f,68789,23))),Kw=()=>{const{currentLocale:e}=Ze(),t=UE(ee()),s=rn(),o=Tl(),r=dw(),a=At(o),i=ue(),c=window,d=c?.growth?.getSubscription?.()?.id||t?.tenantId||void 0,l=c?.growth?.getUser?.()?.id||(t?`learner_${t.author}`:void 0),h=Aw(),m=async()=>{try{await mi()}catch{}},p=t?.aiTutorImage?.media?.image?.key??null,v=p?pg(p):null,[C,g]=(0,u.useState)(!1),x=`rise_ai_tutor_nudge_${l}`,L=(0,u.useCallback)(()=>{localStorage.setItem(x,"1")},[x]);(0,u.useEffect)(()=>{if(localStorage.getItem(x))return;let b=null;const S=setTimeout(()=>{const N=document.getElementById("page-wrap");if(!N)return;const k=()=>{if(localStorage.getItem(x)){N.removeEventListener("scroll",k);return}const{scrollTop:E,scrollHeight:I,clientHeight:P}=N,A=I-P,w=A>0?E/A:0;A<=0||w>=.75&&(localStorage.setItem(x,"1"),g(!0),N.removeEventListener("scroll",k))};N.addEventListener("scroll",k,{passive:!0}),b=()=>N.removeEventListener("scroll",k),k()},0);return()=>{clearTimeout(S),b?.()}},[l,x,o]);const T=r||a?.type==="quiz",y=T?i?.aiTutorDisabledWhileQuiz??"AI Tutor is disabled while a quiz is in progress.":void 0;return(0,n.jsx)(Ww,{aiTutorImageUrl:v,apiKey:t.aiLearnerCourseApiKey??null,course:t,currentLessonId:o,currentLocale:e,disabled:T,disabledReason:y,labels:i,onOpen:L,resetSession:m,restrictedLessonIds:h,rtl:s,scrollTriggered:C,subscriptionId:d,userId:l})},Qw=()=>{const e=ee();return!A1()&&!!e?.settings?.aiTutorEnabled?(0,n.jsx)(hj,{FallbackComponent:()=>null,children:(0,n.jsx)(u.Suspense,{fallback:null,children:(0,n.jsx)(Kw,{})})}):null},H3=(0,u.createContext)(null);function Zw({appType:e,children:t}){return(0,n.jsx)(H3.Provider,{value:e,children:t})}function Yw(){const e=(0,u.useContext)(H3);if(e==null)throw new Error("useAppType must be used within an AppTypeProvider");return e}function R1(){return Yw()==="author"}const P1=Object.assign((0,u.createContext)(void 0),{displayName:"BlockContext"});function M1({block:e,children:t}){const[s,o]=(0,u.useState)(e);return(0,u.useEffect)(()=>o(r=>e||r),[e]),(0,n.jsx)(P1.Provider,{value:s,children:(0,n.jsx)(F1,{...s?.settings,children:t})})}const o0e=P1.Consumer;function Tt(){return(0,u.useContext)(P1)}function Al(e){return function(s){const o=Tt();return(0,n.jsx)(e,{...s,block:o})}}const Xw={text:{backgroundType:"blockTextBackgroundType",backgroundColor:"blockTextBackgroundColor",backgroundColorContrast:"blockTextBackgroundColorContrast",paddingStart:"blockTextPaddingStart",paddingEnd:"blockTextPaddingEnd",bodyFontSize:"blockTextBodyFontSize",headingFontSize:"blockTextHeadingFontSize",subheadingFontSize:"blockTextSubheadingFontSize"},continue:{completionType:"blockContinueCompletionType",label:"blockContinueLabel",completeHint:"blockContinueCompleteHint"}},r0e={continue:{blockContinueCompletionType:"type",blockContinueLabel:"title",blockContinueCompleteHint:"completeHint"}};function Jw(e,t){if(!e||!t)return null;const s=Xw[e];if(!s)return null;const o=r=>r?t[r]:void 0;return{backgroundType:o(s.backgroundType),backgroundColor:o(s.backgroundColor),backgroundColorContrast:o(s.backgroundColorContrast),paddingStart:o(s.paddingStart),paddingEnd:o(s.paddingEnd),bodyFontSize:o(s.bodyFontSize),headingFontSize:o(s.headingFontSize),subheadingFontSize:o(s.subheadingFontSize),completionType:o(s.completionType),label:o(s.label),completeHint:o(s.completeHint)}}function Ao(){const e=Tt(),t=Re(),s=e?.family,o=t?.theme;return(0,u.useMemo)(()=>Jw(s,o),[s,o])}var qw=f(38413),eA=f.n(qw);const In=(e,t)=>{const s=Yr(t);return s==null?null:(0,O0.A)((0,M0.jh)(s,Yr("#000000"),e),{format:"hex",collapse:!1})};function tA(e){if(e==null)return 0;const t=d1(e);return t==null?0:(0,VT.J1)(t)}const ct=kn({NEAR_BLACK:null,DARK:null,MED:null,LIGHT:null}),fa=e=>{const t=tA(e);return t<=.01?ct.NEAR_BLACK:t<=.05?ct.DARK:t<=.35?ct.MED:ct.LIGHT},sA=e=>{switch(fa(e)){case ct.NEAR_BLACK:return sn(.1,e);case ct.DARK:return In(.4,e);case ct.MED:return In(.2,e);case ct.LIGHT:return sn(.3,e)}};var nA,oA,rA,O1,F3,Ro;const V3=2,a0e=(e,t,s)=>e??t??s,z3=(e,t,s,o)=>e??t??s??o,Fs=Rs()({WHITE:null,TRANSPARENT:null}),aA={markerColorContrast:pe.AUTO,paddingBottom:3,paddingLinked:!0,paddingTop:3,snippetColorContrast:pe.AUTO},iA={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 cA(e,t){return iA[e]?.includes(t)??!1}const lA={360:{storyline:"#fafafa"},impact:{c:"#ececec",d:"#f5f5f5"},"interactive-fullscreen":{process:"#f5f5f5",sorting:"#f5f5f5",timeline:"#f5f5f5"},quote:{d:"#f5f5f5"}};function B1(e,t){const s=lA[e]?.[t];return s==null?{}:{backgroundColor:s,backgroundType:q.COLOR}}const dA={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 i0e(e,t){return dA[e]?.includes(t)??!1?.1:.5}function uA(e){switch(e.backgroundType){case q.COLOR:return e.backgroundColor;case q.ACCENT:return e.courseColor;case q.TINT:return B0(e.courseColor);case q.LIGHT:return"#ffffff";case q.GRAY:return"#fafafa";case q.DARK:return"#303030";case q.BLACK:return"#000000"}}const hA={multimedia:{embed(e){return{cardMode:e.showBorder===!1?Fs.TRANSPARENT:Fs.WHITE}}}};function mA(e,t,s){return pA(e,t,s)}function pA(e,t,s){const o=B1(e,t);if(s.v==null||s.v<V3){s=fA(s);const d=o.backgroundColor,l=s.backgroundColor?.toLowerCase(),h=d!=null&&l===d.toLowerCase(),m=d==null&&l==="#ffffff";l&&(h||m)&&(s=eA()("backgroundColor",s))}const r=hA[e]?.[t]?.(s),a=s.backgroundColor&&s.backgroundType==null?{backgroundType:q.COLOR}:{};return[{accentColor:null},aA,r,s,a,{v:V3}].reduce((d,l)=>l==null?d:{...d,...w0()(v3,l)},{})}function fA(e){return{...e,backgroundType:null,cardMode:null,v:1}}const gA={text:["table"],divider:["divider","numbered divider","spacing divider"],knowledgeCheck:["draw from question bank"],multimedia:[]};function c0e(e,t){return!gA[e]?.includes(t)}const vA={};function l0e(e,t){return!vA[e]?.includes(t)}function CA(e){return e===rA.LIGHT?Ro.LIGHT:Ro.DARK}function xA(e,t){if(t===O1.AUTO){if(!e)return Ro.DARK;const s=nA(e);return oA(s)===O1.DARK?Ro.DARK:Ro.LIGHT}else return t===O1.LIGHT?Ro.LIGHT:Ro.DARK}function d0e(e,t,s,o,r){const a=e?.backgroundType;return e?.cardMode===Fs.TRANSPARENT?a===F3.IMAGE?CA(t?.overlayColor):o&&a!==F3.ACCENT?r:xA(s,e?.customBackgroundColorContrast):o?r:Ro.DARK}const bA={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 u0e(e,t){return bA[e]?.includes(t)??!1}const yA=new RegExp(/^#([a-f0-9]{6}|[a-f0-9]{3})$/,"i"),D1=(e,t)=>t!=null&&yA.test(t)?t:e;function Rt(e){const{contrast:t=pe.AUTO,backgroundColor:s="#fff"}=e,o=D1("#fff",s),r=Bs(o);return t===pe.DARK||t===pe.AUTO&&r===pe.DARK?ft.DARK:ft.LIGHT}const LA=e=>e.blockBackgroundType??e.familyBackgroundType??e.courseBackgroundType??e.blockTypeFallbackType??q.LIGHT,SA=e=>e.effectiveBackgroundType===q.COLOR?e.blockBackgroundColor||e.familyBackgroundColor||e.courseBackgroundColor||e.blockTypeFallbackColor||null:e.settingsBackgroundColor??null,TA=e=>e.blockCustomContrast??e.familyBackgroundColorContrast??e.courseBackgroundColorContrast??pe.AUTO,$3=e=>{const{family:t,variant:s,customBackgroundColorContrast:o}=e;return!o&&(t==="image"&&s!=="text aside"||t==="chart"||s==="sorting")},NA=e=>{const{backgroundType:t,backgroundColor:s,accentColor:o,customBackgroundColorContrast:r,accentContrast:a,family:i,variant:c}=e;if(!(t===q.ACCENT||t===q.COLOR))return null;const l=t===q.ACCENT?o:s;let h;return t===q.ACCENT?h=a:$3({family:i,variant:c,customBackgroundColorContrast:r})?h=Bs(s):h=r??pe.DARK,Rt({backgroundColor:l??void 0,contrast:h})},kA=e=>NA(e)===ft.LIGHT,IA=e=>{const t=e.blockBackgroundType!=null||e.familyBackgroundType!=null||e.courseBackgroundType!=null,s=e.blockCustomContrast!=null||e.familyBackgroundColorContrast!=null||e.courseBackgroundColorContrast!=null;return!t&&!s},EA=e=>{const{backgroundColor:t,family:s,variant:o,blockCustomContrast:r,familyBackgroundColorContrast:a,courseBackgroundColorContrast:i}=e,c=r??a??i??pe.AUTO,l=$3({family:s,variant:o,customBackgroundColorContrast:c})?Bs(t):c;return Rt({backgroundColor:t??void 0,contrast:l})};var jA=f(71239),ga=f.n(jA);const wA=e=>{const{effectiveBackgroundType:t,blockImage:s}=e;return t!==q.IMAGE?null:s??null},AA=e=>xg(e?.alt),RA=e=>{if(!e)return null;const{alpha:t,overlayColor:s=nt.DARK}=e,o=Ct(e),r=s===nt.LIGHT?F0:H0;return Sl({alpha:t,color:r,url:o})};function En(){const e=Re(),t=Ao(),s=Yt(),o=Tt(),r=o?B1(o.family,o.variant):{};return LA({blockBackgroundType:s?.backgroundType,familyBackgroundType:t?.backgroundType,courseBackgroundType:e?.theme?.blockBackgroundType,blockTypeFallbackType:r.backgroundType})}function PA(){return En().toLowerCase()}function Rl(){const e=Tt(),t=En(),s=e?.background,o=Te(s?.media)?.image;return wA({effectiveBackgroundType:t,blockImage:o})}function MA(){const e=Rl();return AA(e)}function OA(){const e=Rl();return RA(e)}function BA(){const e=Rl();return!!e&&e?.overlayColor===nt.LIGHT}function DA(){const e=Tt(),t=e?.family,s=e?.variant,o=cA(t,s),r=e?.settings?.cardMode??Fs.WHITE;return o?r.toLowerCase():null}function HA(){const e=xs(),t=e?fa(e):ct.LIGHT;return ga()(t.toLowerCase())}function FA(){const e=Tt(),t=Re(),s=Ao();return TA({blockCustomContrast:e?.settings?.customBackgroundColorContrast,familyBackgroundColorContrast:s?.backgroundColorContrast,courseBackgroundColorContrast:t?.theme?.blockBackgroundColorContrast})}function VA(){const e=Re(),t=Yt(),s=xs(),o=Tt(),r=En(),a=FA(),i=t.accentColor||e?.theme?.colorAccent;return kA({accentColor:i,accentContrast:e?.theme?.accentContrast,backgroundColor:s,backgroundType:r,customBackgroundColorContrast:a,family:o?.family,variant:o?.variant})}function zA(){const e=Tt(),t=Re(),s=xs(),o=Ao();return EA({backgroundColor:s,blockCustomContrast:e?.settings?.customBackgroundColorContrast,courseBackgroundColorContrast:t?.theme?.blockBackgroundColorContrast,family:e?.family,familyBackgroundColorContrast:o?.backgroundColorContrast,variant:e?.variant})}function $A(){const e=Tt(),t=Re(),s=Ao();return IA({blockBackgroundType:e?.settings?.backgroundType,familyBackgroundType:s?.backgroundType,courseBackgroundType:t?.theme?.blockBackgroundType,blockCustomContrast:e?.settings?.customBackgroundColorContrast,familyBackgroundColorContrast:s?.backgroundColorContrast,courseBackgroundColorContrast:t?.theme?.blockBackgroundColorContrast})}function _A(){const e=PA(),t=HA(),s=DA(),o=VA(),r=BA(),a=$A(),i=xs(),c=OA(),d=MA();return{backgroundColor:i,backgroundImageAlt:d,backgroundImageCss:c,backgroundTypeLowercase:e,cardMode:s,colorRange:t,isContrastLight:o,isLegacyBackground:a,isOverlayLight:r}}var _3=f(80588);const U3=Object.assign((0,u.createContext)({}),{displayName:"BlockSettingsContext"});function Yt(){return(0,u.useContext)(U3)}const UA="settings";function H1(e){return t=>{const s=_3.forwardRef((o,r)=>{const a=Yt(),i={...o,[e??UA]:a};return(0,n.jsx)(t,{...i,ref:r})});return s.displayName=`withBlockSettings(${t.displayName||t.name})`,s}}function xs(){const e=Re(),t=Yt(),s=Ao(),o=En(),r=Tt();if(t==null)return null;const a=r?B1(r.family,r.variant):{},i=SA({effectiveBackgroundType:o,blockBackgroundColor:t.backgroundColor,familyBackgroundColor:s?.backgroundColor,courseBackgroundColor:e?.theme?.blockBackgroundColor,blockTypeFallbackColor:a.backgroundColor,settingsBackgroundColor:t.backgroundColor}),c={...t,backgroundType:o,backgroundColor:i};return uA(c)}const GA="backgroundColor";function WA(e){return t=>{const s=_3.forwardRef((o,r)=>{const a=xs(),i={...o,[e??GA]:a};return(0,n.jsx)(t,{ref:r,...i})});return s.displayName=`withBackgroundColor(${t.displayName||t.name})`,s}}function F1({children:e,...t}){const s=Tt(),o=Yt(),r=Ii(),a=(0,u.useMemo)(()=>{const i=s==null?t:mA(s.family,s.variant,t);return{courseColor:r,...o,...i}},[s,t,r,o]);return(0,n.jsx)(U3.Provider,{value:a,children:e})}const eo={get isInstantLink(){return!!window.InstantLinks?.publicId}};var KA=f(50172);const _=(0,KA.setup)({el:"__",mod:"--",modValue:"-"}),QA=({value:e,fallback:t})=>{const s=Te(e),o=wt(e);return t?(0,n.jsx)("span",{"data-l10n-id":o,children:s||t}):(0,n.jsx)("span",{"data-l10n-id":o,children:s})};function ZA({value:e,children:t}){const s=Te(e);return t(s)}const lt=QA,V1=_("lesson-navigation-dropdown"),G3=({lessonTitle:e})=>(0,n.jsx)("li",{children:(0,n.jsxs)("div",{className:V1("option",{"ai-loading":!0}),children:[(0,n.jsx)(lt,{value:e||"Generating lesson..."}),(0,n.jsx)("div",{className:V1("ai-loading-progress"),children:(0,n.jsx)("div",{className:V1("spinner")})})]})});var W3=f(84793),YA=f(6022),XA=f(19794),JA=f(36790),qA=f(67412),eR=f(68410),tR=f(5085),sR=f(37773),nR=f(34428),oR=f(89200),rR=f(10490),aR=f(67204),iR=f(14830),cR=f(51371),lR=f(28591),dR=f(87467),uR=f(97331),hR=f(13102),mR=f(77142),pR=f(44727),fR=f(67023),gR=f(79624),vR=f(74586),CR=f(73545),xR=f(72159),bR=f(7384),yR=f(6306),LR=f(48202),SR=f(44859),TR=f(3209),NR=f(25992),kR=f(42298),IR=f(59895),ER=f(19704),jR=f(13020),wR=f(52075),AR=f(83285),RR=f(76787),PR=f(18646),MR=f(38474),OR=f(14477),BR=f(8442),DR=f(19300),HR=f(58551),FR=f(3112),VR=f(94490),zR=f(10567),$R=f(90648),_R=f(77257),UR=f(52210),GR=f(40029),WR=f(18148),KR=f(54062),QR=f(12936),ZR=f(47540),YR=f(15501),XR=f(11129),JR=f(82478),qR=f(8685),eP=f(78194),tP=f(41221),sP=f(63842),nP=f(62566),oP=f(13234),rP=f(42036),aP=f(72051),iP=f(93057),cP=f(23119),lP=f(11358),dP=f(45890),uP=f(62208),hP=f(18819),mP=f(14097),pP=f(71431),fP=f(52736),gP=f(7490),vP=f(30438),CP=f(6899),xP=f(26529),bP=f(79872),yP=f(31511),LP=f(17783),SP=f(89072),TP=f(43436),NP=f(87565),kP=f(75643),IP=f(26594),EP=f(30405),jP=f(74686),wP=f(79906),AP=f(85248),RP=f(48587),K3=f(91485),PP=f(5923),MP=f(58882),OP=f(26642),BP=f(65679),DP=f(6094),HP=f(59857),FP=f(12124),VP=f(2244),zP=f(3784),$P=f(62909),_P=f(50344),UP=f(75991),GP=f(91201),WP=f(47571),KP=f(18796),QP=f(89023),ZP=f(88946),YP=f(8525),XP=f(36079),JP=f(7486),qP=f(20557),eM=f(14784),tM=f(75588),sM=f(31314),nM=f(81133),oM=f(86961),rM=f(95672),aM=f(43965),iM=f(15465),cM=f(77853),lM=f(75044),dM=f(62394),uM=f(55924),hM=f(60674),mM=f(33405),pM=f(77852),fM=f(33746),gM=f(41262),vM=f(52058),CM=f(87090),xM=f(99784),bM=f(22635),yM=f(71609),LM=f(64426),SM=f(50040),TM=f(64003),NM=f(71859),kM=f(63407),IM=f(80620),EM=f(45263),jM=f(9263),wM=f(41126),AM=f(74285),RM=f(77093),PM=f(66274),Q3=f(90832),MM=f(77190),OM=f(93867),BM=f(28081),DM=f(15297),HM=f(99941),FM=f(86171),VM=f(36734),zM=f(76392),$M=f(99476),_M=f(38933),UM=f(61188),GM=f(9713),WM=f(19996),KM=f(36476),QM=f(99651),ZM=f(89873),YM=f(12425),XM=f(49965),JM=f(6783),qM=f(34444),eO=f(78128),tO=f(68433),sO=f(24726),nO=f(65734),oO=f(5312),rO=f(14635),aO=f(62428),iO=f(84096),cO=f(55260),lO=f(33919),dO=f(4398),uO=f(39475),hO=f(7057);const mO={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"]},pO={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"]]},fO={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"]},gO={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"]},vO={"alert-circle-solid":tP.lE,"alert-circle":K3.lE,"alert-diamond":QP.xG,"arrow-down-from-line":cP.xZ,"arrow-down-to-bracket":lP.a_,"arrow-down-to-line":dP.yH,"arrow-down":iP.B0,"arrow-left":uP.Ce,"arrow-right-from-line":mP.Pe,"arrow-right":hP.dm,"arrow-rotate-left-light":lR.V3,"arrow-rotate-left":pP.V3,"arrow-up-from-bracket":gP.MN,"arrow-up-from-line":vP.s8,"arrow-up-right-from-square":CP.faArrowUpRightFromSquare,"arrow-up":fP.IN,"arrows-two-from-center":YA.A1,"arrows-two-to-center":XA.hL,"badge-check":IR.Zs,"bar-chart":xP.X8,bars:ER.ck,"bars-regular":bP.ck,"block-selector":nP.iH,"book-open":LP.Re,"book-sparkles":SP.E4,book:yP.LB,"browser-light":qA.c9,browser:TP.c9,building:JA.UR,"cards-blank":NP.Xm,"caret-down":wR.xB,"caret-right":AR.fU,"chart-column":kR.q9,"check-regular":rP.e6,check:jR.e6,"chevron-down-solid":RR.Jt,"chevron-down":kP.Jt,"chevron-left-light":eR.Wz,"chevron-left-solid":MR.Wz,"chevron-left":IP.Wz,"chevron-right-light":tR.Xk,"chevron-right-solid":OR.Xk,"chevron-right":EP.Xk,"chevron-up-solid":PR.w2,"chevron-up":jP.w2,"circle-arrow-right":HR.Ni,"circle-arrow-up":DR.yi,"circle-check-regular":AP.QR,"circle-check-solid":FR.QR,"circle-check":gR.QR,"circle-dot":RP.pp,"circle-half-stroke":PP.B2,"circle-exclamation":K3.lE,"circle-info":MP.faCircleInfo,"circle-notch":DP.s4,"circle-plus-duotone":vR.q_,"circle-plus-regular":OP.q_,"circle-plus":VR.q_,"circle-small-solid":zR.ZP,"circle-small":BP.ZP,"circle-solid":BR.GE,"circle-x":$R.Ub,"circle-xmark":HP.bn,"circle-xmark-solid":_R.bn,"circle-xmark-duotone":CR.bn,circle:wP.GE,"clipboard-list-check":FP.S3,"clock-rotate-left":VP.Yj,clone:$P.$3,close:_P.yY,"closed-captioning":zP.UM,"code-fork-duotone":xR.zt,"code-fork-regular":UP.zt,code:uO.jT,comment:GP.DN,copy:WP.jP,crop:KP.K1,"edit-regular":ZP.MT,"ellipsis-regular":YP.Dw,"ellipsis-vertical-regular":XP.nx,envelope:JP.y_,"external-link":qP.vM,"eye-slash":nR.k6,eye:sR.pS,"face-frown":dR.Ho,"face-frown-regular":uR.Ho,"face-laugh":hR.ou,"face-laugh-regular":mR.ou,"face-smile":pR.H8,"face-smile-regular":fR.H8,"file-audio":tM.qe,"file-duotone":bR.A4,"file-export-light":rR.o1,"file-export":sM.o1,"file-import":nM.$M,"file-lines":oM.bL,"file-pdf-light":oR.O_,"file-pdf":rM.O_,file:eM.A4,"folder-image":aM.JK,"folder-open":yR.Uj,gear:iM.BH,globe:cM.Bw,"graduation-cap":lM.eS,"grid-2":dM.Qy,"grid-solid":UR.Qy,"grip-dots-vertical":uM.IM,"hand-pointer":hM.A8,"image-landscape":pM.oC,"image-portrait":fM.E4,image:mM.jb,"photo-film":gM._Z,"info-circle":vM.iW,"layers-solid":eP.qI,"link-simple-slash":bM.r2,"link-simple":xM.wi,"link-slash":yM.TH,link:CM.CQ,list:LM.IT,"list-check":SM.UN,"location-dot":iR.gK,"lock-keyhole-light":aR.Yp,lock:GR.DW,"magnifying-glass-plus":NM.bM,"magnifying-glass":TM.$U,megaphone:sP.OR,"message-quote":kM.ps,"minus-solid":WR.EZ,minus:IM.EZ,paintbrush:LR.ue,palette:EM.fy,paste:jM.R9,pause:wM.G1,"pause-solid":KR.G1,"pen-line":AM.pg,"pen-nib":PM.us,"pen-to-square":RM.faPenToSquare,"pencil-duotone":SR.zL,"pencil-regular":aP.zL,"pencil-thin":hO.zL,pencil:cR.zL,"play-regular":Q3.ij,"play-solid":QR.ij,play:Q3.ij,"plus-regular":MM.QL,plus:OM.TS,"quote-left":BM.$7,"rectangle-history-circle-plus":HM.Hu,"rectangle-regular":DM.vt,"rectangle-vertical-history":FM.Lt,rocket:VM.KM,"ruler-horizontal":zM.Si,"ruler-triangle":$M.cb,"sliders-simple":ZR.AD,"sparkles-solid":YR.p7,sparkles:_M.p7,"spinner-third":UM.sq,"square-arrow-down":WM.Y1,"square-arrow-right":KM.mT,"square-arrow-up-right":QM.fL,"square-check-solid":XR.Dn,"square-check":ZM.Dn,"square-duo":TR.Nf,"square-info":YM.Lg,"square-plus":XM.Vd,square:GM.Nf,"stopwatch-regular":JM.nw,table:qM.w9,tag:eO._2,text:tO.jw,"trash-can":nO.sj,trash:sO.yL,"user-group":JR.US,"users-regular":oO.gd,users:NR.gd,video:rO.n2,volume:aO.eF,volumeHigh:iO.AI,volumeLow:cO.gN,volumeXmark:lO.H_,"wand-magic-sparkles":dO.Ys,"waveform-lines":oP.Wx,xmark:qR.Jy},CO={"audio-plus":fO,"clone-plus":gO,reach:pO,"rise-com":mO},ie=(0,u.memo)(function({"aria-label":t,className:s,classNameIcon:o,color:r,"data-testid":a,name:i,rotation:c,spin:d,style:l,styleIcon:h}){return(0,n.jsx)("span",{className:s,"data-testid":a,style:{color:r,...l},children:(0,n.jsx)(W3.g,{"aria-label":t,className:o,icon:vO[i],rotation:c,spin:d,style:h})})}),m0e=(0,u.memo)(function({className:t,classNameIcon:s,color:o,name:r,style:a,styleIcon:i}){return(0,n.jsx)("span",{className:t,style:{color:o,...a},children:(0,n.jsx)(W3.g,{className:s,icon:CO[r],style:i})})}),Z3=(0,u.createContext)(!1);function Di({children:e,inert:t}){const s=z1();return(0,n.jsx)(Z3.Provider,{value:s||t,children:e})}function z1(){return(0,u.useContext)(Z3)}function Hi(e){const{to:t,children:s}=e,o=(0,Ce.zy)(),r=(0,u.useMemo)(()=>g0(t,o),[o,t]);return(0,n.jsx)(Ce.k2,{...e,to:r,children:s})}var Y3=f(80588);const Fi=_("lesson-navigation-dropdown"),xO=({disabled:e,index:t,option:s,selectedLessonId:o,onSelect:r,getLessonPath:a})=>{const[i,c]=Y3.useState(!0),d=`lesson-navigation-dropdown-section-${t}`,l=Y3.useCallback(m=>{m.stopPropagation(),m.preventDefault(),c(p=>!p)},[]),h=Fi("group-header-icon",{collapsed:!i});return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("button",{"aria-controls":d,"aria-expanded":i,className:Fi("group-header"),onClick:l,type:"button",children:[(0,n.jsx)(ie,{className:h,name:"caret-down"}),(0,n.jsx)("span",{className:Fi("group-header-text"),children:(0,n.jsx)(lt,{value:s.label})})]}),(0,n.jsx)(Di,{inert:!i,children:(0,n.jsx)("ol",{"aria-hidden":i?void 0:!0,className:Fi("group-list",{collapsed:!i}),id:d,children:s.options?.map((m,p)=>{const v=String(m.value),C=e||m.disabled;return m.lesson?.settings?.isGeneratingAIContent?(0,n.jsx)(G3,{lessonTitle:m.label},`${v}-${p}`):(0,n.jsx)("li",{children:(0,n.jsx)(Hi,{className:Fi("option",{disabled:C,selected:m.value===o}),onClick:C?void 0:()=>r(v),to:C?void 0:a(v),children:(0,n.jsx)(lt,{value:m.label})})},`${v}-${p}`)})})})]})};var Me=f(78144);const X3={course:({courseId:e})=>`/authoring/${e}`,courseLocales:({courseId:e})=>`/manage/locales/${e}`,dashboard:"/manage/all-content",lesson:({courseId:e,lessonId:t})=>`/authoring/${e}/lesson/${t}`},bO=(e,t="section")=>e.reduce((s,o)=>(o.type===t?s.grouped.push([o]):s.grouped.length===0||s.grouped[s.grouped.length-1][0].type!==t?s.ungrouped.push(o):s.grouped[s.grouped.length-1].push(o),s),{grouped:[],ungrouped:[]}),yO=(e,t={})=>{if(!Array.isArray(e))return{options:[],hasGrouping:!1};const{sectionType:s}=t;if(!e.some(l=>l.type===s))return{options:e.filter(h=>h&&h.id).map(h=>({label:h.title||"Untitled Lesson",type:h.type,value:String(h.id),disabled:h.type===null,lesson:h})),hasGrouping:!1};const{grouped:r,ungrouped:a}=bO(e,s),i=r.map((l,h)=>{const[m,...p]=l,v=m&&"title"in m?m.title:void 0;return{label:v||"Untitled Section",type:m?.type||null,value:v||`section-${h}`,options:p.filter(C=>C&&C.id).map(C=>({label:C.title||"Untitled Lesson",type:C.type,value:String(C.id),disabled:C.type===null,lesson:C}))}}).filter(l=>l.options&&l.options.length>0);return{options:[...a.filter(l=>l&&l.id).map(l=>({label:l.title||"Untitled Lesson",type:l.type,value:String(l.id),disabled:l.type===null,lesson:l})),...i],hasGrouping:!0}};function LO(e="course-overview"){const t=Re(),s=_E()??{},o=R1(),r=t.id,a=s,i=t.lessons||Object.keys(s),c=X3,d=yO,[l,h]=(0,u.useState)(e),m=(0,u.useMemo)(()=>Array.isArray(a)?a:i.map(y=>a[y]).filter(Boolean),[i,a]),{options:p,hasGrouping:v}=(0,u.useMemo)(()=>d(m,{sectionType:"section"}),[m,d]),C=(0,u.useMemo)(()=>{for(const y of p){if(y.value===l)return y.label;if(y.options){for(const b of y.options)if(b.value===l)return b.label}}return l},[p,l]),g=Te(C)??"Untitled Lesson",x=(0,u.useMemo)(()=>{for(const y of p)if(y.value===l)return y.type??null;return null},[p,l]),L=(0,u.useCallback)(y=>{h(y),y==="course-stack"&&(window.location.href=c.courseLocales({courseId:r}))},[c,r]),T=(0,u.useCallback)(y=>{switch(y){case"course-overview":return o?c.course({courseId:r}):"/";case"course-stack":return c.courseLocales({courseId:r});default:return o?c.lesson({courseId:r,lessonId:y}):`/lessons/${y}`}},[r,o,c]);return{options:p,hasGrouping:v,selectedLessonId:l,selectedLessonType:x,selectedOptionLabel:g,onLessonChange:L,getLessonPath:T}}var to=f(80588);const bs=_("lesson-navigation-dropdown"),SO=({disabled:e,options:t,selectedLessonId:s,handleOnSelect:o,getLessonPath:r})=>{const a=Re(),i=(0,jt.HX)(a);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:bs("course-nav-links"),children:[i&&(0,n.jsxs)(Hi,{className:bs("option",{selected:s==="course-stack","with-icon":!0}),onClick:()=>o("course-stack"),to:r("course-stack"),children:[(0,n.jsx)(Me.ArcIcon,{icon:"fa-regular fa-globe"}),(0,n.jsx)(lt,{value:"Course Stack"})]}),(0,n.jsxs)(Hi,{className:bs("option",{disabled:e,selected:s==="course-overview","with-icon":!0}),onClick:()=>o("course-overview"),to:r("course-overview"),children:[(0,n.jsx)(Me.ArcIcon,{className:bs("book-icon"),icon:"fa-regular fa-book-open"}),(0,n.jsx)(lt,{value:"Course Overview"})]})]}),(0,n.jsx)("div",{"aria-labelledby":"lesson-navigation-title",className:bs("list-header"),role:"group",children:(0,n.jsx)("div",{id:"lesson-navigation-title",children:(0,n.jsx)(lt,{value:"Lessons"})})}),(0,n.jsx)("ol",{className:bs("list"),children:t.map((c,d)=>{if(c.options&&c.options.length>0)return(0,n.jsx)("li",{children:(0,n.jsx)(xO,{disabled:e,getLessonPath:r,index:d,onSelect:o,option:c,selectedLessonId:String(s)})},`${String(c.value)}-${d}`);{const l=String(c.value),h=e||c.disabled;return c.lesson?.settings?.isGeneratingAIContent?(0,n.jsx)(G3,{lessonTitle:String(c.label)},l):(0,n.jsx)("li",{children:(0,n.jsx)(Hi,{className:bs("option",{disabled:h,selected:c.value===s}),onClick:h?void 0:()=>o(l),to:h?void 0:r(l),children:(0,n.jsx)(lt,{value:c.label})})},l)}})})]})},TO=({badge:e,currentLessonId:t,sendTrackingEvent:s})=>{const[o,r]=to.useState(!1),a=to.useRef(!1),i=to.useRef(null),{onLessonChange:c,options:d,selectedLessonId:l,selectedOptionLabel:h,getLessonPath:m}=LO(t),p=to.useCallback(()=>{setTimeout(()=>{const b=document.querySelector("[popover]#lesson-navigation-dropdown");if(!b)return;const S=b.querySelector(`.${bs("option--selected")}`);S&&(S.scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"}),S.focus())},100)},[]),v=to.useCallback(b=>{if(!o)return;const S=document.querySelector("[popover]#lesson-navigation-dropdown");if(!S)return;const N=S.querySelectorAll(`.${bs("option")}, .${bs("group-header")}`);if(N.length===0)return;const k=document.activeElement,E=Array.from(N).indexOf(k);let I=E;switch(b.key){case"ArrowDown":b.preventDefault(),I=E===-1?0:(E+1)%N.length;break;case"ArrowUp":b.preventDefault(),I=E===-1?N.length-1:(E-1+N.length)%N.length;break;case"Home":b.preventDefault(),I=0;break;case"End":b.preventDefault(),I=N.length-1;break;case"Escape":b.preventDefault(),Me.ArcPopover.handlePopover("lesson-navigation-dropdown","hide");return;case"Enter":case" ":case"Space":b.preventDefault(),E>=0&&N[E]?.click();return;default:return}N[I]?.focus(),N[I]?.scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"})},[o]);to.useEffect(()=>{if(o)return document.addEventListener("keydown",v),()=>document.removeEventListener("keydown",v)},[o,v]);const C=to.useCallback(b=>{c(b),Me.ArcPopover.handlePopover("lesson-navigation-dropdown","hide")},[c]),g=to.useCallback(b=>{o||(b.currentTarget.style.borderColor="var(--arc-color-border-stark)")},[o]),x=to.useCallback(b=>{b.currentTarget.style.borderColor="transparent"},[]),L={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"},T={fontSize:"1.1rem",fontWeight:"var(--arc-font-weight-600)",marginBlockStart:"var(--arc-space-0-25)"},y=e?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:bs("badge"),children:e}),h]}):h;return(0,n.jsx)("nav",{children:(0,n.jsx)(Me.ArcPopover,{anchorAt:"bottom-start",anchorProps:{className:bs("anchor"),iconEnd:(0,n.jsx)("i",{className:"fa-regular fa-chevron-down",style:T}),layout:"hug",text:y,onMouseEnter:g,onMouseLeave:x,style:L,variant:"tertiary",ref:i},"aria-labelledby":"lesson-navigation-title",className:bs(),hasTail:!1,id:"lesson-navigation-dropdown",onToggle:b=>{const S=b.newState==="open";if(r(S),S)s();else{a.current=!1;return}a.current||(p(),a.current=!0)},variant:"common",children:(0,n.jsx)(SO,{disabled:!1,getLessonPath:m,handleOnSelect:C,options:d,selectedLessonId:String(l)})})})},vr=_("app-header"),NO=({children:e,className:t="",currentLessonId:s,isArcButtonGroup:o=!1,isAIAssistantEnabled:r=!1,isBlockActionsSidebarOpen:a=!1,isMicrolearning:i=!1,badge:c,localesDropdown:d=null,menuButton:l=null,sendLessonNavDropdownTrackingEvent:h=()=>{},snapshotDropdown:m=null,versionDropdown:p=null,downloadDropdown:v=null,title:C})=>{const g=vr({v2:r}).mix(t),x=!!(m||d||p||v),T=s!=null&&s!=="course-overview"&&!Se&&!i&&!a;return(0,n.jsxs)("div",{className:g,dir:"ltr",id:"app-header",children:[l,(0,n.jsxs)("div",{className:vr("title-dropdowns"),children:[C&&!T&&(0,n.jsxs)("div",{className:vr("title"),"data-testid":"AppHeaderTitle",children:[c&&(0,n.jsx)("div",{className:vr("badge"),children:c}),(0,n.jsx)("span",{className:vr("title-text"),children:(0,n.jsx)(lt,{value:C})})]}),T&&(0,n.jsx)(TO,{badge:c,currentLessonId:s,sendTrackingEvent:h}),x&&(0,n.jsxs)("div",{className:vr("dropdowns"),children:[m,d,p,v]})]}),(0,n.jsx)("div",{className:vr("btn-group",{arc:o}),"data-testid":"AppHeaderButtonGroup",children:e})]})};var kO=f(98929),ge=f.n(kO);const IO=e=>G()("button",{[e.className]:!Xe()(e.className),"button--default":e.mode===void 0,"button--extraPadding":e.extraPadding,"button--sidebar brand--ui":e.sidebar,"button--header":e.header,"button--header-done":e.headerDone,"button--outline":e.outline,"button--outline button--outline-transparent":e.outlineTransparent,"button--condensed":e.condensed,"button--inverted":e.inverted,"button--logo":e.logo,"button--inline":e.mode==="inline","button--next":e.next,"button--disabled":e.disabled,"button--controls":e.controls,"button--controls-enhanced":e.controlsEnhanced,"brand--ui":e.accent,"brand--background brand--border":e.branded}),EO=({icon:e})=>e?(0,n.jsx)("i",{className:`button__icon icon-${e}`}):null,jO=({onlyIcon:e,children:t})=>u.Children.map(t,s=>e&&s.type===void 0?null:s),J3=u.memo(({accent:e,ariaControls:t,ariaExpanded:s,ariaHidden:o,ariaLabel:r,ariaPressed:a,branded:i,className:c,children:d,condensed:l,controls:h,controlsEnhanced:m,disabled:p,el:v,extraPadding:C,header:g,headerDone:x,icon:L,inverted:T,mode:y,next:b,onClick:S=Function.prototype,onlyIcon:N,onMouseDown:k=Function.prototype,outline:E,outlineTransparent:I,sidebar:P,tabIndex:A,type:w,...O})=>{const j=v||"button";return j==="button"&&!w&&(w="button"),(0,n.jsxs)(j,{"aria-controls":t,"aria-expanded":s,"aria-hidden":o,"aria-label":r,"aria-pressed":a,className:IO({accent:e,branded:i,className:c,condensed:l,controls:h,controlsEnhanced:m,disabled:p,extraPadding:C,header:g,headerDone:x,inverted:T,mode:y,next:b,outline:E,outlineTransparent:I,sidebar:P}),disabled:p,onClick:S,onMouseDown:k,tabIndex:A,type:w,...O,children:[(0,n.jsx)(EO,{icon:L}),jO({onlyIcon:N,children:d})]})});J3.displayName="Button";const wO=J3;function $t(e){return(0,n.jsx)("svg",{"aria-hidden":"true",fill:"currentColor",focusable:"false",xmlns:"http://www.w3.org/2000/svg",...e})}var q3,AO;const g0e=e=>q3(AO,{...e,viewBox:"0 0 8 8",children:q3("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 "})}),v0e=null;var $1,RO,PO;const C0e=e=>$1(PO,{viewBox:"0 0 10 10",...e,children:RO("g",{fillRule:"evenodd",children:[$1("path",{d:"M0 4.107h10v2H0z"}),$1("path",{d:"M4 0h2v10H4z"})]})}),x0e=null;var _1,MO;const b0e=({width:e="18",height:t="18",className:s})=>_1("svg",{"aria-hidden":"true",className:MO("i i-alert",s),focusable:"false",height:t,viewBox:"0 0 18 18",width:e,children:_1("g",{fill:"none",fillRule:"evenodd",stroke:"#DE1D1D",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",children:_1("path",{d:"M9 1a8 8 0 1 1 0 16A8 8 0 0 1 9 1zM9 5.364V9.53M9 11.91v.726"})})}),y0e=null;function OO(e){return(0,n.jsxs)($t,{viewBox:"0 0 16 12",...e,children:[(0,n.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,n.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,n.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 BO,Pl;const L0e=({width:e="20",height:t="20"})=>BO("svg",{"aria-hidden":"true",fill:"none",focusable:"false",height:t,viewBox:"0 0 20 20",width:e,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"})]}),S0e=null;var e6,DO;const T0e=({width:e="15",height:t="15",className:s})=>e6("svg",{"aria-hidden":"true",className:DO("i i-all-blocks",s),focusable:"false",height:t,viewBox:"0 0 15 15",width:e,children:e6("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"})}),N0e=null;var t6,HO;const k0e=e=>t6(HO,{...e,viewBox:"0 0 15 15",children:t6("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"})}),I0e=null;var FO,s6,VO;const E0e=({width:e="24",height:t="16",leftMovement:s="0",className:o})=>FO("svg",{"aria-hidden":"true",className:VO("i i-alt",o),focusable:"false",height:t,style:{marginLeft:s},viewBox:"0 0 24 16",width:e,children:[s6("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"}),s6("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"})]}),j0e=null;var zO,n6;const w0e=({className:e,width:t="20",height:s="20",focusable:o="false"})=>zO("svg",{className:e,fill:"none",focusable:o,height:s,viewBox:"0 0 20 20",width:t,xmlns:"http://www.w3.org/2000/svg",children:[n6("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"}),n6("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"})]}),A0e=null;var $O,U1,_O;const R0e=({title:e="Export",desc:t="An arrow bending itself to the right",width:s="16",height:o="13",className:r,focusable:a="false"})=>$O("svg",{className:_O("i",r),focusable:a,height:o,viewBox:"0 0 16 13",width:s,children:[U1("title",{children:e}),U1("desc",{children:t}),U1("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"})]}),P0e=null;var o6,UO;function M0e(e){return o6(UO,{viewBox:"0 0 384 512",...e,children:o6("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 GO,r6,WO;function O0e(e){return GO(WO,{viewBox:"0 0 22 22",...e,children:[r6("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"}),r6("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 KO,G1,QO;const B0e=({title:e="Export",desc:t="An arrow pointing right",width:s="16",height:o="8",className:r,focusable:a="false",decorative:i})=>KO("svg",{"aria-hidden":i?"true":"false",className:QO("i",r),focusable:a,height:o,viewBox:"0 0 16 8",width:s,children:[G1("title",{children:e}),G1("desc",{children:t}),G1("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"})]}),D0e=null;var a6,ZO;function H0e(e){return a6(ZO,{viewBox:"0 0 384 512",...e,children:a6("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 YO,i6,XO;function F0e(e){return YO(XO,{viewBox:"0 0 22 22",...e,children:[i6("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"}),i6("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 c6,JO;const V0e=e=>c6(JO,{viewBox:"0 0 10 12",...e,children:c6("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"})}),z0e=null;var l6,Vi,qO;const $0e=({title:e="Background Image",desc:t="Background Image",width:s="18",height:o="18",className:r,focusable:a="false"})=>l6("svg",{className:qO("i i-background-image",r),focusable:a,height:o,viewBox:"0 0 18 18",width:s,children:[Vi("title",{children:e}),Vi("desc",{children:t}),l6("g",{children:[" ",Vi("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"})," ",Vi("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"})," ",Vi("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"})," "]})]}),_0e=null;var eB,W1,tB;const U0e=({title:e="Bank",desc:t="A building with four columns",width:s="16",height:o="16",className:r,focusable:a="false"})=>eB("svg",{className:tB("i i-bank",r),focusable:a,height:o,viewBox:"0 0 16 16",width:s,children:[W1("title",{children:e}),W1("desc",{children:t}),W1("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"})]}),G0e=null;var sB,d6,nB;function W0e(e){return sB(nB,{fill:"none",viewBox:"0 0 14 14",...e,children:[d6("rect",{height:"8.3",stroke:"currentColor",strokeWidth:"1.5",width:"8.3",x:"0.75",y:"0.75"}),d6("rect",{height:"8.3",rx:"1.35",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.5",width:"8.3",x:"4.9502",y:"4.9502"})]})}var oB,zi,rB;function K0e(e){return oB(rB,{viewBox:"0 0 14 15",...e,children:[zi("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"}),zi("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"}),zi("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"}),zi("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"}),zi("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 aB,Ml,iB;const Q0e=({title:e="All Authors",desc:t="A circle with the outline of the head and shoulders of two people inside",width:s="30",height:o="30",className:r,focusable:a="false"})=>aB("svg",{className:iB("i i-blockTemplateAllAuthors",r),focusable:a,height:o,viewBox:"0 0 30 30",width:s,children:[Ml("title",{children:e}),Ml("desc",{children:t}),Ml("circle",{cx:"14.963",cy:"14.963",fill:"#E9E9E9",r:"14.963"}),Ml("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"})]}),Z0e=null;var Ol,ln,cB;const Y0e=({title:e="Check Mark",desc:t="A circle with a check mark inside",width:s="112",height:o="112",className:r,focusable:a="false"})=>Ol("svg",{className:cB("i i-blockTemplateCheckMark",r),focusable:a,height:o,viewBox:"0 0 112 112",width:s,children:[ln("title",{children:e}),ln("desc",{children:t}),ln("defs",{children:Ol("filter",{filterUnits:"objectBoundingBox",height:"186.1%",id:"a",width:"186.1%",x:"-43.1%",y:"-40.3%",children:[ln("feOffset",{dy:"2",in:"SourceAlpha",result:"shadowOffsetOuter1"}),ln("feGaussianBlur",{in:"shadowOffsetOuter1",result:"shadowBlurOuter1",stdDeviation:"10"}),ln("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"}),Ol("feMerge",{children:[ln("feMergeNode",{in:"shadowMatrixOuter1"}),ln("feMergeNode",{in:"SourceGraphic"})]})]})}),Ol("g",{fill:"none",fillRule:"evenodd",filter:"url(#a)",transform:"translate(20 18)",children:[ln("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"}),ln("circle",{className:"inner",cx:"36",cy:"36",r:"30"}),ln("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"})]})]}),X0e=null;var u6,Bl,lB;const J0e=({title:e="Folder Outline",desc:t="Outline of a folder",width:s="42",height:o="42",className:r,focusable:a="false"})=>u6("svg",{className:lB("i i-blockTemplateFolder",r),focusable:a,height:o,viewBox:"0 0 42 42",width:s,children:[Bl("title",{children:e}),Bl("desc",{children:t}),u6("g",{fill:"#ADAEAF",fillRule:"nonzero",stroke:"#ADAEAF",strokeWidth:".3",children:[Bl("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"}),Bl("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"})]})]}),q0e=null,dB=({width:e="17",height:t="15",title:s="Book",desc:o="Book",focusable:r="false",className:a})=>(0,n.jsxs)("svg",{className:a,focusable:r,height:t,viewBox:"0 0 17 15",width:e,xmlns:"http://www.w3.org/2000/svg",children:[(0,n.jsx)("title",{children:s}),(0,n.jsx)("desc",{children:o}),(0,n.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 uB,K1,hB;const t1e=({title:e="Building",desc:t="Building with windows",width:s="18",height:o="18",className:r,focusable:a="false"})=>uB("svg",{className:hB("icon",r),focusable:a,height:o,viewBox:"0 0 18 18",width:s,children:[K1("title",{children:e}),K1("desc",{children:t}),K1("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"})]}),s1e=null;var Q1,$i,mB;const n1e=({title:e="Captions",desc:t="Two capital letter C inside a square",width:s="24",height:o="16",className:r,focusable:a="false"})=>Q1("svg",{className:mB("i i-captions",r),focusable:a,height:o,viewBox:"0 0 24 16",width:s,children:[$i("title",{children:e}),$i("desc",{children:t}),Q1("g",{fill:"none",fillRule:"evenodd",transform:"translate(-.355)",children:[$i("rect",{height:"13.25",rx:"1",stroke:"#000",strokeWidth:"1.75",width:"18.25",x:"1.447",y:"1.402"}),Q1("text",{fill:"#000",fontFamily:"Lato-Black, Lato",fontSize:"9",fontWeight:"700",letterSpacing:".75",children:[$i("tspan",{x:"4.222",y:"11.5",children:"C"})," ",$i("tspan",{x:"10.885",y:"11.5",children:"C"})]})]})]}),o1e=null;var pB,Z1;const r1e=({"aria-hidden":e,"aria-label":t,className:s,desc:o,height:r="15",role:a="img",title:i,width:c="16"})=>pB("svg",{"aria-hidden":e,"aria-label":t,className:s,focusable:"false",height:r,role:a,viewBox:"0 0 16 15",width:c,xmlns:"http://www.w3.org/2000/svg",children:[i&&Z1("title",{children:i}),o&&Z1("desc",{children:o}),Z1("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"})]}),a1e=null;var fB,Y1,gB;const i1e=({title:e="Character",desc:t="Character",width:s="13",height:o="16",className:r,focusable:a="false"})=>fB("svg",{className:gB("i i-character",r),focusable:a,height:o,viewBox:"0 0 13 16",width:s,children:[Y1("title",{children:e}),Y1("desc",{children:t}),Y1("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"})]}),c1e=null;function h6(e){return(0,n.jsx)($t,{viewBox:"0 0 11 8",...e,children:(0,n.jsx)("path",{d:"M9.6,0L11,1.3L3.9,8L0,4.3L1.4,3l2.6,2.4L9.6,0z"})})}var vB,X1,CB;const l1e=({"aria-hidden":e,"aria-label":t,className:s,desc:o,height:r="21",role:a="img",title:i,width:c="21"})=>vB("svg",{"aria-hidden":e,"aria-label":t,className:CB("i i-checkMarkFilled",s),focusable:"false",height:r,role:a,viewBox:"0 0 21 21",width:c,xmlns:"http://www.w3.org/2000/svg",children:[i&&X1("title",{children:i}),o&&X1("desc",{children:o}),X1("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"})]}),d1e=null;var m6,xB;function u1e(e){return m6(xB,{viewBox:"0 0 7 5",...e,children:m6("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 p6,bB;const h1e=({width:e="16",height:t="16",className:s,focusable:o="false"})=>p6("svg",{"aria-hidden":"true",className:bB("i i-chevronLeft",s),focusable:o,height:t,viewBox:"0 0 16 16",width:e,children:p6("polygon",{points:"11.1,15.7 3.4,8 11.1,0.3 12.6,1.7 6.3,8 12.6,14.3 "})}),m1e=null;var f6,yB;const p1e=e=>f6(yB,{viewBox:"0 0 6 10",...e,children:f6("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"})}),f1e=null,LB=({className:e,dataTestId:t})=>(0,n.jsx)("svg",{"aria-hidden":"true",className:e,"data-testid":t,fill:"currentColor",focusable:"false",viewBox:"0 0 10 10",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("circle",{cx:"5",cy:"5",r:"5"})});var g6,Dl,SB;const v1e=({title:e="Clock",desc:t="Image of a clock with two hands",width:s="14",height:o="13",className:r,focusable:a="false"})=>g6("svg",{className:SB("i",r),focusable:a,height:o,viewBox:"0 0 14 13",width:s,children:[Dl("title",{children:e}),Dl("desc",{children:t}),g6("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"})]})]}),C1e=null,TB=({className:e})=>(0,n.jsx)("svg",{"aria-hidden":"true",className:e,fill:"currentColor",foocusable:"false",viewBox:"0 0 10 10",xmlns:"http://www.w3.org/2000/svg",children:(0,n.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 NB,v6,kB;function b1e(e){return NB(kB,{viewBox:"0 0 16 16",...e,children:[v6("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"}),v6("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 IB,Vs;const y1e=({"aria-hidden":e,"aria-label":t,className:s,desc:o,height:r="18",role:a="img",title:i,width:c="18"})=>IB("svg",{"aria-hidden":e,"aria-label":t,className:s,fill:"none",focusable:"false",height:r,role:a,viewBox:"0 0 18 18",width:c,xmlns:"http://www.w3.org/2000/svg",children:[i&&Vs("title",{children:i}),o&&Vs("desc",{children:o}),Vs("path",{d:"M9 9V1a8 8 0 015.657 2.343L9 9z",fill:"red",stroke:"#fff",strokeLinejoin:"round"}),Vs("path",{d:"M9 9l5.657-5.656A8 8 0 0117 9H9z",fill:"#F90",stroke:"#fff",strokeLinejoin:"round"}),Vs("path",{d:"M9 9h8a8 8 0 01-2.343 5.657L9 9z",fill:"#FFF500",stroke:"#fff",strokeLinejoin:"round"}),Vs("path",{d:"M9 9l5.657 5.657A8 8 0 019 17V9z",fill:"#ADFF00",stroke:"#fff",strokeLinejoin:"round"}),Vs("path",{d:"M9 9v8a8 8 0 01-5.657-2.343L9 9z",fill:"#00FF94",stroke:"#fff",strokeLinejoin:"round"}),Vs("path",{d:"M9 9l-5.657 5.657A8 8 0 011 9h8z",fill:"#06F",stroke:"#fff",strokeLinejoin:"round"}),Vs("path",{d:"M9 9H1a8 8 0 012.343-5.656L9 9z",fill:"#8000FF",stroke:"#fff",strokeLinejoin:"round"}),Vs("path",{d:"M9 9L3.343 3.343A8 8 0 019 1v8z",fill:"#EB00FF",stroke:"#fff",strokeLinejoin:"round"}),Vs("path",{d:"M9 6a3 3 0 110 6 3 3 0 010-6z",fill:"#fff"}),Vs("path",{d:"M9 17A8 8 0 109 1a8 8 0 000 16z",stroke:"#EAEAEB"})]}),L1e=null;var EB,J1,jB;const S1e=({title:e="Continue Block",desc:t="Continue Block",width:s="17",height:o="17",className:r,focusable:a="false"})=>EB("svg",{className:jB("i i-continue-block",r),focusable:a,height:o,viewBox:"0 0 17 17",width:s,children:[J1("title",{children:e}),J1("desc",{children:t}),J1("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"})]}),T1e=null;var wB,q1,AB;const N1e=({title:e="Convert",desc:t="Convert to block",width:s="14",height:o="12",className:r,focusable:a="false"})=>wB("svg",{className:AB("i i-convert",r),focusable:a,height:o,viewBox:"0 0 14 12",width:s,children:[q1("title",{children:e}),q1("desc",{children:t}),q1("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"})]}),k1e=null;var RB,C6,PB;function I1e(e){return RB(PB,{...e,viewBox:"0 0 16 16",children:[C6("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"}),C6("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 MB,eh,OB;const E1e=({title:e="Copy",desc:t="A document stacked on top of another one",width:s="15",height:o="18",className:r=null,focusable:a="false"})=>MB("svg",{className:OB("i i-stack",r),focusable:a,height:o,viewBox:"0 0 15 18",width:s,children:[eh("title",{children:e}),eh("desc",{children:t}),eh("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"})]}),j1e=null;var BB,th,DB;const w1e=({title:e="Copy lesson",desc:t="Copy lesson",width:s="15",height:o="15",className:r,focusable:a="false"})=>BB("svg",{className:DB("i",r),focusable:a,height:o,viewBox:"0 0 15 15",width:s,children:[th("title",{children:e}),th("desc",{children:t}),th("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"})]}),A1e=null;var HB,Hl;const R1e=({title:e="Corner up-right",desc:t="An arrow moving up & to the right",width:s="16",height:o="16",className:r,focusable:a="false"})=>HB("svg",{className:r,fill:"none",focusable:a,height:o,viewBox:"0 0 16 16",width:s,xmlns:"http://www.w3.org/2000/svg",children:[Hl("title",{children:e}),Hl("desc",{children:t}),Hl("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"}),Hl("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"})]}),P1e=null;var FB,sh,VB;const M1e=e=>{const{className:t,desc:s="Crop",focusable:o="false",height:r="19",title:a="Crop",width:i="19"}=e,c={className:VB("i i-crop",t),focusable:o,height:r,viewBox:`0 0 ${i} ${r}`,width:i};return FB("svg",{...c,children:[sh("title",{children:a}),sh("desc",{children:s}),sh("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"})]})},O1e=null;var zB,nh,$B;const B1e=({"aria-hidden":e,"aria-label":t="Dash mark",className:s,desc:o,height:r="3",role:a="img",title:i,width:c="7"})=>zB("svg",{"aria-hidden":e,"aria-label":t,className:$B("i i-dashMark",s),focusable:"false",height:r,role:a,viewBox:"0 0 7 3",width:c,xmlns:"http://www.w3.org/2000/svg",children:[i&&nh("title",{children:i}),o&&nh("desc",{children:o}),nh("rect",{height:"3",width:"7"})]}),D1e=null;var _B,x6;const H1e=({width:e="20",height:t="20",focusable:s="false"})=>_B("svg",{fill:"none",focusable:s,height:t,viewBox:"0 0 20 20",width:e,xmlns:"http://www.w3.org/2000/svg",children:[x6("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"}),x6("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"})]}),F1e=null,UB=({title:e="DestinationArrow",desc:t="DestinationArrow",width:s="13",height:o="10",className:r,focusable:a="false"})=>(0,n.jsxs)("svg",{className:G()("i i-destinationArrow",r),focusable:a,height:o,viewBox:"0 0 13 10",width:s,children:[(0,n.jsx)("title",{children:e}),(0,n.jsx)("desc",{children:t}),(0,n.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 GB,oh,WB;const z1e=({title:e="Dialogue Slide",desc:t="Dialogue Slide",width:s="16",height:o="16",className:r,focusable:a="false"})=>GB("svg",{className:WB("i i-dialogue-slide",r),focusable:a,height:o,viewBox:"0 0 16 16",width:s,children:[oh("title",{children:e}),oh("desc",{children:t}),oh("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"})]}),$1e=null;var KB,_i;const _1e=({title:e="Disk",desc:t="An old floppy disk",width:s="16",height:o="16",className:r,focusable:a="false"})=>KB("svg",{className:r,fill:"none",focusable:a,height:o,viewBox:"0 0 16 16",width:s,xmlns:"http://www.w3.org/2000/svg",children:[_i("title",{children:e}),_i("desc",{children:t}),_i("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"}),_i("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"}),_i("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"})]}),U1e=null;var QB,G1e;class W1e extends null{render(){return QB("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 K1e=null;var b6,ZB;const Q1e=({width:e=20,height:t=20,...s})=>b6(ZB,{height:t,width:e,...s,viewBox:"0 0 20 20",children:b6("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"})}),Z1e=null;var YB,rh,XB;const Y1e=({title:e="Vertical Dots",desc:t="Vertical Dots",width:s="4",height:o="24",className:r=null,focusable:a="false"})=>YB("svg",{className:XB("i i-dotsVertical",r),focusable:a,height:o,viewBox:"0 0 4 24",width:s,children:[rh("title",{children:e}),rh("desc",{children:t}),rh("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"})]}),X1e=null,JB=({title:e="Download",desc:t="Arrow down with horizontal line beneath it",width:s="16",height:o="19",className:r,focusable:a="false"},i)=>(0,n.jsxs)("svg",{className:G()("i i-download",r),focusable:a,height:o,ref:i,viewBox:"0 0 16 19",width:s,children:[(0,n.jsx)("title",{children:e}),(0,n.jsx)("desc",{children:t}),(0,n.jsx)("rect",{height:"2",rx:"1",width:"16",y:"17"}),(0,n.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,n.jsx)("path",{d:"M7 0h2v12H7z"})]}),qB=(0,u.forwardRef)(JB);var eD,Ui,tD;const J1e=({title:e="Download Circle",desc:t="Arrow down with horizontal line beneath it wrapped up in a circle",width:s="51",height:o="51",className:r,focusable:a="false"})=>eD("svg",{className:tD("i i-downloadCircle",r),focusable:a,height:o,viewBox:"0 0 51 51",width:s,children:[Ui("title",{children:e}),Ui("desc",{children:t}),Ui("g",{fill:"none",stroke:"none",children:Ui("g",{fill:"#000",transform:"translate(-695, -227)",children:Ui("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"})})})]}),q1e=null;var sD,y6,nD;function ehe(e){return sD(nD,{viewBox:"0 0 13 13",...e,children:[y6("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"}),y6("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 oD,Fl,rD;const the=({title:e="Draw",desc:t="Arrow down with horizontal line beneath it",width:s="15",height:o="15",className:r,focusable:a="false"})=>oD("svg",{className:rD("i i-drawFromQuestionBank",r),focusable:a,height:o,viewBox:"0 0 15 15",width:s,children:[Fl("title",{children:e}),Fl("desc",{children:t}),Fl("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"}),Fl("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"})]}),she=null;var aD,ah,iD;const nhe=e=>aD(iD,{height:"16",viewBox:"0 0 16 4",width:"4",...e,children:[ah("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"}),ah("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"}),ah("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"})]}),ohe=null;var cD,Gi,lD;const rhe=({title:e="More",desc:t="Three dots next to one another",width:s="16",height:o="4",className:r=null,focusable:a="false"})=>cD("svg",{className:lD("i",r),focusable:a,height:o,viewBox:"0 0 16 4",width:s,children:[Gi("title",{children:e}),Gi("desc",{children:t}),Gi("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"}),Gi("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"}),Gi("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"})]}),ahe=null;var L6,Wi,dD;const ihe=({title:e="Draggable",desc:t="Three dots stacked on top of one another",width:s="4",height:o="14",className:r,focusable:a="false"})=>L6("svg",{className:dD("i i-ellipsis--vert",r),focusable:a,height:o,viewBox:"0 0 4 14",width:s,children:[Wi("title",{children:e}),Wi("desc",{children:t}),L6("g",{transform:"translate(.158 .445)",children:[Wi("circle",{cx:"1.5",cy:"11.5",r:"1.5"}),Wi("circle",{cx:"1.5",cy:"6.5",r:"1.5"}),Wi("circle",{cx:"1.5",cy:"1.5",r:"1.5"})]})]}),che=null;var uD,ih,hD;const lhe=({title:e="Embed",desc:t="Embed icon",width:s="16",height:o="15",className:r,focusable:a="false"})=>uD("svg",{className:hD("i i-embed",r),focusable:a,height:o,viewBox:"0 0 16 15",width:s,children:[ih("title",{children:e}),ih("desc",{children:t}),ih("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"})]}),dhe=null;var mD,Vl,pD;const uhe=({title:e="Empty folder",desc:t="Empty folder",width:s="46",height:o="46",className:r,focusable:a="false"})=>mD("svg",{className:pD("i i-emptyFolder",r),focusable:a,height:o,viewBox:"0 0 46 46",width:s,children:[Vl("title",{children:e}),Vl("desc",{children:t}),Vl("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"}),Vl("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"})]}),hhe=null;var fD,zl,gD;const mhe=({title:e="End Slide",desc:t="End Slide",width:s="16",height:o="14",className:r,focusable:a="false"})=>fD("svg",{className:gD("i i-end-slide",r),focusable:a,height:o,viewBox:"0 0 16 14",width:s,children:[zl("title",{children:e}),zl("desc",{children:t}),zl("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"}),zl("rect",{fillRule:"evenodd",height:"14",width:"2",x:"14"})]}),phe=null;var S6,$l,vD;const fhe=({title:e="Envelope",desc:t="Envelope",width:s="17",height:o="14",className:r,focusable:a="false"})=>S6("svg",{className:vD("i i-envelope",r),focusable:a,height:o,viewBox:"0 0 17 14",width:s,xmlns:"http://www.w3.org/2000/svg",children:[$l("title",{children:e}),$l("desc",{children:t}),S6("g",{fillRule:"nonzero",children:[$l("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"}),$l("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"})]})]}),ghe=null;var CD,_l,xD;const vhe=({title:e="Error",desc:t="An x with a circle",width:s="50",height:o="50",className:r,focusable:a="false"})=>CD("svg",{className:xD("i i-error",r),focusable:a,height:o,viewBox:"0 0 50 50",width:s,children:[_l("title",{children:e}),_l("desc",{children:t}),_l("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"}),_l("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"})]}),Che=null;var bD,Ul,yD;const xhe=({title:e="Error Alert",desc:t="A red circle with a white exclamation point in the middle",width:s="18",height:o="18",className:r,focusable:a="false"})=>bD("svg",{className:yD("i i-errorAlert",r),focusable:a,height:o,viewBox:"0 0 18 18",width:s,children:[Ul("title",{children:e}),Ul("desc",{children:t}),Ul("circle",{cx:"9",cy:"9",r:"9"}),Ul("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"})]}),bhe=null,T6=({"aria-hidden":e,"aria-label":t="X mark",className:s,dataTestId:o="x-mark",desc:r,height:a="10",overrideStyle:i=!1,role:c="img",title:d,width:l="10"})=>(0,n.jsxs)("svg",{"aria-hidden":e,"aria-label":t,className:G()(s,{"i i-exMark":!i}),"data-testid":o,focusable:"false",height:a,role:c,viewBox:"0 0 10 10",width:l,xmlns:"http://www.w3.org/2000/svg",children:[d&&(0,n.jsx)("title",{children:d}),r&&(0,n.jsx)("desc",{children:r}),(0,n.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 LD,Gl,SD;const Lhe=({title:e="Export",desc:t="Export",width:s="12",height:o="15",className:r,focusable:a="false"})=>LD("svg",{className:SD("i i-export",r),focusable:a,height:o,viewBox:"0 0 12 15",width:s,children:[Gl("title",{children:e}),Gl("desc",{children:t}),Gl("polygon",{points:"7,6.4 7,1 5,1 5,6.4 2.3,6.4 6,10.8 9.7,6.4"}),Gl("rect",{height:"2",width:"10",x:"1",y:"12"})]}),She=null,N6=({"aria-hidden":e,"aria-label":t,className:s,desc:o="",height:r="50",role:a="img",title:i="",width:c="40"})=>(0,n.jsxs)("svg",{"aria-hidden":e,"aria-label":t,className:s,fill:"none",focusable:"false",height:r,role:a,viewBox:"0 0 40 50",width:c,xmlns:"http://www.w3.org/2000/svg",children:[i&&(0,n.jsx)("title",{children:i}),o&&(0,n.jsx)("desc",{children:o}),(0,n.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,n.jsx)("path",{clipRule:"evenodd",d:"M26 0V14H40",fill:"#C7CACC",fillRule:"evenodd"}),(0,n.jsx)("path",{d:"M13.534 22.9863V24.4163H10.245V26.4458H12.984V27.8813H10.245V30.9998H8.375V22.9863H13.534Z",fill:"#414448"}),(0,n.jsx)("path",{d:"M17.533 30.9998H15.663V22.9863H17.533V30.9998Z",fill:"#414448"}),(0,n.jsx)("path",{d:"M21.8805 29.5148H24.8505V30.9998H20.0215V22.9863H21.8805V29.5148Z",fill:"#414448"}),(0,n.jsx)("path",{d:"M31.8846 22.9863V24.4163H28.5956V26.2863H31.1146V27.6613H28.5956V29.5698H31.8846V30.9998H26.7256V22.9863H31.8846Z",fill:"#414448"})]}),TD=({"aria-hidden":e,"aria-label":t,className:s,desc:o="",height:r="50",role:a="img",title:i="",width:c="40"})=>(0,n.jsxs)("svg",{"aria-hidden":e,"aria-label":t,className:s,fill:"none",focusable:"false",height:r,role:a,viewBox:"0 0 40 50",width:c,xmlns:"http://www.w3.org/2000/svg",children:[i&&(0,n.jsx)("title",{children:i}),o&&(0,n.jsx)("desc",{children:o}),(0,n.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,n.jsx)("path",{clipRule:"evenodd",d:"M26 0V14H40",fill:"#96A9E0",fillRule:"evenodd"}),(0,n.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,n.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,n.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 ND,Wl,kD;const khe=({title:e="No File",desc:t="Paper icon with one corner bent inwards",width:s="40",height:o="50",className:r,focusable:a="false"})=>ND("svg",{className:kD("i i-fileNone",r),focusable:a,height:o,viewBox:"0 0 40 50",width:s,children:[Wl("title",{children:e}),Wl("desc",{children:t}),Wl("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"}),Wl("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"})]}),Ihe=null,ID=({"aria-hidden":e,"aria-label":t,className:s,desc:o="",height:r="50",role:a="img",title:i="",width:c="40"})=>(0,n.jsxs)("svg",{"aria-hidden":e,"aria-label":t,className:s,fill:"none",focusable:"false",height:r,role:a,viewBox:"0 0 40 50",width:c,xmlns:"http://www.w3.org/2000/svg",children:[i&&(0,n.jsx)("title",{children:i}),o&&(0,n.jsx)("desc",{children:o}),(0,n.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,n.jsx)("path",{clipRule:"evenodd",d:"M26 0V14H40",fill:"#EDADA9",fillRule:"evenodd"}),(0,n.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,n.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,n.jsx)("path",{d:"M31.3465 22.9863V24.4163H28.0575V26.4458H30.7965V27.8813H28.0575V30.9998H26.1875V22.9863H31.3465Z",fill:"#771D18"})]}),ED=({"aria-hidden":e,"aria-label":t,className:s,desc:o="",height:r="50",role:a="img",title:i="",width:c="40"})=>(0,n.jsxs)("svg",{"aria-hidden":e,"aria-label":t,className:s,fill:"none",focusable:"false",height:r,role:a,viewBox:"0 0 40 50",width:c,xmlns:"http://www.w3.org/2000/svg",children:[i&&(0,n.jsx)("title",{children:i}),o&&(0,n.jsx)("desc",{children:o}),(0,n.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,n.jsx)("path",{clipRule:"evenodd",d:"M26 0V14H40",fill:"#F8BFA6",fillRule:"evenodd"}),(0,n.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,n.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,n.jsx)("path",{d:"M31.2008 22.9863V24.4603H28.9458V30.9998H27.0868V24.4603H24.8318V22.9863H31.2008Z",fill:"#7C2B0E"})]}),jD=({"aria-hidden":e,"aria-label":t,className:s,desc:o="",height:r="50",role:a="img",title:i="",width:c="40"})=>(0,n.jsxs)("svg",{"aria-hidden":e,"aria-label":t,className:s,fill:"none",focusable:"false",height:r,role:a,viewBox:"0 0 40 50",width:c,xmlns:"http://www.w3.org/2000/svg",children:[i&&(0,n.jsx)("title",{children:i}),o&&(0,n.jsx)("desc",{children:o}),(0,n.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,n.jsx)("path",{clipRule:"evenodd",d:"M26 0V14H40",fill:"#ABDBF3",fillRule:"evenodd"}),(0,n.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,n.jsx)("path",{d:"M23.6162 22.9865V24.4605H21.3612V31H19.5022V24.4605H17.2472V22.9865H23.6162Z",fill:"#144E6C"}),(0,n.jsx)("path",{d:"M30.5411 22.9865V24.4165H27.2521V26.446H29.9911V27.8815H27.2521V31H25.3821V22.9865H30.5411Z",fill:"#144E6C"})]}),wD=({"aria-hidden":e,"aria-label":t,className:s,desc:o="",height:r="50",role:a="img",title:i="",width:c="40"})=>(0,n.jsxs)("svg",{"aria-hidden":e,"aria-label":t,className:s,fill:"none",focusable:"false",height:r,role:a,viewBox:"0 0 40 50",width:c,xmlns:"http://www.w3.org/2000/svg",children:[i&&(0,n.jsx)("title",{children:i}),o&&(0,n.jsx)("desc",{children:o}),(0,n.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,n.jsx)("path",{clipRule:"evenodd",d:"M26 0V14H40",fill:"#AFD1AE",fillRule:"evenodd"}),(0,n.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,n.jsx)("path",{d:"M20.6017 29.5149H23.5717V30.9999H18.7427V22.9864H20.6017V29.5149Z",fill:"#265026"}),(0,n.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"})]}),AD=({"aria-hidden":e,"aria-label":t,className:s,desc:o="",height:r="50",role:a="img",title:i="",width:c="40"})=>(0,n.jsxs)("svg",{"aria-hidden":e,"aria-label":t,className:s,fill:"none",focusable:"false",height:r,role:a,viewBox:"0 0 40 50",width:c,xmlns:"http://www.w3.org/2000/svg",children:[i&&(0,n.jsx)("title",{children:i}),o&&(0,n.jsx)("desc",{children:o}),(0,n.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,n.jsx)("path",{clipRule:"evenodd",d:"M26 0V14H40",fill:"#ABDBF3",fillRule:"evenodd"}),(0,n.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,n.jsx)("path",{d:"M20.7826 30.9998H18.9126V22.9863H20.7826V30.9998Z",fill:"#124F6E"}),(0,n.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 RD,Kl,PD;const Phe=({title:e="More",desc:t="Filled caret pointing right",width:s="7",height:o="5",className:r,focusable:a="false"})=>RD("svg",{className:PD("i i-filledChevronRight",r),focusable:a,height:o,viewBox:"0 0 5 7",width:s,children:[Kl("title",{children:e}),Kl("desc",{children:t}),Kl("g",{children:Kl("path",{d:"M4 3.625L1 1v5.25z",strokeLinecap:"round",strokeLinejoin:"round"})})]}),Mhe=null,ch=({title:e="Fill in the Blank",desc:t="Pencil writing on a surface",width:s="15",height:o="15",className:r,focusable:a="false"})=>(0,n.jsxs)("svg",{className:G()("i i-fillInTheBlank",r),focusable:a,height:o,viewBox:"0 0 15 15",width:s,children:[(0,n.jsx)("title",{children:e}),(0,n.jsx)("desc",{children:t}),(0,n.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 MD,lh;const Bhe=({"aria-hidden":e,"aria-label":t,className:s,desc:o,height:r="16",role:a="img",title:i,width:c="16"})=>MD("svg",{"aria-hidden":e,"aria-label":t,className:s,focusable:"false",height:r,role:a,viewBox:"0 0 16 16",width:c,xmlns:"http://www.w3.org/2000/svg",children:[i&&lh("title",{children:i}),o&&lh("desc",{children:o}),lh("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"})]}),Dhe=null;var OD,dh,BD;const Hhe=({title:e="Flashcard Block",desc:t="Flashcard Block",width:s="16",height:o="15",className:r,focusable:a="false"})=>OD("svg",{className:BD("i i-flashcard-block",r),focusable:a,height:o,viewBox:"0 0 16 15",width:s,children:[dh("title",{children:e}),dh("desc",{children:t}),dh("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"})]}),Fhe=null;var k6,DD;const Vhe=e=>k6(DD,{viewBox:"0 0 15 15",...e,children:k6("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"})}),zhe=null;var HD,I6,FD;function $he(e){return HD(FD,{...e,viewBox:"0 0 16 14",children:[I6("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"}),I6("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 VD,Ql,zD;const _he=({title:e="Folder Empty",desc:t="Folder outline empty",width:s="47",height:o="47",className:r,focusable:a="false"})=>VD("svg",{className:zD("i i-folder--empty",r),focusable:a,height:o,viewBox:"0 0 47 47",width:s,children:[Ql("title",{children:e}),Ql("desc",{children:t}),Ql("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"}),Ql("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"})]}),Uhe=null;var $D,uh,_D;const Ghe=({title:e="Folder Outline",desc:t="Outline of a folder",width:s="24",height:o="24",className:r,focusable:a="false"})=>$D("svg",{className:_D("i",r),focusable:a,height:o,viewBox:"0 0 24 24",width:s,children:[uh("title",{children:e}),uh("desc",{children:t}),uh("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"})]}),Whe=null;var UD,hh,GD;const Khe=({title:e="FolderSort",desc:t="Sort by Folders",width:s="13",height:o="13",className:r,focusable:a="false"})=>UD("svg",{className:GD("i",r),focusable:a,height:o,viewBox:"0 0 13 13",width:s,children:[hh("title",{children:e}),hh("desc",{children:t}),hh("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"})]}),Qhe=null;var WD,mh,KD;const Zhe=({title:e="Font",desc:t="A capital letter T with a second smaller capital T to the right",width:s="35",height:o="27",className:r,focusable:a="false"})=>WD("svg",{className:KD("i",r),focusable:a,height:o,viewBox:"0 0 35 27",width:s,children:[mh("title",{children:e}),mh("desc",{children:t}),mh("path",{d:"M1 1v5h8.333v20h5V6h8.334V1H1zm32.667 10.333h-15v5h5V26h5v-9.667h5v-5z",fill:"none",fillRule:"nonzero",stroke:"#adaeaf",strokeWidth:"2"})]}),Yhe=null;var QD,Zl,ZD;const Xhe=e=>QD(ZD,{...e,viewBox:"0 0 16 16",children:[Zl("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"}),Zl("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"}),Zl("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"}),Zl("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"})]}),Jhe=null;var YD,Yl,XD;const qhe=({title:e="Group",desc:t="Silhouettes of two people",width:s="18",height:o="17",className:r,focusable:a="false"})=>YD("svg",{className:XD("i",r),focusable:a,height:o,viewBox:"0 0 18 17",width:s,children:[Yl("title",{children:e}),Yl("desc",{children:t}),Yl("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"}),Yl("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"})]}),eme=null;var E6,JD;function tme(e){return E6(JD,{viewBox:"0 0 20 14",...e,children:E6("path",{d:"M0 0H20V2H0V0Z M0 6H20V8H0V6Z M20 12H0V14H20V12Z"})})}const ph=({className:e,decorative:t=!0,desc:s="Heart",focusable:o="false",height:r="16",isFilled:a=!0,title:i="Heart",width:c="16"})=>(0,n.jsxs)("svg",{"aria-hidden":t,className:G()(`i i-heart${a?"Filled":"Outline"}`,e),focusable:o,height:r,viewBox:"0 0 16 16",width:c,children:[(0,n.jsx)("title",{children:i}),(0,n.jsx)("desc",{children:s}),(0,n.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 qD,fh,eH;const nme=({title:e="Hidden",desc:t="Eye crossed out",width:s="16",height:o="14",className:r=null,focusable:a="false"})=>qD("svg",{className:eH("i i-hidden",r),focusable:a,height:o,viewBox:"0 0 16 14",width:s,children:[fh("title",{children:e}),fh("desc",{children:t}),fh("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"})]}),ome=null;var tH,gh,sH;const rme=({title:e="Image Block",desc:t="Image Block",width:s="17",height:o="17",className:r,focusable:a="false"})=>tH("svg",{className:sH("i i-image-block",r),focusable:a,height:o,viewBox:"0 0 17 17",width:s,children:[gh("title",{children:e}),gh("desc",{children:t}),gh("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"})]}),ame=null;var nH,vh,oH;const ime=({title:e="Labeled Graphic Block",desc:t="Labeled Graphic Block",width:s="17",height:o="17",className:r,focusable:a="false"})=>nH("svg",{className:oH("i i-labeled-graphic-block",r),focusable:a,height:o,viewBox:"0 0 17 17",width:s,children:[vh("title",{children:e}),vh("desc",{children:t}),vh("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"})]}),cme=null;var rH,Xl,aH;const lme=({title:e="Label Set",desc:t="Label Set",width:s="17",height:o="17",className:r,focusable:a="false"})=>rH("svg",{className:aH("i i-labelSet",r),focusable:a,height:o,viewBox:"0 0 18 18",width:s,children:[Xl("title",{children:e}),Xl("desc",{children:t}),Xl("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"}),Xl("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"})]}),dme=null;var iH,Ch,cH;function ume(e){return iH(cH,{fill:"none",stroke:"currentColor",viewBox:"0 0 13 14",...e,children:[Ch("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"}),Ch("path",{d:"M1 6.71431 L6.57031 9.57147 L12.1406 6.71431",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.37143"}),Ch("path",{d:"M1 9.57147 L6.57031 12.42863 L12.1406 9.57147",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.37143"})]})}var lH,xh;const hme=({"aria-hidden":e,"aria-label":t,className:s,desc:o,height:r="15",role:a="img",title:i,width:c="16"})=>lH("svg",{"aria-hidden":e,"aria-label":t,className:s,focusable:"false",height:r,role:a,viewBox:"0 0 16 15",width:c,xmlns:"http://www.w3.org/2000/svg",children:[i&&xh("title",{children:i}),o&&xh("desc",{children:o}),xh("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"})]}),mme=null;var dH,bh,uH;const pme=({title:e="Lesson",desc:t="Lesson Icon",width:s="23",height:o="17",className:r,focusable:a="false"})=>dH("svg",{className:uH("i i-lesson",r),focusable:a,height:o,viewBox:"0 0 23 17",width:s,children:[bh("title",{children:e}),bh("desc",{children:t}),bh("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"})]}),fme=null;var hH,yh,mH;const gme=e=>hH(mH,{...e,viewBox:"0 0 16 16",children:[yh("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"}),yh("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"}),yh("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"})]}),vme=null;var pH,Lh,fH;const Cme=({title:e="List Block",desc:t="List Block",width:s="16",height:o="13",className:r,focusable:a="false"})=>pH("svg",{className:fH("i i-list-block",r),focusable:a,height:o,viewBox:"0 0 16 13",width:s,children:[Lh("title",{children:e}),Lh("desc",{children:t}),Lh("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"})]}),xme=null;var gH,Jl;const bme=({"aria-hidden":e,"aria-label":t,className:s,desc:o,height:r,role:a="img",title:i,width:c})=>gH("svg",{"aria-hidden":e,"aria-label":t,className:s,fill:"none",focusable:"false",height:r,role:a,viewBox:"0 0 40 40",width:c,xmlns:"http://www.w3.org/2000/svg",children:[i&&Jl("title",{children:i}),o&&Jl("desc",{children:o}),Jl("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"}),Jl("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"})]}),yme=null;var j6,vH;function Lme(e){return j6(vH,{viewBox:"0 0 20 22",...e,children:j6("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 CH,ql,xH;const Sme=({title:e="Mail",desc:t="Mail",width:s="14",height:o="12",className:r,focusable:a="false"})=>CH("svg",{className:xH("i",r),focusable:a,height:o,viewBox:"0 0 14 12",width:s,children:[ql("title",{children:e}),ql("desc",{children:t}),ql("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"}),ql("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"})]}),Tme=null,bH=({title:e="Matching",desc:t="Two rows of stacked squares",width:s="15",height:o="15",className:r,focusable:a="false"})=>(0,n.jsxs)("svg",{className:G()("i i-matching",r),focusable:a,height:o,viewBox:"0 0 15 15",width:s,children:[(0,n.jsx)("title",{children:e}),(0,n.jsx)("desc",{children:t}),(0,n.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 yH,Ki,LH;const kme=({title:e="Move to Folder",desc:t="Folder with an arrow",width:s="15",height:o="15",className:r,focusable:a="false"})=>yH("svg",{className:LH("i i-move",r),focusable:a,height:o,viewBox:"0 0 15 15",width:s,children:[Ki("title",{children:e}),Ki("desc",{children:t}),Ki("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"}),Ki("path",{d:"M4.795 7.973a.583.583 0 0 0 0 1.167h5.834a.583.583 0 1 0 0-1.167H4.795z"}),Ki("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"})]}),Ime=null,SH=({title:e="Multiple Choice",desc:t="Stacked circles to the left of stacked lines",width:s="16",height:o="16",className:r,focusable:a="false"})=>(0,n.jsxs)("svg",{className:G()("i i-multipleChoice",r),focusable:a,height:o,viewBox:"0 0 16 16",width:s,children:[(0,n.jsx)("title",{children:e}),(0,n.jsx)("desc",{children:t}),(0,n.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,n.jsx)("circle",{cx:"7.904",cy:"7.904",r:"1.904"})]}),TH=({title:e="Multiple Response",desc:t="A box with a checkmark in it",width:s="16",height:o="16",className:r,focusable:a="false"})=>(0,n.jsxs)("svg",{className:G()("i i-multipleResponse",r),focusable:a,height:o,viewBox:"0 0 16 16",width:s,children:[(0,n.jsx)("title",{children:e}),(0,n.jsx)("desc",{children:t}),(0,n.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 NH,Sh,kH;const wme=({"aria-hidden":e,title:t="New Folder",desc:s="Folder with plus sign",width:o="14",height:r="14",className:a,focusable:i="false"})=>NH("svg",{"aria-hidden":e,className:kH("i i-newFolder",a),focusable:i,height:r,viewBox:"0 0 14 14",width:o,children:[t&&Sh("title",{children:t}),Sh("desc",{children:s}),Sh("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"})]}),Ame=null;var IH,ed,EH;const Rme=({title:e="New Slide",desc:t="New Slide",width:s="16",height:o="16",className:r,focusable:a="false"})=>IH("svg",{className:EH("i i-new-slide",r),focusable:a,height:o,viewBox:"0 0 16 16",width:s,children:[ed("title",{children:e}),ed("desc",{children:t}),ed("path",{d:"M7,12h2V9h3V7H9V4H7v3H4v2h3V12z",fillRule:"evenodd"}),ed("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"})]}),Pme=null;var jH,Th,wH;const Mme=({title:e="Next Slide",desc:t="Next Slide",width:s="16",height:o="13.4",className:r,focusable:a="false"})=>jH("svg",{className:wH("i i-next-slide",r),focusable:a,height:o,viewBox:"0 0 16 13.4",width:s,children:[Th("title",{children:e}),Th("desc",{children:t}),Th("path",{d:"M9.3,0L7.9,1.4l4.3,4.3H0v2h12.2L7.9,12l1.4,1.4L16,6.7L9.3,0",fillRule:"evenodd"})]}),Ome=null;var AH,Nh,RH;const Bme=({title:e="Not Allowed",desc:t="A circle with a slanted line through it",width:s="12",height:o="12",className:r,focusable:a="false"})=>AH("svg",{className:RH("i i-notAllowed",r),focusable:a,height:o,viewBox:"0 0 12 12",width:s,children:[Nh("title",{children:e}),Nh("desc",{children:t}),Nh("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"})]}),Dme=null;var PH,w6;const Hme=({className:e})=>PH("svg",{"aria-hidden":"true",className:e,fill:"currentColor",focusable:"false",viewBox:"0 0 12 14",xmlns:"http://www.w3.org/2000/svg",children:[w6("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"}),w6("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"})]}),Fme=null;var MH,Qi,OH;const Vme=({title:e="Hide",desc:t="Shape of an eye with a stroke through it",width:s="20",height:o="16",className:r,focusable:a="false"})=>MH("svg",{className:OH("i",r),focusable:a,height:o,viewBox:"0 0 20 16",width:s,children:[Qi("title",{children:e}),Qi("desc",{children:t}),Qi("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"}),Qi("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"}),Qi("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"})]}),zme=null;var BH,A6,DH;const $me=e=>BH(DH,{viewBox:"0 0 16 16",...e,children:[A6("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"}),A6("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"})]}),_me=null;var HH,kh,FH;const Ume=({title:e="Edit",desc:t="Pencil",width:s="11",height:o="11",className:r,focusable:a="false"})=>HH("svg",{className:FH("i i-pencil",r),focusable:a,height:o,viewBox:"0 0 10 10",width:s,children:[kh("title",{children:e}),kh("desc",{children:t}),kh("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"})]}),Gme=null;var VH,Ih;const Wme=({"aria-hidden":e,"aria-label":t,className:s,desc:o,height:r="16",role:a="img",title:i,width:c="16"})=>VH("svg",{"aria-hidden":e,"aria-label":t,className:s,fill:"none",focusable:"false",height:r,role:a,viewBox:"0 0 16 16",width:c,xmlns:"http://www.w3.org/2000/svg",children:[i&&Ih("title",{children:i}),o&&Ih("desc",{children:o}),Ih("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"})]}),Kme=null;var zH,td,$H;const Qme=({title:e="Person",desc:t="Person outline",width:s="16",height:o="18",className:r,focusable:a="false"})=>zH("svg",{className:$H("i",r),focusable:a,height:o,viewBox:"0 0 16 18",width:s,children:[td("title",{children:e}),td("desc",{children:t}),td("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"}),td("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"})]}),Zme=null;var _H=f(65610),Po=f.n(_H);class Eh extends u.Component{constructor(...t){super(...t),this.maskId=`person-unknown-mask-${Po()()}`,this.pathId=`person-unknown-path-${Po()()}`}render(){const{title:t="Person Unknown",desc:s,width:o="38",height:r="38",className:a,decorative:i,focusable:c="false"}=this.props;return(0,n.jsxs)("svg",{"aria-hidden":i,className:G()("i i-person-unknown",a),focusable:c,height:r,viewBox:"0 0 38 38",width:o,children:[t&&(0,n.jsx)("title",{children:t}),s&&(0,n.jsx)("desc",{children:s}),(0,n.jsx)("defs",{children:(0,n.jsx)("circle",{cx:"19",cy:"19",id:this.pathId,r:"19"})}),(0,n.jsxs)("g",{fill:"none",fillRule:"evenodd",stroke:"none",strokeWidth:"1",children:[(0,n.jsx)("mask",{fill:"#fff",id:this.maskId,children:(0,n.jsx)("use",{href:`#${this.pathId}`})}),(0,n.jsx)("use",{fill:"#D8D8D8",href:`#${this.pathId}`}),(0,n.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 R6=({title:e="Pick One",desc:t="Pick One",width:s="16",height:o="14",className:r,focusable:a="false","aria-hidden":i})=>(0,n.jsxs)("svg",{"aria-hidden":i,className:G()("i i-pickOne",r),focusable:a,height:o,viewBox:"0 0 16 14",width:s,xmlns:"http://www.w3.org/2000/svg",children:[(0,n.jsx)("title",{children:e}),(0,n.jsx)("desc",{children:t}),(0,n.jsxs)("g",{fillRule:"evenodd",children:[(0,n.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,n.jsx)("path",{d:"M8.862 1.324h7v2h-7zM8.862 4.324h7v2h-7zM8.862 8.324h7v2h-7zM8.862 11.324h7v2h-7z"})]})]});var UH,sd,GH;const Xme=({title:e="Play",desc:t="Triangle facing right that will play the media",width:s="16",height:o="22",className:r,focusable:a="false"})=>UH("svg",{className:GH("i",r),focusable:a,height:o,viewBox:"0 0 16 22",width:s,children:[sd("desc",{children:t}),sd("title",{children:e}),sd("g",{transform:"translate(-124 -107)",children:sd("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"})})]}),Jme=null;var WH,jh,KH;const qme=({title:e="Process Block",desc:t="Process Block",width:s="29",height:o="17",className:r,focusable:a="false"})=>WH("svg",{className:KH("i i-process-block",r),focusable:a,height:o,viewBox:"0 0 29 17",width:s,children:[jh("title",{children:e}),jh("desc",{children:t}),jh("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"})]}),epe=null;function QH(e){return(0,n.jsxs)($t,{viewBox:"0 0 16 16",...e,children:[(0,n.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,n.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,n.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 ZH,wh,YH;const tpe=({title:e="Quiz",desc:t="Quiz Icon",width:s="25",height:o="25",className:r,focusable:a="false"})=>ZH("svg",{className:YH("i i-quiz",r),focusable:a,height:o,viewBox:"0 0 25 25",width:s,children:[wh("title",{children:e}),wh("desc",{children:t}),wh("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"})]}),spe=null;var P6,XH;const npe=e=>P6(XH,{...e,viewBox:"0 0 10 13",children:P6("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"})}),ope=null;var JH,M6,qH;function rpe(e){return JH(qH,{viewBox:"0 0 15 14",...e,children:[M6("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"}),M6("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 O6,eF;function ape(e){return O6(eF,{viewBox:"0 0 28 28",...e,children:O6("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 tF,Ah;const ipe=({"aria-hidden":e,"aria-label":t,className:s,desc:o,height:r="15",role:a="img",title:i,width:c="16"})=>tF("svg",{"aria-hidden":e,"aria-label":t,className:s,focusable:"false",height:r,role:a,viewBox:"0 0 16 15",width:c,xmlns:"http://www.w3.org/2000/svg",children:[i&&Ah("title",{children:i}),o&&Ah("desc",{children:o}),Ah("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"})]}),cpe=null;function sF(e){return(0,n.jsx)($t,{viewBox:"0 0 23 17",...e,children:(0,n.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 B6,nF;const lpe=({width:e="16",height:t="16",className:s})=>B6("svg",{"aria-hidden":"true",className:nF("i i-search",s),fill:"currentColor",focusable:"false",height:t,viewBox:"0 0 15.6 14.7",width:e,children:B6("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"})}),dpe=null;var D6,oF;const upe=e=>D6(oF,{...e,viewBox:"0 0 15 15",children:D6("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"})}),hpe=null;var rF,Zi,aF;const mpe=({title:e="Share Folder",desc:t="Share folder",width:s="14",height:o="14",className:r,focusable:a="false"})=>rF("svg",{className:aF("i",r),focusable:a,height:o,viewBox:"0 0 14 14",width:s,children:[Zi("title",{children:e}),Zi("desc",{children:t}),Zi("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"}),Zi("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"}),Zi("path",{d:"M10.9804 10.9804V9.1503H12.1699V10.9804H14V12.1699H12.1699V14H10.9804V12.1699H9.1503V10.9804H10.9804Z"})]}),ppe=null;var H6,iF;const fpe=e=>H6(iF,{viewBox:"0 0 16 16",...e,children:H6("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"})}),gpe=null;var cF,Yi,lF;const vpe=({title:e="Sortable",desc:t="Three horizontal lines stacked on top of each other",width:s="22",height:o="7",className:r,focusable:a="false"})=>cF("svg",{className:lF("i i-sortable",r),focusable:a,height:o,viewBox:"0 0 22 7",width:s,children:[Yi("title",{children:e}),Yi("desc",{children:t}),Yi("rect",{height:"1",strokeWidth:"1",width:"100%",x:"0",y:"0"}),Yi("rect",{height:"1",strokeWidth:"1",width:"100%",x:"0",y:"3"}),Yi("rect",{height:"1",strokeWidth:"1",width:"100%",x:"0",y:"6"})]}),Cpe=null;var dF,Rh,uF;const xpe=({title:e="Sorting Block",desc:t="Sorting Block",width:s="22",height:o="15",className:r,focusable:a="false"})=>dF("svg",{className:uF("i i-sorting-block",r),focusable:a,height:o,viewBox:"0 0 22 15",width:s,children:[Rh("title",{children:e}),Rh("desc",{children:t}),Rh("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"})]}),bpe=null,hF=({title:e="Spinner",desc:t="Hollow circle fading from transparent to gray",width:s="21",height:o="20",className:r,focusable:a="false"})=>(0,n.jsxs)("svg",{className:G()("i i-spinner",r),focusable:a,height:o,viewBox:"0 0 21 20",width:s,children:[(0,n.jsx)("title",{children:e}),(0,n.jsx)("desc",{children:t}),(0,n.jsx)("defs",{children:(0,n.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,n.jsx)("stop",{offset:"0%",stopColor:"#C8C8C8",stopOpacity:"0"}),(0,n.jsx)("stop",{offset:"100%",stopColor:"#979797"})]})}),(0,n.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 F6,nd,mF;const Lpe=({title:e="SquareIcon",desc:t="Outline of a square",width:s="30",height:o="30",className:r,focusable:a="false"})=>F6("svg",{className:mF("i i-square-outline",r),focusable:a,height:o,viewBox:"0 0 30 30",width:s,children:[nd("title",{children:e}),nd("desc",{children:t}),F6("g",{fill:"none",fillRule:"evenodd",children:[nd("rect",{className:"overlay",fill:"none",fillRule:"evenodd",height:"28",rx:"2",strokeWidth:"2",transform:"translate(0 -1)",width:"28",x:"1",y:"2"}),nd("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"})]})]}),Spe=null;var V6,Cr,pF;const Ph="overlay",Tpe=({title:e="Stack",desc:t="Three horizontal bars stacked",width:s="30",height:o="30",className:r,focusable:a="false"})=>V6("svg",{className:pF("i i-stack",r),focusable:a,height:o,viewBox:"0 0 30 30",width:s,children:[Cr("title",{children:e}),Cr("desc",{children:t}),V6("g",{fill:"none",fillRule:"evenodd",children:[Cr("rect",{className:Ph,height:"8.824",rx:"1",width:"30"}),Cr("rect",{className:Ph,height:"8.824",rx:"1",width:"30",y:"10.588"}),Cr("rect",{className:Ph,height:"8.824",rx:"1",width:"30",y:"21.176"}),Cr("rect",{fill:"#FFF",fillOpacity:"0.63",height:"8.824",rx:"1",width:"30"}),Cr("rect",{fill:"#FFF",fillOpacity:"0.4",height:"8.824",rx:"1",width:"30",y:"10.588"})]})]}),Npe=null;var z6,fF;function kpe(e){return z6(fF,{viewBox:"0 0 16 16",...e,children:z6("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 gF,od,vF;const Ipe=({title:e="Success",desc:t="Checkmark with a circle",width:s="51",height:o="51",className:r=null,focusable:a="false"})=>gF("svg",{className:vF("i",r),focusable:a,height:o,viewBox:"0 0 51 51",width:s,children:[od("title",{children:e}),od("desc",{children:t}),od("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"}),od("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"})]}),Epe=null;var CF,Mh,xF;const jpe=({title:e="Text Block",desc:t="Text Block",width:s="17",height:o="17",className:r,focusable:a="false"})=>CF("svg",{className:xF("i i-text-block",r),focusable:a,height:o,viewBox:"0 0 17 17",width:s,children:[Mh("title",{children:e}),Mh("desc",{children:t}),Mh("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"})]}),wpe=null;var $6,rd,bF;const Ape=({title:e="Text Slide",desc:t="Text Slide",width:s="16",height:o="14",className:r,focusable:a="false"})=>$6("svg",{className:bF("i i-text-slide",r),focusable:a,height:o,viewBox:"0 0 16 14",width:s,children:[rd("title",{children:e}),rd("desc",{children:t}),$6("g",{fillRule:"evenodd",children:[rd("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"}),rd("path",{d:"M4 8h8v2H4z"})]})]}),Rpe=null;var yF,Oh,LF;const Ppe=({title:e="TitleSort",desc:t="Letters A and Z next to a downard arrow",width:s="17",height:o="11",className:r,focusable:a="false"})=>yF("svg",{className:LF("i",r),focusable:a,height:o,viewBox:"0 0 17 11",width:s,children:[Oh("title",{children:e}),Oh("desc",{children:t}),Oh("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"})]}),Mpe=null;function SF(e){return(0,n.jsxs)($t,{viewBox:"0 0 15 16",...e,children:[(0,n.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,n.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 TF,Bh,NF;const Ope=({title:e="Remove",desc:t="Trash can",width:s="10",height:o="13",className:r=null,focusable:a="false"})=>TF("svg",{className:NF("i i-trash",r),focusable:a,height:o,viewBox:"0 0 10 13",width:s,children:[Bh("title",{children:e}),Bh("desc",{children:t}),Bh("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"})]}),Bpe=null;var kF,Dh,IF;const Dpe=({title:e="Trash Folder",desc:t="Solid trash can",width:s="16",height:o="17",className:r,focusable:a="false"})=>kF("svg",{className:IF("i i-trashFolder",r),focusable:a,height:o,viewBox:"0 0 16 17",width:s,children:[Dh("title",{children:e}),Dh("desc",{children:t}),Dh("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"})]}),Hpe=null;var EF,va;const Fpe=({"aria-hidden":e,"aria-label":t,className:s,desc:o,height:r="16",role:a="img",title:i,width:c="14"})=>EF("svg",{"aria-hidden":e,"aria-label":t,className:s,fill:"none",focusable:"false",height:r,role:a,viewBox:"0 0 14 16",width:c,xmlns:"http://www.w3.org/2000/svg",children:[i&&va("title",{children:i}),o&&va("desc",{children:o}),va("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"}),va("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"}),va("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"}),va("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"})]}),Vpe=null;var jF,Hh,wF;const zpe=({title:e="Remove",desc:t="Trash can",width:s="13.3",height:o="16",className:r,focusable:a="false"})=>jF("svg",{className:wF("i",r),focusable:a,height:o,viewBox:"0 0 13.3 16",width:s,children:[Hh("title",{children:e}),Hh("desc",{children:t}),Hh("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"})]}),$pe=null;var AF,ad,RF;const _pe=({title:e="Upload",desc:t="Upload icon",width:s="15",height:o="15",className:r="",focusable:a="false"})=>AF("svg",{className:RF("i",r),focusable:a,height:o,viewBox:"0 0 15 15",width:s,children:[ad("title",{children:e}),ad("desc",{children:t}),ad("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"}),ad("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"})]}),Upe=null;var PF,Xi;const Gpe=({"aria-hidden":e,"aria-label":t,className:s,desc:o,height:r="14",role:a="img",title:i,width:c="14"})=>PF("svg",{"aria-hidden":e,"aria-label":t,className:s,fill:"none",focusable:"false",height:r,role:a,viewBox:"0 0 14 14",width:c,xmlns:"http://www.w3.org/2000/svg",children:[i&&Xi("title",{children:i}),o&&Xi("desc",{children:o}),Xi("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"}),Xi("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"}),Xi("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"})]}),Wpe=null;var MF,id,OF;const Kpe=({title:e="UploadXml",desc:t="UploadXml",width:s="18",height:o="21",className:r,focusable:a="false"})=>MF("svg",{className:OF("i i-uploadXml",r),focusable:a,height:o,viewBox:"0 0 18 21",width:s,children:[id("title",{children:e}),id("desc",{children:t}),id("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"}),id("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"})]}),Qpe=null;var BF,Fh,DF;const Zpe=({title:e="Video Block",desc:t="Video Block",width:s="17",height:o="13",className:r,focusable:a="false"})=>BF("svg",{className:DF("i i-video-block",r),focusable:a,height:o,viewBox:"0 0 17 13",width:s,children:[Fh("title",{children:e}),Fh("desc",{children:t}),Fh("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"})]}),Ype=null;function HF(e){return(0,n.jsx)($t,{viewBox:"0 0 16 12",...e,children:(0,n.jsx)("g",{transform:"translate(-1 -2)",children:(0,n.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 FF,_6,VF;function Xpe(e){return FF(VF,{...e,viewBox:"0 0 14 10",children:[_6("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"}),_6("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 U6,cd,zF;const Jpe=({title:e="Visible",desc:t="Eye",width:s="16",height:o="12",className:r=null,focusable:a="false"})=>U6("svg",{className:zF("i i-visible",r),focusable:a,height:o,viewBox:"0 0 16 12",width:s,children:[cd("title",{children:e}),cd("desc",{children:t}),U6("g",{children:[cd("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"}),cd("path",{d:"M8 4a2 2 0 1 1 .001 3.999A2 2 0 0 1 8 4"})]})]}),qpe=null,$F=({"aria-hidden":e,"aria-label":t,className:s,desc:o="",height:r="20",role:a="img",title:i="",style:c,width:d="20"})=>(0,n.jsxs)("svg",{"aria-hidden":e,"aria-label":t,className:G()("i i-xMarkFilled",s),focusable:"false",height:r,role:a,style:c,viewBox:"0 0 20 20",width:d,xmlns:"http://www.w3.org/2000/svg",children:[i&&(0,n.jsx)("title",{children:i}),o&&(0,n.jsx)("desc",{children:o}),(0,n.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 G6;const W6={"rise-course-navigation":!0},_F={"ai-assistant-blocks":!0,"ai-text-to-video":!1,"ai-assistant-images":!0,"ai-assistant-magic-block-import":!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-business-creator-video-training":!1,"experiment-new-delivery-formats":!1,"rise-ai-avatar-prompt-testing":!1,"rise-com-360-upsell":!0},Vh=(0,u.createContext)(W6);Vh.displayName="FeatureFlagsContext";const{Provider:UF}=Vh;function GF({children:e,value:t}){const s=(0,u.useMemo)(()=>({..._F,...t,...W6}),[t]);return(0,n.jsx)(UF,{value:s,children:e})}function zh(){return(0,u.useContext)(Vh)}function WF(e){return zh()[e]}function tfe(e){function t(s){const o=zh();return G6(e,{...s,flags:o})}return t.displayName=`withFeatureFlags(${e.displayName||e.name})`,t}function sfe(e,t){return function(s){const o=r=>{const a=WF(e),i={...r,[t]:a};return G6(s,{...i})};return o.displayName=`withFeatureFlag(${s.displayName||s.name})`,o}}const K6=({children:e})=>(0,n.jsx)(n.Fragment,{children:e});K6.displayName="On";const Q6=({children:e})=>(0,n.jsx)(n.Fragment,{children:e});Q6.displayName="Off";const ld=({children:e,featureFlags:t})=>{const s=zh(),o=(0,u.useMemo)(()=>{const i=[].concat(t??[]);return i.length&&i.every(c=>s[c])},[t,s]),{on:r=null,off:a=null}=(0,u.useMemo)(()=>{const i={};return u.Children.forEach(e,c=>{switch(c.type.displayName){case ld.On.displayName:i.on=c;break;case ld.Off.displayName:i.off=c;break;default:i.on=e}}),i},[e]);return o?r:a};ld.On=K6,ld.Off=Q6;var Xt,Z6,KF,QF,Y6,ZF,YF,XF,$h,X6,JF,qF;const jn=_("app-header"),J6=ye("CDN_URI"),eV=({disabled:e,onClick:t})=>(0,n.jsx)("button",{className:jn("promo-btn"),disabled:e,onClick:t,type:"button",children:"New"}),q6=({children:e,disabled:t=!1,done:s=!1,onClick:o=()=>{},tooltipText:r="",icon:a=null,isNewPromo:i=!1,el:c="button",href:d=void 0,external:l=!1,capitalize:h=!0,...m})=>{const p=zt(),v=(0,u.useCallback)(async g=>{t||(o&&await o(g),d&&(l?window.location.href=d:p(d)))},[p,d,o,t,l]),C=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(wO,{disabled:t,el:d?"a":c,header:!s,headerDone:s,onClick:v,style:h?null:{textTransform:"none",fontWeight:600,fontSize:"1.4rem",letterSpacing:0},...m,children:e}),i&&(0,n.jsx)(eV,{disabled:t,onClick:v}),a]});return(0,n.jsx)(Me.ArcTooltip,{anchorAt:"left-center","data-testid":"AppHeaderButtonTooltipContainer",isEnabled:t&&!!r,text:r,children:C})};q6.propTypes={children:ge().node,disabled:ge().bool,done:ge().bool,el:ge().string,href:ge().string,onClick:ge().func,tooltipText:ge().string,dataBa:ge().string};const nfe=()=>Xt("div",{className:jn("divider")}),ofe=({href:e,label:t,onClick:s,xhref:o,...r})=>{const a=QF(),i=Y6(async c=>{if(o||c.preventDefault(),s)return s();e&&a(e)},[e,o,a,s]);return Xt("div",{className:jn("menu-btn"),...r,children:Xt("a",{"aria-label":t,className:jn("menu-close"),href:o,onClick:i,children:Xt(XF,{})})})},rfe=({onClick:e,label:t,...s})=>{const o=qF("rise-lesson-nav-dropdown-release"),r=JF(),a=!!r?.defaultLocaleId,c=window.location.search.includes("fromDashboard")||!r?.id,d=r?.id?$h.course({courseId:r.id}):null,l=Y6(h=>{e&&e(h)},[e]);return Xt(Z6,{children:o?Xt(Z6,{children:a?KF(X6,{className:jn("menu-btn"),onClick:l,to:$h.courseLocales,...s,children:[Xt(YF,{className:jn("back-icon"),icon:"fa-regular fa-chevron-left"}),Xt("div",{className:"visually-hidden-always",children:t})]}):c?Xt("a",{className:jn("menu-btn"),href:$h.dashboard,onClick:l,...s,children:Xt("img",{alt:t,src:`${J6}/assets/rise/assets/articulate-a-logo.svg`})}):Xt(X6,{className:jn("menu-btn"),onClick:l,to:d,...s,children:Xt("img",{alt:t,src:`${J6}/assets/rise/assets/articulate-a-logo.svg`})})}):Xt("div",{className:jn("menu-btn"),children:Xt(ZF,{ariaLabel:t,icon:"up-level-2",onClick:e,...s})})})},afe=({children:e,...t})=>Xt("div",{className:jn("owner-label"),...t,children:e});var dd=f(80588);const Pt=_("curtain"),tV={curtainLoading:"Your content is loading.",curtainOffline:"Your computer is offline.",curtainOfflineReconnecting:"Attempting to reconnect\u2026",curtainSessionTimedOut:"Your session has timed out.",curtainSessionTimedOutRefresh:"Refresh",curtainSessionTimedOutRestart:"Click refresh to restart your session.",curtainSomethingWrong:"Something went wrong.",curtainSomethingWrongRefresh:"Refresh",curtainSomethingWrongTryAgain:"Click to refresh and try again."},sV=({labels:e,loadingText:t,showHeader:s,status:o})=>{const r={...tV,...e},[a,i]=dd.useState(!1),c=()=>i(!0),d=dd.useRef(null);return dd.useEffect(()=>(d.current=setTimeout(c,1e4),()=>{d.current&&clearTimeout(d.current)}),[]),dd.useEffect(()=>{if(o==="error"){const l=new Error("There was a socket connection error. The renderReconnect curtain was displayed");hL.yf.logger.error(l.message,l)}},[o]),o==="fatalError"?(0,n.jsx)(oV,{labelCurtainSomethingWrong:r.curtainSomethingWrong,labelCurtainSomethingWrongRefresh:r.curtainSomethingWrongRefresh,labelCurtainSomethingWrongTryAgain:r.curtainSomethingWrongTryAgain,showHeader:s}):o==="error"&&a?(0,n.jsx)(aV,{labelCurtainSessionTimedOut:r.curtainSessionTimedOut,labelCurtainSessionTimedOutRefresh:r.curtainSessionTimedOutRefresh,labelCurtainSessionTimedOutRestart:r.curtainSessionTimedOutRestart,showHeader:s}):o==="error"?(0,n.jsx)(rV,{labelCurtainOffline:r.curtainOffline,labelCurtainOfflineReconnecting:r.curtainOfflineReconnecting,showHeader:s}):(0,n.jsx)(nV,{labelCurtainLoading:r.curtainLoading,showHeader:s,text:t})},e5=()=>window.location.reload(),nV=({labelCurtainLoading:e,showHeader:t,text:s})=>(0,n.jsx)("div",{className:Pt("container",{"show-header":t}),children:(0,n.jsxs)("div",{className:Pt(),children:[(0,n.jsx)("div",{className:Pt("spinner")}),(0,n.jsx)("div",{className:Pt("text"),children:s||e})]})}),oV=({labelCurtainSomethingWrong:e,labelCurtainSomethingWrongRefresh:t,labelCurtainSomethingWrongTryAgain:s,showHeader:o})=>(0,n.jsx)("div",{className:Pt("container",{"show-header":o}),children:(0,n.jsxs)("div",{className:Pt(),children:[(0,n.jsx)("div",{className:Pt("title"),children:e}),(0,n.jsx)("div",{className:Pt("description"),children:s}),(0,n.jsx)(Me.ArcButton,{onClick:e5,children:t})]})}),rV=({labelCurtainOffline:e,labelCurtainOfflineReconnecting:t,showHeader:s})=>(0,n.jsx)("div",{className:Pt("container",{"show-header":s}),children:(0,n.jsxs)("div",{className:Pt(),children:[(0,n.jsx)("div",{className:Pt("spinner",{reconnect:!0})}),(0,n.jsx)("div",{className:Pt("title"),children:e}),(0,n.jsx)("div",{className:Pt("description"),children:t})]})}),aV=({labelCurtainSessionTimedOut:e,labelCurtainSessionTimedOutRefresh:t,labelCurtainSessionTimedOutRestart:s,showHeader:o})=>(0,n.jsx)("div",{className:Pt("container",{"show-header":o}),children:(0,n.jsxs)("div",{className:Pt(),children:[(0,n.jsx)("div",{className:Pt("title"),children:e}),(0,n.jsx)("div",{className:Pt("description"),children:s}),(0,n.jsx)(Me.ArcButton,{onClick:e5,children:t})]})}),t5=sV,s5=new Intl.DisplayNames(["en"],{type:"language",fallback:"code"}),iV=(e,t)=>{const s=e?.toLowerCase();try{return t?.[s]?.authorDisplayName??s5.of(e)}catch(o){return console.warn(`Language ${e} invalid`,o),e}},cV=(e,t)=>{try{return t?.[e]?.learnerDisplayName??s5.of(e)}catch(s){return console.warn(`Language ${e} invalid`,s),e}},_h=()=>{const e=ra(),t=l1(e);return(0,u.useCallback)(o=>iV(o,t),[t])},lV=()=>{const e=ra(),t=l1(e);return(0,u.useCallback)(o=>cV(o,t),[t])};var dV=f(58117);function is(e){const{to:t,children:s}=e,o=(0,Ce.zy)(),r=(0,u.useMemo)(()=>g0(t,o),[o,t]);return(0,n.jsx)(Ce.N_,{...e,to:r,children:s})}function uV({children:e,locale:t,...s}){const o=(0,Ce.zy)(),r=Ds(),a=(0,u.useMemo)(()=>{const i=t===r?"":t,c=new URLSearchParams(o.search);return c.set("locale",i),o.pathname+"?"+c.toString()+o.hash},[r,t,o]);return(0,n.jsx)(is,{...s,to:a,children:e})}var wn=f(42965),hV=f(11007),ud=f.n(hV);const mV={keys:["End"],keyCode:wn.KEY_END},pV={keys:["Enter"],keyCode:wn.KEY_RETURN},fV={keys:["Home"],keyCode:wn.KEY_HOME},gV={keys:["Tab"],keyCode:wn.KEY_TAB},vV={keys:[" "],keyCode:wn.KEY_SPACE},CV={keys:["Escape","Esc"],keyCode:wn.KEY_ESCAPE},xV={keys:["ArrowUp"],keyCode:wn.KEY_UP},bV={keys:["ArrowDown"],keyCode:wn.KEY_DOWN},yV={keys:["ArrowLeft"],keyCode:wn.KEY_LEFT},LV={keys:["ArrowRight"],keyCode:wn.KEY_RIGHT},An=({keyCode:e,keys:t})=>s=>s.keyCode?s.keyCode===e:Tn()(s.key,t),SV=e=>e.altKey||e.ctrlKey||e.metaKey,n5=An(mV),Ca=An(pV),o5=An(fV),hd=An(gV),Uh=An(vV),cs=An(CV),xr=An(xV),br=An(bV),so=An(yV),no=An(LV),Ji=Nn()(Uh,Ca),ife=Nn()(hd,Ca),TV=Nn()(no,xr),NV=Nn()(so,br),kV=Nn()(xr,br),r5=Kn()(Ji),a5=25,IV=ud()((e,t)=>{e.scrollTop!==0&&(t.preventDefault(),e.scrollTop-=a5)}),EV=ud()((e,t,s)=>{t&&(s.preventDefault(),e.scrollTop+=a5)}),jV=(e,t)=>s=>{const o=EV(e,t),r=IV(e);os()([[br,o],[xr,r]])(s)},Rn=_("locales-dropdown"),wV=({backToStackCourseId:e,currentLocale:t,defaultLocale:s,locales:o,message:r,onChange:a,optionType:i,showMessageIndicator:c})=>{const d=(0,u.useRef)(null),l=(0,u.useRef)(null),[h,m]=(0,u.useState)(!1),[p,v]=(0,u.useState)(!1),C=(0,u.useMemo)(()=>o.filter(b=>b.localeCode!==s),[s,o]),g=(0,u.useMemo)(()=>o.find(b=>b.localeCode===s),[s,o]),x=(0,u.useMemo)(()=>o.find(b=>b.localeCode===t),[t,o]);(0,u.useLayoutEffect)(()=>{h&&p&&(d.current?.querySelector(`[data-locale="${t}"]`)?.focus(),v(!1))},[h,p,t]),(0,u.useEffect)(()=>{const b=S=>{cs(S)&&(l.current?.focus(),m(!1)),hd(S)&&setTimeout(()=>{d.current.contains(document.activeElement)||m(!1)},0)};return h&&document.addEventListener("keydown",b),()=>{document.removeEventListener("keydown",b)}},[h]);const L=(0,u.useCallback)(b=>{!h&&document.activeElement===b.currentTarget&&v(!0),m(!h)},[h]),T=(0,u.useCallback)(b=>{h&&!l.current?.contains(b?.target)&&m(!1)},[h]);(0,dV.A)(d,T),(0,u.useEffect)(()=>{const b=()=>setTimeout(()=>{document.activeElement.tagName==="IFRAME"&&T()},0);return window.addEventListener("blur",b),()=>window.removeEventListener("blur",b)},[T]);const y=(0,u.useCallback)(b=>{document.activeElement===b.currentTarget&&l.current?.focus(),m(!1),a?.(b.currentTarget.getAttribute("data-locale"))},[a]);return(0,n.jsxs)("div",{className:Rn({isOpen:h}),children:[(0,n.jsx)("div",{className:Rn("trigger-wrap"),children:(0,n.jsxs)("button",{className:Rn("trigger"),onClick:L,ref:l,type:"button",children:[c&&(0,n.jsx)("div",{className:Rn("message-indicator")}),(0,n.jsx)(ie,{name:"globe"}),x.displayName,(0,n.jsx)(ie,{name:"chevron-down"})]})}),(0,n.jsxs)("div",{className:Rn("contents"),ref:d,children:[r,(0,n.jsx)("div",{className:Rn("grouping-header"),children:"Source"}),(0,n.jsx)(i5,{checked:s===t,locale:g,onClick:y,type:i}),(0,n.jsx)("div",{className:Rn("grouping-header"),children:"Translations"}),C.map(b=>(0,n.jsx)(i5,{checked:b.localeCode===t,locale:b,onClick:y,type:i},b.localeCode)),e&&(0,n.jsx)("a",{className:Rn("stack-button"),href:`/manage/locales/${e}`,children:"Back to Stack"})]})]})},i5=({checked:e,locale:t,onClick:s,type:o})=>o==="link"?(0,n.jsx)(uV,{className:Rn("option",{checked:e}),"data-locale":t.localeCode,locale:t.localeCode,onClick:s,children:t.displayName},t.localeCode):(0,n.jsx)("button",{className:Rn("option",{checked:e}),"data-locale":t.localeCode,onClick:s,type:"button",children:t.displayName},t.localeCode),AV=({hideBackToStack:e,...t})=>{const s=Re(),{currentLocale:o}=Ze(),r=xl(),a=Ds(),i=_h(),c=e?void 0:s?.id,d=(0,u.useMemo)(()=>r.map(l=>({localeCode:l.locale,displayName:i(l.locale)})),[i,r]);return(0,n.jsx)(wV,{backToStackCourseId:c,currentLocale:o,defaultLocale:a,locales:d,optionType:"link",...t})},c5=window.location.origin,RV=1e3,PV="course:ready",l5="localizedSharePreview:ready",MV="preview:selectLocale",Gh="localizedSharePreview:toggleCurtain",d5="localizedSharePreview:togglePreview",xa=_("localized-share-preview"),ba=!!window.frameElement,u5=e=>(0,jt.HX)(e)&&hg(),OV=e=>u5(e)&&!ba,BV=(e,t)=>window.parent?.postMessage({type:e,data:t});let h5=null;const DV=({children:e})=>{const t=it(),s=zt(),o=(0,Ce.zy)(),{currentLocale:r,setCurrentLocale:a}=Ze(),i=Ds(),c=XE(),d=ee(),h=!!(d&&"hasPassword"in d?d.hasPassword:void 0)||mg(),m=(0,u.useRef)(null),[p,v]=(0,u.useState)(!1),[C,g]=(0,u.useState)(!1),[x,L]=(0,u.useState)(!h),T=(0,u.useMemo)(()=>`${c5}/share/${window.shareId}#/?locale=${r}`,[]),[y,b]=(0,u.useState)(null),[S,N]=(0,u.useState)(r),[k,E]=(0,u.useState)(!1),[I,P]=(0,u.useState)(!ba),A=(O,j)=>m.current?.contentWindow.postMessage({type:O,data:j});(0,u.useEffect)(()=>{ba||A(MV,r)},[r]),(0,u.useEffect)(()=>{ba&&(BV(l5),setTimeout(()=>E(!0),0))},[]),(0,u.useEffect)(()=>{const O=j=>{if(j.origin!==c5)return;const M=j.data?.type,z=j.data?.data;if(ba)switch(M){case Gh:{P(z);break}case d5:{z?(N(r),b(o),t(q0(!0)),a(i),s("/",{replace:!0})):(t(q0(!1)),a(S),s(y.pathname+y.search+y.hash||"/",{replace:!0})),document.querySelector(".cover")?.scrollTo(0,0),document.querySelector(".page-wrap")?.scrollTo(0,0);break}}else switch(M){case PV:{P(!1);break}case l5:{L(!0);break}}};return window.addEventListener("message",O),()=>{window.removeEventListener("message",O)}},[i,t,s,r,o,S,y,a]);const w=(0,u.useCallback)(()=>{const O=!p;clearTimeout(h5),g(!0),A(Gh,!0),h5=setTimeout(()=>{g(!1),A(Gh,!1),v(O)},RV),setTimeout(()=>{A(d5,O)},0)},[p]);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:xa("curtain",{hide:!I}),children:(0,n.jsx)(t5,{status:"loading"})}),ba?k&&e:(0,n.jsxs)("div",{className:xa(),children:[x&&(0,n.jsx)(NO,{className:xa("header"),localesDropdown:!p&&!C&&(0,n.jsx)(AV,{hideBackToStack:!0}),title:c,children:(0,n.jsx)(q6,{capitalize:!1,className:xa("preview-button"),disabled:C,done:!0,onClick:w,children:p?"Close Learner Preview":(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(ie,{className:xa("preview-button-icon"),name:"play-regular"}),"Preview as Learner"]})})}),(0,n.jsx)("iframe",{allowFullScreen:!0,"aria-label":"Course preview",className:xa("iframe"),ref:m,src:T})]})]})},HV=(0,u.lazy)(()=>f.e("_b106").then(f.t.bind(f,63744,23))),FV=({children:e})=>{const t=ee(),{setCurrentLocale:s,currentLocale:o}=Ze(),r=Te(t?.title),a=ra()?.l10n?.languageCodeMetadata??{},i=Object.entries(a).map(([c,d])=>({code:c,learnerDisplayName:d.learnerDisplayName})).sort((c,d)=>c.learnerDisplayName.localeCompare(d.learnerDisplayName));return(0,n.jsx)(u.Suspense,{fallback:null,children:(0,n.jsx)(HV,{courseTitle:r,currentLocale:o,locales:i,setCurrentLocale:s,children:e})})};function VV({children:e}){const t=ee();return t&&u5(t)?(0,n.jsx)(DV,{children:e}):eo.isInstantLink?(0,n.jsx)(FV,{children:e}):(0,n.jsx)(n.Fragment,{children:e})}const Wh=(0,u.createContext)(void 0);Wh.displayName="RiseComPartnerTrackingContext";function zV({children:e,onTrack:t}){return(0,n.jsx)(Wh.Provider,{value:t,children:e})}function m5(){return(0,u.useContext)(Wh)}var $V=f(5605),_V=f.n($V),UV=f(79629),GV=f.n(UV);class oo{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 t=/iPhone|iPod/.test(window.navigator.userAgent)&&!window.MSStream,s=/Safari/.test(window.navigator.userAgent)&&/Apple Computer/.test(window.navigator.vendor),o=/CriOS/.test(window.navigator.userAgent);return t&&s&&!o}static get isSafari9(){if(!window||!window.navigator)return!1;const t=/Safari/.test(window.navigator.userAgent)&&/Apple Computer/.test(window.navigator.vendor),s=/version\/9./i.test(window.navigator.userAgent);return t&&s}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}}const WV=Xc()(en()),p5=e=>t=>`${e}/${t.id}`,KV=(e,t)=>F2()({data:(0,le.action)(t),method:"POST",url:uL(WV(`/${t}`),xe()("url"),e),...Sn()(["headers","withCredentials"],e)}),QV=e=>(t,s)=>k2()(t,p5(s),Kh(e,s)),ZV=e=>st()(De()({},["response","data"]),Ms()(xe()("type"),(0,le.error)(e))),YV=(e,t)=>s=>e.postRequest?e.postRequest(t,s):s,f5=e=>t=>s=>o=>al(o,KV(t,s),e,v0()(ZV(s),Kn()(Kr()("data"),xe()("data"))),GV()(Gt()(xe()("error"),Zo().Rejected,Zo().of)),YV(t,{type:s,payload:o})),XV=({url:e,method:t,data:s,headers:o})=>{if(oo.isFirefox){const r=new Blob([JSON.stringify(s)],{type:"application/json"}),a=window.navigator.sendBeacon(e,r);return Promise.resolve({type:s.type,payload:{...s.payload,queued:a}})}return fetch(e,{method:t,credentials:"include",headers:{"Content-Type":"application/json",...o},body:JSON.stringify(s),keepalive:!0}).then(r=>r.json()).then(Wr()("data"))},JV=Zo().fromPromise(XV),Kh=gl()(3,f5(bi)),qV=gl()(3,f5(JV)),ez=e=>(t,s)=>_V()(t,p5(s),Kh(e,s)),tz=e=>({debounce:QV(e),send:Kh(e),fetchWithKeepAlive:qV(e),throttle:ez(e)}),sz=`${ye("RISE_RUNTIME_URI")}/ducks`,nz=tz({headers:()=>({"x-rise-authoring-client":"0b5d33a19561b156b3e1aa4feb90d44ecdd3c73e"}),postRequest:(e,t)=>t,url:sz,withCredentials:!0});var oz=f(98366),rz=f.n(oz);const az=rz()({context:{app:{name:"rise-frontend"}},payload:{articulate_user:Ob(),userRole:Hb(),subId:Fb(),subPlan:Vb(),subStatus:zb()}}),iz=en()("rise/track/")("TRACK"),cz=e=>({...e,context:{locale:navigator.language,device:A2(),channel:j2(),userAgentData:w2(),page:R2(),userAgent:P2(),...e.context}}),lz=(e,t)=>({...e,properties:{...E2(t),...e.properties}}),dz=e=>(t,s)=>{const o=s(),r=c0();let a=cz(e);return a=lz(a,o),a.userId=a.userId??r,a.author=a.author??r,Se&&(a=az(a)),t(nz.send(iz)(a))};function uz({children:e}){const t=it(),s=(0,u.useCallback)(o=>t(dz(o)),[t]);return(0,n.jsx)(zV,{onTrack:s,children:e})}const ro=({id:e="portal",childType:t="other",attributes:s}={})=>{const o=document.querySelector('dialog[open][aria-modal="true"]');let r,a;if(o!=null&&t!=="dialog"?(e=`${e}-dialog`,r=o.querySelector(`#${e}`),a=o):(r=document.querySelector(`#${e}`),a=document.body),r==null&&(r=document.createElement("div"),r.setAttribute("id",e),a.appendChild(r)),s)for(const[i,c]of Object.entries(s))r.setAttribute(i,c);return r},g5=ro();function hz(e){e?e.appendChild(g5):document.body.appendChild(g5)}function mz(e){return function({Default:s,className:o,...r}){const a=`brand--${e}`,i=o?`${o} ${a}`:a;return(0,n.jsx)(s,{...r,className:i})}}const ya=mz("ui"),Qh=e=>e==="<p><br></p>"?"":e,Zh="data-change-path",Yh="data-l10n-id",v5=(e,t)=>{if(e)return t?["l10n","translations",t,e.getAttribute(Yh)]:JSON.parse(e.getAttribute(Zh))};let ao;const pz=()=>{const e=La();e&&e.classList.add("selected")},md=()=>{La()&&ao&&qi(ao)},fz=(e,t)=>s=>{const o=document.elementsFromPoint(s.clientX,s.clientY),r=t?o.find(a=>a.getAttribute(Yh)):o.find(a=>a.getAttribute(Zh));r!=null&&(e&&ao!==r&&(ao=r,e(v5(r,t))),qi(r))},gz=(e,t)=>s=>{s.stopPropagation(),s.preventDefault();const o=document.elementsFromPoint(s.clientX,s.clientY),r=t?o.find(a=>a.getAttribute(Yh)):o.find(a=>a.getAttribute(Zh));if(r){qi(r),x5();const a=v5(r,t);a&&(e(a),pz())}},Xh=()=>document.getElementById("target-container"),La=()=>document.getElementById("target-highlight"),C5=()=>{if(Xh())return;const t=document.createElement("div");t.classList.add("target-container"),t.id="target-container",document.body.appendChild(t);const s=document.createElement("div");s.classList.add("target-highlight"),s.id="target-highlight",t.appendChild(s)},x5=()=>{const e=La();e&&e.classList.add("selected")},vz=({top:e,left:t,width:s,height:o})=>{const r=document.querySelector("[data-page=true]")?.getBoundingClientRect().width??window.innerWidth-20;return s<r&&(e=e-10,o=o+20,t=t-20,s=s+40),{top:e,left:t,width:s,height:o}},qi=e=>{const{top:t,left:s,width:o,height:r}=vz(e.getBoundingClientRect()),a=La();a&&(e!==ao&&a.classList.contains("selected")&&a.classList.remove("selected"),a.classList.add("active"),Object.assign(a.style,{top:`${t}px`,left:`${s}px`,width:`${o}px`,height:`${r}px`}),ao=e)},Cz=()=>{window.removeEventListener("scroll",md,{capture:!0}),pd()},pd=()=>{La()?.classList?.remove("active"),La()?.classList?.remove("selected")};let Sa,fd;const xz=({locale:e})=>({isActive:t},s)=>{const o=!!Xh();if(t){if(Sa)return Sa;C5();const r=fz(s,e);let a;return Sa=new Promise((i,c)=>{a=gz(i,e),fd=c,document.body.classList.add("target-mode"),window.addEventListener("mousemove",r,!0),window.addEventListener("click",a,!0),window.addEventListener("resize",pd,!0),window.addEventListener("scroll",md,!0)}).finally(()=>{Sa=null,fd=null,document.body.classList.remove("target-mode"),window.removeEventListener("mousemove",r,!0),window.removeEventListener("click",a,!0),window.removeEventListener("resize",pd,!0),window.removeEventListener("scroll",md,!0)}),Sa}else pd(),Xh()?.remove(),ao=null;return o&&fd!=null&&fd(new Error("cancelled")),Promise.resolve()},bz=e=>{let t=e.findIndex(s=>s==="items");return t===-1?e:e.slice(0,t+2)},b5=e=>{const t=(0,$r.Ce)(e);return t?t.type==="translation"||t.type==="caption"&&t.l10nId?document.querySelector(`[data-l10n-id='${t.l10nId}']`)??document.querySelector(`[data-l10n-id*='${t.l10nId}']`):document.querySelector(`[data-change-path='${JSON.stringify(bz(e))}']`):null},yz=e=>{C5(),window.addEventListener("scroll",md,{capture:!0}),document.body.classList.add("target-mode");const t=b5(e);t&&qi(t)},Lz=e=>{if(!Sa)return;const t=b5(e);t&&(ao!==t&&(ao=t),qi(t),x5(),t.scrollIntoView({behavior:"smooth",block:"center"}))},Sz=e=>["course",e],y5=(e,t)=>["lessons",{id:e},t],Tz=(e,t)=>[...y5(e,"items"),{id:t}],Ta=e=>JSON.stringify(Sz(e)),L5=(e,t)=>JSON.stringify(y5(e,t)),Nz=(e,t)=>JSON.stringify(Tz(e,t)),ls={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"},Na=(e,t)=>{const s={};for(let o=0;o<e.length;o++){const r=e[o];if(typeof r=="object"&&r.id){const a=e[o-1],i=a==="items"?t.shift():a.replace(/s$/,"");s[`${i??"item"}Id`]=r.id}}return s};function Jh(e,t){const s=(0,u.useMemo)(()=>matchMedia(`(${e}: ${t*.0625}em)`),[e,t]),[o,r]=(0,u.useState)(s.matches);return(0,u.useEffect)(()=>{const a=s.addEventListener??s.addListener,i=s.removeEventListener??s.removeListener;return a.call(s,"change",c),()=>i.call(s,"change",c);function c(){r(s.matches)}},[s]),o}const kz="matches";function Iz(e,t,s,o="withPxToEmMedia"){return r=>{function a(i){const c=Jh(e,t);return(0,n.jsx)(r,{...i,[s??kz]:c})}return a.displayName=`${o}(${r.displayName||r.name})`,a}}function bt(e){return Jh("max-width",e-1)}function mfe(e){return Jh("min-width",e)}function Ez(e,t,s){return Iz("min-width",e,t,s)}const jz=()=>bt(1200),wz=()=>bt(768),qh=()=>bt(480),em=_("cover");function Az(e,t,s){return e===1?t:s}function Rz(){const e=d3(),t=ue(),s=Az(e,t?.coverLesson||"Lesson",t?.coverLessons||"Lessons");return(0,n.jsxs)("li",{className:em("num-lessons"),role:"listitem",children:[(0,n.jsx)("span",{className:em("num-lessons-value"),children:e}),"\xA0",(0,n.jsx)("span",{className:em("num-lessons-units"),children:s})]})}var Pz=f(22630),dn=f.n(Pz);const Mz=36e5,tm=_("cover");function Oz(e){return Math.round(10*e)/10}function S5(e,t,s){return e===1?t:s}function Bz(){const{showTimeToComplete:e,timeToComplete:t}=ee(),s=ue();if(!e)return null;const o=t>=Mz,r=o?Oz(dn().duration(t).asHours()):dn().duration(t).asMinutes(),a=o?S5(r,s?.coverHour||"Hour",s?.coverHours||"Hours"):S5(r,s?.coverMinute||"Minute",s?.coverMinutes||"Minutes");return(0,n.jsxs)("li",{className:tm("time-to-complete"),role:"listitem",children:[(0,n.jsx)("span",{className:tm("time-to-complete-value"),children:r}),"\xA0",(0,n.jsx)("span",{className:tm("time-to-complete-units"),children:a})]})}const sm=_("cover");function nm(){const e=ue();return Se?(0,n.jsxs)("section",{className:sm("course-length-section"),children:[(0,n.jsx)("h2",{className:sm("course-length-title"),children:e?.a11yCoverCourseLength||"Course Length"}),(0,n.jsxs)("ul",{className:sm("course-length-list"),role:"list",children:[(0,n.jsx)(Rz,{}),(0,n.jsx)(Bz,{})]})]}):null}const Dz=_("cover"),Hz="MMMM D, YYYY";function T5({format:e=Hz}){const{publishedAt:t}=ee(),s=ue(),o=Dz("details-content-published-at");if(!t)return null;const r=dn()(t);return r.isValid()?(0,n.jsxs)("div",{className:o,children:[s?.coverPublished||"Published"," ",r.format(e)]}):null}var Fz=f(91104),ec=f.n(Fz);const N5=ec()(async()=>(await f.e("math").then(f.bind(f,95861))).browserAdaptor(),{promise:!0}),k5=ec()(async()=>{const[{TeX:e},{AllPackages:t}]=await Promise.all([f.e("math").then(f.t.bind(f,96025,23)),f.e("math").then(f.bind(f,26020))]);return new e({packages:t})}),I5=ec()(async()=>{const e=await f.e("math").then(f.t.bind(f,78847,23));return new e.SVG({fontCache:"local"})},{promise:!0}),E5=ec()(async()=>{const[e,t,s,{RegisterHTMLHandler:o},{mathjax:r}]=await Promise.all([N5(),k5(),I5(),f.e("math").then(f.bind(f,67684)),f.e("math").then(f.bind(f,78626))]);return o(e),r.document(document,{InputJax:t,OutputJax:s})},{promise:!0}),Vz=ec()(async e=>{const t=new CSSStyleSheet;e.adoptedStyleSheets.push(t);const[s,o]=await Promise.all([I5(),E5()]),r=s.styleSheet(o);r instanceof HTMLStyleElement&&await t.replace(r.innerText)},{promise:!0});class zz extends HTMLElement{static observedAttributes=["long-description","short-description","tex"];_ready;_anchor=this;_renderController;constructor(){super(),this._ready=Vz(this.ownerDocument)}get longDescription(){return this.getAttribute("long-description")??null}set longDescription(t){t==null?this.removeAttribute("long-description"):this.setAttribute("long-description",t)}get shortDescription(){return this.getAttribute("short-description")??null}set shortDescription(t){t==null?this.removeAttribute("short-description"):this.setAttribute("short-description",t)}get tex(){return this.getAttribute("tex")??""}set tex(t){this.setAttribute("tex",t)}disconnectedCallback(){this._renderController?.abort()}attributeChangedCallback(t){t==="tex"?this._renderTex():this._renderAria()}async _renderTex(){this._renderController?.abort();const t=this._renderController=new AbortController,[s,o,r]=await Promise.all([E5(),N5(),k5(),this._ready]);if(t.signal.aborted)return;r.reset();const{tex:a}=this,i=a.includes("begin{")?a:String.raw`\begin{align*}${a}\end{align*}`,c=s.convert(i),d=o.firstChild(c),l=document.evaluate("//@data-mjx-error",d,null,XPathResult.STRING_TYPE).stringValue;if(l.length>0){let h=l;if(l===String.raw`Missing \begin{align*} or extra \end{align*}`){const m=s.convert(a),p=o.firstChild(m);h=document.evaluate("//@data-mjx-error",p,null,XPathResult.STRING_TYPE).stringValue??"An error occured"}this.dispatchEvent(new $z("matherror",{bubbles:!1,composed:!1,detail:{errorMessage:h}})),this._anchor.replaceChildren()}else this._anchor.replaceChildren(d);await this._renderAria()}async _renderAria(){if(await this._ready,this._renderController?.signal.aborted||this.firstElementChild==null)return;const t=[this.shortDescription,this.longDescription].filter(s=>(s?.length??0)>0).join(`

`);this.firstElementChild.ariaLabel=t.trim().length===0?null:t}}customElements.define("rise-math",zz);class $z extends CustomEvent{}var un=f(63955);function om(e){if(e==null)return{value:e};let t;if(typeof e=="string"?t=e:t=e.innerHTML,!t.includes("data-editor-id"))return{value:e};const s=t.match(/^<[^>]+data-editor-id=["']([^"']+)["'][^>]*>/);if(s){const o=s[1],r=t.match(/^<[^>]*>(.*)<\/[^>]*>$/s),a=r?r[1]:t;return{editorId:o,value:typeof e=="string"?a:e}}return{value:e}}const j5=(e="")=>e.split(".").slice(-2).join("."),w5=ce()(j5,ye),_z=e=>e.includes("#/lessons/"),zs=e=>{if(!e||Uz(e)||_z(e))return!1;e.slice(0,2)==="//"&&(e=`https:${e}`);try{const{hostname:t}=new URL(e),s=j5(t);return s!==w5("ARTICULATE_DOMAIN")&&s!==w5("RISE_DOMAIN")}catch{return!1}},Uz=e=>e?e.slice(0,7)==="mailto:":!1,rm=_("external-link-disabled-popover");function gd(e={}){const{delay:t=200}=e,s=u.useRef(new Map),o=u.useCallback(c=>{const d=s.current.get(c);d&&clearTimeout(d);const l=setTimeout(()=>{const h=`trial-external-link-popover-${c}`;Me.ArcPopover.handlePopover(h,"show"),s.current.delete(c)},t);s.current.set(c,l)},[t]),r=u.useCallback(c=>{const d=s.current.get(c);d&&clearTimeout(d);const l=setTimeout(()=>{const h=`trial-external-link-popover-${c}`;Me.ArcPopover.handlePopover(h,"hide"),s.current.delete(c)},t);s.current.set(c,l)},[t]),a=u.useCallback(c=>{const d=`trial-external-link-popover-${c}`;Me.ArcPopover.handlePopover(d,"show")},[]),i=u.useCallback(c=>{const d=`trial-external-link-popover-${c}`;Me.ArcPopover.handlePopover(d,"hide")},[]);return u.useEffect(()=>{const c=s.current;return()=>{c.forEach(d=>clearTimeout(d)),c.clear()}},[]),{handleMouseEnter:o,handleMouseLeave:r,handleFocus:a,handleBlur:i}}function Gz(e){return t=>{const{handleMouseEnter:s,handleMouseLeave:o,handleFocus:r,handleBlur:a}=gd(),i=u.useId();return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(e,{...t,attachmentId:i,onLinkBlur:a,onLinkFocus:r,onLinkMouseEnter:s,onLinkMouseLeave:o}),t.externalLinksDisabled&&(0,n.jsx)(vd,{anchorId:i})]})}}const vd=({anchorId:e})=>{const t=`trial-external-link-popover-${e}`;return u.useEffect(()=>{const s=o=>{o.key==="Escape"&&Me.ArcPopover.handlePopover(t,"hide")};return document.addEventListener("keydown",s),()=>{document.removeEventListener("keydown",s)}},[t]),(0,n.jsx)(Me.ArcPopover,{alternateAnchorId:e,anchorAt:"top-center",boundary:"flip",className:rm(),hasTail:!0,headerSlot:(0,n.jsx)("div",{className:rm("header"),children:"Subscribe to unlock full access"}),hidePopoverButton:!0,id:t,offset:8,popover:"manual",variant:"common",children:(0,n.jsx)("div",{className:rm("content"),children:"To protect learners from phishing, scams, or malicious redirects, external links are disabled when sharing with Quick Share during your trial."})})},Wz=({allowTabNavigation:e=!0,className:t="","data-testid":s,id:o,ref:r,tagName:a="div",value:i})=>{const c=Re(),d=c&&"externalLinksDisabled"in c?c.externalLinksDisabled:!1,l=gs(),h=(0,u.useRef)(null),m=Te(i),[p,v]=(0,u.useState)([]),{handleMouseEnter:C,handleMouseLeave:g,handleFocus:x,handleBlur:L}=gd(),{currentLocale:T}=Ze(),y=Ds(),b=(0,u.useMemo)(()=>{const S=o0(m),N=Array.prototype.concat(t$,s$,Yz,Qz,Zz(T,y),d?Xz:[],e?qz:Jz,e$(l?.a11yNoticeLinkNewTab));return Kz(N,S)},[e,T,y,d,l,m]);return(0,u.useLayoutEffect)(()=>{if(!d||!h.current){v([]);return}const S=[];h.current.querySelectorAll("[data-tooltip-target]").forEach((k,E)=>{const I=k.nextElementSibling;if(I?.hasAttribute("data-external")){const P=I.getAttribute("data-external-text")||"",A=I.getAttribute("data-external-id")||`link-${E}`;S.push({placeholder:k,text:P,id:A})}}),v(S)},[b,d]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{"aria-hidden":e?void 0:!0,className:`${t} brand--linkColor`,"data-l10n-id":wt(i),"data-testid":s,id:o,ref:S=>{h.current=S,typeof r=="function"?r(S):r&&(r.current=S)},children:(0,u.createElement)(a,{className:"fr-view rise-tiptap",dangerouslySetInnerHTML:(0,u.useMemo)(()=>({__html:b}),[b])})}),p.map(({placeholder:S,text:N,id:k})=>(0,n.jsxs)(u.Fragment,{children:[(0,un.createPortal)((0,n.jsx)("span",{id:k,onBlur:()=>L(k),onFocus:()=>x(k),onMouseEnter:()=>C(k),onMouseLeave:()=>g(k),role:"button",style:{cursor:"pointer",color:"var(--arc-color-text-disabled)",textDecoration:"underline"},tabIndex:0,children:N}),S),(0,n.jsx)(vd,{anchorId:k})]},k))]})};function Kz(e,t){const s=document.createElement("div");s.innerHTML=t;for(const o of e)o(s);return s.innerHTML}const A5=e=>e.getAttribute("data-link-type")==="lesson"?!0:(e.getAttribute("href")??"").startsWith("#/lessons/");function Qz(e){for(const t of e.querySelectorAll("a")){A5(t)?t.removeAttribute("target"):t.setAttribute("target","_blank");const o=new Set((t.getAttribute("rel")??"").split(/\s+/));o.delete("opener"),o.add("noopener"),o.add("noreferrer"),o.add("nofollow"),t.setAttribute("rel",Array.from(o).join(" "))}}function Zz(e,t){return s=>{if(!(!e||e===t)){for(const o of s.querySelectorAll("a"))if(A5(o)){const r=o.getAttribute("href");if(r){const a=r.includes("?")?"&":"?";o.setAttribute("href",`${r}${a}locale=${encodeURIComponent(e)}`)}}}}}function Yz(e){for(const t of e.querySelectorAll("table"))if(!t.parentElement.classList.contains("rise-table-wrap")){const s=document.createElement("div");s.className="rise-table-wrap",t.parentNode.replaceChild(s,t),s.appendChild(t)}}function Xz(e){let t=0;const s=[];for(const o of e.querySelectorAll("a"))if(zs(o.href)){const r=o.textContent||"",a=`external-link-anchor-${Date.now()}-${t++}`;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),s.push({placeholder:i,text:r,id:a})}return s}function Jz(e){for(const t of e.querySelectorAll("a"))t.setAttribute("aria-hidden","true"),t.setAttribute("tabindex","-1")}function qz(e){for(const t of e.querySelectorAll("a"))t.removeAttribute("aria-hidden"),t.hasAttribute("data-external")?t.setAttribute("tabindex","0"):t.removeAttribute("tabindex")}function e$(e="(opens in a new tab)"){return t=>{for(const s of t.querySelectorAll('a[target="_blank"]')){const o=document.createElement("span");o.className="visually-hidden-always",o.textContent=e,s.appendChild(o)}}}function t$(e){return om(e).value}function s$(e){for(const t of e.querySelectorAll("rise-math")){const{shortDescription:s,longDescription:o}=t,r=t.querySelector('[slot="short-description"]'),a=t.querySelector('[slot="long-description"]');s==null&&r!=null&&(t.shortDescription=r.textContent),o==null&&a!=null&&(t.longDescription=a.textContent)}return e}const be=Wz,R5=_("cover");function n$(){const e=ee(),t=jz(),s=Te(e?.description);if(!s)return null;const o=Ta("description"),r=(0,jt.uW)(e?.description)?{"data-l10n-id":e?.description?.l10nId}:{"data-change-path":o};return(0,n.jsx)("div",{...r,children:(0,n.jsxs)("section",{className:R5("details-content-section"),children:[t?(0,n.jsx)(nm,{}):(0,n.jsx)(T5,{}),(0,n.jsx)(be,{className:R5("details-content-description"),value:Qh(s)},"text")]})})}const am=e=>{if(!e)return"";const t=dn()(e),s=dn()(),o=dn()(s).add(24,"hours");return t.isBefore(s)?"Overdue":t.isBefore(o)?`Due in ${s.to(t,!0)}`:`Due ${t.format("MMM D")}`},P5=e=>dn()(e).isSameOrBefore(dn()().add(3,"d"),"days");function o$({Default:e,...t}){const{dueAt:s}=t,r=s&&P5(s)?"brand--background":"brand--color";return(0,n.jsx)(e,{...t,className:r})}const r$=({children:e,disabled:t,onClick:s,to:o,...r},a)=>t?(0,n.jsx)("a",{"aria-disabled":"true",ref:a,role:"link",...r,children:e}):(0,n.jsx)(is,{onClick:s,ref:a,to:o,...r,children:e}),a$=(0,u.forwardRef)(r$);function i$(){return!(typeof document>"u"||!("startViewTransition"in document)||oo.isFirefox)}function c$(e){if(!i$()){const t=e();return Promise.resolve(t)}return new Promise(t=>{try{document.startViewTransition(async()=>{await e()}).finished.then(()=>t()).catch(()=>t())}catch{const s=e();Promise.resolve(s).then(()=>t()).catch(()=>t())}})}let im=!1;function io(e,t="default"){return im?Promise.resolve():(im=!0,c$(()=>{document.documentElement.classList.add(`transition-${t}`),e()}).then(()=>{document.documentElement.classList.remove(`transition-${t}`)}).finally(()=>{im=!1}))}const M5=_("cover"),Jt=we("CoverAction",()=>{const e=ee(),{trackingQuizId:t,theme:s}=e,o=zt(),r=window.viewType==="preview",a=l3(),i=gw(),c=ua(),d=a?.id,l=s?.showStartButton??!0,h=wb()?c===100:jb(),m=i!=null,p=m?i:d,v=!r&&Se&&(h||!m&&!t),{courseCTALabel:C}=Uw({isCourseComplete:h,percentCourseComplete:c}),g=G()("cover__header-content-action-link","overview__button-enrolled",{"overview__start-again":v}),x=L=>{L.preventDefault(),io(()=>{o(Os(p))},"cover-to-lesson")};return l&&C?(0,n.jsx)("div",{className:M5("header-content-action-wrapper"),children:(0,n.jsx)(a$,{className:g,onClick:x,to:Os(p),children:(0,n.jsx)("span",{className:M5("header-content-action-link-text"),children:C})})}):null}),tc=en()("partner-content-course-author__"),l$=({partnerContentAuthors:e,darkText:t,isImage:s,learn:o,lesson:r,isOnePage:a,selectedContentId:i})=>{const c=Hs()(Ae()("id",i),e),d=Vt()(["data","authors"],c),h=(r?d:e).filter(g=>g.name),m=G()(tc("author-container"),{[tc("author-container-padding-top")]:t}),p=G()({[tc("gray-text")]:!o&&!a}),v=G()(tc("author-image")),C=g=>`url(${ca({width:"76",height:"76",imageKey:g.image})})`;return(0,n.jsxs)("section",{children:[(0,n.jsx)("h2",{className:"visually-hidden",children:"Authors"}),(0,n.jsx)("ol",{className:m,"data-testid":"partner-content-course-author-container",role:"list",children:h.map(g=>(0,n.jsxs)("li",{className:tc("author"),"data-testid":"partner-content-course-author",role:"listitem",children:[(0,n.jsx)("div",{"aria-hidden":"true",className:v,"data-testid":"partner-content-course-author-image",disabled:s,style:{backgroundImage:C(g)}}),(0,n.jsx)("span",{className:p,children:g.name})]},g.name))})]})};function d$(e){return e.partnerContent}function u$(){return ae(d$)}function h$(e){return e?.partnerContent?.content??[]}function yr(){return ae(h$)}function cm(){const t=ee()?.selectedAuthorId,s=yr();return(0,u.useMemo)(()=>s?.find(o=>o.id===t),[s,t])}function m$(){const e=cm();return(0,u.useMemo)(()=>e?.data?.authors??null,[e])}function p$(){return yr()?.[0]?.data?.authors}const ka=_("cover"),f$=()=>{const e=C1();if(e==null)return null;const{avatar:t,authorName:s,title:o}=e;return(0,n.jsxs)("div",{className:ka("author-with-title"),children:[(0,n.jsx)(O5,{avatar:t}),(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{className:ka("author-name"),children:s}),(0,n.jsx)("div",{className:ka("author-title"),children:o})]})]})},O5=({avatar:e})=>{const t=ka("header-content-authors-avatar");return e?(0,n.jsx)("div",{className:t,"data-testid":"cover-header-content-authors-avatar",style:{backgroundImage:`url(${mt(e)})`}}):(0,n.jsx)("div",{className:t,"data-testid":"cover-header-content-authors-avatar",children:(0,n.jsx)(Eh,{decorative:!0})})},Pn=we("CoverAuthors",({className:e})=>{const{color:t,partnerContentId:s,selectedAuthorId:o,theme:r,themeId:a}=ee(),{accentContrast:i,coverPageType:c}=r??{},{authorName:d,avatar:l}=C1()??{},h=ue(),m=m$(),p=!!s&&!!m,C=bt(768)&&$j(a,c),g=c===se.LEFT_OVERLAY||c===se.CENTERED_OVERLAY||C;if(o==="none")return null;const x=d||"Unknown User",L=ka("header-content-authors").mix(e),T=ka("header-content-authors-name");return p?(0,n.jsx)("div",{className:L,"data-testid":"cover-authors",children:(0,n.jsx)(l$,{accentContrast:i,color:t,isImage:g,learn:!0,partnerContentAuthors:m})}):(0,n.jsxs)("div",{className:L,"data-testid":"cover-authors",children:[(0,n.jsx)(O5,{avatar:l,isImage:g}),(0,n.jsxs)("div",{className:T,"data-testid":"cover-header-content-authors-name",children:[(0,n.jsx)("span",{className:"visually-hidden-always",children:h?.a11yAuthorPrefix}),(0,n.jsx)("span",{children:x})]})]})}),g$=_("cover"),$s=we("CoverContentNoImage",({children:e})=>{const t=g$("header-content");return(0,n.jsx)("div",{className:t,"data-testid":"cover-header-content",children:e})}),Lr=e=>{const t=Re(),s=vs();return v$(t,e,s)},v$=(e,t,s)=>{const{media:o,alpha:r}=t==="coverImage"?Tg(e,s):Ng(e,s),a="image"in o?xg(o?.image?.alt):void 0;return{alpha:r,ariaLabel:a,media:o,role:bg(a)}},C$=_("cover"),lm=()=>{const e=c3(),{alpha:t,ariaLabel:s,media:o,role:r}=Lr("coverImage"),a=C$("header-image"),i=la({alpha:t,color:e,media:o});return(0,n.jsx)("div",{"aria-label":s,className:a,role:r,style:i})},x$=_("cover"),dm=({children:e})=>{const t=c3(),s=`overlay-${t.toLowerCase()}`,o=x$("header-content",{[s]:!!t});return(0,n.jsxs)("div",{className:o,"data-testid":"cover-header-content",children:[e,(0,n.jsx)(lm,{})]})},b$=_("cover"),sc=({hasOverlay:e=!1})=>{const{alpha:t,ariaLabel:s,media:o,role:r}=Lr("coverImage"),a=la({alpha:t,hasOverlay:e,media:o}),i=b$("header-graphic",{"dot-com":Se});return(0,n.jsx)("div",{"aria-label":s,className:i,"data-testid":"cover-header-graphic",role:r,style:a})},y$=_("cover");function qt({children:e}){const t=!!cm(),s=y$("header-content-info",{rbc:t,"rise-com":Se});return(0,n.jsx)("div",{className:s,"data-testid":"cover-header-content-info",children:e})}const L$=Nt("AlignLeft"),Cd=Nt("ArrowDown"),B5=Nt("ArrowRight"),D5=Nt("ArrowUp"),S$=Nt("Category"),T$=Nt("ChevronDown"),N$=Nt("ChevronUp"),k$=Nt("LessonsComplete"),I$=Nt("LessonsRequirement"),E$=Nt("QuestionBox"),j$=Nt("QuizFailed"),w$=Nt("QuizPassed"),A$=Nt("QuizRequirement"),nc=Nt("Search"),H5=Nt("ToggleDown"),R$=Nt("Touch"),P$=Nt("VideoCamera"),xd=Nt("X"),M$=e=>{const t=e.indexOf("-");return t===-1?e:e.slice(0,t)},Lfe=(e,t)=>{const s=M$(e);return t.find(({iso639Code:o})=>o===e)||t.find(({iso639Code:o})=>o===s)||t.find(({defaultId:o,defaultSet:r})=>r&&o===1)},Ia=({percent:e,label:t,isRTL:s})=>{if(t.includes("%")){const o=s?`%${e}`:`${e}%`;return t.replace("%",o)}return`${e} ${t}`},Sr=_("cover"),O$=we("CoverProgress",({percentComplete:e})=>{const t=rn(),s=ue(),o=D3();if(e===0||window.isPublicShare||!Se)return null;const r=Ia({percent:e,label:s.progressSummaryPercentComplete,isRTL:t});return(0,n.jsxs)("div",{className:Sr("progress"),children:[(0,n.jsx)("div",{className:Sr("progress-text"),children:r}),(0,n.jsx)("div",{className:Sr("progress-outer"),children:(0,n.jsx)("div",{className:Sr("progress-inner"),style:{width:`${e}%`}})}),o&&(0,n.jsxs)("div",{className:Sr("progress-next-lesson"),children:[(0,n.jsx)(B5,{className:Sr("progress-next-lesson-icon").toString(),decorative:"true"}),(0,n.jsx)("span",{"aria-hidden":"true",className:Sr("progress-next-lesson-text"),children:o}),(0,n.jsxs)("span",{className:"visually-hidden",children:["Next lesson: ",o]})]})]})});function Mt(){const e=ua();return(0,n.jsx)(O$,{percentComplete:e})}const B$=_("cover"),es=we("CoverTitle",()=>{const e=ee(),t=Te(e.title),s=B$("header-content-title"),o=Ta("title"),r=(0,jt.uW)(e.title)?{"data-l10n-id":e.title.l10nId}:{"data-change-path":o};return(0,n.jsx)("h1",{...r,className:s,"data-testid":"cover-header-content-title",tabIndex:-1,children:t})}),D$={SPLIT_LEFT_IMAGE:"LEFT_OVERLAY",SPLIT_RIGHT_IMAGE:"LEFT_OVERLAY",TWO_THIRDS_LEFT_IMAGE:"LEFT_OVERLAY",TWO_THIRDS_RIGHT_IMAGE:"LEFT_OVERLAY"};function F5(){const e=ee(),t=wz(),s=e?.theme?.coverPageType||"CENTERED";return t?D$[s]??s:s}const H$=()=>(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(dm,{children:(0,n.jsxs)(qt,{children:[(0,n.jsx)(Pn,{}),(0,n.jsx)(es,{}),(0,n.jsx)(Mt,{}),(0,n.jsx)(Jt,{})]})})}),F$=()=>(0,n.jsx)(n.Fragment,{children:(0,n.jsx)($s,{children:(0,n.jsxs)(qt,{children:[(0,n.jsx)(Pn,{}),(0,n.jsx)(es,{}),(0,n.jsx)(Mt,{}),(0,n.jsx)(Jt,{})]})})}),V$=()=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(sc,{}),(0,n.jsx)($s,{children:(0,n.jsxs)(qt,{children:[(0,n.jsx)(Pn,{}),(0,n.jsx)(es,{}),(0,n.jsx)(Mt,{}),(0,n.jsx)(Jt,{})]})})]}),z$=()=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)($s,{children:(0,n.jsxs)(qt,{children:[(0,n.jsx)(Pn,{}),(0,n.jsx)(es,{}),(0,n.jsx)(Mt,{}),(0,n.jsx)(Jt,{})]})}),(0,n.jsx)(sc,{})]});function $$(){switch(F5()){default:case se.LEFT_OVERLAY:case se.CENTERED_OVERLAY:return(0,n.jsx)(H$,{});case se.LEFT:case se.CENTERED:return(0,n.jsx)(F$,{});case se.SPLIT_LEFT_IMAGE:case se.TWO_THIRDS_LEFT_IMAGE:return(0,n.jsx)(z$,{});case se.SPLIT_RIGHT_IMAGE:case se.TWO_THIRDS_RIGHT_IMAGE:return(0,n.jsx)(V$,{})}}function _$(){return(0,n.jsx)("header",{className:"cover__header","data-testid":"cover-header",children:(0,n.jsx)($$,{})})}var U$=f(80588);const G$=_("cover");function W$({children:e}){const t=ee(),{themeId:s}=t?.theme??{},o=F5(),r=U$.useMemo(()=>ga()(o),[o]),a=G$({layout:r});return(0,n.jsx)("div",{className:a,"data-testid":`cover-layout-${r}`,"data-theme-id":s,id:"cover",children:e})}var V5=f(80588);class K$ extends V5.Component{static propTypes={id:ge().any.isRequired,lessonProgress:ge().object.isRequired,type:ge().string.isRequired,items:ge().array};refProgressWrap=V5.createRef(null);constructor(t){super(t),this.state={isSticky:!1},this.portal=ro()}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 t=document.getElementsByClassName("page-wrap")[0],s=t.scrollTop,o=t.scrollTop,r=this.refProgressWrap.current;if(!r)return;const i=r.getBoundingClientRect().top+o,c=s>i;this.state.isSticky!==c&&this.setState({isSticky:c})};isLessonPreview(){return!!document.querySelector(".lesson--preview")}timelineProgressValue(){const{items:t,lessonProgress:s}=this.props,o=St()(-1,"activeIndex",s),r=Zt()(t);return o===-1?0:ia()(o)===r?100:ir()("%","",Vt()([o,"linePosition"],t))}processProgressValue(){const{items:t,lessonProgress:s}=this.props,o=St()(0,"activeIndex",s),r=Zt()(t);return o>r?100:Math.round(o/r*100)}progressValue(){const{lessonProgress:t,type:s}=this.props;switch(s){case"process":return this.processProgressValue();case"sorting":return St()(0,"percentViewed",t);case"timeline":return this.timelineProgressValue();default:return St()(0,"percentComplete",t)}}render(){const{type:t,items:s}=this.props,{isSticky:o}=this.state,r=G()("progress-wrap",{}),a=G()("lesson-progress-wrapper",{"lesson-progress-wrapper--visible":o}),i=G()("progress",{"progress--timeline":t==="timeline","progress--video":t==="video"}),c=this.progressValue(),d=t==="timeline"&&s&&s.map(h=>{const m=G()("progress__marker",{"progress__marker--active brand--background":parseInt(c)>=parseInt(h.linePosition.slice(0,-1))});return(0,n.jsx)("div",{className:m,style:{left:h.linePosition}},h.id)}),l=(0,n.jsx)("div",{className:r,children:(0,n.jsx)("div",{className:i,children:(0,n.jsxs)("div",{className:"progress__container",children:[(0,n.jsx)("div",{className:"progress__indicator brand--background",style:{transform:`translate3d(calc(${c}% * var(--dir-x)),0px,0px)`}}),d]})})});return(0,n.jsxs)("div",{ref:this.refProgressWrap,children:[l,(0,un.createPortal)((0,n.jsx)("div",{className:a,children:l}),this.portal)]})}}const um=_("lesson-header"),Mn=we("LessonHeaderAuthor",({avatar:e,authorName:t,className:s=""})=>{const o=ue();return(0,n.jsxs)("div",{className:`lesson-header__author ${s}`,children:[(0,n.jsx)("img",{alt:"",className:"lesson-header__author-img",src:mt(e)}),(0,n.jsx)("span",{className:"visually-hidden-always",children:o?.a11yAuthorPrefix}),(0,n.jsx)("span",{className:"lesson-header__author-name",children:t})]})}),oc=({showPartnerContent:e=!1})=>(0,n.jsx)("div",{className:um("author",{"partner-content":e})}),On=()=>(0,n.jsx)("div",{className:"lesson-header__counter"}),Bn=({lessonName:e,lessonPreposition:t,totalLessons:s,lessonNumber:o,showPartnerContent:r=!1})=>{const{lmsOptions:a}=ee();return(0,n.jsx)("div",{className:um("counter",{"partner-content":r}),children:(0,n.jsx)("div",{className:um("count",{"exit-button-enabled":a?.enableExitCourse}),children:`${e} ${o} ${t} ${s}`})})},Tr=({description:e})=>(0,n.jsx)(be,{className:"lesson-header__description",value:e}),Q$=({children:e})=>(0,n.jsx)("div",{className:"lesson-header__grouped-row",children:e}),Z$=({ariaLabel:e,imgRole:t,children:s,sectionStyles:o,topWrapClassName:r})=>(0,n.jsxs)("header",{className:"page__header",children:[(0,n.jsx)("div",{className:"page__header-limit",children:(0,n.jsx)("div",{className:"page__header-container",children:(0,n.jsx)("div",{className:"lesson-header__row",children:(0,n.jsx)("div",{className:"lesson-header__main",children:(0,n.jsx)("div",{className:"lesson-header",children:(0,n.jsx)("div",{className:r,children:s})})})})})}),(0,n.jsx)("div",{"aria-label":e,className:"page__header-bg",role:t,style:o})]}),Dn=({title:e,id:t})=>{const s=L5(t,"title");return(0,n.jsx)("h1",{className:"lesson-header__title","data-change-path":s,tabIndex:-1,children:(0,n.jsx)(be,{value:e})})},Y$=e=>{const{authorName:t,avatar:s,color:o,description:r,labels:a,lessonHeaderStyle:i,lessonId:c,lessonNumber:d,partnerContentAuthors:l,showAuthor:h,showLessonCount:m,title:p,totalLessons:v}=e,{lessonName:C,lessonPreposition:g}=a,x=y=>`url(${ca({width:"76",height:"76",imageKey:y.image})})`,L=i===q.TINT?{color:o}:null,T=s&&t&&h&&!l;return(0,n.jsxs)("div",{className:"lesson-header",children:[(0,n.jsxs)("div",{className:"lesson-header__top-wrap",style:L,children:[(0,n.jsx)(Dn,{id:c,title:p}),l&&(0,n.jsx)("div",{className:"lesson-header__partner-content",children:l.map(y=>(0,n.jsxs)("div",{className:"lesson-header__partner-content-author",children:[(0,n.jsx)("div",{className:"lesson-header__partner-content-author-img",style:{backgroundImage:x(y)}}),(0,n.jsxs)("div",{children:[(0,n.jsx)("span",{className:"visually-hidden-always",children:a?.a11yAuthorPrefix}),(0,n.jsx)("span",{children:y.name})]})]},y.name))}),(0,n.jsxs)("div",{className:"lesson-header__author-count-wrap",children:[T?(0,n.jsx)(Mn,{authorName:t,avatar:s}):(0,n.jsx)(oc,{}),m?(0,n.jsx)(Bn,{lessonName:C,lessonNumber:d,lessonPreposition:g,totalLessons:v}):(0,n.jsx)(On,{})]})]}),r&&(0,n.jsx)(Tr,{description:r})]})};class kfe extends u.Component{static propTypes={authorName:ge().string,avatar:ge().string,description:ge().string,showLessonCount:ge().bool,steps:ge().number,title:ge().string.isRequired,type:ge().string.isRequired};render(){const{children:t}=this.props;return(0,n.jsx)("section",{className:"page__header",children:(0,n.jsxs)("div",{className:"page__header-limit",children:[(0,n.jsx)("div",{className:"page__header-container",children:(0,n.jsx)("div",{className:"lesson-header__row",children:(0,n.jsx)("div",{className:"lesson-header__main",children:(0,n.jsx)(Y$,{...this.props})})})}),u.Children.map(t,s=>s&&s.type!==K$?null:s)]})})}}const Mo=_("lesson-header"),z5=e=>`url(${ca({width:"76",height:"76",imageKey:e?.image})})`,hm=({partnerContentAuthors:e})=>{const t=e.map(o=>o.name).join(", "),s=e.length===1;return(0,n.jsxs)("div",{className:Mo("partner-content",{mobile:!0}),children:[(0,n.jsx)("div",{className:Mo("partner-content-author",{single:s}),children:e.map(o=>(0,n.jsx)("div",{className:Mo("partner-content-author-img",{single:s}),style:{backgroundImage:z5(o)}},o.name))}),(0,n.jsx)("span",{"aria-hidden":"true",className:Mo("author-name"),children:t})]})},Ea=({partnerContentAuthors:e})=>{const t=ue();return(0,n.jsx)("div",{className:Mo("partner-content"),children:e.map(s=>(0,n.jsxs)("div",{className:Mo("partner-content-author"),children:[(0,n.jsx)("div",{className:Mo("partner-content-author-img"),style:{backgroundImage:z5(s)}}),(0,n.jsxs)("div",{children:[(0,n.jsxs)("span",{className:"visually-hidden",children:[t?.a11yAuthorPrefix," ",s.name]}),(0,n.jsx)("span",{"aria-hidden":"true",className:Mo("author-name"),tag:"span",children:s.name})]})]},s.name))})};var $5=f(80588);const ja=_("lesson-header"),X$=({authorName:e,avatar:t,description:s,lessonName:o,lessonNumber:r,lessonPreposition:a,partnerContentAuthors:i,showAuthor:c,showLessonCount:d,title:l,totalLessons:h,lessonId:m})=>{const p=i!=null&&c,v=t&&e&&c&&!p,C=v||p||d,g=d&&(v||p);return(0,n.jsxs)("div",{className:ja("content"),children:[C&&(0,n.jsxs)("div",{className:ja("info-row"),children:[v?(0,n.jsx)(Mn,{authorName:e,avatar:t}):(0,n.jsx)(oc,{}),p&&(0,n.jsx)(Ea,{partnerContentAuthors:i}),g&&(0,n.jsx)("span",{"aria-hidden":"true",className:ja("info-row--divider"),children:"|"}),d?(0,n.jsx)(Bn,{lessonName:o,lessonNumber:r,lessonPreposition:a,totalLessons:h}):(0,n.jsx)(On,{})]}),(0,n.jsxs)("div",{className:ja("title-wrapper",{"no-info":!C}),children:[(0,n.jsx)(Dn,{id:m,title:l}),s&&(0,n.jsx)(Tr,{description:s})]})]})},J$=({authorName:e,avatar:t,description:s,lessonName:o,lessonNumber:r,lessonPreposition:a,partnerContentAuthors:i,showAuthor:c,showLessonCount:d,title:l,totalLessons:h,lessonId:m})=>{const p=i!=null,v=$5.useMemo(()=>t&&e&&c&&!p,[t,e,c,p]);return(0,n.jsxs)("div",{className:ja("content"),children:[d?(0,n.jsx)(Bn,{lessonName:o,lessonNumber:r,lessonPreposition:a,totalLessons:h}):(0,n.jsx)(On,{}),v&&(0,n.jsx)(Mn,{authorName:e,avatar:t}),c&&p&&(0,n.jsx)(hm,{partnerContentAuthors:i}),(0,n.jsx)(Dn,{id:m,title:l}),s&&(0,n.jsx)(Tr,{description:s})]})},q$=({authorName:e,avatar:t,description:s,lessonName:o,lessonNumber:r,lessonPreposition:a,partnerContentAuthors:i,showAuthor:c,showLessonCount:d,title:l,totalLessons:h,lessonId:m})=>{const p=i!=null,v=$5.useMemo(()=>t&&e&&c&&!p,[t,e,c,p]);return(0,n.jsxs)("div",{className:ja("content"),children:[d?(0,n.jsx)(Bn,{lessonName:o,lessonNumber:r,lessonPreposition:a,totalLessons:h}):(0,n.jsx)(On,{}),(0,n.jsx)(Dn,{id:m,title:l}),v?(0,n.jsx)(Mn,{authorName:e,avatar:t}):(0,n.jsx)(oc,{showPartnerContent:p}),c&&p&&(0,n.jsx)(Ea,{partnerContentAuthors:i}),s&&(0,n.jsx)(Tr,{description:s})]})};function e_(e){const t=qh();return e.lessonHeaderSize===Li.SMALL&&!t?(0,n.jsx)(X$,{...e}):t?(0,n.jsx)(J$,{...e}):(0,n.jsx)(q$,{...e})}const wa=e=>e===Zn.FLOATING||e===Zn.FLOATING_FULL;function Nr(){const e=lj();return bt(480)&&e===Zn.FLOATING?Zn.FLOATING_FULL:e}function mm({className:e,ref:t}){return(0,n.jsxs)("svg",{"aria-hidden":"true",className:e,fill:"none",focusable:"false",height:"15",ref:t,role:"img",viewBox:"0 0 16 15",width:"16",xmlns:"http://www.w3.org/2000/svg",children:[(0,n.jsx)("path",{d:"M2.34315 7.34315L8 13L13.6569 7.34315",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"}),(0,n.jsx)("rect",{fill:"currentColor",height:"12",rx:"0.999999",width:"2",x:"7",y:"1"})]})}function _5({className:e,ref:t}){return(0,n.jsx)("svg",{"aria-hidden":"true",className:e,fill:"none",focusable:"false",ref:t,viewBox:"0 0 15 16",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{d:"M2 8L7.65685 13.6569L13.3137 8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"})})}var Ye=f(82447);const U5="focus-lesson-content",Efe="preview-nav-to-first-lesson",jfe="preview-nav-to-cover-page",Ge="preview-nav-to-lesson-item",wfe="preview-scroll-to-nav-prev",Afe="preview-scroll-to-header",pm="preview-clear-state",bd="preview-show-nav-prev",yd="preview-show-nav-next",G5="preview-nav-open",W5="preview-nav-close",K5="event-lesson-transition-start",Q5="event-lesson-transition-end",Z5="event-lesson-nav-prev-visible",fm="event-lesson-nav-prev-hidden",Y5="event-lesson-nav-next-visible",gm="event-lesson-nav-next-hidden",vm=new WeakMap,X5=new ResizeObserver(e=>{for(const t of e)vm.get(t.target)?.(t)});function Ld(e,t){(0,u.useEffect)(()=>{if(e)return vm.set(e,t),()=>vm.delete(e)},[e,t]),(0,u.useEffect)(()=>{if(e)return X5.observe(e),()=>X5.unobserve(e)},[e])}function t_(){const e=it(),[t,s]=(0,u.useState)(null),o=ue(),r=(0,u.useCallback)(a=>{e(s1({offsetHeight:a.target.offsetHeight}))},[e]);return(0,u.useLayoutEffect)(()=>{if(t)return e(s1({offsetHeight:t.offsetHeight})),()=>e(s1(null))},[e,t]),Ld(t,r),(0,n.jsx)("button",{className:"visually-hidden btn-skip-to-lesson brand--ui",onClick:J5,ref:s,type:"button",children:(0,n.jsxs)("span",{className:"btn-skip-to-lesson__wrap",children:[o?.courseSkipToLesson,(0,n.jsx)(ie,{"aria-hidden":"true",classNameIcon:"btn-skip-to-lesson__icon",name:"arrow-right"})]})})}function s_(e){(0,Ye.A)(U5,e,document)}function J5(){document.dispatchEvent(new CustomEvent(U5))}function Sd(e,t){const s=[];if(e){let o=e.parentElement;for(;o&&(t?.limit==null||s.length<t.limit);){if(o===document.body){s.push(window);break}const r=window.getComputedStyle(o);(r.overflowX==="auto"||r.overflowX==="scroll"||r.overflowY==="auto"||r.overflowY==="scroll")&&s.push(o),o=o.parentElement}}return s}function n_(e){return Sd(e,{limit:1})[0]??null}function q5(e,t){(0,u.useLayoutEffect)(()=>{let s=e.current;const o=Sd(s);for(const r of o)r?.addEventListener("scroll",t);return()=>{for(const r of o)r?.removeEventListener("scroll",t)}},[t,e])}function o_(e){return e?.sessionPreferences}function rc(){return ae(o_)}const r_=(0,u.forwardRef)((e,t)=>{const{children:s,className:o="lesson-link-item-tooltip",dark:r,visible:a}=e,i=(0,u.useMemo)(()=>_(o),[o]),c=(0,n.jsx)("div",{"aria-hidden":"true",ref:t,style:{left:0,pointerEvents:"none",position:"absolute",top:0,zIndex:Number.MAX_SAFE_INTEGER},children:(0,n.jsx)("div",{style:{pointerEvents:"all"},children:(0,n.jsx)("div",{className:i({visible:a}),children:(0,n.jsx)("div",{className:i("inner",{dark:r,light:!r}),children:s})})})});return(0,un.createPortal)(c,document.getElementById("portal"))});function eC(e){const{children:t,className:s,dark:o,restriction:r,tooltipClassName:a,style:i}=e,{prefersKeyboardNavigation:c}=rc(),d=(0,u.useRef)(),l=(0,u.useRef)(),h=(0,u.useRef)(),m=ue(),p=z1(),[v,C]=(0,u.useState)(!1),g=(0,u.useCallback)(()=>C(!0),[]),x=(0,u.useCallback)(()=>C(!1),[]),L=(0,u.useCallback)(()=>{setTimeout(g,0)},[g]),T=(0,u.useCallback)(()=>{c&&x()},[x,c]),y=(0,u.useCallback)(I=>{cs(I)&&v&&(I.stopPropagation(),x())},[x,v]),b=(0,u.useCallback)(()=>{document.activeElement===d.current&&(clearTimeout(h.current),g())},[g]),S=(0,u.useCallback)(()=>{h.current=setTimeout(x,150)},[x]),N=(0,u.useCallback)(()=>{if(v){const I=d.current.getBoundingClientRect(),P=l.current.offsetParent.getBoundingClientRect(),{height:A,width:w}=I,O=I.left-P.left,j=I.top-P.top;Object.assign(l.current.style,{transform:`translate(${O}px, ${j}px)`,width:`${w}px`,height:`${A}px`})}},[v]);(0,u.useEffect)(()=>{p&&C(!1)},[p]),(0,u.useLayoutEffect)(()=>N(),[N]),(0,Ye.A)("resize",N,window),(0,Ye.A)("keydown",y,document),q5(d,x);const k=vt(r?.data);let E;return r?.type===qr.QUIZ?E=`${m.quizRequirePassingScore}: "${k}"`:r?.type===qr.ORDER?E=m.lessonRestricted:r?.type===qr.KNOWLEDGE_CHECK&&(E=m.knowledgeCheckCorrectAnswerRequiredNav),(0,n.jsxs)("div",{"aria-disabled":!0,className:s,onBlur:T,onFocus:L,onMouseEnter:b,onMouseLeave:S,ref:d,role:"link",style:i,tabIndex:p?-1:0,children:[t,(0,n.jsx)("div",{className:"visually-hidden-always",children:m?.a11yRestrictedNav}),(0,n.jsx)("div",{className:"visually-hidden-always",children:E}),(0,n.jsx)(r_,{className:a,dark:o,ref:l,visible:v,children:E})]})}function a_(e){const{b:t,children:s,"data-direction":o,isCurrentLesson:r,isTooltipEnabled:a,lessonId:i,onClick:c=Function.prototype,onFocus:d,onHideProgressTooltip:l,onNavigate:h=Function.prototype,onShowProgressTooltip:m,restriction:p,showProgressDelay:v,style:C}=e,g=z1(),{theme:{progressIndicatorStyle:x=Je.THEME_DEFAULT}}=ee(),L=x===Je.THEME_DEFAULT,T=(0,u.useCallback)(A=>{c(A),r?(A.preventDefault(),J5()):h(i)},[i,r,c,h]),[y,b]=(0,u.useState)(!1),S=(0,u.useCallback)(A=>{!y&&a&&(v!=null?setTimeout(m,v):m()),d?.(A)},[y,d,v,m,a]),N=(0,u.useCallback)(A=>{a&&cs(A)&&l()},[l,a]),k=(0,u.useCallback)(()=>{a&&b(!0)},[a]),E=(0,u.useCallback)(()=>{a&&b(!1)},[a]),I=p?.type!=null,P=t("link",{active:r,restricted:I,"theme-default":L}).toString();return I?(0,n.jsx)(eC,{...e,className:P,style:C}):(0,n.jsx)(Hi,{"aria-current":"page",className:P.toString(),"data-direction":o,"data-nav-item":"",onBlur:a?l:void 0,onClick:T,onFocus:S,onKeyDown:N,onMouseDown:k,onMouseUp:E,style:C,tabIndex:g?-1:void 0,to:Os(i),children:s})}function ac(e){const{className:t="lesson-link-item",isCurrentLesson:s,last:o,lessonId:r,style:a}=e,i=(0,u.useMemo)(()=>_(t),[t]),c=Bi(r),d=c?.type!=null,{isComplete:l=!1}=wo(r)??{},h=i({active:s,complete:l,last:o,restricted:d});return(0,n.jsx)("div",{className:h,children:(0,n.jsx)(a_,{...e,b:i,isCurrentLesson:s,restriction:c,style:a})})}const i_=_("lesson-nav");function c_(e){const{children:t,finish:s,lessonId:o,onFocus:r}=e,a=zt();if(o)return(0,n.jsx)(ac,{className:"lesson-nav-link",onFocus:r,tooltipClassName:"lesson-nav-link-tooltip",...e});const i=s?"/lessons/progress-summary":"/",c=d=>{d.preventDefault(),io(()=>{a(i)},i==="/"?"lesson-to-cover":"default")};return(0,n.jsx)("span",{className:"lesson-nav-link",children:(0,n.jsx)(is,{className:"lesson-nav-link__link","data-direction":e["data-direction"],onClick:c,onFocus:r,to:i,children:t})})}function Aa({children:e,className:t,direction:s,finish:o,navLessonId:r,onFocus:a,ref:i,restrictionType:c}){const d=ji(),l=d?.theme?.buttonScheme,h=d?.theme?.accentContrast,m=c!=null,p=Nr(),C={className:i_(null,{[s]:!0,accent:l===Si.ACCENT,dark:l===Si.DARK,floating:p===Zn.FLOATING,"floating-full":p===Zn.FLOATING_FULL,finish:o,full:p===Zn.FULL,light:l===Si.LIGHT,restricted:m,tint:l===Si.TINT}).mix(t),[`data-${s}-lesson`]:!0};return(0,n.jsx)("div",{ref:i,...C,children:(0,n.jsx)(c_,{accentContrast:h,"data-direction":s,finish:o,lessonId:r,onFocus:a,children:e})})}const tC=_("lesson-nav");function l_({allowTooltip:e,courseFinishLabel:t,onFocus:s,nextLesson:o,restrictionData:r,restrictionType:a,ref:i}){const c=o?.id,d=Nr(),l=wa(d),h=l?mm:_5;return(0,n.jsxs)(Aa,{allowTooltip:e,direction:"next",finish:!0,isFloating:l,navLessonId:c,onFocus:s,ref:i,restrictionData:r,restrictionType:a,children:[(0,n.jsx)("span",{className:tC("link-text").mix("brand--ui"),children:t}),(0,n.jsx)(h,{className:tC("link-icon")})]})}const sC=_("lesson-nav");function d_({allowTooltip:e,lessonNameLabel:t,nextLesson:s,nextLessonNumber:o,onFocus:r,ref:a,restrictionData:i,restrictionType:c}){const d=s?.id,l=Nr(),h=wa(l),p=pr(s)&&d,v=Te(s?.title)||"",C=h?mm:_5,g=p?`${t} ${o} - `:"",x=h&&p?`${t} ${o}`:`${g}${v}`;return(0,n.jsxs)(Aa,{allowTooltip:e,direction:"next",isFloating:h,navLessonId:d,onFocus:r,ref:a,restrictionData:i,restrictionType:c,children:[(0,n.jsx)("span",{className:sC("link-text").mix("brand--ui"),children:x}),(0,n.jsx)(C,{className:sC("link-icon")})]})}function nC({className:e,ref:t}){return(0,n.jsxs)("svg",{"aria-hidden":"true",className:e,fill:"none",focusable:"false",height:"15",ref:t,role:"img",viewBox:"0 0 16 15",width:"16",xmlns:"http://www.w3.org/2000/svg",children:[(0,n.jsx)("path",{d:"M13.6569 7.65685L8 2L2.34315 7.65686",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"}),(0,n.jsx)("rect",{fill:"currentColor",height:"12",rx:"0.999999",transform:"rotate(180 9 14)",width:"2",x:"9",y:"14"})]})}function u_({className:e,ref:t}){return(0,n.jsx)("svg",{"aria-hidden":"true",className:e,fill:"none",focusable:"false",ref:t,viewBox:"0 0 15 16",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{d:"M2 8L7.65685 2.34315L13.3137 8",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"})})}const Td=_("lesson-nav");function h_({allowTooltip:e,className:t,courseHomeLabel:s,lessonNameLabel:o,onFocus:r,previousLesson:a,previousLessonNumber:i,ref:c}){const d=a?.id,l=Nr(),h=wa(l),p=pr(a)&&d,v=Te(a?.title)||s,C=h?nC:u_,g=p?`${o} ${i} - ${v}`:v,x=p&&h?`${o} ${i}`:g;return(0,n.jsx)(Aa,{allowTooltip:e,className:t,direction:"previous",isFloating:h,navLessonId:d,onFocus:r,ref:c,children:h?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:Td("link-text").mix("brand--ui"),children:x}),(0,n.jsx)(C,{className:Td("link-icon")})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(C,{className:Td("link-icon")}),(0,n.jsx)("span",{className:Td("link-text").mix("brand--ui"),children:x})]})})}var je=f(93342);function m_({className:e,cx:t,cy:s,diameter:o,onTransitionEnd:r,r:a,strokeLinecap:i,strokeWidth:c,value:d=0}){const l=(0,u.useRef)(null),h=`mask-${(0,N2.A)()}`,m=(100-d)/100*(2*a);return(0,Ye.A)("transitionend",r,l.current),(0,n.jsxs)("svg",{height:o,viewBox:`0 0 ${o} ${o}`,width:o,children:[(0,n.jsx)("defs",{children:(0,n.jsx)("mask",{id:h,children:(0,n.jsx)("rect",{fill:"white",height:2.3*a,width:2.3*a,x:"0",y:d===0?100:m})})}),(0,n.jsx)("circle",{className:e,cx:t,cy:s,fill:"none",mask:`url(#${h})`,r:a,ref:l,strokeLinecap:i,strokeWidth:c})]})}const Cm=m_;function p_({className:e,cx:t,cy:s,diameter:o,onTransitionEnd:r,r:a,strokeLinecap:i,strokeWidth:c,transform:d,value:l=0}){const h=(0,u.useRef)(null),m=Math.PI*(Number(o)-Number(c)),p=m*(100-l)/100;return(0,Ye.A)("transitionend",r,h.current),(0,n.jsx)("circle",{className:e,cx:t,cy:s,fill:"transparent",r:a,ref:h,strokeDasharray:m,strokeDashoffset:p,strokeLinecap:i,strokeWidth:c,transform:d})}const oC=p_;var xm=f(80588);const{COMPACT:f_,COVER:g_,OVERLAY:v_,SIDEBAR:C_}=yo,ic=_("progress-circle");function x_({"aria-hidden":e,"aria-label":t,isCurrent:s,isFailed:o,isPassed:r,scope:a,value:i}){const[c,d]=xm.useState(i===100),l=(0,je.A)(i),{theme:h}=ee()??{},m=h?.progressIndicatorStyle??Je.THEME_DEFAULT,p=a===g_,v=a===v_,C=m===Je.THEME_DEFAULT,g=m===Je.CIRCULAR_FILL,x=m===Je.INCOMPLETE_COMPLETE,L=ic({compact:a===f_,cover:p,current:s,sidebar:a===C_,overlay:v}),T=ic("track",{"circular-fill":!v&&g,"incomplete-complete":p&&x}),y=ic("runner",{"circular-fill":g,done:c,failed:o,passed:r,unstarted:i===0}),b=ic("pass",{done:c,visible:r}),S=ic("fail",{done:c,visible:o}),N=xm.useMemo(()=>g||i===100?i:0,[g,i]);return xm.useEffect(()=>{if(i!==100&&l===100)d(!1);else if(i===100&&!c&&!x){const k=setTimeout(()=>d(!0),300);return clearTimeout.bind(null,k)}else i===100&&!c&&x&&d(!0)},[c,x,l,i]),(0,n.jsxs)("svg",{"aria-hidden":e,"aria-label":t,className:L,fill:"none",focusable:"false",role:"img",viewBox:"0 0 16 16",xmlns:"https://www.w3.org/2000/svg",children:[(0,n.jsx)("circle",{className:T,cx:"8",cy:"8",fill:"transparent",r:"7",strokeWidth:"2",transform:"rotate(-89.9 8 8)"}),C?(0,n.jsx)(oC,{className:y,cx:8,cy:8,diameter:16,r:7,strokeWidth:2,transform:"rotate(-89.9 8 8)",value:i}):(0,n.jsx)(Cm,{className:y,cx:8,cy:8,diameter:16,r:7,strokeLinecap:"round",strokeWidth:2,value:N}),(0,n.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,n.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 bm=(0,u.createContext)(null);bm.displayName="CourseNavContext";function b_(e){const{children:t,isCourseNavOpen:s}=e;return(0,n.jsx)(bm.Provider,{value:{isCourseNavOpen:s},children:t})}function y_(){return(0,u.useContext)(bm)}const rC=960;function cc(){return bt(rC)}function L_(){const e=Re(),t=cc(),s=h1();return Fj({course:e,isMobile:t,search:s})}function S_(){const e=Re(),t=cc();return Vj({course:e,isMobile:t})}var aC=f(80588);class T_ extends aC.Component{refProgressWrap=aC.createRef();timeoutScroll;portal;constructor(t){super(t),this.state={isSticky:!1},this.portal=ro()}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 t=document.getElementsByClassName("page-wrap")[0],s=t.scrollTop,o=t.scrollTop,r=this.refProgressWrap.current;if(!r)return;const i=r.getBoundingClientRect().top+o,c=s>i&&s>0;this.state.isSticky!==c&&this.setState({isSticky:c})};isLessonPreview(){return!!document.querySelector(".lesson--preview")}timelineProgressValue(){const{items:t,lessonProgress:s}=this.props,o=s.activeIndex??-1,r=t?.length??0;return o===-1?0:o+1===r?100:t?.[o]?.linePosition?.replace("%","")??"0"}processProgressValue(){const{items:t,lessonProgress:s}=this.props,o=s.activeIndex??0,r=t?.length??0;return o>r?100:Math.round(o/r*100)}progressValue(){const{lessonProgress:t,type:s}=this.props;switch(s){case"process":return this.processProgressValue();case"sorting":return t.percentViewed??0;case"timeline":return this.timelineProgressValue();default:return t.percentComplete??0}}render(){const{type:t,items:s,sidebarAvailable:o,isCourseNavOpen:r,isMobile:a}=this.props,{isSticky:i}=this.state,c=G()("progress-wrap",{}),d=r,l=r&&a,h=G()("lesson-progress-wrapper",{"lesson-progress-wrapper--visible":i&&!l,"lesson--open":d&&o&&!this.isLessonPreview(),"lesson--open-mobile":o&&l&&!this.isLessonPreview()}),m=G()("progress",{"progress--timeline":t==="timeline","progress--video":t==="video"}),p=this.progressValue(),v=t==="timeline"&&s&&s.map(g=>{const x=G()("progress__marker",{"progress__marker--active brand--background":parseInt(String(p))>=parseInt(g.linePosition.slice(0,-1))});return(0,n.jsx)("div",{className:x,style:{left:g.linePosition}},g.id)}),C=(0,n.jsx)("div",{className:c,children:(0,n.jsx)("div",{className:m,children:(0,n.jsxs)("div",{className:"progress__container",children:[(0,n.jsx)("div",{className:"progress__indicator brand--background",style:{transform:`translate3d(calc(${p}% * var(--dir-x)),0px,0px)`}}),v]})})});return(0,n.jsxs)("div",{ref:this.refProgressWrap,children:[C,(0,un.createPortal)((0,n.jsx)("div",{"aria-hidden":"true",className:h,children:C}),this.portal)]})}}const N_=e=>{const t=L_(),{isCourseNavOpen:s}=y_()??{},o=bt(480);return(0,n.jsx)(T_,{...e,isCourseNavOpen:s,isMobile:o,sidebarAvailable:t})},k_=ya,I_=ya,E_=ya,j_=ya,w_=ya,A_=ya;function yt({children:e,className:t,height:s,width:o,viewBox:r}){return(0,n.jsx)("svg",{"aria-hidden":"true",className:t,fill:"none",focusable:"false",height:s,viewBox:r,width:o,xmlns:"http://www.w3.org/2000/svg",children:e})}function R_(e){return(0,n.jsxs)(yt,{viewBox:"0 0 24 24",...e,children:[(0,n.jsx)("path",{d:"M1 10.9609L10 19.9609",stroke:"currentColor",strokeWidth:"1.5"}),(0,n.jsx)("path",{d:"M1 11.9609L10 2.96094",stroke:"currentColor",strokeWidth:"1.5"}),(0,n.jsx)("path",{d:"M2 11.5H23",stroke:"currentColor",strokeWidth:"1.5"})]})}function P_({className:e}){return(0,n.jsx)("svg",{"aria-hidden":"true",className:e,fill:"none",focusable:"false",height:"8",role:"img",viewBox:"0 0 16 8",width:"16",xmlns:"http://www.w3.org/2000/svg",children:(0,n.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 M_(e){return(0,n.jsx)(yt,{height:"12",viewBox:"0 0 18 12",width:"18",...e,children:(0,n.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 O_(e){return(0,n.jsx)(yt,{height:"6",viewBox:"0 0 10 6",width:"10",...e,children:(0,n.jsx)("path",{d:"M9 1L5 5L1 1",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"})})}function B_(e){return(0,n.jsx)(yt,{height:"6",viewBox:"0 0 10 6",width:"10",...e,children:(0,n.jsx)("path",{d:"M1 5L5 1L9 5",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"})})}function D_(e){return(0,n.jsxs)(yt,{height:"21",viewBox:"0 0 20 21",width:"20",...e,children:[(0,n.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,n.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,n.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 iC(e){const t=Et(e,["Default"]);return(0,n.jsx)($t,{...t,fill:"none",viewBox:"1 1 18 18",children:(0,n.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 Nd(e){const t=Et(e,["Default"]);return(0,n.jsxs)($t,{...t,fill:"none",viewBox:"0 0 18 18",children:[(0,n.jsx)("circle",{cx:"9",cy:"9",fill:"#74BF44",r:"9"}),(0,n.jsx)("path",{d:"M6.43994 9.12061L8.43994 11.1206L11.9399 7.62061",stroke:"white",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5"})]})}function H_(e){return(0,n.jsx)(yt,{height:"12",viewBox:"0 0 12 12",width:"12",...e,children:(0,n.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 F_(e){return(0,n.jsx)(yt,{height:"5",viewBox:"0 0 10 5",width:"10",...e,children:(0,n.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 V_(e){return(0,n.jsxs)(yt,{height:"18",viewBox:"0 0 18 18",width:"18",...e,children:[(0,n.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,n.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 z_(e){return(0,n.jsxs)(yt,{height:"14",viewBox:"0 0 20 14",width:"20",...e,children:[(0,n.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,n.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 $_(e){return(0,n.jsx)(yt,{height:"10",viewBox:"0 0 10 10",width:"10",...e,children:(0,n.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 __=_("cover"),kd=we("CoverDetailsSection",({children:e,type:t})=>(0,n.jsx)("section",{className:__("details-content-section",{type:t}),children:e})),ym=e=>Bs(e)===pe.LIGHT,ts=en()("partner-content-book-info__"),cC=e=>{const{authors:t,backgroundColor:s,bookImage:o,bookTitle:r,buyLink:a,block:i,trackingInfo:c}=e,l=Re()?.publishedAt,h=m5(),m=t.filter(E=>!gt()(E.name)),p=tt()(E=>E.name,m),v=p.length>1?ta()(" & ",p):p[0],C=v.slice(-1)==="s"?"":"s",g=ym(s),x=G()({[ts("book-image-block")]:i&&!g},{[ts("book-image-block")&&ts("dark-theme-book-image")]:i&&g},{[ts("book-image-course")]:!i}),L=ts(i?"flex-block":"flex-course"),T=ts(i?"image-container-block":"image-container-course"),y=G()(ts("small-text"),{[ts("dark-theme")]:g}),b=G()(ts("black-text"),{[ts("dark-theme")]:g}),S=G()(ts("button"),{[ts("dark-theme-button")]:g}),N=ca({height:"210",width:"140",imageKey:o}),k=(0,u.useCallback)(()=>{Se&&l&&h?.({event:"Click Tracked",payload:ps()(c,{type:"Buy Link"})})},[l,h,c]);return(0,n.jsxs)("section",{className:L,children:[(0,n.jsx)("h2",{className:"visually-hidden",children:"Book Info"}),(0,n.jsx)("div",{"aria-hidden":"true",className:T,children:o?(0,n.jsx)("img",{alt:"",className:x,src:N}):(0,n.jsx)("div",{className:x})}),(0,n.jsxs)("div",{className:ts("text-container"),children:[(0,n.jsxs)("p",{className:y,children:["From ",v,"'",C]}),(0,n.jsx)("p",{className:b,children:r}),(0,n.jsx)("a",{className:S,href:a,onClick:k,rel:"noopener noreferrer",target:"_blank",children:"Buy the book"})]})]})},_s=en()("partner-content-partner-info__"),lC=({backgroundColor:e,block:t,link:s,trackingInfo:o})=>{const a=Re()?.publishedAt,i=m5(),c=t?Aj():Rj(),d=_s(t?"nbic-logo-light-bulb":"nbic-logo"),l=_s(t?"block-logo-container":"logo-container"),h=ym(e),m=G()(_s("small-text"),{[_s("dark-theme")]:h}),p=G()(_s("black-text"),{[_s("dark-theme")]:h}),v=G()(_s("button"),{[_s("dark-theme-button")]:h}),C=(0,u.useCallback)(()=>{Se&&a&&i?.({event:"Click Tracked",payload:ps()(o,{type:"Partner Link"})})},[a,i,o]);return(0,n.jsxs)("section",{className:_s("flex"),children:[(0,n.jsx)("h2",{className:"visually-hidden",children:"Partner Info"}),(0,n.jsx)("div",{"aria-hidden":"true",className:l,children:(0,n.jsx)("img",{alt:"",className:d,src:c})}),(0,n.jsxs)("div",{className:_s("text-container"),children:[(0,n.jsx)("p",{className:m,children:"In partnership with"}),(0,n.jsx)("p",{className:p,children:"Next Big Idea Club"}),(0,n.jsx)("a",{className:v,href:s,onClick:C,rel:"noopener noreferrer",target:"_blank",children:"Learn more"})]})]})},Ra=en()("partner-content-author-card__"),dC=e=>{const{partnerContent:t}=e,s=Re(),{id:o,tenantId:r}=s??{},{data:a,type:i}=t,{authors:c,bookImage:d,bookTitle:l,buyLink:h,internalId:m,nbicLink:p}=a,v=c.filter(T=>T.name),C={courseId:o,partnerContentId:t.id,partnerContentInternalId:m,tenantId:r,contentSubtype:i},g=G()(Ra("flex"),Ra("author-container")),x=T=>ca({width:"122",height:"122",imageKey:T}),L=(T,y)=>(0,n.jsx)("div",{"aria-hidden":"true",className:Ra("image-container"),children:T?(0,n.jsx)("img",{alt:y,className:Ra("author-image"),src:x(T)}):(0,n.jsx)("div",{className:Ra("author-image")})});return(0,n.jsxs)("ol",{className:"partner-content-author-card","data-testid":"partner-content-author-card",role:"list",children:[(0,n.jsx)("li",{role:"listitem",children:(0,n.jsxs)("section",{children:[(0,n.jsx)("h2",{className:"visually-hidden",children:"Authors"}),v.map(T=>(0,n.jsxs)("li",{className:g,children:[L(T.image,T.name),(0,n.jsx)("p",{className:Ra("author-name-text"),children:T.name})]},T.name))]})}),(0,n.jsx)("li",{role:"listitem",children:(0,n.jsx)(cC,{authors:c,bookImage:d,bookTitle:l,buyLink:h,trackingInfo:C})}),(0,n.jsx)("li",{role:"listitem",children:(0,n.jsx)(lC,{link:p,trackingInfo:C})})]})},U_=_("cover");function G_(e){const{coursePartnerContent:t,hasLogo:s,hasPartnerContent:o}=e;if(!o)return null;const r=U_("details-content-aside",{logo:s});return(0,n.jsx)("div",{className:r,children:(0,n.jsx)(kd,{type:"partner-content",children:(0,n.jsx)(dC,{partnerContent:t})})})}const W_=_("cover"),K_=we("CoverDetailsContentHeading",({className:e="",type:t,...s})=>{const o=Gr()(["Default"],s);return(0,n.jsx)("header",{...o,className:W_("details-content-heading",{type:t}).mix(e)})}),Q_=_("cover");function Z_({children:e,title:t,type:s}){const o=ee(),{description:r,media:a,partnerContentId:i}=o??{},c=!!i,l=(a&&"image"in a?a.image?.key:null)!=null,m=s==="outline"?r?!l&&!c?"outline-no-logo":c&&!l?"outline-has-partner-content":c&&l?"outline-has-pc-and-logo":"outline":"outline-no-description":s;return(0,n.jsxs)("section",{className:Q_("details-content-section",{type:m}),children:[(0,n.jsx)(K_,{type:s,children:(0,n.jsx)("h2",{children:t})}),e]})}const Y_=_("cover");function lc(){return(0,n.jsxs)("svg",{"aria-hidden":"true",className:Y_("header-star"),fill:"none",height:"18",viewBox:"0 0 18 18",width:"18",xmlns:"http://www.w3.org/2000/svg",children:[(0,n.jsx)("path",{d:"M9 0V18",strokeMiterlimit:"10",strokeWidth:"0.75"}),(0,n.jsx)("path",{d:"M18 9H0",strokeMiterlimit:"10",strokeWidth:"0.75"}),(0,n.jsx)("path",{d:"M15.3 15.3002L2.69995 2.7002",strokeMiterlimit:"10",strokeWidth:"0.75"}),(0,n.jsx)("path",{d:"M2.69995 15.3002L15.3 2.7002",strokeMiterlimit:"10",strokeWidth:"0.75"})]})}const X_=()=>bt(480),J_=()=>bt(768),q_={SPLIT_LEFT_IMAGE:"CENTERED_OVERLAY",SPLIT_RIGHT_IMAGE:"CENTERED_OVERLAY",TWO_THIRDS_LEFT_IMAGE:"CENTERED_OVERLAY",TWO_THIRDS_RIGHT_IMAGE:"CENTERED_OVERLAY"};function uC(){const e=ee(),t=J_(),s=e?.theme?.coverPageType||"CENTERED";return t?q_[s]??s:s}const eU=_("cover"),tU=()=>null,sU=()=>(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(dm,{children:(0,n.jsxs)(qt,{children:[(0,n.jsx)(Mt,{}),(0,n.jsx)(lc,{}),(0,n.jsx)(Pn,{}),(0,n.jsx)(es,{}),(0,n.jsx)(Jt,{})]})})}),nU=()=>(0,n.jsx)(n.Fragment,{children:(0,n.jsx)($s,{children:(0,n.jsxs)(qt,{children:[(0,n.jsx)(Mt,{}),(0,n.jsx)(lc,{}),(0,n.jsx)(Pn,{}),(0,n.jsx)(es,{}),(0,n.jsx)(Jt,{})]})})}),oU=()=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(sc,{}),(0,n.jsx)($s,{children:(0,n.jsxs)(qt,{children:[(0,n.jsx)(Mt,{}),(0,n.jsx)(lc,{}),(0,n.jsx)(Pn,{}),(0,n.jsx)(es,{}),(0,n.jsx)(Jt,{})]})})]}),rU=()=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)($s,{children:(0,n.jsxs)(qt,{children:[(0,n.jsx)(Mt,{}),(0,n.jsx)(lc,{}),(0,n.jsx)(Pn,{}),(0,n.jsx)(es,{}),(0,n.jsx)(Jt,{})]})}),(0,n.jsx)(sc,{})]}),aU=()=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)($s,{children:(0,n.jsxs)(qt,{children:[(0,n.jsx)(Mt,{}),(0,n.jsx)(lc,{}),(0,n.jsx)(Pn,{}),(0,n.jsx)(es,{}),(0,n.jsx)(Jt,{})]})}),(0,n.jsx)("div",{className:"cover__header-graphic-wrap",children:(0,n.jsx)(sc,{})})]});function iU(){switch(uC()){default:case"CENTERED_IMAGE":return(0,n.jsx)(aU,{});case"CENTERED":case"CENTERED_ACCENT_TINT":return(0,n.jsx)(nU,{});case"SPLIT_LEFT_IMAGE":case"TWO_THIRDS_LEFT_IMAGE":return(0,n.jsx)(rU,{});case"SPLIT_RIGHT_IMAGE":case"TWO_THIRDS_RIGHT_IMAGE":return(0,n.jsx)(oU,{});case"CENTERED_OVERLAY":return(0,n.jsx)(sU,{})}}function cU(){return(0,n.jsxs)("header",{className:eU("header",{meta:!1}),"data-testid":"cover-header",children:[(0,n.jsx)(iU,{}),(0,n.jsx)(u.Suspense,{children:(0,n.jsx)(tU,{})})]})}var lU=f(80588);const dU=_("cover");function uU({children:e}){const t=ee(),{themeId:s}=t?.theme??{},o=uC(),r=lU.useMemo(()=>ga()(o),[o]),a=dU(null,{layout:r});return(0,n.jsx)("div",{className:a,"data-testid":`cover-layout-${r}`,"data-theme-id":s,id:"cover",children:e})}var hC=f(80588);const Lm=_("lesson-header"),hU=({authorName:e,avatar:t,lessonName:s,lessonNumber:o,lessonPreposition:r,partnerContentAuthors:a,showAuthor:i,showLessonCount:c,title:d,totalLessons:l,lessonId:h})=>{const m=a!=null&&i,p=t&&e&&i&&!m,v=p||m||c,C=c&&(p||m);return(0,n.jsxs)("div",{className:Lm("content"),children:[v&&(0,n.jsxs)("div",{className:Lm("info-row"),children:[p?(0,n.jsx)(Mn,{authorName:e,avatar:t}):(0,n.jsx)(oc,{}),m&&(0,n.jsx)(Ea,{partnerContentAuthors:a}),C&&(0,n.jsx)("span",{"aria-hidden":"true",className:Lm("info-row--divider"),children:"|"}),c?(0,n.jsx)(Bn,{lessonName:s,lessonNumber:o,lessonPreposition:r,totalLessons:l}):(0,n.jsx)(On,{})]}),(0,n.jsx)("div",{children:(0,n.jsx)(Dn,{id:h,title:d})})]})},mU=({authorName:e,avatar:t,lessonName:s,lessonNumber:o,lessonPreposition:r,partnerContentAuthors:a,showAuthor:i,showLessonCount:c,title:d,totalLessons:l,lessonId:h})=>{const m=a!=null,p=hC.useMemo(()=>t&&e&&i&&!m,[t,e,i,m]);return(0,n.jsxs)(n.Fragment,{children:[c?(0,n.jsx)(Bn,{lessonName:s,lessonNumber:o,lessonPreposition:r,totalLessons:l}):(0,n.jsx)(On,{}),p&&(0,n.jsx)(Mn,{authorName:e,avatar:t}),i&&m&&(0,n.jsx)(hm,{partnerContentAuthors:a}),(0,n.jsx)(Dn,{id:h,title:d})]})},pU=({authorName:e,avatar:t,lessonName:s,lessonNumber:o,lessonPreposition:r,partnerContentAuthors:a,showAuthor:i,showLessonCount:c,title:d,totalLessons:l,lessonId:h})=>{const m=a!=null,p=hC.useMemo(()=>t&&e&&i&&!m,[t,e,i,m]);return(0,n.jsxs)(n.Fragment,{children:[p?(0,n.jsx)(Mn,{authorName:e,avatar:t}):(0,n.jsx)(oc,{}),i&&m&&(0,n.jsx)(Ea,{partnerContentAuthors:a}),(0,n.jsx)(Dn,{id:h,title:d}),c?(0,n.jsx)(Bn,{lessonName:s,lessonNumber:o,lessonPreposition:r,totalLessons:l}):(0,n.jsx)(On,{})]})};function fU(e){const t=X_();return e.lessonHeaderSize===Li.SMALL&&!t?(0,n.jsx)(hU,{...e}):t?(0,n.jsx)(mU,{...e}):(0,n.jsx)(pU,{...e})}var Sm=f(80588);const{COMPACT:gU,COVER:vU,OVERLAY:CU,SIDEBAR:xU}=yo,Pa=_("progress-circle");function bU({"aria-hidden":e,"aria-label":t,isFailed:s,isPassed:o,scope:r,value:a}){const[i,c]=Sm.useState(a===100),d=(0,je.A)(a),{theme:l}=ee()??{},h=l?.progressIndicatorStyle??Je.THEME_DEFAULT,m=r===vU,p=r===CU,v=h===Je.THEME_DEFAULT,C=h===Je.CIRCULAR_FILL,g=h===Je.INCOMPLETE_COMPLETE,x=Pa("default",{failed:s,passed:o}),L=Pa({compact:r===gU,cover:m,overlay:p,sidebar:r===xU}),T=Pa("track",{"circular-fill":!p&&C,"incomplete-complete":m&&g}),y=Pa("fill",{"circular-fill":C,done:i,failed:s,passed:o,unstarted:a===0}),b=Pa("pass",{done:i,visible:o}),S=Pa("fail",{done:i,visible:s}),N=Sm.useMemo(()=>C||a===100?a:0,[C,a]);return Sm.useEffect(()=>{if(a!==100&&d===100)c(!1);else if(a===100&&!i&&!g){const k=setTimeout(()=>c(!0),300);return clearTimeout.bind(null,k)}else a===100&&!i&&g&&c(!0)},[i,g,d,a]),(0,n.jsx)(n.Fragment,{children:v?(0,n.jsx)("svg",{"aria-hidden":e,"aria-label":t,className:x,focusable:"false",viewBox:"0 0 7 7",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("circle",{cx:"3.5",cy:"3.5",r:"2.5"})}):(0,n.jsxs)("svg",{"aria-hidden":e,"aria-label":t,className:L,fill:"none",focusable:"false",role:"img",viewBox:"0 0 7 7",xmlns:"https://www.w3.org/2000/svg",children:[(0,n.jsx)("circle",{className:T,cx:"8",cy:"8",fill:"transparent",r:"7",strokeWidth:"2",transform:"rotate(-89.9 8 8)"}),(0,n.jsx)(Cm,{className:y,cx:8,cy:8,diameter:16,r:7,strokeLinecap:"round",strokeWidth:2,value:N}),(0,n.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,n.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 yU({Default:e,...t}){return(0,n.jsx)(e,{...t,hasOverlay:!1})}var LU=f(99372),Id=f.n(LU);const mC=e=>t=>(e(t),t.preventDefault()),Oo=e=>{e.stopPropagation(),e.nativeEvent.stopImmediatePropagation()},hn=e=>t=>{e(t),t.preventDefault(),Oo(t)},Ed=_("lesson-progress"),{COMPACT:Tm,COVER:dc,OVERLAY:Nm,SIDEBAR:uc}=yo;function SU({canComplete:e,color:t,hasRestriction:s,isComplete:o,isCurrentLesson:r,isDark:a,isEnabled:i,isFailed:c,isLegacy:d=void 0,isPassed:l,isTooltipVisible:h,navigationStyle:m,onHideTooltip:p,onMarkComplete:v=void 0,onMarkReset:C=void 0,onShowTooltip:g,percentComplete:x,progressGraphic:L,scope:T,labels:y}){const b=(0,u.useRef)(),S=(0,u.useRef)(),N=(0,u.useRef)(),k=(0,u.useRef)(),{theme:{progressIndicatorStyle:E=Je.THEME_DEFAULT}}=Re(),I=E===Je.THEME_DEFAULT,P=Ed({compact:T===Tm,cover:T===dc&&!d,"legacy-cover":T===dc&&d,inactive:s,overlay:T===Nm,sidebar:T===uc&&!d,"legacy-sidebar":T===uc&&d,"theme-default":I}),A=Ed("graphic",{compact:T===Tm,cover:T===dc&&!d,"legacy-cover":T===dc&&d,overlay:T===Nm,sidebar:T===uc&&!d,"legacy-sidebar":T===uc&&d}),w=Ed("tooltip",{legacy:d}).toString(),O=(0,u.useCallback)(()=>{o?C?.():v?.()},[o,v,C]),j=(0,u.useCallback)(H=>{Id()(p)&&cs(H)&&h&&p()},[p,h]),R=(0,u.useCallback)(()=>{clearTimeout(N.current),!s&&Id()(g)&&(S.current=setTimeout(g,600))},[s,g]),M=(0,u.useCallback)(()=>{clearTimeout(S.current),Id()(p)&&(N.current=setTimeout(p,150))},[p]),z=(0,u.useCallback)(()=>{setTimeout(()=>{if(h){const H=b.current.getBoundingClientRect(),F=k.current.offsetParent.getBoundingClientRect(),{height:K,width:Q}=H,J=H.left-F.left,te=H.top-F.top;Object.assign(k.current.style,{transform:`translate(${J}px, ${te}px)`,width:`${Q}px`,height:`${K}px`})}},0)},[h]);if((0,u.useLayoutEffect)(()=>z(),[z]),(0,Ye.A)("resize",z,window),(0,Ye.A)("keydown",j,document),q5(b,M),e){const H=Se&&x===100,F=TU({labels:y,percentComplete:x,canReset:!H}),K=!i||H,Q=Ed("action",{disabled:K});return(0,n.jsx)("span",{className:P,"data-testid":"lesson-progress",children:(0,n.jsx)("button",{"aria-label":F,className:Q,disabled:K,onBlur:p,onClick:O,onFocus:g,type:"button",children:(0,n.jsxs)("span",{className:A,onMouseEnter:R,onMouseLeave:M,ref:b,children:[(0,n.jsx)(L,{"aria-hidden":"true",color:t,isCurrent:r,isDark:a,isFailed:c,isPassed:l,navigationStyle:m,scope:T,value:x}),i&&!s&&(0,n.jsx)(pC,{className:w,dark:a,ref:k,scope:T,visible:h,children:F})]})})})}const $=NU({labels:y,isFailed:c,percentComplete:x});return(0,n.jsx)("span",{className:P,"data-testid":"lesson-progress",children:(0,n.jsxs)("span",{className:A,onMouseEnter:R,onMouseLeave:M,ref:b,children:[(0,n.jsx)(L,{"aria-label":$,color:t,isCurrent:r,isDark:a,isFailed:c,isPassed:l,navigationStyle:m,scope:T,value:x}),i&&!s&&(0,n.jsx)(pC,{className:w,dark:a,ref:k,scope:T,visible:h,children:$})]})})}const pC=(0,u.forwardRef)((e,t)=>{const{children:s,className:o,dark:r,scope:a,visible:i}=e,c=(0,u.useMemo)(()=>_(o),[o]),d=c({compact:a===Tm,cover:a===dc,overlay:a===Nm,sidebar:a===uc,visible:i}),l=c("inner",{dark:r,light:!r}),h=(0,n.jsx)("div",{"aria-hidden":"true",onClick:Oo,ref:t,style:{left:0,pointerEvents:"none",position:"absolute",top:0,zIndex:Number.MAX_SAFE_INTEGER},children:(0,n.jsx)("div",{style:{pointerEvents:"all"},children:(0,n.jsx)("div",{className:d,children:(0,n.jsx)("div",{className:l,children:s})})})});return(0,un.createPortal)(h,ro())});function TU({labels:e,canReset:t,percentComplete:s}){const o=s===100,{progressPieCompleted:r,progressPieUnstarted:a,progressPieClickToComplete:i,progressPieClickToReset:c}=e;return o&&t?`${r}. ${c}`:s===100&&!t?r:s===0?`${a}. ${i}`:`${s}% ${r}. ${i}`}function NU({labels:e,isFailed:t,percentComplete:s}){const o=s===100,{progressPieCompleted:r,progressPieUnstarted:a,progressPieQuizFailed:i}=e;return t?i:o?r:s===0?a:`${s}% ${r}`}const fC=u.memo(SU);function kU({color:e,hasRestriction:t,isComplete:s,isCurrentLesson:o,isFailed:r,isPassed:a,isTooltipVisible:i,lessonTitle:c,navigationStyle:d,onHideTooltip:l,onShowTooltip:h,percentComplete:m,progressGraphic:p,scope:v,labels:C}){return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"overview-list-item__progress",children:(0,n.jsx)(fC,{canComplete:!1,color:e,hasRestriction:t,isComplete:s,isCurrentLesson:o,isDark:!1,isEnabled:!0,isFailed:r,isPassed:a,isTooltipVisible:i,labels:C,navigationStyle:d,onHideTooltip:l,onShowTooltip:h,percentComplete:m,progressGraphic:p,scope:v})}),(0,n.jsx)("span",{className:"overview-list-item__title",children:c})]})}function IU(){return null}function gC({className:e,ref:t}){return(0,n.jsx)("svg",{"aria-hidden":"true",className:e,fill:"currentColor",focusable:"false",ref:t,viewBox:"0 0 13 13",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{d:"M3.33177 4.1487L6.48034 1.00013M9.6289 4.14869L6.48034 1.00013M6.48034 1.00013L6.47966 11.9601"})})}function EU(e){const t=Et(e,["Default"]);return(0,n.jsxs)($t,{...t,fill:"none",viewBox:"0 3 16 10",children:[(0,n.jsx)("path",{d:"M1.51472 7.99993H14.4853",stroke:"currentColor",strokeMiterlimit:"10",strokeWidth:"0.75"}),(0,n.jsx)("path",{d:"M9.50008 12.4994L14.5004 7.99932L9.50008 3.99973",stroke:"currentColor",strokeMiterlimit:"10",strokeWidth:"0.75"})]})}function jU(e){const t=Et(e,["Default"]);return(0,n.jsx)($t,{viewBox:"0 0 25 16",...t,children:(0,n.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 vC(e){return(0,n.jsx)(yt,{height:"8",viewBox:"0 0 14 8",width:"14",...e,children:(0,n.jsx)("path",{clipRule:"evenodd",d:"M13 1L7 7L1 1",stroke:"currentColor"})})}function CC(e){const t=Et(e,["Default"]);return(0,n.jsxs)($t,{...t,fill:"none",viewBox:"0 0 16 16",children:[(0,n.jsx)("circle",{cx:"8",cy:"8",r:"7",stroke:"white"}),(0,n.jsx)("path",{d:"M5 7.71429L7.54545 10L11.5 5.5",stroke:"white"})]})}function xC(e){const t=Et(e,["Default"]);return(0,n.jsxs)($t,{...t,fill:"none",viewBox:"0 0 16 16",children:[(0,n.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,n.jsx)("circle",{cx:"8",cy:"7.5293",r:"7",stroke:"white"})]})}function wU({className:e}){return(0,n.jsxs)("svg",{"aria-hidden":"true",className:e,fill:"none",viewBox:"0 0 15 15",xmlns:"http://www.w3.org/2000/svg",children:[(0,n.jsx)("circle",{cx:"6",cy:"6",r:"5"}),(0,n.jsx)("path",{d:"M9.5 9.5L14 14"})]})}function AU(e){const t=Et(e,["Default"]);return(0,n.jsxs)($t,{...t,fill:"none",viewBox:"0 0 16 16",children:[(0,n.jsx)("circle",{cx:"8",cy:"8",r:"7",stroke:"white"}),(0,n.jsx)("path",{d:"M10 6L6 10",stroke:"white"}),(0,n.jsx)("path",{d:"M6 6L10 10",stroke:"white"})]})}function RU({className:e}){return(0,n.jsx)("svg",{"aria-hidden":"true",className:e,fill:"none",focusable:"false",viewBox:"0 0 10 7",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{d:"M1 1.40002L5 5.40002L9 1.40002",strokeWidth:"1.6"})})}function PU(e){const t=Et(e,["Default"]);return(0,n.jsxs)($t,{viewBox:"0 0 12 12",...t,children:[(0,n.jsx)("path",{d:"M10.7425 0.742189L11.4496 1.4493L1.55012 11.3488L0.843012 10.6417L10.7425 0.742189Z",fill:"currentColor"}),(0,n.jsx)("path",{d:"M11.1571 10.6417L10.45 11.3488L0.550537 1.44929L1.25764 0.742188L11.1571 10.6417Z",fill:"currentColor"})]})}const MU=()=>bt(1200),OU=()=>bt(768),km=()=>bt(480),bC=_("cover");function BU(){const e=ee(),t=MU(),s=Te(e?.description);if(!s)return null;const o=Ta("description"),r=(0,jt.uW)(e?.description)?{"data-l10n-id":e?.description?.l10nId}:{"data-change-path":o};return(0,n.jsx)("div",{...r,children:(0,n.jsxs)("section",{className:bC("details-content-section"),children:[t&&(0,n.jsx)(nm,{}),(0,n.jsx)(be,{className:bC("details-content-description"),value:Qh(s)},"text")]})})}const DU={SPLIT_LEFT:"LEFT",SPLIT_LEFT_IMAGE:"LEFT_OVERLAY",SPLIT_RIGHT:"LEFT",SPLIT_RIGHT_IMAGE:"LEFT_OVERLAY"};function Im(){const e=ee(),t=OU(),s=e?.theme?.coverPageType||"CENTERED";return t?DU[s]??s:s}function HU({Default:e,...t}){const s=Im(),o=["SPLIT_RIGHT","SPLIT_RIGHT_IMAGE"].includes(s);return(0,n.jsx)(e,{...t,reverseColumns:o})}const yC=_("cover");function hc({accentColor:e,hasOverlay:t=!1,isShape:s=!1}){const{alpha:o,ariaLabel:r,media:a,role:i}=Lr("coverImage"),c=s?{backgroundColor:e}:la({alpha:o,hasOverlay:t,media:a});return(0,n.jsx)("div",{className:yC("header-graphic-container"),children:(0,n.jsx)("div",{"aria-label":r,className:yC("header-graphic"),"data-testid":"cover-header-graphic",role:i,style:c})})}const LC=e=>(0,n.jsx)(jd,{...e,children:(0,n.jsx)("clipPath",{clipPathUnits:"objectBoundingBox",id:"cover-page-clip-path",children:(0,n.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"})})}),SC=e=>(0,n.jsx)(jd,{...e,children:(0,n.jsx)("clipPath",{clipPathUnits:"objectBoundingBox",id:"cover-page-clip-path",children:(0,n.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"})})}),TC=e=>(0,n.jsx)(jd,{...e,children:(0,n.jsx)("clipPath",{clipPathUnits:"objectBoundingBox",id:"cover-page-clip-path",children:(0,n.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"})})}),NC=e=>(0,n.jsx)(jd,{...e,children:(0,n.jsx)("clipPath",{clipPathUnits:"objectBoundingBox",id:"cover-page-clip-path",children:(0,n.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"})})}),FU={LEFT_OVERLAY:LC,LEFT:LC,CENTERED:SC,CENTERED_OVERLAY:SC,SPLIT_LEFT:TC,SPLIT_LEFT_IMAGE:TC,SPLIT_RIGHT:NC,SPLIT_RIGHT_IMAGE:NC},jd=({children:e,className:t="svgPath",height:s,width:o,viewBox:r})=>(0,n.jsx)("svg",{"aria-hidden":"true",className:t,fill:"none",focusable:"false",height:s,viewBox:r,width:o,xmlns:"http://www.w3.org/2000/svg",children:e});function kr({className:e,coverPageType:t}){const s=t?FU[t]:null;return s?(0,n.jsx)(s,{className:e}):null}const kC=_("cover"),Ma=()=>(0,n.jsxs)("div",{className:kC("author-published-wrap"),children:[(0,n.jsx)(Pn,{}),(0,n.jsx)(T5,{})]}),VU=({coverPageType:e})=>{const t=km();return(0,n.jsxs)(dm,{children:[(0,n.jsx)(kr,{coverPageType:e}),(0,n.jsxs)(qt,{children:[!t&&(0,n.jsx)(Mt,{}),(0,n.jsx)(Ma,{}),(0,n.jsx)(es,{}),t&&(0,n.jsx)(Mt,{}),(0,n.jsx)(Jt,{})]})]})},zU=({coverPageType:e})=>{const t=km();return(0,n.jsxs)($s,{children:[(0,n.jsx)(kr,{coverPageType:e}),(0,n.jsxs)(qt,{children:[!t&&(0,n.jsx)(Mt,{}),(0,n.jsx)(Ma,{}),(0,n.jsx)(es,{}),t&&(0,n.jsx)(Mt,{}),(0,n.jsx)(Jt,{})]})]})},$U=({coverPageType:e})=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(kr,{coverPageType:e}),(0,n.jsx)(hc,{}),(0,n.jsx)($s,{children:(0,n.jsxs)(qt,{children:[(0,n.jsx)(Mt,{}),(0,n.jsx)(Ma,{}),(0,n.jsx)(es,{}),(0,n.jsx)(Jt,{})]})})]}),_U=({accentColor:e,coverPageType:t})=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)($s,{children:(0,n.jsxs)(qt,{children:[(0,n.jsx)(Mt,{}),(0,n.jsx)(Ma,{}),(0,n.jsx)(es,{}),(0,n.jsx)(Jt,{})]})}),(0,n.jsx)(kr,{coverPageType:t}),(0,n.jsx)(hc,{accentColor:e,isShape:!0})]}),UU=({coverPageType:e})=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)($s,{children:(0,n.jsxs)(qt,{children:[(0,n.jsx)(Mt,{}),(0,n.jsx)(Ma,{}),(0,n.jsx)(es,{}),(0,n.jsx)(Jt,{})]})}),(0,n.jsx)(kr,{coverPageType:e}),(0,n.jsx)(hc,{})]}),GU=({accentColor:e,coverPageType:t})=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(kr,{coverPageType:t}),(0,n.jsx)(hc,{accentColor:e,isShape:!0}),(0,n.jsx)($s,{children:(0,n.jsxs)(qt,{children:[(0,n.jsx)(Mt,{}),(0,n.jsx)(Ma,{}),(0,n.jsx)(es,{}),(0,n.jsx)(Jt,{})]})})]});function WU(e){const t=Im(),s={...e,coverPageType:t};switch(t){default:case se.LEFT_OVERLAY:case se.CENTERED_OVERLAY:return(0,n.jsx)(VU,{...s});case se.LEFT:case se.CENTERED:return(0,n.jsx)(zU,{...s});case se.SPLIT_LEFT:return(0,n.jsx)(_U,{...s});case se.SPLIT_LEFT_IMAGE:return(0,n.jsx)(UU,{...s});case se.SPLIT_RIGHT:return(0,n.jsx)(GU,{...s});case se.SPLIT_RIGHT_IMAGE:return(0,n.jsx)($U,{...s})}}function KU(e){const{partnerContentId:t}=ee()??{},s=cm(),r=!!(!!t&&!!s||Se);return(0,n.jsx)("header",{className:kC("header",{"with-info":r}),"data-testid":"cover-header",children:(0,n.jsx)(WU,{...e})})}var QU=f(80588);const ZU=_("cover");function YU({children:e}){const t=ee(),{themeId:s}=t?.theme??{},o=Im(),r=QU.useMemo(()=>ga()(o),[o]),a=ZU(null,{layout:r});return(0,n.jsx)("div",{className:a,"data-testid":`cover-layout-${r}`,"data-theme-id":s,id:"cover",children:e})}const co=_("cover");function XU({percentComplete:e}){const t=km(),s=rn(),o=ue(),r=D3();if(e===0||!Se)return null;const a=Ia({percent:e,label:o.progressSummaryPercentComplete,isRTL:s});return(0,n.jsxs)("div",{className:co("progress"),children:[t&&(0,n.jsx)("div",{className:co("progress-text"),children:a}),(0,n.jsx)("div",{className:co("progress-outer"),children:(0,n.jsx)("div",{className:co("progress-inner"),style:{width:`${e}%`}})}),(0,n.jsxs)("div",{className:co("progress-text-wrap"),children:[!t&&(0,n.jsx)("div",{className:co("progress-text"),children:a}),r&&(0,n.jsxs)("div",{className:co("progress-next-lesson"),children:[(0,n.jsx)(B5,{className:co("progress-next-lesson-icon").toString(),decorative:!0}),(0,n.jsx)("span",{"aria-hidden":"true",className:co("progress-next-lesson-text"),children:r}),(0,n.jsxs)("span",{className:"visually-hidden",children:["Next lesson: ",r]})]})]})]})}var IC=f(80588);const wd=_("lesson-header"),Em=()=>(0,n.jsx)("div",{className:wd("author--hidden")}),JU=({authorName:e,avatar:t,description:s,lessonName:o,lessonNumber:r,lessonPreposition:a,partnerContentAuthors:i,showAuthor:c,showLessonCount:d,title:l,totalLessons:h,lessonId:m})=>{const p=i!=null&&c,v=t&&e&&c&&!p,C=v||p||d,g=d&&(v||p);return(0,n.jsxs)("div",{className:wd("content"),children:[C&&(0,n.jsxs)("div",{className:wd("info-row"),children:[v?(0,n.jsx)(Mn,{authorName:e,avatar:t}):(0,n.jsx)(Em,{}),p&&(0,n.jsx)(Ea,{partnerContentAuthors:i}),g&&(0,n.jsx)("span",{"aria-hidden":"true",className:wd("info-row--divider"),children:"|"}),d?(0,n.jsx)(Bn,{lessonName:o,lessonNumber:r,lessonPreposition:a,totalLessons:h}):(0,n.jsx)(On,{})]}),(0,n.jsxs)("div",{children:[(0,n.jsx)(Dn,{id:m,title:l}),s&&(0,n.jsx)(Tr,{description:s})]})]})},qU=e=>{const{authorName:t,avatar:s,description:o,lessonName:r,lessonNumber:a,lessonPreposition:i,partnerContentAuthors:c,showAuthor:d,showLessonCount:l,title:h,totalLessons:m,lessonId:p}=e,v=c!=null,C=IC.useMemo(()=>s&&t&&d&&!v,[s,t,d,v]);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(Dn,{id:p,title:h}),(0,n.jsxs)(Q$,{children:[C?(0,n.jsx)(Mn,{authorName:t,avatar:s}):(0,n.jsx)(Em,{}),d&&v&&(0,n.jsx)(Ea,{partnerContentAuthors:c}),l?(0,n.jsx)(Bn,{lessonName:r,lessonNumber:a,lessonPreposition:i,showPartnerContent:v,totalLessons:m}):(0,n.jsx)(On,{})]}),o&&(0,n.jsx)(Tr,{description:o})]})},eG=e=>{const{authorName:t,avatar:s,description:o,lessonName:r,lessonNumber:a,lessonPreposition:i,partnerContentAuthors:c,showAuthor:d,showLessonCount:l,title:h,totalLessons:m,lessonId:p}=e,v=c!=null,C=IC.useMemo(()=>s&&t&&d&&!v,[s,t,d,v]);return(0,n.jsxs)(n.Fragment,{children:[l?(0,n.jsx)(Bn,{lessonName:r,lessonNumber:a,lessonPreposition:i,totalLessons:m}):(0,n.jsx)(On,{}),C?(0,n.jsx)(Mn,{authorName:t,avatar:s}):(0,n.jsx)(Em,{}),d&&v&&(0,n.jsx)(hm,{partnerContentAuthors:c}),(0,n.jsx)(Dn,{id:p,title:h}),o&&(0,n.jsx)(Tr,{description:o})]})};function tG(e){const t=qh();return e.lessonHeaderSize===Li.SMALL&&!t?(0,n.jsx)(JU,{...e}):t?(0,n.jsx)(eG,{...e}):(0,n.jsx)(qU,{...e})}var Ad=f(80588);const{COMPACT:sG,COVER:nG,OVERLAY:oG,SIDEBAR:rG}=yo,mc=_("progress-circle");function aG({"aria-hidden":e,"aria-label":t,isFailed:s,isPassed:o,scope:r,value:a}){const[i,c]=Ad.useState(a===100),d=(0,je.A)(a),{theme:l}=ee()??{},h=l?.progressIndicatorStyle??Je.THEME_DEFAULT,m=r===nG,p=r===oG,v=h===Je.THEME_DEFAULT,C=h===Je.CIRCULAR_FILL,g=h===Je.INCOMPLETE_COMPLETE,x=mc({compact:r===sG,cover:m,sidebar:r===rG,overlay:p}),L=mc("track",{"circular-fill":!p&&C,"incomplete-complete":m&&g}),T=mc("runner",{"circular-fill":C,done:i,failed:s,passed:o,unstarted:a===0}),y=mc("pass",{done:i,visible:o}),b=mc("fail",{done:i,visible:s}),S=Ad.useMemo(()=>C||a===100?a:0,[C,a]);Ad.useEffect(()=>{if(a!==100&&d===100)c(!1);else if(a===100&&!i&&!g){const k=setTimeout(()=>c(!0),300);return clearTimeout.bind(null,k)}else a===100&&!i&&g&&c(!0)},[i,g,d,a]);const N=Ad.useCallback(()=>{a===100&&c(!0)},[a]);return(0,n.jsxs)("svg",{"aria-hidden":e,"aria-label":t,className:x,fill:"none",focusable:"false",role:"img",viewBox:"0 0 15 15",xmlns:"https://www.w3.org/2000/svg",children:[(0,n.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,n.jsx)(oC,{className:T,cx:7.5,cy:7.5,diameter:15,onTransitionEnd:N,r:6.5,strokeWidth:2,transform:"rotate(-89.9 7.5 7.5)",value:a}):(0,n.jsx)(Cm,{className:T,cx:7.5,cy:7.5,diameter:15,onTransitionEnd:N,r:6.5,strokeLinecap:"round",strokeWidth:2,value:S}),(0,n.jsx)("path",{className:y,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,n.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 Rd=({"aria-hidden":e=void 0,"aria-label":t=void 0,progress:s=0,runnerClass:o,trackClass:r})=>(0,n.jsx)("div",{"aria-hidden":e,"aria-label":t,className:r,role:"img",children:(0,n.jsx)("div",{className:o,style:{width:`${s}%`}})}),iG=_("nav-sidebar-header");function cG(e){const{classProgressRunner:t,classProgressText:s,classProgressTrack:o,percentComplete:r,percentCompleteText:a}=e;return(0,n.jsxs)("div",{className:iG("progress"),"data-testid":"nav-sidebar-progress",children:[(0,n.jsx)("div",{className:s,children:a}),(0,n.jsx)(Rd,{"aria-hidden":"true",progress:r,runnerClass:t,trackClass:o})]})}function lG({className:e,ref:t}){return(0,n.jsx)("svg",{"aria-hidden":"true",className:e,fill:"currentColor",focusable:"false",height:"17",ref:t,role:"img",viewBox:"0 0 17 17",width:"17",xmlns:"http://www.w3.org/2000/svg",children:(0,n.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 dG(e){return(0,n.jsx)($t,{...e,viewBox:"0 0 16 8",children:(0,n.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 uG(e){const t=Et(e,["Default"]);return(0,n.jsx)($t,{...t,viewBox:"0 0 16 8",children:(0,n.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 hG({className:e,ref:t}){return(0,n.jsx)("svg",{"aria-hidden":"true",className:e,fill:"currentColor",focusable:"false",ref:t,version:"1.1",viewBox:"0 0 17 17",xmlns:"http://www.w3.org/2000/svg",children:(0,n.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 mG(e){return(0,n.jsx)(yt,{height:"12",viewBox:"0 0 16 12",width:"16",...e,children:(0,n.jsx)("path",{clipRule:"evenodd",d:"M9.6665 2H0.666504V0H9.6665V2ZM12.6665 6H0.666504V4H12.6665V6ZM0.666504 10H7.6665V8H0.666504V10Z",fill:"currentColor",fillRule:"evenodd"})})}function EC(e){return(0,n.jsx)(yt,{height:"8",viewBox:"0 0 12 8",width:"12",...e,children:(0,n.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 pG(e){return(0,n.jsx)(yt,{height:"8",viewBox:"0 0 12 8",width:"12",...e,children:(0,n.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 fG(e){return(0,n.jsxs)(yt,{height:"21",viewBox:"0 0 20 21",width:"20",...e,children:[(0,n.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,n.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,n.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 gG(e){return(0,n.jsx)(yt,{height:"15",viewBox:"0 0 16 15",width:"16",...e,children:(0,n.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 vG(e){return(0,n.jsxs)(yt,{height:"18",viewBox:"0 0 18 18",width:"18",...e,children:[(0,n.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,n.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 CG(e){return(0,n.jsxs)(yt,{height:"14",viewBox:"0 0 20 14",width:"20",...e,children:[(0,n.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,n.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 xG(e){return(0,n.jsx)(yt,{height:"14",viewBox:"0 0 14 14",width:"14",...e,children:(0,n.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 jC=f(80588);const wC=bn,bG={classic:bn,default:bn,imaginative:Xu,organic:e0},AC=Object.assign(jC.createContext(wC),{displayName:"ThemeContext"});function yG(){return jC.useContext(AC)}function LG({themeId:e,...t}){return(0,n.jsx)(AC.Provider,{...t,value:bG[e]??wC})}function SG(e){return(0,n.jsx)(n.Fragment,{children:e.children})}function TG(){return null}function RC(e,t,s){function o(r){const i=yG()?.[e]?.[t]??s;return(0,n.jsx)(i,{...r,Default:s})}return o.displayName=`ThemeComponent(${t})`,o}function we(e,t=SG){return RC("components",e,t)}function Nt(e){return RC("icons",e,TG)}var Pd=f(80588);const PC=Pd.createContext({typefaces:[]});function NG({addTypefaces:e,children:t,typefaces:s=[]}){kG(s);const o=Pd.useMemo(()=>({addTypefaces:e,typefaces:s}),[e,s]);return(0,n.jsx)(PC.Provider,{value:o,children:t})}function Ffe(){return Pd.useContext(PC)}function kG(e){Pd.useEffect(()=>{const t=new CSSStyleSheet;for(const s of e){const o=`[data-rise-typeface-id="${CSS.escape(s.id)}"] { font-family: "${CSS.escape(s.name)}"; }`;t.insertRule(o)}return t.insertRule('[data-rise-typeface-id="@@heading@@"] { font-family: var(--font-family-head); }'),t.insertRule('[data-rise-typeface-id="@@body@@"] { font-family: var(--font-family-body); }'),document.adoptedStyleSheets=[...document.adoptedStyleSheets,t],()=>{document.adoptedStyleSheets=document.adoptedStyleSheets.filter(s=>s!==t)}},[e])}function IG(e){return e.fonts}function MC(){return ae(IG)}var EG=f(80588);function jG({children:e}){const t=MC(),s=EG.useMemo(()=>{const o=new Map;for(const r of t)o.set(r.id,{id:String(r.id),name:r.name,default:r.default});return Array.from(o.values())},[t]);return(0,n.jsx)(NG,{typefaces:s,children:e})}function wG(){const e=ee();return{accentContrast:e.theme?.accentContrast,bodyTypeface:e.bodyTypeface,color:e.color,headingTypeface:e.headingTypeface,isLegacyCourse:e.isLegacyCourse,uiTypeface:e.uiTypeface}}function AG(){const e=zt(),t=(0,Ce.zy)(),s=(0,u.useRef)(e),o=(0,u.useRef)(new Set),r=(0,u.useRef)(window.location.href),a=(0,u.useRef)(null);s.current=e,a.current==null&&(a.current={push:(...i)=>s.current(...i),replace:i=>s.current(i,{replace:!0}),go:i=>s.current(i),goBack:()=>s.current(-1),goForward:()=>s.current(1),listen:i=>(o.current.add(i),()=>{o.current.delete(i)}),location:t}),(0,u.useEffect)(()=>{a.current&&yT(a.current)},[]),(0,u.useEffect)(()=>{if(!a.current)return;a.current.location=t,o.current.forEach(d=>d(t));const i=r.current,c=window.location.href;r.current=c,window.dispatchEvent(new HashChangeEvent("hashchange",{oldURL:i,newURL:c}))},[t])}var Oa=f(55549),RG=f(30349),PG=f.n(RG);const MG=Ms()(Ai()(/^#([0-9a-f]{3}|[0-9a-f]{6})$/i),Le()("#FFF")),OG=Gn()({color:MG}),BG=({accentContrast:e,bodyTypeface:t,color:s,headingTypeface:o,isLegacyCourse:r,uiTypeface:a})=>{const i=(0,u.useMemo)(()=>{const l=Bs(s),h=e??l;return!r&&(h===pe.DARK||h===pe.AUTO&&l===pe.DARK)?[ft.DARK,ft.LIGHT]:[ft.LIGHT,ft.DARK]},[e,s,r]),[c,d]=i;return(0,n.jsx)("div",{dangerouslySetInnerHTML:{__html:PG()({bodyTypeface:t,colorThemeRGB:(0,Oa.A)(s)?.slice(0,3),colorTheme:s,colorThemeContrast:c,colorThemeContrastComplementary:d,colorThemeContrastComplementaryRGB:(0,Oa.A)(d)?.slice(0,3),colorThemeContrastRGB:(0,Oa.A)(c)?.slice(0,3),colorThemeTint:B0(s),colorThemeTransparent:s+"1A",headingTypeface:o,uiTypeface:a})}})},jm=ce()(BG,OG);jm.displayName="Branding",jm.propTypes={bodyTypeface:ge().string,color:ge().string.isRequired,headingTypeface:ge().string,uiTypeface:ge().string};const DG=(0,u.memo)(jm),HG=e=>Se?e??"":e?`${e} | ${Df}`:Df,pc=e=>ui()?e:HG(e);let wm=!1;function Ir({children:e,title:t,isExplicit:s=!1}){const o=pc(s3()),r=t??o;return u.useEffect(()=>{if(s)return wm=!0,document.title=r,()=>{wm=!1};wm||(document.title=r)},[r,s]),(0,n.jsx)(n.Fragment,{children:e})}function FG(e,t){const s=yl(),{currentLocale:o}=Ze(),r=o&&s?.localeLabelSets?.[o]?.labels||e,a=o&&s?.localeLabelSets?.[o]!=null?o:t;return{labels:r,labelsLocale:a}}function VG({children:e}){const t=ee(),s=jo(),{labels:o,iso639Code:r}=$w(),a=u$(),i=ko(),c=t?.locale??r,{labels:d,labelsLocale:l}=FG(o,c);return(0,n.jsx)(zE,{course:t,courseProgress:s,labels:d,labelsLocale:l,partnerContent:a,search:i,children:e})}var zG=f(98829);function $G({children:e,l10n:t}){const s=(0,u.useMemo)(()=>({l10n:t==null?null:(0,zG.omit)(["locales","defaultLocale"],t)}),[t]),o=t?.locales,r=t?.defaultLocale,a=t?.localeSelectorOptions,i=t?.languageCodeMetadata,c=(0,u.useMemo)(()=>o==null||r==null?{l10n:null}:{l10n:{locales:o,defaultLocale:r,localeSelectorOptions:a,languageCodeMetadata:i}},[o,r,a,i]);return(0,n.jsx)(Ei.Provider,{value:s,children:(0,n.jsx)(p1.Provider,{value:c,children:e})})}function OC(e,t=window.location){const{defaultLocale:s,locales:o}=e??{},r=t.hash?(0,Ce.Rr)(t.hash.slice(1)):t;let i=new URLSearchParams(r.search).get("locale");const c=new URL(window.location.href);return c.pathname.startsWith("/view-pdf/")&&(i=c.searchParams.get("locale")),o?.find(l=>l.locale===i)?.locale||s}function _G({defaultLocale:e,locales:t}){const s=zt(),o=(0,Ce.zy)(),r=(0,u.useRef)(o);r.current=o;const a=(0,u.useMemo)(()=>OC({defaultLocale:e,locales:t},o),[e,t,o]),i=(0,u.useCallback)((c,d="replace")=>{const l=r.current,h=c===e?"":c,m=new URLSearchParams(l.search);m.set("locale",h);const p=l.pathname+"?"+m.toString()+l.hash;d==="push"?s(p):s(p,{replace:!0})},[e,s]);return{currentLocale:a,setCurrentLocale:i}}const BC=e=>e===window.location.origin||e==="articulate.com"||e.endsWith(".articulate.com");function UG(e,t){const s=ee(),o=yl(),r=ae(d=>d.courseLabels.iso639Code),a=s?.locale??r,i=o?.locales;(0,u.useEffect)(()=>{document.documentElement.lang=e??a??""},[e,a]),(0,u.useEffect)(()=>{s&&r1({course:s,locales:i,locale:e})?document.documentElement.dir="rtl":document.documentElement.dir=""},[s,i,e]);const c=(0,u.useCallback)(d=>{if(!BC(d.origin))return;const h=[d.data].flat().find(m=>m?.type==="preview:selectLocale");h&&t(h.data,"replace")},[t]);(0,u.useEffect)(()=>(window.addEventListener("message",c),()=>window.removeEventListener("message",c)),[c])}function GG({children:e}){const t=yl(),{currentLocale:s,setCurrentLocale:o}=_G({defaultLocale:t?.defaultLocale,locales:t?.locales});return UG(s,o),(0,n.jsx)($G,{l10n:t,children:(0,n.jsx)(ME,{currentLocale:s,setCurrentLocale:o,children:e})})}function WG(e){const t=e,s=t?.exportSettings?.webExportSettings,o=t?.exportSettings?.exportType==="raw",r=t?.exportSettings?.exportType==="lms";return!!(o&&s?.disableCoverPage||r&&t?.lmsOptions?.disableCoverPage)}function DC(e){return!eo.isInstantLink&&WG(e)}function KG(e){return ZL(e)||S0(e)?!0:DC(e)}function HC(e){return e.lessonsOnly[0]?.id}const FC=(0,u.createContext)({translationHoveredPath:null});function QG(){return(0,u.use)(FC)}const ZG=FC.Provider,YG=new Set(["preview:lessonUpdate","preview:navigate","preview:scrollto","preview:showLessonNavNext","preview:showLessonNavPrev","preview:themeUpdate","preview:update","preview:navOpen","preview:navClose","preview:replace","preview:changeset","preview:selectLocale",ls.FOCUS,ls.TOGGLE,ls.CLEAR,ls.TRANSLATION_HOVERED,ls.TRANSLATION_HOVER_CLEAR]),XG=(e,t)=>!(e==="firstLesson"&&t.includes("/lessons/"))&&!(e==="cover"&&(t==="/"||t==="/preview"));function JG({course:e,fonts:t,l10n:s}){let o=!1;return yv(t,()=>{o||(fs($k({course:e,fonts:t,l10n:s})),window.parent.postMessage({type:"preview:themeUpdateComplete"},window.location.origin))}),{cancel(){o=!0}}}function qG(){let e=[],t=0;return s=>{clearTimeout(t);for(const o of s)e.push(o);t=window.setTimeout(()=>{const o=e;e=[],fs(Uk(o))},15)}}function eW(){const e=zt(),t=(0,Ce.zy)(),s=ae(L=>L.course),[o,r]=(0,u.useState)(""),[a,i]=(0,u.useState)({translationHoveredPath:null}),[c,d]=(0,u.useState)(!1),[l,h]=(0,u.useState)(!1),m=(0,u.useRef)(e);m.current=e;const p=(0,u.useRef)(t);p.current=t;const v=(0,u.useRef)(s);v.current=s;const C=(0,u.useRef)(null),g=(0,u.useRef)(qG()),x=(0,u.useRef)(t);return(0,u.useEffect)(()=>{x.current!==t&&(h(!0),x.current=t)},[t]),(0,u.useEffect)(()=>{if(l){const L=setTimeout(()=>{h(!1),d(!1)},0);return()=>clearTimeout(L)}},[l]),(0,u.useEffect)(()=>{const L=T=>{const{data:y,origin:b}=T;if(!BC(b))return;const S=m.current,k=p.current.pathname,E=v.current,I=E?.lessonsOnly,P=Array.isArray(y)?y:[y];for(const{type:A,data:w,options:O}of P)if(YG.has(A)){if(A===ls.TOGGLE&&window.targetMode?.(w,R=>{window.parent.postMessage({type:ls.HOVERED,data:R},"*")})?.then(R=>{window.parent.postMessage({type:ls.SELECTED,data:R},"*")}).catch(()=>{window.parent.postMessage({type:ls.SELECTED,data:[]},"*")}),A==="preview:update"&&r(w),A==="preview:themeUpdate"){C.current?.();const{course:j,l10n:R,fonts:M,theme:z}=w,$={...j,theme:z},H=LN({course:E,updates:$}),{cancel:F}=JG({course:H,fonts:M,l10n:R});C.current=F}if(A==="preview:navigate"){let{type:j,lessonId:R,itemId:M}=w;const{path:z,replace:$}=w,H=$?F=>S(F,{replace:!0}):S;if(XG(j,k)){if(Array.isArray(z)){const F=(0,$r.Ce)(z);if(F)({type:j,lessonId:R,itemId:M}=F);else if(z[0]==="mondrian")for(const K of E?.lessons??[]){const Q=K.items?.find(J=>"blockumentId"in J&&J.blockumentId===z[1]);if(Q){j="lesson",R=K.id,M=Q.id;break}}else continue}if(j==="firstLesson"&&I?.[0])H(`/lessons/${I[0].id}`);else if(j==="cover"||j==="course")H("/");else if(j==="lesson"&&I?.find(({id:K})=>K===R)!=null&&(v1(Qv.getState())===Lo.RESTRICTED&&fs(uI({targetLessonId:R,lessons:E?.lessons??[]})),`/lessons/${R}`!==k&&H(`/lessons/${R}`),M||z)){const Q=()=>{window.dispatchEvent(new CustomEvent(Ge,{detail:{lessonId:R,itemId:M,path:z}}))};`/lessons/${R}`!==k?setTimeout(Q,1500):Q()}}}if(A===ls.CLEAR&&window.dispatchEvent(new CustomEvent(pm)),A==="preview:navOpen"&&window.dispatchEvent(new CustomEvent(G5)),A==="preview:navClose"&&window.dispatchEvent(new CustomEvent(W5)),A==="preview:showLessonNavPrev"&&window.dispatchEvent(new CustomEvent(bd)),A==="preview:showLessonNavNext"&&window.dispatchEvent(new CustomEvent(yd)),A==="preview:scrollto"&&typeof w.target=="string"){const j=document.querySelector(w.target);j&&j.scrollIntoView({behavior:"smooth",block:"start"})}A==="preview:replace"&&fs(zk(w)),A==="preview:changeset"&&g.current(w),A===ls.FOCUS&&Lz(w.path),A===ls.TRANSLATION_HOVERED&&(i({translationHoveredPath:w.path}),yz(w.path)),A===ls.TRANSLATION_HOVER_CLEAR&&(i({translationHoveredPath:null}),Cz()),A==="preview:lessonUpdate"&&(fs(_k(w)),window.parent.postMessage({type:"preview:lessonUpdateComplete"},window.location.origin)),A==="preview:selectLocale"&&O?.shouldRetainParentFocus&&d(!0)}};return window.addEventListener("message",L),()=>window.removeEventListener("message",L)},[]),{previewType:o,targetModeContext:a,didNavigate:l,shouldSkipAutoFocusOnNavigate:c}}const VC=(0,u.createContext)(null);function Am(){const e=(0,u.useContext)(VC);if(e==null)throw new Error("usePreviewState must be used within PreviewRuntimeProvider");return e}function tW({children:e}){const{previewType:t,targetModeContext:s,didNavigate:o,shouldSkipAutoFocusOnNavigate:r}=eW(),a=(0,u.useMemo)(()=>({previewType:t||void 0,didNavigate:o,shouldSkipAutoFocusOnNavigate:r}),[t,o,r]);return(0,n.jsx)(ZG,{value:s,children:(0,n.jsx)(VC,{value:a,children:e})})}const Ba=_("cover");function sW(){const{categories:e}=ee();return!Array.isArray(e)||e.length===0?null:(0,n.jsxs)("section",{className:Ba("categories-section"),children:[(0,n.jsx)("h2",{className:Ba("categories-title"),children:"Topics"}),(0,n.jsx)("ul",{className:Ba("categories-list"),role:"list",children:e.map(t=>(0,n.jsxs)("li",{className:Ba("categories-item"),role:"listitem",children:[(0,n.jsx)(S$,{className:Ba("categories-icon")}),(0,n.jsx)("span",{className:Ba("categories-item-wrap"),children:t})]},t))})]})}var nW=f(81406);const oW=`${ye("CDN_URI")}/assets/rise/assets/certificate-icon.svg`,rW=`${ye("CDN_URI")}/assets/rise/assets/error_x.svg`,aW=`${ye("CDN_URI")}/assets/rise/assets/loading_spinner.svg`,fc="downloading",Da="error",Er="ok",Rm="contained",zC=({type:e})=>{const[t]=(0,u.useState)(()=>Po()("certdownload-")),[s,o]=(0,u.useState)(Er),r=(0,je.A)(s),a=(0,u.useRef)(),i=ue(),c=`${t}-live`,d=G()("certificateDownload",{certificateDownloadContained:e===Rm}),l=(0,u.useCallback)(()=>{o(fc)},[]);return(0,u.useEffect)(()=>(s===fc&&r!==fc&&UI().then(()=>{o(Er)}).catch(h=>{(0,nW.FZ)(h)?o(Er):o(Da)}),()=>{GI()}),[r,s]),(0,u.useEffect)(()=>{a.current&&(s===Da&&r!==Da||s===Er&&(r===Da||r===fc))&&a.current.focus()},[r,s]),(0,n.jsxs)("div",{className:d,children:[(0,n.jsxs)("div",{"aria-live":"polite",id:c,role:"status",children:[s===fc&&(0,n.jsxs)("span",{className:"certificateDownload__downloading",children:[(0,n.jsx)("img",{alt:"",className:"animation-loading certificateDownload__downloadingImg",height:"15",src:aW,width:"15"}),i?.certificateDownloadInProgress||"Downloading..."]}),s===Da&&(0,n.jsxs)("span",{className:"certificateDownload__error",children:[(0,n.jsx)("img",{alt:"Error",className:"certificateDownload__errorImg",height:"15",src:rW,width:"15"}),(0,n.jsx)("span",{className:"visually-hidden",children:i?.a11yCertificateDownloadFailed||"Failed to download certificate"})]})]}),(s===Er||s===Da)&&(0,n.jsxs)("button",{"aria-controls":c,className:"certificateDownload__btn",onClick:l,ref:a,type:"button",children:[s===Er&&e===Rm&&(0,n.jsx)("img",{alt:"",className:"certificateDownload__okImg",height:"15",src:oW,width:"15"}),s===Er?i?.certificateDownload||"Download certificate":i?.certificateRetryDownload||"Retry download"]})]})},iW=()=>(0,n.jsx)(zC,{type:Rm}),cW=(0,u.memo)(zC);var lW=f(20108),dW=f.n(lW),uW=f(83334),hW=f.n(uW);const mW=st()(dW()({}),K2()(["first_name","last_name"]),ta()(" "),hW()),pW=({className:e,decorative:t,size:s,...o})=>{const r=Vt()(["avatars","medium"],o),a=t?"":mW(o)||"Unknown User";return r?(0,n.jsx)("img",{alt:a,className:e||"user-avatar",src:r,style:{height:s,width:s}}):(0,n.jsx)(Eh,{decorative:t,height:s,title:a,width:s})},fW=`${xT("CDN_URI")}/assets/rise/assets/trophy.svg`,Md=_("cover");function gW(){const{certificateDownload:e,riseComCurrentUser:t}=ee(),s=ue(),o=ww(),a=k1()?.quizPassed??!0;return!(o&&a&&!ug())||window.viewType==="preview"?null:(0,n.jsxs)("div",{className:Md("completed-info"),children:[(0,n.jsxs)("div",{className:Md("completed-info-avatar"),children:[(0,n.jsx)(pW,{...t,decorative:!0}),(0,n.jsx)("img",{alt:"",className:Md("completed-info-trophy"),src:fW})]}),(0,n.jsxs)("div",{className:Md("completed-info-label"),children:[(0,n.jsx)("span",{"aria-hidden":"true",children:s?.coverCompleted||"Completed"}),(0,n.jsx)("span",{className:"visually-hidden",children:s?.a11yCoverCourseCompleted||"Course Completed"})]}),e&&(0,n.jsx)(cW,{})]})}const vW=_("cover");function CW({className:e="",dueAt:t}){const s=cw(),o=k1(),r=o==null||o.quizPassed||o.outOfAttempts,a=P5(t),i=vW("due-date",{urgent:a}).mix(e);return!t||s&&r?null:(0,n.jsx)("div",{className:i,tag:"div",children:am(t)})}const xW=we("CoverDueDate",CW);function bW(e){const{dueAt:t}=ji()??{};return(0,n.jsx)(xW,{...e,dueAt:t})}const $C=({failed:e,complete:t})=>{const s=ue();return(0,n.jsxs)("span",{className:"visually-hidden-always",children:[e?s?.a11yCoverRequirementFailed||"Requirement failed":t?s?.a11yCoverRequirementComplete||"Requirement complete":s?.a11yCoverRequirementIncomplete||"Requirement incomplete",": "]})},mn=_("cover");function yW(){const e=ee(),t=ue(),{trackingCompletionPercentage:s,trackingQuizId:o}=e;return s==null&&!o?null:(0,n.jsxs)("section",{className:mn("requirements-section"),children:[(0,n.jsx)("h2",{className:mn("requirements-title"),children:t?.coverCourseRequirements||"Course Requirements"}),(0,n.jsxs)("ul",{className:mn("requirements-list"),children:[(0,n.jsx)(LW,{}),(0,n.jsx)(TW,{})]})]})}function LW(){const{trackingCompletionPercentage:e}=ee(),t=d3(),s=ua(),o=ue(),r=Math.ceil(e/100*t),a=r===t;if(e==null||r==null)return null;const i=s>=e,c=i?k$:I$;return(0,n.jsxs)("li",{className:mn("lesson-requirement"),role:"listitem",children:[(0,n.jsx)(c,{"aria-hidden":"true",className:mn("lesson-requirement-icon",{complete:i}).toString()}),(0,n.jsxs)("span",{className:mn("lesson-requirement-text"),children:[(0,n.jsx)($C,{complete:i}),a?o?.coverCompleteAllLessons||"Complete all lessons in this course":[o?.coverCompleteLessonsName||"Complete",r,o?.coverCompleteLessonsPreposition||"of",t,o?.coverCompleteLessonsInCourse||"lessons in this course"].join(" ")]})]})}const SW={passed:w$,failed:j$,requirement:A$};function TW(){const e=ue(),t=iw(),s=k1(),o=rn(),r=vt(t?.title),a=t?.settings?.passingScore;if(!r||!s)return null;const{outOfAttempts:i,quizPassed:c}=s,d=!c&&i;let l="requirement";c?l="passed":d&&(l="failed");const h=SW[l],m=Ia({percent:a,label:e?.coverQuizPercentOrHigher||"% or higher",isRTL:o});return(0,n.jsxs)("li",{className:mn("quiz-requirement"),role:"listitem",children:[(0,n.jsx)(h,{"aria-hidden":"true",className:mn("quiz-requirement-icon",{type:l}).toString()}),(0,n.jsxs)("span",{className:mn("quiz-requirement-text"),children:[(0,n.jsx)($C,{complete:c,failed:d}),r,a!=null&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{"aria-hidden":"true",className:mn("quiz-requirement-seperator"),children:"\xA0|\xA0"}),e?.coverQuizScoreOf||"Score of"," ",m]}),d&&(0,n.jsx)("div",{className:mn("quiz-requirement-no-attempts"),children:e?.coverNoAttemptsRemaining||"No attempts remaining"})]})]})}const NW=_("cover"),kW=e=>{const{coursePartnerContent:t,hasPartnerContent:s}=e;return s?(0,n.jsx)(kd,{type:"partner-content",children:(0,n.jsx)(dC,{partnerContent:t})}):null},IW=we("CoverCourseInfo",e=>{const{coursePartnerContent:t,hasLogo:s,hasPartnerContent:o}=e,r=NW("details-content-aside",{logo:s});return(0,n.jsxs)("div",{className:r,children:[Se&&(0,n.jsx)(nm,{}),(0,n.jsx)(kW,{coursePartnerContent:t,hasPartnerContent:o}),Se&&!o&&(0,n.jsx)(f$,{}),Se&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(yW,{}),(0,n.jsx)(bW,{}),(0,n.jsx)(gW,{}),(0,n.jsx)(sW,{})]})]})}),EW=_("cover"),jW=we("CoverDescription",()=>{const e=ee(),{navigation:t}=e,s=Te(e.description),o=t?"description":"description-no-outline";if(!s)return null;const r=Ta("description"),a=(0,jt.uW)(e.description)?{"data-l10n-id":e.description.l10nId}:{"data-change-path":r};return(0,n.jsx)("div",{...a,children:(0,n.jsx)(kd,{type:o,children:(0,n.jsx)(be,{className:EW("details-content-description"),value:Qh(s)},"text")})})}),_C=_("cover"),wW=({className:e=_C("details-logo"),imageClassName:t=_C("details-logo-image")})=>{const s=ee()??{},o=Te(s.media)?.image??{},{height:r,key:a,width:i,scalar:c=T0.SMALL.value}=o,d={width:i*c,height:r*c};if(!a)return null;const l=Ct(o);return(0,n.jsx)("div",{className:e,"data-testid":"cover-details-logo",children:(0,n.jsx)("img",{alt:"",className:t,"data-testid":"cover-details-logo-image",height:d.height,src:l,width:d.width})})},AW=(e,t)=>{const s=Vt()(["lessons",t],e),o=De()(0,["percentComplete"],s),r=Vt()(["passed"],s);return{isComplete:Vt()(["isComplete"],s),percentComplete:o,passedQuiz:r}};function RW({icon:e,...t}){switch(e){case or.ARTICLE:return(0,n.jsx)(OO,{...t});case or.INTERACTION:return(0,n.jsx)(SF,{...t});case or.QUIZ:return(0,n.jsx)(QH,{...t});case or.VIDEO:return(0,n.jsx)(HF,{...t});default:return(0,n.jsx)("i",{className:"icon icon-Master-02"})}}var gc=f(41496);function Us(){return(0,Ce.RQ)("/lessons/:currentLessonId")?.params?.currentLessonId}const PW=we("LessonProgressGraphic");function Od({canComplete:e,id:t,isDark:s,isEnabled:o,isTooltipVisible:r,onHideTooltip:a,onShowTooltip:i,scope:c}){const{color:d,navigationStyle:l}=ee(),h=wo(t),m=Us(),p=j3(t),v=w3(t),C=Bi(t),g=ue(),x=C?.type!=null,L=h?.isComplete,T=t===m,y=h?.percentComplete??0,b=(0,u.useCallback)(()=>{fs(Xg(t))},[t]),S=(0,u.useCallback)(()=>{fs(Qk(t))},[t]);return(0,n.jsx)(fC,{canComplete:e,color:d,hasRestriction:x,isComplete:L,isCurrentLesson:T,isDark:s,isEnabled:o,isFailed:p,isPassed:v,isTooltipVisible:r,labels:g,navigationStyle:l,onHideTooltip:a,onMarkComplete:b,onMarkReset:S,onShowTooltip:i,percentComplete:y,progressGraphic:PW,scope:c})}const MW=_("overview-list-item");function OW({className:e,id:t,last:s}){const o=zt(),r=Us(),{color:a,isLegacyCourse:i,navigationStyle:c,theme:d}=ee(),{accentContrast:l}=d,{icon:h,title:m}=At(t)??{},p=vt(m),v=wo(t),C=j3(t),g=w3(t),x=Bi(t),L=ue(),T=(0,jt.uW)(m)?{"data-l10n-id":m.l10nId}:{"data-change-path":L5(t,"title")},y=v?.isComplete,b=v?.percentComplete??0,S=x?.type!=null,[N,k]=(0,u.useState)(!1),E=(0,u.useCallback)(()=>k(!0),[]),I=(0,u.useCallback)(()=>k(!1),[]),P=G()("overview-list__li",{"overview-list__li--last":s}),A=G()(e,"overview-list-item"),w=(0,u.useCallback)(O=>{const{currentTarget:{hash:j}}=O;O.preventDefault(),gc.Ay.Events.scrollEvent.register("end",()=>{io(()=>{o(j.slice(1))},"cover-to-lesson"),gc.Ay.Events.scrollEvent.remove("end")}),gc.Ay.animateScroll.scrollTo(0,{containerId:"overview"})},[o]);return(0,n.jsx)("li",{...T,className:P,"data-testid":`overview-list-item-${t}`,role:"listitem",children:(0,n.jsx)(ac,{className:A,isTooltipEnabled:!0,lessonId:t,onBlur:I,onClick:w,onHideProgressTooltip:I,onShowProgressTooltip:E,showProgressDelay:25,tooltipClassName:"overview-list-item-tooltip",children:(0,n.jsx)(HW,{accentContrast:l,color:a,hasRestriction:S,isComplete:y,isCurrentLesson:t===r,isFailed:C,isLegacyCourse:i,isPassed:g,isTooltipVisible:N,labels:L,lessonIcon:h,lessonId:t,lessonTitle:p,navigationStyle:c,onHideTooltip:I,onShowTooltip:E,percentComplete:b,progressGraphic:BW,scope:yo.COVER})})})}const BW=we("LessonProgressGraphic");function DW({isTooltipVisible:e,lessonIcon:t,lessonId:s,lessonTitle:o,onHideTooltip:r,onShowTooltip:a,scope:i}){const c=MW("progress-circle");return(0,n.jsxs)("div",{className:c,children:[(0,n.jsx)("span",{"aria-hidden":"true",className:"overview-list-item__icon",children:(0,n.jsx)(RW,{icon:t})}),(0,n.jsx)("span",{className:"overview-list-item__title","data-testid":`overview-list-item-title-${s}`,children:o}),(0,n.jsx)(Od,{canComplete:!1,id:s,isDark:!1,isEnabled:!0,isTooltipVisible:e,onHideTooltip:r,onShowTooltip:a,scope:i})]})}const HW=we("OverviewListItemLinkContent",DW),FW=_("overview-list"),VW=e=>e.reduce((t,s)=>(s.type==="section"?t.push([s]):t[t.length-1]?t[t.length-1].push(s):t.push([s]),t),[]),zW=we("OverviewListSectionTitle",({className:e="",...t})=>{const s=Gr()(["Default"],t);return(0,n.jsx)("h2",{...s,className:`${e} overview-list__section-title`})}),$W=()=>{const e=jo(),t=Dw(),s=ue(),o=VW(t);return(0,n.jsx)("nav",{"aria-label":s?.a11yRegionNavOverview,className:"overview-list",children:o.map((r,a)=>{const[i={},...c]=r,{title:d,type:l}=i,h=l==="section",m=h?c:r,p=FW("list",{sectionless:!h});return(0,n.jsxs)("section",{children:[h&&d&&(0,n.jsx)(zW,{children:(0,n.jsx)(lt,{value:d})}),(0,n.jsx)("ol",{className:p,role:"list",children:m.map((v,C)=>{const{passedQuiz:g}=AW(e,v.id);return(0,n.jsx)(OW,{id:v.id,last:m.length>1&&C===m.length-1,passedQuiz:g},v.id)})})]},a)})})},_W=(0,u.memo)($W),UW=e=>Object.values(T0).find(t=>t.value==e);function GW(e){return(0,u.useMemo)(()=>UW(e)??T0.SMALL,[e])?.label.toLowerCase()}const Ha=_("cover"),WW=we("CoverDetails",({reverseColumns:e})=>{const t=bt(1200),{description:s,media:o,navigation:r,partnerContentId:a,publishedAt:i,selectedAuthorId:c}=ee(),d=yr(),l=Hs()(Ae()("id",c),d),h=!!a&&l,m=vt(o)?.image,p=!gt()(m),v=!s||!r,C=!s&&!r,g=!!(h||Se),x=Ha("details",{"rise-com":Se,"rise-com-authoring":Se&&!i}),L=Ha("details-content-wrap",{columns:g,logo:p}),T=Ha("details-content",{"no-description-or-outline":v}),y=Ha("details-logo",{centered:C,"no-description-or-outline":v,"has-partner-content":!!a}),b=g&&(0,n.jsx)(IW,{coursePartnerContent:l,hasLogo:p,hasPartnerContent:h}),S=GW(m?.scalar),N=Ha("details-logo-image",{[S]:!0}),k=Ha("details-description-outline");return(0,n.jsx)("section",{className:x,"data-testid":"cover-details",children:(0,n.jsxs)("div",{className:L,children:[!t&&e&&b,(0,n.jsxs)("div",{className:T,children:[(0,n.jsx)(wW,{className:y,imageClassName:N}),(0,n.jsxs)("div",{className:k,children:[s&&(0,n.jsx)(jW,{}),t&&b,r&&(0,n.jsx)(kd,{type:"outline",children:(0,n.jsx)(_W,{})})]})]}),!t&&!e&&b]})})}),KW=we("CoverHeader"),QW=we("CoverLayout"),ZW=["[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(e=>`${e}:not([tabindex="-1"]):not([hidden]):not([aria-hidden="true"])`).join(", "),UC=(e,t=!1)=>s=>{const o=GC(s);if(o.length===0)return;const r=e>=o.length&&t?0:e;return Sf()(r,o)},GC=e=>e?Array.from(e.querySelectorAll(ZW)).filter(t=>window.getComputedStyle(t).display!=="none"):[],WC=UC(0),YW=UC(-1),Pm=e=>WC(e)?.focus?.();function XW(){const e=(0,u.useRef)(null);function t(s){const o=WC(e.current),r=YW(e.current);hd(s)&&(s.shiftKey?document.activeElement===o&&(r.focus(),s.preventDefault()):document.activeElement===r&&(o.focus(),s.preventDefault()))}return(0,u.useEffect)(()=>{const s=e?.current;return s?.addEventListener("keydown",t),()=>{s?.removeEventListener("keydown",t)}},[]),e}var Mm;const Om=u.createContext(null);Om.displayName="UndoManagerContext";function Yfe(e){return Mm(Om.Provider,{value:e.undoManager,children:e.children})}function KC(){return u.useContext(Om)}function Xfe(e){function t(s){const o=KC();return Mm(e,{...s,undoManager:o})}return t.displayName=`withUndoManager(${e.displayName||e.name})`,t}function QC(){const e=KC();u.useEffect(()=>{if(e!=null)return e.disable(),()=>e.enable()},[e])}function Jfe(e){function t(s){return QC(),Mm(e,{...s})}return t.displayName=`withDisableUndoManager(${e.displayName||e.name})`,t}const ys=_("modal"),Bm=u.forwardRef((e,t)=>{const{children:s,className:o,"data-testid":r,darkOverlay:a,disableBackgroundScroll:i,disableCloseOnOverlayClick:c,disableCloseOnEscape:d=!1,focusFirstInput:l=!0,focusOnOpen:h=!0,footer:m,forceToTop:p=!1,fullscreen:v=!1,heading:C,hideCloseButton:g=!1,hideHeader:x=!1,skipDialogClose:L=!1,useTopLayer:T=!0,onCancel:y,onClose:b=tn,onClickBack:S,onCloseBubbles:N=!1,onOverlayClick:k,scroll:E=!1,subHeading:I,subText:P,width:A}=e;QC();const w=XW(),O=(0,u.useRef)(null),j=(0,u.useCallback)(()=>{const $=w.current;!L&&$?.open&&$.close(),b()},[b,w,L]);(0,u.useEffect)(()=>{const $=H=>{cs(H)&&!d&&(H.preventDefault(),H.stopPropagation(),y?.(H),j())};return document.addEventListener("keydown",$,!N),()=>{document.removeEventListener("keydown",$,!N)}},[d,y,j,N]),(0,u.useEffect)(()=>{const $=w.current;if($)return T?$.showModal():$.show(),h||setTimeout(()=>{$.contains(document.activeElement)&&document.activeElement?.blur()},0),()=>{$.close()}},[w,T,h]),(0,u.useEffect)(()=>{if(l&&w.current){const $=GC(w.current).find(F=>F.tagName==="INPUT"||F.tagName==="TEXTAREA"||F.tagName==="SELECT"),H=$||O?.current;H?.focus(),H instanceof HTMLTextAreaElement&&H.setSelectionRange(H.value.length,H.value.length)}},[l,w]),(0,u.useEffect)(()=>(i&&(document.scrollingElement||document.documentElement).classList.add("no-scroll"),()=>{i&&(document.scrollingElement||document.documentElement).classList.remove("no-scroll")}),[i,w]);const R=ys({"force-to-top":p}).mix(o),M=ys("content",{"with-footer":!!m,"force-scroll":!!E}),z=ys("overlay",{dark:!!a});return(0,n.jsxs)("dialog",{"aria-labelledby":"modal-heading","aria-modal":"true",className:R.toString(),"data-testid":r,onClose:j,ref:$=>{w.current=$,t&&(t.current=$)},role:"dialog",children:[(0,n.jsx)("div",{id:"modal-portal"}),(0,n.jsx)("div",{className:z,onClick:c?void 0:k||j}),(0,n.jsxs)("div",{className:ys("dialog",{fullscreen:v}),style:A&&!v?{width:A}:{},children:[(!x||!g)&&(0,n.jsxs)("div",{className:ys("heading-wrapper"),children:[(0,n.jsxs)("div",{className:ys("heading-flexbox"),children:[!x&&(0,n.jsxs)("div",{className:ys("header"),children:[S&&(0,n.jsx)(Me.ArcButton,{"aria-label":"back to previous page",hierarchy:"secondary",icon:"fa-regular fa-arrow-left",layout:"icon",onClick:S,shape:"square",size:"md",type:"button"}),(0,n.jsxs)("h1",{className:ys("heading"),id:"modal-heading",children:[C,(0,n.jsx)("span",{className:ys("subheading"),children:I})]})]}),!g&&(0,n.jsx)("button",{"aria-label":"close dialog",className:ys("close"),onClick:j,ref:O,type:"button",children:(0,n.jsx)(ie,{className:"icon",name:"close"})})]}),P?(0,n.jsx)("h2",{className:ys("subtitle"),children:P}):[]]}),(0,n.jsx)("div",{className:M,children:s}),m&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:ys("footer-shadow")}),(0,n.jsx)("div",{className:ys("footer"),children:m})]})]})]})}),Fa=_("locale-selector"),Dm=({onClose:e})=>{const t=(0,Ce.zy)(),s=ee(),o=WE(),r=xl(),a=KE(),i=a?.length?a:o&&r?r?.map(S=>S.locale):void 0,[c,d]=(0,u.useState)(!1),l=c&&(i?.length||0)>1,h=(0,je.A)(l),m=vt(s?.title),{currentLocale:p,setCurrentLocale:v}=Ze(),C=lV(),g=ue(),[x,L]=(0,u.useState)(!1),T=(0,u.useCallback)(S=>{MT(S),v(S)},[v]),y=()=>{fs(q0(!1))};(0,u.useEffect)(()=>{h&&!l&&e?.()},[e,h,l]),(0,u.useEffect)(()=>{if(!i||x||o===void 0||!r)return;if(i.length===1){T(i[0]),L(!0);return}const S=ig(void 0),N=PT()??"";if(N!==""){T(N),L(!0),d(!1);return}S?.[fi]==null&&N===""?d(!0):(d(!1),y());const E=(navigator.language??"en-US").toLowerCase(),I=i.find(P=>P.toLowerCase()===E);T(I?E:i[0]),L(!0)},[i,t,T,x,o,r,d]);const b=S=>{S.preventDefault();const N=S.target.value;T(N)};return!l||o===void 0||!r?null:(0,n.jsx)(Un,{classNames:"modal",timeout:400,children:(0,n.jsx)(Bm,{className:Fa("modal"),disableCloseOnOverlayClick:!0,hideCloseButton:!0,hideHeader:!0,onClose:y,children:(0,n.jsxs)("div",{className:Fa("container"),children:[(0,n.jsx)("div",{className:Fa("heading"),children:g.l10nChooseLanguage}),(0,n.jsx)("div",{className:Fa("course-title"),children:m}),(0,n.jsx)("div",{className:Fa("selector"),children:(0,n.jsx)("select",{onChange:b,value:p,children:i.map(S=>(0,n.jsx)("option",{value:S,children:C(S)},S))})}),(0,n.jsx)("div",{className:Fa("footer"),children:(0,n.jsx)(Me.ArcButton,{onClick:y,size:"lg",children:g.l10nChooseLanguageContinue})})]})})})};var JW=f(80588);const qW=_("cover-container"),ZC=()=>document.querySelector("h1")?.focus({preventScroll:!0});function eK(){const{didNavigate:e,shouldSkipAutoFocusOnNavigate:t}=Am(),o=ue()?.overviewPageTitleSuffix,r=aa();return JW.useEffect(()=>{t||e&&ZC()},[e,t]),(0,n.jsxs)(Ir,{title:pc(`${r} - ${o}`),children:[(0,n.jsx)("main",{children:(0,n.jsx)("div",{className:qW({}),children:(0,n.jsxs)(QW,{children:[(0,n.jsx)(KW,{}),(0,n.jsx)(WW,{})]})})}),(0,n.jsx)(Dm,{onClose:ZC})]})}const YC=eK,XC=(0,u.createContext)(void 0);function Bd(){const e=(0,u.useContext)(XC);return e||(console.warn("useMediaContext must be used within a MediaProvider"),{mode:"readonly",openTranscript:null,closeTranscript:null,onTranscriptUpdate: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 JC(e){function t(s){const o=Bd();return(0,n.jsx)(e,{...s,...o})}return t.displayName=`WithMediaContextWrapper(${e.name})`,t}function tK({children:e,lessonId:t,mode:s="readonly",openTranscript:o,closeTranscript:r,onTranscriptUpdate:a,disableTranscriptButton:i=!1}){const c={mode:s,lessonId:t||"",openTranscript:o||null,closeTranscript:r||null,onTranscriptUpdate:a||null,disableTranscriptButton:i,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,n.jsx)(XC.Provider,{value:c,children:e})}const qC=(0,u.createContext)(void 0),sK=qC.Provider;function vc(){return(0,u.useContext)(qC)}function nK({children:e}){const t=ae(s=>s.transcriptPanel);return(0,n.jsx)(sK,{value:t,children:e})}const e4=(0,le.action)(_v),Cc=(0,le.action)(Uv),Hm=(0,le.action)(Gv);function pn(e){return e.refs?ga()("audio-id__refs_"+e.refs.toLowerCase()):""}function Fm(e){if(e)return`audio-transcript--${e}`}function t4(e){if(e)return`audio-player-transcript-toggle--${e}`}const s4=_("course-exit");function n4(e){const t=ue(),{className:s,lmsOptions:o,style:r}=e;return o?.enableExitCourse?(0,n.jsx)("div",{className:s4("wrapper"),children:(0,n.jsx)("button",{className:s4("button").mix(s),onClick:Hf,style:r,type:"button",children:t?.courseExit})}):null}const Vm=_("nav-control"),oK=()=>{const[e,t]=(0,u.useState)(!1);return(0,Ye.A)(Z5,()=>t(!0)),(0,Ye.A)(fm,()=>t(!1)),e},rK=({"aria-controls":e,isNavOpen:t,toggleNav:s,hideNav:o})=>{const{buttonNavigationStyle:r,lmsOptions:a,showNavigationButtons:i,...c}=ee(),d=(0,u.useRef)(null),[l,h]=(0,u.useState)(0),m=ue(),p=cc(),v=Tl(),C=oK(),x=!!(0,u.useMemo)(()=>c.lessons?.find(N=>N.id===v),[c.lessons,v])?.settings?.timer,L=a?.enableExitCourse,T=x||L,y=c.navigationType===dr.COMPACT,b=y?"fixed-course-exit":void 0;(0,u.useEffect)(()=>{d.current=document.querySelector(".page-wrap");const k=document.querySelector(".lesson-nav--previous")?.clientHeight??60,E=!i||r===Zn.FLOATING&&!p;function I({target:P}){const A=P?.scrollTop??0,w=k-A;h(w)}return C&&!E?d.current.scrollTop===0?h(k):d.current.addEventListener("scroll",I):h(0),()=>d.current.removeEventListener("scroll",I)},[r,p,C,i]);const S=(0,u.useCallback)(()=>{const N=document.getElementsByClassName("nav-control__menu--top-nav-bar")?.item(0);if(d.current&&N){const k=d.current.offsetWidth-d.current.clientWidth||0;N.style.maxWidth=`calc(100% - ${k}px)`}},[]);return(0,u.useLayoutEffect)(()=>{T&&S()},[T,S]),(0,n.jsx)("div",{className:Vm("wrapper"),children:(0,n.jsxs)("div",{className:Vm("menu",{"is-timed-quiz":x,"nav-off":o,"top-nav-bar":T}),style:{marginTop:l},children:[!o&&(!y||p)&&(0,n.jsx)("button",{"aria-controls":e,"aria-expanded":t,"aria-label":t?m?.a11yNavigationMenuClose:m?.a11yNavigationMenuOpen,className:Vm("button"),onClick:s,type:"button",children:(0,n.jsx)(ie,{classNameIcon:"page-menu-toggle__icon",name:"bars-regular"})}),(0,n.jsx)(n4,{className:b,lmsOptions:a})]})})},o4=_("nav-compact"),aK=we("NavCompactHeaderCounter",e=>{const{lessonPosition:t,labelLessonName:s,labelLessonPreposition:o,totalLessons:r}=e;return t<=0?null:(0,n.jsx)("div",{className:o4("header-counter"),"data-testid":"nav-compact-counter",children:`${s} ${t} ${o} ${r}`})}),iK=we("NavCompactHeaderProgress",e=>{const{classProgressRunner:t,classProgressText:s,classProgressTrack:o,percentComplete:r,percentCompleteText:a,navExpanded:i}=e;return(0,n.jsxs)("div",{className:o4("header-progress"),"data-testid":"nav-compact-progress",children:[(0,n.jsx)("div",{className:s,children:a}),(0,n.jsx)(Rd,{"aria-hidden":i,"aria-label":a,progress:r,runnerClass:t,trackClass:o})]})}),cK=({closeNav:e,isExpanded:t,openNav:s})=>{const o=zt(),r=it(),a=ji(),i=ee(),c=aa(),d=ua(),l=ue(),h=ko(),m=Ll(),p=Tl(),v=R3(),C=(0,u.useMemo)(()=>i?.lessonsOnly?.length??0,[i?.lessonsOnly]),g=(0,u.useMemo)(()=>v[p]??-1,[v,p]),x=a?.navigationStyle,L=(0,u.useMemo)(()=>Mi(x),[x]),T=(0,u.useCallback)(()=>{t?e():s()},[t,s,e]),y=a?.exportSettings?.webExportSettings,b=!eo.isInstantLink&&(a?.lmsOptions?.disableCoverPage||y?.disableCoverPage),S=(0,u.useCallback)(te=>{te.preventDefault(),io(()=>{o("/")},"lesson-to-cover")},[o]),E=`${rn()?`%${d}`:`${d}%`} ${l?.lessonComplete??""}`,{alpha:I,ariaLabel:P,media:A,role:w}=Lr("coverImage"),O=(0,u.useMemo)(()=>la({alpha:I,color:a?.theme?.coverImageColor,media:A}),[I,a?.theme?.coverImageColor,A]),j=G()("nav-compact__header",{"nav-compact__header--collapsed":!t}),R=G()("nav-compact__header-image",{"nav-compact__header-image--collapsed":!t}),M="nav-compact__header-inner",z="nav-compact__header-control",$=G()("nav-compact__header-title-link",{"nav-compact__header-title-link--collapsed":!t}),H=G()("nav-compact__header-progress-text",{"nav-compact__header-progress-text--collapsed":!t}),F=G()("nav-compact__header-progress-track",{"nav-compact__header-progress-track--collapsed":!t}),K=G()("nav-compact__header-progress-runner",{"nav-compact__header-progress-runner--collapsed":!t}),Q="nav-compact__header-strip",J=(0,u.useCallback)(()=>{r(Ni(!h?.active))},[r,h?.active]);return(0,n.jsxs)("section",{"aria-label":"Course Information",className:j,"data-testid":"nav-compact-header",children:[L&&O&&(0,n.jsx)("div",{"aria-label":P,className:R,role:w,style:O}),(0,n.jsxs)("div",{className:M,children:[(0,n.jsxs)("div",{className:Q,children:[(0,n.jsxs)("div",{className:"nav-compact__header-controls",children:[a?.allowSearch&&m!=="restricted"&&t&&(0,n.jsx)("button",{"aria-label":l?.a11ySearchOpen,className:`${z} nav-compact__header-search`,"data-testid":"nav-compact-search",onClick:J,type:"button",children:(0,n.jsx)(nc,{className:"nav-compact__header-control-icon nav-compact__header-search-icon"})}),(0,n.jsxs)("button",{"aria-controls":"nav-compact-outline","aria-expanded":t,"aria-label":t?l?.a11yNavigationMenuClose:l?.a11yNavigationMenuOpen,className:`${z} nav-compact__header-toggle`,"data-testid":"nav-compact-toggle",onClick:T,type:"button",children:[t&&(0,n.jsx)(T$,{className:"nav-compact__header-control-icon nav-compact__header-toggle-icon"}),!t&&(0,n.jsx)(N$,{className:"nav-compact__header-control-icon nav-compact__header-toggle-icon"})]})]}),(0,n.jsx)(aK,{labelLessonName:l?.lessonName??"",labelLessonPreposition:l?.lessonPreposition??"",lessonPosition:g,totalLessons:C})]}),(0,n.jsx)("div",{className:"nav-compact__header-title","data-testid":"nav-compact-title",children:b?(0,n.jsx)("span",{className:$,children:c}):(0,n.jsx)(is,{className:$,onClick:S,to:"/",children:c})}),(0,n.jsx)(iK,{classProgressRunner:K,classProgressText:H,classProgressTrack:F,navExpanded:t,percentComplete:d,percentCompleteText:E})]})]})};var lK=f(16733),dK=f.n(lK),uK=f(88139),hK=f.n(uK),mK=f(11406),pK=f.n(mK),fK,gK,vK,CK,xK;function r4(e,t,s="..."){const o=e?e.toString():"";return o.length>t?o.substr(0,t-1)+s:o}const r2e=e=>xK(t=>gK(t)>e,vK(0,e)),bK=null,yK=e=>bK.test(e),LK=e=>e>=0,SK=e=>e<=100,a2e=e=>e==="",i2e=e=>yK(e)&&SK(e)&&LK(e),c2e=e=>String(Number(e)),a4=ce()(ta()(""),dK()(hK(),0)),l2e=ce()(ta()(" "),tt()(a4),D0()(" ")),i4=ce()(ta()(" "),D0()(/(?=[A-Z]|^)/)),d2e=e=>e?fK(a4,CK,i4)(e):"",u2e=ce()(pK(),i4);function c4({id:e,isEnabled:t,isSectionLesson:s,last:o}){const{navigationStyle:r}=ee(),{settings:a}=At(e)??{},i=ma(e),c=Us(),d=j1(e),l=(0,u.useMemo)(()=>Eo(r),[r]),h=e===c,m=a?.isGeneratingAIContent===!0,p=r4(i||"",45),[v,C]=(0,u.useState)(!1),g=(0,u.useCallback)(()=>C(!0),[]),x=(0,u.useCallback)(()=>C(!1),[]),L=s?"nav-compact__outline-section-item":"nav-compact__outline-item",T=`${L}__link`,y=(0,n.jsx)(Od,{canComplete:d,id:e,isDark:l,isEnabled:t,isTooltipVisible:v,onHideTooltip:x,onShowTooltip:g,scope:yo.COMPACT});return(0,n.jsx)("li",{className:"nav-compact__outline-list-item","data-testid":`nav-compact-lesson-${e}`,role:"listitem",children:m?(0,n.jsx)("div",{className:L,children:(0,n.jsx)("span",{"aria-disabled":"true",className:`${T} ${T}--generating`,"data-testid":`nav-compact-lesson-${e}-generating`,children:p})}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(ac,{className:L,dark:l,isCurrentLesson:h,isTooltipEnabled:!d,last:o,lessonId:e,onHideProgressTooltip:x,onShowProgressTooltip:g,showProgressDelay:0,tooltipClassName:`${L}-tooltip`,children:[p,!d&&y]}),d&&y]})})}const TK=_("nav-compact"),NK=({id:e})=>{const t=At(e),s=vt(t?.title),o=TK("outline-section-empty");return(0,n.jsx)("div",{className:o,children:(0,n.jsx)("span",{children:s})})};var Va=f(80588);const kK=({index:e,isEnabled:t,lessonIds:s,id:o})=>{const r=ee(),a=r?.theme,i=r?.themeId,c=a?.navigationSectionsExpanded??!0,d=At(String(o)),l=vt(d?.title),[h,m]=Va.useState(c);Va.useEffect(()=>{m(c)},[c]);const[p,v]=Va.useState(),C=Va.useRef(null),g=`sublistCompact-${e}`,x=String(i),L=G()("nav-compact__outline-section-toggle-icon",{"nav-compact__outline-section-toggle-icon--collapsed":!h}),T=G()("nav-compact__outline-section-list",{"nav-compact__outline-section-list--collapsed":!h}),y=G()("nav-compact__outline-section-toggle",{"nav-compact__outline-section-toggle--collapsed":!h}),b=Va.useCallback(()=>{m(S=>!S)},[]);return Va.useLayoutEffect(()=>{const S=setTimeout(()=>{C.current&&v(C.current.scrollHeight)},0);return()=>{clearTimeout(S)}},[s.length,x]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("button",{"aria-controls":g,"aria-expanded":h,className:y,onClick:b,tabIndex:t?void 0:-1,type:"button",children:[(0,n.jsx)("span",{className:"nav-compact__outline-section-toggle-text",children:l}),(0,n.jsx)(H5,{className:L})]}),(0,n.jsx)(Di,{inert:!h,children:(0,n.jsx)("ol",{"aria-hidden":h?void 0:!0,className:T,id:g,ref:C,role:"list",style:{maxHeight:p},children:s.map((S,N)=>(0,n.jsx)(c4,{id:S,isEnabled:t&&h,isSectionLesson:!0,last:N===s.length-1},S))})})]})},IK=({index:e,isEnabled:t,lessonIds:s})=>{const[o,...r]=s,a="nav-compact__outline-item nav-compact__outline-section";return gt()(r)?(0,n.jsx)("li",{className:a,role:"listitem",children:(0,n.jsx)(NK,{id:o})}):(0,n.jsx)("li",{className:a,role:"listitem",children:(0,n.jsx)(kK,{id:o,index:e,isEnabled:t,lessonIds:r})})},EK=({index:e,isEnabled:t,lessonIds:s})=>El(s)?(0,n.jsx)(IK,{index:e,isEnabled:t,lessonIds:s}):s.map((r,a)=>(0,n.jsx)(c4,{id:r,isEnabled:t,isSectionLesson:!1,last:a===s.length-1},r)),jK=we("NavCompactOutline",({className:e="",isEnabled:t})=>{const s=wl(),o=ue(),r=G()(e,"nav-compact__outline",{"nav-compact__outline--collapsed":!t});return(0,n.jsx)("section",{"aria-label":o?.a11yRegionNavOverview,className:r,"data-testid":"nav-compact-outline",id:"nav-compact-outline",children:cn(s)&&(0,n.jsx)("ol",{className:"nav-compact__outline-list","data-testid":"nav-compact-outline-list",role:"list",children:s.map((a,i)=>gt()(a)?null:(0,n.jsx)(EK,{index:i,isEnabled:t,lessonIds:a},i))})})});var wK=f(80588);const AK=()=>{const[e,t]=wK.useState(!1);return(0,Ye.A)(Y5,()=>t(!0)),(0,Ye.A)(gm,()=>t(!1)),e},l4=_("nav-compact"),d4="nav-content-compact",RK=(0,u.forwardRef)(({closeNav:e,isExpanded:t,openNav:s},o)=>{const r=ji(),{navigationStyle:a,theme:i}=r??{},c=i?.coverImageColor,d=i?.progressIndicatorStyle,l=ae(b=>b.course?.theme?.buttonNavigationStyle==="FULL"?Math.round(-(b.ui.lessonNavNextButton?.intersectionRect?.height??0)):0),h=(0,u.useMemo)(()=>Eo(a),[a]),m=(0,u.useMemo)(()=>a===ur.LIGHT_ACCENT||a===ur.DARK_ACCENT,[a]),p=AK(),v=(0,u.useMemo)(()=>Mi(a),[a]),C=d===Je.CIRCULAR_FILL,g=d===Je.INCOMPLETE_COMPLETE,x=(0,u.useMemo)(()=>v&&c===nt.LIGHT,[v,c]),L=l4({accent:m,dark:h,light:!h,"image-dark-overlay":v&&!x,"image-light-overlay":v&&x,"progress-circular-fill":C,"progress-incomplete-complete":g,collapsed:!t,navNextIsVisible:p}),T=l4("wrap",{collapsed:!t}),y={transform:`translateY(${l}px)`};return(0,n.jsx)("div",{className:L,"data-testid":"nav-compact",id:d4,ref:o,style:y,children:(0,n.jsxs)("div",{className:T,children:[(0,n.jsx)(cK,{closeNav:e,isExpanded:t,openNav:s}),(0,n.jsx)(Di,{inert:!t,children:(0,n.jsx)(jK,{isEnabled:t})})]})})});var u4=f(14230);const h4=Object.assign((0,u.createContext)(null),{displayName:"OverlayNavControlContext"});function PK(e){const{children:t,closeNav:s,openNav:o}=e,[r,a]=(0,u.useState)(!1),i=(0,u.useCallback)(()=>{a(!0)},[]),c=(0,u.useCallback)(()=>{a(!1)},[]);return(0,n.jsx)(h4.Provider,{value:{closeNav:s,openNav:o,openSearch:i,closeSearch:c,searchActive:r},children:t})}const Dd=u.useContext.bind(null,h4),Hd=_("nav-overlay"),MK=({className:e})=>{const{navigationStyle:t}=ee(),{lessonComplete:s}=ue(),o=rn(),r=ua(),i=`${o?`%${r}`:`${r}%`} ${s}`,c=t!==So.ACCENT,d=Hd("header-progress-runner"),l=Hd("header-progress-text"),h=Hd("header-progress-track");return(0,n.jsxs)("div",{className:Hd("header-progress").mix(e),"data-testid":"nav-overlay-progress",children:[(0,n.jsx)(Rd,{"aria-hidden":!0,background:!0,disabled:c,progress:r,runnerClass:d,trackClass:h}),(0,n.jsx)("div",{className:l,children:i})]})},lo=_("nav-overlay"),OK=()=>{const e=ee(),t=zt(),s=aa(),{allowSearch:o,lmsOptions:r={}}=e||{},a=Ll(),i=ue(),c=Dd(),d=(0,u.useRef)(),l=lo("header-control-btn"),h=e?.exportSettings?.webExportSettings,m=!eo.isInstantLink&&(r?.disableCoverPage||h?.disableCoverPage),p=v=>{v.preventDefault(),io(()=>{t("/")},"lesson-to-cover")};return(0,n.jsx)("section",{"aria-label":"Course Information","data-testid":"nav-overlay-header",children:(0,n.jsxs)("div",{className:lo("header-container"),children:[(0,n.jsxs)("div",{className:lo("header-controls"),children:[(0,n.jsx)("button",{"aria-label":i?.a11yNavigationMenuClose,className:l,"data-testid":"nav-overlay-close",onClick:c.closeNav,ref:d,type:"button",children:(0,n.jsx)(xd,{className:lo("header-close-icon")})}),o&&a!=="restricted"&&(0,n.jsx)("button",{"aria-label":i?.a11ySearchOpen,className:l,"data-testid":"nav-overlay-search",onClick:c.openSearch,type:"button",children:(0,n.jsx)(nc,{className:lo("header-search-icon")})})]}),(0,n.jsxs)("div",{className:lo("header-title-progress-container"),children:[(0,n.jsx)("h1",{className:lo("header-title"),"data-testid":"nav-overlay-title",id:"nav-overlay-title",children:m?(0,n.jsx)("span",{className:lo("header-title"),children:s}):(0,n.jsx)(is,{className:lo("header-title-link"),onClick:p,to:"/",children:s})}),(0,n.jsx)(MK,{})]})]})})},Fd=({icon:e,...t})=>{switch(e){case or.INTERACTION:return(0,n.jsx)(R$,{...t});case or.QUIZ:return(0,n.jsx)(E$,{...t});case or.VIDEO:return(0,n.jsx)(P$,{...t});default:return(0,n.jsx)(L$,{...t})}},uo=_("nav-overlay"),m4=we("NavOverlayOutlineLesson",({first:e,id:t,isEnabled:s,isSectionLesson:o,last:r})=>{const{navigationStyle:a}=ee(),{icon:i,settings:c}=At(t)??{},d=ma(t),l=Dd(),h=j1(t),m=Eo(a),p=c?.isGeneratingAIContent===!0,v=uo("outline-item",{section:o}),C=`${uo("outline-item")}__link`,g=uo("outline-item-link-icon",{quiz:i==="Quiz"}),x=(0,u.useCallback)(()=>{l.closeNav()},[l]),[L,T]=(0,u.useState)(!1),y=(0,u.useCallback)(()=>T(!0),[]),b=(0,u.useCallback)(()=>T(!1),[]),S=(0,n.jsx)(Od,{canComplete:h,id:t,isDark:m,isEnabled:s,isTooltipVisible:L,onHideTooltip:b,onShowTooltip:y,scope:yo.OVERLAY});return(0,n.jsx)("li",{className:uo("outline-list-item",{first:e,last:r}),"data-testid":`nav-overlay-lesson-${t}`,role:"listitem",children:p?(0,n.jsx)("div",{className:v.toString(),children:(0,n.jsxs)("span",{"aria-disabled":"true",className:`${C} ${C}--generating`,"data-testid":`nav-overlay-lesson-${t}-generating`,children:[(0,n.jsx)("span",{className:uo("outline-icon-wrap"),children:(0,n.jsx)(Fd,{className:g,icon:i})}),(0,n.jsx)("span",{className:uo("outline-lesson-title"),children:d})]})}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(ac,{className:v.toString(),dark:m,isTooltipEnabled:!h,lessonId:t,onHideProgressTooltip:b,onNavigate:x,onShowProgressTooltip:y,showProgressDelay:null,tooltipClassName:uo("outline-item-tooltip").toString(),children:[(0,n.jsx)("span",{className:uo("outline-icon-wrap"),children:(0,n.jsx)(Fd,{className:g,icon:i})}),(0,n.jsx)("span",{className:uo("outline-lesson-title"),children:d}),!h&&S]}),h&&S]})})}),BK=_("nav-overlay"),DK=({id:e})=>{const t=At(e),s=vt(t.title);return(0,n.jsx)("span",{className:BK("outline-section-text"),children:s})},p4=_("nav-overlay"),HK=({isEnabled:e,lessonIds:t})=>{const s=(0,u.useRef)();return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:p4("outline-section-divider")}),(0,n.jsx)("ol",{className:p4("outline-section-list"),ref:s,role:"list",children:t.map((o,r)=>(0,n.jsx)(m4,{id:o,isEnabled:e,isSectionLesson:!0,last:r===t.length-1},o))})]})},FK=_("nav-overlay"),VK=({index:e,isEnabled:t,lessonIds:s})=>{const[o,...r]=s,a=FK("outline-item").mix("nav-overlay__outline-section");return gt()(r)?(0,n.jsx)("li",{className:a,role:"listitem",children:(0,n.jsx)(DK,{id:o})}):(0,n.jsx)("li",{className:a,role:"listitem",children:(0,n.jsx)(HK,{index:e,isEnabled:t,lessonIds:r})})},zK=({index:e,isEnabled:t,lessonIds:s})=>{const o=El(s),r=ma(s[0]),a=_("nav-overlay");return o?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("h2",{className:a("outline-section-text"),children:r}),(0,n.jsx)("ol",{className:a("outline-list"),"data-testid":"nav-overlay-outline-list",role:"list",children:(0,n.jsx)(VK,{index:e,isEnabled:t,lessonIds:s})})]}):s.map((i,c)=>(0,n.jsx)(m4,{first:c===0,id:i,isEnabled:t,isSectionLesson:!1,last:c===s.length-1},i))},$K=_("nav-overlay"),_K=we("NavOverlayOutline",({isEnabled:e})=>{const t=wl(),s=ue();return(0,n.jsx)("section",{"aria-label":s?.a11yRegionNavOverview,className:$K("outline"),"data-testid":"nav-overlay-outline",id:"nav-overlay-outline",children:cn(t)&&(0,n.jsx)(n.Fragment,{children:t.map((o,r)=>gt()(o)?null:(0,n.jsx)(zK,{index:r,isEnabled:e,lessonIds:o},`lessonIdGroup-${r}`))})})});var UK=f(87479),Vd=f.n(UK),jr=f(74299),GK=f(65205),zd=f.n(GK);const zm=Array.isArray,WK=e=>typeof e=="number",$d=e=>!Xe()(e)&&typeof e=="object",$m=e=>typeof e=="string",KK=(e,t,s)=>(o,r)=>{const a=Tn()(r,e);if((0,jt.uW)(o)){const i=s[o.l10nId];return typeof i!="string"?!1:!gt()(zd()(t,(0,jr.htmlDecode)(i)))}else return $d(o)?f4(e,t,s)(o):a&&$m(o)?!gt()(zd()(t,(0,jr.htmlDecode)(o))):!1},f4=(e,t,s)=>o=>st()(ms(),Ft(),Tn()(!0))(KK(e,t,s),o),QK=f4;var ZK=f(47951),_m=f.n(ZK),YK=f(23144),_d=f.n(YK);const XK=(e,t,s)=>(o,r)=>{const a=Tn()(r,e);return zm(o)?Ft()(Um(e,t,s)(o)):(0,jt.uW)(o)?typeof s[o.l10nId]!="string"?0:Zt()(zd()(t,(0,jr.htmlDecode)(s[o.l10nId]))):$d(o)?Um(e,t,s)(o):a&&$m(o)?Zt()(zd()(t,(0,jr.htmlDecode)(o))):0},Um=(e,t,s)=>o=>ms()(XK(e,t,s),o),Gm=e=>{if(zm(e))return tt()(Gm,e);if($d(e))return Gm(Ft()(e));if(WK(e))return e},JK=(e,t,s)=>o=>st()(Um(e,t,s),Ft(),tt()(Gm),di(),_d()(_m(),0),r=>rs()("results",r,o))(o),qK=(e,t,s)=>(o,r)=>{const a=Tn()(r,e);return zm(o)?Ft()(Wm(e,t,s)(o)):$d(o)?Wm(e,t,s)(o):a&&$m(o)?ir()(t,s,o):o},Wm=(e,t,s)=>o=>ms()(qK(e,t,s),o),g4=Wm,v4=(e,t,s,o,r)=>{const a=["caption","code","description","heading","message","name","paragraph","title"];if(gt()(e))return!1;const i=e.replace(/[-[\]{}()"'*+?.,\\^$|#\s]/g,"\\$&"),c=new RegExp(`(${i})(?![^<]*>)`,"ig"),d=L=>`<mark>${L}</mark>`,l=g4(a,c,d),h=g4(Object.keys(s),c,d),m=tt()(l,t),p=o?o(e):{},v=h(s),C=L=>p[L.id]>0||QK(a,c,s)(L),g=JK(a,c,s),x=st()(ws()(C),tt()(g))(t);x.forEach(L=>{L.results+=p[L.id]??0}),r(e,x,v,m)};function eQ(e){if(!e)return!0;for(const t in e)return!1;return!0}function C4(){const{lessons:e,mondrian:t}=ee(),{currentLocale:s}=Ze(),[o,r]=(0,u.useState)(null);return(0,u.useEffect)(()=>{eQ(t)||f.e("webpack_container_remote_mondrian_learn-react").then(f.t.bind(f,4246,23)).then(a=>r(()=>a.searchItemsByLesson))},[t]),(0,u.useCallback)(a=>o?.(a,e,t,s)??{},[o,e,t,s])}const tQ=gc.Ay.animateScroll,Gs=_("nav-overlay"),sQ=()=>{const e=it(),t=r3(),s=Dd(),{lessons:o}=ee(),[r,a]=(0,u.useState)(""),i=C4(),c=(0,u.useRef)(),d=ue(),l=Gs("search-close-btn"),h=Gs("search-clear-btn"),m=(0,u.useCallback)(()=>{s.closeSearch(),s.closeNav(),e([Ov(!0),Ni(!1),gr(null)])},[e,s]),p=(0,u.useCallback)(()=>{a(""),c.current?.focus?.()},[]);(0,u.useEffect)(()=>{c.current?.focus?.()},[]);const v=(0,u.useCallback)(x=>{cs(x)&&!Vd()(r)?(x.preventDefault(),a(""),e(gr(null))):cs(x)&&Vd()(r)&&m()},[e,m,r]);(0,Ye.A)("keydown",v);const C=(0,u.useCallback)(x=>{a(x.target.value)},[]),g=(0,u.useCallback)(x=>{if(x.preventDefault(),r){const L=(T,y,b,S)=>{e([gr(T),Bv(y),Dv(b),Hv(S),Ni(!0)]),tQ.scrollToTop({duration:500,smooth:!0})};s.closeNav(),s.closeSearch(),v4(r,o,t??{},i,L)}},[r,i,s,o,t,e]);return(0,n.jsxs)("div",{className:Gs("search"),"data-testid":"nav-overlay-search-container",children:[(0,n.jsx)("div",{className:Gs("search-header"),children:(0,n.jsx)("button",{"aria-label":d?.a11ySearchClose,className:l,"data-testid":"nav-overlay-search-close",onClick:m,type:"button",children:(0,n.jsx)(xd,{className:Gs("search-close-icon")})})}),(0,n.jsx)("div",{className:Gs("search-body"),children:(0,n.jsxs)("form",{autoComplete:"off",onSubmit:g,children:[(0,n.jsxs)("div",{className:Gs("search-container"),children:[(0,n.jsx)(nc,{className:Gs("search-icon")}),(0,n.jsx)("input",{"aria-label":d?.a11ySearchInput,className:Gs("search-input").mix("brand--ui"),"data-testid":"nav-overlay-search-input",name:"search",onChange:C,placeholder:d?.search,ref:c,type:"input",value:r}),r&&(0,n.jsx)("button",{"aria-label":d?.a11ySearchInputClear,className:h,"data-testid":"nav-overlay-search-clear",onClick:p,type:"button",children:(0,n.jsx)(xd,{className:Gs("search-clear-icon").toString()})})]}),(0,n.jsx)("div",{className:Gs("search-actions"),children:(0,n.jsx)("button",{className:Gs("search-submit-btn").mix("brand--ui"),"data-testid":"nav-overlay-search-submit",type:"submit",children:d?.search})})]})})]})},Km=_("nav-overlay"),x4="nav-content-overlay",nQ=({isExpanded:e,outlineRef:t})=>{const o=wl()[0],r=El(o),a=Km("body",{section:r});return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(OK,{}),(0,n.jsx)("div",{className:a,ref:t,children:(0,n.jsx)(_K,{isEnabled:e})})]})},oQ=({children:e,isImage:t,hasStickyHeader:s})=>{const o=Km("content",{graphic:t,"has-sticky-header":s});return(0,n.jsxs)("div",{className:o,"data-nav-scrollable":!0,"data-testid":"nav-overlay-content",children:[e,t&&(0,n.jsx)(lm,{})]})},rQ=({isExpanded:e})=>{const t=(0,u.useRef)(null),s=(0,u.useRef)(),o=ee(),r=Dd(),a=(0,je.A)(e),{navigationStyle:i,theme:{progressIndicatorStyle:c}={}}=o||{},d=o?.theme?.coverImageColor,l=i===So.ACCENT,h=i===So.TINT,m=Eo(i),p=i===So.GRAY,v=i===So.LIGHT,C=Mi(i),g=c===Je.CIRCULAR_FILL,x=c===Je.INCOMPLETE_COMPLETE,[L,T]=(0,u.useState)(!0),{isIntersecting:y=!1}=(0,u4.A)(s,{root:t?.current,threshold:1})||{},b=(0,je.A)(y),S=(0,u.useMemo)(()=>C&&d===nt.LIGHT,[C,d]),N=Km({"accent-tint":h,accent:l,dark:m,gray:p,"image-dark-overlay":C&&!S,"image-light-overlay":C&&S,light:v,"progress-circular-fill":g,"progress-incomplete-complete":x,closing:a&&!e});return(0,u.useEffect)(()=>{e?t.current?.showModal():setTimeout(()=>{t.current?.close()},500)},[e]),(0,u.useEffect)(()=>{const k=E=>{cs(E)&&!r.searchActive&&(E.preventDefault(),r.closeNav())};return e?document.addEventListener("keydown",k):document.removeEventListener("keydown",k),()=>{document.removeEventListener("keydown",k)}},[e,r]),(0,u.useEffect)(()=>{!L&&y?T(!0):b&&!y&&T(!1)},[y,L,b,T]),(0,n.jsx)("dialog",{"aria-labelledby":"nav-overlay-title","aria-modal":"true",className:N,"data-testid":"nav-overlay",id:x4,ref:t,children:(0,n.jsx)(oQ,{hasStickyHeader:L,isImage:C,children:r.searchActive?(0,n.jsx)(sQ,{}):(0,n.jsx)(nQ,{isExpanded:e,outlineRef:s})})})},xc=_("nav-sidebar-search"),aQ=we("NavSidebarSearch",({className:e="",isEnabled:t})=>{const s=it(),o=r3(),r=(0,je.A)(t),{lessons:a}=ee(),i=ko(),c=ue(),d=(0,u.useRef)(),l=xc({disabled:!t}).mix(e),h=xc("icon"),m=xc("input"),p=xc("close"),v=xc("close-icon"),C=i?.term,g=t?void 0:"disabled",[x,L]=(0,u.useState)(""),T=C4(),y=(0,u.useCallback)(()=>{s([Ov(!0),Ni(!1),gr(null)]),L("")},[s]),b=(0,u.useCallback)(k=>{cs(k)&&!Vd()(x)?(k.preventDefault(),L(""),s(gr(null))):cs(k)&&Vd()(x)&&y()},[s,y,x]),S=(0,u.useCallback)(k=>{C!=null&&s(gr(null)),L(k.target.value)},[s,C]),N=(0,u.useCallback)(k=>{k.preventDefault(),v4(x,a,o??{},T,(I,P,A,w)=>s([gr(I),Bv(P),Dv(A),Hv(w)]))},[s,a,o,x,T]);return(0,u.useEffect)(()=>{!r&&t&&setTimeout(()=>{d.current?.focus()},50)},[t,r]),(0,u.useEffect)(()=>{C&&C!==x&&L(C)},[x,C]),(0,n.jsxs)("form",{autoComplete:"off",className:l,"data-testid":"nav-sidebar-search",onSubmit:N,children:[(0,n.jsx)(nc,{className:h}),(0,n.jsx)("input",{"aria-label":c?.a11ySearchInput,className:m,disabled:g,name:"search",onChange:S,onKeyDown:b,placeholder:c?.search,ref:d,type:"search",value:x}),(0,n.jsx)("button",{"aria-label":c?.a11ySearchClose,className:p,onClick:y,type:"reset",children:(0,n.jsx)(xd,{className:v})})]})}),Ws=_("nav-sidebar-header"),iQ=_("nav-sidebar-header-ghost"),cQ=()=>ae(e=>e.ui.skipToNavButton?.offsetHeight??0),lQ=we("NavSidebarHeaderProgress",e=>{const{classProgressRunner:t,classProgressText:s,classProgressTrack:o,color:r,percentComplete:a,percentCompleteText:i}=e;return(0,n.jsxs)("div",{className:Ws("progress"),"data-testid":"nav-sidebar-progress",children:[(0,n.jsx)(Rd,{"aria-hidden":"true",color:r,progress:a,runnerClass:t,trackClass:o}),(0,n.jsx)("div",{className:s,children:i})]})}),dQ=we("NavSidebarHeader",({className:e,isCompact:t,isEnabled:s,navRefWidth:o,setIsCompact:r})=>{const a=it(),i=zt(),[c,d]=(0,u.useState)(""),[l,h]=(0,u.useState)({height:0,width:0}),[m,p]=(0,u.useState)(l),[v,C]=(0,u.useState)(l),g=cQ(),x=(0,u.useRef)(),L=(0,u.useRef)(),T=(0,u.useRef)(),[y,b]=(0,u.useState)(null),S=ee(),N=aa(),k=ue(),E=ua(),I=ko(),P=qh(),A=rn(),w=Ll(),O=S?.exportSettings?.webExportSettings,j=!eo.isInstantLink&&(S?.lmsOptions?.disableCoverPage||O?.disableCoverPage),R=S?.allowSearch&&w!=="restricted",M=S?.theme?.coverImageColor,z=S?.navigationStyle,$=(0,u.useMemo)(()=>Mi(z),[z]),H=S_(),F=(0,je.A)(I),K=(I?.active||H)??!1,[Q,J]=(0,u.useState)(!0),[te,D]=(0,u.useState)(null),U=Ws({compact:t,searching:K,transition:Q}).mix(e),V=Ws("inner",{compact:t}),B=Ws("content",{compact:t,hidden:K}),W=Ws("graphic",{image:$}),Z=Ws("progress-runner"),X=Ws("progress-text",{compact:t}),Y=Ws("progress-track"),oe=Ws("search-area",{hidden:!K}),re=Ws("search-btn",{hidden:K}),me=Ws("search-icon"),he=Ws("title",{compact:t}),Oe=iQ({compact:t,searching:K}),It=`${A?`%${E}`:`${E}%`} ${k?.lessonComplete}`,Qe=s&&!K?void 0:-1,ze=s&&!K?void 0:-1,{alpha:We,media:Dt}=Lr("coverImage"),Go=(0,u.useMemo)(()=>{let $e={};return $&&Object.assign($e,la({alpha:We,color:M,media:Dt})),K&&($e.height=m.height),$e},[We,M,Dt,$,K,m.height]),Js=(0,u.useMemo)(()=>{let $e={};return t&&($e.bottom=`calc(100% - ${g}px)`,$e.width=o||0,$e.transition="width 0.3s",s||($e.transition="width 0.3s",$e.width="0rem")),l.height&&($e.height=l.height,$e.overflow="hidden",t&&($e.transition="height 0.3s ease .1s, transform 0.3s ease .1s")),$e},[t,s,o,l.height,g]);(0,u.useEffect)(()=>{d(t&&P?r4(N,45):N)},[N,t,P]);const mo=K?void 0:{height:v.height},po=(0,u.useCallback)(()=>{p(l),a(Ni(!0))},[a,l]),qs=(0,u.useCallback)($e=>{$e.preventDefault(),io(()=>{i("/")},"lesson-to-cover")},[i]);(0,u.useLayoutEffect)(()=>{D(document.querySelector("[data-nav-scrollable]"))},[]);const{isIntersecting:vn=!1}=(0,u4.A)(x,{root:te,threshold:0})||{},fo=(0,je.A)(vn);(0,u.useEffect)(()=>{const $e=y!=null&&window.innerHeight*.4>=y.offsetHeight;fo&&!vn&&$e?r(!0):!fo&&vn&&r(!1)},[vn,fo,y,r]);const go=(0,u.useCallback)(({target:$e})=>{const Ht={height:$e?.scrollHeight??0,width:o??0};h(Ht),p(Ht),t||C(Ht)},[t,o]);Ld(y,go),(0,u.useLayoutEffect)(()=>{const $e=te?.scrollTop;(te||$e>0)&&(te.scrollTop=0);const Ht={height:y?.scrollHeight??0,width:o??0};h(Ht),p(Ht),C(Ht)},[te,o,y]),(0,u.useEffect)(()=>{R&&F?.active&&!I.active&&L?.current?.focus()},[R,I,F]),(0,u.useEffect)(()=>{K?J(!0):t&&J(!1)},[K,t]);const Vr=(0,u.useCallback)($e=>{if(!$e.target.hasAttribute("data-nav-item")||!t)return;const Ht=y.getBoundingClientRect(),xt=$e.target.getBoundingClientRect();Ht.bottom>xt.top&&(te.scrollTop-=Ht.height-xt.top+5)},[te,t,y]);return(0,Ye.A)("focusin",Vr,te),(0,u.useEffect)(()=>d(N),[N]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:Oe,ref:x,style:mo}),(0,n.jsx)("div",{className:U,"data-testid":"nav-sidebar-header",ref:T,style:Js,children:(0,n.jsxs)("div",{className:V,ref:b,children:[(0,n.jsx)("div",{className:W,style:Go}),R&&(0,n.jsx)("button",{"aria-label":k?.a11ySearchOpen,className:re,onClick:po,tabIndex:Qe,type:"button",children:(0,n.jsx)(nc,{className:me})}),(0,n.jsx)("div",{className:oe,children:(0,n.jsx)(aQ,{isEnabled:s&&K})}),(0,n.jsxs)("div",{className:B,children:[j?(0,n.jsx)("span",{className:he,"data-testid":"nav-sidebar-title",tabIndex:ze,children:c}):(0,n.jsx)(is,{className:he,"data-testid":"nav-sidebar-title",onClick:qs,tabIndex:ze,to:"/",children:c}),(0,n.jsx)(lQ,{classProgressRunner:Z,classProgressText:X,classProgressTrack:Y,percentComplete:E,percentCompleteText:It})]})]})})]})}),uQ=_("nav-sidebar");function b4({closeNav:e,id:t,isEnabled:s,isSectionLesson:o,last:r}){const{navigationStyle:a}=ee(),{icon:i,settings:c}=At(t)??{},d=ma(t),l=Us(),h=cc(),m=j1(t),p=t===l,v=c?.isGeneratingAIContent===!0,C=(0,u.useMemo)(()=>Eo(a),[a]),g=o?"nav-sidebar__outline-section-item":"nav-sidebar__outline-item",x=`${g}__link`,L=G()(`${g}-link-icon`),T=(0,n.jsx)(Fd,{className:L,icon:i}),[y,b]=(0,u.useState)(!1),S=(0,u.useCallback)(()=>b(!0),[]),N=(0,u.useCallback)(()=>b(!1),[]),k=(0,n.jsx)(Od,{canComplete:m,id:t,isDark:C,isEnabled:s,isTooltipVisible:y,onHideTooltip:N,onShowTooltip:S,scope:yo.SIDEBAR}),E=()=>{e&&h&&e()};return(0,n.jsx)("li",{className:uQ("outline-list-item",{last:r}),"data-testid":`nav-outline-lesson-${t}`,role:"listitem",children:v?(0,n.jsx)("div",{className:g,children:(0,n.jsxs)("span",{"aria-disabled":"true",className:G()(x,`${x}--generating`),"data-testid":`nav-outline-lesson-${t}-generating`,children:[T,d]})}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(ac,{className:g,dark:C,isCurrentLesson:p,isTooltipEnabled:!m,lessonId:t,onHideProgressTooltip:N,onNavigate:E,onShowProgressTooltip:S,showProgressDelay:0,tooltipClassName:`${g}-tooltip`,children:[T,d,!m&&k]}),m&&k]})})}const hQ=({id:e})=>{const t=At(e),s=vt(t?.title);return(0,n.jsx)("span",{className:"nav-sidebar__outline-section-text",children:s})};var za=f(80588);const mQ=({closeNav:e,id:t,index:s,isEnabled:o,lessonIds:r})=>{const a=ee(),i=a?.theme,c=a?.themeId,d=i?.navigationSectionsExpanded??!0,l=ma(String(t)),[h,m]=za.useState(d);za.useEffect(()=>{m(d)},[d]);const[p,v]=za.useState(),C=za.useRef(null),g=`sidebar-sublist-${s}`,x=C.current?.clientWidth,L=String(c),T=G()("nav-sidebar__outline-section-toggle-icon",{"nav-sidebar__outline-section-toggle-icon--collapsed":!h}),y=G()("nav-sidebar__outline-section-list",{"nav-sidebar__outline-section-list--collapsed":!h}),b=za.useCallback(()=>{m(S=>!S)},[]);return za.useLayoutEffect(()=>{const S=setTimeout(()=>{C.current&&v(C.current.scrollHeight)},0);return()=>{clearTimeout(S)}},[r.length,x,L]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("button",{"aria-controls":g,"aria-expanded":h,className:"nav-sidebar__outline-section-toggle","data-nav-item":"",onClick:b,tabIndex:o?void 0:-1,type:"button",children:[(0,n.jsx)("span",{className:"nav-sidebar__outline-section-toggle-text",children:l}),(0,n.jsx)(H5,{className:T})]}),(0,n.jsx)(Di,{inert:!h,children:(0,n.jsx)("ol",{"aria-hidden":h?void 0:!0,className:y,id:g,ref:C,role:"list",style:{maxHeight:p},children:r.map((S,N)=>(0,n.jsx)(b4,{closeNav:e,id:S,isEnabled:o&&h,isSectionLesson:!0,last:N===r.length-1},S))})})]})},pQ=({closeNav:e,index:t,isEnabled:s,lessonIds:o})=>{const[r,...a]=o,i="nav-sidebar__outline-item nav-sidebar__outline-section";return gt()(a)?(0,n.jsx)("li",{className:i,role:"listitem",children:(0,n.jsx)(hQ,{id:r})}):(0,n.jsx)("li",{className:i,role:"listitem",children:(0,n.jsx)(mQ,{closeNav:e,id:r,index:t,isEnabled:s,lessonIds:a})})},fQ=({closeNav:e,index:t,isEnabled:s,lessonIds:o})=>El(o)?(0,n.jsx)(pQ,{closeNav:e,index:t,isEnabled:s,lessonIds:o}):o.map((a,i)=>(0,n.jsx)(b4,{closeNav:e,id:a,isEnabled:s,isSectionLesson:!1,last:i===o.length-1},a)),gQ=we("NavSidebarOutline",({className:e="",closeNav:t,isEnabled:s})=>{const o=wl(),[r,a]=(0,u.useState)(!s),i=ue(),c=(0,u.useRef)(),d=(0,u.useRef)(null),l=G()(e,"nav-sidebar__outline",{"nav-sidebar__outline--hidden":r,"nav-sidebar__outline--safari":oo.isSafari}),h=G()("nav-sidebar__outline-list",{"nav-sidebar__outline-list--disabled":!s,"nav-sidebar__outline-list--hidden":r});return(0,u.useEffect)(()=>(s?(clearTimeout(d.current),a(!1)):d.current=setTimeout(()=>{a(!0)},350),()=>{clearTimeout(d.current)}),[s]),(0,n.jsx)("section",{"aria-label":i?.a11yRegionNavOverview,className:l,"data-testid":"nav-sidebar-outline",id:"nav-sidebar-outline",children:cn(o)&&(0,n.jsx)("ol",{className:h,"data-testid":"nav-sidebar-outline-list",ref:c,role:"list",children:o.map((m,p)=>gt()(m)?null:(0,n.jsx)(fQ,{closeNav:t,index:p,isEnabled:s,lessonIds:m},p))})})});var vQ=f(56993);const $a=_("nav-sidebar-result"),y4=({result:e})=>{const t=ue(),s=e?.icon,o=vt(e?.title),r=e?.results??0,a=r===1?t?.result:t?.results,i=$a("icon"),c=$a("title"),d=$a("count");return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(Fd,{className:i,icon:s}),(0,n.jsx)("span",{className:c,children:o}),(0,n.jsx)("span",{className:d,children:`${r} ${a}`})]})},CQ=({id:e,index:t,isEnabled:s,onSelectResult:o})=>{const r=ee(),a=(0,Ce.RQ)("/*"),i=sj(e),c=a?.params?.id===e,d=c?"page":void 0,l=r?.color,h=r?.navigationStyle,m=s?void 0:-1,p={animationDelay:`${t/10}s`},v=Bi(i?.id),C=(0,u.useMemo)(()=>Eo(h),[h]),g=$a(),x=$a("inner",{active:c}),L=$a("link",{dark:C,light:!C});return(0,n.jsx)("li",{className:g,role:"listitem",style:p,children:(0,n.jsx)("div",{className:x,style:{color:l},children:s&&v==null?(0,n.jsx)(is,{"aria-current":d,className:L,onClick:o,tabIndex:m,to:Os(e),children:(0,n.jsx)(y4,{result:i})}):(0,n.jsx)(eC,{className:L,restriction:v,tooltipClassName:"lesson-nav-link-tooltip",children:(0,n.jsx)(y4,{result:i})})})})},Ud=_("nav-sidebar-results"),xQ=[],bQ=({closeNav:e,isEnabled:t})=>{const{announcePolite:s}=qn(),o=ee(),r=ko(),a=ue(),c=(r?.activeLessons??xQ).filter(x3),d=r?.term,l=cn(c),h=(0,vQ.A)(d),m=a?.noResults??"",p=o?.navigationStyle,v=(0,u.useMemo)(()=>Eo(p),[p]),C=Ud(),g=Ud("message",{dark:v,light:!v}),x=Ud("term"),L=Ud("list"),T=bt(rC),y=u.useCallback(()=>{T&&e()},[e,T]);return(0,u.useEffect)(()=>{if(h){const b=c.length===1?a?.result:a?.results,S=l?`${c.length} ${b}`:`${a?.noResults} ${d}`;s?.(S)}},[s,l,h,c,a,d]),(0,n.jsxs)("div",{className:C,"data-testid":"nav-sidebar-results",children:[!l&&h&&(0,n.jsxs)("div",{className:g,children:[m," ",(0,n.jsxs)("span",{className:x,children:['"',d,'"']})]}),l&&h&&(0,n.jsx)("ol",{className:L,"data-testid":"nav-sidebar-results-list",role:"list",children:c.map((b,S)=>(0,n.jsx)(CQ,{id:b.id,index:S,isEnabled:t,onSelectResult:y},b.id))})]})},Gd=_("nav-sidebar"),L4="nav-content-sidebar",yQ=({isExpanded:e,closeNav:t})=>{const s=ee(),o=ko(),[r,a]=(0,u.useState)(!1),[i,c]=(0,u.useState)(0),d=(0,u.useRef)(null),l=(0,u.useRef)(null),h=s?.color,m=s?.theme?.coverImageColor,p=s?.isLegacyCourse,v=s?.navigationStyle,C=s?.theme?.accentContrast,g=s?.theme?.progressIndicatorStyle,x=o?.active??!1,L=x||e?void 0:"true";(0,u.useLayoutEffect)(()=>{d&&d?.current&&c(d.current?.scrollWidth)},[r,e,d,x,c]);const T=(0,u.useMemo)(()=>zj(v),[v]),y=(0,u.useMemo)(()=>Eo(v),[v]),b=(0,u.useMemo)(()=>Mi(v),[v]),S=b&&m===nt.LIGHT,N=Bs(h),k=g===Je.CIRCULAR_FILL,E=g===Je.INCOMPLETE_COMPLETE,I=C?C===pe.DARK||C===pe.AUTO&&N===pe.DARK:N===pe.DARK,P=Gd("header"),A=Gd("body"),w=Gd("content"),O=Gd({accent:T,"dark-contrast":!b&&I,"light-contrast":!b&&!I,"legacy-pre-themes":p,"image-dark-overlay":b&&!S,"image-light-overlay":b&&S,"progress-circular-fill":k,"progress-incomplete-complete":E,collapsed:!e,dark:y,light:!y,searching:x});return(0,n.jsx)(Di,{inert:!e,children:(0,n.jsx)(Qo,{children:(0,n.jsx)(Zc,{in:e,mountOnEnter:!0,nodeRef:l,timeout:300,unmountOnExit:!0,children:(0,n.jsx)("div",{"aria-hidden":L,className:O,"data-testid":"nav-sidebar",ref:l,children:(0,n.jsxs)("div",{className:w,"data-nav-scrollable":!0,id:L4,children:[(0,n.jsx)(dQ,{className:P,isCompact:r,isEnabled:e,navRefWidth:i,setIsCompact:a}),(0,n.jsxs)("div",{className:A,"data-testid":"nav-sidebar-body",ref:d,children:[(0,n.jsx)(gQ,{closeNav:t,isEnabled:e&&!x}),(0,n.jsx)(bQ,{closeNav:t,isEnabled:e&&x})]})]})})})})})},wr={x:null,y:null},Wd={passive:!0};function S4({children:e,onSwipeDown:t,onSwipeLeft:s,onSwipeRight:o,onSwipeUp:r,onShouldRecognizeGesture:a=()=>!0,thresholdX:i=100,thresholdY:c=100}){const d=(0,u.useRef)(),[l,h]=(0,u.useState)(wr),[m,p]=(0,u.useState)(wr),v=(0,u.useCallback)(L=>{const T=L.touches?.length??0,y=L.targetTouches[0],b=a?a():!0;T==1&&y&&b?h({x:y.clientX,y:y.clientY}):h(wr)},[a]),C=(0,u.useCallback)(L=>{const T=L.targetTouches[0];T&&p({x:T.clientX,y:T.clientY})},[]),g=(0,u.useCallback)(()=>{h(wr),p(wr)},[]),x=(0,u.useCallback)(L=>{const T=L.touches?.length??0;if(l.x==null||l.y==null||m.x==null||m.y==null||T>0)return;const y=m.x-l.x,b=m.y-l.y;Math.abs(y)>Math.abs(b)?Math.abs(y)>i&&(y<0?s?.():o?.()):Math.abs(b)>c&&(b<0?r?.():t?.()),h(wr),p(wr)},[t,s,o,r,i,c,m,l]);return(0,Ye.A)("touchstart",v,d.current,Wd),(0,Ye.A)("touchcancel",g,d.current,Wd),(0,Ye.A)("touchmove",C,d.current,Wd),(0,Ye.A)("touchend",x,d.current,Wd),(0,n.jsx)("div",{ref:d,children:e})}S4.propTypes={children:ge().oneOfType([ge().arrayOf(ge().element),ge().element]).isRequired,onShouldRecognizeGesture:ge().func,onSwipeDown:ge().func,onSwipeLeft:ge().func,onSwipeRight:ge().func,onSwipeUp:ge().func,thresholdX:ge().number.isRequired,thresholdY:ge().number.isRequired};function Kd({isEnabled:e=!0,...t}){return e?(0,n.jsx)(S4,{...t}):(0,n.jsx)("div",{children:t.children})}Kd.propTypes={children:ge().oneOfType([ge().arrayOf(ge().element),ge().element]).isRequired,isEnabled:ge().bool.isRequired};const Qd={DESKTOP:"desktop",TABLET_PORTRAIT:"tablet-portrait",TABLET_LANDSCAPE:"tablet-landscape",MOBILE_PORTRAIT:"mobile-portrait",MOBILE_LANDSCAPE:"mobile-landscape"},LQ=[Qd.TABLET_PORTRAIT,Qd.TABLET_LANDSCAPE,Qd.MOBILE_PORTRAIT,Qd.MOBILE_LANDSCAPE],bc=e=>LQ.includes(e),SQ=e=>(0,u.useMemo)(()=>{const t=window.matchMedia("(pointer: coarse)").matches,s=bc(e);return t||s},[e]),T4=_("course-navigation"),{COMPACT:Zd,OVERLAY:Qm,SIDEBAR:Ar}=dr,TQ={[Zd]:d4,[Ar]:L4,[Qm]:x4},NQ=({hasSearchResults:e,courseNavType:t,openNav:s,closeNav:o})=>{const[r,a]=(0,u.useState)(e);return(0,u.useEffect)(()=>{r&&!e&&!(t===Ar)?(o(),a(!1)):r&&t===Qm?s():a(e)},[e,t,s,o,r]),r},kQ=e=>{const[t,s]=(0,u.useState)();(0,u.useEffect)(()=>{const{activeNavType:o,beginWithSidebarOpen:r,isNavOpen:a,isTablet:i,openNav:c,closeNav:d}=e;o===Ar&&r&&(!t&&i&&a?d():t&&!i&&!a&&c(),s(i))},[t,e])},IQ=({beginWithSidebarOpen:e,children:t,closeNav:s,courseNavType:o,isNavOpen:r,isTablet:a,lessonNavType:i,openNav:c,previewType:d,toggleNav:l,hideNav:h})=>{const m=(0,u.useRef)(),p=(0,u.useRef)(),{active:v}=ko(),C=ue(),g=NQ({hasSearchResults:v,courseNavType:o,openNav:c,closeNav:s}),x=(0,u.useMemo)(()=>g||o===Zd&&a?Ar:o,[o,g,a]);kQ({activeNavType:x,beginWithSidebarOpen:e,closeNav:s,openNav:c,isNavOpen:r,isTablet:a}),(0,u.useEffect)(()=>{const N=E=>{p.current?.contains(E.relatedTarget)&&s()},k=()=>{p.current?.removeEventListener("click",s),p.current?.removeEventListener("keypress",s),p.current?.removeEventListener("blur",N,!0)};return x===Zd&&r?(p.current?.addEventListener("click",s),p.current?.addEventListener("keypress",s),p.current?.addEventListener("blur",N,!0)):k(),k},[x,r,p,s]);const L=SQ(d),T=(0,u.useCallback)(()=>{const N=x===dr.SIDEBAR;L&&N&&r&&s()},[s,r,L,x]),y=(0,u.useMemo)(()=>TQ[x],[x]),b=T4(x?.toLowerCase(),{"nav-open":r,"search-open":v&&r,"course-nav-type":o?.toLowerCase()}),S=T4("lessonNav",{type:i?.toLowerCase()});return(0,n.jsx)(b_,{isCourseNavOpen:r,children:(0,n.jsx)("div",{className:b,children:(0,n.jsx)(Kd,{isEnabled:x===dr.SIDEBAR,onSwipeLeft:T,children:(0,n.jsxs)("div",{className:S,children:[(0,n.jsxs)("nav",{"aria-label":C?.a11yRegionNavLesson,children:[(0,n.jsx)(rK,{"aria-controls":y,hideNav:h,isNavOpen:r,toggleNav:l}),x===Ar&&(0,n.jsx)(yQ,{closeNav:s,isExpanded:r}),x===Zd&&(0,n.jsx)(RK,{closeNav:s,isExpanded:r,openNav:c,ref:m}),x===Qm&&(0,n.jsx)(PK,{closeNav:s,openNav:c,children:(0,n.jsx)(rQ,{isExpanded:r})})]}),(0,n.jsx)("div",{ref:p,children:t})]})})})})},EQ=({children:e,isLessonOnlyEmbed:t,...s})=>{const{buttonNavigationStyle:o,navigationType:r,lmsOptions:a,...i}=ee(),c=cc(),d=S1(i),l=!c,h=i.sidebarMode===Jr.OPEN,m=d&&r===Ar&&h&&l,p=bo(i),v=p&&i?.theme?.blockNavigationType===pl.CONTINOUS,[C,g]=(0,u.useState)(m),x=(0,u.useCallback)(()=>{g(!0)},[]),L=(0,u.useCallback)(()=>{g(!1)},[]),T=(0,u.useCallback)(()=>C?L():x(),[C,L,x]);(0,Ye.A)(G5,x),(0,Ye.A)(W5,L);const y=p||t?"fixed-course-exit":void 0,b=v?{marginInlineEnd:"2rem"}:void 0,S=d?r:"";return p||t?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(n4,{className:y,lmsOptions:a,style:b}),e]}):(0,n.jsx)(IQ,{...s,beginWithSidebarOpen:h,closeNav:L,courseNavType:S,enableExitCourse:a?.enableExitCourse||!0,hideNav:!d,isNavOpen:C,isTablet:c,lessonNavType:o,openNav:x,toggleNav:T,children:e})};var jQ=f(44002),N4=f.n(jQ),wQ=f(16713),Yd=f.n(wQ);const AQ=Yd()(Ae()("family","continue"),Ae()("variant","continue")),k4=ce()(N4()(AQ),St()([],"items"));var I4=f(8191),RQ=f(58533),PQ=f.n(RQ);function MQ(e){return e==="a"?46.5:7.6}function OQ(e){return e==="d"?2:3.2}function BQ(e){switch(e){case"a":return 30;case"c":case"d":return 92;default:return 76}}function E4(e){switch(e){case"b":return 95;case"background":return 52;default:return 76}}function j4(e){switch(e){case"a":case"b":case"carousel":default:return 6.4;case"c":return 18.6;case"d":return 8;case"background":return 6}}function DQ(e){return .3}function Q2e(e){switch(e){case 3:return"three";case 4:return"four";default:return"two"}}function HQ(e){return e==="light"?"#fff":"#000"}function Z2e(e){switch(e){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 Y2e(e){return e==="b"?[52,76,95]:[52,76,92]}function X2e(e){return e==="a"?[30,76,92]:[52,76,92]}function J2e(e){return e==="d"?[2,4.8,5.6]:[3.2,4.8,5.6]}function q2e(e){return e==="a"?[46.5,78,120]:[7.6,20,32]}function FQ(e){switch(e){case 3:return"sm";case 10:return"lg";default:return"med"}}function w4(e,t){switch(t){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 e==="c"?"sm":"med"}}function VQ(e){switch(e){case 52:return"sm";case 76:return"med";default:return"lg"}}function A4(e){switch(e){case 52:return"sm";case 76:return"med";default:return"lg"}}function R4(e){switch(e){case 4:return"med";case 6:return"lg";default:return"sm"}}function Zm(e){switch(e){case 52:return"sm";case 92:return"lg";default:return"med"}}function zQ(e){switch(e){case 30:case 52:return"sm";case 92:return"lg";default:return"med"}}function $Q(e){switch(e){case 4.8:return"med";case 5.6:return"lg";default:return"sm"}}function _Q(e){switch(e){case 20:case 78:return"med";case 32:case 120:return"lg";default:return"sm"}}function UQ(e){switch(e){case 1:return"sm";case 3:return"lg";default:return"med"}}function GQ(e){switch(e){case 3.2:return"med";case 5.6:return"lg";default:return"sm"}}const ot=({value:e,className:t,allowTabNavigation:s=!0,tagName:o,id:r})=>{const{value:a}=om(Te(e));return a?(0,n.jsx)(be,{allowTabNavigation:s,className:t,id:r,tagName:o,value:e}):null};function WQ(e,t){const{className:s="",tag:o="div",style:r={},...a}=e,{backgroundColor:i}=Yt(),c=zA(),d=c===ft.DARK?ft.LIGHT:ft.DARK;return i!==""&&Object.assign(r,{"--color-background-contrast":c,"--color-background-contrast-complementary":d,"--color-background-contrast-rgb":(0,Oa.A)(c)?.slice(0,3)}),(0,n.jsx)(o,{...a,className:s,ref:t,style:r})}const P4=(0,u.forwardRef)(WQ),KQ=10,M4=e=>`${e}rem`,Ym=e=>e!=null?`${e/KQ}rem`:void 0,QQ=["image full","image text overlay","quote background"];function ZQ(e){const{family:t,variant:s,backgroundType:o,isOnlyBlockInStep:r,isOnePage:a}=e;if(!a||!r)return!1;if(o===q.IMAGE)return!0;if(!t||!s)return!1;const i=`${t} ${s}`;return QQ.some(c=>c===i)}const YQ={paddingBottom:"0rem",paddingTop:"0rem"},XQ=e=>{const{blockSettings:t,familyTheme:s,courseTheme:o,isFullWidthImage:r}=e;if(r)return YQ;const a=M4(Number(z3(t?.paddingTop,s?.paddingStart,o?.blockPaddingStart,Xr)));return{paddingBottom:M4(Number(z3(t?.paddingBottom,s?.paddingEnd,o?.blockPaddingEnd,Xr))),paddingTop:a}},JQ={},qQ=e=>e?{bodyFontSize:Ym(e.bodyFontSize),headingFontSize:Ym(e.headingFontSize),subheadingFontSize:Ym(e.subheadingFontSize)}:JQ;function eZ(){const e=Tt(),t=Re(),s=Ao(),o=bo(t),r=ZQ({backgroundType:e?.settings?.backgroundType,family:e?.family,isOnePage:o,isOnlyBlockInStep:e?.isOnlyBlockInStep,variant:e?.variant});return XQ({blockSettings:e?.settings,courseTheme:t?.theme,familyTheme:s,isFullWidthImage:r})}function tZ(){const e=Ao();return qQ(e)}function sZ(){const e=eZ();return{fontSize:tZ(),padding:e}}const nZ=Gr()(["settings"]),O4=_("block-wrapper"),oZ=_("bg"),rZ=(e,t)=>{const{children:s,className:o,defaultBackgroundColor:r="",style:a,tag:i,type:c,...d}=e,l=Tt(),h=_A(),m=sZ(),p=D1(r,h.backgroundColor),v=p||"transparent",C=l?.className,g={...a,...h.backgroundImageCss,"--color-background":p,...m.fontSize.bodyFontSize&&{"--block-text-body-font-size":m.fontSize.bodyFontSize},...m.fontSize.headingFontSize&&{"--block-text-heading-font-size":m.fontSize.headingFontSize},...m.fontSize.subheadingFontSize&&{"--block-text-subheading-font-size":m.fontSize.subheadingFontSize},boxShadow:`0px 1px 0px ${v} `,paddingBottom:m.padding.paddingBottom,paddingTop:m.padding.paddingTop},x=G()(o,{"bg--legacy-background":h.isLegacyBackground,[`block-${c}`]:!!c}),L=oZ({card:h.cardMode,range:h.colorRange,type:h.backgroundTypeLowercase,"overlay-light":h.isOverlayLight,"contrast-light":h.isContrastLight}),T=C?O4({}).mix(L).mix(C):O4({}).mix(L),y=[x,T.toString()].join(" ");return(0,n.jsxs)(P4,{...nZ(d),className:y,ref:t,style:g,tag:i,children:[(0,n.jsx)("span",{"aria-label":h.backgroundImageAlt,role:bg(h.backgroundImageAlt)}),s]})},Ie=(0,u.forwardRef)(rZ);var aZ=f(80588);function iZ(e,t){const s=Lg(e.src),o=e.width&&e.height&&!s,r=o?"async":void 0,a=o?"lazy":void 0,i=o?e.width:void 0,c=o?e.height:void 0;return(0,n.jsx)("img",{...e,decoding:r,height:c,loading:a,ref:t,width:i})}const Xm=aZ.forwardRef(iZ),B4=(0,u.createContext)(Xm);function cZ({children:e,ImageEagerOrLazy:t}){return(0,n.jsx)(B4,{value:t,children:e})}function lZ(){return(0,u.use)(B4)}function Ls(e){const t=lZ();return(0,n.jsx)(t,{...e})}var dZ=f(33e3),tge=f(26482);function D4(e){return(0,n.jsx)(dZ.i,{IconUnzoom:hZ,IconZoom:uZ,...e})}const uZ=()=>(0,n.jsx)(ie,{name:"arrows-two-from-center"}),hZ=()=>(0,n.jsx)(ie,{name:"arrows-two-to-center"}),H4=_("block-text");function mZ({children:e,item:t,labels:s}){const o="media"in t?t.media:void 0,r=Te(o)?.image,a=Ct(r),i=lr(r?.alt??""),d=Tt()?.settings,l=d?.images,h=d?.zoomOnClick,m=(0,u.useRef)(void 0);let p=(0,n.jsx)(Ls,{alt:i,"data-l10n-id":wt(o),ref:m,src:a});return h&&(p=(0,n.jsx)(D4,{a11yNameButtonUnzoom:s?.a11yUnzoomImage,a11yNameButtonZoom:s?.a11yZoomImage,children:p})),(0,n.jsxs)("div",{className:H4("col"),children:[l&&r&&(0,n.jsx)("div",{className:H4("image"),children:p}),e]})}var pZ=f(1674),fZ=f.n(pZ),gZ=f(80365),Xd=f(63718);const vZ=_("portal-tooltip"),Ot={LEFT:"LEFT",RIGHT:"RIGHT",ABOVE:"ABOVE",BELOW:"BELOW"},CZ=(e,t,s)=>{const o=e.getBoundingClientRect(),r=t.getBoundingClientRect(),a=window.visualViewport;let i=s;(i===Ot.ABOVE||i===Ot.BELOW)&&(o.bottom-r.height<0&&(i=Ot.BELOW),r.height+o.top>a.height&&(i=Ot.ABOVE)),(i===Ot.LEFT||i===Ot.RIGHT)&&(r.left<0&&(i=Ot.RIGHT),r.width+o.left>a.width&&(i=Ot.LEFT));const c={left:0,right:0,top:0,bottom:0};i===Ot.ABOVE&&(c.top=o.top-r.height-25),i===Ot.BELOW&&(c.top=o.top+o.height),i===Ot.RIGHT&&(c.left=o.left+o.width+70),i===Ot.LEFT&&(c.left=o.left-r.width-25),(i===Ot.LEFT||i===Ot.RIGHT)&&(c.top=o.top-o.height/2),(i===Ot.ABOVE||i===Ot.BELOW)&&(c.left=o.left+o.width/2);const d=o.left+o.width/2,l=r.width/2+d>a.width,h=r.width/2>d;l?t.classList.add("portal-tooltip__tooltip--offset-right"):h&&t.classList.add("portal-tooltip__tooltip--offset-left"),Object.keys(c).map(m=>c[m]===0?t.style.removeProperty(m):t.style.setProperty(m,`${c[m]}px`)),t.classList.add(`portal-tooltip__tooltip--${i.toLowerCase()}`)};function xZ({children:e,className:t,direction:s=Ot.ABOVE,elementFocused:o,exitAnimation:r=!0,message:a,style:i,renderInModalWhenPresent:c=!1}){const[d,l]=(0,u.useState)(!1),[h]=(0,u.useState)(!1),m=(0,u.useRef)(null),p=(0,u.useRef)(null),[v,C]=(0,gZ.A)((()=>e)),g=(0,u.useCallback)(()=>l(!0),[l]),x=(0,u.useCallback)(()=>l(!1),[l]);return(0,u.useEffect)(()=>(document.addEventListener("scroll",g),document.addEventListener("scrollend",x),()=>{document.removeEventListener("scroll",g),document.removeEventListener("scrollend",x)})),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{ref:m,children:v}),a&&(C||h||o)&&!d&&(0,n.jsx)(Un,{classNames:"portal-tooltip__tooltip",exit:r,timeout:200,children:(0,n.jsx)(bZ,{buttonRef:m,className:t,direction:s,elementFocused:o,hovering:C,message:a,portalRef:p,renderInModalWhenPresent:c,style:i})})]})}function bZ({buttonRef:e,className:t,direction:s,elementFocused:o,hovering:r,message:a,portalRef:i,style:c,renderInModalWhenPresent:d=!1}){const l=(0,u.useCallback)(()=>CZ(e.current,i.current,s),[e,s,i]),h=(0,u.useCallback)(()=>{i.current&&l()},[i,l]),m=()=>{!r&&!o&&i.current&&(i.current.style=null)};return(0,Xd.A)(h),(0,un.createPortal)((0,n.jsx)("div",{"aria-hidden":!r||!o,className:vZ("tooltip").mix(t).toString(),onTransitionEnd:m,ref:i,style:c,children:a}),d?ro({id:"portal",childType:"other"}):document.getElementById("portal"))}const yc=xZ,yZ=({audioPlayerId:e,condensed:t=!1,transcriptMedia:s,onDelete:o,onTranscriptClick:r,onTranscriptClose:a})=>{const{mode:i,disableTranscriptButton:c}=Bd(),d=vc(),[l,h]=(0,u.useState)(!1),[m,p]=(0,u.useState)(!1),v=Te(s)?.audio?.transcript,C=(0,u.useCallback)(()=>h(!0),[]),g=(0,u.useCallback)(()=>h(!1),[]),x=(0,u.useCallback)(()=>p(!0),[]),L=(0,u.useCallback)(()=>p(!1),[]),T=gs(),y=d?.audioPlayerIdOpen&&d.audioPlayerIdOpen===e,b=c?"Transcripts are only available in lesson previews":y?T?.audioHideTranscript:i==="edit"?"Edit transcript":T?.audioShowTranscript,S=(0,u.useCallback)(()=>{const I=document.getElementById(Fm(e));I&&I.focus()},[e]),[N,k]=(0,u.useState)(!1);function E(){c||(y?a?.():(r?.(),k(!0)))}return(0,u.useEffect)(()=>{N&&(k(!1),S())},[N,S]),(0,n.jsxs)(n.Fragment,{children:[o&&(0,n.jsx)(yc,{elementFocused:l,message:"Remove audio",children:(0,n.jsx)(Me.ArcButton,{hierarchy:"tertiary",icon:(0,n.jsx)(ie,{name:"trash"}),layout:"icon",onBlur:g,onClick:o,onFocus:C,onMouseOut:g,onMouseOver:C,size:t?"sm":"md",type:"button"})}),(i==="edit"||v)&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(yc,{elementFocused:m,message:b,renderInModalWhenPresent:i==="readonly",style:{whiteSpace:"nowrap"},children:(0,n.jsx)(Me.ArcButton,{"aria-label":b,disabled:c,hierarchy:"tertiary",icon:(0,n.jsx)(ie,{name:"file-audio"}),id:i==="readonly"?t4(e):void 0,layout:"icon",onBlur:L,onClick:E,onFocus:x,onMouseOut:L,onMouseOver:x,size:t?"sm":"md",style:c?{opacity:.5,pointerEvents:"auto"}:void 0,type:"button"})}),y?(0,n.jsx)("div",{onFocus:S,tabIndex:0}):null]})]})};var LZ=f(28505);const F4="change";class SZ extends LZ.EventEmitter{_isMuted;_isPlaying;_playerId;constructor(t){super(),this.setMaxListeners(t)}get isPlaying(){return this._isPlaying}set isPlaying(t){this._isPlaying=t,this.emit("change")}set playerId(t){this._playerId=t}get playerId(){return this._playerId}pause(){this.isPlaying=!1}addChangeListener(t){this.on(F4,t)}removeChangeListener(t){this.removeListener(F4,t)}}const de=new SZ(1/0),_a="group",TZ="tablist",NZ="tabpanel",kZ="tab",nge="radio",Lc=({caption:e,editable:t,id:s,isOverlayType:o,getL10nValue:r})=>{const a=!!(!o&&!t&&r(e));return{figcaptionId:a?`figcaption-${s}`:void 0,isFigure:a,role:a?"figure":void 0,tagName:a?"figure":"div"}},IZ=[.5,.75,1,1.25,1.5,1.75,2].toReversed().map(e=>({value:e,label:`${e}x`})),Jd=.05,V4=_("audio-player-icon"),Rr=({x:e,width:t,height:s,y:o,pulseBaseHeight:r,pulseBaseY:a,pulseHeight:i,pulseY:c,delay:d="0s"})=>(0,n.jsx)("rect",{className:V4("bar"),height:s,rx:1,style:{"--base-height":`${s/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":`${c/10}rem`,"--delay":d},width:t,x:e,y:o}),z4=({animating:e})=>(0,n.jsx)("span",{className:V4({animating:e}),children:(0,n.jsxs)("svg",{"aria-hidden":"true",height:"16",viewBox:"0 0 20 16",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[(0,n.jsx)(Rr,{delay:"0s",height:2,pulseBaseHeight:1,pulseBaseY:7.5,pulseHeight:6,pulseY:5,width:2,x:0,y:7}),(0,n.jsx)(Rr,{delay:"0.1s",height:4,pulseBaseHeight:3,pulseBaseY:6.5,pulseHeight:8,pulseY:4,width:2,x:3,y:6}),(0,n.jsx)(Rr,{delay:"0.2s",height:10,pulseBaseHeight:8,pulseBaseY:4,pulseHeight:12,pulseY:2,width:2,x:6,y:3}),(0,n.jsx)(Rr,{delay:"0.3s",height:16,pulseBaseHeight:12,pulseBaseY:2,pulseHeight:16,pulseY:0,width:2,x:9,y:0}),(0,n.jsx)(Rr,{delay:"0.4s",height:8,pulseBaseHeight:6,pulseBaseY:5,pulseHeight:12,pulseY:2,width:2,x:12,y:4}),(0,n.jsx)(Rr,{delay:"0.5s",height:11,pulseBaseHeight:9,pulseBaseY:3.5,pulseHeight:15,pulseY:.5,width:2,x:15,y:2.5}),(0,n.jsx)(Rr,{delay:"0.6s",height:2,pulseBaseHeight:1,pulseBaseY:7.5,pulseHeight:6,pulseY:5,width:2,x:18,y:7})]})});var EZ;function $4(){return document.getElementById("page-wrap")}const age=e=>{const t=e.value.length;e.focus(),e.setSelectionRange(t,t)},ige=e=>{const t=EZ(["current","editor"],e);if(!t)return null;const s=t.value.length;return t.focus(),t.setSelectionRange(s,s),e};function Jm(e,t){const s=e.getBoundingClientRect(),o=window.innerHeight||document.documentElement.clientHeight,r=window.innerWidth||document.documentElement.clientWidth;if(t==="start")return s.top>=0;if(t==="center"){if(s.height>o)return s.top<=0&&s.bottom>=o;const a=o/2,i=s.top+s.height/2,c=o*.25;return Math.abs(a-i)<c}return t==="end"?s.bottom<=o:s.top>=0&&s.left>=0&&s.bottom<=o&&s.right<=r}function _4({anchor:e,popover:t,positionX:s}){if(!e||!t)return null;const o=e.getBoundingClientRect(),a=window.getComputedStyle(e).direction==="rtl",i=window.getComputedStyle(t),c=parseFloat(i.marginTop),d=t.offsetWidth,l=window.visualViewport??{width:window.innerWidth,height:window.innerHeight},h=o.top+o.height+t.offsetHeight+c>l.height?o.top-(c*2+t.offsetHeight):o.top+o.height;let m;if(s==="center"){const p=o.left+o.width/2;m=a?l.width-p-d/2:p-d/2}else s==="right"?m=a?l.width-o.left-d:o.right-d:m=Math.min(a?l.width-o.right:o.left,l.width-d);return{left:m,top:h}}var jZ,He=f(80588);const qd=He.createContext(null);function wZ({children:e,isDisabled:t,onClose:s,onOpen:o,onSelect:r,positionX:a="left"}){const[i,c]=He.useState(!1),d=(0,je.A)(i),[l,h]=He.useState(null),m=He.useRef(null),p=He.useRef(null),v=He.useRef(null),x=`${`menu-${He.useId()}`}-content`,L=He.useCallback(({direction:j,predFn:R=()=>!0})=>{if(!v.current)return;const M=Array.from(v.current.querySelectorAll('[role="menuitem"]')),z=M.length,$=M.findIndex(Q=>Q===document.activeElement);let H,F,K;switch(j){case"start":H=0,F=1;break;case"end":H=z-1,F=-1;break;case"backwards":H=$-1,F=-1;break;case"forwards":H=$+1,F=1;break;default:H=$+1,F=1}for(let Q=0;Q<=z;Q++){H>=z?H=0:H<0&&(H=z-1);const J=M[H];if(J!=null&&PZ(J)&&R(J)){K=J;break}else H=H+F}K&&K.focus()},[]),T=He.useCallback(()=>{L({direction:"start"})},[L]),y=He.useCallback(()=>{L({direction:"end"})},[L]),b=He.useCallback(()=>{L({direction:"backwards"})},[L]),S=He.useCallback(()=>{L({direction:"forwards"})},[L]),N=He.useCallback(j=>{L({direction:"forwards",predFn:R=>MZ(R,j)})},[L]),k=He.useCallback(()=>{i?c(!1):(c(!0),setTimeout(S,25))},[S,i]),E=He.useCallback(()=>{p.current?.focus(),c(!1)},[]),I=He.useCallback(()=>{c(!0),setTimeout(S,25)},[S]),P=He.useCallback(()=>{c(!0),setTimeout(b,25)},[b]),A=He.useCallback(()=>{const{left:j,top:R}=_4({anchor:p.current,popover:v.current,positionX:a});h({transform:`translate3d(${j}px, ${R}px, 0)`,visibility:"visible"})},[a]),w=He.useCallback(j=>{const R=j.currentTarget;U4(R)||(r?.(R.getAttribute("data-name")),E())},[E,r]),O=He.useCallback(j=>{const R=j.key;if(j.altKey||j.ctrlKey||j.metaKey)return;let M=!1;if(j.shiftKey)R==="Tab"?b():R.trim()!==""&&N(R),M=!0;else switch(R){case" ":case"Enter":w(j),M=!0;break;case"Esc":case"Escape":E(),M=!0;break;case"ArrowUp":b(),M=!0;break;case"Tab":case"ArrowDown":S(),M=!0;break;case"Home":case"PageUp":T(),M=!0;break;case"End":case"PageDown":y(),M=!0;break;default:N(R);break}M&&(j.stopPropagation(),j.preventDefault())},[E,w,N,T,y,S,b]);return He.useEffect(()=>{const j=R=>{i&&m.current!=null&&v.current!=null&&!m.current.contains(R.target)&&!v.current.contains(R.target)&&c(!1)};return i?document.addEventListener("click",j):document.removeEventListener("click",j),()=>{document.removeEventListener("click",j)}},[i]),He.useEffect(()=>(i?window.addEventListener("resize",A):window.removeEventListener("resize",A),()=>{window.removeEventListener("resize",A)}),[A,i]),He.useEffect(()=>{const j=Sd(m.current);for(const R of j)i?R?.addEventListener("scroll",A,{passive:!0}):R?.removeEventListener("scroll",A);return()=>{for(const R of j)R?.removeEventListener("scroll",A)}},[A,i]),He.useEffect(()=>{i?A():h(null)},[A,i]),He.useEffect(()=>{if(d&&!i)s?.();else if(!d&&i&&(o?.(),m.current)){const j=new CustomEvent("menuopen",{bubbles:!0,detail:{target:m.current}});m.current.dispatchEvent(j)}},[d,i,s,o]),He.useEffect(()=>{const j=R=>{R.detail.target!==m.current&&c(!1)};return document.addEventListener("menuopen",j),()=>{document.removeEventListener("menuopen",j)}},[]),(0,n.jsx)(qd.Provider,{value:{htmlIdContent:x,isExpanded:i,onCloseFocusTrigger:E,onExpandFocusMenuItemNext:I,onExpandFocusMenuItemPrevious:P,onFocusMenuItemByPrefix:N,onFocusMenuItemFirst:T,onFocusMenuItemLast:y,onFocusMenuItemNext:S,onFocusMenuItemPrevious:b,onItemClick:w,onItemKeyDown:O,onTriggerClick:k,refContent:v,refTrigger:p,styleContent:l},children:(0,n.jsx)("div",{"aria-owns":x,inert:t?!0:void 0,ref:m,children:e})})}function AZ({as:e,children:t,label:s,labelledBy:o,...r}){const{htmlIdContent:a,isExpanded:i,onTriggerClick:c,onCloseFocusTrigger:d,onExpandFocusMenuItemNext:l,onExpandFocusMenuItemPrevious:h,refTrigger:m}=He.useContext(qd),p=He.useCallback(C=>{let g=!1;switch(C.key){case" ":case"Enter":case"ArrowDown":case"Down":l(),g=!0;break;case"Esc":case"Escape":d(),g=!0;break;case"Up":case"ArrowUp":h(),g=!0;break;default:break}g&&(C.stopPropagation(),C.preventDefault())},[d,l,h]),v=e??"button";return(0,n.jsx)(v,{...r,"aria-controls":a,"aria-expanded":i,"aria-haspopup":"menu","aria-label":s,"aria-labelledby":o,"data-menu-trigger":"",onClick:c,onKeyDown:p,ref:m,type:"button",children:t})}function RZ({children:e,className:t}){const{htmlIdContent:s,isExpanded:o,refContent:r,styleContent:a}=He.useContext(qd);return o?un.createPortal((0,n.jsx)("div",{className:t,"data-menu-content":"",hidden:o?void 0:!0,id:s,ref:r,role:"menu",style:a,children:e}),ro()):null}function eu({children:e,className:t,isDisabled:s,name:o,tooltipId:r}){const{onItemClick:a,onItemKeyDown:i}=He.useContext(qd),c=He.useCallback(d=>{d.currentTarget?.focus()},[]);return(0,n.jsx)("button",{"aria-describedby":r,"aria-disabled":s,className:t,"data-menu-item":"","data-name":o,onClick:s?void 0:a,onKeyDown:i,onMouseOver:c,role:"menuitem",tabIndex:s?-1:void 0,type:"button",children:e})}function cge({children:e}){return jZ("span",{"data-menu-item-icon":"",children:e})}function U4(e){return e!=null&&e.getAttribute("disabled")!=null||e.getAttribute("aria-disabled")==="true"}function PZ(e){return e!=null&&e.tagName==="BUTTON"&&!U4(e)}function MZ(e,t){return e?.textContent.toLowerCase().startsWith(t?.toLowerCase())}const Sc=_("audio-player-actions-condensed"),Bo=Object.freeze({DeleteAudio:"delete-audio",EditAudio:"edit-audio",EditTranscript:"edit-transcript",RevertToSource:"revert-audio-to-source"}),OZ=({audioPlayerId:e,condensed:t=!1,transcriptMedia:s,onTranscriptClick:o,onTranscriptClose:r,item:a,side:i,refs:c})=>{const{mode:d,isVariantLocale:l,handleOpenMediaModal:h,handleDelete:m,handleRevertToSource:p}=Bd(),v=vc(),C=Tt(),g=vs(),x=a&&"media"in a&&a.media?g(a.media):void 0,L=x&&"audio"in x?x.audio.aiAudioSettings:void 0,T=Ds(),y=_h(),b=T?y(T):"",[S,N]=(0,u.useState)(!1),k=(0,u.useCallback)(()=>N(!0),[]),E=(0,u.useCallback)(()=>N(!1),[]),I=L?.l10nAutoGenStatus==="reverted-to-source",P=l&&"audio"in x&&x.audio?.sourceType==="ai-audio"&&L?.l10nAutoGenStatus!=="unsupported-locale",A=gs(),w=v?.audioPlayerIdOpen===e,O=w?A?.audioHideTranscript:d==="edit"?"Edit transcript":A?.audioShowTranscript;function j(M){switch(M){case Bo.DeleteAudio:m(C.id,a,c);break;case Bo.EditTranscript:w?r?.():o?.();break;case Bo.EditAudio:h(C,a,c,i,{triggeredFrom:"block_audio_button"});break;case Bo.RevertToSource:p(C.id,a);break}}const R=!!g(s)?.audio?.transcript;return h||m||R?(0,n.jsx)(yc,{elementFocused:S,message:"Options",children:(0,n.jsxs)(wZ,{onSelect:j,positionX:"left",children:[(0,n.jsx)(AZ,{as:Me.ArcButton,hierarchy:"tertiary",icon:"fa-regular fa-ellipsis",label:"Options",layout:"icon",onBlur:E,onFocus:k,onMouseEnter:k,onMouseLeave:E,shape:"square",size:t?"sm":"md"}),(0,n.jsxs)(RZ,{className:Sc("content"),children:[h?(0,n.jsx)(eu,{className:Sc("menu-item"),name:Bo.EditAudio,children:"Edit audio"}):null,d==="edit"||R?(0,n.jsx)(eu,{className:Sc("menu-item"),name:Bo.EditTranscript,children:O}):null,m&&C?.variant!=="audio"?(0,n.jsx)(eu,{className:Sc("menu-item"),name:Bo.DeleteAudio,children:"Remove audio"}):null,p&&P?(0,n.jsx)(Me.ArcTooltip,{id:"revert-to-source-tooltip",isEnabled:I,text:"Audio currently synced to source",children:(0,n.jsxs)(eu,{className:Sc("menu-item"),isDisabled:I,name:Bo.RevertToSource,tooltipId:"revert-to-source-tooltip",children:["Revert to source audio (",b,")"]})}):null]})]})}):null};var BZ,DZ,Fe=f(80588);const Tc=Fe.createContext(null);function HZ({children:e,className:t,isDisabled:s,onClose:o,onItemActiveChange:r,onOpen:a,onSelect:i,portalArgs:c,positionX:d="left",value:l}){const[h,m]=Fe.useState(null),p=(0,je.A)(h),[v,C]=Fe.useState(!1),g=(0,je.A)(v),[x,L]=Fe.useState(null),T=Fe.useRef(null),y=Fe.useRef(null),b=Fe.useRef(null),N=`select-${Fe.useId()}`,k=`${N}-content`,E=h?.id,I=Fe.useCallback(R=>{const M=R.currentTarget;G4(M)||(C(!1),m(M),i(M.getAttribute("data-value")),R.stopPropagation())},[i]),P=Fe.useCallback(R=>{m(R)},[]),A=Fe.useCallback(()=>{C(R=>!R)},[]),w=Fe.useCallback(()=>{const{left:R,top:M}=_4({anchor:y.current,popover:b.current,positionX:d}),H=window.getComputedStyle(y.current).direction==="rtl"?-R:R;L({transform:`translate3d(${H}px, ${M}px, 0)`,visibility:"visible",width:`${y.current?.offsetWidth}px`})},[d]),O=Fe.useCallback(R=>{const M=Array.from(b.current?.querySelectorAll("[data-select-item]")??[]),z=M.length,$=M.findIndex(K=>K.getAttribute("data-select-item")==="current");let H,F=$+1;for(let K=0;K<z;K++){F>=z&&(F=0);const Q=M[K];if(Q!=null&&!G4(Q)&&$Z(Q,R)){H=K;break}else F=z-1}H&&(m(M[H]),M[H]?.scrollIntoView({block:"center"}))},[]),j=Fe.useCallback(R=>{const M=R.key;if(R.ctrlKey||R.metaKey)return;let z=!1;const $=Array.from(b.current?.querySelectorAll("[data-select-item]")??[]),H=$.findIndex(F=>F.getAttribute("data-select-item")==="current");if(v)if(M.length===1&&M!==" "&&!R.altKey&&!R.ctrlKey&&!R.metaKey)O(M);else switch(M){case" ":case"Enter":C(!1),$[H]!=null&&i($[H].getAttribute("data-value")),z=!0;break;case"Esc":case"Escape":C(!1),m($.find(F=>F.getAttribute("aria-selected")==="true")),z=!0;break;case"ArrowUp":R.altKey?(C(!1),$[H]!=null&&i($[H].getAttribute("data-value")??"")):H>0&&(m($[H-1]),$[H-1].scrollIntoView({block:"center"})),z=!0;break;case"ArrowDown":H<$.length-1&&(m($[H+1]),$[H+1].scrollIntoView({block:"center"})),z=!0;break;case"Home":m($[0]),$[0]?.scrollIntoView({block:"center"}),z=!0;break;case"End":m($[$.length-1]),$[$.length-1]?.scrollIntoView({block:"center"}),z=!0;break;case"PageUp":m($[0]),$[0]?.scrollIntoView({block:"center"}),z=!0;break;case"PageDown":m($[$.length-1]),$[$.length-1]?.scrollIntoView({block:"center"}),z=!0;break;case"Tab":C(!1),$[H]!=null&&i($[H].getAttribute("data-value"));break}else if(M.length===1&&M!==" "&&!R.altKey&&!R.ctrlKey&&!R.metaKey)C(!0),O(M);else switch(M){case" ":case"Enter":C(!0),z=!0;break;case"ArrowUp":C(!0),m($[0]),z=!0;break;case"ArrowDown":C(!0),z=!0;break;case"Home":C(!0),m($[0]),z=!0;break;case"End":C(!0),m($[$.length-1]),z=!0;break}z&&(R.stopPropagation(),R.preventDefault())},[O,v,i]);return Fe.useEffect(()=>{const R=b.current?.querySelector('[data-select-item][aria-selected="true"]');m(R)},[]),Fe.useEffect(()=>{const R=b.current?.querySelector(`[data-select-item][data-value="${l}"]`);m(R)},[l]),Fe.useEffect(()=>{const R=M=>{v&&T.current!=null&&b.current!=null&&!T.current.contains(M.target)&&!b.current.contains(M.target)&&C(!1)};return v?document.addEventListener("click",R):document.removeEventListener("click",R),()=>{document.removeEventListener("click",R)}},[v]),Fe.useEffect(()=>(v?window.addEventListener("resize",w):window.removeEventListener("resize",w),()=>{window.removeEventListener("resize",w)}),[w,v]),Fe.useEffect(()=>{const R=Sd(T.current);for(const M of R)v?M?.addEventListener("scroll",w,{passive:!0}):M?.removeEventListener("scroll",w);return()=>{for(const M of R)M?.removeEventListener("scroll",w)}},[w,v]),Fe.useEffect(()=>{v?w():L(null)},[w,v]),Fe.useEffect(()=>{v&&p!=null&&p!==h&&r?.({value:h.getAttribute("data-value")})},[v,p,h,r]),Fe.useEffect(()=>{if(g&&!v)o?.();else if(!g&&v&&(a?.(),T.current)){const R=new CustomEvent("comboboxopen",{bubbles:!0,detail:{target:T.current}});T.current.dispatchEvent(R)}},[g,v,o,a]),Fe.useEffect(()=>{const R=M=>{M.detail.target!==T.current&&C(!1)};return document.addEventListener("comboboxopen",R),()=>{document.removeEventListener("comboboxopen",R)}},[]),(0,n.jsx)(Tc.Provider,{value:{activeEl:h,htmlIdActiveDescendant:E,htmlIdBase:N,htmlIdContent:k,isExpanded:v,onItemClick:I,onItemHover:P,onTriggerClick:A,onTriggerKeyDown:j,portalArgs:c,refContent:b,refTrigger:y,selectedValue:l,styleContent:x},children:(0,n.jsx)("div",{"aria-owns":k,className:t,inert:s?!0:void 0,ref:T,children:e})})}function FZ({children:e,className:t,labelledBy:s,as:o,...r}){const{htmlIdActiveDescendant:a,htmlIdContent:i,isExpanded:c,onTriggerClick:d,onTriggerKeyDown:l,refTrigger:h}=Fe.useContext(Tc),m=!!o,p=o??"button";return(0,n.jsxs)(p,{"aria-activedescendant":a,"aria-controls":i,"aria-expanded":c,"aria-haspopup":"listbox","aria-labelledby":s,className:t,"data-select-trigger":m?void 0:"",onClick:d,onKeyDown:l,ref:h,role:"combobox",type:"button",...r,children:[(0,n.jsx)("span",{"data-select-trigger-text":"",children:e}),(0,n.jsx)("span",{"data-select-trigger-icon":"",children:c?(0,n.jsx)(ie,{name:"chevron-up"}):(0,n.jsx)(ie,{name:"chevron-down"})})]})}function VZ({children:e,className:t,label:s,labelledBy:o,style:r={}}){const{htmlIdContent:a,isExpanded:i,portalArgs:c,refContent:d,styleContent:l}=Fe.useContext(Tc);return un.createPortal((0,n.jsx)("div",{"aria-label":s,"aria-labelledby":o,className:t,"data-select-content":"",hidden:i?void 0:!0,id:a,ref:d,role:"listbox",style:{...l,...r},children:e}),ro(c))}function dge({children:e,className:t,labelText:s}){const{htmlIdBase:o}=Fe.useContext(Tc),r=Fe.useId(),a=`${o}-group-label-${r}`;return BZ("div",{"aria-labelledby":a,className:t,"data-select-group":"",role:"group",children:[DZ("div",{"data-select-group-label":"",id:a,role:"presentation",children:s}),e]})}function zZ({children:e,className:t,labelledBy:s,isDisabled:o,value:r}){const{activeEl:a,htmlIdBase:i,onItemClick:c,onItemHover:d,selectedValue:l}=Fe.useContext(Tc),h=Fe.useRef(null),m=Fe.useId(),p=h.current===a,v=r===l,C=`${i}-option-${m}`,g=Fe.useCallback(()=>{d(h.current)},[d]);return(0,n.jsxs)("div",{"aria-disabled":o,"aria-labelledby":s,"aria-selected":v,className:t,"data-select-item":p?"current":"","data-value":r,id:C,onClick:o?void 0:c,onMouseEnter:g,ref:h,role:"option",children:[e,v&&(0,n.jsx)("span",{"data-select-item-selected":"",children:(0,n.jsx)(ie,{name:"check"})})]})}function G4(e){return e!=null&&e.getAttribute("disabled")!=null||e.getAttribute("aria-disabled")==="true"}function $Z(e,t){return e?.textContent.toLowerCase().startsWith(t?.toLowerCase())}const qm=_("playback-speed-menu"),_Z=({onChange:e,condensed:t=!1,speed:s})=>{const o=gs(),[r,a]=(0,u.useState)(!1),i=(0,u.useCallback)(()=>a(!0),[]),c=(0,u.useCallback)(()=>a(!1),[]);return(0,n.jsx)(yc,{elementFocused:r,message:o?.audioPlaySpeed,children:(0,n.jsxs)(HZ,{className:qm(),onOpen:c,onSelect:d=>e(parseFloat(d)),portalArgs:{id:"portal",childType:"other"},value:String(s),children:[(0,n.jsxs)(FZ,{"aria-label":o?.audioPlaySpeed,as:Me.ArcButton,className:qm("trigger"),hierarchy:"tertiary",labelledBy:void 0,layout:"hug",onBlur:c,onFocus:i,onMouseEnter:i,onMouseLeave:c,shape:"square",size:t?"sm":"md",children:[s,"x"]}),(0,n.jsx)(VZ,{className:qm("content"),label:o?.audioPlaySpeed,children:IZ.map((d,l)=>(0,n.jsx)(zZ,{value:String(d.value??""),children:d.label},l))})]})})};function UZ(e=!1,t=200){const s=(0,u.useRef)(void 0),[o,r]=(0,u.useState)(e),a=(0,u.useCallback)(()=>{s.current&&clearTimeout(s.current),r(!0)},[]),i=(0,u.useCallback)(c=>{s.current&&clearTimeout(s.current),c?r(!1):s.current=setTimeout(()=>{r(!1)},t)},[t]);return(0,u.useEffect)(()=>()=>{s.current&&clearTimeout(s.current)},[]),{isActive:o,setActive:a,setInactive:i}}const W4=_("audio-player-volume"),GZ=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"];function WZ(e,t){return t||e<=0?"volumeXmark":e<=1/3?"volumeLow":e<=2/3?"volume":"volumeHigh"}function KZ({condensed:e=!1,muted:t,onChange:s,onMute:o,volume:r}){const a=gs(),i=(0,u.useRef)(null),c=(0,u.useRef)(null),d=(0,u.useRef)(null),{isActive:l,setActive:h,setInactive:m}=UZ(!1,200),p=t?0:r;function v(g){if(GZ.includes(g.code)){const T=window.getComputedStyle(g.currentTarget).direction==="rtl"?"ArrowLeft":"ArrowRight",y=g.code==="ArrowUp"||g.code===T?Math.min(p+Jd,1):Math.max(p-Jd,0);s(y),g.stopPropagation(),g.preventDefault()}else g.code==="KeyM"&&(o(),g.stopPropagation(),g.preventDefault())}(0,u.useEffect)(()=>{d.current.style.setProperty("--slider-volume",`${p*100}%`)},[p]);const C=`${Math.round(p*100)}%`;return(0,n.jsxs)("div",{className:W4(),onKeyDown:v,onMouseEnter:h,onMouseLeave:()=>m(!1),ref:i,children:[(0,n.jsx)(Me.ArcButton,{"aria-label":p<=0?a?.a11yMediaUnmute:a?.a11yMediaMute,color:"primary",hierarchy:"tertiary",icon:(0,n.jsx)(ie,{name:WZ(p,t)}),layout:"icon",onClick:o,ref:c,size:e?"sm":"md",type:"button"}),(0,n.jsx)("input",{"aria-label":a?.a11yMediaVolume,"aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":p*100,"aria-valuetext":C,className:W4("slider").mix(l?"":"visually-hidden"),max:100,min:0,onChange:g=>s(g.currentTarget.valueAsNumber/100),ref:d,type:"range",value:p*100})]})}const Ss=_("audio-player"),tu=({currentTime:e,duration:t})=>Math.round(e/t*100)||0,K4=e=>{if(!e)return{hours:0,minutes:0,seconds:0};const t=Math.floor(e/3600),s=Math.floor(e%3600/60),o=e%60;return{hours:t,minutes:s,seconds:o}},Q4=e=>{const{minutes:t,seconds:s}=K4(e);let o="";return t>0&&(o+=`${new Intl.NumberFormat(void 0,{style:"unit",unit:"minute",unitDisplay:"long"}).format(t)} `),o+=new Intl.NumberFormat(void 0,{style:"unit",unit:"second",unitDisplay:"long"}).format(Math.round(s)),o},QZ=e=>{const{hours:t,minutes:s,seconds:o}=K4(e);function r(c,d,l){return(new Array(l+1).join(d)+c).slice(-l)}const a=r(s,"0",2),i=r(o,"0",2);return t>0?`${t}:${a}:${i}`:`${s}:${i}`};class Ua extends u.Component{audio;play;playerControls;seekSlider;onDelete;constructor(t){super(t),this.state={condensed:!1,currentTime:0,playheadPositionSaveThrottle:0,playbackSpeed:1,playerExpanded:!0,shouldLoadPlayheadPosition:!0,volume:1,muted:!1,maxTime:t.audioVideoPlayhead||0,sliderPercent: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(t){return Math.round(t*1e3)}keySeek(t){const{canRestrictSeek:s}=this.props,{currentTime:o,duration:r}=this.audio,{maxTime:a}=this.state;let i=o+t;s&&i>a&&(i=a);const c=Math.max(0,r-.01);this.audio.currentTime=t<0?Math.max(i,0):Math.min(i,c)}changeVolume=t=>{this.audio.volume=Math.round(t*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=t=>{const s=t<0?Math.max(this.audio.volume+t,0):Math.min(this.audio.volume+t,1);this.changeVolume(s)};componentDidMount(){de.addChangeListener(this.handleChange)}componentDidUpdate(t,s){const r=this.props.activeIndex!=null&&this.props.itemIndex!=null&&t.activeIndex!==this.props.activeIndex&&this.props.activeIndex!==this.props.itemIndex;(!t.shouldPause&&this.props.shouldPause||r)&&(this.audio.pause(),de.isPlaying&&de.playerId===this.props.id&&de.pause()),s.playbackSpeed!==this.state.playbackSpeed&&(this.audio.playbackRate=this.state.playbackSpeed)}componentWillUnmount(){const{recordMediaPlayheadPosition:t,id:s}=this.props;de.playerId===s&&de.pause(),de.removeChangeListener(this.handleChange),t&&t(tu(this.audio))}handleClickInsideAudioPlayer=t=>{t.stopPropagation(),t.preventDefault()};handleChange(){de.playerId===this.props.id?this.audio&&(de.isPlaying&&this.audio.paused?this.audio.play():!de.isPlaying&&!this.audio.paused&&this.audio.pause(),this.forceUpdate()):de.isPlaying&&(this.audio.pause(),this.forceUpdate())}containerResizeRef=t=>{const s=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:t.getBoundingClientRect().width<256}),s.observe(t),()=>{s.disconnect()}};render(){const{allowTabNavigation:t,id:s,isEditor:o,isOverlayAudio:r,labels:a,mediaSrc:i,mode:c,onDelete:d,onTranscriptClick:l,onTranscriptClose:h,transcriptMedia:m,item:p,side:v,refs:C,transcriptAudioPlayerIdOpen:g}=this.props,x=de.isPlaying&&de.playerId===s,{currentTime:L,playerExpanded:T}=this.state,y=this.audio?.duration??0,b=Number.isNaN(y)?0:y,S=Math.round(b-L),N=QZ(S),k=Q4(S),E=Q4(L),I=t?0:-1,P=!o,{a11yGroupAudioPlayer:A,a11yMediaPlay:w,a11yMediaPause:O,a11yMediaSeek:j}=a??{},R=Ss({overlay:r,collapsed:r&&!T,expanded:!r||T,"volume-slider-below":this.props.volumeSliderPosition==="below"}),M=o||c==="edit"?"Collapse audio player":a?.audioCollapsePlayer,z=o||c==="edit"?"Expand audio player":a?.audioExpandPlayer,$=T?M:z,H=pn({refs:C}),K=g===H?Fm(g):void 0;return(0,n.jsx)("div",{className:Ss("container"),onClick:this.handleClickInsideAudioPlayer,ref:this.containerResizeRef,children:(0,n.jsxs)("div",{className:R,id:s,children:[P&&(0,n.jsx)("div",{className:Ss("waveform"),children:r?(0,n.jsx)(yc,{message:$,children:(0,n.jsx)("button",{"aria-label":$,className:Ss("waveform-icon"),onClick:this.onTogglePlayer,type:"button",children:(0,n.jsx)(z4,{animating:x})})}):(0,n.jsx)("div",{className:Ss("waveform-icon",{disabled:!0}),children:(0,n.jsx)(z4,{animating:x})})}),(0,n.jsxs)("div",{"aria-hidden":!t,"aria-label":A,"aria-owns":K,className:Ss("housing",{"with-border":P}),inert:!this.state.playerExpanded,onKeyDown:this.onKeyDown.bind(this),role:_a,tabIndex:I,children:[(0,n.jsxs)("div",{className:Ss("play-timer-housing"),children:[(0,n.jsx)(Me.ArcButton,{"aria-label":x?O:w,className:Ss("play"),hierarchy:"tertiary",icon:(0,n.jsx)(ie,{className:Ss("icon"),name:x?"pause-solid":"play-solid"}),layout:"icon",onClick:this.onPlayClick,ref:Q=>{this.play=Q},shape:"square",size:this.state.condensed?"sm":"md",tabIndex:I,type:"button"}),(0,n.jsx)("input",{"aria-label":j,"aria-valuemax":b,"aria-valuemin":0,"aria-valuenow":L,"aria-valuetext":E,className:Ss("seek-slider"),max:b,min:0,onChange:this.onSeekSliderChange.bind(this),ref:Q=>{this.seekSlider=Q},step:.01,style:{"--seek-slider-percent":`${this.state.sliderPercent}%`},type:"range",value:L}),(0,n.jsx)("div",{"aria-label":k,className:Ss("timer").mix(this.state.condensed?"visually-hidden-always":""),role:"timer",children:N})]}),(0,n.jsxs)("div",{className:Ss("player-controls"),ref:Q=>{this.playerControls=Q},children:[(0,n.jsx)(_Z,{condensed:this.state.condensed,onChange:Q=>{this.setState({playbackSpeed:Q})},speed:this.state.playbackSpeed}),(0,n.jsx)(KZ,{condensed:this.state.condensed,muted:this.state.muted,onChange:this.changeVolume,onMute:this.muteToggle,volume:this.state.volume}),c==="readonly"||o?(0,n.jsx)(yZ,{audioPlayerId:H,condensed:this.state.condensed,onDelete:d,onTranscriptClick:l,onTranscriptClose:h,transcriptMedia:m}):(0,n.jsx)(OZ,{audioPlayerId:H,condensed:this.state.condensed,item:p,onTranscriptClick:l,onTranscriptClose:h,refs:C,side:v,transcriptMedia:m})]})]}),(0,n.jsx)("audio",{className:Ss("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:Q=>{this.audio=Q},src:mt(`${i}`)},"audio-"+s)]},`player-${s}`)})}onKeyDown(t){const o=hn(this.onPlayClick),r=hn(()=>this.keySeek(5)),a=hn(()=>this.keySeek(-5)),i=hn(()=>this.changeVolumeDelta(Jd)),c=hn(()=>this.changeVolumeDelta(-Jd)),d=hn(()=>this.muteToggle()),l=g=>g.target===this.play,h=g=>g.target===this.seekSlider,m=g=>this.playerControls===g.target||this.playerControls.contains(g.target),p=os()([[Ji,o],[no,Oo],[so,Oo],[br,Oo],[xr,Oo]]),v=os()([[Ji,o],[TV,r],[NV,a]]),C=os()([[Ji,o],[no,r],[so,a],[xr,i],[br,c],[g=>g.code==="KeyM",d]]);os()([[l,p],[h,v],[m,Oo],[sr(),C]])(t)}onPlayClick(t){t.stopPropagation(),t.preventDefault();const{audioVideoPlayhead:s}=this.props,{duration:o,paused:r}=this.audio;r&&s&&this.state.shouldLoadPlayheadPosition&&(this.audio.currentTime=o*s/100||0),r?this.audio.play():this.audio.pause()}onAudioPlayPause=t=>{const{id:s,onPause:o,onPlay:r,onTranscriptUpdate:a,recordMediaPlayheadPosition:i,refs:c,transcriptMedia:d}=this.props,{paused:l,currentTime:h,duration:m}=t.currentTarget;if(l)l&&de.playerId===s&&(de.isPlaying=!1,o(Ua.timeMs(h)),i&&i(tu({currentTime:h,duration:m})));else{de.playerId=s,de.isPlaying=!0,r(Ua.timeMs(h));const p=pn({refs:c});a?.({audioPlayerId:p,transcriptMedia:d})}this.setState({shouldLoadPlayheadPosition:!1})};onVolumeChangeHandler=t=>{const{volume:s,muted:o}=t.currentTarget;this.setState({volume:s,muted:o})};onSeekSliderChange(t){const{canRestrictSeek:s}=this.props,{maxTime:o}=this.state;let r=t.currentTarget.valueAsNumber;s&&r>o&&(r=o),this.audio.currentTime=r}onLoadedMetadata(t){const{currentTime:s,duration:o,muted:r,volume:a}=t.currentTarget,i=s/o*100;this.setState({currentTime:s,muted:r,volume:a,sliderPercent:i});const{onLoad:c}=this.props;c()}onEnded(t){const s=t.currentTarget;this.audio.currentTime=0,this.setState({currentTime:s.currentTime}),de.isPlaying=!1,this.props.onEnd(Ua.timeMs(s.currentTime)),this.forceUpdate()}onSeeked(t){const{id:s,onSeek:o,recordMediaPlayheadPosition:r}=this.props,{currentTime:a,duration:i}=t.currentTarget;de.isPlaying&&de.playerId!==s&&(de.isPlaying=!1),de.playerId=s,o(Ua.timeMs(a)),r&&r(tu({currentTime:a,duration:i}))}onTimeUpdate(t){const s=t.currentTarget,{recordMediaPlayheadPosition:o}=this.props,{currentTime:r,duration:a}=s,i=Math.floor(r);r>this.state.maxTime&&this.setState({maxTime:r});const c=r/a*100;Ff(),this.setState({currentTime:r,sliderPercent:c}),i%5===0&&this.state.playheadPositionSaveThrottle!==i&&o&&(o(tu(s)),this.setState({playheadPositionSaveThrottle:i}))}onTogglePlayer(t){this.setState(({playerExpanded:s})=>({playerExpanded:!s})),t.preventDefault(),t.stopPropagation()}}const ZZ=Ua,ho=e=>t=>t!=null&&typeof t=="object"&&"status"in t&&typeof t.status=="string"&&e.includes(t.status),YZ=ho(["uploading","processing","cropping","crushing"]),hge=ho(["canceled"]),Z4=ho(["complete"]),XZ=ho(["cropping"]),JZ=ho(["crushing"]),qZ=ho(["uploading"]),eY=ho(["processing"]),tY=ho(["errored"]),Y4=ho(["cropping","crushing","errored","processing","uploading"]);function sY(e){return e==null||typeof e!="object"?0:Object.values(e).filter(YZ).length}function mge(e){return Math.round(e.loaded*100/e.total)}const pge=e=>e?.file?.name||e?.opts?.filename||"";function fge(e){return e==null||typeof e!="object"?!1:Object.keys(e).length>0&&sY(e)>0}const su=e=>G()("upload-progress__wrapper",e),X4=(0,u.createContext)(null);function J4(){return(0,u.useContext)(X4)}const gge=X4.Provider;function nY(e){function t(s){const o=J4();return o?(0,n.jsx)(e,{...s,getUpload:o.getUpload,handleUploadDismiss:o.handleUploadDismiss}):(0,n.jsx)(e,{...s})}return t.displayName=`withUploadStatusContext(${e.displayName||e.name})`,t}const nu=({onClick:e,text:t})=>(0,n.jsxs)(Me.ArcButton,{hierarchy:"tertiary",onClick:e,size:"sm",type:"button",children:[t,(0,n.jsx)("span",{className:"visually-hidden-always",children:" upload"})]}),ep=20,Nc=ep/2,tp=Nc-2,q4=+(2*Math.PI*tp).toFixed(3),oY=e=>q4*(100-e)/100;function e9({classes:e,percent:t}){return(0,n.jsxs)("svg",{className:G()("upload-progress__pie",e),focusable:"false",height:`${ep}px`,width:`${ep}px`,children:[(0,n.jsx)("circle",{className:"upload-progress__border",cx:Nc,cy:Nc,r:tp}),(0,n.jsx)("circle",{className:"upload-progress__progress",cx:Nc,cy:Nc,r:tp,strokeDasharray:q4,strokeDashoffset:oY(t)})]})}const rY=({text:e})=>(0,n.jsxs)("div",{className:"upload-progress",children:[(0,n.jsx)(e9,{classes:"upload-progress__pie--processing",percent:70}),(0,n.jsx)("div",{className:"upload-progress__text",children:e})]}),aY=({percentage:e,text:t="Uploading\u2026"})=>(0,n.jsxs)("div",{className:"upload-progress",children:[(0,n.jsx)(e9,{percent:e}),(0,n.jsx)("div",{className:"upload-progress__text",children:t})]}),sp=({classes:e,jobId:t,onCancel:s,text:o})=>(0,n.jsxs)("div",{className:su(e),children:[(0,n.jsx)(rY,{text:o}),t&&(0,n.jsx)(nu,{onClick:s,text:"Cancel"})]}),iY=({classes:e,onCancel:t,percentage:s,text:o})=>(0,n.jsxs)("div",{className:su(e),children:[(0,n.jsx)(aY,{percentage:s,text:o}),(0,n.jsx)(nu,{onClick:t,text:"Cancel"})]}),cY=({message:e="Error"})=>(0,n.jsxs)("div",{className:"upload-error",children:[(0,n.jsx)(Me.ArcIcon,{icon:"fa-regular fa-circle-exclamation"}),(0,n.jsx)("div",{className:"upload-error__text",children:e})]}),lY=({classes:e,message:t,onClick:s})=>(0,n.jsxs)("div",{className:su(e),children:[(0,n.jsx)(cY,{message:t}),(0,n.jsx)(nu,{onClick:s,text:"Dismiss"})]}),dY=({message:e="Success"})=>(0,n.jsxs)("div",{className:"upload-success",children:[(0,n.jsx)(Me.ArcIcon,{icon:"fa-regular fa-check"}),(0,n.jsx)("div",{className:"upload-success__text",children:e})]}),uY=({classes:e,message:t,onClick:s})=>(0,n.jsxs)("div",{className:su(e),children:[(0,n.jsx)(dY,{message:t}),s?(0,n.jsx)(nu,{onClick:s,text:"Dismiss"}):null]}),hY=e=>{const{classes:t,data:s={},errorMessage:o,jobId:r,progress:a,onCancelUpload:i,onCancelProcess:c,onErrorDismiss:d,onSuccessDismiss:l,successMessage:h,uploadType:m}=e;return tY(e)?(0,n.jsx)(lY,{classes:t,message:o||s?.message,onClick:d}):qZ(e)?(0,n.jsx)(iY,{classes:t,onCancel:i,percentage:a,text:`Uploading ${m}\u2026`}):eY(e)?(0,n.jsx)(sp,{classes:t,jobId:r,onCancel:c,text:`Processing ${m}\u2026`}):JZ(e)?(0,n.jsx)(sp,{classes:t,onCancel:c,text:`Uploading ${m}\u2026`}):XZ(e)?(0,n.jsx)(sp,{classes:t,onCancel:c,text:"Cropping image\u2026"}):Z4(e)&&h?(0,n.jsx)(uY,{classes:t,message:h,onClick:l}):(0,n.jsx)("div",{})},np=_("audio-player"),mY=np("upload-state");function t9({uploadId:e,onAIUploadFinish:t,volumeSliderPosition:s,...o}){const r=J4(),{mode:a}=Bd(),i=vc(),c=r&&e?r.getUpload(e):null,d=(0,u.useMemo)(()=>c&&c.mediaType==="audio"&&Y4(c),[c]),l=(0,je.A)(d);if((0,u.useEffect)(()=>{!d&&l&&t?.()},[d,l,t]),d){const{jobId:h,status:m,progress:p,data:v}=c,C=x=>()=>r?.handleUploadDismiss(x,c),g=np({overlay:o.isOverlayAudio,static:o.isOverlayAudio});return(0,n.jsx)("div",{className:np("container"),children:(0,n.jsx)("div",{className:g,children:(0,n.jsx)(hY,{classes:mY,errorMessage:v?.message,jobId:h,onCancelProcess:C("process"),onCancelUpload:C("upload"),onErrorDismiss:C("error"),progress:p,status:m,successMessage:"Processing\u2026",uploadType:"audio"})})})}return(0,n.jsx)(ZZ,{...o,mode:a,transcriptAudioPlayerIdOpen:i?.audioPlayerIdOpen??null,volumeSliderPosition:s})}var pY=f(36285),fY=f.n(pY),gY=f(13887),vY=f.n(gY);function CY(){const t=Re()?.id,s=R1();return(0,u.useCallback)(o=>s&&t!=null?X3.lesson({courseId:t,lessonId:o}):`/lessons/${o}`,[t,s])}var xY=f(12930),bY=f(87093),yY=f.n(bY);const LY=/(\.\.\/)|(\.\.\.\.\/)+|%2e%2e\/|%252e%252e\/|%2f\/|\/%2e%2e/gi,SY=e=>typeof e=="string"&&e.replace(LY,""),Ts=yY()(SY,xY.J),TY="about:blank",NY=e=>{const t=e?.trim();if(!t)return null;const s=Ts(t);return s===TY?null:/^(https?:\/\/|mailto:)/i.test(s)||/^(\.?\/|[#?])/.test(s)?s:`http://${s.replace(/^\/\//,"")}`},Ga=u.memo(({align:e,alt:t,allowTabNavigation:s=!0,cornerRadius:o,disableZoom:r,getLessonPath:a,height:i,l10nId:c,labels:d,link:l,maxHeight:h=380,onLoad:m,shouldFillWidth:p,src:v,width:C})=>{const g=CY(),x=a??g,L=lr(t),T=l?.type==="url"&&l.destination?NY(l.destination):null,y=l?.type==="lesson"&&!!l.destination||!!T,b=s&&!r&&!y,S=G()("img-img",{"img-img--left":e==="left","img-img--right":e==="right","img-img--center":!e||e==="center","img-img--fill":p});let N={};o!=null&&(N["--corner-radius"]=`${Number(o)}px`),C>0&&i>0&&i>h?(C=Math.round(C*h/i),i=h):h&&(!C||!i)&&(N={maxHeight:h});let k=(0,n.jsx)(Ls,{alt:L,className:S,"data-l10n-id":c,height:i,onLoad:m,src:v,style:N,width:C});return y&&l?l.type==="lesson"?k=(0,n.jsx)(is,{className:"img__link",to:x(l.destination),children:k}):T&&(k=(0,n.jsx)("a",{className:"img__link",href:T,rel:"noopener noreferrer nofollow",target:"_blank",children:k})):b&&(k=(0,n.jsx)(D4,{a11yNameButtonUnzoom:d?.a11yUnzoomImage,a11yNameButtonZoom:d?.a11yZoomImage,children:k})),(0,n.jsx)("div",{className:"img",children:k})});var Tge=f(17094),kY=f(12335),IY=f.n(kY),EY,jY,wY,s9;const{validIframe:n9,validUrl:o9}=JL,r9=rs()("type","embed"),AY=IY()("type","embedType"),RY=ir()(/http:/i,"https:"),PY=e=>({embedType:"iframe",originalUrl:e,src:e}),MY=e=>Pr(e.embed),Pr=e=>e?.embedType||e?.type,Nge=e=>wY([[s9(n9),EY(r9,PY,RY)],[s9(o9),jY(r9,AY,e)]]),kge=Nn()(ce()(Ai()(n9),Lf),Ai()(o9)),Ige="We are unable to generate an embed for this URL. Please check that the URL is valid and the content is publicly accessible.";var Mr=f(80588);const a9=e=>{const t=ye("CDN_USER_CONTENT_URI"),s=new RegExp(ye("CDN_URI"),"g");return ui()?e:s.test(e)?`${t}${new URL(e).pathname}${new URL(e).search}`:e},OY=e=>{const t=new window.URL("https:"+e);return t.searchParams.set("src",t.searchParams.get("src")+"&disable-auto-focus=true"),t.toString().replace("https:","")},BY=/^\/\/cdn.embedly.+src=.*\.typeform\.com%2F/,DY=e=>BY.test(e),HY=/^\/\//,i9=e=>e?.replace(HY,"https://"),ou=e=>{try{if(e===!1)return e;const t=new URL(i9(e));if(t.host==="cdn.embedly.com"&&t.pathname==="/widgets/media.html"){const s=new URL("https://embed.articulateusercontent.com/media/");return s.search=t.search,s.searchParams.set("v","1"),s.href}return t.href}catch(t){const s=new Error("Could not parse embed url",{cause:t});return console.warn(s),e}},FY=ce()(ou,i9,Kn()(DY,OY),Kn()(Boolean,mt),Ts),VY=e=>{const{paddingBottom:t,ref:s,value:o}=e;return(0,n.jsx)("div",{className:"embed--iframe",dangerouslySetInnerHTML:Mr.useMemo(()=>({__html:o}),[o]),ref:s,style:{paddingBottom:t}})};class zY extends Mr.Component{player;refIframeContainer=Mr.createRef();refIframePlayer=Mr.createRef();state={duration:0,isReady:!1};static get defaultProps(){return{allowTabNavigation:!0,shouldPause:!1,showMetaData:!0}}componentDidUpdate(t){!t.shouldPause&&this.props.shouldPause&&de.isPlaying&&(this.player?.pause(),de.isPlaying=!1)}componentWillUnmount(){Pr(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}),de.addChangeListener(this.handlePlayerChange))};handlePlayerPlay=()=>{const{id:t}=this.props;de.isPlaying&&de.playerId!==t&&(de.isPlaying=!1),de.playerId=t,de.isPlaying=!0};handlePlayerUpdate=t=>{this.props.progressChanged?.({done:t.seconds/t.duration*100})};handlePlayerChange=()=>{const{id:t}=this.props;de.playerId===t&&(de.isPlaying?this.player.play():this.player.pause())};setupPlayer=()=>{this.refIframePlayer.current?.contentWindow!=null&&(this.player!=null&&this.teardownPlayer(),this.player=new(fY()).Player(this.refIframePlayer.current),this.player.on("ready",this.handlePlayerReady))};teardownPlayer=()=>{de.isPlaying=!1,de.removeChangeListener(this.handlePlayerChange),this.player&&(this.player.off("play"),this.player.off("ready"),this.player.off("timeupdate"),delete this.player)};playerSupportsMethods=t=>{const s=o=>this.player.supports("method",o);return vY()(s)(t)};togglePlay=()=>{this.playerSupportsMethods(["play","pause"])&&this.player.on("ready",()=>{this.player.getPaused(t=>{t?this.player.play():this.player.pause()})})};keySeek=t=>{this.playerSupportsMethods(["getCurrentTime","setCurrentTime"])&&this.player.on("ready",()=>{this.player.getCurrentTime(s=>{this.player.setCurrentTime(s+t)})})};changeVolume=t=>{this.playerSupportsMethods(["getVolume","setVolume"])&&this.player.getVolume(s=>{this.player.setVolume(s+t)})};onKeyDown=t=>{const r=hn(this.togglePlay),a=hn(()=>this.keySeek(5)),i=hn(()=>this.keySeek(-5)),c=hn(()=>this.changeVolume(10)),d=hn(()=>this.changeVolume(-10));os()([[Uh,r],[no,a],[so,i],[xr,c],[br,d]])(t)};renderProvider=()=>{const{allowTabNavigation:t,embedId:s,externalLinksDisabled:o,onLinkBlur:r,onLinkFocus:a,onLinkMouseEnter:i,onLinkMouseLeave:c,showMetaData:d,data:l}=this.props,{providerUrl:h,provider:m,favicon:p}=l;if(!(d&&h))return null;const v=ou(Ts(h)),C=o&&zs(v),g=`${s}-provider`,x=C?"":void 0,L=C?void 0:v,T=C?void 0:"noopener noreferrer",y=C?"button":void 0,b=C?void 0:"_blank";return(0,n.jsx)("h2",{className:"embed__provider",children:(0,n.jsxs)("a",{className:"brand--hoverColor","data-external":x,href:L,id:C?g:void 0,onBlur:C?()=>r?.(g):void 0,onFocus:C?()=>a?.(g):void 0,onMouseEnter:C?()=>i?.(g):void 0,onMouseLeave:C?()=>c?.(g):void 0,rel:T,role:y,style:C?{display:"inline-block"}:void 0,tabIndex:t?0:-1,target:b,children:[(0,n.jsx)(Ls,{alt:p?m:"",className:"embed__providerIcon",src:p}),(0,n.jsx)("span",{className:"embed__providerName",children:m})]})})};renderMetaData=()=>{const{allowTabNavigation:t,data:s,embedId:o,externalLinksDisabled:r,labels:a,onLinkBlur:i,onLinkFocus:c,onLinkMouseEnter:d,onLinkMouseLeave:l,showMetaData:h}=this.props,{src:m,title:p,description:v,provider:C}=s,g=Pr(s);if(!h&&g!=="link")return null;const x=ou(Ts(m)),L=r&&zs(x),T=`${o}-metadata-title`,y=`${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?()=>c?.(S):void 0,onMouseEnter:L?()=>d?.(S):void 0,onMouseLeave:L?()=>l?.(S):void 0,rel:L?void 0:"noopener noreferrer nofollow",role:L?"button":void 0,style:L?{display:"inline-block"}:void 0,tabIndex:t?0:-1,target:L?void 0:"_blank"});return(0,n.jsxs)("div",{className:"embed__meta__content",children:[(0,n.jsx)("h2",{className:"embed__title",children:(0,n.jsx)("a",{className:"brand--hoverColor",...b(T),children:(0,n.jsx)(be,{value:p})})}),(0,n.jsx)(be,{className:"embed__description",value:v}),(0,n.jsxs)("a",{className:"embed__readMore brand--hoverColor",...b(y),children:[g==="link"?`${a?.embedReadMore} ${C}`:`${a?.embedViewOn} ${C}`,(0,n.jsx)("i",{className:"icon icon-chevron-right"})]})]})};render(){const{allowTabNavigation:t,data:s,embedId:o,externalLinksDisabled:r,isLesson:a,labels:i,onLinkBlur:c,onLinkFocus:d,onLinkMouseEnter:l,onLinkMouseLeave:h,showMetaData:m}=this.props,{useRelativePath:p}=s??{},{description:v,originalUrl:C,src:g,thumbnail:x,title:L}=s,T=Pr(s);if(T==="iframe"){const y=document.createElement("div");y.innerHTML=Lf(g);const b=y.firstChild,S=b&&b.tagName&&b.tagName.toLowerCase()==="iframe";let N=100,k=32;if(this.props.isAuthoring&&p)return(0,n.jsxs)("div",{children:[(0,n.jsx)("h2",{className:"embed__relativeUrl--iframe",children:"Embedded iframe with a relative url"}),(0,n.jsx)("p",{className:"embed__relativeUrl--title",children:L}),(0,n.jsx)("p",{className:"embed__relativeUrl--url",children:C})]});if(S){const O=b.width.match(/%/),j=parseInt(b.width);b.src=Ts(b.src),N=O?700*(j/100):j||16,k=parseInt(b.height)}const E=k/N,I=S?`${E*100}%`:"3rem";if(b.src.includes("typeform")){const O=new window.URL(b.src);O.searchParams.append("disable-auto-focus","true"),b.src=O.toString()}if(b.src.includes("forms.office.com")){const O=new window.URL(b.src);O.searchParams.append("embed","true"),b.src=O.toString()}const w=S?b.outerHTML:"<div>Error: Invalid iframe tag. Please check the iframe source.</div>";return(0,n.jsxs)("div",{"aria-hidden":!t,"aria-label":i?.embedPlayerGroup,className:"embed",role:_a,children:[p&&(0,n.jsx)("div",{className:"embed__title embed--iframe__title",children:L}),(0,n.jsx)(VY,{paddingBottom:I,ref:this.refIframeContainer,value:w})]})}else if(a){const y=p?g:ou(Ts(g)),b=r&&zs(y),S=`${o}-lesson-title`,N=`${o}-lesson-url`,k=b?"":void 0,E=b?void 0:y,I=b?void 0:"noopener noreferrer nofollow",P=b?"button":void 0,A=b?void 0:"_blank";if(p){const w={"data-external":b?"":void 0,href:y,id:b?S:void 0,onBlur:b?()=>c?.(S):void 0,onFocus:b?()=>d?.(S):void 0,onMouseEnter:b?()=>l?.(S):void 0,onMouseLeave:b?()=>h?.(S):void 0,rel:b?void 0:"noopener noreferrer nofollow",role:b?"button":void 0,tabIndex:t?0:-1,target:b?void 0:"_blank"};return(0,n.jsxs)("div",{"aria-hidden":!t,"aria-label":i?.a11yBlockEmbed,className:"embed embed--link embed--rich",role:_a,children:[(0,n.jsx)("h2",{className:"embed__title",children:(0,n.jsx)("a",{className:"brand--hoverColor",...w,children:(0,n.jsx)(be,{value:L})})}),["link","photo"].includes(T)?(0,n.jsxs)("a",{className:"embed__relativeUrl--url","data-external":k,href:E,id:b?N:void 0,onBlur:b?()=>c?.(N):void 0,onFocus:b?()=>d?.(N):void 0,onMouseEnter:b?()=>l?.(N):void 0,onMouseLeave:b?()=>h?.(N):void 0,rel:I,role:P,tabIndex:t?0:-1,target:A,children:[y,T==="photo"?(0,n.jsx)("div",{className:"embed__relativeUrl--image",children:(0,n.jsx)(Ls,{alt:x?L:"",className:"embed__img",src:y})}):null]}):this.renderEmbedIframe({allowTabNavigation:t,labels:i,src:g,thumbnail:x,title:L,type:T})]})}return(0,n.jsxs)("div",{"aria-hidden":!t,"aria-label":i?.a11yBlockEmbed,className:"embed embed--link embed--rich",role:_a,children:[this.renderProvider(),["link","photo"].includes(T)?(0,n.jsx)("a",{"data-external":k,href:E,id:b?N:void 0,onBlur:b?()=>c?.(N):void 0,onFocus:b?()=>d?.(N):void 0,onMouseEnter:b?()=>l?.(N):void 0,onMouseLeave:b?()=>h?.(N):void 0,rel:I,role:P,tabIndex:t?0:-1,target:A,children:(0,n.jsx)(Ls,{alt:x?L:"",className:"embed__img",src:a9(x)})}):this.renderEmbedIframe({allowTabNavigation:t,labels:i,src:g,thumbnail:x,title:L,type:T}),this.renderMetaData()]})}else if(T==="link"){const y=p?g:Ts(g),b=p||r&&zs(y),S=`${o}-link-readmore`,N=b?"":void 0,k=b?void 0:y,E=b?void 0:"noopener noreferrer nofollow",I=b?"button":void 0,P=b?void 0:"_blank";return(0,n.jsxs)("div",{"aria-hidden":!t,"aria-label":i?.embedLinkGroup,className:"embed embed--link brand--linkColor",role:_a,children:[(0,n.jsx)(be,{className:"embed__title",value:L}),(0,n.jsx)(be,{className:"embed__description",value:v}),(0,n.jsx)("a",{className:"embed__readMore brand--hoverColor","data-external":N,href:k,id:b?S:void 0,onBlur:b?()=>c?.(S):void 0,onFocus:b?()=>d?.(S):void 0,onMouseEnter:b?()=>l?.(S):void 0,onMouseLeave:b?()=>h?.(S):void 0,rel:E,role:I,target:P,children:i?.embedReadMore})]})}else return(0,n.jsxs)("div",{className:"embed embed--media",children:[m?(0,n.jsx)(be,{"aria-hidden":!t,className:"embed__title",value:L}):null,this.renderEmbedIframe({allowTabNavigation:t,labels:i,src:g,thumbnail:x,title:L,type:T})]})}renderEmbedIframe=t=>{const{allowTabNavigation:s,labels:o,src:r,thumbnail:a,title:i,type:c}=t,{useRelativePath:d}=this.props.data??{};if(c==="photo")return(0,n.jsx)("figure",{className:"embed__media-wrap embed__media-wrap--photo",children:(0,n.jsx)(Ga,{allowTabNavigation:s,labels:o,src:a9(a)})});{const l=oo.isIe11||oo.isEdge,h=G()("embed__media-wrap",{"embed__media-wrap--ms_browser":l});return(0,n.jsxs)("figure",{"aria-hidden":!s,"aria-label":o?.embedPlayerGroup,className:h,onKeyDown:this.onKeyDown,ref:this.refIframeContainer,tabIndex:s?0:-1,children:[(0,n.jsx)("meta",{content:"origin",name:"referrer"}),(0,n.jsx)("iframe",{allowFullScreen:!0,className:"embed__media",frameBorder:"0",inert:s?void 0:!0,loading:"lazy",onLoad:this.setupPlayer,ref:this.refIframePlayer,scrolling:d?"yes":"no",src:d?r:FY(r),title:i})]})}}}const c9=e=>{const t=R1(),s=Re(),o=e.externalLinksDisabled??(s&&"externalLinksDisabled"in s?s.externalLinksDisabled:!1),{handleMouseEnter:r,handleMouseLeave:a,handleFocus:i,handleBlur:c}=gd(),[d,l]=Mr.useState([]),h=Mr.useId();return Mr.useEffect(()=>{if(!o||!e.data){l([]);return}const m=[],{providerUrl:p,src:v,useRelativePath:C}=e.data,g=Pr(e.data);e.isLesson&&v&&zs(Ts(v))&&(m.push(`${h}-lesson-title`),["link","photo"].includes(g)&&m.push(`${h}-lesson-url`),g!=="iframe"&&(m.push(`${h}-metadata-title`),m.push(`${h}-metadata-readmore`)),p&&zs(Ts(p))&&m.push(`${h}-provider`)),!e.isLesson&&e.showMetaData&&p&&zs(Ts(p))&&m.push(`${h}-provider`),!e.isLesson&&e.showMetaData&&v&&zs(Ts(v))&&g!=="iframe"&&(m.push(`${h}-metadata-title`),m.push(`${h}-metadata-readmore`)),g==="link"&&(C||v&&zs(Ts(v)))&&m.push(`${h}-link-readmore`),l(m)},[o,e.data,e.showMetaData,e.isLesson,h]),(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(zY,{...e,embedId:h,externalLinksDisabled:o,isAuthoring:t,onLinkBlur:c,onLinkFocus:i,onLinkMouseEnter:r,onLinkMouseLeave:a}),d.map(m=>(0,n.jsx)(vd,{anchorId:m},m))]})};var $Y=f(70249);const _Y=()=>{const e=ra();return l1(e)},l9=(e,t)=>e in t?"Articulate":e.length===2?"ISO-639-1":e.length===3?"ISO-639-3":null,UY=e=>Object.entries(e).reduce((t,[,s])=>(s.ISO639_1&&(t.iso1Map[s.ISO639_1]=t.iso1Map[s.ISO639_1]||[],t.iso1Map[s.ISO639_1].push(s)),s.ISO639_3&&(t.iso3Map[s.ISO639_3]=t.iso3Map[s.ISO639_3]||[],t.iso3Map[s.ISO639_3].push(s)),t),{iso1Map:{},iso3Map:{}}),GY=(e,t,s)=>{let o=e,r="",a=s??l9(e,t);return!a&&e.includes("-")&&([o,r]=e.split("-"),a=l9(o,t),a&&(e=o)),{languageCode:o,code:e,regionCode:r,standard:a??"Articulate"}},kc=(e,t,s={})=>{const{code:o,standard:r}=GY(e.toLowerCase(),t,s.standard),{location:a,script:i,variant:c}=s;if(r!=="Articulate"){const{iso1Map:d,iso3Map:l}=UY(t),h=r==="ISO-639-1"?d[o]??null:l[o]??null;return h?h.length===1?h[0]:h.find(m=>{const p=c&&"variant"in m&&m.variant?m.variant.toLocaleLowerCase()===c.toLocaleLowerCase():!1,v=a&&"location"in m&&m.location?m.location.toLocaleLowerCase()===a.toLocaleLowerCase():!1,C=i&&"script"in m&&m.script?m.script.toLocaleLowerCase()===i.toLocaleLowerCase():!1;return p||v||C})||h[0]||null:null}return t[o]??null},jge=(e,t,s={})=>kc(e,t,{standard:"Articulate",...s})?.ISO639_1||null,wge=(e,t,s={})=>kc(e,t,{standard:"Articulate",...s})?.ISO639_3||null,Age=(e,t,s={})=>kc(e,t,{standard:"ISO-639-1",...s})?.code||null,Rge=(e,t,s={})=>kc(e,t,{standard:"ISO-639-3",...s})?.code||null,d9=e=>!!(e&&"video"in e&&e.video&&"key"in e.video&&e.video.key),u9=e=>!!(e&&"customVideo"in e&&e.customVideo&&"src"in e.customVideo&&e.customVideo.src),h9=e=>!!(e&&"customVideo"in e&&e.customVideo&&"key"in e.customVideo&&e.customVideo.key),WY=(e,t)=>{const s=d9(e)&&d9(t)&&e.video.key===t.video.key,o=u9(e)&&u9(t)&&e.customVideo.src===t.customVideo.src,r=h9(e)&&h9(t)&&e.customVideo.key===t.customVideo.key;return s||o||r},KY=e=>!!(e&&"video"in e&&e.video&&"captions"in e.video&&e.video.captions?.length),QY=e=>{const t=Ds(),{currentLocale:s}=Ze(),o=Te(e,t),r=Te(e,s),a=_Y();return(0,u.useMemo)(()=>{if(!!(s&&s!==t)&&a&&WY(o,r)&&KY(r))return r.video.captions.find(d=>kc(d.code,a)?.code===s)?.id},[t,s,o,r,a])};function op({allowTabNavigation:e=!0,audioVideoPlayhead:t,canAdjustPlaybackSpeed:s,canRestrictSeek:o,captions:r,cornerRadius:a,id:i,media:c,onLoad:d,poster:l,progressChanged:h,recordMediaPlayheadPosition:m,ref:p,shouldPause:v,src:C,subtitle:g,type:x}){const L=u.useRef(null),T=u.useCallback(F=>{L.current=F,typeof p=="function"?p(F):p&&(p.current=F)},[p]),y=(0,je.A)(v),{currentLocale:b}=Ze(),S=gs(),N=$E(),k=_h(),E=QY(c),I=x==="customVideo",P=u.useCallback(F=>{Ff(),h?.(F)},[h]),A=u.useCallback(F=>{m?.(F)},[m]),w=u.useCallback(()=>{de.playerId=i,de.isPlaying=!0},[i]),O=u.useCallback(()=>{de.playerId===i&&(de.isPlaying=!1)},[i]),[j,R]=u.useState(!1),M=u.useRef(!1),z=u.useCallback(()=>{R(!0),d?.()},[d]);u.useEffect(()=>{M.current||j&&(t!=null&&t>0&&L.current?.seekToPercent(t),M.current=!0)},[j,t]),u.useEffect(()=>{!y&&v&&L.current?.pause()},[y,v]),u.useEffect(()=>{const F=()=>{(!de.isPlaying||de.playerId!==i)&&L.current?.pause()};return de.addChangeListener(F),()=>{de.removeChangeListener(F)}},[i]);const $=u.useMemo(()=>{const F={};return(typeof a=="number"||typeof a=="string")&&(F["--video-corner-radius"]=`${Number(a)}px`),F},[a]),H=l==null?void 0:I?l:mt(l);return(0,n.jsxs)($Y.L,{crossOrigin:oo.isLocalFilesystem?void 0:"anonymous",enablePlaybackSpeed:s??void 0,enableSeek:o==null?void 0:!o,inert:!e,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:N??b??void 0,onLoad:z,onPause:O,onPlay:w,onPlayheadSave:A,onTimeUpdate:P,poster:H,ref:T,style:$,timeUpdateInterval:1e3,children:[(0,n.jsx)("source",{src:`${I?C:mt(C)}?v=1`,type:I?"application/x-mpegURL":void 0}),r==null&&g&&(0,n.jsx)("track",{kind:"captions",label:"English",src:I?g:mt(g),srcLang:"en"}),r?.map(F=>(0,n.jsx)("track",{default:F.id===E?!0:void 0,kind:"captions",label:F.name||k?.(F.code),src:F.url||(F.key!=null?mt(F.key):void 0),srcLang:F.code},F.id))??null]})}var ZY=f(80588);function Ke(e){const t=ZY.forwardRef((s,o)=>{const r=vs();return(0,n.jsx)(e,{...s,getL10nValue:r,ref:o})});return t.displayName=`withLocalizedLookup(${e.displayName||e.name})`,t}var YY=f(68418),m9=f.n(YY),XY=f(97367),JY=f.n(XY);const qY=e=>({...e,courseId:e.courseId||Vt()(["course","id"],e)}),eX=e=>({...e,lessonId:e.lessonId||Vt()(["lesson","id"],e)}),tX=({id:e,courseId:t,lessonId:s,refs:o})=>e||(o&&s?`${s}-${o}`:s||t),rp=ce()(tX,eX,qY),Pge=st()(Ms()(xe()("id"),m9()("id",rp)),Nn()(JY()(xe(),[xe()("id"),xe()("uploads")]),Sn()(["id"])),m9()("isUploading",Ae()("status","uploading")));function Mge(e){const t=e.match(/^(.*\/)?([^/]+)$/);if(!t)return encodeURIComponent(e);const s=t[1]??"",o=t[2],r=encodeURIComponent(o);return`${s}${r}`}function sX(e){return e.replace(/%2F/g,"/")}var nX=f(80588);const ap=e=>!!(e&&("key"in e&&e.key||"src"in e&&e.src)),ru=e=>ap(e)&&!e.isProcessing&&!e.error,oX=(e,t)=>t?.mediaType==="audio"?!!e&&(ap(e)||Y4(t)||Z4(t)&&!ap(e)):ru(e),rX=e=>Kn()(Le()(!!e),fZ()(`-${e}`));class aX extends nX.Component{constructor(t){super(t),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:t,blockId:s,openTranscript:o,refs:r}=this.props,a=t?.items?.length===1?t.items[0]:void 0,i=this.props.item??a;let c=s;try{t!=null&&typeof t=="object"&&!Array.isArray(t)?"blockId"in t?c=t.blockId:"id"in t&&(c=t.id):t?.id&&(c=t.id)}catch{c=s}let d="";try{i!=null&&typeof i=="object"&&!Array.isArray(i)&&"id"in i&&(d=String(i.id))}catch{d=""}const l=r??`items:${c||""}/items:${d}`;if((t||s)&&i&&o)return o({blockId:t?.id??s,item:i,refs:l})}renderAudio(t,s){const{activeIndex:o,allowTabNavigation:r,block:a,blockId:i,getL10nValue:c,index:d,isOverlayAudio:l,item:h,itemIndex:m,labels:p,lessonNumber:v,shouldPause:C,side:g}=this.props,{audio:x}=c(t),L=a&&typeof a=="object"&&"blockId"in a?a.blockId:a?.id||i||"",T=h&&typeof h=="object"&&"id"in h?h.id:"",y=this.props.refs??`items:${L}/items:${T}`,b=`audio-${v}-${d}`;return(0,n.jsx)(t9,{activeIndex:o,allowTabNavigation:r,id:b,isOverlayAudio:l,item:h,itemIndex:m,labels:p,mediaSrc:x.key,onTranscriptClick:this.onTranscriptClick,onTranscriptClose:this.props.closeTranscript??void 0,onTranscriptUpdate:this.props.onTranscriptUpdate,refs:y,shouldPause:x.pause||C,side:g,transcriptMedia:t,uploadId:s,volumeSliderPosition:this.props.volumeSliderPosition},b)}renderImage(t){const{allowTabNavigation:s,cornerRadius:o,defaultAlign:r,imageMaxHeight:a,index:i,labels:c,onLoad:d,opts:l}=this.props,h=t?.align??r,m=t?.dimensions,p=`image-${i}`,{disableZoom:v}=l??{};return(0,n.jsx)(Ga,{align:h,allowTabNavigation:s,alt:t?.alt,cornerRadius:o,disableZoom:v,height:m?.height||m?.originalHeight,labels:c,link:t?.link,maxHeight:a,onLoad:d,shouldFillWidth:t?.fillWidth,src:Ct(t),width:m?.width||m?.originalWidth},p)}renderVideo(t,s){const{allowTabNavigation:o,blockId:r,lessonNumber:a,index:i,enableVideoPlaybackSpeed:c,shouldPause:d}=this.props,l=t.skipProcess?sX(t.poster):t.poster,h=rX(r)(`video-${a}-${i}-${l||""}`);return(0,n.jsx)(op,{allowTabNavigation:o,canAdjustPlaybackSpeed:c,captions:t.captions,id:h,media:s,poster:l,shouldPause:t.pause||d,src:t.key},h)}renderEmbed(t){const{allowTabNavigation:s,embedClass:o,labels:r,opts:a,shouldPause:i}=this.props,{fullEmbed:c,showMetaData:d=!0}=a,l=`embed-${this.props.index}`;return(0,n.jsx)("div",{className:o,children:(0,n.jsx)(c9,{allowTabNavigation:s,data:t,id:l,isLesson:c,labels:r,shouldPause:t.pause||i,showMetaData:d},l)})}render(){const{blockId:t,hasPadding:s,item:o,lessonId:r,mediaType:a}=this.props,i=o&&typeof o=="object"&&"id"in o?o.id:"",c=this.props.refs??`items:${t??""}/items:${i}`,d=this.props.media,l=G()({"media-group":s}),{audio:h,embed:m,image:p,video:v}=this.props.getL10nValue(d)??{},C=rp({lessonId:r,refs:c}),g=this.props.getUpload?this.props.getUpload(C):null;return(0,n.jsxs)("div",{className:l,"data-l10n-id":wt(d),children:[(!a||a==="image")&&ru(p)&&this.renderImage(p),(!a||a==="audio")&&oX(h,g)&&this.renderAudio(d,C),(!a||a==="video")&&ru(v)&&this.renderVideo(v,d),(!a||a==="embed")&&ru(m)&&this.renderEmbed(m)]})}}const _t=nY(Al(JC(Ke(aX))));function fn(e,t,s,o){const a=t==="bottom"||!s&&t!=="top"?"bottom":"top",i={renderOrder:["text"],isOverlayAudio:!1};if(!e)return i;const c=!!e.audio,d=!!e.image,l=!!e.video,h=!!e.embed,m=d||l,p=()=>{const g=d?"image":"video",x={top:c?["audio","text",g]:["text",g],bottom:c?["text","audio",g]:["text",g],legacyTop:c?["audio",g,"text"]:[g,"text"],legacyBottom:c?[g,"text","audio"]:[g,"text"]};return s&&o==="timeline"&&!t?x.top:s&&o!=="timeline"?a==="bottom"?x.legacyBottom:x.legacyTop:a==="bottom"?x.bottom:x.top},v=()=>{const g={top:c?["audio","text","embed"]:["text","embed"],bottom:c?["text","embed","audio"]:["text","embed"],legacyTop:c?["audio","embed","text"]:["embed","text"],legacyBottom:c?["embed","text","audio"]:["embed","text"]};return s&&o==="timeline"&&!t?g.legacyTop:s&&o!=="timeline"?a==="bottom"?g.legacyBottom:g.legacyTop:a==="bottom"?g.bottom:g.top},C=()=>a==="bottom"?["text","audio"]:["audio","text"];return c&&!m&&!h?{...i,renderOrder:C()}:m&&!c&&!h?{...i,renderOrder:p()}:h&&!c&&!m?{...i,renderOrder:v()}:c&&m&&!h?o==="statement"?{...i,renderOrder:C()}:o==="labeled-graphic"||a==="top"||o==="process"?{...i,renderOrder:p(),audioOnlyMedia:{audio:e.audio},imageOnlyMedia:{image:e.image},videoOnlyMedia:{video:e.video}}:{...i,renderOrder:e.video?["text","video","audio"]:["text","overlay"],audioOnlyMedia:{audio:e.audio},imageOnlyMedia:{image:e.image},videoOnlyMedia:{video:e.video},isOverlayAudio:!e.video}:c&&h&&!m?{...i,renderOrder:v(),audioOnlyMedia:{audio:e.audio},embedOnlyMedia:{embed:e.embed}}:i}var iX=f(80588);const Hn=_("block-text"),cX=class extends iX.Component{renderHeadingDelegate;renderTextDelegate;constructor(e){super(e),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:e}=this.props;return e?e==="heading"?"h2":"h3":"div"};renderHeading(e){const t="heading"in e?e.heading:null;return(0,n.jsx)(be,{value:t})}renderText(e){const{labels:t,takingSnapshot:s,variant:o}=this.props,r=o?.includes("column"),a="paragraph"in e?e.paragraph:void 0;return r||s?(0,n.jsx)(mZ,{item:e,labels:t,children:(0,n.jsx)(ot,{value:a||""})}):(0,n.jsx)(ot,{className:Hn("col"),value:a||""})}render(){const{blockId:e,columns:t,defaultBackgroundColor:s,heading:o,isLearner:r,items:a,labels:i,lessonId:c,media:d,settings:l,type:h,variant:m,renderText:p=this.renderTextDelegate,renderHeading:v=this.renderHeadingDelegate,getL10nValue:C}=this.props,g=C(d),x=Object.keys(g?.audio??{}).length>0,{audioPosition:L,entranceAnimation:T,cellPadding:y=1.5,tableWidth:b=76,textPadding:S=.8,textWidth:N=76}=l,k=m==="table",E=t===1,I=t>1,P=k?b:N,A=!k&&E,w=k,O=UQ(y),j=GQ(S),R=Zm(P),M=Hn({[h]:!A&&!w||I,[`${h}-custom-width`]:!I,[`${h}-custom-width-table-${R}`]:w,[`${h}-custom-width-text-${R}`]:A,[`heading-custom-text-padding-${j}`]:A,[`${h}-custom-cell-padding-${O}`]:w,"no-animation":!T}),z=t>2?Hn("container-wide"):Hn("container",{authoring:!r}),$=this.getHeadingComponent(),H=C(Array.isArray(d)?{}:d),F=fn(H,L);return(0,n.jsx)(Ie,{className:M.toString(),defaultBackgroundColor:s,children:(0,n.jsxs)("div",{className:z,"data-block-id":e,"data-block-text":"",children:[(0,n.jsx)("div",{className:Hn("row"),children:o!==""?a.slice(0,1).map((K,Q)=>(0,n.jsx)("div",{className:Hn("col"),children:(0,n.jsx)("div",{className:Hn("heading"),children:(0,n.jsx)($,{children:v(K)})})},"id"in K?K.id:Q)):null}),F.renderOrder.map((K,Q)=>{if(K==="text")return(0,n.jsx)("div",{className:Hn("row"),children:h!=="heading"?a.slice(0,t).map((J,te)=>(0,n.jsx)(u.Fragment,{children:p(J)},"id"in J?J.id:te)):null},`text-${Q}`);if(K==="audio"&&x){const J=F.renderOrder.indexOf("audio")<F.renderOrder.indexOf("text");return(0,n.jsx)("div",{className:Hn("row",{media:!0,top:J,bottom:!J,hasHeading:m==="heading paragraph"||m==="subheading paragraph"}),children:(0,n.jsx)("div",{className:Hn("col",{media:!0}),children:(0,n.jsx)(_t,{blockId:e,hasPadding:!1,index:e,item:{id:e,media:d},labels:i,lessonId:c,media:d,refs:`items:${e}`})})},`audio-${Q}`)}})]})})}},Do=Ke(cX),lX=Do,dX=e=>(0,n.jsx)(Do,{columns:2,type:"twocol",...e}),uX=e=>(0,n.jsx)(Do,{columns:3,type:"threecol",...e}),hX=e=>(0,n.jsx)(Do,{columns:4,type:"fourcol",...e}),mX=e=>(0,n.jsx)(Do,{heading:"heading",type:"heading",...e}),pX=e=>(0,n.jsx)(Do,{heading:"subheading",type:"heading",...e}),fX=e=>(0,n.jsx)(Do,{heading:"heading",...e}),gX=e=>(0,n.jsx)(Do,{heading:"subheading",...e});var Ic=f(80588);const vX=1e3,CX={fadeInGrow:"scale(0.95)",fadeInLeft:"translateX(-50px)",fadeInLeftSmall:"translateX(-25px)",fadeInRight:"translateX(50px)",fadeInUp:"translateY(25px)"},xX=e=>{const{afterAnimatedIn:t,animateIn:s="fadeIn",children:o,className:r,duration:a=1,initiallyVisible:i,siblingDelay:c=0}=e,d=Ic.useRef(null),[l,h]=Ic.useState(!1);Ic.useEffect(()=>{const p=d.current;if(i&&p){h(!0);return}if(l||!p||typeof window>"u")return;const v=$4(),C=new IntersectionObserver(([x])=>{x!=null&&(x.isIntersecting||x.intersectionRatio>0)&&(h(!0),C.unobserve(x.target))},{root:v,rootMargin:B2,threshold:0});C.observe(p);const g=setTimeout(()=>{h(x=>{if(x)return x;const L=d.current;if(!L)return x;const T=L.getBoundingClientRect(),y=v?.getBoundingClientRect(),b=y?.top??0,S=y?.bottom??window.innerHeight,N=(S-b)*.1;return T.bottom>b-N&&T.top<S+N?!0:x})},vX);return()=>{C.disconnect(),clearTimeout(g)}},[i,l]),Ic.useEffect(()=>{const p=d.current;if(!p||!t)return;const v=C=>{C.target instanceof Element&&C.target.parentElement===p&&C.propertyName==="opacity"&&t()};return p.addEventListener("transitionend",v),()=>{p.removeEventListener("transitionend",v)}},[t]),Ic.useEffect(()=>{const p=d.current;if(!p||!Array.isArray(o))return;Array.from(p.children).forEach((C,g)=>{C instanceof HTMLElement&&C.style.setProperty("--idx",String(g))})},[o]);const m={"--scroll-animation-step":`${c}s`,"--scroll-animation-duration":s==="none"?"0s":`${a}s`,"--scroll-animation-from":CX[s]??"translateY(0)"};return(0,n.jsx)("div",{className:G()("scroll-animation",r,{"scroll-animation--in":l}),ref:d,style:m,children:o})},bX=matchMedia("(prefers-reduced-motion: reduce)");function Ns(){return bX.matches}const Pe=e=>{const{afterAnimatedIn:t,animateBlockEntrance:s,animateIn:o,children:r,className:a,duration:i,initiallyVisible:c,isLearner:d,siblingDelay:l}=e;return d&&s&&!Ns()?(0,n.jsx)(xX,{afterAnimatedIn:t,animateIn:o,className:a,duration:i,initiallyVisible:c,siblingDelay:l,children:r}):Array.isArray(r)?(0,n.jsx)("div",{children:r}):r};var p9=f(80588);const yX=p9.lazy(async()=>{const[e,t]=await Promise.all([f.e("ace").then(f.t.bind(f,23248,23)),f.e("ace").then(f.bind(f,63864)),f.e("ace").then(f.t.bind(f,98263,23)),f.e("ace").then(f.t.bind(f,70746,23)),f.e("ace").then(f.t.bind(f,38094,23)),f.e("ace").then(f.t.bind(f,26374,23)),f.e("ace").then(f.t.bind(f,38094,23)),f.e("ace").then(f.t.bind(f,62001,23)),f.e("ace").then(f.t.bind(f,90862,23)),f.e("ace").then(f.t.bind(f,61955,23)),f.e("ace").then(f.t.bind(f,79893,23)),f.e("ace").then(f.t.bind(f,97647,23)),f.e("ace").then(f.t.bind(f,17303,23)),f.e("ace").then(f.t.bind(f,43110,23)),f.e("ace").then(f.t.bind(f,99326,23)),f.e("ace").then(f.t.bind(f,75181,23)),f.e("ace").then(f.t.bind(f,41497,23)),f.e("ace").then(f.t.bind(f,41600,23)),f.e("ace").then(f.t.bind(f,46131,23)),f.e("ace").then(f.t.bind(f,36360,23)),f.e("ace").then(f.t.bind(f,51039,23)),f.e("ace").then(f.t.bind(f,97002,23))]);return{default:t.default}}),LX=({classNames:e,code:t,blockId:s})=>{const[o,r]=(0,u.useState)(!1),{announcePolite:a}=qn(),i=async()=>{const c=(0,jr.htmlDecode)(t);await navigator.clipboard.writeText(c),r(!0),setTimeout(()=>r(!1),1e3),a("Copied!")};return(0,n.jsx)("div",{className:e,children:(0,n.jsx)(Me.ArcTooltip,{id:`code-snippet-copy-tooltip-${s}`,text:o?"Copied!":"Copy",children:(0,n.jsx)(Me.ArcButton,{icon:(0,n.jsx)(ie,{name:o?"check":"copy"}),layout:"icon",onClick:i,shape:"square",size:"md",variant:"tertiary"})})})};class SX extends p9.Component{renderCaptionDelegate;constructor(t){super(t),this.renderCaptionDelegate=this.renderCaption.bind(this)}renderCaption({caption:t}){return(0,n.jsx)(ot,{className:"block-text__code-caption",value:t||""})}render(){const{animateBlockEntrance:t,blockId:s,defaultBackgroundColor:o="",getL10nValue:r,initiallyVisible:a,isLearner:i,items:c,labels:d,settings:l,renderCaption:h=this.renderCaptionDelegate}=this.props,{entranceAnimation:m,language:p,paddingBottom:v,paddingTop:C,snippetBackgroundColor:g,snippetColorContrast:x,theme:L,useAdvancedEditor:T,wrapWords:y}=l,b=G()("block-text block-text--code",{"block-text--padding-top":Number(C)===2,"block-text--padding-bottom":Number(v)===2,"block-text--no-animation":!m}),S={backgroundColor:g},N=g==="#fafafa"||Xe()(g),k=x??pe.DARK;if(!N){const E=Rt({backgroundColor:g,contrast:k});Object.assign(S,{"--color-snippet-contrast":E})}return(0,n.jsx)(Ie,{className:b,defaultBackgroundColor:o,children:(0,n.jsx)(Pe,{animateBlockEntrance:t,initiallyVisible:a,isLearner:i,children:(0,n.jsx)("div",{className:"block-text__container",children:c.slice(0,1).map(E=>{const I=Lc({...E,getL10nValue:r});return(0,n.jsx)("div",{className:"block-text__row",children:(0,n.jsx)("div",{"aria-label":d?.a11yBlockCodeSnippet,className:"block-text__col",role:_a,children:(0,n.jsxs)("figure",{"aria-labelledby":I.figcaptionId,className:"block-text__figure block-text__figure--with-copy",role:"figure",children:[(0,n.jsx)(ZA,{value:E.code,children:P=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(LX,{blockId:s,classNames:"block-text__copy-button",code:P}),T?(0,n.jsx)(u.Suspense,{fallback:null,children:(0,n.jsx)(yX,{editorProps:{$blockScrolling:!0},maxLines:25,mode:p,name:String(E.id),readOnly:!0,setOptions:{enableSnippets:!1,showLineNumbers:!0,tabSize:2,fontSize:"1.6rem",useWorker:!1},theme:L,value:(0,jr.htmlDecode)(o0(P)),width:"100%",wrapEnabled:y})}):(0,n.jsx)("pre",{className:"block-text__code",dangerouslySetInnerHTML:{__html:o0(P)},dir:"ltr",style:S})]})}),E.caption&&(0,n.jsx)("figcaption",{id:I.figcaptionId,children:h(E)})]})})},E.id)})})})})}}const f9=Ke(SX);function TX({accentColor:e,backgroundType:t,blockBackgroundColor:s,noteColor:o,imageBackgroundDefault:r="#ffffff"}){return o!=null&&o!==""?o:NX({accentColor:e,backgroundType:t,blockBackgroundColor:s,imageBackgroundDefault:r})}function NX({accentColor:e,backgroundType:t,blockBackgroundColor:s,imageBackgroundDefault:o="#ffffff"}){if(t!==q.IMAGE&&s==null)return"#000000b3";switch(t){case q.IMAGE:return o;case q.LIGHT:case q.GRAY:return sn(.9,e);case q.DARK:return"#494949";case q.BLACK:return"#333333";default:{if(!s)return e;switch(fa(s)){case ct.LIGHT:return sn(.3,s);case ct.MED:return In(.2,s);case ct.DARK:case ct.NEAR_BLACK:return In(.4,s);default:return e}}}}function kX(e,t){const s=Yt(),{cardMode:o,className:r="",children:a,disabled:i=!1,tag:c="div",overrideBackground:d=!1,style:l={},...h}=e,{cardMode:m,customBackgroundColorContrast:p}=s,C=Re()?.theme,g=En(),x=o??m??Fs.WHITE,L=xs()??"#ffffff",T=x===Fs.WHITE,y=g===q.COLOR,b=g===q.ACCENT,S=C?.accentContrast,N=g===q.ACCENT||g===q.COLOR,k=S===pe.AUTO&&b||p===pe.AUTO&&y,E=g===q.COLOR?p:S,I=[r,"block-card"];if(T)I.push("bg--range-light","block-card--white");else if(i){I.push("block-card--disabled");const P=Rt({backgroundColor:L,contrast:E});k&&(l["--color-text"]=P,l["--color-text-opposite"]=P===ft.DARK?ft.LIGHT:ft.DARK)}else{I.push("block-card--transparent");const A=sA(L)??L??"#ffffff";switch(g){case q.LIGHT:case q.GRAY:I.push("bg--range-light");break;case q.IMAGE:I.push("bg--range-dark");break;case q.DARK:case q.BLACK:I.push("bg--range-dark"),l["--color-background-rgb"]=(0,Oa.A)(A)?.slice(0,3);break;default:{const O=l["--color-background"]??(d?L:A),j=Rt({backgroundColor:O,contrast:E});N&&j==ft.LIGHT&&I.push("block-card--contrast-light");const R=fa(O);I.push(`bg--range-${ga()(R.toLowerCase())}`),l["--color-background"]=O,l["--color-background-rgb"]=(0,Oa.A)(O)?.slice(0,3);break}}}return(0,n.jsx)(c,{...h,className:I.join(" "),ref:t,style:l,children:a})}const Bt=(0,u.forwardRef)(kX);var IX=f(80588);const ks=_("block-statement");class EX extends IX.Component{renderTextDelegate;constructor(t){super(t),this.renderTextDelegate=this.renderText.bind(this)}static get defaultProps(){return{items:[],type:"a",getL10nValue:()=>{}}}getEntranceAnimationType(){const{type:t}=this.props;switch(t){case"a":return"fadeIn";case"b":case"d":return"fadeInUp";case"c":return"fadeInRight";case"note":return"fadeInGrow"}}getEntranceAnimationDuration(){const{type:t}=this.props;switch(t){case"a":return 1;case"b":case"c":case"d":return .75;case"note":return .5}}renderText({blockId:t,getL10nValue:s,type:o,labels:r,lessonId:a,media:i,settings:c},{paragraph:d}){const l=o==="note",h=s(Array.isArray(i)?{}:i),m=!!h?.audio,p=fn(h,c.audioPosition,!1,"statement"),v=(0,n.jsx)("div",{className:ks("quote"),children:p.renderOrder.map((C,g)=>{if(C==="text")return(0,n.jsx)("div",{children:(0,n.jsx)(ot,{value:d})},`text-${g}`);if(C==="audio"&&m){const x=p.renderOrder.indexOf("audio")<p.renderOrder.indexOf("text");return(0,n.jsx)("div",{className:ks("audio-container",{top:x,bottom:!x}),children:(0,n.jsx)(_t,{blockId:t,hasPadding:!1,index:t,item:{media:i,id:t},labels:r,lessonId:a,media:i,mediaType:"audio",refs:`items:${t}`})},`audio-${g}`)}return null})});return l?(0,n.jsx)(MX,{getL10nValue:s,media:i,children:v}):v}render(){const{animateBlockEntrance:t,isLearner:s,items:o,renderText:r=this.renderTextDelegate,settings:a,type:i,initiallyVisible:c}=this.props,{entranceAnimation:d,divider:l=!0,dividerPadding:h=OQ(i),dividerSize:m=MQ(i),noteIcon:p=!0,noteSize:v="sm",statementWidth:C=BQ(i)}=a,g=zQ(C),x=$Q(h),L=_Q(m),T=v,y=i==="a"||i==="b"||i==="d",b=i==="note",S=ks({[i]:!0,[`${i}-custom-width-${g}`]:!0,[`${i}-divider-off`]:y&&!l,[`${i}-divider-padding-${x}`]:y&&l,[`${i}-divider-size-${L}`]:y&&l,[`note-size-${T}`]:b,[`note-size-${T}-no-icon`]:b&&!p,"no-animation":!d});return(0,n.jsx)(Ie,{className:S.toString(),children:(0,n.jsx)("div",{className:ks("wrap"),children:(0,n.jsx)("div",{className:ks("container"),children:(0,n.jsx)("div",{className:ks("row"),children:o.slice(0,1).map(N=>(0,n.jsx)(Pe,{animateBlockEntrance:t,animateIn:this.getEntranceAnimationType(),duration:this.getEntranceAnimationDuration(),initiallyVisible:c,isLearner:s,children:(0,n.jsxs)("div",{className:ks("col"),children:[(0,n.jsx)("div",{className:ks("divider-top-container"),children:(0,n.jsx)("div",{className:ks("divider-top")})}),r(this.props,N),(0,n.jsx)("div",{className:ks("divider-bottom")})]})},N.id))})})})})}}const Ec=Ke(EX),jX=Ec,wX=e=>(0,n.jsx)(Ec,{type:"b",...e}),AX=e=>(0,n.jsx)(Ec,{type:"c",...e}),RX=e=>(0,n.jsx)(Ec,{type:"d",...e}),PX=e=>(0,n.jsx)(Ec,{type:"note",...e}),MX=({children:e,getL10nValue:t,media:s})=>{const o=Yt(),{accentColor:r,cardMode:a,cornerRadius:i,courseColor:c,customBackgroundColorContrast:d,noteIcon:l=!0,noteIconColor:h}=o,m=o.noteColor,p=o.noteColorContrast,{theme:v}=Re(),C=xs(),g=En(),x=g===q.COLOR,L=g===q.ACCENT,T=v?.accentContrast,y=g===q.DARK||g===q.BLACK,b=m!=null&&m!=="",N=x||L||y||b?Fs.TRANSPARENT:a,k=b&&(p??pe.AUTO)===pe.AUTO||T===pe.AUTO&&L||d===pe.AUTO&&x,E=(0,u.useMemo)(()=>TX({accentColor:r??c,backgroundType:g,blockBackgroundColor:C,noteColor:m,imageBackgroundDefault:""}),[r,g,C,c,m]),I=b?p??pe.AUTO:g===q.COLOR?d:T,P=Rt({backgroundColor:E,contrast:I}),A={"--color-background":E,...(k||b)&&{"--color-text":P},...i&&{"--corner-radius":`${Number(i)}px`},...h&&{"--color-theme-decorative":h},...b&&{"--color-theme":m}},w=ks("note-icon",{off:!l}),j=(t?t(Array.isArray(s)?{}:s):void 0)?.image,R=j?.key&&Object.keys(j).length>0,M=R?QT(j)?mt(j.key):Ct(j):null,z=()=>l?R&&M?(0,n.jsx)("div",{"aria-hidden":!0,className:ks("note-icon__custom"),style:{WebkitMaskImage:`url('${M}')`,maskImage:`url('${M}')`}}):(0,n.jsx)(ie,{name:"circle-info"}):null;return(0,n.jsxs)(Bt,{cardMode:N,className:ks("note-card"),style:A,children:[(0,n.jsx)("div",{className:w,children:z()}),e]})};var dt=f(80588);function g9({ariaLabel:e,children:t,className:s="carousel-controls-item-btn",isActive:o,onClick:r,onKeyDown:a}){return(0,n.jsx)("li",{className:"carousel-controls-item",role:"listitem",children:(0,n.jsx)("button",{"aria-current":o,"aria-label":e,className:s,onClick:r,onKeyDown:a,tabIndex:o?0:-1,type:"button",children:t})})}function au({children:e,iconNameLeft:t="chevron-left-light",iconNameRight:s="chevron-right-light",isInfinite:o=!0,isRTL:r=!1,labelCarousel:a="Carousel",labelCarouselRoleDesc:i="Carousel",labelSlideControls:c="Slide controls",labelSlideControlsGoToNext:d="Go to next slide",labelSlideControlsGoToPrevious:l="Go to previous slide",labelSlideControlsGoToSlide:h="Go to slide",labelSlideCounterPreposition:m="of",labelSlidePreposition:p="of",labelSlideRoleDesc:v="Slide",onChange:C,ref:g,renderSlideIndicator:x,shouldMouseEmulateTouch:L=!1,shouldUseCounter:T=!1,shouldUseGoToSlide:y=!0}){const b=dt.useId(),[S,N]=dt.useState(0),k=(0,je.A)(S)??0,E=dt.useRef(null),I=dt.useRef(null),P=dt.useRef(!1),A=dt.useRef(!1),w=dt.useRef(void 0),O=dt.useRef(void 0),j=`carousel-${b}`,R=dt.Children.count(e),M=(0,je.A)(R),z=dt.useMemo(()=>Array.from({length:R}),[R]),$=R>1;dt.useImperativeHandle(g,()=>({navigateToSlide:(D,U=!0)=>{N(D);const V=E.current?.children?.[D]?.firstElementChild;U&&V?.focus()}}),[]);const H=dt.useCallback(({activeIndex:D,dir:U})=>{const V=o?D-1>=0?D-1:R-1:Math.max(0,D-1),B=o?D+1<=R-1?D+1:0:Math.min(R-1,D+1);return U==="left"?r?B:V:r?V:B},[o,r,R]),F=dt.useCallback(()=>{N(D=>H(r?{activeIndex:D,dir:"right"}:{activeIndex:D,dir:"left"}))},[H,r]),K=dt.useCallback(()=>{N(D=>H(r?{activeIndex:D,dir:"left"}:{activeIndex:D,dir:"right"}))},[H,r]),Q=dt.useCallback(D=>{const U=E.current?.children?.[D],V=E.current;if(U&&V){const B=U.getBoundingClientRect(),W=V.getBoundingClientRect(),Z=B.left+B.width/2,X=W.left+W.width/2,Y=Z-X;V.scrollBy({left:Y,behavior:"smooth"})}},[]),J=dt.useCallback(D=>{let U=!1,V=S;switch(D.key){case"ArrowLeft":U=!0,V=H({activeIndex:S,dir:"left"});break;case"ArrowRight":U=!0,V=H({activeIndex:S,dir:"right"});break;case"Home":U=!0,V=0;break;case"End":U=!0,V=R-1;break}U&&(D.stopPropagation(),D.preventDefault()),S!==V&&(E.current?.children?.[V]?.firstChild?.focus(),Q(V),N(V))},[S,H,Q,R]);dt.useEffect(()=>{k!==S&&C?.(S)},[S,C,k]),dt.useEffect(()=>{R<M&&S>R-1&&N(R-1)},[S,M,R]),dt.useEffect(()=>{const D=Y=>{Y.target.tagName==="IMG"&&Y.preventDefault(),w.current=Y.screenX},U=Y=>{const oe=window.visualViewport?.scale??1,re=window.getSelection().toString()!=="";if(!A.current&&oe<=1.01&&!re&&w.current!=null){O.current=Y.screenX;const me=O.current-w.current;Math.abs(me)>50&&(window.getSelection().empty(),P.current=!0,w.current=void 0,O.current=void 0,me<0?N(Oe=>H({activeIndex:Oe,dir:"right"})):N(Oe=>H({activeIndex:Oe,dir:"left"})))}},V=Y=>{P.current&&Y.stopPropagation(),P.current=!1,A.current=!1,w.current=void 0,O.current=void 0},B=Y=>{if(Y.touches.length>1){A.current=!0;return}Y.changedTouches.length===1&&Y.changedTouches[0]&&(w.current=Y.changedTouches[0].screenX)},W=Y=>{const oe=window.visualViewport?.scale??1,re=window.getSelection().toString()!=="";if(!A.current&&oe<=1.01&&!re&&w.current!=null&&Y.changedTouches[0]){O.current=Y.changedTouches[0].screenX;const me=O.current-w.current;Math.abs(me)>50&&(P.current=!0,w.current=void 0,O.current=void 0,me<0?N(Oe=>H({activeIndex:Oe,dir:"right"})):N(Oe=>H({activeIndex:Oe,dir:"left"})))}},Z=()=>{P.current=!1,A.current=!1,w.current=void 0,O.current=void 0},X=I.current;return L&&(X?.addEventListener("mousedown",D,{capture:!0}),X?.addEventListener("mousemove",U,{capture:!0}),X?.addEventListener("click",V,{capture:!0})),X?.addEventListener("touchstart",B,{passive:!0}),X?.addEventListener("touchmove",W,{passive:!0}),X?.addEventListener("touchend",Z,{passive:!0}),X?.addEventListener("touchcancel",Z,{passive:!0}),()=>{L&&(X?.removeEventListener("mousedown",D),X?.removeEventListener("mousemove",U),X?.removeEventListener("mouseup",Z)),X?.removeEventListener("touchstart",B),X?.removeEventListener("touchmove",W),X?.removeEventListener("touchend",Z),X?.removeEventListener("touchcancel",Z)}},[H,L,R]);const te=dt.useCallback(D=>()=>{Q(D),N(D)},[Q]);return(0,n.jsxs)("div",{"aria-label":a,"aria-roledescription":i,className:"carousel",dir:r?"rtl":void 0,role:"region",style:{"--carousel-active-index":S},children:[$&&(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("div",{"aria-label":c,className:"carousel-controls",role:"group",children:[y&&(0,n.jsx)("ul",{className:"carousel-controls-items",ref:E,role:"list",children:z.map((D,U)=>{const V=S===U,B=te(U);return x?x({index:U,isActive:V,onClick:B,onKeyDown:J}):(0,n.jsx)(g9,{ariaLabel:h+" "+(U+1),isActive:V,onClick:B,onKeyDown:J,children:(0,n.jsx)(ie,{className:"carousel-controls-item-btn-icon",name:V?"circle":"circle-solid"})},U)})}),(0,n.jsx)("button",{"aria-disabled":o?void 0:S===0,"aria-label":l,className:"carousel-controls-prev",onClick:!o&&S===0?void 0:F,type:"button",children:(0,n.jsx)(ie,{className:"carousel-controls-prev-icon",name:r?s:t})}),(0,n.jsx)("button",{"aria-disabled":o?void 0:S===R-1,"aria-label":d,className:"carousel-controls-next",onClick:!o&&S===R-1?void 0:K,type:"button",children:(0,n.jsx)(ie,{className:"carousel-controls-next-icon",name:r?t:s})}),T&&(0,n.jsxs)("div",{className:"carousel-controls-counter",children:[(0,n.jsx)("div",{className:"carousel-controls-counter-text",children:`${S+1} ${m} ${R}`}),(0,n.jsx)("div",{className:"carousel-controls-counter-line",children:(0,n.jsx)("div",{className:"carousel-controls-counter-line-runner",style:{width:`${Number(((S+1)/R).toFixed(2))*100}%`}})})]})]})}),(0,n.jsx)("div",{"aria-live":"polite",className:"carousel-slides",ref:I,children:dt.Children.map(e,(D,U)=>{const V=`${j}-${U}-counter`;return(0,n.jsxs)("div",{"aria-labelledby":V,"aria-roledescription":v,className:"carousel-slide",hidden:S!==U,inert:S!==U,role:"group",children:[(0,n.jsx)("div",{className:"visually-hidden-always",id:V,children:`${U+1} ${p} ${R}`}),D]})})})]})}var jc=f(80588);const OX="div",v9=jc.createContext(void 0);function BX({children:e,element:t,...s},o){const[r,a]=jc.useState(null);return(0,n.jsx)(v9.Provider,{value:r,children:jc.createElement(t??OX,{...s,ref:o},e,(0,n.jsx)("div",{ref:a}))})}const iu=jc.forwardRef(BX);function Bge(){return jc.useContext(v9)}function ip(e){const t=s=>{const o=m1();return(0,n.jsx)(e,{...s,isRTL:o})};return t.displayName=`withRTL(${e.displayName||e.name})`,t}const cu=({blockId:e,carouselRef:t,children:s,items:o})=>{const r=(0,u.useRef)(null),a=t??r;return(0,u.useEffect)(()=>{const i=c=>{const{path:d}=c.detail,{blockId:l,cardId:h}=Na(d,["block","card"]);if(l===e){const m=o.findIndex(p=>p.id===h);m>=0&&a.current?.navigateToSlide?.(m,!1)}};return window.addEventListener(Ge,i),()=>{window.removeEventListener(Ge,i)}},[o,e,a]),(0,n.jsx)(n.Fragment,{children:s({carouselRef:t})})},Be=_("block-quote"),wc=({avatar:e,alt:t,l10nId:s,showAvatar:o})=>o?(0,n.jsx)(Ls,{alt:lr(t),className:Be("avatar"),"data-l10n-id":s,src:e}):null,DX=({alt:e,animateBlockEntrance:t,avatar:s,children:o,l10nId:r,initiallyVisible:a,isAuthorBlank:i=!1,isLearner:c,showAvatar:d,type:l})=>{const h=Be("col",{"no-avatar":!s}),m=s?(0,n.jsx)("div",{className:Be("image"),children:(0,n.jsx)("div",{className:Be("avatar-wrap"),children:l==="c"?(0,n.jsx)(Pe,{animateBlockEntrance:t,animateIn:"fadeInLeftSmall",initiallyVisible:a,isLearner:c,children:(0,n.jsx)(wc,{alt:e,avatar:s,l10nId:r,showAvatar:d})}):(0,n.jsx)(wc,{alt:e,avatar:s,l10nId:r,showAvatar:d})})}):null;return(0,n.jsx)("div",{className:Be("container"),children:(0,n.jsx)("div",{className:Be("row"),children:(0,n.jsxs)("div",{className:h,children:[(0,n.jsx)("div",{className:Be("divider-top")}),(0,n.jsxs)("div",{className:Be("figure",{"no-author":i,"no-avatar":!i&&!d}),children:[m,o]}),(0,n.jsx)("div",{className:Be("divider-bottom")})]})})})},HX=({avatar:e,children:t,alt:s,l10nId:o,showAvatar:r})=>(0,n.jsx)("div",{className:Be("figure"),children:(0,n.jsx)("div",{className:Be("container"),children:(0,n.jsxs)("div",{className:Be("row"),children:[(0,n.jsx)("div",{className:Be("col"),children:e&&r?(0,n.jsx)(wc,{alt:s,avatar:e,l10nId:o,showAvatar:r}):null}),(0,n.jsx)("div",{className:Be("col"),children:t})]})})}),FX=({background:e,avatar:t,children:s,alt:o,l10nId:r,showAvatar:a})=>(0,n.jsx)("div",{className:Be("background"),style:{backgroundImage:e??""},children:(0,n.jsx)("div",{className:Be("container"),children:(0,n.jsx)("div",{className:Be("row"),children:(0,n.jsx)("div",{className:Be("col"),children:(0,n.jsxs)("div",{className:Be("figure"),children:[t&&a?(0,n.jsx)(wc,{alt:o,avatar:t,l10nId:r,showAvatar:a}):null,s]})})})})});class VX extends u.Component{renderTextDelegate;renderCaptionDelegate;constructor(t){super(t),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:t}=this.props;switch(t){case"a":case"b":case"background":return"fadeInUp";case"d":case"c":return"fadeInRight"}}getBackgroundImageUrl(t,s){const o=t?.alpha??DQ(s),r=Ct(t),a=HQ(s);return Sl({alpha:o,color:a,url:r})?.backgroundImage}renderText(t,{paragraph:s}){const o=s||"",r=Be("text",{blank:o===""}).toString();return(0,n.jsx)(ot,{className:r,value:o})}renderCaption(t,{name:s}){const o=Be("caption",{blank:s===""}).toString();return(0,n.jsx)(ot,{className:o,value:s})}render(){const{animateBlockEntrance:t,getL10nValue:s,initiallyVisible:o,isLearner:r,items:a,settings:i,type:c,renderText:d=this.renderTextDelegate,renderCaption:l=this.renderCaptionDelegate}=this.props,h=92,{avatarSize:m=j4(c),divider:p=!0,dividerSize:v=h,entranceAnimation:C,quoteAlignment:g="left",quoteIcon:x=!0,quotesInline:L,quotePadding:T=2,quoteWidth:y=E4(c)}=i,[b]=a,{avatar:S,background:N}=b,k=s(S?.media)?.image,E=f3(k),I=k?.alt,P=wt(S.media),A=s(N?.media)?.image,w=A?.overlayColor,O=this.getBackgroundImageUrl(A,w),j=i?.avatar??E!=="",R=E&&E!=="",M=c==="background",z=M&&w==="light",$=A4(y),H=R4(T),F=w4(c,m),K=VQ(v),Q=c==="a",J=c==="c"||M,te=c!=="b"&&!M,D=b?.name==="",U=b?.paragraph==="",V=Be(null,{[c]:!0,[`${c}-custom-width-${$}`]:!0,[`${c}-divider-off`]:Q&&!p,[`${c}-divider-size-${K}`]:Q&&p,[`${c}-quote-padding-${H}`]:!0,[`${c}-align-${g}`]:M,[`${c}-${$}-no-avatar`]:!E||!j,[`${c}-avatar-size-${F}`]:j&&R,[`${c}-quote-icon-off`]:J&&!x,[`${c}-legacy-quote-mark`]:te&&!L,[`${c}-overlay-legacy`]:!w,[`${c}-overlay-light`]:z,"no-animation":!C}).toString(),B=(0,n.jsx)("div",{className:Be("wrap",{blank:D||U}),children:(0,n.jsx)(Pe,{animateBlockEntrance:t,animateIn:this.getQuoteEntranceAnimationType(),initiallyVisible:o,isLearner:r,siblingDelay:.15,children:(0,n.jsxs)("figure",{children:[(0,n.jsx)("blockquote",{children:d(this.props,b)}),(0,n.jsx)("figcaption",{children:l(this.props,b)})]})})});let W;switch(c){case"d":W=(0,n.jsx)(HX,{alt:I,avatar:E,initiallyVisible:o,l10nId:P,showAvatar:j,type:c,children:B});break;case"background":W=(0,n.jsx)(FX,{alt:I,avatar:E,background:O,initiallyVisible:o,l10nId:P,showAvatar:j,type:c,children:B});break;default:W=(0,n.jsx)(DX,{alt:I,animateBlockEntrance:t,avatar:E,initiallyVisible:o,isAuthorBlank:D,isLearner:r,l10nId:P,showAvatar:j,type:c,children:B})}return(0,n.jsx)(Ie,{className:V,children:W})}}const Ac=Ke(VX),cp=(e=>(0,n.jsx)(Ac,{...e}));(Object.getOwnPropertyDescriptor(cp,"name")||{}).writable||Object.defineProperty(cp,"name",{value:"default",configurable:!0});const zX=e=>(0,n.jsx)(Ac,{type:"b",...e}),$X=e=>(0,n.jsx)(Ac,{type:"c",...e}),_X=e=>(0,n.jsx)(Ac,{type:"d",...e}),UX=e=>(0,n.jsx)(Ac,{type:"background",...e});class GX extends u.Component{static get defaultProps(){return{type:"carousel",items:[],onStep:Function.prototype,getL10nValue:()=>{}}}handleChangeCarousel=t=>{this.props.onStep?.(this.props.items[t])};renderText=(t,{paragraph:s})=>{const o=s||"",r=Be("text",{blank:s===""}).toString();return(0,n.jsx)(ot,{className:r,value:o})};renderCaption=(t,{name:s})=>{const o=Be("caption",{blank:s===""}).toString();return(0,n.jsx)(ot,{className:o,value:s})};render(){const{blockId:t,animateBlockEntrance:s,editable:o,getL10nValue:r,initiallyVisible:a=!1,isRTL:i,isLearner:c,isLessonBlocksList:d=!1,items:l,labels:h,previewType:m,settings:p,renderText:v=this.renderText,renderCaption:C=this.renderCaption,type:g}=this.props,{avatar:x=!0,avatarSize:L=j4(g),entranceAnimation:T,quotesInline:y,quotePadding:b=2,quoteWidth:S=E4(g),showBorder:N=!0}=p,E=g!=="b"&&!(g==="background"),I=A4(S),P=R4(b),A=w4(g,L),w=m==="mobile-portrait"||m==="mobile-landscape",O=Be({[g]:!0,[`${g}-custom-width-${I}`]:!0,[`${g}-quote-padding-${P}`]:!0,[`${g}-${I}-no-avatar`]:!x,[`${g}-avatar-size-${A}`]:x,[`${g}-legacy-quote-mark`]:!d&&E&&!y,"no-animation":!T,"hide-border":!N,editable:o}).toString(),j=l.map(R=>{const M=r(R?.avatar?.media)?.image,z=M?.alt,$=f3(M),H=x??$!=="",F="l10nId"in R.avatar.media?R.avatar.media.l10nId:void 0;return(0,n.jsx)("div",{className:Be("slide"),children:(0,n.jsxs)("figure",{className:Be("figure"),children:[$&&x?(0,n.jsx)(wc,{alt:z,avatar:$,l10nId:F,showAvatar:H}):null,(0,n.jsx)("blockquote",{children:v(this.props,R)}),(0,n.jsx)("figcaption",{children:C(this.props,R)})]})},R.id)});return(0,n.jsx)("div",{className:Be("slider-container"),children:(0,n.jsx)(Ie,{className:O,children:(0,n.jsx)(iu,{className:Be("wrap"),children:(0,n.jsx)("div",{className:Be("container"),children:(0,n.jsx)("div",{className:Be("col"),children:(0,n.jsx)(Bt,{className:Be("box"),children:(0,n.jsx)(Pe,{animateBlockEntrance:s,animateIn:"fadeInUp",initiallyVisible:a,isLearner:c,children:(0,n.jsx)(cu,{blockId:t,items:l,children:({carouselRef:R})=>(0,n.jsx)(au,{isRTL:i,labelCarousel:h?.a11yBlockQuoteCarousel,labelCarouselRoleDesc:h?.a11yBlockQuoteCarouselRoleDescription,labelSlideControls:h?.a11yBlockQuoteCarouselSlideControls,labelSlideControlsGoToNext:h?.a11yBlockQuoteCarouselSlideControlsGoToNext,labelSlideControlsGoToPrevious:h?.a11yBlockQuoteCarouselSlideControlsGoToPrevious,labelSlideControlsGoToSlide:h?.a11yBlockQuoteCarouselSlideControlsGoToSlide,labelSlideCounterPreposition:h?.blocksPreposition,labelSlidePreposition:h?.a11yBlockQuoteCarouselSlidePreposition,labelSlideRoleDesc:h?.a11yBlockQuoteCarouselSlideRoleDescription,onChange:this.handleChangeCarousel,ref:R,shouldMouseEmulateTouch:w,children:j})})})})})})})})})}}const WX=ip(Ke(GX));var C9=f(80588);const Ks=_("block-list"),KX=class extends C9.Component{static get defaultProps(){return{editable:!1,items:[],onStep:Function.prototype,type:"numbered",getL10nValue:()=>{}}}nextNumber(e){const{items:t}=this.props,o=t.length>0?t[e].number:null;let r;return!isNaN(o)&&o!==""&&(r=parseInt(o,10)+1),(r<1||r>99)&&(r=null),r}render(){const{animateBlockEntrance:e,blockId:t,defaultBackgroundColor:s,editable:o,getL10nValue:r,initiallyVisible:a,isLearner:i,items:c,labels:d,lessonId:l,media:h,onStep:m,settings:p,type:v}=this.props,{audioPosition:C,bulletPadding:g,entranceAnimation:x,listItemColor:L,listItemColorContrast:T,listWidth:y}=p,b=r(Array.isArray(h)?{}:h),S=fn(b,C),N=FQ(g),k=Zm(y),E=Ks({[v]:!0,[`${v}-custom-width-${k}`]:!0,[`${v}-bullet-padding-${N}`]:!0,"no-animation":!x}),I=v==="numbered"?"ol":"ul";return(0,n.jsx)(Ie,{className:E.toString(),defaultBackgroundColor:s,children:(0,n.jsx)("div",{className:Ks("container"),children:(0,n.jsx)("div",{className:Ks("row"),children:(0,n.jsx)(iu,{className:Ks("col"),children:(0,n.jsx)("div",{className:"blocks-list__container",children:S.renderOrder.map((P,A)=>{if(P==="text")return(0,n.jsx)("div",{children:(0,n.jsx)(I,{className:Ks("list"),role:"list",children:(0,n.jsx)(Pe,{animateBlockEntrance:e,animateIn:"fadeInRight",className:Ks("animated-item").toString(),initiallyVisible:a,isLearner:i,siblingDelay:.25,children:c.map((w,O)=>{const j={key:w.id,index:O,lessonId:l,blockId:t,type:v,editable:o,nextNumber:this.nextNumber.bind(this),onStep:m,listItemColor:L,listItemColorContrast:T,...w};return this.props.renderItem?this.props.renderItem(j):(0,u.createElement)(QX,{...j,key:j.key})})})})},`text-${A}`);if(P==="audio")return(0,n.jsx)("div",{className:G()("block-list__media",{"audio-on-top":S.renderOrder[0]==="audio","audio-on-bottom":S.renderOrder[0]!=="audio"}),children:(0,n.jsx)(_t,{blockId:t,hasPadding:!1,index:t,item:{media:h,id:t},labels:d,lessonId:l,media:h,refs:`items:${t}`})},`${P}-${A}`)})})})})})})}};class QX extends C9.Component{renderTextDelegate;animateRef=null;static get defaultProps(){return{className:""}}constructor(t){super(t),this.renderTextDelegate=this.renderText.bind(this)}renderText(t){return(0,n.jsx)(ot,{...t})}handleChangeCheckbox=()=>{this.props.onStep(this.props)};render(){const{type:t,id:s,index:o,number:r,paragraph:a,editable:i,className:c,renderText:d=this.renderTextDelegate,style:l,listItemColor:h,listItemColorContrast:m}=this.props,p={allowTabNavigation:!0,className:"block-list__content brand--linkColor cursorAuto",editable:i,id:s,value:a};return(0,n.jsxs)("li",{className:G()("block-list__item",`block-list__item--${t}`,c),ref:v=>{this.animateRef=v},role:"listitem",style:l,children:[t==="numbered"&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:Ks("number"),style:h?{backgroundColor:h,color:Rt({contrast:m||pe.AUTO,backgroundColor:h})}:void 0,children:r||o+1}),d(p)]}),t==="bulleted"&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"visually-hidden-always",children:"\u2022"}),(0,n.jsx)(ie,{className:Ks("bullet"),name:"circle-solid",style:h?{color:h}:void 0}),d(p)]}),t==="checkboxes"&&(0,n.jsxs)("label",{className:Ks("option"),children:[(0,n.jsx)("input",{className:Ks("checkbox-input"),onChange:this.handleChangeCheckbox,type:"checkbox"}),(0,n.jsx)("div",{className:Ks("checkbox"),style:h?{borderColor:h,"--color-background":h}:void 0,children:(0,n.jsx)(ie,{className:Ks("checkbox__icon"),name:"check",style:h?{color:Rt({contrast:m||pe.AUTO,backgroundColor:h})}:void 0})}),d(p)]})]})}}const ZX=Ke(KX),lp=e=>(0,n.jsx)(ZX,{...e}),YX=lp,XX=e=>(0,n.jsx)(lp,{type:"checkboxes",...e}),JX=e=>(0,n.jsx)(lp,{type:"bulleted",...e});var dp=f(80588);const up=e=>["hero","full","aside"].includes(e);class qX extends dp.Component{renderCaptionDelegate;constructor(t){super(t),this.renderCaptionDelegate=this.renderCaption.bind(this)}static get defaultProps(){return{type:"hero",editable:!1,getL10nValue:()=>{},lessonId:"",blockId:"",items:[]}}renderCaption(t,s){return(0,n.jsx)(ot,{className:"block-image__caption",value:s})}render(){const{aiMagicIcon:t,aiOverlay:s,animateBlockEntrance:o,blockId:r,defaultBackgroundColor:a,editable:i,getL10nValue:c,initiallyVisible:d,isLearner:l,items:h,type:m,labels:p,lessonId:v,settings:C,renderCaption:g=this.renderCaptionDelegate}=this.props,{entranceAnimation:x,cornerRadius:L,zoomOnClick:T}=C,y=G()(`block-image block-image--${m}`,"block-image--flag-dimensions",{"block-image--no-animation":!x}),b=h[0],{id:S,caption:N}=b,{image:k,audio:E}=c(b.media)??{},I=k?.alt,P=Ct(k),A=k?.dimensions,w=A?.width||A?.originalWidth,O=A?.height||A?.originalHeight,j=Lc({caption:N,editable:i,id:S,getL10nValue:c}),R=!l&&!P,M=w&&O?w/O:void 0,z=k?.link?c(k.link.destination):void 0,$=k?.link&&typeof z=="string"?{type:k.link.type,destination:z}:void 0,H=G()("block-image__image",{"block-image__image--audio-overlay":!!E});return(0,n.jsx)(Ie,{className:y,defaultBackgroundColor:a,children:(0,n.jsx)("div",{className:"block-image__container",children:(0,n.jsx)("div",{className:"block-image__row",children:(0,n.jsx)("div",{className:"block-image__col",children:(0,n.jsx)(Pe,{animateBlockEntrance:o,initiallyVisible:d,isLearner:l,children:(0,n.jsxs)(j.tagName,{"aria-labelledby":j.figcaptionId,className:"block-image__figure",role:j.role,children:[(0,n.jsxs)("div",{className:H,children:[R?(0,n.jsxs)("div",{className:"block-image__waiting",style:{aspectRatio:M},children:[(0,n.jsx)("div",{children:t}),(0,n.jsx)("div",{className:"block-image__waiting-text",children:"Waiting for image\u2026"})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(Ga,{alt:I,cornerRadius:L,disableZoom:!T,height:O,l10nId:wt(b.media),labels:p,link:$,maxHeight:m==="full"?380:900,src:P,width:w}),E&&up(m)&&(0,n.jsx)(_t,{blockId:r,cornerRadius:L,index:`${r}-${S}-0`,isOverlayAudio:!0,item:b,labels:p,lessonId:v,media:b.media,mediaType:"audio"})]}),s&&(0,n.jsx)("div",{className:"block-image__ai-overlay",children:s})]}),(i||N)&&(0,n.jsx)("figcaption",{id:j.figcaptionId,children:g(S,N)})]})})})})})})}}const eJ=Ke(qX),tJ=(e,t,s,o,r)=>t?r:(0,n.jsx)(Pe,{animateBlockEntrance:e,initiallyVisible:s,isLearner:o,children:r});class sJ extends dp.Component{renderCaptionDelegate;renderParagraphDelegate;constructor(t){super(t),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(t,s){return(0,n.jsx)(ot,{className:"block-image__text",value:s})}renderCaption(t,s){return(0,n.jsx)(ot,{className:"block-image__caption",value:s})}renderImage(t,s,o,r){const{blockId:a,editable:i,lessonId:c,renderCaption:d=this.renderCaptionDelegate,getL10nValue:l}=this.props,h=l(o.media),m=h?.image,p=h?.audio,v=m?.alt,C=Ct(m),g=m?.dimensions,x=g?.width||g?.originalWidth,L=g?.height||g?.originalHeight,T=Lc({caption:s,editable:i,id:t,getL10nValue:l}),{animateBlockEntrance:y,initiallyVisible:b,isLearner:S,labels:N,settings:{cornerRadius:k,zoomOnClick:E}}=this.props,I=G()("block-image__image",{"block-image__image--audio-overlay":!!p}),P=m?.link?l(m.link.destination):void 0,A=m?.link&&typeof P=="string"?{type:m.link.type,destination:P}:void 0;return(0,n.jsx)(Pe,{animateBlockEntrance:y,animateIn:r==="right"?"fadeInRight":"fadeInLeft",initiallyVisible:b,isLearner:S,children:(0,n.jsxs)(T.tagName,{"aria-labelledby":T.figcaptionId,className:"block-image__figure",role:T.role,children:[(0,n.jsxs)("div",{className:I,children:[(0,n.jsx)(Ga,{alt:v,cornerRadius:k,disableZoom:!E,height:L,l10nId:wt(o?.media),labels:N,link:A,maxHeight:900,src:C,width:x}),p&&up("aside")&&(0,n.jsx)(_t,{blockId:a,cornerRadius:k,index:`${a}-${t}-0`,isOverlayAudio:!0,item:o,labels:N,lessonId:c,media:o.media,mediaType:"audio"})]}),(i||s)&&(0,n.jsx)("figcaption",{id:T.figcaptionId,children:d(t,s)})]})})}render(){const{defaultBackgroundColor:t,items:s,renderParagraph:o=this.renderParagraphDelegate,settings:r,type:a}=this.props,{entranceAnimation:i,imagePosition:c,imageSize:d}=r,l=c==="right",h=G()(`block-image block-image--${a}`,{"block-image--small":d==="small","block-image--large":d==="large","block-image--reverse":l,"block-image--no-animation":!i}),m=s[0],{id:p,caption:v}=m,C="paragraph"in m?m.paragraph:void 0;return(0,n.jsx)(Ie,{className:h,defaultBackgroundColor:t,children:(0,n.jsx)("div",{className:"block-image__container",children:(0,n.jsxs)("div",{className:"block-image__row",children:[(0,n.jsx)("div",{className:"block-image__col",children:l?o(p,C):this.renderImage(p,v,m,"left")}),(0,n.jsx)("div",{className:"block-image__col",children:l?this.renderImage(p,v,m,"right"):o(p,C)})]})})})}}const nJ=Ke(sJ);class oJ extends dp.Component{renderCaptionDelegate;renderOverlayDelegate;constructor(t){super(t),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(t,s){return(0,n.jsx)(ot,{className:"block-image__caption",value:s})}renderOverlay(t,s){return(0,n.jsx)(ot,{className:"block-image__paragraph",value:s})}renderOverlayCaption(t,s){const{animateBlockEntrance:o,initiallyVisible:r,isLearner:a,renderOverlay:i=this.renderOverlayDelegate}=this.props;return(0,n.jsx)("div",{className:"block-image__container",children:(0,n.jsx)("div",{className:"block-image__row",children:(0,n.jsx)("div",{className:"block-image__col",children:(0,n.jsx)(Pe,{animateBlockEntrance:o,animateIn:"fadeInUp",duration:1,initiallyVisible:r,isLearner:a,children:i(t,s)})})})})}render(){const{animateBlockEntrance:t,blockId:s,defaultBackgroundColor:o,editable:r,getL10nValue:a,initiallyVisible:i,isLearner:c,items:d,labels:l,lessonId:h,settings:m,type:p,renderCaption:v=this.renderCaptionDelegate}=this.props,{entranceAnimation:C,opacity:g,opacityColor:x}=m,L=D1(m?.backgroundColor,o),T=G()(`block-image block-image--${p}`,"block-image--flag-dimensions",{"block-image--no-animation":!C,"block-image--dark":ym(L)}),y={opacity:g||.6,backgroundColor:x||"transparent"},b=d[0],{id:S,caption:N}=b,k=a(b.media),E=k?.image,I=k?.audio,P=E?.key,A=Ct(E),w=E?.dimensions,O=w?.width||w?.originalWidth,j=w?.height||w?.originalHeight,R=lr(E?.alt),M=p==="overlay",z=Lc({caption:N,editable:r,id:S,isOverlayType:M,getL10nValue:a});return(0,n.jsxs)(Ie,{"aria-labelledby":z.figcaptionId,className:T,defaultBackgroundColor:o,role:z.role,tag:z.tagName,children:[tJ(t,M,i,c,(0,n.jsxs)("div",{className:"block-image__figure",children:[P&&(0,n.jsxs)("div",{className:"block-image__image","data-l10n-id":wt(b?.media),style:{backgroundImage:`url('${A}')`},children:[(0,n.jsx)(Ls,{alt:R,height:j,src:A,width:O}),(0,n.jsx)("div",{className:"block-image__overlay",style:y}),I&&up(p)&&(0,n.jsx)(_t,{blockId:s,index:`${s}-${S}-0`,isOverlayAudio:!0,item:b,labels:l,lessonId:h,media:b.media,mediaType:"audio"})]}),M?this.renderOverlayCaption(S,N):null]})),!M&&(r||N)&&(0,n.jsx)("figcaption",{className:"block-image__container",id:z.figcaptionId,children:v(S,N)})]})}}const hp=Ke(oJ),rJ=e=>(0,n.jsx)(hp,{type:"overlay",...e}),aJ=e=>(0,n.jsx)(hp,{type:"banner",...e});var iJ=f(80588);function x9(e){class t extends iJ.Component{static displayName=`withGalleryCaption(${e.displayName||e.name})`;renderCaptionDelegate;constructor(o){super(o),this.renderCaptionDelegate=this.renderCaption.bind(this)}renderCaption(o,r,a=!0){return(0,n.jsx)(ot,{allowTabNavigation:a,className:"block-gallery__caption",value:r})}render(){const{renderCaption:o=this.renderCaptionDelegate}=this.props;return(0,n.jsx)(e,{...this.props,renderCaption:o})}}return t}var lu=f(80588);const b9=_("block-gallery-carousel");function cJ({blockId:e,animateBlockEntrance:t,defaultBackgroundColor:s,editable:o,initiallyVisible:r,isLearner:a,labels:i,lessonId:c,items:d,onStep:l,previewType:h,renderCaption:m,settings:p}){d||=[];const[v,C]=lu.useState(0),g=lu.useCallback(y=>{C(y),l?.(d[y])},[d,l]),x=h===rr.MOBILE_PORTRAIT||h===rr.MOBILE_LANDSCAPE,L=b9({noAnimation:!p?.entranceAnimation||Ns()}).toString(),T=m1();return(0,n.jsx)(Ie,{className:L,defaultBackgroundColor:s,children:(0,n.jsx)(Pe,{animateBlockEntrance:t,initiallyVisible:r,isLearner:a,children:(0,n.jsx)(iu,{className:b9("container").toString(),children:(0,n.jsx)(cu,{blockId:e,items:d,children:({carouselRef:y})=>(0,n.jsx)(au,{isRTL:T,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:g,ref:y,shouldMouseEmulateTouch:x,children:d.map((b,S)=>(0,n.jsx)(dJ,{activeIndex:v,blockId:e,editable:o,index:S,item:b,labels:i,lessonId:c,renderCaption:m,settings:p},b.id))})})})})})}const lJ=x9(cJ),mp=_("block-gallery-carousel-item");function dJ({activeIndex:e,blockId:t,editable:s,index:o,item:r,labels:a,lessonId:i,renderCaption:c,settings:d}){const[l,h]=lu.useState(!1),{image:m,audio:p}=Te(r.media),v=Te(m?.link?.destination),C=m?.dimensions,g=lu.useCallback(()=>{h(!0)},[]);return(0,n.jsxs)("figure",{className:mp(),children:[s&&!l&&(0,n.jsx)("div",{className:mp("loading"),children:"Loading image..."}),(0,n.jsxs)("div",{className:mp("image-container",{"audio-overlay":!!p}),children:[(0,n.jsx)(Ga,{alt:m?.alt,cornerRadius:d?.cornerRadius,disableZoom:!d?.zoomOnClick,height:C?.height||C?.originalHeight,l10nId:wt(r?.media),labels:a,link:m?.link&&typeof v=="string"?{type:m.link.type,destination:v}:void 0,maxHeight:900,onLoad:g,src:Ct(m),width:C?.width||C?.originalWidth}),p&&(0,n.jsx)(_t,{blockId:t,cornerRadius:d?.cornerRadius,index:`${t}-${r.id}-${o}`,isOverlayAudio:!0,item:r,labels:a,lessonId:i,media:r.media,mediaType:"audio",shouldPause:e!==o})]}),(s||r.caption)&&l&&(0,n.jsx)("figcaption",{children:c(r.id,r.caption)})]})}const uJ=({alt:e,cornerRadius:t,disableZoom:s,height:o,l10nId:r,labels:a,link:i,src:c,width:d})=>(0,n.jsx)("div",{className:"block-gallery__image",children:(0,n.jsx)(Ga,{alt:e,cornerRadius:t,disableZoom:s,height:o,l10nId:r,labels:a,link:i,maxHeight:900,src:c,width:d})}),hJ=e=>{switch(e){case 3:return"threecol";case 4:return"fourcol";default:return"twocol"}};function mJ(e){return(0,n.jsx)(lJ,{...e})}class pJ extends u.Component{static get defaultProps(){return{blockId:"",getL10nValue:()=>{},items:[],lessonId:"",width:2}}render(){const{animateBlockEntrance:t,defaultBackgroundColor:s,editable:o,getL10nValue:r,initiallyVisible:a,isLearner:i,items:c,labels:d,renderCaption:l,settings:h,width:m}=this.props,{entranceAnimation:p,cornerRadius:v,zoomOnClick:C}=h,g=G()(`block-gallery block-gallery--${hJ(m)}`,{"block-gallery--no-animation":!p||Ns()});return(0,n.jsx)(Ie,{className:g,defaultBackgroundColor:s,children:(0,n.jsx)("div",{className:"block-gallery__container",children:(0,n.jsx)("div",{className:"block-gallery__row",children:(0,n.jsx)(Pe,{animateBlockEntrance:t,initiallyVisible:a,isLearner:i,siblingDelay:.25,children:c.map(x=>{const{id:L}=x,T=x.caption,y=r(x.media)?.image,b=y?.alt,S=y?.key,N=y?.dimensions,k=N?.width||N?.originalWidth,E=N?.height||N?.originalHeight,I=Ct(y),P=r(y?.link?.destination),A=Lc({caption:T,editable:o,id:L,getL10nValue:this.props.getL10nValue});return(0,n.jsx)("div",{className:"block-gallery__col",children:(0,n.jsxs)(A.tagName,{"aria-labelledby":A.figcaptionId,className:"block-gallery__figure",role:A.role,children:[S&&(0,n.jsx)(uJ,{alt:b,cornerRadius:v,disableZoom:!C,height:E,l10nId:wt(x?.media),labels:d,link:y?.link&&typeof P=="string"?{type:y.link.type,destination:P}:void 0,src:I,width:k}),(o||T)&&(0,n.jsx)("figcaption",{id:A.figcaptionId,children:l(L,T)})]})},L)})})})})})}}const pp=x9(Ke(pJ)),fp=_("block-divider"),gp=({isLearner:e,labels:{numberedDividerGroup:t},number:s,settings:o,type:r="divider"})=>{const{entranceAnimation:a}=o,i=r==="numbered",d=fp({authoring:!e,spacing:r==="spacing",numbered:i,"no-animation":!a}).toString(),l=i?(0,n.jsxs)("div",{className:fp("wrap__number"),children:[(0,n.jsx)("span",{className:"visually-hidden-always",children:t}),s]}):null;return(0,n.jsx)(Ie,{className:d,children:(0,n.jsx)("div",{className:fp("wrap",{authoring:!e&&!i}),children:l})})},fJ=gp,gJ=e=>(0,n.jsx)(gp,{type:"numbered",...e}),vJ=e=>(0,n.jsx)(gp,{type:"spacing",...e});var CJ=f(4797),xJ=f.n(CJ),bJ=f(56766),y9=f.n(bJ),yJ=f(90755),du=f.n(yJ),LJ=f(85692),uu=f.n(LJ),hu=f(80588);const SJ=30,L9=H1("blockSettings");class TJ extends hu.Component{static defaultProps={blockId:"",blockSettings:{},editable:!1,items:[],lessonId:"",onStep:()=>{}};render(){const{animateBlockEntrance:t,blockId:s,editable:o,initiallyVisible:r,isLearner:a,items:i,labels:c,lessonId:d,onStep:l,settings:h,enableVideoPlaybackSpeed:m}=this.props,{entranceAnimation:p,accordionBehavior:v="keepOpen"}=h,C=G()("blocks-accordion",{"blocks-accordion--no-animation":!p});return(0,n.jsx)(Ie,{className:C,"data-block-id":s,children:(0,n.jsx)(Pe,{animateBlockEntrance:t,duration:.75,initiallyVisible:r,isLearner:a,children:(0,n.jsx)("div",{className:"blocks-accordion__container",children:(0,n.jsx)("div",{className:"blocks-accordion__row",children:(0,n.jsx)("div",{className:"blocks-accordion__col",children:(0,n.jsx)(AJ,{blockId:s,editable:o,enableVideoPlaybackSpeed:m,items:i,keepOpen:v==="keepOpen",labels:c,lessonId:d,onStep:l,settings:h})})})})})})}}const NJ={isOpen:!1,isActive:!1},kJ=e=>(t,{id:s})=>Object.assign({},t,{[s]:e[s]||NJ}),S9=(e,t)=>t.reduce(kJ(e),{}),IJ=(e,t)=>(s,o)=>{const r=e==o,a=r?!s.isOpen:s.isOpen,i=r&&!s.isOpen;return{isOpen:t?a:i,isActive:r}},EJ=e=>(t,s)=>{const o=s==e;return{isOpen:o,isActive:o}},jJ=e=>(t,s)=>({isOpen:s==e,isActive:t.isActive});class wJ extends hu.Component{static defaultProps={blockId:"",blockSettings:{},editable:!1,items:[],keepOpen:!1,lessonId:"",onStep:()=>{}};constructor(t){super(t);const{items:s}=this.props;this.state={itemStatusMap:S9({},s)},this.handleNavtoTab=this.handleNavtoTab.bind(this)}componentDidMount(){window.addEventListener(Ge,this.handleNavtoTab)}componentWillUnmount(){window.removeEventListener(Ge,this.handleNavtoTab)}handleNavtoTab(t){const s=t.detail.path[t.detail.path.indexOf("items")+1]?.id,o=t.detail.path[t.detail.path.lastIndexOf("items")+1]?.id;if(s===this.props.blockId){const r=this.props.items.findIndex(({id:h})=>h===o),{items:a,onStep:i}=this.props,{itemStatusMap:c}=this.state,d=a[r].id,l=EJ(d);this.setState({itemStatusMap:ms()(l,c)}),open&&i(a[r])}}UNSAFE_componentWillReceiveProps(t){const s=t.items,o=Zt()(s)!==Zt()(this.props.items);!t.keepOpen&&this.props.keepOpen?this.updateMapForOneAtATimePreference():o&&this.rebuildItemStatusMap(s)}updateMapForOneAtATimePreference(){const{itemStatusMap:t}=this.state,{items:s}=this.props,o=xJ()(a=>t[a.id].isOpen,s);if(!o)return;const r=jJ(o.id);this.setState({itemStatusMap:ms()(r,t)})}rebuildItemStatusMap(t){const s=this.state.itemStatusMap;this.setState({itemStatusMap:S9(s,t)})}handleItemClick(t){const{items:s,keepOpen:o,onStep:r}=this.props,{itemStatusMap:a}=this.state,i=s[t].id,c=IJ(i,o);this.setState({itemStatusMap:ms()(c,a)}),open&&r(s[t])}render(){const{items:t,settings:s,editable:o,labels:r,lessonId:a,blockId:i,enableVideoPlaybackSpeed:c}=this.props,{itemStatusMap:d}=this.state,{zoomOnClick:l}=s,h=Object.values(d)?.find(m=>m.isOpen)?"open":"closed";return(0,n.jsx)("div",{className:"blocks-accordion__wrapper","data-accordion-status":h,children:t.map((m,p)=>(0,n.jsx)(PJ,{blockId:i,disableZoom:!l,editable:o,focused:d[m.id].isActive,index:p,item:{...m,enableVideoPlaybackSpeed:c},labels:r,lessonId:a,onClick:this.handleItemClick.bind(this,p),open:d[m.id].isOpen},m.id))})}}const AJ=L9(wJ);class RJ extends hu.Component{static get defaultProps(){return{editable:!1,getL10nValue:()=>{},onClick:()=>{},lessonId:"",blockId:"",open:null}}id;content;constructor(t){super(t),this.id=du()(),this.toggle=this.toggle.bind(this),this.renderDescription=this.renderDescription.bind(this),this.renderTitle=this.renderTitle.bind(this)}componentDidUpdate(t){if(!this.props.open)return;const s=this.content;if(s&&(s.classList.add("blocks-accordion__content--visible"),!t.open&&this.props.open)){const o=s.parentElement,r=o?.getBoundingClientRect()?.top,a=r!=null&&r>0&&r<window.innerHeight,i=Ns()?"instant":"smooth";a||o.scrollIntoView({behavior:i,block:"start"})}}toggle(t){const{blockId:s,index:o}=this.props,r=de.playerId,a=new RegExp(`-${o}(?:-.+)?$`);open&&r&&r.includes(s.toString())&&a.test(r)&&de.pause(),this.props.onClick(),t.preventDefault()}renderTitle(t){const{title:s}=this.props.item;return(0,n.jsx)(be,{className:"blocks-accordion__title",id:t,value:s})}renderDescription(t){const{description:s=""}=this.props.item;return(0,n.jsx)(ot,{className:"blocks-accordion__description",value:s||""},t)}render(){const{blockId:t,blockSettings:s,editable:o,disableZoom:r,getL10nValue:a,index:i,item:c,focused:d,labels:l,lessonId:h,open:m,renderDescription:p=this.renderDescription,renderTitle:v=this.renderTitle}=this.props,{settings:C={},enableVideoPlaybackSpeed:g}=c,x=a(c.media)??{},L=fn(x,s.audioPosition),T=Object.assign({},C,{disableZoom:r,fullEmbed:!0}),y=s?.backgroundType===q.ACCENT||s?.backgroundType===q.IMAGE,b=G()("blocks-accordion__item",{"blocks-accordion__item--closed":!m}),S=G()("blocks-accordion__header",{"blocks-accordion__header--editing":o,"brand--border":m&&d&&!y}),N=G()("blocks-accordion__content",{"blocks-accordion__content--will-enter":m,"brand--border":m&&d&&!y}),k=`title-${this.id}`,E=`panel-${this.id}`,I=s?.headingLevel,P=I?`h${I}`:"h2";let A=(0,n.jsxs)("button",{"aria-controls":E,"aria-expanded":m,className:S,onClick:this.toggle,onKeyDown:!o&&r5(this.toggle)||void 0,type:"button",children:[v(k),(0,n.jsx)("span",{className:"blocks-accordion__toggler-wrap",children:(0,n.jsx)(ie,{className:"blocks-accordion__toggler",name:m?"minus":"plus"})})]});return o&&(A=(0,n.jsxs)("div",{className:S,children:[v(k),(0,n.jsx)("button",{"aria-controls":E,"aria-expanded":m,"aria-label":m?"Close":"Open",className:"blocks-accordion__toggler-wrap",onClick:this.toggle,type:"button",children:(0,n.jsx)(ie,{className:"blocks-accordion__toggler",name:m?"minus":"plus"})})]})),(0,n.jsxs)(Bt,{className:b,tag:"section",children:[(0,n.jsx)("div",{className:"blocks-accordion__header-wrap",children:(0,n.jsx)(P,{children:A})}),(0,n.jsx)("section",{"aria-labelledby":k,className:N,id:E,ref:w=>{this.content=w},children:L.renderOrder.map((w,O)=>{if(w==="text")return p(`text-${O}`);const j={blockId:t,hasPadding:!1,imageMaxHeight:1e3,item:c,labels:l,lessonId:h,enableVideoPlaybackSpeed:g,opts:T,shouldPause:!m},R=vp(x),M=R==="image-with-audio",z=M?"left":"center",H={audio:{media:L.audioOnlyMedia||x,isOverlayAudio:!1,index:`${t}-${i}-audio`,className:"blocks-accordion__audio"},image:{media:L.imageOnlyMedia||x,isOverlayAudio:!1,index:`${t}-${i}-image`,className:G()(`blocks-accordion__${R}`,{[`blocks-accordion__${R}--${z}`]:M})},video:{media:L.videoOnlyMedia||x,isOverlayAudio:!1,index:`${t}-${i}-video`,className:G()(`blocks-accordion__${R}`,{[`blocks-accordion__${R}--${z}`]:M})},embed:{media:L.embedOnlyMedia||x,isOverlayAudio:!1,index:`${t}-${i}-embed`,className:G()(`blocks-accordion__${R}`,{[`blocks-accordion__${R}--${z}`]:M})},overlay:{media:x,isOverlayAudio:!0,index:`${t}-${i}-overlay`,className:G()(`blocks-accordion__${R}`,{[`blocks-accordion__${R}--${z}`]:M})}}[w];if(!H)return null;const{className:F,...K}=H;return(0,n.jsx)("div",{className:G()(F,{"audio-on-top":this.props.blockSettings.audioPosition==="top"}),children:(0,n.jsx)("div",{className:"blocks-accordion__figure",children:(0,n.jsx)(_t,{...j,...K})})},`${w}-${O}`)})})]})}getMediaContainerClasses(t,s){const o=this.props.getL10nValue(this.props.item.media)??{},r=vp(o),a=r==="image-with-audio",i=a&&!Array.isArray(o)?o?.image?.align:"left";return G()("blocks-accordion__media",`blocks-accordion__${r}`,{[`blocks-accordion__${r}--${i}`]:a,"blocks-accordion__media-container":t,"blocks-accordion__media-container--audio-overlay":s})}}const PJ=L9(Ke(e=>(0,n.jsx)(RJ,{...e}))),vp=e=>{const{image:t,embed:s,video:o,audio:r}=e;return t&&!r?"image":s&&!r?"embed":o?"video":r&&!t&&!s?"audio":t&&r?"image-with-audio":r&&s?"audio-and-embed":"image"};class MJ extends hu.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(t){super(t),this.renderDescription=this.renderDescription.bind(this);const s=this.props.activeIndex;this.state={activeIndex:s,activeTouch:!1,activeMouse:!1},this.tabs=[],this.id=du()(),this.handleNavtoTab=this.handleNavtoTab.bind(this)}componentDidMount(){this.handleControls(),window.addEventListener("resize",this.tabResize=uu()(this.handleControls.bind(this),100)),window.addEventListener(Ge,this.handleNavtoTab),this.tabsHeaderEl?.addEventListener("scroll",this.tabScroll=uu()(this.handleControls.bind(this),50))}handleNavtoTab(t){const s=t.detail.path[t.detail.path.indexOf("items")+1]?.id,o=t.detail.path[t.detail.path.lastIndexOf("items")+1]?.id;s===this.props.blockId&&(this.tabsHeaderEl.scrollIntoView({behavior:"smooth",block:"start"}),this.setState({activeIndex:this.props.items.findIndex(({id:r})=>r===o)},()=>{Jm(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(Ge,this.handleNavtoTab)}setActive(t){this.setState({activeIndex:t});const{blockId:s}=this.props,o=de.playerId;this.state.activeIndex!=t&&o&&o.includes(s.toString())&&de.pause(),this.props.onStep?.(this.props.items[t])}handleControls(){const{isRTL:t}=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)*(t?-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(t){const{isRTL:s}=this.props,o=this.tabsHeaderEl.offsetWidth,r=this.tabsHeaderEl.scrollLeft,i=(t==="next"?s?y9():_m():s?_m():y9())(r,o*.8);this.tabsHeaderEl.scrollTo({left:i,behavior:"smooth"})}arrowPrevInset(t){const s=this.arrowPrevEl.getBoundingClientRect(),o=s.right-t,r=s.left-t;return o+r}focusTab(t){t.currentTarget?.scrollIntoView({behavior:"smooth",block:"nearest"})}handleTabKeyDown(t,s){const{isRTL:o}=this.props;let r=!1,a;so(s)?(r=!0,a=o?t+1>this.tabs.length-1?0:t+1:t-1>=0?t-1:this.tabs.length-1):no(s)&&(r=!0,a=o?t-1>=0?t-1:this.tabs.length-1:t+1>this.tabs.length-1?0:t+1),r&&s.preventDefault(),a!=null&&(this.tabs[a]?.focus(),this.setActive(a))}renderHeader(t,s){const{activeIndex:o,activeTouch:r,activeMouse:a}=this.state,i=this.tabsHeaderEl&&this.tabsHeaderEl.scrollWidth>this.tabsHeaderEl.clientWidth,c=G()("blocks-tabs__header-wrap",{touch:r,mouse:a&&i});return(0,n.jsxs)("div",{className:c,onMouseEnter:this.handleMouseEnter.bind(this),onMouseLeave:this.handleMouseLeave.bind(this),onTouchStart:this.handleTouchStart.bind(this),children:[(0,n.jsx)("div",{className:"blocks-tabs__header",ref:d=>{this.tabsHeaderEl=d},role:TZ,children:t.map(({title:d},l)=>{const h=t.length===1||l===o,m=t.length>1&&l+1===o,p=t.length>1&&l-1===o,v=G()("blocks-tabs__header-item",{"brand--color":h&&!s,"blocks-tabs__header-item--active":h,"blocks-tabs__header-item--before-active":m,"blocks-tabs__header-item--after-active":p}),C=`tab-${this.id}-${l}`,g=`tabpanel-${this.id}-${l}`;return(0,n.jsx)("button",{"aria-controls":g,"aria-selected":h,className:v,id:C,onClick:this.setActive.bind(this,l),onFocus:this.focusTab.bind(this),onKeyDown:this.handleTabKeyDown.bind(this,l),ref:x=>{this.tabs[l]=x},role:kZ,tabIndex:h?void 0:-1,type:"button",children:(0,n.jsx)(be,{value:d})},C)})}),(0,n.jsxs)("div",{className:"blocks-tabs__controls",ref:d=>{this.tabControls=d},children:[(0,n.jsx)("div",{"aria-hidden":"true",className:"blocks-tabs__arrow blocks-tabs__arrow--prev brand--background",onClick:this.scrollTabs.bind(this,"previous"),ref:d=>{this.arrowPrevEl=d},children:(0,n.jsx)(ie,{className:"blocks-tabs__arrow-icon",name:"chevron-right-solid"})}),(0,n.jsx)("div",{"aria-hidden":"true",className:"blocks-tabs__arrow blocks-tabs__arrow--next brand--background",onClick:this.scrollTabs.bind(this,"next"),ref:d=>{this.arrowNextEl=d},children:(0,n.jsx)(ie,{className:"blocks-tabs__arrow-icon blocks-tabs__arrow-icon--next",name:"chevron-right-solid"})})]})]})}renderDescription({description:t}){return(0,n.jsx)(ot,{className:"blocks-tabs__description",value:t})}renderItem(t,s,o){const{blockId:r,getL10nValue:a,labels:i,lessonId:c,renderDescription:d=this.renderDescription}=this.props,{activeIndex:l}=this.state,h=l===s,{settings:m={},enableVideoPlaybackSpeed:p}=t,v=a(t.media)??{},C=fn(v,this.props.settings.audioPosition,!1),g=G()("blocks-tabs__content-item",{"blocks-tabs__content-item--active":h}),x=Object.assign({},m,{disableZoom:o,fullEmbed:!0}),L=`tabpanel-${this.id}-${s}`,T=`tab-${this.id}-${s}`,y=vp(v),b=y==="image-with-audio",S=y==="audio-and-embed",N=b?v?.image?.align:"left",k=S?"embed-border":void 0;return(0,n.jsx)("div",{"aria-labelledby":T,className:g,id:L,role:NZ,tabIndex:h?0:void 0,children:C.renderOrder.map((E,I)=>{if(E==="text")return(0,n.jsx)("div",{className:"blocks-tabs__description",children:d(t)},`text-${I}`);const P={blockId:r,embedClass:k,hasPadding:!1,imageMaxHeight:1e3,item:t,labels:i,lessonId:c,enableVideoPlaybackSpeed:p,opts:x,shouldPause:!h},w={audio:{media:C.audioOnlyMedia||v,isOverlayAudio:!1,index:`${r}-${s}-audio`,className:"blocks-tabs__audio"},image:{media:C.imageOnlyMedia||v,isOverlayAudio:!1,index:`${r}-${s}-image`,className:G()(`blocks-tabs__${y}`,{[`blocks-tabs__${y}--${N}`]:b})},video:{media:C.videoOnlyMedia||v,isOverlayAudio:!1,index:`${r}-${s}-video`,className:G()(`blocks-tabs__${y}`,{[`blocks-tabs__${y}--${N}`]:b})},embed:{media:C.embedOnlyMedia||v,isOverlayAudio:!1,index:`${r}-${s}-embed`,className:G()(`blocks-tabs__${y}`,{[`blocks-tabs__${y}--${N}`]:b})},overlay:{media:v,isOverlayAudio:!0,index:`${r}-${s}-overlay`,className:G()(`blocks-tabs__${y}`,{[`blocks-tabs__${y}--${N}`]:b})}}[E];if(!w)return null;const{className:O,...j}=w;return(0,n.jsx)("div",{className:G()(O,{"audio-on-top":this.props.settings.audioPosition==="top"}),children:(0,n.jsx)("div",{className:"blocks-tabs__figure",children:(0,n.jsx)(_t,{...P,...j})})},`${E}-${I}`)})},L)}render(){const{animateBlockEntrance:t,initiallyVisible:s,isLearner:o,items:r,settings:a,enableVideoPlaybackSpeed:i}=this.props,{backgroundType:c,cardMode:d,entranceAnimation:l,zoomOnClick:h}=a,m=G()("blocks-tabs",{"blocks-tabs--no-animation":!l}),p=r.length>0?r.slice(0,SJ):[],v=d===Fs.TRANSPARENT&&(c===q.ACCENT||c===q.IMAGE),C=G()("blocks-tabs__container",{"blocks-tabs--single":p.length===1});return(0,n.jsx)(Ie,{className:m,children:(0,n.jsx)(Pe,{animateBlockEntrance:t,initiallyVisible:s,isLearner:o,children:(0,n.jsx)("div",{className:C,children:(0,n.jsx)("div",{className:"blocks-tabs__row",children:(0,n.jsx)("div",{className:"blocks-tabs__col",children:(0,n.jsx)("div",{className:"blocks-tabs__wrapper",ref:g=>{this.container=g},children:(0,n.jsxs)(Bt,{children:[this.renderHeader(p,v),(0,n.jsx)("div",{className:"blocks-tabs__content",children:p.map((g,x)=>this.renderItem({...g,enableVideoPlaybackSpeed:i},x,!h))})]})})})})})})})}}const OJ=ip(Ke(e=>(0,n.jsx)(MJ,{...e}))),BJ=De()(null,["payload","result"]),DJ=e=>{if(e.meta?.thumbnail)return`${e.contentPrefix}/${e.meta.thumbnail}`},HJ=e=>e.meta?.version,T9=e=>e.src??null,FJ=e=>e.processing,VJ=Vt()(["payload","result","completion"]),zJ=De()(!1,["payload","result","score"]),$J=ud()((e,t)=>{if(!t)return!1;const{majorLimit:s,minorLimit:o}=e,[r,a]=t.split("."),i=parseInt(r)===s&&Number(a)>=o;return Number(r)>s||i}),_J={mobile:"?forcemobile=1&devicepreview=1&phone=1&rise=true",tablet:"?forcemobile=1&devicepreview=1&rise=true"},UJ=e=>{const t=as()(e.split("-"));return _J[t]},GJ=$J({majorLimit:3,minorLimit:13}),WJ=(e,t,s,o)=>{const r=t&&UJ(s),a=r?`${e}${r}`:`${e}?rise=true`;if(o){const i=a.includes("?")?"&":"?";return`${a}${i}locale=${o}`}return a};var KJ=f(80588);class QJ extends KJ.Component{constructor(t){super(t),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:t,items:s,onStep:o}=this.props,r=as()(s),a=t(r?.media)?.storyline??{},i=HJ(a);GJ(i)||o(r)}canFullscreen(t){const{blockId:s,hasManySlBlocks:o}=this.props,{windowName:r}=t;return s===r||!o()}handleMessages(t){const{data:s}=t,{type:o}=s,r={"fullscreen:enter":this.handleFullscreenEnter,"fullscreen:exit":this.handleFullscreenExit,"course:update":this.handleCourseUpdate}[o];r&&r(s)}handleCourseUpdate(t){const{items:s,onFinishStoryline:o,onStep:r,blockId:a}=this.props,i=as()(s),{windowName:c}=t;if(a===c&&VJ(t)){const{score:d,success:l}=BJ(t);if(zJ(t)){const h=d.scaled*100;o?.(a,l,!0,h)}else o?.(a,!0,!1);r(i)}}handleFullscreenEnter(t){const{menuOpen:s,handleStorylineFullscreen:o}=this.props;this.canFullscreen(t)&&(s&&o(!0),this.setState({fullscreen:!0,reopenMenu:s}))}handleFullscreenExit(t){const{handleStorylineFullscreen:s}=this.props,{reopenMenu:o}=this.state;this.canFullscreen(t)&&(o&&s(!1),this.setState({fullscreen:!1,reopenMenu:!1}))}render(){const{animateBlockEntrance:t,getL10nValue:s,initiallyVisible:o,isLesson:r,isLearner:a,isOnlyBlockInStep:i,items:c,labels:{a11yBlockStoryline:d},settings:l,takingSnapshot:h}=this.props,m=as()(c),p=s(m?.media)?.storyline??{},{mediaWidth:v="0"}=l,C=i?{}:{display:r&&!T9(p)?"none":"block"},g=G()("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":h});return(0,n.jsx)(Ie,{className:"blocks-storyline",style:C,children:(0,n.jsx)(Pe,{animateBlockEntrance:t,initiallyVisible:o,isLearner:a,children:(0,n.jsx)("div",{"aria-label":d,className:g,role:"group",children:h?this.renderThumbnail(p):this.renderStorylineBlock(p)})})})}renderStorylineBlock(t){return FJ(t)?this.renderProcessing():T9(t)?this.renderItem(t):this.renderEmpty()}renderThumbnail(t){const s=DJ(t),o=`${ye("CDN_USER_CONTENT_URI")}/${s}`;return(0,n.jsx)("img",{alt:"Thumbnail",src:o})}renderEmpty(){const{renderEmpty:t}=this.props;return typeof t=="function"?t():null}renderItem(t){const{fullscreen:s}=this.state,{blockId:o,currentLocale:r,isLesson:a,previewType:i,settings:c}=this.props,{cornerRadius:d}=c,{src:l,meta:h,title:m}=t,{player:p}=h,v=WJ(l,a,i,r),g={paddingBottom:`${p.height/p.width*100}%`,...d!=null&&{"--corner-radius":`${Number(d)}px`}},x=G()("blocks-storyline__item__iframe",{"blocks-storyline__item__iframe--fullscreen":s});return(0,n.jsx)("div",{className:"blocks-storyline__item",style:g,children:(0,n.jsx)("iframe",{allowFullScreen:!0,allowtransparency:"true",className:x,loading:"lazy",name:o.toString(),ref:L=>{this.iframe=L},src:mt(v),title:m})})}renderProcessing(){const{renderProcessing:t}=this.props;return typeof t=="function"?t():null}}const ZJ=OE(Ke(QJ));var YJ=f(80252),Cp=f.n(YJ);const N9=":focus{outline: none}",XJ=":focus:not(:focus-visible){outline: none}",k9="focus-ring-style",xp=()=>document.getElementById(k9)||JJ(),JJ=()=>{const e=document.createElement("style");return e.id=k9,document.head.appendChild(e),e},bp=0,mu=-1,qJ=e=>{const t=xp();document.addEventListener("mousedown",()=>{setTimeout(()=>{t.innerHTML=N9},0),e?.(!1)}),window.addEventListener("keydown",s=>{eq(s,e)})},eq=(e,t)=>{const s=e.target,o=xp();(hd(e)||Ji(e)&&!s.classList.contains("ignore-prefers"))&&(o.innerHTML="",t?.(!0))},I9=({focusVisible:e}={})=>xp().innerHTML=e?XJ:N9,tq=e=>e?bp:mu,E9=({list:e,index:t})=>{t>=0&&t<Zt()(e)&&e[t].focus()},sq=({list:e,currentIndex:t})=>{const s=ia()(t||0),o=s<Zt()(e)?s:0;return E9({list:e,index:o}),o},nq=({list:e,currentIndex:t})=>{const s=Cp()(t||Zt()(e));return E9({list:e,index:s}),s};var j9=f(80588);const pu=_("blocks-button"),w9=lN,oq=({description:e})=>(0,n.jsx)(be,{className:pu("description"),value:e}),rq=({color:e,destination:t,editBlock:s,handleNavigate:o,isEditable:r,label:a,type:i})=>{const c=s3(),d=Re()?.externalLinksDisabled,l=Re()?.theme,h=Ii(),{mode:m}=(0,Ce.g)(),p=Yt(),v=gs(),C=Te(t),g=(0,jr.htmlDecode)(yn(Te(a))),x=i==="email",L=i==="exit-course",T=i==="lesson",y=i==="relative-url",b=pu("button"),S=!e||e===""||e===h,N=e??h,k={},E=n3(h),I=S&&l?.accentContrast===pe.AUTO?pe.AUTO:E,P=p?.buttonColorContrast??I,A=p?.buttonRadius??null,w=p?.buttonWidth??null,O=Rt({backgroundColor:N,contrast:P});Object.assign(k,{...!S&&{"--color-button-bg":N},...!S&&{"--color-button-text":O},...!S&&{"--color-button-border":"transparent"},...A!=null&&{"--radius-button":`${Number(A)}px`},...w!=null&&{"--width-button":`${Number(w)}rem`}});const j=d&&zs(C),{handleMouseEnter:R,handleMouseLeave:M,handleFocus:z,handleBlur:$}=gd(),H=j9.useId(),F=(0,u.useCallback)(()=>{if(r)s();else{if(j)return;if(L)return Hf()}},[s,j,r,L]),K=(0,u.useCallback)(()=>{o(C)},[C,o]);if(r||j||L){const Q=(0,n.jsx)("button",{"aria-label":g,className:b,id:j?H:void 0,onBlur:j?()=>$(H):void 0,onClick:F,onFocus:j?()=>z(H):void 0,onKeyDown:r5(F),onMouseEnter:j?()=>R(H):void 0,onMouseLeave:j?()=>M(H):void 0,style:k,tabIndex:bp,type:"button",children:g});return j?(0,n.jsxs)(n.Fragment,{children:[Q,(0,n.jsx)(vd,{anchorId:H})]}):Q}else if(T){const Q=m?`/${m}`:"",J=`/lessons/${C}${Q}`,te=C===""?"#":J;return(0,n.jsx)(is,{"aria-label":g,className:b,onClick:K,style:k,to:te,children:g})}else{const Q=y?C:Ts(C),J=x?`mailto:${C}?subject=${c}`:Q,te=oo.isIphoneSafari?"_top":"_self",D=x?te:"_blank",U=D==="_blank",V=U?"noopener noreferrer nofollow":void 0,B=v?.a11yNoticeLinkNewTab||"(opens in a new tab)",W=U?`${g} ${B}`:g;return(0,n.jsx)("a",{"aria-label":W,className:b,href:J,rel:V,style:k,tabIndex:bp,target:D,children:g})}},A9=e=>{const{animateBlockEntrance:t,editable:s,editBlock:o=()=>{},handleNavigate:r,initiallyVisible:a,isLearner:i,items:c=[],renderDescription:d=oq,settings:l}=e,{buttonAlignment:h=kg,buttonColor:m,buttonShowDescription:p=!0,buttonStack:v,entranceAnimation:C}=l,g=pu(null,{"no-animation":!C,description:p==!0,center:h==="center",left:h==="left",right:h==="right",rounded:w9==="rounded"}),x=c?.map(({id:L,description:T,...y})=>{const b=(0,n.jsx)(rq,{...y,color:m,editBlock:o,handleNavigate:r,isEditable:s}),S=p&&d({id:L,description:T});return(0,n.jsx)("section",{className:pu("container"),children:h==="left"&&p?(0,n.jsxs)(n.Fragment,{children:[b,S]}):(0,n.jsxs)(n.Fragment,{children:[S,b]})},L)})??null;if(v){const{paddingBottom:L,paddingTop:T}=l,y={...T!=null&&{paddingTop:`${Number(T)}rem`},...L!=null&&{paddingBottom:`${Number(L)}rem`}};return(0,n.jsx)("div",{className:g.toString(),style:y,children:x})}return(0,n.jsx)(Ie,{className:g.toString(),children:(0,n.jsx)(Pe,{animateBlockEntrance:t,animateIn:"fadeIn",initiallyVisible:a,isLearner:i,children:(0,n.jsx)("div",{className:"blocks-button",children:x})})})},aq=A9;class iq extends j9.Component{renderButtonDelegate;constructor(t){super(t),this.renderButtonDelegate=this.renderButton.bind(this)}static get defaultProps(){return{items:[],lessonId:"",blockId:"",editBlock:()=>{}}}renderButton(t,s){const{blockId:o,editable:r,editBlock:a,handleNavigate:i,isLearner:c,lessonId:d,initiallyVisible:l}=this.props;return(0,n.jsx)(A9,{animateBlockEntrance:!1,blockId:o,editable:r,editBlock:a,handleNavigate:i,initiallyVisible:l,isLearner:c,items:[t],lessonId:d,settings:s,type:"right"})}render(){const{animateBlockEntrance:t,initiallyVisible:s,isLearner:o,items:r,settings:a,renderButton:i=this.renderButtonDelegate}=this.props,{entranceAnimation:c,buttonShowDescription:d=!0,buttonAlignment:l=kg,buttonSpacing:h=3}=a,m=G()("blocks-buttonstack",{"blocks-buttonstack--no-animation":!c,"blocks-button--description":d==!0,"blocks-button--center":l==="center","blocks-button--left":l==="left","blocks-button--right":l==="right","blocks-button--rounded":w9==="rounded"});return(0,n.jsx)(Ie,{className:m,children:(0,n.jsx)(Pe,{animateBlockEntrance:t,initiallyVisible:s,isLearner:o,children:r.map((p,v)=>{const C=v===0,g={buttonColor:a.buttonColor||this.props.color,buttonStyle:a.buttonStyle,buttonStack:!0,buttonShowDescription:d,buttonAlignment:l,...C?{}:{paddingTop:h}};return(0,n.jsx)(u.Fragment,{children:i(p,g)},p.id)})})})}}var cq=f(55817),lq=f.n(cq);const fu=_("block-video");function dq({item:e}){const t=vs(),{media:s}=e,o=t(s)??{},{customVideo:r={},tmp:a={},video:i={}}=o,c="poster"in i?i:{...i,...r},d=a.video&&"poster"in a.video?a.video:void 0,{poster:l}=ui()?c:d||c,h=l?mt(l):void 0;return(0,n.jsxs)("div",{className:fu("poster-container"),children:[(0,n.jsx)(Ls,{alt:"Video Poster",className:fu("poster"),src:h}),(0,n.jsx)("div",{className:fu("play-overlay"),children:(0,n.jsxs)("svg",{className:fu("play-icon"),fill:"currentColor",height:"80",viewBox:"0 0 24 24",width:"80",children:[(0,n.jsx)("circle",{cx:"12",cy:"12",fill:"rgba(0,0,0,0.6)",r:"12"}),(0,n.jsx)("polygon",{fill:"white",points:"10,8 10,16 16,12"})]})})]})}const R9=_("block-video");function uq({mediaWidth:e}){const t=R9("item",{small:e==="0",medium:e==="1",full:e==="2"});return(0,n.jsx)("div",{className:t,children:(0,n.jsx)("div",{className:R9("placeholder")})})}const hq=en()("partner-content-block-card__"),P9=e=>{const{backgroundColor:t,blockId:s,partnerContent:o}=e,r=Re(),{id:a,tenantId:i}=r??{},{data:c,type:d}=o,{authors:l,bookImage:h,bookTitle:m,buyLink:p,internalId:v,nbicLink:C}=c,g={blockId:s,courseId:a,partnerContentId:v,tenantId:i,contentSubtype:d};return(0,n.jsxs)("section",{children:[(0,n.jsx)("h2",{className:"visually-hidden",children:"More Info"}),(0,n.jsxs)("ol",{className:"partner-content-block-card",role:"list",children:[(0,n.jsx)("li",{role:"listitem",children:(0,n.jsx)(cC,{authors:l,backgroundColor:t,block:!0,bookImage:h,bookTitle:m,buyLink:p,trackingInfo:g})}),(0,n.jsx)("li",{role:"listitem",children:(0,n.jsx)("div",{className:hq("divider")})}),(0,n.jsx)("li",{role:"listitem",children:(0,n.jsx)(lC,{backgroundColor:t,block:!0,link:C,trackingInfo:g})})]})]})};var mq=f(80588);const yp=_("block-video");function pq({audioVideoPlayhead:e,backgroundColor:t,blockId:s,blockPartnerContent:o,blockPartnerContentExists:r,captions:a,cornerRadius:i,currentLocale:c,dataL10nId:d,enableVideoPlaybackSpeed:l,forwardSeekRestricted:h,id:m,isLoaded:p,item:v,lessonId:C,loadMedia:g,media:x,mediaWidth:L,onLoad:T,onProgressChanged:y,poster:b,recordMediaPlayheadPosition:S,renderCaption:N,subtitle:k,type:E,videoKey:I,videoSrc:P}){const A=yp("item",{small:L==="0",medium:L==="1",full:L==="2"}),w=mq.useCallback(O=>{const j=yp("caption",{visible:p}).toString();return(0,n.jsx)(ot,{className:j,value:O.caption})},[p]);return(0,n.jsxs)("div",{className:A,children:[(0,n.jsxs)("figure",{"data-l10n-id":d,children:[g&&(0,n.jsx)(op,{audioVideoPlayhead:e,canAdjustPlaybackSpeed:l,canRestrictSeek:h,captions:a,cornerRadius:i,id:`${C}-${s}-${m}-${c}`,media:x,onLoad:T,poster:b,progressChanged:y,recordMediaPlayheadPosition:S,src:P,subtitle:k,type:I?"video":E},`${C}-${s}-${m}-${c}-${b||""}`),p&&(0,n.jsx)("figcaption",{className:yp("wrapper"),children:(N??w)(v)})]}),r&&(0,n.jsx)(P9,{backgroundColor:t,blockId:s,partnerContent:o})]})}const Lp=e=>e.toString().padStart(2,"0");function M9(e){const t=Math.floor(e),s=Math.floor(t/3600),o=Math.floor(t%3600/60),r=t%60;return s>0?`${s}:${Lp(o)}:${Lp(r)}`:`${o}:${Lp(r)}`}function zge(e=[]){return e.map(({time:t,title:s})=>`${M9(t)} ${s}`).join(`
`)}const fq=e=>{const[t,s,o]=e.split(":").reverse();return parseInt(t,10)+parseInt(s,10)*60+parseInt(o||"0",10)*3600},gq=/^(\d*:)?\d{1,2}:\d{2}$/,$ge=(e,t)=>{const s=e.split(`
`).filter(r=>r.trim()!==""),o=[];for(const r of s){const[a,...i]=r.split(" ");if(!gq.test(a))throw new Error("Chapters must use the format M:SS or H:MM:SS. Chapters will not display.");o.push({time:fq(a),title:i.join(" ")})}if(o.length>0&&o[0].time!==0)throw new Error("Chapters must start at 0:00. Chapters will not display.");for(let r=1;r<o.length;r++)if(o[r].time<=o[r-1].time)throw new Error("Chapters are out of order. Chapters will not display.");if(t!=null){for(const r of o)if(r.time>=t)throw new Error("Timestamps must be within the video duration. Chapters will not display.");for(let r=0;r<o.length;r++)if((r<o.length-1?o[r+1].time:t)-o[r].time<10)throw new Error("Chapters must be at least 10 seconds long. Chapters will not display.")}return o},Is=_("video-chapters-panel");function O9({activeIndex:e,chapters:t,onSeek:s}){const o=(0,u.useRef)(null),r=(0,u.useCallback)(a=>{const i=Number(a.currentTarget.dataset.time);Number.isNaN(i)||s?.(i)},[s]);return(0,u.useEffect)(()=>{o.current&&o.current.scrollIntoView({behavior:"smooth",block:"nearest"})},[e]),t.length===0?(0,n.jsxs)("div",{className:Is("empty-state"),children:[(0,n.jsx)("i",{className:`fa-regular fa-clapperboard ${Is("empty-state-icon")}`}),(0,n.jsx)("p",{className:Is("empty-state-title"),children:"No chapters yet"}),(0,n.jsx)("p",{className:Is("empty-state-body"),children:"Add timestamps in the block settings to organize your video."})]}):(0,n.jsx)("div",{className:Is(),children:(0,n.jsx)("ul",{className:Is("list"),role:"list",children:t.map((a,i)=>(0,n.jsx)("li",{ref:i===e?o:void 0,children:(0,n.jsxs)("button",{"aria-current":i===e?"true":void 0,className:Is("item",{active:i===e}),"data-chapter-button":!0,"data-time":a.time,onClick:r,type:"button",children:[(0,n.jsxs)("span",{className:Is("thumbnail"),children:[(a.thumbnailStatus==null||a.thumbnailStatus==="done")&&a.thumbnail&&(0,n.jsx)("img",{alt:"",className:Is("thumbnail-img"),src:a.thumbnail}),a.thumbnailStatus==="processing"&&(0,n.jsx)("span",{"aria-hidden":"true",children:(0,n.jsx)(hF,{className:Is("thumbnail-spinner"),height:30,width:30})}),(0,n.jsx)("span",{className:Is("timestamp"),children:M9(a.time)})]}),(0,n.jsx)("span",{className:Is("info"),children:(0,n.jsx)("span",{className:Is("title"),children:a.title})})]})},a.time))})})}const vq={allowedTags:["b","i","u","c","ruby","rt","v","lang"],allowedAttributes:{c:["class"],v:["title"],lang:["lang"],ruby:[],rt:[]},disallowedTagsMode:"escape",allowedSchemes:[]};function Cq(e){return e.replace(/<c\.([^>]+)>/g,'<c class="$1">').replace(/<\/c\.[^>]*>/g,"</c>").replace(/<v\s+([^>]+)>/g,'<v title="$1">').replace(/<script[^>]*>(.*?)<\/script>/gi,"<!--SCRIPT_START-->$1<!--SCRIPT_END-->").replace(/<iframe[^>]*>(.*?)<\/iframe>/gi,"<!--IFRAME_START-->$1<!--IFRAME_END-->")}function xq(e){return e.replace(/<!--SCRIPT_START-->(.*?)<!--SCRIPT_END-->/g,"$1").replace(/<!--IFRAME_START-->(.*?)<!--IFRAME_END-->/g,"$1").replace(/&quot;/g,'"').replace(/&#x27;/g,"'").replace(/&amp;/g,"&")}function ds(e,t={}){if(!e)return"";let s;if(t.allowVTTTags!==!1){const o=Cq(e),r=n0()(o,vq);s=xq(r)}else s=n0()(e,{allowedTags:[],allowedAttributes:{}});return t.preserveWhitespace||(s=s.replace(/\s+/g," ").trim()),s}function Rc(){return typeof window<"u"?window.crypto.randomUUID():`cue_${Date.now()}_${Math.random().toString(36).substring(2,9)}`}function bq(e){return e.map(t=>({...t,stableId:t.stableId||Rc()}))}function Ho(e){return e?/^(\d{2}:)?\d{2}:\d{2}\.\d{3}\s*-->\s*(\d{2}:)?\d{2}:\d{2}\.\d{3}/.test(e):!1}function B9(e){let t=e.match(/^(\d{2}):(\d{2}):(\d{2})\.(\d{3})$/);if(t){const[,s,o,r,a]=t;return parseInt(s)*36e5+parseInt(o)*6e4+parseInt(r)*1e3+parseInt(a)}if(t=e.match(/^(\d{2}):(\d{2})\.(\d{3})$/),t){const[,s,o,r]=t;return parseInt(s)*6e4+parseInt(o)*1e3+parseInt(r)}throw new Error(`Invalid timestamp format: ${e}`)}function yq(e,t=!1){const s=Math.round(e),o=Math.floor(s/36e5),r=Math.floor(s%36e5/6e4),a=Math.floor(s%6e4/1e3),i=s%1e3;if(t){const c=a.toString().padStart(2,"0");if(o>0){const d=r.toString().padStart(2,"0");return`${o}:${d}:${c}`}else return`${r}:${c}`}return`${o.toString().padStart(2,"0")}:${r.toString().padStart(2,"0")}:${a.toString().padStart(2,"0")}.${i.toString().padStart(3,"0")}`}function D9(e){const t={};if(!e)return t;const s=e.match(/\S+/g)||[];for(const o of s){const r=o.indexOf(":");if(r>0){const a=ds(o.substring(0,r),{allowVTTTags:!1}),i=ds(o.substring(r+1),{allowVTTTags:!1});t[a]=i}}return t}function Lq(e){const t=e.match(/^<v\s+/);if(t){let a=0,i=-1;for(let c=t[0].length;c<e.length;c++)if(e[c]==="<")a++;else if(e[c]===">")if(a===0){i=c;break}else a--;if(i!==-1){const c=e.substring(t[0].length,i).trim(),d=e.substring(i+1).trim();return{speaker:ds(c,{allowVTTTags:!1}),text:d}}}const s=e.match(/^<v>\s*(.*)$/s);if(s)return{text:s[1]};const o=e.match(/^\[([^\]]+)\]:\s*(.*)$/s);if(o)return{speaker:ds(o[1].trim(),{allowVTTTags:!1}),text:o[2]};const r=e.match(/^([^:\n]+):\s*(.*)$/s);if(r&&r[1].length<50){const a=r[1].trim();if(!(/^\d+(\s+\w+)*\s+at\s+\d+$/.test(a)||/^\d{1,2}$/.test(a)||/\d+:\d+/.test(a)||/\bat\s+\d/.test(a)||/\bfrom\s+\d/.test(a)||/\bto\s+\d/.test(a)||/\d+\s*(AM|PM|am|pm)/.test(a)))return{speaker:ds(a,{allowVTTTags:!1}),text:r[2]}}return{text:e}}function Sp(e){return ds(e,{preserveWhitespace:!1,allowVTTTags:!0})}function Sq(e){const t=ds(e.substring(6).trim(),{allowVTTTags:!1}),s=D9(t);return{id:s.id,width:s.width,lines:s.lines,regionanchor:s.regionanchor,viewportanchor:s.viewportanchor,scroll:s.scroll,...s}}function Tq(e){const t=[...new Set(e.map(s=>s.speaker).filter(Boolean))];return{cueCount:e.length,speakerCount:t.length,speakers:t,lastModified:new Date}}function*Nq(e){const t=e.cues,s=e.totalDuration;for(let o=0;o<t.length;o++){const r=t[o],a=o>0?t[o-1]:void 0,i=o<t.length-1?t[o+1]:void 0,c=a?Math.max(0,r.startTimeMs-a.endTimeMs):r.startTimeMs,d=i?Math.max(0,i.startTimeMs-r.endTimeMs):Math.max(0,s-r.endTimeMs),l=s>0?r.startTimeMs/s*100:0,h=s>0?r.endTimeMs/s*100:0,m=h-l;yield{cue:r,index:o,isFirst:o===0,isLast:o===t.length-1,previousCue:a,nextCue:i,gapBefore:c,gapAfter:d,relativeStartPercent:l,relativeEndPercent:h,relativeWidthPercent:m}}}function _ge(e){return Array.from(Nq(e))}function kq(e,t,s,o,r,a,i,c){const d=[],l=/<v\s+([^>]+)>([^<]*)<\/v>/g;let h,m=0;for(;(h=l.exec(e))!==null;){const[g,x,L]=h,T={stableId:Rc(),startTime:t,endTime:s,startTimeMs:o,endTimeMs:r,duration:a,text:Sp(L.trim()),settings:i,index:0,speaker:ds(x.trim(),{allowVTTTags:!1})};c&&(T.id=c),i.position&&(T.position=i.position),i.align&&(T.align=i.align),i.line&&(T.line=i.line),i.size&&(T.size=i.size),i.vertical&&(T.vertical=i.vertical),i.region&&(T.region=i.region),d.push(T),m=h.index+g.length}const p=/<v\s+([^>]+)>([^<]*)$/,C=e.substring(m).match(p);if(C){const[,g,x]=C,L={stableId:Rc(),startTime:t,endTime:s,startTimeMs:o,endTimeMs:r,duration:a,text:Sp(x.trim()),settings:i,index:0,speaker:ds(g.trim(),{allowVTTTags:!1})};c&&(L.id=c),i.position&&(L.position=i.position),i.align&&(L.align=i.align),i.line&&(L.line=i.line),i.size&&(L.size=i.size),i.vertical&&(L.vertical=i.vertical),i.region&&(L.region=i.region),d.push(L)}return d}function Iq(e,t){let s=t,o;!Ho(e[s])&&Ho(e[s+1])&&(o=ds(e[s],{allowVTTTags:!1}),s++);const r=e[s];if(!Ho(r))return{cues:[],nextIndex:s+1};const a=r.match(/^((?:\d{2}:)?\d{2}:\d{2}\.\d{3})\s*-->\s*((?:\d{2}:)?\d{2}:\d{2}\.\d{3})(.*)$/);if(!a)return{cues:[],nextIndex:s+1};const[,i,c,d]=a,l=D9(d.trim());s++;const h=[];for(;s<e.length&&e[s]!==""&&!Ho(e[s]);)h.push(e[s]),s++;const m=B9(i),p=B9(c),v=p-m,C=[];if(h.length===0){const g={stableId:Rc(),startTime:i,endTime:c,startTimeMs:m,endTimeMs:p,duration:v,text:"",settings:l,index:0};o&&(g.id=o),l.position&&(g.position=l.position),l.align&&(g.align=l.align),l.line&&(g.line=l.line),l.size&&(g.size=l.size),l.vertical&&(g.vertical=l.vertical),l.region&&(g.region=l.region),C.push(g)}else for(const g of h)if(g.includes("<v ")&&(g.includes("</v>")||g.match(/<v\s+[^>]+>[^<]*$/))){const x=kq(g,i,c,m,p,v,l,o);C.push(...x)}else{const x=h.join(`
`),{text:L,speaker:T}=Lq(x),y={stableId:Rc(),startTime:i,endTime:c,startTimeMs:m,endTimeMs:p,duration:v,text:Sp(L),settings:l,index:0};o&&(y.id=o),T&&(y.speaker=T),l.position&&(y.position=l.position),l.align&&(y.align=l.align),l.line&&(y.line=l.line),l.size&&(y.size=l.size),l.vertical&&(y.vertical=l.vertical),l.region&&(y.region=l.region),C.push(y);break}return{cues:C,nextIndex:s}}function Eq(e){const t=e.split(`
`).map(a=>a.trim()),s=t.find(a=>a.length>0);if(!s||!s.startsWith("WEBVTT"))throw new Error('Invalid WebVTT file: Must start with "WEBVTT"');const o={notes:[],styles:[],regions:[],cues:[],totalDuration:0,metadata:{cueCount:0,speakerCount:0,speakers:[],lastModified:new Date}};let r=0;for(;r<t.length&&t[r]==="";)r++;if(r<t.length&&t[r].startsWith("WEBVTT"))for(o.header=ds(t[r],{allowVTTTags:!1}),r++;r<t.length&&t[r]==="";)r++;else throw new Error("Invalid WebVTT file: Missing or malformed WEBVTT header");for(;r<t.length;){const a=t[r];if(a===""){r++;continue}if(a.startsWith("NOTE")){const i=[ds(a.substring(4).trim(),{preserveWhitespace:!0,allowVTTTags:!1})];for(r++;r<t.length&&t[r]!==""&&!Ho(t[r]);)i.push(ds(t[r],{preserveWhitespace:!0,allowVTTTags:!1})),r++;o.notes?.push(i.join(`
`));continue}if(a.startsWith("STYLE")){const i=[];for(r++;r<t.length&&t[r]!==""&&!Ho(t[r]);)i.push(ds(t[r],{preserveWhitespace:!0,allowVTTTags:!1})),r++;o.styles?.push(i.join(`
`));continue}if(a.startsWith("REGION")){const i=Sq(a);o.regions?.push(i),r++;continue}if(Ho(a)||Ho(t[r+1])){const i=Iq(t,r);i.cues&&i.cues.length>0&&o.cues.push(...i.cues),r=i.nextIndex;continue}r++}return o.cues=bq(o.cues),o.cues.sort((a,i)=>a.startTimeMs-i.startTimeMs),o.cues.forEach((a,i)=>{a.index=i}),o.totalDuration=o.cues.length>0?Math.max(...o.cues.map(a=>a.endTimeMs)):0,o.metadata=Tq(o.cues),o}function Uge(e){let t="";if(e.header?t+=e.header.trim()+`
`:t+=`WEBVTT
`,t+=`
`,e.notes&&e.notes.length>0)for(const s of e.notes)t+="NOTE",s&&s.length>0&&(t+=" "+s.replace(/\n/g,`
`)),t+=`

`;if(e.styles&&e.styles.length>0)for(const s of e.styles)t+=`STYLE
`,t+=s.trim()+`

`;if(e.regions&&e.regions.length>0)for(const s of e.regions){t+="REGION";const o=[];for(const r in s)s[r]!==void 0&&s[r]!==null&&r!=="settings"&&o.push(`${r}:${s[r]}`);o.length>0&&(t+=" "+o.join(" ")),t+=`

`}for(const s of e.cues){s.id&&(t+=s.id+`
`),t+=`${s.startTime} --> ${s.endTime}`;const o=[];if(s.position&&o.push(`position:${s.position}`),s.align&&o.push(`align:${s.align}`),s.line&&o.push(`line:${s.line}`),s.size&&o.push(`size:${s.size}`),s.vertical&&o.push(`vertical:${s.vertical}`),s.region&&o.push(`region:${s.region}`),s.settings)for(const a in s.settings)s.settings[a]!==void 0&&s.settings[a]!==null&&!o.some(i=>i.startsWith(a+":"))&&o.push(`${a}:${s.settings[a]}`);o.length>0&&(t+=" "+o.join(" ")),t+=`
`;let r=s.text||"";s.speaker&&(r=`[${s.speaker}]: ${r}`),t+=r+`

`}return t.replace(/\s+$/,"")+`
`}const Pc=_("video-transcript-panel"),jq=({cue:e,isCurrent:t,onSeek:s,forwardSeekRestricted:o,maxTimeReached:r})=>{const a=(0,u.useCallback)(()=>{const c=e.startTimeMs/1e3;o&&c>r||s?.(c)},[e,s,o,r]),i=(0,u.useMemo)(()=>o&&e.startTimeMs/1e3>r,[o,e.startTimeMs,r]);return(0,n.jsxs)("button",{"aria-current":t?"true":void 0,"aria-disabled":i,className:Pc("line",{current:t,disabled:i}),onClick:i?void 0:a,tabIndex:i?-1:0,type:"button",children:[(0,n.jsx)("span",{className:Pc("timestamp"),children:yq(e.startTimeMs,!0)}),(0,n.jsx)("span",{className:Pc("text"),children:e.text})]})},H9=({captions:e,currentTime:t=0,forwardSeekRestricted:s=!1,maxTimeReached:o=0,onSeek:r})=>{const[a,i]=(0,u.useState)([]);(0,u.useEffect)(()=>{if(!e||e.length===0)return;const d=new AbortController;return(async()=>{try{const h=e[0];if(!h)return;const m=h.url||(h.key?mt(h.key):null);if(!m)return;const p=await fetch(m,{signal:d.signal});if(!p.ok)return;const v=await p.text(),C=Eq(v);i(C.cues)}catch(h){console.error("Error loading transcript:",h)}})(),()=>{d.abort()}},[e]);const c=(0,u.useMemo)(()=>{const d=t*1e3;return a.findIndex(l=>d>=l.startTimeMs&&d<l.endTimeMs)},[a,t]);return a.length===0?null:(0,n.jsx)("div",{className:Pc(),children:(0,n.jsx)("div",{className:Pc("lines"),children:a.map((d,l)=>(0,n.jsx)(jq,{cue:d,forwardSeekRestricted:s,isCurrent:l===c,maxTimeReached:o,onSeek:r},d.stableId))})})},Es=_("video-side-panel");function wq(e,t){for(let s=e.length-1;s>=0;s--)if(t>=e[s].time)return s;return-1}const Tp=4;function Aq({captions:e,chapters:t=[],cornerRadius:s,currentTime:o=0,forwardSeekRestricted:r=!1,headingLevel:a,isLearner:i=!1,maxTimeReached:c=0,onSeek:d,showChapters:l=!0,showTranscript:h=!0}){const m=(0,u.useMemo)(()=>l&&(!i||t.length>0),[t.length,i,l]),p=(0,u.useMemo)(()=>{const D=[];return m&&D.push({id:"chapters",label:"Chapters"}),h&&D.push({id:"transcript",label:"Transcript"}),D},[m,h]),[v,C]=(0,u.useState)(p[0]??null),[g,x]=(0,u.useState)(!1),[L,T]=(0,u.useState)(!1),y=(0,u.useRef)(null),b=(0,u.useRef)(null),S=(0,u.useRef)(null),N=(0,u.useRef)(!1),k=(0,u.useId)(),E=(0,u.useMemo)(()=>p.find(D=>D.id===v?.id)??p[0]??null,[p,v]),I=(0,u.useMemo)(()=>p.findIndex(D=>D.id===E?.id),[p,E]),P=(0,u.useCallback)(D=>{const U=D.currentTarget.dataset.tabId,V=p.find(B=>B.id===U);V&&C(V)},[p]),A=(0,u.useCallback)(D=>{const U=p.length-1;let V=null;so(D)?V=I===0?U:I-1:no(D)?V=I===U?0:I+1:o5(D)?V=0:n5(D)&&(V=U),V!==null&&(D.preventDefault(),C(p[V]),y.current?.querySelectorAll('[role="tab"]')[V]?.focus())},[I,p]);(0,u.useEffect)(()=>{p.length>0&&!p.some(D=>D.id===v?.id)&&C(p[0])},[p,v]);const w=gs(),O=bt(768),j=(0,u.useCallback)(()=>x(!0),[]),R=(0,u.useCallback)(()=>x(!1),[]),M=(0,u.useCallback)(()=>T(D=>!D),[]);(0,u.useEffect)(()=>{let D=0;return L&&b.current?(N.current=!0,D=requestAnimationFrame(()=>{b.current?.querySelectorAll("[data-chapter-button]")?.[Tp]?.focus()})):!L&&N.current&&(D=requestAnimationFrame(()=>{S.current?.focus()})),()=>cancelAnimationFrame(D)},[L]);const z=(0,u.useMemo)(()=>wq(t,o),[t,o]),$=L?t:t.slice(0,Tp),H=t.length>Tp,F=a??2,K=`h${F}`,Q=s!=null?{"--side-panel-corner-radius":`${Number(s)}px`}:{};if(O)return(0,n.jsxs)("div",{className:Es("mobile"),style:Q,children:[m&&(0,n.jsxs)("div",{className:Es("mobile-section"),ref:b,children:[(0,n.jsx)(K,{className:Es("mobile-heading",{[`h${F}`]:!0}),children:"Chapters"}),(0,n.jsx)(O9,{activeIndex:z,chapters:$,onSeek:d}),H&&(0,n.jsxs)("button",{"aria-expanded":L,className:Es("mobile-expand"),onClick:M,ref:S,type:"button",children:[L?"Show less chapters":"Show more chapters",(0,n.jsx)("i",{"aria-hidden":"true",className:`fa-solid fa-chevron-${L?"up":"down"}`})]})]}),h&&(0,n.jsxs)("div",{className:Es("mobile-section"),children:[(0,n.jsx)(K,{className:Es("mobile-heading",{[`h${F}`]:!0}),children:"Transcript"}),(0,n.jsxs)("button",{className:Es("view-transcript-button"),onClick:j,type:"button",children:[(0,n.jsx)(ie,{name:"list"}),"View transcript"]}),g&&(0,n.jsx)(Bm,{className:Es("video-transcript-modal"),heading:"Transcript",onClose:R,children:(0,n.jsx)(H9,{captions:e,currentTime:o,forwardSeekRestricted:r,maxTimeReached:c,onSeek:d})})]})]});const J=D=>{const U={className:Es("content"),hidden:E?.id!==D};return p.length<=1?U:{...U,"aria-labelledby":`tab-${D}-${k}`,id:`tabpanel-${D}-${k}`,role:"tabpanel",tabIndex:0}},te=p.length===1?(0,n.jsx)(K,{className:Es("title",{[`h${F}`]:!0}),children:p[0].label}):(0,n.jsx)("div",{"aria-label":w?.a11yBlockVideoSidePanelTablist,className:Es("tabs"),ref:y,role:"tablist",children:p.map(D=>(0,n.jsx)("button",{"aria-controls":`tabpanel-${D.id}-${k}`,"aria-selected":E?.id===D.id,className:Es("tab",{active:E?.id===D.id}),"data-tab-id":D.id,id:`tab-${D.id}-${k}`,onClick:P,onKeyDown:A,role:"tab",tabIndex:E?.id===D.id?0:-1,type:"button",children:D.label},D.id))});return(0,n.jsxs)("div",{className:Es(),style:Q,children:[te,m&&(0,n.jsx)("div",{...J("chapters"),children:(0,n.jsx)(O9,{activeIndex:z,chapters:t,onSeek:d})}),h&&(0,n.jsx)("div",{...J("transcript"),children:(0,n.jsx)(H9,{captions:e,currentTime:o,forwardSeekRestricted:r,maxTimeReached:c,onSeek:d})})]})}const Mc=_("block-video");function Rq({audioVideoPlayhead:e,backgroundColor:t,blockId:s,blockPartnerContent:o,blockPartnerContentExists:r,captions:a,chapters:i,cornerRadius:c,currentLocale:d,dataL10nId:l,enableVideoPlaybackSpeed:h,forwardSeekRestricted:m,headingLevel:p,id:v,isLearner:C,isLoaded:g,item:x,lessonId:L,loadMedia:T,media:y,mediaWidth:b,onLoad:S,onProgressChanged:N,poster:k,recordMediaPlayheadPosition:E,renderCaption:I,showChapters:P,subtitle:A,transcriptEnabled:w,type:O,videoKey:j,videoSrc:R}){const[M,z]=(0,u.useState)(0),[$,H]=(0,u.useState)(0),F=(0,u.useRef)(null),K=(0,u.useCallback)(U=>{z(U.currentTime),H(V=>Math.max(V,U.currentTime)),N?.(U)},[N]),Q=(0,u.useCallback)(U=>{const V=Mc("caption",{visible:g}).toString();return(0,n.jsx)(ot,{className:V,value:U.caption})},[g]),J=(0,u.useCallback)(U=>{F.current?.seekToTime(U)},[F]),te=w&&a&&a.length>0||P&&(!C||i&&i.length>0),D=Mc("item",{small:b==="0",medium:b==="1",full:b==="2","video-training":!0,"no-side-panel":!te});return(0,n.jsxs)("div",{className:D,children:[(0,n.jsxs)("figure",{"data-l10n-id":l,children:[(0,n.jsx)("div",{className:Mc("figure-container"),children:T&&(0,n.jsx)(op,{audioVideoPlayhead:e,canAdjustPlaybackSpeed:h,canRestrictSeek:m,captions:a,cornerRadius:c,id:`${L}-${s}-${v}-${d}`,media:y,onLoad:S,poster:k,progressChanged:K,recordMediaPlayheadPosition:E,ref:F,src:R,subtitle:A,type:j?"video":O},`${L}-${s}-${v}-${d}-${k||""}`)}),te&&(0,n.jsx)("div",{className:Mc("side-panel-wrapper"),children:(0,n.jsx)(Aq,{captions:a,chapters:i,cornerRadius:c,currentTime:M,forwardSeekRestricted:m||!1,headingLevel:p,isLearner:C,maxTimeReached:$,onSeek:J,showChapters:P,showTranscript:w})}),g&&(0,n.jsx)("figcaption",{className:Mc("wrapper"),children:(I??Q)(x)})]}),r&&(0,n.jsx)(P9,{backgroundColor:t,blockId:s,partnerContent:o})]})}var Np=f(80588);function Pq({backgroundColor:e,blockId:t,cornerRadius:s,enableVideoPlaybackSpeed:o,forwardSeekRestricted:r,headingLevel:a,isLearner:i,item:c,lessonId:d,loadMedia:l,mediaWidth:h,onStep:m,partnerContent:p,audioVideoPlayhead:v,recordMediaPlayheadPosition:C,renderCaption:g,showChapters:x,transcriptEnabled:L,type:T,isVideoTraining:y}){const[b,S]=Np.useState(!1),{currentLocale:N}=Ze(),k=vs(),{id:E,media:I,partnerContentId:P}=c,A=k(I)??{},{customVideo:w={},tmp:O={},video:j={}}=A,R="poster"in j?j:{...j,...w},M=O.video&&"poster"in O.video?O.video:void 0,{captions:z,chapters:$,key:H,poster:F,src:K,subtitle:Q}=ui()?R:M||R,J=$??[],te=H||K,D=p?.find(X=>P!=null&&As(X)&&"id"in X&&X.id===P),U=D!=null&&As(D),V=As(I)&&"l10nId"in I?I.l10nId:void 0,B=Np.useCallback(()=>{S(!0)},[]),W=Np.useCallback(({percentComplete:X})=>{X>=100&&m?.({id:E})},[E,m]);if(!te)return(0,n.jsx)(uq,{mediaWidth:h});const Z={audioVideoPlayhead:v,backgroundColor:e,blockId:t,blockPartnerContent:D,blockPartnerContentExists:U,captions:z,cornerRadius:s,currentLocale:N,dataL10nId:V,enableVideoPlaybackSpeed:o,forwardSeekRestricted:r,id:E,isLoaded:b,item:c,lessonId:d,loadMedia:l,media:I,mediaWidth:h,onLoad:B,onProgressChanged:W,poster:F,recordMediaPlayheadPosition:C,renderCaption:g,subtitle:Q,type:T,videoKey:H,videoSrc:te};return y?(0,n.jsx)(Rq,{...Z,chapters:J,headingLevel:a,isLearner:i,showChapters:x,transcriptEnabled:L},H):(0,n.jsx)(pq,{...Z},H)}const Mq=_("block-video");function kp({animateBlockEntrance:e,blockId:t,enableVideoPlaybackSpeed:s,initiallyVisible:o,isDragPreview:r,isLearner:a,isSidebarPreview:i,items:c,lessonId:d,loadMedia:l,onStep:h,partnerContent:m,progress:p,recordMediaPlayheadPosition:v,renderCaption:C,settings:g,takingSnapshot:x,type:L,isVideoTraining:T}){const y=c?.[0];if(y==null)return null;const b=Mq({"no-animation":!g?.entranceAnimation}).toString(),S=As(g)&&"forwardSeekRestricted"in g?g.forwardSeekRestricted:void 0,N=T?"2":"1",k=As(g)&&"mediaWidth"in g?g.mediaWidth??N:N,E=As(g)&&"showTranscript"in g&&!!g.showTranscript,I=As(g)&&"showChapters"in g&&!!g.showChapters,P=As(g)&&"headingLevel"in g?g.headingLevel??void 0:void 0,A=x||r||i;return(0,n.jsx)(Ie,{className:b,children:(0,n.jsx)(Pe,{animateBlockEntrance:e,initiallyVisible:o,isLearner:a,children:A?(0,n.jsx)(dq,{item:y}):(0,n.jsx)(Pq,{audioVideoPlayhead:p?.items?.[t]?.items?.[y.id]?.audioVideoPlayhead??0,backgroundColor:g?.backgroundColor,blockId:t,cornerRadius:g?.cornerRadius,enableVideoPlaybackSpeed:s,forwardSeekRestricted:S,headingLevel:P,isLearner:a,isVideoTraining:T,item:y,lessonId:d,loadMedia:l,mediaWidth:k,onStep:h,partnerContent:m,recordMediaPlayheadPosition:v,renderCaption:C,showChapters:I,transcriptEnabled:E,type:L})})})}var Ip=f(80588);const gu=_("block-audio"),Ep=_("block-embed"),js=_("block-attachment");class Oq extends Ip.Component{renderCaptionDelegate;constructor(t){super(t),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:t}){const{loaded:s}=this.state,o=gu("caption",{hidden:!s}).toString();return(0,n.jsx)(ot,{className:o,value:t})}onLoad(){this.setState({loaded:!0})}renderItem(t){const{blockId:s,getL10nValue:o,labels:r,lessonId:a,loadMedia:i,progress:c,recordMediaPlayheadPosition:d,renderCaption:l=this.renderCaptionDelegate,settings:h}=this.props,m="forwardSeekRestricted"in h?h.forwardSeekRestricted:!1,p=t.media,v=o(p)??{},{id:C}=t,g=v?.tmp?.audio?.key||v?.audio?.key,x=`${a}-${s}-${C}`,L=De()(0,["items",s,"items",C,"audioVideoPlayhead"],c),T=rp({lessonId:a,refs:`items:${s}/items:${C}`});return(0,n.jsxs)("div",{className:gu("item"),children:[i&&(0,n.jsx)(t9,{audioVideoPlayhead:L,canRestrictSeek:!!m,id:x,item:t,labels:r,mediaSrc:g,onAIUploadFinish:this.props.onAIUploadFinish,onEnd:this.handleOnEnd.bind(this,C),onLoad:this.onLoad,onTranscriptClick:this.onTranscriptClick.bind(this,t),onTranscriptClose:this.props.closeTranscript,onTranscriptUpdate:this.props.onTranscriptUpdate??void 0,recordMediaPlayheadPosition:d,refs:`items:${s}/items:${C}`,transcriptMedia:p,uploadId:T},x),l(t)]},C)}handleOnEnd(t){this.props.onStep({id:t})}onTranscriptClick(t){const{blockId:s}=this.props;return this.props.openTranscript?.({blockId:s,item:t,refs:`items:${s}/items:${t.id}`})}render(){const{animateBlockEntrance:t,initiallyVisible:s,isLearner:o,items:r,settings:a}=this.props,{entranceAnimation:i}=a,c=gu({"no-animation":!i}).toString(),d=r.length>0?r.slice(0,1):[];return(0,n.jsx)(Ie,{className:c,children:(0,n.jsx)(Pe,{animateBlockEntrance:t,initiallyVisible:s,isLearner:o,children:(0,n.jsx)("div",{className:gu("wrapper"),children:d.map(l=>this.renderItem(l))})})})}}const Bq=JC(Ke(Oq));class Dq extends Ip.Component{static get defaultProps(){return{items:[],editable:!1,lessonId:"",blockId:"",settings:{}}}renderItem(t,s){const{id:o,settings:r={}}=t,a=this.props.getL10nValue(t.media)??{},i="embed"in a?a.embed:void 0,{loadMedia:c,labels:d,settings:l}=this.props,{showMetaData:h}=r,{cardMode:m,showBorder:p=!0}=l,v=Ep("item",{border:p}).toString();return(0,n.jsx)(Bt,{className:v,disabled:!p&&m==Fs.TRANSPARENT,tag:"section",children:c&&(0,n.jsx)(c9,{data:i,id:`${s}-${o}`,isLesson:!0,labels:d,showMetaData:h})},o)}render(){const{animateBlockEntrance:t,blockId:s,getL10nValue:o,initiallyVisible:r,isLearner:a,items:i,settings:c}=this.props,{entranceAnimation:d,mediaWidth:l="0"}=c,h=o(i?.[0]?.media);if(!h)return null;const m=MY(h)!=="link",p=Ep({"no-animation":!d}).toString(),v=Ep("wrapper",{medium:m&&l==="1",full:m&&l==="2"}),C=i.length>0?i.slice(0,1):[];return(0,n.jsx)(Ie,{className:p,children:(0,n.jsx)(Pe,{animateBlockEntrance:t,initiallyVisible:r,isLearner:a,children:(0,n.jsx)("div",{className:v,children:C.map(g=>this.renderItem(g,s))})})})}}const Hq=Ke(H1()(Dq));class Fq extends Ip.Component{get attachment(){const t=this.props.items[0].media;return this.props.getL10nValue(t)?.attachment??{}}render(){const{animateBlockEntrance:t,initiallyVisible:s,isLearner:o}=this.props;return(0,n.jsx)(Ie,{children:(0,n.jsx)(Pe,{animateBlockEntrance:t,initiallyVisible:s,isLearner:o,children:(0,n.jsx)("div",{className:"block-text--onecol",children:(0,n.jsx)("div",{className:"block-text__container",children:(0,n.jsx)("div",{className:"block-text__row",children:(0,n.jsx)("div",{className:"block-text__col",children:this.renderAttachment(this.attachment)})})})})})})}renderAttachment(t){return t.key?this.renderDownload(t):this.renderNoFile()}renderDownload({key:t,mimeType:s,originalUrl:o,size:r}){const{attachmentId:a,blockId:i,externalLinksDisabled:c,onLinkBlur:d,onLinkFocus:l,onLinkMouseEnter:h,onLinkMouseLeave:m}=this.props,p=mt(t),v=c?"":void 0,C=c?void 0:p,g=c?void 0:"noopener noreferrer nofollow",x=c?"button":void 0,L=c?0:void 0,T=c?void 0:"_blank",y=js({}).mix("brandHover").toString(),b=js("info");return(0,n.jsxs)(Bt,{"aria-labelledby":`attachment-name-${i} attachment-icon-${i}`,className:y,"data-external":v,download:o,href:C,id:c?a:void 0,onBlur:c?()=>d?.(a):void 0,onFocus:c?()=>l?.(a):void 0,onMouseEnter:c?()=>h?.(a):void 0,onMouseLeave:c?()=>m?.(a):void 0,rel:g,role:x,tabIndex:L,tag:"a",target:T,children:[(0,n.jsxs)("div",{className:js("main"),children:[(0,n.jsx)("div",{className:js("icon"),id:`attachment-icon-${i}`,children:this.fileIcon(s)}),(0,n.jsxs)("div",{className:b,children:[(0,n.jsx)(be,{className:js("title").toString(),id:`attachment-name-${i}`,value:o}),(0,n.jsx)("div",{className:js("size").toString(),children:lq()(r,{round:1})})]})]}),(0,n.jsx)("div",{className:js("rest"),children:(0,n.jsx)(qB,{className:"brandHover__target--fill"})})]})}renderNoFile(){const t=js({none:!0}).toString(),s=js("info");return(0,n.jsx)(Bt,{className:t,children:(0,n.jsxs)("div",{className:js("main"),children:[(0,n.jsx)("div",{className:js("icon"),children:(0,n.jsx)(N6,{"aria-label":"File"})}),(0,n.jsxs)("div",{className:s,children:[(0,n.jsx)("div",{className:js("title").toString(),children:"File Attachment Block"}),(0,n.jsx)("div",{className:js("size").toString(),children:"No file added"})]})]})})}fileIcon(t){const{labels:s}=this.props,o=/excel|spreadsheet/,r=/pdf/,a=/word/,i=/powerpoint|presentation/,c=/rtf|richtext/,d=/zip/;return o.test(t)?(0,n.jsx)(wD,{"aria-label":s?.a11yExcelIcon}):r.test(t)?(0,n.jsx)(ID,{"aria-label":s?.a11yPDFIcon}):a.test(t)?(0,n.jsx)(TD,{"aria-label":s?.a11yWordIcon}):i.test(t)?(0,n.jsx)(ED,{"aria-label":s?.a11yPPTIcon}):c.test(t)?(0,n.jsx)(jD,{"aria-label":s?.a11yRTFIcon}):d.test(t)?(0,n.jsx)(AD,{"aria-label":s?.a11yZipIcon}):(0,n.jsx)(N6,{"aria-label":s?.a11yFileIcon})}}function Vq(e){const t=H1()(e),s=Ke(t),o=Gz(s);function r(a){const i=Re(),c=a.externalLinksDisabled??(i&&"externalLinksDisabled"in i?i.externalLinksDisabled:!1);return(0,n.jsx)(o,{...a,externalLinksDisabled:c})}return r}const zq=Vq(Fq),gn=_("block-step"),$q=e=>{const{blockId:t,disableZoom:s,enableVideoPlaybackSpeed:o,isOverlayAudio:r,item:a,labels:i,lessonId:c,lessonNumber:d,mediaType:l,audioPosition:h}=e,{settings:m}=a,p=Te(a.media)??{},v=l==="audio"&&p.audio,C=l==="embed"&&p.embed,g=l==="image"&&p.image,x=l==="video"&&p.video;if(!v&&!C&&!g&&!x&&!(l==="image-with-audio"&&r))return;const T=p.embed?Pr(p.embed):void 0,y=!!p.image,b=!!p.audio,S=y?p.image.align:"center",N=gn("media",{audio:b&&!r,"audio-and-embed":!!(p.audio&&p.embed),"image-with-audio":r,[`image-with-audio-${S}`]:r&&!!S,"audio-on-bottom":b&&!r&&h==="bottom",linkEmbed:T==="link",videoEmbed:T==="video",visual:!r&&y||!Xe()(p.video)}),k=m||{};return(0,n.jsx)("div",{className:N,children:(0,n.jsx)(_t,{blockId:t,enableVideoPlaybackSpeed:o,index:`${a.id}`,isOverlayAudio:r,item:a,labels:i,lessonId:c,lessonNumber:d,media:p,mediaType:r?void 0:l,opts:{disableZoom:s,...k},shouldPause:!0})})},_q=e=>{const{headingLevel:t,innerRef:s,item:o,isActive:r,loadMedia:a,audioPosition:i,onFocus:c,renderTitle:d,renderDescription:l,style:h}=e,{id:m}=o,p=gn({active:r}),v=!!o.step,C=!!o.title,g=t||2,x=`h${g}`,L=`h${g+1}`,T=Te(o.media),y=fn(T,i,!0,"timeline"),b=Te(o.description),S=(0,u.useMemo)(()=>!!Object.keys(T??{}).length||!!om(b).value?.length,[T,b]),N=()=>{const k={audio:{item:{...o,media:y.audioOnlyMedia||T},mediaType:"audio"},image:{item:{...o,media:y.imageOnlyMedia||T},mediaType:"image"},video:{item:{...o,media:y.videoOnlyMedia||T},mediaType:"video"},embed:{item:{...o,media:y.embedOnlyMedia||T},mediaType:"embed"},overlay:{mediaType:"image-with-audio",isOverlayAudio:!0}};return(0,n.jsx)(n.Fragment,{children:y.renderOrder.map((E,I)=>{if(E==="text")return l?(0,n.jsx)("div",{className:gn("description"),children:l(o)},`text-${I}`):(0,n.jsx)(be,{className:gn("description"),value:o.description},`text-${I}`);if(!T||!a)return null;const P=k[E];return P?(0,u.createElement)($q,{...e,...P,key:`${E}-${I}`}):null})})};return(0,n.jsx)(Ie,{children:(0,n.jsx)("div",{className:p,"data-id":m,ref:s,style:h,children:(0,n.jsx)(Bt,{className:gn("body"),onFocus:c,children:(0,n.jsxs)("div",{className:gn("main-wrap"),children:[(0,n.jsxs)("div",{className:gn("heading",{solo:!S}),children:[v&&(0,n.jsx)("div",{className:gn("step"),children:(0,n.jsx)(x,{children:(0,n.jsx)(lt,{value:o.step})})}),(C||d)&&(0,n.jsx)("div",{className:gn("title"),children:d?d(o):(0,n.jsx)(L,{children:(0,n.jsx)(be,{value:o.title})})})]}),(0,n.jsx)("div",{className:gn("main"),children:N()})]})})})})},Uq=e=>{const{id:t,settings:s,items:o,onEnter:r,enableVideoPlaybackSpeed:a,initiallyVisible:i,isLearner:c,labels:d,lessonId:l,renderTitle:h,renderDescription:m}=e,p=o[0],v=s.audioPosition,C=!(s.zoomOnClick??!0),g=s.headingLevel,x=(0,u.useCallback)((T,y)=>{r?.({id:t,payload:{activeIndex:T,itemId:y}})},[t,r]),L=(0,n.jsx)(_q,{audioPosition:v,blockId:t,disableZoom:C,enableVideoPlaybackSpeed:a,headingLevel:g,isActive:!0,item:p,labels:d,lessonId:l,lessonNumber:t,loadMedia:!0,onFocus:x,renderDescription:m,renderTitle:h,style:{"--block-step-padding-top":"1rem","--block-step-padding-bottom":"1rem","--block-step-corner-radius":s.cornerRadius!=null?`${s.cornerRadius}px`:"var(--arc-border-radius-lg)"}});return c?(0,n.jsx)(Pe,{animateBlockEntrance:!0,className:gn("animate").toString(),initiallyVisible:i,isLearner:!0,children:L}):L},F9=_("continue-btn"),vu=({children:e,className:t,href:s,onClick:o,text:r,testId:a="continue-btn"})=>{const i=t?`${F9()} ${t}`:F9();return s?(0,n.jsx)(is,{className:i,"data-continue-btn":"","data-testid":a,onClick:o,to:s,children:e??(0,n.jsx)(lt,{value:r})}):(0,n.jsx)("button",{className:i,"data-continue-btn":"","data-testid":a,onClick:o,type:"button",children:e??(0,n.jsx)(be,{value:r})})},V9=({bgType:e,text:t,iconType:s="locked"})=>{const o=G()("continue-hint",{"continue-hint--bg-transparent":e==="transparent"});return(0,n.jsxs)("div",{className:o,"data-continue-btn":"",children:[s==="locked"&&(0,n.jsx)(ie,{className:"continue-hint__icon",name:"lock-keyhole-light"}),(0,n.jsx)("div",{className:"continue-hint__content",children:(0,n.jsx)(lt,{value:t})})]})},jp=_("block-text");function Gq({blockId:e,animateBlockEntrance:t,canContinue:s=!1,isComplete:o,isLearner:r,isLastBlock:a=!1,isOnlyBlockInStep:i,items:c=[],labels:d,onStep:l=()=>{},skipContinue:h=!1,initiallyVisible:m}){const v=(0,u.useRef)(null),C=(0,je.A)(o),[g,x]=u.useState(!1),{announcePolite:L}=qn(),[T,y]=u.useState(!1),b=Yt(),S=Re(),N=Ii(),k=n3(N),E=Ao(),I=c[0],{id:P}=I,A=I.title??E?.label??_e.blockContinueLabel,w=I.type??E?.completionType??_e.blockContinueCompletionType,O=I.completeHint??E?.completeHint??_e.blockContinueCompleteHint,j=!w||(h?T:s||i&&o),R=h||!o||i,M=b?.continueColor||N,z=!M||M===N,$=z&&S?.theme?.accentContrast===pe.AUTO?pe.AUTO:k,H=b?.continueColorContrast??$,F=b?.continueRadius??null,K=b?.continueWidth??76,Q=Rt({backgroundColor:M,contrast:H}),J={...!z&&{"--color-button-bg":M},...!z&&{"--color-button-text":Q},...!z&&{"--color-button-border":"transparent"},...F!=null&&{"--radius-button":`${Number(F)}px`},...K!=null&&{maxWidth:`${Number(K)}rem`}},te=(0,u.useCallback)(()=>{l({id:P}),x(!0),a?setTimeout(()=>{const D=document.querySelector("[data-lesson-id]"),U=document.querySelector("main"),V=document.querySelector("h1.lesson-header__title, .lesson-header__title h1"),B=D?.querySelector('.block-wrapper, [role="region"], .lesson-content > *:first-child');let W=null;V?W=V:B&&B!==v.current?.parentElement?W=B:D?W=D:U&&(W=U),W&&(W.setAttribute("tabindex","-1"),W.focus({preventScroll:!0}))},200):setTimeout(()=>{const D=v.current;D&&D.focus()},100)},[P,l,a]);return(0,u.useEffect)(()=>{!C&&o&&(a||setTimeout(()=>{L?.(d?.a11yStatusAdditionalContent)},300))},[L,o,d,C,a]),(0,u.useEffect)(()=>{const D=U=>{const{path:V}=U.detail,{blockId:B,buttonId:W}=Na(U.detail.path,["block","button"]);if(e==B&&W===I.id){const Z=V.at(-1);Z==="title"?y(!0):Z==="completeHint"&&y(!1)}};return window.addEventListener(Ge,D),()=>{window.removeEventListener(Ge,D)}},[e,I.id]),(0,n.jsxs)(n.Fragment,{children:[R&&(0,n.jsx)(Ie,{children:(0,n.jsx)(Pe,{animateBlockEntrance:t,initiallyVisible:m,isLearner:r,children:(0,n.jsx)("div",{className:jp("container"),children:(0,n.jsx)("div",{className:jp("row"),children:(0,n.jsxs)("div",{className:jp("continue"),style:J,children:[j&&(0,n.jsx)(vu,{onClick:te,text:A}),!j&&(0,n.jsx)(V9,{text:O})]})})})})}),g&&(0,n.jsx)("div",{"aria-live":"off",className:"visually-hidden-always",ref:v,role:"status",tabIndex:-1,children:d?.a11yStatusContinued||"Continued"})]})}var Wq=f(38739),Cu=f.n(Wq);const Kq=_("flashcard");class Qq extends u.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,u.createRef)();render(){const{cardRef:t,handleFlip:s,handleSideReady:o,handleTouchEnd:r,props:{activeIndex:a,allowTabNavigation:i,backDescription:c,backMedia:d,backType:l,block:h,forceFlipped:m,frontDescription:p,frontMedia:v,frontType:C,id:g,index:x,isHidden:L,labels:T,lessonId:y,prefersKeyboardNavigation:b,settingShowHint:S,size:N,type:k,wrapElement:E,wrapRole:I},state:{areSidesReady:P,flipped:A,isMounted:w}}=this,O=m||A,j=Kq({large:N==="large",small:N==="small",flipped:O,stack:k==="stack"});return(0,n.jsxs)(E,{"aria-hidden":!i,className:j,onClick:s,onTouchEnd:r,ref:t,role:I,children:[(0,n.jsx)(Bt,{activeIndex:a,allowTabNavigation:i,blockId:h?.id,blockType:k,description:p,index:x,isActiveSide:!O,isAriaHidden:O&&w&&P,isFlipped:O,isHidden:L,itemId:g,labels:T,lessonId:y,media:v,onFlip:s,onReady:o,prefersKeyboardNavigation:b,settingShowHint:S,side:"front",size:N,tag:$9,type:C}),(0,n.jsx)(Bt,{activeIndex:a,allowTabNavigation:i,blockId:h?.id,blockType:k,description:c,index:x,isActiveSide:O,isAriaHidden:!O&&w&&P,isFlipped:O,isHidden:L,itemId:g,labels:T,lessonId:y,media:d,onFlip:s,onReady:o,prefersKeyboardNavigation:b,settingShowHint:S,side:"back",size:N,tag:Zq,type:l})]})}componentDidMount(){this.setState({isMounted:!0}),window.addEventListener(Ge,this.handleNavEvent)}componentDidUpdate(t,s){const{props:{allowTabNavigation:o,id:r,onStep:a},state:{hasFlippedOnce:i}}=this;!s.hasFlippedOnce&&i&&a({id:r}),t.allowTabNavigation&&!o&&this.setState({flipped:!1})}componentWillUnmount(){window.removeEventListener(Ge,this.handleNavEvent)}handleNavEvent=t=>{const{path:s}=t.detail,{cardId:o}=Na(s,["block","card"]);if(o===this.props.id){let r=!1;s.includes("back")&&(r=!0),this.setState({flipped:r},()=>{this.props.type!=="stack"&&!Jm(this.cardRef.current,"center")&&this.cardRef.current.scrollIntoView({behavior:"instant",block:"center"})})}};handleFlip=t=>{const{block:s,index:o}=this.props,r=window.getSelection(),a=r.toString()&&this.cardRef.current?.contains(r.anchorNode);if(t.detail>1&&r.empty(),t&&t.target.closest("a")||a)return;const i=!this.state.flipped;this.setState({areSidesReady:!1,flipped:i,hasFlippedOnce:!0});const c=i?"back":"front",d=s?.items?.[o],l=d?.[c]?.media,h=`items:${s?.id}/items:${d?.id}/${c}`;this.props.onTranscriptUpdate?.({audioPlayerId:pn({refs:h}),transcriptMedia:l}),this.props.onFlip?.(this.props.index,i)};handleTouchEnd=t=>{t.stopPropagation()};handleSideReady=()=>{this.setState({areSidesReady:!0})}}const z9=Al(Ke(Qq)),Wa=_("flashcard-side"),xu=_("flashcard-side-flip");class Or extends u.PureComponent{static descriptionActionTypes={INITIAL:"INITIAL",INSERTING:"INSERTING",DELETING:"DELETING"};static initialState={descriptionAction:Or.descriptionActionTypes.INITIAL,isAtLongOverflowBottom:!1,isLong:!1,isLongOverflow:!1,isTooltipVisible:!1,scrollbarWidthOffset:void 0};id;constructor(t){super(t),this.handleMouseEnterAudio=this.handleMouseEnterAudio.bind(this),this.handleMouseLeaveAudio=this.handleMouseLeaveAudio.bind(this),this.id=(0,p0.uniqueId)("flashcard-side")}state=Or.initialState;longBottomObserver=void 0;readyTimeout=void 0;refDescription=(0,u.createRef)();refDescriptionBottom=(0,u.createRef)();refSide=(0,u.createRef)();refBtnTimeoutMouseLeave=(0,u.createRef)();checkDescriptionSizeDebounced;handleMouseEnterAudio=()=>{const{itemId:t,index:s,settingShowHint:o,side:r}=this.props,a=document.getElementById(`${t}-${s}-${r}-flip-btn`);a&&o&&(a.style.opacity="0.6")};handleMouseLeaveAudio=()=>{const{itemId:t,index:s,settingShowHint:o,side:r}=this.props,a=document.getElementById(`${t}-${s}-${r}-flip-btn`);a&&o&&(a.style.opacity="1")};render(){const{props:{activeIndex:t,allowTabNavigation:s,block:o,className:r,description:a,getL10nValue:i,index:c,itemId:d,media:l,isActiveSide:h,isAriaHidden:m,isFlipped:p,labels:v,lessonId:C,onFlip:g,prefersKeyboardNavigation:x,settingShowHint:L,side:T,size:y,style:b,type:S},refDescription:N,refDescriptionBottom:k,refSide:E,state:{isAtLongOverflowBottom:I,isLong:P,isLongOverflow:A,isTooltipVisible:w,scrollbarWidthOffset:O}}=this,j=T==="front",R=T==="back",M=y==="small",z=y==="large",$=S==="description",H=S==="fullimage",F=S==="image",K=j?v?.a11yBlockFlashcardFront:v?.a11yBlockFlashcardBack,Q=`items:${o?.id}/items:${d}/${j?"front":"back"}`,J=Wa({back:R,flipped:p,front:j,fullimage:H}).mix(r),{image:te,audio:D}=i(l)??{},U=Wa("content",{small:M,large:z,front:j,fullimage:H,image:F,"long-overflow":A,"long-overflow-bottom":I,"has-audio":!!D}),V=xu({"audio-expansion":!0}),B=xu("btn",{"visually-hidden":!L,"prefers-keyboard":x,round:!0}),W=xu("icon"),Z=xu("tooltip",{visible:w}),X=Wa("img",{small:M,large:z,centered:F,full:H}),Y=Wa("description",{"has-audio":!!D,long:P&&!A,"long-overflow":A,short:!P,large:z}),oe=Wa("description-bottom"),re=O==null?void 0:{right:O},me=te?.alt??`Image ${c+1}`,he=Ct(te),Oe=`${this.id}-click-to-flip-text`,ut=`${this.id}-image`,It=`${this.id}-description`;return(0,n.jsxs)("div",{"aria-label":K,className:J,inert:m,ref:E,role:"group",style:b,tabIndex:-1,children:[(0,n.jsxs)("div",{className:U,children:[(0,n.jsxs)("div",{className:V,onMouseEnter:this.handleBtnMouseEnter,onMouseLeave:this.handleBtnMouseLeave,style:re,children:[(0,n.jsx)("button",{"aria-labelledby":`${Oe} ${It} ${ut}`,className:B,id:`${d}-${c}-${T}-flip-btn`,onBlur:this.handleBtnBlur,onClick:g,onFocus:this.handleBtnFocus,tabIndex:s&&h?0:-1,type:"button",children:(0,n.jsx)(sF,{className:W})}),(0,n.jsx)("div",{"aria-hidden":"true",className:Z,id:Oe,onClick:Oo,children:v?.blocksClickToFlip})]}),(H||F)&&(0,n.jsx)(Yq,{alt:me,className:X,imageId:ut,l10nId:wt(l),url:he}),$&&(0,n.jsxs)("div",{className:Y,ref:N,tabIndex:h&&A?0:void 0,children:[(0,n.jsx)(be,{allowTabNavigation:s&&!m,id:It,value:a}),A&&(0,n.jsx)("div",{className:oe,ref:k})]})]}),D&&(0,n.jsx)("div",{className:Wa("audio-player",{text:$,image:F}),onMouseEnter:this.handleMouseEnterAudio,onMouseLeave:this.handleMouseLeaveAudio,children:(0,n.jsx)(_t,{activeIndex:t,blockId:o.id,index:`${d}-${c}-${T}`,isOverlayAudio:H,item:{id:d,media:l},itemIndex:c,labels:v,lessonId:C,media:l,mediaType:"audio",refs:Q,shouldPause:!h,side:T})})]})}componentDidMount(){this.checkDescriptionSize(this.props),this.checkDescriptionSizeDebounced=Cu()(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(t,s){const{props:{allowTabNavigation:o,blockType:r,isFlipped:a,isActiveSide:i,isHidden:c,onReady:d,type:l}}=this;t.isHidden&&!c&&this.checkDescriptionSize(this.props),t.isFlipped!==a&&(i&&o?(this.refSide.current?.focus?.(),this.readyTimeout=setTimeout(()=>{d()},700)):clearTimeout(this.readyTimeout)),l==="description"&&this.handleUpdatesDescription(t,s),r==="stack"&&i&&!t.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=t=>{cs(t)&&this.state.isTooltipVisible&&this.setState({isTooltipVisible:!1})};handleUpdatesDescription=(t,s)=>{const{props:{isFlipped:o,isActiveSide:r},state:{isLongOverflow:a}}=this;t.isFlipped!==o&&r&&this.scrollDescriptionToTop(),this.handleUpdatesDescriptionSize(t,s),!s.isLongOverflow&&a?(this.setLongBottomObserver(),this.setScrollbarWidth()):s.isLongOverflow&&!a&&this.cleanupLongBottomObserver()};handleUpdatesDescriptionSize=(t,s)=>{const{INSERTING:o,DELETING:r}=Or.descriptionActionTypes,{props:{description:a,size:i,type:c,getL10nValue:d},state:{descriptionAction:l,isLong:h,isLongOverflow:m}}=this,p=d(a)?.length||0,v=d(t.description)?.length||0;l!==o&&p>v?this.setState({descriptionAction:o}):l!==r&&p<v?this.setState({descriptionAction:r}):(l!==s.descriptionAction||h!==s.isLong||m!==s.isLongOverflow||i!==t.size||c!==t.type||p!==v)&&this.checkDescriptionSize(t)};checkDescriptionSize=t=>{const{DELETING:s}=Or.descriptionActionTypes,{props:{size:o},refDescription:{current:r},state:{descriptionAction:a,isLong:i,isLongOverflow:c}}=this;if(!r)return;r&&r.scrollHeight>r.clientHeight?i&&!c?this.setState({isLongOverflow:!0}):!i&&!c&&this.setState({isLong:!0}):(a===s||o!==t.size)&&this.setState(Or.initialState)};scrollDescriptionToTop=()=>{const t=this.refDescription.current;this.state.isLong&&t&&(t.scrollTop=0)};setLongBottomObserver=()=>{const t=this.refDescriptionBottom.current;if(t&&this.longBottomObserver==null){const s=o=>{const r=o?.[0]?.isIntersecting??!1;this.setState({isAtLongOverflowBottom:!r})};this.longBottomObserver=new IntersectionObserver(s,{threshold:[0,1]}),this.longBottomObserver.observe(t)}};cleanupLongBottomObserver=()=>{this.longBottomObserver?.disconnect?.(),this.longBottomObserver=void 0};setScrollbarWidth=()=>{const t=this.refDescription.current;if(t){const s=t.offsetWidth-t.clientWidth;s>0&&this.setState({scrollbarWidthOffset:s})}}}const $9=Al(Ke(e=>(0,n.jsx)(Or,{...e}))),Zq=e=>{const{cardMode:t,customBackgroundColorContrast:s}=Yt(),o=Re()?.theme,r=Rl(),a=En(),c=a===q.IMAGE&&r?.overlayColor===nt.LIGHT,d=xs(),l=o?.accentContrast,h=l===pe.AUTO,m=(0,u.useMemo)(()=>{let v="#fafafa";if(t===Fs.TRANSPARENT)switch(a){case q.DARK:v="#525252";break;case q.BLACK:v="#1a1a1a";break;case q.IMAGE:c?v="rgba(0, 0, 0, 0.7)":v="rgba(255, 255, 255, 0.7)";break;case q.ACCENT:case q.COLOR:case q.TINT:if(d!=null)switch(fa(d)){case ct.LIGHT:v=sn(.5,d);break;case ct.MED:v=In(.35,d);break;case ct.DARK:v=In(.65,d);break;case ct.NEAR_BLACK:v=sn(.1,d);break}}const C={"--color-background":v},g=a===q.COLOR?s:l;if((a===q.ACCENT||a===q.COLOR)&&t===Fs.TRANSPARENT&&h){const x=Rt({backgroundColor:v,contrast:g});C["--color-text"]=x}return C},[d,a,t,s,h,c,l]),p={...e,style:m};return(0,n.jsx)($9,{...p})},Yq=({alt:e,className:t,imageId:s,l10nId:o,url:r})=>{const a=lr(e);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(Ls,{alt:a,className:t,"data-l10n-id":o,id:s,src:r}),!a&&(0,n.jsx)("span",{className:"visually-hidden-always",children:"No image alternative text"})]})};class Xq extends u.Component{static defaultProps={editable:!1,isRTL:!1,items:[],onStep:()=>{},stack:!1};state={activeIndex:0,flipStateMap:{},prefersKeyboardNavigation:!0};render(){const{blockId:t,animateBlockEntrance:s,initiallyVisible:o,isHidden:r,isLearner:a,items:i,labels:c,lessonId:d,onStep:l,previewType:h,isRTL:m,settings:p,stack:v}=this.props,{activeIndex:C}=this.state,{prefersKeyboardNavigation:g}=this.state,{entranceAnimation:x,showHint:L}=p,T=G()("block-flashcards",{"block-flashcard--column":!v,"block-flashcard--stack":v,"block-flashcards--no-animation":!x}),b=p.flashcardSize==="1"?"small":p.flashcardSize==="2"?"large":i.length>2?"small":"large",S=h===rr.MOBILE_PORTRAIT||h===rr.MOBILE_LANDSCAPE;return(0,n.jsx)(Ie,{className:T,children:v?(0,n.jsx)(Pe,{animateBlockEntrance:s,initiallyVisible:o,isLearner:a,children:(0,n.jsx)("div",{className:"block-flashcard-carousel",children:(0,n.jsx)(cu,{blockId:t,items:i,children:({carouselRef:N})=>(0,n.jsx)(au,{iconNameLeft:"chevron-left",iconNameRight:"chevron-right",isInfinite:!1,isRTL:m,labelCarousel:c?.a11yBlockFlashcardStack,labelCarouselRoleDesc:c?.a11yBlockFlashcardStackRoleDescription,labelSlideControls:c?.a11yBlockFlashcardStackSlideControls,labelSlideControlsGoToNext:c?.a11yBlockFlashcardStackSlideControlsGoToNext,labelSlideControlsGoToPrevious:c?.a11yBlockFlashcardStackSlideControlsGoToPrevious,labelSlideControlsGoToSlide:c?.a11yBlockFlashcardStackSlideControlsGoToSlide,labelSlideCounterPreposition:c?.blocksPreposition,labelSlidePreposition:c?.a11yBlockFlashcardStackSlidePreposition,labelSlideRoleDesc:c?.a11yBlockFlashcardStackSlideRoleDescription,onChange:this.handleCarouselChange.bind(this),ref:N,shouldMouseEmulateTouch:S,shouldUseCounter:!0,shouldUseGoToSlide:!1,children:i.map((k,E)=>(0,n.jsx)(z9,{activeIndex:C,backDescription:k?.back?.description,backMedia:k?.back?.media,backType:k?.back?.type,frontDescription:k?.front?.description,frontMedia:k?.front?.media,frontType:k?.front?.type,id:k?.id,index:E,isHidden:r,labels:c,lessonId:d,onFlip:this.handleFlip.bind(this),onStep:l,prefersKeyboardNavigation:g,settingShowHint:L,size:"large",type:"stack",wrapElement:"div"},k?.id))})})})}):(0,n.jsx)(Pe,{animateBlockEntrance:s,className:"block-flashcards__animation",initiallyVisible:o,isLearner:a,siblingDelay:.25,children:(0,n.jsx)("ol",{className:"block-flashcards__wrapper",role:"list",children:i.map((N,k)=>(0,n.jsx)(z9,{activeIndex:C,backDescription:N?.back?.description,backMedia:N?.back?.media,backType:N?.back?.type,blockId:t,frontDescription:N?.front?.description,frontMedia:N?.front?.media,frontType:N?.front?.type,id:N?.id,index:k,isHidden:r,labels:c,lessonId:d,onStep:l,prefersKeyboardNavigation:g,settingShowHint:L,size:b,type:"grid",wrapElement:"li",wrapRole:"listitem"},N?.id))})})})}componentDidMount(){document.addEventListener("keydown",this.handleKeyDown),document.addEventListener("mousedown",this.handleMouseDown)}componentWillUnmount(){document.removeEventListener("keydown",this.handleKeyDown),document.removeEventListener("mousedown",this.handleMouseDown)}handleKeyDown=t=>{!this.state.prefersKeyboardNavigation&&!SV(t)&&this.setState({prefersKeyboardNavigation:!0})};handleMouseDown=()=>{this.state.prefersKeyboardNavigation&&this.setState({prefersKeyboardNavigation:!0})};handleFlip(t,s){this.setState(o=>({flipStateMap:{...o.flipStateMap,[t]:s}}))}handleCarouselChange(t){const{block:s,onTranscriptUpdate:o}=this.props,{flipStateMap:r}=this.state,a=r[t]?"back":"front",i=s.items?.[t],c=i?.[a]?.media,d=`items:${s?.id}/items:${i?.id}/${a}`;o?.({audioPlayerId:pn({refs:d}),transcriptMedia:c}),this.setState({activeIndex:t})}}const _9=ip(Ke(Al(Xq))),wp=_("pill-button");function U9({allowTabNavigation:e=!0,ariaLabel:t,children:s,className:o,href:r,onClick:a=()=>{},onFocus:i,ref:c,size:d="sm",testId:l,variant:h="plain"}){const m=wp({[h]:!0,[d]:!0}).mix(o),p=!e;return r?(0,n.jsx)(is,{"aria-hidden":p,"aria-label":t,className:m,"data-testid":l,onClick:a,onFocus:i,tabIndex:e?void 0:-1,to:r,children:(0,n.jsx)("span",{className:wp("content"),children:s})}):(0,n.jsx)("button",{"aria-hidden":p,"aria-label":t,className:m,"data-testid":l,onClick:a,onFocus:i,ref:c,tabIndex:e?void 0:-1,type:"button",children:(0,n.jsx)("span",{className:wp("content"),children:s})})}const G9=({canProceed:e,isReduceMotion:t,onNext:s,onSubmit:o,quizNext:r,quizSubmit:a,allowNext:i=!1})=>{const c=e?!0:void 0,d=e?void 0:o,l=e?-1:void 0,h=e?void 0:!0,m=e?s:void 0,p=e?void 0:-1,v=(0,u.useRef)(null),C=(0,je.A)(e);(0,u.useEffect)(()=>{i&&!C&&e&&setTimeout(()=>{v.current?.focus?.({preventScroll:t})},0)},[i,e,t,C]);const g=G()("quiz-card__actions",{"quiz-card__actions--proceed":e}),x=G()("quiz-card__button","quiz-card__button--next","brand_ui",{"brand--background":e,"visually-hidden-always":!e});return(0,n.jsxs)("div",{className:g,children:[(0,n.jsx)("div",{className:"quiz-card__submit brand--ui",children:!c&&(0,n.jsx)("button",{className:"quiz-card__button","data-testid":"quiz-submit-button",onClick:d,tabIndex:l,type:"button",children:a})}),(0,n.jsx)("br",{className:"visually-hidden-always",role:"presentation"}),i&&(0,n.jsx)("div",{className:"quiz-card__next brand--ui",children:(0,n.jsx)("button",{"aria-disabled":h,"aria-hidden":h,className:x,"data-testid":"quiz-next-button",onClick:m,ref:v,tabIndex:p,type:"button",children:r})})]})},Jq=({children:e,isActive:t,isComplete:s,isTimedQuiz:o,style:r})=>(0,n.jsx)("div",{"aria-hidden":t?void 0:!0,className:qq({isActive:t,isComplete:s,isTimedQuiz:o}),"data-testid":"quiz-card",inert:t?void 0:!0,style:r,children:(0,n.jsx)("div",{className:"quiz-card__container",children:(0,n.jsx)("div",{className:"quiz-card__row",children:(0,n.jsx)("div",{className:"quiz-card__main",children:e})})})}),qq=({isActive:e,isComplete:t,isTimedQuiz:s})=>G()("quiz-card",{"quiz-card--active":e,"quiz-card--done":t,"quiz-card--timed":s}),W9=Jq,{FILL_IN_THE_BLANK:K9,MATCHING:eee,MULTIPLE_CHOICE:tee,MULTIPLE_RESPONSE:see}=Kt;function nee(e,t){return e.map(s=>String(t(s?.title)??"")).filter(Boolean).join(", ")}function oee(e,t,s){const o=t!=null?e.find(r=>r.id===t):e.find(r=>r.correct===!0);return String(s(o?.title)??"")}function ree(e,t,s){return String(s(e?.[t]?.title)??"")}function Q9(e,t,s){return t.filter(e).reduce((o,r,a)=>{const i=String(s(r?.title)??"");return a===0?i:o+", "+i},"")}function aee(e,t,s){return Q9(r=>Array.isArray(e)?e.includes(r.id):!!r.correct,t,s)}function iee(e,t,s){return Q9((r,a)=>t.includes(a),e,s)}function cee({answers:e,getL10nValue:t,selection:s,correctLabel:o,userLabel:r,matchLabel:a="Match Item: ",revealAnswers:i}){const c=Object.fromEntries(Object.entries(s).map(([d,l])=>[l,d]));return e.map((d,l)=>{const h=String(t(d?.title)??""),m=String(t(d?.matchTitle)??""),p=c?.[l],v=String(t(e?.[Number(p)]?.title)??"");return i===Ee.INCORRECT?`${a}${m}. ${r}: ${v}.`:`${a}${m}. ${o}: ${h}. ${r}: ${v}.`}).join(" ")}function Ap({correctAnswer:e,selectedAnswer:t,correctLabel:s,userLabel:o,revealAnswers:r}){return!e||!t||r===Ee.NONE?"":r===Ee.INCORRECT?`${o}: ${yn(t)}.`:`${s}: ${yn(e)}. ${o}: ${yn(t)}.`}function lee(e,t){return e.type===K9?t?.quizAcceptableResponses:t?.a11yCorrectLive}function dee({getL10nValue:e,isComplete:t,item:s,selection:o,labels:r,revealAnswers:a}){if(!s||!t)return null;const i=s?.answers??[],c=s?.correct,d=s?.corrects,l=lee(s,r),h=r?.a11yAnswerLive;switch(s.type){case eee:return cee({getL10nValue:e,answers:i,selection:o,correctLabel:l,userLabel:h,revealAnswers:a});case K9:return Ap({correctAnswer:nee(i,e),selectedAnswer:o,correctLabel:l,userLabel:h,revealAnswers:a});case tee:return Ap({correctAnswer:oee(i,c,e),selectedAnswer:ree(i,o,e),correctLabel:l,userLabel:h,revealAnswers:a});case see:return Ap({correctAnswer:aee(d,i,e),selectedAnswer:iee(i,o,e),correctLabel:l,userLabel:h,revealAnswers:a})}return null}const Z9=({canProceed:e,feedbackRef:t,feedbackValue:s,isActive:o,isComplete:r,isCorrect:a,item:i,labels:c,quizCorrect:d,quizIncorrect:l,revealAnswers:h,selection:m})=>{const{announcePolite:p,clearAnnouncements:v}=qn(),C=(0,je.A)(e),g=vs(),L=!!Te(s),T=a?d:l,y=(0,u.useCallback)(()=>{const N=dee({getL10nValue:g,isComplete:r,item:i,labels:c,revealAnswers:h,selection:m}),k=s?yn(g(s)):"",E=T+". "+N+" "+k;let I;return E&&(I=setTimeout(()=>{p(E)},250)),()=>{clearTimeout(I)}},[p,s,g,r,i,c,T,h,m]);(0,u.useLayoutEffect)(()=>{!C&&e&&h!==Ee.NONE&&y()},[e,C,y,h]),(0,u.useEffect)(()=>v,[v]);const b=G()("quiz-card__feedback",{"quiz-card__feedback--active":e,"quiz-card__feedback--frame":L}),S=G()("quiz-card__feedback-icon",{"quiz-card__feedback-icon--correct":a});return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)("div",{"aria-hidden":o?void 0:!0,className:b,ref:t,tabIndex:o?-1:void 0,children:(0,n.jsx)("div",{className:"quiz-card__main--feedback",children:(0,n.jsxs)("div",{"aria-label":c?.a11yQuizFeedback,className:"quiz-card__feedback-wrap",role:"group",children:[(0,n.jsx)("div",{className:S,children:(0,n.jsx)("i",{"aria-hidden":"true",className:a?"icon icon-Master-05":"icon icon-Master-06"})}),(0,n.jsx)("div",{className:"quiz-card__feedback-label",children:T}),s&&(0,n.jsx)("div",{children:(0,n.jsx)(be,{allowTabNavigation:r&&o,className:"quiz-card__feedback-text",value:s})})]})})})})},{FILL_IN_THE_BLANK:uee}=Kt,hee=({children:e,type:t})=>(0,n.jsx)("div",{className:mee({type:t}),children:e}),mee=({type:e})=>G()("quiz-card__interactive",{"quiz-card__interactive--no-border":[uee].includes(e)}),Y9=hee,Fo=({allowTabNavigation:e,blockId:t,enableVideoPlaybackSpeed:s,index:o,isOverlayAudio:r,item:a,labels:i,media:c,settings:d,shouldPause:l})=>c==null||!Object.keys(c).some(h=>h!=="tmp")?null:(0,n.jsx)("div",{className:"quiz-card__media",children:(0,n.jsx)(_t,{allowTabNavigation:e,blockId:t,enableVideoPlaybackSpeed:s,index:o,isOverlayAudio:r,item:a,labels:i,media:c,opts:d,shouldPause:l})}),Xge=(e,t)=>s=>s>=e&&s<t,X9=e=>e<10?`0${e}`:String(e),pee=e=>Intl.NumberFormat(void 0,{style:"percent",maximumFractionDigits:2}).format(e),J9=e=>e.reduce((t,s)=>s==null||isNaN(s)?t:t+s,0),fee=(e,t)=>{const s=Ns(),o=(0,je.A)(t);(0,u.useEffect)(()=>{!o&&t&&e&&Id()(e.focus)&&e.focus({preventScroll:s})},[t,s,o,e])},bu=_("question-counter"),gee=({isActive:e=!1,labels:t,questionLabel:s,questionNumber:o,totalQuestions:r})=>{const a=(0,u.useRef)(null);fee(a.current,e);const i=`${t?.quizQuestion} ${o} ${t?.lessonPreposition} ${r}`,c=`${X9(o)}/${X9(r)}`;return(0,n.jsx)("div",{className:bu(),children:(0,n.jsxs)("h1",{"aria-label":i,className:bu("heading"),ref:a,tabIndex:-1,children:[(0,n.jsx)("span",{"aria-hidden":"true",className:bu("label"),children:s}),(0,n.jsx)("span",{"aria-hidden":"true",className:bu("count"),children:c})]})})},vee=_("question-title"),Cee=({allowTabNavigation:e,htmlId:t,value:s})=>(0,n.jsx)(be,{allowTabNavigation:e,className:vee(),"data-testid":"quiz-question-title",id:t,value:s}),xee=({allowTabNavigation:e,correctAnswerColor:t,correctAnswerColorContrast:s,errorMessageId:o,incorrectAnswerColor:r,incorrectAnswerColorContrast:a,isComplete:i,isCorrect:c,labels:d,onEnterToSubmit:l=Function.prototype,onChange:h=Function.prototype,options:m,questionHtmlId:p,quizAcceptableResponses:v,quizAnswerPlaceholder:C,revealAnswers:g,value:x})=>{const L=(0,u.useRef)(null),[T]=(0,u.useState)(()=>Po()("fitb-")),y=vs(),b=bee({options:m,getL10nValue:y}),S=`${T}-feedback`,N=`${T}-acceptable`,k=`${T}-input`,E=i?`${S} ${N}`:o||void 0,I=i?void 0:C,P=e?0:mu,A=g===Ee.ALL||g===Ee.INCORRECT,w=g===Ee.ALL||c&&g===Ee.INCORRECT,O=c?t:r,R=t&&r&&{"--fa-primary-color":Rt({backgroundColor:O,contrast:c?s:a}),"--fa-secondary-color":O},M=r&&{backgroundColor:Rt({backgroundColor:r,contrast:a}),fill:r,borderRadius:"50%"},z=G()("quiz-fill__icon",{"quiz-fill__icon--visible":i}),$=G()("quiz-fill__options",{"quiz-fill__options--visible":i}),H=(0,u.useCallback)(J=>{h(J.currentTarget.value)},[h]),F=(0,u.useCallback)(J=>{Ca(J)&&l(J)},[l]),K=i?void 0:H,Q=i?void 0:F;return(0,n.jsxs)("div",{className:"quiz-fill",children:[(0,n.jsxs)("div",{className:"quiz-fill__container",children:[(0,n.jsx)("input",{"aria-describedby":E,"aria-hidden":!e,"aria-invalid":o?!0:void 0,"aria-labelledby":p,"aria-readonly":i,"aria-required":"true",autoComplete:"off",className:"quiz-fill__input ignore-prefers",id:k,onChange:K,onKeyDown:Q,placeholder:I,readOnly:i,ref:L,tabIndex:P,type:"text",value:x}),A&&(0,n.jsxs)("div",{className:z,id:S,children:[c&&(0,n.jsx)(ie,{"aria-label":d?.quizCorrect,name:"circle-check",styleIcon:{height:"2rem",...R}}),!c&&(0,n.jsx)($F,{"aria-label":d?.quizIncorrect,style:M})]})]}),w&&i&&(0,n.jsx)("div",{className:$,id:N,children:(0,n.jsx)(be,{value:`${v}: ${b}`})})]})},bee=({options:e,getL10nValue:t})=>e.map(o=>(t(o.title)??"").trim()).join(", "),q9=xee;function yee({correctAnswerColor:e,correctAnswerColorContrast:t}){const s=gs(),o=Rt({backgroundColor:e,contrast:t}),r=e?{"--fa-primary-color":o,"--fa-secondary-color":e}:void 0;return(0,n.jsxs)("div",{className:"matching-results-item-feedback",children:[(0,n.jsx)(ie,{className:"matching-results-item-feedback-icon matching-results-item-feedback-icon--correct",name:"circle-check",style:r}),(0,n.jsx)("span",{className:"matching-results-item-feedback-text",children:(0,n.jsx)("span",{className:"matching-results-item-feedback-text-result",children:s?.quizCorrect})})]})}var Ka=f(80588);function Lee({correctAnswerValue:e,incorrectAnswerColor:t,incorrectAnswerColorContrast:s,shouldRevealCorrectAnswer:o}){const[r,a]=Ka.useState(!0),[i,c]=Ka.useState(!1),d=Ka.useRef(null),h=`matching-text-${Ka.useId()}`,m=gs(),p=(0,je.A)(e),v=Ka.useCallback(()=>{a(b=>!b)},[]);Ka.useLayoutEffect(()=>{if(p!==e){const b=d.current;b!=null&&b.scrollWidth>b.clientWidth&&c(!0)}},[p,e]);const C=Rt({backgroundColor:t,contrast:s}),g=t?{"--fa-primary-color":C,"--fa-secondary-color":t}:void 0,x=G()("matching-results-item-feedback-text",{"matching-results-item-feedback-text--collapsed":r}),L=G()("matching-results-item-feedback-text-btn-icon",{"matching-results-item-feedback-text-btn-icon--collapsed":r}),T=G()("matching-results-item-feedback-text-extra",{"matching-results-item-feedback-text-extra--collapsed":r}),y=G()("matching-results-item-feedback-text-extra-text",{"matching-results-item-feedback-text-extra-text--collapsed":r});return(0,n.jsxs)("div",{className:"matching-results-item-feedback",children:[(0,n.jsx)(ie,{className:"matching-results-item-feedback-icon matching-results-item-feedback-icon--incorrect",name:"circle-xmark-duotone",style:g}),!o&&(0,n.jsx)("span",{className:"matching-results-item-feedback-text",children:(0,n.jsx)("span",{className:"matching-results-item-feedback-text-result",children:m?.quizIncorrect})}),o&&(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("span",{className:x,children:[(0,n.jsxs)("span",{className:"matching-results-item-feedback-text-result",children:[m?.quizIncorrect,"."]}),i&&(0,n.jsx)("button",{"aria-controls":h,"aria-expanded":!r,"aria-label":r?m?.a11yMatchingItemShowMore:m?.a11yMatchingItemShowLess,className:"matching-results-item-feedback-text-btn",onClick:v,type:"button",children:(0,n.jsx)(ie,{className:L,name:"caret-down",style:g})}),(0,n.jsx)("span",{className:T,children:(0,n.jsxs)("span",{className:y,id:h,ref:d,children:[m?.quizCorrect,": ",(0,n.jsx)(lt,{value:e})]})})]})})]})}function See({col1Id:e,col1Value:t,col2Id:s,col2Value:o,correctAnswerColor:r,correctAnswerColorContrast:a,correctAnswerValue:i,height:c,incorrectAnswerColor:d,incorrectAnswerColorContrast:l,revealAnswers:h}){const m=e===s,p=h!=="incorrect",v=h!=="none";return(0,n.jsxs)("li",{className:"matching-results-item",role:"listitem",children:[(0,n.jsxs)("div",{className:"matching-results-item-pieces",children:[(0,n.jsxs)("div",{className:"matching-results-item-piece",style:c?{height:c}:void 0,children:[(0,n.jsx)("span",{className:"matching-results-item-piece-decoration"}),(0,n.jsx)("span",{className:"matching-results-item-piece-jigsaw"}),(0,n.jsx)("span",{className:"matching-results-item-piece-content",children:(0,n.jsx)("span",{"data-matching-results-item-piece-content-inline":"",children:(0,n.jsx)(lt,{value:t})})})]}),(0,n.jsxs)("div",{className:"matching-results-item-piece",children:[(0,n.jsx)("span",{className:"matching-results-item-piece-decoration"}),(0,n.jsx)("span",{className:"matching-results-item-piece-jigsaw"}),(0,n.jsx)("span",{className:"matching-results-item-piece-content",children:(0,n.jsx)("span",{"data-matching-results-item-piece-content-inline":"",children:(0,n.jsx)(lt,{value:o})})})]})]}),v&&m&&(0,n.jsx)(yee,{correctAnswerColor:r,correctAnswerColorContrast:a}),v&&!m&&(0,n.jsx)(Lee,{correctAnswerValue:i,incorrectAnswerColor:d,incorrectAnswerColorContrast:l,shouldRevealCorrectAnswer:p})]})}function Tee({answers:e,columnBehavior:t,correctAnswerColor:s,correctAnswerColorContrast:o,incorrectAnswerColor:r,incorrectAnswerColorContrast:a,itemHeight:i,revealAnswers:c,rows:d}){return(0,n.jsx)("div",{className:"matching-results",children:(0,n.jsx)("ul",{className:"matching-results-list",role:"list",children:d.map((l,h)=>{const[m,p]=l,v=t==="freezeFirst"?e.find(C=>C.id===m.id)?.matchTitle:e.find(C=>C.id===p.id)?.title;return(0,n.jsx)(See,{col1Id:m.id,col1Value:m.value,col2Id:p.id,col2Value:p.value,correctAnswerColor:s,correctAnswerColorContrast:o,correctAnswerValue:v,height:i,incorrectAnswerColor:r,incorrectAnswerColorContrast:a,revealAnswers:c},h)})})})}function Nee(e){return Object.keys(e).length===0}function kee(e,t){return t in e}function Iee(e,t){return Object.values(e).includes(t)}function Rp(e,t){for(const s in e)if(e[s]===t)return s}function Eee(e,t,s){return{...e,[t]:s}}function yu(e,t){return t in e?Et(e,[t]):e}function jee(e,t){const s=Rp(e,t);return s===void 0?e:yu(e,s)}function e8(e,t,s){let o=yu(e,t);return o=jee(o,s),Eee(o,t,s)}function wee(e){return Object.keys(e).length}var Aee=f(93696),Pp=f.n(Aee);Pp().dynamicDrop(!0),Pp().pointerMoveTolerance(8);const Fn=Pp();var Qa=f(80588);function Ree(e,{onStart:t,onMove:s,onEnd:o,isEnabled:r=!0}){const a=Qa.useRef({x:0,y:0}),i=Qa.useRef({x:0,y:0}),c=Qa.useRef(!1),d=Qa.useRef(null),l=Qa.useRef(void 0);Qa.useEffect(()=>{const h=e.current;if(!h||!r||c.current)return;d.current=n_(h);function m(){const p=d.current;return p instanceof Window?{x:window.scrollX,y:window.scrollY}:{x:p.scrollLeft,y:p.scrollTop}}return l.current=()=>{const p=m(),v=p.x-i.current.x,C=p.y-i.current.y;(v!==0||C!==0)&&(a.current.x+=v,a.current.y+=C,e.current&&(e.current.style.transform=`translate3d(${a.current.x}px, ${a.current.y}px, 0)`,s?.({...a.current})),i.current=p)},Fn(h).draggable({inertia:!1,autoScroll:{container:d.current,distance:5,interval:10,margin:50},listeners:{start:()=>{a.current={x:0,y:0},i.current=m(),d.current?.addEventListener("scroll",l.current,{passive:!0}),t?.()},move:p=>{a.current.x+=p.dx,a.current.y+=p.dy,h.style.transform=`translate3d(${a.current.x}px, ${a.current.y}px, 0)`,s?.({...a.current})},end:()=>{a.current={x:0,y:0},h.style.transform="",d.current?.removeEventListener("scroll",l.current),setTimeout(()=>{o?.()},0)}}}),c.current=!0,()=>{Fn(h).unset(),d.current?.removeEventListener("scroll",l.current),c.current=!1}},[e,t,s,o,r])}var t8=f(80588);function Pee(e,{isEnabled:t=!0,onDrop:s,onEnter:o,onLeave:r,overlap:a=.015}){const i=t8.useRef(!1);t8.useEffect(()=>{const c=e.current;if(!(!c||!t||i.current))return Fn(c).dropzone({overlap:a,listeners:{drop:()=>{s?.()},dragenter:()=>{o?.()},dragleave:()=>{r?.()}}}),i.current=!0,()=>{Fn(c).unset(),i.current=!1}},[e,s,o,r,t,a])}var Qs=f(80588);const s8=Qs.memo(function({col:t,height:s,id:o,index:r,isActive:a,isFrozen:i,isMatched:c,isMoved:d,onClick:l,onDragEnd:h,onDragStart:m,onDrop:p,onDropZoneEnter:v,onDropZoneLeave:C,onKeyDown:g,value:x,valueOtherColumnActive:L,valueOtherColumnMatch:T}){const[y,b]=Qs.useState(!1),S=Qs.useRef(null),N=Qs.useRef(null),k=gs(),E=Qs.useCallback(()=>{l({col:t,id:o,value:x})},[t,o,l,x]),I=Qs.useCallback(()=>{b(!0),m({col:t,id:o,value:x})},[t,o,m,x]),P=Qs.useCallback(()=>{h(),b(!1)},[h]),A=Qs.useCallback(()=>{p({col:t,id:o,value:x})},[t,o,p,x]),w=Qs.useCallback(()=>{v({col:t,id:o,value:x})},[t,o,v,x]),O=Qs.useCallback(()=>{C()},[C]),j=Qs.useCallback(H=>{g(H,{col:t,index:r})},[t,r,g]);Qs.useEffect(()=>{t===1&&r===0||N.current?.setAttribute("tabindex","-1")},[]),Ree(S,{isEnabled:!i,onStart:I,onEnd:P}),Pee(S,{isEnabled:i,onDrop:A,onEnter:w,onLeave:O});const R=G()("matching-interaction-piece",{"matching-interaction-piece--matched":c,"matching-interaction-piece--moved":d}),M=T==null?null:(0,n.jsxs)(n.Fragment,{children:[k?.a11yMatchingItemMatchedWith," ",(0,n.jsx)(lt,{value:T})]}),z=L==null?(0,n.jsx)(n.Fragment,{children:k?.a11yMatchingItemSelectableItem}):(0,n.jsxs)(n.Fragment,{children:[k?.a11yMatchingItemMatchWith," ",(0,n.jsx)(lt,{value:L})]}),$=G()("matching-interaction-item",{draggable:!i,"draggable--dragging":!i&&y,droppable:i});return(0,n.jsx)("li",{className:$,ref:S,role:"listitem",children:(0,n.jsxs)("button",{"aria-pressed":a||c?!0:void 0,className:R,"data-state":a?"active":void 0,onClick:y?void 0:E,onKeyDown:j,ref:N,style:s?{height:s}:void 0,type:"button",children:[i?(0,n.jsx)("span",{className:"matching-interaction-piece-decoration"}):(0,n.jsx)(ie,{className:"matching-interaction-piece-decoration",name:"grip-dots-vertical"}),t===2?(0,n.jsx)("span",{className:"matching-interaction-piece-jigsaw"}):null,(0,n.jsx)("span",{className:"matching-interaction-piece-content",children:(0,n.jsx)("span",{"data-matching-interaction-piece-content-inline":"",children:(0,n.jsx)(lt,{value:x})})}),(0,n.jsx)("span",{className:"visually-hidden-always",children:M}),(0,n.jsx)("span",{className:"visually-hidden-always",children:z})]},o)})});var Ve=f(80588);function Mee({answers:e,columnBehavior:t,isActive:s,itemHeight:o,matches:r,onChange:a,onChangeItemHeight:i,onChangeRows:c,prefersKeyboardNavigation:d}){const l=(0,je.A)(s),h=(0,je.A)(t),m=(0,je.A)(e),p=(0,je.A)(r),v=gs(),[C,g]=Ve.useState(void 0),[x,L]=Ve.useState(void 0),[T,y]=Ve.useState(void 0),[b,S]=Ve.useState(!1),N=Ve.useRef(null),k=Ve.useRef(null),E=Ve.useRef(null),I=Ve.useRef(void 0),P=Ve.useRef(void 0),[A,w]=Ve.useState(()=>Lu({answers:e,columnBehavior:t,columnBehaviorToShuffle:"freezeSecond"})),[O,j]=Ve.useState(()=>Lu({answers:e,columnBehavior:t,columnBehaviorToShuffle:"freezeFirst"})),R=Ve.useMemo(()=>e.map(B=>({col:1,id:B.id,value:B.title})).toSorted((B,W)=>{const Z=A.get(B.id)??1/0,X=A.get(W.id)??1/0;return Z-X}),[e,A]),M=Ve.useMemo(()=>e.map(B=>({col:2,id:B.id,value:B.matchTitle})).toSorted((B,W)=>{const Z=O.get(B.id)??1/0,X=O.get(W.id)??1/0;return Z-X}),[e,O]),z=Ve.useCallback(()=>{for(const V of N.current?.querySelectorAll('button:not([tabindex="-1"])')??[])V.setAttribute("tabindex","-1")},[]),$=Ve.useCallback(V=>{const B=Array.from(A),W=Array.from(O);if(t==="freezeSecond"){const Z=new Array(W.length),X=B.map(re=>re[0]).filter(re=>!(re in V));for(const[re,me]of Object.entries(V)){const he=O.get(me);Z[he]=[re,he]}for(let re=0;re<Z.length;re++)if(Z[re]==null){const me=X.shift();Z[re]=[me,re]}const Y=new Map(Z),oe=n8(A,Y);oe.length>0&&L(oe),w(Y)}else{const Z=new Array(B.length),X=new Set(Object.values(V)),Y=W.map(me=>me[0]).filter(me=>!X.has(me));for(const[me,he]of Object.entries(V)){const Oe=A.get(me);Z[Oe]=[he,Oe]}for(let me=0;me<Z.length;me++)if(Z[me]==null){const he=Y.shift();Z[me]=[he,me]}const oe=new Map(Z),re=n8(O,oe);re.length>0&&y(re),j(oe)}},[t,A,O]),H=Ve.useCallback(V=>{I.current=V},[]),F=Ve.useCallback(()=>{P.current==null&&(I.current=void 0)},[]),K=Ve.useCallback(V=>{P.current=V},[]),Q=Ve.useCallback(()=>{P.current=void 0},[]),J=Ve.useCallback(V=>{const B=I.current;if(B!=null){const W=V.col===1?V.id:B.id,Z=V.col===1?B.id:V.id,X=e8(r,W,Z);I.current=void 0,P.current=void 0,a(X)}},[r,a]),te=Ve.useCallback(V=>{let B=null,W=!1,Z=C;if(V.col===1&&V.id in r)B=yu(r,V.id),Z=null;else if(V.col===2&&Rp(r,V.id)){const X=Rp(r,V.id);B=yu(r,X),Z=null}else C==null&&(Z={col:V.col,id:V.id,value:V.value},W=!0);if(C!=null)if(C.col===V.col)C.id===V.id?Z=null:Z={col:V.col,id:V.id,value:V.value};else{const X=V.col===1?V.id:C.id,Y=V.col===1?C.id:V.id;B=e8(r,X,Y),W=!0,Z=null}if(B!=null&&a(B),C!==Z&&g(Z),W){const Y=(V.col===1?E:k).current?.querySelector('button:not([aria-pressed="true"])');Y&&(z(),Y.removeAttribute("tabindex"),Y.focus({preventScroll:!d}))}},[d,C,r,a,z]),D=Ve.useCallback((V,{col:B,index:W})=>{const Z=V.currentTarget;let X=!1,Y=null;switch(V.key){case"ArrowUp":X=!0,Y=Z.parentElement.previousElementSibling?.firstElementChild;break;case"ArrowDown":X=!0,Y=Z.parentElement.nextElementSibling?.firstElementChild;break;case"ArrowRight":X=!0,Y=B===1?E.current?.children[W]?.firstElementChild:void 0;break;case"ArrowLeft":X=!0,Y=B===2?k.current?.children[W]?.firstElementChild:void 0;break;case"Home":X=!0,Y=Z.closest("ul").firstElementChild.firstElementChild;break;case"End":X=!0,Y=Z.closest("ul").lastElementChild.firstElementChild;break}X&&(V.preventDefault(),V.stopPropagation()),Y&&(z(),Y.removeAttribute("tabindex"),Y.focus())},[z]);Ve.useEffect(()=>{r!==p&&!Nee(r)&&$(r)},[$,r,p]),Ve.useEffect(()=>{const V=({shouldFocus:Z})=>{const X=C.col===1?k:E;z();const Y=X.current.querySelector('button[data-state="active"]');Y?.removeAttribute("tabindex"),Z&&Y?.focus(),g(null)},B=Z=>{N.current?.contains(Z.target)||V({shouldFocus:!1})},W=Z=>{cs(Z)&&C!=null&&V({shouldFocus:!0})};return C==null?(document.removeEventListener("mousedown",B),document.removeEventListener("keydown",W)):(document.addEventListener("mousedown",B),document.addEventListener("keydown",W)),()=>{document.removeEventListener("mousedown",B),document.removeEventListener("keydown",W)}},[C,z]);const U=Ve.useCallback(()=>{const V=Array.from(N.current?.querySelectorAll("[data-matching-interaction-piece-content-inline]")??[]);if(V.length===0)return;const B=V[0].closest("button");let W=0,Z;if(B){const Y=window.getComputedStyle(B),oe=parseFloat(Y.paddingBlockStart)+parseFloat(Y.paddingBlockEnd),re=parseFloat(Y.borderTopWidth)+parseFloat(Y.borderBottomWidth);W=oe+re,Z=parseFloat(Y.minHeight)}const X=V.reduce((Y,oe)=>Math.max(Y,oe.scrollHeight+W),0);Z&&Z>=X?i(void 0):i(X)},[i]);return Ve.useEffect(()=>{(!l&&s||m!==e)&&U()},[l,s,e,m,U]),Ve.useEffect(()=>{const V=N.current?.closest(".quiz-card");let B;return V!=null&&(B=new ResizeObserver(()=>{U()}),B.observe(V)),()=>{V!=null&&B!=null&&B.unobserve(V)}},[U]),Ve.useEffect(()=>{let V,B;return x&&(V=setTimeout(()=>{L(void 0)},1e3)),T&&(B=setTimeout(()=>{y(void 0)},1e3)),()=>{clearTimeout(V),clearTimeout(B)}},[x,T]),Ve.useEffect(()=>{b&&h!==t&&(a({}),$({}),g(void 0),w(Lu({answers:e,columnBehavior:t,columnBehaviorToShuffle:"freezeSecond"})),j(Lu({answers:e,columnBehavior:t,columnBehaviorToShuffle:"freezeFirst"})))},[b,t,h,e,a,$]),Ve.useEffect(()=>{if(R.length<=0)return;const V=R.map((B,W)=>[B,M[W]]);c(V)},[R,M,c]),Ve.useEffect(()=>{S(!0)},[]),(0,n.jsxs)("div",{className:"matching-interaction","data-testid":"matching-interaction",ref:N,children:[(0,n.jsx)("ul",{"aria-label":v?.a11yMatchingColumn1,className:"matching-interaction-col matching-interaction-col-1","data-col":"1",ref:k,role:"list",children:R.map((V,B)=>{const W=kee(r,V.id);return(0,n.jsx)(s8,{col:1,height:o,id:V.id,index:B,isActive:C?.col===1&&C?.id===V.id,isFrozen:t==="freezeFirst",isMatched:W,isMoved:x?.map(Z=>Z.id).includes(V.id)??!1,onClick:te,onDragEnd:F,onDragStart:H,onDrop:J,onDropZoneEnter:K,onDropZoneLeave:Q,onKeyDown:D,value:V.value,valueOtherColumnActive:C?.col===2?C?.value:void 0,valueOtherColumnMatch:W?M[B]?.value:void 0},V.id)})}),(0,n.jsx)("ul",{"aria-label":v?.a11yMatchingColumn2,className:"matching-interaction-col matching-interaction-col-2","data-col":"2",ref:E,role:"list",children:M.map((V,B)=>{const W=Iee(r,V.id);return(0,n.jsx)(s8,{col:2,height:o,id:V.id,index:B,isActive:C?.col===2&&C?.id===V.id,isFrozen:t==="freezeSecond",isMatched:W,isMoved:T?.map(Z=>Z.id).includes(V.id)??!1,onClick:te,onDragEnd:F,onDragStart:H,onDrop:J,onDropZoneEnter:K,onDropZoneLeave:Q,onKeyDown:D,value:V.value,valueOtherColumnActive:C?.col===1?C?.value:void 0,valueOtherColumnMatch:W?R[B]?.value:void 0},V.id)})})]})}const Lu=({answers:e,columnBehavior:t,columnBehaviorToShuffle:s})=>{let o=e.map(r=>r.id);return t===s&&(o=(0,p0.shuffle)(o)),new Map(o.map((r,a)=>[r,a]))};function n8(e,t){const s=[];for(const[o,r]of e){const a=t.get(o);a!==r&&s.push({id:o,from:r,to:a})}return s}var Su=f(80588);function o8({columnBehavior:e="freezeSecond",...t}){const[s,o]=Su.useState([]),[r,a]=Su.useState(void 0),i=Su.useCallback(d=>{o(d)},[]),c=Su.useCallback(d=>{a(d)},[]);return t.isComplete?(0,n.jsx)(Tee,{...t,columnBehavior:e,itemHeight:r,rows:s}):(0,n.jsx)(Mee,{...t,columnBehavior:e,itemHeight:r,onChangeItemHeight:c,onChangeRows:i})}function r8(e){return e==null||e===-1}function Oee(e,t){return e===t}const Bee=({allowTabNavigation:e,color:t,correctId:s,errorMessageId:o,isComplete:r,isCorrect:a,isReduceMotion:i,labels:c,onChange:d,onEnterToSubmit:l,options:h=[],questionHtmlId:m,renderOptionText:p,isRetaking:v,revealAnswers:C,selectedIndex:g,shouldFocusFirst:x,onFocusFirstComplete:L})=>{const T=r8(g);return(0,n.jsx)(iu,{"aria-invalid":o?!0:void 0,"aria-labelledby":[m,o].filter(Boolean).join(" "),"aria-required":"true",role:"radiogroup",children:h.map((y,b,S)=>(0,n.jsx)(Dee,{allowTabNavigation:e,color:t,id:y.id,index:b,isComplete:r,isCorrect:a,isCorrectOption:s===y.id,isFirst:b===0,isFresh:T,isLast:b===S.length-1,isReduceMotion:i,isRetaking:v,isSelected:!v&&Oee(g,b),labels:c,onChange:d,onEnterToSubmit:l,onFocusFirstComplete:L,questionHtmlId:m,renderOptionText:p,revealAnswers:C,shouldFocusFirst:x,title:y.title},y.id))})},Dee=({allowTabNavigation:e,color:t,id:s,index:o,isComplete:r,isCorrect:a,isCorrectOption:i,isFresh:c,isSelected:d,isReduceMotion:l,labels:h,onChange:m,onEnterToSubmit:p,questionHtmlId:v,renderOptionText:C,isRetaking:g,revealAnswers:x,shouldFocusFirst:L,onFocusFirstComplete:T,title:y})=>{const[b]=(0,u.useState)(()=>Po()("qmc-")),S=(0,u.useRef)(null),N=(0,je.A)(d),k=!!r,E=e&&(d||c&&o===0)?0:mu,I=x===Ee.ALL,P=x==Ee.INCORRECT,A=I||P&&a,w=I||P&&a||P&&!a&&d,O=r&&i&&A,j=r&&!i&&w,R=(O||j)&&!g,M=R?`${b}-result`:void 0,z=G()("quiz-multiple-choice-option",{"is-complete":r,"is-correct":O,"is-incorrect":j,"is-selected":d}),$=G()("quiz-multiple-choice-option__dot",{"quiz-multiple-choice-option__dot--active":d&&!r}),H=G()("quiz-multiple-choice-option__check",{"quiz-multiple-choice-option__check--active":O}),F=G()("quiz-multiple-choice-option__x",{"quiz-multiple-choice-option__x--active":j}),K=G()("quiz-multiple-choice-option__border"),Q=(0,u.useCallback)(D=>{Ca(D)&&p(D)},[p]),J=(0,u.useCallback)(()=>{m({selectedIndex:o})},[o,m]),te=r?void 0:Q;return(0,u.useEffect)(()=>{e&&S.current&&(!N&&d?S.current.focus({preventScroll:l}):L&&c&&o===0&&(S.current.focus({preventScroll:l}),T?.()))},[e,d,l,N,L,c,o,T]),(0,n.jsxs)("div",{"data-testid":"quiz-card-option",children:[(0,n.jsxs)("label",{"aria-describedby":M,className:z,ref:S,children:[(0,n.jsx)("input",{checked:d,className:"quiz-multiple-choice-option__input",disabled:k,name:v,onClick:r?void 0:J,onKeyDown:te,tabIndex:E,type:"radio"}),(0,n.jsxs)("div",{className:"quiz-multiple-choice-option__indicator",style:{color:t},children:[(0,n.jsx)(LB,{className:$,dataTestId:d&&!r?"selected-dot-active":"selected-dot"}),(0,n.jsx)(h6,{className:H,"data-testid":O?"correct-check-active":"correct-check"}),(0,n.jsx)(T6,{"aria-hidden":"true",className:F,dataTestId:j?"incorrect-x-active":"incorrect-x",overrideStyle:!0})]}),(0,n.jsx)("div",{className:K}),(0,n.jsx)("div",{className:"quiz-multiple-choice-option__text","data-testid":"quiz-mc-option-text",children:C({optionId:s,title:y})})]}),R&&(0,n.jsxs)("div",{className:"visually-hidden-always",id:M,children:[d&&i&&h?.a11yQuizReviewCorrectlySelected,d&&!i&&h?.a11yQuizReviewIncorrectlySelected,!d&&i&&h?.a11yQuizReviewIncorrectlyUnselected,!d&&!i&&h?.a11yQuizReviewCorrectlyUnselected]})]})},a8=Bee;function Hee(e){return e.length===0}function Fee(e,t){return e.includes(t)}function Vee(e,t){return e.includes(t)?e.filter(s=>s!==t):[...e,t]}const zee=({allowTabNavigation:e,correctIds:t=[],errorMessageId:s,isComplete:o,isCorrect:r,labels:a,onChange:i,onEnterToSubmit:c,options:d=[],questionHtmlId:l,renderOptionText:h,isRetaking:m,revealAnswers:p,selectedIndices:v=[]})=>(0,n.jsx)("div",{"aria-labelledby":[l,s].filter(Boolean).join(" "),role:"group",children:(0,n.jsx)("ul",{children:d.map((C,g)=>(0,n.jsx)($ee,{allowTabNavigation:e,errorMessageId:s,id:C.id,index:g,isComplete:o,isCorrect:r,isCorrectOption:t.includes(C.id),isRetaking:m,isSelected:!m&&Fee(v,g),labels:a,onChange:i,onEnterToSubmit:c,renderOptionText:h,revealAnswers:p,title:C.title},C.id))})}),$ee=({allowTabNavigation:e,errorMessageId:t,id:s,index:o,isComplete:r,isCorrect:a,isCorrectOption:i,isSelected:c,labels:d,onChange:l,onEnterToSubmit:h,renderOptionText:m,isRetaking:p,revealAnswers:v,title:C})=>{const[g]=(0,u.useState)(()=>Po()("qmr-")),x=r&&v===Ee.ALL&&!p,L=x?`${g}-result`:void 0,T=!!r,y=e?0:mu,b=v===Ee.ALL,S=v==Ee.INCORRECT,N=b||S&&a||S&&!a&&c,k=G()("quiz-multiple-response-option",{"quiz-multiple-response-option--complete":r,"quiz-multiple-response-option--selected":c,"quiz-multiple-response-option--correct":r&&i&&N,"quiz-multiple-response-option--incorrect":r&&!i&&N}),E=G()("quiz-multiple-response-option__border"),I=(0,u.useCallback)(w=>{Ca(w)&&h(w)},[h]),P=(0,u.useCallback)(()=>{l({optionIndex:o})},[o,l]),A=r?void 0:I;return(0,n.jsxs)("li",{children:[(0,n.jsxs)("label",{"aria-describedby":L,className:k,children:[(0,n.jsx)("input",{"aria-describedby":t||void 0,"aria-invalid":t?!0:void 0,checked:c,className:"quiz-multiple-response-option__input",disabled:T,onChange:r?void 0:P,onKeyDown:A,tabIndex:y,type:"checkbox"}),(0,n.jsxs)("div",{className:"quiz-multiple-response-option__indicator",children:[(0,n.jsx)(h6,{className:"quiz-multiple-response-option__check"}),(0,n.jsx)(T6,{"aria-hidden":"true",className:"quiz-multiple-response-option__x",height:"8",overrideStyle:!0,width:"8"})]}),(0,n.jsx)("div",{className:E}),(0,n.jsx)("div",{className:"quiz-multiple-response-option__text",children:m({optionId:s,title:C})})]}),x&&(0,n.jsxs)("div",{className:"visually-hidden-always",id:L,children:[c&&i&&d?.a11yQuizReviewCorrectlyChecked,c&&!i&&d?.a11yQuizReviewIncorrectlyChecked,!c&&i&&d?.a11yQuizReviewIncorrectlyUnchecked,!c&&!i&&d?.a11yQuizReviewCorrectlyUnchecked]})]})},i8=zee;var _ee,Uee;const Gee=ws()(Ae()("correct",!0)),tve=e=>_ee(Uee(e),Mp),Wee=e=>({MATCHING:ve(),FILL_IN_THE_BLANK:Op,MULTIPLE_CHOICE:ve(),MULTIPLE_RESPONSE:ve()})[e],Mp=ce()(qc()("id"),Gee),Kee=ce()(as(),Mp),Op=ws()(Ae()("correct",!0)),Qee=ce()(xe()("id"),as()),sve={MULTIPLE_CHOICE:{label:"Multiple Choice",icon:(0,n.jsx)(SH,{})},MULTIPLE_RESPONSE:{label:"Multiple Response",icon:(0,n.jsx)(TH,{})},FILL_IN_THE_BLANK:{label:"Fill in the blank",icon:(0,n.jsx)(ch,{})},MATCHING:{label:"Matching",icon:(0,n.jsx)(bH,{})}},{FILL_IN_THE_BLANK:Zee,MATCHING:c8,MULTIPLE_CHOICE:Yee,MULTIPLE_RESPONSE:Xee}=Kt;function l8({type:e,text:t="",matches:s={},answersLength:o=0,selectedIndices:r=[],selectedIndex:a}){switch(e){case Zee:return!L2(t);case c8:return wee(s)===o;case Xee:return!Hee(r);case Yee:default:return!r8(a)}}function Jee({answered:e=!1,...t}){return e&&t.type!==c8?!1:l8(t)}function d8(e,t){const s=e.trim();return t?s:s.toLowerCase()}function u8({answers:e,text:t,caseSensitive:s=!1,getL10nValue:o}){if(!t)return!1;const r=d8(t,s);return e.some(a=>{const i=o(a.title);return typeof i!="string"?!1:d8(i,s)===r})}function h8(e){return Object.entries(e).every(([t,s])=>t===String(s))}function qee(e){const t=e.answers??[],s=e.correct;if(s!=null)return t.findIndex(r=>r.id===s);const o=t.findIndex(r=>r.correct===!0);return o===-1?0:o}function m8({isCorrectAnswerUnshuffled:e=!1,isShuffled:t=!1,item:s,selectedIndex:o,shuffledAnswerIndices:r}){if(o==null||t&&!Array.isArray(r))return!1;const a=t&&!e?r.indexOf(o):o,i=qee(s);return a===i}function ete(e,t){return t.map(s=>e.indexOf(s))}function tte(e){return typeof e=="object"&&e!==null&&"id"in e?e.id:e}function ste(e){const t=e.answers??[],s=e.corrects??[];return s.length>0?s.map(a=>{const i=tte(a);return t.findIndex(c=>c.id===i)}).filter(a=>a>=0).sort((a,i)=>a-i):t.map((r,a)=>r.correct===!0?a:-1).filter(r=>r>=0).sort((r,a)=>r-a)}function p8(e){return[...e].sort((t,s)=>t-s)}function f8({isShuffled:e=!1,item:t,selectedIndices:s,shuffledAnswerIndices:o}){if(!Array.isArray(s)||e&&!Array.isArray(o))return!1;const r=e?ete(o,s):s,a=ste(t),i=p8(r),c=p8(a);return i.length!==c.length?!1:i.every((d,l)=>d===c[l])}function g8({answers:e,feedback:t,feedbackCorrect:s,feedbackIncorrect:o,feedbackType:r,isCorrect:a,isShuffled:i=!1,selectedIndex:c,shuffledAnswerIndices:d}){switch(r){case"CHOICE":{if(c==null||!e)return;const l=i&&Array.isArray(d)?d.indexOf(c):c;return e[l]?.feedback}case"CORRECT_INCORRECT":return a?s:o;default:return t}}var nte=f(95838),ote=f.n(nte),nve=f(94205),rte,ate,v8,ite,cte,lte,dte;const ute=(e,t,s=[])=>{const o=ate(lte("id",e),t),{parentId:r}=o||{},a=o?[o,...s]:s;return r?ute(r,t,a):a},Bp="owner",C8="manager",x8="editor",b8=["viewer",x8,C8,Bp],Dp=({effectiveRole:e,requiredRole:t})=>{const s=v8(e,b8),o=v8(t,b8);return s>=o},hte=e=>({editor:Dp({effectiveRole:e,requiredRole:x8}),manager:Dp({effectiveRole:e,requiredRole:C8}),owner:Dp({effectiveRole:e,requiredRole:Bp})}),rve=(e,t,s)=>{const{authorId:o}=e,r=o===s,a=c=>r||c,i=mte(t);return cte(ite(["canChangePermissions","canMoveTo"]),rte({canDelete:a,canEdit:a,canMove:a,canRename:a,canUnshare:a}))(i)},mte=e=>{const{effectiveRole:t,type:s}=e||[],o=s!==dte?Bp:t,{editor:r,manager:a,owner:i}=hte(o);return{canChangePermissions:a,canCreate:r,canDelete:i,canEdit:r,canMove:a,canMoveTo:r,canRename:r,canUnshare:i}};var pte,fte,Oc,gte,vte,Cte,xte,y8,Za,bte,L8,S8,yte,Lte,Bc,Ste,Tte,T8,Nte,Tu,kte,Ite,N8,Ete,k8,jte,wte,Ya;const Ate={[Kt.FILL_IN_THE_BLANK]:"fillin",[Kt.MATCHING]:"matching",[Kt.MULTIPLE_CHOICE]:"multiple choice",[Kt.MULTIPLE_RESPONSE]:"multiple response"},Xa="personal",I8="team",ave=500,ive={id:null,deleted:!1,type:Xa},cve={id:"deleted",deleted:!0,type:Xa},E8=({questions:e=[],drawnQuestionIds:t=[]})=>{const s=a=>!t.some(i=>i.includes(a.id)),o=e.filter(s),r=Math.floor(Math.random()*o.length);return o[r]??null},Rte=e=>t=>t.type===Xa||k8({effectiveRole:t.effectiveRole,requiredRole:e}),Pte=({folders:e,requiredRole:t,teamAccount:s})=>Ya(e,N8,L8,Za(o=>Rte(t)&&(s||o.type===Xa))),lve=({questionBanks:{folders:e,questionBanks:t},requiredRole:s=jte,teamAccount:o,term:r})=>{if(r&&Lte(Ite(r)))return{folders:[],questionBanks:[]};const a=new RegExp("("+Ete(r)+")","i"),i=Pte({folders:e,requiredRole:s,teamAccount:o}),c=T8("id",i),d=Za(h=>h.title.match(a)&&!h.deleted,i),l=Za(h=>(Bc(h.folderId)||y8(h.folderId,c))&&h.title.match(a)&&!h.deleted,t);return{folders:d,questionBanks:l}},j8=(e,t,s=!1)=>Ya(t,yte(Oc(!Bc(e)),Nte(e),Tte(N8,L8)),kte(Tu("deleted",!s))),Mte=(e,t,s,o=!1)=>{const r=e===I8,a=e===Xa,i=Ya(j8(I8,s),T8("id")),c=d=>!Bc(d.folderId)&&y8(d.folderId,i);return Ya(t,Za(xte([[Oc(o),d=>d.deleted],[Oc(r),d=>!d.deleted&&c(d)],[Oc(a),d=>!d.deleted&&!c(d)],[Oc(Bc(e)),d=>!d.deleted],[pte,S8]])))},Ote=({type:e})=>e===Xa,w8=({effectiveRole:e})=>k8({effectiveRole:e,requiredRole:wte}),Bte=(e,t)=>({id:s})=>s?Cte(gte(S8),Ste(fte([Tu("folderId",s),Tu("authorId",e)])))(t):!1,Dte=(e,t,s,o)=>Ya(j8(t,e),Za(vte([Ote,w8,Bte(o,s)]))),Hte=(e,t)=>s=>{if(Bc(s.folderId))return!0;const o=bte(Tu("id",s.folderId),e);if(!o)return!1;const r=w8(o),a=s.authorId===t;return r||a},Fte=(e,t,s,o,r)=>Ya(Mte(e,t,s),Za(Hte(o,r))),dve=(e,t,s,o)=>{const r=Dte(e,s,t,o),a=Fte(s,t,e,r,o);return{folders:r,questionBanks:a}},Vte=(e,t,s=[])=>{const o=t[e],{parentId:r}=o||{},{type:a}=t?.[r]||{},i=o?[o,...s]:s;return!r||o.type!==a?i:Vte(r,t,i)},{FILL_IN_THE_BLANK:Ja,MATCHING:Nu,MULTIPLE_CHOICE:ku,MULTIPLE_RESPONSE:Iu}=Kt,zte={FILL_IN_THE_BLANK:"a11yBlockKnowledgeCheckFIB",MATCHING:"a11yBlockKnowledgeCheckM",MULTIPLE_CHOICE:"a11yBlockKnowledgeCheckMC",MULTIPLE_RESPONSE:"a11yBlockKnowledgeCheckMR"},$te=De()(null,[0,"type"]),Hp=Ns();class A8 extends u.Component{static get defaultProps(){return{items:[],lessonId:"",blockId:"",onStep:Function.prototype}}retakeAnimationStageOne;retakeAnimationStageTwo;feedbackRef;takeAgainRef;block;wrapper;id;constructor(t){super(t),this.state={errorIncomplete:!1,selectedAnswer:null,selectedIndices:[],chosen:!1,answered:!1,fillInText:"",matches:{},questionHtmlId:`q-${du()()}`},this.retakeAnimationStageOne=null,this.retakeAnimationStageTwo=null,this.feedbackRef=(0,u.createRef)(),this.takeAgainRef=(0,u.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(Ge,this.previewOnly__forceShowFeedback),window.addEventListener(pm,this.previewOnly__clearOverrides),this.id=Po()("kc-")}componentDidUpdate(t,s){s.answered&&!this.state.answered?this.getType()!==Ja&&Pm(this.wrapper):!s.answered&&this.state.answered&&setTimeout(()=>{this.takeAgainRef.current?this.takeAgainRef.current.focus():this.feedbackRef.current?.focus()},0)}componentWillUnmount(){this.retakeAnimationStageOne&&(clearTimeout(this.retakeAnimationStageOne),this.retakeAnimationStageOne=null),this.retakeAnimationStageTwo&&(clearTimeout(this.retakeAnimationStageTwo),this.retakeAnimationStageTwo=null),window.removeEventListener(Ge,this.previewOnly__forceShowFeedback),window.removeEventListener(pm,this.previewOnly__clearOverrides)}previewOnly__forceShowFeedback(t){const{itemId:s,path:o}=t.detail,{getL10nValue:r}=this.props;if(s!==this.props.blockId)return;const a=o.at(-1);if(typeof a=="string"&&a.startsWith?.("feedback")){const i=a==="feedbackCorrect",c=o.indexOf("answers"),d=o[c+1],l=c>-1&&typeof d!="string"?d.id:null,h={forceShowFeedback:!0,forceShowFeedbackCorrect:i,forceShowFeedbackMessage:""};if(l&&"answers"in this.props.items[0]){const m=this.props.items[0].answers.find(({id:v})=>v===l),p=m&&"feedback"in m?m?.feedback:void 0;h.forceShowFeedbackCorrect=m?.correct??!1,h.forceShowFeedbackMessage=r(p)}this.setState(h)}}previewOnly__clearOverrides(){this.setState({forceShowFeedback:!1,forceShowFeedbackCorrect:!1})}getSelection({item:t}){switch(t.type){case Ja:return this.state.fillInText;case Nu:return this.state.matches;case Iu:return this.state.selectedIndices;case ku:default:return this.state.selectedAnswer}}handleMatchesChange=t=>{this.setState({errorIncomplete:!1,matches:t})};handleMultipleResponseChange({optionIndex:t}){const{selectedIndices:s}=this.state;this.setState({errorIncomplete:!1,selectedIndices:Vee(s,t)})}handleChoiceSelect({selectedIndex:t}){const{answered:s}=this.state;s||this.setState({errorIncomplete:!1,selectedAnswer:t,chosen:!0})}onSubmit(t,s,o,r,a){if(!s){switch(this.setState({errorIncomplete:!0}),r.type){case Ja:this.wrapper?.querySelector("input")?.focus();break;case Iu:case ku:this.wrapper?.querySelector("input")?.focus();break;case Nu:default:break}return}a?.preventDefault(),this.setState({answered:!0,isRetaking:!1}),o&&this.props.onStep({id:t})}handleFillIn(t){this.setState({errorIncomplete:!1,fillInText:t})}handleRetake(t){const{blockId:s,lessonId:o,settings:r}=this.props,{id:a}=t;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},()=>{!Hp&&this.getType()===Ja&&Pm(this.wrapper),this.retakeAnimationStageTwo=null}),r?.retryCount!=null&&this.props.onRetryAttempt?.({blockId:s,itemId:a,lessonId:o})},950)}resetErrorIncomplete(){this.state.errorIncomplete&&this.setState({errorIncomplete:!1})}resetShouldFocusFirst=()=>{this.state.shouldFocusFirst&&this.setState({shouldFocusFirst:!1})};renderQuestionTitle({title:t}){return(0,n.jsx)(ot,{className:"quiz-card__title",id:this.state.questionHtmlId,value:t})}renderQuestion(t){const{answered:s,errorIncomplete:o,isRetaking:r,selectedAnswer:a}=this.state,{blockId:i,enableVideoPlaybackSpeed:c,getL10nValue:d,labels:l,progress:h,renderQuestionTitle:m=this.renderQuestionTitle,settings:p}=this.props,{quizCorrect:v,quizIncorrect:C,quizRequireAnswer:g,quizSubmit:x,quizTakeAgain:L}=l,{id:T,type:y}=t,b=t.type!=="DRAW_FROM_QUESTION_BANK"?t.settings:{},S=d("media"in t?t.media:{}),N=this.state.forceShowFeedbackCorrect||this.getIsCorrect({item:t}),k=this.getCanSubmit({item:t}),E=p?.requireCorrectAnswer?N:!0,I=this.onSubmit.bind(this,T,k,E,t),P=this.getFeedback({item:t,isCorrect:N,selectedAnswer:a}),A=this.getSelection({item:t}),{columnBehavior:w,correctAnswerColor:O,correctAnswerColorContrast:j,incorrectAnswerColor:R,incorrectAnswerColorContrast:M}=p,z=N?O:R,$=l.knowledgeCheckCorrectAnswerRequiredBlock,H=l.knowledgeCheckRetriesAttemptsRemaining,F=l.knowledgeCheckMaxRetriesReached,K=h?.items?.[i]?.items?.[T]?.retryAttemptCount??0,Q=p?.retryCount!==0&&(p?.retryCount==null||p?.retryCount===-1||K<p?.retryCount),J=p?.retryCount!=null||p?.retryCount===-1?p?.retryCount-K:-1,te=!N,D={"--color-feedback-icon":z,"--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":s?O:void 0,"--color-quiz-option-check":O,"--color-x-fill":R},V=p?.revealCorrectAnswers!==!1&&(p.retryCount==null||p.retryCount===-1||!Q)?Ee.ALL:Ee.INCORRECT,B=G()("block-knowledge__retake-container",{"block-knowledge__retake-container--active":s,"block-knowledge__retake-container--active-attempts-left":s&&!r&&J>0}),W=G()("block-knowledge__retake",{"block-knowledge__retake--active":s&&!r&&Q}),Z=G()("block-knowledge__retake","block-knowledge__attempts-left",{"block-knowledge__retake--active":s&&!r&&Q&&J>0}),X=G()("block-knowledge__retake","block-knowledge__no-more-attempts",{"block-knowledge__retake--active":s&&!r&&!Q}),Y=!!S?.image,oe=!!S?.audio,re=!!S?.video,me=!!S?.embed;let he=null;oe&&Y?he=(0,n.jsx)(Fo,{blockId:i,enableVideoPlaybackSpeed:c,index:`${i}-${T}-audio`,isOverlayAudio:!0,item:t,labels:l,media:S,settings:b}):oe&&(re||me)?he=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(Fo,{blockId:i,enableVideoPlaybackSpeed:c,index:`${i}-${T}-audio`,item:t,labels:l,media:{audio:S.audio},settings:b}),(0,n.jsx)(Fo,{blockId:i,enableVideoPlaybackSpeed:c,index:`${i}-${T}-video`,item:t,labels:l,media:re?{video:S.video}:{embed:S.embed},settings:b})]}):he=(0,n.jsx)(Fo,{blockId:i,enableVideoPlaybackSpeed:c,index:`${i}-${T}-audio`,item:t,labels:l,media:S,settings:b});const Oe=G()("block-knowledge__media",{"block-knowledge__image-with-audio":oe&&Y});return(0,n.jsxs)(W9,{isActive:!0,style:D,children:[p?.requireCorrectAnswer&&(s&&!N||!s)&&(0,n.jsxs)("div",{className:"quiz-card__require-correct-answer-disclaimer",children:[(0,n.jsx)(ie,{className:"quiz-card__require-correct-answer-disclaimer-icon",name:"info-circle"}),$]}),m(t),(0,n.jsx)("div",{className:Oe,children:he}),(0,n.jsx)(Y9,{type:y,children:this.renderType({columnBehavior:w,correctAnswerColor:O,correctAnswerColorContrast:j,incorrectAnswerColor:R,incorrectAnswerColorContrast:M,isCorrect:N,item:t,onSubmit:I})}),(0,n.jsx)("div",{"aria-live":"assertive",children:o&&(0,n.jsxs)("div",{className:"quiz-card__validations","data-testid":"quiz-validation-error",children:[(0,n.jsx)("span",{"data-testid":"quiz-validation-icon",children:(0,n.jsx)(ie,{className:"quiz-card__validation-icon",name:"alert-circle"})}),(0,n.jsx)("span",{id:`${this.id}-error-incomplete-message`,children:g})]})}),(0,n.jsx)(G9,{canProceed:s,canSubmit:k,isReduceMotion:Hp,onSubmit:I,quizSubmit:x}),(0,n.jsx)(Z9,{canProceed:this.state.forceShowFeedback||s,feedbackRef:this.feedbackRef,feedbackValue:P,isActive:s,isComplete:s,isCorrect:N,item:t,labels:l,quizCorrect:v,quizIncorrect:C,revealAnswers:V,selection:A}),(0,n.jsxs)("div",{"aria-hidden":!s,className:B,children:[te&&(0,n.jsxs)(n.Fragment,{children:[Q?(0,n.jsxs)(U9,{allowTabNavigation:s,className:W,onClick:this.handleRetake.bind(this,t),ref:this.takeAgainRef,size:"md",variant:"outlined",children:[(0,n.jsx)(ie,{"aria-hidden":"true",name:"arrow-rotate-left"}),L]}):null,J>0&&(0,n.jsxs)("div",{className:Z,children:[H," ",J]})]}),!Q&&!N&&(0,n.jsx)("div",{className:X,children:F})]})]},T)}getIsCorrect({item:t}){const{fillInText:s,matches:o,selectedAnswer:r,selectedIndices:a}=this.state,{type:i}=t,c="answers"in t?t.answers:void 0,d="isCaseSensitive"in t?t.isCaseSensitive:!1;switch(i){case Ja:return u8({answers:Op(c),text:s,caseSensitive:d,getL10nValue:this.props.getL10nValue});case Nu:return h8(o);case Iu:return f8({item:{answers:c},selectedIndices:a});case ku:default:return m8({item:{answers:c},selectedIndex:r})}}getType(){const{items:t}=this.props;return $te(t)}getCanSubmit({item:t}){const s="answers"in t?t.answers:void 0,{answered:o,fillInText:r,matches:a,selectedAnswer:i,selectedIndices:c}=this.state;return Jee({type:t.type,text:r,matches:a,answersLength:s?.length??0,selectedIndices:c,selectedIndex:i,answered:o})}getFeedback({item:t,isCorrect:s,selectedAnswer:o}){if(this.state.forceShowFeedbackMessage)return this.state.forceShowFeedbackMessage;const r="feedback"in t?t.feedback:void 0,a="feedbackCorrect"in t?t.feedbackCorrect:void 0,i="feedbackIncorrect"in t?t.feedbackIncorrect:void 0,c="feedbackType"in t?t.feedbackType:void 0,d="answers"in t?t.answers:void 0,l=this.state.forceShowFeedbackCorrect??s;return g8({answers:d,feedback:r,feedbackCorrect:a,feedbackIncorrect:i,feedbackType:c,isCorrect:l,selectedIndex:typeof o=="number"?o:null})}getTypeLabel(){const{labels:t}=this.props,s=this.getType(),o=zte[s];return o?t?.[o]:t?.a11yBlockKnowledgeCheck}renderMultipleResponseOptionText(t,{title:s}){return(0,n.jsx)(ot,{className:"cursorAuto",value:s})}renderMultipleChoiceOptionText(t,{title:s}){return(0,n.jsx)(ot,{className:"quiz-multiple-choice-option__label cursorAuto",value:s})}renderType({columnBehavior:t,correctAnswerColor:s,correctAnswerColorContrast:o,incorrectAnswerColor:r,incorrectAnswerColorContrast:a,isCorrect:i,item:c,onSubmit:d}){const{isHidden:l,labels:h,prefersKeyboardNavigation:m,renderMultipleResponseOptionText:p=this.renderMultipleResponseOptionText,renderMultipleChoiceOptionText:v=this.renderMultipleChoiceOptionText,settings:C,progress:g,blockId:x}=this.props,{answered:L,fillInText:T,isRetaking:y,matches:b,selectedAnswer:S,selectedIndices:N,shouldFocusFirst:k,questionHtmlId:E}=this.state,{id:I,type:P}=c,A="answers"in c?c.answers:[],{quizAcceptableResponses:w,quizAnswerPlaceholder:O}=h,j=g?.items?.[x]?.items?.[I]?.retryAttemptCount??0,R=C?.retryCount!==0&&(C?.retryCount==null||C?.retryCount===-1||j<C?.retryCount),z=C?.revealCorrectAnswers!==!1&&(C.retryCount==null||C.retryCount===-1||!R)?Ee.ALL:Ee.INCORRECT,$=this.state.errorIncomplete?`${this.id}-error-incomplete-message`:void 0;switch(P){case Ja:return(0,n.jsx)(q9,{allowTabNavigation:!0,correctAnswerColor:s,correctAnswerColorContrast:o,errorMessageId:$,incorrectAnswerColor:r,incorrectAnswerColorContrast:a,isComplete:L,isCorrect:i,labels:h,onChange:this.handleFillIn,onEnterToSubmit:d,options:Op(A),questionHtmlId:E,quizAcceptableResponses:w,quizAnswerPlaceholder:O,revealAnswers:z,value:T});case Nu:return(0,n.jsx)(o8,{answers:Wee(P)(A),columnBehavior:t,correctAnswerColor:s,correctAnswerColorContrast:o,incorrectAnswerColor:r,incorrectAnswerColorContrast:a,isActive:!l,isComplete:L,matches:b,onChange:this.handleMatchesChange,prefersKeyboardNavigation:m,revealAnswers:z});case Iu:return(0,n.jsx)(i8,{allowTabNavigation:!0,correctIds:Mp(A),errorMessageId:$,isComplete:L,isCorrect:i,isRetaking:y,labels:h,onChange:this.handleMultipleResponseChange,onEnterToSubmit:d,options:A,questionHtmlId:E,renderOptionText:p.bind(this,c),revealAnswers:z,selectedIndices:N});case ku:default:return(0,n.jsx)(a8,{allowTabNavigation:!0,correctId:Kee(A)||Qee(A),errorMessageId:$,isComplete:L,isCorrect:i,isReduceMotion:Hp,isRetaking:y,labels:h,onChange:this.handleChoiceSelect,onEnterToSubmit:d,onFocusFirstComplete:this.resetShouldFocusFirst,options:A,questionHtmlId:E,renderOptionText:v.bind(this,c),revealAnswers:z,selectedIndex:S,shouldFocusFirst:k})}}render(){const{animateBlockEntrance:t,initiallyVisible:s,isLearner:o,items:r,settings:a,variant:i}=this.props,{answered:c,isRetaking:d}=this.state,{entranceAnimation:l,knowledgeCheckWidth:h=76}=a,m=Zm(h),p=G()("block-knowledge",{"block-knowledge--answered":c,"block-knowledge--no-animation":!l,"block-knowledge--retake":d}),v=G()("block-knowledge__wrapper",`block-knowledge__wrapper--${i}`,{[`block-knowledge__container--custom-width-${m}`]:!0}),C=Array.isArray(r)&&r.length>0?r.slice(0,1):[];return(0,n.jsx)(Ie,{className:p,"data-testid":"block-kc-card",ref:g=>{this.block=g},style:this.getStyle(),children:(0,n.jsx)(Pe,{animateBlockEntrance:t,initiallyVisible:s,isLearner:o,children:(0,n.jsx)("div",{className:"block-knowledge__container",children:(0,n.jsx)("div",{className:"block-knowledge__row",children:(0,n.jsx)("div",{className:`block-knowledge__col--custom-width-${m}`,children:(0,n.jsx)(Bt,{"aria-label":this.getTypeLabel(),className:v,"data-testid":"block-knowledge-wrapper",ref:g=>{this.wrapper=g},children:C.map(g=>this.renderQuestion(g))})})})})})})}getStyle(){const{backgroundColor:t,settings:s}=this.props;if(s?.cardMode===Fs.TRANSPARENT)switch(s?.backgroundType){case q.ACCENT:case q.COLOR:case q.TINT:if(t)switch(fa(t)){case ct.LIGHT:return{"--color-background-choice-hover":sn(.5,t),"--color-background-feedback-frame":sn(.5,t)};case ct.MED:return{"--color-background-choice-hover":In(.3,t),"--color-background-feedback-frame":In(.3,t)};case ct.DARK:return{"--color-background-choice-hover":In(.6,t),"--color-background-feedback-frame":In(.6,t)};case ct.NEAR_BLACK:return{"--color-background-choice-hover":sn(.15,t),"--color-background-feedback-frame":sn(.15,t)}}}}}const _te=e=>{const{blockId:t,items:[s]}=e,{questions:o}=s,[r,a]=(0,u.useState)(()=>E8({questions:o}));(0,u.useEffect)(()=>{if(!o)return;const c=d=>{const{path:l}=d.detail;if(l[l.indexOf("items")+1]?.id!==t)return;const m=l[l.lastIndexOf("questions")+1]?.id;if(m===r?.id)return;const p=o.find(({id:v})=>v===m);p&&a(p)};return window.addEventListener(Ge,c),()=>window.removeEventListener(Ge,c)},[t,r,o]);const i=(0,u.useMemo)(()=>r?{variant:Ate[r.type],items:[r]}:{},[r]);return r?(0,n.jsx)(A8,{...e,...i}):(0,n.jsx)("div",{})},Ute=e=>e.variant==="draw from question bank",qa=e=>{const t=xs()??"",s=Yt(),o=vs(),r={...e,backgroundColor:t,getL10nValue:o,blockSettings:s};return Ute(r)?(0,n.jsx)(_te,{...r}):(0,n.jsx)(A8,{...r})};var Gte=f(99291),Wte=f.n(Gte);class Kte extends u.Component{refWrap;refBubbleTitle;portal;contentRef;scrollRef;videoContainer;constructor(t){super(t),this.state={hasOverflow:!1},this.refWrap=(0,u.createRef)(),this.refBubbleTitle=(0,u.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=ro()}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(t){t.isActive&&setTimeout(this.renderOverflowMask,100)}componentDidUpdate(t){if(!t.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 s=this.props.media;this.props.onTranscriptUpdate?.({audioPlayerId:pn({refs:`items:${this.props.blockId}/items:${this.props.item?.id}`}),transcriptMedia:s})}else t.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:t,allowNav:s,description:o,htmlId:r,isActive:a,media:i,title:c,x:d,y:l}=this.props,h=G()("bubble",{"bubble--active":a}),m=Zte({x:d,y:l}),p=Yte({hasOverflow:this.state.hasOverflow,x:d,y:l}),v={borderBottomColor:t},C=`${r}-title`,g=()=>{if(!i)return(0,n.jsx)(be,{allowTabNavigation:a,className:"bubble__description",value:o});const L=this.props.getL10nValue(i)??{},T=fn(L,this.props.audioPosition,!0,"labeled-graphic"),y={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:T.audioOnlyMedia||L,isOverlayAudio:!1,index:`${this.props.blockId}-${this.props.item.id}-${this.props.index}-audio`},image:{media:T.imageOnlyMedia||L,isOverlayAudio:!1,index:`${this.props.blockId}-${this.props.item.id}-${this.props.index}-image`},video:{media:T.videoOnlyMedia||L,isOverlayAudio:!1,index:`${this.props.blockId}-${this.props.item.id}-${this.props.index}-video`},embed:{media:T.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,n.jsx)(n.Fragment,{children:T.renderOrder.map((S,N)=>{if(S==="text")return(0,n.jsx)(be,{allowTabNavigation:a,className:"bubble__description",value:o},`text-${N}`);const k=b[S];return!k||S==="embed"&&!a?null:(0,n.jsx)("div",{className:"bubble__media",children:(0,n.jsx)("div",{className:"bubble__figure",children:(0,n.jsx)("div",{className:G()({"labeled-graphic-bubble-media-container--audio-bottom":S==="audio"&&this.props.audioPosition==="bottom"}),children:(0,n.jsx)(_t,{...y,...k})})})},`${S}-${N}`)})})},x=(0,n.jsx)("div",{className:h,ref:this.refWrap,style:m,children:(0,n.jsxs)("dialog",{"aria-hidden":!a,"aria-labelledby":C,"aria-modal":"false",className:p,id:r,onKeyDown:this.handleKeyDown,style:v,children:[(0,n.jsx)("h2",{className:"bubble__title",id:C,ref:this.refBubbleTitle,tabIndex:-1,children:(0,n.jsx)(lt,{value:c})}),(0,n.jsx)("button",{"aria-label":"Close modal",className:"bubble__close",onClick:this.handleCloseClick,type:"button",children:(0,n.jsx)(TB,{className:"bubble__close-icon"})}),(0,n.jsx)("div",{className:"bubble__content",ref:L=>{this.contentRef=L},children:g()}),s&&this.renderControls()]})});return window.matchMedia("(max-width: 767px)").matches?(0,un.createPortal)((0,n.jsx)(P4,{children:x}),this.portal):x}renderControls(){const{accentColor:t,labels:s}=this.props,o={"--color-lg-accent":t};return(0,n.jsxs)("div",{className:"bubble__controls",style:o,children:[(0,n.jsx)("button",{"aria-label":s?.a11yCarouselPrevious,className:"bubble__prev",onClick:this.handlePreviousClick,type:"button",children:(0,n.jsx)("i",{className:"icon icon-chevron-left"})}),(0,n.jsx)("button",{"aria-label":s?.a11yCarouselNext,className:"bubble__next",onClick:this.handleNextClick,type:"button",children:(0,n.jsx)("i",{className:"icon icon-chevron-right"})})]})}renderOverflowMask(){if(!this.contentRef)return;const t=this.contentRef,s=t.offsetHeight;t.scrollHeight>s?(t.addEventListener("scroll",this.scrollRef=uu()(this.handleScroll,50)),this.setState({hasOverflow:!0}),this.scrollRef()):(t.removeEventListener("scroll",this.scrollRef),this.setState({hasOverflow:!1}))}handleDocumentClick=t=>{const s=Array.from(document.querySelectorAll("dialog[open]"))?.reduce((o,r)=>r.contains(t.target)||o,!1);!this.props.isActive||s||this.props.onClose({shouldFocusMarker:!1})};handleDocumentKeyDown=t=>{cs(t)&&this.props.isActive&&this.props.onClose({shouldFocusMarker:!1})};handleKeyDown(t){const{allowNav:s,onNextClick:o,onPreviousClick:r}=this.props,a=jV(this.contentRef,this.state.hasOverflow),i=Wte()(Le()(s));os()([[i(so),r],[i(no),o],[kV,a]])(t)}handleCloseClick=()=>{this.props.onClose()};handleNextClick(t){this.props.onNextClick(t)}handlePreviousClick(t){this.props.onPreviousClick(t)}handleScroll(){const t=this.contentRef,s=t.scrollTop,o=t.scrollHeight,r=t.offsetHeight;s>=o-r-10?this.setState({hasOverflow:!1}):this.state.hasOverflow||this.setState({hasOverflow:!0})}getMediaContainerClasses(t,s){return G()({"labeled-graphic-bubble-media-container":t,"labeled-graphic-bubble-media-container--audio-overlay":s,"labeled-graphic-bubble-media-container--audio-on-bottom":t&&this.props.audioPosition==="bottom"})}}const Qte=Ke(Kte),Zte=({x:e,y:t})=>{const s={top:"initial",bottom:"initial",left:"0",right:"0"};return e>50?s.right=100-e+"%":s.left=e+"%",t>50?s.bottom=100-t+"%":s.top=t+"%",s},Yte=({hasOverflow:e,x:t,y:s})=>{const o=t<50;let r="top";return s>33&&(r=s>66?"bottom":"middle"),G()("bubble__body","bg--range-light",{"bubble__body--has-overflow":e,"bubble__body--left":o,"bubble__body--right":!o,"bubble__body--top":r==="top","bubble__body--middle":r==="middle","bubble__body--bottom":r==="bottom"})};var Xte=f(80588);const Jte=e=>new URL(e).pathname.slice(1)+new URL(e).search;class qte extends Xte.Component{imageEl;constructor(t){super(t),this.state={style:{}}}render(){const{canvasClassNames:t,children:s,cornerRadius:o,editable:r,editingDisabled:a,getL10nValue:i,imageLoaded:c,media:d,onCreateMarker:l,onShowAltDialog:h}=this.props,{style:m}=this.state,p=i(d)?.image??{},{alt:v,dimensions:C,key:g,src:x}=p,L=!!p.alt,T=lr(v),y=KT(p),b=G()("labeled-graphic-canvas__figure",{"labeled-graphic-canvas__figure--editable":r&&!a,"labeled-graphic-canvas__figure--editing-disabled":r&&a});let S;g?S=Ct(p):x&&(S=Ct({key:Jte(x),...p}));const N=G()("labeled-graphic-canvas__image","labeled-graphic-canvas__image--flag-dimensions",{"labeled-graphic-canvas__image--svg":Lg(S)}),k={...m,...o!=null&&{"--corner-radius":`${Number(o)}px`}},E=(0,n.jsx)(Ls,{alt:T,className:N,"data-l10n-id":wt(d),height:C?.height||C?.originalHeight,onClick:l,onLoad:()=>this.setState({style:y}),ref:I=>{this.imageEl=I},src:S,style:k,width:C?.width||C?.originalWidth});return(0,n.jsx)("div",{className:t||"labeled-graphic-canvas",children:(0,n.jsx)("div",{className:"labeled-graphic-canvas__item",children:(0,n.jsx)("div",{className:"labeled-graphic-canvas__bounds",children:(0,n.jsxs)("figure",{className:b,children:[L&&r&&(0,n.jsx)(Me.ArcTooltip,{anchorAt:"top-center",text:"Edit alt text",children:(0,n.jsx)("div",{className:"item-media__tooltip",children:(0,n.jsx)("button",{className:"labeled-graphic-canvas__alt-tag",onClick:h,type:"button",children:"ALT"})})}),c&&E,(0,n.jsx)("ol",{role:"list",children:s})]})})})})}}const ese=Ke(qte),tse={"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"},sse=(e,t)=>{const s=tse[t];return s?.startsWith("a11y")?e?.[s]||"":s||""};var nse=f(80588);const R8=_("labeled-graphic-marker");class ose extends nse.Component{marker;onMouseMove;onMouseLeave;constructor(t){super(t),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 t=this.parentCanvasElement();t.addEventListener("mousemove",this.onMouseMove=s=>{this.onItemDrag(s)}),t.addEventListener("mouseleave",this.onMouseLeave=s=>{this.onItemRelease(s)})}componentWillUnmount(){const t=this.parentCanvasElement();t.removeEventListener("mousemove",this.onMouseMove),t.removeEventListener("mouseleave",this.onMouseLeave)}UNSAFE_componentWillReceiveProps(t){const{isSelected:s,useLocalStateForCompletion:o}=t;s&&o&&!this.state.isComplete&&this.setState({isComplete:!0})}buildMarkerLabel=({icon:t,label:s,title:o,viewed:r})=>{const{labels:a}=this.props;return[].concat(s||[]).concat(o||[]).concat(t||[]).concat(r?a?.a11yLabeledGraphicViewed:a?.a11yLabeledGraphicUnviewed).join(", ")};render(){const{accentColor:t,ariaControls:s,icon:o,isActive:r,isComplete:a,isLessonBlocksList:i,isSelected:c,isVisible:d,labels:l,markerColor:h,markerColorContrast:m,onFocus:p,styles:v,useLocalStateForCompletion:C}=this.props,g=this.props.getL10nValue(this.props.title),x=sse(l,o),L=C?this.state.isComplete:a,T=!!h,y=Bs(h),S=Rt({backgroundColor:h,contrast:m??y}),N=T?h:"#ffffff",k=T?S:t,E=this.buildMarkerLabel({icon:x,label:l&&l.a11yLabeledGraphicButtonMarker||"",title:g,viewed:L}),I=R8({active:c,dragged:this.state.isDragged,visible:d,complete:L}),P={...v,"--color-lg-accent":N,"--color-lg-font":k},A=R8("pin",{selected:c,disabled:i});return(0,n.jsx)("button",{"aria-controls":s,"aria-expanded":r,"aria-label":E,className:I,onClick:this.onClick,onContextMenu:this.onItemRelease.bind(this),onFocus:p,onMouseDown:this.onItemGrab.bind(this),onMouseEnter:this.onHover.bind(this),onMouseLeave:this.onLeave.bind(this),onMouseUp:this.onItemRelease.bind(this),ref:w=>{this.marker=w},style:P,type:"button",children:(0,n.jsx)("span",{className:A,children:(0,n.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:t,itemId:s,onClick:o,parentId:r}=this.props,a="labeledGraphicMarkerClick",i={detail:{itemId:s,parentId:r}},c=new CustomEvent(a,i);document.dispatchEvent(c),t||o()}onItemGrab(t){const{editable:s}=this.props;if(!s)return;const o=this.marker.getBoundingClientRect(),r=o.left-t.clientX+this.marker.offsetWidth/2,a=o.top-t.clientY+this.marker.offsetHeight/2;this.setState({posX:t.clientX,posY:t.clientY,offsetX:r,offsetY:a,isDragged:!0})}onItemDrag(t){if(this.state.isDragged){const s=t.clientX-this.state.posX,o=t.clientY-this.state.posY;this.marker.style.transform=`translate3d(${s}px, ${o}px, 0)`}}onItemRelease(t){const{editable:s}=this.props,o={isDragged:!1};this.marker.style.transform="translate3d(0, 0, 0)",this.state.isDragged&&this.state.posX===t.clientX&&this.state.posY===t.clientY?this.props.onClick():s&&t.currentTarget instanceof HTMLElement&&t.currentTarget.classList.contains("labeled-graphic-marker")?this.props.onSetPosition(t,this.state.offsetX,this.state.offsetY):this.state.isDragged&&(o.offsetX=0,o.offsetY=0),this.setState(o)}}const rse=Ke(ose);class ase extends u.Component{static get defaultProps(){return{animateBlockEntrance:!1,editable:!0,getL10nValue:t=>t,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(t){super(t);const{isLearner:s}=t;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:!s||Ns()}}componentDidMount(){const{isBlock:t,isLearner:s,isPreview:o,markerDelay:r}=this.props;s&&!t&&(this.timeout=setTimeout(()=>this.setState({showMarkers:!0}),o?0:r))}componentWillUnmount(){clearTimeout(this.timeout),clearTimeout(this.entranceDoneTimeout)}render(){const{accentColor:t,animateBlockEntrance:s,blockId:o,color:r,canvasClassNames:a,disableCreateMarker:i,editable:c,getL10nValue:d,imageLoaded:l=!0,isBlock:h,isLearner:m,isLessonBlocksList:p,isPreview:v,initiallyVisible:C,items:g,labels:x,lessonId:L,media:T,onItemClear:y,onItemHint:b,onItemSelected:S,onNextClick:N,onPreviousClick:k,onShowAltDialog:E,parentId:I,progress:P,selected:A,settings:w={},showBubbles:O,enableVideoPlaybackSpeed:j}=this.props,{cornerRadius:R,markerColor:M,markerColorContrast:z}=w,{showMarkers:$}=this.state,F=M||(t||r),K=G()("map-item",{"map-item--animated":!c}),Q=s?"fadeIn":"none",J=s?1:0,te=g.length>1;return(0,n.jsx)(u.Fragment,{children:(0,n.jsx)(Pe,{afterAnimatedIn:this.afterAnimatedIn,animateBlockEntrance:!v,animateIn:Q,duration:v?0:J,initiallyVisible:C,isLearner:m,children:(0,n.jsx)(ese,{canvasClassNames:a,cornerRadius:R,editable:c,editingDisabled:i,imageLoaded:l,media:T,onCreateMarker:this.createMarker,onShowAltDialog:E,ref:D=>{this.canvas=D},children:g.map((D,U)=>{const{description:V,id:B,icon:W,media:Z,title:X}=D,Y=d(D.x),oe=d(D.y),re={top:oe+"%",left:Y+"%"},me=Vt()(["items",B,"isComplete"],P),he=A===B,Oe=`bubble-${o}-${B}`;return(0,n.jsxs)("li",{className:K,role:"listitem",children:[(0,n.jsx)(rse,{accentColor:F,ariaControls:Oe,editable:c,icon:W,isActive:A===B,isComplete:me,isLessonBlocksList:p,isSelected:he,isVisible:$,itemId:B,labels:x,markerColor:M,markerColorContrast:z,onClick:()=>{S(B)},onFocus:this.onMarkerFocus(B),onHover:()=>{b()},onLeave:()=>{y()},onSetPosition:this.onSetPosition.bind(this,D),parentId:I,ref:ut=>{this.markerRefs[B]=ut},styles:re,title:X,useLocalStateForCompletion:h},B),!c&&O&&(0,n.jsx)(Qte,{accentColor:F,allowNav:te,audioPosition:w.audioPosition,blockId:o,description:V,enableVideoPlaybackSpeed:j,htmlId:Oe,index:U,isActive:he,item:D,labels:x,lessonId:L,media:Z,mediaOpts:{disableZoom:!w.zoomOnClick},onClose:this.onBubbleClose(B),onNextClick:()=>{N(U)},onPreviousClick:()=>{k(U)},title:X,x:Number(Y),y:Number(oe)},Oe)]},B)})})})})}createMarker(t){const{disableCreateMarker:s,editable:o,onCreateMarker:r}=this.props;if(!o||s)return;const{x:a,y:i}=this.findItemCoordinates({e:t}),c=this.props.items.length,l={description:"",hasMedia:!1,icon:"01",id:du()(),isActive:!1,title:"",x:String(a),y:String(i)};r({index:c,payload:l})}onBubbleClose(t){const{onClose:s}=this.props;return(o={shouldFocusMarker:!0})=>{const r=this.markerRefs[t];o.shouldFocusMarker&&r?.focus?.(),s()}}onMarkerFocus(t){return()=>{const{onClose:s,selected:o}=this.props;o&&o!==t&&s()}}onSetPosition(t,s,o,r){if(!this.props.editable)return;const{lesson:a,onSetMarkerPosition:i}=this.props,{id:c,items:d}=a,{x:l,y:h}=this.findItemCoordinates({e:s,offsetX:o,offsetY:r}),m={x:String(l),y:String(h)};(0,jt.uW)(t.x)&&(0,jt.uW)(t.y)?(this.props.updateL10n({l10n:t.x,value:m.x}),this.props.updateL10n({l10n:t.y,value:m.y})):i({itemId:t.id,lessonId:c,items:d,payload:m})}findItemCoordinates({e:t,offsetX:s=0,offsetY:o=0}){const r=this.canvas.imageEl.getBoundingClientRect(),a=20,i=this.findItemCoordinate({clientPos:t.clientX,clientOffset:s,rectSubtractor:r.left,rectDivisor:r.width,validOffsetAmount:a}),c=this.findItemCoordinate({clientPos:t.clientY,clientOffset:o,rectSubtractor:r.top,rectDivisor:r.height,validOffsetAmount:a});return{x:i,y:c}}findItemCoordinate({clientPos:t,clientOffset:s,rectSubtractor:o,rectDivisor:r,validOffsetAmount:a}){const i=a/r*100,c=100-i;let d=(t+s-o)/r*100;return d>c?d=c:d<i&&(d=i),d}afterAnimatedIn(){const{isBlock:t}=this.props;t&&this.setState({showMarkers:!0})}}const ise=Ke(ase);var cse=f(80588);const P8="page-wrap--noscroll";class lse extends cse.Component{static get defaultProps(){return{onItemSelected:Function.prototype,onStep:Function.prototype,getL10nValue:()=>{}}}constructor(t){super(t),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(Ge,this.handleNavEvent)}handleNavEvent(t){const s=t.detail.path[t.detail.path.indexOf("items")+1]?.id,o=t.detail.path[t.detail.path.lastIndexOf("items")+1]?.id;s===this.props.blockId&&this.state.selectedItemId!==o&&this.onItemSelected(o)}componentWillUnmount(){this.props.readOnly||document.removeEventListener("labeledGraphicMarkerClick",this.handleMarkerClick),window.removeEventListener(Ge,this.handleNavEvent)}render(){const{imageLoaded:t}=this.state,{initiallyVisible:s,isLessonBlocksList:o,isPreview:r,items:a,labels:i,parentId:c,settings:d={}}=this.props,{mediaWidth:l="2"}=d,h=r?a[0].id:this.state.selectedItemId,m=G()("view-labeled-graphic",{"view-labeled-graphic--small":l==="0","view-labeled-graphic--medium":l==="1","view-labeled-graphic--full":l==="2"});return(0,n.jsx)("div",{"aria-label":i?.a11yLabeledGraphicBlock,className:m,role:"group",children:(0,n.jsx)(ise,{...this.props,canvasClassNames:this.getCanvasClassNames(),editable:!1,imageLoaded:t,initiallyVisible:s,isLessonBlocksList:o,labels:i,markerDelay:1e3,onClose:this.closeOpenedBubble,onItemSelected:this.onItemSelected,onNextClick:this.onNextClick,onPreviousClick:this.onPreviousClick,parentId:c,selected:h})})}setImageLoaded(){this.setState({imageLoaded:!0})}loadImage(){const{image:t}=this.props.getL10nValue(this.props.media),{key:s,src:o}=t??{};if(!s&&!o)return;const r=setTimeout(this.setImageLoaded,1e3),a=new Image,i=s?Ct(t):o;a.src=i,a.onload=()=>{clearTimeout(r),this.setImageLoaded()}}getCanvasClassNames(){return G()("labeled-graphic-canvas",{"labeled-graphic-canvas--visible":this.state.imageLoaded})}onNextClick(t){const{blockId:s,items:o}=this.props,r=xe()("id",o[ia()(t)]||o[0]);document.querySelector(`dialog#bubble-${s}-${this.state.selectedItemId}[open]`)?.close(),this.onItemSelected(r)}onPreviousClick(t){const{blockId:s,items:o}=this.props,r=xe()("id",o[Cp()(t)]||o[Cp()(Zt()(o))]);document.querySelector(`dialog#bubble-${s}-${this.state.selectedItemId}[open]`)?.close(),this.onItemSelected(r)}onItemSelected(t){const{editBlock:s,items:o,onItemSelected:r,onStep:a}=this.props,{selectedItemId:i}=this.state;s&&window.matchMedia("(max-width: 768px)").matches||(i===t?this.closeOpenedBubble():(this.openBubble(t),ce()(a,Hs()(c=>c.id===t))(o)),r(t))}handleMarkerClick(t){const{itemId:s,parentId:o}=t.detail,{selectedItemId:r}=this.state;(o!==this.props.parentId||r!==s)&&this.closeOpenedBubble()}openBubble(t){const{blockId:s}=this.props;if(window.matchMedia("(max-width: 767px)").matches){const r=document.querySelector(".page-wrap");r&&r.classList.add(P8)}this.setState({selectedItemId:t}),document.getElementById(`bubble-${s}-${t}`).show()}closeOpenedBubble(){const{blockId:t}=this.props;if(window.matchMedia("(max-width: 767px)").matches){const o=document.querySelector(".page-wrap");o&&o.classList.remove(P8)}document.getElementById(`bubble-${t}-${this.state.selectedItemId}`)?.close(),this.setState({selectedItemId:void 0})}}const dse=Ke(lse),use=e=>{const{blockId:t,progress:s,isLessonBlocksList:o=!1}=e,r=Vt()(["items",t],s);return(0,n.jsx)(Ie,{className:"block-labeled-graphic",children:(0,n.jsx)(dse,{...e,editable:!1,isBlock:!0,isLessonBlocksList:o,parentId:t,progress:r})})},Ne=_("block-survey"),M8={bad:1,fair:2,great:3},hse={1:"bad",2:"fair",3:"great"},Fp=["Bad","Fair","Great"],mse=2,pse=10,fse=5,O8=5,gse=7,Eu=e=>!e||e.trim()==="",vse=(e,t,s)=>{const o=s?.items?.[e]?.items??{};let r={};return t.forEach(a=>{let i=o?.[a.id]?.response;i!=null&&(a?.questionType==="RATING"?i=hse[i]:a?.questionType==="LINEAR_SCALE"&&(i=String(i)),r=Object.assign({},r,{[a.id]:i}))}),r},Cse=(e,t)=>t?.items?.[e]?.isSubmitted??!1;function xse({animateBlockEntrance:e,blockId:t,initiallyVisible:s,isLearner:o,items:r=[],labels:a,onSurveySubmitted:i=tn,onSurveyPartialResponse:c=tn,lessonId:d,onStep:l,onSubmit:h,progress:m,settings:p={},title:v}){const[C,g]=(0,u.useState)(()=>vse(t,r,m)),[x,L]=(0,u.useState)(()=>Cse(t,m)),[T,y]=(0,u.useState)(!1),[b]=(0,u.useState)(()=>r.map(()=>Po()("survey-q-"))),[S,N]=(0,u.useState)(!1),[k,E]=(0,u.useState)(new Set),[I,P]=(0,u.useState)(0),A=(0,u.useRef)(null),w=(0,u.useRef)(null),O=(0,u.useRef)(!1),j=(0,u.useCallback)(D=>{w.current=D},[]),{announcePolite:R}=qn(),M=(0,je.A)(x),z=p.cardMode==="TRANSPARENT",$=`validation-error-${t}`,H=(0,u.useCallback)((D,U)=>{g(B=>({...B,[D]:U}));const V=M8[U];c({itemId:D,response:V}),k.has(D)&&(E(W=>{const Z=new Set(W);return Z.delete(D),Z}),r.find(W=>W.id===D)&&r.filter(Z=>Z.isRequired&&Z.id!==D&&Eu(C[Z.id])).length===0&&N(!1))},[k,r,c,C]),F=(0,u.useCallback)((D,U)=>{g(V=>({...V,[D]:U})),c({itemId:D,response:Number(U)}),k.has(D)&&(E(B=>{const W=new Set(B);return W.delete(D),W}),r.find(B=>B.id===D)&&r.filter(W=>W.isRequired&&W.id!==D&&Eu(C[W.id])).length===0&&N(!1))},[k,r,c,C]),K=(0,u.useCallback)((D,U,V)=>{if(V&&U.length>V)return;const B=C[D]||"",W=V&&U.length===V&&B.length<V;g(Z=>({...Z,[D]:U})),c({itemId:D,response:U}),W&&R(`Character limit reached. ${V} characters maximum.`),k.has(D)&&U.trim()!==""&&(E(X=>{const Y=new Set(X);return Y.delete(D),Y}),r.filter(X=>X.isRequired&&X.id!==D&&Eu(C[X.id])).length===0&&N(!1))},[R,r,c,C,k]),Q=(0,u.useCallback)(async()=>{if(!t||!d){console.error("Missing blockId or lessonId");return}y(!0);try{const D=r.map(U=>{const V=C[U.id]||"",B={id:String(t),lessonId:String(d),itemId:U.id,questionTitle:String(U.question),surveyTitle:String(v||""),isUnfinished:!1};return U.questionType==="RATING"?{...B,ratingOptions:{1:U.labels?.[0]??Fp[0],2:U.labels?.[1]??Fp[1],3:U.labels?.[2]??Fp[2]},type:U.questionType,response:M8[V]}:U.questionType==="LINEAR_SCALE"?{...B,type:"LINEAR_SCALE",response:V===""?void 0:Number(V)}:{...B,type:U.questionType,response:V}});window.Runtime?.reportUngradedAnswers&&await window.Runtime.reportUngradedAnswers(D),r.forEach(U=>l?.({id:U.id})),h?.(C),L(!0),i()}catch(D){console.error("Failed to submit survey:",D)}finally{y(!1)}},[t,d,r,C,l,h,v,i]),J=(0,u.useCallback)(D=>{if(D.preventDefault(),T)return;const V=r.filter(B=>B.isRequired).filter(B=>Eu(C[B.id]));if(V.length>0){N(!0),E(new Set(V.map(B=>B.id))),O.current=!0,P(B=>B+1);return}Q()},[T,Q,r,C]);(0,u.useEffect)(()=>{O.current&&w.current&&(w.current.focus(),O.current=!1)},[I]),(0,u.useEffect)(()=>{T&&R(a.a11yBlockSurveySubmitting)},[T,R,a]),(0,u.useEffect)(()=>{!M&&x&&(R(a.a11yBlockSurveyConfirmation),A.current&&A.current.focus())},[x,M,R,a]);const te=(D,U)=>{const V=C[D.id]||"",B=b[U],W=`${B}-char-count`,Z=`${B}-error`,X=k.has(D.id),Y=X&&U===r.findIndex(he=>k.has(he.id));if(D.questionType==="LINEAR_SCALE"){const he=Math.min(pse,Math.max(mse,D.scaleMax??fse)),Oe=Array.from({length:he},(Qe,ze)=>ze+1),ut=Ne("linear-scale-options",{wide:he<=O8,medium:he>O8&&he<=gse}),It=Ne("linear-scale",{error:X});return(0,n.jsxs)("fieldset",{"aria-describedby":X?Z:void 0,className:Ne("question",{error:X}),ref:Y?j:void 0,tabIndex:-1,children:[(0,n.jsxs)("legend",{className:Ne("question-text"),children:[String(D.question),D.isRequired&&(0,n.jsxs)("span",{className:Ne("required-indicator"),children:[" ",(0,n.jsx)("span",{"aria-hidden":"true",children:"*"}),(0,n.jsx)("span",{className:"visually-hidden-always",children:a.surveyRequired})]})]}),(0,n.jsxs)("div",{className:It,children:[(0,n.jsx)("span",{className:Ne("linear-scale-label"),children:D.startLabel}),(0,n.jsx)("div",{className:ut,children:Oe.map(Qe=>{const ze=V===String(Qe);return(0,n.jsxs)("label",{className:Ne("linear-scale-option"),children:[(0,n.jsx)("span",{"aria-hidden":"true",className:Ne("linear-scale-number"),children:Qe}),(0,n.jsx)("div",{className:Ne("linear-scale-indicator"),children:(0,n.jsx)(ie,{className:Ne("linear-scale-dot",{active:ze}),"data-testid":ze?"linear-scale-dot-active":"linear-scale-dot",name:"circle-solid"})}),(0,n.jsx)("input",{"aria-label":String(Qe),checked:ze,className:Ne("linear-scale-input"),name:`survey-${D.id}`,onChange:()=>F(D.id,String(Qe)),type:"radio",value:String(Qe)})]},Qe)})}),(0,n.jsx)("span",{className:Ne("linear-scale-label"),children:D.endLabel})]}),X&&(0,n.jsxs)("div",{className:Ne("error-message"),id:Z,children:[(0,n.jsx)(ie,{"aria-hidden":"true",name:"alert-circle"})," ",a.surveyRequired]})]},D.id)}if(D.questionType==="RATING"){const he=[{value:"bad",label:D.labels?.[0]??"",icon:"face-frown"},{value:"fair",label:D.labels?.[1]??"",icon:"face-smile"},{value:"great",label:D.labels?.[2]??"",icon:"face-laugh"}],Oe=Ne("question",{error:X}),ut=Ne("rating-options",{error:X}),It=X?Z:void 0;return(0,n.jsxs)("fieldset",{"aria-describedby":It,className:Oe,ref:Y?j:void 0,tabIndex:-1,children:[(0,n.jsxs)("legend",{className:Ne("question-text"),children:[String(D.question),D.isRequired&&(0,n.jsxs)("span",{className:Ne("required-indicator"),children:[" ",(0,n.jsx)("span",{"aria-hidden":"true",children:"*"}),(0,n.jsx)("span",{className:"visually-hidden-always",children:a.surveyRequired})]})]}),(0,n.jsx)("div",{className:ut,children:he.map(Qe=>{const ze=V===Qe.value,We=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("input",{"aria-label":Qe.label,checked:ze,className:Ne("rating-input"),name:`survey-${D.id}`,onChange:()=>H(D.id,Qe.value),type:"radio",value:Qe.value}),(0,n.jsx)(ie,{"aria-hidden":"true",className:Ne("rating-icon"),name:Qe.icon}),(0,n.jsx)("span",{"aria-hidden":"true",className:Ne("rating-label"),children:Qe.label})]}),Dt=Ne("rating-option",{selected:ze,error:X});return z?(0,n.jsx)(Bt,{cardMode:"WHITE",className:Dt,tag:"label",children:We},Qe.value):(0,n.jsx)("label",{className:Dt,children:We},Qe.value)})}),X&&(0,n.jsxs)("div",{className:Ne("error-message"),id:Z,children:[(0,n.jsx)(ie,{"aria-hidden":"true",name:"alert-circle"})," ",a.surveyRequired]})]},D.id)}const oe=Ne("question",{error:X}),re=Ne("text-input",{error:X}),me=[X?Z:null,D.maxLength?W:null].filter(Boolean).join(" ")||void 0;return(0,n.jsxs)("div",{className:oe,children:[(0,n.jsxs)("label",{className:Ne("question-text"),htmlFor:B,children:[String(D.question),D.isRequired&&(0,n.jsxs)("span",{className:Ne("required-indicator"),children:[" ",(0,n.jsx)("span",{"aria-hidden":"true",children:"*"}),(0,n.jsx)("span",{className:"visually-hidden-always",children:a.surveyRequired})]})]}),(0,n.jsxs)("div",{className:Ne("text-response"),children:[(0,n.jsx)("textarea",{"aria-describedby":me,"aria-invalid":X?!0:void 0,"aria-required":D.isRequired?!0:void 0,className:re,id:B,maxLength:D.maxLength,onChange:he=>K(D.id,he.target.value,D.maxLength),placeholder:a.surveyPlaceholder,ref:Y?j:void 0,rows:D.questionType==="LONG_RESPONSE"?4:2,value:V}),D.maxLength&&(0,n.jsxs)("div",{className:Ne("character-count"),children:[(0,n.jsxs)("span",{"aria-hidden":"true",children:[V.length," / ",D.maxLength]}),(0,n.jsx)("span",{className:"visually-hidden-always",id:W,children:`${a.a11yBlockSurveyCharCount} ${V.length} ${a.a11yPreposition} ${D.maxLength}`})]})]}),X&&(0,n.jsxs)("div",{className:Ne("error-message"),id:Z,children:[(0,n.jsx)(ie,{"aria-hidden":"true",name:"alert-circle"})," ",a.surveyRequired]})]},D.id)};return(0,n.jsx)(F1,{...p,children:(0,n.jsx)(Ie,{className:Ne(),children:(0,n.jsx)(Pe,{animateBlockEntrance:e,initiallyVisible:s,isLearner:o,children:(0,n.jsx)("div",{children:(0,n.jsx)(Bt,{className:Ne("container"),children:x?(0,n.jsx)("div",{className:Ne("confirmation"),ref:A,tabIndex:-1,children:(0,n.jsxs)("p",{className:Ne("confirmation-text"),children:[(0,n.jsx)(ie,{name:"circle-check-regular"})," ",a.surveyConfirmation]})}):(0,n.jsxs)("form",{noValidate:!0,onSubmit:J,children:[v&&(0,n.jsx)("h2",{className:Ne("title"),children:String(v)}),(0,n.jsx)("div",{className:Ne("questions"),children:r.map((D,U)=>te(D,U))}),(0,n.jsxs)("div",{className:Ne("actions"),children:[(0,n.jsx)("div",{className:Ne("validation-error",{visible:S}),id:`validation-error-${t}`,role:"alert",children:S&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(ie,{"aria-hidden":"true",name:"alert-circle"})," ",a.surveyValidationError]})}),(0,n.jsx)("div",{className:`${Ne("submit")} brand--ui`,children:(0,n.jsx)("button",{"aria-describedby":S?$:void 0,className:Ne("submit-button"),"data-testid":"survey-submit-button",disabled:T,type:"submit",children:T?a.surveySubmitting:a.surveySubmit})})]})]})})})})})})}const Vp=_("block-process-card"),B8=({icon:e,isOverlayAudio:t=!1,onClick:s,text:o,variant:r})=>{const a=`${r}-btn`;return(0,n.jsxs)("button",{className:Vp(a,{"audio-overlay":t}),onClick:s,type:"button",children:[(0,n.jsx)("span",{className:Vp(`${a}-text`),children:o}),(0,n.jsx)(ie,{classNameIcon:Vp(`${a}-icon`),name:e})]})},bse=_("block-process-card"),yse=({activeIndex:e,enableVideoPlaybackSpeed:t,id:s,index:o,isIntroStep:r=!1,isOverlayAudio:a=!1,item:i,labels:c,lessonId:d,media:l,onMediaLoad:h,settingZoomOnClick:m})=>{const{image:p}=l??{},v=a?p?.align??"center":"center",C=bse("media",{legacy:!1,"audio-overlay":a,[`audio-overlay-${v}`]:a,"intro-step":r}),g=e===o;return(0,n.jsx)("div",{className:C,children:(0,n.jsx)(_t,{activeIndex:e,blockId:s,defaultAlign:"center",enableVideoPlaybackSpeed:t,hasPadding:!1,index:`${s}-${o}`,isOverlayAudio:a,item:i,itemIndex:o,labels:c,lessonId:d,media:l,onLoad:h,opts:{disableZoom:!m},shouldPause:!g})})};var zp=f(80588);const Vo=_("block-process-card"),Lse=({text:e})=>{const t=zp.useRef(null),{isInView:s}=Sse({ref:t,threshold:.75});return(0,n.jsxs)("div",{className:Vo("swipe-badge",{animate:s}),ref:t,children:[(0,n.jsx)("span",{className:Vo("swipe-badge-text"),children:e}),(0,n.jsx)(ie,{className:Vo("swipe-badge-icon"),name:"chevron-right-solid"})]})};function Sse({ref:e,rootMargin:t="0px",threshold:s=.1}){const[o,r]=zp.useState(!1);return zp.useEffect(()=>{if(!e.current||o)return;const a=new IntersectionObserver(([i])=>{i.isIntersecting&&(r(!0),a.disconnect())},{rootMargin:t,threshold:s});return a.observe(e.current),()=>a.disconnect()},[o,e,t,s]),{isInView:o}}const Tse=({activeIndex:e,className:t,description:s,enableVideoPlaybackSpeed:o,hasIntro:r,id:a,index:i,item:c,labels:d,lessonId:l,media:h,onClickRestart:m,onClickStart:p,settingAudioPosition:v,settingHeadingLevel:C=2,settingShowStepLabel:g=!0,settingStepLabel:x,settingZoomOnClick:L,showSwipeBadge:T,style:y,title:b,totalSteps:S,type:N})=>{const k=`h${C}`,E=N==="intro",I=N==="summary",P=N==="step",A=r?i:i+1,w=Te(x)||d.processStepName,O=Te(Array.isArray(h)?{}:h),j=fn(O,v,!0,"process"),R=()=>{if(!h)return null;const M={activeIndex:e,blockId:a,enableVideoPlaybackSpeed:o,id:a,index:i,isIntroStep:E,labels:d,lessonId:l,media:h,onMediaLoad:()=>{},settingZoomOnClick:L,item:c},z={audio:{media:j.audioOnlyMedia||O,isOverlayAudio:!1},image:{media:j.imageOnlyMedia||O,isOverlayAudio:!1},video:{media:j.videoOnlyMedia||O},embed:{media:j.embedOnlyMedia||O,isOverlayAudio:!1},overlay:{media:O,isOverlayAudio:!1}};return j.renderOrder.map(($,H)=>{if($==="text")return(0,n.jsx)(be,{className:Vo("description"),value:s},`text-${H}`);const F=z[$];return F?(0,n.jsx)(yse,{...M,...F},`${$}-${H}`):null})};return(0,n.jsxs)("div",{className:Vo(null,{[N]:!0}).mix(t),style:y,children:[P&&g&&(0,n.jsx)("div",{className:Vo("number"),children:`${w} ${A}`}),(0,n.jsx)("div",{className:Vo("title"),children:(0,n.jsx)(k,{children:(0,n.jsx)(be,{value:b})})}),R(),!h&&(0,n.jsx)(be,{className:Vo("description"),value:s}),E&&S>1&&(0,n.jsx)(B8,{icon:"chevron-right-solid",isOverlayAudio:j.isOverlayAudio,onClick:p,text:d.processStart,variant:"start"}),I&&S>1&&(0,n.jsx)(B8,{icon:"arrow-rotate-left",isOverlayAudio:j.isOverlayAudio,onClick:m,text:d.processStartAgain,variant:"restart"}),T&&P&&(0,n.jsx)(Lse,{text:d.processSwipe})]})};var Vn=f(80588);const Nse=_("block-process-carousel"),D8=e=>e?.type==="intro",$p=e=>e?.type==="summary",_p=e=>e?.type==="step",H8=e=>e?.isHidden,kse=({animateBlockEntrance:e,enableVideoPlaybackSpeed:t,id:s,initiallyVisible:o,isLearner:r,items:a,labels:i,lessonId:c,onStep:d,onTranscriptUpdate:l,previewType:h,processRef:m,settings:{audioPosition:p,headingLevel:v,stepLabel:C,showStepLabel:g,zoomOnClick:x}})=>{const L=bt(480),T=m1(),y=vs(),b=Vn.useRef(null),[S,N]=Vn.useState(0),[k,E]=Vn.useState(!1),I=Vn.useMemo(()=>h===rr.MOBILE_PORTRAIT||h===rr.MOBILE_LANDSCAPE,[h]),P=Vn.useMemo(()=>{const F=a.filter(te=>!H8(te)),K=F.find(D8),Q=F.find($p),J=F.filter(_p);return[K,...J,Q].filter(Boolean)},[a]),A=Vn.useMemo(()=>P.findIndex((F,K)=>_p(F)&&(_p(P[K+1])||$p(P[K+1]))),[P]),w=D8(P[0]),O=$p(P[P.length-1]),j=!!h;Vn.useEffect(()=>{d&&(a.forEach(F=>H8(F)&&d(F)),P.length>0&&d(P[0]))},[]);const R=Vn.useCallback(()=>{b.current?.navigateToSlide?.(0)},[]),M=Vn.useCallback(()=>{b.current?.navigateToSlide?.(1)},[]),z=Vn.useCallback(F=>{N(F);const K=m.current;j||K?.scrollIntoView({behavior:"smooth",block:"start"}),F!==A&&!k&&E(!0),d?.(P[F]);const Q=P[F]?.media;y(Q)?.audio&&l?.({audioPlayerId:pn({refs:`items:${s}/items:${P[F]?.id}`}),transcriptMedia:Q})},[P,A,y,k,s,j,d,l,m]),$=({index:F,isActive:K,onClick:Q,onKeyDown:J})=>{const te=w&&F===0,D=O&&F===P.length-1,U=w?F:F+1;let V,B;te?(V=i?.a11yBlockProcessSlideControlsIntroduction,B=(0,n.jsx)(ie,{className:"carousel-controls-item-intro-icon",name:"chevron-right"})):D?(V=i?.a11yBlockProcessSlideControlsSummary,B=(0,n.jsx)(ie,{name:"check-regular"})):(V=U.toString(),B=U.toString());const W=`${i?.a11yBlockProcessSlideControlsGoToSlide} ${V}`;return(0,n.jsx)(g9,{"aria-label":W,ariaLabel:W,className:"carousel-controls-item-btn",isActive:K,onClick:Q,onKeyDown:J,children:B},F)},H=e?"fadeIn":"none";return(0,n.jsx)(Pe,{animateBlockEntrance:j,animateIn:H,duration:j&&e?1:0,initiallyVisible:o,isLearner:r,children:(0,n.jsx)("div",{className:Nse(),children:(0,n.jsx)(cu,{blockId:s,carouselRef:b,items:P,children:()=>(0,n.jsx)(au,{iconNameLeft:"chevron-left-solid",iconNameRight:"chevron-right-solid",isInfinite:!1,isRTL:T,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:z,ref:b,renderSlideIndicator:$,shouldMouseEmulateTouch:I,shouldUseCounter:!1,shouldUseGoToSlide:!0,children:P.map((F,K)=>(0,n.jsx)(Bt,{activeIndex:S,description:F.description,enableVideoPlaybackSpeed:t,hasIntro:w,id:s,index:K,isHidden:F.isHidden,item:F,labels:i,lessonId:c,media:F.media,onClickRestart:R,onClickStart:M,settingAudioPosition:p,settingHeadingLevel:v,settingShowStepLabel:g,settingStepLabel:C,settingZoomOnClick:x,showSwipeBadge:L&&!k&&K===A,tag:Tse,title:F.title,totalSteps:P.length,type:F.type},F.id))})})})})};var Ise=f(80588);const Ese=e=>{const{blockId:t}=e,s=Ise.useRef(null);return(0,n.jsx)(Ie,{className:"block-process",ref:s,children:(0,n.jsx)(kse,{id:t,processRef:s,...e})})};var jse=f(33907),wse=f.n(jse),Ase=f(34224),F8=f.n(Ase),Rse=f(81734),V8=f.n(Rse),Pse=f(69572),Mse=f.n(Pse),Ose=f(62449),zo=f.n(Ose);const z8=e=>({...e.responses[e.response],hasCharacter:e.hasCharacter,type:"response"}),Bse=(e,t)=>{const s=e.responses[e.response],o={emotion:t.emotion,goTo:t.goTo,nextSlide:t.nextSlide},r="action"in t?{action:t.action}:{};return{...o,...r,description:s?.feedback||"",type:"dialogue",hasCharacter:e.hasCharacter}},Dse=e=>[z8(e)],Hse=e=>{const t=!!e.responses[e.response],s=z8(e),o=Bse(e,s);return t?[s,o]:[o]},Fse=e=>e.hasFeedback?[e,...Hse(e)]:e.response!=null?[e,...Dse(e)]:[e],Vse=(e,t)=>{if(!t)return;const{scene:s,slide:o}=t,r=e.findIndex(c=>c.id===s),i=(e[r]?.slides||[]).findIndex(c=>c.id===o);return{scene:r,slide:i}},$8=ud()(Vse);var zse=f(87653),$se=f.n(zse);const _se=st()(xe()("filters"),ws()(Ae()("name","rise_emotion")),Qr()(gt())),Use=st()(xe()("filters"),Hs()(Ae()("name","rise_emotion")),xe()("value")),_8=e=>new URL(e).pathname.slice(1),Gse=e=>st()(rs()("key",_8(e.src)),rs()("thumbnailKey",_8(e.thumbnail)))(e),Wse=st()(xe()("poses"),ws()(_se),tt()(e=>[Use(e),e]),$se(),ms()(Gse));var zn=f(80588);const Up=e=>e===-1?null:e,U8=e=>Gt()(Xe(),ve(),e),G8=Qr()(Xe()),ei=Yd()(G8,cn),W8=wse()(_d()),K8=U8(Se?wj:Pj),Gp=e=>as()(e);class Kse extends zn.Component{static get defaultProps(){return{getCharacter:Function.prototype,onItemUpdate:Function.prototype}}continueRef;feedbackRef;resetRef;buttonRef=zn.createRef();responseItemRef=zn.createRef();scenarioRef=zn.createRef();blockContentRef=zn.createRef();endRef=zn.createRef();textRef=zn.createRef();refs=zn.createRef();dynamicRefs=zn.createRef();fadeObservers=new Map;shouldFocus=!1;constructor(t){super(t);const s={activeScene:0,activeSlide:0,initiated:!1,prevScene:0,prevSlide:0,resizes:0,slides:{}};this.refs.current={},this.state=t.initialState||s,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(t){if(!t)return;const s=this.fadeObservers.get(t);s&&(s.observer.disconnect(),t.removeEventListener("scroll",s.scrollHandler),this.fadeObservers.delete(t));const o=Array.from(t.children).find(l=>l.className.includes("-bottom"));if(!o)return;const r=t.parentElement?.classList.contains("scenario-block__dialogue__bubble")||t.parentElement?.classList.contains("scenario-block__dialogue__pane")?t.parentElement:t,a=()=>{const{scrollHeight:l,clientHeight:h}=t;return l>h+2},i=l=>{const h=l?.[0]?.isIntersecting??!1,m=a();m?r.classList.add("has-overflow"):r.classList.remove("has-overflow"),!h&&m?r.classList.add("show-fade"):r.classList.remove("show-fade")},c=new IntersectionObserver(i,{root:t,threshold:[0,1]}),d=()=>{};this.fadeObservers.set(t,{observer:c,scrollHandler:d}),c.observe(o)}componentDidMount(){const{initialState:t,items:s}=this.props,o=ce()(Kr()("poses"),St()({},"character"),Gp);ei(s)&&!o(s)&&this.fetchCharacters(),t||this.resetSlides(),window.addEventListener("resize",this.onResize),window.addEventListener(Ge,this.handleNavEvent)}handleNavEvent(t){const{path:s}=t.detail,{blockId:o,sceneId:r,slideId:a,responseId:i}=Na(s,["block","scene"]),c=s.at(-1)==="feedback";if(o!==this.props.blockId)return;const d=Up(this.props.items.findIndex(m=>m.id===r)),l=d!==null?Up(this.props.items[d].slides.findIndex(m=>m.id===a)):null,h=l!==null?Up(this.props.items[d].slides[l].responses.findIndex(m=>m.id===i)):null;this.setState({activeScene:d??0,activeSlide:l??0},()=>{d!==null&&l!==null&&this.setState({slides:{...this.state.slides,[`${d}.${l}`]:{...this.state.slides[`${d}.${l}`],hasFeedback:c,response:h}}})})}componentDidUpdate(){const{items:t,onStep:s}=this.props,{activeScene:o,activeSlide:r}=this.state,a=De()([],[o,"slides"],t),i=De()(null,[r,"goTo"],a),c=De()(null,[r,"type"],a);if(s&&(i==="end"&&c==="text"||!i&&!c)&&V8()(s,t),this.shouldFocus){this.shouldFocus=!1;const m=this.scenarioRef.current?.querySelector('[data-scenario-focus][tabindex="-1"]');m?m.focus():Pm(this.scenarioRef.current)}this.fadeObservers.forEach(({observer:m,scrollHandler:p},v)=>{document.contains(v)||(m.disconnect(),v.removeEventListener("scroll",p),this.fadeObservers.delete(v))})}componentWillUnmount(){clearTimeout(this.continueRef),clearTimeout(this.feedbackRef),clearTimeout(this.resetRef),window.removeEventListener("resize",this.onResize),window.removeEventListener(Ge,this.handleNavEvent),this.fadeObservers.forEach(({observer:t,scrollHandler:s},o)=>{t.disconnect(),o.removeEventListener("scroll",s)}),this.fadeObservers.clear()}getActiveScene(){return this.getScene(this.state.activeScene)}getScene(t){const{items:s}=this.props;return s&&t>=0&&t<s.length?s[t]:null}fetchCharacterPose(t,s){const o=this.getScene(t),r=o?.slides,a=r&&s>=0&&s<r.length;if(!o||!r||!a)return{name:"",pose:null};const{character:i}=o,c=r[s],d=`${t}.${s}`,l=[d,"response"],h=[d,"hasFeedback"],m=De()(null,l,this.state.slides),p=De()(!1,h,this.state.slides),v=St()("neutral","emotion",c),C=Gt()(Le()(p),De()(v,["responses",m,"emotion"]),Le()(v)),g=st()(De()(i?.poses?.neutral,["poses",C(c)]),K8);return{name:i?.name||"",pose:g(i)}}fetchCharacters(){const{getCharacter:t,items:s,onItemUpdate:o}=this.props,r=Sn()(["id","name","poses","src"]),a=c=>d=>o({itemId:c,payload:{character:d}}),i=({character:c,id:d})=>ei(c)&&t(c.id).then(l=>rs()("poses",Wse(l),l)).then(r).then(a(d));s.map(i)}isCharacterHidden(){const{items:t}=this.props,{activeScene:s,activeSlide:o}=this.state,a=this.getActiveScene()?.slides?.[o],i=o===null,c=t[s];return i?!(c?.slidesHaveCharacterByDefault??!1):a&&!a.hasCharacter}getCharacterPose(){const{items:t}=this.props,{activeScene:s,activeSlide:o,prevScene:r,prevSlide:a}=this.state,i=De()([],[s,"slides"],t),c=De()(!0,[o,"hasCharacter"],i);return G8(r)&&wi()(c)?this.fetchCharacterPose(r,a):this.fetchCharacterPose(s,o)}onClick(t,s){const{items:o,onStep:r}=this.props,{activeScene:a,activeSlide:i}=this.state,c=this.getActiveScene()?.slides,d=St()(null,"type",c?.[i])==="dialogue",l=a===o.length-1,h=i===(c?.length??0)-1,m={activeSlide:i+1},p={activeScene:a+1,activeSlide:0},v={activeSlide:null},C={activeScene:0,activeSlide:0},g=st()($8(o),b=>({activeScene:b.scene,activeSlide:b.slide})),x=os()([[Le()(h&&l),Le()(v)],[Le()(h&&!l),Le()(p)],[sr(),Le()(m)]]),L=Gt()(Le()(d),Le()(v),Le()(C)),T=os()([[Qt()("slide"),zo()(g,[s])],[Qt()("next"),x],[Qt()("end"),L]]),y=()=>this.continueRef=setTimeout(this.setNextSlide,300);this.resetRef=setTimeout(this.resetSlide.bind(this,a,i),0),this.setState({prevScene:a,prevSlide:i}),this.setState(T(t),y),t==="end"&&this.resetSlides(),t==="end"&&r&&V8()(r,o)}onFocus(){this.shouldFocus=!0}onInit(){this.setState({initiated:!0})}onResize(){this.setState({resizes:this.state.resizes+1})}onResponseClick(t,s){const{activeScene:o,activeSlide:r,slides:a}=this.state,{getL10nValue:i,lessonId:c,blockId:d}=this.props,l=`${o}.${r}`,h=rs()("response",t),m=rs()("hasFeedback",!0),p=Gn()({[`${l}`]:h}),v=Gn()({[`${l}`]:m});s.media&&i(s.media)?.audio&&de.playerId===`audio-${c}-${d}`&&de.pause();const g=ce()(v,p);this.setState({slides:p(a)},()=>{this.shouldFocus=!0,this.setState({slides:g(a)})})}onTryAgainClick(){const{activeScene:t,activeSlide:s,slides:o}=this.state,r=`${t}.${s}`,a=F8()({hasFeedback:null,response:null}),i=Gn()({[`${r}`]:a});this.setState({slides:i(o)})}render(){const{blockId:t,getL10nValue:s,isPDF:o,items:r,labels:a}=this.props,{activeScene:i,activeSlide:c,initiated:d}=this.state,h=this.getActiveScene()?.slides?.[c],m=ce()(cn,St()({},"character"),Gp),p=ce()(Kr()("poses"),St()({},"character"),Gp),v=ce()(Ft(),De()({},["character","poses"])),C=ce()(di(),Ft(),tt()(v)),g=this.isCharacterHidden(),x=G()("scenario-block",{"scenario-block--initiated":d,"scenario-block--mobile":oo.isMobile,"scenario-block--loading":m(r)&&!p(r),"scenario-block--character-hidden":g}),L=`scenario-live-${t}`,T={"aria-label":a?.a11yGroupScenario,"aria-describedby":L,className:x,ref:this.scenarioRef,role:"group",style:window.innerWidth<480?{height:window.innerHeight}:void 0},y=Ct(s(r?.[0].background?.media)?.image),b=os()([[Xe(),this.renderEnd],[Ae()("type","dialogue"),this.renderDialogues],[Ae()("type","text"),this.renderText],[sr(),Le()(null)]]),S=G()("scenario-block__character",{"scenario-block__character--hidden":g}),N=`${i}.${c}`,k=this.state.slides[N],E=k?.hasFeedback?h?.responses?.[k?.response]?.alt:h?.alt,I=s(E);return(0,n.jsxs)("div",{children:[(0,n.jsxs)("div",{...T,"data-l10n-id":wt(E),children:[(0,n.jsx)("div",{"aria-live":"polite",className:"visually-hidden-always",id:L,children:I}),(0,n.jsx)("div",{className:"scenario-block__spinner"}),(0,n.jsx)("div",{className:"scenario-block__background-wrapper",children:ei(r)&&r.map(this.renderBackground)}),y&&(0,n.jsx)(Ls,{alt:"",onLoad:this.onInit,src:y}),(0,n.jsxs)("div",{className:"scenario-block__inner",children:[(0,n.jsx)("div",{className:S,children:p(r)&&C(r).map(this.renderPose)}),(0,n.jsx)(Qo,{children:ei(r)&&b(h)})]})]}),o&&h&&this.renderDetails(h)]})}renderBackground(t,s){const{activeScene:o}=this.state,{id:r,blurBackground:a}=t,i=this.props.getL10nValue(t?.background?.media)?.image,c=G()("scenario-block__background",{"scenario-block__background--active":o===s,"scenario-block__background--blur":a??!0}),d=Ct(i);return d?(0,n.jsx)(Ls,{alt:"",className:c,src:d},r):(0,n.jsx)(n.Fragment,{})}renderButton(t){const{labels:s}=this.props,{scenarioContinue:o,scenarioTryAgain:r}=s,{goTo:a,nextSlide:i}=t,c="action"in t?t.action:void 0,d={appear:!0,classNames:"scenario-block__dialogue__button-",nodeRef:this.buttonRef,timeout:{enter:0,exit:1e3}},l=c==="tryAgain"?(0,n.jsxs)("span",{children:[r," ",(0,n.jsx)("i",{className:"icon icon-reload"})]}):(0,n.jsx)("span",{children:o}),m={className:"scenario-block__dialogue__button",key:"button",onClick:c==="tryAgain"?ce()(this.onFocus,this.onTryAgainClick):ce()(this.onFocus,zo()(this.onClick,[a,i]))};return(0,n.jsx)(Qo,{children:(0,n.jsx)(Un,{...d,children:(0,n.jsx)("button",{...m,type:"button",children:l})})})}renderDetails(t){const{items:s}=this.props,{activeScene:o,activeSlide:r}=this.state,{responses:a,type:i}=t,c=(m,p)=>(0,n.jsxs)("span",{children:[m," ",(0,n.jsx)(UB,{})," ",p]},m),d=st()($8(s),m=>`Scene ${m.scene+1} Slide ${m.slide+1}`),l=(m,{goTo:p,nextSlide:v})=>os()([[Qt()("next"),zo()(c,[m,"Next Slide"])],[Qt()("end"),zo()(c,[m,"End of Scenario"])],[sr(),zo()(c,[m,d(v||{})])]])(p),h=i==="text"?l("Continue",t):a.map((m,p)=>l(p,m));return(0,n.jsxs)("div",{className:"scenario-block__pdf-details",children:[(0,n.jsxs)("h3",{children:["Scene ",o+1," Slide ",r+1]}),h]})}renderDialogue(t,s,o){const{description:r,id:a,hasCharacter:i}=s,c="type"in s?s.type:void 0,{count:d,firstKey:l,hasFeedback:h,slide:m,totalDialogues:p}=t,v=o===0?a:o,C=o===1?l:o-1,g=o===0&&d===1,x=o===d,L=c==="dialogue"&&(g||x),T=this.dynamicRefs.current[`dialogue-${v}`],y=x&&this.dynamicRefs.current[`dialogue-${C}`],b=T&&T.offsetHeight,S=x&&y&&y.offsetHeight,N=h?30:0,k=window.innerWidth<480?20:30,E=k*2+60+S-N,I=k+60-N,P=Mse()(b+N-60),A=zn.createRef(),{settings:w,getL10nValue:O}=this.props,j=w?.audioPosition,R=O(m.media),M=fn(R,j),z=M.renderOrder.indexOf("audio")<M.renderOrder.indexOf("text"),$=!!R?.audio,H=h&&o===p-1,F=G()("scenario-block__dialogue",{"scenario-block__dialogue--response":c==="response","scenario-block__dialogue--feedback":H,"scenario-block__dialogue--done":o<d-1,"scenario-block__dialogue--audio-top":z&&$}),K=os()([[Le()(g),Le()(null)],[Qt()(d),Le()({top:`${E}px`})],[Qt()(d-1),Le()({top:`${I}px`})],[Qt()(d-2),Le()({top:`${P}px`})],[sr(),Le()({top:`-${b+30}px`})]]),Q={className:F,ref:B=>{this.dynamicRefs.current[`dialogue-${v}`]=B},style:K(o)},J={appear:!0,classNames:"scenario-block__dialogue-",nodeRef:A,key:o,timeout:{enter:400,exit:400}},te=G()({"scenario-block__dialogue__bubble":i||c==="response","scenario-block__dialogue__pane":!i}),D=this.props.getL10nValue(r)||"",U=c!=="response"&&!H&&$&&z&&(0,n.jsx)("div",{className:"audio-position-wrapper audio-position-wrapper--top",children:this.renderAudioMedia(m)}),V=(0,n.jsxs)("div",{className:te,"data-scenario-focus":L?"":void 0,tabIndex:L?-1:void 0,children:[U,(0,n.jsxs)("div",{className:"scenario-block__dialogue__bubble__content",ref:this.setupFadeObserver,children:[c!=="response"&&!H?this.renderDialogueWithAudioPositioning(m,D,M):(0,n.jsx)(be,{value:D}),(0,n.jsx)("div",{className:"scenario-block__dialogue__bubble-bottom"})]})]});return(0,n.jsx)(Un,{...J,children:(0,n.jsx)("div",{children:(0,n.jsx)("div",{...Q,children:ei(r)&&V})})})}renderDialogues(t){const{activeScene:s,activeSlide:o,slides:r}=this.state,{id:a,responses:i}=t,c=`${s}.${o}`,d=r[c]||{},h=ce()(di(),Fse,ps()(d))(t),{hasFeedback:m,response:p}=d,{feedback:v}=i[p]||{},C=Xe()(p)&&cn(i),g=m?h.length-1:h.length,x=(g===1&&gt()(i)||g===2&&cn(i))&&m,L={count:g,firstKey:De()(null,[0,"id"],h),hasFeedback:m&&ei(v),slide:t,totalDialogues:h.length},T={classNames:"scenario-block__content-",nodeRef:this.blockContentRef,timeout:{enter:0,exit:1e3}},y=(0,n.jsx)("div",{className:"scenario-block__dialogues__bottom",children:(0,n.jsx)("div",{className:"scenario-block__dialogues__bottom__inner",children:(0,n.jsx)("div",{className:"scenario-block__dialogues__responses",children:(0,n.jsx)(Qo,{component:"ol",role:"list",children:i.map((b,S)=>this.renderResponse(b,t,S))})})})});return(0,n.jsx)(Un,{...T,children:(0,n.jsx)("div",{className:"scenario-block__dialogues scenario-block__content",children:(0,n.jsxs)("div",{className:"scenario-block__dialogues__inner",children:[(0,n.jsx)("div",{className:"scenario-block__dialogues__top",children:(0,n.jsx)("div",{className:"scenario-block__dialogues__top__inner",children:(0,n.jsx)(Qo,{children:h.map(this.renderDialogue.bind(this,L))})})}),C&&y,x&&this.renderButton(h[g-1])]})})},a)}renderEnd(){const{labels:t}=this.props,{scenarioComplete:s,scenarioStartOver:o}=t,r=ce()(this.onFocus,zo()(this.onClick,["end",null])),a=G()(["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,n.jsx)(Un,{...i,children:(0,n.jsx)("div",{className:a,children:(0,n.jsxs)("div",{className:"scenario-block__text__inner","data-scenario-focus":"",tabIndex:-1,children:[(0,n.jsx)("div",{className:"scenario-block__text__title",children:(0,n.jsx)("h2",{children:s})}),(0,n.jsxs)("button",{className:"scenario-block__text__end",onClick:r,type:"button",children:[(0,n.jsx)("span",{children:o}),(0,n.jsx)("i",{className:"icon icon-reload"})]})]})},"end")},"end")}renderPose(t,s){const{pose:o}=this.getCharacterPose(),{filters:r,id:a}=t,i=K8(t),c=Yd()(Ae()("name","style")),d=c(Ae()("value","left_aligned")),l=c(Ae()("value","right_aligned")),h=G()("scenario-block__character__inner",{"scenario-block__character__inner--active":o===i,"scenario-block__character__inner--right":Hs()(l,r),"scenario-block__character__inner--left":Hs()(d,r)});return(0,n.jsx)("div",{className:h,"data-pose-id":a,children:(0,n.jsx)(Ls,{alt:"",src:i})},`pose-${s}-${a}`)}renderResponse({description:t},s,o){const{isPDF:r}=this.props,a=r?Zse:ce()(this.onFocus,zo()(this.onResponseClick,[o,s])),i=v=>{const g=v.currentTarget.querySelector(".scenario-block__response__inner");if(g){const x=g.getBoundingClientRect();if(v.clientX>x.right-16){v.preventDefault();return}}a(v)},c=v=>{const g=v.currentTarget.querySelector(".scenario-block__response__inner");if(g){const x=g.getBoundingClientRect();v.clientX>x.right-16?g.classList.add("hovering-scrollbar"):g.classList.remove("hovering-scrollbar")}},d=v=>{const g=v.currentTarget.querySelector(".scenario-block__response__inner");g&&g.classList.remove("hovering-scrollbar")},l=G()(["scenario-block__response",`scenario-block__response--${o}`]),h=G()("scenario-block__response-item",`scenario-block__response-item--${o}`),m={appear:!0,classNames:"scenario-block__response-item-",nodeRef:this.responseItemRef,timeout:{enter:0,exit:1e3}},p=(0,n.jsx)("button",{className:l,onClick:i,onMouseLeave:d,onMouseMove:c,type:"button",children:(0,n.jsxs)("div",{className:"scenario-block__response__inner",ref:this.setupFadeObserver,children:[(0,n.jsx)("div",{className:"scenario-block__response__number",children:o+1}),(0,n.jsx)(be,{value:t}),(0,n.jsx)("div",{className:"scenario-block__response__inner-bottom"})]})});return(0,n.jsx)(Un,{...m,children:(0,n.jsx)("li",{className:h,role:"listitem",children:p})},o)}renderText(t){const{description:s,goTo:o,hasCharacter:r,id:a,nextSlide:i}=t,c=this.props.getL10nValue(t.title),d=this.props.getL10nValue(s)||"",{labels:l,settings:h,getL10nValue:m}=this.props,{scenarioContinue:p,scenarioStartOver:v}=l,C=!s&&(c||"").length<22,g=h?.audioPosition,x=m(t.media),L=fn(x,g),T=L.renderOrder.indexOf("audio")<L.renderOrder.indexOf("text"),y=!!x?.audio,b=G()("scenario-block__text","scenario-block__content",{"scenario-block__text--no-character":!r,"scenario-block__text--short":C,"scenario-block__text--audio-top":T&&y}),S={classNames:"scenario-block__content-",nodeRef:this.textRef,timeout:{enter:0,exit:400}},N=h?.headingLevel,k=N?`h${N}`:"h2",E=`scenario-title-${a}`,I=`scenario-description-${a}`,P=`${E} ${I}`,A=G()("scenario-block__text__inner",{"scenario-block__text__inner--end":o==="end"}),w=G()("scenario-block__text__title",{"scenario-block__text__title--end":o==="end"}),O=(0,n.jsx)("div",{className:w,"data-l10n-id":wt(t.title),id:E,children:(0,n.jsx)(k,{children:c})}),j=y&&T&&(0,n.jsx)("div",{className:"audio-position-wrapper audio-position-wrapper--top",children:this.renderAudioMedia(t)}),R=(0,n.jsx)("div",{className:"scenario-block__text__description",id:I,ref:this.setupFadeObserver,children:this.renderTextWithAudioPositioning(t,d,L)}),M=ce()(this.onFocus,zo()(this.onClick,[o,i])),z=(0,n.jsx)("button",{"aria-describedby":P,className:"scenario-block__text__continue",onClick:M,type:"button",children:(0,n.jsx)("span",{children:p})}),$=(0,n.jsxs)("button",{"aria-describedby":P,className:"scenario-block__text__end",onClick:M,type:"button",children:[(0,n.jsx)("span",{children:v}),(0,n.jsx)("i",{className:"icon icon-reload"})]});return(0,n.jsx)(Un,{...S,children:(0,n.jsx)("div",{className:b,children:(0,n.jsxs)("div",{className:A,"data-scenario-focus":"",tabIndex:-1,children:[c&&O,j,s&&R,o==="end"?$:z]})},a)},a)}renderAudioMedia(t){const{blockId:s,getL10nValue:o,labels:r,lessonId:a,items:i,settings:c}=this.props,d=o(t.media),l=i?.[this.state.activeScene];return d?(0,n.jsx)(_t,{blockId:s,index:s,item:t,labels:r,lessonId:a,lessonNumber:a,media:d,refs:`items:${s}/items:${l.id}/slides:${t.id}`,shouldPause:t.type!=="dialogue",volumeSliderPosition:c?.audioPosition==="top"?"below":"above"}):null}renderDialogueWithAudioPositioning(t,s,o){const r=o.renderOrder.indexOf("audio")<o.renderOrder.indexOf("text");return(0,n.jsxs)(n.Fragment,{children:[o.renderOrder.map((a,i)=>{if(a==="text")return(0,n.jsx)("div",{children:(0,n.jsx)(be,{value:s})},`text-${i}`);if(a==="audio"&&!r){const c=this.renderAudioMedia(t);return c?(0,n.jsx)("div",{children:c},`audio-${i}`):null}return null}),(0,n.jsx)("div",{className:"scenario-block__dialogue__bubble-bottom"})]})}renderTextWithAudioPositioning(t,s,o){const r=o.renderOrder.indexOf("audio")<o.renderOrder.indexOf("text");return(0,n.jsxs)(n.Fragment,{children:[o.renderOrder.map((a,i)=>{if(a==="text")return(0,n.jsx)("div",{children:(0,n.jsx)(be,{value:s})},`text-${i}`);if(a==="audio"&&!r){const c=this.renderAudioMedia(t);return c?(0,n.jsx)("div",{children:c},`audio-${i}`):null}return null}),(0,n.jsx)("div",{className:"scenario-block__text__description-bottom"})]})}resetSlide(t,s){const{slides:o}=this.state,r=`${t}.${s}`,a={hasFeedback:!1,response:null};this.setState({slides:rs()(r,a,o)})}resetSlides(){const{items:t}=this.props,s=r=>(a,i,c)=>{const{type:d,responses:l=[]}=i,h=d==="dialogue"&&l.length===0;return rs()(`${r}.${c}`,{hasFeedback:h,response:null},a)},o=(r,a,i)=>st()(St()([],"slides"),W8(s(i),{}),F8()(r))(a);this.setState({slides:W8(o,{},t)})}setNextSlide(){const{activeScene:t,activeSlide:s,slides:o}=this.state,r=this.getActiveScene()?.slides;if(!r)return;const{responses:a=[],type:i}=r[s]||{},c=`${t}.${s}`,d=rs()("hasFeedback",!0),l=Gn()({[c]:d});i==="dialogue"&&gt()(a)&&(this.shouldFocus=!0,this.setState({slides:l(o)}))}shouldComponentUpdate(t,s){return t.items!==this.props.items||t.settings!==this.props.settings||s.activeScene!==this.state.activeScene||s.activeSlide!==this.state.activeSlide||s.initiated!==this.state.initiated||s.resizes!==this.state.resizes||s.slides!==this.state.slides||t.labels!==this.props.labels}}const Qse=e=>{const t=vs();return(0,n.jsx)(Kse,{...e,getL10nValue:t})};function Zse(){}var Yse=f(80588);class Xse extends Yse.Component{render(){const{animateBlockEntrance:t,isLearner:s,previewType:o,initiallyVisible:r}=this.props,a=!Xe()(o),d={animateBlockEntrance:a,animateIn:t?"fadeIn":"none",duration:a&&t?1:0,initiallyVisible:r,isLearner:s};return(0,n.jsx)(Ie,{className:"block-scenario",children:(0,n.jsx)(Pe,{...d,children:(0,n.jsx)(Qse,{...this.props})})})}}var Jse=f(39495),ju=f.n(Jse);function qse(e){e&&(e.addEventListener("touchstart",$o,!0),e.addEventListener("touchmove",$o,!0),e.addEventListener("touchcancel",$o,!0),e.addEventListener("touchend",$o,!0))}function ene(e){e&&(e.removeEventListener("touchstart",$o,!0),e.removeEventListener("touchmove",$o,!0),e.removeEventListener("touchcancel",$o,!0),e.removeEventListener("touchend",$o,!0))}function $o(e){e?.stopPropagation?.()}const ti=_("playing-card"),Q8=({id:e,isDeckTopCard:t,title:s,ref:o})=>{const[r,a]=(0,u.useState)(!1),[i,c]=(0,u.useState)(!1),[d,l]=(0,u.useState)({x:0,y:0}),[h,m]=(0,u.useState)(!0),[p,v]=(0,u.useState)(!1),[C,g]=(0,u.useState)(0),x=Yt(),L=(0,u.useRef)(null),T=(0,u.useRef)(null),y=(0,u.useRef)(void 0),b=(0,u.useRef)(void 0),S=(0,u.useRef)(!1),N=(0,u.useCallback)(()=>{const{innerWidth:M}=window,z=L.current&&L.current.scrollHeight>L.current.clientHeight,$=M<C;z&&M>C&&g(M),v(z||$)},[C]),k=(0,u.useRef)(()=>{a(!0),c(!1)}),E=(0,u.useRef)(()=>{a(!1)});(0,u.useImperativeHandle)(o,()=>({onStartSortAttempt:k.current,onEndSortAttempt:E.current})),(0,u.useEffect)(()=>{const M=setTimeout(()=>{m(!1)},300);return()=>clearTimeout(M)},[]),(0,u.useEffect)(()=>{const M=T.current;if(!M)return;const z=()=>{a(!0),c(!1)},$=({dx:F,dy:K})=>{l(Q=>({x:Q.x+F,y:Q.y+K}))},H=()=>{a(!1)};return k.current=z,E.current=H,qse(M),Fn(M).draggable({inertia:!0,autoScroll:!1,modifiers:[Fn.modifiers.snap({targets:[(F,K)=>({x:F,y:K})],range:1/0,endOnly:!0,relativePoints:[{x:.5,y:.5}]})]}).on("dragstart",z).on("dragmove",$).on("dragend",H),N(),y.current=Cu()(N,250),window.addEventListener("resize",y.current),()=>{ene(M),Fn(M).off("dragstart",z).off("dragmove",$).off("dragend",H),y.current&&(y.current.cancel(),window.removeEventListener("resize",y.current)),clearTimeout(b.current)}},[N]),(0,u.useEffect)(()=>{N()},[e,N]),(0,u.useEffect)(()=>{const M=S.current;S.current=r,M&&!r&&(c(!0),clearTimeout(b.current),b.current=setTimeout(()=>{l({x:0,y:0}),c(!1)},300))},[r]);const I=x?.backgroundType===q.ACCENT||x?.backgroundType===q.IMAGE,P=`translate3d(${d.x}px, ${d.y}px, 0)`,A={WebkitTransform:P,transform:P},w=ti("title",{"is-max-length":p}),O=ti({draggable:!0,moving:r,fail:i,reset:h}),j=I?ti("content"):ti("content").mix("brand--border"),R=typeof s=="string"?s:s?.["en-US"]||"Card";return(0,n.jsxs)("div",{"aria-hidden":!t,className:O,id:e.toString(),onMouseDown:M=>{M.preventDefault()},ref:T,style:A,children:[t&&(0,n.jsxs)("div",{className:"visually-hidden-always",children:["Current item: ",R]}),(0,n.jsxs)(Bt,{"aria-hidden":"true",className:j,children:[(0,n.jsx)(be,{className:w,id:`card-title-${e}`,ref:L,value:s}),(0,n.jsx)("div",{className:ti("handle")}),(0,n.jsx)("div",{className:ti("status"),children:(0,n.jsx)("i",{className:"icon icon-check"})})]})]},`card-${e}`)},wu=_("restart-button");function tne({allowTabNavigation:e=!0,onClick:t,onFocus:s=tn,ref:o,text:r}){const a=wu({}).mix("button");return(0,n.jsx)("button",{"aria-hidden":!e,className:a,"data-testid":"quiz-take-again-button",onClick:t,onFocus:s,ref:o,tabIndex:tq(e),type:"button",children:(0,n.jsxs)("div",{className:wu("content"),children:[(0,n.jsx)("span",{className:wu("text").mix("brand--ui"),children:r}),(0,n.jsx)("i",{"aria-hidden":"true",className:wu("icon").mix("icon").mix("icon-reload")})]})})}const sne=tne,Dc=_("deck"),nne=e=>e?.percentViewed===100,one=(e,t)=>`${e?.correctlyAnswered??0}/${t}`,rne=(e,t)=>String(t?.lastIncorrectCardId)===String(e.id),ane=({count:e,items:t,labels:s,id:o,onReplay:r,progress:a,ref:i})=>{const c=(0,u.useRef)([]),d=(0,u.useRef)(null);(0,u.useImperativeHandle)(i,()=>({startKeyDrop(){c.current[0]?.onStartSortAttempt()},endKeyDrop(){c.current[0]?.onEndSortAttempt()},focusReplayButton(){d.current?.focus()}}));const l=nne(a),h=one(a,e),m=()=>{r?.({id:o})};return(0,n.jsxs)("div",{className:Dc({complete:a?.percentViewed===100}),children:[(0,n.jsx)("div",{className:Dc("spacer")}),l&&(0,n.jsxs)("div",{className:Dc("cardholder"),children:[(0,n.jsxs)("div",{className:Dc("title").mix("brand--ui"),children:[h," ",s.sortingCardsCorrect]}),(0,n.jsx)(sne,{allowTabNavigation:l,onClick:m,ref:d,text:s.sortingReplay})]}),(0,n.jsx)("div",{className:Dc("content"),children:t.map((p,v)=>(0,n.jsx)(Q8,{id:p.id,isDeckTopCard:c.current[v]===c.current[0],isIncorrect:rne(p,a),ref:C=>{c.current[v]=C},title:p.title},p.id))})]})},Br=_("pile"),ine=({id:e,lessonId:t,deckTopCard:s,nextCard:o,isComplete:r=!1,onCardDrop:a,onNavigateToNext:i,onNavigateToPrevious:c,onKeyDropStart:d,onKeyDropEnd:l,title:h,ref:m})=>{const[p,v]=(0,u.useState)(void 0),[C,g]=(0,u.useState)(!1),[x,L]=(0,u.useState)(!0),[T,y]=(0,u.useState)(!1),[b,S]=(0,u.useState)(!1),[N,k]=(0,u.useState)(0),E=(0,u.useRef)(null),I=(0,u.useRef)(null),P=(0,u.useRef)(null),A=(0,u.useRef)(void 0),w=(0,u.useRef)(void 0),O=(0,u.useRef)(void 0),j=(0,u.useRef)(void 0),R=(0,u.useRef)(void 0),{announcePolite:M}=qn(),z=(0,u.useEffectEvent)(()=>{if(r||!s)return;const B=s.id.toString(),W=s.pileId===e;a?.({id:t,itemId:B,isCorrect:W});const Z=typeof s.title=="string"?s.title:s.title?.["en-US"]||"",X=typeof h=="string"?h:h?.["en-US"]||"";if(W){clearTimeout(w.current),clearTimeout(O.current),clearTimeout(j.current),v(s),g(!0),L(!1);const Y=`Correct. ${Z}, category: ${X}`;M(Y);const oe=o?typeof o.title=="string"?o.title:o.title?.["en-US"]||"":"";oe&&(j.current=setTimeout(()=>{M(`Next item. ${oe}`)},500)),w.current=setTimeout(()=>{v(void 0),g(!1)},1500),O.current=setTimeout(()=>{L(!0)},1300)}else clearTimeout(w.current),clearTimeout(O.current),clearTimeout(j.current),v(void 0),g(!1),L(!0),M("Incorrect. Choose another category.")});(0,u.useImperativeHandle)(m,()=>({focus(){I.current?.focus()}}));const $=(0,u.useCallback)(()=>{const{innerWidth:B}=window,W=E.current&&E.current.scrollHeight>(E.current.offsetParent?.clientHeight??0),Z=B<N;W&&B>N&&k(B),S(W||Z)},[N]),H=(0,u.useCallback)(()=>{if(r||!s)return;d?.();const B=s.id.toString(),W=s.pileId===e;a?.({id:t,itemId:B,isCorrect:W});const Z=typeof s.title=="string"?s.title:s.title?.["en-US"]||"Card",X=typeof h=="string"?h:h?.["en-US"]||"Pile";if(W){clearTimeout(w.current),clearTimeout(O.current),clearTimeout(j.current),v(s),g(!0),L(!1);const Y=`Correct. ${Z}, category: ${X}`;M(Y);const oe=o?typeof o.title=="string"?o.title:o.title?.["en-US"]||"":"";oe&&(j.current=setTimeout(()=>{M(`Next item. ${oe}`)},500)),w.current=setTimeout(()=>{v(void 0),g(!1)},1500),O.current=setTimeout(()=>{L(!0)},1300)}else clearTimeout(w.current),clearTimeout(O.current),clearTimeout(j.current),v(void 0),g(!1),L(!0),M("Incorrect. Choose another category.")},[r,s,o,e,t,h,d,a,M]),F=(0,u.useCallback)(B=>{so(B)?mC(()=>c?.())(B):no(B)&&mC(()=>i?.())(B)},[c,i]),K=(0,u.useCallback)(()=>{r||(H(),clearTimeout(R.current),R.current=setTimeout(()=>l?.(),100))},[H,l,r]),Q=(0,u.useCallback)(()=>{y(!0)},[]),J=(0,u.useCallback)(()=>{y(!1)},[]);(0,u.useEffect)(()=>{const B=P.current;if(!B)return;const W=Y=>{const oe=Fn.getElementRect(Y.target),re={x:oe.left+oe.width/2,y:oe.top+oe.height/2};Y.draggable.draggable({snap:{targets:[re]}})},Z=Y=>{Y.draggable.draggable({snap:{targets:[(oe,re)=>({x:oe,y:re})]}})},X=Y=>{Y.draggable.draggable({snap:{targets:[(oe,re)=>({x:oe,y:re})]}}),Y.stopPropagation?.(),Y.preventDefault?.(),z()};return Fn(B).dropzone({overlap:"pointer"}).on("dragenter",W).on("dragleave",Z).on("drop",X),$(),A.current=Cu()($,250),window.addEventListener("resize",A.current),()=>{Fn(B).off("dragenter",W).off("dragleave",Z).off("drop",X),clearTimeout(w.current),clearTimeout(O.current),clearTimeout(j.current),clearTimeout(R.current),A.current&&(A.current.cancel(),window.removeEventListener("resize",A.current))}},[]);const te=G()(Br(),{"drop-success":C,complete:r}),D=G()(Br("content"),{"drop-animating":!x&&!T}),U=Br("title",{"is-max-length":b}),V=typeof h=="string"?h:h?.["en-US"]||"Category";return(0,n.jsx)("div",{className:te,ref:P,children:(0,n.jsx)("div",{className:Br("wrapwrap"),children:(0,n.jsxs)(Bt,{className:Br("wrap"),overrideBackground:!0,children:[(0,n.jsx)("div",{"aria-hidden":"true",className:Br("message"),children:(0,n.jsx)(be,{className:U,ref:E,value:h})}),(0,n.jsx)("button",{"aria-disabled":r,"aria-label":V,className:D,disabled:r,onBlur:J,onClick:K,onFocus:Q,onKeyDown:F,ref:I,type:"button",children:p&&(0,n.jsx)(Q8,{id:p.id,title:p.title})}),(0,n.jsx)("div",{className:Br("background")})]})})})},Wp=_("sorting"),cne=(e,t)=>!t||!t.items?e:e.filter(s=>!t.items?.[s.id]?.isViewed),lne=({id:e,labels:t,items:s,piles:o,onCardDrop:r,onReplay:a,progress:i})=>{const[c,d]=(0,u.useState)(()=>ju()(s)),[l,h]=(0,u.useState)(!1),m=(0,u.useRef)([]),p=(0,u.useRef)(null),v=(0,u.useRef)(i?.retryAttempts),C=(0,u.useRef)(i?.percentViewed),g=(0,u.useRef)(void 0),x=(0,u.useRef)(void 0),L=(0,u.useRef)(void 0),{announcePolite:T}=qn(),y=(0,u.useEffectEvent)(()=>{m.current[0]?.focus()}),b=(0,u.useEffectEvent)(()=>{const w=i?.correctlyAnswered??0,O=s.length;T(`${w} of ${O} cards correct`)}),S=(0,u.useEffectEvent)(()=>{p.current?.focusReplayButton()});(0,u.useEffect)(()=>{const w=O=>{const{blockId:j,cardId:R}=Na(O.detail.path,["block","card"]);e!==j||!R||d(M=>{const z=M.find(H=>H.id===R),$=M.filter(H=>H.id!==R);return z?[z,...$]:M})};return window.addEventListener(Ge,w),()=>{window.removeEventListener(Ge,w)}},[e]),(0,u.useEffect)(()=>{const w=i?.retryAttempts,O=v.current;return w!==O?(v.current=w,d(ju()(s)),clearTimeout(g.current),g.current=setTimeout(()=>{y()},100)):d(j=>{const R=s.filter($=>!j.find(H=>H.id===$.id));return[...j.filter($=>s.find(H=>H.id===$.id)).map($=>{const H=s.find(F=>F.id===$.id);return H?{...$,...H}:$}),...R]}),()=>{clearTimeout(g.current)}},[s,i?.retryAttempts]),(0,u.useEffect)(()=>{const w=i?.percentViewed,O=C.current;return w===100&&O!==100&&(h(!0),clearTimeout(x.current),x.current=setTimeout(()=>{b()},500),clearTimeout(L.current),L.current=setTimeout(()=>{S()},100)),w!==100&&O===100&&h(!1),C.current=w,()=>{clearTimeout(x.current),clearTimeout(L.current)}},[T,i?.correctlyAnswered,i?.percentViewed,s.length]);const{sortingLandmark:N}=t,k=cne(c,i),E=N,I=k?.[0],P=I?typeof I.title=="string"?I.title:I.title?.["en-US"]||"":"",A=l?"Categories. Interaction completed.":P?`Categories. ${P}`:"Categories";return(0,n.jsxs)("div",{"aria-label":E,className:Wp(),role:"group",children:[(0,n.jsx)("div",{className:Wp("row"),children:(0,n.jsx)(ane,{count:c.length,id:e,items:k,labels:t,onReplay:a,progress:i,ref:p})}),(0,n.jsx)("ul",{"aria-label":A,className:Wp("row"),role:"list",children:o.map((w,O)=>(0,n.jsx)("li",{role:"listitem",children:(0,n.jsx)(ine,{deckTopCard:k?.[0],id:w.id,isComplete:l,lessonId:e,nextCard:k?.[1],onCardDrop:r,onKeyDropEnd:()=>{p.current?.endKeyDrop()},onKeyDropStart:()=>{p.current?.startKeyDrop()},onNavigateToNext:()=>sq({list:m.current,currentIndex:O}),onNavigateToPrevious:()=>nq({list:m.current,currentIndex:O}),ref:j=>{m.current[O]=j},title:w.title})},w.id))})]})},Z8=()=>()=>{},dne=e=>{const{animateBlockEntrance:t,blockId:s,initiallyVisible:o,items:r,labels:a,onCardDrop:i=Z8,onReplay:c=Z8,piles:d,progress:l}=e;return(0,n.jsx)(Ie,{type:"sorting-activity",children:(0,n.jsx)(Pe,{animateBlockEntrance:t,initiallyVisible:o,isLearner:!0,children:(0,n.jsx)(lne,{id:s,items:r,labels:a,onCardDrop:i(e),onReplay:c(e),piles:d,progress:De()({},["items",s],l)})})})};class une extends u.Component{static defaultProps={scope:"error-boundary"};constructor(t){super(t),this.state={hasError:!1,prevScope:t.scope}}static getDerivedStateFromError(t){return{hasError:!0,error:t}}static getDerivedStateFromProps(t,s){return s.prevScope!==t.scope?{hasError:!1,error:void 0,prevScope:t.scope}:s}componentDidCatch(t){Wn.L2.addError(t,{scope:this.props.scope},"source")}render(){const{hasError:t,error:s}=this.state,{FallbackComponent:o}=this.props;return t||s?(0,n.jsx)(o,{}):this.props.children}}const hne=une,mne=(0,u.lazy)(()=>f.e("webpack_container_remote_mondrian_learn-react").then(f.t.bind(f,4246,23))),pne={subscribe(e,t){const s=`mondrian:${e}`,o=()=>{de.isPlaying&&de.playerId!==s&&t()};return de.addChangeListener(o),()=>{de.removeChangeListener(o)}},play(e){const t=`mondrian:${e}`;de.playerId=t,de.isPlaying=!0}};function fne(e){const t={};return e.backgroundType==="IMAGE"&&(t["--color-background"]="transparent"),t.maxWidth=(e.contentWidth??9999)+"rem",t.minWidth="0",t.margin="0 auto",t}function gne({blockumentId:e,manifest:t}){let s=920,o=600;try{const r=t.blockuments?.[e];if(r){const a=t.items?.[r.children[0]?.id];if(a){const i=a.states[a.initialState];if(i){const c=i.width.value,d=i.height.value;typeof c=="number"&&typeof d=="number"&&(s=c,o=d)}}}}catch{}return(0,n.jsx)("svg",{"aria-hidden":"true",className:"block-mondrian__fallback",height:o,width:s})}function vne({animateBlockEntrance:e=!0,initiallyVisible:t,blockumentId:s,isLearner:o=!1,settings:r,onStep:a,onTranscriptClose:i,onTranscriptOpen:c,onTranscriptUpdate:d,labels:l,transcriptPanelState:h}){const m=Re(),p=m.mondrian,v=h1(),C={externalLinksDisabled:"externalLinksDisabled"in m?m.externalLinksDisabled:!1,isExternalLink:zs},{currentLocale:g}=Ze(),x=Ds(),L=QG(),T=(0,u.useMemo)(()=>({active:g,source:x}),[g,x]),y=(0,u.useCallback)(I=>h?.audioPlayerIdOpen===pn({refs:`items:${s}/items:${I}`}),[s,h?.audioPlayerIdOpen]),b=(0,u.useCallback)(({refocusTarget:I,itemId:P,transcript:A})=>{y(P)?i?.():c?.({audioPlayerId:pn({refs:`items:${s}/items:${P}`}),focusing:!0,refocusTarget:I,transcriptMedia:{mondrianTranscript:A}})},[s,y,i,c]),S=(0,u.useCallback)(({itemId:I,transcript:P})=>{h?.audioPlayerIdOpen&&d?.({audioPlayerId:pn({refs:`items:${s}/items:${I}`}),transcriptMedia:{mondrianTranscript:P}})},[s,d,h]),N=(0,u.useCallback)(I=>{d?.({audioPlayerId:pn({refs:`items:${s}/items:${I}`}),focusing:!0})},[s,d]),k=(0,u.useMemo)(()=>({isPanelOpenForItem:y,focusPanel:N,togglePanel:b,updateTranscript:S}),[N,y,b,S]),E=(0,u.useCallback)(I=>{if(a)for(const P of Object.values(I))P.progress>=100&&a({id:P.itemId})},[a]);return(0,n.jsx)(Ie,{children:(0,n.jsx)(hne,{FallbackComponent:bne,children:(0,n.jsx)(Pe,{animateBlockEntrance:e,initiallyVisible:t,isLearner:o,children:(0,n.jsx)("div",{style:fne(r),children:(0,n.jsx)(u.Suspense,{fallback:(0,n.jsx)(gne,{blockumentId:s,manifest:p}),children:(0,n.jsx)(mne,{blockumentId:s,hoveredItemPath:L.translationHoveredPath,labels:l,linkRenderConfig:C,locale:T,manifest:p,mediaStoreAdapter:pne,onMediaProgress:E,runtimeInterface:window.Runtime,searchTerm:v?.term,transcriptPanelAdapter:k})})})})})})}const Cne=(0,u.memo)(vne,xne);function xne(e,t){return e.blockumentId===t.blockumentId&&e.settings.backgroundType===t.settings.backgroundType&&e.settings.contentWidth===t.settings.contentWidth&&e.labels===t.labels&&e.transcriptPanelState?.audioPlayerIdOpen===t.transcriptPanelState?.audioPlayerIdOpen}function bne(){return null}const yne=_("block-ai-scenario"),Lne=(0,u.lazy)(()=>f.e("webpack_container_remote_ai_scenario_player-react").then(f.t.bind(f,79812,23)));function Sne({scenarioId:e,onExit:t,onEdit:s,isEditDisabled:o,disabledTooltip:r}){const{currentLocale:a}=Ze(),i=Ds(),c=(0,u.useMemo)(()=>({active:a,source:i}),[a,i]);return(0,n.jsx)(Ie,{className:yne("wrapper"),children:(0,n.jsx)(u.Suspense,{children:(0,n.jsx)(Lne,{disabled:o,disabledTooltip:r,locale:c,onEdit:o?void 0:s,onExit:t,scenarioId:e})})})}const Tne=(0,u.memo)(Sne);var Y8=f(67750),qe=f(80588);const kt=_("block-code"),Nne=`${ye("CDN_URI")}/assets/rise/assets/blocks/code_block_unavailable.svg`;function X8(e,t){const s=J8(Y8.parse(e.data));for(const o of s)if(o.type==="notification")t[o.method]?.(o.params);else throw new Error(`Unsupported RPC type "${o.type}"`)}function*J8(e){if(Array.isArray(e))for(const t of e)yield*J8(t);else yield e}function q8(e,t,s){return qe.useEffect(()=>{const r=new AbortController;return window.addEventListener("message",a=>{a.origin===window.origin&&t!=null&&e.current&&a.source===e.current.contentWindow&&X8(a,t)},{signal:r.signal}),()=>r.abort()},[t,e]),qe.useCallback(r=>{e.current?.contentWindow?.postMessage(r,s)},[e,s])}const kne=(e,t,s)=>q8(e,s,window.origin),Ine=(e,t,s)=>q8(e,s,"*"),Ene=(e,t,s)=>{const[o,r]=qe.useState(()=>new BroadcastChannel(t));return qe.useEffect(()=>()=>o.close(),[o]),qe.useEffect(()=>{o.name!==t&&r(new BroadcastChannel(t))},[o,t]),qe.useEffect(()=>{const i=new AbortController;return o.addEventListener("message",c=>X8(c,s),{signal:i.signal}),()=>i.abort()},[o,s]),qe.useCallback(i=>{o.postMessage(i)},[o])},jne=ui()?oo.isLocalFilesystem?Ine:Ene:kne,wne=window.location.origin==="";function Ane(e){let t=wne?"":"lib/sandbox/sandbox.html";return t+=`#channel=${encodeURIComponent(e)}`,t}function Rne(e){return typeof e=="number"?`${e/10}rem`:"-1px"}const Pne={0:"small",1:"medium",2:"full"};function Mne({editBlock:e,errors:t,isDragPreview:s,isLearn:o,isSidebarPreview:r,items:a,labels:i,onClearErrors:c,onError:d,onStep:l,previewType:h,settings:m}){const p=qe.useRef(null),C=Re()?.htmlBlocksDisabled,g=s||r||!!h,[x]=a,L=Te(x.srcdoc),T=Te(x.media),y=T?.sandbox?.src==null?void 0:`${T.sandbox.src}/index.html`,b=m?.autoResize===!0,S=m?.width??"0",[N,k]=qe.useState("-1px");qe.useEffect(()=>{b||k(Rne(m?.height))},[b,m?.height]);const[E,I]=qe.useState(0),[P,A]=qe.useState(!1),[w,O]=qe.useState(!1),[j]=qe.useState(()=>`rise-frontend-sandbox-${window.crypto.randomUUID()}`),R=Ane(j),M=qe.useCallback(()=>{l?.({id:x.id})},[x.id,l]),z=qe.useCallback(({message:U})=>{d?.({message:U}),O(!0),console.error("Sandbox Error",U)},[d,O]),$=qe.useCallback(()=>{c?.(),O(!1),I(U=>U+1)},[c]),H=qe.useCallback(()=>{A(E>0)},[E]),F=qe.useCallback(({height:U})=>{b&&k(`${U}px`)},[b]),K=qe.useMemo(()=>({oncomplete:M,onerror:z,onload:H,onready:$,onresize:F}),[M,z,$,H,F]),Q=jne(p,j,K),J=qe.useCallback((U,V)=>{if(p==null&&E===0)throw new Error("Attempted to send message to sandbox before it is ready");const B=Y8.format.notification(U,V);Q(B)},[E,p,Q]),te=qe.useCallback(()=>{window.location.reload()},[]),D=qe.useCallback(()=>{e?.()},[e]);return qe.useEffect(()=>{E&&J("onupdate",{autoResize:b,src:y,srcDoc:L})},[b,E,J,y,L]),o&&t!=null||w?(0,n.jsx)(Ie,{children:(0,n.jsxs)("div",{className:kt("error-general",{learn:o}),children:[(0,n.jsx)("div",{className:kt("error-message"),children:"Something went wrong"}),(0,n.jsx)("div",{className:kt("error-message-subtitle"),children:"There was an error loading this code block. Please contact your admin if the issue continues."}),(0,n.jsx)(Me.ArcButton,{className:kt("error-button"),onClick:te,size:"lg",variant:"primary",children:"Refresh page"})]})}):t!=null&&Object.keys(t).length>0?(0,n.jsx)(Ie,{children:t[404]?(0,n.jsxs)("div",{className:kt("error-404"),children:[(0,n.jsx)("div",{className:kt("error-message"),children:"We couldn\u2019t find your file"}),(0,n.jsx)("div",{className:kt("error-message-subtitle"),children:"Make sure your zip file contains an index.html file."}),(0,n.jsx)(Me.ArcButton,{className:kt("error-button"),onClick:D,size:"lg",variant:"primary",children:"Retry upload"})]}):(0,n.jsxs)("div",{className:kt("error-general"),children:[(0,n.jsx)("div",{className:kt("error-message"),children:"Something went wrong"}),(0,n.jsxs)("div",{className:kt("error-message-subtitle"),children:["Try refreshing the page or entering your code again. If the issue isn't fixed,"," ",(0,n.jsx)("a",{href:"https://community.articulate.com/group/code-block",rel:"noopener noreferrer",target:"_blank",children:"visit our community"}),"."]}),(0,n.jsx)(Me.ArcButton,{className:kt("error-button"),onClick:te,size:"lg",variant:"primary",children:"Refresh page"})]})}):C&&!g?(0,n.jsx)(Ie,{children:(0,n.jsx)("div",{className:kt("restricted"),children:(0,n.jsxs)("div",{className:kt("restricted-card"),children:[(0,n.jsx)(Xm,{alt:"",className:kt("restricted-icon"),src:Nne}),(0,n.jsx)("div",{className:kt("restricted-title"),children:"Subscribe to unlock full access"}),(0,n.jsx)("div",{className:kt("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,n.jsx)(Ie,{children:(0,n.jsx)("iframe",{allow:"fullscreen",className:kt({"auto-resize":b,loaded:g||P,width:Pne[S]}),"data-rise-frontend-sandbox":"",loading:"lazy",ref:p,sandbox:"allow-forms allow-popups allow-same-origin allow-scripts",scrolling:b?"no":void 0,src:R,style:{"--block-html-height":N},title:i?.a11yBlockCode},j)})}const _o=_("timeline-card"),One=e=>{const{blockId:t,disableZoom:s,enableVideoPlaybackSpeed:o,isOverlayAudio:r,item:a,labels:i,lessonId:c,lessonNumber:d,mediaType:l,audioPosition:h}=e,{settings:m}=a,p=Te(a.media)??{},v=l==="audio"&&p.audio,C=l==="embed"&&p.embed,g=l==="image"&&p.image,x=l==="video"&&p.video;if(!v&&!C&&!g&&!x&&!(l==="image-with-audio"&&r))return;const T=p.embed?Pr(p.embed):void 0,y=!!p.image,b=!!p.audio,S=y?p.image.align:"center",N=_o("media",{audio:b&&!r,"audio-and-embed":!!(p.audio&&p.embed),"image-with-audio":r,[`image-with-audio-${S}`]:r&&!!S,"audio-on-bottom":b&&!r&&h==="bottom",linkEmbed:T==="link",videoEmbed:T==="video",visual:!r&&y||!Xe()(p.video)}),k=m||{};return(0,n.jsx)("div",{className:N,children:(0,n.jsx)(_t,{blockId:t,enableVideoPlaybackSpeed:o,index:`${a.id}`,isOverlayAudio:r,item:a,labels:i,lessonId:c,lessonNumber:d,media:p,mediaType:r?void 0:l,opts:{disableZoom:s,...k}})})},Bne=e=>{const{headingLevel:t,innerRef:s,item:o,isActive:r,loadMedia:a,audioPosition:i,onFocus:c}=e,{id:d}=o,l=_o({active:r}),h=!!o.date,m=!!o.title,p=t||2,v=`h${p}`,C=`h${p+1}`,g=Te(o.media)??{},x=fn(g,i,!0,"timeline"),L=()=>{if(!g||!a)return null;const T={audio:{item:{...o,media:x.audioOnlyMedia||g},mediaType:"audio"},image:{item:{...o,media:x.imageOnlyMedia||g},mediaType:"image"},video:{item:{...o,media:x.videoOnlyMedia||g},mediaType:"video"},embed:{item:{...o,media:x.embedOnlyMedia||g},mediaType:"embed"},overlay:{mediaType:"image-with-audio",isOverlayAudio:!0}};return(0,n.jsx)(n.Fragment,{children:x.renderOrder.map((y,b)=>{if(y==="text")return(0,n.jsx)(be,{className:_o("description"),value:o.description},`text-${b}`);const S=T[y];return S?(0,u.createElement)(One,{...e,...S,key:`${y}-${b}`}):null})})};return(0,n.jsx)("div",{className:l,"data-id":d,ref:s,children:(0,n.jsx)(Bt,{className:_o("body"),onFocus:c,children:(0,n.jsx)("div",{className:_o("main-wrap"),children:(0,n.jsxs)("div",{className:_o("main"),children:[h&&(0,n.jsx)("div",{className:_o("date"),children:(0,n.jsx)(v,{children:(0,n.jsx)(lt,{value:o.date})})}),m&&(0,n.jsx)("div",{className:_o("title"),children:(0,n.jsx)(C,{children:(0,n.jsx)(lt,{value:o.title})})}),L()]})})})})},Hc=_("timeline"),Dne=e=>{const{audioPosition:t,disableZoom:s,enableVideoPlaybackSpeed:o,headingLevel:r,id:a,initiallyVisible:i,isBlock:c,isLearner:d,item:l,labels:h,lessonId:m,onFocus:p}=e,v=(0,n.jsx)(Bne,{audioPosition:t,blockId:a,disableZoom:s,enableVideoPlaybackSpeed:o,headingLevel:r,isActive:!0,item:l,labels:h,lessonId:m,lessonNumber:a,loadMedia:!0,onFocus:p});return c?d?(0,n.jsx)(Pe,{animateBlockEntrance:!0,className:Hc("animate").toString(),initiallyVisible:i,isLearner:!0,children:v}):v:null},Hne=e=>{const{id:t,items:s,labels:o,onEnter:r=Function.prototype,settings:a={}}=e,i=(0,u.useRef)(null),c=(0,u.useCallback)((d,l)=>{r({id:t,payload:{activeIndex:d,itemId:l}})},[t,r]);return(0,u.useEffect)(()=>{function d(l){const{blockId:h,cardId:m}=Na(l.detail.path,["block","card"]);if(h!==t)return;const p=i.current.querySelector(`[data-id="${m}"]`);p&&!Jm(p,"center")&&p.scrollIntoView({behavior:"instant",block:"center"})}return window.addEventListener(Ge,d),()=>{window.removeEventListener(Ge,d)}}),(0,n.jsx)("div",{"aria-label":o?.a11yBlockTimeline,className:"page__content-container",ref:i,role:"group",children:(0,n.jsx)("div",{className:Hc("wrapper"),children:(0,n.jsx)("div",{className:Hc(),children:(0,n.jsx)("ul",{className:Hc("container"),role:"list",children:s.map((d,l)=>(0,n.jsx)("li",{className:Hc("card-wrapper"),role:"listitem",children:Dne({index:l,item:d,onFocus:c,...e,disableZoom:!a.zoomOnClick,headingLevel:a.headingLevel,audioPosition:a.audioPosition})},l))})})})})},Fne=({animateBlockEntrance:e,blockId:t,enableVideoPlaybackSpeed:s,initiallyVisible:o,isLearner:r,items:a,labels:i,lessonId:c,settings:d})=>(0,n.jsx)(Pe,{animateBlockEntrance:e,animateIn:"fadeIn",initiallyVisible:o,isLearner:r,children:(0,n.jsx)(Ie,{type:"timeline",children:(0,n.jsx)(Hne,{enableVideoPlaybackSpeed:s,id:t,initiallyVisible:o,isBlock:!0,isLearner:r,items:a,labels:i,lessonId:c,settings:d})})}),Vne=e=>(0,n.jsx)("div",{className:"unsupported-block",...e,children:(0,n.jsxs)("span",{children:["We no longer support this block, so you can safely delete it. If you have any questions, please"," ",(0,n.jsx)("a",{href:"https://access.articulate.com/support/contact",children:"contact Articulate Support."})]})});var us=f(30467),zne=f(28565),e7=f(97226),$ne=f(67001),t7=f.n($ne);const Tve=(e,t)=>s=>{const o=s.findIndex(a=>a.id==t);if(o===-1)return s;const r=s.slice();return r[o]=e(s[o]),r},Nve=e=>t=>t.filter(s=>s.id!=e),kve=(e,t)=>s=>{const o=s.slice(),[r]=o.splice(e,1);return o.splice(t,0,r),o};function _ne(e,t){const s=[];for(const o of t)if(s.push(o),e(o))break;return s}const Une=e=>e.some(t=>t<0),s7=e=>Array.from(Array(e)),n7=(e,t)=>s7(t).map(()=>e),Gne=(e,t,s,o)=>s7(s).map((r,a)=>a===o?t:e),Ive=(e,t,s)=>s.some(o=>o[e]==t);function Eve(e,t,s){if(t>=s.length)return s.slice(0);const o=Math.floor(t/2),r=Math.ceil(t/2),a=e-o,i=e+r;return i>s.length?s.slice(s.length-t):a>=0?s.slice(a,i):s.slice(0,t)}const Au=(e,t)=>{const s=Math.min(e.length,t.length),o=new Array(s);for(let r=0;r<s;r++)o[r]=[e[r],t[r]];return o};var o7=f(21570);const Wne=matchMedia("(forced-colors: active)");function Fc(){return Wne.matches}const Kne=({activeIndex:e,values:t,opts:s})=>{const{background:o,variant:r}=Tt(),{chartColor:a,lineCurve:i}=Yt(),c=xs(),d=Ii(),l=s?.defaultFontColor,h=En(),m=h===q.IMAGE,v=Te(o?.media)?.image?.overlayColor??nt.DARK,C=Fc();let g=a??d,x=c||"#fff";!a&&h===q.ACCENT||a===x?g=l:m&&(g=v===nt.DARK?"#fff":"#000",x=v===nt.DARK?"#000":"#fff"),C&&(g="Highlight",x="Canvas");let L=g,T=Array(t.length).fill(g);if(e!=null&&!C){const y=m&&v===nt.LIGHT?.2:.7,b=(0,o7.A)(g,x,y);L=b,T=Gne(b,g,t.length,e)}return r==="bar"?{backgroundColor:T,data:t,hoverBackgroundColor:T}:{borderColor:L,cubicInterpolationMode:i==="linear"?"default":"monotone",data:t,lineTension:i==="linear"?0:void 0,pointBackgroundColor:T,pointBorderColor:T,pointBorderWidth:0,pointHitRadius:20,pointHoverBackgroundColor:g,pointHoverBorderColor:g,pointHoverBorderWidth:0,pointRadius:4}};function Qne({activeIndex:e,children:t,opts:s,values:o}){const r=Kne({activeIndex:e,opts:s,values:o});return t(r)}class Zne extends u.PureComponent{handleMouseEnter=()=>{this.props.onEvent(this.props.index)};handleMouseLeave=()=>{this.props.onEvent(null)};render(){const{activeIndex:t,identifier:s,index:o,label:r,value:a}=this.props,i=t!=null&&t!==o,c=G()("block-chart__cartesianLegendItem",{"block-chart__cartesianLegendItem--unfocused":i});return(0,n.jsxs)("div",{className:c,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,children:[(0,n.jsx)("dt",{className:"block-chart__cartesianLegendTerm",children:`${s}.`}),(0,n.jsxs)("dd",{className:"block-chart__cartesianLegendDefn","data-l10n-id":r.l10nId,children:[r.label,(0,n.jsx)("span",{className:"block-chart__cartesianLegendDefnPipe",role:"separator",children:"|"}),(0,n.jsx)("span",{className:"block-chart__cartesianLegendDefnVal",children:a})]})]})}}const Yne=Zne,Xne=({activeIndex:e,labels:t,letters:s,onEvent:o,values:r})=>{const a=Au(s,Au(t,r));return a.length===0?null:(0,n.jsx)("dl",{className:"block-chart__cartesianLegend",children:a.map(([i,[c,d]],l)=>(0,n.jsx)(Yne,{activeIndex:e,identifier:i,index:l,label:c,onEvent:o,value:d},i))})},Jne=(0,u.memo)(Xne);function qne(e){const t=this.getLabelForValue(e),s=15,o=t.split(" "),r=[];let a="";return o.forEach(i=>{(a+i).length>s?(r.push(a),a=i):a+=(a.length>0?" ":"")+i}),r.push(a),r}const eoe={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:e=>{const{label:t,formattedValue:s}=e[0];return`${t}: ${s}`}},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:qne,padding:10}},y:{beginAtZero:!0,border:{display:!1},grid:{drawTicks:!1},ticks:{maxTicksLimit:8,padding:15}}}};function toe({values:e,contrastColor:t}){const s=Tt(),o=En(),r=o===q.IMAGE,a=(0,u.useMemo)(()=>Une(e),[e]);let i,c;const l=Te(s?.background?.media)?.image?.overlayColor??nt.DARK,h=r&&l===nt.LIGHT;switch(o){case q.LIGHT:case q.GRAY:case q.TINT:[i,c]=["#e1e1e1","#c9c9c9"];break;case q.DARK:case q.BLACK:case q.IMAGE:[i,c]=["#ffffff80","#ffffffe9"];break;case q.ACCENT:case q.COLOR:{[i,c]=t==="#000"?["#00000080","#0000001a"]:["#ffffff80","#ffffffe9"];break}}return r&&h&&([i,c]=["#00000080","#0000001a"]),a||(c=i),[i,c]}const soe=({onEvent:e,reduceMotion:t,shouldAnimate:s,values:o})=>{const r=xs(),{customBackgroundColorContrast:a}=Yt(),i=Re(),c=Ii(),d=i?.theme?.accentContrast,l=En(),h=l===q.IMAGE,m=Tt(),p=Fc(),v=Bs(r),C=!a&&m?.family==="chart",g=a??pe.DARK,x=C?v:g,T=Te(m?.background?.media)?.image?.overlayColor??nt.DARK,y=h&&T===nt.LIGHT,b=l===q.ACCENT||l===q.COLOR,S=l===q.ACCENT?c:r,N=l===q.ACCENT?d:x,k=Rt({backgroundColor:S,contrast:N}),[E,I]=toe({values:o,contrastColor:k}),P=(0,u.useCallback)(w=>p&&h?y?"#000000":"#FFFFFF":w.tick.value===0?I:E,[E,p,I,h,y]);return(0,u.useMemo)(()=>{let w="#000";if(p)h?w=y?"#000000":"#FFFFFF":w="FieldText";else{switch(l){case q.DARK:case q.BLACK:case q.IMAGE:w="#fff";break}b&&(w=k),h&&y&&(w="#000")}const O=s&&!t?1e3:0;let j,R;p?h?(j=w,R=y?"#FFFFFF":"#000000"):(j="Highlight",R="HighlightText"):(j=w,R=w==="#000"||w==="#000000"||w===pe.DARK?"#FFFFFF":"#000000");const M=$0()(eoe);return M.animation.duration=O,M.defaultFontColor=w,M.onClick=e,M.onHover=e,M.plugins.tooltip.animation=!t,M.plugins.tooltip.backgroundColor=j,M.plugins.tooltip.titleColor=R,p&&!h?(M.scales.x.grid.color="FieldText",M.scales.y.grid.color="FieldText"):(M.scales.x.grid.color=E,M.scales.y.grid.color=P),M.scales.x.ticks.color=w,M.scales.y.ticks.color=w,p&&(h?M.plugins.legend.labels.color=y?"#000000":"#FFFFFF":M.plugins.legend.labels.color="FieldText"),M},[l,k,E,b,p,h,y,e,t,P,s])};function noe(e){const{children:t,onEvent:s,reduceMotion:o,shouldAnimate:r,values:a}=e,i=soe({onEvent:s,reduceMotion:o,shouldAnimate:r,values:a});return t(i)}var ooe=f(94870),Kp=f.n(ooe);const roe=/<mark>|<\/mark>/gm,aoe=e=>t=>{const s=e(t.type).replace(roe,"")??"";return{label:Kp()(s,{length:30}),l10nId:wt(t?.type)}},ioe=e=>parseFloat(e.value??"0"),r7=(e,t)=>({labels:e.map(aoe(t)),values:e.map(ioe)});function coe(e,t,s){const o=[];let r=0;return s.replace(e,function(...a){const i=a.length,c=a[0],d=a[i-1],l=a[i-2],h=d.slice(r,l),m=typeof t=="function"?t(...a):t;return o.push(h,m),r=l+c.length,""}),o.push(s.slice(r)),o}const loe=(e,t)=>(0,n.jsx)("mark",{children:e},t),doe=(e,t)=>coe(new RegExp(ote()(t),"igm"),loe,e),a7=(e,t,s)=>{const o=Kp()(t,{length:e});return s?doe(o,s):o};function uoe(){const[e,t]=u.useState(null),s=u.useRef(null),{announcePolite:o}=qn(),{a11yBlockChartPreposition:r}=gs()??{},a=u.useCallback(p=>{t(p)},[]),i=u.useCallback(()=>{s.current?.resize()},[]),c=u.useCallback(()=>{s.current?.update()},[]),d=u.useCallback(()=>{i(),c()},[i,c]),l=u.useCallback(()=>{const p=s.current;if(p==null)return;const v=p.getDatasetMeta(0),C=v.data;if(!C?.length)return;const g=0,L=[{datasetIndex:0,element:v.data[g],index:g}];p.setActiveElements(L),p.tooltip?.setActiveElements(L,{x:0,y:0}),p.update(),a(g);const T=p.data.labels[g],y=p.data.datasets[0].data[g];setTimeout(()=>{o(`${g+1} ${r??""} ${C.length} - ${T}: ${y}`)},0)},[r,o,s,a]),h=u.useCallback(()=>{const p=s.current;if(p==null)return;const v=[];p.setActiveElements(v),p.tooltip?.setActiveElements(v,{x:0,y:0}),p.update(),a(null),o(null)},[o,s,a]),m=u.useCallback(p=>{const v=s.current;if(v==null)return;const C=v.getDatasetMeta(0),g=C.data;if(!g?.length)return;let x=!1,L=e;switch(p.key){case"ArrowLeft":x=!0,L=(e-1+g.length)%g.length;break;case"ArrowRight":x=!0,L=(e+1+g.length)%g.length;break;case"Home":x=!0,L=0;break;case"End":x=!0,L=g.length-1;break}if(x&&(p.stopPropagation(),p.preventDefault()),L!==e){const y=[{datasetIndex:0,element:C.data[L],index:L}];v.setActiveElements(y),v.tooltip?.setActiveElements(y,{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??""} ${g.length} - ${b}: ${S}`)}},[r,e,o,s,a]);return u.useEffect(()=>{s.current&&(s.current.resize(),s.current.update())},[]),u.useEffect(()=>{s.current&&s.current.update()},[e]),{activeIndex:e,chartRef:s,onBlur:h,onFocus:l,onKeyDown:m,onEvent:a,onResize:d}}function i7(e){const t=s=>{const{activeIndex:o,chartRef:r,onBlur:a,onEvent:i,onFocus:c,onKeyDown:d,onResize:l}=uoe();return(0,n.jsx)(e,{...s,activeIndex:o,chartRef:r,onBlur:a,onEvent:i,onFocus:c,onKeyDown:d,onResize:l})};return t.displayName=`withChartEvents(${e.displayName||e.name})`,t}const hoe="ABCDEFGHIJKLMNOPQRSTUVWXYZ".split("");class moe extends u.PureComponent{wrapRef;id;resizeObserver;constructor(t){super(t),this.wrapRef=(0,u.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=(t,s)=>{const o=s.length?s[0].index:null;this.props.onEvent(o)};handleResize=()=>{requestAnimationFrame(()=>{this.props.onResize(),this.setLabelYTop()})};setLabelYTop=()=>{const t=this.props.chartRef.current;if(t){const{bottom:s,top:o}=t?.scales?.y??{};t7()(s)&&t7()(o)&&this.setState({labelYTop:`${(s+o)/2}px`})}};render(){const{props:{activeIndex:t,chartRef:s,getL10nValue:o,htmlIdBase:r,htmlIdTitle:a,onBlur:i,onFocus:c,onKeyDown:d,isDesktop:l,isVisible:h,items:m,itemsLabel:p,labels:v,onEvent:C,search:g,shouldAnimate:x,valuesLabel:L,variant:T},state:{labelYTop:y}}=this,b=a7(80,o(p),g),S=a7(30,o(L),g),N=r7(m,o),k=l?[]:hoe.slice(0,m.length),E=l?N.labels:k.map(j=>({label:j})),I=h?N.values:n7(0,m.length),P=`${r}-type`,A=`${r}-instructions`,w=E.map(j=>j.label),O=E.map(j=>j.l10nId).join(",");return(0,n.jsxs)("div",{className:"block-chart__cartesian",children:[(0,n.jsx)("p",{className:"visually-hidden-always",id:A,children:v?.a11yBlockChartInstructions}),(0,n.jsxs)("div",{className:"block-chart__cartesianChart",ref:this.wrapRef,children:[S&&cn(S)&&(0,n.jsxs)("div",{className:"block-chart__cartesianLabelY","data-l10n-id":wt(L),style:{insetInlineEnd:y},children:[S,(0,n.jsx)("span",{className:"visually-hidden-always",children:v?.a11yBlockChartAxisY})]}),b&&cn(b)&&(0,n.jsxs)("div",{className:"block-chart__cartesianLabelX","data-l10n-id":wt(p),children:[b,(0,n.jsx)("span",{className:"visually-hidden-always",children:v?.a11yBlockChartAxisX})]}),(0,n.jsx)(noe,{onEvent:this.handleEvent,reduceMotion:Ns(),shouldAnimate:x,values:I,children:j=>(0,n.jsx)(Qne,{activeIndex:t,opts:j,values:I,children:R=>(0,n.jsxs)("div",{"aria-describedby":A,"aria-labelledby":`${a} ${P}`,className:"block-chart__cartesian-canvas-wrap",onBlur:i,onFocus:c,onKeyDown:d,role:"application",tabIndex:0,children:[(0,n.jsx)("div",{className:"visually-hidden-always",id:P,children:T==="bar"?v?.a11yBlockChartBar:v?.a11yBlockChartLine}),(0,n.jsx)(e7.Chart,{"aria-hidden":"true",data:{labels:w,datasets:[R]},"data-l10n-id":O,options:j,ref:s,role:"presentation",type:T,updateMode:"default"})]})})})]}),!l&&(0,n.jsx)(Jne,{activeIndex:t,labels:N.labels,letters:k,onEvent:C,values:I})]})}}function poe(e){const t=Ke(e),s=Ez(960,"isDesktop","Desktop")(t),o=i7(s);function r(a){const c=h1()?.term??"";return(0,n.jsx)(o,{...a,search:c})}return r}const foe=poe(moe),Qp=({valueType:e,value:t,values:s})=>e==="numeric"?String(t):pee(t/J9(s)),goe=e=>{if(Fc())return"FieldText";const t=e.dataset.backgroundColor[e.dataIndex]??"#000";return Bs(t)===pe.DARK?ft.DARK:ft.LIGHT},voe=(e,t,s)=>Qp({valueType:e,value:t,values:s.dataset.data}),Coe=(e,t)=>{const{label:s,dataset:o,parsed:r}=t[0],a=Qp({valueType:e,value:r,values:o.data});return`${s}: ${a}`},xoe=(e,t)=>{const s=t.dataIndex,o=t.dataset.data??[1],r=o[s],a=e==null&&r/J9(o)>=.06;return e===s||a},boe=({activeIndex:e,onEvent:t,reduceMotion:s,settings:{valueType:o},shouldAnimate:r})=>{const a=Fc();return{animation:{animateRotate:r&&!s,duration:r&&!s?1e3:0},defaultFontFamily:'"lato", sans-serif',onClick:t,onHover:t,maintainAspectRatio:!1,plugins:{datalabels:{color:goe,display:xoe.bind(null,e),font:{size:12,weight:"bold"},formatter:voe.bind(null,o)},legend:{display:!1,labels:a?{color:"FieldText"}:void 0},tooltip:{animation:!s,boxPadding:"14px 10px",callbacks:{label:()=>null,title:Coe.bind(null,o)},caretPadding:10,cornerRadius:3,displayColors:!1,titleFont:{weight:"normal"},titleMarginBottom:0,titleSpacing:0,xAlign:"center",yAlign:"bottom",backgroundColor:a?"Highlight":ft.LIGHT,titleColor:a?"HighlightText":ft.DARK}},responsive:!1,rotation:130}},yoe=({activeIndex:e,colors:t,hasBorder:s,values:o})=>{const r=xs(),a=Fc(),i=e==null?t:t.map((c,d)=>d===e?c:(0,o7.A)(c,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,...s&&{borderWidth:1,borderColor:"#000"}}};function Loe({activeIndex:e,children:t,colors:s,hasBorder:o,values:r}){const a=yoe({activeIndex:e,colors:s,hasBorder:o,values:r});return t(a)}class Soe extends u.PureComponent{handleMouseEnter=()=>{this.props.onEvent(this.props.index)};handleMouseLeave=()=>{this.props.onEvent(null)};render(){const{activeIndex:t,color:s,index:o,label:r,value:a}=this.props,i=t!=null&&t!==o,c=G()("block-chart__circleLegendItem",{"block-chart__circleLegendItem--unfocused":i});return(0,n.jsxs)("div",{className:c,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,children:[(0,n.jsxs)("dt",{className:"block-chart__circleLegendTerm",children:[(0,n.jsx)("svg",{"aria-hidden":"true",className:"block-chart__circleLegendSymbol","data-ignore":"contrast",fill:s,focusable:"false",role:"presentation",viewBox:"0 0 10 10",children:(0,n.jsx)("rect",{height:"10",rx:"1.5",width:"10"})}),(0,n.jsx)("span",{className:"block-chart__circleLegendText","data-l10n-id":r.l10nId,children:r.label})]}),(0,n.jsx)("dd",{className:"visually-hidden-always",children:a})]})}}const Toe=Soe,Noe=({activeIndex:e,colors:t,hasBorder:s,labels:o,onEvent:r,values:a,valueType:i="numeric"})=>{const c=Au(t,Au(o,a));if(c.length===0)return null;const d=G()("block-chart__circleLegend",{"block-chart__circleLegend--border":s});return(0,n.jsx)("dl",{className:d,children:c.map(([l,[h,m]],p)=>(0,n.jsx)(Toe,{activeIndex:e,color:l,index:p,label:h,onEvent:r,value:Qp({valueType:i,value:m,values:a})},h.label))})},koe=(0,u.memo)(Noe),Ioe=(e,t)=>{const s=e.filter(a=>Number(a.value)>=0),o=r7(s,t),r=s.map(a=>a.color);return{...o,colors:r}};class Eoe extends u.PureComponent{wrapRef;id;resizeObserver;constructor(t){super(t),this.wrapRef=(0,u.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:t,settings:s,shouldAnimate:o}=this.props;return boe({activeIndex:t,onEvent:this.handleEvent,reduceMotion:Ns(),settings:s,shouldAnimate:o})};handleEvent=(t,s)=>{const o=s.length?s[0].index:null;this.props.onEvent(o)};render(){const{activeIndex:t,backgroundColor:s,chartRef:o,getL10nValue:r,htmlIdBase:a,htmlIdTitle:i,onBlur:c,onFocus:d,onKeyDown:l,isVisible:h,items:m,labels:p,onEvent:v,settings:C}=this.props,{colors:g,labels:x,values:L}=Ioe(m,r),T=h?L:n7(0,m.length),y=this.buildOptions(),b=`${a}-type`,S=`${a}-instructions`,N=x.map(E=>E.label),k=g.includes(s);return(0,n.jsxs)("div",{className:"block-chart__circle",children:[(0,n.jsx)("p",{className:"visually-hidden-always",id:S,children:p?.a11yBlockChartInstructions}),(0,n.jsx)("div",{className:"block-chart__circleChart",ref:this.wrapRef,children:(0,n.jsx)(Loe,{activeIndex:t,colors:g,hasBorder:k,values:T,children:E=>(0,n.jsxs)("div",{"aria-describedby":S,"aria-labelledby":`${i} ${b}`,className:"block-chart__circle-canvas-wrap",onBlur:c,onFocus:d,onKeyDown:l,role:"application",tabIndex:0,children:[(0,n.jsx)("div",{className:"visually-hidden-always",id:b,children:p?.a11yBlockChartPie}),(0,n.jsx)(e7.Chart,{"aria-hidden":"true",data:{labels:N,datasets:[E]},options:y,ref:o,role:"presentation",type:"pie",updateMode:"default"})]})})}),(0,n.jsx)(koe,{activeIndex:t,colors:g,hasBorder:k,labels:x,onEvent:v,values:T,valueType:C?.valueType})]})}}function joe(e){const t=WA()(e),s=i7(t);return Ke(s)}const woe=joe(Eoe);us.Chart.register(us.ArcElement,us.BarController,us.BarElement,us.CategoryScale,zne.default,us.Legend,us.Legend,us.LineController,us.LineElement,us.LinearScale,us.PieController,us.PointElement,us.Title,us.Tooltip);const Aoe=e=>e.displayName||e.name||"Component";class Roe extends u.PureComponent{id;constructor(t){super(t),this.state={isVisible:!1},this.id=(0,p0.uniqueId)("chart-")}componentDidMount(){this.setState({isVisible:!this.props.animateBlockEntrance||Ns()})}handleAnimationEnd=()=>{this.setState({isVisible:!0})};renderTitle=()=>{const{title:t}=this.props;return(0,n.jsx)(be,{value:t})};render(){const{props:{animateBlockEntrance:t,children:s,editable:o,initiallyVisible:r,isLearner:a,items:i,itemsLabel:c,labels:d,settings:l,title:h,valuesLabel:m,variant:p,renderTitle:v=this.renderTitle},state:{isVisible:C}}=this,g=l?.headingLevel,x=g?`h${g}`:"h2",L=this.id,T=`${L}-title`;return(0,n.jsx)(Ie,{type:"chart",children:(0,n.jsx)(Pe,{afterAnimatedIn:this.handleAnimationEnd,animateBlockEntrance:t,initiallyVisible:r,isLearner:a,children:(0,n.jsx)("div",{className:"block-chart__container",children:(0,n.jsx)("div",{className:"block-chart__row",children:(0,n.jsx)("div",{className:"block-chart__rowInner",children:(0,n.jsxs)("figure",{children:[(!o&&h||o)&&(0,n.jsx)("figcaption",{children:(0,n.jsx)(x,{className:"block-chart__title",id:T,children:v()})}),(0,n.jsx)("div",{className:"block-chart__chart",children:u.cloneElement(u.Children.only(s),{htmlIdBase:L,htmlIdTitle:T,isVisible:C,items:i,itemsLabel:c,labels:d,settings:l,shouldAnimate:t,valuesLabel:m,variant:p})})]})})})})})})}}const Poe=Roe;function c7(e){const t=s=>(0,n.jsx)(Poe,{...s,children:(0,n.jsx)(e,{})});return t.displayName=`ChartWrap(${Aoe(e)})`,t}var Moe=f(80588);const Ooe=c7(foe),Boe=c7(woe),Doe=ws()(Ae()("variant","storyline")),Hoe=st()(Doe,Zt(),PQ()(1));class Foe extends Moe.Component{render(){const{dividerNumber:t,family:s,handleStorylineFullscreen:o,partnerContent:r,variant:a,enableVideoPlaybackSpeed:i,initiallyVisible:c}=this.props,l={...Gr()(["type","handleStorylineFullscreen","dividerNumber"],this.props),enableVideoPlaybackSpeed:i,partnerContent:r,initiallyVisible:c};return ne("text","paragraph",l)||ne("text","table",l)?(0,n.jsx)(lX,{...l}):ne("text","heading paragraph",l)?(0,n.jsx)(fX,{...l}):ne("text","subheading paragraph",l)?(0,n.jsx)(gX,{...l}):ne("text","heading",l)?(0,n.jsx)(mX,{...l}):ne("text","subheading",l)?(0,n.jsx)(pX,{...l}):ne("text","two column",l)?(0,n.jsx)(dX,{...l}):ne("text","three column",l)?(0,n.jsx)(uX,{...l}):ne("text","four column",l)?(0,n.jsx)(hX,{...l}):ne("text","code",l)?(0,n.jsx)(f9,{...l}):ne("impact","a",l)?(0,n.jsx)(jX,{...l}):ne("impact","b",l)?(0,n.jsx)(wX,{...l}):ne("impact","c",l)?(0,n.jsx)(AX,{...l}):ne("impact","d",l)?(0,n.jsx)(RX,{...l}):ne("impact","note",l)?(0,n.jsx)(PX,{...l}):ne("quote","a",l)?(0,n.jsx)(cp,{...l}):ne("quote","b",l)?(0,n.jsx)(zX,{...l}):ne("quote","c",l)?(0,n.jsx)($X,{...l}):ne("quote","d",l)?(0,n.jsx)(_X,{...l}):ne("quote","background",l)?(0,n.jsx)(UX,{...l}):ne("quote","carousel",l)?(0,n.jsx)(WX,{...l}):ne("list","numbered",l)?(0,n.jsx)(YX,{...l}):ne("list","checkboxes",l)?(0,n.jsx)(XX,{...l}):ne("list","bulleted",l)?(0,n.jsx)(JX,{...l}):ne("image","hero",l)?(0,n.jsx)(eJ,{...l}):ne("image","full",l)?(0,n.jsx)(hp,{...l}):ne("image","text aside",l)?(0,n.jsx)(nJ,{...l}):ne("image","text overlay",l)?(0,n.jsx)(rJ,{...l}):ne("image","banner",l)?(0,n.jsx)(aJ,{...l}):ne("gallery","centered",l)||ne("gallery","full",l)?(0,n.jsx)(mJ,{...l}):ne("gallery","two column",l)?(0,n.jsx)(pp,{...l}):ne("gallery","three column",l)?(0,n.jsx)(pp,{width:3,...l}):ne("gallery","four column",l)?(0,n.jsx)(pp,{width:4,...l}):ne("divider","divider",l)?(0,n.jsx)(fJ,{...l}):ne("divider","numbered divider",l)?(0,n.jsx)(gJ,{number:t,...l}):ne("divider","spacing divider",l)?(0,n.jsx)(vJ,{...l}):ne("360","storyline",l)?(0,n.jsx)(ZJ,{...l,handleStorylineFullscreen:o,hasManySlBlocks:this.hasManySlBlocks.bind(this),isLesson:!0}):ne("interactive","accordion",l)?(0,n.jsx)(TJ,{...l}):ne("interactive","tabs",l)?(0,n.jsx)(OJ,{...l}):ne("interactive-fullscreen","labeledgraphic",l)?(0,n.jsx)(use,{...l}):ne("interactive-fullscreen","process",l)?(0,n.jsx)(Ese,{...l}):ne("interactive-fullscreen","scenario",l)?(0,n.jsx)(Xse,{...l}):ne("interactive-fullscreen","sorting",l)?(0,n.jsx)(dne,{...l}):ne("buttons","button",l)?(0,n.jsx)(aq,{...l}):ne("buttons","button stack",l)?(0,n.jsx)(iq,{...l}):ne("flashcard","flashcard",l)?(0,n.jsx)(_9,{...l}):ne("flashcard","stack",l)?(0,n.jsx)(_9,{stack:!0,...l}):ne("knowledge","knowledge",l)?(0,n.jsx)(qa,{...l}):ne("continue","continue",l)?(0,n.jsx)(Gq,{...l}):ne("multimedia","step",l)?(0,n.jsx)(Uq,{...l}):ne("multimedia","audio",l)?(0,n.jsx)(Bq,{...l}):ne("multimedia","video",l)?(0,n.jsx)(kp,{...l}):ne("multimedia","ai_avatar",l)?(0,n.jsx)(kp,{...l}):ne("multimedia","custom video",l)?(0,n.jsx)(kp,{...l,type:"customVideo"}):ne("multimedia","embed",l)?(0,n.jsx)(Hq,{...l}):ne("multimedia","attachment",l)?(0,n.jsx)(zq,{...l}):ne("multimedia","code",l)?(0,n.jsx)(f9,{...l}):ne("knowledgeCheck","multiple choice",l)?(0,n.jsx)(qa,{...l}):ne("knowledgeCheck","multiple response",l)?(0,n.jsx)(qa,{...l}):ne("knowledgeCheck","fillin",l)?(0,n.jsx)(qa,{...l}):ne("knowledgeCheck","matching",l)?(0,n.jsx)(qa,{...l}):ne("knowledgeCheck","draw from question bank",l)?(0,n.jsx)(qa,{...l}):ne("chart","bar",l)||ne("chart","line",l)?(0,n.jsx)(Ooe,{...l}):ne("chart","pie",l)?(0,n.jsx)(Boe,{...l}):ne("interactive-fullscreen","timeline",l)?(0,n.jsx)(Fne,{...l}):ne("ai-scenario","ai-scenario",l)?(0,n.jsx)(Tne,{...l}):ne("mondrian","mondrian",l)?(0,n.jsx)(Cne,{...l}):ne("textToVideo","textToVideo",l)?(0,n.jsx)(Vne,{}):ne("survey","survey",l)?(0,n.jsx)(xse,{...l}):ne("html","inline",l)||ne("html","cdn",l)||ne("html","vibe",l)?(0,n.jsx)(Mne,{...l}):`Unknown type: ${s} ${a}`}hasManySlBlocks(){const{items:t}=this.props;return t&&Hoe(t)}}function Voe(e){return(0,n.jsx)(M1,{block:e,children:(0,n.jsx)(Foe,{...e})})}function ne(e,t,s){return s.family===e&&s.variant===t}const zoe=1e3,$oe=150,_oe="onscrollend"in window;function l7(e,t){const s=e.getBoundingClientRect(),o=t?.getBoundingClientRect(),r=o?.top??0,a=o?.bottom??window.innerHeight,i=(a-r)*.02,c=s.bottom>r-i&&s.top<a+i,d=s.bottom<r;return c||d}const Zp={entries:new Map,scrollHandler:null,scrollEndHandler:null,scrollTarget:null,debounceTimer:null,register(e,t,s){const o=this.entries.size===0,r=t??window;if(this.entries.set(e,{el:e,scrollableParent:t,callback:s}),o){this.scrollTarget=r;const a=()=>{this.debounceTimer!=null&&clearTimeout(this.debounceTimer),this.debounceTimer=setTimeout(()=>this.checkAll(),$oe)};_oe?(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(e){this.entries.delete(e),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 e=[];for(const t of this.entries.values())l7(t.el,t.scrollableParent)&&e.push(t);e.forEach(t=>t.callback())})}},d7=({children:e,onViewed:t})=>{const s=(0,u.useRef)(null),o=(0,u.useRef)(!1),r=(0,u.useRef)(t);return(0,u.useEffect)(()=>{r.current=t},[t]),(0,u.useEffect)(()=>{const a=s.current;if(!a||o.current)return;const i=$4(),c=()=>{o.current||(o.current=!0,d.disconnect(),clearTimeout(l),Zp.unregister(a),r.current())},d=new IntersectionObserver(([h])=>{h!=null&&(h.isIntersecting||h.intersectionRatio>0)&&c()},{root:i,rootMargin:B2,threshold:0});d.observe(a);const l=setTimeout(()=>{!o.current&&l7(a,i)&&c()},zoe);return Zp.register(a,i,c),()=>{d.disconnect(),clearTimeout(l),Zp.unregister(a)}},[]),(0,n.jsx)("div",{ref:s,children:e})};var Yp=f(80588);class Uoe extends Yp.PureComponent{render(){return(0,n.jsx)(d7,{onViewed:this.handleViewed,children:Yp.cloneElement(Yp.Children.only(this.props.children),{onStep:this.handleStep})})}handleStep=t=>{t!=null&&"id"in t&&!t.isDone&&this.props.onStep(t.id)};handleViewed=()=>{const{block:t}=this.props;if(!t.items?.length){this.props.onViewed();return}if(!t.requiresInteraction){this.props.onViewed();return}(Goe.test(t.variant)||Woe.test(t.family))&&t.items.length>0&&this.handleStep(t.items[0])}}const Goe=/tabs|carousel/,Woe=/gallery/,Koe=["timeline"],Qoe=({family:e,variant:t})=>(/interactive|flashcard|knowledge|continue|360|survey/.test(e)||/carousel|centered|checkboxes|audio|video|storyline/.test(t))&&!Koe.includes(t),Zoe=({family:e,settings:t})=>e==="html"&&t?.hasCustomCompletion,Yoe=({family:e,items:t})=>!!(e==="mondrian"&&t?.length),Xoe="draw from question bank",u7=e=>{const{animateBlockEntrance:t,block:s,className:o,color:r,courseTitle:a,defaultBackgroundColor:i,enableVideoPlaybackSpeed:c,handleNavigate:d,handleStorylineFullscreen:l,hideBlock:h,index:m,isLastBlock:p,isOnlyBlockInStep:v,isVideoTraining:C,labels:g,lessonId:x,lessonProgress:L,loadMedia:T,match:y,onContinue:b,partnerContent:S,prefersKeyboardNavigation:N,previewType:k}=e,{blockId:E,family:I,items:P=[],variant:A,settings:w}=s,O=`block-${E}`,j=it(),R=Mw({blockId:String(E),lessonId:String(x)}),M=(0,u.useCallback)(oe=>{const re=A===Xoe?P[0]:Hs()(Ae()("id",oe),P);j(Jg({blockId:E,lessonId:x,items:[re]})),I==="continue"&&b(E,oe)},[E,j,I,P,x,b,A]),z=(0,u.useCallback)(()=>{j(Jg({blockId:E,lessonId:x,items:P}))},[E,j,P,x]),$=(0,u.useCallback)(oe=>{const re=P?.[0],me=re&&"id"in re?re.id:void 0;me&&j(Yk({blockId:E,itemId:me,lessonId:x,audioVideoPlayhead:oe}))},[E,j,x,P]),H=(0,u.useCallback)(()=>{j(qk({blockId:E,lessonId:x,isSubmitted:!0}))},[E,j,x]),F=(0,u.useCallback)(({itemId:oe,response:re})=>{j(Jk({blockId:E,itemId:oe,lessonId:x,response:re}))},[E,j,x]),K=(0,u.useCallback)(oe=>{j(Kk(oe))},[j]),Q=(0,u.useCallback)(()=>({itemId:oe,isCorrect:re})=>j(Xk({itemId:oe,lessonId:x,blockId:E,isCorrect:re})),[E,j,x]),J=(0,u.useCallback)(()=>()=>j(Zk({lessonId:x,blockId:E})),[E,j,x]),te=vc(),D=(0,u.useCallback)(oe=>{j(e4(oe))},[j]),U=(0,u.useCallback)(()=>{j(Cc())},[j]),V=(0,u.useCallback)(oe=>{j(Hm(oe))},[j]),B=ps()(s,{animateBlockEntrance:t,className:o?.toString(),color:r,courseTitle:a,defaultBackgroundColor:i,dividerNumber:R,enableVideoPlaybackSpeed:c,family:I,handleNavigate:d,handleStorylineFullscreen:l,onFinishStoryline:jT,onSurveySubmitted:H,onSurveyPartialResponse:F,initiallyVisible:m===0,isHidden:h,isLastBlock:p,isLearn:!0,isLearner:!0,isOnlyBlockInStep:v,isVideoTraining:C,labels:g,lessonId:x,loadMedia:T,match:y,onCardDrop:Q,onReplay:J,onRetryAttempt:K,onTranscriptClose:U,onTranscriptOpen:D,onTranscriptUpdate:V,originalVariant:void 0,partnerContent:S,prefersKeyboardNavigation:N,previewType:k,progress:L,recordMediaPlayheadPosition:$,transcriptPanelState:te}),W=Qoe({family:I,variant:A})||Zoe({family:I,settings:w})||Yoe({family:I,items:P}),Z=Nz(x,E),X=G()("noOutline",o,{"blocks-lesson__block-wrapper--hidden":h}),Y=(0,n.jsx)(Voe,{...B});return(0,n.jsx)("div",{className:X,"data-block-id":E,"data-change-path":Z,children:W?(0,n.jsx)(Uoe,{block:s,onStep:M,onViewed:z,children:Y}):(0,n.jsx)(d7,{onViewed:z,children:Y})},O)},Joe=({slides:e,currentSlide:t},s)=>(t.push(s),s.settings?.attachedToNextBlock||(e.push(t),t=[]),{slides:e,currentSlide:t}),qoe=e=>{const{slides:t}=_d()(Joe,{slides:[],currentSlide:[]},e);return t};function Xp(e,t,s,o){if(e.length){const a=e.slice(-1)[0];if(!Vc(a.id,s))return e}const r=_ne(ere(s),t.slice(e.length)).map(tre(o));return r.length?Xp(e.concat(r),t,s,o):e}const Vc=(e,t)=>De()(!1,["items",e,"isComplete"],t),ere=e=>({family:t,items:s})=>{const o=De()({},0,s);return t==="continue"&&!Vc(o.id,e)},tre=e=>(t,s,o)=>{const r=o.slice(-1)[0]||{},{family:a}=r,i=a==="continue"?De()(void 0,["items",0,"type"],r)??e?.blockContinueCompletionType??!1:!1;return t.family==="knowledgeCheck"&&t.settings?.requireCorrectAnswer?ps()(t,{requiresInteraction:!0}):t.variant!=="continue"&&(!i||i==="completeBlock"&&s!==o.length-1&&s!==o.length-2)?t:ps()(t,{requiresInteraction:!0})};function h7({id:e,...t},s,o,r,a){if(t.family==="continue"){const i=De()(void 0,["items",0,"type"],t)??a?.blockContinueCompletionType??"";return ps()({blockId:e,...t},{skipContinue:r,canContinue:sre({continueType:i,blocks:s,progress:o}),lessonProgress:o,isComplete:Vc(e,o)})}return{blockId:e,...t}}const sre=({continueType:e,blocks:t,progress:s})=>{switch(e){case"completeAll":return Qt()(Zt()(t),are(s));case"completeBlock":return t.length===0?!0:Vc(ire(t),s);default:return!0}},nre=ce()(Ft(),xe()("items")),ore=e=>ce()(rre,nre)(e),rre=ws()(Ae()("isComplete",!0)),are=ce()(Zt(),ore),ire=ce()(xe()("id"),xo()),cre=({family:e,variant:t,isComplete:s,requiresInteraction:o})=>e==="continue"&&t==="continue"&&o&&!s,lre=(e,t)=>!!e.find(o=>{if(o?.family==="knowledgeCheck"&&o?.settings?.requireCorrectAnswer)return!t?.items?.[o?.id]?.isComplete}),dre=e=>e.length===0?!1:N4()(cre,e),ure=(e,t)=>e.length===0?!1:lre(e,t),hre=({blocks:e,lessonProgress:t})=>e.findIndex(s=>{const o=t?.items?.[s?.id],r=o&&o?.isComplete==null;return s?.family==="knowledgeCheck"&&s?.settings?.requireCorrectAnswer&&r}),m7=({blocks:e,lessonProgress:t,currentBlockIndex:s})=>{const o=hre({blocks:e,lessonProgress:t});return o>-1&&s>o},mre=(e,t)=>{const s=["embed","video","full"];return["interactive","interactive-fullscreen","image","flashcard","gallery","chart","knowledgeCheck"].includes(e)||s.includes(t)};function pre(e,t,s){if(!e||!t||!A1())return!1;if(DE(s,{l10n:t}))return!0;const{locales:o,defaultLocale:r}=t,a=o.find(i=>i.locale===r)?.id;return a&&a!==e}function fre({animateBlockEntrance:e,blocks:t,className:s,color:o,courseTitle:r,enableVideoPlaybackSpeed:a,handleNavigate:i,handleStorylineFullscreen:c,isLessonEntering:d,isLessonExiting:l,labels:h,lessonId:m,lessonProgress:p,loadMedia:v,nextLesson:C,partnerContent:g,prefersKeyboardNavigation:x,previewType:L}){const T=(0,u.useRef)(null),y=(0,u.useRef)(null),b=(0,u.useRef)(null),[S,N]=(0,u.useState)(!1),{currentLocale:k}=Ze(),E=(0,Ce.g)(),I=(0,u.useMemo)(()=>({params:E}),[E]),P=ae(U=>U.course?.theme),A=ae(g1),w=ae(U=>S0(Cs(U))),O=ae(U=>U.course?.defaultLocaleId),j=ae(U=>U.l10n),R=pre(O,j,k),M=(0,je.A)(d),z=(0,u.useRef)(l),$=(0,u.useRef)(d),H=(0,u.useRef)(m);z.current=l,$.current=d,H.current=m,(0,u.useEffect)(()=>{const U=V=>{if(V.origin!==window.location.origin)return;(Array.isArray(V.data)?V.data:[V.data]).forEach(W=>{W?.type==="preview:lessonUpdate"&&N(!0)})};return window.addEventListener("message",U),()=>window.removeEventListener("message",U)},[]),(0,u.useEffect)(()=>{const U=V=>{if(z.current||V.detail.lessonId!==H.current)return;const B=V.detail.itemId;B==null?T.current?.closest(".page")?.scrollIntoView({behavior:"smooth",block:"start"}):$.current?b.current=B:F(B)};return window.addEventListener(Ge,U),()=>window.removeEventListener(Ge,U)},[]),(0,u.useEffect)(()=>{M&&!d&&b.current!=null&&(F(b.current),b.current=null)},[d,M]),(0,u.useLayoutEffect)(()=>{K()});function F(U){const B=document.querySelector(".page-wrap")?.querySelector(`[data-block-id="${U}"]`);B?.scrollIntoView({behavior:"smooth",block:"nearest"})}function K(){if(y.current){const U=u3()(Ae()("id",y.current),t),V=ia()(U),B=De()(null,[V,"id"],t);if(B){const W=document.querySelector(".page-wrap"),Z=W?.querySelector(`[data-block-id="${B}"]`),X=Z?Z.getBoundingClientRect().top:0;gc.Ay.animateScroll.scrollTo(X+W.scrollTop,{smooth:!0,containerId:"page-wrap"})}y.current=null}}const Q=(0,u.useCallback)((U,V)=>{Vc(V,p)||(y.current=U),U===t[t.length-1]?.id&&C&&(fs(Xg(m)),i(C))},[t,i,m,p,C]),J=R||S,te=J?t:Xp([],t,p,P),D=G()("blocks-lesson",s,{"blocks-lesson--one-page":A});return(0,n.jsx)("section",{className:D,ref:T,children:te.map((U,V,B)=>{const W=h7(U,B.slice(0,-1),p,J,P),Z=B.length-1,Y=W.family==="continue"?U.id===t[t.length-1]?.id:V===Z,oe=!S&&m7({blocks:t,lessonProgress:p,currentBlockIndex:V});return(0,n.jsx)(u7,{animateBlockEntrance:e,block:W,color:o,courseTitle:r,enableVideoPlaybackSpeed:a,handleNavigate:i,handleStorylineFullscreen:c,hideBlock:oe,index:V,isFirstLesson:!0,isLastBlock:Y,isVideoTraining:w,labels:h,lessonId:m,lessonProgress:p,loadMedia:v,match:I,onContinue:Q,partnerContent:g,prefersKeyboardNavigation:x,previewType:L},W.blockId)}).filter(I4.A)})}const p7=fre;function Ru({children:e}){const t=(0,u.useRef)(),s=(0,u.useCallback)(()=>{t.current?.focus?.()},[]);return s_(s),(0,n.jsx)("main",{className:"lesson-main",ref:t,tabIndex:"-1",children:e})}const gre=_("page"),f7=({type:e,children:t})=>(0,n.jsx)("div",{className:gre({lessonTypeQuiz:e==="quiz"}),"data-page":!0,"data-type":e,children:t});f7.propTypes={type:ge().string.isRequired,children:ge().node.isRequired};const zc=f7,si=({type:e,children:t})=>{const s=e==="video"||e==="embed"||e==="blocks"||e==="progress-summary",o=G()("page__wrapper",{"page__wrapper--white":s});return(0,n.jsx)("div",{className:o,children:t})};si.propTypes={type:ge().string.isRequired,children:ge().node.isRequired};const ni=({className:e,type:t,children:s})=>{const o=G()("page__content",e,{"page__content--timeline":t==="timeline"});return(0,n.jsx)("div",{className:o,children:s})};ni.propTypes={type:ge().string,children:ge().node.isRequired};const vre=({animateBlockEntrance:e,color:t,courseTitle:s,data:o,enableVideoPlaybackSpeed:r,handleNavigate:a,handleStorylineFullscreen:i,labels:c,lessonHeader:d,lessonHeaderWrapClasses:l,lessonHeaderWrapStyles:h,lessonProgress:m,loadMedia:p,match:v,nextLesson:C,prefersKeyboardNavigation:g,previewType:x,hideLessonHeaders:L})=>{const T=yr(),{id:y,items:b,type:S}=o,N={animateBlockEntrance:e,blocks:b,color:t,courseTitle:s,enableVideoPlaybackSpeed:r,handleNavigate:a,handleStorylineFullscreen:i,isFirstLesson:!0,labels:c,lessonId:y,lessonProgress:m,loadMedia:p,match:v,nextLesson:C,partnerContent:T,previewType:x,prefersKeyboardNavigation:g,type:S};return(0,n.jsx)(zc,{type:S,children:(0,n.jsx)(si,{type:S,children:(0,n.jsxs)(Ru,{children:[(0,n.jsx)("div",{className:l,inert:L,style:h,children:d}),(0,n.jsx)(ni,{children:(0,n.jsx)(p7,{...N})})]})})})},Cre=({percentComplete:e,trackingCompletionPercentage:t,labelCompletionRequirement:s="Completion Requirement",labelPercentCompletion:o="% Completion",labelYouCompleted:r="You completed:",labelA11yRequirementCompleted:a="Requirement completed, check mark",labelA11yRequirementNotCompleted:i="Requirement not completed, empty square"})=>{const c=rn();if(Xe()(t))return null;const d=Ia({percent:t,label:o,isRTL:c}),l=c?`%${e}`:`${e}%`;return(0,n.jsxs)("div",{className:"progress-summary__requirement",children:[(0,n.jsxs)("div",{className:"progress-summary__requirement-stats-wrap",children:[(0,n.jsx)("h2",{className:"progress-summary__requirement-title",children:s}),(0,n.jsxs)("div",{className:"progress-summary__requirement-stats",children:[(0,n.jsx)("div",{children:d}),(0,n.jsxs)("div",{children:[r,"\xA0",(0,n.jsx)("strong",{className:"progress-summary__requirement-stats-percent-achieved",children:l})]})]})]}),(0,n.jsx)(g7,{labelA11yRequirementCompleted:a,labelA11yRequirementNotCompleted:i,requirementMet:t<=e})]})},xre=({outOfAttempts:e,quizPassed:t,quizPassingScore:s,quizScore:o,quizTitle:r,trackingQuizId:a,labelQuizRequirement:i="Quiz Requirement",labelScoreOf:c="Score of",labelScoreOfPreposition:d="% on",labelViewQuiz:l="View quiz",labelYouScored:h="You scored",labelNoAttemptsRemaining:m="No attempts remaining.",labelA11yRequirementCompleted:p="Requirement completed, check mark",labelA11yRequirementNotCompleted:v="Requirement not completed, empty square"})=>{const C=rn();if(!a)return null;const g=Ia({percent:s,label:d,isRTL:C});return(0,n.jsxs)("div",{className:"progress-summary__requirement",children:[(0,n.jsxs)("div",{className:"progress-summary__requirement-stats-wrap",children:[(0,n.jsx)("h2",{className:"progress-summary__requirement-title",children:i}),(0,n.jsxs)("div",{className:"progress-summary__requirement-stats",children:[(0,n.jsxs)("div",{children:[c," ",g," ",r]}),Xe()(o)?(0,n.jsx)("div",{children:(0,n.jsx)(is,{className:"progress-summary__requirement-stats-link brand--color",to:`/lessons/${a}`,children:l})}):(0,n.jsxs)("div",{children:[h,"\xA0",(0,n.jsxs)("strong",{className:"progress-summary__requirement-stats-percent-achieved",children:[o,"%"]})]})]}),e&&(0,n.jsx)("span",{className:"progress-summary__requirement-no-attempts",children:m})]}),(0,n.jsx)(g7,{labelA11yRequirementCompleted:p,labelA11yRequirementNotCompleted:v,requirementMet:t})]})},g7=({requirementMet:e,labelA11yRequirementCompleted:t,labelA11yRequirementNotCompleted:s})=>e?(0,n.jsx)(ie,{"aria-label":t,classNameIcon:"progress-summary__requirement-checkbox-checked",name:"square-check"}):(0,n.jsx)("div",{"aria-label":s,className:"progress-summary__requirement-checkbox-empty",role:"img"}),bre=({dueAt:e})=>e?(0,n.jsx)("div",{className:"progress-summary__header-due brand--color brand--border",children:am(e)}):null;var yre=f(10956),Lre=f.n(yre),Sre=f(80588);const Tre=["#eb524d","#ffac02","#ffcc00","#28cea9","#4fbdf4","#6788e4"];class Nre extends Sre.Component{constructor(...t){super(...t),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(t,s){return s.recycle!==this.state.recycle||s.run!==this.state.run}componentWillUnmount(){clearTimeout(this.timeout)}render(){const{state:{recycle:t,run:s}}=this;return(0,n.jsx)("div",{className:"progress-summary__confetti",children:(0,n.jsx)(Lre(),{colors:Tre,gravity:.4,height:window.innerHeight,numberOfPieces:500,recycle:t,run:s,width:window.innerWidth})})}}const kre=Nre;var Ire=f(51303),Ere=f.n(Ire),jre=f(49698);const v7=_("progress-summary-card"),wre=({completeLabel:e,isComplete:t,isUrgent:s,completedDate:o,labelDue:r})=>t?(0,n.jsxs)("div",{className:"progress-summary-card__completed-label",children:[e,(0,n.jsx)("span",{className:"progress-summary-card__completed-date",children:o})]}):r?(0,n.jsx)("div",{className:G()("progress-summary-card__due-label",{"brand--color":s}),children:r}):null,Are=({cardImageKey:e=null,className:t,color:s="#ff6602",completedAt:o=null,coverImageKey:r=null,disable:a=!1,durationHidden:i=!1,enrolledAt:c=null,hidden:d=!1,imagesUri:l="",isLearningPath:h=!1,isUrgent:m=!1,labelAssignedToMe:p="",labelDue:v="",labelDuration:C="",labelLearningPath:g="",onClick:x=tn,progress:L=0,title:T=""})=>{const y=ue(),b=rn(),S=o!==null,N=(0,u.useCallback)(()=>{a||x?.()},[a,x]),k=(0,u.useCallback)(j=>{Uh(j)&&j.preventDefault(),!a&&Ca(j)&&x?.()},[a,x]),E=Ia({percent:Math.round(L),label:y?.progressSummaryPercentComplete||"% Complete",isRTL:b}),I=e||r,P=y?.progressSummaryCompleted||"Completed: ",A=`${dn()(new Date(o)).format("MM/DD/YY")}`,w=v7("card",{disabled:a}),O=v7("image-overlay",{"not-started":!(L||S),"in-progress-completed":L||S});return(0,n.jsxs)("div",{"aria-hidden":d,className:w,onClick:N,children:[(0,n.jsxs)("div",{className:"progress-summary-card__content",children:[(0,n.jsx)("button",{"aria-disabled":a,className:G()("progress-summary-card__title-button",{[t]:t}),onKeyDown:k,role:"link",tabIndex:d?-1:void 0,type:"button",children:(0,n.jsx)("span",{className:"progress-summary-card__title",children:T||y?.progressSummaryNoTitle||"(No Title)"})}),(0,n.jsxs)("div",{className:"progress-summary-card__course-info",children:[h&&(0,n.jsx)("div",{className:"progress-summary-card__hide",children:g}),c&&(0,n.jsx)("div",{className:"progress-summary-card__hide",children:p}),!!L&&!a&&!o&&(0,n.jsx)("span",{className:"progress-summary-card__hide",children:E}),!i&&!S&&(0,n.jsx)("div",{className:"progress-summary-card__duration",children:C}),(0,n.jsx)(wre,{completedDate:A,completeLabel:P,isComplete:S,isUrgent:m,labelDue:v})]})]}),(0,n.jsxs)("div",{className:"progress-summary-card__image-wrap",children:[(0,n.jsx)(jre.A,{alt:"","aria-hidden":"true",b:"fff",className:"progress-summary-card__image",f:"jpg",h:150,imageKey:I,imagesUri:l,s:"cover",style:{backgroundColor:s},w:300}),(0,n.jsx)("div",{className:O}),(0,n.jsx)("div",{className:"progress-summary-card__image-overlay-bottom-bar",children:!!L&&!a&&!S&&(0,n.jsx)("div",{"aria-hidden":"true",className:"progress-summary-card__progress-bar-wrap",children:(0,n.jsx)("div",{className:"progress-summary-card__wrap-light",children:(0,n.jsx)("div",{className:"progress-summary-card__progress-bar",style:{width:`${L}%`}})})})})]})]})},Rre=ye("IMAGES_URI"),Pre=["cardImageKey","color","coverImageKey","progress","score","title"],C7=(e,t)=>e===1?t:t.concat("s"),Jp=De()([],["course","course","lessons"]),Mre=e=>ce()(as(),w0()(Nn()(Ae()("type","section"),h3()(Tn()(W2(),e),"id"))),Jp),Ore=e=>{const t=Jp(e),{trackingQuizId:s}=e,{score:o}=e;if(s&&t.length){const r=Hs()(Ae()("id",s),t),{settings:{passingScore:a}={}}=r;return o<a?r:!1}},Bre=ce()(Hs()(Qr()(Ae()("type","section"))),Jp),Dre=gl()(2,e=>ce()(St()("","id"),Hs()(Boolean),Ere()([Mre(e),Ore,Bre]))),Hre=e=>{const t=dn().duration(e),s=t.hours(),o=t.minutes(),r=`${s} ${C7(s,"hr")}`,a=`${o} min`;return s>=100?"100+ hrs":s>0&&o>0?[r,a].join(" "):s>0?r:a},Fre=({color:e,learningPathId:t})=>{const{learningPathComplete:s,isSuccess:o,nextCourse:r}=ae(x=>x.learningPathUpNext??{}),{dueAt:a,courseId:i="",lessonCount:c,lessonsCompleted:d=[],sourceType:l,timeToComplete:h}=r??{},m=ue(),p=(0,u.useMemo)(()=>Dre(d,r),[r,d]),v=r?.color??e,C=Sn()(Pre,{...r,color:v}),g=(0,u.useCallback)(()=>{l==="PACKAGE"?(top.sessionStorage.setItem("upNextCourseId",i),top.location.assign(`/learning-path/${t}`)):_I(`${i}/lessons/${p}`)},[i,t,p,l]);return o&&!s&&(0,n.jsx)("div",{className:"progress-summary__lp-next",children:(0,n.jsxs)("div",{className:"progress-summary__lp-next-inner",children:[(0,n.jsxs)("div",{className:"progress-summary__lp-next-label",children:[m?.progressSummaryNextUp||"Next up"," ",(0,n.jsx)(ie,{"aria-hidden":"true",classNameIcon:"progress-summary__lp-next-label-icon",name:"arrow-right"})]}),(0,n.jsx)("div",{className:"progress-summary__lp-next-card",children:(0,n.jsx)(Are,{imagesUri:Rre,labelCount:`${c} ${C7(c,"lesson")}`,labelDue:am(a),labelDuration:Hre(h),noCertDownload:!0,noFavoriteBtn:!0,onClick:g,...C})})]})})},Vre=`${ye("CDN_URI")}/assets/rise/assets/trophy.svg`,zre=ce()(Zt(),ws()(xe()("isComplete")),Ft()),$re=e=>{const{color:t,course:s={},courseProgress:o={},lessons:r=[]}=e,a=it(),{learningPathComplete:i,lpHasFailedQuiz:c}=ae(J=>J.learningPathUpNext??{}),{lessons:d={},percentComplete:l}=o,{dueAt:h,certificateDownload:m,completionCelebration:p,lessonsOnly:v=[],riseComCourseId:C,riseComLearningPathId:g,trackingCompletionPercentage:x,trackingQuizId:L}=s,T=aa(),y=ue(),b=Xe()(x)&&Xe()(L),S=b?l===100:lg(),N=v.length,k=zre(d),E=(0,u.useCallback)(()=>{a(JI({courseId:C,learningPathId:g}))},[a,C,g]);(0,u.useEffect)(()=>{g&&E()},[]);const I=(0,u.useMemo)(()=>S?s.completedAt?s.completedAt:new Date:null,[s.completedAt,S]),P=(0,u.useMemo)(()=>Hs()(Yd()(Ae()("type","quiz"),Ae()("id",L)),r),[L,r]),A=vt(P?.title),w=(0,u.useMemo)(()=>De()(100,["settings","passingScore"],P),[P]),O=De()(null,["lessons",L,"passed"],o),j=(0,u.useMemo)(()=>ce()(Gt()(Ae()("percentComplete",100),xe()("score"),Le()(null)),De()({},["lessons",L]))(o),[o,L]),{outOfAttempts:R}=S3(o,P,L);let M=L?O:!0,z=Ns();const $=G()("progress-summary",{"progress-summary__no-req":b}),H=bo(s),F=`You've completed ${k} of ${N} lessons.`,Q=H?S?"Complete":"Incomplete":F;return(0,n.jsx)(Ir,{title:pc(T+" - Progress Summary"),children:(0,n.jsxs)("div",{className:$,children:[S&&p&&M&&!z&&(0,n.jsx)(kre,{}),(0,n.jsxs)("header",{className:"progress-summary__header",children:[(0,n.jsx)("h1",{className:"progress-summary__header-title",tabIndex:-1,children:S&&!b&&M?y?.progressSummaryCongratulations||"Congratulations!":y?.progressSummary||"Progress Summary"}),b?(0,n.jsx)("div",{className:"progress-summary__lessons-completed",children:Q}):S?(0,n.jsxs)("div",{className:"progress-summary__header-completion-date",children:[M&&(0,n.jsx)("img",{alt:"trophy",className:"progress-summary__header-trophy",src:Vre}),dn()(I).format("MMMM Do, YYYY")]}):(0,n.jsx)(bre,{dueAt:h})]}),(0,n.jsxs)("section",{className:"progress-summary__section",children:[!b&&S&&(0,n.jsx)("div",{className:"progress-summary__requirements-met",children:y?.progressSummaryRequirementsMet||"You've met all the requirements."}),b?!g&&(0,n.jsxs)(is,{className:"progress-summary__start-over",to:"/",children:[y?.progressSummaryStartOver||"Start Over",(0,n.jsx)("i",{className:"progress-summary__start-over-icon icon icon-reload"})]}):(0,n.jsxs)("div",{className:"progress-summary__requirements",children:[(0,n.jsx)(Cre,{labelA11yRequirementCompleted:y?.a11yProgressSummaryRequirementCompleted,labelA11yRequirementNotCompleted:y?.a11yProgressSummaryRequirementNotCompleted,labelCompletionRequirement:y?.progressSummaryCompletionRequirement,labelPercentCompletion:y?.progressSummaryPercentCompletion,labelYouCompleted:y?.progressSummaryYouCompleted,percentComplete:l,trackingCompletionPercentage:x}),(0,n.jsx)(xre,{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:R,quizPassed:O,quizPassingScore:w,quizScore:j,quizTitle:A,trackingQuizId:L})]}),(S||b)&&(0,n.jsxs)("div",{className:"progress-summary__completion-controls",children:[(0,n.jsx)("button",{className:"progress-summary__btn-back progress-summary__completion-control",onClick:$I,role:"link",type:"button",children:y?.progressSummaryBackToLearning||"Back to my learning"}),S&&(!g&&m||g&&i)&&m&&M&&!c&&(0,n.jsx)("span",{className:"progress-summary__completion-control",children:(0,n.jsx)(iW,{})})]})]}),S&&!!g&&(0,n.jsx)(Fre,{color:t,learningPathId:g})]})})},x7=({contentClassName:e,...t})=>(0,n.jsx)(zc,{type:Pu.type,children:(0,n.jsx)(si,{type:Pu.type,children:(0,n.jsx)(Ru,{children:(0,n.jsx)(ni,{className:e,type:Pu.type,children:(0,n.jsx)($re,{...t})})})})}),Pu={id:"progress-summary",type:"progress-summary",title:"Progress Summary",description:"Summary of course progress"},b7=we("Progress"),_re=e=>e===Ty.CONTINUE,Ure=({canShowContinue:e,isExport:t,isRiseCom:s,nextLesson:o})=>e&&s&&!o&&!t,Gre=e=>As(e)&&"id"in e&&"type"in e,Wre=({item:e,question:t})=>{if(e.type===Kt.DRAW_FROM_QUESTION_BANK){const s=String(t.id);return e.id===s.split("-")[0]}return e.id===t.id},Kre=(e,t)=>!e||!t||e.length!==t.length?!1:e.some((s,o)=>t[s]?.id!==t[o]?.id),Qre=(e,t,s)=>{if(!Array.isArray(e)||!Array.isArray(t)||!s)return!1;const o=e.map(i=>t[i]),r=t.findIndex(i=>i.id===s),a=o.findIndex(i=>i.id===s);return r===a},Zre=({lesson:e,question:t})=>{const o=e?.items?.filter(Gre)?.find(a=>Wre({item:a,question:t}));if(o?.type!==Kt.DRAW_FROM_QUESTION_BANK)return o;const r=String(t.id).split("-")[1];return o.questions.find(a=>a.id===r)},Yre=_("quiz"),Mu=0,oi=2,Xre=e=>({start:e<oi?0:e-oi,end:e+oi});function Jre(e){return e+1}function qre(e){return e<Mu+oi}function eae(e,t){const{start:s,end:o}=Xre(t);return{items:e.slice(s,o),startOffset:s}}function qp({activeIndex:e,index:t}){return Yre("card",{active:t===e,done:t<e,next:t===e+1,penultimate:t===e+oi,future:t>e+oi})}function tae({settings:e}){const t=it();return(0,u.useMemo)(()=>({onChoiceSelect:s=>{t(uv(s))},onFillInChange:s=>{t(hv(s))},onMatchSet:s=>{t(pv(s))},onResponseToggle:s=>{t(mv(s))},onSetIndex:s=>{t(K0(s))},onSubmit:s=>{const{skipLessonsIfPassed:o,skipToLessonId:r}=e||{};return t(Q0({...s,passToContinue:s.passToContinue??!1,skipLessonsIfPassed:o??void 0,skipToLessonId:r??void 0}))}}),[t,e])}function y7(e){return e.type===Kt.DRAW_FROM_QUESTION_BANK}function ef(e,t){return{...t,drawn:!0,id:`${e.id}-${t.id}`}}function sae(e,t){const s=t.map(o=>({question:e.questions[o],idx:o})).filter(o=>o.question!=null);return{items:s.map(({question:o})=>ef(e,o)),indices:s.map(({idx:o})=>o)}}function nae(e){const{questions:t}=e;if(Gw())return{items:t.map(i=>ef(e,i)),indices:t.map((i,c)=>c)};const s=e.drawCount,o=[],r=[],a=[];for(let i=0;i<s;i++){const c=E8({questions:t,drawnQuestionIds:o});if(!c)break;r.push(ef(e,c)),a.push(t.findIndex(d=>d.id===c.id)),o.push(String(c.id))}return{items:r,indices:a}}function oae({sourceItems:e,progress:t,lessonId:s}){const o=t?.questionsDrawn?t.questionList:void 0,r=e.filter(y7).map((l,h)=>{const m=o?.[h];return m?sae(l,m):nae(l)});let a=0;const i=e.flatMap(l=>y7(l)?r[a++].items:[l]),c=r.map(l=>l.indices),d=rae({items:i,progress:t,questionIndexList:c});return{concreteItems:i,drawPayload:{lessonId:s,lessonProgress:d}}}function rae({items:e,progress:t,questionIndexList:s}){const o=t?.items??{},r=t?.originalItemProgress,a=new Map(Object.values(o).map(c=>[c.index,c])),i=Object.fromEntries(e.map((c,d)=>{const l=r?.[d]??{},h=a.get(d);return[c.id,{...l,...h,id:c.id,index:d}]}));return{...t,questionsDrawn:!0,questionList:s,items:i}}function tf(e,t){return!!t[e.id]?.isComplete}function aae({items:e,progress:t}){const s=t?.items??{};return[...e.filter(o=>tf(o,s)),...ju()(e.filter(o=>!tf(o,s)))]}function iae(e){const t=e.answers??[],s=ju()(t),o=s.map(r=>t.findIndex(a=>a.id===r.id));return Object.assign({},e,{answers:s,shuffledAnswerIndices:o})}function L7({items:e,settings:t,progress:s}){const o=t?.randomizeQuestionOrder?aae({items:e,progress:s}):e;if(!t?.shuffleAnswerChoices)return o;const r=s?.items??{};return o.map(a=>tf(a,r)?a:iae(a))}function cae({lessonId:e,sourceItems:t,progress:s,settings:o}){const{concreteItems:r,drawPayload:a}=oae({sourceItems:t,progress:s,lessonId:e});return{resolvedItems:L7({items:r,settings:o??void 0,progress:a.lessonProgress}),drawPayload:a}}function $ve(e){return L7({items:e.items,settings:e.settings,progress:e.progress})}function _ve({lessonIds:e,lessons:t}){return!Array.isArray(e)||!t?!1:e.some((s,o)=>{const r=t[s];return r?.type!=="quiz"||r.settings?.skipLessonsIfPassed!==!0?!1:e.slice(o+1).some(a=>{const i=t[a];return i&&i.type!=null&&i.type!=="section"})})}function lae(e,t){const s=At(e),o=o1(s)?s.settings:void 0,r=e?bT({id:e,passingScore:t?.passingScore??Ur}):void 0;return(0,u.useMemo)(()=>o&&{...o,passingScore:r??o?.passingScore??Ur},[o,r])}const Ou=typeof matchMedia<"u"?matchMedia("(prefers-reduced-motion: reduce)"):void 0;function S7(){const[e,t]=(0,u.useState)(Ou?.matches??!1);return(0,u.useEffect)(()=>{if(!Ou)return;const s=o=>t(o.matches);return Ou.addEventListener("change",s),()=>Ou.removeEventListener("change",s)},[]),e}function dae({lessonId:e}){const t=it(),s=At(e),o=o1(s)?s:void 0,r=Nl(e),a=(0,u.useMemo)(()=>o?.items??[],[o?.items]),i=lae(e,r),[{resolvedItems:c,drawPayload:d}]=(0,u.useState)(()=>cae({lessonId:e,progress:r,settings:i,sourceItems:a}));(0,u.useEffect)(()=>{t(nI({...d,lessonId:e}))},[]);const l=r?.activeIndex??0,h=S7();return uae({activeIndex:l,isReduceMotion:h,progress:r,resolvedItems:c,settings:i,sourceItems:a}),{activeIndex:l,progress:r,resolvedItems:c,retryAttempts:r?.retryAttempts??0,settings:i,sourceItems:a}}function uae({activeIndex:e,isReduceMotion:t,progress:s,resolvedItems:o,settings:r,sourceItems:a}){const i=(0,u.useRef)(e);(0,u.useEffect)(()=>{},[e])}const hae=e=>e.length===3,mae=e=>{const t=e.findIndex(s=>s==="answers");return t===-1?null:e[t+1]?.id},pae=e=>{const t=e.findIndex(s=>s==="questions");return t===-1?null:e[t+1]?.id},fae=e=>{const t=e.at(-1);return typeof t=="string"&&t.startsWith("feedback")},gae=({items:e,itemId:t,questionBankQuestionId:s})=>{const o=e.find(({id:r})=>r===t);return o?"questions"in o?s?o.questions.find(({id:r})=>r===s):null:o:null},vae=(e,t,s)=>{const o=s==="feedbackCorrect";return e?[e]:s==="feedback"?t.answers.slice(0,1):s==="feedbackIncorrect"&&t.type==="FILL_IN_THE_BLANK"?[{title:""}]:t.answers.filter(r=>"correct"in r?r.correct===o:"corrects"in t?t.corrects.includes(r.id)===o:t.answers)},Cae=({lessonId:e,items:t})=>{const s=it(),o=(0,u.useCallback)(({lessonId:a,progressId:i,question:c,answer:d},l=!0)=>{switch(c.type){case"MULTIPLE_CHOICE":s(uv({lessonId:a,itemId:i,selectedIndex:c.answers.indexOf(d)}));break;case"MULTIPLE_RESPONSE":s(mv({lessonId:a,itemId:i,selectedIndex:c.answers.indexOf(d)}));break;case"FILL_IN_THE_BLANK":s(hv({lessonId:a,itemId:i,text:typeof d.title=="string"?d.title:""}));break;case"MATCHING":s(pv({lessonId:a,itemId:i,matches:l?Object.fromEntries(c.answers.map(h=>[h.id,h.id])):{}}));break}},[s]),r=(0,u.useCallback)(({detail:a})=>{const{lessonId:i,path:c}=a,d=String(a.itemId);if(i!==e)return;if(hae(c)){s(dv(e));return}const l=pae(c),h=gae({items:t,itemId:d,questionBankQuestionId:l});if(!h)return;const m=l?`${d}-${l}`:d;if(s(K0({lessonId:e,progressId:m})),fae(c)){const p=mae(c),v=p?h.answers.find(({id:L})=>L===p)??null:null,C=c.at(-1),g=C==="feedbackCorrect",x=vae(v,h,C);h.type==="MULTIPLE_RESPONSE"&&s(sI({lessonId:e,itemId:m})),x.forEach(L=>{o({lessonId:e,question:h,progressId:m,answer:L},g)}),s(Q0({finalRetryAttempt:!1,lessonId:e,isCorrect:g,itemId:m,passToContinue:!0}))}},[s,e,t,o]);(0,u.useEffect)(()=>(window.addEventListener(Ge,r),()=>{window.removeEventListener(Ge,r)}),[r])},xae=_("quiz-item");function bae({activeIndex:e,children:t,index:s,isActive:o,isComplete:r,isCorrect:a,isTimedQuiz:i,settings:c}){const d=c?.correctAnswerColor??void 0,l=c?.incorrectAnswerColor??void 0,p={"--color-feedback-icon":a?d:l,"--color-matching-feedback-bubble-bg":l,"--color-multiple-choice-complete-border":l,"--color-multiple-choice-correct-border":d,"--color-multiple-response-correct-border":d,"--color-multiple-response-incorrect-border":l,"--color-multiple-response-option-check":r?d:void 0,"--color-quiz-option-check":d,"--color-x-fill":l};return(0,n.jsx)("div",{className:qp({activeIndex:e,index:s}),"data-testid":"quiz-item-card",inert:o?void 0:!0,children:(0,n.jsx)("div",{className:xae("content"),children:(0,n.jsx)(W9,{isActive:o,isComplete:r,isTimedQuiz:!!i,style:p,children:(0,n.jsx)("div",{hidden:!o&&!r,children:t})})})})}const yae=_("quiz-card");function Lae({blockId:e,enableVideoPlaybackSpeed:t,index:s,isActive:o,item:r,labels:a,media:i}){const c=vs();if(!i)return null;const d=c(i),{audio:l,image:h,video:m,embed:p}=d??{},v={allowTabNavigation:o,blockId:e,enableVideoPlaybackSpeed:t,item:r,labels:a};return l&&h?(0,n.jsx)("div",{className:`${yae("media",{"image-with-audio":!0})}`,children:(0,n.jsx)(Fo,{...v,index:String(s),isOverlayAudio:!0,media:i})}):l&&(m||p)?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(Fo,{...v,index:`${s}-audio`,media:{audio:l}}),(0,n.jsx)(Fo,{...v,index:String(s),media:m?{video:m}:{embed:p},shouldPause:!o})]}):(0,n.jsx)(Fo,{...v,index:String(s),media:i,shouldPause:!o})}function T7(e,t){if(e===void 0||!t)return;if(Array.isArray(e))return e.map(o=>t.indexOf(o)).filter(o=>o!==-1);const s=t.indexOf(e);return s===-1?void 0:s}const{FILL_IN_THE_BLANK:Sae,MATCHING:Tae,MULTIPLE_CHOICE:Nae,MULTIPLE_RESPONSE:kae}=Kt;function Iae({color:e,columnBehavior:t,correctAnswerColor:s,correctAnswerColorContrast:o,errorMessageId:r,incorrectAnswerColor:a,incorrectAnswerColorContrast:i,isActive:c,isComplete:d,isCorrect:l,isReduceMotion:h,isRetaking:m,isShuffled:p,item:v,itemProgress:C,labels:g,onChoiceSelect:x,onFillInChange:L,onMatchSet:T,onResponseToggle:y,onSubmit:b,prefersKeyboardNavigation:S,questionHtmlId:N,quizAcceptableResponses:k,quizAnswerPlaceholder:E,revealAnswers:I}){const{answers:P,type:A}=v,w=c&&!d,O=P??[],j=("correct"in v?v.correct:void 0)??"",R=("corrects"in v?v.corrects:void 0)??[],M=C?.text??"",z=C?.matches??{},$=(0,u.useCallback)(({title:F})=>(0,n.jsx)(be,{allowTabNavigation:c,className:"quiz-multiple-choice-option__label",value:F}),[c]),H=(0,u.useCallback)(({title:F})=>(0,n.jsx)(be,{allowTabNavigation:c,tagName:"span",value:F}),[c]);switch(A){case Sae:return(0,n.jsx)(q9,{allowTabNavigation:c,correctAnswerColor:s,correctAnswerColorContrast:o,errorMessageId:r,incorrectAnswerColor:a,incorrectAnswerColorContrast:i,isComplete:d,isCorrect:l,labels:g,onChange:L,onEnterToSubmit:b,options:O,questionHtmlId:N,quizAcceptableResponses:k,quizAnswerPlaceholder:E,revealAnswers:I,value:M});case Tae:return(0,n.jsx)(o8,{answers:O,columnBehavior:t,correctAnswerColor:s,correctAnswerColorContrast:o,incorrectAnswerColor:a,incorrectAnswerColorContrast:i,isActive:c,isComplete:d,matches:z,onChange:T,prefersKeyboardNavigation:S,revealAnswers:I});case kae:{const F=C?.selectedIndices,K=C?.shuffledAnswerIndices??[],Q=p?T7(F,K):F;return(0,n.jsx)(i8,{allowTabNavigation:c,correctIds:R,errorMessageId:r,isComplete:d,isCorrect:l,isRetaking:m,labels:g,onChange:y,onEnterToSubmit:b,options:O,questionHtmlId:N,renderOptionText:H,revealAnswers:I,selectedIndices:Q??[]})}case Nae:default:{const F=C?.selectedIndex,K=C?.shuffledAnswerIndices??[],Q=p?T7(F,K):F;return(0,n.jsx)(a8,{allowTabNavigation:w,color:e,correctId:j,errorMessageId:r,isComplete:d,isCorrect:l,isReduceMotion:h,isRetaking:m,labels:g,onChange:x,onEnterToSubmit:b,options:O,questionHtmlId:N,renderOptionText:$,revealAnswers:I,selectedIndex:Q??-1})}}}const Dr=_("quiz-card");function Eae({color:e,enableVideoPlaybackSpeed:t,hasStart:s,index:o,interaction:r,isQuestionBankQuiz:a,isReduceMotion:i,isShuffled:c,item:d,items:l,labels:h,onTakeAgain:m,prefersKeyboardNavigation:p,progress:v,settings:C,showNextButton:g}){const{canProceed:x,canSubmit:L,errorIncomplete:T,feedbackRef:y,errorMessageId:b,feedbackValue:S,handleChoiceSelect:N,handleFillInChange:k,handleMatchSet:E,handleNextFeedbackClick:I,handleResponseToggle:P,handleSubmit:A,handleTakeAgain:w,isActive:O,isComplete:j,isCorrect:R,isRetaking:M,itemProgress:z,quizItemHtmlId:$,selection:H,wrapperRef:F}=r,K=s?o+1:o,Q=C?.revealAnswers===!0?Ee.ALL:C?.revealAnswers??Ee.NONE,J=`q-${d.id}`,te=d.settings,D=C?.correctAnswerColor??void 0,U=C?.correctAnswerColorContrast??void 0,V=C?.incorrectAnswerColor??void 0,B=C?.incorrectAnswerColorContrast??void 0,W=h?.quizQuestion??"",Z=h?.quizAcceptableResponses??"",X=h?.quizAnswerPlaceholder??"",Y=h?.quizCorrect??"",oe=h?.quizIncorrect??"",re=h?.quizSubmit??"",me=v?.percentComplete===100&&a?h?.quizRestart??"":h?.quizNext??"";return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(gee,{isActive:O,labels:h,questionLabel:W,questionNumber:o+1,totalQuestions:l.length}),(0,n.jsx)(Cee,{allowTabNavigation:O,htmlId:J,value:d.title}),(0,n.jsx)(Lae,{blockId:d.id,enableVideoPlaybackSpeed:t,index:K,isActive:O,item:d,labels:h,media:d.media}),(0,n.jsx)(Y9,{type:d.type,children:(0,n.jsx)("div",{ref:F,children:(0,n.jsx)(Iae,{canSubmit:L,color:e,columnBehavior:te?.columnBehavior,correctAnswerColor:D,correctAnswerColorContrast:U,errorMessageId:b,incorrectAnswerColor:V,incorrectAnswerColorContrast:B,isActive:O,isComplete:j,isCorrect:R,isReduceMotion:i,isRetaking:M,isShuffled:c,item:d,itemProgress:z,labels:h,onChoiceSelect:N,onFillInChange:k,onMatchSet:E,onResponseToggle:P,onSubmit:A,prefersKeyboardNavigation:p,questionHtmlId:J,quizAcceptableResponses:Z,quizAnswerPlaceholder:X,revealAnswers:Q})})}),(0,n.jsx)("div",{"aria-live":"assertive",children:T&&(0,n.jsxs)("div",{className:`${Dr("validations")}`,"data-testid":"quiz-validation-error",children:[(0,n.jsx)(ie,{className:`${Dr("validation-icon")}`,"data-testid":"quiz-validation-icon",name:"alert-circle"}),(0,n.jsx)("span",{id:`${$}-error-incomplete-message`,children:h?.quizRequireAnswer})]})}),(0,n.jsx)(Z9,{canProceed:x,feedbackRef:y,feedbackValue:S,isActive:O,isComplete:j,isCorrect:R,item:d,labels:h,quizCorrect:Y,quizIncorrect:oe,revealAnswers:Q,selection:H}),(0,n.jsx)(G9,{allowNext:!m,canProceed:x,canSubmit:L,isReduceMotion:i,onNext:g?I:void 0,onSubmit:A,quizNext:me,quizSubmit:re}),m&&(0,n.jsx)("div",{className:`${Dr("retake-container",{active:j})}`,children:(0,n.jsx)("button",{className:`${Dr("retake",{active:j})}`,onClick:w,type:"button",children:(0,n.jsxs)("div",{className:`${Dr("retake-content")}`,children:[(0,n.jsx)("div",{className:`${Dr("retake-text")}`,children:"TAKE AGAIN"}),(0,n.jsx)("i",{className:`${Dr("retake-icon")} icon icon-reload`})]})})})]})}const{FILL_IN_THE_BLANK:N7,MATCHING:k7,MULTIPLE_CHOICE:I7,MULTIPLE_RESPONSE:E7}=Kt;function jae(e,t){return e?.items?.[t]??{}}function wae(e,t,s,o,r){switch(e.type){case N7:return u8({answers:e.answers??[],text:t.text,caseSensitive:e.settings?.isCaseSensitive??!1,getL10nValue:r});case k7:return h8(t.matches??{});case E7:return f8({isShuffled:s,item:e,selectedIndices:t.selectedIndices,shuffledAnswerIndices:t.shuffledAnswerIndices});case I7:default:return m8({isCorrectAnswerUnshuffled:o,isShuffled:s,item:e,selectedIndex:t.selectedIndex,shuffledAnswerIndices:t.shuffledAnswerIndices})}}function Aae(e,t){switch(e.type){case N7:return t.text;case k7:return t.matches;case E7:return t.selectedIndices;case I7:default:return t.selectedIndex}}const{FILL_IN_THE_BLANK:Rae,MATCHING:Pae,MULTIPLE_CHOICE:Mae,MULTIPLE_RESPONSE:Oae}=Kt;function Bae({hasStart:e=!1,id:t,index:s,isCorrectAnswerUnshuffled:o=!1,isShuffled:r=!1,item:a,onChoiceSelect:i,onFillInChange:c,onMatchSet:d,onResponseToggle:l,onTakeAgain:h,progress:m,reportAnswer:p,retryAttempts:v=0,setNextIndex:C,settings:g,submitAction:x,title:L}){const T=vs(),y=o3(),[b,S]=(0,u.useState)(!1),[N,k]=(0,u.useState)(Date.now),[E,I]=(0,u.useState)(!1),P=(0,u.useRef)(null),A=(0,u.useRef)(null),w=(0,u.useId)(),O=(0,u.useRef)({canSubmit:!1,isCorrect:!1,item:a,itemId:String(a.id),itemProgress:{},retryAttempts:v,revealAnswers:Ee.NONE,settings:g,startTime:N,title:L}),j=e?s+1:s,R=m?.activeIndex??0,M=j===R,z=jae(m,a.id),$=z?.isComplete??!1,H=wae(a,z,r,o,T),F=g?.revealAnswers===!0?Ee.ALL:g?.revealAnswers??Ee.NONE,K=F===Ee.ALL||F===Ee.INCORRECT,Q=M&&$&&K,J=M&&!$&&l8({answersLength:a.answers?.length??0,matches:z?.matches,selectedIndex:z?.selectedIndex,selectedIndices:z?.selectedIndices,text:z?.text,type:a.type});O.current={canSubmit:J,isCorrect:H,item:a,itemId:String(a.id),itemProgress:z,retryAttempts:v,revealAnswers:F,settings:g,startTime:N,title:L};const te=z?.selectedIndex,D=g8({answers:a.answers,feedback:"feedback"in a?a.feedback:void 0,feedbackCorrect:"feedbackCorrect"in a?a.feedbackCorrect:void 0,feedbackIncorrect:"feedbackIncorrect"in a?a.feedbackIncorrect:void 0,feedbackType:"feedbackType"in a?a.feedbackType:void 0,isCorrect:H,isShuffled:r,selectedIndex:te,shuffledAnswerIndices:a.shuffledAnswerIndices}),U=Aae(a,z),V=b?`${w}-error-incomplete-message`:void 0,B=(0,u.useCallback)(()=>{S(!1)},[]),W=String(a.id),Z=(0,u.useCallback)(({selectedIndex:ze})=>{B(),i?.({lessonId:t,itemId:W,selectedIndex:ze,shuffledAnswerIndices:a.shuffledAnswerIndices})},[t,W,a.shuffledAnswerIndices,i,B]),X=(0,u.useCallback)(ze=>{B(),c?.({lessonId:t,itemId:W,text:ze})},[t,W,c,B]),Y=(0,u.useCallback)(ze=>{B(),d?.({lessonId:t,itemId:W,matches:ze})},[t,W,d,B]),oe=(0,u.useCallback)(({optionIndex:ze})=>{B(),l?.({lessonId:t,itemId:W,selectedIndex:ze,shuffledAnswerIndices:a.shuffledAnswerIndices})},[t,W,a.shuffledAnswerIndices,l,B]),re=(0,u.useCallback)((ze=()=>{},We)=>{We&&ze(We),C?.({lessonId:t})},[t,C]),me=(0,u.useCallback)((ze,We)=>{de.pause(),re(ze??(()=>{}),We)},[re]),he=(0,u.useCallback)(()=>{M&&me()},[M,me]),Oe=(0,u.useCallback)(ze=>{ze.preventDefault();const{canSubmit:We,isCorrect:Dt,item:Go,itemId:Js,itemProgress:mo,retryAttempts:po,revealAnswers:qs,settings:vn,startTime:fo,title:go}=O.current;if(!We){switch(S(!0),Go.type){case Rae:case Oae:case Mae:A.current?.querySelector("input")?.focus();break;case Pae:A.current?.querySelector("button")?.focus();break;default:break}return}const Vr={startTime:fo,stopTime:Date.now()},{passToContinue:$e}=vn??{},Ht=vn?.retryCount??-1,xt=parseInt(String(Ht),10),ht=parseInt(String(po),10),hs=xt===ht,Cn=y({duration:Vr,id:t,isCorrect:Dt,item:Go,itemProgress:mo,retryAttempts:po,title:go});p?.(Cn);const ci={finalRetryAttempt:hs,lessonId:t,isCorrect:Dt,itemId:Js,passToContinue:$e,revealAnswers:qs};if(qs===Ee.ALL||qs===Ee.INCORRECT){x?.(ci);return}me(x,ci)},[y,me,t,p,x]),ut=(0,u.useCallback)(()=>{I(!0),setTimeout(()=>{h?.(),I(!1)},50)},[h]),It=(0,je.A)(M)??!1,Qe=(0,je.A)($)??!1;return(0,u.useEffect)(()=>{!It&&M&&k(Date.now())},[M,It]),{activeIndex:R,canProceed:Q,canSubmit:J,feedbackRef:P,errorIncomplete:b,errorMessageId:V,feedbackValue:D,handleChoiceSelect:Z,handleFillInChange:X,handleMatchSet:Y,handleNextFeedbackClick:he,handleResponseToggle:oe,handleSubmit:Oe,handleTakeAgain:ut,isActive:M,isComplete:$,isCorrect:H,isRetaking:E,itemProgress:z,prevIsActive:It,prevIsComplete:Qe,quizItemHtmlId:w,selection:U,wrapperRef:A}}const Dae=3;function Hae({feedbackRef:e,isActive:t,isComplete:s,isReduceMotion:o,prevIsActive:r,prevIsComplete:a,quizTop:i,revealAnswers:c,scrollId:d}){const l=(0,u.useRef)(void 0);(0,u.useEffect)(()=>()=>{clearTimeout(l.current)},[]),(0,u.useEffect)(()=>{if(!r&&t){const h=i??Dae,m=o?"instant":"smooth";document.getElementById(d??"page-wrap")?.scrollTo({top:h,behavior:m})}},[t,r,o,i,d]),(0,u.useEffect)(()=>{if(!(!t||c===Ee.NONE||o))return!a&&s&&(clearTimeout(l.current),l.current=setTimeout(()=>{const h=e.current;if(!h)return;const m=h.offsetHeight+h.offsetTop,p=o?"instant":"smooth";document.getElementById(d??"page-wrap")?.scrollTo({top:m,behavior:p})},750)),()=>{clearTimeout(l.current)}},[e,t,s,o,a,c,d])}const Fae=_("quiz-item");function Vae({color:e,enableVideoPlaybackSpeed:t,hasStart:s=!1,id:o,index:r,isCard:a=!1,isCorrectAnswerUnshuffled:i,isQuestionBankQuiz:c=!1,isShuffled:d=!1,isTimedQuiz:l,item:h,items:m,labels:p={},onChoiceSelect:v,onFillInChange:C,onMatchSet:g,onResponseToggle:x,onTakeAgain:L,prefersKeyboardNavigation:T,progress:y,quizTop:b,reportAnswer:S,retryAttempts:N=0,scrollId:k,setNextIndex:E,settings:I={revealAnswers:Ee.ALL},showNextButton:P=!0,submitAction:A,title:w}){const O=S7(),j=Bae({hasStart:s,id:o,index:r,isCorrectAnswerUnshuffled:i,isShuffled:d,item:h,onChoiceSelect:v,onFillInChange:C,onMatchSet:g,onResponseToggle:x,onTakeAgain:L,progress:y,reportAnswer:S,retryAttempts:N,setNextIndex:E,settings:I,submitAction:A,title:w}),{activeIndex:R,feedbackRef:M,isActive:z,isComplete:$,isCorrect:H,prevIsActive:F,prevIsComplete:K}=j,Q=I?.revealAnswers===!0?Ee.ALL:I?.revealAnswers??Ee.NONE;Hae({feedbackRef:M,isActive:z,isComplete:$,isReduceMotion:O,prevIsComplete:K,prevIsActive:F,quizTop:b,revealAnswers:Q,scrollId:k});const J=(0,n.jsx)(Eae,{color:e,enableVideoPlaybackSpeed:t,hasStart:s,index:r,interaction:j,isQuestionBankQuiz:c,isReduceMotion:O,isShuffled:d,item:h,items:m,labels:p,onTakeAgain:L,prefersKeyboardNavigation:T,progress:y,settings:I,showNextButton:P});return a?(0,n.jsx)(bae,{activeIndex:R,index:s?r+1:r,isActive:z,isComplete:$,isCorrect:H,isTimedQuiz:l,settings:I,children:J}):(0,n.jsx)("div",{className:Fae("wrap"),children:J})}const et=_("odometer"),j7=1e3,w7=2e3,zae=4e3,$ae=750,Bu=200,_ae=170,A7=145,Zs=Bu/2,Ys=_ae/2,$c=70,R7=1.5,Uae=2.5,Gae=225,Wae=135,P7=270,sf=7,ri={start:{dx:-19,dy:8},mid:{dx:-5,dy:22},end:{dx:26,dy:-7}},Uo={size:12,topOffset:-3,bottomOffset:21};function Kae(e){return e<.5?16*e**5:1+16*(e-1)**5}function Qae(e){return e<.5?2*e**2:1-(-2*e+2)**2/2}function Du({angle:e,centerX:t,centerY:s,radius:o}){const r=(e-90)*Math.PI/180;return{x:t+o*Math.cos(r),y:s+o*Math.sin(r)}}function nf({centerX:e,centerY:t,counterClockwise:s=!1,endAngle:o,radius:r,startAngle:a}){const i=Du({angle:a,centerX:e,centerY:t,radius:r}),c=Du({centerX:e,centerY:t,radius:r,angle:o}),l=Math.abs(o-a)>180?"1":"0",h=s?"0":"1";return`M ${i.x} ${i.y} A ${r} ${r} 0 ${l} ${h} ${c.x} ${c.y}`}function M7(e,t,s){return t+s*P7*e/100}function Zae({hasPassed:e,isResultsVisible:t,isRTL:s,onAnimationDone:o,passingLabel:r,passingScore:a,score:i=0,scoreLabel:c,shouldAnimate:d}){const[l,h]=(0,u.useState)(0),[m,p]=(0,u.useState)(0),[v,C]=(0,u.useState)(!1),x=`hatch-pattern${(0,u.useId)()}`,L=(0,u.useRef)(null),T=(0,u.useRef)(!1),y=(0,u.useRef)([]),b=(0,u.useCallback)(()=>{y.current.forEach(clearTimeout),y.current=[]},[]),S=(0,u.useCallback)(()=>{L.current!==null&&(cancelAnimationFrame(L.current),L.current=null),b()},[b]);(0,u.useEffect)(()=>{t||(S(),T.current=!1,h(0),p(0),C(!1))},[t,S]),(0,u.useEffect)(()=>{if(!t||!d||T.current)return;T.current=!0;const J=i,te=setTimeout(()=>{let D=null;const U=V=>{D===null&&(D=V);const B=V-D,W=Math.min(B/w7,1),Z=Kae(W),X=Qae(W);if(p(Z),h(Math.round(X*J)),W<1)L.current=requestAnimationFrame(U);else{p(1),h(J);const Y=setTimeout(()=>{C(!0);const oe=setTimeout(()=>{o?.()},$ae);y.current.push(oe)},zae-j7-w7);y.current.push(Y)}};L.current=requestAnimationFrame(U)},j7);y.current.push(te)},[t,d,i,o]),(0,u.useEffect)(()=>()=>{S()},[S]);const N=s?Wae:Gae,k=s?-1:1,E=M7(a,N,k),I=M7(m*i,N,k),P=N+k*P7,A=Du({centerX:Zs,centerY:Ys,radius:$c,angle:I}),w=Du({centerX:Zs,centerY:Ys,radius:$c,angle:E}),O=m*i>=a,j=s?`%${a}`:`${a}%`,R=s?`%${l}`:`${l}%`,M=`${c} ${s?`%${i}`:`${i}%`}`,z=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:et("pass-mark-label"),children:r}),(0,n.jsx)("div",{className:et("pass-mark-percent"),children:j})]}),$=nf({centerX:Zs,centerY:Ys,counterClockwise:s,radius:$c,startAngle:N,endAngle:P}),H=nf({centerX:Zs,centerY:Ys,counterClockwise:s,radius:$c+3,startAngle:E,endAngle:P}),F=m>0?nf({centerX:Zs,centerY:Ys,counterClockwise:s,radius:$c,startAngle:N,endAngle:I}):"",K={x:w.x+(s?-13:13),y:w.y-13},Q={x:K.x+(s?-13:13),y:K.y};return(0,n.jsxs)("div",{className:et(),children:[(0,n.jsxs)("svg",{"aria-hidden":"true",className:et("svg"),viewBox:`0 0 ${Bu} ${A7}`,children:[(0,n.jsx)("defs",{children:(0,n.jsx)("pattern",{height:"1.5",id:x,patternTransform:"rotate(45)",patternUnits:"userSpaceOnUse",width:"1.5",children:(0,n.jsx)("line",{className:et("hatch-line"),x1:"0",x2:"0",y1:"0",y2:"1.5"})})}),(0,n.jsx)("path",{className:et("passing-zone"),d:H,fill:"none",stroke:`url(#${x})`,strokeWidth:"6"}),(0,n.jsxs)("g",{className:et("pass-mark-lines"),children:[(0,n.jsx)("line",{className:et("pass-mark-line"),x1:w.x,x2:K.x,y1:w.y,y2:K.y}),(0,n.jsx)("line",{className:et("pass-mark-line"),x1:K.x,x2:Q.x,y1:K.y,y2:Q.y})]}),(0,n.jsx)("path",{className:et("track"),d:$,fill:"none",strokeWidth:R7}),F&&(0,n.jsx)("path",{className:et("progress",{passing:O}),d:F,fill:"none",strokeWidth:R7}),m>0&&(0,n.jsx)("circle",{className:et("dot",{passing:O}),cx:A.x,cy:A.y,r:Uae}),v&&(0,n.jsx)("g",{className:et("result-icon"),children:e?(0,n.jsx)("path",{className:et("checkmark"),d:`M ${Zs+ri.start.dx} ${Ys+ri.start.dy} L ${Zs+ri.mid.dx} ${Ys+ri.mid.dy} L ${Zs+ri.end.dx} ${Ys+ri.end.dy}`,fill:"none",strokeLinecap:"square",strokeLinejoin:"miter",strokeWidth:sf}):(0,n.jsxs)("g",{className:et("x-mark"),children:[(0,n.jsx)("path",{className:et("x-line",{first:!0}),d:`M ${Zs-Uo.size} ${Ys+Uo.topOffset} L ${Zs+Uo.size} ${Ys+Uo.bottomOffset}`,fill:"none",strokeLinecap:"square",strokeWidth:sf}),(0,n.jsx)("path",{className:et("x-line",{second:!0}),d:`M ${Zs+Uo.size} ${Ys+Uo.topOffset} L ${Zs-Uo.size} ${Ys+Uo.bottomOffset}`,fill:"none",strokeLinecap:"square",strokeWidth:sf})]})})]}),(0,n.jsxs)("div",{className:et("score",{pass:v&&e,fail:v&&!e}),children:[(0,n.jsx)("div",{className:et("score-label"),children:c}),(0,n.jsx)("div",{className:et("pass-label"),children:M}),(0,n.jsx)("div",{className:et("fail-label"),children:M}),(0,n.jsx)("div",{className:et("score-percent",{hidden:v}),children:R})]}),(0,n.jsx)("div",{className:et("pass-mark"),style:{"--pass-mark-x":`${(s?Bu-Q.x:Q.x)/Bu*100}%`,"--pass-mark-y":`${(Q.y+3)/A7*100}%`},children:z}),(0,n.jsx)("div",{className:et("pass-mark-mobile"),children:z})]})}const O7=(0,u.createContext)({handleExpiredQuiz:tn,hideTimer:tn,quizTime:0,resetQuizTimer:tn,timerDuration:0,timerHidden:!1,timerRunning:!1});function Yae({children:e,handleExpiredQuiz:t=()=>{},isTimedQuiz:s,courseProgress:o,setQuizLessonTimeRemaining:r=()=>{},timerDuration:a=10}){const i=(0,u.useRef)(void 0),[c,d]=(0,u.useState)(),[l,h]=(0,u.useState)(!1),[m,p]=(0,u.useState)(!1),[v,C]=(0,u.useState)(),g=(0,u.useMemo)(()=>Number(a),[a]),{activeIndex:x,endIndex:L,lessonId:T,lessonProgress:y,startIndex:b}=(0,u.useMemo)(()=>{const M=o?.currentLesson,z=o?.lessons?.[M],$=z?.activeIndex||0,H=Object.keys(z?.items||{}).length+1;return{activeIndex:$,lessonId:M,endIndex:H,lessonProgress:z,startIndex:0}},[o]),S=(0,je.A)(T),N=(0,je.A)(x),k=(0,u.useCallback)(()=>{d(g*60)},[g]),E=(0,u.useCallback)(()=>{d(M=>M-1)},[d]),I=(0,u.useCallback)(()=>{h(!0),i.current||(i.current=setInterval(E,1e3))},[E,h]),P=(0,u.useCallback)(M=>{p(M!==void 0?M:!m)},[m]),A=(0,u.useCallback)(()=>{h(!1),i.current&&(i.current=clearInterval(i.current))},[h]),w=(0,u.useCallback)(()=>{c&&v!==void 0&&r({lessonId:v,timeRemaining:c})},[v,c,r]),O=(0,u.useCallback)(()=>{w(),d(void 0)},[d,w]),j=(0,u.useCallback)(()=>d(y.timeRemaining||g*60),[y,g,d]);(0,u.useEffect)(()=>{if(!s)return;const M=S!==T,z=M&&c,$=M&&s;s&&!M&&v!==T&&C(T),z&&O(),$&&j()},[s,v,T,S,c,j,O]),(0,u.useEffect)(()=>{if(s)switch(x){case b:A();break;case L:k(),A();break;default:I(),N!==x&&S===T&&w()}},[x,L,s,T,N,S,k,b,I,A,w]),(0,u.useEffect)(()=>{s&&c<1&&A()},[s,c,A]);const R=(0,u.useMemo)(()=>({handleExpiredQuiz:t,hideTimer:P,quizTime:c,resetQuizTimer:k,timerDuration:g,timerHidden:m,timerRunning:l}),[t,P,c,k,g,m,l]);return(0,n.jsx)(O7.Provider,{value:R,children:e})}const B7=()=>(0,u.useContext)(O7),Xae=e=>e.isTimedQuiz?(0,n.jsx)(Yae,{...e,children:e.children}):(0,n.jsx)(n.Fragment,{children:e.children}),Jae={currentLesson:void 0,isRestricted:!1,isRestrictedCourse:!1,restrictingQuiz:{}};function qae(e){const t=ee(),s=jo(),o=At(e??""),r=(0,u.useMemo)(()=>{if(!t||!s||!o)return Jae;const d=x1({course:t,courseProgress:s});return T1({course:t,courseProgress:s,lesson:o,restrictingQuiz:d})},[t,s,o]),{restrictingQuiz:a}=r,i="title"in a?a.title:void 0,c=vt(i);return(0,u.useMemo)(()=>i?{...r,restrictingQuiz:{...a,title:c}}:r,[r,a,i,c])}const eie=_("quiz-results");function tie({skipToLessonId:e}){const t=ue(),s=Ew(e),o=w1(),{lessonPreposition:r,quizSkipAhead:a}=t??{},i=s>0&&a&&r?`${a} ${s} ${r} ${o}`:a;return i?(0,n.jsxs)(vu,{className:"continue-btn--flex",href:Os(e),testId:"quiz-skip-ahead-btn",children:[(0,n.jsx)(ie,{"aria-hidden":"true",name:"arrow-right-from-line"}),i]}):null}function sie({isFooterVisible:e,isResultsVisible:t,onTryAgainFocus:s}){const o=it(),r=Us(),a=Nl(r),{passed:i=!1,retryAttempts:c=0}=a??{},{continueType:d,retryCount:l,skipLessonsIfPassed:h,skipToLessonId:m}=Bw(r),{resetQuizTimer:p}=B7(),v=_re(d),C=ue(),g=Ow(r),x=qae(g),{isRestricted:L}=x,{courseFinish:T,quizContinue:y,quizTakeAgain:b}=C??{},S=h&&i&&!!m,N=v,k=Ure({canShowContinue:N,isExport:dg(),isRiseCom:Se,nextLesson:g}),E=(0,u.useCallback)(()=>{p(),o(dv(r))},[o,p,r]),I=N&&L&&g&&C&&(0,n.jsx)(V9,{bgType:"transparent",text:Zj({labels:C,restrictions:x})}),P=N&&!L&&g&&y&&(0,n.jsx)(vu,{className:S?"continue-btn--outline":void 0,href:Os(g),text:y}),A=k&&T&&(0,n.jsx)(vu,{href:ck,text:T}),w=(l===-1||c<l)&&(0,n.jsxs)(U9,{allowTabNavigation:t,onClick:E,onFocus:s,size:"lg",testId:"quiz-take-again-button",children:[(0,n.jsx)(ie,{"aria-hidden":"true",name:"arrow-rotate-left"}),b]});return(0,n.jsxs)("div",{className:eie("footer",{active:t,hidden:!e}),"data-testid":"quiz-results-footer",children:[S&&(0,n.jsx)(tie,{skipToLessonId:m}),I,P,A,w]})}const ai=_("quiz-results");function nie({questionCount:e}){const t=Us()??"",s=Nl(t),{activeIndex:o=0,passed:r=!1,passingScore:a=Ur,reportResults:i=!1,score:c=0}=s??{},d=ue(),l=rn(),[h,m]=(0,u.useState)(!1),p=e+1===o,v=(0,u.useRef)(p),C=(0,u.useRef)(void 0),g=(0,u.useRef)(null),x=(0,u.useId)(),{a11yQuizFailed:L="",a11yQuizPassed:T="",quizPassing:y="",quizResults:b="",quizScore:S=""}=d??{},N=`quiz-results-desc-${x}`,k=(0,u.useCallback)(()=>{C.current=setTimeout(()=>{m(!0),window.dispatchEvent(new CustomEvent(yd))},Ny)},[]),E=(0,u.useCallback)(()=>{clearTimeout(C.current),C.current=void 0,m(!0)},[]);return(0,u.useEffect)(()=>()=>{clearTimeout(C.current)},[]),(0,u.useEffect)(()=>{p!==v.current&&(p?g.current?.focus():m(!1),v.current=p)},[p]),(0,n.jsx)("div",{className:ai(),children:(0,n.jsx)("div",{className:ai("container"),children:(0,n.jsxs)("div",{className:ai("content",{active:p}),"data-testid":"quiz-results",children:[(0,n.jsxs)("div",{className:ai("header"),children:[(0,n.jsx)("h1",{"aria-describedby":N,className:ai("label").mix("noOutline"),ref:g,tabIndex:-1,children:b}),(0,n.jsxs)("div",{className:"visually-hidden-always",id:N,children:[(0,n.jsx)("div",{children:`${y}: ${a}%`}),(0,n.jsx)("div",{children:`${S}: ${c}%`}),(0,n.jsx)("div",{children:r?T:L})]})]}),(0,n.jsx)("div",{"aria-hidden":"true",className:ai("results"),children:(0,n.jsx)(Zae,{hasPassed:r,isResultsVisible:p,isRTL:l,onAnimationDone:k,passingLabel:y,passingScore:a,score:c,scoreLabel:S,shouldAnimate:i})}),(0,n.jsx)(sie,{isFooterVisible:h,isResultsVisible:p,onTryAgainFocus:E})]})})})}const oie=5,rie=15,aie=30,iie=60,cie=180,D7=300,H7=600,F7=120,lie=e=>e<=oie?{regularInterval:iie,lowTimeThreshold:F7}:e<=rie?{regularInterval:cie,lowTimeThreshold:F7}:e<=aie?{regularInterval:D7,lowTimeThreshold:D7}:{regularInterval:H7,lowTimeThreshold:H7},die=(e,t,s,o)=>{const r=Math.floor(o/60),a=o%60,i=r===1?e:t;if(r>0&&a>0)return`${s}: ${r} ${i} and ${a} seconds`;if(r>0&&a===0)return`${s}: ${r} ${i}`;if(r===0&&a>0)return`${s}: ${a} seconds`};var $n=f(80588);const ss=_("quiz-timer"),of=(e,t)=>`${e.toString().padStart(2,"0")}:${t.toString().padStart(2,"0")}`,uie=e=>{const t=Math.floor(e/60),s=e%60;return of(t,s)},V7=e=>{const t=Math.floor(e/60),s=e%60;return of(t,s)},hie=e=>of(e,0),z7=({area:e,exitCourseEnabled:t=!1,isStartScreenActive:s=!1,isEndScreenActive:o=!1,labelQuizTimerElapsed:r,labelQuizTimerExpired:a,labelQuizTimerExpiredAction:i,labelQuizTimerExpiredMessage:c,labelQuizTimerHide:d,labelQuizTimerLimit:l,labelQuizTimerMinute:h,labelQuizTimerMinutePlural:m,labelQuizTimerRemaining:p,labelQuizTimerShow:v,timerDisplay:C=tr.REMAINING,timerEnabled:g=!1})=>{const[x,L]=$n.useState(!1),[T,y]=$n.useState(""),b=$n.useRef(null),S=$n.useRef(!1),{hideTimer:N,quizTime:k,timerDuration:E,timerHidden:I,timerRunning:P,handleExpiredQuiz:A}=B7(),w=E*60,{isCover:O,isHeader:j,isHidden:R}=$n.useMemo(()=>({isCover:e==="cover",isHeader:e==="header",isHidden:C===tr.HIDE_TIMER}),[e,C]),M=s&&!O,z=$n.useMemo(()=>lie(E),[E]),$=$n.useMemo(()=>({expired:a||"Time expired",minute:h||"minute",minutePlural:m||"minutes",remaining:p||"Time left"}),[a,h,m,p]),H=()=>{L(!1),A()},F=$n.useCallback(()=>{const{regularInterval:te,lowTimeThreshold:D}=z,U=k<=D&&k>0&&!S.current,V=b.current!==null&&b.current-k>=te,B=b.current===null;if(U||V){U&&(S.current=!0),b.current=k;const W=die($.minute,$.minutePlural,$.remaining,k);y(W)}B&&(b.current=k)},[z,k,$]);if($n.useEffect(()=>{g&&k!==0&&(O||F())},[F,O,g,P,k]),$n.useEffect(()=>{if(!g||k!==0||s)return;const te=setTimeout(()=>{L(!0)},1200);return()=>clearTimeout(te)},[k,g,s]),!g||M||o)return null;const K={"header-area":j,"cover-area":O,"hide-timer":R,"exit-course":t},Q={display:[O,j&&!s].some(ve())?null:"none"},J=()=>({[tr.SUMMARY]:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:ss("label"),children:[l,":"]}),(0,n.jsxs)("div",{className:ss("value"),children:[E," ",E===1?h:m]})]}),[tr.REMAINING]:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:ss("label"),children:[p,":"]}),(0,n.jsx)("div",{className:ss("value"),children:uie(k)})]}),[tr.ELAPSED]:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:ss("label"),children:[r,":"]}),(0,n.jsx)("div",{className:ss("value"),children:V7(w-k)})]}),[tr.ELAPSED_TOTAL]:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:ss("label"),children:[r,":"]}),(0,n.jsxs)("div",{className:ss("value"),children:[V7(w-k)," /"," ",hie(E)]})]})})[O?tr.SUMMARY:C];return(0,n.jsxs)("div",{className:ss(K),"data-testid":"quiz-timer",style:Q,children:[k!==0&&(0,n.jsx)("div",{"aria-atomic":"true","aria-live":"polite",className:"visually-hidden",role:"status",children:T}),k===0&&(0,n.jsx)("div",{className:"visually-hidden",role:"alert",children:a||"Time expired"}),j&&I?(0,n.jsxs)("button",{className:ss("hide"),onClick:()=>N(!1),type:"button",children:[(0,n.jsx)(ie,{className:ss("icon"),name:"stopwatch-regular"}),v]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:ss("time"),children:[(0,n.jsx)(ie,{className:ss("icon"),name:"stopwatch-regular"}),(0,n.jsx)("div",{className:ss("desc"),children:J()})]}),j&&(0,n.jsx)("button",{className:ss("hide"),onClick:()=>N(!0),type:"button",children:d})]}),!O&&x&&un.createPortal((0,n.jsxs)(Bm,{className:"quiz-timer-modal","data-testid":"quiz-timer-modal",disableBackgroundScroll:!0,heading:a,hideCloseButton:!0,onCancel:H,onClose:H,onOverlayClick:()=>{},children:[(0,n.jsx)("p",{children:c}),(0,n.jsx)("button",{"data-testid":"quiz-view-results-button",onClick:H,type:"button",children:i})]}),ro({childType:"dialog"}))]})},_n=_("quiz-start"),mie=e=>(e?.retryAttempts??0)>0;function pie({lessonId:e,isActive:t}){const s=it(),o=(0,u.useRef)(null),r=Nl(e),a=ue(),i=ee(),c=C1(),d=At(e),l=R3(),h=ae(P3),m=c?.authorName,p=c?.avatar,v=i?.theme?.showAuthor??!1,C=i?.theme?.showLessonCount??!1,g=l[e]??0,x=vt(d?.description),L=vt(d?.title),T=d?.settings?.timer,y=d?.settings?.asLesson!==!1,{a11yAuthorPrefix:b="",lessonName:S="",lessonPreposition:N="",quizStart:k="",quizTakeAgain:E="",quizTimerElapsed:I="",quizTimerExpired:P="",quizTimerExpiredAction:A="",quizTimerExpiredMessage:w="",quizTimerHide:O="",quizTimerLimit:j="",quizTimerMinute:R="",quizTimerMinutePlural:M="",quizTimerRemaining:z="",quizTimerShow:$=""}=a??{},H=mie(r),F=t&&H,K=H?"quiz-take-again-button":"quiz-start-button";(0,u.useEffect)(()=>{F&&o.current?.focus()},[F]);const Q=()=>{s(K0({lessonId:e}))},J=H?E:k;return(0,n.jsx)("div",{"aria-hidden":!t,className:_n(),children:(0,n.jsx)("div",{className:_n("container"),children:(0,n.jsxs)("div",{className:_n("content"),children:[(0,n.jsxs)("div",{className:_n("header"),children:[(0,n.jsx)("div",{className:_n("counter"),children:y&&C&&(0,n.jsx)("div",{className:_n("count"),children:`${S} ${g} ${N} ${h}`})}),(0,n.jsx)("h1",{ref:o,tabIndex:-1,children:(0,n.jsx)(be,{className:_n("title"),value:L})}),v&&p&&m?(0,n.jsxs)("div",{className:_n("author"),children:[(0,n.jsx)("img",{alt:"",src:pg(p)}),(0,n.jsxs)("span",{className:"visually-hidden",children:[b," ",m]}),(0,n.jsx)("span",{"aria-hidden":"true",children:m})]}):null]}),T&&(0,n.jsx)(z7,{area:"cover",exitCourseEnabled:i?.lmsOptions?.enableExitCourse,isStartScreenActive:t,labelQuizTimerElapsed:I,labelQuizTimerExpired:P,labelQuizTimerExpiredAction:A,labelQuizTimerExpiredMessage:w,labelQuizTimerHide:O,labelQuizTimerLimit:j,labelQuizTimerMinute:R,labelQuizTimerMinutePlural:M,labelQuizTimerRemaining:z,labelQuizTimerShow:$,timerEnabled:T}),(0,n.jsx)(be,{allowTabNavigation:t,className:_n("description"),value:x}),(0,n.jsx)(Me.ArcButton,{className:_n("start-button"),"data-testid":K,hierarchy:"plain",iconEnd:(0,n.jsx)(ie,{name:"chevron-right-solid"}),onClick:t?Q:tn,size:"sm",tabIndex:t?void 0:-1,children:J})]})})})}function fie(){const[e,t]=(0,u.useState)();return(0,u.useEffect)(()=>{const s=document.querySelector("[data-previous-lesson]");if(!s)return;t(s.clientHeight);const o=new ResizeObserver(([r])=>{t(r.target.clientHeight)});return o.observe(s),()=>{o.disconnect()}},[]),e}const $7=_("quiz");function gie(){const e=Us();return e?(0,n.jsx)(vie,{lessonId:e}):null}function vie({lessonId:e}){const t=ee(),s=t?.color,o=ue(),a=rc()?.prefersKeyboardNavigation??!1,i=ma(e)??"",{activeIndex:c,progress:d,resolvedItems:l,retryAttempts:h,settings:m,sourceItems:p}=dae({lessonId:e}),v=tae({settings:m}),C=fie();Cae({lessonId:e,items:p});const g=Jre(l.length),x=qre(c),{items:L,startOffset:T}=eae(l,c);return(0,n.jsxs)("section",{className:$7(),"data-quiz":!0,"data-testid":"quiz",children:[m?.timer&&(0,n.jsx)(z7,{area:"header",exitCourseEnabled:t?.lmsOptions?.enableExitCourse,isEndScreenActive:c===g,isStartScreenActive:c===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:m?.timerDisplay??void 0,timerEnabled:m?.timer}),(0,n.jsxs)("div",{className:$7("wrap"),children:[x&&(0,n.jsx)("div",{className:qp({activeIndex:c,index:Mu}),children:(0,n.jsx)(pie,{isActive:c===Mu,lessonId:e})}),L.map((y,b)=>{const S=y.type===Kt.MULTIPLE_CHOICE;return(0,n.jsx)(Vae,{color:s,hasStart:!0,id:e,index:b+T,isCard:!0,isCorrectAnswerUnshuffled:S?Qre(y.shuffledAnswerIndices,y.answers,y.correct):void 0,isShuffled:Kre(y.shuffledAnswerIndices,y.answers),isTimedQuiz:m?.timer,item:y,items:l,labels:o??{},onChoiceSelect:v.onChoiceSelect,onFillInChange:v.onFillInChange,onMatchSet:v.onMatchSet,onResponseToggle:v.onResponseToggle,prefersKeyboardNavigation:a,progress:d,quizTop:C,reportAnswer:fg,retryAttempts:h,scrollId:"page-wrap",setNextIndex:v.onSetIndex,settings:m??void 0,submitAction:v.onSubmit,title:i},`item-${y.id}`)}),(0,n.jsx)("div",{className:qp({activeIndex:c,index:g}),inert:g===c?void 0:!0,children:(0,n.jsx)(nie,{questionCount:l.length})})]})]})}const Cie=({data:{type:e},lessonProgress:t})=>(0,n.jsx)(zc,{type:e,children:(0,n.jsx)(si,{type:e,children:(0,n.jsx)(Ru,{children:(0,n.jsxs)(ni,{className:void 0,type:e,children:[(0,n.jsx)(b7,{lessonProgress:t,type:"quiz"}),(0,n.jsx)(gie,{},t?.retryAttempts??0)]})})})});var xie=f(60891),rf=f.n(xie);Object.defineProperty(_7,"name",{value:"default",configurable:!0});function _7({authors:e,lessonAuthor:t,courseAuthor:s,selectedAuthorId:o}){if(o==="none")return{};if(o){const r=rf()(e,{id:o});if(r)return r}if(t){const r=rf()(e,{id:t});if(r)return r}if(s){const r=rf()(e,{id:s});if(r)return r}return{}}const U7={addEventListeners(e,t){e.addEventListener("animationend",t,!1)},removeEventListeners(e,t){e.removeEventListener("animationend",t,!1)}},bie=we("LessonHeader"),yie=_("lesson-header"),Lie=({authorName:e,avatar:t,children:s,color:o,description:r,labels:{lessonName:a,lessonPreposition:i},lessonHeaderColor:c,lessonHeaderImageColor:d,lessonHeaderSize:l,lessonHeaderStyle:h,partnerContentAuthors:m,totalLessons:p,lessonNumber:v,showAuthor:C,showLessonCount:g,title:x})=>{const L=rj(),T=Us(),y=M2(L),b=h===q.IMAGE,S=yie("top-wrap"),{alpha:N,ariaLabel:k,media:E,role:I}=Lr("lessonHeaderImage"),P=E?.image,A=(0,u.useMemo)(()=>{if(P&&b){const w=d===nt.LIGHT?F0:H0;return Sl({alpha:N,color:w,url:Ct(P)})}},[P,b,d,N]);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(Z$,{ariaLabel:b?k:void 0,imgRole:b?I:void 0,sectionStyles:A,topWrapClassName:S,children:(0,n.jsx)(bie,{authorName:e,avatar:t,color:o,description:r,lessonHeaderColor:c,lessonHeaderSize:l,lessonHeaderStyle:h,lessonId:T,lessonName:a,lessonNumber:v,lessonPreposition:i,partnerContentAuthors:m,showAuthor:C,showLessonCount:g&&!y,title:x,totalLessons:p})}),s]})},ii=_("one-page-authors");function Sie({className:e}){const t=ue(),s=l3(),o=dj(),r=p$();if(!o)return null;const a=s?.isPartnerContentAuthor&&r!=null,i=ii({}).mix(e);return a?(0,n.jsx)("div",{className:i,children:(0,n.jsx)("ul",{className:ii("list"),role:"list",children:r.map((c,d)=>(0,n.jsxs)("li",{className:ii("item"),role:"listitem",children:[(0,n.jsx)(G7,{avatarUrl:c?.image?ca({width:76,height:76,imageKey:c.image}):void 0}),(0,n.jsx)(W7,{a11yAuthorPrefix:t?.a11yAuthorPrefix,name:c?.name})]},d))})}):(0,n.jsxs)("div",{className:i,children:[(0,n.jsx)(G7,{avatarUrl:mt(o.avatar)}),(0,n.jsx)(W7,{a11yAuthorPrefix:t?.a11yAuthorPrefix,name:o.authorName})]})}function G7({avatarUrl:e}){return e?(0,n.jsx)("div",{className:ii("avatar"),style:{backgroundImage:`url(${e})`}}):(0,n.jsx)("div",{className:ii("avatar-fallback"),children:(0,n.jsx)(Eh,{decorative:!0})})}function W7({a11yAuthorPrefix:e,name:t}){const s=t||"Unknown User",o=ii("name");return(0,n.jsxs)("div",{className:o.toString(),children:[(0,n.jsx)("span",{className:"visually-hidden-always",children:e}),(0,n.jsx)("span",{children:s})]})}const K7=we("OnePageAuthors",Sie),Tie=_("one-page-title"),Q7=we("OnePageTitle",({className:e,htmlId:t})=>{const s=ee(),o=Te(s?.title),r=Ta("title"),a=(0,jt.uW)(s?.title)?{"data-l10n-id":s?.title?.l10nId}:{"data-change-path":r},i=Tie({}).mix(e);return(0,n.jsx)("h1",{...a,className:i,id:t,tabIndex:-1,children:o})}),af=_("one-page-lesson-header-info");function Nie(){const e=ee(),t=af({}),{accentContrast:s,coverImageColor:o,coverPageType:r}=e?.theme??{},c=r===se.IMAGE&&o===nt.LIGHT||s===pe.DARK||r===se.WHITE||r===se.VIDEO||r===se.ACCENT&&Bs(e?.color)===pe.DARK;return(0,n.jsxs)("div",{className:t,children:[(0,n.jsx)(Q7,{className:af("title").toString(),hasDarkText:c}),(0,n.jsx)(K7,{className:af("authors").toString(),hasDarkText:c})]})}const kie=we("OnePageCoverInfo",Nie),Iie=we("CoverSVG"),cf=_("one-page-lesson-header"),Eie=_("page"),jie=cf("main").mix("lesson-header__main"),wie=cf("container").mix(Eie("header-container")),Z7=()=>{const e=ee(),{alpha:t,media:s}=Lr("coverImage"),o=e?.theme?.coverImageColor,r=e?.coverPageType===se.WHITE,a=e?.coverPageType===se.IMAGE,i=e?.coverPageType===se.ACCENT,c=e?.coverPageType===se.VIDEO,d=o===nt.LIGHT,l=cf({accent:i,image:a,white:r||c,video:c,"overlay-light":a&&d}),h=a?la({alpha:t,color:o,media:s}):{};return(0,n.jsxs)("header",{className:l,style:h,children:[(0,n.jsx)("div",{className:wie,children:(0,n.jsx)("div",{className:jie,children:(0,n.jsx)(kie,{})})}),(0,n.jsx)(Iie,{coverPageType:"LEFT"})]})},lf=(0,u.createContext)({visibleLessons:[],registerLesson:()=>{},unregisterLesson:()=>{}});lf.displayName="LessonContentContext";function Aie({children:e}){const[t,s]=(0,u.useState)(()=>[]),o=(0,u.useCallback)(i=>{s(c=>c.concat(i))},[]),r=(0,u.useCallback)(i=>{s(c=>c.filter(d=>d!==i))},[]),a=(0,u.useMemo)(()=>({visibleLessons:t,registerLesson:o,unregisterLesson:r}),[t,o,r]);return(0,n.jsx)(lf.Provider,{value:a,children:e})}function Rie(){return(0,u.useContext)(lf)}const{LARGE:Pie,SMALL:Mie}=Li,{ACCENT:Oie,BLACK:Bie,COLOR:Y7,DARK:Die,GRAY:Hie,IMAGE:X7,LIGHT:Fie,TINT:Vie}=q,zie=_("lesson-header-wrap");function $ie({handleNavigate:e,handleStorylineFullscreen:t,isMobileHeader:s,isProgressSummary:o,lessonProgress:r,navigateDirection:a,onNavigateTransitionEnd:i,onPageReady:c,ref:d,registerLesson:l,unregisterLesson:h,visibleLessons:m}){const{didNavigate:p,previewType:v}=Am(),C=(0,u.useRef)(null),g=(0,u.useRef)(0),x=(0,u.useRef)(!1),L=vs(),T=(0,Ce.g)(),y=ji(),b=jo(),S=ue(),N=yr(),k=rc(),E=y?.theme?.themeId,[I,P]=(0,u.useState)(!1),A=T.mode||"",w=T.id,O=o?Pu:r?.index!=null?y?.lessons?.[r.index]??{}:{},j=o?null:y3({course:y,lesson:O}),R=o?0:Yj({course:y,lesson:O}),M=Xj(y),z=(0,u.useCallback)((xt,ht)=>{const hs=a(),Cn=C.current;if(!Cn){ht();return}const ci=`page ${hs}-${xt}`,Qu=()=>{xt==="enter"?Cn.className=`page ${hs}-complete`:Cn.className="page",U7.removeEventListeners(Cn,Qu),window.dispatchEvent(new CustomEvent(Q5)),i(),ht()};Cn.className=ci,U7.addEventListeners(Cn,Qu)},[a,i]);(0,u.useImperativeHandle)(d,()=>({componentWillEnter(xt){z("enter",xt)},componentDidEnter(){P(!0)},componentWillExit(xt){const ht=document.getElementById("page-wrap"),hs=ht?.scrollTop??0;ht&&(ht.scrollTop=0),g.current=hs,z("leave",xt),window.dispatchEvent(new CustomEvent(K5)),C.current&&(C.current.scrollTop=g.current)},componentDidExit(){}}),[z]),(0,u.useEffect)(()=>(P(!0),o||(RT(w),fs(dI(w))),l(w),()=>{h(w)}),[]),(0,u.useEffect)(()=>{p&&!x.current&&I&&c(),x.current=I},[p,I,c]);const $=(0,u.useMemo)(()=>{const{theme:xt}=y??{},ht=Bs(xt?.lessonHeaderColor),hs=xt?.customColorLessonHeaderContrast??ht;return(hs===pe.AUTO?ht:hs)===pe.DARK?ft.DARK:ft.LIGHT},[y]),H=(xt,ht)=>{if(o)return(0,n.jsx)(x7,{...ht,course:y,courseProgress:b,labels:S,lessons:y?.lessons,sessionPreferences:k});switch(xt){case"blocks":return(0,n.jsx)(vre,{...ht,animateBlockEntrance:y?.animateBlockEntrance,handleNavigate:e,isFirstLesson:Wj({course:y,lesson:O})});case"quiz":return(0,n.jsx)(Cie,{...ht,course:y});default:return null}},F=O,{author:K,selectedAuthorId:Q,type:J}=F,{prefersKeyboardNavigation:te}=k??{},{authors:D,color:U,enableVideoPlaybackSpeed:V,lessonHeaderImage:B,showLessonCount:W,showNavigationButtons:Z,theme:X}=y??{},{hideLessonHeaders:Y,lessonHeaderColor:oe,lessonHeaderImageColor:re,lessonHeaderSize:me,lessonHeaderStyle:he,navigationType:Oe,showAuthor:ut}=X??{},It=N.length>0,Qe=It?N.find(xt=>xt.id===Q):void 0,ze=It?Qe?.data?.authors:void 0,{avatar:We,authorName:Dt}=_7({authors:D,lessonAuthor:K,courseAuthor:y?.author,selectedAuthorId:Q}),Go=x1({course:y,courseProgress:b}),Js=o?{}:T1({course:y,courseProgress:b,lesson:j,restrictingQuiz:Go}),mo=k4(O),qs=bo(y)?Z7:Lie,vn=(0,n.jsx)(qs,{authorName:Dt,avatar:We,color:U,course:y,description:F.description,labels:S,lessonHeaderColor:oe,lessonHeaderImage:B,lessonHeaderImageColor:re,lessonHeaderSize:me,lessonHeaderStyle:he,lessonNumber:R,partnerContentAuthors:ze,showAuthor:ut,showLessonCount:W,themeId:E,title:F.title,totalLessons:M,children:!o&&(0,n.jsx)(b7,{id:F.id,items:F.items,lessonProgress:r,navigationType:Oe,scrollPosition:0,type:F.type})}),go=`image-${(re??nt.DARK).toLowerCase()}`,Vr=zie({[go]:he===X7,accent:he===Oie,black:he===Bie,collapsed:Y,custom:he===Y7,dark:he===Die,gray:he===Hie,image:he===X7,large:me===Pie&&!s,light:he===Fie,mobile:s,small:me===Mie&&!s,tint:he===Vie}),$e=he===Y7?{"--lesson-header-contrast-color":$,"--color-background":oe}:{},Ht={authorName:Dt,avatar:We,color:U,courseTitle:L(y?.title),data:O,enableVideoPlaybackSpeed:V,handleStorylineFullscreen:t,hideLessonHeaders:Y,isLesson:pr(F),labels:S,lessonHeader:vn,lessonHeaderImage:B,lessonHeaderWrapClasses:Vr,lessonHeaderWrapStyles:$e,lessonHasContinues:mo,lessonNumber:R,lessonProgress:r,loadMedia:w===m[0],mode:A,nextLesson:j?.id??null,nextLessonRestrictions:Js,partnerContent:N,prefersKeyboardNavigation:te,previewType:v,scrollPosition:0,showAuthor:ut,showLessonCount:W,showNavigationButtons:Z,totalLessons:M};return(0,n.jsx)(Ir,{title:pc(`${L(F.title)} - ${Ht.courseTitle}`),children:(0,n.jsx)("div",{"data-lesson-id":w,ref:C,children:H(J,Ht)})})}function _ie(e){const{visibleLessons:t,registerLesson:s,unregisterLesson:o}=Rie();return(0,n.jsx)($ie,{...e,registerLesson:s,unregisterLesson:o,visibleLessons:t})}const Uie=_ie;var J7=f(83131);function Gie(e){const t=ue(),s=kw(e),o=Iw(e),r=w1(),a=s?.id,i=Bi(a),c=vt(i?.data);return{lessonNameLabel:t?.lessonName,lessonPrepositionLabel:t?.lessonPreposition,nextLesson:s,nextLessonNumber:o,restrictionData:a?c:void 0,restrictionType:a?i?.type:void 0,totalLessons:r}}const Hu=_("lesson-nav");function Wie({allowTooltip:e,lessonNameLabel:t,lessonPrepositionLabel:s,nextLesson:o,nextLessonNumber:r,onFocus:a,ref:i,restrictionData:c,restrictionType:d,totalLessons:l}){const h=o?.id,m=Nr(),p=wa(m),C=o&&pr(o)&&h,g=Te(o?.title)||"",x=C?`${r} ${s} ${l} \u2014 ${g}`:g,L=p&&C?`${t} ${r}`:x;return(0,n.jsx)(Aa,{allowTooltip:e,direction:"next",navLessonId:h,onFocus:a,ref:i,restrictionData:c,restrictionType:d,children:p?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:Hu("link-text"),children:L}),(0,n.jsx)(Cd,{className:Hu("link-icon")})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(Cd,{className:Hu("link-icon")}),(0,n.jsx)("span",{className:Hu("link-text"),children:L})]})})}const Kie=we("LessonNavNext",Wie);function q7({lessonId:e,...t}){const s=Gie(e);return(0,n.jsx)(Kie,{...t,...s})}const Fu=_("lesson-nav"),Qie=({allowTooltip:e,courseFinishLabel:t,onFocus:s,restrictionData:o,restrictionType:r},a)=>{const i=Nr(),c=wa(i);return(0,n.jsx)(Aa,{allowTooltip:e,direction:"next",finish:!0,onFocus:s,ref:a,restrictionData:o,restrictionType:r,children:c?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:Fu("link-text"),children:t}),(0,n.jsx)(Cd,{className:Fu("link-icon")})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(Cd,{className:Fu("link-icon")}),(0,n.jsx)("span",{className:Fu("link-text"),children:t})]})})},Zie=we("LessonNavFinish",(0,u.forwardRef)(Qie));function df(e){const s=ue()?.courseFinish||"Finish";return(0,n.jsx)(Zie,{...e,courseFinishLabel:s})}const Vu=_("lesson-nav"),Yie=({allowTooltip:e,className:t,courseHomeLabel:s,lessonNameLabel:o,lessonPrepositionLabel:r,onFocus:a,previousLesson:i,previousLessonNumber:c,totalLessons:d},l)=>{const h=i?.id,m=Nr(),p=wa(m),C=pr(i)&&h,g=vt(i?.title)||s,x=C?`${c} ${r} ${d} \u2014 ${g}`:g,L=p&&C?`${o} ${c}`:x;return(0,n.jsx)(Aa,{allowTooltip:e,className:t,direction:"previous",navLessonId:h,onFocus:a,ref:l,children:p?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:Vu("link-text"),children:L}),(0,n.jsx)(D5,{className:Vu("link-icon")})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(D5,{className:Vu("link-icon")}),(0,n.jsx)("span",{className:Vu("link-text"),children:L})]})})},Xie=we("LessonNavPrevious",u.forwardRef(Yie));function uf({lessonId:e,...t}){const s=Hw(e)??{},o=Fw(e),r=w1(),a=ue();return(0,n.jsx)(Xie,{...t,courseHomeLabel:a?.courseHome,lessonNameLabel:a?.lessonName,lessonPrepositionLabel:a?.lessonPreposition,previousLesson:s,previousLessonNumber:o,totalLessons:r})}const Jie={threshold:0},zu=(e,t)=>{const[s,o]=(0,u.useState)(!1),r=(0,u.useRef)(null);return(0,u.useEffect)(()=>{r.current&&r.current.disconnect(),r.current=new IntersectionObserver(([i])=>{o(i.isIntersecting)},t||Jie);const{current:a}=r;return e.current?a.observe(e.current):o(!1),()=>{a.disconnect()}},[e,t]),s},ex=_("navButtonsFull"),qie=()=>{const[e,t]=(0,u.useState)(!1);return(0,Ye.A)(K5,()=>t(!0)),(0,Ye.A)(Q5,()=>t(!1)),e},ece=({isVisible:e})=>{(0,J7.A)(()=>window.dispatchEvent(new CustomEvent(fm))),(0,u.useEffect)(()=>{const t=e?Z5:fm;window.dispatchEvent(new CustomEvent(t))},[e])},tce=({isVisible:e})=>{(0,J7.A)(()=>window.dispatchEvent(new CustomEvent(gm))),(0,u.useEffect)(()=>{const t=e?Y5:gm;window.dispatchEvent(new CustomEvent(t))},[e])},sce=({children:e,hideNavToHome:t,navNextEnabled:s,navFinishEnabled:o})=>{const r=(0,u.useRef)(null),a=(0,u.useRef)(null),i=(0,u.createRef)(null),c=(0,u.useRef)(),d=Us(),l=zu(a),h=zu(i),m=qie(),p=(0,u.useCallback)(()=>{r.current?.scrollTo({top:0,behavior:"smooth"})},[]),v=(0,u.useCallback)(()=>{const g=r.current?.scrollHeight;r.current?.scrollTo({top:g,behavior:"smooth"})},[]);(0,Ye.A)(bd,p),(0,Ye.A)(yd,v),ece({isVisible:l}),tce({isVisible:h}),(0,u.useEffect)(()=>{if(!m&&a.current){const x=(a.current?.clientHeight??0)+1;r.current?.scrollTo({top:x})}},[m,a]);const C=ex("navPrev",{visible:l,hide:m});return(0,n.jsx)("div",{className:"page-wrap",id:"page-wrap",ref:r,children:(0,n.jsxs)("div",{className:ex(),children:[!t&&(0,n.jsx)("div",{className:C,children:(0,n.jsx)(uf,{lessonId:d,ref:a})}),e,s&&(0,n.jsx)(q7,{lessonId:d,ref:i}),o&&(0,n.jsx)(df,{lessonId:d,ref:c})]})})},_c=_("navButtonsFloating"),tx=({transitionIn:e,buttonType:t,children:s})=>{const o=(0,u.useRef)(),r={entered:_c(t,{entered:!0}),exiting:_c(t,{exiting:!0}),exited:_c(t,{exited:!0})};return(0,n.jsx)(Zc,{in:e,nodeRef:o,timeout:250,children:a=>(0,n.jsx)("div",{className:r[a],ref:o,children:s})})},nce=250,sx={threshold:.2},oce=({topRef:e,bottomRef:t,pageWrapRef:s,currentLessonId:o})=>{const r=zu(e,sx),a=zu(t,sx),[i,c]=(0,u.useState)(!1),[d,l]=(0,u.useState)(!1),[h,m]=(0,u.useState)(!1),p=(0,u.useCallback)(()=>{s.current?.scrollTo({top:2,behavior:"smooth"})},[s]);return(0,Xd.A)(p),(0,u.useEffect)(()=>{c(!0);const v=setTimeout(()=>{p(),c(!1)},nce);return()=>{clearTimeout(v)}},[o,p]),(0,u.useEffect)(()=>{l(a&&!i),m(r&&!i)},[a,r,i]),{showPrev:h,showNext:d}},rce=({children:e,isCurrentLessonQuiz:t,navNextEnabled:s,hideNavToHome:o,navFinishEnabled:r})=>{const a=(0,u.useRef)(),i=(0,u.useRef)(),c=(0,u.useRef)(),d=(0,u.useRef)(),l=(0,u.useRef)(),h=(0,u.useRef)(),m=Us(),{showNext:p,showPrev:v}=oce({topRef:l,bottomRef:h,pageWrapRef:a,currentLessonId:m}),C=(0,u.useCallback)(()=>{a.current?.scrollTo({top:0,behavior:"smooth"})},[]),g=(0,u.useCallback)(()=>{const x=a.current?.scrollHeight;a.current?.scrollTo({top:x,behavior:"smooth"})},[]);return(0,Ye.A)(bd,C),(0,Ye.A)(yd,g),(0,u.useEffect)(()=>{t&&(s||r)&&g()},[t,s,r,g]),(0,n.jsxs)("div",{className:"page-wrap",id:"page-wrap",ref:a,children:[(0,n.jsx)("div",{className:_c("top"),ref:l}),!o&&(0,n.jsx)(tx,{buttonType:"prev",transitionIn:v,children:(0,n.jsx)(uf,{lessonId:m,onFocus:C,ref:i})}),e,(0,n.jsx)(tx,{buttonType:"next",transitionIn:p&&(s||r),children:s?(0,n.jsx)(q7,{lessonId:m,onFocus:g,ref:c}):r?(0,n.jsx)(df,{lessonId:m,onFocus:g,ref:d}):null}),(0,n.jsx)("div",{className:_c("bottom"),ref:h})]})};var $u=f(80588);class ace extends $u.Component{nodeRef=$u.createRef();constructor(t){super(t),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(t){const s=this.transitionState;s==="entering"?this.onEnter(t):s==="exiting"&&this.onExit(t)}onEnter(t){const s=this.nodeRef.current;s&&s.componentWillEnter?s.componentWillEnter(t):t()}onEntered(){const t=this.nodeRef.current;t&&t.componentDidEnter&&t.componentDidEnter()}onExit(t){const s=this.nodeRef.current;s&&s.componentWillExit?s.componentWillExit(t):t()}onExited(){const t=this.nodeRef.current;t&&t.componentDidExit&&t.componentDidExit()}render(){const{children:t}=this.props;return(0,n.jsx)(Zc,{addEndListener:this.handleTransition,nodeRef:this.nodeRef,onEntered:this.onEntered,onExited:this.onExited,unmountOnExit:!0,...this.props,children:s=>(this.transitionState=s,t&&$u.cloneElement($u.Children.only(t),{ref:this.nodeRef}))})}}const{FULL:ice,FLOATING:nx}=Zn,cce=_("lessonNavigation"),lce=({children:e})=>{const t=(0,u.createRef)();return(0,n.jsx)("div",{className:"page-wrap",id:"page-wrap",ref:t,children:e})},dce=(e,t)=>e+(t?.drawCount??1),uce=(e=[])=>e.reduce(dce,0),hce=({children:e,isLessonOnlyEmbed:t})=>{const{buttonNavigationStyle:s}=ee(),{pathname:o}=(0,Ce.zy)(),r=ee(),{showNavigationButtons:a,lessonsOnly:i,lmsOptions:c={}}=r,d=(0,u.useRef)(),l=bt(480),h=Us(),m=At(h)||{},p=wo(h)||{},[v,C]=(0,u.useState)(s),g=i[0].id,x=r?.exportSettings?.webExportSettings,L=!eo.isInstantLink&&(c?.disableCoverPage||x?.disableCoverPage)&&g===h,T=!eo.isInstantLink&&c?.disableCoverPage,y=c?.disableCoverPage?L:T;(0,u.useEffect)(()=>{s!==v&&(C(s),window.dispatchEvent(new CustomEvent(bd)))},[s,v]);const b=k4(m)||Hg(m)?p.isComplete:!0,S=p.activeIndex===uce(m.items)+1,N=m.type==="quiz"&&!S||m.settings?.continueType==="continue",k=m&&y3({course:r,lesson:m}),E=h==="progress-summary",I=window.isPublicShare,P=k&&!t&&b&&!N&&!E,A=!k&&b&&Se&&!I&&!E&&!t&&!dg()&&!N,w=cce("wrapper",{full:s===ice||l,floating:s===nx&&!l}),j=!a||t?lce:s===nx&&!l?rce:sce;return(0,u.useEffect)(()=>{const R=document.querySelector(".page__content");R&&R.classList.add("page__content--preview-nav")},[j]),(0,n.jsx)("div",{className:w,ref:d,children:(0,n.jsx)(j,{hideNavToHome:y,navFinishEnabled:A,navNextEnabled:P,children:(0,n.jsx)(Aie,{children:(0,n.jsx)(Qo,{component:"div",children:(0,n.jsx)(ace,{children:e},o)})})})})};var mce=f(21166),pce=f.n(mce),fce=f(77877),gce=f.n(fce),vce=f(45774),ox=f(35545);function Cce(e){return e?.slidesUI?.slideDirection??Ps.UP}function xce(){return ae(Cce)}function bce(e){return e?.slidesUI?.exitingSlideOffset??0}function yce(){return ae(bce)}const Hr=_("blocks-lesson-slide"),rx="#fff",Lce=["image full","image text overlay","quote background"],ax=({className:e})=>{const t=xs()||rx;return(0,n.jsx)("div",{className:e,style:{background:t}})},Sce=({block:e})=>(0,n.jsx)(M1,{block:e,children:(0,n.jsx)(ax,{className:Hr("background-top")})}),Tce=({block:e})=>(0,n.jsx)(M1,{block:e,children:(0,n.jsx)(ax,{className:Hr("background-bottom")})});function Nce(e,t){const s=t.blocks?.length??1,o=s==1,r=s==2,a=t.blocks?.[0],i=t.blocks?.find(A=>A.settings.backgroundType===q.IMAGE),c=e.settings.backgroundType===q.IMAGE,d=e.id===a?.id,l=e.family==="multimedia",h=e.family==="mondrian",m=e.family==="survey",p=e.family==="buttons",C=e.variant==="accordion"&&document.querySelector(`[data-block-id="${e.id}"] [data-accordion-status="closed"]`)!=null,g=document.querySelector(`[data-block-id="${e.id}"] [data-block-text]`)?.clientHeight>300,x=mre(e.family,e.variant)||g,L=document.querySelector("[data-continue-sr]")!=null,T=!x&&r&&L&&document.querySelector("[data-continue-btn]")==null,y=o&&c&&!T,b=c&&!T&&!x,S=l||p||h||m;return Hr("connected-blocks",{"min-half-height":i&&(r&&!T&&!x||C||b),"full-height":T||y,"top-block":d&&!o&&!x&&!S,"top-block-centered":d&&!o&&S})}const kce=({hasTransitioned:e,onContinue:t,prefersKeyboardNavigation:s,previewType:o,slide:r,transitionState:a},i)=>{const c=ee(),d=Us(),l=ue(),h=yr(),m=wo(d),p=!0,{animateBlockEntrance:v,color:C,title:g,enableVideoPlaybackSpeed:x}=c;(0,u.useImperativeHandle)(i,()=>L.current);const L=(0,u.useRef)(),T=xce(),y=yce(),b=`${a}-${T}`,S=Hr("wrapper",{exiting:a==="exiting"}),{blocks:N,lastBlock:k}=r,E=(0,u.useCallback)(D=>{D===k?.id&&t()},[k,t]),I=Hr("inner",{[b]:!0}),P=Hr("lesson",{slides:p,"touch-preview":bc(o)}).toString(),A=r.blocks.length==1,{settings:w,type:O,variant:j}=r.blocks?.[0]??{},R=A&&w.backgroundType===q.IMAGE,M=A&&!R&&Tn()(`${O} ${j}`,Lce),z=M||R,$=r.blocks?.[0],H=r.blocks?.[r.blocks.length-1],F=$?.settings?.backgroundType!==q.IMAGE,K=H?.settings?.backgroundType!==q.IMAGE,Q=il(c),te=Hr("full-width-image",{legacy:M,"presentation-contain":M&&Q&&O==="image"&&j==="full",background:R});return(0,n.jsx)("div",{className:S,style:{top:y},children:(0,n.jsxs)("div",{className:I,children:[F&&(0,n.jsx)(Sce,{block:$}),K&&(0,n.jsx)(Tce,{block:H}),(0,n.jsx)("div",{className:P,ref:L,children:N.map((D,U)=>{const V=A?!1:m7({blocks:r.blocks,lessonProgress:m,currentBlockIndex:U}),B=z?te:Nce(D,r);return(0,n.jsx)(u7,{animateBlockEntrance:v,block:D,className:B,color:C,courseTitle:g,defaultBackgroundColor:rx,enableVideoPlaybackSpeed:x,hideBlock:V,index:U,isFirstLesson:!0,isOnlyBlockInStep:A,labels:l,lessonId:d,lessonProgress:m,loadMedia:e,onContinue:E,partnerContent:h,prefersKeyboardNavigation:s,previewType:o},D.blockId)})})]})})},Ice=(0,u.forwardRef)(kce);var Ece=f(7050),jce=f.n(Ece);const ix=_("blocks-slide-indicator-tooltip"),wce=({disabled:e,left:t,text:s,top:o,visible:r},a)=>{let i=(0,n.jsx)("span",{"aria-hidden":"true",children:s});return e&&(i=(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(ie,{classNameIcon:ix("icon"),name:"lock"}),(0,n.jsx)("span",{className:"visually-hidden-always",children:"(locked content)"})]})),(0,n.jsx)("div",{"aria-hidden":!r,className:ix("wrapper",{disabled:e,visible:r}),ref:a,role:"tooltip",style:{left:t,top:o},children:i})},cx=(0,u.forwardRef)(wce);cx.propTypes={disabled:ge().bool.isRequired,left:ge().number,text:ge().string.isRequired,top:ge().number,visible:ge().bool.isRequired};const Ace=cx;function Rce(e){const t=(0,u.useRef)();return t.current||=e(),t}const _u=_("blocks-slide-indicator"),Pce=({active:e,blockNavigationStyle:t,disabled:s,numberOfSlides:o,onKeyDown:r,onClick:a,slideIndex:i},c)=>{const{prefersKeyboardNavigation:d}=rc()??{},[l,h]=(0,u.useState)(!1),[m,p]=(0,u.useState)(),v=(0,u.useRef)(),C=(0,u.useRef)(),g=(0,u.useRef)(),x=t===V0.NUMBERS,L=i+1,T=`${L} / ${o}`,y=e?`Step ${L} of ${o}, current step`:`Go to step ${L} of ${o}`,b=Rce(()=>document.getElementById("portal")),S=(0,u.useCallback)(()=>{if(v.current&&C.current){const z=v.current.getBoundingClientRect(),$=C.current.getBoundingClientRect(),H=z.left-$.width-18,F=Math.round(z.top-$.height/2+z.height/2);p({left:H,top:F})}},[]),N=(0,u.useCallback)(()=>{g.current=setTimeout(()=>{S(),h(!0)},300)},[S]),k=(0,u.useCallback)(()=>{clearTimeout(g.current),h(!1)},[]),E=(0,u.useCallback)(()=>{a(i)},[a,i]),I=(0,u.useCallback)(z=>{cs(z)&&h(!1),r(z)},[r]),P=(0,u.useCallback)(()=>{N()},[N]),A=(0,n.jsx)(Ace,{disabled:s,left:m?.left,ref:C,text:T,top:m?.top,visible:l}),w=_u("button",{active:e,disabled:s,numbers:x}),O=_u("wrapper"),j=_u("circle",{active:e,disabled:s}),R=_u("number",{active:e,disabled:s}),M=x?(0,n.jsx)("span",{"aria-hidden":"true",className:R,children:L}):(0,n.jsx)(ie,{classNameIcon:j,name:"circle-solid"});return(0,n.jsxs)("div",{className:O,ref:c,children:[(0,n.jsx)("button",{"aria-current":e?"page":void 0,"aria-disabled":s,"aria-label":y+(s?" (unavailable until previous content is completed)":""),className:w,"data-control":"",onBlur:k,onClick:s?void 0:E,onFocus:d?P:void 0,onKeyDown:I,onMouseEnter:N,onMouseLeave:k,ref:v,type:"button",children:M}),(0,un.createPortal)(A,b.current)]})},Mce=(0,u.forwardRef)(Pce),Fr=_("blocks-slide-controls"),lx=38,Oce=8,Bce=e=>{const{activeSlideIndex:t,blockNavigationStyle:s,numberOfSlides:o,onGoToCover:r,onSlideClick:a,slideDisabledState:i,previewType:c}=e,d=(0,u.useRef)(),l=(0,u.useRef)(),[h,m]=(0,u.useState)(!1),[p,v]=(0,u.useState)(!1),C=(0,u.useCallback)(T=>{let y=!1,b=-1;if(xr(T)||so(T)){if(t-1>=0)b=t-1;else{r();return}y=!0}else br(T)||no(T)?(t+1<=o-1&&(b=t+1),y=!0):o5(T)?(b=0,y=!0):n5(T)&&(b=o-1,i[b]&&(b=i.findLastIndex(S=>!S)),y=!0);b>=0&&!i[b]&&a(b),y&&(T.stopPropagation(),T.preventDefault())},[t,o,r,a,i]);(0,u.useEffect)(()=>{const T=d.current,y=l.current;if(T&&y){const b=T.getBoundingClientRect(),S=y.getBoundingClientRect(),N=b.bottom-lx,k=b.top+lx;S.bottom>N?T.scrollBy({top:S.bottom-N,left:0,behavior:"smooth"}):S.top<k&&T.scrollBy({top:S.top-k,left:0,behavior:"smooth"})}},[t]);const g=(0,u.useCallback)(()=>{const T=d.current;T&&(m(T.scrollTop>Oce),v(T.clientHeight+T.scrollTop<T.scrollHeight))},[]);(0,Xd.A)(g);const x=(0,u.useCallback)(Cu()(g,100),[g]);Ld(d.current,g);const L=Fr({"touch-preview":bc(c)});return(0,n.jsx)("div",{className:L,children:(0,n.jsx)("div",{className:Fr("page-control-wrapper"),children:(0,n.jsxs)("div",{className:Fr("page-control-inner-wrapper"),children:[(0,n.jsx)("div",{className:Fr("page-control"),onScroll:x,ref:d,children:(0,n.jsx)("div",{className:Fr("slide-dot-wrapper"),children:jce()(T=>{const y=T===t;return(0,n.jsx)(Mce,{active:y,blockNavigationStyle:s,disabled:i[T],numberOfSlides:o,onClick:a,onKeyDown:C,ref:y?l:null,slideIndex:T},T)},o)})}),(0,n.jsx)("div",{className:Fr("overlay-top",{visible:h})}),(0,n.jsx)("div",{className:Fr("overlay-bottom",{visible:p})})]})})})},dx=100;var Uc=f(80588);const Dce=50,Hce=1e3,Fce=({onSwipeDownHandler:e,onSwipeUpHandler:t,target:s,timeoutDuration:o=Hce})=>{const[r,a]=Uc.useState(!1),i=Uc.useRef(void 0),c=Uc.useCallback(()=>{i.current&&clearTimeout(i.current),i.current=setTimeout(()=>a(!1),o)},[o]),d=Uc.useCallback(l=>{const h=Math.abs(l.deltaY);if(r)h<Dce?(i.current&&clearTimeout(i.current),a(!1)):c();else if(h>dx){const m=l.deltaY>0?e:t;a(!0),c(),m()}},[c,r,e,t]);Uc.useEffect(()=>{if(!(!s||!t||!e))return s.addEventListener("wheel",d,{passive:!0}),()=>{i.current&&clearTimeout(i.current),s?.removeEventListener?.("wheel",d,{passive:!0})}},[e,t,d,s])},ux="rise-presenter-sync",s3e="presenterMode",Vce="slide",zce="NAVIGATE_TO_COVER",hx="NAVIGATE_TO_SLIDE",mx="SLIDE_CHANGE",n3e="PRESENTER_VIEW_EXIT";function $ce(e){const t=new URLSearchParams(e).get(Vce);if(t==null)return 0;const s=Number(t);return Number.isFinite(s)&&s>0?s:0}function px(){const e=window.location.hash.split("?")[1]||"";return $ce(e)}const Xs=_("lesson-one-page-slides"),_ce=_("page-wrap"),fx=100;function gx(e){if(e==null)return!1;const t=e.tagName.toLowerCase(),s=e.getAttribute("type"),o=e.getAttribute("role"),r=e.tabIndex,a=t==="button"||["div","span"].includes(t)&&(o==="button"||r===0),i=t==="input"&&["radio","text"].includes(s)||t==="textarea"||o==="radio",c=["audio","video"].includes(t),d=o==="tab",l=document.querySelector(".quiz-card__interactive")?.contains?.(e)??!1;return a||i||c||d||l}const Uce=(e,t)=>(s,o,r)=>h7(s,r.slice(0,-1),e,void 0,t),Gce=(e,t)=>({disabled:s,slides:o},r)=>{const a=st()(ws()(l=>e[l.id]),tt()(l=>ps()(l,e[l.id])))(r),i=r[r.length-1],c=s||dre(a)||ure(a,t),d={blocks:a,lastBlock:i,disabled:s};return{disabled:c,slides:pce()(d,o)}},Uu=e=>{let t=!1,s=!1;if(e){const{clientHeight:o,scrollHeight:r,scrollTop:a}=e,i=Math.max(0,a),c=r-i;t=c===r,s=c-5<=o}return{isAtTop:t,isAtBottom:s}},Wce=/,? +/,Kce=[],Qce=({lessonProgress:e,prefersKeyboardNavigation:t,previewType:s},o)=>{(0,u.useImperativeHandle)(o,Function.prototype,[]);const{announcePolite:r,clearAnnouncements:a}=qn(),i=(0,u.useRef)(),c=(0,u.useRef)(),d=(0,u.useRef)(),l=(0,u.useRef)(),h=(0,u.useRef)(),m=(0,u.useRef)(),p=(0,u.useRef)(),v=(0,u.useRef)(),C=(0,u.useRef)(null),g=(0,u.useRef)(null),x=(0,u.useRef)(!1),L=(0,u.useRef)(0),T=(0,u.useRef)(0),y=zt(),b=it(),[S,N]=(0,u.useState)(()=>{const ke=px()-1;return ke>0?ke:0}),[k,E]=(0,u.useState)(!0),[I,P]=(0,u.useState)(!1),A=(0,je.A)(k),w=(0,je.A)(I),O=(0,u.useRef)(),j=Ns(),R=j?.01:600,{lessons:M,...z}=ee()||{},$=z?.theme?.blockNavigationStyle||V0.DOTS,H=M[0],F=H?.items||Kce,K=(0,u.useCallback)(()=>{const ke=d.current?.scrollHeight>d.current?.clientHeight,{isAtBottom:Ut}=Uu(d.current),Lt=ke&&!k&&!Ut;Lt!=I&&P(Lt)},[I,k]);Ld(i.current,K),(0,u.useLayoutEffect)(K,[k]);const Q=(0,u.useCallback)(()=>{d.current?.scrollTo({top:0})},[]),J=z?.theme,te=(0,u.useMemo)(()=>al(Xp([],F,e,J).map(Uce(e,J)),ws()(I4.A),gce()(xe()("blockId"))),[F,e,J]),D=(0,u.useCallback)(ke=>{const Ut={disabled:!1,slides:[]},{slides:Lt}=_d()(Gce(te,e),Ut,ke);return Lt},[te,e]),U=(0,u.useMemo)(()=>al(F,qoe,D),[F,D]),V=(0,u.useMemo)(()=>qc()("disabled",U),[U]),B=il(z);(0,u.useEffect)(()=>{L.current=S},[S]),(0,u.useEffect)(()=>{T.current=U.length,U.length>0&&S>=U.length&&N(U.length-1)},[U.length,S]),(0,u.useEffect)(()=>{if(!(!B||typeof BroadcastChannel>"u"))try{C.current||(C.current=new BroadcastChannel(ux));const ke=C.current,Ut=Lt=>{if(Lt.data.type===zce)b(To(Ps.DOWN)),g.current&&g.current(0),x.current||y("/");else if(Lt.data.type===hx){const ff=Lt.data.slideIndex,Wc=Math.min(ff-1,T.current-1);if(Wc>=0){const Hle=Wc<L.current?Ps.DOWN:Ps.UP;b(To(Hle)),g.current&&g.current(Wc)}}};return ke.addEventListener("message",Ut),()=>{ke.removeEventListener("message",Ut)}}catch{}},[B,b,y]),(0,u.useEffect)(()=>{if(!(!B||!C.current))try{const ke=S+1;C.current.postMessage({type:mx,slideIndex:ke})}catch{}},[B,S]),(0,u.useEffect)(()=>()=>{C.current?.close(),C.current=null},[]);const W=U.length,Z=W>0?Math.min(S,W-1):0,X=U[Z],Y=bc(s),oe=$!==V0.NONE,re=S===W-1,me=e?.isComplete,he=I||re?!me||!Se||window.isPublicShare:V[S+1],Oe=!I&&!re,ut=re&&!Se,It=(0,je.A)(ut),Qe=I&&!re,ze=(0,u.useCallback)(uu()(K,100),[K]);(0,u.useEffect)(()=>{const ke=d.current;return ke?.addEventListener("scroll",ze,{passive:!0}),()=>ke?.removeEventListener("scroll",ze,{passive:!0})},[ze]),(0,u.useEffect)(()=>{document.activeElement===m.current?!w&&I?h.current?.focus({preventScroll:!0}):!It&&ut&&p.current?.focus({preventScroll:!0}):document.activeElement===h.current&&w&&!I&&m.current?.focus({preventScroll:!0})},[I,w,It,A,ut,k]),(0,vce.A)(()=>{I9(),O.current=setTimeout(()=>{E(!1),d.current?.focus?.()},R+fx)},()=>{clearTimeout(O.current)});const We=(0,u.useCallback)(ke=>{const Ut=i.current?.getBoundingClientRect()?.top??0;b(xE(Ut));const Lt=Math.max(0,Math.min(ke,U.length-1));N(Lt),Q()},[b,Q,U.length]),Dt=(0,u.useCallback)(()=>{k||(E(!0),io(()=>{y("/")},"lesson-to-one-page-cover-stepped"))},[y,k]),Go=z?.exportSettings?.webExportSettings,Js=!eo.isInstantLink&&(z?.lmsOptions?.disableCoverPage||Go?.disableCoverPage),mo=(0,u.useCallback)(Js?()=>{b(To(Ps.DOWN)),We(0)}:Dt,[Js,We,Dt,b,To]);(0,u.useEffect)(()=>{x.current=Js},[Js]),(0,u.useEffect)(()=>{g.current=We},[We]);const po=(0,u.useCallback)(()=>{k||(S>0?(b(To(Ps.DOWN)),We(S-1)):Dt())},[We,b,S,k,Dt]),qs=(0,u.useCallback)(()=>{k||(re&&Se?y("/lessons/progress-summary"):(b(To(Ps.UP)),We(S+1)))},[We,b,y,re,S,k]),vn=(0,u.useCallback)(()=>{(S<W-1||re&&Se)&&qs()},[re,S,W,qs]),fo=(0,u.useCallback)(()=>{const ke=d.current?.scrollTop??0,Ut=d.current?.clientHeight??0,Lt=j?"instant":"smooth";d.current?.scrollTo({top:ke+Ut,behavior:Lt})},[j]),go=(0,u.useCallback)(()=>{qs()},[qs]),Vr=(0,u.useCallback)(()=>{fo()},[fo]),$e=(0,u.useCallback)(ke=>{if(ke===S||k)return;const Ut=ke<S?Ps.DOWN:Ps.UP;b(To(Ut)),We(ke),queueMicrotask(()=>{l.current?.querySelectorAll("[data-control]")?.[ke]?.focus?.()})},[We,b,S,k]),Ht=(0,u.useCallback)(()=>E(!0),[]),xt=(0,u.useCallback)(()=>{E(!1),setTimeout(()=>{if(c.current&&l.current?.contains?.(document.activeElement)){const ke=Kp()(c.current.innerText,{length:75,separator:Wce});a(),r(`Content preview: ${ke}`)}else d.current?.focus?.()},0)},[r,a]),ht=(0,u.useCallback)(()=>{if(Y)return;const{isAtTop:ke}=Uu(d.current);if(ke){S===0?mo():po();return}},[Y,po,S,mo]),hs=(0,u.useCallback)(()=>{if(Y||re&&!Se||he)return;const{isAtBottom:ke}=Uu(d.current);if(ke){go();return}},[re,he,Y,go]),Cn=(0,u.useCallback)(()=>{const{isAtBottom:ke,isAtTop:Ut}=Uu(d.current),Lt=document.documentElement.clientWidth===window.innerWidth;return(ke||Ut)&&Lt},[]),ci=(0,u.useCallback)(ke=>{!l.current?.contains?.(document.activeElement)&&!gx(ke.target)&&ht()},[ht]),Qu=(0,u.useCallback)(ke=>{!l.current?.contains?.(document.activeElement)&&!gx(ke.target)&&hs()},[hs]),Ix=(0,u.useCallback)(ke=>{const{itemId:Ut}=ke.detail,Lt=U.findIndex(ff=>ff.blocks.find(Wc=>Wc.id===Ut));Lt===-1||Lt===S||(b(To(Lt>S?Ps.UP:Ps.DOWN)),We(Lt))},[U,S,b,We]);(0,u.useEffect)(()=>(window.addEventListener(Ge,Ix),()=>{window.removeEventListener(Ge,Ix)})),(0,ox.A)("ArrowUp",ve(),ci),(0,ox.A)("ArrowDown",ve(),Qu),Fce({target:d.current,onSwipeUpHandler:ht,onSwipeDownHandler:hs,timeoutDuration:R+fx});const Dle=Xs("gradient",{visible:I});return(0,n.jsx)("div",{className:Xs({}),children:(0,n.jsx)("div",{className:_ce({transitioning:k}),id:"page-wrap",ref:d,tabIndex:"-1",children:(0,n.jsx)(zc,{type:z.type,children:(0,n.jsx)(si,{type:z.type,children:(0,n.jsx)(ni,{children:(0,n.jsx)(Ir,{children:(0,n.jsxs)("div",{"data-lesson-id":H?.id,children:[(0,n.jsxs)("nav",{"aria-label":"Step navigation",className:Xs("controls",{"touch-preview":Y}),ref:l,children:[(0,n.jsxs)("button",{"aria-disabled":S===0&&Js,"aria-hidden":S===0&&Js,className:Xs("prev-btn",{"touch-preview":Y}),onClick:po,type:"button",children:[(0,n.jsx)(ie,{classNameIcon:Xs("arrow-icon",{"touch-preview":Y}),name:"arrow-up"}),(0,n.jsx)("span",{className:"visually-hidden-always",children:"Previous"})]}),oe&&(0,n.jsx)(Bce,{activeSlideIndex:S,blockNavigationStyle:$,numberOfSlides:W,onGoToCover:Dt,onSlideClick:$e,previewType:s,slideDisabledState:V}),(0,n.jsxs)("div",{className:Xs("next-btns"),children:[(0,n.jsxs)("button",{"aria-disabled":!Qe,"aria-hidden":!Qe,className:Xs("page-down-btn",{"touch-preview":Y}),onClick:Qe?Vr:void 0,ref:h,tabIndex:Qe?void 0:-1,type:"button",children:[(0,n.jsx)(ie,{classNameIcon:Xs("arrow-icon",{"touch-preview":Y}),name:"arrow-down"}),(0,n.jsxs)("span",{className:"visually-hidden-always",children:["Scroll page down",!I&&(0,n.jsx)("span",{children:"(disabled because this is the bottom of the page)"}),re&&(0,n.jsx)("span",{children:"(disabled since this is the last step)"})]})]}),(0,n.jsxs)("button",{"aria-disabled":he,"aria-hidden":!Oe,className:Xs("next-btn",{"touch-preview":Y}),onClick:he?void 0:go,ref:m,tabIndex:re?-1:void 0,type:"button",children:[(0,n.jsx)(ie,{classNameIcon:Xs("arrow-icon",{"touch-preview":Y}),name:"arrow-down"}),(0,n.jsxs)("span",{className:"visually-hidden-always",children:["Go to next step",he&&(0,n.jsx)("span",{children:"(disabled until content is completed)"}),re&&(0,n.jsx)("span",{children:"(disabled since this is the last step)"})]})]}),(0,n.jsxs)("button",{"aria-disabled":!ut,"aria-hidden":!ut,className:Xs("restart-btn",{"touch-preview":Y}),onClick:ut?mo:void 0,ref:p,tabIndex:re?void 0:-1,type:"button",children:[(0,n.jsx)(ie,{classNameIcon:Xs("restart-icon",{"touch-preview":Y}),name:"arrow-rotate-left"}),(0,n.jsx)("span",{className:"visually-hidden-always",children:"Restart"})]})]})]}),(0,n.jsxs)(Kd,{onShouldRecognizeGesture:Cn,onSwipeDown:ht,onSwipeUp:hs,children:[(0,n.jsx)("main",{"aria-describedby":"step-counter",ref:c,tabIndex:"0",children:(0,n.jsx)(Qo,{children:(0,n.jsx)(Zc,{mountOnEnter:!0,nodeRef:v,onExited:xt,onExiting:Ht,timeout:R,unmountOnExit:!0,children:ke=>(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{className:"visually-hidden-always",id:"step-counter",ref:v,children:`Step ${S+1} of ${W}`}),(0,n.jsx)(Ice,{hasTransitioned:!k,onContinue:vn,prefersKeyboardNavigation:t,previewType:s,ref:i,slide:X,transitionState:ke})]})},S)})}),(0,n.jsx)("div",{className:Dle})]})]})})})})})})})},Zce=(0,u.forwardRef)(Qce),vx=_("blocks-lesson-restart-button"),Yce=({className:e,onClick:t})=>{const s=vx.mix(e);return(0,n.jsx)("button",{className:s,onClick:t,type:"button",children:(0,n.jsx)(ie,{classNameIcon:vx("icon"),name:"arrow-rotate-left"})})},Xce=_("lesson-one-page-scroll"),Jce=({previewType:e,prefersKeyboardNavigation:t,lessonProgress:s})=>{const o=(0,u.useRef)(),[r,a]=(0,u.useState)(!1),{lessons:i,...c}=ee()||{},{lmsOptions:d={}}=c||{},l=aa(),h=ue(),{match:m}=(0,Ce.zy)(),p=zt(),v=i[0],C=v?.id,g=yr(),x=v?.items||[],L=S0(c),T=s?.isComplete&&!Se&&!L,y=s?.isComplete&&Se,b=c?.exportSettings?.webExportSettings,S=!eo.isInstantLink&&(d?.disableCoverPage||b?.disableCoverPage),N=(0,u.useCallback)(()=>{r||(S?o.current?.scrollTo({top:0,behavior:Ns()?"instant":"smooth"}):(a(!0),io(()=>{p("/")},"lesson-to-one-page-cover-continuous").finally(()=>{a(!1)})))},[p,S,r]);return(0,n.jsx)("div",{className:Xce(),children:(0,n.jsx)("div",{className:"page-wrap",id:"page-wrap",ref:o,children:(0,n.jsx)(zc,{type:c.type,children:(0,n.jsx)(si,{type:"blocks",children:(0,n.jsxs)(Ru,{children:[(0,n.jsx)(Z7,{}),(0,n.jsx)(ni,{children:(0,n.jsx)(Ir,{children:(0,n.jsxs)("div",{"data-lesson-id":v?.id,children:[(0,n.jsx)(p7,{animateBlockEntrance:c?.animateBlockEntrance,blocks:x,color:c?.color,courseTitle:l,enableVideoPlaybackSpeed:c?.enableVideoPlaybackSpeed,isFirstLesson:!0,isNavTypeStepped:!1,labels:h,lessonId:C,lessonProgress:s,loadMedia:!0,match:m,partnerContent:g,prefersKeyboardNavigation:t,previewType:e,type:c?.type}),T&&(0,n.jsx)(Yce,{onClick:N}),y&&(0,n.jsx)(df,{lessonId:C})]})})})]})})})})})},Cx=_("microlearning-progress-summary"),qce=_("page-wrap"),ele=({course:e,courseProgress:t,isStepped:s,lesson:o})=>{const r=(0,u.useRef)(),a=(0,u.useRef)(),[i,c]=(0,u.useState)(!1),d=Cx("content",{stepped:s,mounted:i}).toString();return(0,Xd.A)(()=>{const l=(a.current?.clientHeight??0)+1;r.current?.scrollTo({top:l}),c(!0)}),(0,n.jsxs)("div",{className:qce(),id:"page-wrap",ref:r,children:[(0,n.jsx)(uf,{className:Cx("previous").toString(),lessonId:o?.id,ref:a}),(0,n.jsx)(x7,{contentClassName:d,course:e,courseProgress:t})]})},tle=({isProgressSummary:e,lessonProgress:t})=>{const s=ee(),o=jo(),{prefersKeyboardNavigation:r}=rc(),{previewType:a}=Am(),i=s?.theme?.blockNavigationType===pl.STEPPED;return e?(0,n.jsx)(ele,{course:s,courseProgress:o,isStepped:i}):i?(0,n.jsx)(Zce,{lessonProgress:t,prefersKeyboardNavigation:r,previewType:a}):(0,n.jsx)(Jce,{lessonProgress:t,prefersKeyboardNavigation:r,previewType:a})};var sle=f(80588);function xx(){const e=it();return sle.useMemo(()=>({advanceQuizLessonToEnd:t=>e(eI(t)),submitQuizAnswer:t=>e(Q0(t)),setQuizLessonTimeRemaining:t=>e(tI(t))}),[e])}const bx=-1,nle="MULTIPLE_CHOICE";function ole({allowedRetries:e,currentRetries:t}){return e===bx?!1:t>=e}function rle({lesson:e,lessonProgress:t,getL10nRecursive:s,quizActions:o,reportAnswer:r}){if(!e||!o1(e))return;const a=e.settings??{},i=a.passToContinue??!1,c=Number(a.retryCount??bx),d=Object.values(t?.items??{}).filter(l=>!l.isComplete);if(d.length>0){const l=t?.retryAttempts??0,h=ole({allowedRetries:c,currentRetries:l});d.forEach(m=>{const p=Zre({lesson:e,question:m});if(!p)return;const v=p.type||nle,C=s({duration:{startTime:0,stopTime:0},id:e.id,isCorrect:!1,isUnfinished:!0,item:{id:String(p.id||""),title:String(p.title||""),type:v},itemProgress:m,retryAttempts:l,title:e.title});r(C),o.submitQuizAnswer({finalRetryAttempt:h,isCorrect:!1,itemId:m.id,lessonId:e.id,passToContinue:i})})}o.advanceQuizLessonToEnd(e.id)}var ale=f(80588);function ile({lesson:e,lessonProgress:t,getL10nRecursive:s}){const o=xx();return ale.useCallback(()=>{rle({lesson:e,lessonProgress:t,getL10nRecursive:s,quizActions:o,reportAnswer:fg})},[e,t,s,o])}var yx=f(80588);function cle({children:e}){const t=jo(),s=Tl(),o=At(s),r=wo(s),a=o3(),{setQuizLessonTimeRemaining:i}=xx(),c=yx.useMemo(()=>r??{},[r]),d=ile({lesson:o,lessonProgress:c,getL10nRecursive:a}),l=yx.useMemo(()=>qv(o)?o.settings:void 0,[o]),h=!!l?.timer,m=l?.timerDuration;return(0,n.jsx)(Xae,{courseProgress:t,currentLessonId:s,handleExpiredQuiz:d,isTimedQuiz:h,setQuizLessonTimeRemaining:i,timerDuration:m,children:e})}var lle=f(80588);const dle=960,hf=_("transcript-panel"),ule=e=>{const{currentLocale:t}=Ze();return(0,u.useMemo)(()=>e?"mondrianTranscript"in e?typeof e.mondrianTranscript=="string"?e.mondrianTranscript:(t?e.mondrianTranscript[t]:void 0)??e.mondrianTranscript.default:"tmp"in e&&e.tmp?.audio?.transcript||e.audio?.transcript:null,[e,t])};function hle({enhancedLabels:e,lessonId:t,questionBankActiveIndex:s}){const o=it(),{audioPlayerIdOpen:r,focusing:a,refocusTarget:i,transcriptMedia:c}=vc(),d=!!r,l=(0,u.useId)(),h=ae(B=>t?Oi(t,B):null),p=t?.startsWith("question-bank-")?s:h?.type==="quiz"?h.activeIndex:void 0,v=bt(dle),[C,g]=(0,u.useState)(0),[x,L]=(0,u.useState)(!1),[T,y]=(0,u.useState)(!1),b=(0,u.useRef)(!1),S=(0,u.useRef)(null),N=(0,u.useRef)(null),k=(0,u.useRef)(c),E=(0,u.useRef)(t),I=(0,u.useRef)(p),P=ue()||e,A=(0,u.useRef)(null),w=(0,u.useRef)({panelHeight:0,startY:null,startHeight:null,startTime:null,velocity:null}),O=(0,u.useCallback)(B=>{const Z=w.current.panelHeight,X=performance.now();y(!0);const Y=oe=>{const re=oe-X,me=Math.min(re/300,1),he=1-Math.pow(1-me,3),Oe=Z+(B-Z)*he;g(Oe),w.current.panelHeight=Oe,me<1?requestAnimationFrame(Y):(y(!1),L(!1),w.current={startY:null,startHeight:null,startTime:null,panelHeight:null,velocity:null})};requestAnimationFrame(Y)},[L,y,g]),j=(0,u.useCallback)(B=>{const{startTime:W,startY:Z,startHeight:X}=w.current;if(!v||Z===null)return;const Y=Z-(B?.clientY??B?.touches?.[0]?.clientY??0),oe=X+Y;if(g(oe),w.current.panelHeight=oe,W!==null){const re=performance.now()-W,me=Y/re;w.current.velocity=me}},[v]),R=(0,u.useCallback)(B=>{const{velocity:W}=w.current;if(!W)return;Object.assign(w.current,{startY:null,startHeight:null,startTime:null}),L(!1);const Z=window.innerHeight*.66;let X;Math.abs(W)>.5?X=W>0?window.innerHeight:150:X=C>=Z?window.innerHeight:150,O(X),B instanceof MouseEvent&&(window.removeEventListener("mousemove",j),window.removeEventListener("mouseup",R))},[O,C,j]),M=(0,u.useCallback)(B=>{!v||N.current.contains(B.target)||S.current.contains(B.target)||(Object.assign(w.current,{startY:B?.clientY??B?.touches?.[0]?.clientY??null,startHeight:A.current?.clientHeight??0,startTime:performance.now()}),L(!0),B.nativeEvent instanceof MouseEvent&&(window.addEventListener("mousemove",j),window.addEventListener("mouseup",R)))},[j,R,v,L]);(0,u.useEffect)(()=>{let B;const W=()=>{A?.current?.style&&(A.current.style.transition="none",A.current.parentNode.querySelectorAll("div:not(.transcript-panel)").forEach(Y=>{Y.style.transition="none"}))},Z=()=>{clearTimeout(B),B=setTimeout(()=>{A?.current?.style&&(A.current.style.transition="",A.current.parentNode.querySelectorAll("div:not(.transcript-panel)").forEach(Y=>{Y.style.transition=""}))},200)};return window.addEventListener("resize",W),window.addEventListener("resize",Z),()=>{window.removeEventListener("resize",W),window.removeEventListener("resize",Z),clearTimeout(B)}},[]),(0,u.useEffect)(()=>{!d&&b.current&&g(0),a&&d&&A.current&&(A.current.focus(),o(Hm({audioPlayerId:r,focusing:!1}))),b.current=d},[r,o,a,d]),(0,u.useEffect)(()=>{d&&c!==k.current&&(k.current=c)},[d,c]),(0,u.useEffect)(()=>{d&&E.current!==t&&o(Cc()),E.current=t},[t,d,o]),(0,u.useEffect)(()=>{d&&I.current!==p&&I.current!==void 0&&o(Cc()),I.current=p},[p,d,o]);const z={role:"button",tabIndex:0,onMouseDown:M,onTouchStart:M,onTouchEnd:R,onTouchMove:j},[$,H]=lle.useState(!1),F=Te($?k.current:c),K=ule(F);let Q;d&&(Q=Fm(r));const J=(0,u.useCallback)(()=>{const B=i??document.getElementById(t4(r));return B?(B.focus(),!0):!1},[r,i]),te=(0,u.useCallback)(B=>{B.stopPropagation(),B.preventDefault(),o(Cc()),J()},[o,J]),D=(0,u.useCallback)(()=>{J()||N.current.focus()},[J]),U=(0,u.useCallback)(()=>{N.current.focus()},[]),V=(0,u.useCallback)(B=>{r&&B.key==="Escape"&&te(B)},[r,te]);return(0,n.jsxs)(n.Fragment,{children:[d?(0,n.jsx)("div",{onFocus:D,tabIndex:0}):null,(0,n.jsx)(Un,{classNames:"transcript-panel",in:d,nodeRef:A,onEnter:()=>H(!1),onEntered:()=>H(!1),onEntering:()=>H(!1),onExit:()=>H(!0),onExited:()=>H(!1),onExiting:()=>H(!0),timeout:300,unmountOnExit:!0,children:(0,n.jsxs)("section",{"aria-hidden":!d,"aria-labelledby":l,className:G()(hf({isOpen:d,isAnimatingMobileSwipe:T,isDragging:x})),id:Q,onKeyDown:V,ref:A,style:v&&d?{height:`${C/10}rem`,minHeight:C>0?"33vh":void 0}:{},tabIndex:-1,children:[(0,n.jsxs)("header",{...v?z:{},children:[(0,n.jsx)("h3",{id:l,ref:S,children:P?.audioTranscript}),(0,n.jsx)(Me.ArcButton,{"aria-label":P?.audioHideTranscript,className:hf("close-button"),hierarchy:"tertiary",icon:(0,n.jsx)(ie,{name:"close"}),layout:"icon",onClick:te,ref:N})]}),(0,n.jsx)("section",{className:hf("transcript-text",{"not-available":!K}),children:K||P?.audioNoTranscriptAvailable})]})}),d?(0,n.jsx)("div",{onFocus:U,tabIndex:0}):null]})}var Gc=f(80588);const Lx={FORWARD:"page-transition",BACK:"page-transition-back"},Gu=({id:e,lessons:t})=>e==="progress-summary"?1/0:t.findIndex(s=>s.id===e),mle=e=>{window.parent.postMessage({type:"preview:lessonChange",data:e},"*")};function ple({currentLessonId:e,lessons:t,isProgressSummary:s}){const o=zt(),r=Gc.useRef(!1),a=Gc.useRef(e),i=Gc.useCallback(()=>r.current?Lx.FORWARD:Lx.BACK,[]),c=Gc.useCallback(d=>{const l=Gu({id:d,lessons:t});if(s)r.current=!1;else if(d==="progress-summary")r.current=!0;else{const h=Gu({id:e,lessons:t});r.current=h<l}o(`/lessons/${encodeURIComponent(d)}`)},[o,t,s,e]);return Gc.useEffect(()=>{const d=Gu({id:e,lessons:t}),l=Gu({id:a.current,lessons:t});d!==l&&t.length>0&&(r.current=l<d),a.current=e,mle(e)},[e,t]),{getNavigateDirection:i,handleNavigate:c}}const Sx=()=>{const e=ee(),t=jo(),s=e?.lessons??[],o=(0,Ce.g)(),r=(0,Ce.zy)(),[a]=(0,Ce.ok)(),i=a.get("embed")==="lesson-only",c=Se&&o.id==="progress-summary",d=(0,u.useRef)(null),l=bt(480),{getNavigateDirection:h,handleNavigate:m}=ple({currentLessonId:o.id,lessons:s,isProgressSummary:c}),p=bo(e),v=(0,u.useCallback)(()=>{p||(e.theme?.hideLessonHeaders?document.querySelector("main"):document.querySelector("h1"))?.focus({preventScroll:!0})},[e,p]),C=G()("lesson",{"lesson--preview":i}),g=it(),x=(0,u.useCallback)(({item:N,refs:k})=>{if(!N)return;const E="media"in N?N.media:null;g(e4({audioPlayerId:pn({refs:k}),transcriptMedia:E}))},[g]),L=(0,u.useCallback)(()=>{g(Cc())},[g]),T=(0,u.useCallback)(N=>{g(Hm(N))},[g]),y=wo(o.id),b=(0,u.useMemo)(()=>y??{},[y]),S=(0,u.useMemo)(()=>({handleNavigate:m,handleStorylineFullscreen:tn,isMobileHeader:l,isProgressSummary:c,lessonProgress:b,navigateDirection:h,onNavigateTransitionEnd:tn,onPageReady:v}),[h,v,m,l,c,b]);return(0,n.jsxs)(cle,{children:[(0,n.jsxs)("div",{className:"page-lesson-wrap",children:[!p&&(0,n.jsx)(t_,{}),(0,n.jsx)("div",{className:"page-lesson",children:(0,n.jsxs)(nK,{children:[(0,n.jsx)(tK,{closeTranscript:L,mode:"readonly",onTranscriptUpdate:T,openTranscript:x,children:(0,n.jsx)("div",{className:C,"data-lesson":!0,ref:d,children:(0,n.jsx)("div",{className:"lesson__content",children:(0,n.jsx)("div",{className:"page-view page-view--visible",children:(0,n.jsx)(EQ,{isLessonOnlyEmbed:i,children:p?(0,n.jsx)(tle,{isProgressSummary:c,lessonProgress:b}):(0,n.jsx)(hce,{isLessonOnlyEmbed:i,children:(0,n.jsx)(Uie,{...S},r.pathname)})})})})})}),(0,n.jsx)(hle,{lessonId:t?.currentLesson?.toString()})]})})]}),(0,n.jsx)(Dm,{onClose:v})]})};function fle(){const e=ee(),t=DC(e),s=HC(e);return(0,n.jsxs)(Ce.BV,{children:[(0,n.jsx)(Ce.qh,{element:(0,n.jsx)(Sx,{}),path:"/lessons/:id"}),t?(0,n.jsx)(Ce.qh,{element:(0,n.jsx)(Ce.C5,{replace:!0,to:Os(s)}),index:!0}):(0,n.jsx)(Ce.qh,{element:(0,n.jsx)(YC,{}),index:!0}),t?(0,n.jsx)(Ce.qh,{element:(0,n.jsx)(Ce.C5,{replace:!0,to:Os(s)}),path:"/:mode"}):(0,n.jsx)(Ce.qh,{element:(0,n.jsx)(YC,{}),path:"/:mode"})]})}const mf=_("one-page-cover-info");function gle({htmlIdTitle:e}){const t=Ta("title");return(0,n.jsxs)("div",{className:mf(),"data-change-path":t,children:[(0,n.jsx)(Q7,{className:mf("title").toString(),htmlId:e}),(0,n.jsx)(K7,{className:mf("authors").toString()})]})}const vle=we("OnePageCoverInfo",gle),Wu=_("one-page-cover"),Cle=_("cover");function xle({previewType:e}={}){const t=(0,u.useRef)(null),s=(0,u.useRef)(null),o=(0,u.useRef)(!1),r=zt(),a=ae(Cs),i=(0,u.useRef)(a);i.current=a;const c=Oj(a),d=(0,u.useCallback)(()=>{const I=c?.id;return I?Os(I):null},[c?.id]),l=(0,u.useCallback)(()=>{const I=d();if(I!=null){const A=a?.theme?.blockNavigationType===pl.STEPPED?"one-page-cover-to-lesson-stepped":"one-page-cover-to-lesson-continuous";io(()=>{r(I)},A)}},[a?.theme?.blockNavigationType,d,r]),h=(0,u.useRef)(l);h.current=l;const m=(0,u.useRef)(e);m.current=e;const p=(0,u.useCallback)(()=>{s.current?.focus?.()},[]);(0,u.useEffect)(()=>{I9(),s.current?.focus?.()},[]),(0,u.useEffect)(()=>{const I=P=>{(P.key==="ArrowDown"||P.key==="ArrowRight")&&!o.current&&(o.current=!0,document.removeEventListener("keyup",I),h.current())};return document.addEventListener("keyup",I),()=>document.removeEventListener("keyup",I)},[]),(0,u.useEffect)(()=>{const I=P=>{bc(m.current)||o.current||P.deltaY>dx&&(o.current=!0,document.removeEventListener("wheel",I,{passive:!0}),h.current())};return document.addEventListener("wheel",I,{passive:!0}),()=>document.removeEventListener("wheel",I,{passive:!0})},[]),(0,u.useEffect)(()=>{if(!il(i.current)||typeof BroadcastChannel>"u")return;let I=null;try{I=new BroadcastChannel(ux),I.postMessage({type:mx,slideIndex:0}),I.onmessage=P=>{P.data.type===hx&&P.data.slideIndex===1&&!o.current&&(o.current=!0,h.current())}}catch{}return()=>I?.close()},[]);const v=(0,u.useCallback)(I=>{!t.current?.contains?.(I.target)&&!o.current&&(o.current=!0,l())},[l]),C=(0,u.useCallback)(I=>{I.preventDefault(),o.current||(o.current=!0,l())},[l]),g=a?.coverPageType===se.WHITE,x=a?.coverPageType===se.VIDEO,L=a?.coverPageType===se.IMAGE,T=a?.coverPageType===se.ACCENT,y=a?.theme?.blockNavigationType===pl.STEPPED,b=a?.theme?.coverImageColor??nt.DARK,S="title",k=`overlay-${b?.toLowerCase()}`,E=Wu("wrapper",{[k]:L,accent:T,image:L,white:g||x,video:x}).mix(Cle("header-content"));return(0,n.jsxs)(Kd,{onSwipeUp:l,children:[(0,n.jsxs)("main",{className:E,ref:s,tabIndex:"-1",children:[(0,n.jsx)(vle,{htmlIdTitle:S}),y&&(0,n.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,n.jsx)("div",{className:Wu("start-wrapper"),onClick:v,children:(0,n.jsx)(is,{"aria-label":"Start",className:Wu("start-link"),onClick:C,ref:t,to:d(),children:(0,n.jsx)(ie,{className:Wu("start-icon"),name:"arrow-down"})})}),L&&(0,n.jsx)(lm,{})]}),(0,n.jsx)(Dm,{onClose:p})]})}const Tx=xle;function ble(){const e=ee(),t=KG(e),s=HC(e),o=il(e),r=px(),a=o&&r>0,i=()=>{const c=window.location.hash.split("?")[1],d=new URLSearchParams(c||"");return d.set("slide",String(r)),`${Os(s)}?${d}`};return(0,n.jsxs)(Ce.BV,{children:[(0,n.jsx)(Ce.qh,{element:(0,n.jsx)(Sx,{}),path:"/lessons/:id"}),t||a?(0,n.jsx)(Ce.qh,{element:(0,n.jsx)(Ce.C5,{replace:!0,to:a?i():Os(s)}),index:!0}):(0,n.jsx)(Ce.qh,{element:(0,n.jsx)(Tx,{}),index:!0}),t||a?(0,n.jsx)(Ce.qh,{element:(0,n.jsx)(Ce.C5,{replace:!0,to:a?i():Os(s)}),path:"/:mode"}):(0,n.jsx)(Ce.qh,{element:(0,n.jsx)(Tx,{}),path:"/:mode"})]})}function yle(){return i3()?(0,n.jsx)(ble,{}):(0,n.jsx)(fle,{})}const pf=_("not-found"),Lle=()=>(0,n.jsx)(Ir,{title:pc(),children:(0,n.jsx)("div",{children:(0,n.jsx)("div",{className:pf(),children:(0,n.jsxs)("div",{className:pf("copy"),children:[(0,n.jsx)("h1",{className:pf("copy",{heading:!0}),tabIndex:-1,children:"Hmm..."}),(0,n.jsx)("div",{children:"We can't seem to find the page you're looking for."})]})})})});function Sle({failAttempt:e,onSubmit:t}){const s=ae(g1),o=(0,u.useRef)(null),r=(0,u.useRef)(null),[a,i]=(0,u.useState)(!1),c=(0,u.useRef)(!1);(0,u.useEffect)(()=>{e&&!c.current&&i(!0),c.current=e},[e]),(0,u.useEffect)(()=>{const m=r.current;if(!m)return;const p=()=>i(!1);return m.addEventListener("animationend",p),()=>{m.removeEventListener("animationend",p)}},[]);const d=(0,u.useCallback)(m=>{m.preventDefault(),t(o.current)},[t]),l=G()("brand--border","share-password-dialog",{"fail-password":a}),h=s?"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,n.jsxs)("div",{className:l,ref:r,children:[(0,n.jsx)("h1",{className:"heading",children:"Enter Password"}),(0,n.jsx)("p",{className:"instructions",children:h}),(0,n.jsxs)("form",{onSubmit:d,children:[(0,n.jsx)("label",{className:"label",htmlFor:"share-password",children:"password"}),(0,n.jsx)("input",{className:"input",id:"share-password",ref:o,type:"password"}),(0,n.jsx)("div",{className:"dialog__toolbar",children:(0,n.jsx)("input",{className:"button brand--background",type:"submit",value:"View"})})]})]})}const Tle=Sle;function Nle(){const e=yl();(0,u.useEffect)(()=>{window.targetMode=xz({locale:OC(e)})},[e]),(0,u.useEffect)(()=>{window.parent.postMessage({type:"ready"},"*"),window.parent.postMessage({type:ls.STATUS,data:!!window.targetMode},"*"),qJ(s=>fs(gE(s)))},[]);const t=(0,u.useRef)(!1);(0,u.useEffect)(()=>{t.current||!e||!wT()||(t.current=!0,window.parent.postMessage({type:"preview:snapshotLoaded",data:{defaultLocale:e.defaultLocale,locales:e.locales?.map(({locale:s})=>s)}}))},[e]),(0,u.useEffect)(()=>{const s=()=>fs(UN()),o=()=>fs(GN()),r=()=>window.parent.postMessage("coursePreviewIframeClicked","*");return Tv("favoriteAdded",s),Tv("favoriteRemoved",o),document.addEventListener("click",r),()=>{Nv("favoriteAdded",s),Nv("favoriteRemoved",o),document.removeEventListener("click",r)}},[])}const Ku=document.createElement("style");Ku.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 kle(){(0,u.useEffect)(()=>(Ku.parentElement!==document.head&&document.head.prepend(Ku),()=>{Ku.remove()}),[])}function Ile(e){return e.status}function Nx(){return ae(Ile)}function Ele(){const e=it();(0,u.useEffect)(()=>{e(Vk()),e(fE())},[e])}function jle(){const e=it(),{courseLoaded:t,coverLoaded:s}=Nx(),o=ae(i=>i.course?.coverImage?.media),r=vt(o),a=(0,u.useCallback)(()=>{e(XN(!0))},[e]);(0,u.useEffect)(()=>{if(t&&!s){const i=r?.image,{key:c,src:d}=i||{};if(c||d){const l=c?Ct(i):d,h=setTimeout(a,5e3),m=new Image;return m.src=l,m.onload=()=>{clearTimeout(h),a()},()=>{clearTimeout(h),m.onload=null}}else a()}},[t,s,r,a])}function wle(){Ele(),jle();const e=it(),t=MC(),s=ae(m=>m.courseLabels.labels),{courseLoaded:o,coverLoaded:r,fatalError:a,fontsLoaded:i,notFound:c,partnerContentLoaded:d}=Nx(),l=(0,je.A)(o),h=o&&i&&r&&d;return(0,u.useEffect)(()=>{!l&&o&&!i&&(t??[]).length>0&&e(OI(t))},[e,l,o,i,t]),(0,u.useEffect)(()=>{if(!h||window.parent===window)return;window.parent.postMessage({type:"course:ready"},window.location.origin);const m=p=>{p.key==="Escape"&&window.parent.postMessage({type:"preview:escape"},window.location.origin)};return window.addEventListener("keydown",m),()=>window.removeEventListener("keydown",m)},[h]),{isLoaded:!!h,notFound:!!c,fatalError:!!a,curtainLabels:s}}function Ale({course:e}){const[t,s]=(0,u.useState)(!0),[o,r]=(0,u.useState)(!1),a=e&&"hasPassword"in e?!!e.hasPassword:!1,i=!!(t&&hg()&&e&&!OV(e)&&(a||mg())),c=(0,u.useCallback)(d=>(r(!1),AT(d.value).then(({isValid:l})=>{l?s(!1):(d.value="",r(!0),s(!0))}).catch(l=>console.error("Verify password error",l))),[]);return{showPasswordDialog:i,failAttempt:o,onSharePasswordSubmit:c}}function Rle(){return AG(),kle(),(0,n.jsx)(tW,{children:(0,n.jsx)(Ple,{})})}function Ple(){const{isLoaded:e,notFound:t,fatalError:s,curtainLabels:o}=wle(),r=ee(),a=i3(),i=wG();Nle();const{showPasswordDialog:c,failAttempt:d,onSharePasswordSubmit:l}=Ale({course:r});if(t)return(0,n.jsx)(Lle,{});if(!e)return(0,n.jsx)(t5,{labels:o,status:s?"fatalError":"loading"});if(c)return(0,n.jsx)(Tle,{failAttempt:d,onSubmit:l});if(!r)return null;const{themeId:h}=r,m=G()("theme",h,{"one-page":a});return(0,n.jsx)(Zw,{appType:"learn",children:(0,n.jsx)(GG,{children:(0,n.jsx)(VG,{children:(0,n.jsx)(uz,{children:(0,n.jsx)(LG,{themeId:h,children:(0,n.jsx)(F1,{children:(0,n.jsx)(jG,{children:(0,n.jsxs)("div",{className:m,id:"innerApp",ref:hz,children:[(0,n.jsx)(DG,{...i}),(0,n.jsx)(VV,{children:(0,n.jsxs)(Ir,{title:void 0,children:[(0,n.jsx)(yle,{}),(0,n.jsx)(Qw,{})]})})]})})})})})})})})}function Mle({children:e}){return(0,n.jsx)(cZ,{ImageEagerOrLazy:Xm,children:e})}const Ole={};function Ble({children:e}){const s=ee()?.features??Ole;return(0,n.jsx)(GF,{value:s,children:e})}const kx=document.getElementById("app");if(!kx)throw new Error("Root element #app not found");(0,Ex.createRoot)(kx).render((0,n.jsx)(u.Suspense,{fallback:null,children:(0,n.jsx)(jE,{store:Qv,children:(0,n.jsx)(Mle,{children:(0,n.jsx)(RE,{children:(0,n.jsx)(Ble,{children:(0,n.jsx)(Ce.I9,{unstable_useTransitions:!1,children:(0,n.jsx)(Ce.BV,{children:(0,n.jsx)(Ce.qh,{element:(0,n.jsx)(Rle,{}),path:"/*"})})})})})})})}))},31926(Kc,li,f){var Wo={"./en-au":29579,"./en-au.js":29579,"./en-ca":26153,"./en-ca.js":26153,"./en-gb":89988,"./en-gb.js":89988,"./en-ie":69219,"./en-ie.js":69219,"./en-il":64324,"./en-il.js":64324,"./en-in":79246,"./en-in.js":79246,"./en-nz":28989,"./en-nz.js":28989,"./en-sg":40499,"./en-sg.js":40499};function vo(xn){var bn=zr(xn);return f(bn)}function zr(xn){if(!f.o(Wo,xn)){var bn=new Error("Cannot find module '"+xn+"'");throw bn.code="MODULE_NOT_FOUND",bn}return Wo[xn]}vo.keys=function(){return Object.keys(Wo)},vo.resolve=zr,Kc.exports=vo,vo.id=31926},54357(){},38954(){}}]);
