@digabi/exam-engine-core 23.1.1-alpha.0 → 23.2.0-alpha.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -84,7 +84,7 @@
84
84
  padding: 5px 10px;
85
85
  resize: none;
86
86
  width: 50%;
87
- `},7204:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(1085),o=n(5442),a=n(6003),s=r(n(3864)),l=r(n(1198)),c=r(n(2373)),u=r(n(1372)),d=n(4141),f=n(7772),p=n(2127),h=n(2959),g=(0,o.forwardRef)(((e,t)=>{const{toolbarRoot:n,ariaInvalid:r,ariaLabelledBy:s,questionId:g,editorStyle:v,className:y,id:b,lang:x}=e,I=(0,c.default)();(0,o.useImperativeHandle)(t,(()=>({setValue:e=>{I.ref.current&&(I.ref.current.innerHTML=e),setTimeout((()=>{I.initMathImages(),setTimeout((()=>{I.onAnswerChange()}),0)}),0)}})));const w=e=>()=>{var t;if(I.ref.current!==document.activeElement)return;const n=null===(t=I.ref.current)||void 0===t?void 0:t.innerHTML,r=e();if(void 0!==r&&I.ref.current&&r!==n){const e=(0,p.getCursorPosition)(I.ref.current);I.ref.current.innerHTML=r,setTimeout((()=>{I.initMathImages(),setTimeout((()=>{I.onAnswerChange(!1),(0,p.restoreCursorPosition)(I.ref.current,e)}),0)}),0)}};return(0,h.useKeyboardEventListener)("z",!1,(e=>{(null==e?void 0:e.metaKey)&&(e.preventDefault(),e.stopPropagation())}),!1),(0,h.useKeyboardEventListener)("z",!0,w(I.undoEditor)),(0,h.useKeyboardEventListener)("y",!0,w(I.redoEditor)),(0,h.useKeyboardEventListener)("e",!0,(e=>{I.ref.current===document.activeElement&&(null==e||e.preventDefault(),I.spawnMathEditorAtCursor())})),(0,i.jsxs)(i.Fragment,{children:[n&&I.isToolbarOpen&&(0,a.createPortal)((0,i.jsx)(u.default,{}),n),I.isHelpDialogOpen&&(0,i.jsx)(d.HelpDialog,{}),(0,i.jsx)(m,{ref:I.ref,id:b,"aria-invalid":r,"aria-labelledby":s,"aria-multiline":!0,className:(0,l.default)("rich-text-editor answer",y),contentEditable:!0,"data-question-id":g,"data-testid":"rich-text-editor",lang:x,onBlur:function(e){(null==n?void 0:n.contains(e.relatedTarget))||I.hideToolbar()},onFocus:I.showToolbar,onInput:e=>{const t=e.nativeEvent.inputType;"historyUndo"===t?(w(I.undoEditor)(),e.preventDefault(),e.stopPropagation()):"historyRedo"===t&&(w(I.redoEditor)(),e.preventDefault(),e.stopPropagation()),I.onAnswerChange()},onKeyDown:e=>{"e"===e.key.toLowerCase()&&e.ctrlKey&&(e.preventDefault(),e.stopPropagation(),I.spawnMathEditorAtCursor())},onPaste:async function(e){var t;e.preventDefault(),e.stopPropagation();const n=e.nativeEvent.clipboardData;if(!n)return;const r=null===(t=Array.from(n.items).at(-1))||void 0===t?void 0:t.getAsFile(),i=n.getData("text/html"),o=n.getData("text/plain");if(r&&I.allowedFileTypes.includes(r.type))try{const e=await I.handlePastedImage(r),t=document.createElement("img");t.src=e,document.execCommand("insertHTML",!1,(0,f.sanitize)(t.outerHTML))}catch(e){console.error(e)}else i?document.execCommand("insertHTML",!1,(0,f.sanitize)(i)):o&&document.execCommand("insertHTML",!1,o);setTimeout((()=>{I.initMathImages(),setTimeout((()=>{I.onAnswerChange()}),0)}),0)},spellCheck:!1,style:v,role:"textbox"}),null!==I.mathEditorPortal?(0,i.jsx)(o.Fragment,{children:I.mathEditorPortal[1]}):null]})})),m=s.default.div`
87
+ `},7204:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(1085),o=n(5442),a=n(6003),s=r(n(3864)),l=r(n(1198)),c=r(n(2373)),u=r(n(1372)),d=n(4141),f=n(7772),p=n(2127),h=n(2959),g=(0,o.forwardRef)(((e,t)=>{const{toolbarRoot:n,ariaInvalid:r,ariaLabelledBy:s,questionId:g,editorStyle:v,className:y,id:b,lang:x}=e,I=(0,c.default)();(0,o.useImperativeHandle)(t,(()=>({setValue:e=>{I.ref.current&&(I.ref.current.innerHTML=e),setTimeout((()=>{I.initMathImages(),setTimeout((()=>{I.onAnswerChange()}),0)}),0)}})));const w=e=>()=>{var t;if(I.ref.current!==document.activeElement)return;const n=null===(t=I.ref.current)||void 0===t?void 0:t.innerHTML,r=e();if(void 0!==r&&I.ref.current&&r!==n){const e=(0,p.getCursorPosition)(I.ref.current);I.ref.current.innerHTML=r,setTimeout((()=>{I.initMathImages(),setTimeout((()=>{I.onAnswerChange(!1),(0,p.restoreCursorPosition)(I.ref.current,e)}),0)}),0)}};return(0,h.useKeyboardEventListener)("z",!1,(e=>{(null==e?void 0:e.metaKey)&&(e.preventDefault(),e.stopPropagation())}),!1),(0,h.useKeyboardEventListener)("z",!0,w(I.undoEditor)),(0,h.useKeyboardEventListener)("y",!0,w(I.redoEditor)),(0,h.useKeyboardEventListener)("e",!0,(e=>{I.ref.current===document.activeElement&&(null==e||e.preventDefault(),I.spawnMathEditorAtCursor())})),(0,i.jsxs)(i.Fragment,{children:[n&&I.isToolbarOpen&&(0,a.createPortal)((0,i.jsx)(u.default,{}),n),I.isHelpDialogOpen&&(0,i.jsx)(d.HelpDialog,{}),(0,i.jsx)(m,{ref:I.ref,id:b,"aria-invalid":r,"aria-labelledby":s,"aria-multiline":!0,className:(0,l.default)("rich-text-editor answer",y),contentEditable:!0,"data-question-id":g,"data-testid":"rich-text-editor",lang:x,onBlur:function(e){(null==n?void 0:n.contains(e.relatedTarget))||I.hideToolbar()},onFocus:I.showToolbar,onInput:e=>{const t=e.nativeEvent.inputType;"historyUndo"===t?(w(I.undoEditor)(),e.preventDefault(),e.stopPropagation()):"historyRedo"===t&&(w(I.redoEditor)(),e.preventDefault(),e.stopPropagation()),I.onAnswerChange()},onKeyDown:e=>{"e"===e.key.toLowerCase()&&e.ctrlKey&&(e.preventDefault(),e.stopPropagation(),I.spawnMathEditorAtCursor())},onPaste:async function(e){var t;e.preventDefault(),e.stopPropagation();const n=e.nativeEvent.clipboardData;if(!n)return;const r=null===(t=Array.from(n.items).at(-1))||void 0===t?void 0:t.getAsFile(),i=n.getData("text/html"),o=n.getData("text/plain");if(r&&I.allowedFileTypes.includes(r.type))try{const e=await I.handlePastedImage(r),t=document.createElement("img");t.src=e,document.execCommand("insertHTML",!1,(0,f.sanitize)(t.outerHTML))}catch(e){return void console.error("Error while pasting a file",e)}else i?document.execCommand("insertHTML",!1,(0,f.sanitize)(i)):o&&document.execCommand("insertHTML",!1,o);setTimeout((()=>{I.initMathImages(),setTimeout((()=>{I.onAnswerChange()}),0)}),0)},spellCheck:!1,style:v,role:"textbox"}),null!==I.mathEditorPortal?(0,i.jsx)(o.Fragment,{children:I.mathEditorPortal[1]}):null]})})),m=s.default.div`
88
88
  box-sizing: border-box;
89
89
  border: 1px solid #aaa;
90
90
  min-height: 100px;
@@ -363,4 +363,4 @@
363
363
  grid-column: 1;
364
364
  grid-row: 1;
365
365
  }
366
- `},3858:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SET_THEORY=t.GEOMETRY=t.ALGEBRA=t.BASIC=void 0,t.BASIC=[{label:"°",latex:"\\degree"},{label:"·",latex:"\\cdot"},{label:"×",latex:"\\times"},{label:"±",latex:"\\pm"},{label:"∞",latex:"\\infty"},{label:"²",latex:"^2"},{label:"³",latex:"^3"},{label:"½",latex:"\\frac{1}{2}"},{label:"⅓",latex:"\\frac{1}{3}"},{label:"π",latex:"\\pi"},{label:"‰"},{label:"α",latex:"\\alpha"},{label:"β",latex:"\\beta"},{label:"Γ",latex:"\\Gamma"},{label:"γ",latex:"\\gamma"},{label:"Δ",latex:"\\Delta"},{label:"δ",latex:"\\delta"},{label:"ε",latex:"\\varepsilon"},{label:"ζ",latex:"\\zeta"},{label:"η",latex:"\\eta"},{label:"θ",latex:"\\theta"},{label:"ϑ",latex:"\\vartheta"},{label:"ι",latex:"\\iota"},{label:"κ",latex:"\\kappa"},{label:"Λ",latex:"\\Lambda"},{label:"λ",latex:"\\lambda"},{label:"µ",latex:"\\mu"},{label:"ν",latex:"\\nu"},{label:"Ξ",latex:"\\Xi"},{label:"ξ",latex:"\\xi"},{label:"∏",latex:"\\Pi"},{label:"ρ",latex:"\\rho"},{label:"∑",latex:"\\Sigma"},{label:"σ",latex:"\\sigma"},{label:"τ",latex:"\\tau"},{label:"Υ",latex:"\\Upsilon"},{label:"υ",latex:"\\upsilon"},{label:"Φ",latex:"\\Phi"},{label:"ϕ",latex:"\\phi"},{label:"χ",latex:"\\chi"},{label:"Ψ",latex:"\\Psi"},{label:"ψ",latex:"\\psi"},{label:"Ω",latex:"\\Omega"},{label:"ω",latex:"\\omega"},{label:"∂",latex:"\\partial"},{label:"φ",latex:"\\varphi"}],t.ALGEBRA=[{label:"≠",latex:"\\neq"},{label:"≈",latex:"\\approx"},{label:"≤",latex:"\\leq"},{label:"≥",latex:"\\geq"},{label:"<"},{label:">"},{label:"∼",latex:"\\sim"},{label:"≡",latex:"\\equiv"},{label:"≢",latex:"\\not\\equiv"},{label:"∘",latex:"\\circ"},{label:"…",latex:"\\ldots"},{label:"∝",latex:"\\propto"}],t.GEOMETRY=[{label:"∢",latex:"\\sphericalangle"},{label:"|",latex:"\\mid"},{label:"‖",latex:"\\parallel"},{label:"⇌",latex:"\\xrightleftharpoons"},{label:"⇅"},{label:"∠",latex:"\\angle"},{label:"↑",latex:"\\uparrow"},{label:"↗",latex:"\\nearrow"},{label:"↘",latex:"\\searrow"},{label:"↓",latex:"\\downarrow"},{label:"↔",latex:"\\leftrightarrow"},{label:"⊥",latex:"\\perp"}],t.SET_THEORY=[{label:"→",latex:"\\rightarrow"},{label:"⇒",latex:"\\Rightarrow"},{label:"⇔",latex:"\\Leftrightarrow"},{label:"∈",latex:"\\in"},{label:"ℤ",latex:"\\mathbb{Z}"},{label:"ℝ",latex:"\\mathbb{R}"},{label:"∃",latex:"\\exists"},{label:"∀",latex:"\\forall"},{label:"ℕ",latex:"\\mathbb{N}"},{label:"ℚ",latex:"\\mathbb{Q}"},{label:"∩",latex:"\\cap"},{label:"∪",latex:"\\cup"},{label:"∖",latex:"\\setminus"},{label:"⊂",latex:"\\subset"},{label:"⊄",latex:"\\notsubset"},{label:"∉",latex:"\\notin"},{label:"∅",latex:"\\empty"},{label:"∧",latex:"\\and"},{label:"∨",latex:"\\or"},{label:"¬",latex:"\\neg"},{label:"∇",latex:"\\nabla"}]},5064:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{action:"\\sqrt",label:"\\sqrt{X}",svg:"data:image/svg+xml;base64,PHN2ZyB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgd2lkdGg9IjMuNzQ0ZXgiIGhlaWdodD0iMi44NDNleCIgc3R5bGU9InZlcnRpY2FsLWFsaWduOiAtMC44MzhleDsiIHZpZXdCb3g9IjAgLTg2My4xIDE2MTIgMTIyMy45IiByb2xlPSJpbWciIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgYXJpYS1sYWJlbGxlZGJ5PSJNYXRoSmF4LVNWRy0xLVRpdGxlIj4KPHRpdGxlIGlkPSJNYXRoSmF4LVNWRy0xLVRpdGxlIj5cc3FydHtcc3F1YXJlfTwvdGl0bGU+CjxkZWZzIGFyaWEtaGlkZGVuPSJ0cnVlIj4KPHBhdGggc3Ryb2tlLXdpZHRoPSIxIiBpZD0iRTEtTEFUSU5NT0RFUk5NQUlOLTI1QTEiIGQ9Ik03MjIgLTYzYzAgLTExIC05IC0yMCAtMjAgLTIwaC02MjZjLTExIDAgLTIwIDkgLTIwIDIwdjYyNmMwIDExIDkgMjAgMjAgMjBoNjI2YzExIDAgMjAgLTkgMjAgLTIwdi02MjZ6TTY4MiA1NDNoLTU4NnYtNTg2aDU4NnY1ODZaIj48L3BhdGg+CjxwYXRoIHN0cm9rZS13aWR0aD0iMSIgaWQ9IkUxLUxBV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toLowerCase()===e.toLowerCase()&&(i&&r.preventDefault(),n(r))};return window.addEventListener("keydown",r),()=>{window.removeEventListener("keydown",r)}}),[e,n])}},2613:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){const t=(0,c.default)(),[n,r]=(0,l.useState)(null),[i,o]=(0,l.useState)(e.latex),a=(0,l.useRef)(null),s=(0,l.useRef)(i),d=(0,l.useCallback)((function(t){if(!t)return;const n=u.MathField(t,{handlers:{edit:function(t){var n,r;if(t.el().contains(document.activeElement)){const t=null===(n=a.current)||void 0===n?void 0:n.latex();void 0!==t&&(null===(r=e.onChange)||void 0===r||r.call(e,s.current,t),o(t),s.current=t)}},enter:function(){var t,n;e.onEnter(null!==(n=null===(t=a.current)||void 0===t?void 0:t.latex())&&void 0!==n?n:"")}}});n.latex(e.latex),r(n),a.current=n}),[]);return(0,l.useEffect)((function(){n&&n.latex()!=e.latex&&(null==n||n.latex(e.latex),t())}),[n,e.latex]),{ref:d,mq:n,isError:""===(null==n?void 0:n.latex())&&""!==e.latex,lastValue:i}};const s=o(n(5968)),l=n(5442),c=a(n(9957)),u=s.getInterface(2)},9957:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){const[e,t]=(0,r.useState)(0);return()=>t((e=>(e+1)%(Number.MAX_SAFE_INTEGER-1)))};const r=n(5442)},8115:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(1085),o=n(5442),a=r(n(7204)),s=n(2373),l=(0,o.forwardRef)(((e,t)=>{const{allowedFileTypes:n,baseUrl:r,getPasteSource:l,initialValue:c,language:u,onValueChange:d,textAreaProps:f,toolbarRoot:p}=e,[h,g]=(0,o.useState)(p),m=(0,o.useRef)(null);return(0,o.useEffect)((()=>{p?g(p):m.current&&g(m.current)}),[p,m]),(0,i.jsxs)(s.EditorStateProvider,{allowedFileTypes:n,baseUrl:r,getPasteSource:l,initialValue:c,language:u,onValueChange:d,children:[p?null:(0,i.jsx)("div",{ref:m,className:"rich-text-editor-toolbar-root"}),(0,i.jsx)(a.default,Object.assign({},f,{toolbarRoot:h,ref:t}))]})}));t.default=l},6482:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){const[e,t]=(0,r.useState)([]),[n,i]=(0,r.useState)(0),o=(0,r.useRef)(e),a=(0,r.useRef)(n),s=e=>{o.current=e,t(e)},l=e=>{a.current=e,i(e)};return{canUndo:0!==n,canRedo:n<e.length-1,write:e=>{if(e===o.current.at(a.current))return;const t=[...o.current.slice(0,a.current+1),e];s(t),l(t.length-1)},clear:()=>{s([""]),l(0)},undo:()=>{const e=a.current-1;if(e<0)return;const t=o.current.at(e);return l(e),t},redo:()=>{const e=a.current+1;if(e>=o.current.length)return;const t=o.current.at(e);return l(e),t}}};const r=n(5442)},2373:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){const e=(0,o.useContext)(p);if(!e)throw Error("Tried to use Editor State Context outside a Provider");return e},t.EditorStateProvider=function({children:e,language:t="FI",getPasteSource:n=m,allowedFileTypes:r=["image/png","image/jpeg"],onValueChange:h=(()=>{}),initialValue:y="",baseUrl:b=""}){var x;const[I,w]=(0,o.useState)(!1),[T,M]=(0,o.useState)(!1),[A,E]=(0,o.useState)(!1),[C,N]=(0,o.useState)(!1),[S,k]=(0,o.useState)(null),[j,D]=(0,o.useState)(!1),O=null!==(x=new URL(window.location.href).searchParams.get("forceToolbars"))&&void 0!==x?x:"0",[L,R]=(0,o.useState)(null),P=(0,a.default)(),z=(0,a.default)(),U=(0,o.useRef)(null),_={FI:c.default,SV:u.default}[t];function B(e,t,n){function r(n,r){P.clear(),k(null),M(!1),w(!1),Y(!0,!0),r&&v(e,r),t.classList.remove("active"),e.remove(),n||t.remove()}const o=(0,d.createPortal)((0,i.jsx)(s.default,Object.assign({onOpen:function(e){P.clear(),k(e),w(!0),M(!0),t.classList.add("active")},onBlur:r,onChange:function(e){P.write(e)},onEnter:function(e){t&&Z(t),r(e)},errorText:_.editor.render_error},n)),e);R([e,o])}const F=e=>t=>{e.setAttribute("src",`${b}/math.svg?latex=${encodeURIComponent(t)}`),e.setAttribute("alt",t)};function G(){const e=document.createElement("img");return e.addEventListener("click",(t=>function(e,t){var n;const r=e.parentElement;t.stopPropagation(),t.preventDefault();const i=(0,l.createMathStub)(g());r?r.insertBefore(i,e.nextSibling):null===(n=U.current)||void 0===n||n.appendChild(i),B(i,e,{initialLatex:e.getAttribute("alt"),onLatexUpdate:F(e)})}(e,t))),e.setAttribute("initialized",""),e.setAttribute("src",""),e.classList.add("equation"),e}function Z(e){const t=e.closest("div"),n=G(),r=(0,l.createMathStub)(g(),!1,n),i=e.nextSibling;t?(t.insertBefore(document.createElement("br"),i),t.insertBefore(n,i),t.insertBefore(r,i),B(r,n,{onLatexUpdate:F(n)})):console.error("parent element not found for math editor")}function H(){U.current&&Array.from(U.current.querySelectorAll('img[src*="/math.svg?"][alt]:not([initialized])')).forEach((e=>{var t;const n=G(),r=e.getAttribute("src");if(r){const{origin:e,pathname:t,search:i}=new URL(r,b||document.location.toString());e!==b?n.setAttribute("src",`${b}${t}${i}`):n.setAttribute("src",r)}n.setAttribute("alt",null!==(t=e.getAttribute("alt"))&&void 0!==t?t:""),e.replaceWith(n)}))}const q=(0,f.debounce)((e=>z.write(e)),500);function Y(e=!0,t=!1){setTimeout((()=>{var n;const r=null===(n=U.current)||void 0===n?void 0:n.innerHTML;if(void 0!==r){const n=(0,f.getAnswer)(r);h(n),e&&(t?z.write(n.answerHtml):q(n.answerHtml))}}),0)}return(0,o.useEffect)((()=>{j||null===U.current||(y&&(U.current.innerHTML=y),setTimeout((()=>{H(),D(!0),U.current&&z.write(U.current.innerHTML)}),0))}),[j,y,U.current,z]),(0,i.jsx)(p.Provider,{value:{isToolbarOpen:"0"!==O||I,isMathToolbarOpen:"2"===O||T,showToolbar:()=>w(!0),hideToolbar:()=>w(!1),isToolbarExpanded:A,expandToolbar:()=>E(!0),collapseToolbar:()=>E(!1),isHelpDialogOpen:C,showHelpDialog:()=>N(!0),hideHelpDialog:()=>N(!1),activeMathEditor:S,setActiveMathEditor:k,ref:U,mathEditorPortal:L,spawnMathEditorAtCursor:function(){const e=G();B((0,l.createMathStub)(g(),!0,e),e,{onLatexUpdate:F(e)})},spawnMathEditorInNewLine:Z,initMathImages:H,canUndoEquation:P.canUndo,canRedoEquation:P.canRedo,undoEquation:P.undo,redoEquation:P.redo,canUndoEditor:z.canUndo,canRedoEditor:z.canRedo,undoEditor:z.undo,redoEditor:z.redo,t:_,handlePastedImage:n,allowedFileTypes:r,onAnswerChange:Y,initialValue:y,baseUrl:b},children:e})};const i=n(1085),o=n(5442),a=r(n(6482)),s=r(n(3671)),l=n(7469),c=r(n(1414)),u=r(n(42)),d=n(6003),f=n(2127),p=(0,o.createContext)(null);let h=0;const g=()=>{const e=h;return h=e+1,e},m=e=>new Promise((t=>{const n=new FileReader;n.onload=e=>t(n.result),n.readAsDataURL(e)})),v=(e,t="after")=>{const n=window.getSelection(),r=document.createRange();"before"===t?r.setStartBefore(e):r.setStartAfter(e),r.collapse(!0),null==n||n.removeAllRanges(),null==n||n.addRange(r)}},2127:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getAnswer=t.eventHandlerWithoutFocusLoss=void 0,t.debounce=function(e,t){let n=null;return function(...r){n&&"number"==typeof t&&clearTimeout(n),n=setTimeout((()=>{e(...r)}),t)}},t.getCursorPosition=function(e){const t=window.getSelection();if(!t||0===t.rangeCount)return null;const n=t.getRangeAt(0),r=[];let i=n.startContainer;for(;i&&i!==e;){const e=i.parentNode;if(!e)break;r.push(Array.from(e.childNodes).indexOf(i)),i=e}return{path:r,offset:n.startOffset}},t.restoreCursorPosition=function(e,t){var n,r;const i=document.createRange();try{if(!t)return;let o=e;for(const e of t.path){if(!(o&&o.childNodes[e]instanceof Node))return;o=o.childNodes[e]}const a=null!==(r=null===(n=null==o?void 0:o.textContent)||void 0===n?void 0:n.length)&&void 0!==r?r:0,s=Math.min(t.offset,a);i.setStart(o,s),i.collapse(!0)}catch(t){i.selectNodeContents(e),i.collapse(!1)}const o=window.getSelection();o&&(o.removeAllRanges(),o.addRange(i))};const r=n(7772);t.eventHandlerWithoutFocusLoss=e=>t=>(e&&e(),t.preventDefault(),t.stopPropagation(),!1),t.getAnswer=e=>{const t=(0,r.sanitize)(e,{transformTags:{img:(e,t)=>t.src?{tagName:e,attribs:t}:{tagName:"",attribs:{}},span:(e,t)=>"math-editor-wrapper"!==t.class?{tagName:e,attribs:t}:{tagName:"",attribs:{}}}}),n=(new DOMParser).parseFromString(t,"text/html").body,a=Array.from(n.childNodes).map((e=>"BR"===e.nodeName?"\n":e.textContent)).join(""),s=n.querySelectorAll(':scope > img:not([src*="/math.svg?"])'),l=n.querySelectorAll("span.math-editor-wrapper").length;return{answerHtml:0===(null==a?void 0:a.trim().length)&&0===s.length&&l>0?"":i(t),answerText:o(null!=a?a:""),imageCount:s.length}};const i=e=>e.replace(/^(\n|<br ?\/?>)*/g,"").replace(/(\s|<br ?\/?>)*$/g,""),o=e=>e.replace(/^(\n)*/g,"").replace(/(\s)*$/g,"")},7469:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MATH_EDITOR_CLASS=void 0,t.createMathStub=function(e,n=!1,r){const i=document.createElement("span");if(i.className=t.MATH_EDITOR_CLASS,i.id=`math-editor-${e}`,i.contentEditable="false",i.style.display="contents",n){const e=window.getSelection();if(!e||0===e.rangeCount)return i;const n=e.getRangeAt(0);n.deleteContents(),n.insertNode(i),r&&n.insertNode(r);const o=i.parentNode;o.className===t.MATH_EDITOR_CLASS&&o.insertAdjacentElement(i.nextSibling?"beforebegin":"afterend",i),e.removeAllRanges(),n.setStartAfter(i),n.setEndAfter(i),e.addRange(n)}return i},t.MATH_EDITOR_CLASS="math-editor-wrapper"},7772:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.sanitize=function(e,t){return[e=>(0,i.default)(e,Object.assign(Object.assign(Object.assign({},o),{allowedTags:[...o.allowedTags,"div","p"],allowedSchemes:["data","http","https"]}),t)),e=>function(e){return e.replace(new RegExp(document.location.origin,"g"),"")}(e),e=>function(e){var t;const n=document.createElement("div");n.innerHTML=e;do{let e;for(let r=0;r<n.childNodes.length;r++){const i=n.childNodes[r];if(a(i)){for(void 0!==e&&e.nodeType===Node.TEXT_NODE&&/\S/.test(null!==(t=e.textContent)&&void 0!==t?t:"")&&n.insertBefore(document.createElement("br"),i),i.lastChild&&"BR"!==i.lastChild.nodeName&&i.insertBefore(document.createElement("br"),null);i.childNodes.length&&null!==i.firstChild;)n.insertBefore(i.firstChild,i);n.removeChild(i)}e=i}}while(Array.prototype.some.call(n.childNodes,(e=>a(e))));return n.innerHTML}(e)].reduce(((e,t)=>t(e)),e)};const i=r(n(7521)),o={allowedTags:["img","br","span"],allowedAttributes:{img:["src","alt"]},allowedSchemes:["data"]};function a(e){return"DIV"===e.nodeName||"P"===e.nodeName}},7521:(e,t,n)=>{const r=n(5482),i=n(2189),{isPlainObject:o}=n(993),a=n(2743),s=n(8287),{parse:l}=n(9274),c=["img","audio","video","picture","svg","object","map","iframe","embed"],u=["script","style"];function d(e,t){e&&Object.keys(e).forEach((function(n){t(e[n],n)}))}function f(e,t){return{}.hasOwnProperty.call(e,t)}function p(e,t){const n=[];return d(e,(function(e){t(e)&&n.push(e)})),n}e.exports=g;const h=/^[^\0\t\n\f\r /<=>]+$/;function g(e,t,n){if(null==e)return"";"number"==typeof e&&(e=e.toString());let v="",y="";function b(e,t){const n=this;this.tag=e,this.attribs=t||{},this.tagPosition=v.length,this.text="",this.mediaChildren=[],this.updateParentNodeText=function(){k.length&&(k[k.length-1].text+=n.text)},this.updateParentNodeMediaChildren=function(){k.length&&c.includes(this.tag)&&k[k.length-1].mediaChildren.push(this.tag)}}(t=Object.assign({},g.defaults,t)).parser=Object.assign({},m,t.parser);const x=function(e){return!1===t.allowedTags||(t.allowedTags||[]).indexOf(e)>-1};u.forEach((function(e){x(e)&&!t.allowVulnerableTags&&console.warn(`\n\n⚠️ Your \`allowedTags\` option includes, \`${e}\`, which is inherently\nvulnerable to XSS attacks. Please remove it from \`allowedTags\`.\nOr, to disable this warning, add the \`allowVulnerableTags\` option\nand ensure you are accounting for this risk.\n\n`)}));const I=t.nonTextTags||["script","style","textarea","option"];let w,T;t.allowedAttributes&&(w={},T={},d(t.allowedAttributes,(function(e,t){w[t]=[];const n=[];e.forEach((function(e){"string"==typeof e&&e.indexOf("*")>=0?n.push(i(e).replace(/\\\*/g,".*")):w[t].push(e)})),n.length&&(T[t]=new RegExp("^("+n.join("|")+")$"))})));const M={},A={},E={};d(t.allowedClasses,(function(e,t){if(w&&(f(w,t)||(w[t]=[]),w[t].push("class")),M[t]=e,Array.isArray(e)){const n=[];M[t]=[],E[t]=[],e.forEach((function(e){"string"==typeof e&&e.indexOf("*")>=0?n.push(i(e).replace(/\\\*/g,".*")):e instanceof RegExp?E[t].push(e):M[t].push(e)})),n.length&&(A[t]=new RegExp("^("+n.join("|")+")$"))}}));const C={};let N,S,k,j,D,O,L;d(t.transformTags,(function(e,t){let n;"function"==typeof e?n=e:"string"==typeof e&&(n=g.simpleTransform(e)),"*"===t?N=n:C[t]=n}));let R=!1;z();const P=new r.Parser({onopentag:function(e,n){if(t.enforceHtmlBoundary&&"html"===e&&z(),O)return void L++;const r=new b(e,n);k.push(r);let i=!1;const c=!!r.text;let u;if(f(C,e)&&(u=C[e](e,n),r.attribs=n=u.attribs,void 0!==u.text&&(r.innerText=u.text),e!==u.tagName&&(r.name=e=u.tagName,D[S]=u.tagName)),N&&(u=N(e,n),r.attribs=n=u.attribs,e!==u.tagName&&(r.name=e=u.tagName,D[S]=u.tagName)),(!x(e)||"recursiveEscape"===t.disallowedTagsMode&&!function(e){for(const t in e)if(f(e,t))return!1;return!0}(j)||null!=t.nestingLimit&&S>=t.nestingLimit)&&(i=!0,j[S]=!0,"discard"!==t.disallowedTagsMode&&"completelyDiscard"!==t.disallowedTagsMode||-1!==I.indexOf(e)&&(O=!0,L=1),j[S]=!0),S++,i){if("discard"===t.disallowedTagsMode||"completelyDiscard"===t.disallowedTagsMode)return;y=v,v=""}v+="<"+e,"script"===e&&(t.allowedScriptHostnames||t.allowedScriptDomains)&&(r.innerText=""),(!w||f(w,e)||w["*"])&&d(n,(function(n,i){if(!h.test(i))return void delete r.attribs[i];if(""===n&&!t.allowedEmptyAttributes.includes(i)&&(t.nonBooleanAttributes.includes(i)||t.nonBooleanAttributes.includes("*")))return void delete r.attribs[i];let c=!1;if(!w||f(w,e)&&-1!==w[e].indexOf(i)||w["*"]&&-1!==w["*"].indexOf(i)||f(T,e)&&T[e].test(i)||T["*"]&&T["*"].test(i))c=!0;else if(w&&w[e])for(const t of w[e])if(o(t)&&t.name&&t.name===i){c=!0;let e="";if(!0===t.multiple){const r=n.split(" ");for(const n of r)-1!==t.values.indexOf(n)&&(""===e?e=n:e+=" "+n)}else t.values.indexOf(n)>=0&&(e=n);n=e}if(c){if(-1!==t.allowedSchemesAppliedToAttributes.indexOf(i)&&_(e,n))return void delete r.attribs[i];if("script"===e&&"src"===i){let e=!0;try{const r=B(n);if(t.allowedScriptHostnames||t.allowedScriptDomains){const n=(t.allowedScriptHostnames||[]).find((function(e){return e===r.url.hostname})),i=(t.allowedScriptDomains||[]).find((function(e){return r.url.hostname===e||r.url.hostname.endsWith(`.${e}`)}));e=n||i}}catch(t){e=!1}if(!e)return void delete r.attribs[i]}if("iframe"===e&&"src"===i){let e=!0;try{const r=B(n);if(r.isRelativeUrl)e=f(t,"allowIframeRelativeUrls")?t.allowIframeRelativeUrls:!t.allowedIframeHostnames&&!t.allowedIframeDomains;else if(t.allowedIframeHostnames||t.allowedIframeDomains){const n=(t.allowedIframeHostnames||[]).find((function(e){return e===r.url.hostname})),i=(t.allowedIframeDomains||[]).find((function(e){return r.url.hostname===e||r.url.hostname.endsWith(`.${e}`)}));e=n||i}}catch(t){e=!1}if(!e)return void delete r.attribs[i]}if("srcset"===i)try{let e=s(n);if(e.forEach((function(e){_("srcset",e.url)&&(e.evil=!0)})),e=p(e,(function(e){return!e.evil})),!e.length)return void delete r.attribs[i];n=p(e,(function(e){return!e.evil})).map((function(e){if(!e.url)throw new Error("URL missing");return e.url+(e.w?` ${e.w}w`:"")+(e.h?` ${e.h}h`:"")+(e.d?` ${e.d}x`:"")})).join(", "),r.attribs[i]=n}catch(e){return void delete r.attribs[i]}if("class"===i){const t=M[e],o=M["*"],s=A[e],l=E[e],c=E["*"],f=[s,A["*"]].concat(l,c).filter((function(e){return e}));if(!(u=n,d=t&&o?a(t,o):t||o,g=f,n=d?(u=u.split(/\s+/)).filter((function(e){return-1!==d.indexOf(e)||g.some((function(t){return t.test(e)}))})).join(" "):u).length)return void delete r.attribs[i]}if("style"===i)if(t.parseStyleAttributes)try{if(n=function(e){return e.nodes[0].nodes.reduce((function(e,t){return e.push(`${t.prop}:${t.value}${t.important?" !important":""}`),e}),[]).join(";")}(function(e,t){if(!t)return e;const n=e.nodes[0];let r;return r=t[n.selector]&&t["*"]?a(t[n.selector],t["*"]):t[n.selector]||t["*"],r&&(e.nodes[0].nodes=n.nodes.reduce(function(e){return function(t,n){return f(e,n.prop)&&e[n.prop].some((function(e){return e.test(n.value)}))&&t.push(n),t}}(r),[])),e}(l(e+" {"+n+"}",{map:!1}),t.allowedStyles)),0===n.length)return void delete r.attribs[i]}catch(t){return"undefined"!=typeof window&&console.warn('Failed to parse "'+e+" {"+n+"}\", If you're running this in a browser, we recommend to disable style parsing: options.parseStyleAttributes: false, since this only works in a node environment due to a postcss dependency, More info: https://github.com/apostrophecms/sanitize-html/issues/547"),void delete r.attribs[i]}else if(t.allowedStyles)throw new Error("allowedStyles option cannot be used together with parseStyleAttributes: false.");v+=" "+i,n&&n.length?v+='="'+U(n,!0)+'"':t.allowedEmptyAttributes.includes(i)&&(v+='=""')}else delete r.attribs[i];var u,d,g})),-1!==t.selfClosing.indexOf(e)?v+=" />":(v+=">",!r.innerText||c||t.textFilter||(v+=U(r.innerText),R=!0)),i&&(v=y+U(v),y="")},ontext:function(e){if(O)return;const n=k[k.length-1];let r;if(n&&(r=n.tag,e=void 0!==n.innerText?n.innerText:e),"completelyDiscard"!==t.disallowedTagsMode||x(r))if("discard"!==t.disallowedTagsMode&&"completelyDiscard"!==t.disallowedTagsMode||"script"!==r&&"style"!==r){const n=U(e,!1);t.textFilter&&!R?v+=t.textFilter(n,r):R||(v+=n)}else v+=e;else e="";k.length&&(k[k.length-1].text+=e)},onclosetag:function(e,n){if(O){if(L--,L)return;O=!1}const r=k.pop();if(!r)return;if(r.tag!==e)return void k.push(r);O=!!t.enforceHtmlBoundary&&"html"===e,S--;const i=j[S];if(i){if(delete j[S],"discard"===t.disallowedTagsMode||"completelyDiscard"===t.disallowedTagsMode)return void r.updateParentNodeText();y=v,v=""}D[S]&&(e=D[S],delete D[S]),t.exclusiveFilter&&t.exclusiveFilter(r)?v=v.substr(0,r.tagPosition):(r.updateParentNodeMediaChildren(),r.updateParentNodeText(),-1!==t.selfClosing.indexOf(e)||n&&!x(e)&&["escape","recursiveEscape"].indexOf(t.disallowedTagsMode)>=0?i&&(v=y,y=""):(v+="</"+e+">",i&&(v=y+U(v),y=""),R=!1))}},t.parser);return P.write(e),P.end(),v;function z(){v="",S=0,k=[],j={},D={},O=!1,L=0}function U(e,n){return"string"!=typeof e&&(e+=""),t.parser.decodeEntities&&(e=e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),n&&(e=e.replace(/"/g,"&quot;"))),e=e.replace(/&(?![a-zA-Z0-9#]{1,20};)/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),n&&(e=e.replace(/"/g,"&quot;")),e}function _(e,n){for(n=n.replace(/[\x00-\x20]+/g,"");;){const e=n.indexOf("\x3c!--");if(-1===e)break;const t=n.indexOf("--\x3e",e+4);if(-1===t)break;n=n.substring(0,e)+n.substring(t+3)}const r=n.match(/^([a-zA-Z][a-zA-Z0-9.\-+]*):/);if(!r)return!!n.match(/^[/\\]{2}/)&&!t.allowProtocolRelative;const i=r[1].toLowerCase();return f(t.allowedSchemesByTag,e)?-1===t.allowedSchemesByTag[e].indexOf(i):!t.allowedSchemes||-1===t.allowedSchemes.indexOf(i)}function B(e){if((e=e.replace(/^(\w+:)?\s*[\\/]\s*[\\/]/,"$1//")).startsWith("relative:"))throw new Error("relative: exploit attempt");let t="relative://relative-site";for(let e=0;e<100;e++)t+=`/${e}`;const n=new URL(e,t);return{isRelativeUrl:n&&"relative-site"===n.hostname&&"relative:"===n.protocol,url:n}}}const m={decodeEntities:!0};g.defaults={allowedTags:["address","article","aside","footer","header","h1","h2","h3","h4","h5","h6","hgroup","main","nav","section","blockquote","dd","div","dl","dt","figcaption","figure","hr","li","main","ol","p","pre","ul","a","abbr","b","bdi","bdo","br","cite","code","data","dfn","em","i","kbd","mark","q","rb","rp","rt","rtc","ruby","s","samp","small","span","strong","sub","sup","time","u","var","wbr","caption","col","colgroup","table","tbody","td","tfoot","th","thead","tr"],nonBooleanAttributes:["abbr","accept","accept-charset","accesskey","action","allow","alt","as","autocapitalize","autocomplete","blocking","charset","cite","class","color","cols","colspan","content","contenteditable","coords","crossorigin","data","datetime","decoding","dir","dirname","download","draggable","enctype","enterkeyhint","fetchpriority","for","form","formaction","formenctype","formmethod","formtarget","headers","height","hidden","high","href","hreflang","http-equiv","id","imagesizes","imagesrcset","inputmode","integrity","is","itemid","itemprop","itemref","itemtype","kind","label","lang","list","loading","low","max","maxlength","media","method","min","minlength","name","nonce","optimum","pattern","ping","placeholder","popover","popovertarget","popovertargetaction","poster","preload","referrerpolicy","rel","rows","rowspan","sandbox","scope","shape","size","sizes","slot","span","spellcheck","src","srcdoc","srclang","srcset","start","step","style","tabindex","target","title","translate","type","usemap","value","width","wrap","onauxclick","onafterprint","onbeforematch","onbeforeprint","onbeforeunload","onbeforetoggle","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextlost","oncontextmenu","oncontextrestored","oncopy","oncuechange","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onformdata","onhashchange","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onlanguagechange","onload","onloadeddata","onloadedmetadata","onloadstart","onmessage","onmessageerror","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onoffline","ononline","onpagehide","onpageshow","onpaste","onpause","onplay","onplaying","onpopstate","onprogress","onratechange","onreset","onresize","onrejectionhandled","onscroll","onscrollend","onsecuritypolicyviolation","onseeked","onseeking","onselect","onslotchange","onstalled","onstorage","onsubmit","onsuspend","ontimeupdate","ontoggle","onunhandledrejection","onunload","onvolumechange","onwaiting","onwheel"],disallowedTagsMode:"discard",allowedAttributes:{a:["href","name","target"],img:["src","srcset","alt","title","width","height","loading"]},allowedEmptyAttributes:["alt"],selfClosing:["img","br","hr","area","base","basefont","input","link","meta"],allowedSchemes:["http","https","ftp","mailto","tel"],allowedSchemesByTag:{},allowedSchemesAppliedToAttributes:["href","src","cite"],allowProtocolRelative:!0,enforceHtmlBoundary:!1,parseStyleAttributes:!0},g.simpleTransform=function(e,t,n){return n=void 0===n||n,t=t||{},function(r,i){let o;if(n)for(o in t)i[o]=t[o];else i=t;return{tagName:e,attribs:i}}}},2146:e=>{e.exports=function(e,t,n,r){var i=n?n.call(r,e,t):void 0;if(void 0!==i)return!!i;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var o=Object.keys(e),a=Object.keys(t);if(o.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),l=0;l<o.length;l++){var c=o[l];if(!s(c))return!1;var u=e[c],d=t[c];if(!1===(i=n?n.call(r,u,d,c):void 0)||void 0===i&&u!==d)return!1}return!0}},3864:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ServerStyleSheet:()=>on,StyleSheetConsumer:()=>St,StyleSheetContext:()=>Nt,StyleSheetManager:()=>Dt,ThemeConsumer:()=>Zt,ThemeContext:()=>Gt,ThemeProvider:()=>qt,__PRIVATE__:()=>an,createGlobalStyle:()=>tn,css:()=>Jt,default:()=>Kt,isStyledComponent:()=>Je,keyframes:()=>nn,styled:()=>Kt,useTheme:()=>Ht,version:()=>de,withTheme:()=>rn});var r=function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)};function i(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;var o=n(5442),a=n.n(o),s=n(2146),l=n.n(s),c="-ms-",u="-moz-",d="-webkit-",f="comm",p="rule",h="decl",g="@import",m="@keyframes",v="@layer",y=Math.abs,b=String.fromCharCode,x=Object.assign;function I(e){return e.trim()}function w(e,t){return(e=t.exec(e))?e[0]:e}function T(e,t,n){return e.replace(t,n)}function M(e,t,n){return e.indexOf(t,n)}function A(e,t){return 0|e.charCodeAt(t)}function E(e,t,n){return e.slice(t,n)}function C(e){return e.length}function N(e){return e.length}function S(e,t){return t.push(e),e}function k(e,t){return e.filter((function(e){return!w(e,t)}))}var j=1,D=1,O=0,L=0,R=0,P="";function z(e,t,n,r,i,o,a,s){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:j,column:D,length:a,return:"",siblings:s}}function U(e,t){return x(z("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function _(e){for(;e.root;)e=U(e.root,{children:[e]});S(e,e.siblings)}function B(){return R=L>0?A(P,--L):0,D--,10===R&&(D=1,j--),R}function F(){return R=L<O?A(P,L++):0,D++,10===R&&(D=1,j++),R}function G(){return A(P,L)}function Z(){return L}function H(e,t){return E(P,e,t)}function q(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Y(e){return I(H(L-1,Q(91===e?e+2:40===e?e+1:e)))}function V(e){for(;(R=G())&&R<33;)F();return q(e)>2||q(R)>3?"":" "}function W(e,t){for(;--t&&F()&&!(R<48||R>102||R>57&&R<65||R>70&&R<97););return H(e,Z()+(t<6&&32==G()&&32==F()))}function Q(e){for(;F();)switch(R){case e:return L;case 34:case 39:34!==e&&39!==e&&Q(R);break;case 40:41===e&&Q(e);break;case 92:F()}return L}function J(e,t){for(;F()&&e+R!==57&&(e+R!==84||47!==G()););return"/*"+H(t,L-1)+"*"+b(47===e?e:F())}function X(e){for(;!q(G());)F();return H(e,L)}function $(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function K(e,t,n,r){switch(e.type){case v:if(e.children.length)break;case g:case h:return e.return=e.return||e.value;case f:return"";case m:return e.return=e.value+"{"+$(e.children,r)+"}";case p:if(!C(e.value=e.props.join(",")))return""}return C(n=$(e.children,r))?e.return=e.value+"{"+n+"}":""}function ee(e,t,n){switch(function(e,t){return 45^A(e,0)?(((t<<2^A(e,0))<<2^A(e,1))<<2^A(e,2))<<2^A(e,3):0}(e,t)){case 5103:return d+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return d+e+e;case 4789:return u+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return d+e+u+e+c+e+e;case 5936:switch(A(e,t+11)){case 114:return d+e+c+T(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return d+e+c+T(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return d+e+c+T(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return d+e+c+e+e;case 6165:return d+e+c+"flex-"+e+e;case 5187:return d+e+T(e,/(\w+).+(:[^]+)/,d+"box-$1$2"+c+"flex-$1$2")+e;case 5443:return d+e+c+"flex-item-"+T(e,/flex-|-self/g,"")+(w(e,/flex-|baseline/)?"":c+"grid-row-"+T(e,/flex-|-self/g,""))+e;case 4675:return d+e+c+"flex-line-pack"+T(e,/align-content|flex-|-self/g,"")+e;case 5548:return d+e+c+T(e,"shrink","negative")+e;case 5292:return d+e+c+T(e,"basis","preferred-size")+e;case 6060:return d+"box-"+T(e,"-grow","")+d+e+c+T(e,"grow","positive")+e;case 4554:return d+T(e,/([^-])(transform)/g,"$1"+d+"$2")+e;case 6187:return T(T(T(e,/(zoom-|grab)/,d+"$1"),/(image-set)/,d+"$1"),e,"")+e;case 5495:case 3959:return T(e,/(image-set\([^]*)/,d+"$1$`$1");case 4968:return T(T(e,/(.+:)(flex-)?(.*)/,d+"box-pack:$3"+c+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+d+e+e;case 4200:if(!w(e,/flex-|baseline/))return c+"grid-column-align"+E(e,t)+e;break;case 2592:case 3360:return c+T(e,"template-","")+e;case 4384:case 3616:return n&&n.some((function(e,n){return t=n,w(e.props,/grid-\w+-end/)}))?~M(e+(n=n[t].value),"span",0)?e:c+T(e,"-start","")+e+c+"grid-row-span:"+(~M(n,"span",0)?w(n,/\d+/):+w(n,/\d+/)-+w(e,/\d+/))+";":c+T(e,"-start","")+e;case 4896:case 4128:return n&&n.some((function(e){return w(e.props,/grid-\w+-start/)}))?e:c+T(T(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return T(e,/(.+)-inline(.+)/,d+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(C(e)-1-t>6)switch(A(e,t+1)){case 109:if(45!==A(e,t+4))break;case 102:return T(e,/(.+:)(.+)-([^]+)/,"$1"+d+"$2-$3$1"+u+(108==A(e,t+3)?"$3":"$2-$3"))+e;case 115:return~M(e,"stretch",0)?ee(T(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return T(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(t,n,r,i,o,a,s){return c+n+":"+r+s+(i?c+n+"-span:"+(o?a:+a-+r)+s:"")+e}));case 4949:if(121===A(e,t+6))return T(e,":",":"+d)+e;break;case 6444:switch(A(e,45===A(e,14)?18:11)){case 120:return T(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+d+(45===A(e,14)?"inline-":"")+"box$3$1"+d+"$2$3$1"+c+"$2box$3")+e;case 100:return T(e,":",":"+c)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return T(e,"scroll-","scroll-snap-")+e}return e}function te(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case h:return void(e.return=ee(e.value,e.length,n));case m:return $([U(e,{value:T(e.value,"@","@"+d)})],r);case p:if(e.length)return function(e,t){return e.map(t).join("")}(n=e.props,(function(t){switch(w(t,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":_(U(e,{props:[T(t,/:(read-\w+)/,":"+u+"$1")]})),_(U(e,{props:[t]})),x(e,{props:k(n,r)});break;case"::placeholder":_(U(e,{props:[T(t,/:(plac\w+)/,":"+d+"input-$1")]})),_(U(e,{props:[T(t,/:(plac\w+)/,":"+u+"$1")]})),_(U(e,{props:[T(t,/:(plac\w+)/,c+"input-$1")]})),_(U(e,{props:[t]})),x(e,{props:k(n,r)})}return""}))}}function ne(e){return function(e){return P="",e}(re("",null,null,null,[""],e=function(e){return j=D=1,O=C(P=e),L=0,[]}(e),0,[0],e))}function re(e,t,n,r,i,o,a,s,l){for(var c=0,u=0,d=a,f=0,p=0,h=0,g=1,m=1,v=1,x=0,I="",w=i,E=o,N=r,k=I;m;)switch(h=x,x=F()){case 40:if(108!=h&&58==A(k,d-1)){-1!=M(k+=T(Y(x),"&","&\f"),"&\f",y(c?s[c-1]:0))&&(v=-1);break}case 34:case 39:case 91:k+=Y(x);break;case 9:case 10:case 13:case 32:k+=V(h);break;case 92:k+=W(Z()-1,7);continue;case 47:switch(G()){case 42:case 47:S(oe(J(F(),Z()),t,n,l),l);break;default:k+="/"}break;case 123*g:s[c++]=C(k)*v;case 125*g:case 59:case 0:switch(x){case 0:case 125:m=0;case 59+u:-1==v&&(k=T(k,/\f/g,"")),p>0&&C(k)-d&&S(p>32?ae(k+";",r,n,d-1,l):ae(T(k," ","")+";",r,n,d-2,l),l);break;case 59:k+=";";default:if(S(N=ie(k,t,n,c,u,i,s,I,w=[],E=[],d,o),o),123===x)if(0===u)re(k,t,N,N,w,o,d,s,E);else switch(99===f&&110===A(k,3)?100:f){case 100:case 108:case 109:case 115:re(e,N,N,r&&S(ie(e,N,N,0,0,i,s,I,i,w=[],d,E),E),i,E,d,s,r?w:E);break;default:re(k,N,N,N,[""],E,0,s,E)}}c=u=p=0,g=v=1,I=k="",d=a;break;case 58:d=1+C(k),p=h;default:if(g<1)if(123==x)--g;else if(125==x&&0==g++&&125==B())continue;switch(k+=b(x),x*g){case 38:v=u>0?1:(k+="\f",-1);break;case 44:s[c++]=(C(k)-1)*v,v=1;break;case 64:45===G()&&(k+=Y(F())),f=G(),u=d=C(I=k+=X(Z())),x++;break;case 45:45===h&&2==C(k)&&(g=0)}}return o}function ie(e,t,n,r,i,o,a,s,l,c,u,d){for(var f=i-1,h=0===i?o:[""],g=N(h),m=0,v=0,b=0;m<r;++m)for(var x=0,w=E(e,f+1,f=y(v=a[m])),M=e;x<g;++x)(M=I(v>0?h[x]+" "+w:T(w,/&\f/g,h[x])))&&(l[b++]=M);return z(e,t,n,0===i?p:s,l,c,u,d)}function oe(e,t,n,r){return z(e,t,n,f,b(R),E(e,2,-2),0,r)}function ae(e,t,n,r,i){return z(e,t,n,h,E(e,0,r),E(e,r+1,-1),r,i)}var se={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},le="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",ce="active",ue="data-styled-version",de="6.1.13",fe="/*!sc*/\n",pe="undefined"!=typeof window&&"HTMLElement"in window,he=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY&&"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY),ge={},me=(new Set,Object.freeze([])),ve=Object.freeze({});function ye(e,t,n){return void 0===n&&(n=ve),e.theme!==n.theme&&e.theme||t||n.theme}var be=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),xe=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Ie=/(^-|-$)/g;function we(e){return e.replace(xe,"-").replace(Ie,"")}var Te=/(a)(d)/gi,Me=52,Ae=function(e){return String.fromCharCode(e+(e>25?39:97))};function Ee(e){var t,n="";for(t=Math.abs(e);t>Me;t=t/Me|0)n=Ae(t%Me)+n;return(Ae(t%Me)+n).replace(Te,"$1-$2")}var Ce,Ne=5381,Se=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},ke=function(e){return Se(Ne,e)};function je(e){return Ee(ke(e)>>>0)}function De(e){return e.displayName||e.name||"Component"}function Oe(e){return"string"==typeof e&&!0}var Le="function"==typeof Symbol&&Symbol.for,Re=Le?Symbol.for("react.memo"):60115,Pe=Le?Symbol.for("react.forward_ref"):60112,ze={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Ue={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},_e={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Be=((Ce={})[Pe]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Ce[Re]=_e,Ce);function Fe(e){return("type"in(t=e)&&t.type.$$typeof)===Re?_e:"$$typeof"in e?Be[e.$$typeof]:ze;var t}var Ge=Object.defineProperty,Ze=Object.getOwnPropertyNames,He=Object.getOwnPropertySymbols,qe=Object.getOwnPropertyDescriptor,Ye=Object.getPrototypeOf,Ve=Object.prototype;function We(e,t,n){if("string"!=typeof t){if(Ve){var r=Ye(t);r&&r!==Ve&&We(e,r,n)}var i=Ze(t);He&&(i=i.concat(He(t)));for(var o=Fe(e),a=Fe(t),s=0;s<i.length;++s){var l=i[s];if(!(l in Ue||n&&n[l]||a&&l in a||o&&l in o)){var c=qe(t,l);try{Ge(e,l,c)}catch(e){}}}}return e}function Qe(e){return"function"==typeof e}function Je(e){return"object"==typeof e&&"styledComponentId"in e}function Xe(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function $e(e,t){if(0===e.length)return"";for(var n=e[0],r=1;r<e.length;r++)n+=t?t+e[r]:e[r];return n}function Ke(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function et(e,t,n){if(void 0===n&&(n=!1),!n&&!Ke(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=et(e[r],t[r]);else if(Ke(t))for(var r in t)e[r]=et(e[r],t[r]);return e}function tt(e,t){Object.defineProperty(e,"toString",{value:t})}function nt(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):""))}var rt=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,i=r;e>=i;)if((i<<=1)<0)throw nt(16,"".concat(e));this.groupSizes=new Uint32Array(i),this.groupSizes.set(n),this.length=i;for(var o=r;o<i;o++)this.groupSizes[o]=0}for(var a=this.indexOfGroup(e+1),s=(o=0,t.length);o<s;o++)this.tag.insertRule(a,t[o])&&(this.groupSizes[e]++,a++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var i=n;i<r;i++)this.tag.deleteRule(n)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),i=r+n,o=r;o<i;o++)t+="".concat(this.tag.getRule(o)).concat(fe);return t},e}(),it=new Map,ot=new Map,at=1,st=function(e){if(it.has(e))return it.get(e);for(;ot.has(at);)at++;var t=at++;return it.set(e,t),ot.set(t,e),t},lt=function(e,t){at=t+1,it.set(e,t),ot.set(t,e)},ct="style[".concat(le,"][").concat(ue,'="').concat(de,'"]'),ut=new RegExp("^".concat(le,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),dt=function(e,t,n){for(var r,i=n.split(","),o=0,a=i.length;o<a;o++)(r=i[o])&&e.registerName(t,r)},ft=function(e,t){for(var n,r=(null!==(n=t.textContent)&&void 0!==n?n:"").split(fe),i=[],o=0,a=r.length;o<a;o++){var s=r[o].trim();if(s){var l=s.match(ut);if(l){var c=0|parseInt(l[1],10),u=l[2];0!==c&&(lt(u,c),dt(e,u,l[3]),e.getTag().insertRules(c,i)),i.length=0}else i.push(s)}}},pt=function(e){for(var t=document.querySelectorAll(ct),n=0,r=t.length;n<r;n++){var i=t[n];i&&i.getAttribute(le)!==ce&&(ft(e,i),i.parentNode&&i.parentNode.removeChild(i))}};function ht(){return n.nc}var gt=function(e){var t=document.head,n=e||t,r=document.createElement("style"),i=function(e){var t=Array.from(e.querySelectorAll("style[".concat(le,"]")));return t[t.length-1]}(n),o=void 0!==i?i.nextSibling:null;r.setAttribute(le,ce),r.setAttribute(ue,de);var a=ht();return a&&r.setAttribute("nonce",a),n.insertBefore(r,o),r},mt=function(){function e(e){this.element=gt(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var i=t[n];if(i.ownerNode===e)return i}throw nt(17)}(this.element),this.length=0}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),vt=function(){function e(e){this.element=gt(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),yt=function(){function e(e){this.rules=[],this.length=0}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),bt=pe,xt={isServer:!pe,useCSSOMInjection:!he},It=function(){function e(e,t,n){void 0===e&&(e=ve),void 0===t&&(t={});var i=this;this.options=r(r({},xt),e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&pe&&bt&&(bt=!1,pt(this)),tt(this,(function(){return function(e){for(var t=e.getTag(),n=t.length,r="",i=function(n){var i=function(e){return ot.get(e)}(n);if(void 0===i)return"continue";var o=e.names.get(i),a=t.getGroup(n);if(void 0===o||!o.size||0===a.length)return"continue";var s="".concat(le,".g").concat(n,'[id="').concat(i,'"]'),l="";void 0!==o&&o.forEach((function(e){e.length>0&&(l+="".concat(e,","))})),r+="".concat(a).concat(s,'{content:"').concat(l,'"}').concat(fe)},o=0;o<n;o++)i(o);return r}(i)}))}return e.registerId=function(e){return st(e)},e.prototype.rehydrate=function(){!this.server&&pe&&pt(this)},e.prototype.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(r(r({},this.options),t),this.gs,n&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,n=e.target;return e.isServer?new yt(n):t?new mt(n):new vt(n)}(this.options),new rt(e)));var e},e.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.prototype.registerName=function(e,t){if(st(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},e.prototype.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(st(e),n)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(st(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),wt=/&/g,Tt=/^\s*\/\/.*$/gm;function Mt(e,t){return e.map((function(e){return"rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map((function(e){return"".concat(t," ").concat(e)}))),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=Mt(e.children,t)),e}))}function At(e){var t,n,r,i=void 0===e?ve:e,o=i.options,a=void 0===o?ve:o,s=i.plugins,l=void 0===s?me:s,c=function(e,r,i){return i.startsWith(n)&&i.endsWith(n)&&i.replaceAll(n,"").length>0?".".concat(t):e},u=l.slice();u.push((function(e){e.type===p&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(wt,n).replace(r,c))})),a.prefix&&u.push(te),u.push(K);var d=function(e,i,o,s){void 0===i&&(i=""),void 0===o&&(o=""),void 0===s&&(s="&"),t=s,n=i,r=new RegExp("\\".concat(n,"\\b"),"g");var l=e.replace(Tt,""),c=ne(o||i?"".concat(o," ").concat(i," { ").concat(l," }"):l);a.namespace&&(c=Mt(c,a.namespace));var d,f,p,h=[];return $(c,(d=u.concat((p=function(e){return h.push(e)},function(e){e.root||(e=e.return)&&p(e)})),f=N(d),function(e,t,n,r){for(var i="",o=0;o<f;o++)i+=d[o](e,t,n,r)||"";return i})),h};return d.hash=l.length?l.reduce((function(e,t){return t.name||nt(15),Se(e,t.name)}),Ne).toString():"",d}var Et=new It,Ct=At(),Nt=a().createContext({shouldForwardProp:void 0,styleSheet:Et,stylis:Ct}),St=Nt.Consumer,kt=a().createContext(void 0);function jt(){return(0,o.useContext)(Nt)}function Dt(e){var t=(0,o.useState)(e.stylisPlugins),n=t[0],r=t[1],i=jt().styleSheet,s=(0,o.useMemo)((function(){var t=i;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target,i]),c=(0,o.useMemo)((function(){return At({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:n})}),[e.enableVendorPrefixes,e.namespace,n]);(0,o.useEffect)((function(){l()(n,e.stylisPlugins)||r(e.stylisPlugins)}),[e.stylisPlugins]);var u=(0,o.useMemo)((function(){return{shouldForwardProp:e.shouldForwardProp,styleSheet:s,stylis:c}}),[e.shouldForwardProp,s,c]);return a().createElement(Nt.Provider,{value:u},a().createElement(kt.Provider,{value:c},e.children))}var Ot=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=Ct);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,tt(this,(function(){throw nt(12,String(n.name))}))}return e.prototype.getName=function(e){return void 0===e&&(e=Ct),this.name+e.hash},e}(),Lt=function(e){return e>="A"&&e<="Z"};function Rt(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(1===n&&"-"===r&&"-"===e[0])return e;Lt(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var Pt=function(e){return null==e||!1===e||""===e},zt=function(e){var t,n,r=[];for(var o in e){var a=e[o];e.hasOwnProperty(o)&&!Pt(a)&&(Array.isArray(a)&&a.isCss||Qe(a)?r.push("".concat(Rt(o),":"),a,";"):Ke(a)?r.push.apply(r,i(i(["".concat(o," {")],zt(a),!1),["}"],!1)):r.push("".concat(Rt(o),": ").concat((t=o,null==(n=a)||"boolean"==typeof n||""===n?"":"number"!=typeof n||0===n||t in se||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function Ut(e,t,n,r){return Pt(e)?[]:Je(e)?[".".concat(e.styledComponentId)]:Qe(e)?!Qe(i=e)||i.prototype&&i.prototype.isReactComponent||!t?[e]:Ut(e(t),t,n,r):e instanceof Ot?n?(e.inject(n,r),[e.getName(r)]):[e]:Ke(e)?zt(e):Array.isArray(e)?Array.prototype.concat.apply(me,e.map((function(e){return Ut(e,t,n,r)}))):[e.toString()];var i}function _t(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(Qe(n)&&!Je(n))return!1}return!0}var Bt=ke(de),Ft=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&_t(e),this.componentId=t,this.baseHash=Se(Bt,t),this.baseStyle=n,It.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))r=Xe(r,this.staticRulesId);else{var i=$e(Ut(this.rules,e,t,n)),o=Ee(Se(this.baseHash,i)>>>0);if(!t.hasNameForId(this.componentId,o)){var a=n(i,".".concat(o),void 0,this.componentId);t.insertRules(this.componentId,o,a)}r=Xe(r,o),this.staticRulesId=o}else{for(var s=Se(this.baseHash,n.hash),l="",c=0;c<this.rules.length;c++){var u=this.rules[c];if("string"==typeof u)l+=u;else if(u){var d=$e(Ut(u,e,t,n));s=Se(s,d+c),l+=d}}if(l){var f=Ee(s>>>0);t.hasNameForId(this.componentId,f)||t.insertRules(this.componentId,f,n(l,".".concat(f),void 0,this.componentId)),r=Xe(r,f)}}return r},e}(),Gt=a().createContext(void 0),Zt=Gt.Consumer;function Ht(){var e=(0,o.useContext)(Gt);if(!e)throw nt(18);return e}function qt(e){var t=a().useContext(Gt),n=(0,o.useMemo)((function(){return function(e,t){if(!e)throw nt(14);if(Qe(e))return e(t);if(Array.isArray(e)||"object"!=typeof e)throw nt(8);return t?r(r({},t),e):e}(e.theme,t)}),[e.theme,t]);return e.children?a().createElement(Gt.Provider,{value:n},e.children):null}var Yt={};function Vt(e,t,n){var i=Je(e),s=e,l=!Oe(e),c=t.attrs,u=void 0===c?me:c,d=t.componentId,f=void 0===d?function(e,t){var n="string"!=typeof e?"sc":we(e);Yt[n]=(Yt[n]||0)+1;var r="".concat(n,"-").concat(je(de+n+Yt[n]));return t?"".concat(t,"-").concat(r):r}(t.displayName,t.parentComponentId):d,p=t.displayName,h=void 0===p?function(e){return Oe(e)?"styled.".concat(e):"Styled(".concat(De(e),")")}(e):p,g=t.displayName&&t.componentId?"".concat(we(t.displayName),"-").concat(t.componentId):t.componentId||f,m=i&&s.attrs?s.attrs.concat(u).filter(Boolean):u,v=t.shouldForwardProp;if(i&&s.shouldForwardProp){var y=s.shouldForwardProp;if(t.shouldForwardProp){var b=t.shouldForwardProp;v=function(e,t){return y(e,t)&&b(e,t)}}else v=y}var x=new Ft(n,g,i?s.componentStyle:void 0);function I(e,t){return function(e,t,n){var i=e.attrs,s=e.componentStyle,l=e.defaultProps,c=e.foldedComponentIds,u=e.styledComponentId,d=e.target,f=a().useContext(Gt),p=jt(),h=e.shouldForwardProp||p.shouldForwardProp,g=ye(t,f,l)||ve,m=function(e,t,n){for(var i,o=r(r({},t),{className:void 0,theme:n}),a=0;a<e.length;a+=1){var s=Qe(i=e[a])?i(o):i;for(var l in s)o[l]="className"===l?Xe(o[l],s[l]):"style"===l?r(r({},o[l]),s[l]):s[l]}return t.className&&(o.className=Xe(o.className,t.className)),o}(i,t,g),v=m.as||d,y={};for(var b in m)void 0===m[b]||"$"===b[0]||"as"===b||"theme"===b&&m.theme===g||("forwardedAs"===b?y.as=m.forwardedAs:h&&!h(b,v)||(y[b]=m[b]));var x=function(e,t){var n=jt();return e.generateAndInjectStyles(t,n.styleSheet,n.stylis)}(s,m),I=Xe(c,u);return x&&(I+=" "+x),m.className&&(I+=" "+m.className),y[Oe(v)&&!be.has(v)?"class":"className"]=I,y.ref=n,(0,o.createElement)(v,y)}(w,e,t)}I.displayName=h;var w=a().forwardRef(I);return w.attrs=m,w.componentStyle=x,w.displayName=h,w.shouldForwardProp=v,w.foldedComponentIds=i?Xe(s.foldedComponentIds,s.styledComponentId):"",w.styledComponentId=g,w.target=i?s.target:e,Object.defineProperty(w,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=i?function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,i=t;r<i.length;r++)et(e,i[r],!0);return e}({},s.defaultProps,e):e}}),tt(w,(function(){return".".concat(w.styledComponentId)})),l&&We(w,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),w}function Wt(e,t){for(var n=[e[0]],r=0,i=t.length;r<i;r+=1)n.push(t[r],e[r+1]);return n}new Set;var Qt=function(e){return Object.assign(e,{isCss:!0})};function Jt(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(Qe(e)||Ke(e))return Qt(Ut(Wt(me,i([e],t,!0))));var r=e;return 0===t.length&&1===r.length&&"string"==typeof r[0]?Ut(r):Qt(Ut(Wt(r,t)))}function Xt(e,t,n){if(void 0===n&&(n=ve),!t)throw nt(1,t);var o=function(r){for(var o=[],a=1;a<arguments.length;a++)o[a-1]=arguments[a];return e(t,n,Jt.apply(void 0,i([r],o,!1)))};return o.attrs=function(i){return Xt(e,t,r(r({},n),{attrs:Array.prototype.concat(n.attrs,i).filter(Boolean)}))},o.withConfig=function(i){return Xt(e,t,r(r({},n),i))},o}var $t=function(e){return Xt(Vt,e)},Kt=$t;be.forEach((function(e){Kt[e]=$t(e)}));var en=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=_t(e),It.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,n,r){var i=r($e(Ut(this.rules,t,n,r)),""),o=this.componentId+e;n.insertRules(o,o,i)},e.prototype.removeStyles=function(e,t){t.clearRules(this.componentId+e)},e.prototype.renderStyles=function(e,t,n,r){e>2&&It.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)},e}();function tn(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var o=Jt.apply(void 0,i([e],t,!1)),s="sc-global-".concat(je(JSON.stringify(o))),l=new en(o,s),c=function(e){var t=jt(),n=a().useContext(Gt),r=a().useRef(t.styleSheet.allocateGSInstance(s)).current;return t.styleSheet.server&&u(r,e,t.styleSheet,n,t.stylis),a().useLayoutEffect((function(){if(!t.styleSheet.server)return u(r,e,t.styleSheet,n,t.stylis),function(){return l.removeStyles(r,t.styleSheet)}}),[r,e,t.styleSheet,n,t.stylis]),null};function u(e,t,n,i,o){if(l.isStatic)l.renderStyles(e,ge,n,o);else{var a=r(r({},t),{theme:ye(t,i,c.defaultProps)});l.renderStyles(e,a,n,o)}}return a().memo(c)}function nn(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=$e(Jt.apply(void 0,i([e],t,!1))),o=je(r);return new Ot(o,r)}function rn(e){var t=a().forwardRef((function(t,n){var i=ye(t,a().useContext(Gt),e.defaultProps);return a().createElement(e,r({},t,{theme:i,ref:n}))}));return t.displayName="WithTheme(".concat(De(e),")"),We(t,e)}var on=function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return"";var n=ht(),r=$e([n&&'nonce="'.concat(n,'"'),"".concat(le,'="true"'),"".concat(ue,'="').concat(de,'"')].filter(Boolean)," ");return"<style ".concat(r,">").concat(t,"</style>")},this.getStyleTags=function(){if(e.sealed)throw nt(2);return e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)throw nt(2);var n=e.instance.toString();if(!n)return[];var i=((t={})[le]="",t[ue]=de,t.dangerouslySetInnerHTML={__html:n},t),o=ht();return o&&(i.nonce=o),[a().createElement("style",r({},i,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new It({isServer:!0}),this.sealed=!1}return e.prototype.collectStyles=function(e){if(this.sealed)throw nt(2);return a().createElement(Dt,{sheet:this.instance},e)},e.prototype.interleaveWithNodeStream=function(e){throw nt(3)},e}(),an={StyleSheet:It,mainSheet:Et};"__sc-".concat(le,"__")},679:(e,t,n)=>{"use strict";n.r(t),n.d(t,{focusable:()=>I,getTabIndex:()=>f,isFocusable:()=>M,isTabbable:()=>w,tabbable:()=>x});var r=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],i=r.join(","),o="undefined"==typeof Element,a=o?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,s=!o&&Element.prototype.getRootNode?function(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}:function(e){return null==e?void 0:e.ownerDocument},l=function e(t,n){var r;void 0===n&&(n=!0);var i=null==t||null===(r=t.getAttribute)||void 0===r?void 0:r.call(t,"inert");return""===i||"true"===i||n&&t&&e(t.parentNode)},c=function(e,t,n){if(l(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(i));return t&&a.call(e,i)&&r.unshift(e),r.filter(n)},u=function e(t,n,r){for(var o=[],s=Array.from(t);s.length;){var c=s.shift();if(!l(c,!1))if("SLOT"===c.tagName){var u=c.assignedElements(),d=e(u.length?u:c.children,!0,r);r.flatten?o.push.apply(o,d):o.push({scopeParent:c,candidates:d})}else{a.call(c,i)&&r.filter(c)&&(n||!t.includes(c))&&o.push(c);var f=c.shadowRoot||"function"==typeof r.getShadowRoot&&r.getShadowRoot(c),p=!l(f,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(c));if(f&&p){var h=e(!0===f?c.children:f.children,!0,r);r.flatten?o.push.apply(o,h):o.push({scopeParent:c,candidates:h})}else s.unshift.apply(s,c.children)}}return o},d=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},f=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||function(e){var t,n=null==e||null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"contenteditable");return""===n||"true"===n}(e))&&!d(e)?0:e.tabIndex},p=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},h=function(e){return"INPUT"===e.tagName},g=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return 0===n&&0===r},m=function(e,t){return!(t.disabled||l(t)||function(e){return h(e)&&"hidden"===e.type}(t)||function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var i=a.call(e,"details>summary:first-of-type")?e.parentElement:e;if(a.call(i,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return g(e)}else{if("function"==typeof r){for(var o=e;e;){var l=e.parentElement,c=s(e);if(l&&!l.shadowRoot&&!0===r(l))return g(e);e=e.assignedSlot?e.assignedSlot:l||c===e.ownerDocument?l:c.host}e=o}if(function(e){var t,n,r,i,o=e&&s(e),a=null===(t=o)||void 0===t?void 0:t.host,l=!1;if(o&&o!==e)for(l=!!(null!==(n=a)&&void 0!==n&&null!==(r=n.ownerDocument)&&void 0!==r&&r.contains(a)||null!=e&&null!==(i=e.ownerDocument)&&void 0!==i&&i.contains(e));!l&&a;){var c,u,d;l=!(null===(u=a=null===(c=o=s(a))||void 0===c?void 0:c.host)||void 0===u||null===(d=u.ownerDocument)||void 0===d||!d.contains(a))}return l}(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1}(t,e)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some((function(e){return"SUMMARY"===e.tagName}))}(t)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var r=t.children.item(n);if("LEGEND"===r.tagName)return!!a.call(t,"fieldset[disabled] *")||!r.contains(e)}return!0}t=t.parentElement}return!1}(t))},v=function(e,t){return!(function(e){return function(e){return h(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||s(e),r=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=r(window.CSS.escape(e.name));else try{t=r(e.name)}catch(e){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message),!1}var i=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]}(t,e.form);return!i||i===e}(e)}(t)||f(t)<0||!m(e,t))},y=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},b=function e(t){var n=[],r=[];return t.forEach((function(t,i){var o=!!t.scopeParent,a=o?t.scopeParent:t,s=function(e,t){var n=f(e);return n<0&&t&&!d(e)?0:n}(a,o),l=o?e(t.candidates):a;0===s?o?n.push.apply(n,l):n.push(a):r.push({documentOrder:i,tabIndex:s,item:t,isScope:o,content:l})})),r.sort(p).reduce((function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e}),[]).concat(n)},x=function(e,t){var n;return n=(t=t||{}).getShadowRoot?u([e],t.includeContainer,{filter:v.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:y}):c(e,t.includeContainer,v.bind(null,t)),b(n)},I=function(e,t){return(t=t||{}).getShadowRoot?u([e],t.includeContainer,{filter:m.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):c(e,t.includeContainer,m.bind(null,t))},w=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==a.call(e,i)&&v(t,e)},T=r.concat("iframe").join(","),M=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==a.call(e,T)&&m(t,e)}},758:function(e,t){!function(e){"use strict";function t(e){return null==e}function n(e){throw new Error("Argument "+e+" is empty.")}function r(e){return"function"==typeof e&&"getType"in e}function i(e){throw new Error("Argument "+e+' is invalid, it should be an action-creator instance from "typesafe-actions"')}function o(e,t){if(null==e)throw new Error("Argument contains array with empty element at index "+t);if(null==e.getType)throw new Error("Argument contains array with invalid element at index "+t+', it should be an action-creator instance from "typesafe-actions"')}function a(e){return"string"==typeof e||"symbol"==typeof e}function s(e){return!a(e)}function l(e){throw new Error("Argument "+e+" is invalid, it should be an action type of type: string | symbol")}function c(e,t){if(null==e)throw new Error("Argument contains array with empty element at index "+t);if("string"!=typeof e&&"symbol"!=typeof e)throw new Error("Argument contains array with invalid element at index "+t+", it should be of type: string | symbol")}function u(e,r,o,a){return t(e)&&n(1),s(e)&&i(1),{type:e,payload:r,meta:o,error:a}}function d(e,r){return t(e)&&n(1),s(e)&&l(1),Object.assign((function(){var t=null!=r?r.apply(void 0,arguments):void 0;return Object.assign({type:e},t)}),{getType:function(){return e},toString:function(){return e}})}function f(e,r,i){return t(e)&&n(1),s(e)&&l(1),function(){return d(e,(function(){var e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1];return null==r&&null==i||(e=null!=r?r.apply(void 0,arguments):void 0,t=null!=i?i.apply(void 0,arguments):void 0),Object.assign({},void 0!==e&&{payload:e},{},void 0!==t&&{meta:t})}))}}function p(e){return t(e)&&n(1),r(e)||i(1),e.getType()}function h(e,r){t(e)&&n(1),s(e)&&l(1);var i=null!=r?r(e):function(){return{type:e}};return Object.assign(i,{getType:function(){return e},toString:function(){return e}})}var g={createAction:function(e,t){var n=null==t?function(){return u(e)}:t(u.bind(null,e));return Object.assign(n,{getType:function(){return e},toString:function(){return e}})},createCustomAction:h,createStandardAction:function(e){return t(e)&&n(1),s(e)&&l(1),Object.assign((function(){return h(e,(function(e){return function(t,n){return{type:e,payload:t,meta:n}}}))}),{map:function(t){return h(e,(function(e){return function(n,r){return Object.assign(t(n,r),{type:e})}}))}})}};e.action=u,e.createAction=f,e.createAsyncAction=function(e,t,n,r){return function(){var i=[e,t,n,r].map((function(e,t){return Array.isArray(e)?f(e[0],e[1],e[2])():"string"==typeof e||"symbol"==typeof e?f(e)():void(t<3&&function(e){throw new Error("Argument "+e+' is invalid, it should be an action type of "string | symbol" or a tuple of "[string | symbol, Function, Function?]"')}(t))}));return{request:i[0],success:i[1],failure:i[2],cancel:i[3]}}},e.createCustomAction=d,e.createReducer=function e(t,n){void 0===n&&(n={});var i=Object.assign({},n),o=function(n,o){var s=Array.isArray(n)?n:[n],l={};return s.map((function(e,t){return r(e)?p(e):a(e)?e:function(e){throw new Error("Argument "+e+' is invalid, it should be an action-creator instance from "typesafe-actions" or action type of type: string | symbol')}(t+1)})).forEach((function(e){return l[e]=o})),e(t,Object.assign({},i,{},l))};return Object.assign((function(e,n){if(void 0===e&&(e=t),i.hasOwnProperty(n.type)){var r=i[n.type];if("function"!=typeof r)throw Error('Reducer under "'+n.type+'" key is not a valid reducer');return r(e,n)}return e}),{handlers:Object.assign({},i),handleAction:o,handleType:o})},e.deprecated=g,e.getType=p,e.isActionOf=function(e,r){t(e)&&n(1);var i=Array.isArray(e)?e:[e];i.forEach(o);var a=function(e){return i.some((function(t){return e.type===t.getType()}))};return void 0===r?a:a(r)},e.isOfType=function(e,r){t(e)&&n(1);var i=Array.isArray(e)?e:[e];i.forEach(c);var o=function(e){return i.includes(e.type)};return void 0===r?o:o(r)}}(t)},5969:(e,t,n)=>{"use strict";var r=n(5442),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=r.useSyncExternalStore,a=r.useRef,s=r.useEffect,l=r.useMemo,c=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,u){var d=a(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=l((function(){function e(e){if(!s){if(s=!0,o=e,e=r(e),void 0!==u&&f.hasValue){var t=f.value;if(u(t,e))return a=t}return a=e}if(t=a,i(o,e))return t;var n=r(e);return void 0!==u&&u(t,n)?t:(o=e,a=n)}var o,a,s=!1,l=void 0===n?null:n;return[function(){return e(t())},null===l?void 0:function(){return e(l())}]}),[t,n,r,u]);var p=o(e,d[0],d[1]);return s((function(){f.hasValue=!0,f.value=p}),[p]),c(p),p}},5919:(e,t,n)=>{"use strict";e.exports=n(5969)},9002:e=>{e.exports={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}},5442:t=>{"use strict";t.exports=e},6003:e=>{"use strict";e.exports=t},3215:()=>{},8892:()=>{},5324:()=>{},8645:()=>{},588:()=>{},1198:(e,t)=>{var n;!function(){"use strict";var r=function(){function e(){}function t(e,t){for(var n=t.length,r=0;r<n;++r)i(e,t[r])}e.prototype=Object.create(null);var n={}.hasOwnProperty,r=/\s+/;function i(e,i){if(i){var o=typeof i;"string"===o?function(e,t){for(var n=t.split(r),i=n.length,o=0;o<i;++o)e[n[o]]=!0}(e,i):Array.isArray(i)?t(e,i):"object"===o?function(e,t){if(t.toString===Object.prototype.toString||t.toString.toString().includes("[native code]"))for(var r in t)n.call(t,r)&&(e[r]=!!t[r]);else e[t.toString()]=!0}(e,i):"number"===o&&function(e,t){e[t]=!0}(e,i)}}return function(){for(var n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];var o=new e;t(o,r);var a=[];for(var s in o)o[s]&&a.push(s);return a.join(" ")}}();e.exports?(r.default=r,e.exports=r):void 0===(n=function(){return r}.apply(t,[]))||(e.exports=n)}()},3373:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=a(e,o(n)))}return e}function o(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return i.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=a(t,n));return t}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(i.default=i,e.exports=i):void 0===(n=function(){return i}.apply(t,[]))||(e.exports=n)}()},945:e=>{e.exports={nanoid:(e=21)=>{let t="",n=e;for(;n--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t},customAlphabet:(e,t=21)=>(n=t)=>{let r="",i=n;for(;i--;)r+=e[Math.random()*e.length|0];return r}}}},o={};function a(e){var t=o[e];if(void 0!==t)return t.exports;var n=o[e]={exports:{}};return i[e].call(n.exports,n,n.exports,a),n.exports}a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},r=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,a.t=function(e,t){if(1&t&&(e=this(e)),8&t)return e;if("object"==typeof e&&e){if(4&t&&e.__esModule)return e;if(16&t&&"function"==typeof e.then)return e}var i=Object.create(null);a.r(i);var o={};n=n||[null,r({}),r([]),r(r)];for(var s=2&t&&e;"object"==typeof s&&!~n.indexOf(s);s=r(s))Object.getOwnPropertyNames(s).forEach((t=>o[t]=()=>e[t]));return o.default=()=>e,a.d(i,o),i},a.d=(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.nc=void 0;var s={};return(()=>{"use strict";a.r(s),a.d(s,{Attachments:()=>wd,Exam:()=>yx,GradingAnswer:()=>QI,GradingInstructions:()=>Ox,Results:()=>hI,parseExam:()=>FI});var e=a(5442),t=a.n(e);a(9002),Object.create(null);const n={},r=(...e)=>{c(e[0])&&n[e[0]]||(c(e[0])&&(n[e[0]]=new Date),((...e)=>{console?.warn&&(c(e[0])&&(e[0]=`react-i18next:: ${e[0]}`),console.warn(...e))})(...e))},i=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout((()=>{e.off("initialized",n)}),0),t()};e.on("initialized",n)}},o=(e,t,n)=>{e.loadNamespaces(t,i(e,n))},l=(e,t,n,r)=>{if(c(n)&&(n=[n]),e.options.preload&&e.options.preload.indexOf(t)>-1)return o(e,n,r);n.forEach((t=>{e.options.ns.indexOf(t)<0&&e.options.ns.push(t)})),e.loadLanguages(t,i(e,r))},c=e=>"string"==typeof e,u=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,d={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},f=e=>d[e];let p={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:e=>e.replace(u,f)};const h=(0,e.createContext)();class g{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach((e=>{this.usedNamespaces[e]||(this.usedNamespaces[e]=!0)}))}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const m=(e,t,n,r)=>e.getFixedT(t,n,r),v=(t,n={})=>{const{i18n:i}=n,{i18n:a,defaultNS:s}=(0,e.useContext)(h)||{},u=i||a||undefined;if(u&&!u.reportNamespaces&&(u.reportNamespaces=new g),!u){r("You will need to pass in an i18next instance by using initReactI18next");const e=(e,t)=>{return c(t)?t:"object"==typeof(n=t)&&null!==n&&c(t.defaultValue)?t.defaultValue:Array.isArray(e)?e[e.length-1]:e;var n},t=[e,{},!1];return t.t=e,t.i18n={},t.ready=!1,t}u.options.react?.wait&&r("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const d={...p,...u.options.react,...n},{useSuspense:f,keyPrefix:v}=d;let y=t||s||u.options?.defaultNS;y=c(y)?[y]:y||["translation"],u.reportNamespaces.addUsedNamespaces?.(y);const b=(u.isInitialized||u.initializedStoreOnce)&&y.every((e=>((e,t,n={})=>t.languages&&t.languages.length?t.hasLoadedNamespace(e,{lng:n.lng,precheck:(t,r)=>{if(n.bindI18n?.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!r(t.isLanguageChangingTo,e))return!1}}):(r("i18n.languages were undefined or empty",t.languages),!0))(e,u,d))),x=((t,n,r,i)=>(0,e.useCallback)(m(t,n,r,i),[t,n,r,i]))(u,n.lng||null,"fallback"===d.nsMode?y:y[0],v),I=()=>x,w=()=>m(u,n.lng||null,"fallback"===d.nsMode?y:y[0],v),[T,M]=(0,e.useState)(I);let A=y.join();n.lng&&(A=`${n.lng}${A}`);const E=((t,n)=>{const r=(0,e.useRef)();return(0,e.useEffect)((()=>{r.current=t}),[t,n]),r.current})(A),C=(0,e.useRef)(!0);(0,e.useEffect)((()=>{const{bindI18n:e,bindI18nStore:t}=d;C.current=!0,b||f||(n.lng?l(u,n.lng,y,(()=>{C.current&&M(w)})):o(u,y,(()=>{C.current&&M(w)}))),b&&E&&E!==A&&C.current&&M(w);const r=()=>{C.current&&M(w)};return e&&u?.on(e,r),t&&u?.store.on(t,r),()=>{C.current=!1,u&&e?.split(" ").forEach((e=>u.off(e,r))),t&&u&&t.split(" ").forEach((e=>u.store.off(e,r)))}}),[u,A]),(0,e.useEffect)((()=>{C.current&&b&&M(I)}),[u,v,b]);const N=[T,u,b];if(N.t=T,N.i18n=u,N.ready=b,b)return N;if(!b&&!f)return N;throw new Promise((e=>{n.lng?l(u,n.lng,y,(()=>e())):o(u,y,(()=>e()))}))};function y({i18n:t,defaultNS:n,children:r}){const i=(0,e.useMemo)((()=>({i18n:t,defaultNS:n})),[t,n]);return(0,e.createElement)(h.Provider,{value:i},r)}const b=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e},x=function(e,t,n){for(var r=-1,i=Object(e),o=n(e),a=o.length;a--;){var s=o[++r];if(!1===t(i[s],s,i))break}return e},I=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r},w="object"==typeof global&&global&&global.Object===Object&&global;var T="object"==typeof self&&self&&self.Object===Object&&self;const M=w||T||Function("return this")(),A=M.Symbol;var E=Object.prototype,C=E.hasOwnProperty,N=E.toString,S=A?A.toStringTag:void 0;var k=Object.prototype.toString;var j=A?A.toStringTag:void 0;const D=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":j&&j in Object(e)?function(e){var t=C.call(e,S),n=e[S];try{e[S]=void 0;var r=!0}catch(e){}var i=N.call(e);return r&&(t?e[S]=n:delete e[S]),i}(e):function(e){return k.call(e)}(e)},O=function(e){return null!=e&&"object"==typeof e},L=function(e){return O(e)&&"[object Arguments]"==D(e)};var R=Object.prototype,P=R.hasOwnProperty,z=R.propertyIsEnumerable;const U=L(function(){return arguments}())?L:function(e){return O(e)&&P.call(e,"callee")&&!z.call(e,"callee")},_=Array.isArray;var B="object"==typeof exports&&exports&&!exports.nodeType&&exports,F=B&&"object"==typeof module&&module&&!module.nodeType&&module,G=F&&F.exports===B?M.Buffer:void 0;const Z=(G?G.isBuffer:void 0)||function(){return!1};var H=/^(?:0|[1-9]\d*)$/;const q=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&H.test(e))&&e>-1&&e%1==0&&e<t},Y=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991};var V={};V["[object Float32Array]"]=V["[object Float64Array]"]=V["[object Int8Array]"]=V["[object Int16Array]"]=V["[object Int32Array]"]=V["[object Uint8Array]"]=V["[object Uint8ClampedArray]"]=V["[object Uint16Array]"]=V["[object Uint32Array]"]=!0,V["[object Arguments]"]=V["[object Array]"]=V["[object ArrayBuffer]"]=V["[object Boolean]"]=V["[object DataView]"]=V["[object Date]"]=V["[object Error]"]=V["[object Function]"]=V["[object Map]"]=V["[object Number]"]=V["[object Object]"]=V["[object RegExp]"]=V["[object Set]"]=V["[object String]"]=V["[object WeakMap]"]=!1;const W=function(e){return function(t){return e(t)}};var Q="object"==typeof exports&&exports&&!exports.nodeType&&exports,J=Q&&"object"==typeof module&&module&&!module.nodeType&&module,X=J&&J.exports===Q&&w.process;const $=function(){try{return J&&J.require&&J.require("util").types||X&&X.binding&&X.binding("util")}catch(e){}}();var K=$&&$.isTypedArray;const ee=K?W(K):function(e){return O(e)&&Y(e.length)&&!!V[D(e)]};var te=Object.prototype.hasOwnProperty;const ne=function(e,t){var n=_(e),r=!n&&U(e),i=!n&&!r&&Z(e),o=!n&&!r&&!i&&ee(e),a=n||r||i||o,s=a?I(e.length,String):[],l=s.length;for(var c in e)!t&&!te.call(e,c)||a&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||q(c,l))||s.push(c);return s};var re=Object.prototype;const ie=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||re)},oe=function(e,t){return function(n){return e(t(n))}},ae=oe(Object.keys,Object);var se=Object.prototype.hasOwnProperty;const le=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},ce=function(e){if(!le(e))return!1;var t=D(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},ue=function(e){return null!=e&&Y(e.length)&&!ce(e)},de=function(e){return ue(e)?ne(e):function(e){if(!ie(e))return ae(e);var t=[];for(var n in Object(e))se.call(e,n)&&"constructor"!=n&&t.push(n);return t}(e)},fe=function(e,t){return e&&x(e,t,de)},pe=(he=fe,function(e,t){if(null==e)return e;if(!ue(e))return he(e,t);for(var n=e.length,r=-1,i=Object(e);++r<n&&!1!==t(i[r],r,i););return e});var he;const ge=function(e){return e},me=function(e){return"function"==typeof e?e:ge},ve=function(e,t){return(_(e)?b:pe)(e,me(t))},ye=(0,e.createContext)({}),be=" ";function xe(e,t){const n=null!=t?Ie(t):void 0,r=[];for(;null!=e.parentElement;)e=e.parentElement,(null==n||n(e))&&r.push(e);return r}function Ie(e){return"function"==typeof e?t=>t.namespaceURI===ms&&e(t):Array.isArray(e)?t=>t.namespaceURI===ms&&e.includes(t.localName):t=>t.namespaceURI===ms&&t.localName===e}function we(e,t){const n=Ie(t);return function e(t){for(let r=0,i=t.children.length;r<i;r++){const i=t.children[r];if(n(i))return i;const o=e(i);if(null!=o)return o}}(e)}function Te(e,t,n=!0){const r=Ie(t),i=[];return function e(t){for(let o=0,a=t.children.length;o<a;o++){const a=t.children[o];r(a)?(i.push(a),n&&e(a)):e(a)}}(e),i}function Me(e,t){const n=Ie(t);for(;null!=e.parentElement;)if(n(e=e.parentElement))return e}function Ae(e,t){const n=Ie(t);for(let t=0,r=e.children.length;t<r;t++){const r=e.children[t];if(n(r))return r}}function Ee(e,t){var n;return null!==(n=e.getAttribute(t))&&void 0!==n?n:void 0}function Ce(e,t){const n=e.getAttribute(t);return null!=n?Number(n):void 0}function Ne(e,t){return"true"===Ee(e,t)}function Se(e,t){const n=[];for(let r=0,i=e.children.length;r<i;r++){const i=e.children[r];n.push(t(i,r))}return n}function ke(e){return Te(e,["choice-answer","dropdown-answer","text-answer","scored-text-answer","dnd-answer"],!0)}function je(e){const t=Me(e,"question"),n=null==t?void 0:t.querySelectorAll("[question-id]");return n&&(null==n?void 0:n.length)>1}function De(e,t,...n){const r=document.createElement(e);return function(e,t){ve(t,((t,n)=>{"css"===n?e.style.cssText=t:n.startsWith("data-")?e.setAttribute(n,t):e[n]=t}))}(r,t),n.forEach((e=>r.appendChild("string"==typeof e?new Text(e):e))),r}function Oe(t,n){const{visibleTOCElements:r}=(0,e.useContext)(ye),[i,o]=(0,e.useState)(!1),a=`${t}-${n}`;return(0,e.useEffect)((()=>{(null==r?void 0:r.includes(a))&&!i?o(!0):!(null==r?void 0:r.includes(a))&&i&&o(!1)}),[r]),i}function Le(e){var t,n,r;const i=!e.tagName&&Array.from((null===(t=e.parentNode)||void 0===t?void 0:t.childNodes)||[]).indexOf(e),o=Array.from((null===(n=e.parentElement)||void 0===n?void 0:n.children)||[]).indexOf(e);let a=`${e.nodeName}:${o>0?o:i}`,s=e;for(;s.parentElement;){s=s.parentElement;const e=s.getAttribute("display-number"),t=Number(e)?e:Array.from((null===(r=s.parentElement)||void 0===r?void 0:r.children)||[s]).indexOf(s);a=`${s.getAttribute("id")||s.nodeName}:${t} > ${a}`}return a}const Re=M["__core-js_shared__"];var Pe,ze=(Pe=/[^.]+$/.exec(Re&&Re.keys&&Re.keys.IE_PROTO||""))?"Symbol(src)_1."+Pe:"";var Ue=Function.prototype.toString;const _e=function(e){if(null!=e){try{return Ue.call(e)}catch(e){}try{return e+""}catch(e){}}return""};var Be=/^\[object .+?Constructor\]$/,Fe=Function.prototype,Ge=Object.prototype,Ze=Fe.toString,He=Ge.hasOwnProperty,qe=RegExp("^"+Ze.call(He).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const Ye=function(e){return!(!le(e)||(t=e,ze&&ze in t))&&(ce(e)?qe:Be).test(_e(e));var t},Ve=function(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return Ye(n)?n:void 0},We=function(){try{var e=Ve(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),Qe=function(e,t,n){"__proto__"==t&&We?We(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},Je=function(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i<o;){var a=e[i];t(r,a,n(a),e)}return r},Xe=function(e,t,n,r){return pe(e,(function(e,i,o){t(r,e,n(e),o)})),r},$e=function(e,t){return e===t||e!=e&&t!=t},Ke=function(e,t){for(var n=e.length;n--;)if($e(e[n][0],t))return n;return-1};var et=Array.prototype.splice;function tt(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}tt.prototype.clear=function(){this.__data__=[],this.size=0},tt.prototype.delete=function(e){var t=this.__data__,n=Ke(t,e);return!(n<0||(n==t.length-1?t.pop():et.call(t,n,1),--this.size,0))},tt.prototype.get=function(e){var t=this.__data__,n=Ke(t,e);return n<0?void 0:t[n][1]},tt.prototype.has=function(e){return Ke(this.__data__,e)>-1},tt.prototype.set=function(e,t){var n=this.__data__,r=Ke(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};const nt=tt,rt=Ve(M,"Map"),it=Ve(Object,"create");var ot=Object.prototype.hasOwnProperty;var at=Object.prototype.hasOwnProperty;function st(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}st.prototype.clear=function(){this.__data__=it?it(null):{},this.size=0},st.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},st.prototype.get=function(e){var t=this.__data__;if(it){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return ot.call(t,e)?t[e]:void 0},st.prototype.has=function(e){var t=this.__data__;return it?void 0!==t[e]:at.call(t,e)},st.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=it&&void 0===t?"__lodash_hash_undefined__":t,this};const lt=st,ct=function(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map};function ut(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}ut.prototype.clear=function(){this.size=0,this.__data__={hash:new lt,map:new(rt||nt),string:new lt}},ut.prototype.delete=function(e){var t=ct(this,e).delete(e);return this.size-=t?1:0,t},ut.prototype.get=function(e){return ct(this,e).get(e)},ut.prototype.has=function(e){return ct(this,e).has(e)},ut.prototype.set=function(e,t){var n=ct(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};const dt=ut;function ft(e){var t=this.__data__=new nt(e);this.size=t.size}ft.prototype.clear=function(){this.__data__=new nt,this.size=0},ft.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},ft.prototype.get=function(e){return this.__data__.get(e)},ft.prototype.has=function(e){return this.__data__.has(e)},ft.prototype.set=function(e,t){var n=this.__data__;if(n instanceof nt){var r=n.__data__;if(!rt||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new dt(r)}return n.set(e,t),this.size=n.size,this};const pt=ft;function ht(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new dt;++t<n;)this.add(e[t])}ht.prototype.add=ht.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},ht.prototype.has=function(e){return this.__data__.has(e)};const gt=ht,mt=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1},vt=function(e,t,n,r,i,o){var a=1&n,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var c=o.get(e),u=o.get(t);if(c&&u)return c==t&&u==e;var d=-1,f=!0,p=2&n?new gt:void 0;for(o.set(e,t),o.set(t,e);++d<s;){var h=e[d],g=t[d];if(r)var m=a?r(g,h,d,t,e,o):r(h,g,d,e,t,o);if(void 0!==m){if(m)continue;f=!1;break}if(p){if(!mt(t,(function(e,t){if(a=t,!p.has(a)&&(h===e||i(h,e,n,r,o)))return p.push(t);var a}))){f=!1;break}}else if(h!==g&&!i(h,g,n,r,o)){f=!1;break}}return o.delete(e),o.delete(t),f},yt=M.Uint8Array,bt=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n},xt=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n};var It=A?A.prototype:void 0,wt=It?It.valueOf:void 0;const Tt=function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e},Mt=function(e,t,n){var r=t(e);return _(e)?r:Tt(r,n(e))},At=function(){return[]};var Et=Object.prototype.propertyIsEnumerable,Ct=Object.getOwnPropertySymbols;const Nt=Ct?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}(Ct(e),(function(t){return Et.call(e,t)})))}:At,St=function(e){return Mt(e,de,Nt)};var kt=Object.prototype.hasOwnProperty;const jt=Ve(M,"DataView"),Dt=Ve(M,"Promise"),Ot=Ve(M,"Set"),Lt=Ve(M,"WeakMap");var Rt="[object Map]",Pt="[object Promise]",zt="[object Set]",Ut="[object WeakMap]",_t="[object DataView]",Bt=_e(jt),Ft=_e(rt),Gt=_e(Dt),Zt=_e(Ot),Ht=_e(Lt),qt=D;(jt&&qt(new jt(new ArrayBuffer(1)))!=_t||rt&&qt(new rt)!=Rt||Dt&&qt(Dt.resolve())!=Pt||Ot&&qt(new Ot)!=zt||Lt&&qt(new Lt)!=Ut)&&(qt=function(e){var t=D(e),n="[object Object]"==t?e.constructor:void 0,r=n?_e(n):"";if(r)switch(r){case Bt:return _t;case Ft:return Rt;case Gt:return Pt;case Zt:return zt;case Ht:return Ut}return t});const Yt=qt;var Vt="[object Arguments]",Wt="[object Array]",Qt="[object Object]",Jt=Object.prototype.hasOwnProperty;const Xt=function(e,t,n,r,i,o){var a=_(e),s=_(t),l=a?Wt:Yt(e),c=s?Wt:Yt(t),u=(l=l==Vt?Qt:l)==Qt,d=(c=c==Vt?Qt:c)==Qt,f=l==c;if(f&&Z(e)){if(!Z(t))return!1;a=!0,u=!1}if(f&&!u)return o||(o=new pt),a||ee(e)?vt(e,t,n,r,i,o):function(e,t,n,r,i,o,a){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!o(new yt(e),new yt(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return $e(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var s=bt;case"[object Set]":var l=1&r;if(s||(s=xt),e.size!=t.size&&!l)return!1;var c=a.get(e);if(c)return c==t;r|=2,a.set(e,t);var u=vt(s(e),s(t),r,i,o,a);return a.delete(e),u;case"[object Symbol]":if(wt)return wt.call(e)==wt.call(t)}return!1}(e,t,l,n,r,i,o);if(!(1&n)){var p=u&&Jt.call(e,"__wrapped__"),h=d&&Jt.call(t,"__wrapped__");if(p||h){var g=p?e.value():e,m=h?t.value():t;return o||(o=new pt),i(g,m,n,r,o)}}return!!f&&(o||(o=new pt),function(e,t,n,r,i,o){var a=1&n,s=St(e),l=s.length;if(l!=St(t).length&&!a)return!1;for(var c=l;c--;){var u=s[c];if(!(a?u in t:kt.call(t,u)))return!1}var d=o.get(e),f=o.get(t);if(d&&f)return d==t&&f==e;var p=!0;o.set(e,t),o.set(t,e);for(var h=a;++c<l;){var g=e[u=s[c]],m=t[u];if(r)var v=a?r(m,g,u,t,e,o):r(g,m,u,e,t,o);if(!(void 0===v?g===m||i(g,m,n,r,o):v)){p=!1;break}h||(h="constructor"==u)}if(p&&!h){var y=e.constructor,b=t.constructor;y==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof b&&b instanceof b||(p=!1)}return o.delete(e),o.delete(t),p}(e,t,n,r,i,o))},$t=function e(t,n,r,i,o){return t===n||(null==t||null==n||!O(t)&&!O(n)?t!=t&&n!=n:Xt(t,n,r,i,e,o))},Kt=function(e){return e==e&&!le(e)},en=function(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}},tn=function(e){var t=function(e){for(var t=de(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,Kt(i)]}return t}(e);return 1==t.length&&t[0][2]?en(t[0][0],t[0][1]):function(n){return n===e||function(e,t,n,r){var i=n.length,o=i,a=!r;if(null==e)return!o;for(e=Object(e);i--;){var s=n[i];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<o;){var l=(s=n[i])[0],c=e[l],u=s[1];if(a&&s[2]){if(void 0===c&&!(l in e))return!1}else{var d=new pt;if(r)var f=r(c,u,l,e,t,d);if(!(void 0===f?$t(u,c,3,r,d):f))return!1}}return!0}(n,e,t)}},nn=function(e){return"symbol"==typeof e||O(e)&&"[object Symbol]"==D(e)};var rn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,on=/^\w*$/;const an=function(e,t){if(_(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!nn(e))||on.test(e)||!rn.test(e)||null!=t&&e in Object(t)};function sn(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(sn.Cache||dt),n}sn.Cache=dt;var ln=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,cn=/\\(\\)?/g;const un=(dn=sn((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ln,(function(e,n,r,i){t.push(r?i.replace(cn,"$1"):n||e)})),t}),(function(e){return 500===fn.size&&fn.clear(),e})),fn=dn.cache,dn);var dn,fn;const pn=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i};var hn=A?A.prototype:void 0,gn=hn?hn.toString:void 0;const mn=function e(t){if("string"==typeof t)return t;if(_(t))return pn(t,e)+"";if(nn(t))return gn?gn.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n},vn=function(e){return null==e?"":mn(e)},yn=function(e,t){return _(e)?e:an(e,t)?[e]:un(vn(e))},bn=function(e){if("string"==typeof e||nn(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t},xn=function(e,t){for(var n=0,r=(t=yn(t,e)).length;null!=e&&n<r;)e=e[bn(t[n++])];return n&&n==r?e:void 0},In=function(e,t,n){var r=null==e?void 0:xn(e,t);return void 0===r?n:r},wn=function(e,t){return null!=e&&t in Object(e)},Tn=function(e,t){return null!=e&&function(e,t,n){for(var r=-1,i=(t=yn(t,e)).length,o=!1;++r<i;){var a=bn(t[r]);if(!(o=null!=e&&n(e,a)))break;e=e[a]}return o||++r!=i?o:!!(i=null==e?0:e.length)&&Y(i)&&q(a,i)&&(_(e)||U(e))}(e,t,wn)},Mn=function(e){return an(e)?(t=bn(e),function(e){return null==e?void 0:e[t]}):function(e){return function(t){return xn(t,e)}}(e);var t},An=function(e){return"function"==typeof e?e:null==e?ge:"object"==typeof e?_(e)?(t=e[0],n=e[1],an(t)&&Kt(n)?en(bn(t),n):function(e){var r=In(e,t);return void 0===r&&r===n?Tn(e,t):$t(n,r,3)}):tn(e):Mn(e);var t,n},En=function(e,t){return function(n,r){var i=_(n)?Je:Xe,o=t?t():{};return i(n,e,An(r),o)}};var Cn=Object.prototype.hasOwnProperty;const Nn=En((function(e,t,n){Cn.call(e,n)?e[n].push(t):Qe(e,n,[t])})),Sn=function(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r<i;)o[r]=e[r+t];return o},kn=function(e,t){return e&&e.length?function(e,t,n,r){for(var i=e.length,o=r?i:-1;(r?o--:++o<i)&&t(e[o],o,e););return n?Sn(e,r?0:o,r?o+1:i):Sn(e,r?o+1:0,r?i:o)}(e,An(t)):[]},jn=function(e){return e&&e.length?function(e,t){for(var n,r=-1,i=e.length;++r<i;){var o=t(e[r]);void 0!==o&&(n=void 0===n?o:n+o)}return n}(e,ge):0},Dn=function(e){for(var t=-1,n=null==e?0:e.length,r=0,i=[];++t<n;){var o=e[t];o&&(i[r++]=o)}return i},On=function(e,t,n){for(var r=-1,i=e.length;++r<i;){var o=e[r],a=t(o);if(null!=a&&(void 0===s?a==a&&!nn(a):n(a,s)))var s=a,l=o}return l},Ln=function(e,t){return e<t},Rn=function(e,t){return e&&e.length?On(e,An(t),Ln):void 0},Pn=function(e,t){return e>t},zn=function(e,t){return e&&e.length?On(e,An(t),Pn):void 0};var Un=A?A.isConcatSpreadable:void 0;const _n=function(e){return _(e)||U(e)||!!(Un&&e&&e[Un])},Bn=function e(t,n,r,i,o){var a=-1,s=t.length;for(r||(r=_n),o||(o=[]);++a<s;){var l=t[a];n>0&&r(l)?n>1?e(l,n-1,r,i,o):Tt(o,l):i||(o[o.length]=l)}return o},Fn=function(e,t){var n=-1,r=ue(e)?Array(e.length):[];return pe(e,(function(e,i,o){r[++n]=t(e,i,o)})),r},Gn=function(e,t){if(e!==t){var n=void 0!==e,r=null===e,i=e==e,o=nn(e),a=void 0!==t,s=null===t,l=t==t,c=nn(t);if(!s&&!c&&!o&&e>t||o&&a&&l&&!s&&!c||r&&a&&l||!n&&l||!i)return 1;if(!r&&!o&&!c&&e<t||c&&n&&i&&!r&&!o||s&&n&&i||!a&&i||!l)return-1}return 0},Zn=function(e,t,n){t=t.length?pn(t,(function(e){return _(e)?function(t){return xn(t,1===e.length?e[0]:e)}:e})):[ge];var r=-1;return t=pn(t,W(An)),function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(Fn(e,(function(e,n,i){return{criteria:pn(t,(function(t){return t(e)})),index:++r,value:e}})),(function(e,t){return function(e,t,n){for(var r=-1,i=e.criteria,o=t.criteria,a=i.length,s=n.length;++r<a;){var l=Gn(i[r],o[r]);if(l)return r>=s?l:l*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}))};var Hn=Math.max;const qn=function(e,t,n){return t=Hn(void 0===t?e.length-1:t,0),function(){for(var r=arguments,i=-1,o=Hn(r.length-t,0),a=Array(o);++i<o;)a[i]=r[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=r[i];return s[t]=n(a),function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}(e,this,s)}},Yn=We?function(e,t){return We(e,"toString",{configurable:!0,enumerable:!1,value:(n=t,function(){return n}),writable:!0});var n}:ge;var Vn=Date.now;const Wn=(Qn=Yn,Jn=0,Xn=0,function(){var e=Vn(),t=16-(e-Xn);if(Xn=e,t>0){if(++Jn>=800)return arguments[0]}else Jn=0;return Qn.apply(void 0,arguments)});var Qn,Jn,Xn;const $n=function(e,t,n){if(!le(n))return!1;var r=typeof t;return!!("number"==r?ue(n)&&q(t,n.length):"string"==r&&t in n)&&$e(n[t],e)},Kn=function(e,t){return Wn(qn(e,void 0,ge),e+"")}((function(e,t){if(null==e)return[];var n=t.length;return n>1&&$n(e,t[0],t[1])?t=[]:n>2&&$n(t[0],t[1],t[2])&&(t=[t[0]]),Zn(e,Bn(t,1),[])})),er=En((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var tr=/\s/;const nr=function(e){for(var t=e.length;t--&&tr.test(e.charAt(t)););return t};var rr=/^\s+/;var ir=/^[-+]0x[0-9a-f]+$/i,or=/^0b[01]+$/i,ar=/^0o[0-7]+$/i,sr=parseInt;const lr=function(e){if("number"==typeof e)return e;if(nn(e))return NaN;if(le(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=le(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;var n;e=(n=e)?n.slice(0,nr(n)+1).replace(rr,""):n;var r=or.test(e);return r||ar.test(e)?sr(e.slice(2),r?2:8):ir.test(e)?NaN:+e},cr=function(e,t,n){return void 0===n&&(n=t,t=void 0),void 0!==n&&(n=(n=lr(n))==n?n:0),void 0!==t&&(t=(t=lr(t))==t?t:0),function(e,t,n){return e==e&&(void 0!==n&&(e=e<=n?e:n),void 0!==t&&(e=e>=t?e:t)),e}(lr(e),t,n)};function ur(e,t){if(function(e){var t;const n=e.cloneContents(),r=Array.from(n.childNodes).some((e=>e instanceof Element&&(e.classList.contains("e-annotation-wrapper")||"IMG"===e.tagName)));return 0===(null===(t=n.textContent)||void 0===t?void 0:t.length)&&!r}(t))return;const n=function(e,t=document){let n=null;const r=[],i=t.createTreeWalker(e,NodeFilter.SHOW_TEXT+NodeFilter.SHOW_ELEMENT,null);for(;n=i.nextNode();)r.push(n);return r}(e),r=o(t.startContainer,t.startOffset,e),i=o(t.endContainer,t.endOffset,e)-r;if(!(i<=0))return{startIndex:r,length:i};function o(e,t,r){const i=e===r,o=i?e.childNodes[t]:e,a=i?0:t,s=kn(n,(e=>e!==o));return a+jn(s.map(fr))}}function dr(e,t,n){return function(e,t,n){const r=mr(e,{startIndex:t,length:n,message:""});return Dn(r.overlapping.map((e=>e.message))).reduceRight(((e,t)=>`${t} / ${e}`),"")}(e.filter((e=>"text"===e.type)),t,n)}function fr(e){var t;return e.nodeType===Node.TEXT_NODE?null===(t=e.textContent)||void 0===t?void 0:t.length:"IMG"===e.nodeName?1:0}function pr(e,t,n,r){const i=n.style;if(t){i.display="block";const o=t.getBoundingClientRect(),a=n.getBoundingClientRect(),s=e.left-o.left,l=e.bottom-o.top+r;i.top=`${String(l)}px`,i.left=`${String(s+a.width<o.width-30?s+20:o.width-a.width-20)}px`}}function hr(){const e=window.getSelection();return null!==e&&function(e){var t,n,r;if("None"===e.type||"Caret"===e.type||0===e.rangeCount)return!1;const i=e.getRangeAt(0).startContainer,o=e.getRangeAt(0).endContainer;return e.rangeCount>0&&null!==(null===(t=i.parentElement)||void 0===t?void 0:t.closest(".e-grading-answer"))&&null!==(null===(n=o.parentElement)||void 0===n?void 0:n.closest(".e-grading-answer"))&&null===(null===(r=i.parentElement)||void 0===r?void 0:r.closest(".remove-annotation-popup"))}(e)&&("Range"===(null==(t=e)?void 0:t.type)||function(e){const t=e.getRangeAt(0);return!!e.rangeCount&&(t.toString().length>0||n(t.startContainer)||n(t.endContainer))}(e));var t;function n(e){return e.classList.contains("answer")}}function gr(e,t,n){const r=mr(n,t);if(r.overlapping.length>0){r.overlapping.push(t);const e=Rn(r.overlapping,(e=>e.startIndex)),n=zn(r.overlapping,(e=>e.startIndex+e.length)),i={startIndex:e.startIndex,length:n.startIndex+n.length-e.startIndex,message:t.message};r.nonOverlapping.push(i)}else r.nonOverlapping.push(t);return Kn(r.nonOverlapping,(t=>{return"line"===t.type||"rect"===t.type?function(e,t){var n;const r=document.createRange();return r.selectNode(e),null===(n=ur(t,r))||void 0===n?void 0:n.startIndex}((n=e,r=t.attachmentIndex,n.querySelectorAll("img").item(r)),e):t.startIndex;var n,r}),(e=>"rect"===e.type?e.y:"line"===e.type?e.y1:void 0),(e=>"rect"===e.type?e.x:"line"===e.type?e.x1:void 0))}function mr(e,t){const n=er(e,(e=>{const n=t.startIndex+t.length,r=e.startIndex+e.length;return t.startIndex>=e.startIndex&&t.startIndex<=r||n>=e.startIndex&&n<=r||t.startIndex<=e.startIndex&&n>=r}));return{overlapping:n[0],nonOverlapping:n[1]}}function vr(e){return cr(e,0,1)}function yr(e){e.preventDefault(),e.stopPropagation()}function br(e,t){e.style.display=t?"initial":"none"}function xr(){return matchMedia("(pointer:fine)").matches}const Ir=e=>{var t;return null===(t=null==e?void 0:e.closest("div[data-annotation-anchor]"))||void 0===t?void 0:t.getAttribute("data-annotation-anchor")},wr=e=>(null==e?void 0:e.getAttribute("data-annotation-path"))&&"MARK"!==e.tagName;var Tr=a(8115),Mr=a.n(Tr),Ar=a(3373),Er=a.n(Ar);const Cr=()=>{};let Nr={},Sr={},kr=null,jr={mark:Cr,measure:Cr};try{"undefined"!=typeof window&&(Nr=window),"undefined"!=typeof document&&(Sr=document),"undefined"!=typeof MutationObserver&&(kr=MutationObserver),"undefined"!=typeof performance&&(jr=performance)}catch(e){}const{userAgent:Dr=""}=Nr.navigator||{},Or=Nr,Lr=Sr,Rr=kr,Pr=jr,zr=(Or.document,!!Lr.documentElement&&!!Lr.head&&"function"==typeof Lr.addEventListener&&"function"==typeof Lr.createElement),Ur=~Dr.indexOf("MSIE")||~Dr.indexOf("Trident/");var _r="classic",Br="duotone",Fr="sharp",Gr="sharp-duotone",Zr=[_r,Br,Fr,Gr],Hr={classic:{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fad:"duotone","fa-duotone":"duotone",fab:"brands","fa-brands":"brands"},sharp:{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light",fast:"thin","fa-thin":"thin"},"sharp-duotone":{fa:"solid",fasds:"solid","fa-solid":"solid"}},qr=[1,2,3,4,5,6,7,8,9,10],Yr=qr.concat([11,12,13,14,15,16,17,18,19,20]),Vr={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},Wr=[...Object.keys({classic:["fas","far","fal","fat"],sharp:["fass","fasr","fasl","fast"],"sharp-duotone":["fasds"]}),"solid","regular","light","thin","duotone","brands","2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul",Vr.GROUP,Vr.SWAP_OPACITY,Vr.PRIMARY,Vr.SECONDARY].concat(qr.map((e=>"".concat(e,"x")))).concat(Yr.map((e=>"w-".concat(e))));const Qr="___FONT_AWESOME___",Jr=16,Xr="fa",$r="svg-inline--fa",Kr="data-fa-i2svg",ei="data-fa-pseudo-element",ti="data-fa-pseudo-element-pending",ni="data-prefix",ri="data-icon",ii="fontawesome-i2svg",oi="async",ai=["HTML","HEAD","STYLE","SCRIPT"],si=(()=>{try{return!0}catch(e){return!1}})(),li=[_r,Fr,Gr];function ci(e){return new Proxy(e,{get:(e,t)=>t in e?e[t]:e[_r]})}const ui={...Hr};ui[_r]={...Hr[_r],fak:"kit","fa-kit":"kit",fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"};const di=ci(ui),fi={classic:{solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab"},sharp:{solid:"fass",regular:"fasr",light:"fasl",thin:"fast"},"sharp-duotone":{solid:"fasds"}};fi[_r]={...fi[_r],kit:"fak","kit-duotone":"fakd"};const pi=ci(fi),hi={classic:{fab:"fa-brands",fad:"fa-duotone",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"},sharp:{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"},"sharp-duotone":{fasds:"fa-solid"}};hi[_r]={...hi[_r],fak:"fa-kit"};const gi=ci(hi),mi={classic:{"fa-brands":"fab","fa-duotone":"fad","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"},sharp:{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"},"sharp-duotone":{"fa-solid":"fasds"}};mi[_r]={...mi[_r],"fa-kit":"fak"};const vi=ci(mi),yi=/fa(s|r|l|t|d|b|k|kd|ss|sr|sl|st|sds)?[\-\ ]/,bi="fa-layers-text",xi=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit)?.*/i,Ii=(ci({classic:{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},sharp:{900:"fass",400:"fasr",300:"fasl",100:"fast"},"sharp-duotone":{900:"fasds"}}),["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"]),wi=Vr,Ti=new Set;Object.keys(pi[_r]).map(Ti.add.bind(Ti)),Object.keys(pi[Fr]).map(Ti.add.bind(Ti)),Object.keys(pi[Gr]).map(Ti.add.bind(Ti));const Mi=["kit",...Wr],Ai=Or.FontAwesomeConfig||{};Lr&&"function"==typeof Lr.querySelector&&[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach((e=>{let[t,n]=e;const r=function(e){return""===e||"false"!==e&&("true"===e||e)}(function(e){var t=Lr.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}(t));null!=r&&(Ai[n]=r)}));const Ei={styleDefault:"solid",familyDefault:"classic",cssPrefix:Xr,replacementClass:$r,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};Ai.familyPrefix&&(Ai.cssPrefix=Ai.familyPrefix);const Ci={...Ei,...Ai};Ci.autoReplaceSvg||(Ci.observeMutations=!1);const Ni={};Object.keys(Ei).forEach((e=>{Object.defineProperty(Ni,e,{enumerable:!0,set:function(t){Ci[e]=t,Si.forEach((e=>e(Ni)))},get:function(){return Ci[e]}})})),Object.defineProperty(Ni,"familyPrefix",{enumerable:!0,set:function(e){Ci.cssPrefix=e,Si.forEach((e=>e(Ni)))},get:function(){return Ci.cssPrefix}}),Or.FontAwesomeConfig=Ni;const Si=[],ki=Jr,ji={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1},Di="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function Oi(){let e=12,t="";for(;e-- >0;)t+=Di[62*Math.random()|0];return t}function Li(e){const t=[];for(let n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function Ri(e){return e.classList?Li(e.classList):(e.getAttribute("class")||"").split(" ").filter((e=>e))}function Pi(e){return"".concat(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function zi(e){return Object.keys(e||{}).reduce(((t,n)=>t+"".concat(n,": ").concat(e[n].trim(),";")),"")}function Ui(e){return e.size!==ji.size||e.x!==ji.x||e.y!==ji.y||e.rotate!==ji.rotate||e.flipX||e.flipY}var _i=':root, :host {\n --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Free";\n --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Free";\n --fa-font-light: normal 300 1em/1 "Font Awesome 6 Pro";\n --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Pro";\n --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone";\n --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";\n --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp";\n --fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 6 Sharp";\n --fa-font-sharp-light: normal 300 1em/1 "Font Awesome 6 Sharp";\n --fa-font-sharp-thin: normal 100 1em/1 "Font Awesome 6 Sharp";\n --fa-font-sharp-duotone-solid: normal 900 1em/1 "Font Awesome 6 Sharp Duotone";\n}\n\nsvg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {\n overflow: visible;\n box-sizing: content-box;\n}\n\n.svg-inline--fa {\n display: var(--fa-display, inline-block);\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-2xs {\n vertical-align: 0.1em;\n}\n.svg-inline--fa.fa-xs {\n vertical-align: 0em;\n}\n.svg-inline--fa.fa-sm {\n vertical-align: -0.0714285705em;\n}\n.svg-inline--fa.fa-lg {\n vertical-align: -0.2em;\n}\n.svg-inline--fa.fa-xl {\n vertical-align: -0.25em;\n}\n.svg-inline--fa.fa-2xl {\n vertical-align: -0.3125em;\n}\n.svg-inline--fa.fa-pull-left {\n margin-right: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n margin-left: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-li {\n width: var(--fa-li-width, 2em);\n top: 0.25em;\n}\n.svg-inline--fa.fa-fw {\n width: var(--fa-fw-width, 1.25em);\n}\n\n.fa-layers svg.svg-inline--fa {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.fa-layers-counter, .fa-layers-text {\n display: inline-block;\n position: absolute;\n text-align: center;\n}\n\n.fa-layers {\n display: inline-block;\n height: 1em;\n position: relative;\n text-align: center;\n vertical-align: -0.125em;\n width: 1em;\n}\n.fa-layers svg.svg-inline--fa {\n transform-origin: center center;\n}\n\n.fa-layers-text {\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n transform-origin: center center;\n}\n\n.fa-layers-counter {\n background-color: var(--fa-counter-background-color, #ff253a);\n border-radius: var(--fa-counter-border-radius, 1em);\n box-sizing: border-box;\n color: var(--fa-inverse, #fff);\n line-height: var(--fa-counter-line-height, 1);\n max-width: var(--fa-counter-max-width, 5em);\n min-width: var(--fa-counter-min-width, 1.5em);\n overflow: hidden;\n padding: var(--fa-counter-padding, 0.25em 0.5em);\n right: var(--fa-right, 0);\n text-overflow: ellipsis;\n top: var(--fa-top, 0);\n transform: scale(var(--fa-counter-scale, 0.25));\n transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n bottom: var(--fa-bottom, 0);\n right: var(--fa-right, 0);\n top: auto;\n transform: scale(var(--fa-layers-scale, 0.25));\n transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n bottom: var(--fa-bottom, 0);\n left: var(--fa-left, 0);\n right: auto;\n top: auto;\n transform: scale(var(--fa-layers-scale, 0.25));\n transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n top: var(--fa-top, 0);\n right: var(--fa-right, 0);\n transform: scale(var(--fa-layers-scale, 0.25));\n transform-origin: top right;\n}\n\n.fa-layers-top-left {\n left: var(--fa-left, 0);\n right: auto;\n top: var(--fa-top, 0);\n transform: scale(var(--fa-layers-scale, 0.25));\n transform-origin: top left;\n}\n\n.fa-1x {\n font-size: 1em;\n}\n\n.fa-2x {\n font-size: 2em;\n}\n\n.fa-3x {\n font-size: 3em;\n}\n\n.fa-4x {\n font-size: 4em;\n}\n\n.fa-5x {\n font-size: 5em;\n}\n\n.fa-6x {\n font-size: 6em;\n}\n\n.fa-7x {\n font-size: 7em;\n}\n\n.fa-8x {\n font-size: 8em;\n}\n\n.fa-9x {\n font-size: 9em;\n}\n\n.fa-10x {\n font-size: 10em;\n}\n\n.fa-2xs {\n font-size: 0.625em;\n line-height: 0.1em;\n vertical-align: 0.225em;\n}\n\n.fa-xs {\n font-size: 0.75em;\n line-height: 0.0833333337em;\n vertical-align: 0.125em;\n}\n\n.fa-sm {\n font-size: 0.875em;\n line-height: 0.0714285718em;\n vertical-align: 0.0535714295em;\n}\n\n.fa-lg {\n font-size: 1.25em;\n line-height: 0.05em;\n vertical-align: -0.075em;\n}\n\n.fa-xl {\n font-size: 1.5em;\n line-height: 0.0416666682em;\n vertical-align: -0.125em;\n}\n\n.fa-2xl {\n font-size: 2em;\n line-height: 0.03125em;\n vertical-align: -0.1875em;\n}\n\n.fa-fw {\n text-align: center;\n width: 1.25em;\n}\n\n.fa-ul {\n list-style-type: none;\n margin-left: var(--fa-li-margin, 2.5em);\n padding-left: 0;\n}\n.fa-ul > li {\n position: relative;\n}\n\n.fa-li {\n left: calc(-1 * var(--fa-li-width, 2em));\n position: absolute;\n text-align: center;\n width: var(--fa-li-width, 2em);\n line-height: inherit;\n}\n\n.fa-border {\n border-color: var(--fa-border-color, #eee);\n border-radius: var(--fa-border-radius, 0.1em);\n border-style: var(--fa-border-style, solid);\n border-width: var(--fa-border-width, 0.08em);\n padding: var(--fa-border-padding, 0.2em 0.25em 0.15em);\n}\n\n.fa-pull-left {\n float: left;\n margin-right: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-pull-right {\n float: right;\n margin-left: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-beat {\n animation-name: fa-beat;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-bounce {\n animation-name: fa-bounce;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n}\n\n.fa-fade {\n animation-name: fa-fade;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-beat-fade {\n animation-name: fa-beat-fade;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-flip {\n animation-name: fa-flip;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-shake {\n animation-name: fa-shake;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin {\n animation-name: fa-spin;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 2s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin-reverse {\n --fa-animation-direction: reverse;\n}\n\n.fa-pulse,\n.fa-spin-pulse {\n animation-name: fa-spin;\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, steps(8));\n}\n\n@media (prefers-reduced-motion: reduce) {\n .fa-beat,\n.fa-bounce,\n.fa-fade,\n.fa-beat-fade,\n.fa-flip,\n.fa-pulse,\n.fa-shake,\n.fa-spin,\n.fa-spin-pulse {\n animation-delay: -1ms;\n animation-duration: 1ms;\n animation-iteration-count: 1;\n transition-delay: 0s;\n transition-duration: 0s;\n }\n}\n@keyframes fa-beat {\n 0%, 90% {\n transform: scale(1);\n }\n 45% {\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@keyframes fa-bounce {\n 0% {\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n transform: scale(1, 1) translateY(0);\n }\n}\n@keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@keyframes fa-flip {\n 50% {\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@keyframes fa-shake {\n 0% {\n transform: rotate(-15deg);\n }\n 4% {\n transform: rotate(15deg);\n }\n 8%, 24% {\n transform: rotate(-18deg);\n }\n 12%, 28% {\n transform: rotate(18deg);\n }\n 16% {\n transform: rotate(-22deg);\n }\n 20% {\n transform: rotate(22deg);\n }\n 32% {\n transform: rotate(-12deg);\n }\n 36% {\n transform: rotate(12deg);\n }\n 40%, 100% {\n transform: rotate(0deg);\n }\n}\n@keyframes fa-spin {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n}\n.fa-rotate-90 {\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n transform: scale(1, -1);\n}\n\n.fa-flip-both,\n.fa-flip-horizontal.fa-flip-vertical {\n transform: scale(-1, -1);\n}\n\n.fa-rotate-by {\n transform: rotate(var(--fa-rotate-angle, 0));\n}\n\n.fa-stack {\n display: inline-block;\n vertical-align: middle;\n height: 2em;\n position: relative;\n width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n z-index: var(--fa-stack-z-index, auto);\n}\n\n.svg-inline--fa.fa-stack-1x {\n height: 1em;\n width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n height: 2em;\n width: 2.5em;\n}\n\n.fa-inverse {\n color: var(--fa-inverse, #fff);\n}\n\n.sr-only,\n.fa-sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.sr-only-focusable:not(:focus),\n.fa-sr-only-focusable:not(:focus) {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.svg-inline--fa .fa-primary {\n fill: var(--fa-primary-color, currentColor);\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n fill: var(--fa-secondary-color, currentColor);\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n fill: black;\n}\n\n.fad.fa-inverse,\n.fa-duotone.fa-inverse {\n color: var(--fa-inverse, #fff);\n}';function Bi(){const e=Xr,t=$r,n=Ni.cssPrefix,r=Ni.replacementClass;let i=_i;if(n!==e||r!==t){const o=new RegExp("\\.".concat(e,"\\-"),"g"),a=new RegExp("\\--".concat(e,"\\-"),"g"),s=new RegExp("\\.".concat(t),"g");i=i.replace(o,".".concat(n,"-")).replace(a,"--".concat(n,"-")).replace(s,".".concat(r))}return i}let Fi=!1;function Gi(){Ni.autoAddCss&&!Fi&&(function(e){if(!e||!zr)return;const t=Lr.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;const n=Lr.head.childNodes;let r=null;for(let e=n.length-1;e>-1;e--){const t=n[e],i=(t.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(i)>-1&&(r=t)}Lr.head.insertBefore(t,r)}(Bi()),Fi=!0)}var Zi={mixout:()=>({dom:{css:Bi,insertCss:Gi}}),hooks:()=>({beforeDOMElementCreation(){Gi()},beforeI2svg(){Gi()}})};const Hi=Or||{};Hi[Qr]||(Hi[Qr]={}),Hi[Qr].styles||(Hi[Qr].styles={}),Hi[Qr].hooks||(Hi[Qr].hooks={}),Hi[Qr].shims||(Hi[Qr].shims=[]);var qi=Hi[Qr];const Yi=[],Vi=function(){Lr.removeEventListener("DOMContentLoaded",Vi),Wi=1,Yi.map((e=>e()))};let Wi=!1;function Qi(e){const{tag:t,attributes:n={},children:r=[]}=e;return"string"==typeof e?Pi(e):"<".concat(t," ").concat(function(e){return Object.keys(e||{}).reduce(((t,n)=>t+"".concat(n,'="').concat(Pi(e[n]),'" ')),"").trim()}(n),">").concat(r.map(Qi).join(""),"</").concat(t,">")}function Ji(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}zr&&(Wi=(Lr.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(Lr.readyState),Wi||Lr.addEventListener("DOMContentLoaded",Vi));var Xi=function(e,t,n,r){var i,o,a,s=Object.keys(e),l=s.length,c=void 0!==r?function(e,t){return function(n,r,i,o){return e.call(t,n,r,i,o)}}(t,r):t;for(void 0===n?(i=1,a=e[s[0]]):(i=0,a=n);i<l;i++)a=c(a,e[o=s[i]],o,e);return a};function $i(e){const t=function(e){const t=[];let n=0;const r=e.length;for(;n<r;){const i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){const r=e.charCodeAt(n++);56320==(64512&r)?t.push(((1023&i)<<10)+(1023&r)+65536):(t.push(i),n--)}else t.push(i)}return t}(e);return 1===t.length?t[0].toString(16):null}function Ki(e){return Object.keys(e).reduce(((t,n)=>{const r=e[n];return r.icon?t[r.iconName]=r.icon:t[n]=r,t}),{})}function eo(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{skipHooks:r=!1}=n,i=Ki(t);"function"!=typeof qi.hooks.addPack||r?qi.styles[e]={...qi.styles[e]||{},...i}:qi.hooks.addPack(e,Ki(t)),"fas"===e&&eo("fa",t)}const{styles:to,shims:no}=qi,ro={[_r]:Object.values(gi[_r]),[Fr]:Object.values(gi[Fr]),[Gr]:Object.values(gi[Gr])};let io=null,oo={},ao={},so={},lo={},co={};const uo={[_r]:Object.keys(di[_r]),[Fr]:Object.keys(di[Fr]),[Gr]:Object.keys(di[Gr])};const fo=()=>{const e=e=>Xi(to,((t,n,r)=>(t[r]=Xi(n,e,{}),t)),{});oo=e(((e,t,n)=>(t[3]&&(e[t[3]]=n),t[2]&&t[2].filter((e=>"number"==typeof e)).forEach((t=>{e[t.toString(16)]=n})),e))),ao=e(((e,t,n)=>(e[n]=n,t[2]&&t[2].filter((e=>"string"==typeof e)).forEach((t=>{e[t]=n})),e))),co=e(((e,t,n)=>{const r=t[2];return e[n]=n,r.forEach((t=>{e[t]=n})),e}));const t="far"in to||Ni.autoFetchSvg,n=Xi(no,((e,n)=>{const r=n[0];let i=n[1];const o=n[2];return"far"!==i||t||(i="fas"),"string"==typeof r&&(e.names[r]={prefix:i,iconName:o}),"number"==typeof r&&(e.unicodes[r.toString(16)]={prefix:i,iconName:o}),e}),{names:{},unicodes:{}});so=n.names,lo=n.unicodes,io=bo(Ni.styleDefault,{family:Ni.familyDefault})};var po;function ho(e,t){return(oo[e]||{})[t]}function go(e,t){return(co[e]||{})[t]}function mo(e){return so[e]||{prefix:null,iconName:null}}function vo(){return io}po=e=>{io=bo(e.styleDefault,{family:Ni.familyDefault})},Si.push(po),fo();const yo=()=>({prefix:null,iconName:null,rest:[]});function bo(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{family:n=_r}=t,r=di[n][e],i=pi[n][e]||pi[n][r],o=e in qi.styles?e:null;return i||o||null}const xo={[_r]:Object.keys(gi[_r]),[Fr]:Object.keys(gi[Fr]),[Gr]:Object.keys(gi[Gr])};function Io(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{skipLookups:n=!1}=t,r={[_r]:"".concat(Ni.cssPrefix,"-").concat(_r),[Fr]:"".concat(Ni.cssPrefix,"-").concat(Fr),[Gr]:"".concat(Ni.cssPrefix,"-").concat(Gr)};let i=null,o=_r;const a=Zr.filter((e=>e!==Br));a.forEach((t=>{(e.includes(r[t])||e.some((e=>xo[t].includes(e))))&&(o=t)}));const s=e.reduce(((e,t)=>{const s=function(e,t){const n=t.split("-"),r=n[0],i=n.slice(1).join("-");return r!==e||""===i||(o=i,~Mi.indexOf(o))?null:i;var o}(Ni.cssPrefix,t);if(to[t]?(t=ro[o].includes(t)?vi[o][t]:t,i=t,e.prefix=t):uo[o].indexOf(t)>-1?(i=t,e.prefix=bo(t,{family:o})):s?e.iconName=s:t===Ni.replacementClass||a.some((e=>t===r[e]))||e.rest.push(t),!n&&e.prefix&&e.iconName){const t="fa"===i?mo(e.iconName):{},n=go(e.prefix,e.iconName);t.prefix&&(i=null),e.iconName=t.iconName||n||e.iconName,e.prefix=t.prefix||e.prefix,"far"!==e.prefix||to.far||!to.fas||Ni.autoFetchSvg||(e.prefix="fas")}return e}),yo());return(e.includes("fa-brands")||e.includes("fab"))&&(s.prefix="fab"),(e.includes("fa-duotone")||e.includes("fad"))&&(s.prefix="fad"),s.prefix||o!==Fr||!to.fass&&!Ni.autoFetchSvg||(s.prefix="fass",s.iconName=go(s.prefix,s.iconName)||s.iconName),s.prefix||o!==Gr||!to.fasds&&!Ni.autoFetchSvg||(s.prefix="fasds",s.iconName=go(s.prefix,s.iconName)||s.iconName),"fa"!==s.prefix&&"fa"!==i||(s.prefix=vo()||"fas"),s}let wo=[],To={};const Mo={},Ao=Object.keys(Mo);function Eo(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return(To[e]||[]).forEach((e=>{t=e.apply(null,[t,...r])})),t}function Co(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];(To[e]||[]).forEach((e=>{e.apply(null,n)}))}function No(){const e=arguments[0],t=Array.prototype.slice.call(arguments,1);return Mo[e]?Mo[e].apply(null,t):void 0}function So(e){"fa"===e.prefix&&(e.prefix="fas");let{iconName:t}=e;const n=e.prefix||vo();if(t)return t=go(n,t)||t,Ji(ko.definitions,n,t)||Ji(qi.styles,n,t)}const ko=new class{constructor(){this.definitions={}}add(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=t.reduce(this._pullDefinitions,{});Object.keys(r).forEach((e=>{this.definitions[e]={...this.definitions[e]||{},...r[e]},eo(e,r[e]);const t=gi[_r][e];t&&eo(t,r[e]),fo()}))}reset(){this.definitions={}}_pullDefinitions(e,t){const n=t.prefix&&t.iconName&&t.icon?{0:t}:t;return Object.keys(n).map((t=>{const{prefix:r,iconName:i,icon:o}=n[t],a=o[2];e[r]||(e[r]={}),a.length>0&&a.forEach((t=>{"string"==typeof t&&(e[r][t]=o)})),e[r][i]=o})),e}},jo={i2svg:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return zr?(Co("beforeI2svg",e),No("pseudoElements2svg",e),No("i2svg",e)):Promise.reject(new Error("Operation requires a DOM of some kind."))},watch:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{autoReplaceSvgRoot:t}=e;var n;!1===Ni.autoReplaceSvg&&(Ni.autoReplaceSvg=!0),Ni.observeMutations=!0,n=()=>{Oo({autoReplaceSvgRoot:t}),Co("watch",e)},zr&&(Wi?setTimeout(n,0):Yi.push(n))}},Do={noAuto:()=>{Ni.autoReplaceSvg=!1,Ni.observeMutations=!1,Co("noAuto")},config:Ni,dom:jo,parse:{icon:e=>{if(null===e)return null;if("object"==typeof e&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:go(e.prefix,e.iconName)||e.iconName};if(Array.isArray(e)&&2===e.length){const t=0===e[1].indexOf("fa-")?e[1].slice(3):e[1],n=bo(e[0]);return{prefix:n,iconName:go(n,t)||t}}if("string"==typeof e&&(e.indexOf("".concat(Ni.cssPrefix,"-"))>-1||e.match(yi))){const t=Io(e.split(" "),{skipLookups:!0});return{prefix:t.prefix||vo(),iconName:go(t.prefix,t.iconName)||t.iconName}}if("string"==typeof e){const t=vo();return{prefix:t,iconName:go(t,e)||e}}}},library:ko,findIconDefinition:So,toHtml:Qi},Oo=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{autoReplaceSvgRoot:t=Lr}=e;(Object.keys(qi.styles).length>0||Ni.autoFetchSvg)&&zr&&Ni.autoReplaceSvg&&Do.dom.i2svg({node:t})};function Lo(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map((e=>Qi(e)))}}),Object.defineProperty(e,"node",{get:function(){if(!zr)return;const t=Lr.createElement("div");return t.innerHTML=e.html,t.children}}),e}function Ro(e){const{icons:{main:t,mask:n},prefix:r,iconName:i,transform:o,symbol:a,title:s,maskId:l,titleId:c,extra:u,watchable:d=!1}=e,{width:f,height:p}=n.found?n:t,h="fak"===r,g=[Ni.replacementClass,i?"".concat(Ni.cssPrefix,"-").concat(i):""].filter((e=>-1===u.classes.indexOf(e))).filter((e=>""!==e||!!e)).concat(u.classes).join(" ");let m={children:[],attributes:{...u.attributes,"data-prefix":r,"data-icon":i,class:g,role:u.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(f," ").concat(p)}};const v=h&&!~u.classes.indexOf("fa-fw")?{width:"".concat(f/p*16*.0625,"em")}:{};d&&(m.attributes[Kr]=""),s&&(m.children.push({tag:"title",attributes:{id:m.attributes["aria-labelledby"]||"title-".concat(c||Oi())},children:[s]}),delete m.attributes.title);const y={...m,prefix:r,iconName:i,main:t,mask:n,maskId:l,transform:o,symbol:a,styles:{...v,...u.styles}},{children:b,attributes:x}=n.found&&t.found?No("generateAbstractMask",y)||{children:[],attributes:{}}:No("generateAbstractIcon",y)||{children:[],attributes:{}};return y.children=b,y.attributes=x,a?function(e){let{prefix:t,iconName:n,children:r,attributes:i,symbol:o}=e;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:{...i,id:!0===o?"".concat(t,"-").concat(Ni.cssPrefix,"-").concat(n):o},children:r}]}]}(y):function(e){let{children:t,main:n,mask:r,attributes:i,styles:o,transform:a}=e;if(Ui(a)&&n.found&&!r.found){const{width:e,height:t}=n,r={x:e/t/2,y:.5};i.style=zi({...o,"transform-origin":"".concat(r.x+a.x/16,"em ").concat(r.y+a.y/16,"em")})}return[{tag:"svg",attributes:i,children:t}]}(y)}function Po(e){const{content:t,width:n,height:r,transform:i,title:o,extra:a,watchable:s=!1}=e,l={...a.attributes,...o?{title:o}:{},class:a.classes.join(" ")};s&&(l[Kr]="");const c={...a.styles};Ui(i)&&(c.transform=function(e){let{transform:t,width:n=Jr,height:r=Jr,startCentered:i=!1}=e,o="";return o+=i&&Ur?"translate(".concat(t.x/ki-n/2,"em, ").concat(t.y/ki-r/2,"em) "):i?"translate(calc(-50% + ".concat(t.x/ki,"em), calc(-50% + ").concat(t.y/ki,"em)) "):"translate(".concat(t.x/ki,"em, ").concat(t.y/ki,"em) "),o+="scale(".concat(t.size/ki*(t.flipX?-1:1),", ").concat(t.size/ki*(t.flipY?-1:1),") "),o+="rotate(".concat(t.rotate,"deg) "),o}({transform:i,startCentered:!0,width:n,height:r}),c["-webkit-transform"]=c.transform);const u=zi(c);u.length>0&&(l.style=u);const d=[];return d.push({tag:"span",attributes:l,children:[t]}),o&&d.push({tag:"span",attributes:{class:"sr-only"},children:[o]}),d}const{styles:zo}=qi;function Uo(e){const t=e[0],n=e[1],[r]=e.slice(4);let i=null;return i=Array.isArray(r)?{tag:"g",attributes:{class:"".concat(Ni.cssPrefix,"-").concat(wi.GROUP)},children:[{tag:"path",attributes:{class:"".concat(Ni.cssPrefix,"-").concat(wi.SECONDARY),fill:"currentColor",d:r[0]}},{tag:"path",attributes:{class:"".concat(Ni.cssPrefix,"-").concat(wi.PRIMARY),fill:"currentColor",d:r[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:r}},{found:!0,width:t,height:n,icon:i}}const _o={found:!1,width:512,height:512};function Bo(e,t){let n=t;return"fa"===t&&null!==Ni.styleDefault&&(t=vo()),new Promise(((r,i)=>{if("fa"===n){const n=mo(e)||{};e=n.iconName||e,t=n.prefix||t}if(e&&t&&zo[t]&&zo[t][e])return r(Uo(zo[t][e]));!function(e,t){si||Ni.showMissingIcons||!e||console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}(e,t),r({..._o,icon:Ni.showMissingIcons&&e&&No("missingIconAbstract")||{}})}))}const Fo=()=>{},Go=Ni.measurePerformance&&Pr&&Pr.mark&&Pr.measure?Pr:{mark:Fo,measure:Fo},Zo='FA "6.6.0"',Ho=e=>{Go.mark("".concat(Zo," ").concat(e," ends")),Go.measure("".concat(Zo," ").concat(e),"".concat(Zo," ").concat(e," begins"),"".concat(Zo," ").concat(e," ends"))};var qo={begin:e=>(Go.mark("".concat(Zo," ").concat(e," begins")),()=>Ho(e)),end:Ho};const Yo=()=>{};function Vo(e){return"string"==typeof(e.getAttribute?e.getAttribute(Kr):null)}function Wo(e){return Lr.createElementNS("http://www.w3.org/2000/svg",e)}function Qo(e){return Lr.createElement(e)}function Jo(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{ceFn:n=("svg"===e.tag?Wo:Qo)}=t;if("string"==typeof e)return Lr.createTextNode(e);const r=n(e.tag);return Object.keys(e.attributes||[]).forEach((function(t){r.setAttribute(t,e.attributes[t])})),(e.children||[]).forEach((function(e){r.appendChild(Jo(e,{ceFn:n}))})),r}const Xo={replace:function(e){const t=e[0];if(t.parentNode)if(e[1].forEach((e=>{t.parentNode.insertBefore(Jo(e),t)})),null===t.getAttribute(Kr)&&Ni.keepOriginalSource){let e=Lr.createComment(function(e){let t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}(t));t.parentNode.replaceChild(e,t)}else t.remove()},nest:function(e){const t=e[0],n=e[1];if(~Ri(t).indexOf(Ni.replacementClass))return Xo.replace(e);const r=new RegExp("".concat(Ni.cssPrefix,"-.*"));if(delete n[0].attributes.id,n[0].attributes.class){const e=n[0].attributes.class.split(" ").reduce(((e,t)=>(t===Ni.replacementClass||t.match(r)?e.toSvg.push(t):e.toNode.push(t),e)),{toNode:[],toSvg:[]});n[0].attributes.class=e.toSvg.join(" "),0===e.toNode.length?t.removeAttribute("class"):t.setAttribute("class",e.toNode.join(" "))}const i=n.map((e=>Qi(e))).join("\n");t.setAttribute(Kr,""),t.innerHTML=i}};function $o(e){e()}function Ko(e,t){const n="function"==typeof t?t:Yo;if(0===e.length)n();else{let t=$o;Ni.mutateApproach===oi&&(t=Or.requestAnimationFrame||$o),t((()=>{const t=!0===Ni.autoReplaceSvg?Xo.replace:Xo[Ni.autoReplaceSvg]||Xo.replace,r=qo.begin("mutate");e.map(t),r(),n()}))}}let ea=!1;function ta(){ea=!0}function na(){ea=!1}let ra=null;function ia(e){if(!Rr)return;if(!Ni.observeMutations)return;const{treeCallback:t=Yo,nodeCallback:n=Yo,pseudoElementsCallback:r=Yo,observeMutationsRoot:i=Lr}=e;ra=new Rr((e=>{if(ea)return;const i=vo();Li(e).forEach((e=>{if("childList"===e.type&&e.addedNodes.length>0&&!Vo(e.addedNodes[0])&&(Ni.searchPseudoElements&&r(e.target),t(e.target)),"attributes"===e.type&&e.target.parentNode&&Ni.searchPseudoElements&&r(e.target.parentNode),"attributes"===e.type&&Vo(e.target)&&~Ii.indexOf(e.attributeName))if("class"===e.attributeName&&function(e){const t=e.getAttribute?e.getAttribute(ni):null,n=e.getAttribute?e.getAttribute(ri):null;return t&&n}(e.target)){const{prefix:t,iconName:n}=Io(Ri(e.target));e.target.setAttribute(ni,t||i),n&&e.target.setAttribute(ri,n)}else(o=e.target)&&o.classList&&o.classList.contains&&o.classList.contains(Ni.replacementClass)&&n(e.target);var o}))})),zr&&ra.observe(i,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}function oa(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{styleParser:!0};const{iconName:n,prefix:r,rest:i}=function(e){const t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=void 0!==e.innerText?e.innerText.trim():"";let i=Io(Ri(e));return i.prefix||(i.prefix=vo()),t&&n&&(i.prefix=t,i.iconName=n),i.iconName&&i.prefix||(i.prefix&&r.length>0&&(i.iconName=(o=i.prefix,a=e.innerText,(ao[o]||{})[a]||ho(i.prefix,$i(e.innerText)))),!i.iconName&&Ni.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(i.iconName=e.firstChild.data)),i;var o,a}(e),o=function(e){const t=Li(e.attributes).reduce(((e,t)=>("class"!==e.name&&"style"!==e.name&&(e[t.name]=t.value),e)),{}),n=e.getAttribute("title"),r=e.getAttribute("data-fa-title-id");return Ni.autoA11y&&(n?t["aria-labelledby"]="".concat(Ni.replacementClass,"-title-").concat(r||Oi()):(t["aria-hidden"]="true",t.focusable="false")),t}(e),a=Eo("parseNodeAttributes",{},e);let s=t.styleParser?function(e){const t=e.getAttribute("style");let n=[];return t&&(n=t.split(";").reduce(((e,t)=>{const n=t.split(":"),r=n[0],i=n.slice(1);return r&&i.length>0&&(e[r]=i.join(":").trim()),e}),{})),n}(e):[];return{iconName:n,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:r,transform:ji,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:i,styles:s,attributes:o},...a}}const{styles:aa}=qi;function sa(e){const t="nest"===Ni.autoReplaceSvg?oa(e,{styleParser:!1}):oa(e);return~t.extra.classes.indexOf(bi)?No("generateLayersText",e,t):No("generateSvgReplacementMutation",e,t)}let la=new Set;function ca(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!zr)return Promise.resolve();const n=Lr.documentElement.classList,r=e=>n.add("".concat(ii,"-").concat(e)),i=e=>n.remove("".concat(ii,"-").concat(e)),o=Ni.autoFetchSvg?la:li.map((e=>"fa-".concat(e))).concat(Object.keys(aa));o.includes("fa")||o.push("fa");const a=[".".concat(bi,":not([").concat(Kr,"])")].concat(o.map((e=>".".concat(e,":not([").concat(Kr,"])")))).join(", ");if(0===a.length)return Promise.resolve();let s=[];try{s=Li(e.querySelectorAll(a))}catch(e){}if(!(s.length>0))return Promise.resolve();r("pending"),i("complete");const l=qo.begin("onTree"),c=s.reduce(((e,t)=>{try{const n=sa(t);n&&e.push(n)}catch(e){si||"MissingIcon"===e.name&&console.error(e)}return e}),[]);return new Promise(((e,n)=>{Promise.all(c).then((n=>{Ko(n,(()=>{r("active"),r("complete"),i("pending"),"function"==typeof t&&t(),l(),e()}))})).catch((e=>{l(),n(e)}))}))}function ua(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;sa(e).then((e=>{e&&Ko([e],t)}))}li.map((e=>{la.add("fa-".concat(e))})),Object.keys(di[_r]).map(la.add.bind(la)),Object.keys(di[Fr]).map(la.add.bind(la)),Object.keys(di[Gr]).map(la.add.bind(la)),la=[...la];const da=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{transform:n=ji,symbol:r=!1,mask:i=null,maskId:o=null,title:a=null,titleId:s=null,classes:l=[],attributes:c={},styles:u={}}=t;if(!e)return;const{prefix:d,iconName:f,icon:p}=e;return Lo({type:"icon",...e},(()=>(Co("beforeDOMElementCreation",{iconDefinition:e,params:t}),Ni.autoA11y&&(a?c["aria-labelledby"]="".concat(Ni.replacementClass,"-title-").concat(s||Oi()):(c["aria-hidden"]="true",c.focusable="false")),Ro({icons:{main:Uo(p),mask:i?Uo(i.icon):{found:!1,width:null,height:null,icon:{}}},prefix:d,iconName:f,transform:{...ji,...n},symbol:r,title:a,maskId:o,titleId:s,extra:{attributes:c,styles:u,classes:l}}))))};var fa={mixout(){return{icon:(e=da,function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=(t||{}).icon?t:So(t||{});let{mask:i}=n;return i&&(i=(i||{}).icon?i:So(i||{})),e(r,{...n,mask:i})})};var e},hooks:()=>({mutationObserverCallbacks:e=>(e.treeCallback=ca,e.nodeCallback=ua,e)}),provides(e){e.i2svg=function(e){const{node:t=Lr,callback:n=(()=>{})}=e;return ca(t,n)},e.generateSvgReplacementMutation=function(e,t){const{iconName:n,title:r,titleId:i,prefix:o,transform:a,symbol:s,mask:l,maskId:c,extra:u}=t;return new Promise(((t,d)=>{Promise.all([Bo(n,o),l.iconName?Bo(l.iconName,l.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then((l=>{let[d,f]=l;t([e,Ro({icons:{main:d,mask:f},prefix:o,iconName:n,transform:a,symbol:s,maskId:c,title:r,titleId:i,extra:u,watchable:!0})])})).catch(d)}))},e.generateAbstractIcon=function(e){let{children:t,attributes:n,main:r,transform:i,styles:o}=e;const a=zi(o);let s;return a.length>0&&(n.style=a),Ui(i)&&(s=No("generateAbstractTransformGrouping",{main:r,transform:i,containerWidth:r.width,iconWidth:r.width})),t.push(s||r.icon),{children:t,attributes:n}}}},pa={mixout:()=>({layer(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{classes:n=[]}=t;return Lo({type:"layer"},(()=>{Co("beforeDOMElementCreation",{assembler:e,params:t});let r=[];return e((e=>{Array.isArray(e)?e.map((e=>{r=r.concat(e.abstract)})):r=r.concat(e.abstract)})),[{tag:"span",attributes:{class:["".concat(Ni.cssPrefix,"-layers"),...n].join(" ")},children:r}]}))}})},ha={mixout:()=>({counter(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{title:n=null,classes:r=[],attributes:i={},styles:o={}}=t;return Lo({type:"counter",content:e},(()=>(Co("beforeDOMElementCreation",{content:e,params:t}),function(e){const{content:t,title:n,extra:r}=e,i={...r.attributes,...n?{title:n}:{},class:r.classes.join(" ")},o=zi(r.styles);o.length>0&&(i.style=o);const a=[];return a.push({tag:"span",attributes:i,children:[t]}),n&&a.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),a}({content:e.toString(),title:n,extra:{attributes:i,styles:o,classes:["".concat(Ni.cssPrefix,"-layers-counter"),...r]}}))))}})},ga={mixout:()=>({text(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{transform:n=ji,title:r=null,classes:i=[],attributes:o={},styles:a={}}=t;return Lo({type:"text",content:e},(()=>(Co("beforeDOMElementCreation",{content:e,params:t}),Po({content:e,transform:{...ji,...n},title:r,extra:{attributes:o,styles:a,classes:["".concat(Ni.cssPrefix,"-layers-text"),...i]}}))))}}),provides(e){e.generateLayersText=function(e,t){const{title:n,transform:r,extra:i}=t;let o=null,a=null;if(Ur){const t=parseInt(getComputedStyle(e).fontSize,10),n=e.getBoundingClientRect();o=n.width/t,a=n.height/t}return Ni.autoA11y&&!n&&(i.attributes["aria-hidden"]="true"),Promise.resolve([e,Po({content:e.innerHTML,width:o,height:a,transform:r,title:n,extra:i,watchable:!0})])}}};const ma=new RegExp('"',"ug"),va=[1105920,1112319],ya={FontAwesome:{normal:"fas",400:"fas"},"Font Awesome 6 Free":{900:"fas",400:"far"},"Font Awesome 6 Pro":{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},"Font Awesome 6 Brands":{400:"fab",normal:"fab"},"Font Awesome 6 Duotone":{900:"fad"},"Font Awesome 6 Sharp":{900:"fass",400:"fasr",normal:"fasr",300:"fasl",100:"fast"},"Font Awesome 6 Sharp Duotone":{900:"fasds"},"Font Awesome 5 Free":{900:"fas",400:"far"},"Font Awesome 5 Pro":{900:"fas",400:"far",normal:"far",300:"fal"},"Font Awesome 5 Brands":{400:"fab",normal:"fab"},"Font Awesome 5 Duotone":{900:"fad"},"Font Awesome Kit":{400:"fak",normal:"fak"},"Font Awesome Kit Duotone":{400:"fakd",normal:"fakd"}},ba=Object.keys(ya).reduce(((e,t)=>(e[t.toLowerCase()]=ya[t],e)),{}),xa=Object.keys(ba).reduce(((e,t)=>{const n=ba[t];return e[t]=n[900]||[...Object.entries(n)][0][1],e}),{});function Ia(e,t){const n="".concat(ti).concat(t.replace(":","-"));return new Promise(((r,i)=>{if(null!==e.getAttribute(n))return r();const o=Li(e.children).filter((e=>e.getAttribute(ei)===t))[0],a=Or.getComputedStyle(e,t),s=a.getPropertyValue("font-family"),l=s.match(xi),c=a.getPropertyValue("font-weight"),u=a.getPropertyValue("content");if(o&&!l)return e.removeChild(o),r();if(l&&"none"!==u&&""!==u){const u=a.getPropertyValue("content");let d=function(e,t){const n=e.replace(/^['"]|['"]$/g,"").toLowerCase(),r=parseInt(t),i=isNaN(r)?"normal":r;return(ba[n]||{})[i]||xa[n]}(s,c);const{value:f,isSecondary:p}=function(e){const t=e.replace(ma,""),n=function(e,t){const n=e.length;let r,i=e.charCodeAt(0);return i>=55296&&i<=56319&&n>1&&(r=e.charCodeAt(1),r>=56320&&r<=57343)?1024*(i-55296)+r-56320+65536:i}(t),r=n>=va[0]&&n<=va[1],i=2===t.length&&t[0]===t[1];return{value:$i(i?t[0]:t),isSecondary:r||i}}(u),h=l[0].startsWith("FontAwesome");let g=ho(d,f),m=g;if(h){const e=function(e){const t=lo[e],n=ho("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}(f);e.iconName&&e.prefix&&(g=e.iconName,d=e.prefix)}if(!g||p||o&&o.getAttribute(ni)===d&&o.getAttribute(ri)===m)r();else{e.setAttribute(n,m),o&&e.removeChild(o);const a={iconName:null,title:null,titleId:null,prefix:null,transform:ji,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}},{extra:s}=a;s.attributes[ei]=t,Bo(g,d).then((i=>{const o=Ro({...a,icons:{main:i,mask:yo()},prefix:d,iconName:m,extra:s,watchable:!0}),l=Lr.createElementNS("http://www.w3.org/2000/svg","svg");"::before"===t?e.insertBefore(l,e.firstChild):e.appendChild(l),l.outerHTML=o.map((e=>Qi(e))).join("\n"),e.removeAttribute(n),r()})).catch(i)}}else r()}))}function wa(e){return Promise.all([Ia(e,"::before"),Ia(e,"::after")])}function Ta(e){return!(e.parentNode===document.head||~ai.indexOf(e.tagName.toUpperCase())||e.getAttribute(ei)||e.parentNode&&"svg"===e.parentNode.tagName)}function Ma(e){if(zr)return new Promise(((t,n)=>{const r=Li(e.querySelectorAll("*")).filter(Ta).map(wa),i=qo.begin("searchPseudoElements");ta(),Promise.all(r).then((()=>{i(),na(),t()})).catch((()=>{i(),na(),n()}))}))}let Aa=!1;const Ea=e=>e.toLowerCase().split(" ").reduce(((e,t)=>{const n=t.toLowerCase().split("-"),r=n[0];let i=n.slice(1).join("-");if(r&&"h"===i)return e.flipX=!0,e;if(r&&"v"===i)return e.flipY=!0,e;if(i=parseFloat(i),isNaN(i))return e;switch(r){case"grow":e.size=e.size+i;break;case"shrink":e.size=e.size-i;break;case"left":e.x=e.x-i;break;case"right":e.x=e.x+i;break;case"up":e.y=e.y-i;break;case"down":e.y=e.y+i;break;case"rotate":e.rotate=e.rotate+i}return e}),{size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0}),Ca={x:0,y:0,width:"100%",height:"100%"};function Na(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}!function(e,t){let{mixoutsTo:n}=t;wo=e,To={},Object.keys(Mo).forEach((e=>{-1===Ao.indexOf(e)&&delete Mo[e]})),wo.forEach((e=>{const t=e.mixout?e.mixout():{};if(Object.keys(t).forEach((e=>{"function"==typeof t[e]&&(n[e]=t[e]),"object"==typeof t[e]&&Object.keys(t[e]).forEach((r=>{n[e]||(n[e]={}),n[e][r]=t[e][r]}))})),e.hooks){const t=e.hooks();Object.keys(t).forEach((e=>{To[e]||(To[e]=[]),To[e].push(t[e])}))}e.provides&&e.provides(Mo)}))}([Zi,fa,pa,ha,ga,{hooks:()=>({mutationObserverCallbacks:e=>(e.pseudoElementsCallback=Ma,e)}),provides(e){e.pseudoElements2svg=function(e){const{node:t=Lr}=e;Ni.searchPseudoElements&&Ma(t)}}},{mixout:()=>({dom:{unwatch(){ta(),Aa=!0}}}),hooks:()=>({bootstrap(){ia(Eo("mutationObserverCallbacks",{}))},noAuto(){ra&&ra.disconnect()},watch(e){const{observeMutationsRoot:t}=e;Aa?na():ia(Eo("mutationObserverCallbacks",{observeMutationsRoot:t}))}})},{mixout:()=>({parse:{transform:e=>Ea(e)}}),hooks:()=>({parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-transform");return n&&(e.transform=Ea(n)),e}}),provides(e){e.generateAbstractTransformGrouping=function(e){let{main:t,transform:n,containerWidth:r,iconWidth:i}=e;const o={transform:"translate(".concat(r/2," 256)")},a="translate(".concat(32*n.x,", ").concat(32*n.y,") "),s="scale(".concat(n.size/16*(n.flipX?-1:1),", ").concat(n.size/16*(n.flipY?-1:1),") "),l="rotate(".concat(n.rotate," 0 0)"),c={transform:"".concat(a," ").concat(s," ").concat(l)},u={transform:"translate(".concat(i/2*-1," -256)")};return{tag:"g",attributes:{...o},children:[{tag:"g",attributes:{...c},children:[{tag:t.icon.tag,children:t.icon.children,attributes:{...t.icon.attributes,...u}}]}]}}}},{hooks:()=>({parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-mask"),r=n?Io(n.split(" ").map((e=>e.trim()))):yo();return r.prefix||(r.prefix=vo()),e.mask=r,e.maskId=t.getAttribute("data-fa-mask-id"),e}}),provides(e){e.generateAbstractMask=function(e){let{children:t,attributes:n,main:r,mask:i,maskId:o,transform:a}=e;const{width:s,icon:l}=r,{width:c,icon:u}=i,d=function(e){let{transform:t,containerWidth:n,iconWidth:r}=e;const i={transform:"translate(".concat(n/2," 256)")},o="translate(".concat(32*t.x,", ").concat(32*t.y,") "),a="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),s="rotate(".concat(t.rotate," 0 0)");return{outer:i,inner:{transform:"".concat(o," ").concat(a," ").concat(s)},path:{transform:"translate(".concat(r/2*-1," -256)")}}}({transform:a,containerWidth:c,iconWidth:s}),f={tag:"rect",attributes:{...Ca,fill:"white"}},p=l.children?{children:l.children.map(Na)}:{},h={tag:"g",attributes:{...d.inner},children:[Na({tag:l.tag,attributes:{...l.attributes,...d.path},...p})]},g={tag:"g",attributes:{...d.outer},children:[h]},m="mask-".concat(o||Oi()),v="clip-".concat(o||Oi()),y={tag:"mask",attributes:{...Ca,id:m,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"},children:[f,g]},b={tag:"defs",children:[{tag:"clipPath",attributes:{id:v},children:(x=u,"g"===x.tag?x.children:[x])},y]};var x;return t.push(b,{tag:"rect",attributes:{fill:"currentColor","clip-path":"url(#".concat(v,")"),mask:"url(#".concat(m,")"),...Ca}}),{children:t,attributes:n}}}},{provides(e){let t=!1;Or.matchMedia&&(t=Or.matchMedia("(prefers-reduced-motion: reduce)").matches),e.missingIconAbstract=function(){const e=[],n={fill:"currentColor"},r={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};e.push({tag:"path",attributes:{...n,d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"}});const i={...r,attributeName:"opacity"},o={tag:"circle",attributes:{...n,cx:"256",cy:"364",r:"28"},children:[]};return t||o.children.push({tag:"animate",attributes:{...r,attributeName:"r",values:"28;14;28;28;14;28;"}},{tag:"animate",attributes:{...i,values:"1;0;1;1;0;1;"}}),e.push(o),e.push({tag:"path",attributes:{...n,opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"},children:t?[]:[{tag:"animate",attributes:{...i,values:"1;0;0;0;0;1;"}}]}),t||e.push({tag:"path",attributes:{...n,opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"},children:[{tag:"animate",attributes:{...i,values:"0;0;1;1;0;0;"}}]}),{tag:"g",attributes:{class:"missing"},children:e}}}},{hooks:()=>({parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-symbol"),r=null!==n&&(""===n||n);return e.symbol=r,e}})}],{mixoutsTo:Do});const Sa=Do.parse,ka=Do.icon;var ja=a(9067),Da=a.n(ja);function Oa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function La(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Oa(Object(n),!0).forEach((function(t){Pa(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Oa(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ra(e){return Ra="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ra(e)}function Pa(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function za(e){return function(e){if(Array.isArray(e))return Ua(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Ua(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ua(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ua(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function _a(e){return t=e,(t-=0)==t?e:(e=e.replace(/[\-_\s]+(.)?/g,(function(e,t){return t?t.toUpperCase():""}))).substr(0,1).toLowerCase()+e.substr(1);var t}var Ba=["style"],Fa=!1;try{Fa=!0}catch(e){}function Ga(e){return e&&"object"===Ra(e)&&e.prefix&&e.iconName&&e.icon?e:Sa.icon?Sa.icon(e):null===e?null:e&&"object"===Ra(e)&&e.prefix&&e.iconName?e:Array.isArray(e)&&2===e.length?{prefix:e[0],iconName:e[1]}:"string"==typeof e?{prefix:"fas",iconName:e}:void 0}function Za(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?Pa({},e,t):{}}var Ha={border:!1,className:"",mask:null,maskId:null,fixedWidth:!1,inverse:!1,flip:!1,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,size:null,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:null,transform:null,swapOpacity:!1},qa=t().forwardRef((function(e,t){var n=La(La({},Ha),e),r=n.icon,i=n.mask,o=n.symbol,a=n.className,s=n.title,l=n.titleId,c=n.maskId,u=Ga(r),d=Za("classes",[].concat(za(function(e){var t,n=e.beat,r=e.fade,i=e.beatFade,o=e.bounce,a=e.shake,s=e.flash,l=e.spin,c=e.spinPulse,u=e.spinReverse,d=e.pulse,f=e.fixedWidth,p=e.inverse,h=e.border,g=e.listItem,m=e.flip,v=e.size,y=e.rotation,b=e.pull,x=(Pa(t={"fa-beat":n,"fa-fade":r,"fa-beat-fade":i,"fa-bounce":o,"fa-shake":a,"fa-flash":s,"fa-spin":l,"fa-spin-reverse":u,"fa-spin-pulse":c,"fa-pulse":d,"fa-fw":f,"fa-inverse":p,"fa-border":h,"fa-li":g,"fa-flip":!0===m,"fa-flip-horizontal":"horizontal"===m||"both"===m,"fa-flip-vertical":"vertical"===m||"both"===m},"fa-".concat(v),null!=v),Pa(t,"fa-rotate-".concat(y),null!=y&&0!==y),Pa(t,"fa-pull-".concat(b),null!=b),Pa(t,"fa-swap-opacity",e.swapOpacity),t);return Object.keys(x).map((function(e){return x[e]?e:null})).filter((function(e){return e}))}(n)),za((a||"").split(" ")))),f=Za("transform","string"==typeof n.transform?Sa.transform(n.transform):n.transform),p=Za("mask",Ga(i)),h=ka(u,La(La(La(La({},d),f),p),{},{symbol:o,title:s,titleId:l,maskId:c}));if(!h)return function(){var e;!Fa&&console&&"function"==typeof console.error&&(e=console).error.apply(e,arguments)}("Could not find icon",u),null;var g=h.abstract,m={ref:t};return Object.keys(n).forEach((function(e){Ha.hasOwnProperty(e)||(m[e]=n[e])})),Ya(g[0],m)}));qa.displayName="FontAwesomeIcon",qa.propTypes={beat:Da().bool,border:Da().bool,beatFade:Da().bool,bounce:Da().bool,className:Da().string,fade:Da().bool,flash:Da().bool,mask:Da().oneOfType([Da().object,Da().array,Da().string]),maskId:Da().string,fixedWidth:Da().bool,inverse:Da().bool,flip:Da().oneOf([!0,!1,"horizontal","vertical","both"]),icon:Da().oneOfType([Da().object,Da().array,Da().string]),listItem:Da().bool,pull:Da().oneOf(["right","left"]),pulse:Da().bool,rotation:Da().oneOf([0,90,180,270]),shake:Da().bool,size:Da().oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:Da().bool,spinPulse:Da().bool,spinReverse:Da().bool,symbol:Da().oneOfType([Da().bool,Da().string]),title:Da().string,titleId:Da().string,transform:Da().oneOfType([Da().string,Da().object]),swapOpacity:Da().bool};var Ya=function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof n)return n;var i=(n.children||[]).map((function(n){return e(t,n)})),o=Object.keys(n.attributes||{}).reduce((function(e,t){var r=n.attributes[t];switch(t){case"class":e.attrs.className=r,delete n.attributes.class;break;case"style":e.attrs.style=r.split(";").map((function(e){return e.trim()})).filter((function(e){return e})).reduce((function(e,t){var n,r=t.indexOf(":"),i=_a(t.slice(0,r)),o=t.slice(r+1).trim();return i.startsWith("webkit")?e[(n=i,n.charAt(0).toUpperCase()+n.slice(1))]=o:e[i]=o,e}),{});break;default:0===t.indexOf("aria-")||0===t.indexOf("data-")?e.attrs[t.toLowerCase()]=r:e.attrs[_a(t)]=r}return e}),{attrs:{}}),a=r.style,s=void 0===a?{}:a,l=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(r,Ba);return o.attrs.style=La(La({},o.attrs.style),s),t.apply(void 0,[n.tag,La(La({},o.attrs),l)].concat(za(i)))}.bind(null,t().createElement);const Va={prefix:"fas",iconName:"trash-can",icon:[448,512,[61460,"trash-alt"],"f2ed","M135.2 17.7C140.6 6.8 151.7 0 163.8 0L284.2 0c12.1 0 23.2 6.8 28.6 17.7L320 32l96 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 96C14.3 96 0 81.7 0 64S14.3 32 32 32l96 0 7.2-14.3zM32 128l384 0 0 320c0 35.3-28.7 64-64 64L96 512c-35.3 0-64-28.7-64-64l0-320zm96 64c-8.8 0-16 7.2-16 16l0 224c0 8.8 7.2 16 16 16s16-7.2 16-16l0-224c0-8.8-7.2-16-16-16zm96 0c-8.8 0-16 7.2-16 16l0 224c0 8.8 7.2 16 16 16s16-7.2 16-16l0-224c0-8.8-7.2-16-16-16zm96 0c-8.8 0-16 7.2-16 16l0 224c0 8.8 7.2 16 16 16s16-7.2 16-16l0-224c0-8.8-7.2-16-16-16z"]},Wa={prefix:"fas",iconName:"down-left-and-up-right-to-center",icon:[512,512,["compress-alt"],"f422","M439 7c9.4-9.4 24.6-9.4 33.9 0l32 32c9.4 9.4 9.4 24.6 0 33.9l-87 87 39 39c6.9 6.9 8.9 17.2 5.2 26.2s-12.5 14.8-22.2 14.8l-144 0c-13.3 0-24-10.7-24-24l0-144c0-9.7 5.8-18.5 14.8-22.2s19.3-1.7 26.2 5.2l39 39L439 7zM72 272l144 0c13.3 0 24 10.7 24 24l0 144c0 9.7-5.8 18.5-14.8 22.2s-19.3 1.7-26.2-5.2l-39-39L73 505c-9.4 9.4-24.6 9.4-33.9 0L7 473c-9.4-9.4-9.4-24.6 0-33.9l87-87L55 313c-6.9-6.9-8.9-17.2-5.2-26.2s12.5-14.8 22.2-14.8z"]},Qa={prefix:"fas",iconName:"eye-slash",icon:[640,512,[],"f070","M38.8 5.1C28.4-3.1 13.3-1.2 5.1 9.2S-1.2 34.7 9.2 42.9l592 464c10.4 8.2 25.5 6.3 33.7-4.1s6.3-25.5-4.1-33.7L525.6 386.7c39.6-40.6 66.4-86.1 79.9-118.4c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C465.5 68.8 400.8 32 320 32c-68.2 0-125 26.3-169.3 60.8L38.8 5.1zM223.1 149.5C248.6 126.2 282.7 112 320 112c79.5 0 144 64.5 144 144c0 24.9-6.3 48.3-17.4 68.7L408 294.5c8.4-19.3 10.6-41.4 4.8-63.3c-11.1-41.5-47.8-69.4-88.6-71.1c-5.8-.2-9.2 6.1-7.4 11.7c2.1 6.4 3.3 13.2 3.3 20.3c0 10.2-2.4 19.8-6.6 28.3l-90.3-70.8zM373 389.9c-16.4 6.5-34.3 10.1-53 10.1c-79.5 0-144-64.5-144-144c0-6.9 .5-13.6 1.4-20.2L83.1 161.5C60.3 191.2 44 220.8 34.5 243.7c-3.3 7.9-3.3 16.7 0 24.6c14.9 35.7 46.2 87.7 93 131.1C174.5 443.2 239.2 480 320 480c47.8 0 89.9-12.9 126.2-32.5L373 389.9z"]},Ja={prefix:"fas",iconName:"chevron-up",icon:[512,512,[],"f077","M233.4 105.4c12.5-12.5 32.8-12.5 45.3 0l192 192c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L256 173.3 86.6 342.6c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3l192-192z"]},Xa={prefix:"fas",iconName:"image",icon:[512,512,[],"f03e","M0 96C0 60.7 28.7 32 64 32l384 0c35.3 0 64 28.7 64 64l0 320c0 35.3-28.7 64-64 64L64 480c-35.3 0-64-28.7-64-64L0 96zM323.8 202.5c-4.5-6.6-11.9-10.5-19.8-10.5s-15.4 3.9-19.8 10.5l-87 127.6L170.7 297c-4.6-5.7-11.5-9-18.7-9s-14.2 3.3-18.7 9l-64 80c-5.8 7.2-6.9 17.1-2.9 25.4s12.4 13.6 21.6 13.6l96 0 32 0 208 0c8.9 0 17.1-4.9 21.2-12.8s3.6-17.4-1.4-24.7l-120-176zM112 192a48 48 0 1 0 0-96 48 48 0 1 0 0 96z"]},$a={prefix:"fas",iconName:"up-down-left-right",icon:[512,512,["arrows-alt"],"f0b2","M278.6 9.4c-12.5-12.5-32.8-12.5-45.3 0l-64 64c-9.2 9.2-11.9 22.9-6.9 34.9s16.6 19.8 29.6 19.8l32 0 0 96-96 0 0-32c0-12.9-7.8-24.6-19.8-29.6s-25.7-2.2-34.9 6.9l-64 64c-12.5 12.5-12.5 32.8 0 45.3l64 64c9.2 9.2 22.9 11.9 34.9 6.9s19.8-16.6 19.8-29.6l0-32 96 0 0 96-32 0c-12.9 0-24.6 7.8-29.6 19.8s-2.2 25.7 6.9 34.9l64 64c12.5 12.5 32.8 12.5 45.3 0l64-64c9.2-9.2 11.9-22.9 6.9-34.9s-16.6-19.8-29.6-19.8l-32 0 0-96 96 0 0 32c0 12.9 7.8 24.6 19.8 29.6s25.7 2.2 34.9-6.9l64-64c12.5-12.5 12.5-32.8 0-45.3l-64-64c-9.2-9.2-22.9-11.9-34.9-6.9s-19.8 16.6-19.8 29.6l0 32-96 0 0-96 32 0c12.9 0 24.6-7.8 29.6-19.8s2.2-25.7-6.9-34.9l-64-64z"]},Ka={prefix:"fas",iconName:"eye",icon:[576,512,[128065],"f06e","M288 32c-80.8 0-145.5 36.8-192.6 80.6C48.6 156 17.3 208 2.5 243.7c-3.3 7.9-3.3 16.7 0 24.6C17.3 304 48.6 356 95.4 399.4C142.5 443.2 207.2 480 288 480s145.5-36.8 192.6-80.6c46.8-43.5 78.1-95.4 93-131.1c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C433.5 68.8 368.8 32 288 32zM144 256a144 144 0 1 1 288 0 144 144 0 1 1 -288 0zm144-64c0 35.3-28.7 64-64 64c-7.1 0-13.9-1.2-20.3-3.3c-5.5-1.8-11.9 1.6-11.7 7.4c.3 6.9 1.3 13.8 3.2 20.7c13.7 51.2 66.4 81.6 117.6 67.9s81.6-66.4 67.9-117.6c-11.1-41.5-47.8-69.4-88.6-71.1c-5.8-.2-9.2 6.1-7.4 11.7c2.1 6.4 3.3 13.2 3.3 20.3z"]},es={prefix:"fas",iconName:"paperclip",icon:[448,512,[128206],"f0c6","M364.2 83.8c-24.4-24.4-64-24.4-88.4 0l-184 184c-42.1 42.1-42.1 110.3 0 152.4s110.3 42.1 152.4 0l152-152c10.9-10.9 28.7-10.9 39.6 0s10.9 28.7 0 39.6l-152 152c-64 64-167.6 64-231.6 0s-64-167.6 0-231.6l184-184c46.3-46.3 121.3-46.3 167.6 0s46.3 121.3 0 167.6l-176 176c-28.6 28.6-75 28.6-103.6 0s-28.6-75 0-103.6l144-144c10.9-10.9 28.7-10.9 39.6 0s10.9 28.7 0 39.6l-144 144c-6.7 6.7-6.7 17.7 0 24.4s17.7 6.7 24.4 0l176-176c24.4-24.4 24.4-64 0-88.4z"]},ts={prefix:"fas",iconName:"circle-info",icon:[512,512,["info-circle"],"f05a","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 336l24 0 0-64-24 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l48 0c13.3 0 24 10.7 24 24l0 88 8 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-80 0c-13.3 0-24-10.7-24-24s10.7-24 24-24zm40-208a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"]},ns={prefix:"fas",iconName:"play",icon:[384,512,[9654],"f04b","M73 39c-14.8-9.1-33.4-9.4-48.5-.9S0 62.6 0 80L0 432c0 17.4 9.4 33.4 24.5 41.9s33.7 8.1 48.5-.9L361 297c14.3-8.7 23-24.2 23-41s-8.7-32.2-23-41L73 39z"]},rs={prefix:"fas",iconName:"chevron-down",icon:[512,512,[],"f078","M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"]},is={prefix:"fas",iconName:"up-right-and-down-left-from-center",icon:[512,512,["expand-alt"],"f424","M344 0L488 0c13.3 0 24 10.7 24 24l0 144c0 9.7-5.8 18.5-14.8 22.2s-19.3 1.7-26.2-5.2l-39-39-87 87c-9.4 9.4-24.6 9.4-33.9 0l-32-32c-9.4-9.4-9.4-24.6 0-33.9l87-87L327 41c-6.9-6.9-8.9-17.2-5.2-26.2S334.3 0 344 0zM168 512L24 512c-13.3 0-24-10.7-24-24L0 344c0-9.7 5.8-18.5 14.8-22.2s19.3-1.7 26.2 5.2l39 39 87-87c9.4-9.4 24.6-9.4 33.9 0l32 32c9.4 9.4 9.4 24.6 0 33.9l-87 87 39 39c6.9 6.9 8.9 17.2 5.2 26.2s-12.5 14.8-22.2 14.8z"]},os={prefix:"fas",iconName:"triangle-exclamation",icon:[512,512,[9888,"exclamation-triangle","warning"],"f071","M256 32c14.2 0 27.3 7.5 34.5 19.8l216 368c7.3 12.4 7.3 27.7 .2 40.1S486.3 480 472 480L40 480c-14.3 0-27.6-7.7-34.7-20.1s-7-27.8 .2-40.1l216-368C228.7 39.5 241.8 32 256 32zm0 128c-13.3 0-24 10.7-24 24l0 112c0 13.3 10.7 24 24 24s24-10.7 24-24l0-112c0-13.3-10.7-24-24-24zm32 224a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z"]};function as(n){const r=t().createRef(),[i,o]=(0,e.useState)(n.initialTextContent||""),[a,s]=(0,e.useState)(!1),[l,c]=(0,e.useState)(!1),[u,d]=(0,e.useState)(null);return(0,e.useEffect)((()=>{n.element&&function(e,t){const n=t.current;if(e&&n){const t=n.style,r=null==e?void 0:e.getBoundingClientRect(),i=n.getBoundingClientRect(),o=r.height+r.top+window.scrollY,a=window.innerWidth;t.top=`${String(o)}px`,t.opacity="1";const s=r.left+i.width>a;t.left=s?r.right-i.width+"px":`${r.left}px`}}(n.element,r),o(n.initialTextContent||""),s(n.initialTextContent.length>0)}),[n.element]),n.element?t().createElement("div",{className:"e-popup",style:{position:"absolute",opacity:0},ref:r,"data-testid":"e-popup"},t().createElement(Mr(),{language:"FI",baseUrl:"",initialValue:n.initialTextContent,getPasteSource:()=>Promise.resolve(""),onValueChange:e=>{if(n.onValueChange){const t=n.onValueChange(e.answerHtml);d(t)}o(e.answerHtml),s(e.answerHtml.trim().length>0)},textAreaProps:{className:"comment-content"}})," ",u&&t().createElement("span",{className:"e-popup-error"},u),t().createElement("span",{className:"e-popup-button-area"},t().createElement("span",null,t().createElement("button",{className:"button",onClick:e=>{e.stopPropagation(),n.onValueSave(i)},"data-testid":"e-popup-save",disabled:!a||!!u},"Tallenna"),t().createElement("button",{className:"button text-button","data-testid":"e-popup-cancel",onClick:()=>{n.onCancel()}},"Peru")),n.enableDelete&&t().createElement("button",{className:Er()("button","e-popup-delete","round",{confirm:l}),"data-testid":"e-popup-delete",onClick:()=>{l?n.onDelete&&n.onDelete():c(!0)}},t().createElement(qa,{size:"lg",icon:Va,fixedWidth:!0})," ",l&&"Vahvista?"))):null}function ss(){const{newAnnotation:n,setNewAnnotation:r,newAnnotationRef:i,setNewAnnotationRef:o,onSaveAnnotation:a}=(0,e.useContext)(ls);return t().createElement(as,{element:i,initialTextContent:"",onValueSave:e=>{a(n,e),r(null),o(null)},enableDelete:!1,onCancel:()=>{r(null),o(null)}})}const ls=t().createContext({}),cs=({children:n,annotations:r,onClickAnnotation:i,onSaveAnnotation:o})=>{const[a,s]=t().useState(null),[l,c]=t().useState(null),u=e=>{s(e)};if(!i&&!o)return n;const d=(0,e.useMemo)((()=>Nn((null==r?void 0:r.flatMap((e=>e.annotationParts.map(((t,n,r)=>{const i=n===r.length-1;return{...t,annotationId:e.annotationId,markNumber:i?e.markNumber:void 0,hidden:e.hidden}})))))||[],"annotationAnchor")),[JSON.stringify(r)]);return t().createElement(ls.Provider,{value:{annotations:d,onClickAnnotation:i,onSaveAnnotation:o,newAnnotation:a,setNewAnnotation:s,newAnnotationRef:l,setNewAnnotationRef:c}},t().createElement("span",{onMouseDown:function(e){!!e.target.closest(".e-popup")||(s(null),c(null)),function(e,t){0===e.button&&window.addEventListener("mouseup",(function e(){var n,r;window.removeEventListener("mouseup",e);const i=window.getSelection(),o=null===(n=null==i?void 0:i.anchorNode)||void 0===n?void 0:n.parentElement,a=null===(r=null==i?void 0:i.focusNode)||void 0===r?void 0:r.parentElement;if(i&&o&&a&&i.toString().length>0){const e=(e=>{const t=Array.from(null==e?void 0:e.getRangeAt(0).cloneContents().children),n=null==t?void 0:t.some((e=>"MARK"===e.tagName&&"false"===e.getAttribute("data-hidden"))),r=t.some((e=>e.querySelector('mark[data-hidden="false"]')));return n||r})(i),n=Ir(o);if(n===Ir(a)&&wr(o)&&wr(a)&&!e){const e=(e=>{var t,n;const r=e.getRangeAt(0),i=Array.from(null==e?void 0:e.getRangeAt(0).cloneContents().children),o=r.startContainer.parentElement;if(null==i?void 0:i.length){const e=null==i?void 0:i.reduce(((e,t,n,i)=>{var a;const s=t.getAttribute("data-annotation-path"),l=n===i.length-1;if(s){const i={annotationAnchor:s,selectedText:t.textContent||"",startIndex:0===n?r.startOffset:0,length:l?r.endOffset:(null===(a=t.textContent)||void 0===a?void 0:a.length)||0};return[...e,i]}{const i=t.querySelectorAll("[data-annotation-path]");return null==i||i.forEach(((t,a)=>{var s;const c=t.getAttribute("data-annotation-path");if(c){const u=0===n&&0===a,d=a===i.length-1,f=l&&d,p=ur(o,r),h={annotationAnchor:c,selectedText:t.textContent||"",startIndex:u&&(null==p?void 0:p.startIndex)||0,length:f?r.endOffset:(null===(s=t.textContent)||void 0===s?void 0:s.length)||0};e.push(h)}})),e}}),[]);return e}{const i=null===(n=null===(t=null==e?void 0:e.focusNode)||void 0===t?void 0:t.parentElement)||void 0===n?void 0:n.getAttribute("data-annotation-path"),a=ur(o,r);return[{annotationAnchor:i,selectedText:(null==e?void 0:e.toString())||"",startIndex:(null==a?void 0:a.startIndex)||0,length:(null==a?void 0:a.length)||0}]}})(i);t({annotationParts:e,displayNumber:n,selectedText:e.map((e=>e.selectedText)).join(" ")})}}}))}(e,u)}},t().createElement(ss,null),n))},us=(0,e.createContext)({}),ds=({annotation:n,markedText:r,onClickAnnotation:i,setNewAnnotationRef:o})=>{const a=(0,e.useRef)(null);return(0,e.useEffect)((()=>{a.current&&!ps(n)&&o(a.current)}),[]),t().createElement("mark",{ref:a,className:"e-annotation","data-annotation-id":ps(n)?n.annotationId:"","data-hidden":"false","data-annotation-path":n.annotationAnchor,onClick:e=>ps(n)?i(e,n):void 0},r,(null==n?void 0:n.markNumber)&&t().createElement("sup",{className:"e-annotation","data-content":null==n?void 0:n.markNumber}))};function fs(e){return ps(e)?e.annotationId+e.startIndex:e.startIndex}function ps(e){return"annotationId"in e}function hs(e,t,n){return e.substring(t,t+n)}const gs=({node:n})=>{var r,i;const o=(0,e.useContext)(ls),{isInSidebar:a}=(0,e.useContext)(us),{annotations:s,onClickAnnotation:l,setNewAnnotationRef:c,newAnnotation:u}=o;if(void 0===(null==o?void 0:o.annotations)||0===(null===(r=n.textContent)||void 0===r?void 0:r.trim().length)||void 0!==a)return n.textContent;const d=Le(n),f=(null===(i=null==u?void 0:u.annotationParts)||void 0===i?void 0:i.filter((e=>e.annotationAnchor===d)))||[],p=[...(null==s?void 0:s[d])||[],...f];return t().createElement("span",{className:"e-annotatable",key:d,"data-annotation-path":d,"data-testid":d},p.length>0&&l?function(e,n,r,i){var o;if(0===n.length)return[e];n.sort(((e,t)=>e.startIndex-t.startIndex));const[a,s]=er(n,(e=>e.hidden)),l=[];a.forEach((e=>{const n=fs(e);l.push(t().createElement("mark",{key:n,className:"e-annotation","data-annotation-id":ps(e)?e.annotationId:"","data-hidden":"true"}))}));let c=0;const u=e.replace(/^\s+/," "),d=e.length-u.length,f=s.reduce(((e,t)=>{const n=e.some((e=>t.startIndex<e.startIndex+e.length&&e.startIndex<t.startIndex+t.length&&!e.hidden));return e.push({...t,hidden:t.hidden||n}),e}),[]);for(const n of f){const a=hs(e.replace(/\n/g," ").replace(/\s+/g," "),n.startIndex,n.length)===n.selectedText,s=((null===(o=e.split(n.selectedText)[0].match(/\n/g))||void 0===o?void 0:o.length)||0)*d,u=n.startIndex+(a?s:0),f=hs(e,u,n.length);u>c&&l.push(e.substring(c,u));const p=fs(n);l.push(n.hidden?t().createElement("mark",{key:p,className:"e-annotation","data-annotation-id":ps(n)?n.annotationId:"","data-hidden":"true"}):t().createElement(ds,{key:p,annotation:n,markedText:f,onClickAnnotation:r,setNewAnnotationRef:i})),c=u+n.length}return l.push(e.substring(c)),l}(n.textContent,p,l,c):n.textContent)},ms="http://ylioppilastutkinto.fi/exam.xsd";function vs(e){function n(r,i=0){return function(e,t){const n=e.childNodes.length,r=new Array(n);for(let i=0;i<n;i++)r[i]=t(e.childNodes[i],i);return r}(r,((r,o)=>function(r,i,o){switch(r.nodeType){case Node.TEXT_NODE:case Node.CDATA_SECTION_NODE:return 0===o?function(e){return t().createElement(gs,{node:e,key:Le(e)})}(r):null;case Node.ELEMENT_NODE:return function(r,i,o){switch(r.namespaceURI){case"http://www.w3.org/1999/xhtml":return function(e,r,i){const o=e.hasChildNodes()?n(e,i):null;if(0===i){const n=e.localName,i=function(e,t){const n={key:ys(e,t)};for(const t of e.attributes)n["class"===t.localName?"className":t.localName]=t.value;return n}(e,r);return t().createElement(n,{...i},o)}return o}(r,i,o);case ms:return function(r,i){const o=e[r.localName],a=r.getAttribute("class")||void 0;return o?t().createElement(o,{element:r,className:a,renderChildNodes:n,key:ys(r,i)}):null}(r,i);default:throw new Error(`Unrecognized element: ${r.localName}`)}}(r,i,o);default:return null}}(r,o,i)))}return n}function ys(e,t){return`${e.localName}-${t}`}const bs=e=>"string"==typeof e,xs=()=>{let e,t;const n=new Promise(((n,r)=>{e=n,t=r}));return n.resolve=e,n.reject=t,n},Is=e=>null==e?"":""+e,ws=/###/g,Ts=e=>e&&e.indexOf("###")>-1?e.replace(ws,"."):e,Ms=e=>!e||bs(e),As=(e,t,n)=>{const r=bs(t)?t.split("."):t;let i=0;for(;i<r.length-1;){if(Ms(e))return{};const t=Ts(r[i]);!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++i}return Ms(e)?{}:{obj:e,k:Ts(r[i])}},Es=(e,t,n)=>{const{obj:r,k:i}=As(e,t,Object);if(void 0!==r||1===t.length)return void(r[i]=n);let o=t[t.length-1],a=t.slice(0,t.length-1),s=As(e,a,Object);for(;void 0===s.obj&&a.length;)o=`${a[a.length-1]}.${o}`,a=a.slice(0,a.length-1),s=As(e,a,Object),s&&s.obj&&void 0!==s.obj[`${s.k}.${o}`]&&(s.obj=void 0);s.obj[`${s.k}.${o}`]=n},Cs=(e,t)=>{const{obj:n,k:r}=As(e,t);if(n)return n[r]},Ns=(e,t,n)=>{for(const r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?bs(e[r])||e[r]instanceof String||bs(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):Ns(e[r],t[r],n):e[r]=t[r]);return e},Ss=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var ks={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const js=e=>bs(e)?e.replace(/[&<>"'\/]/g,(e=>ks[e])):e,Ds=[" ",",","?","!",";"],Os=new class{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const t=this.regExpMap.get(e);if(void 0!==t)return t;const n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}}(20),Ls=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(!e)return;if(e[t])return e[t];const r=t.split(n);let i=e;for(let e=0;e<r.length;){if(!i||"object"!=typeof i)return;let t,o="";for(let a=e;a<r.length;++a)if(a!==e&&(o+=n),o+=r[a],t=i[o],void 0!==t){if(["string","number","boolean"].indexOf(typeof t)>-1&&a<r.length-1)continue;e+=a-e+1;break}i=t}return i},Rs=e=>e&&e.replace("_","-"),Ps={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class zs{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.init(e,t)}init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||Ps,this.options=t,this.debug=t.debug}log(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)}warn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)}error(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")}deprecate(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(e,t,n,r){return r&&!this.debug?null:(bs(e[0])&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[t](e))}create(e){return new zs(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return(e=e||this.options).prefix=e.prefix||this.prefix,new zs(this.logger,e)}}var Us=new zs;class _s{constructor(){this.observers={}}on(e,t){return e.split(" ").forEach((e=>{this.observers[e]||(this.observers[e]=new Map);const n=this.observers[e].get(t)||0;this.observers[e].set(t,n+1)})),this}off(e,t){this.observers[e]&&(t?this.observers[e].delete(t):delete this.observers[e])}emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this.observers[e]&&Array.from(this.observers[e].entries()).forEach((e=>{let[t,r]=e;for(let e=0;e<r;e++)t(...n)})),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach((t=>{let[r,i]=t;for(let t=0;t<i;t++)r.apply(r,[e,...n])}))}}class Bs extends _s{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const i=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,o=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure;let a;e.indexOf(".")>-1?a=e.split("."):(a=[e,t],n&&(Array.isArray(n)?a.push(...n):bs(n)&&i?a.push(...n.split(i)):a.push(n)));const s=Cs(this.data,a);return!s&&!t&&!n&&e.indexOf(".")>-1&&(e=a[0],t=a[1],n=a.slice(2).join(".")),!s&&o&&bs(n)?Ls(this.data&&this.data[e]&&this.data[e][t],n,i):s}addResource(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1};const o=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator;let a=[e,t];n&&(a=a.concat(o?n.split(o):n)),e.indexOf(".")>-1&&(a=e.split("."),r=t,t=a[1]),this.addNamespaces(t),Es(this.data,a,r),i.silent||this.emit("added",e,t,n,r)}addResources(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(const r in n)(bs(n[r])||Array.isArray(n[r]))&&this.addResource(e,t,r,n[r],{silent:!0});r.silent||this.emit("added",e,t,n)}addResourceBundle(e,t,n,r,i){let o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1,skipCopy:!1},a=[e,t];e.indexOf(".")>-1&&(a=e.split("."),r=n,n=t,t=a[1]),this.addNamespaces(t);let s=Cs(this.data,a)||{};o.skipCopy||(n=JSON.parse(JSON.stringify(n))),r?Ns(s,n,i):s={...s,...n},Es(this.data,a,s),o.silent||this.emit("added",e,t,n)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return void 0!==this.getResource(e,t)}getResourceBundle(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?{...this.getResource(e,t)}:this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find((e=>t[e]&&Object.keys(t[e]).length>0))}toJSON(){return this.data}}var Fs={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,i){return e.forEach((e=>{this.processors[e]&&(t=this.processors[e].process(t,n,r,i))})),t}};const Gs={};class Zs extends _s{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};var n,r;super(),n=e,r=this,["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"].forEach((e=>{n[e]&&(r[e]=n[e])})),this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=Us.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;const n=this.resolve(e,t);return n&&void 0!==n.res}extractFromKey(e,t){let n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");const r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator;let i=t.ns||this.options.defaultNS||[];const o=n&&e.indexOf(n)>-1,a=!(this.options.userDefinedKeySeparator||t.keySeparator||this.options.userDefinedNsSeparator||t.nsSeparator||((e,t,n)=>{t=t||"",n=n||"";const r=Ds.filter((e=>t.indexOf(e)<0&&n.indexOf(e)<0));if(0===r.length)return!0;const i=Os.getRegExp(`(${r.map((e=>"?"===e?"\\?":e)).join("|")})`);let o=!i.test(e);if(!o){const t=e.indexOf(n);t>0&&!i.test(e.substring(0,t))&&(o=!0)}return o})(e,n,r));if(o&&!a){const t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:bs(i)?[i]:i};const o=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(o[0])>-1)&&(i=o.shift()),e=o.join(r)}return{key:e,namespaces:bs(i)?[i]:i}}translate(e,t,n){if("object"!=typeof t&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof t&&(t={...t}),t||(t={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);const r=void 0!==t.returnDetails?t.returnDetails:this.options.returnDetails,i=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,{key:o,namespaces:a}=this.extractFromKey(e[e.length-1],t),s=a[a.length-1],l=t.lng||this.language,c=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(l&&"cimode"===l.toLowerCase()){if(c){const e=t.nsSeparator||this.options.nsSeparator;return r?{res:`${s}${e}${o}`,usedKey:o,exactUsedKey:o,usedLng:l,usedNS:s,usedParams:this.getUsedParamsDetails(t)}:`${s}${e}${o}`}return r?{res:o,usedKey:o,exactUsedKey:o,usedLng:l,usedNS:s,usedParams:this.getUsedParamsDetails(t)}:o}const u=this.resolve(e,t);let d=u&&u.res;const f=u&&u.usedKey||o,p=u&&u.exactUsedKey||o,h=Object.prototype.toString.apply(d),g=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,m=!this.i18nFormat||this.i18nFormat.handleAsObject,v=!bs(d)&&"boolean"!=typeof d&&"number"!=typeof d;if(!(m&&d&&v&&["[object Number]","[object Function]","[object RegExp]"].indexOf(h)<0)||bs(g)&&Array.isArray(d))if(m&&bs(g)&&Array.isArray(d))d=d.join(g),d&&(d=this.extendTranslation(d,e,t,n));else{let r=!1,a=!1;const c=void 0!==t.count&&!bs(t.count),f=Zs.hasDefaultValue(t),p=c?this.pluralResolver.getSuffix(l,t.count,t):"",h=t.ordinal&&c?this.pluralResolver.getSuffix(l,t.count,{ordinal:!1}):"",g=c&&!t.ordinal&&0===t.count&&this.pluralResolver.shouldUseIntlApi(),m=g&&t[`defaultValue${this.options.pluralSeparator}zero`]||t[`defaultValue${p}`]||t[`defaultValue${h}`]||t.defaultValue;!this.isValidLookup(d)&&f&&(r=!0,d=m),this.isValidLookup(d)||(a=!0,d=o);const v=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&a?void 0:d,y=f&&m!==d&&this.options.updateMissing;if(a||r||y){if(this.logger.log(y?"updateKey":"missingKey",l,s,o,y?m:d),i){const e=this.resolve(o,{...t,keySeparator:!1});e&&e.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let e=[];const n=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&n&&n[0])for(let t=0;t<n.length;t++)e.push(n[t]);else"all"===this.options.saveMissingTo?e=this.languageUtils.toResolveHierarchy(t.lng||this.language):e.push(t.lng||this.language);const r=(e,n,r)=>{const i=f&&r!==d?r:v;this.options.missingKeyHandler?this.options.missingKeyHandler(e,s,n,i,y,t):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(e,s,n,i,y,t),this.emit("missingKey",e,s,n,d)};this.options.saveMissing&&(this.options.saveMissingPlurals&&c?e.forEach((e=>{const n=this.pluralResolver.getSuffixes(e,t);g&&t[`defaultValue${this.options.pluralSeparator}zero`]&&n.indexOf(`${this.options.pluralSeparator}zero`)<0&&n.push(`${this.options.pluralSeparator}zero`),n.forEach((n=>{r([e],o+n,t[`defaultValue${n}`]||m)}))})):r(e,o,m))}d=this.extendTranslation(d,e,t,u,n),a&&d===o&&this.options.appendNamespaceToMissingKey&&(d=`${s}:${o}`),(a||r)&&this.options.parseMissingKeyHandler&&(d="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${s}:${o}`:o,r?d:void 0):this.options.parseMissingKeyHandler(d))}else{if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(f,d,{...t,ns:a}):`key '${o} (${this.language})' returned an object instead of string.`;return r?(u.res=e,u.usedParams=this.getUsedParamsDetails(t),u):e}if(i){const e=Array.isArray(d),n=e?[]:{},r=e?p:f;for(const e in d)if(Object.prototype.hasOwnProperty.call(d,e)){const o=`${r}${i}${e}`;n[e]=this.translate(o,{...t,joinArrays:!1,ns:a}),n[e]===o&&(n[e]=d[e])}d=n}}return r?(u.res=d,u.usedParams=this.getUsedParamsDetails(t),u):d}extendTranslation(e,t,n,r,i){var o=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});const a=bs(e)&&(n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let s;if(a){const t=e.match(this.interpolator.nestingRegexp);s=t&&t.length}let l=n.replace&&!bs(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(l={...this.options.interpolation.defaultVariables,...l}),e=this.interpolator.interpolate(e,l,n.lng||this.language||r.usedLng,n),a){const t=e.match(this.interpolator.nestingRegexp);s<(t&&t.length)&&(n.nest=!1)}!n.lng&&"v1"!==this.options.compatibilityAPI&&r&&r.res&&(n.lng=this.language||r.usedLng),!1!==n.nest&&(e=this.interpolator.nest(e,(function(){for(var e=arguments.length,r=new Array(e),a=0;a<e;a++)r[a]=arguments[a];return i&&i[0]===r[0]&&!n.context?(o.logger.warn(`It seems you are nesting recursively key: ${r[0]} in key: ${t[0]}`),null):o.translate(...r,t)}),n)),n.interpolation&&this.interpolator.reset()}const a=n.postProcess||this.options.postProcess,s=bs(a)?[a]:a;return null!=e&&s&&s.length&&!1!==n.applyPostProcessor&&(e=Fs.handle(s,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),e}resolve(e){let t,n,r,i,o,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return bs(e)&&(e=[e]),e.forEach((e=>{if(this.isValidLookup(t))return;const s=this.extractFromKey(e,a),l=s.key;n=l;let c=s.namespaces;this.options.fallbackNS&&(c=c.concat(this.options.fallbackNS));const u=void 0!==a.count&&!bs(a.count),d=u&&!a.ordinal&&0===a.count&&this.pluralResolver.shouldUseIntlApi(),f=void 0!==a.context&&(bs(a.context)||"number"==typeof a.context)&&""!==a.context,p=a.lngs?a.lngs:this.languageUtils.toResolveHierarchy(a.lng||this.language,a.fallbackLng);c.forEach((e=>{this.isValidLookup(t)||(o=e,!Gs[`${p[0]}-${e}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(o)&&(Gs[`${p[0]}-${e}`]=!0,this.logger.warn(`key "${n}" for languages "${p.join(", ")}" won't get resolved as namespace "${o}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),p.forEach((n=>{if(this.isValidLookup(t))return;i=n;const o=[l];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(o,l,n,e,a);else{let e;u&&(e=this.pluralResolver.getSuffix(n,a.count,a));const t=`${this.options.pluralSeparator}zero`,r=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(u&&(o.push(l+e),a.ordinal&&0===e.indexOf(r)&&o.push(l+e.replace(r,this.options.pluralSeparator)),d&&o.push(l+t)),f){const n=`${l}${this.options.contextSeparator}${a.context}`;o.push(n),u&&(o.push(n+e),a.ordinal&&0===e.indexOf(r)&&o.push(n+e.replace(r,this.options.pluralSeparator)),d&&o.push(n+t))}}let s;for(;s=o.pop();)this.isValidLookup(t)||(r=s,t=this.getResource(n,e,s,a))})))}))})),{res:t,usedKey:n,exactUsedKey:r,usedLng:i,usedNS:o}}isValidLookup(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}getResource(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}getUsedParamsDetails(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],n=e.replace&&!bs(e.replace);let r=n?e.replace:e;if(n&&void 0!==e.count&&(r.count=e.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!n){r={...r};for(const e of t)delete r[e]}return r}static hasDefaultValue(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&"defaultValue"===t.substring(0,12)&&void 0!==e[t])return!0;return!1}}const Hs=e=>e.charAt(0).toUpperCase()+e.slice(1);class qs{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Us.create("languageUtils")}getScriptPartFromCode(e){if(!(e=Rs(e))||e.indexOf("-")<0)return null;const t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}getLanguagePartFromCode(e){if(!(e=Rs(e))||e.indexOf("-")<0)return e;const t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(bs(e)&&e.indexOf("-")>-1){if("undefined"!=typeof Intl&&void 0!==Intl.getCanonicalLocales)try{let t=Intl.getCanonicalLocales(e)[0];if(t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t)return t}catch(e){}const t=["hans","hant","latn","cyrl","cans","mong","arab"];let n=e.split("-");return this.options.lowerCaseLng?n=n.map((e=>e.toLowerCase())):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=Hs(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=Hs(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=Hs(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach((e=>{if(t)return;const n=this.formatLanguageCode(e);this.options.supportedLngs&&!this.isSupportedCode(n)||(t=n)})),!t&&this.options.supportedLngs&&e.forEach((e=>{if(t)return;const n=this.getLanguagePartFromCode(e);if(this.isSupportedCode(n))return t=n;t=this.options.supportedLngs.find((e=>e===n?e:e.indexOf("-")<0&&n.indexOf("-")<0?void 0:e.indexOf("-")>0&&n.indexOf("-")<0&&e.substring(0,e.indexOf("-"))===n||0===e.indexOf(n)&&n.length>1?e:void 0))})),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t}getFallbackCodes(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),bs(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}toResolveHierarchy(e,t){const n=this.getFallbackCodes(t||this.options.fallbackLng||[],e),r=[],i=e=>{e&&(this.isSupportedCode(e)?r.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return bs(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?("languageOnly"!==this.options.load&&i(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&i(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&i(this.getLanguagePartFromCode(e))):bs(e)&&i(this.formatLanguageCode(e)),n.forEach((e=>{r.indexOf(e)<0&&i(this.formatLanguageCode(e))})),r}}let Ys=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],Vs={1:e=>Number(e>1),2:e=>Number(1!=e),3:e=>0,4:e=>Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2),5:e=>Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5),6:e=>Number(1==e?0:e>=2&&e<=4?1:2),7:e=>Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2),8:e=>Number(1==e?0:2==e?1:8!=e&&11!=e?2:3),9:e=>Number(e>=2),10:e=>Number(1==e?0:2==e?1:e<7?2:e<11?3:4),11:e=>Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3),12:e=>Number(e%10!=1||e%100==11),13:e=>Number(0!==e),14:e=>Number(1==e?0:2==e?1:3==e?2:3),15:e=>Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2),16:e=>Number(e%10==1&&e%100!=11?0:0!==e?1:2),17:e=>Number(1==e||e%10==1&&e%100!=11?0:1),18:e=>Number(0==e?0:1==e?1:2),19:e=>Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3),20:e=>Number(1==e?0:0==e||e%100>0&&e%100<20?1:2),21:e=>Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0),22:e=>Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)};const Ws=["v1","v2","v3"],Qs=["v4"],Js={zero:0,one:1,two:2,few:3,many:4,other:5};class Xs{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.languageUtils=e,this.options=t,this.logger=Us.create("pluralResolver"),this.options.compatibilityJSON&&!Qs.includes(this.options.compatibilityJSON)||"undefined"!=typeof Intl&&Intl.PluralRules||(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=(()=>{const e={};return Ys.forEach((t=>{t.lngs.forEach((n=>{e[n]={numbers:t.nr,plurals:Vs[t.fc]}}))})),e})(),this.pluralRulesCache={}}addRule(e,t){this.rules[e]=t}clearCache(){this.pluralRulesCache={}}getRule(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi()){const n=Rs("dev"===e?"en":e),r=t.ordinal?"ordinal":"cardinal",i=JSON.stringify({cleanedCode:n,type:r});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];let o;try{o=new Intl.PluralRules(n,{type:r})}catch(n){if(!e.match(/-|_/))return;const r=this.languageUtils.getLanguagePartFromCode(e);o=this.getRule(r,t)}return this.pluralRulesCache[i]=o,o}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}needsPlural(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=this.getRule(e,t);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}getPluralFormsOfKey(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,n).map((e=>`${t}${e}`))}getSuffixes(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=this.getRule(e,t);return n?this.shouldUseIntlApi()?n.resolvedOptions().pluralCategories.sort(((e,t)=>Js[e]-Js[t])).map((e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${e}`)):n.numbers.map((n=>this.getSuffix(e,n,t))):[]}getSuffix(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=this.getRule(e,n);return r?this.shouldUseIntlApi()?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${r.select(t)}`:this.getSuffixRetroCompatible(r,t):(this.logger.warn(`no plural rule found for: ${e}`),"")}getSuffixRetroCompatible(e,t){const n=e.noAbs?e.plurals(t):e.plurals(Math.abs(t));let r=e.numbers[n];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===r?r="plural":1===r&&(r=""));const i=()=>this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString();return"v1"===this.options.compatibilityJSON?1===r?"":"number"==typeof r?`_plural_${r.toString()}`:i():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?i():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}shouldUseIntlApi(){return!Ws.includes(this.options.compatibilityJSON)}}const $s=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".",i=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],o=((e,t,n)=>{const r=Cs(e,n);return void 0!==r?r:Cs(t,n)})(e,t,n);return!o&&i&&bs(n)&&(o=Ls(e,n,r),void 0===o&&(o=Ls(t,n,r))),o},Ks=e=>e.replace(/\$/g,"$$$$");class el{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=Us.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||(e=>e),this.init(e)}init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});const{escape:t,escapeValue:n,useRawValueToEscape:r,prefix:i,prefixEscaped:o,suffix:a,suffixEscaped:s,formatSeparator:l,unescapeSuffix:c,unescapePrefix:u,nestingPrefix:d,nestingPrefixEscaped:f,nestingSuffix:p,nestingSuffixEscaped:h,nestingOptionsSeparator:g,maxReplaces:m,alwaysFormat:v}=e.interpolation;this.escape=void 0!==t?t:js,this.escapeValue=void 0===n||n,this.useRawValueToEscape=void 0!==r&&r,this.prefix=i?Ss(i):o||"{{",this.suffix=a?Ss(a):s||"}}",this.formatSeparator=l||",",this.unescapePrefix=c?"":u||"-",this.unescapeSuffix=this.unescapePrefix?"":c||"",this.nestingPrefix=d?Ss(d):f||Ss("$t("),this.nestingSuffix=p?Ss(p):h||Ss(")"),this.nestingOptionsSeparator=g||",",this.maxReplaces=m||1e3,this.alwaysFormat=void 0!==v&&v,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(e,t)=>e&&e.source===t?(e.lastIndex=0,e):new RegExp(t,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(e,t,n,r){let i,o,a;const s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},l=e=>{if(e.indexOf(this.formatSeparator)<0){const i=$s(t,s,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(i,void 0,n,{...r,...t,interpolationkey:e}):i}const i=e.split(this.formatSeparator),o=i.shift().trim(),a=i.join(this.formatSeparator).trim();return this.format($s(t,s,o,this.options.keySeparator,this.options.ignoreJSONStructure),a,n,{...r,...t,interpolationkey:o})};this.resetRegExp();const c=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,u=r&&r.interpolation&&void 0!==r.interpolation.skipOnVariables?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>Ks(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?Ks(this.escape(e)):Ks(e)}].forEach((t=>{for(a=0;i=t.regex.exec(e);){const n=i[1].trim();if(o=l(n),void 0===o)if("function"==typeof c){const t=c(e,i,r);o=bs(t)?t:""}else if(r&&Object.prototype.hasOwnProperty.call(r,n))o="";else{if(u){o=i[0];continue}this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`),o=""}else bs(o)||this.useRawValueToEscape||(o=Is(o));const s=t.safeValue(o);if(e=e.replace(i[0],s),u?(t.regex.lastIndex+=o.length,t.regex.lastIndex-=i[0].length):t.regex.lastIndex=0,a++,a>=this.maxReplaces)break}})),e}nest(e,t){let n,r,i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const a=(e,t)=>{const n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;const r=e.split(new RegExp(`${n}[ ]*{`));let o=`{${r[1]}`;e=r[0],o=this.interpolate(o,i);const a=o.match(/'/g),s=o.match(/"/g);(a&&a.length%2==0&&!s||s.length%2!=0)&&(o=o.replace(/'/g,'"'));try{i=JSON.parse(o),t&&(i={...t,...i})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${n}${o}`}return i.defaultValue&&i.defaultValue.indexOf(this.prefix)>-1&&delete i.defaultValue,e};for(;n=this.nestingRegexp.exec(e);){let s=[];i={...o},i=i.replace&&!bs(i.replace)?i.replace:i,i.applyPostProcessor=!1,delete i.defaultValue;let l=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){const e=n[1].split(this.formatSeparator).map((e=>e.trim()));n[1]=e.shift(),s=e,l=!0}if(r=t(a.call(this,n[1].trim(),i),i),r&&n[0]===e&&!bs(r))return r;bs(r)||(r=Is(r)),r||(this.logger.warn(`missed to resolve ${n[1]} for nesting ${e}`),r=""),l&&(r=s.reduce(((e,t)=>this.format(e,t,o.lng,{...o,interpolationkey:n[1].trim()})),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}const tl=e=>{const t={};return(n,r,i)=>{let o=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(o={...o,[i.interpolationkey]:void 0});const a=r+JSON.stringify(o);let s=t[a];return s||(s=e(Rs(r),i),t[a]=s),s(n)}};class nl{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=Us.create("formatter"),this.options=e,this.formats={number:tl(((e,t)=>{const n=new Intl.NumberFormat(e,{...t});return e=>n.format(e)})),currency:tl(((e,t)=>{const n=new Intl.NumberFormat(e,{...t,style:"currency"});return e=>n.format(e)})),datetime:tl(((e,t)=>{const n=new Intl.DateTimeFormat(e,{...t});return e=>n.format(e)})),relativetime:tl(((e,t)=>{const n=new Intl.RelativeTimeFormat(e,{...t});return e=>n.format(e,t.range||"day")})),list:tl(((e,t)=>{const n=new Intl.ListFormat(e,{...t});return e=>n.format(e)}))},this.init(e)}init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};this.formatSeparator=t.interpolation.formatSeparator||","}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=tl(t)}format(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const i=t.split(this.formatSeparator);if(i.length>1&&i[0].indexOf("(")>1&&i[0].indexOf(")")<0&&i.find((e=>e.indexOf(")")>-1))){const e=i.findIndex((e=>e.indexOf(")")>-1));i[0]=[i[0],...i.splice(1,e)].join(this.formatSeparator)}return i.reduce(((e,t)=>{const{formatName:i,formatOptions:o}=(e=>{let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const i=r[1].substring(0,r[1].length-1);"currency"===t&&i.indexOf(":")<0?n.currency||(n.currency=i.trim()):"relativetime"===t&&i.indexOf(":")<0?n.range||(n.range=i.trim()):i.split(";").forEach((e=>{if(e){const[t,...r]=e.split(":"),i=r.join(":").trim().replace(/^'+|'+$/g,""),o=t.trim();n[o]||(n[o]=i),"false"===i&&(n[o]=!1),"true"===i&&(n[o]=!0),isNaN(i)||(n[o]=parseInt(i,10))}}))}return{formatName:t,formatOptions:n}})(t);if(this.formats[i]){let t=e;try{const a=r&&r.formatParams&&r.formatParams[r.interpolationkey]||{},s=a.locale||a.lng||r.locale||r.lng||n;t=this.formats[i](e,s,{...o,...r,...a})}catch(e){this.logger.warn(e)}return t}return this.logger.warn(`there was no format function for ${i}`),e}),e)}}class rl extends _s{constructor(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=r,this.logger=Us.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(n,r.backend,r)}queueLoad(e,t,n,r){const i={},o={},a={},s={};return e.forEach((e=>{let r=!0;t.forEach((t=>{const a=`${e}|${t}`;!n.reload&&this.store.hasResourceBundle(e,t)?this.state[a]=2:this.state[a]<0||(1===this.state[a]?void 0===o[a]&&(o[a]=!0):(this.state[a]=1,r=!1,void 0===o[a]&&(o[a]=!0),void 0===i[a]&&(i[a]=!0),void 0===s[t]&&(s[t]=!0)))})),r||(a[e]=!0)})),(Object.keys(i).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(i),pending:Object.keys(o),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(s)}}loaded(e,t,n){const r=e.split("|"),i=r[0],o=r[1];t&&this.emit("failedLoading",i,o,t),!t&&n&&this.store.addResourceBundle(i,o,n,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&n&&(this.state[e]=0);const a={};this.queue.forEach((n=>{((e,t,n,r)=>{const{obj:i,k:o}=As(e,t,Object);i[o]=i[o]||[],i[o].push(n)})(n.loaded,[i],o),((e,t)=>{void 0!==e.pending[t]&&(delete e.pending[t],e.pendingCount--)})(n,e),t&&n.errors.push(t),0!==n.pendingCount||n.done||(Object.keys(n.loaded).forEach((e=>{a[e]||(a[e]={});const t=n.loaded[e];t.length&&t.forEach((t=>{void 0===a[e][t]&&(a[e][t]=!0)}))})),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())})),this.emit("loaded",a),this.queue=this.queue.filter((e=>!e.done))}read(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,o=arguments.length>5?arguments[5]:void 0;if(!e.length)return o(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:e,ns:t,fcName:n,tried:r,wait:i,callback:o});this.readingCalls++;const a=(a,s)=>{if(this.readingCalls--,this.waitingReads.length>0){const e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}a&&s&&r<this.maxRetries?setTimeout((()=>{this.read.call(this,e,t,n,r+1,2*i,o)}),i):o(a,s)},s=this.backend[n].bind(this.backend);if(2!==s.length)return s(e,t,a);try{const n=s(e,t);n&&"function"==typeof n.then?n.then((e=>a(null,e))).catch(a):a(null,n)}catch(e){a(e)}}prepareLoading(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r();bs(e)&&(e=this.languageUtils.toResolveHierarchy(e)),bs(t)&&(t=[t]);const i=this.queueLoad(e,t,n,r);if(!i.toLoad.length)return i.pending.length||r(),null;i.toLoad.forEach((e=>{this.loadOne(e)}))}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const n=e.split("|"),r=n[0],i=n[1];this.read(r,i,"read",void 0,void 0,((n,o)=>{n&&this.logger.warn(`${t}loading namespace ${i} for language ${r} failed`,n),!n&&o&&this.logger.log(`${t}loaded namespace ${i} for language ${r}`,o),this.loaded(e,n,o)}))}saveMissing(e,t,n,r,i){let o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t))this.logger.warn(`did not save key "${n}" as the namespace "${t}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");else if(null!=n&&""!==n){if(this.backend&&this.backend.create){const s={...o,isUpdate:i},l=this.backend.create.bind(this.backend);if(l.length<6)try{let i;i=5===l.length?l(e,t,n,r,s):l(e,t,n,r),i&&"function"==typeof i.then?i.then((e=>a(null,e))).catch(a):a(null,i)}catch(e){a(e)}else l(e,t,n,r,a,s)}e&&e[0]&&this.store.addResource(e[0],t,n,r)}}}const il=()=>({debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if("object"==typeof e[1]&&(t=e[1]),bs(e[1])&&(t.defaultValue=e[1]),bs(e[2])&&(t.tDescription=e[2]),"object"==typeof e[2]||"object"==typeof e[3]){const n=e[3]||e[2];Object.keys(n).forEach((e=>{t[e]=n[e]}))}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),ol=e=>(bs(e.ns)&&(e.ns=[e.ns]),bs(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),bs(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),al=()=>{};class sl extends _s{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;var n;if(super(),this.options=ol(e),this.services={},this.logger=Us,this.modules={external:[]},n=this,Object.getOwnPropertyNames(Object.getPrototypeOf(n)).forEach((e=>{"function"==typeof n[e]&&(n[e]=n[e].bind(n))})),t&&!this.isInitialized&&!e.isClone){if(!this.options.initImmediate)return this.init(e,t),this;setTimeout((()=>{this.init(e,t)}),0)}}init(){var e=this;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,"function"==typeof t&&(n=t,t={}),!t.defaultNS&&!1!==t.defaultNS&&t.ns&&(bs(t.ns)?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));const r=il();this.options={...r,...this.options,...ol(t)},"v1"!==this.options.compatibilityAPI&&(this.options.interpolation={...r.interpolation,...this.options.interpolation}),void 0!==t.keySeparator&&(this.options.userDefinedKeySeparator=t.keySeparator),void 0!==t.nsSeparator&&(this.options.userDefinedNsSeparator=t.nsSeparator);const i=e=>e?"function"==typeof e?new e:e:null;if(!this.options.isClone){let t;this.modules.logger?Us.init(i(this.modules.logger),this.options):Us.init(null,this.options),this.modules.formatter?t=this.modules.formatter:"undefined"!=typeof Intl&&(t=nl);const n=new qs(this.options);this.store=new Bs(this.options.resources,this.options);const o=this.services;o.logger=Us,o.resourceStore=this.store,o.languageUtils=n,o.pluralResolver=new Xs(n,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),!t||this.options.interpolation.format&&this.options.interpolation.format!==r.interpolation.format||(o.formatter=i(t),o.formatter.init(o,this.options),this.options.interpolation.format=o.formatter.format.bind(o.formatter)),o.interpolator=new el(this.options),o.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},o.backendConnector=new rl(i(this.modules.backend),o.resourceStore,o,this.options),o.backendConnector.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];e.emit(t,...r)})),this.modules.languageDetector&&(o.languageDetector=i(this.modules.languageDetector),o.languageDetector.init&&o.languageDetector.init(o,this.options.detection,this.options)),this.modules.i18nFormat&&(o.i18nFormat=i(this.modules.i18nFormat),o.i18nFormat.init&&o.i18nFormat.init(this)),this.translator=new Zs(this.services,this.options),this.translator.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];e.emit(t,...r)})),this.modules.external.forEach((e=>{e.init&&e.init(this)}))}if(this.format=this.options.interpolation.format,n||(n=al),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&"dev"!==e[0]&&(this.options.lng=e[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach((t=>{this[t]=function(){return e.store[t](...arguments)}})),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach((t=>{this[t]=function(){return e.store[t](...arguments),e}}));const o=xs(),a=()=>{const e=(e,t)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),o.resolve(t),n(e,t)};if(this.languages&&"v1"!==this.options.compatibilityAPI&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initImmediate?a():setTimeout(a,0),o}loadResources(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:al;const n=bs(e)?e:this.language;if("function"==typeof e&&(t=e),!this.options.resources||this.options.partialBundledLanguages){if(n&&"cimode"===n.toLowerCase()&&(!this.options.preload||0===this.options.preload.length))return t();const e=[],r=t=>{t&&"cimode"!==t&&this.services.languageUtils.toResolveHierarchy(t).forEach((t=>{"cimode"!==t&&e.indexOf(t)<0&&e.push(t)}))};n?r(n):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((e=>r(e))),this.options.preload&&this.options.preload.forEach((e=>r(e))),this.services.backendConnector.load(e,this.options.ns,(e=>{e||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),t(e)}))}else t(null)}reloadResources(e,t,n){const r=xs();return"function"==typeof e&&(n=e,e=void 0),"function"==typeof t&&(n=t,t=void 0),e||(e=this.languages),t||(t=this.options.ns),n||(n=al),this.services.backendConnector.reload(e,t,(e=>{r.resolve(),n(e)})),r}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&Fs.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}setResolvedLanguage(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1))for(let e=0;e<this.languages.length;e++){const t=this.languages[e];if(!(["cimode","dev"].indexOf(t)>-1)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}}changeLanguage(e,t){var n=this;this.isLanguageChangingTo=e;const r=xs();this.emit("languageChanging",e);const i=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},o=(e,o)=>{o?(i(o),this.translator.changeLanguage(o),this.isLanguageChangingTo=void 0,this.emit("languageChanged",o),this.logger.log("languageChanged",o)):this.isLanguageChangingTo=void 0,r.resolve((function(){return n.t(...arguments)})),t&&t(e,(function(){return n.t(...arguments)}))},a=t=>{e||t||!this.services.languageDetector||(t=[]);const n=bs(t)?t:this.services.languageUtils.getBestMatchFromCodes(t);n&&(this.language||i(n),this.translator.language||this.translator.changeLanguage(n),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(n)),this.loadResources(n,(e=>{o(e,n)}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(e):a(this.services.languageDetector.detect()),r}getFixedT(e,t,n){var r=this;const i=function(e,t){let o;if("object"!=typeof t){for(var a=arguments.length,s=new Array(a>2?a-2:0),l=2;l<a;l++)s[l-2]=arguments[l];o=r.options.overloadTranslationOptionHandler([e,t].concat(s))}else o={...t};o.lng=o.lng||i.lng,o.lngs=o.lngs||i.lngs,o.ns=o.ns||i.ns,""!==o.keyPrefix&&(o.keyPrefix=o.keyPrefix||n||i.keyPrefix);const c=r.options.keySeparator||".";let u;return u=o.keyPrefix&&Array.isArray(e)?e.map((e=>`${o.keyPrefix}${c}${e}`)):o.keyPrefix?`${o.keyPrefix}${c}${e}`:e,r.t(u,o)};return bs(e)?i.lng=e:i.lngs=e,i.ns=t,i.keyPrefix=n,i}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const n=t.lng||this.resolvedLanguage||this.languages[0],r=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if("cimode"===n.toLowerCase())return!0;const o=(e,t)=>{const n=this.services.backendConnector.state[`${e}|${t}`];return-1===n||0===n||2===n};if(t.precheck){const e=t.precheck(this,o);if(void 0!==e)return e}return!(!this.hasResourceBundle(n,e)&&this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages)&&(!o(n,e)||r&&!o(i,e)))}loadNamespaces(e,t){const n=xs();return this.options.ns?(bs(e)&&(e=[e]),e.forEach((e=>{this.options.ns.indexOf(e)<0&&this.options.ns.push(e)})),this.loadResources((e=>{n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){const n=xs();bs(e)&&(e=[e]);const r=this.options.preload||[],i=e.filter((e=>r.indexOf(e)<0&&this.services.languageUtils.isSupportedCode(e)));return i.length?(this.options.preload=r.concat(i),this.loadResources((e=>{n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!e)return"rtl";const t=this.services&&this.services.languageUtils||new qs(il());return["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(t.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){return new sl(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1?arguments[1]:void 0)}cloneInstance(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:al;const n=e.forkResourceStore;n&&delete e.forkResourceStore;const r={...this.options,...e,isClone:!0},i=new sl(r);return void 0===e.debug&&void 0===e.prefix||(i.logger=i.logger.clone(e)),["store","services","language"].forEach((e=>{i[e]=this[e]})),i.services={...this.services},i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},n&&(i.store=new Bs(this.store.data,r),i.services.resourceStore=i.store),i.translator=new Zs(i.services,r),i.translator.on("*",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];i.emit(e,...n)})),i.init(r,t),i.translator.options=r,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const ll=sl.createInstance();ll.createInstance=sl.createInstance,ll.createInstance,ll.dir,ll.init,ll.loadResources,ll.reloadResources,ll.use,ll.changeLanguage,ll.getFixedT,ll.t,ll.exists,ll.setDefaultNamespace,ll.hasLoadedNamespace,ll.loadNamespaces,ll.loadLanguages;const cl=function(e){return e&&e.length?e[0]:void 0},ul=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0},dl=function(){};var fl=Object.prototype.hasOwnProperty;const pl=function(e,t,n){var r=e[t];fl.call(e,t)&&$e(r,n)&&(void 0!==n||t in e)||Qe(e,t,n)},hl=function(e,t,n,r){if(!le(e))return e;for(var i=-1,o=(t=yn(t,e)).length,a=o-1,s=e;null!=s&&++i<o;){var l=bn(t[i]),c=n;if("__proto__"===l||"constructor"===l||"prototype"===l)return e;if(i!=a){var u=s[l];void 0===(c=r?r(u,l,s):void 0)&&(c=le(u)?u:q(t[i+1])?[]:{})}pl(s,l,c),s=s[l]}return e},gl=function(e,t){return function(e,t,n){for(var r=-1,i=t.length,o={};++r<i;){var a=t[r],s=xn(e,a);n(s,a)&&hl(o,yn(a,e),s)}return o}(e,t,(function(t,n){return Tn(e,n)}))},ml=function(e){return null!=e&&e.length?Bn(e,1):[]},vl=function(e){return Wn(qn(e,void 0,ml),e+"")},yl=vl((function(e,t){return null==e?{}:gl(e,t)})),bl={"exam-total":"Provet sammanlagt","grading-total":"Sammanlagt",material:"Material","attachments-page-title":"Material:","external-material-title":"Material","grading-instructions-page-title":"Beskrivningar av goda svar:",section:"Del {{displayNumber}}:",question:"Uppgift {{displayNumber}}:",grade:"Vitsord",comment:"Kommentar",points:"{{count}} p.",recording:"Inspelningen","audio-errors":{"already-accessed":"Du har redan spelat denna inspelning. Uppdatera sidan","already-playing":"Lyssna först inspelningen till slut.","other-error":"Uppspelning misslyckades, be övervakaren om hjälp."},"audio-test":{instructions:"Provet omfattar uppgifter i hörförståelse.",play:"Testa hörbarheten",volume:"Du kan justera ljudvolymen uppe i högra hörnet av rutan."},"dropdown-answer":{label:"Välj det alternativ som passar bäst.",clear:"Avmarkera alternativet."},grading:{"pregrading-annotations":"Preliminära bedömningens anteckningar (lärare)","censor-annotations":"Censorns anteckningar","pregrading-abbrev":"prel.","inspection-grading-abbrev":"ompr.","round.1":"1.c","round.2":"2.c","round.3":"3.c",annotate:"Markera","non-answer-not-graded":"Lämnats utan bedömning","loading-images":"Vänta, bilder laddas...","some-images-failed":"Laddning av vissa bilder misslyckades. Var god uppdatera sidan."},references:{heading:"Källor",source:"Källa:",date:"Publicerad:","reference-date":"Hämtad:",translator:"Översättning:","modified-by":"Bearbetning:"},cas:{examineSectionA:"Du kan nu granska dina svar för del A.",cannotEditLater:"När du har returnerat del A kan du inte längre redigera svaren för del A.",youCanReturn:"Efter att du granskat dina svar kan du gå tillbaka till provet för att fortsätta svara på uppgifterna.",forbidden:{infoText:"Du får tillgång till de blockerade räknarprogrammen efter att du returnerat del A.",buttonText:"Returnera del A"},allowing:{infoText:"Svaren i A-delen låses. Du får tillgång till de blockerade räknarprogrammen om en stund.",cancel:"Avbryt ({{count}} s)"},allowed:{infoText:"Del A returnerad"}},"examine-exam":{examine:"Kontrollera dina svar",instructions:"Efter att du granskat dina svar kan du ännu gå tillbaka och redigera svaren eller avsluta provet."},"dnd-answers":{"all-answer-options":"TODO TODO:","correct-answers":"TODO TODO","question-missing":"Här saknas ett objekt...","answer-missing":"Här kommer rätta alternativet...","drop-here":"TODO TODO","no-answer":"(TODO TODO)"},undo:{loading:"Laddar...",close:"Stäng",restoreAnswer:"Återställ",answerNoText:"ingen text",answerWordCount:"{{count}} ord",answerWordCount_plural:"{{count}} ord",answerCharacterCount:"{{count}} tecken",answerCharacterCount_plural:"{{count}} tecken",answerImageCount:"{{count}} bild",answerImageCount_plural:"{{count}} bilder",minutesSinceAnswer:"{{ minutes }} min sedan",latestVersion:"Den senaste versionen"},examineExam:{returnToExam:"Återvänd till provutförandet",checkYourAnswersTitle:"Kontrollera dina svar",hereAreYourAnswers:"Du ser här dina svar på samma sätt som de som bedömer proven kommer att se dem.",checkYourAnswers:"Kontrollera att du kan se alla de svar som du vill lämna in till bedömning.",removeExcessAnswers:"Om du ser svar som du inte vill lämna in till bedömning bör du gå tillbaka till provet och avlägsna dem.",emptyAnswersAreHighlighted:"Tomma svarsfält har markerats.",thereMayBeOptionalQuestions:"Det kan finnas valbara uppgifter i provet, och därmed innebär ett tomt svarsfält inte alltid att något är fel.",questionHasNoAnswer:"Denna fråga har inte besvarats",endExamTitle:"Avsluta provet",afterInspectingYourAnswers:"När du har kontrollerat dina svar kan du avsluta provet genom att klicka på knappen nedan.",youCanNotReturnToExam:"Efter att du klickat på knappen kan du inte längre gå tillbaka till provet.",thankYouTitle:"Tack!",shutdownComputer:"Stäng nu av datorn.",returnUsbStick:"När datorn har är avstängd, ta bort USB-minnet och ge det till provets övervakare."},"toc-heading":"Innehåll","answer-saved":"Sparad","too-many-answers":"Svar på för många uppgifter:","max-answers-warning":"Besvara högst {{count}} uppgift.","max-answers-warning_plural":"Besvara högst {{count}} uppgifter.","open-writing-mode":"Öppna skrivvyn","close-writing-mode":"Minska vyn","listen-times-remaining":"{{count}} lyssningsgång kvar.","listen-times-remaining_plural":"{{count}} lyssningsgånger kvar.","answer-length":"Svarets längd: {{count}} tecken.","answer-length-with-max-length":"Svarets längd: {{count}} / {{maxLength}} tecken.","max-length-surplus":"Svaret överskrider maximallängden på {{maxLength}} märken med {{percentage}} %.","max-length-info":"Svaret får inte överskrida {{count}} tecken. Om det givna antalet tecken överskrids leder det till poängavdrag.","previous-answer-versions":"Tidigare utkast till svar","zoom-in":"Förstora bilden","end-of-exam":"Uppgifterna i provet slutar här.","answering-instructions":{"exam_*_1_1":"Besvara högst en uppgift i provet.","exam_*_2_2":"Besvara högst två uppgifter i provet.","exam_*_3_3":"Besvara högst tre uppgifter i provet.","exam_*_4_4":"Besvara högst fyra uppgifter i provet.","exam_*_5_5":"Besvara högst fem uppgifter i provet.","exam_*_6_6":"Besvara högst sex uppgifter i provet.","exam_*_7_7":"Besvara högst sju uppgifter i provet.","exam_*_8_8":"Besvara högst åtta uppgifter i provet.","exam_*_9_9":"Besvara högst nio uppgifter i provet.","exam_*_10_10":"Besvara högst tio uppgifter i provet.","exam_*_*_*":"Besvara högst {{answerCount, range}} uppgifter i provet.","question_*_1_1":"Besvara en av punkterna {{questions, range}}.","question_*_2_2":"Besvara två av punkterna {{questions, range}}.","question_*_3_3":"Besvara tre av punkterna {{questions, range}}.","question_*_4_4":"Besvara fyra av punkterna {{questions, range}}.","question_*_5_5":"Besvara fem av punkterna {{questions, range}}.","question_*_6_6":"Besvara sex av punkterna {{questions, range}}.","question_*_7_7":"Besvara sju av punkterna {{questions, range}}.","question_*_8_8":"Besvara åtta av punkterna {{questions, range}}.","question_*_9_9":"Besvara nio av punkterna {{questions, range}}.","question_*_10_10":"Besvara tio av punkterna {{questions, range}}.","question_2_*_1":"Besvara antingen punkt {{questions, first}} eller {{questions, last}}.","question_*_*_*":"Besvara {{answerCount, range}} av punkterna {{questions, range}}.","section_*_1_1":"Besvara en uppgift.","section_*_2_2":"Besvara två uppgifter.","section_*_3_3":"Besvara tre uppgifter.","section_*_4_4":"Besvara fyra uppgifter.","section_*_5_5":"Besvara fem uppgifter.","section_*_6_6":"Besvara sex uppgifter.","section_*_7_7":"Besvara sju uppgifter.","section_*_8_8":"Besvara åtta uppgifter.","section_*_9_9":"Besvara nio uppgifter.","section_*_10_10":"Besvara tio uppgifter.","section_1_*_1":"Besvara uppgift {{questions, range}}.","section_2_*_1":"Besvara antingen uppgift {{questions, first}} eller {{questions, last}}.","section_*_*_*":"Besvara {{answerCount, range}} uppgifter.","toc-section_*_1_1":"Besvara en uppgift.","toc-section_*_2_2":"Besvara två uppgifter.","toc-section_*_3_3":"Besvara tre uppgifter.","toc-section_*_4_4":"Besvara fyra uppgifter.","toc-section_*_5_5":"Besvara fem uppgifter.","toc-section_*_6_6":"Besvara sex uppgifter.","toc-section_*_7_7":"Besvara sju uppgifter.","toc-section_*_8_8":"Besvara åtta uppgifter.","toc-section_*_9_9":"Besvara nio uppgifter.","toc-section_*_10_10":"Besvara tio uppgifter.","toc-section_1_*_1":"Besvara uppgift {{questions, range}}.","toc-section_2_*_1":"Besvara antingen uppgift {{questions, first}} eller {{questions, last}}.","toc-section_*_*_*":"Besvara {{answerCount, range}} uppgifter."},"answer-errors":{"screenshot-too-big":"Den skärmdump du tagit är för stor. Ta en ny skärmdump av en mindre del av skärmen och försök på nytt.","screenshot-byte-limit-reached":"Minnesutrymmet för skärmdumpar är fullt. (Du kan referera till bilder i materialet direkt utan skärmdumpar.)","screenshot-upload-failed":"Bifogandet av skärmdumpen misslyckades. Försök på nytt.","answer-too-long":"Svaret är för långt."},"screen-reader":{"answer-begin":"[Svaret börjar]","answer-end":"[Svaret avslutar]","correct-answer":"[Accepterat svar]"}},xl=yl(bl,["exam-total","material","external-material-title","section","references","toc-heading"]),Il={"exam-total":"Koe yhteensä","grading-total":"Yhteensä",material:"Aineisto",material_plural:"Aineistot","attachments-page-title":"Aineisto:","external-material-title":"Aineisto","grading-instructions-page-title":"Hyvän vastauksen piirteet:",section:"Osa {{displayNumber}}:",question:"Tehtävä {{displayNumber}}:",grade:"Arvosana",comment:"Kommentti",points:"{{count}} p.",recording:"Tallenne","audio-errors":{"already-accessed":"Olet jo toistanut tämän äänitteen. Päivitä sivu.","already-playing":"Kuuntele äänite ensin loppuun.","other-error":"Äänitteen toistaminen epäonnistui, pyydä apua valvojalta."},"audio-test":{instructions:"Koe sisältää kuullunymmärtämisen tehtäviä.",play:"Testaa äänitteiden kuuluvuus",volume:"Äänen voimakkuutta voit säätää ruudun oikeasta yläkulmasta."},"dropdown-answer":{label:"Valitse parhaiten sopiva vaihtoehto.",clear:"Poista valinta."},grading:{"pregrading-annotations":"Alustavan arvostelun merkinnät (opettaja)","censor-annotations":"Sensorin merkinnät","pregrading-abbrev":"alust.","inspection-grading-abbrev":"ov","round.1":"1.s","round.2":"2.s","round.3":"3.s",annotate:"Merkitse","non-answer-not-graded":"Jätetty arvostelematta","loading-images":"Odota, kuvia ladataan...","some-images-failed":"Joidenkin kuvien lataaminen epäonnistui. Päivitä sivu."},references:{heading:"Lähteet",source:"Lähde:",date:"Julkaistu:","reference-date":"Viitattu:",translator:"Käännös:","modified-by":"Muokkaus:"},cas:{examineSectionA:"Voit käydä tarkastelemassa A-osan vastauksiasi nyt.",cannotEditLater:"Palautettuasi A-osan et voi enää muokata A-osan vastauksia.",youCanReturn:"Tarkastelun jälkeen voit palata kokeeseen jatkamaan tehtäviin vastaamista.",forbidden:{infoText:"Saat estetyt laskinohjelmat käyttöösi palautettuasi A-osan.",buttonText:"Palauta A-osa"},allowing:{infoText:"A-osan vastaukset lukitaan. Saat estetyt laskinohjelmat käyttöösi hetken kuluttua.",cancel:"Peruuta ({{count}} s)"},allowed:{infoText:"A-osa palautettu"}},"examine-exam":{examine:"Siirry tarkastelemaan vastauksiasi",instructions:"Tarkastelun jälkeen voit vielä palata muokkaamaan vastauksia, tai päättää kokeen."},"dnd-answers":{"all-answer-options":"Vastausvaihtoehdot:","correct-answers":"Oikeat vastaukset","question-missing":"Tästä puuttuu tehtävä...","answer-missing":"Tästä puuttuu vastaus...","drop-here":"Pudota tänne","no-answer":"(Ei vastausta)"},undo:{loading:"Ladataan...",close:"Sulje",restoreAnswer:"Palauta",answerNoText:"ei tekstiä",answerWordCount:"{{count}} sana",answerWordCount_plural:"{{count}} sanaa",answerCharacterCount:"{{count}} merkki",answerCharacterCount_plural:"{{count}} merkkiä",answerImageCount:"{{count}} kuva",answerImageCount_plural:"{{count}} kuvaa",minutesSinceAnswer:"{{ minutes }} min sitten",latestVersion:"Viimeisin versio"},examineExam:{returnToExam:"Palaa suorittamaan koetta",checkYourAnswersTitle:"Tarkista vastauksesi",hereAreYourAnswers:"Näet tässä vastauksesi samanlaisina kuin kokeen arvostelijat tulevat ne näkemään.",checkYourAnswers:"Tarkista, että näet alla kaikki vastaukset, jotka haluat jättää arvosteltavaksi.",removeExcessAnswers:"Jos näet vastauksia, joita et halua jättää arvosteltavaksi, palaa kokeeseen ja poista ne.",emptyAnswersAreHighlighted:"Tyhjät vastaukset on korostettu.",thereMayBeOptionalQuestions:"Kokeessa voi olla valinnaisia tehtäviä, joten tyhjä vastaus ei välttämättä tarkoita virhettä.",questionHasNoAnswer:"Tähän kysymykseen ei ole vastattu",endExamTitle:"Päätä koe",afterInspectingYourAnswers:"Kun olet tarkistanut vastauksesi, päätä koe klikkaamalla alla olevaa nappia.",youCanNotReturnToExam:"Napin klikkaamisen jälkeen et voi enää palata kokeeseen.",thankYouTitle:"Kiitos!",shutdownComputer:"Sammuta vielä tietokoneesi.",returnUsbStick:"Kun kone on sammunut, irrota USB-muisti ja palauta se kokeen valvojalle."},"toc-heading":"Sisällys","answer-saved":"Tallennettu","too-many-answers":"Vastattu liian moneen tehtävään:","max-answers-warning":"Vastaa enintään {{count}} tehtävään.","open-writing-mode":"Avaa kirjoitusnäkymä","close-writing-mode":"Pienennä näkymä","listen-times-remaining":"{{count}} kuuntelukerta jäljellä.","listen-times-remaining_plural":"{{count}} kuuntelukertaa jäljellä.","answer-length":"Vastauksen pituus: {{count}} merkki.","answer-length_plural":"Vastauksen pituus: {{count}} merkkiä.","answer-length-with-max-length":"Vastauksen pituus: {{count}} / {{maxLength}} merkkiä.","max-length-surplus":"Vastauksen enimmäispituus {{maxLength}} merkkiä ylittyy {{percentage}} %.","max-length-info":"Vastauksen pituus on enintään {{count}} merkkiä. Ylityksestä seuraa pistevähennys.","previous-answer-versions":"Aiemmat vastausluonnokset","zoom-in":"Suurenna kuva","end-of-exam":"Kokeen tehtävät loppuvat tähän.","answering-instructions":{"exam_*_1_1":"Vastaa kokeessa enintään yhteen tehtävään.","exam_*_2_2":"Vastaa kokeessa enintään kahteen tehtävään.","exam_*_3_3":"Vastaa kokeessa enintään kolmeen tehtävään.","exam_*_4_4":"Vastaa kokeessa enintään neljään tehtävään.","exam_*_5_5":"Vastaa kokeessa enintään viiteen tehtävään.","exam_*_6_6":"Vastaa kokeessa enintään kuuteen tehtävään.","exam_*_7_7":"Vastaa kokeessa enintään seitsemään tehtävään.","exam_*_8_8":"Vastaa kokeessa enintään kahdeksaan tehtävään.","exam_*_9_9":"Vastaa kokeessa enintään yhdeksään tehtävään.","exam_*_10_10":"Vastaa kokeessa enintään kymmeneen tehtävään.","exam_*_*_*":"Vastaa kokeessa enintään {{answerCount, range}} tehtävään.","question_*_1_1":"Vastaa yhteen kohdista {{questions, range}}.","question_*_2_2":"Vastaa kahteen kohdista {{questions, range}}.","question_*_3_3":"Vastaa kolmeen kohdista {{questions, range}}.","question_*_4_4":"Vastaa neljään kohdista {{questions, range}}.","question_*_5_5":"Vastaa viiteen kohdista {{questions, range}}.","question_*_6_6":"Vastaa kuuteen kohdista {{questions, range}}.","question_*_7_7":"Vastaa seitsemään kohdista {{questions, range}}.","question_*_8_8":"Vastaa kahdeksaan kohdista {{questions, range}}.","question_*_9_9":"Vastaa yhdeksään kohdista {{questions, range}}.","question_*_10_10":"Vastaa kymmeneen kohdista {{questions, range}}.","question_2_*_1":"Vastaa joko kohtaan {{questions, first}} tai {{questions, last}}.","question_*_*_*":"Vastaa {{answerCount, range}} kohdista {{questions, range}}.","section_*_1_1":"Vastaa yhteen tehtävään.","section_*_2_2":"Vastaa kahteen tehtävään.","section_*_3_3":"Vastaa kolmeen tehtävään.","section_*_4_4":"Vastaa neljään tehtävään.","section_*_5_5":"Vastaa viiteen tehtävään.","section_*_6_6":"Vastaa kuuteen tehtävään.","section_*_7_7":"Vastaa seitsemään tehtävään.","section_*_8_8":"Vastaa kahdeksaan tehtävään.","section_*_9_9":"Vastaa yhdeksään tehtävään.","section_*_10_10":"Vastaa kymmeneen tehtävään.","section_1_*_1":"Vastaa tehtävään {{questions, range}}.","section_2_*_1":"Vastaa joko tehtävään {{questions, first}} tai {{questions, last}}.","section_*_*_*":"Vastaa {{answerCount, range}} tehtävään.","toc-section_*_1_1":"Vastaa yhteen tehtävään.","toc-section_*_2_2":"Vastaa kahteen tehtävään.","toc-section_*_3_3":"Vastaa kolmeen tehtävään.","toc-section_*_4_4":"Vastaa neljään tehtävään.","toc-section_*_5_5":"Vastaa viiteen tehtävään.","toc-section_*_6_6":"Vastaa kuuteen tehtävään.","toc-section_*_7_7":"Vastaa seitsemään tehtävään.","toc-section_*_8_8":"Vastaa kahdeksaan tehtävään.","toc-section_*_9_9":"Vastaa yhdeksään tehtävään.","toc-section_*_10_10":"Vastaa kymmeneen tehtävään.","toc-section_1_*_1":"Vastaa tehtävään {{questions, range}}.","toc-section_2_*_1":"Vastaa joko tehtävään {{questions, first}} tai {{questions, last}}.","toc-section_*_*_*":"Vastaa {{answerCount, range}} tehtävään."},"answer-errors":{"screenshot-too-big":"Ottamasi kuvakaappaus on liian iso. Ota uusi kuvakaappaus pienemmästä osasta näyttöä ja yritä uudelleen.","screenshot-byte-limit-reached":"Kokeesi kuvakaappauksille varattu tila on täyttynyt. (Voit viitata aineistokuviin suoraan ilman kuvakaappausta.)","screenshot-upload-failed":"Kuvan liittäminen ei onnistunut. Kokeile uudestaan.","answer-too-long":"Vastaus on liian pitkä."},"screen-reader":{"answer-begin":"[Vastaus alkaa]","answer-end":"[Vastaus päättyy]","correct-answer":"[Hyväksytty vastaus]"}},wl=yl(Il,["exam-total","material","external-material-title","section","references","toc-heading"]),Tl={"exam-total":"Total points for the exam",material:"Material","external-material-title":"Material",section:"Part {{displayNumber}}:",references:{heading:"Sources",source:"Source:",date:"Published:","reference-date":"Accessed:",translator:"Translation:","modified-by":"Adaptation:"},"toc-heading":"Contents"},Ml={"exam-total":"Total des points",material:"Document",material_plural:"Documents","external-material-title":"Document",section:"Partie {{displayNumber}} :",references:{heading:"Sources",source:"Source :",date:"Publication le","reference-date":"Téléchargement le",translator:"Traduction :","modified-by":"Modifications :"},"toc-heading":"Sommaire"},Al={section:""},El={"exam-total":"Puntuación total",material:"Material","external-material-title":"Material",section:"Parte {{displayNumber}}:",references:{heading:"Fuentes",source:"Fuente:",date:"Publicado:","reference-date":"Consultado:",translator:"Traducción:","modified-by":"Adaptado:"},"toc-heading":"Contenido"},Cl={"exam-total":"Die Prüfung insgesamt",material:"Materialien","external-material-title":"Materialien",section:"Teil {{displayNumber}}:",references:{heading:"Quellen",source:"Quelle:",date:"Veröffentlicht:","reference-date":"Zugriff:",translator:"Übersetzung:","modified-by":"Bearbeitung:"},"toc-heading":"Inhalt"},Nl={"exam-total":"Весь экзамен",material:"Материал","external-material-title":"Материал",section:"Часть {{displayNumber}}:",references:{heading:"Источники",source:"Источник",date:"Опубликовано","reference-date":"Дата обращения",translator:"Перевод","modified-by":"Адаптировано"},"toc-heading":"Содержание"},Sl={A_E:{"external-material-title":"Aineistot","answering-instructions":{"toc-section_*_1_1":"Valitse yksi aihe.","section_*_1_1":"Valitse yksi aihe."}},BA:xl,BB:xl,CA:wl,CB:wl,EA:Tl,EC:Tl,FA:Ml,FC:Ml,GC:{"exam-total":"Totalidade da pontuação",material:"Material","external-material-title":"Material",section:"Parte {{displayNumber}}:",references:{heading:"Fontes",source:"Fonte:",date:"Publicado:","reference-date":"Acedido:",translator:"Tradução:","modified-by":"Adaptação:"},"toc-heading":"Conteúdo"},I:{"exam-total":"Iskos ohtsis",material:"Amnâstuvah","external-material-title":"Amnâstuvah","attachments-page-title":"Amnâstuvah:",section:"Uási {{displayNumber}}:",points:"{{count}} č.",references:{source:"Käldee:",date:"Almostittum:","reference-date":"Čujottum:",translator:"Jurgâlus:","modified-by":"Heiviittâs:"},"answering-instructions":{"toc-section_*_1_1":"Fáádáh","section_*_1_1":"Valjii oovtâ fáádá."},"toc-heading":"Siskáldâs"},M:Al,N:Al,O_E:{"answering-instructions":{"toc-section_*_1_1":"Välj ett ämne.","section_*_1_1":"Välj ett ämne."}},SA:Cl,SC:Cl,PA:El,PC:El,TC:{"exam-total":"Punteggio complessivo",material:"Materiale","external-material-title":"Materiale",section:"Parte {{displayNumber}}:",references:{heading:"Fonti",source:"Fonte:",date:"Pubblicato:","reference-date":"Consultato:",translator:"Traduzione:","modified-by":"Adattamento:"},"toc-heading":"Contenuto"},VA:Nl,VC:Nl,Z:{"exam-total":"Iskkus oktiibuot",material:"Ávdnasat","external-material-title":"Ávdnasat","attachments-page-title":"Ávdnasat:",section:"Oassi {{displayNumber}}:",points:"{{count}} č.",references:{heading:"Gáldut",source:"Gáldu:",date:"Almmuhuvvon:","reference-date":"Vižžojuvvon:",translator:"Jorgalus","modified-by":"Heivehus:"},"answering-instructions":{"toc-section_*_1_1":"Fáttát","section_*_1_1":"Vállje ovtta fáttá."},"toc-heading":"Sisdoallu"}},kl={"fi-FI":{translation:Il,...Sl},"sv-FI":{translation:bl,...Sl}};function jl(e,t,n){const r=t?t+(n?`_${n}`:""):"translation";return ll.use({type:"postProcessor",name:"lowercase",process:(e,t,n)=>e.toLocaleLowerCase(n.lng)}).createInstance({compatibilityJSON:"v3",resources:kl,lng:e,fallbackLng:"fi-FI",debug:!1,defaultNS:r,fallbackNS:"translation",interpolation:{escapeValue:!1,format:(e,t)=>{const n=e;switch(t){case"range":{const[e,t]=n;return null==e?t:null==t||e===t?e:`${e}–${t}`}case"first":return cl(n);case"last":return ul(n);default:return e}}}},dl)}function Dl(){const{i18n:e,t:n}=v(),r=(n,r)=>function(e,n,r){const i=e.t(n,r),o=e.options.defaultNS.toString(),a="translation"!==o&&o in Sl,s=a&&function(e,t,n){return Array.isArray(n)?n.some((n=>null!=e.getResource(e.language,t,n))):null!=e.getResource(e.language,t,n)}(e,o,n);return s||!a?i:t().createElement("span",{lang:e.language},i)}(e,n,r);return r.raw=n,{i18n:e,t:r}}const Ol=(e,t)=>()=>{e.language!==t&&e.changeLanguage(t).then(dl).catch(dl)},Ll=new WeakMap;let Rl=0;const Pl=e=>t=>`${e}-${(e=>{const t=Ll.get(e);if(null!=t)return t;const n=++Rl;return Ll.set(e,n),n})(t)}`,zl=e=>t=>`${e}-${t}`,Ul="title",_l="references-title",Bl=zl("section-title"),Fl=zl("question-title"),Gl=Pl("question-instruction"),Zl=Pl("answer-length-info"),Hl=Pl("external-material-list-title"),ql=zl("toc-section-title"),Yl=Pl("answer-score"),Vl=Pl("image-caption"),Wl=Pl("video-caption"),Ql=Pl("audio-label"),Jl="toc-title";function Xl(){const e=decodeURIComponent(window.location.hash).slice(1);if(e){const n=document.getElementById(e);n&&((t=n).setAttribute("tabindex","-1"),t.style.outline="none",t.addEventListener("blur",(()=>{t.removeAttribute("tabindex"),t.style.outline=""}),{once:!0}),t.focus(),t.scrollIntoView())}var t;return window.addEventListener("hashchange",Xl),()=>window.removeEventListener("hashchange",Xl)}function $l(t){return(0,e.useState)(t)[0]}const Kl=t().memo((n=>{const r=(0,e.useRef)(null);return(0,e.useLayoutEffect)((()=>{r.current&&(document.title=r.current.textContent)})),t().createElement("h1",{...n,ref:r})})),ec=function({element:e,renderChildNodes:n}){const r=n(e);return 0===r.length?null:t().createElement(t().Fragment,null,r)},tc=t().memo((function({element:e,renderChildNodes:n}){return t().createElement(t().Fragment,null,n(e,1))})),nc=e=>{const n=Er()("e-section e-bg-color-off-white e-pad-6",e.className);return t().createElement("section",{...e,className:n},e.children)};function rc(e){return e.displayName||e.name||"Component"}const ic=(e,n)=>r=>{const i=i=>{const o=n(i);return t().createElement(e.Provider,{value:o},t().createElement(r,{...i}))};return i.displayName=`WithContext(${rc(r)})`,i},oc=t().createContext({});function ac(e){return ic(oc,(({attachmentsURL:e,resolveAttachment:t,doc:n,abitti2:r})=>{var i;const o=n.documentElement,a=Ee(o,"date"),s=Ee(o,"exam-lang"),l=null!==(i=Ee(o,"exam-type"))&&void 0!==i?i:"normal",c=Ee(o,"lang")||s;return{attachmentsURL:e,date:a?new Date(a):void 0,dateTimeFormatter:new Intl.DateTimeFormat("fi-FI",{timeZone:"UTC"}),dayCode:Ee(o,"day-code"),examCode:Ee(o,"exam-code"),language:s,subjectLanguage:c,examType:l,maxAnswers:Ce(o,"max-answers"),maxScore:Ce(o,"max-score"),sections:Te(o,"section"),resolveAttachment:t,abitti2:r||!1,root:o}}))(e)}const sc=t().createContext({}),lc=ic(sc,(e=>{const{casCountdownDuration:t,examServerApi:n}=e;return{casCountdownDuration:t||60,examServerApi:n}})),cc=t().createContext({}),uc=ic(cc,(({element:e})=>({casForbidden:Ne(e,"cas-forbidden"),displayNumber:e.getAttribute("display-number"),maxAnswers:Ce(e,"max-answers"),minAnswers:Ce(e,"min-answers"),maxScore:Ce(e,"max-score"),childQuestions:Se(e,(e=>e)).filter((e=>"question"===e.localName))})));function dc(e,t){const n=new URL(e,"http://example.com");ve(t,((e,t)=>n[t]=e));const r=n.pathname+n.search+n.hash;return e.startsWith("/")?r:r.substr(1)}const fc=({children:e,href:n,type:r})=>"link"===r?t().createElement("a",{href:n,className:"attachment-link e-nowrap",target:"attachments"},e):t().createElement("span",{className:"attachment-link e-nowrap"},e),pc=n=>t().memo((({element:r})=>{const i=r.getAttribute("ref"),{root:o}=(0,e.useContext)(oc),{attachmentsURL:a}=(0,e.useContext)(oc),{t:s}=Dl(),l=we(o,(e=>"attachment"===e.localName&&e.getAttribute("name")===i)).getAttribute("display-number"),c="short"===r.getAttribute("type"),u=dc(a,{hash:l});return c?t().createElement(fc,{href:u,type:n},l):t().createElement(t().Fragment,null,"(",t().createElement(fc,{href:u,type:n},s("material",{postProcess:"lowercase"})," ",l),")")})),hc=n=>t().memo((({element:r})=>{const{root:i,attachmentsURL:o}=(0,e.useContext)(oc),{t:a}=Dl(),s=Se(r,(e=>{const t=e.getAttribute("ref");return we(i,(e=>"attachment"===e.localName&&e.getAttribute("name")===t)).getAttribute("display-number")})),l=function(e,t){const n=[[]];let r;for(let i=0;i<e.length;i++){const o=e[i];if(r&&t(o,i)){const e=[o];n.push(e)}else n[n.length-1].push(o);r=o}return n}(s,((e,t)=>t>0&&!function(e,t){const n=e.length;return n===t.length&&(e.startsWith(t.slice(0,n-1))&&t.charCodeAt(n-1)-e.charCodeAt(n-1)==1)}(s[t-1],e))),c="short"===r.getAttribute("type"),u=dc(o,{hash:s[0]}),d=l.map((e=>e.length>1?`${e[0]}–${e[e.length-1]}`:e[0])).join(", "),f=l[0].length;return c?t().createElement(fc,{href:u,type:n},d):t().createElement(t().Fragment,null,"(",t().createElement(fc,{href:u,type:n},a("material",{count:f,postProcess:"lowercase"})," ",d),")")})),gc=t().createContext({}),mc=ic(gc,(({element:e})=>{const t=null!=Me(e,"external-material"),n=e.getAttribute("name");return t?{displayNumber:e.getAttribute("display-number"),isExternal:t,name:n}:{displayNumber:null,isExternal:t,name:n}})),vc=t().memo(mc((function({element:n,renderChildNodes:r}){const{displayNumber:i,isExternal:o}=(0,e.useContext)(gc);return o?t().createElement("div",{id:i,className:"attachments-attachment e-mrg-0 e-mrg-t-8","data-annotation-anchor":i},r(n)):null}))),yc=t().memo((function({element:n,renderChildNodes:r}){const{displayNumber:i}=(0,e.useContext)(gc);return t().createElement("h3",null,i,be,r(n))}));var bc=a(5919),xc=e,Ic=Symbol.for("react-redux-context"),wc="undefined"!=typeof globalThis?globalThis:{};function Tc(){if(!xc.createContext)return{};const e=wc[Ic]??(wc[Ic]=new Map);let t=e.get(xc.createContext);return t||(t=xc.createContext(null),e.set(xc.createContext,t)),t}var Mc=Tc();function Ac(e=Mc){return function(){return xc.useContext(e)}}var Ec=Ac(),Cc=()=>{throw new Error("uSES not initialized!")},Nc=(e,t)=>e===t;function Sc(e=Mc){const t=e===Mc?Ec:Ac(e),n=(e,n={})=>{const{equalityFn:r=Nc,devModeChecks:i={}}="function"==typeof n?{equalityFn:n}:n,{store:o,subscription:a,getServerState:s,stabilityCheck:l,identityFunctionCheck:c}=t(),u=(xc.useRef(!0),xc.useCallback({[e.name]:t=>e(t)}[e.name],[e,l,i.stabilityCheck])),d=Cc(a.addNestedSub,o.getState,s||o.getState,u,r);return xc.useDebugValue(d),d};return Object.assign(n,{withTypes:()=>n}),n}var kc=Sc();Symbol.for("react.element"),Symbol.for("react.portal"),Symbol.for("react.fragment"),Symbol.for("react.strict_mode"),Symbol.for("react.profiler"),Symbol.for("react.provider"),Symbol.for("react.context"),Symbol.for("react.server_context"),Symbol.for("react.forward_ref"),Symbol.for("react.suspense"),Symbol.for("react.suspense_list"),Symbol.for("react.memo"),Symbol.for("react.lazy"),Symbol.for("react.offscreen"),Symbol.for("react.client.reference");var jc={notify(){},get:()=>[]};var Dc=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),Oc="undefined"!=typeof navigator&&"ReactNative"===navigator.product,Lc=Dc||Oc?xc.useLayoutEffect:xc.useEffect;function Rc(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function Pc(e,t){if(Rc(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r=0;r<n.length;r++)if(!Object.prototype.hasOwnProperty.call(t,n[r])||!Rc(e[n[r]],t[n[r]]))return!1;return!0}Object.defineProperty,Object.getOwnPropertyNames,Object.getOwnPropertySymbols,Object.getOwnPropertyDescriptor,Object.getPrototypeOf,Object.prototype;var zc=function({store:e,context:t,children:n,serverState:r,stabilityCheck:i="once",identityFunctionCheck:o="once"}){const a=xc.useMemo((()=>{const t=function(e,t){let n,r=jc,i=0,o=!1;function a(){c.onStateChange&&c.onStateChange()}function s(){i++,n||(n=t?t.addNestedSub(a):e.subscribe(a),r=function(){let e=null,t=null;return{clear(){e=null,t=null},notify(){(()=>{let t=e;for(;t;)t.callback(),t=t.next})()},get(){const t=[];let n=e;for(;n;)t.push(n),n=n.next;return t},subscribe(n){let r=!0;const i=t={callback:n,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){r&&null!==e&&(r=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}())}function l(){i--,n&&0===i&&(n(),n=void 0,r.clear(),r=jc)}const c={addNestedSub:function(e){s();const t=r.subscribe(e);let n=!1;return()=>{n||(n=!0,t(),l())}},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:a,isSubscribed:function(){return o},trySubscribe:function(){o||(o=!0,s())},tryUnsubscribe:function(){o&&(o=!1,l())},getListeners:()=>r};return c}(e);return{store:e,subscription:t,getServerState:r?()=>r:void 0,stabilityCheck:i,identityFunctionCheck:o}}),[e,r,i,o]),s=xc.useMemo((()=>e.getState()),[e]);Lc((()=>{const{subscription:t}=a;return t.onStateChange=t.notifyNestedSubs,t.trySubscribe(),s!==e.getState()&&t.notifyNestedSubs(),()=>{t.tryUnsubscribe(),t.onStateChange=void 0}}),[a,s]);const l=t||Mc;return xc.createElement(l.Provider,{value:a},n)};function Uc(e=Mc){const t=e===Mc?Ec:Ac(e),n=()=>{const{store:e}=t();return e};return Object.assign(n,{withTypes:()=>n}),n}var _c=Uc();function Bc(e=Mc){const t=e===Mc?_c:Uc(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var Fc,Gc=Bc();Fc=bc.useSyncExternalStoreWithSelector,Cc=Fc,e.useSyncExternalStore;const Zc=(e,t)=>n=>{const{nowPlaying:r}=n.audio;return null==r?"stopped":r.audio.restrictedAudioId===t&&r.audio.src===e?"playing":"other-playing"},Hc=(e,t)=>n=>n.audio.errors[null!=t?t:e],qc=e=>t=>In(t.audio.playbackTimes,e,0),Yc=(e,t)=>n=>t-qc(e)(n),Vc=e=>{const{serverQuestionIds:t,savedQuestionIds:n,answersById:r}=e.answers;return 0===t.size?"initial":t.size!==n.size||function(e,t){for(const n in t)if(!e.has(Number(n)))return!0;return!1}(t,r)?"saving":"saved"},Wc=!("undefined"==typeof window||!window.document||!window.document.createElement);var Qc=(new Date).getTime(),Jc=function(e){var t=(new Date).getTime(),n=Math.max(0,16-(t-Qc)),r=setTimeout(e,n);return Qc=t,r},Xc=function(e,t){return e+(e?t[0].toUpperCase()+t.substr(1):t)+"AnimationFrame"};Wc&&["","webkit","moz","o","ms"].some((function(e){var t=Xc(e,"request");return t in window&&(Xc(e,"cancel"),Jc=function(e){return window[t](e)}),!!Jc}));var $c=Jc;function Kc(e,t){e.classList?e.classList.add(t):function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}(e,t)||("string"==typeof e.className?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function eu(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function tu(e,t){e.classList?e.classList.remove(t):"string"==typeof e.className?e.className=eu(e.className,t):e.setAttribute("class",eu(e.className&&e.className.baseVal||"",t))}var nu=/([A-Z])/g,ru=/^ms-/;function iu(e){return function(e){return e.replace(nu,"-$1").toLowerCase()}(e).replace(ru,"-ms-")}var ou=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;const au=function(e,t){var n="",r="";if("string"==typeof t)return e.style.getPropertyValue(iu(t))||function(e,t){return function(e){var t=function(e){return e&&e.ownerDocument||document}(e);return t&&t.defaultView||window}(e).getComputedStyle(e,void 0)}(e).getPropertyValue(iu(t));Object.keys(t).forEach((function(i){var o=t[i];o||0===o?function(e){return!(!e||!ou.test(e))}(i)?r+=i+"("+o+") ":n+=iu(i)+": "+o+";":e.style.removeProperty(iu(i))})),r&&(n+="transform: "+r+";"),e.style.cssText+=";"+n};var su=!1,lu=!1;try{var cu={get passive(){return su=!0},get once(){return lu=su=!0}};Wc&&(window.addEventListener("test",cu,cu),window.removeEventListener("test",cu,!0))}catch(e){}const uu=function(e,t,n,r){return function(e,t,n,r){if(r&&"boolean"!=typeof r&&!lu){var i=r.once,o=r.capture,a=n;!lu&&i&&(a=n.__once||function e(r){this.removeEventListener(t,e,o),n.call(this,r)},n.__once=a),e.addEventListener(t,a,su?r:o)}e.addEventListener(t,n,r)}(e,t,n,r),function(){!function(e,t,n,r){var i=r&&"boolean"!=typeof r?r.capture:r;e.removeEventListener(t,n,i),n.__once&&e.removeEventListener(t,n.__once,i)}(e,t,n,r)}};function du(e,t,n,r){var i,o;null==n&&(o=-1===(i=au(e,"transitionDuration")||"").indexOf("ms")?1e3:1,n=parseFloat(i)*o||0);var a=function(e,t,n){void 0===n&&(n=5);var r=!1,i=setTimeout((function(){r||function(e,t,n,r){if(void 0===n&&(n=!1),void 0===r&&(r=!0),e){var i=document.createEvent("HTMLEvents");i.initEvent("transitionend",n,r),e.dispatchEvent(i)}}(e,0,!0)}),t+n),o=uu(e,"transitionend",(function(){r=!0}),{once:!0});return function(){clearTimeout(i),o()}}(e,n,r),s=uu(e,"transitionend",t);return function(){a(),s()}}function fu(e){var t="transition"+e+"Timeout",n="transition"+e;return function(e){if(e[n]){if(!e[t])return new Error(t+" wasn't supplied to CSSTransitionGroup: this can cause unreliable animations and won't be supported in a future version of React. See https://fb.me/react-animation-transition-group-timeout for more information.");if("number"!=typeof e[t])return new Error(t+" must be a number (in milliseconds)")}return null}}var pu=Da().oneOfType([Da().string,Da().shape({enter:Da().string,leave:Da().string,active:Da().string,height:Da().string}),Da().shape({enter:Da().string,enterActive:Da().string,leave:Da().string,leaveActive:Da().string,appear:Da().string,appearActive:Da().string,height:Da().string,heightActive:Da().string})]);function hu(e){return hu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},hu(e)}function gu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function mu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gu(Object(n),!0).forEach((function(t){Iu(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function vu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function yu(e,t){return yu=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},yu(e,t)}function bu(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xu(e){return xu=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},xu(e)}function Iu(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var wu=[];du&&wu.push(du);var Tu={children:Da().node,name:pu.isRequired,appear:Da().bool,enter:Da().bool,leave:Da().bool,appearTimeout:Da().number,enterTimeout:Da().number,leaveTimeout:Da().number},Mu=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&yu(e,t)}(s,e);var n,r,i,o,a=(i=s,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=xu(i);if(o){var n=xu(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){return!t||"object"!==hu(t)&&"function"!=typeof t?bu(e):t}(this,e)});function s(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),Iu(bu(n=a.call(this,e)),"refNode",t().createRef()),Iu(bu(n),"componentWillAppear",(function(e){n.props.appear?n.transition("appear",e,n.props.appearTimeout):e()})),Iu(bu(n),"componentWillEnter",(function(e){n.props.enter?n.transition("enter",e,n.props.enterTimeout):e()})),Iu(bu(n),"componentWillLeave",(function(e){n.props.leave?n.transition("leave",e,n.props.leaveTimeout):e()})),n.classNameAndNodeQueue=[],n.transitionTimeouts=[],n}return n=s,(r=[{key:"componentWillUnmount",value:function(){this.unmounted=!0,this.timeout&&clearTimeout(this.timeout),this.transitionTimeouts.forEach((function(e){clearTimeout(e)})),this.classNameAndNodeQueue.length=0}},{key:"getNode",value:function(){return this.refNode.current}},{key:"transition",value:function(e,t,n){var r=this.getNode();if(r){var i,o=this.props.name[e]||this.props.name+"-"+e,a=this.props.name[e+"Active"]||o+"-active",s=null;Kc(r,o),this.queueClassAndNode(a,r);var l=function(n){n&&n.target!==r||(clearTimeout(s),i&&i(),"leave"!==e&&(tu(r,o),tu(r,a)),i&&i(),t&&t())};n?(s=setTimeout(l,n),this.transitionTimeouts.push(s)):du&&(i=function(e,t){return wu.length?wu.forEach((function(n){return e.addEventListener(n,t,!1)})):setTimeout(t,0),function(){wu.length&&wu.forEach((function(n){return e.removeEventListener(n,t,!1)}))}}(r,l))}else t&&t()}},{key:"queueClassAndNode",value:function(e,t){var n=this;this.classNameAndNodeQueue.push({className:e,node:t}),this.rafHandle||(this.rafHandle=$c((function(){return n.flushClassNameAndNodeQueueOnNextFrame()})))}},{key:"flushClassNameAndNodeQueueOnNextFrame",value:function(){var e=this;this.rafHandle=$c((function(){return e.flushClassNameAndNodeQueue()}))}},{key:"flushClassNameAndNodeQueue",value:function(){this.unmounted||this.classNameAndNodeQueue.forEach((function(e){e.node.scrollTop,Kc(e.node,e.className)})),this.classNameAndNodeQueue.length=0,this.rafHandle=null}},{key:"render",value:function(){var e=mu(mu({},this.props),{},{ref:this.refNode});return delete e.name,delete e.appear,delete e.enter,delete e.leave,delete e.appearTimeout,delete e.enterTimeout,delete e.leaveTimeout,delete e.children,t().cloneElement(t().Children.only(this.props.children),e)}}])&&vu(n.prototype,r),s}(t().Component);Iu(Mu,"displayName","CSSTransitionGroupChild"),Mu.propTypes=Tu;const Au=Mu;function Eu(e){return Eu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Eu(e)}function Cu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Nu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Cu(Object(n),!0).forEach((function(t){Ou(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Su(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ku(e,t){return ku=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},ku(e,t)}function ju(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Du(e){return Du=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Du(e)}function Ou(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Lu=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ku(e,t)}(s,e);var n,r,i,o,a=(i=s,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Du(i);if(o){var n=Du(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){return!t||"object"!==Eu(t)&&"function"!=typeof t?ju(e):t}(this,e)});function s(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),Ou(ju(n=a.call(this,e)),"handleDoneAppearing",(function(e){delete n.transitioningKeys[e],e!==n.state.currentKey&&n.performLeave(e)})),Ou(ju(n),"performLeave",(function(e){var t,r;n.transitioningKeys[e]=!0,null===(t=n.childRefs[e].current)||void 0===t||t.componentWillLeave(n.handleDoneLeaving.bind(ju(n),e)),n.state.currentChild&&null!==(r=n.childRefs[n.state.currentKey].current)&&void 0!==r&&r.getNode()||n.enqueueHeightTransition()})),Ou(ju(n),"performHeightTransition",(function(){if(!n.unmounted){var e,t=ju(n).state,r=t.currentChild?null===(e=n.childRefs[t.currentKey].current)||void 0===e?void 0:e.getNode():null;n.setState({height:r?r.offsetHeight:0,width:n.props.changeWidth?r?r.offsetWidth:0:null})}n.rafHandle=null})),Ou(ju(n),"setChildRef",(function(e,r){if(r){var i=t().createRef();i.current=r,n.childRefs[e]=i}else delete n.childRefs[e]})),n.childRefs=Object.create(null),n.state={currentKey:"1",currentChild:n.props.children?t().Children.only(n.props.children):void 0,prevChildren:{},height:null,width:null},n.shouldEnterCurrent=!1,n.keysToLeave=[],n.transitioningKeys={},n}return n=s,(r=[{key:"componentDidMount",value:function(){this.props.transitionAppear&&this.state.currentChild&&this.performAppear(this.state.currentKey)}},{key:"componentWillUnmount",value:function(){this.unmounted=!0}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){var n=e.children?t().Children.only(e.children):void 0,r=this.state.currentChild;if(r&&n&&n.key===r.key&&!this.state.nextChild)return this.setState({currentChild:n});var i=this.state,o=i.currentKey,a=i.prevChildren,s={currentKey:String(Number(o)+1),currentChild:n,height:0,width:this.props.changeWidth?0:null};if(n&&(this.shouldEnterCurrent=!0),r){var l,c=null===(l=this.childRefs[o].current)||void 0===l?void 0:l.getNode();s.height=c?c.offsetHeight:0,s.width=this.props.changeWidth?c?c.offsetWidth:0:null,s.prevChildren=Nu(Nu({},a),{},Ou({},o,r)),this.transitioningKeys[o]||this.keysToLeave.push(o)}this.setState(s)}},{key:"componentDidUpdate",value:function(){var e;this.shouldEnterCurrent&&(this.shouldEnterCurrent=!1,null!==(e=this.childRefs[this.state.currentKey].current)&&void 0!==e&&e.getNode()&&this.performEnter(this.state.currentKey));var t=this.keysToLeave;this.keysToLeave=[],t.forEach(this.performLeave)}},{key:"performAppear",value:function(e){var t;this.transitioningKeys[e]=!0,null===(t=this.childRefs[e].current)||void 0===t||t.componentWillAppear(this.handleDoneAppearing.bind(this,e))}},{key:"performEnter",value:function(e){var t;this.transitioningKeys[e]=!0,null===(t=this.childRefs[e].current)||void 0===t||t.componentWillEnter(this.handleDoneEntering.bind(this,e)),this.enqueueHeightTransition()}},{key:"handleDoneEntering",value:function(e){delete this.transitioningKeys[e],e===this.state.currentKey?this.setState({height:null}):this.performLeave(e)}},{key:"handleDoneLeaving",value:function(e){var t;delete this.transitioningKeys[e];var n={prevChildren:Nu({},this.state.prevChildren)};delete n.prevChildren[e],delete this.childRefs[e],this.state.currentChild&&null!==(t=this.childRefs[this.state.currentKey].current)&&void 0!==t&&t.getNode()||(n.height=null),this.setState(n)}},{key:"enqueueHeightTransition",value:function(){this.rafHandle||(this.rafHandle=$c(this.performHeightTransition))}},{key:"wrapChild",value:function(e,n){var r=this.props.transitionName;return"object"===Eu(r)&&null!==r&&delete(r=Nu({},r)).height,t().createElement(Au,Nu({name:r,appear:this.props.transitionAppear,enter:this.props.transitionEnter,leave:this.props.transitionLeave,appearTimeout:this.props.transitionAppearTimeout,enterTimeout:this.props.transitionEnterTimeout,leaveTimeout:this.props.transitionLeaveTimeout},n),e)}},{key:"render",value:function(){var e=this,n=this.state,r=n.currentKey,i=n.currentChild,o=n.prevChildren,a=n.height,s=n.width,l=[],c=this.props,u=c.overflowHidden,d=c.transitionName,f=c.component,p=c.childComponent,h=c.notifyLeaving,g=(c.transitionAppear,c.transitionEnter,c.transitionLeave,c.changeWidth,c.transitionAppearTimeout,c.transitionEnterTimeout,c.transitionLeaveTimeout,function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(c,["overflowHidden","transitionName","component","childComponent","notifyLeaving","transitionAppear","transitionEnter","transitionLeave","changeWidth","transitionAppearTimeout","transitionEnterTimeout","transitionLeaveTimeout"])),m=this.shouldEnterCurrent||this.keysToLeave.length||Object.keys(this.transitioningKeys).length;if(g.style=Nu({},g.style),m&&(g.style.position="relative",u&&(g.style.overflow="hidden")),null!==a){var v="string"==typeof d?"".concat(d,"-height"):d&&d.height||"";g.className="".concat(g.className||""," ").concat(v),g.style.height=a}null!==s&&(g.style.width=s);var y={position:"absolute",top:0,left:0,right:0,bottom:0,userSelect:"none"};return Object.keys(o).forEach((function(n){var r=o[n];l.push(t().createElement(p,{key:n,style:y},e.wrapChild(h&&"string"!=typeof r.type?t().cloneElement(r,{isLeaving:!0}):r,{ref:function(t){return e.setChildRef(n,t)}})))})),i&&l.push(t().createElement(p,{key:r,style:this.transitioningKeys[r]?y:m?{position:"relative"}:null},this.wrapChild(i,{ref:function(t){return e.setChildRef(r,t)}}))),t().createElement(f,g,l)}}])&&Su(n.prototype,r),s}(t().Component);Ou(Lu,"displayName","ReactCSSTransitionReplace"),Ou(Lu,"propTypes",{transitionName:pu.isRequired,transitionAppear:Da().bool,transitionEnter:Da().bool,transitionLeave:Da().bool,transitionAppearTimeout:fu("Appear"),transitionEnterTimeout:fu("Enter"),transitionLeaveTimeout:fu("Leave"),overflowHidden:Da().bool,changeWidth:Da().bool,notifyLeaving:Da().bool}),Ou(Lu,"defaultProps",{transitionAppear:!1,transitionEnter:!0,transitionLeave:!0,overflowHidden:!0,changeWidth:!1,notifyLeaving:!1,component:"div",childComponent:"span"});const Ru=({error:e,children:n})=>{const{t:r}=Dl();return t().createElement(Lu,{transitionName:"e-crossfade",transitionEnterTimeout:500,transitionLeaveTimeout:500},null!=e?t().createElement("div",{className:"e-color-error",role:"alert"},t().createElement(qa,{icon:os,className:"e-mrg-r-1"}),r(`audio-errors.${e}`)):t().createElement("div",{key:"no-error"},n))};var Pu=a(758);const zu=e=>(0,Pu.action)("PLAY_AUDIO",e),Uu=e=>(0,Pu.action)("PLAY_AUDIO_STARTED",e),_u=()=>(0,Pu.action)("PLAY_AUDIO_FINISHED"),Bu=(e,t)=>(0,Pu.action)("SHOW_AUDIO_ERROR",{audio:e,error:t}),Fu=e=>(0,Pu.action)("HIDE_AUDIO_ERROR",e),Gu=e=>(0,Pu.action)("UPDATE_REMAINING",e),Zu=t().memo((function({src:n,restrictedAudioId:r,duration:i,times:o,labelId:a}){const s=kc(Zc(n,r)),l=kc(((e,t)=>n=>"playing"===Zc(e,t)(n)?n.audio.nowPlaying.durationRemaining:void 0)(n,r)),c=kc(Yc(r,o)),{i18n:u}=Dl(),d=Gc(),f="playing"===s,p="stopped"===s,h=!p||0===c,g=`audio-remaining-${r}`,m=f?[]:[g,a],{abitti2:v}=(0,e.useContext)(oc),y=(0,e.useRef)(null);return t().createElement("div",{className:Er()("restricted-audio-player e-column e-column--narrow e-columns e-columns--inline e-columns--center-v e-pad-1",{"restricted-audio-player--disabled":h}),lang:u.language},v&&t().createElement("audio",{ref:y,preload:"none"},t().createElement("source",null)),t().createElement("button",{className:Er()("restricted-audio-player__play e-column e-column--narrow",{"restricted-audio-player__play--playing":f}),disabled:h,onClick:()=>p&&d(zu({src:n,restrictedAudioId:r,duration:i,audioRef:y})),"aria-labelledby":m.join(" ")},!f&&t().createElement(qa,{icon:ns,fixedWidth:!0})),t().createElement("span",{className:"restricted-audio-player__duration e-column e-text-right",id:g},Hu(null!=l?l:i)))}));function Hu(e){const t=e%60;return`${qu(Math.floor(e/60))}:${qu(t)}`}function qu(e){return e.toString().padStart(2,"0")}const Yu=t().memo((function({element:n,className:r,renderChildNodes:i}){const o=n.getAttribute("src"),a=Ce(n,"restricted-audio-id"),s=Ce(n,"times"),l=Ce(n,"duration"),{t:c}=Dl(),u=null!=s&&null!=a?kc(Hc(o,a)):void 0,d=null!=s&&null!=a?kc(Yc(a,s)):void 0,{resolveAttachment:f}=(0,e.useContext)(oc),p=Ql(n);return t().createElement("div",{className:Er()("audio e-columns e-columns--center-v e-mrg-b-2",r)},null!=a&&null!=s?t().createElement(Zu,{src:o,restrictedAudioId:a,duration:l,times:s,labelId:p}):t().createElement("audio",{className:"e-column e-column--narrow","aria-describedby":p,preload:"metadata",controls:!0,controlsList:"nodownload"},t().createElement("source",{src:f(o)})),t().createElement("div",{className:"e-column",id:p},t().createElement(Ru,{error:u},i(n)),null!=d&&t().createElement("em",null,c("listen-times-remaining",{count:d}))))})),Vu=vs({attachment:mc((function({element:n}){const{displayNumber:r}=(0,e.useContext)(gc);return t().createElement("li",{"data-list-number":r,"aria-label":r},Vu(n,1))})),"attachment-title":function({element:n}){const{attachmentsURL:r}=(0,e.useContext)(oc),{displayNumber:i}=(0,e.useContext)(gc);return t().createElement("a",{href:dc(r,{hash:i}),className:"exam-attachment-title",target:"attachments"},Vu(n))}}),Wu=t().memo((function({element:e,showTitle:n=!0,forceRender:r=!1}){if(null==Me(e,"question")&&!r)return null;const{t:i}=Dl(),o=Hl(e);return t().createElement("div",{className:"external-material-list e-mrg-b-4"},n&&t().createElement("h4",{className:"external-material-title",id:o},i("external-material-title")),t().createElement("ol",{className:"e-list-data e-pad-l-0 e-mrg-0","aria-labelledby":o},Vu(e)))})),Qu=t().memo((function({element:n,className:r,renderChildNodes:i}){const o=n.getAttribute("src"),a=n.hasChildNodes(),{resolveAttachment:s}=(0,e.useContext)(oc);return t().createElement("a",{className:Er()("file e-nowrap",r),href:s(o),download:!0},a?t().createElement(t().Fragment,null,i(n)," (",o,")"):o)})),Ju=t().memo((function({element:e,className:n}){const r=Ee(e,"svg"),i=Ee(e,"assistive-title"),o="display"===Ee(e,"mode");return t().createElement(t().Fragment,null,t().createElement("span",{className:Er()("e-formula",{"e-block e-text-center":o},n),dangerouslySetInnerHTML:{__html:r},"aria-hidden":"true"}),t().createElement("span",{className:"e-screen-reader-only"},i||e.textContent))})),Xu=({bordered:e=!1,className:n,children:r,height:i,width:o,caption:a,captionId:s})=>{const l=i/o*100+"%",c=o+(e?18:0);return t().createElement("span",{className:Er()("responsive-media-container",{"responsive-media-container--bordered":e},n),style:{maxWidth:c}},t().createElement("span",{className:"responsive-media-container__inner",style:{paddingBottom:l}},r),a&&t().createElement("span",{className:"e-block e-mrg-t-1 e-font-size-s e-light",id:s},a))};function $u(e){return"string"==typeof e&&0===e.trim().length}const Ku=t().memo((function({element:n,className:r,renderChildNodes:i}){const{resolveAttachment:o}=(0,e.useContext)(oc),{t:a}=Dl(),s=Ee(n,"src"),l=Ce(n,"width"),c=Ce(n,"height"),u=Ae(n,"image-title"),d=u&&i(u),f=null!=d&&!d.every($u),p=f?d:void 0,h=f?Vl(n):void 0,g=o(s),m=t().createElement("img",{className:"e-image",src:g,alt:"","aria-labelledby":h});return t().createElement(t().Fragment,null,t().createElement(Xu,{className:r,width:l,height:c,caption:p,captionId:h,bordered:f||null!=Me(n,"choice-answer")},null!=Me(n,["choice-answer","hint"])?m:t().createElement("a",{title:a.raw("zoom-in"),href:g,target:"original-picture",className:"e-zoomable","aria-hidden":!f,tabIndex:-1},m)))}));function ed({element:e,renderChildNodes:n}){return t().createElement("em",null,n(e))}function td({element:e,renderChildNodes:n}){return t().createElement("i",null,n(e))}function nd({element:n}){const r=n.textContent;if(/^[0-9]{4}$/.test(r))return t().createElement(t().Fragment,null,r);{const n=new Date(r.trim()),{dateTimeFormatter:i}=(0,e.useContext)(oc);return t().createElement(t().Fragment,null,i.format(n))}}const rd=t().memo((function({element:e,renderChildNodes:n}){const{t:r}=Dl();function i(r,i){const o=Ae(e,r);if(o){const e=o.localName,r=t().createElement(i,{element:o,renderChildNodes:n,key:e});if(r)return Ne(o,"hidden")?t().createElement("del",{key:e},r):r}}function o(i,o,a){const s=Ae(e,i);return s&&t().createElement(t().Fragment,{key:s.localName},r(o)," ",t().createElement(a,{element:s,renderChildNodes:n,key:s.localName}))}return t().createElement("span",{className:Er()("e-break-word",{"e-line-through":Ne(e,"hidden")})},r("references.source"),be,(". ",(a=[i("author",ec),i("title",ed),i("publisher",ec),i("publication",ec),i("howpublished",ec),i("url",td),o("publication-date","references.date",nd),o("reference-date","references.reference-date",nd),o("translator","references.translator",ec),o("modified-by","references.modified-by",ec),i("note",ec)]).filter(Boolean).reduce(((e,t,n)=>(e.push(t),n!==a.length-1&&e.push(". "),e)),[])));var a})),id=t().memo((function({element:n,renderChildNodes:r,className:i}){const{resolveAttachment:o}=(0,e.useContext)(oc),a=Ee(n,"src"),s=Ce(n,"width"),l=Ce(n,"height"),c=Ae(n,"video-title"),u=c&&r(c),d=null!=u&&!u.every($u),f=d?u:void 0,p=d?Wl(n):void 0;return t().createElement(Xu,{caption:f,captionId:p,className:i,width:s,height:l},t().createElement("video",{className:"video",preload:"metadata",controls:!0,controlsList:"nodownload",disablePictureInPicture:!0,"aria-describedby":p},t().createElement("source",{src:o(a)})))}));const od=function(e){var t=function(e){return e?1/0===(e=lr(e))||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}(e),n=t%1;return t==t?n?t-n:t:0};var ad=4294967295,sd=Math.min;function ld({opacity:e,setOpacity:n,element:r,renderChildNodes:i}){const o=Ae(r,"image-title");return t().createElement("div",{className:"e-columns e-columns--center-v e-mrg-b-1"},t().createElement("div",{className:"e-column e-text-right e-mrg-r-1"},o&&i(o)),t().createElement(qa,{icon:Qa,className:"e-mrg-r-1 e-pointer",onClick:()=>n(0)}),t().createElement("input",{type:"range",min:0,max:1,step:.01,value:e,onChange:e=>n(Number(e.target.value))}),t().createElement(qa,{icon:Ka,className:"e-mrg-l-1 e-pointer",onClick:()=>n(1)}))}function cd({element:n,absolute:r,opacity:i}){const o=n.getAttribute("src"),a=Ce(n,"width"),s=Ce(n,"height"),l=(0,e.useContext)(oc).resolveAttachment(o);return t().createElement("div",{className:Er()("e-columns e-columns--center-h",{"e-image-overlay__image-absolute":r}),style:{opacity:i}},t().createElement(Xu,{width:a,height:s},t().createElement("img",{className:"e-image",src:l})))}const ud=t().memo((function({element:n,renderChildNodes:r}){const[i,o]=(0,e.useState)((()=>function(e,t){if((e=od(e))<1||e>9007199254740991)return[];var n=ad,r=sd(e,ad);t=me(t),e-=ad;for(var i=I(r,t);++n<e;)t(n);return i}(n.children.length,(e=>0===e?1:0)))),a=e=>t=>{const n=[...i];n[e]=t,o(n)};return t().createElement("div",{className:"e-image-overlay e-mrg-b-1"},t().createElement("div",{className:"e-columns e-columns--center-h"},t().createElement("div",null,Se(n,((e,n)=>t().createElement(ld,{key:n,opacity:i[n],element:e,setOpacity:a(n),renderChildNodes:r}))))),t().createElement("div",null,t().createElement("div",{className:"e-image-overlay__images-wrapper"},Se(n,((e,n)=>t().createElement(cd,{key:n,element:e,renderChildNodes:r,opacity:i[n],absolute:n>0}))))))})),dd=t().createContext({}),fd=ic(dd,(({element:e})=>{const t=Te(e,"question",!1),n=t.length?[]:Te(e,["text-answer","scored-text-answer","dropdown-answer","choice-answer","dnd-answer"],!1),r=Te(e,"question-instruction",!1),i=e.getAttribute("display-number"),o=r.length>0?r.map(Gl).join(" "):Fl(i);return{answers:n,displayNumber:i,hasExternalMaterial:null!=Ae(e,"external-material"),maxAnswers:Ce(e,"max-answers"),maxScore:Ce(e,"max-score"),level:xe(e,"question").length,childQuestions:t,questionLabelIds:o}}));function pd({element:n}){const r=n.getAttribute("suffix"),{displayNumber:i}=(0,e.useContext)(dd);return t().createElement(t().Fragment,null,cl(i.split(".")),".",r)}const hd=t().memo((function({element:e}){const{t:n}=Dl(),r=e.getAttribute("key");return t().createElement(t().Fragment,null,n(r))})),gd=vs({"attachment-link":pc("link"),"attachment-links":hc("link"),"attachment-title":yc,attachment:vc,audio:Yu,"audio-title":ec,file:Qu,image:Ku,video:id,formula:Ju,"question-number":pd,translation:hd,reference:function(e,n,r){const i=n=>t().createElement("div",{...r},t().createElement(e,{...n}));return i.displayName=`Surround(${rc(e)})`,i}(rd,0,{className:"e-mrg-y-2 e-font-size-s"}),"image-overlay":ud}),md=t().memo((function({element:e,forceRender:n=!1}){if(null==Me(e,"question")&&!n)return null;const r=e.children.length;return t().createElement(t().Fragment,null,r>1&&t().createElement(Wu,{element:e,renderChildNodes:gd,showTitle:!1,forceRender:n}),gd(e))})),vd=t().memo(fd((function({element:n,renderChildNodes:r}){const{displayNumber:i,hasExternalMaterial:o,level:a}=(0,e.useContext)(dd);return function(e,t,n){return t&&(0===n||xe(e).every((e=>"question"!==e.localName||!Ae(e,"external-material"))))}(n,o,a)?t().createElement(nc,{id:i,"aria-labelledby":Fl(i)},r(n,1)):t().createElement(t().Fragment,null,r(n,1))})));function yd(e){return e.includes(".")?e:`${e}.`}const bd=t().memo((function({element:n,renderChildNodes:r}){const{displayNumber:i,hasExternalMaterial:o}=(0,e.useContext)(dd);return o?t().createElement(t().Fragment,null,t().createElement("div",{className:"anchor",id:`question-nr-${i}`}),t().createElement("h2",{id:Fl(i)},yd(i)," ",r(n))):null})),xd=vs({"audio-group":tc,"external-material":md,"question-title":bd,question:vd,section:uc(ec)}),Id=()=>{const{t:e}=Dl();return t().createElement(t().Fragment,null,e("attachments-page-title"))},wd=t().memo(lc(ac((({annotations:n,onClickAnnotation:r,onSaveAnnotation:i})=>{const{root:o,language:a,date:s,dateTimeFormatter:l,dayCode:c,examCode:u,resolveAttachment:d,subjectLanguage:f}=(0,e.useContext)(oc),p=Ae(o,"exam-title"),h=o.getAttribute("exam-stylesheet"),g=Ae(o,"external-material"),m=$l((()=>jl(a,u,c)));return(0,e.useEffect)(Ol(m,a)),(0,e.useEffect)(Xl,[]),t().createElement(cs,{annotations:n,onClickAnnotation:r,onSaveAnnotation:i},t().createElement(y,{i18n:m},t().createElement("main",{className:"e-exam attachments",lang:f,"aria-labelledby":Ul},t().createElement(t().StrictMode,null),h&&t().createElement("link",{rel:"stylesheet",href:d(h)}),t().createElement(nc,{"aria-labelledby":Ul},p&&t().createElement(Kl,{id:Ul},t().createElement(Id,null),be,xd(p)),t().createElement("div",{className:"e-semibold e-mrg-b-6"},l.format(s)),g&&t().createElement(md,{element:g,renderChildNodes:xd,forceRender:!0})),xd(o))))}))));function Td(e){const t=e.documentElement;return Cd(t,Te(t,"section",!1).map(Md),{maxAnswers:Ce(t,"max-answers")})}function Md(e){return Cd(e,Te(e,"question",!1).map(Ad),{displayNumber:Ee(e,"display-number"),minAnswers:Ce(e,"min-answers"),maxAnswers:Ce(e,"max-answers")})}function Ad(e){const t=Te(e,"question",!1);return Cd(e,t.length?t.map(Ad):Te(e,["text-answer","scored-text-answer","choice-answer","dropdown-answer","dnd-answer"],!1).map(Ed),{displayNumber:Ee(e,"display-number"),maxAnswers:Ce(e,"max-answers")})}function Ed(e){return Cd(e,[],{displayNumber:Ee(e,"display-number"),questionId:Ce(e,"question-id"),maxLength:Ce(e,"max-length")})}function Cd(e,t,n){return{name:e.localName,attributes:n,childNodes:t}}const Nd=function(e,t){return(_(e)?pn:Fn)(e,An(t))},Sd=En((function(e,t,n){Qe(e,n,t)}));function kd(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var jd=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")(),Dd=()=>Math.random().toString(36).substring(7).split("").join("."),Od={INIT:`@@redux/INIT${Dd()}`,REPLACE:`@@redux/REPLACE${Dd()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Dd()}`};function Ld(e,t,n){if("function"!=typeof e)throw new Error(kd(2));if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(kd(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(kd(1));return n(Ld)(e,t)}let r=e,i=t,o=new Map,a=o,s=0,l=!1;function c(){a===o&&(a=new Map,o.forEach(((e,t)=>{a.set(t,e)})))}function u(){if(l)throw new Error(kd(3));return i}function d(e){if("function"!=typeof e)throw new Error(kd(4));if(l)throw new Error(kd(5));let t=!0;c();const n=s++;return a.set(n,e),function(){if(t){if(l)throw new Error(kd(6));t=!1,c(),a.delete(n),o=null}}}function f(e){if(!function(e){if("object"!=typeof e||null===e)return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||null===Object.getPrototypeOf(e)}(e))throw new Error(kd(7));if(void 0===e.type)throw new Error(kd(8));if("string"!=typeof e.type)throw new Error(kd(17));if(l)throw new Error(kd(9));try{l=!0,i=r(i,e)}finally{l=!1}return(o=a).forEach((e=>{e()})),e}return f({type:Od.INIT}),{dispatch:f,subscribe:d,getState:u,replaceReducer:function(e){if("function"!=typeof e)throw new Error(kd(10));r=e,f({type:Od.REPLACE})},[jd]:function(){const e=d;return{subscribe(t){if("object"!=typeof t||null===t)throw new Error(kd(11));function n(){const e=t;e.next&&e.next(u())}return n(),{unsubscribe:e(n)}},[jd](){return this}}}}}function Rd(...e){return 0===e.length?e=>e:1===e.length?e[0]:e.reduce(((e,t)=>(...n)=>e(t(...n))))}var Pd=function(e){return"@@redux-saga/"+e},zd=Pd("CANCEL_PROMISE"),Ud=Pd("CHANNEL_END"),_d=Pd("IO"),Bd=Pd("MATCH"),Fd=Pd("MULTICAST"),Gd=Pd("SAGA_ACTION"),Zd=Pd("SELF_CANCELLATION"),Hd=Pd("TASK"),qd=Pd("TASK_CANCEL"),Yd=Pd("TERMINATE"),Vd=Pd("LOCATION");function Wd(){return Wd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Wd.apply(null,arguments)}function Qd(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}var Jd=function(e){return null==e},Xd=function(e){return null!=e},$d=function(e){return"function"==typeof e},Kd=function(e){return"string"==typeof e},ef=Array.isArray,tf=function(e){return e&&$d(e.then)},nf=function(e){return e&&$d(e.next)&&$d(e.throw)},rf=function e(t){return t&&(Kd(t)||sf(t)||$d(t)||ef(t)&&t.every(e))},of=function(e){return e&&$d(e.take)&&$d(e.close)},af=function(e){return $d(e)&&e.hasOwnProperty("toString")},sf=function(e){return Boolean(e)&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype},lf=function(e){return of(e)&&e[Fd]};const cf=function(e,t){var n;void 0===t&&(t=!0);var r=new Promise((function(r){n=setTimeout(r,Math.min(2147483647,e),t)}));return r[zd]=function(){clearTimeout(n)},r};var uf=function(e){return function(){return true}}(),df=function(){},ff=function(e){return e};"function"==typeof Symbol&&Symbol.asyncIterator&&Symbol.asyncIterator;var pf=function(e,t){Wd(e,t),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach((function(n){e[n]=t[n]}))};function hf(e,t){var n=e.indexOf(t);n>=0&&e.splice(n,1)}function gf(e){var t=!1;return function(){t||(t=!0,e())}}var mf=function(e){throw e},vf=function(e){return{value:e,done:!0}};function yf(e,t,n){void 0===t&&(t=mf),void 0===n&&(n="iterator");var r={meta:{name:n},next:e,throw:t,return:vf,isSagaIterator:!0};return"undefined"!=typeof Symbol&&(r[Symbol.iterator]=function(){return r}),r}function bf(e,t){var n=t.sagaStack;console.error(e),console.error(n)}var xf=function(e){return Array.apply(null,new Array(e))},If=function(e){return function(t){return e(Object.defineProperty(t,Gd,{value:!0}))}},wf=function(e){return e===Yd},Tf=function(e){return e===qd},Mf=function(e){return wf(e)||Tf(e)};function Af(e,t){var n,r=Object.keys(e),i=r.length,o=0,a=ef(e)?xf(i):{},s={};return r.forEach((function(e){var r=function(r,s){n||(s||Mf(r)?(t.cancel(),t(r,s)):(a[e]=r,++o===i&&(n=!0,t(a))))};r.cancel=df,s[e]=r})),t.cancel=function(){n||(n=!0,r.forEach((function(e){return s[e].cancel()})))},s}function Ef(e){return{name:e.name||"anonymous",location:Cf(e)}}function Cf(e){return e[Vd]}function Nf(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}var Sf={isEmpty:uf,put:df,take:df};var kf=function(e){return function(e,t){void 0===e&&(e=10);var n=new Array(e),r=0,i=0,o=0,a=function(t){n[i]=t,i=(i+1)%e,r++},s=function(){if(0!=r){var t=n[o];return n[o]=null,r--,o=(o+1)%e,t}},l=function(){for(var e=[];r;)e.push(s());return e};return{isEmpty:function(){return 0==r},put:function(s){var c;if(r<e)a(s);else switch(t){case 1:throw new Error("Channel's Buffer overflow!");case 3:n[i]=s,o=i=(i+1)%e;break;case 4:c=2*e,n=l(),r=n.length,i=n.length,o=0,n.length=c,e=c,a(s)}},take:s,flush:l}}(e,4)},jf="TAKE",Df="PUT",Of="RACE",Lf="CALL",Rf="FORK",Pf="CANCEL",zf="SELECT",Uf="CANCELLED",_f=function(e,t){var n;return(n={})[_d]=!0,n.combinator=!1,n.type=e,n.payload=t,n};function Bf(e,t){return void 0===e&&(e="*"),rf(e)?(Xd(t)&&console.warn("take(pattern) takes one argument but two were provided. Consider passing an array for listening to several action types"),_f(jf,{pattern:e})):lf(e)&&Xd(t)&&rf(t)?_f(jf,{channel:e,pattern:t}):of(e)?(Xd(t)&&console.warn("take(channel) takes one argument but two were provided. Second argument is ignored."),_f(jf,{channel:e})):void 0}function Ff(e,t){return Jd(t)&&(t=e,e=void 0),_f(Df,{channel:e,action:t})}function Gf(e,t){var n,r=null;return $d(e)?n=e:(ef(e)?(r=e[0],n=e[1]):(r=e.context,n=e.fn),r&&Kd(n)&&$d(r[n])&&(n=r[n])),{context:r,fn:n,args:t}}function Zf(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return _f(Lf,Gf(e,n))}function Hf(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return _f(Rf,Gf(e,n))}function qf(e){return void 0===e&&(e=Zd),_f(Pf,e)}var Yf=Zf.bind(null,cf);const Vf=function(){var e={};return e.promise=new Promise((function(t,n){e.resolve=t,e.reject=n})),e};var Wf=[],Qf=0;function Jf(e){try{Kf(),e()}finally{ep()}}function Xf(e){Wf.push(e),Qf||(Kf(),tp())}function $f(e){try{return Kf(),e()}finally{tp()}}function Kf(){Qf++}function ep(){Qf--}function tp(){var e;for(ep();!Qf&&void 0!==(e=Wf.shift());)Jf(e)}var np=function(e){return function(t){return e.some((function(e){return sp(e)(t)}))}},rp=function(e){return function(t){return e(t)}},ip=function(e){return function(t){return t.type===String(e)}},op=function(e){return function(t){return t.type===e}},ap=function(){return uf};function sp(e){var t="*"===e?ap:Kd(e)?ip:ef(e)?np:af(e)?ip:$d(e)?rp:sf(e)?op:null;if(null===t)throw new Error("invalid pattern: "+e);return t(e)}var lp={type:Ud},cp=function(e){return e&&e.type===Ud};function up(e){void 0===e&&(e=kf());var t=!1,n=[];return{take:function(r){t&&e.isEmpty()?r(lp):e.isEmpty()?(n.push(r),r.cancel=function(){hf(n,r)}):r(e.take())},put:function(r){if(!t){if(0===n.length)return e.put(r);n.shift()(r)}},flush:function(n){t&&e.isEmpty()?n(lp):n(e.flush())},close:function(){if(!t){t=!0;var e=n;n=[];for(var r=0,i=e.length;r<i;r++)(0,e[r])(lp)}}}}function dp(){var e,t,n,r,i,o,a=(t=!1,r=n=[],i=function(){r===n&&(r=n.slice())},o=function(){t=!0;var e=n=r;r=[],e.forEach((function(e){e(lp)}))},(e={})[Fd]=!0,e.put=function(e){if(!t)if(cp(e))o();else for(var i=n=r,a=0,s=i.length;a<s;a++){var l=i[a];l[Bd](e)&&(l.cancel(),l(e))}},e.take=function(e,n){void 0===n&&(n=ap),t?e(lp):(e[Bd]=n,i(),r.push(e),e.cancel=gf((function(){i(),hf(r,e)})))},e.close=o,e),s=a.put;return a.put=function(e){e[Gd]?s(e):Xf((function(){s(e)}))},a}var fp=0,pp=1,hp=2,gp=3;function mp(e,t){var n=e[zd];$d(n)&&(t.cancel=n),e.then(t,(function(e){t(e,!0)}))}var vp,yp=0,bp=function(){return++yp};function xp(e){e.isRunning()&&e.cancel()}var Ip=((vp={})[jf]=function(e,t,n){var r=t.channel,i=void 0===r?e.channel:r,o=t.pattern,a=t.maybe,s=function(e){e instanceof Error?n(e,!0):!cp(e)||a?n(e):n(Yd)};try{i.take(s,Xd(o)?sp(o):null)}catch(e){return void n(e,!0)}n.cancel=s.cancel},vp[Df]=function(e,t,n){var r=t.channel,i=t.action,o=t.resolve;Xf((function(){var t;try{t=(r?r.put:e.dispatch)(i)}catch(e){return void n(e,!0)}o&&tf(t)?mp(t,n):n(t)}))},vp.ALL=function(e,t,n,r){var i=r.digestEffect,o=yp,a=Object.keys(t);if(0!==a.length){var s=Af(t,n);a.forEach((function(e){i(t[e],o,s[e],e)}))}else n(ef(t)?[]:{})},vp[Of]=function(e,t,n,r){var i=r.digestEffect,o=yp,a=Object.keys(t),s=ef(t)?xf(a.length):{},l={},c=!1;a.forEach((function(e){var t=function(t,r){c||(r||Mf(t)?(n.cancel(),n(t,r)):(n.cancel(),c=!0,s[e]=t,n(s)))};t.cancel=df,l[e]=t})),n.cancel=function(){c||(c=!0,a.forEach((function(e){return l[e].cancel()})))},a.forEach((function(e){c||i(t[e],o,l[e],e)}))},vp[Lf]=function(e,t,n,r){var i=t.context,o=t.fn,a=t.args,s=r.task;try{var l=o.apply(i,a);if(tf(l))return void mp(l,n);if(nf(l))return void kp(e,l,s.context,yp,Ef(o),!1,n);n(l)}catch(e){n(e,!0)}},vp.CPS=function(e,t,n){var r=t.context,i=t.fn,o=t.args;try{var a=function(e,t){Jd(e)?n(t):n(e,!0)};i.apply(r,o.concat(a)),a.cancel&&(n.cancel=a.cancel)}catch(e){n(e,!0)}},vp[Rf]=function(e,t,n,r){var i=t.context,o=t.fn,a=t.args,s=t.detached,l=r.task,c=function(e){var t=e.context,n=e.fn,r=e.args;try{var i=n.apply(t,r);if(nf(i))return i;var o=!1;return yf((function(e){return o?{value:e,done:!0}:(o=!0,{value:i,done:!tf(i)})}))}catch(e){return yf((function(){throw e}))}}({context:i,fn:o,args:a}),u=function(e,t){return e.isSagaIterator?{name:e.meta.name}:Ef(t)}(c,o);$f((function(){var t=kp(e,c,l.context,yp,u,s,void 0);s?n(t):t.isRunning()?(l.queue.addTask(t),n(t)):t.isAborted()?l.queue.abort(t.error()):n(t)}))},vp.JOIN=function(e,t,n,r){var i=r.task,o=function(e,t){if(e.isRunning()){var n={task:i,cb:t};t.cancel=function(){e.isRunning()&&hf(e.joiners,n)},e.joiners.push(n)}else e.isAborted()?t(e.error(),!0):t(e.result())};if(ef(t)){if(0===t.length)return void n([]);var a=Af(t,n);t.forEach((function(e,t){o(e,a[t])}))}else o(t,n)},vp[Pf]=function(e,t,n,r){var i=r.task;t===Zd?xp(i):ef(t)?t.forEach(xp):xp(t),n()},vp[zf]=function(e,t,n){var r=t.selector,i=t.args;try{n(r.apply(void 0,[e.getState()].concat(i)))}catch(e){n(e,!0)}},vp.ACTION_CHANNEL=function(e,t,n){var r=t.pattern,i=up(t.buffer),o=sp(r),a=function t(n){cp(n)||e.channel.take(t,o),i.put(n)},s=i.close;i.close=function(){a.cancel(),s()},e.channel.take(a,o),n(i)},vp[Uf]=function(e,t,n,r){n(r.task.isCancelled())},vp.FLUSH=function(e,t,n){t.flush(n)},vp.GET_CONTEXT=function(e,t,n,r){n(r.task.context[t])},vp.SET_CONTEXT=function(e,t,n,r){var i=r.task;pf(i.context,t),n()},vp);function wp(e,t){return e+"?"+t}function Tp(e){var t=e.name,n=e.location;return n?t+" "+wp(n.fileName,n.lineNumber):t}var Mp=null,Ap=[],Ep=function(e){e.crashedEffect=Mp,Ap.push(e)},Cp=function(){Mp=null,Ap.length=0},Np=function(e){Mp=e},Sp=function(){var e,t,n,r,i,o,a,s=Ap[0],l=Ap.slice(1),c=s.crashedEffect?(o=s.crashedEffect,(a=Cf(o))?a.code+" "+wp(a.fileName,a.lineNumber):""):null;return["The above error occurred in task "+Tp(s.meta)+(c?" \n when executing effect "+c:"")].concat(l.map((function(e){return" created by "+Tp(e.meta)})),[(e=Ap,t=function(e){return e.cancelledTasks},n=e,i=(r=[]).concat.apply(r,n.map(t)),i.length?["Tasks cancelled due to error:"].concat(i).join("\n"):"")]).join("\n")};function kp(e,t,n,r,i,o,a){var s=e.finalizeRunEffect((function(t,n,r){tf(t)?mp(t,r):nf(t)?kp(e,t,c.context,n,i,!1,r):t&&t[_d]?(0,Ip[t.type])(e,t.payload,r,u):r(t)}));d.cancel=df;var l={meta:i,cancel:function(){l.status===fp&&(l.status=pp,d(qd))},status:fp},c=function(e,t,n,r,i,o,a){var s;void 0===a&&(a=df);var l,c,u=fp,d=null,f=[],p=Object.create(n),h=function(e,t,n){var r,i=[],o=!1;function a(e){t(),l(),n(e,!0)}function s(t){i.push(t),t.cont=function(s,l){o||(hf(i,t),t.cont=df,l?a(s):(t===e&&(r=s),i.length||(o=!0,n(r))))}}function l(){o||(o=!0,i.forEach((function(e){e.cont=df,e.cancel()})),i=[])}return s(e),{addTask:s,cancelAll:l,abort:a,getTasks:function(){return i}}}(t,(function(){f.push.apply(f,h.getTasks().map((function(e){return e.meta.name})))}),g);function g(t,n){if(n){if(u=hp,Ep({meta:i,cancelledTasks:f}),m.isRoot){var r=Sp();Cp(),e.onError(t,{sagaStack:r})}c=t,d&&d.reject(t)}else t===qd?u=pp:u!==pp&&(u=gp),l=t,d&&d.resolve(t);m.cont(t,n),m.joiners.forEach((function(e){e.cb(t,n)})),m.joiners=null}var m=((s={})[Hd]=!0,s.id=r,s.meta=i,s.isRoot=o,s.context=p,s.joiners=[],s.queue=h,s.cancel=function(){u===fp&&(u=pp,h.cancelAll(),g(qd,!1))},s.cont=a,s.end=g,s.setContext=function(e){pf(p,e)},s.toPromise=function(){return d||(d=Vf(),u===hp?d.reject(c):u!==fp&&d.resolve(l)),d.promise},s.isRunning=function(){return u===fp},s.isCancelled=function(){return u===pp||u===fp&&t.status===pp},s.isAborted=function(){return u===hp},s.result=function(){return l},s.error=function(){return c},s);return m}(e,l,n,r,i,o,a),u={task:c,digestEffect:f};return a&&(a.cancel=c.cancel),d(),c;function d(e,n){try{var i;n?(i=t.throw(e),Cp()):Tf(e)?(l.status=pp,d.cancel(),i=$d(t.return)?t.return(qd):{done:!0,value:qd}):i=wf(e)?$d(t.return)?t.return():{done:!0}:t.next(e),i.done?(l.status!==pp&&(l.status=gp),l.cont(i.value)):f(i.value,r,d)}catch(e){if(l.status===pp)throw e;l.status=hp,l.cont(e,!0)}}function f(t,n,r,i){void 0===i&&(i="");var o,a=bp();function l(n,i){o||(o=!0,r.cancel=df,e.sagaMonitor&&(i?e.sagaMonitor.effectRejected(a,n):e.sagaMonitor.effectResolved(a,n)),i&&Np(t),r(n,i))}e.sagaMonitor&&e.sagaMonitor.effectTriggered({effectId:a,parentEffectId:n,label:i,effect:t}),l.cancel=df,r.cancel=function(){o||(o=!0,l.cancel(),l.cancel=df,e.sagaMonitor&&e.sagaMonitor.effectCancelled(a))},s(t,a,l)}}function jp(e,t){for(var n=e.channel,r=void 0===n?dp():n,i=e.dispatch,o=e.getState,a=e.context,s=void 0===a?{}:a,l=e.sagaMonitor,c=e.effectMiddlewares,u=e.onError,d=void 0===u?bf:u,f=arguments.length,p=new Array(f>2?f-2:0),h=2;h<f;h++)p[h-2]=arguments[h];var g,m=t.apply(void 0,p),v=bp();if(l&&(l.rootSagaStarted=l.rootSagaStarted||df,l.effectTriggered=l.effectTriggered||df,l.effectResolved=l.effectResolved||df,l.effectRejected=l.effectRejected||df,l.effectCancelled=l.effectCancelled||df,l.actionDispatched=l.actionDispatched||df,l.rootSagaStarted({effectId:v,saga:t,args:p})),c){var y=Nf.apply(void 0,c);g=function(e){return function(t,n,r){return y((function(t){return e(t,n,r)}))(t)}}}else g=ff;var b={channel:r,dispatch:If(i),getState:o,sagaMonitor:l,onError:d,finalizeRunEffect:g};return $f((function(){var e=kp(b,m,s,v,Ef(t),!0,void 0);return l&&l.effectResolved(v,e),e}))}var Dp=function(e){return{done:!0,value:e}},Op={};function Lp(e){return of(e)?"channel":af(e)?String(e):$d(e)?e.name:String(e)}function Rp(e,t,n){var r,i,o,a=t;function s(t,n){if(a===Op)return Dp(t);if(n&&!i)throw a=Op,n;r&&r(t);var s=n?e[i](n):e[a]();return a=s.nextState,o=s.effect,r=s.stateUpdater,i=s.errorState,a===Op?Dp(t):o}return yf(s,(function(e){return s(null,e)}),n)}function Pp(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];var o,a={done:!1,value:Bf(e)},s=function(e){return o=e};return Rp({q1:function(){return{nextState:"q2",effect:a,stateUpdater:s}},q2:function(){return{nextState:"q1",effect:(e=o,{done:!1,value:Hf.apply(void 0,[t].concat(r,[e]))})};var e}},"q1","takeEvery("+Lp(e)+", "+t.name+")")}function zp(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];var o,a,s={done:!1,value:Bf(e)},l=function(e){return{done:!1,value:Hf.apply(void 0,[t].concat(r,[e]))}},c=function(e){return{done:!1,value:qf(e)}},u=function(e){return o=e},d=function(e){return a=e};return Rp({q1:function(){return{nextState:"q2",effect:s,stateUpdater:d}},q2:function(){return o?{nextState:"q3",effect:c(o)}:{nextState:"q1",effect:l(a),stateUpdater:u}},q3:function(){return{nextState:"q1",effect:l(a),stateUpdater:u}}},"q1","takeLatest("+Lp(e)+", "+t.name+")")}const Up=function(e,t){return Bn(Nd(e,t),1)};function _p(e,t){return function(e,n,r){return function e(n,r){return r.childNodes.reduce(e,((e,n)=>{if("text-answer"===n.name&&null!=n.attributes.maxLength){const r=t[n.attributes.questionId];return("richText"===(null==r?void 0:r.type)||"text"===(null==r?void 0:r.type))&&r.characterCount>n.attributes.maxLength?[...e,{type:"AnswerTooLong",displayNumber:n.attributes.displayNumber,characterCount:r.characterCount,elementType:"question"}]:e}return e})(n,r))}([],e)}(e)}function Bp(e,t){return function e(n){var r;const i="exam"===n.name?"":n.attributes.displayNumber;switch(n.name){case"exam":case"section":case"question":{const t=n.childNodes.map(e),o=t.filter((e=>e.answerCount>0)),a=null!==(r=n.attributes.maxAnswers)&&void 0!==r?r:1/0,s="section"===n.name?n.attributes.minAnswers:void 0,l="exam"===n.name?o.reduce(((e,t)=>e+t.answerCount),0):o.length,c=Up(t,(e=>e.extraAnswers));return{answerCount:l,displayNumber:i,extraAnswers:l>a?[{type:"ExtraAnswer",elementType:n.name,displayNumber:i,childQuestions:t.map((e=>e.displayNumber)),maxAnswers:a,minAnswers:s},...c]:c}}case"text-answer":case"scored-text-answer":case"choice-answer":case"dnd-answer":case"dropdown-answer":{const e=t[n.attributes.questionId];return{answerCount:(null==e?void 0:e.value.length)>0?1:0,displayNumber:i,extraAnswers:[]}}}}(e).extraAnswers}function Fp(e,t){return Up([_p,Bp],(n=>n(e,t)))}const Gp={answersById:{},examStructure:{name:"exam",attributes:{},childNodes:[]},focusedQuestionId:null,supportsAnswerHistory:!1,serverQuestionIds:new Set,savedQuestionIds:new Set,validationErrors:[]};function Zp(e,t){const n=new Set(e);return n.add(t),n}const Hp=e=>(0,Pu.action)("SAVE_ANSWER",e),qp=e=>(0,Pu.action)("SAVE_ANSWER_SUCCEEDED",e),Yp=(e,t)=>(0,Pu.action)("SAVE_ANSWER_FAILED",{answer:e,error:t},void 0,!0),Vp=new Map;function*Wp(e,t){const n=e.payload;try{yield Yf(1e3),yield Zf(t.saveAnswer,n),yield Ff(qp(n))}catch(e){yield Ff(Yp(n,e))}Vp.delete(n.questionId)}function*Qp(e){for(;;){const t=yield Bf("SAVE_ANSWER"),n=Vp.get(t.payload.questionId);n&&(yield qf(n));const r=yield Hf(Wp,t,e);Vp.set(t.payload.questionId,r)}}function*Jp(e){for(;e.selectAnswerVersion;){const t=yield Bf("SELECT_ANSWER_VERSION"),{questionId:n,questionText:r}=t.payload;e.logActivity&&(yield Zf(e.logActivity,`Opened answer version history for question ${n}, ${r}`));try{const t=yield Zf(e.selectAnswerVersion,n,r);t&&(yield Ff(Hp(t)),e.logActivity&&(yield Zf(e.logActivity,`Restored answer version for question ${n}, ${r}`)))}catch(e){console.error(e)}}}function*Xp(e){yield Hf(Qp,e),yield Hf(Jp,e)}const $p=function(e,t,n,r){var i=!n;n||(n={});for(var o=-1,a=t.length;++o<a;){var s=t[o],l=r?r(n[s],e[s],s,n,e):void 0;void 0===l&&(l=e[s]),i?Qe(n,s,l):pl(n,s,l)}return n};var Kp=Object.prototype.hasOwnProperty;const eh=function(e){if(!le(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=ie(e),n=[];for(var r in e)("constructor"!=r||!t&&Kp.call(e,r))&&n.push(r);return n},th=function(e){return ue(e)?ne(e,!0):eh(e)};var nh="object"==typeof exports&&exports&&!exports.nodeType&&exports,rh=nh&&"object"==typeof module&&module&&!module.nodeType&&module,ih=rh&&rh.exports===nh?M.Buffer:void 0,oh=ih?ih.allocUnsafe:void 0;const ah=oe(Object.getPrototypeOf,Object),sh=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)Tt(t,Nt(e)),e=ah(e);return t}:At,lh=function(e){return Mt(e,th,sh)};var ch=Object.prototype.hasOwnProperty;const uh=function(e){var t=new e.constructor(e.byteLength);return new yt(t).set(new yt(e)),t};var dh=/\w*$/;var fh=A?A.prototype:void 0,ph=fh?fh.valueOf:void 0;const hh=function(e,t,n){var r,i=e.constructor;switch(t){case"[object ArrayBuffer]":return uh(e);case"[object Boolean]":case"[object Date]":return new i(+e);case"[object DataView]":return function(e,t){var n=t?uh(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return function(e,t){var n=t?uh(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}(e,n);case"[object Map]":case"[object Set]":return new i;case"[object Number]":case"[object String]":return new i(e);case"[object RegExp]":return function(e){var t=new e.constructor(e.source,dh.exec(e));return t.lastIndex=e.lastIndex,t}(e);case"[object Symbol]":return r=e,ph?Object(ph.call(r)):{}}};var gh=Object.create;const mh=function(){function e(){}return function(t){if(!le(t))return{};if(gh)return gh(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();var vh=$&&$.isMap;const yh=vh?W(vh):function(e){return O(e)&&"[object Map]"==Yt(e)};var bh=$&&$.isSet;const xh=bh?W(bh):function(e){return O(e)&&"[object Set]"==Yt(e)};var Ih="[object Arguments]",wh="[object Function]",Th="[object Object]",Mh={};Mh[Ih]=Mh["[object Array]"]=Mh["[object ArrayBuffer]"]=Mh["[object DataView]"]=Mh["[object Boolean]"]=Mh["[object Date]"]=Mh["[object Float32Array]"]=Mh["[object Float64Array]"]=Mh["[object Int8Array]"]=Mh["[object Int16Array]"]=Mh["[object Int32Array]"]=Mh["[object Map]"]=Mh["[object Number]"]=Mh[Th]=Mh["[object RegExp]"]=Mh["[object Set]"]=Mh["[object String]"]=Mh["[object Symbol]"]=Mh["[object Uint8Array]"]=Mh["[object Uint8ClampedArray]"]=Mh["[object Uint16Array]"]=Mh["[object Uint32Array]"]=!0,Mh["[object Error]"]=Mh[wh]=Mh["[object WeakMap]"]=!1;const Ah=function e(t,n,r,i,o,a){var s,l=1&n,c=2&n,u=4&n;if(r&&(s=o?r(t,i,o,a):r(t)),void 0!==s)return s;if(!le(t))return t;var d=_(t);if(d){if(s=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&ch.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(t),!l)return function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}(t,s)}else{var f=Yt(t),p=f==wh||"[object GeneratorFunction]"==f;if(Z(t))return function(e,t){if(t)return e.slice();var n=e.length,r=oh?oh(n):new e.constructor(n);return e.copy(r),r}(t,l);if(f==Th||f==Ih||p&&!o){if(s=c||p?{}:function(e){return"function"!=typeof e.constructor||ie(e)?{}:mh(ah(e))}(t),!l)return c?function(e,t){return $p(e,sh(e),t)}(t,function(e,t){return e&&$p(t,th(t),e)}(s,t)):function(e,t){return $p(e,Nt(e),t)}(t,function(e,t){return e&&$p(t,de(t),e)}(s,t))}else{if(!Mh[f])return o?t:{};s=hh(t,f,l)}}a||(a=new pt);var h=a.get(t);if(h)return h;a.set(t,s),xh(t)?t.forEach((function(i){s.add(e(i,n,r,i,t,a))})):yh(t)&&t.forEach((function(i,o){s.set(o,e(i,n,r,o,t,a))}));var g=d?void 0:(u?c?lh:St:c?th:de)(t);return b(g||t,(function(i,o){g&&(i=t[o=i]),pl(s,o,e(i,n,r,o,t,a))})),s},Eh=function(e,t){return null==(e=function(e,t){return t.length<2?e:xn(e,Sn(t,0,-1))}(e,t=yn(t,e)))||delete e[bn(ul(t))]};var Ch=Function.prototype,Nh=Object.prototype,Sh=Ch.toString,kh=Nh.hasOwnProperty,jh=Sh.call(Object);const Dh=function(e){return function(e){if(!O(e)||"[object Object]"!=D(e))return!1;var t=ah(e);if(null===t)return!0;var n=kh.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Sh.call(n)==jh}(e)?void 0:e},Oh=vl((function(e,t){var n={};if(null==e)return n;var r=!1;t=pn(t,(function(t){return t=yn(t,e),r||(r=t.length>1),t})),$p(e,lh(e),n),r&&(n=Ah(n,7,Dh));for(var i=t.length;i--;)Eh(n,t[i]);return n})),Lh={errors:{},nowPlaying:null,playbackTimes:{}},Rh=e=>function(t,n){void 0===n&&(n=Sf);var r,i=!1,o=up(n),a=function(){i||(i=!0,$d(r)&&r(),o.close())};return r=gf(r=(t=>{const n=setInterval((()=>{--e>0?t(e):(t(lp),clearInterval(n))}),1e3);return()=>clearInterval(n)})((function(e){cp(e)?a():o.put(e)}))),i&&r(),{take:o.take,flush:o.flush,close:a}}();function*Ph(e,t){const n=yield Zf(Rh,e);try{for(;;){const e=yield Bf(n);yield Ff(t(e))}}finally{(yield _f(Uf,{}))&&n.close()}}function*zh(e,t){const n=t.payload;try{const t=null!=n.restrictedAudioId?yield function(e){void 0===e&&(e=ff);for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return _f(zf,{selector:e,args:n})}(qc(n.restrictedAudioId)):void 0,r=n.audioRef&&n.audioRef.current?yield function(e,t,n){return null!=n&&null!=t.restrictedAudioId?async function(e,t,n,r){try{const i=await e.getRestrictedAudio("",t,r),o=n.querySelector("source");return o.src=URL.createObjectURL(i),n.load(),n.play(),{response:"ok",cleanup:()=>{URL.revokeObjectURL(o.src)}}}catch(e){return{response:"other-error",cleanup:()=>{}}}}(e,t.restrictedAudioId,t.audioRef.current,n):(t.audioRef.current.play(),{response:"ok"})}(e,n,t):yield function*(e,t,n){return{response:null!=n&&null!=t.restrictedAudioId?yield Zf(e.playRestrictedAudio,t.src,t.restrictedAudioId,n):yield Zf(e.playAudio,t.src)}}(e,n,t);"ok"===r.response?(yield Ff(Uu(n)),yield Zf(Ph,n.duration,Gu),yield Ff(_u())):(yield Ff(Bu(n,r.response)),yield Yf(5e3),yield Ff(Fu(n))),r.cleanup&&r.cleanup()}catch(e){console.error(e)}}function*Uh(e){yield function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return Hf.apply(void 0,[Pp,e,t].concat(r))}("PLAY_AUDIO",zh,e)}const _h={casStatus:"forbidden"},{createAction:Bh}=Pu.deprecated,Fh=e=>(0,Pu.action)("ALLOW_CAS_COUNTDOWN",e),Gh=Bh("ALLOW_CAS_SUCCEEDED"),Zh=Bh("ALLOW_CAS_CANCELLED"),Hh=e=>(0,Pu.action)("UPDATE_CAS_REMAINING",e);function*qh(e,{payload:t}){try{if("allowed"===(yield Zf(e.setCasStatus,"allowing")))return void(yield Ff(Gh()));yield Ff(Fh(t));const{cancelled:i}=yield(n={finished:Zf(Ph,t,Hh),cancelled:Bf("ALLOW_CAS_CANCELLED")},r=_f(Of,n),r.combinator=!0,r);"allowed"===(yield Zf(e.setCasStatus,i?"forbidden":"allowed"))?yield Ff(Gh()):i||(yield Ff(Zh()))}catch(e){console.error(e)}var n,r}function*Yh(e){yield function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return Hf.apply(void 0,[zp,e,t].concat(r))}("ALLOW_CAS",qh,e)}const Vh=function(e){const t=Object.keys(e),n={};for(let r=0;r<t.length;r++){const i=t[r];"function"==typeof e[i]&&(n[i]=e[i])}const r=Object.keys(n);let i;try{!function(e){Object.keys(e).forEach((t=>{const n=e[t];if(void 0===n(void 0,{type:Od.INIT}))throw new Error(kd(12));if(void 0===n(void 0,{type:Od.PROBE_UNKNOWN_ACTION()}))throw new Error(kd(13))}))}(n)}catch(e){i=e}return function(e={},t){if(i)throw i;let o=!1;const a={};for(let i=0;i<r.length;i++){const s=r[i],l=n[s],c=e[s],u=l(c,t);if(void 0===u)throw t&&t.type,new Error(kd(14));a[s]=u,o=o||u!==c}return o=o||r.length!==Object.keys(e).length,o?a:e}}({answers:function(e=Gp,t){switch(t.type){case"SAVE_ANSWER":{const{questionId:n}=t.payload,r=function(e,t){const n=new Set(e);return n.delete(t),n}(e.savedQuestionIds,n),i={...e.answersById,[n]:t.payload};return{...e,savedQuestionIds:r,answersById:i}}case"SAVE_ANSWER_FAILED":default:return e;case"SAVE_ANSWER_SUCCEEDED":{const{questionId:n}=t.payload,r=Zp(e.savedQuestionIds,n),i=Zp(e.serverQuestionIds,n),o=Fp(e.examStructure,e.answersById);return{...e,serverQuestionIds:i,savedQuestionIds:r,validationErrors:o}}case"ANSWER_FOCUSED":{const n=t.payload;return{...e,focusedQuestionId:n}}case"ANSWER_BLURRED":{const n=t.payload;return{...e,focusedQuestionId:e.focusedQuestionId===n?null:e.focusedQuestionId}}}},audio:function(e=Lh,t){switch(t.type){case"PLAY_AUDIO":{const n=t.payload,r={audio:n,durationRemaining:n.duration};return{...e,nowPlaying:r}}case"PLAY_AUDIO_STARTED":{const n=t.payload;if(null!=n.restrictedAudioId){const t=e.playbackTimes[n.restrictedAudioId],r={...e.playbackTimes,[n.restrictedAudioId]:t?t+1:1},i=Oh(e.errors,[n.src]);return{...e,playbackTimes:r,errors:i}}return e}case"SHOW_AUDIO_ERROR":{const{audio:n,error:r}=t.payload,i=In(n,"restrictedAudioId",n.src),o={...e.errors,[i]:r};return{...e,errors:o,nowPlaying:null}}case"HIDE_AUDIO_ERROR":{const n=t.payload,r=In(n,"restrictedAudioId",n.src),i=Oh(e.errors,[r]);return{...e,errors:i}}case"PLAY_AUDIO_FINISHED":return{...e,nowPlaying:null};case"UPDATE_REMAINING":{const n=t.payload,r={...e.nowPlaying,durationRemaining:n};return{...e,nowPlaying:r}}default:return e}},cas:function(e=_h,t){switch(t.type){case"ALLOW_CAS":default:return e;case"ALLOW_CAS_COUNTDOWN":case"UPDATE_CAS_REMAINING":return{casStatus:"allowing",durationRemaining:t.payload};case"ALLOW_CAS_SUCCEEDED":return{casStatus:"allowed"};case"ALLOW_CAS_CANCELLED":return{casStatus:"forbidden"}}}});function*Wh(e){yield Hf(Xp,e),yield Hf(Uh,e),yield Hf(Yh,e)}function Qh(e,t,n,r,i){const o=new Set(Nd(n,"questionId")),a=function(e,t){var n={};return t=An(t),fe(e,(function(e,r,i){Qe(n,r,t(e,r,i))})),n}(Sd(r,"restrictedAudioId"),"times"),s=Sd(n,"questionId"),l={answers:{answersById:s,focusedQuestionId:null,serverQuestionIds:o,supportsAnswerHistory:"function"==typeof i.selectAnswerVersion,savedQuestionIds:o,examStructure:e,validationErrors:Fp(e,s)},audio:{errors:{},nowPlaying:null,playbackTimes:a},cas:{casStatus:t}},c=function(e){var t,n=void 0===e?{}:e,r=n.context,i=void 0===r?{}:r,o=n.channel,a=void 0===o?dp():o,s=n.sagaMonitor,l=Qd(n,["context","channel","sagaMonitor"]);function c(e){var n=e.getState,r=e.dispatch;return t=jp.bind(null,Wd({},l,{context:i,channel:a,dispatch:r,getState:n,sagaMonitor:s})),function(e){return function(t){s&&s.actionDispatched&&s.actionDispatched(t);var n=e(t);return a.put(t),n}}}return c.run=function(){return t.apply(void 0,arguments)},c.setContext=function(e){pf(i,e)},c}(),u=(window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__||Rd)(function(...e){return t=>(n,r)=>{const i=t(n,r);let o=()=>{throw new Error(kd(15))};const a={getState:i.getState,dispatch:(e,...t)=>o(e,...t)},s=e.map((e=>e(a)));return o=Rd(...s)(i.dispatch),{...i,dispatch:o}}}(c)),d=Ld(Vh,l,u);return c.run(Wh,i),d}const Jh=t().memo((function({element:e,className:n,renderChildNodes:r}){return t().createElement("div",{className:Er()("e-audio-group",n)},t().createElement("div",{className:"e-audio-group--separator e-font-size-xl e-mrg-y-4 e-color-link",role:"separator"},"✲✲✲"),r(e))})),Xh=t().memo((function({element:n}){const r=n.getAttribute("src"),i=Ce(n,"duration"),{t:o}=Dl(),a=kc(Zc(r)),s=kc(Hc(r)),l=Gc(),{abitti2:c,resolveAttachment:u}=(0,e.useContext)(oc),d=(0,e.useRef)(null);return t().createElement("div",{className:"e-audio-test notification e-pad-2 e-mrg-b-4"},t().createElement("p",null,o("audio-test.instructions")),t().createElement("div",{className:"e-columns e-columns--center-v e-mrg-b-2"},t().createElement("div",{className:"e-column e-column--narrow"},c&&t().createElement("audio",{ref:d,preload:"none"},t().createElement("source",{src:u(r)})),t().createElement("button",{className:"e-button",disabled:"stopped"!==a,onClick:()=>"stopped"===a&&l(zu({src:r,duration:i,audioRef:d}))},t().createElement(qa,{className:"e-mrg-r-1",icon:ns,fixedWidth:!0}),o("audio-test.play"))),t().createElement("div",{className:"e-column"},t().createElement(Ru,{error:s},be))),t().createElement("div",null,o("audio-test.volume")))})),$h=({children:e})=>t().createElement("footer",{className:"e-footer"},e),Kh=vs({}),eg=t().memo((function(n){const{root:r}=(0,e.useContext)(oc),{t:i}=Dl(),o=Te(r,"reference").filter((e=>null==Me(e,"external-material")));return o.length>0?t().createElement(nc,{"aria-labelledby":_l},t().createElement("h2",{id:_l},i("references.heading")),t().createElement("div",{className:"anchor",id:"references"}),t().createElement("ol",{className:"e-list-data","data-annotation-anchor":_l},o.map(((e,n)=>{const r=Me(e,"question").getAttribute("display-number");return t().createElement("li",{"data-list-number":yd(r),key:`${r}${n}`},t().createElement(rd,{element:e,renderChildNodes:Kh}))})))):null})),tg=(0,e.memo)((e=>{const{id:n,type:r,answer:i,error:o,displayNumber:a}=e,s=null==i?void 0:i.value,l="richText"===(null==i?void 0:i.type),c=l&&(null==s?void 0:s.includes('src="/math.svg?latex=')),u=l&&((null==s?void 0:s.includes('<img src="/screenshot/'))||(null==s?void 0:s.includes('<img src="data:image/png;')));return t().createElement("div",{className:"answer-indicator-container",onClick:e=>{e.stopPropagation(),window.location.href=`#question-nr-${a}`},key:n},t().createElement("div",{className:Er()("answer-indicator",{ok:s,error:o,big:"rich-text"===r}),"data-indicator-id":n},"richText"===(null==i?void 0:i.type)&&t().createElement(t().Fragment,null,l&&(null==i?void 0:i.characterCount)&&t().createElement("span",null,i.characterCount)||"",c&&t().createElement("span",{className:"formula"},"∑"),u&&t().createElement("span",{className:"img"},t().createElement(qa,{icon:Xa,size:"lg"})))))})),ng=({element:n,renderChildNodes:r})=>{var i;const{attachmentsURL:o}=(0,e.useContext)(oc),{displayNumber:a,maxScore:s,level:l}=(0,e.useContext)(dd),{t:c}=Dl(),{isInSidebar:u}=(0,e.useContext)(us),d=Ae(n,"question-title"),f=null!=a&&we(n,"external-material"),p=[];let h={},g=!1;if(u){const e=kc((e=>e.answers));h=(null==e?void 0:e.answersById)||{};const t=n.querySelectorAll("[question-id]"),r=null===(i=e.validationErrors)||void 0===i?void 0:i.filter((e=>"question"===(null==e?void 0:e.elementType)));g=!!(null==r?void 0:r.find((e=>e.displayNumber===a))),t.forEach((e=>{var t;const n=Number(e.getAttribute("question-id")),i=e.getAttribute("type")||"",o=e.getAttribute("display-number")||"",a=!!(null==r?void 0:r.find((e=>e.displayNumber===o))),s=r.flatMap((e=>"childQuestions"in e?e.childQuestions:[])).includes(o),l=!!(null===(t=h[n])||void 0===t?void 0:t.value);n&&p.push({id:n,type:i,error:a||s&&l,displayNumber:o})}))}const m=!!p.find((e=>e.error)),v=null==p?void 0:p.filter((e=>{var t;return null===(t=h[e.id])||void 0===t?void 0:t.value})).length,y=Number(n.getAttribute("max-answers"))||p.length,b=Oe("question",a);return t().createElement("li",{"data-list-number":`${a}.`,onClick:()=>u?window.location.href=`#question-nr-${a}`:void 0,className:Er()(`level-${l}`,{error:g,current:b})},t().createElement("span",{className:"e-column e-question-title"},t().createElement("a",{href:dc("",{hash:`question-nr-${a}`}),tabIndex:u?-1:void 0},t().createElement("span",null,r(d)))),u&&t().createElement("div",{className:Er()("numeric-answer-indicator",{error:m,ok:v===y})},v,"/",y),!u&&f&&t().createElement("span",{className:"e-column e-column--narrow e-external-material"},t().createElement("a",{href:dc(o,{hash:Ee(Me(f,"question"),"display-number")}),target:"attachments"},c("material"))),t().createElement("span",{className:"e-column e-column--narrow table-of-contents--score-column"},c("points",{count:s})),u&&t().createElement("span",{className:"e-column e-column--narrow e-external-material"},f&&t().createElement(qa,{size:"sm",icon:es,fixedWidth:!0})),t().createElement("div",{className:"answers"},p.map((e=>t().createElement(tg,{key:e.id,type:e.type,id:e.id,answer:h[e.id],error:e.error,displayNumber:e.displayNumber})))," "))},rg=t().memo((function({maxAnswers:e,minAnswers:n,elementType:r,childQuestions:i}){const o=i.map((e=>{return"string"==typeof(t=e)||!_(t)&&O(t)&&"[object String]"==D(t)?e:e.getAttribute("display-number");var t})),{t:a}=Dl(),s=function(e,t,n){const r=[];for(const i of e)for(const e of t)for(const t of n)r.push([i,e,t]);return r}([o.length,"*"],[e,"*"],[null!=n?n:e,"*"]).map((([e,t,n])=>`answering-instructions.${r}_${e}_${n}_${t}`)),l=[n,e],c=[cl(o),ul(o)];return t().createElement(t().Fragment,null,a(s,{answerCount:l,questions:c}))})),ig=({element:n,renderChildNodes:r})=>{const{sections:i}=(0,e.useContext)(oc),{childQuestions:o,displayNumber:a,minAnswers:s,maxAnswers:l}=(0,e.useContext)(cc),{t:c}=Dl(),{isInSidebar:u}=(0,e.useContext)(us),d=u&&!!kc((e=>{var t,n;return null===(n=null===(t=e.answers)||void 0===t?void 0:t.validationErrors)||void 0===n?void 0:n.find((e=>e.displayNumber===a&&"section"===(null==e?void 0:e.elementType)))})),f=Oe("section",a);return t().createElement("div",{className:f?"current":""},n.hasChildNodes()&&t().createElement("div",{className:"toc-section-header-container"},t().createElement("h4",{className:"toc-section-header",id:ql(a)},i.length>1&&c("section",{displayNumber:a})," ",r(n))),l&&t().createElement("div",{style:{display:"grid"},className:`answer-instructions-container section-${a}`},t().createElement("div",{className:Er()("answer-instructions",{error:d})},d&&t().createElement("div",{className:"error-mark"},"!"),t().createElement("span",{className:"error-reason"},t().createElement(rg,{maxAnswers:l,minAnswers:s,childQuestions:o,elementType:"toc-section"})))))},og=({element:n,answers:r,renderChildNodes:i})=>{const{displayNumber:o}=(0,e.useContext)(cc),a=Ae(n,"section-title");return t().createElement("li",{"data-section-id":o},a&&t().createElement(ig,{element:a,renderChildNodes:i,answers:r}),t().createElement("ol",{className:"e-list-data e-pad-l-0","aria-labelledby":a&&ql(o)},i(n,1)))},ag=n=>{const{showAnsweringInstructions:r,isInSidebar:i}=n,o=vs({section:uc(og),question:fd(ng)});return t().memo((()=>{const{root:n,maxScore:a}=(0,e.useContext)(oc),{t:s}=Dl(),l=Ce(n,"max-answers"),c=i&&!!kc((e=>{var t;return null===(t=e.answers.validationErrors)||void 0===t?void 0:t.find((e=>"exam"===(null==e?void 0:e.elementType)))})),u=t().createRef();return(0,e.useEffect)((()=>{var e;const t=e=>{const t=e.currentTarget;if(t.scrollHeight<=t.clientHeight)return;const n=e.deltaY,r=n<0&&0===t.scrollTop,i=n>0&&t.scrollTop>=t.scrollHeight-t.clientHeight;(r||i)&&e.preventDefault()};return null===(e=null==u?void 0:u.current)||void 0===e||e.addEventListener("wheel",t,{passive:!1}),()=>{var e;return null===(e=null==u?void 0:u.current)||void 0===e?void 0:e.removeEventListener("wheel",t)}}),[]),t().createElement("nav",{className:"table-of-contents","aria-labelledby":Jl,ref:u},!i&&t().createElement("h2",{id:Jl},t().createElement("span",{className:"e-toc-heading"},s("toc-heading"))),r&&l&&t().createElement("div",{style:{display:"grid"}},t().createElement("div",{className:Er()("answer-instructions",{error:c})},c&&t().createElement("div",{className:"error-mark exam"},"!"),t().createElement("span",{className:"error-reason"},s("max-answers-warning",{count:l})))),t().createElement(us.Provider,{value:{isInSidebar:i}},t().createElement("ol",{className:"e-list-plain e-pad-l-0"},o(n))),t().createElement("div",{className:"e-columns"},t().createElement("strong",{className:"e-column e-total"},s("exam-total")),t().createElement("strong",{className:"e-column e-column--narrow table-of-contents--score-column"},s("points",{count:a})),i&&t().createElement("span",{className:"e-column e-column--narrow e-external-material"})))}))},sg=JSON.parse('{"rE":"23.1.1-alpha.0"}'),lg=()=>{const e=In(window,"TEST_VERSION_NUMBER");return t().createElement("span",null,"EE v.",e||sg.rE)},cg=t().memo(mc((function({element:n,renderChildNodes:r}){const{isExternal:i}=(0,e.useContext)(gc);return i?null:t().createElement("span",{className:"exam-attachment e-mrg-b-2"},r(n))}))),ug=({selected:e,element:n,renderChildNodes:r,questionId:i,onSelect:o,direction:a,value:s})=>{const l=n.getAttribute("class"),c=t().createElement("div",{className:Er()("e-choice-answer-option e-column",l,{"e-choice-answer-option--selected":e})},r(n));return"vertical"===a?t().createElement("div",{className:"e-mrg-b-1"},t().createElement("label",{className:Er()("e-columns",{"e-columns--inline":null==we(n,["image","video"])})},t().createElement("input",{type:"radio",className:"e-radio-button e-column e-column--narrow",name:String(i),onChange:o,value:s,checked:e}),c)):t().createElement("div",{className:"e-column e-mrg-b-1"},t().createElement("label",{className:"e-block e-text-center"},t().createElement("input",{type:"radio",className:"e-radio-button",name:String(i),onChange:o,value:s,checked:e}),c))},dg=t().memo((({element:n,renderChildNodes:r})=>{const i=Ce(n,"question-id"),o=n.getAttribute("display-number"),a=n.getAttribute("direction")||"vertical",s=n.getAttribute("class"),{questionLabelIds:l}=(0,e.useContext)(dd),c=kc((e=>e.answers.answersById[i])),u=Gc(),d=(0,e.useCallback)((e=>{u(Hp({type:"choice",questionId:i,value:e.currentTarget.value,displayNumber:o}))}),[i,o]);return t().createElement("div",{className:Er()("e-choice-answer e-mrg-b-4",s,{"e-columns":"horizontal"===a}),"data-question-id":i,role:"radiogroup","aria-labelledby":l},t().createElement("span",{className:"anchor",id:`question-nr-${o}`}),Se(n,(e=>{const n=e.getAttribute("option-id"),o="no-answer"===e.getAttribute("type")?"":n,s=null!=c&&c.value===o;return t().createElement(ug,{element:e,onSelect:d,renderChildNodes:r,questionId:i,key:n,direction:a,selected:s,value:o})})))}));var fg=a(6003);const pg="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function hg(e){const t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function gg(e){return"nodeType"in e}function mg(e){var t,n;return e?hg(e)?e:gg(e)&&null!=(t=null==(n=e.ownerDocument)?void 0:n.defaultView)?t:window:window}function vg(e){const{Document:t}=mg(e);return e instanceof t}function yg(e){return!hg(e)&&e instanceof mg(e).HTMLElement}function bg(e){return e instanceof mg(e).SVGElement}function xg(e){return e?hg(e)?e.document:gg(e)?vg(e)?e:yg(e)||bg(e)?e.ownerDocument:document:document:document}const Ig=pg?e.useLayoutEffect:e.useEffect;function wg(t){const n=(0,e.useRef)(t);return Ig((()=>{n.current=t})),(0,e.useCallback)((function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return null==n.current?void 0:n.current(...t)}),[])}function Tg(t,n){void 0===n&&(n=[t]);const r=(0,e.useRef)(t);return Ig((()=>{r.current!==t&&(r.current=t)}),n),r}function Mg(t,n){const r=(0,e.useRef)();return(0,e.useMemo)((()=>{const e=t(r.current);return r.current=e,e}),[...n])}function Ag(t){const n=wg(t),r=(0,e.useRef)(null),i=(0,e.useCallback)((e=>{e!==r.current&&(null==n||n(e,r.current)),r.current=e}),[]);return[r,i]}function Eg(t){const n=(0,e.useRef)();return(0,e.useEffect)((()=>{n.current=t}),[t]),n.current}let Cg={};function Ng(t,n){return(0,e.useMemo)((()=>{if(n)return n;const e=null==Cg[t]?0:Cg[t]+1;return Cg[t]=e,t+"-"+e}),[t,n])}function Sg(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return r.reduce(((t,n)=>{const r=Object.entries(n);for(const[n,i]of r){const r=t[n];null!=r&&(t[n]=r+e*i)}return t}),{...t})}}const kg=Sg(1),jg=Sg(-1);function Dg(e){if(!e)return!1;const{KeyboardEvent:t}=mg(e.target);return t&&e instanceof t}function Og(e){if(function(e){if(!e)return!1;const{TouchEvent:t}=mg(e.target);return t&&e instanceof t}(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return function(e){return"clientX"in e&&"clientY"in e}(e)?{x:e.clientX,y:e.clientY}:null}const Lg=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[Lg.Translate.toString(e),Lg.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),Rg="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function Pg(e){return e.matches(Rg)?e:e.querySelector(Rg)}const zg={display:"none"};function Ug(e){let{id:n,value:r}=e;return t().createElement("div",{id:n,style:zg},r)}function _g(e){let{id:n,announcement:r,ariaLiveType:i="assertive"}=e;return t().createElement("div",{id:n,style:{position:"fixed",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"},role:"status","aria-live":i,"aria-atomic":!0},r)}const Bg=(0,e.createContext)(null),Fg={draggable:"\n To pick up a draggable item, press the space bar.\n While dragging, use the arrow keys to move the item.\n Press space again to drop the item in its new position, or press escape to cancel.\n "},Gg={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function Zg(n){let{announcements:r=Gg,container:i,hiddenTextDescribedById:o,screenReaderInstructions:a=Fg}=n;const{announce:s,announcement:l}=function(){const[t,n]=(0,e.useState)("");return{announce:(0,e.useCallback)((e=>{null!=e&&n(e)}),[]),announcement:t}}(),c=Ng("DndLiveRegion"),[u,d]=(0,e.useState)(!1);if((0,e.useEffect)((()=>{d(!0)}),[]),function(t){const n=(0,e.useContext)(Bg);(0,e.useEffect)((()=>{if(!n)throw new Error("useDndMonitor must be used within a children of <DndContext>");return n(t)}),[t,n])}((0,e.useMemo)((()=>({onDragStart(e){let{active:t}=e;s(r.onDragStart({active:t}))},onDragMove(e){let{active:t,over:n}=e;r.onDragMove&&s(r.onDragMove({active:t,over:n}))},onDragOver(e){let{active:t,over:n}=e;s(r.onDragOver({active:t,over:n}))},onDragEnd(e){let{active:t,over:n}=e;s(r.onDragEnd({active:t,over:n}))},onDragCancel(e){let{active:t,over:n}=e;s(r.onDragCancel({active:t,over:n}))}})),[s,r])),!u)return null;const f=t().createElement(t().Fragment,null,t().createElement(Ug,{id:o,value:a.draggable}),t().createElement(_g,{id:c,announcement:l}));return i?(0,fg.createPortal)(f,i):f}var Hg,qg;function Yg(){}function Vg(t,n){return(0,e.useMemo)((()=>({sensor:t,options:null!=n?n:{}})),[t,n])}(qg=Hg||(Hg={})).DragStart="dragStart",qg.DragMove="dragMove",qg.DragEnd="dragEnd",qg.DragCancel="dragCancel",qg.DragOver="dragOver",qg.RegisterDroppable="registerDroppable",qg.SetDroppableDisabled="setDroppableDisabled",qg.UnregisterDroppable="unregisterDroppable";const Wg=Object.freeze({x:0,y:0});function Qg(e,t){const n=Og(e);return n?(n.x-t.left)/t.width*100+"% "+(n.y-t.top)/t.height*100+"%":"0 0"}function Jg(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function Xg(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function $g(e){let{left:t,top:n,height:r,width:i}=e;return[{x:t,y:n},{x:t+i,y:n},{x:t,y:n+r},{x:t+i,y:n+r}]}function Kg(e,t){if(!e||0===e.length)return null;const[n]=e;return t?n[t]:n}function em(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),i=Math.min(t.left+t.width,e.left+e.width),o=Math.min(t.top+t.height,e.top+e.height),a=i-r,s=o-n;if(r<i&&n<o){const n=t.width*t.height,r=e.width*e.height,i=a*s;return Number((i/(n+r-i)).toFixed(4))}return 0}const tm=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const i=[];for(const e of r){const{id:r}=e,o=n.get(r);if(o){const n=em(o,t);n>0&&i.push({id:r,data:{droppableContainer:e,value:n}})}}return i.sort(Xg)};function nm(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:Wg}function rm(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return r.reduce(((t,n)=>({...t,top:t.top+e*n.y,bottom:t.bottom+e*n.y,left:t.left+e*n.x,right:t.right+e*n.x})),{...t})}}const im=rm(1);function om(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}const am={ignoreTransform:!1};function sm(e,t){void 0===t&&(t=am);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:t,transformOrigin:r}=mg(e).getComputedStyle(e);t&&(n=function(e,t,n){const r=om(t);if(!r)return e;const{scaleX:i,scaleY:o,x:a,y:s}=r,l=e.left-a-(1-i)*parseFloat(n),c=e.top-s-(1-o)*parseFloat(n.slice(n.indexOf(" ")+1)),u=i?e.width/i:e.width,d=o?e.height/o:e.height;return{width:u,height:d,top:c,right:l+u,bottom:c+d,left:l}}(n,t,r))}const{top:r,left:i,width:o,height:a,bottom:s,right:l}=n;return{top:r,left:i,width:o,height:a,bottom:s,right:l}}function lm(e){return sm(e,{ignoreTransform:!0})}function cm(e,t){const n=[];return e?function r(i){if(null!=t&&n.length>=t)return n;if(!i)return n;if(vg(i)&&null!=i.scrollingElement&&!n.includes(i.scrollingElement))return n.push(i.scrollingElement),n;if(!yg(i)||bg(i))return n;if(n.includes(i))return n;const o=mg(e).getComputedStyle(i);return i!==e&&function(e,t){void 0===t&&(t=mg(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some((e=>{const r=t[e];return"string"==typeof r&&n.test(r)}))}(i,o)&&n.push(i),function(e,t){return void 0===t&&(t=mg(e).getComputedStyle(e)),"fixed"===t.position}(i,o)?n:r(i.parentNode)}(e):n}function um(e){const[t]=cm(e,1);return null!=t?t:null}function dm(e){return pg&&e?hg(e)?e:gg(e)?vg(e)||e===xg(e).scrollingElement?window:yg(e)?e:null:null:null}function fm(e){return hg(e)?e.scrollX:e.scrollLeft}function pm(e){return hg(e)?e.scrollY:e.scrollTop}function hm(e){return{x:fm(e),y:pm(e)}}var gm,mm;function vm(e){return!(!pg||!e)&&e===document.scrollingElement}function ym(e){const t={x:0,y:0},n=vm(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height};return{isTop:e.scrollTop<=t.y,isLeft:e.scrollLeft<=t.x,isBottom:e.scrollTop>=r.y,isRight:e.scrollLeft>=r.x,maxScroll:r,minScroll:t}}(mm=gm||(gm={}))[mm.Forward=1]="Forward",mm[mm.Backward=-1]="Backward";const bm={x:.2,y:.2};function xm(e,t,n,r,i){let{top:o,left:a,right:s,bottom:l}=n;void 0===r&&(r=10),void 0===i&&(i=bm);const{isTop:c,isBottom:u,isLeft:d,isRight:f}=ym(e),p={x:0,y:0},h={x:0,y:0},g=t.height*i.y,m=t.width*i.x;return!c&&o<=t.top+g?(p.y=gm.Backward,h.y=r*Math.abs((t.top+g-o)/g)):!u&&l>=t.bottom-g&&(p.y=gm.Forward,h.y=r*Math.abs((t.bottom-g-l)/g)),!f&&s>=t.right-m?(p.x=gm.Forward,h.x=r*Math.abs((t.right-m-s)/m)):!d&&a<=t.left+m&&(p.x=gm.Backward,h.x=r*Math.abs((t.left+m-a)/m)),{direction:p,speed:h}}function Im(e){if(e===document.scrollingElement){const{innerWidth:e,innerHeight:t}=window;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}const{top:t,left:n,right:r,bottom:i}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:i,width:e.clientWidth,height:e.clientHeight}}function wm(e){return e.reduce(((e,t)=>kg(e,hm(t))),Wg)}function Tm(e,t){if(void 0===t&&(t=sm),!e)return;const{top:n,left:r,bottom:i,right:o}=t(e);um(e)&&(i<=0||o<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const Mm=[["x",["left","right"],function(e){return e.reduce(((e,t)=>e+fm(t)),0)}],["y",["top","bottom"],function(e){return e.reduce(((e,t)=>e+pm(t)),0)}]];class Am{constructor(e,t){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const n=cm(t),r=wm(n);this.rect={...e},this.width=e.width,this.height=e.height;for(const[e,t,i]of Mm)for(const o of t)Object.defineProperty(this,o,{get:()=>{const t=i(n),a=r[e]-t;return this.rect[o]+a},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class Em{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach((e=>{var t;return null==(t=this.target)?void 0:t.removeEventListener(...e)}))},this.target=e}add(e,t,n){var r;null==(r=this.target)||r.addEventListener(e,t,n),this.listeners.push([e,t,n])}}function Cm(e,t){const n=Math.abs(e.x),r=Math.abs(e.y);return"number"==typeof t?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t&&r>t.y}var Nm,Sm,km,jm;function Dm(e){e.preventDefault()}function Om(e){e.stopPropagation()}(Sm=Nm||(Nm={})).Click="click",Sm.DragStart="dragstart",Sm.Keydown="keydown",Sm.ContextMenu="contextmenu",Sm.Resize="resize",Sm.SelectionChange="selectionchange",Sm.VisibilityChange="visibilitychange",(jm=km||(km={})).Space="Space",jm.Down="ArrowDown",jm.Right="ArrowRight",jm.Left="ArrowLeft",jm.Up="ArrowUp",jm.Esc="Escape",jm.Enter="Enter";const Lm={start:[km.Space,km.Enter],cancel:[km.Esc],end:[km.Space,km.Enter]},Rm=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case km.Right:return{...n,x:n.x+25};case km.Left:return{...n,x:n.x-25};case km.Down:return{...n,y:n.y+25};case km.Up:return{...n,y:n.y-25}}};class Pm{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;const{event:{target:t}}=e;this.props=e,this.listeners=new Em(xg(t)),this.windowListeners=new Em(mg(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(Nm.Resize,this.handleCancel),this.windowListeners.add(Nm.VisibilityChange,this.handleCancel),setTimeout((()=>this.listeners.add(Nm.Keydown,this.handleKeyDown)))}handleStart(){const{activeNode:e,onStart:t}=this.props,n=e.node.current;n&&Tm(n),t(Wg)}handleKeyDown(e){if(Dg(e)){const{active:t,context:n,options:r}=this.props,{keyboardCodes:i=Lm,coordinateGetter:o=Rm,scrollBehavior:a="smooth"}=r,{code:s}=e;if(i.end.includes(s))return void this.handleEnd(e);if(i.cancel.includes(s))return void this.handleCancel(e);const{collisionRect:l}=n.current,c=l?{x:l.left,y:l.top}:Wg;this.referenceCoordinates||(this.referenceCoordinates=c);const u=o(e,{active:t,context:n.current,currentCoordinates:c});if(u){const t=jg(u,c),r={x:0,y:0},{scrollableAncestors:i}=n.current;for(const n of i){const i=e.code,{isTop:o,isRight:s,isLeft:l,isBottom:c,maxScroll:d,minScroll:f}=ym(n),p=Im(n),h={x:Math.min(i===km.Right?p.right-p.width/2:p.right,Math.max(i===km.Right?p.left:p.left+p.width/2,u.x)),y:Math.min(i===km.Down?p.bottom-p.height/2:p.bottom,Math.max(i===km.Down?p.top:p.top+p.height/2,u.y))},g=i===km.Right&&!s||i===km.Left&&!l,m=i===km.Down&&!c||i===km.Up&&!o;if(g&&h.x!==u.x){const e=n.scrollLeft+t.x,o=i===km.Right&&e<=d.x||i===km.Left&&e>=f.x;if(o&&!t.y)return void n.scrollTo({left:e,behavior:a});r.x=o?n.scrollLeft-e:i===km.Right?n.scrollLeft-d.x:n.scrollLeft-f.x,r.x&&n.scrollBy({left:-r.x,behavior:a});break}if(m&&h.y!==u.y){const e=n.scrollTop+t.y,o=i===km.Down&&e<=d.y||i===km.Up&&e>=f.y;if(o&&!t.x)return void n.scrollTo({top:e,behavior:a});r.y=o?n.scrollTop-e:i===km.Down?n.scrollTop-d.y:n.scrollTop-f.y,r.y&&n.scrollBy({top:-r.y,behavior:a});break}}this.handleMove(e,kg(jg(u,this.referenceCoordinates),r))}}}handleMove(e,t){const{onMove:n}=this.props;e.preventDefault(),n(t)}handleEnd(e){const{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){const{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}function zm(e){return Boolean(e&&"distance"in e)}function Um(e){return Boolean(e&&"delay"in e)}Pm.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=Lm,onActivation:i}=t,{active:o}=n;const{code:a}=e.nativeEvent;if(r.start.includes(a)){const t=o.activatorNode.current;return!(t&&e.target!==t||(e.preventDefault(),null==i||i({event:e.nativeEvent}),0))}return!1}}];class _m{constructor(e,t,n){var r;void 0===n&&(n=function(e){const{EventTarget:t}=mg(e);return e instanceof t?e:xg(e)}(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=t;const{event:i}=e,{target:o}=i;this.props=e,this.events=t,this.document=xg(o),this.documentListeners=new Em(this.document),this.listeners=new Em(n),this.windowListeners=new Em(mg(o)),this.initialCoordinates=null!=(r=Og(i))?r:Wg,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:e,props:{options:{activationConstraint:t,bypassActivationConstraint:n}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),this.windowListeners.add(Nm.Resize,this.handleCancel),this.windowListeners.add(Nm.DragStart,Dm),this.windowListeners.add(Nm.VisibilityChange,this.handleCancel),this.windowListeners.add(Nm.ContextMenu,Dm),this.documentListeners.add(Nm.Keydown,this.handleKeydown),t){if(null!=n&&n({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(Um(t))return void(this.timeoutId=setTimeout(this.handleStart,t.delay));if(zm(t))return}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),null!==this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handleStart(){const{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(Nm.Click,Om,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(Nm.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){var t;const{activated:n,initialCoordinates:r,props:i}=this,{onMove:o,options:{activationConstraint:a}}=i;if(!r)return;const s=null!=(t=Og(e))?t:Wg,l=jg(r,s);if(!n&&a){if(zm(a)){if(null!=a.tolerance&&Cm(l,a.tolerance))return this.handleCancel();if(Cm(l,a.distance))return this.handleStart()}return Um(a)&&Cm(l,a.tolerance)?this.handleCancel():void 0}e.cancelable&&e.preventDefault(),o(s)}handleEnd(){const{onEnd:e}=this.props;this.detach(),e()}handleCancel(){const{onCancel:e}=this.props;this.detach(),e()}handleKeydown(e){e.code===km.Esc&&this.handleCancel()}removeTextSelection(){var e;null==(e=this.document.getSelection())||e.removeAllRanges()}}const Bm={move:{name:"pointermove"},end:{name:"pointerup"}};class Fm extends _m{constructor(e){const{event:t}=e,n=xg(t.target);super(e,Bm,n)}}Fm.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!(!n.isPrimary||0!==n.button||(null==r||r({event:n}),0))}}];const Gm={move:{name:"mousemove"},end:{name:"mouseup"}};var Zm,Hm;(Hm=Zm||(Zm={}))[Hm.RightClick=2]="RightClick",class extends _m{constructor(e){super(e,Gm,xg(e.event.target))}}.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button!==Zm.RightClick&&(null==r||r({event:n}),!0)}}];const qm={move:{name:"touchmove"},end:{name:"touchend"}};var Ym,Vm,Wm,Qm;(class extends _m{constructor(e){super(e,qm)}static setup(){return window.addEventListener(qm.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(qm.move.name,e)};function e(){}}}).activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;const{touches:i}=n;return!(i.length>1||(null==r||r({event:n}),0))}}],(Vm=Ym||(Ym={}))[Vm.Pointer=0]="Pointer",Vm[Vm.DraggableRect=1]="DraggableRect",(Qm=Wm||(Wm={}))[Qm.TreeOrder=0]="TreeOrder",Qm[Qm.ReversedTreeOrder=1]="ReversedTreeOrder";const Jm={x:{[gm.Backward]:!1,[gm.Forward]:!1},y:{[gm.Backward]:!1,[gm.Forward]:!1}};var Xm,$m,Km;($m=Xm||(Xm={}))[$m.Always=0]="Always",$m[$m.BeforeDragging=1]="BeforeDragging",$m[$m.WhileDragging=2]="WhileDragging",(Km||(Km={})).Optimized="optimized";const ev=new Map;function tv(e,t){return Mg((n=>e?n||("function"==typeof t?t(e):e):null),[t,e])}function nv(t){let{callback:n,disabled:r}=t;const i=wg(n),o=(0,e.useMemo)((()=>{if(r||"undefined"==typeof window||void 0===window.ResizeObserver)return;const{ResizeObserver:e}=window;return new e(i)}),[r]);return(0,e.useEffect)((()=>()=>null==o?void 0:o.disconnect()),[o]),o}function rv(e){return new Am(sm(e),e)}function iv(t,n,r){void 0===n&&(n=rv);const[i,o]=(0,e.useReducer)((function(e){if(!t)return null;var i;if(!1===t.isConnected)return null!=(i=null!=e?e:r)?i:null;const o=n(t);return JSON.stringify(e)===JSON.stringify(o)?e:o}),null),a=function(t){let{callback:n,disabled:r}=t;const i=wg(n),o=(0,e.useMemo)((()=>{if(r||"undefined"==typeof window||void 0===window.MutationObserver)return;const{MutationObserver:e}=window;return new e(i)}),[i,r]);return(0,e.useEffect)((()=>()=>null==o?void 0:o.disconnect()),[o]),o}({callback(e){if(t)for(const n of e){const{type:e,target:r}=n;if("childList"===e&&r instanceof HTMLElement&&r.contains(t)){o();break}}}}),s=nv({callback:o});return Ig((()=>{o(),t?(null==s||s.observe(t),null==a||a.observe(document.body,{childList:!0,subtree:!0})):(null==s||s.disconnect(),null==a||a.disconnect())}),[t]),i}const ov=[];function av(t,n){void 0===n&&(n=[]);const r=(0,e.useRef)(null);return(0,e.useEffect)((()=>{r.current=null}),n),(0,e.useEffect)((()=>{const e=t!==Wg;e&&!r.current&&(r.current=t),!e&&r.current&&(r.current=null)}),[t]),r.current?jg(t,r.current):Wg}function sv(t){return(0,e.useMemo)((()=>t?function(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}(t):null),[t])}const lv=[];function cv(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return yg(t)?t:e}const uv=[{sensor:Fm,options:{}},{sensor:Pm,options:{}}],dv={current:{}},fv={draggable:{measure:lm},droppable:{measure:lm,strategy:Xm.WhileDragging,frequency:Km.Optimized},dragOverlay:{measure:sm}};class pv extends Map{get(e){var t;return null!=e&&null!=(t=super.get(e))?t:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter((e=>{let{disabled:t}=e;return!t}))}getNodeFor(e){var t,n;return null!=(t=null==(n=this.get(e))?void 0:n.node.current)?t:void 0}}const hv={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new pv,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:Yg},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:fv,measureDroppableContainers:Yg,windowRect:null,measuringScheduled:!1},gv={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:Yg,draggableNodes:new Map,over:null,measureDroppableContainers:Yg},mv=(0,e.createContext)(gv),vv=(0,e.createContext)(hv);function yv(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new pv}}}function bv(e,t){switch(t.type){case Hg.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case Hg.DragMove:return e.draggable.active?{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}}:e;case Hg.DragEnd:case Hg.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case Hg.RegisterDroppable:{const{element:n}=t,{id:r}=n,i=new pv(e.droppable.containers);return i.set(r,n),{...e,droppable:{...e.droppable,containers:i}}}case Hg.SetDroppableDisabled:{const{id:n,key:r,disabled:i}=t,o=e.droppable.containers.get(n);if(!o||r!==o.key)return e;const a=new pv(e.droppable.containers);return a.set(n,{...o,disabled:i}),{...e,droppable:{...e.droppable,containers:a}}}case Hg.UnregisterDroppable:{const{id:n,key:r}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;const o=new pv(e.droppable.containers);return o.delete(n),{...e,droppable:{...e.droppable,containers:o}}}default:return e}}function xv(t){let{disabled:n}=t;const{active:r,activatorEvent:i,draggableNodes:o}=(0,e.useContext)(mv),a=Eg(i),s=Eg(null==r?void 0:r.id);return(0,e.useEffect)((()=>{if(!n&&!i&&a&&null!=s){if(!Dg(a))return;if(document.activeElement===a.target)return;const e=o.get(s);if(!e)return;const{activatorNode:t,node:n}=e;if(!t.current&&!n.current)return;requestAnimationFrame((()=>{for(const e of[t.current,n.current]){if(!e)continue;const t=Pg(e);if(t){t.focus();break}}}))}}),[i,n,o,s,a]),null}function Iv(e,t){let{transform:n,...r}=t;return null!=e&&e.length?e.reduce(((e,t)=>t({transform:e,...r})),n):n}const wv=(0,e.createContext)({...Wg,scaleX:1,scaleY:1});var Tv,Mv;(Mv=Tv||(Tv={}))[Mv.Uninitialized=0]="Uninitialized",Mv[Mv.Initializing=1]="Initializing",Mv[Mv.Initialized=2]="Initialized";const Av=(0,e.memo)((function(n){var r,i,o,a;let{id:s,accessibility:l,autoScroll:c=!0,children:u,sensors:d=uv,collisionDetection:f=tm,measuring:p,modifiers:h,...g}=n;const m=(0,e.useReducer)(bv,void 0,yv),[v,y]=m,[b,x]=function(){const[t]=(0,e.useState)((()=>new Set)),n=(0,e.useCallback)((e=>(t.add(e),()=>t.delete(e))),[t]);return[(0,e.useCallback)((e=>{let{type:n,event:r}=e;t.forEach((e=>{var t;return null==(t=e[n])?void 0:t.call(e,r)}))}),[t]),n]}(),[I,w]=(0,e.useState)(Tv.Uninitialized),T=I===Tv.Initialized,{draggable:{active:M,nodes:A,translate:E},droppable:{containers:C}}=v,N=M?A.get(M):null,S=(0,e.useRef)({initial:null,translated:null}),k=(0,e.useMemo)((()=>{var e;return null!=M?{id:M,data:null!=(e=null==N?void 0:N.data)?e:dv,rect:S}:null}),[M,N]),j=(0,e.useRef)(null),[D,O]=(0,e.useState)(null),[L,R]=(0,e.useState)(null),P=Tg(g,Object.values(g)),z=Ng("DndDescribedBy",s),U=(0,e.useMemo)((()=>C.getEnabled()),[C]),_=(B=p,(0,e.useMemo)((()=>({draggable:{...fv.draggable,...null==B?void 0:B.draggable},droppable:{...fv.droppable,...null==B?void 0:B.droppable},dragOverlay:{...fv.dragOverlay,...null==B?void 0:B.dragOverlay}})),[null==B?void 0:B.draggable,null==B?void 0:B.droppable,null==B?void 0:B.dragOverlay]));var B;const{droppableRects:F,measureDroppableContainers:G,measuringScheduled:Z}=function(t,n){let{dragging:r,dependencies:i,config:o}=n;const[a,s]=(0,e.useState)(null),{frequency:l,measure:c,strategy:u}=o,d=(0,e.useRef)(t),f=function(){switch(u){case Xm.Always:return!1;case Xm.BeforeDragging:return r;default:return!r}}(),p=Tg(f),h=(0,e.useCallback)((function(e){void 0===e&&(e=[]),p.current||s((t=>null===t?e:t.concat(e.filter((e=>!t.includes(e))))))}),[p]),g=(0,e.useRef)(null),m=Mg((e=>{if(f&&!r)return ev;if(!e||e===ev||d.current!==t||null!=a){const e=new Map;for(let n of t){if(!n)continue;if(a&&a.length>0&&!a.includes(n.id)&&n.rect.current){e.set(n.id,n.rect.current);continue}const t=n.node.current,r=t?new Am(c(t),t):null;n.rect.current=r,r&&e.set(n.id,r)}return e}return e}),[t,a,r,f,c]);return(0,e.useEffect)((()=>{d.current=t}),[t]),(0,e.useEffect)((()=>{f||h()}),[r,f]),(0,e.useEffect)((()=>{a&&a.length>0&&s(null)}),[JSON.stringify(a)]),(0,e.useEffect)((()=>{f||"number"!=typeof l||null!==g.current||(g.current=setTimeout((()=>{h(),g.current=null}),l))}),[l,f,h,...i]),{droppableRects:m,measureDroppableContainers:h,measuringScheduled:null!=a}}(U,{dragging:T,dependencies:[E.x,E.y],config:_.droppable}),H=function(e,t){const n=null!==t?e.get(t):void 0,r=n?n.node.current:null;return Mg((e=>{var n;return null===t?null:null!=(n=null!=r?r:e)?n:null}),[r,t])}(A,M),q=(0,e.useMemo)((()=>L?Og(L):null),[L]),Y=function(){const e=!1===(null==D?void 0:D.autoScrollEnabled),t="object"==typeof c?!1===c.enabled:!1===c,n=T&&!e&&!t;return"object"==typeof c?{...c,enabled:n}:{enabled:n}}(),V=function(e,t){return tv(e,t)}(H,_.draggable.measure);!function(t){let{activeNode:n,measure:r,initialRect:i,config:o=!0}=t;const a=(0,e.useRef)(!1),{x:s,y:l}="boolean"==typeof o?{x:o,y:o}:o;Ig((()=>{if(!s&&!l||!n)return void(a.current=!1);if(a.current||!i)return;const e=null==n?void 0:n.node.current;if(!e||!1===e.isConnected)return;const t=nm(r(e),i);if(s||(t.x=0),l||(t.y=0),a.current=!0,Math.abs(t.x)>0||Math.abs(t.y)>0){const n=um(e);n&&n.scrollBy({top:t.y,left:t.x})}}),[n,s,l,i,r])}({activeNode:M?A.get(M):null,config:Y.layoutShiftCompensation,initialRect:V,measure:_.draggable.measure});const W=iv(H,_.draggable.measure,V),Q=iv(H?H.parentElement:null),J=(0,e.useRef)({activatorEvent:null,active:null,activeNode:H,collisionRect:null,collisions:null,droppableRects:F,draggableNodes:A,draggingNode:null,draggingNodeRect:null,droppableContainers:C,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),X=C.getNodeFor(null==(r=J.current.over)?void 0:r.id),$=function(t){let{measure:n}=t;const[r,i]=(0,e.useState)(null),o=nv({callback:(0,e.useCallback)((e=>{for(const{target:t}of e)if(yg(t)){i((e=>{const r=n(t);return e?{...e,width:r.width,height:r.height}:r}));break}}),[n])}),a=(0,e.useCallback)((e=>{const t=cv(e);null==o||o.disconnect(),t&&(null==o||o.observe(t)),i(t?n(t):null)}),[n,o]),[s,l]=Ag(a);return(0,e.useMemo)((()=>({nodeRef:s,rect:r,setRef:l})),[r,s,l])}({measure:_.dragOverlay.measure}),K=null!=(i=$.nodeRef.current)?i:H,ee=T?null!=(o=$.rect)?o:W:null,te=Boolean($.nodeRef.current&&$.rect),ne=nm(re=te?null:W,tv(re));var re;const ie=sv(K?mg(K):null),oe=function(t){const n=(0,e.useRef)(t),r=Mg((e=>t?e&&e!==ov&&t&&n.current&&t.parentNode===n.current.parentNode?e:cm(t):ov),[t]);return(0,e.useEffect)((()=>{n.current=t}),[t]),r}(T?null!=X?X:H:null),ae=function(t,n){void 0===n&&(n=sm);const[r]=t,i=sv(r?mg(r):null),[o,a]=(0,e.useReducer)((function(){return t.length?t.map((e=>vm(e)?i:new Am(n(e),e))):lv}),lv),s=nv({callback:a});return t.length>0&&o===lv&&a(),Ig((()=>{t.length?t.forEach((e=>null==s?void 0:s.observe(e))):(null==s||s.disconnect(),a())}),[t]),o}(oe),se=Iv(h,{transform:{x:E.x-ne.x,y:E.y-ne.y,scaleX:1,scaleY:1},activatorEvent:L,active:k,activeNodeRect:W,containerNodeRect:Q,draggingNodeRect:ee,over:J.current.over,overlayNodeRect:$.rect,scrollableAncestors:oe,scrollableAncestorRects:ae,windowRect:ie}),le=q?kg(q,E):null,ce=function(t){const[n,r]=(0,e.useState)(null),i=(0,e.useRef)(t),o=(0,e.useCallback)((e=>{const t=dm(e.target);t&&r((e=>e?(e.set(t,hm(t)),new Map(e)):null))}),[]);return(0,e.useEffect)((()=>{const e=i.current;if(t!==e){n(e);const a=t.map((e=>{const t=dm(e);return t?(t.addEventListener("scroll",o,{passive:!0}),[t,hm(t)]):null})).filter((e=>null!=e));r(a.length?new Map(a):null),i.current=t}return()=>{n(t),n(e)};function n(e){e.forEach((e=>{const t=dm(e);null==t||t.removeEventListener("scroll",o)}))}}),[o,t]),(0,e.useMemo)((()=>t.length?n?Array.from(n.values()).reduce(((e,t)=>kg(e,t)),Wg):wm(t):Wg),[t,n])}(oe),ue=av(ce),de=av(ce,[W]),fe=kg(se,ue),pe=ee?im(ee,se):null,he=k&&pe?f({active:k,collisionRect:pe,droppableRects:F,droppableContainers:U,pointerCoordinates:le}):null,ge=Kg(he,"id"),[me,ve]=(0,e.useState)(null),ye=function(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}(te?se:kg(se,de),null!=(a=null==me?void 0:me.rect)?a:null,W),be=(0,e.useCallback)(((e,t)=>{let{sensor:n,options:r}=t;if(null==j.current)return;const i=A.get(j.current);if(!i)return;const o=e.nativeEvent,a=new n({active:j.current,activeNode:i,event:o,options:r,context:J,onStart(e){const t=j.current;if(null==t)return;const n=A.get(t);if(!n)return;const{onDragStart:r}=P.current,i={active:{id:t,data:n.data,rect:S}};(0,fg.unstable_batchedUpdates)((()=>{null==r||r(i),w(Tv.Initializing),y({type:Hg.DragStart,initialCoordinates:e,active:t}),b({type:"onDragStart",event:i})}))},onMove(e){y({type:Hg.DragMove,coordinates:e})},onEnd:s(Hg.DragEnd),onCancel:s(Hg.DragCancel)});function s(e){return async function(){const{active:t,collisions:n,over:r,scrollAdjustedTranslate:i}=J.current;let a=null;if(t&&i){const{cancelDrop:s}=P.current;a={activatorEvent:o,active:t,collisions:n,delta:i,over:r},e===Hg.DragEnd&&"function"==typeof s&&await Promise.resolve(s(a))&&(e=Hg.DragCancel)}j.current=null,(0,fg.unstable_batchedUpdates)((()=>{y({type:e}),w(Tv.Uninitialized),ve(null),O(null),R(null);const t=e===Hg.DragEnd?"onDragEnd":"onDragCancel";if(a){const e=P.current[t];null==e||e(a),b({type:t,event:a})}}))}}(0,fg.unstable_batchedUpdates)((()=>{O(a),R(e.nativeEvent)}))}),[A]),xe=(0,e.useCallback)(((e,t)=>(n,r)=>{const i=n.nativeEvent,o=A.get(r);if(null!==j.current||!o||i.dndKit||i.defaultPrevented)return;const a={active:o};!0===e(n,t.options,a)&&(i.dndKit={capturedBy:t.sensor},j.current=r,be(n,t))}),[A,be]),Ie=function(t,n){return(0,e.useMemo)((()=>t.reduce(((e,t)=>{const{sensor:r}=t;return[...e,...r.activators.map((e=>({eventName:e.eventName,handler:n(e.handler,t)})))]}),[])),[t,n])}(d,xe);!function(t){(0,e.useEffect)((()=>{if(!pg)return;const e=t.map((e=>{let{sensor:t}=e;return null==t.setup?void 0:t.setup()}));return()=>{for(const t of e)null==t||t()}}),t.map((e=>{let{sensor:t}=e;return t})))}(d),Ig((()=>{W&&I===Tv.Initializing&&w(Tv.Initialized)}),[W,I]),(0,e.useEffect)((()=>{const{onDragMove:e}=P.current,{active:t,activatorEvent:n,collisions:r,over:i}=J.current;if(!t||!n)return;const o={active:t,activatorEvent:n,collisions:r,delta:{x:fe.x,y:fe.y},over:i};(0,fg.unstable_batchedUpdates)((()=>{null==e||e(o),b({type:"onDragMove",event:o})}))}),[fe.x,fe.y]),(0,e.useEffect)((()=>{const{active:e,activatorEvent:t,collisions:n,droppableContainers:r,scrollAdjustedTranslate:i}=J.current;if(!e||null==j.current||!t||!i)return;const{onDragOver:o}=P.current,a=r.get(ge),s=a&&a.rect.current?{id:a.id,rect:a.rect.current,data:a.data,disabled:a.disabled}:null,l={active:e,activatorEvent:t,collisions:n,delta:{x:i.x,y:i.y},over:s};(0,fg.unstable_batchedUpdates)((()=>{ve(s),null==o||o(l),b({type:"onDragOver",event:l})}))}),[ge]),Ig((()=>{J.current={activatorEvent:L,active:k,activeNode:H,collisionRect:pe,collisions:he,droppableRects:F,draggableNodes:A,draggingNode:K,draggingNodeRect:ee,droppableContainers:C,over:me,scrollableAncestors:oe,scrollAdjustedTranslate:fe},S.current={initial:ee,translated:pe}}),[k,H,he,pe,A,K,ee,F,C,me,oe,fe]),function(t){let{acceleration:n,activator:r=Ym.Pointer,canScroll:i,draggingRect:o,enabled:a,interval:s=5,order:l=Wm.TreeOrder,pointerCoordinates:c,scrollableAncestors:u,scrollableAncestorRects:d,delta:f,threshold:p}=t;const h=function(e){let{delta:t,disabled:n}=e;const r=Eg(t);return Mg((e=>{if(n||!r||!e)return Jm;const i=Math.sign(t.x-r.x),o=Math.sign(t.y-r.y);return{x:{[gm.Backward]:e.x[gm.Backward]||-1===i,[gm.Forward]:e.x[gm.Forward]||1===i},y:{[gm.Backward]:e.y[gm.Backward]||-1===o,[gm.Forward]:e.y[gm.Forward]||1===o}}}),[n,t,r])}({delta:f,disabled:!a}),[g,m]=function(){const t=(0,e.useRef)(null);return[(0,e.useCallback)(((e,n)=>{t.current=setInterval(e,n)}),[]),(0,e.useCallback)((()=>{null!==t.current&&(clearInterval(t.current),t.current=null)}),[])]}(),v=(0,e.useRef)({x:0,y:0}),y=(0,e.useRef)({x:0,y:0}),b=(0,e.useMemo)((()=>{switch(r){case Ym.Pointer:return c?{top:c.y,bottom:c.y,left:c.x,right:c.x}:null;case Ym.DraggableRect:return o}}),[r,o,c]),x=(0,e.useRef)(null),I=(0,e.useCallback)((()=>{const e=x.current;if(!e)return;const t=v.current.x*y.current.x,n=v.current.y*y.current.y;e.scrollBy(t,n)}),[]),w=(0,e.useMemo)((()=>l===Wm.TreeOrder?[...u].reverse():u),[l,u]);(0,e.useEffect)((()=>{if(a&&u.length&&b){for(const e of w){if(!1===(null==i?void 0:i(e)))continue;const t=u.indexOf(e),r=d[t];if(!r)continue;const{direction:o,speed:a}=xm(e,r,b,n,p);for(const e of["x","y"])h[e][o[e]]||(a[e]=0,o[e]=0);if(a.x>0||a.y>0)return m(),x.current=e,g(I,s),v.current=a,void(y.current=o)}v.current={x:0,y:0},y.current={x:0,y:0},m()}else m()}),[n,I,i,m,a,s,JSON.stringify(b),JSON.stringify(h),g,u,w,d,JSON.stringify(p)])}({...Y,delta:E,draggingRect:pe,pointerCoordinates:le,scrollableAncestors:oe,scrollableAncestorRects:ae});const we=(0,e.useMemo)((()=>({active:k,activeNode:H,activeNodeRect:W,activatorEvent:L,collisions:he,containerNodeRect:Q,dragOverlay:$,draggableNodes:A,droppableContainers:C,droppableRects:F,over:me,measureDroppableContainers:G,scrollableAncestors:oe,scrollableAncestorRects:ae,measuringConfiguration:_,measuringScheduled:Z,windowRect:ie})),[k,H,W,L,he,Q,$,A,C,F,me,G,oe,ae,_,Z,ie]),Te=(0,e.useMemo)((()=>({activatorEvent:L,activators:Ie,active:k,activeNodeRect:W,ariaDescribedById:{draggable:z},dispatch:y,draggableNodes:A,over:me,measureDroppableContainers:G})),[L,Ie,k,W,y,z,A,me,G]);return t().createElement(Bg.Provider,{value:x},t().createElement(mv.Provider,{value:Te},t().createElement(vv.Provider,{value:we},t().createElement(wv.Provider,{value:ye},u)),t().createElement(xv,{disabled:!1===(null==l?void 0:l.restoreFocus)})),t().createElement(Zg,{...l,hiddenTextDescribedById:z}))})),Ev=(0,e.createContext)(null),Cv="button";function Nv(){return(0,e.useContext)(vv)}const Sv={timeout:25};function kv(t){let{data:n,disabled:r=!1,id:i,resizeObserverConfig:o}=t;const a=Ng("Droppable"),{active:s,dispatch:l,over:c,measureDroppableContainers:u}=(0,e.useContext)(mv),d=(0,e.useRef)({disabled:r}),f=(0,e.useRef)(!1),p=(0,e.useRef)(null),h=(0,e.useRef)(null),{disabled:g,updateMeasurementsFor:m,timeout:v}={...Sv,...o},y=Tg(null!=m?m:i),b=nv({callback:(0,e.useCallback)((()=>{f.current?(null!=h.current&&clearTimeout(h.current),h.current=setTimeout((()=>{u(Array.isArray(y.current)?y.current:[y.current]),h.current=null}),v)):f.current=!0}),[v]),disabled:g||!s}),x=(0,e.useCallback)(((e,t)=>{b&&(t&&(b.unobserve(t),f.current=!1),e&&b.observe(e))}),[b]),[I,w]=Ag(x),T=Tg(n);return(0,e.useEffect)((()=>{b&&I.current&&(b.disconnect(),f.current=!1,b.observe(I.current))}),[I,b]),Ig((()=>(l({type:Hg.RegisterDroppable,element:{id:i,key:a,disabled:r,node:I,rect:p,data:T}}),()=>l({type:Hg.UnregisterDroppable,key:a,id:i}))),[i]),(0,e.useEffect)((()=>{r!==d.current.disabled&&(l({type:Hg.SetDroppableDisabled,id:i,key:a,disabled:r}),d.current.disabled=r)}),[i,a,r,l]),{active:s,rect:p,isOver:(null==c?void 0:c.id)===i,node:I,over:c,setNodeRef:w}}function jv(n){let{animation:r,children:i}=n;const[o,a]=(0,e.useState)(null),[s,l]=(0,e.useState)(null),c=Eg(i);return i||o||!c||a(c),Ig((()=>{if(!s)return;const e=null==o?void 0:o.key,t=null==o?void 0:o.props.id;null!=e&&null!=t?Promise.resolve(r(t,s)).then((()=>{a(null)})):a(null)}),[r,o,s]),t().createElement(t().Fragment,null,i,o?(0,e.cloneElement)(o,{ref:l}):null)}const Dv={x:0,y:0,scaleX:1,scaleY:1};function Ov(e){let{children:n}=e;return t().createElement(mv.Provider,{value:gv},t().createElement(wv.Provider,{value:Dv},n))}const Lv={position:"fixed",touchAction:"none"},Rv=e=>Dg(e)?"transform 250ms ease":void 0,Pv=(0,e.forwardRef)(((e,n)=>{let{as:r,activatorEvent:i,adjustScale:o,children:a,className:s,rect:l,style:c,transform:u,transition:d=Rv}=e;if(!l)return null;const f=o?u:{...u,scaleX:1,scaleY:1},p={...Lv,width:l.width,height:l.height,top:l.top,left:l.left,transform:Lg.Transform.toString(f),transformOrigin:o&&i?Qg(i,l):void 0,transition:"function"==typeof d?d(i):d,...c};return t().createElement(r,{className:s,style:p,ref:n},a)})),zv={duration:250,easing:"ease",keyframes:e=>{let{transform:{initial:t,final:n}}=e;return[{transform:Lg.Transform.toString(t)},{transform:Lg.Transform.toString(n)}]},sideEffects:(e=>t=>{let{active:n,dragOverlay:r}=t;const i={},{styles:o,className:a}=e;if(null!=o&&o.active)for(const[e,t]of Object.entries(o.active))void 0!==t&&(i[e]=n.node.style.getPropertyValue(e),n.node.style.setProperty(e,t));if(null!=o&&o.dragOverlay)for(const[e,t]of Object.entries(o.dragOverlay))void 0!==t&&r.node.style.setProperty(e,t);return null!=a&&a.active&&n.node.classList.add(a.active),null!=a&&a.dragOverlay&&r.node.classList.add(a.dragOverlay),function(){for(const[e,t]of Object.entries(i))n.node.style.setProperty(e,t);null!=a&&a.active&&n.node.classList.remove(a.active)}})({styles:{active:{opacity:"0"}}})};let Uv=0;const _v=t().memo((n=>{let{adjustScale:r=!1,children:i,dropAnimation:o,style:a,transition:s,modifiers:l,wrapperElement:c="div",className:u,zIndex:d=999}=n;const{activatorEvent:f,active:p,activeNodeRect:h,containerNodeRect:g,draggableNodes:m,droppableContainers:v,dragOverlay:y,over:b,measuringConfiguration:x,scrollableAncestors:I,scrollableAncestorRects:w,windowRect:T}=Nv(),M=(0,e.useContext)(wv),A=(E=null==p?void 0:p.id,(0,e.useMemo)((()=>{if(null!=E)return Uv++,Uv}),[E]));var E;const C=Iv(l,{activatorEvent:f,active:p,activeNodeRect:h,containerNodeRect:g,draggingNodeRect:y.rect,over:b,overlayNodeRect:y.rect,scrollableAncestors:I,scrollableAncestorRects:w,transform:M,windowRect:T}),N=tv(h),S=function(e){let{config:t,draggableNodes:n,droppableContainers:r,measuringConfiguration:i}=e;return wg(((e,o)=>{if(null===t)return;const a=n.get(e);if(!a)return;const s=a.node.current;if(!s)return;const l=cv(o);if(!l)return;const{transform:c}=mg(o).getComputedStyle(o),u=om(c);if(!u)return;const d="function"==typeof t?t:function(e){const{duration:t,easing:n,sideEffects:r,keyframes:i}={...zv,...e};return e=>{let{active:o,dragOverlay:a,transform:s,...l}=e;if(!t)return;const c=a.rect.left-o.rect.left,u=a.rect.top-o.rect.top,d={scaleX:1!==s.scaleX?o.rect.width*s.scaleX/a.rect.width:1,scaleY:1!==s.scaleY?o.rect.height*s.scaleY/a.rect.height:1},f={x:s.x-c,y:s.y-u,...d},p=i({...l,active:o,dragOverlay:a,transform:{initial:s,final:f}}),[h]=p,g=p[p.length-1];if(JSON.stringify(h)===JSON.stringify(g))return;const m=null==r?void 0:r({active:o,dragOverlay:a,...l}),v=a.node.animate(p,{duration:t,easing:n,fill:"forwards"});return new Promise((e=>{v.onfinish=()=>{null==m||m(),e()}}))}}(t);return Tm(s,i.draggable.measure),d({active:{id:e,data:a.data,node:s,rect:i.draggable.measure(s)},draggableNodes:n,dragOverlay:{node:o,rect:i.dragOverlay.measure(l)},droppableContainers:r,measuringConfiguration:i,transform:u})}))}({config:o,draggableNodes:m,droppableContainers:v,measuringConfiguration:x}),k=N?y.setRef:void 0;return t().createElement(Ov,null,t().createElement(jv,{animation:S},p&&A?t().createElement(Pv,{key:A,id:p.id,ref:k,as:c,activatorEvent:f,adjustScale:r,className:u,transition:s,rect:N,style:{zIndex:d,...a},transform:C},i):null))}));function Bv(e,t){return e.reduce(((e,n,r)=>{const i=t.get(n);return i&&(e[r]=i),e}),Array(e.length))}const Fv=e=>{let{rects:t,activeIndex:n,overIndex:r,index:i}=e;const o=function(e,t,n){const r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}(t,r,n),a=t[i],s=o[i];return s&&a?{x:s.left-a.left,y:s.top-a.top,scaleX:s.width/a.width,scaleY:s.height/a.height}:null},Gv="Sortable",Zv=t().createContext({activeIndex:-1,containerId:Gv,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:Fv,disabled:{draggable:!1,droppable:!1}});function Hv(n){let{children:r,id:i,items:o,strategy:a=Fv,disabled:s=!1}=n;const{active:l,dragOverlay:c,droppableRects:u,over:d,measureDroppableContainers:f}=Nv(),p=Ng(Gv,i),h=Boolean(null!==c.rect),g=(0,e.useMemo)((()=>o.map((e=>"object"==typeof e&&"id"in e?e.id:e))),[o]),m=null!=l,v=l?g.indexOf(l.id):-1,y=d?g.indexOf(d.id):-1,b=(0,e.useRef)(g),x=!function(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(g,b.current),I=-1!==y&&-1===v||x,w=function(e){return"boolean"==typeof e?{draggable:e,droppable:e}:e}(s);Ig((()=>{x&&m&&f(g)}),[x,g,m,f]),(0,e.useEffect)((()=>{b.current=g}),[g]);const T=(0,e.useMemo)((()=>({activeIndex:v,containerId:p,disabled:w,disableTransforms:I,items:g,overIndex:y,useDragOverlay:h,sortedRects:Bv(g,u),strategy:a})),[v,p,w.draggable,w.droppable,I,g,y,u,h,a]);return t().createElement(Zv.Provider,{value:T},r)}function qv(e){if(!e)return!1;const t=e.data.current;return!!(t&&"sortable"in t&&"object"==typeof t.sortable&&"containerId"in t.sortable&&"items"in t.sortable&&"index"in t.sortable)}const Yv=[km.Down,km.Right,km.Up,km.Left],Vv=(e,t)=>{let{context:{active:n,collisionRect:r,droppableRects:i,droppableContainers:o,over:a,scrollableAncestors:s}}=t;if(Yv.includes(e.code)){if(e.preventDefault(),!n||!r)return;const t=[];o.getEnabled().forEach((n=>{if(!n||null!=n&&n.disabled)return;const o=i.get(n.id);if(o)switch(e.code){case km.Down:r.top<o.top&&t.push(n);break;case km.Up:r.top>o.top&&t.push(n);break;case km.Left:r.left>o.left&&t.push(n);break;case km.Right:r.left<o.left&&t.push(n)}}));const u=(e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const i=$g(t),o=[];for(const e of r){const{id:t}=e,r=n.get(t);if(r){const n=$g(r),a=i.reduce(((e,t,r)=>{return e+(i=n[r],o=t,Math.sqrt(Math.pow(i.x-o.x,2)+Math.pow(i.y-o.y,2)));var i,o}),0),s=Number((a/4).toFixed(4));o.push({id:t,data:{droppableContainer:e,value:s}})}}return o.sort(Jg)})({active:n,collisionRect:r,droppableRects:i,droppableContainers:t,pointerCoordinates:null});let d=Kg(u,"id");if(d===(null==a?void 0:a.id)&&u.length>1&&(d=u[1].id),null!=d){const e=o.get(n.id),t=o.get(d),a=t?i.get(t.id):null,u=null==t?void 0:t.node.current;if(u&&a&&e&&t){const n=cm(u).some(((e,t)=>s[t]!==e)),i=Wv(e,t),o=(c=t,!(!qv(l=e)||!qv(c))&&!!Wv(l,c)&&l.data.current.sortable.index<c.data.current.sortable.index),d=n||!i?{x:0,y:0}:{x:o?r.width-a.width:0,y:o?r.height-a.height:0},f={x:a.left,y:a.top};return d.x&&d.y?f:jg(f,d)}}}var l,c};function Wv(e,t){return!(!qv(e)||!qv(t))&&e.data.current.sortable.containerId===t.data.current.sortable.containerId}const Qv=t().createContext({}),Jv=ic(Qv,(({scores:e,doc:t,gradingStructure:n,gradingText:r,answers:i,singleGrading:o})=>{const a=Sd(i,"questionId"),s=function(e,t,n,r){return jn(e.map((e=>function(e,t,n,r){const i=jn(ke(e).map((e=>{const i=Ce(e,"question-id"),o=r[i];return o?"choice"===o.type?((e,n)=>{var r;const i=Xv(t,e);return i?null===(r=i.options.find((e=>e.id===Number(n.value))))||void 0===r?void 0:r.score:0})(i,o):(e=>{var t,r;const i=$v(n,e);return i&&(null===(r=[i.inspection,null===(t=i.censoring)||void 0===t?void 0:t.scores[0],i.autograding,i.pregrading].find(Boolean))||void 0===r?void 0:r.score)||0})(i):0})));return 0===xe(e,"question").length&&i<0?0:i}(e,t,n,r))))}(Te(t.documentElement,"question",!1),n,e,a);return{answersByQuestionId:a,gradingStructure:n,scores:e,totalScore:s,gradingText:r,singleGrading:o}}));function Xv(e,t){const n=(null==e?void 0:e.questions.filter((e=>"choicegroup"===e.type)))||[];for(let e=0,r=n.length;e<r;e++){const r=n[e];for(let e=0,n=r.choices.length;e<n;e++)if(r.choices[e].id===t)return r.choices[e]}}function $v(e,t){return e.find((e=>e.questionId===t))}const Kv=()=>{const{gradingStructure:t}=(0,e.useContext)(Qv);return void 0===t},ey=t().memo((function({answers:n,displayNumber:r,children:i,multilineAnswer:o,questionId:a}){var s;const{displayNumber:l}=(0,e.useContext)(dd),c=Kv(),u=r?`${l}.${null==r?void 0:r.replace(".","")}`:void 0,{answersByQuestionId:d}=(0,e.useContext)(Qv),f=!(!a||!d)&&(null===(s=d[a])||void 0===s?void 0:s.answerNonAnswer),{t:p}=Dl();if(c)return null;const h=n.length>1&&r;return t().createElement("span",{className:Er()("e-result-scorecount","e-float-right",{"e-result-scorecount-multiline-answer":o}),id:u},f&&t().createElement("div",{className:"non-answer"},p("grading.non-answer-not-graded")),t().createElement("span",{className:"e-result-scorecount-border-wrap"},h&&t().createElement("sup",{className:"e-result-scorecount-sup e-mrg-r-1","aria-hidden":"true"},r),i))})),ty=t().memo((function({score:n,maxScore:r,displayNumber:i,questionId:o}){const{answers:a}=(0,e.useContext)(dd),{t:s}=Dl(),l={answers:a,displayNumber:i,questionId:o};return t().createElement(ey,{...l},"number"==typeof n?t().createElement("b",null,n):t().createElement("span",{className:"e-result-scorecount-empty"})," ",r?`/ ${r} `:null," ",s("points",{count:""}))})),ny=({element:e,renderChildNodes:n,style:r,className:i})=>{const o=n(e).length>0,{t:a}=Dl();return t().createElement("div",{className:i,style:r},t().createElement("div",{className:"option-content"},o?n(e):t().createElement("i",{style:{color:"grey"}},a("dnd-answers.answer-missing"))))},ry=({element:n,renderChildNodes:r})=>{const i=Ce(n,"option-id"),{attributes:o,listeners:a,setNodeRef:s,isDragging:l,setActivatorNodeRef:c}=function(t){let{id:n,data:r,disabled:i=!1,attributes:o}=t;const a=Ng("Droppable"),{activators:s,activatorEvent:l,active:c,activeNodeRect:u,ariaDescribedById:d,draggableNodes:f,over:p}=(0,e.useContext)(mv),{role:h=Cv,roleDescription:g="draggable",tabIndex:m=0}=null!=o?o:{},v=(null==c?void 0:c.id)===n,y=(0,e.useContext)(v?wv:Ev),[b,x]=Ag(),[I,w]=Ag(),T=function(t,n){return(0,e.useMemo)((()=>t.reduce(((e,t)=>{let{eventName:r,handler:i}=t;return e[r]=e=>{i(e,n)},e}),{})),[t,n])}(s,n),M=Tg(r);return Ig((()=>(f.set(n,{id:n,key:a,node:b,activatorNode:I,data:M}),()=>{const e=f.get(n);e&&e.key===a&&f.delete(n)})),[f,n]),{active:c,activatorEvent:l,activeNodeRect:u,attributes:(0,e.useMemo)((()=>({role:h,tabIndex:m,"aria-disabled":i,"aria-pressed":!(!v||h!==Cv)||void 0,"aria-roledescription":g,"aria-describedby":d.draggable})),[i,h,m,v,g,d.draggable]),isDragging:v,listeners:i?void 0:T,node:b,over:p,setNodeRef:x,setActivatorNodeRef:w,transform:y}}({id:i}),u={opacity:l?.3:1};return t().createElement("div",{ref:s,className:"e-dnd-answer-option","data-testid":"dnd-answer-option"},t().createElement(ny,{element:n,renderChildNodes:r,style:u}),t().createElement("div",{...a,...o,ref:c,className:"drag-handle"},t().createElement(qa,{size:"1x",icon:$a})))},iy=({renderChildNodes:e,correctIds:n,classes:r=[],questionId:i,page:o,answerOptionElements:a=[]})=>{const s=a.some((e=>we(e,"image"))),l=a.some((e=>we(e,"audio"))),{active:c,isOver:u}=kv({id:i}),{t:d}=Dl();return t().createElement("div",{className:Er()(["e-dnd-answer-droppable",...r],{"has-images":s,"has-audio":l,hovered:u}),"data-testid":"dnd-droppable"},null==a?void 0:a.map((r=>{const i=Number(r.getAttribute("option-id")),a=null==n?void 0:n.includes(i);return t().createElement(t().Fragment,{key:r.getAttribute("option-id")},"exam"===o?t().createElement(ry,{element:r,renderChildNodes:e,key:i}):t().createElement("div",{className:"e-dnd-answer-option"},t().createElement(ny,{element:r,renderChildNodes:e,key:i,className:n?a?"correct-answer":"wrong-answer":void 0})))})),!a.length&&(c?t().createElement("i",{className:"droppable-drop-here"},d("dnd-answers.drop-here")):t().createElement("i",{className:"droppable-no-answer"},d("dnd-answers.no-answer"))))},oy=({id:e,size:n="small",score:r})=>{const{t:i}=Dl(),o="inline"===n?"sup":"span";return t().createElement(o,{className:Er()("e-score e-nowrap",{"e-score--small e-font-size-m e-semibold":"small"===n,"e-score--large e-font-size-l e-semibold":"large"===n,"e-score--inline e-font-size-xs":"inline"===n}),id:e},i("points",{count:r}))};function ay(e){return`${ul(e.split("."))}.`}const sy=({element:n,renderChildNodes:r,itemIds:i,page:o,answerOptionElements:a})=>{var s;const{t:l}=Dl(),c=n.getAttribute("question-id"),u=Number(c),d=n.getAttribute("display-number"),f=Ce(n,"max-score"),p=!!we(n,"image"),h=we(n,"dnd-answer-title"),g=h&&r(h).length>0,{gradingStructure:m,answersByQuestionId:v}=(0,e.useContext)(Qv),y=!m,b=v&&!!(null===(s=v[u])||void 0===s?void 0:s.value),{correctOptionIds:x,scoreValue:I}=ly(u,d),{setNodeRef:w,isOver:T}=kv({id:c}),M=ay(d);return t().createElement(Hv,{id:c,items:i},t().createElement("span",{ref:w},t().createElement("div",{className:Er()("e-dnd-answer",{"no-answer":"results"===o&&!b}),"data-question-id":c,key:c},t().createElement("div",{className:"anchor",id:`question-nr-${d}`}),h&&(g?t().createElement("span",{className:Er()("e-dnd-answer-title",{"has-images":p,hovered:T})},r(h)):t().createElement("i",{style:{color:"grey"}},l("dnd-answers.question-missing"))),t().createElement("div",{className:"connection-line"}),t().createElement(iy,{page:o,answerOptionElements:a,questionId:c,renderChildNodes:r,correctIds:x}),y?f&&t().createElement(oy,{score:f,size:"small"}):t().createElement(ty,{score:I,maxScore:f,displayNumber:M,questionId:u}))))},ly=(t,n)=>{var r,i,o,a;const{answersByQuestionId:s,gradingStructure:l}=(0,e.useContext)(Qv);if(!l)return{correctOptionIds:void 0,scoreValue:void 0};const c=s&&(null===(r=s[t])||void 0===r?void 0:r.value)?s[t]:void 0,u=Xv(l,t),d=(null==c?void 0:c.value)?null!==(o=null===(i=null==u?void 0:u.options.find((e=>e.id===Number(c.value)&&e.correct)))||void 0===i?void 0:i.score)&&void 0!==o?o:0:void 0,f=null==l?void 0:l.questions.find((e=>e.displayNumber===n)),p=(null===(a=null==f?void 0:f.choices.find((e=>e.id===t)))||void 0===a?void 0:a.options)||[];return{correctOptionIds:null==p?void 0:p.filter((e=>e.correct)).map((e=>e.id)),scoreValue:d}},cy=({items:e,renderChildNodes:n,answerOptionElements:r})=>{const{setNodeRef:i}=kv({id:"root"}),{t:o}=Dl();return t().createElement(Hv,{items:e},t().createElement("span",{className:"droppable-title"},o("dnd-answers.all-answer-options")),t().createElement("span",{ref:i},t().createElement(iy,{renderChildNodes:n,questionId:"root",page:"exam",classes:["root"],answerOptionElements:r})))};a(4828);const uy=e=>"object"==typeof e&&null!=e&&1===e.nodeType,dy=(e,t)=>(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e,fy=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const n=getComputedStyle(e,null);return dy(n.overflowY,t)||dy(n.overflowX,t)||(e=>{const t=(e=>{if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}})(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)})(e)}return!1},py=(e,t,n,r,i,o,a,s)=>o<e&&a>t||o>e&&a<t?0:o<=e&&s<=n||a>=t&&s>=n?o-e-r:a>t&&s<n||o<e&&s>n?a-t+i:0,hy=e=>{const t=e.parentElement;return null==t?e.getRootNode().host||null:t};var gy=function(){return gy=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},gy.apply(this,arguments)};Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;var my=0;function vy(){}function yy(e,t,n){return e===t||t instanceof n.Node&&e.contains&&e.contains(t)}function by(e,t){var n;function r(){n&&clearTimeout(n)}function i(){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];r(),n=setTimeout((function(){n=null,e.apply(void 0,o)}),t)}return i.cancel=r,i}function xy(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return t.some((function(t){return t&&t.apply(void 0,[e].concat(r)),e.preventDownshiftDefault||e.hasOwnProperty("nativeEvent")&&e.nativeEvent.preventDownshiftDefault}))}}function Iy(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){t.forEach((function(t){"function"==typeof t?t(e):t&&(t.current=e)}))}}function wy(e,t){return e&&t?Object.keys(e).reduce((function(n,r){return n[r]=function(e,t){return void 0!==e[t]}(t,r)?t[r]:e[r],n}),{}):e}function Ty(e,t,n,r,i){void 0===i&&(i=!1);var o=n.length;if(0===o)return-1;var a=o-1;("number"!=typeof e||e<0||e>a)&&(e=t>0?-1:a+1);var s=e+t;s<0?s=i?a:0:s>a&&(s=i?0:a);var l=My(s,t<0,n,r,i);return-1===l?e>=o?-1:e:l}function My(e,t,n,r,i){void 0===i&&(i=!1);var o=n.length;if(t){for(var a=e;a>=0;a--)if(!r(n[a],a))return a}else for(var s=e;s<o;s++)if(!r(n[s],s))return s;return i?My(t?o-1:0,t,n,r):-1}function Ay(e,t,n,r){return void 0===r&&(r=!0),n&&t.some((function(t){return t&&(yy(t,e,n)||r&&yy(t,n.document.activeElement,n))}))}var Ey=by((function(e){Cy(e).textContent=""}),500);function Cy(e){var t=e.getElementById("a11y-status-message");return t||((t=e.createElement("div")).setAttribute("id","a11y-status-message"),t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-relevant","additions text"),Object.assign(t.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px"}),e.body.appendChild(t),t)}var Ny={highlightedIndex:-1,isOpen:!1,selectedItem:null,inputValue:""};var Sy=by((function(e,t){!function(e,t){e&&t&&(Cy(t).textContent=e,Ey(t))}(e,t)}),200),ky="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?e.useLayoutEffect:e.useEffect,jy="useId"in t()?function(n){var r=n.id,i=n.labelId,o=n.menuId,a=n.getItemId,s=n.toggleButtonId,l=n.inputId,c="downshift-"+t().useId();return r||(r=c),(0,e.useRef)({labelId:i||r+"-label",menuId:o||r+"-menu",getItemId:a||function(e){return r+"-item-"+e},toggleButtonId:s||r+"-toggle-button",inputId:l||r+"-input"}).current}:function(t){var n=t.id,r=void 0===n?"downshift-"+String(my++):n,i=t.labelId,o=t.menuId,a=t.getItemId,s=t.toggleButtonId,l=t.inputId;return(0,e.useRef)({labelId:i||r+"-label",menuId:o||r+"-menu",getItemId:a||function(e){return r+"-item-"+e},toggleButtonId:s||r+"-toggle-button",inputId:l||r+"-input"}).current};function Dy(e){return""+e.slice(0,1).toUpperCase()+e.slice(1)}function Oy(t){var n=(0,e.useRef)(t);return n.current=t,n}function Ly(t,n,r,i){var o=(0,e.useRef)(),a=(0,e.useRef)(),s=(0,e.useCallback)((function(e,n){a.current=n,e=wy(e,n.props);var r=t(e,n);return n.props.stateReducer(e,Wd({},n,{changes:r}))}),[t]),l=(0,e.useReducer)(s,n,r),c=l[0],u=l[1],d=Oy(n),f=(0,e.useCallback)((function(e){return u(Wd({props:d.current},e))}),[d]),p=a.current;return(0,e.useEffect)((function(){var e=wy(o.current,null==p?void 0:p.props);p&&o.current&&!i(e,c)&&function(e,t,n){var r=e.props,i=e.type,o={};Object.keys(t).forEach((function(r){!function(e,t,n,r){var i=t.props,o=t.type,a="on"+Dy(e)+"Change";i[a]&&void 0!==r[e]&&r[e]!==n[e]&&i[a](Wd({type:o},r))}(r,e,t,n),n[r]!==t[r]&&(o[r]=n[r])})),r.onStateChange&&Object.keys(o).length&&r.onStateChange(Wd({type:i},o))}(p,e,c),o.current=c}),[c,p,i]),[c,f]}var Ry={itemToString:function(e){return e?String(e):""},itemToKey:function(e){return e},stateReducer:function(e,t){return t.changes},scrollIntoView:function(e,t){e&&((e,t)=>{var n,r,i,o;if("undefined"==typeof document)return[];const{scrollMode:a,block:s,inline:l,boundary:c,skipOverflowHiddenElements:u}=t,d="function"==typeof c?c:e=>e!==c;if(!uy(e))throw new TypeError("Invalid target");const f=document.scrollingElement||document.documentElement,p=[];let h=e;for(;uy(h)&&d(h);){if(h=hy(h),h===f){p.push(h);break}null!=h&&h===document.body&&fy(h)&&!fy(document.documentElement)||null!=h&&fy(h,u)&&p.push(h)}const g=null!=(r=null==(n=window.visualViewport)?void 0:n.width)?r:innerWidth,m=null!=(o=null==(i=window.visualViewport)?void 0:i.height)?o:innerHeight,{scrollX:v,scrollY:y}=window,{height:b,width:x,top:I,right:w,bottom:T,left:M}=e.getBoundingClientRect(),{top:A,right:E,bottom:C,left:N}=(e=>{const t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e);let S="start"===s||"nearest"===s?I-A:"end"===s?T+C:I+b/2-A+C,k="center"===l?M+x/2-N+E:"end"===l?w+E:M-N;const j=[];for(let e=0;e<p.length;e++){const t=p[e],{height:n,width:r,top:i,right:o,bottom:c,left:u}=t.getBoundingClientRect();if("if-needed"===a&&I>=0&&M>=0&&T<=m&&w<=g&&I>=i&&T<=c&&M>=u&&w<=o)return j;const d=getComputedStyle(t),h=parseInt(d.borderLeftWidth,10),A=parseInt(d.borderTopWidth,10),E=parseInt(d.borderRightWidth,10),C=parseInt(d.borderBottomWidth,10);let N=0,D=0;const O="offsetWidth"in t?t.offsetWidth-t.clientWidth-h-E:0,L="offsetHeight"in t?t.offsetHeight-t.clientHeight-A-C:0,R="offsetWidth"in t?0===t.offsetWidth?0:r/t.offsetWidth:0,P="offsetHeight"in t?0===t.offsetHeight?0:n/t.offsetHeight:0;if(f===t)N="start"===s?S:"end"===s?S-m:"nearest"===s?py(y,y+m,m,A,C,y+S,y+S+b,b):S-m/2,D="start"===l?k:"center"===l?k-g/2:"end"===l?k-g:py(v,v+g,g,h,E,v+k,v+k+x,x),N=Math.max(0,N+y),D=Math.max(0,D+v);else{N="start"===s?S-i-A:"end"===s?S-c+C+L:"nearest"===s?py(i,c,n,A,C+L,S,S+b,b):S-(i+n/2)+L/2,D="start"===l?k-u-h:"center"===l?k-(u+r/2)+O/2:"end"===l?k-o+E+O:py(u,o,r,h,E+O,k,k+x,x);const{scrollLeft:e,scrollTop:a}=t;N=0===P?0:Math.max(0,Math.min(a+N/P,t.scrollHeight-n/P+L)),D=0===R?0:Math.max(0,Math.min(e+D/R,t.scrollWidth-r/R+O)),S+=a-N,k+=e-D}j.push({el:t,top:N,left:D})}return j})(e,{boundary:t,block:"nearest",scrollMode:"if-needed"}).forEach((function(e){var t=e.el,n=e.top,r=e.left;t.scrollTop=n,t.scrollLeft=r}))},environment:"undefined"==typeof window?void 0:window};function Py(e,t,n){void 0===n&&(n=Ny);var r=e["default"+Dy(t)];return void 0!==r?r:n[t]}function zy(e,t,n){void 0===n&&(n=Ny);var r=e[t];if(void 0!==r)return r;var i=e["initial"+Dy(t)];return void 0!==i?i:Py(e,t,n)}function Uy(e){var t=zy(e,"selectedItem"),n=zy(e,"isOpen"),r=function(e){var t=zy(e,"highlightedIndex");return t>-1&&e.isItemDisabled(e.items[t],t)?-1:t}(e),i=zy(e,"inputValue");return{highlightedIndex:r<0&&t&&n?e.items.findIndex((function(n){return e.itemToKey(n)===e.itemToKey(t)})):r,isOpen:n,selectedItem:t,inputValue:i}}function _y(e,t,n){var r=e.items,i=e.initialHighlightedIndex,o=e.defaultHighlightedIndex,a=e.isItemDisabled,s=e.itemToKey,l=t.selectedItem,c=t.highlightedIndex;return 0===r.length?-1:void 0===i||c!==i||a(r[i],i)?void 0===o||a(r[o],o)?l?r.findIndex((function(e){return s(l)===s(e)})):n<0&&!a(r[r.length-1],r.length-1)?r.length-1:n>0&&!a(r[0],0)?0:-1:o:i}function By(n,r,i,o){void 0===o&&(o={});var a,s=o.document,l=(a=t().useRef(!0),t().useEffect((function(){return a.current=!1,function(){a.current=!0}}),[]),a.current);(0,e.useEffect)((function(){if(n&&!l&&s){var e=n(r);Sy(e,s)}}),i),(0,e.useEffect)((function(){return function(){var e,t;Sy.cancel(),(t=null==(e=s)?void 0:e.getElementById("a11y-status-message"))&&t.remove()}}),[s])}var Fy=vy;function Gy(e,t,n){var r;return void 0===n&&(n=!0),Wd({isOpen:!1,highlightedIndex:-1},(null==(r=e.items)?void 0:r.length)&&t>=0&&Wd({selectedItem:e.items[t],isOpen:Py(e,"isOpen"),highlightedIndex:Py(e,"highlightedIndex")},n&&{inputValue:e.itemToString(e.items[t])}))}function Zy(e,t){return e.isOpen===t.isOpen&&e.inputValue===t.inputValue&&e.highlightedIndex===t.highlightedIndex&&e.selectedItem===t.selectedItem}function Hy(e){var t=Py(e,"highlightedIndex");return t>-1&&e.isItemDisabled(e.items[t],t)?-1:t}var qy=Wd({},{environment:Da().shape({addEventListener:Da().func.isRequired,removeEventListener:Da().func.isRequired,document:Da().shape({createElement:Da().func.isRequired,getElementById:Da().func.isRequired,activeElement:Da().any.isRequired,body:Da().any.isRequired}).isRequired,Node:Da().func.isRequired}),itemToString:Da().func,itemToKey:Da().func,stateReducer:Da().func},{getA11yStatusMessage:Da().func,highlightedIndex:Da().number,defaultHighlightedIndex:Da().number,initialHighlightedIndex:Da().number,isOpen:Da().bool,defaultIsOpen:Da().bool,initialIsOpen:Da().bool,selectedItem:Da().any,initialSelectedItem:Da().any,defaultSelectedItem:Da().any,id:Da().string,labelId:Da().string,menuId:Da().string,getItemId:Da().func,toggleButtonId:Da().string,onSelectedItemChange:Da().func,onHighlightedIndexChange:Da().func,onStateChange:Da().func,onIsOpenChange:Da().func,scrollIntoView:Da().func});gy(gy({},qy),{items:Da().array.isRequired,isItemDisabled:Da().func});var Yy=gy(gy({},Ry),{isItemDisabled:function(){return!1}}),Vy=vy,Wy=1,Qy=2,Jy=3,Xy=4,$y=5,Ky=6,eb=7,tb=8,nb=9,rb=10,ib=11,ob=14,ab=19,sb=Object.freeze({__proto__:null,FunctionCloseMenu:17,FunctionOpenMenu:16,FunctionReset:21,FunctionSelectItem:ab,FunctionSetHighlightedIndex:18,FunctionSetInputValue:20,FunctionToggleMenu:15,ItemClick:ob,ItemMouseMove:13,MenuMouseLeave:12,ToggleButtonBlur:ib,ToggleButtonClick:0,ToggleButtonKeyDownArrowDown:Wy,ToggleButtonKeyDownArrowUp:Qy,ToggleButtonKeyDownCharacter:Jy,ToggleButtonKeyDownEnd:Ky,ToggleButtonKeyDownEnter:eb,ToggleButtonKeyDownEscape:Xy,ToggleButtonKeyDownHome:$y,ToggleButtonKeyDownPageDown:rb,ToggleButtonKeyDownPageUp:nb,ToggleButtonKeyDownSpaceButton:tb});function lb(e,t){var n,r,i=t.type,o=t.props,a=t.altKey;switch(i){case ob:r={isOpen:Py(o,"isOpen"),highlightedIndex:Hy(o),selectedItem:o.items[t.index]};break;case Jy:var s=t.key,l=""+e.inputValue+s;r={inputValue:l,highlightedIndex:function(e){for(var t=e.keysSoFar,n=e.highlightedIndex,r=e.items,i=e.itemToString,o=e.isItemDisabled,a=t.toLowerCase(),s=0;s<r.length;s++){var l=(s+n+(t.length<2?1:0))%r.length,c=r[l];if(void 0!==c&&i(c).toLowerCase().startsWith(a)&&!o(c,l))return l}return n}({keysSoFar:l,highlightedIndex:!e.isOpen&&e.selectedItem?o.items.findIndex((function(t){return o.itemToKey(t)===o.itemToKey(e.selectedItem)})):e.highlightedIndex,items:o.items,itemToString:o.itemToString,isItemDisabled:o.isItemDisabled}),isOpen:!0};break;case Wy:r={highlightedIndex:e.isOpen?Ty(e.highlightedIndex,1,o.items,o.isItemDisabled):a&&null==e.selectedItem?-1:_y(o,e,1),isOpen:!0};break;case Qy:r=e.isOpen&&a?Gy(o,e.highlightedIndex,!1):{highlightedIndex:e.isOpen?Ty(e.highlightedIndex,-1,o.items,o.isItemDisabled):_y(o,e,-1),isOpen:!0};break;case eb:case tb:r=Gy(o,e.highlightedIndex,!1);break;case $y:r={highlightedIndex:My(0,!1,o.items,o.isItemDisabled),isOpen:!0};break;case Ky:r={highlightedIndex:My(o.items.length-1,!0,o.items,o.isItemDisabled),isOpen:!0};break;case nb:r={highlightedIndex:Ty(e.highlightedIndex,-10,o.items,o.isItemDisabled)};break;case rb:r={highlightedIndex:Ty(e.highlightedIndex,10,o.items,o.isItemDisabled)};break;case Xy:r={isOpen:!1,highlightedIndex:-1};break;case ib:r=Wd({isOpen:!1,highlightedIndex:-1},e.highlightedIndex>=0&&(null==(n=o.items)?void 0:n.length)&&{selectedItem:o.items[e.highlightedIndex]});break;case ab:r={selectedItem:t.selectedItem};break;default:return function(e,t,n){var r,i=t.type,o=t.props;switch(i){case n.ItemMouseMove:r={highlightedIndex:t.disabled?-1:t.index};break;case n.MenuMouseLeave:r={highlightedIndex:-1};break;case n.ToggleButtonClick:case n.FunctionToggleMenu:r={isOpen:!e.isOpen,highlightedIndex:e.isOpen?-1:_y(o,e,0)};break;case n.FunctionOpenMenu:r={isOpen:!0,highlightedIndex:_y(o,e,0)};break;case n.FunctionCloseMenu:r={isOpen:!1};break;case n.FunctionSetHighlightedIndex:r={highlightedIndex:o.isItemDisabled(o.items[t.highlightedIndex],t.highlightedIndex)?-1:t.highlightedIndex};break;case n.FunctionSetInputValue:r={inputValue:t.inputValue};break;case n.FunctionReset:r={highlightedIndex:Hy(o),isOpen:Py(o,"isOpen"),selectedItem:Py(o,"selectedItem"),inputValue:Py(o,"inputValue")};break;default:throw new Error("Reducer called without proper action type.")}return Wd({},e,r)}(e,t,sb)}return Wd({},e,r)}var cb=["onClick"],ub=["onMouseLeave","refKey","ref"],db=["onBlur","onClick","onPress","onKeyDown","refKey","ref"],fb=["item","index","onMouseMove","onClick","onMouseDown","onPress","refKey","disabled","ref"];function pb(t){void 0===t&&(t={}),Vy(t,pb);var n=Wd({},Yy,t),r=n.scrollIntoView,i=n.environment,o=n.getA11yStatusMessage,a=function(e,t,n,r){var i=Ly(e,t,n,r),o=i[0],a=i[1];return[wy(o,t),a]}(lb,n,Uy,Zy),s=a[0],l=a[1],c=s.isOpen,u=s.highlightedIndex,d=s.selectedItem,f=s.inputValue,p=(0,e.useRef)(null),h=(0,e.useRef)(null),g=(0,e.useRef)({}),m=(0,e.useRef)(null),v=jy(n),y=Oy({state:s,props:n}),b=(0,e.useCallback)((function(e){return g.current[v.getItemId(e)]}),[v]);By(o,s,[c,u,d,f],i);var x=function(t){var n=t.highlightedIndex,r=t.isOpen,i=t.itemRefs,o=t.getItemNodeFromIndex,a=t.menuElement,s=t.scrollIntoView,l=(0,e.useRef)(!0);return ky((function(){n<0||!r||!Object.keys(i.current).length||(!1===l.current?l.current=!0:s(o(n),a))}),[n]),l}({menuElement:h.current,highlightedIndex:u,isOpen:c,itemRefs:g,scrollIntoView:r,getItemNodeFromIndex:b});(0,e.useEffect)((function(){return m.current=by((function(e){e({type:20,inputValue:""})}),500),function(){m.current.cancel()}}),[]),(0,e.useEffect)((function(){f&&m.current(l)}),[l,f]),Fy({props:n,state:s}),(0,e.useEffect)((function(){zy(n,"isOpen")&&p.current&&p.current.focus()}),[]);var I=function(t,n,r){var i=(0,e.useRef)({isMouseDown:!1,isTouchMove:!1,isTouchEnd:!1});return(0,e.useEffect)((function(){if(!t)return vy;var e=r.map((function(e){return e.current}));function o(){i.current.isTouchEnd=!1,i.current.isMouseDown=!0}function a(r){i.current.isMouseDown=!1,Ay(r.target,e,t)||n()}function s(){i.current.isTouchEnd=!1,i.current.isTouchMove=!1}function l(){i.current.isTouchMove=!0}function c(r){i.current.isTouchEnd=!0,i.current.isTouchMove||Ay(r.target,e,t,!1)||n()}return t.addEventListener("mousedown",o),t.addEventListener("mouseup",a),t.addEventListener("touchstart",s),t.addEventListener("touchmove",l),t.addEventListener("touchend",c),function(){t.removeEventListener("mousedown",o),t.removeEventListener("mouseup",a),t.removeEventListener("touchstart",s),t.removeEventListener("touchmove",l),t.removeEventListener("touchend",c)}}),[r,t,n]),i.current}(i,(0,e.useCallback)((function(){y.current.state.isOpen&&l({type:ib})}),[l,y]),(0,e.useMemo)((function(){return[h,p]}),[h.current,p.current])),w=vy;(0,e.useEffect)((function(){c||(g.current={})}),[c]);var T=(0,e.useMemo)((function(){return{ArrowDown:function(e){e.preventDefault(),l({type:Wy,altKey:e.altKey})},ArrowUp:function(e){e.preventDefault(),l({type:Qy,altKey:e.altKey})},Home:function(e){e.preventDefault(),l({type:$y})},End:function(e){e.preventDefault(),l({type:Ky})},Escape:function(){y.current.state.isOpen&&l({type:Xy})},Enter:function(e){e.preventDefault(),l({type:y.current.state.isOpen?eb:0})},PageUp:function(e){y.current.state.isOpen&&(e.preventDefault(),l({type:nb}))},PageDown:function(e){y.current.state.isOpen&&(e.preventDefault(),l({type:rb}))}," ":function(e){e.preventDefault();var t=y.current.state;t.isOpen?t.inputValue?l({type:Jy,key:" "}):l({type:tb}):l({type:0})}}}),[l,y]),M=(0,e.useCallback)((function(){l({type:15})}),[l]),A=(0,e.useCallback)((function(){l({type:17})}),[l]),E=(0,e.useCallback)((function(){l({type:16})}),[l]),C=(0,e.useCallback)((function(e){l({type:18,highlightedIndex:e})}),[l]),N=(0,e.useCallback)((function(e){l({type:ab,selectedItem:e})}),[l]),S=(0,e.useCallback)((function(){l({type:21})}),[l]),k=(0,e.useCallback)((function(e){l({type:20,inputValue:e})}),[l]),j=(0,e.useCallback)((function(e){var t=void 0===e?{}:e,n=t.onClick,r=Qd(t,cb);return Wd({id:v.labelId,htmlFor:v.toggleButtonId,onClick:xy(n,(function(){var e;null==(e=p.current)||e.focus()}))},r)}),[v]),D=(0,e.useCallback)((function(e,t){var n,r=void 0===e?{}:e,i=r.onMouseLeave,o=r.refKey,a=void 0===o?"ref":o,s=r.ref,c=Qd(r,ub),u=(void 0===t?{}:t).suppressRefError;return w("getMenuProps",void 0!==u&&u,a,h),Wd(((n={})[a]=Iy(s,(function(e){h.current=e})),n.id=v.menuId,n.role="listbox",n["aria-labelledby"]=c&&c["aria-label"]?void 0:""+v.labelId,n.onMouseLeave=xy(i,(function(){l({type:12})})),n),c)}),[l,w,v]);return{getToggleButtonProps:(0,e.useCallback)((function(e,t){var n,r=void 0===e?{}:e,i=r.onBlur,o=r.onClick;r.onPress;var a=r.onKeyDown,s=r.refKey,c=void 0===s?"ref":s,u=r.ref,d=Qd(r,db),f=(void 0===t?{}:t).suppressRefError,h=void 0!==f&&f,g=y.current.state,m=Wd(((n={})[c]=Iy(u,(function(e){p.current=e})),n["aria-activedescendant"]=g.isOpen&&g.highlightedIndex>-1?v.getItemId(g.highlightedIndex):"",n["aria-controls"]=v.menuId,n["aria-expanded"]=y.current.state.isOpen,n["aria-haspopup"]="listbox",n["aria-labelledby"]=d&&d["aria-label"]?void 0:""+v.labelId,n.id=v.toggleButtonId,n.role="combobox",n.tabIndex=0,n.onBlur=xy(i,(function(){g.isOpen&&!I.isMouseDown&&l({type:ib})})),n),d);return d.disabled||(m.onClick=xy(o,(function(){l({type:0})})),m.onKeyDown=xy(a,(function(e){var t=function(e){var t=e.key,n=e.keyCode;return n>=37&&n<=40&&0!==t.indexOf("Arrow")?"Arrow"+t:t}(e);t&&T[t]?T[t](e):function(e){return/^\S{1}$/.test(e)}(t)&&l({type:Jy,key:t})}))),w("getToggleButtonProps",h,c,p),m}),[l,v,y,I,w,T]),getLabelProps:j,getMenuProps:D,getItemProps:(0,e.useCallback)((function(e){var t,n=void 0===e?{}:e,r=n.item,i=n.index,o=n.onMouseMove,a=n.onClick,s=n.onMouseDown;n.onPress;var c=n.refKey,u=void 0===c?"ref":c,d=n.disabled,f=n.ref,p=Qd(n,fb);void 0!==d&&console.warn('Passing "disabled" as an argument to getItemProps is not supported anymore. Please use the isItemDisabled prop from useSelect.');var h=y.current,m=h.state,b=h.props,w=function(e,t,n,r){var i,o;if(void 0===e){if(void 0===t)throw new Error(r);i=n[t],o=t}else o=void 0===t?n.indexOf(e):t,i=e;return[i,o]}(r,i,b.items,"Pass either item or index to getItemProps!"),T=w[0],M=w[1],A=b.isItemDisabled(T,M),E=Wd(((t={})[u]=Iy(f,(function(e){e&&(g.current[v.getItemId(M)]=e)})),t["aria-disabled"]=A,t["aria-selected"]=T===m.selectedItem,t.id=v.getItemId(M),t.role="option",t),p);return A||(E.onClick=xy(a,(function(){l({type:ob,index:M})}))),E.onMouseMove=xy(o,(function(){I.isTouchEnd||M===m.highlightedIndex||(x.current=!1,l({type:13,index:M,disabled:A}))})),E.onMouseDown=xy(s,(function(e){return e.preventDefault()})),E}),[y,v,I,x,l]),toggleMenu:M,openMenu:E,closeMenu:A,setHighlightedIndex:C,selectItem:N,reset:S,setInputValue:k,highlightedIndex:u,isOpen:c,selectedItem:d,inputValue:f}}pb.stateChangeTypes=sb,Wd({},qy,{items:Da().array.isRequired,isItemDisabled:Da().func,inputValue:Da().string,defaultInputValue:Da().string,initialInputValue:Da().string,inputId:Da().string,onInputValueChange:Da().func}),Wd({},Ry,{isItemDisabled:function(){return!1}}),Da().array,Da().array,Da().array,Da().func,Da().number,Da().number,Da().number,Da().func,Da().func,Da().string,Da().string;var hb=a(7767),gb=a.n(hb);const mb=Promise.all([new(gb())("Noto Sans",{weight:300}).load(),new(gb())("Noto Sans",{weight:400}).load(),new(gb())("Noto Sans",{weight:600}).load()]).then((()=>{vb=!0})).catch(dl);let vb=!1;const yb=!navigator.userAgent.includes("jsdom/"),bb=t().memo((({element:n,renderChildNodes:r})=>{const i=Ce(n,"question-id"),o=Ce(n,"max-score"),a=kc((e=>e.answers.answersById[i])),s=Gc(),l=n.getAttribute("display-number"),c=a&&a.value&&Ae(n,(e=>a.value===e.getAttribute("option-id"))),u=(0,e.useRef)(null),d=t().useRef(null),[f,p]=(0,e.useState)(!0),[h,g]=(0,e.useState)(vb);yb&&(mb.then((()=>!h&&g(!0))).catch((e=>console.error(e))),(0,e.useEffect)((()=>p(!0)),[n]),(0,e.useEffect)((()=>{if(f&&d.current&&u.current){const t=d.current,n=u.current,r=(e=Se(t,(e=>e.firstElementChild.scrollWidth)))&&e.length?On(e,ge,Pn):void 0,i=requestAnimationFrame((()=>{n.style.width=`${r+2+1}px`,p(!1)}));return()=>cancelAnimationFrame(i)}var e})));const m=["",...n.children],{answers:v,questionLabelIds:y}=(0,e.useContext)(dd),{getItemProps:b,getMenuProps:x,getToggleButtonProps:I,highlightedIndex:w,isOpen:T,selectedItem:M}=pb({items:m,itemToString:e=>e?e.textContent:"",onSelectedItemChange:({selectedItem:e})=>{const t=e?e.getAttribute("option-id"):"";s(Hp({type:"choice",questionId:i,value:t,displayNumber:l}))},initialSelectedItem:c}),{t:A}=Dl(),E=Yl(n),C=(0,e.useContext)(ls),N=0!==Object.keys(C).length,S={onClick:()=>{},onMouseDown:()=>{},onMouseMove:()=>{}};return t().createElement("span",{className:"e-nowrap"},t().createElement("span",{className:"anchor",id:`question-nr-${l}`}),t().createElement("span",{className:Er()("e-dropdown-answer e-normal"),"data-question-id":i},t().createElement("button",{className:Er()("e-dropdown-answer__toggle-button e-button-plain e-columns",{"e-dropdown-answer__toggle-button--open":T}),...I({"aria-describedby":E,"aria-labelledby":y},{suppressRefError:!yb})},t().createElement("span",{className:"e-dropdown-answer__label e-column e-pad-l-1 e-pad-r-4"},t().createElement("span",{className:"e-ellipsis e-block",ref:u},M?r(M):t().createElement("span",{"aria-label":A.raw("dropdown-answer.label")},be))),t().createElement("span",{className:Er()("e-dropdown-answer__toggle-icon e-text-center e-column e-column--narrow e-column--gapless e-color-link")},t().createElement(qa,{icon:T?Ja:rs}))),t().createElement("span",{...x({className:Er()("e-dropdown-answer__menu",{"e-dropdown-answer__menu--open":T}),"aria-labelledby":void 0,ref:d},{suppressRefError:!yb})},m.map(((e,n)=>t().createElement("span",{className:Er()("e-dropdown-answer__menu-item e-block e-pad-l-1 e-pad-r-4",{"e-dropdown-answer__menu-item--selected":e===M,"e-bg-color-off-white":w!==n,"e-bg-color-link e-color-off-white":w===n}),key:n,...b({item:e,index:n}),...N?S:{}},t().createElement("span",{className:Er()("e-dropdown-answer__menu-item-inner e-block",{"e-nowrap":f})},e?r(e):t().createElement("span",{"aria-label":A.raw("dropdown-answer.clear")},be))))))),v.length>1&&t().createElement(oy,{score:o,size:"inline",id:E}))})),xb=t().memo((function({element:e,renderChildNodes:n}){return t().createElement("div",{className:"e-exam-footer"},n(e))})),Ib=t().memo((function({element:e,renderChildNodes:n}){return t().createElement("div",{className:"exam-instruction notification e-pad-4","data-annotation-anchor":"exam-instruction"},n(e))})),wb=t().memo((function(){const{examServerApi:n}=(0,e.useContext)(sc),{examineExam:r}=n,{t:i}=Dl();return t().createElement("button",{className:"e-button goto-examine-answers",onClick:()=>{r&&(r(),window.scrollTo(0,0))},"aria-describedby":"examineExamInstructions"},i("examine-exam.examine"))}));function Tb({answer:e,focusedQuestionId:n,renderChildNodes:r}){const i=Ce(e,"question-id"),o=e.getAttribute("display-number"),a=Ae(e,"hint"),s=je(e);return t().createElement("p",{className:Er()("e-hints__hint",{"e-hints__hint--focused":n===i}),onClick:()=>{const e=document.querySelector(`.text-answer[data-question-id="${i}"]`);e&&e.focus()},"data-question-id":i},s&&ay(o)," ",r(a))}const Mb=({element:e,renderChildNodes:n})=>{const r=kc((e=>e.answers.focusedQuestionId)),i=Te(e,["text-answer","scored-text-answer"]).filter((e=>null!=Ae(e,"hint")));return i.length>0?t().createElement("div",{className:"e-columns"},t().createElement("div",{className:"e-column e-column--8"},n(e)),t().createElement("div",{className:"e-hints e-column e-column--4","aria-hidden":"true"},i.map(((e,i)=>t().createElement(Tb,{answer:e,focusedQuestionId:r,renderChildNodes:n,key:i}))))):t().createElement(t().Fragment,null,n(e))},Ab=(0,e.createContext)({expanded:!1,toggleWriterMode:()=>{}}),Eb=t().memo(fd((function({element:n,renderChildNodes:r}){const i=kc((e=>e.cas.casStatus)),{casForbidden:o}=(0,e.useContext)(cc),{displayNumber:a,level:s}=(0,e.useContext)(dd),{examServerApi:l}=(0,e.useContext)(sc),[c,u]=(0,e.useState)(!1),{t:d}=Dl(),f=e=>{u(e),l.logActivity&&l.logActivity(e?`Writer mode opened for display number ${a}`:`Writer mode closed for display number ${a}`);const t=document.querySelector("body");e?null==t||t.classList.add("writer-mode"):(null==t||t.classList.remove("writer-mode"),null==t||t.classList.remove("rich-text-editor-focus"),setTimeout((()=>{var e;return null===(e=document.getElementById(`question-nr-${a}`))||void 0===e?void 0:e.scrollIntoView()}),10))},p=e=>{"Tab"===e.code&&e.preventDefault()},h=we(n,"text-answer"),g=h?Ce(h,"question-id"):null;(0,e.useEffect)((()=>{if(c){window.addEventListener("keydown",p);const e=g?document.querySelector(`[data-question-id="${g}"]`):void 0;null==e||e.focus()}return()=>window.removeEventListener("keydown",p)}),[c]);const m=t().createRef(),{addRef:v}=(0,e.useContext)(ye);return(0,e.useEffect)((()=>{(null==m?void 0:m.current)&&0===s&&v&&v(m.current)}),[]),o&&"forbidden"!==i?null:t().createElement(Ab.Provider,{value:{expanded:c,toggleWriterMode:f}},t().createElement("div",{className:Er()("e-exam-question",{"e-level-0 e-pad-b-8 e-clearfix":0===s,"e-mrg-l-8 e-mrg-y-4":s>0,"e-expanded":c}),"data-annotation-anchor":a,"data-toc-id":`question-${a}`,ref:m},t().createElement("div",{className:"anchor",id:`question-nr-${a}`}),c?t().createElement("div",{className:"full-screen","data-full-screen-id":a},t().createElement("button",{className:"expand close",onClick:()=>f(!1)},t().createElement(qa,{icon:Wa}),d("close-writing-mode")),r(n)):r(n)))}))),Cb=t().memo((function({element:e,renderChildNodes:n}){const r=Gl(e);return t().createElement("div",{className:"exam-question-instruction e-mrg-b-2",id:r},n(e))})),Nb=()=>t().createElement(qa,{size:"lg",icon:ts,fixedWidth:!0,className:"e-color-link e-mrg-r-1"}),Sb=t().memo((({element:n,renderChildNodes:r})=>{const{displayNumber:i,maxScore:o,level:a,maxAnswers:s,childQuestions:l}=(0,e.useContext)(dd),c=`h${Math.min(3+a,6)}`,u=Fl(i);return t().createElement(t().Fragment,null,t().createElement(c,{id:u,className:Er()("exam-question-title",{"e-normal e-font-size-m":a>0})},t().createElement("strong",{className:Er()("exam-question-title__display-number",{"exam-question-title__display-number--indented":a>0})},`${yd(i)} `),r(n)," ",t().createElement(oy,{score:o,size:0===a?"large":"small"})),null!=s&&l.length>0&&t().createElement("p",{className:"e-italic"},t().createElement(Nb,null),t().createElement(rg,{maxAnswers:s,childQuestions:l,elementType:"question"})))})),kb=({duration:n,durationRemaining:r,className:i})=>{const o=(0,e.useRef)(null),[a,s]=(0,e.useState)(!1);return(0,e.useEffect)((()=>{o.current.clientTop,s(!0)}),[]),t().createElement("div",{className:Er()("e-progress-bar",i),ref:o},t().createElement("div",{className:Er()("e-progress-bar__fill",{"e-progress-bar__fill--animating":a}),style:{transitionDuration:`${n}s`},role:"progressbar","aria-valuemax":n,"aria-valuemin":0,"aria-valuenow":n-r}))};function jb(){const{t:e}=Dl();return t().createElement("p",null,t().createElement("em",null,e("end-of-exam")))}function Db(n){const r=Gc(),{t:i}=Dl(),{casCountdownDuration:o}=(0,e.useContext)(sc);return t().createElement("div",{className:"e-cas-controls"},"forbidden"===n.casStatus?t().createElement("div",{className:"e-text-center"},t().createElement("hr",{className:"e-exam-separator"}),t().createElement("p",null,i("cas.examineSectionA"),t().createElement("br",null),i("cas.cannotEditLater")),t().createElement(wb,null),t().createElement("p",null,i("cas.youCanReturn")),t().createElement("p",{className:"dots-separator"},"•••"),t().createElement("p",{id:"e-cas-controls-forbidden-description"},i("cas.forbidden.infoText")),t().createElement("button",{className:"e-button",id:"allow-cas",onClick:()=>{return r((e=o,(0,Pu.action)("ALLOW_CAS",e)));var e},"aria-describedby":"e-cas-controls-forbidden-description"},i("cas.forbidden.buttonText"))):"allowing"===n.casStatus?t().createElement("div",{className:"e-text-center",ref:e=>null!=e&&o===n.durationRemaining&&e.scrollIntoView()},t().createElement("hr",{className:"e-exam-separator"}),t().createElement("p",{id:"e-cas-controls-allowing-description"},i("cas.allowing.infoText")),t().createElement(kb,{className:"e-mrg-b-2",duration:o,durationRemaining:n.durationRemaining}),t().createElement("button",{className:"e-button",id:"allow-cas-cancelled",onClick:()=>r(Zh()),ref:e=>null!=e&&o===n.durationRemaining&&e.focus(),"aria-describedby":"e-cas-controls-allowing-description"},i("cas.allowing.cancel",{count:n.durationRemaining}))):t().createElement("div",{className:"notification e-text-left e-mrg-b-0"},i("cas.allowed.infoText")))}const Ob=t().memo(uc((function({element:n,renderChildNodes:r}){const i=kc((e=>e.cas),Pc),{casForbidden:o,displayNumber:a}=(0,e.useContext)(cc),{sections:s}=(0,e.useContext)(oc),l=n===ul(s);return t().createElement(nc,{className:"exam-section","aria-labelledby":Bl(a)},r(n),o&&t().createElement(Db,{...i}),l&&t().createElement(jb,null))}))),Lb=t().memo((function({element:e,renderChildNodes:n}){return t().createElement("div",{className:"e-mrg-b-2"},n(e))})),Rb=t().memo((function({element:n,renderChildNodes:r}){const{sections:i}=(0,e.useContext)(oc),{displayNumber:o,minAnswers:a,maxAnswers:s,childQuestions:l}=(0,e.useContext)(cc),{t:c}=Dl(),u=t().createRef(),{addRef:d}=(0,e.useContext)(ye);return(0,e.useEffect)((()=>{(null==u?void 0:u.current)&&d&&d(u.current)}),[]),t().createElement(t().Fragment,null,n.hasChildNodes()&&t().createElement("h2",{className:"exam-section-title",id:Bl(o),"data-toc-id":`section-${o}`,ref:u},i.length>1&&c("section",{displayNumber:o})," ",r(n)),null!=s&&t().createElement("span",{className:"notification notification--inline"},t().createElement(Nb,null),t().createElement(rg,{maxAnswers:s,minAnswers:a,childQuestions:l,elementType:"section"})))})),Pb=e=>t().createElement("div",{className:"e-student-name-container"},e.studentName),zb=({children:e})=>t().createElement("span",{className:"e-screen-reader-only"},e),Ub=t().memo((function({answer:e,element:n,screenshotError:r,validationError:i,selectAnswerVersion:o,showAnswerHistory:a=!1,supportsAnswerHistory:s=!1}){const{t:l}=Dl(),c=null==e?void 0:e.characterCount,u=Ce(n,"max-length");return t().createElement("div",{className:"answer-toolbar e-font-size-xs e-columns e-mrg-b-2"},t().createElement("div",{className:Er()("answer-toolbar__answer-length e-column",{"e-color-error":null!=i})},null!=e?l(null!=u?"answer-length-with-max-length":"answer-length",{count:c,maxLength:u}):be,r?t().createElement("span",{className:"e-color-error",role:"alert"}," ",l(`answer-errors.${r.key}`,r.options)):i?t().createElement("span",null," ",l("answer-errors.answer-too-long",{count:i.characterCount})):null),t().createElement("div",{className:"answer-toolbar__history e-column e-column--narrow e-text-right"},s&&t().createElement("div",{className:"answer-toolbar__select-previous-version"},a&&null!=e?t().createElement("button",{className:"answer-toolbar__previous-versions e-link-button e-font-size-xs",onClick:()=>{if(o){const t=Ae(Me(n,"question"),"question-title");o(e.questionId,t.textContent)}}},l("previous-answer-versions")):be)))}));class _b extends t().PureComponent{constructor(e){super(e),this.handleSaveError=e=>{const t=(()=>{switch(In(e,"response.status")){case 409:return"screenshot-byte-limit-reached";case 413:return"screenshot-too-big";default:return"screenshot-upload-failed"}})();this.props.onError({key:t})},this.handleChange=e=>{const{onChange:t}=this.props;this.lastHTML=e.answerHtml,t(e.answerHtml,e.answerText)},this.editorRef=t().createRef(),this.lastHTML=this.props.answer?this.props.answer.value:""}componentDidUpdate(){this.editorRef.current&&this.props.answer&&this.props.answer.value!==this.lastHTML&&(this.lastHTML=this.props.answer.value,this.editorRef.current.setValue(this.props.answer.value))}render(){const{questionId:e,className:n,labelledBy:r,answer:i,lang:o,invalid:a,saveScreenshot:s}=this.props;return t().createElement(Ab.Consumer,null,(({expanded:l,toggleWriterMode:c})=>t().createElement(t().Fragment,null,t().createElement(Mr(),{ref:this.editorRef,baseUrl:"",initialValue:null==i?void 0:i.value,language:this.context.language.slice(0,2).toUpperCase(),onValueChange:this.handleChange,getPasteSource:e=>s(e).catch((e=>{throw this.handleSaveError(e),e})),textAreaProps:{ariaInvalid:a,ariaLabelledBy:r,id:e.toString(),questionId:e,className:n,lang:o}}),!l&&t().createElement("button",{className:"expand open",onClick:()=>c(!0),"aria-labelledby":"expand-label","aria-owns":String(e)},t().createElement(Fb,null),t().createElement(qa,{icon:is})))))}}_b.contextType=oc;const Bb=_b,Fb=()=>{const{t:e}=Dl();return t().createElement("div",{className:"label",id:"expand-label"},e("open-writing-mode"))},Gb=t().memo((({maxLength:e,id:n})=>{const{t:r}=Dl();return t().createElement("p",{id:n,className:"e-answer-length-info"},t().createElement(Nb,null),t().createElement("em",null,r("max-length-info",{count:e})))}));function Zb(e){return e.replace(/\s/g,"").length}const Hb=t().memo((({element:n,className:r})=>{const i=Ee(n,"type"),o=Ce(n,"question-id"),a=Ee(n,"display-number"),s=Ce(n,"max-score"),l=Ne(n,"use-language-of-instruction"),c=Ce(n,"max-length"),{language:u}=(0,e.useContext)(oc),{questionLabelIds:d,answers:f}=(0,e.useContext)(dd),{examServerApi:p}=(0,e.useContext)(sc),[h,g]=(0,e.useState)(),m=kc((e=>e.answers.answersById[o])),v=kc((e=>e.answers.supportsAnswerHistory)),y=kc((e=>e.answers.supportsAnswerHistory&&e.answers.serverQuestionIds.has(o))),b=kc((e=>e.answers.validationErrors.find((e=>"AnswerTooLong"===e.type&&e.displayNumber===a)))),x=Gc(),I=(0,e.useRef)(null),w=m&&m.value,T=Yl(n),M=null!=b,A=l?u:void 0,E=n.hasAttribute("max-length")?`${d} ${Zl(n)}`:d;(0,e.useEffect)((()=>{const{current:e}=I;e&&("single-line"!==i&&"integer"!==i||(e.style.width="0",e.style.width=`${e.scrollWidth+2}px`))}));const C=(0,e.useCallback)((e=>{const t=e.currentTarget.value.trim(),n={type:"text",questionId:o,value:t,characterCount:Zb(t),displayNumber:a};x(Hp(n)),g(void 0)}),[o,a]),[N,S]=(0,e.useState)((null==m?void 0:m.value)||""),k=(0,e.useCallback)((e=>{e.preventDefault(),e.currentTarget.classList.remove("text-answer--integer--input-error");const t=e.currentTarget.value.trim();if(/^-?\d*$/.test(t)){S(t);const e={type:"text",questionId:o,value:t,characterCount:Zb(t),displayNumber:a};x(Hp(e)),g(void 0)}else e.currentTarget.classList.add("text-answer--integer--input-error"),setTimeout((e=>{e.classList.remove("text-answer--integer--input-error")}),200,e.currentTarget)}),[o,a]),j=(0,e.useCallback)(((e,t)=>{const n={type:"richText",questionId:o,value:e,characterCount:Zb(t),displayNumber:a};x(Hp(n)),g(void 0)}),[o,a]),D=(0,e.useCallback)((e=>g(e)),[h]),O=(0,e.useCallback)((()=>x((e=>(0,Pu.action)("ANSWER_FOCUSED",e))(o))),[o]),L=(0,e.useCallback)((()=>x((e=>(0,Pu.action)("ANSWER_BLURRED",e))(o))),[o]),R=(0,e.useCallback)(((e,t)=>x(((e,t)=>(0,Pu.action)("SELECT_ANSWER_VERSION",{questionId:e,questionText:t}))(e,t))),[]);switch(i){case"rich-text":return t().createElement(t().Fragment,null,null!=c&&t().createElement(Gb,{maxLength:c,id:Zl(n)}),t().createElement("div",{className:"text-answer-container"},t().createElement(Bb,{answer:m,className:Er()("text-answer text-answer--rich-text",r),saveScreenshot:e=>p.saveScreenshot(o,e),onChange:j,onError:D,questionId:o,lang:A,invalid:M,labelledBy:E}),t().createElement(Ub,{answer:m,element:n,selectAnswerVersion:R,showAnswerHistory:y,supportsAnswerHistory:v,screenshotError:h,validationError:b})));case"integer":return t().createElement("span",{className:"e-nowrap"},t().createElement("input",{type:"text",className:Er()("text-answer text-answer--single-line text-answer--integer",r),value:N,onChange:k,onFocus:O,onBlur:L,ref:I,"data-question-id":o,lang:A,"aria-describedby":T,"aria-labelledby":E}),f.length>1&&t().createElement(oy,{score:s,size:"inline",id:T}));default:return t().createElement("span",{className:"e-nowrap"},t().createElement("input",{type:"text",className:Er()("text-answer text-answer--single-line",r),defaultValue:w,onChange:C,onFocus:O,onBlur:L,ref:I,"data-question-id":o,lang:A,"aria-describedby":T,"aria-labelledby":E}),f.length>1&&t().createElement(oy,{score:s,size:"inline",id:T}))}})),qb=t().memo((function(e){const{element:n,renderChildNodes:r}=e,i=n.getAttribute("display-number"),o=Ae(n,"hint"),a=t().createElement(Hb,{...e}),s=je(n);return t().createElement(t().Fragment,null,t().createElement("span",{className:"anchor",id:`question-nr-${i}`}),o?t().createElement("label",{className:"e-nowrap"},s&&t().createElement("sup",{className:"e-text-answer-display-number e-color-darkgrey"},ay(i)),t().createElement(zb,null,r(o)),a):a)}));var Yb=a(6660),Vb=a.n(Yb);class Wb extends t().PureComponent{constructor(e){super(e),this.inputValueChanged=()=>{this.props.onChange(this.props.answerIndex),this.labelInputRef&&this.labelInputRef.current&&this.labelInputRef.current.scrollIntoView({block:"center"})},this.entryInputRef=t().createRef(),this.labelInputRef=t().createRef()}componentDidMount(){this.entryInputRef.current&&0===this.props.answerIndex&&this.entryInputRef.current.focus()}render(){const{selected:e,croppedAnswer:n,characterCount:r,screenshotCount:i,answerIndex:o,minutesSinceAnswer:a}=this.props;return t().createElement("label",{ref:this.labelInputRef,className:"js-undo-history-entry"},t().createElement("input",{type:"radio",className:"e-undo-view-entry-tab",name:"undoHistory",value:o,checked:e,onChange:this.inputValueChanged,ref:this.entryInputRef}),t().createElement(Qb,{croppedAnswer:n,characterCount:r,screenshotCount:i,answerIndex:o,minutesSinceAnswer:a}))}}const Qb=({croppedAnswer:e,characterCount:n,screenshotCount:r,answerIndex:i,minutesSinceAnswer:o})=>{const{t:a}=Dl(),s=[n>0?a("undo.answerCharacterCount",{count:n}):null,r>0?a("undo.answerImageCount",{count:r}):null].filter((e=>null!==e));return t().createElement("div",{className:"e-undo-view-entry js-undo-entry-content"},t().createElement("div",{className:"js-undo-history-entry-time"},0===i?a("undo.latestVersion"):a("undo.minutesSinceAnswer",{minutes:o})),t().createElement("div",{className:"e-undo-view-answer-cropped js-undo-history-entry-answer"},e||a("undo.answerNoText")),t().createElement("div",{className:"e-undo-view-answer-length js-undo-history-entry-stats"},s.map(((e,n)=>t().createElement(t().Fragment,{key:n},e,n<s.length-1&&t().createElement("span",null,", "))))))};var Jb=a(4867),Xb=a.n(Jb);const $b=Vb().CancelToken;function Kb(e){return{type:e.type,value:e.value,answerTime:e.answer_time,characterCount:e.character_count}}function ex(e){const{selectedAnswer:n}=e;return n?"richText"===n.type?t().createElement("div",{className:"e-undo-view-answer-content js-undo-answer-detail",dangerouslySetInnerHTML:{__html:n.value}}):t().createElement("div",{className:"e-undo-view-answer-content js-undo-answer-detail plainText"},n.value):null}function tx(e){const{selectedAnswer:n,selectedAnswerIndex:r,restoreAnswer:i,questionId:o}=e,a=!n||0===r;return t().createElement("div",{className:"e-undo-view-bottom-bar"},t().createElement("button",{className:"e-button-default e-button js-restore-answer-button",disabled:a,onClick:()=>n&&i({...n,questionId:o})},t().createElement(cx,null)))}function nx(e){return("text"===e.type?e.value:function(e){const t=document.createElement("div");return t.innerHTML=e,t.innerText}(e.value)).replace(/\s+/g," ").trim()}function rx(e,t=50){const n=nx(e);if(n.length<=t)return n;const r=t-1,i=Math.ceil(r/2),o=r-i;return n.substr(0,i)+"…"+n.substr(n.length-o)}function ix(e){return nx(e).replace(/\s/g,"").length}function ox(e){const t=document.createElement("div");t.innerHTML=e.value;const n=t.querySelectorAll("img").length,r=t.querySelectorAll('img[src=""]').length;return n-t.querySelectorAll('img[src^="/math.svg"], img[src^="data:image/svg+xml"]').length-r}class ax extends t().PureComponent{constructor(e){super(e),this.source=$b.source(),this.toggleBodyScroll=e=>document.documentElement.classList.toggle("e-exam-body-no-scroll",!e),this.keydownListener=e=>{if(13===e.keyCode){const e=this.state.answers[this.state.selectedAnswerIndex];this.props.restoreAnswer({...e,questionId:this.props.questionId}),this.close()}else 27===e.keyCode&&this.close()},this.state={answers:[],selectedAnswerIndex:0,loading:!0,loadRetryTimeout:null}}componentDidMount(){this.toggleBodyScroll(!1),document.addEventListener("keydown",this.keydownListener,!1),this.fetchAnswerHistory(this.props.questionId)}componentWillUnmount(){this.source.cancel(),document.removeEventListener("keydown",this.keydownListener,!1),this.toggleBodyScroll(!0)}componentDidUpdate(e){this.props.questionId!==e.questionId&&this.fetchAnswerHistory(this.props.questionId)}overlayClicked(e){e.target.className.includes("js-undo-overlay")&&this.close()}async fetchAnswerHistory(e){try{const t=(await Vb().get(`/rest/answer-history/${e}`,{cancelToken:this.source.token})).data.map(Kb);this.setState({answers:t,selectedAnswerIndex:0,loading:!1,loadRetryTimeout:null})}catch(t){Vb().isCancel(t)||this.setState({loadRetryTimeout:window.setTimeout((()=>{this.fetchAnswerHistory(e)}),4e3)})}}close(){const e=this.state.loadRetryTimeout;e&&clearTimeout(e),this.source.cancel(),this.props.close()}render(){const e=this.state.answers[this.state.selectedAnswerIndex],n=(new Date).getTime();return t().createElement(Xb(),null,t().createElement("div",{onClick:this.overlayClicked.bind(this),className:"e-overlay js-undo-overlay","aria-modal":"true"},t().createElement("div",{id:"undo",className:"e-undo-view"},t().createElement(lx,{close:this.close.bind(this)}),this.state.loading?t().createElement(sx,null):t().createElement("div",{className:"e-undo-view-content"},t().createElement("div",{className:"e-undo-view-answer-index js-undo-answer-index"},this.state.answers.map(((e,r)=>{const i=n-new Date(e.answerTime).getTime(),o=Math.round(i/1e3/60);return t().createElement(Wb,{key:new Date(e.answerTime).getTime(),answerIndex:r,selected:r===this.state.selectedAnswerIndex,onChange:e=>this.setState({selectedAnswerIndex:e}),croppedAnswer:rx(e),minutesSinceAnswer:o,characterCount:ix(e),screenshotCount:ox(e)})}))),t().createElement("div",{className:"e-undo-view-right-panel"},t().createElement("div",{className:"e-undo-view-header js-undo-view-header"},t().createElement("h3",{className:"e-undo-view-title js-undo-view-title"},this.props.title)),t().createElement(ex,{selectedAnswer:e}),t().createElement(tx,{selectedAnswer:e,selectedAnswerIndex:this.state.selectedAnswerIndex,restoreAnswer:this.props.restoreAnswer,questionId:this.props.questionId}))))))}}const sx=()=>{const{t:e}=Dl();return t().createElement("div",{style:{padding:"10px"}},e("undo.loading"))},lx=({close:e})=>{const{t:n}=Dl();return t().createElement("div",null,t().createElement("img",{src:"img/closeButton.svg",id:"closeUndoDialogButton",className:"e-undo-view-close-overlay-button js-close-undo-dialog-button",onClick:e,tabIndex:0,role:"button","aria-label":n("undo.close")}))},cx=()=>{const{t:e}=Dl();return t().createElement("div",null,e("undo.restoreAnswer"))},ux=e=>{const{t:n}=Dl(),{displayNumber:r,elementType:i}=e;return t().createElement("div",null,"exam"!==i&&"toc-section"!==i?n(i,{displayNumber:r})||t().createElement(px,{...e}):""," ",t().createElement(rg,{...e}))},dx=({displayNumber:e,characterCount:n})=>{const{t:r}=Dl();return t().createElement("div",null,r("question",{displayNumber:e})," ",r("answer-errors.answer-too-long",{count:n}))};function fx({validationErrors:e,inExam:n}){return e.length>0?t().createElement("div",{className:Er()({"error-indicator e-bg-color-error e-color-off-white":n,"e-font-size-xs":n},"e-columns e-columns--inline e-pad-1 e-mrg-r-1"),role:"alert"},t().createElement("div",{className:"e-column e-column--narrow",style:{color:"#f90"}},t().createElement(qa,{size:"lg",icon:os,fixedWidth:!0,className:"e-mrg-r-1"})),t().createElement("div",{className:"e-column e-column--gapless"},e.map((e=>{const n=e.type+e.displayNumber;return"ExtraAnswer"===e.type?t().createElement(ux,{...e,key:n}):t().createElement(dx,{...e,key:n})})))):null}const px=({elementType:n,displayNumber:r})=>{if("section"===n){const{root:n}=(0,e.useContext)(oc),i=Ae(n,(e=>"section"===e.localName&&e.getAttribute("display-number")===r));if(i){const e=Ae(i,"section-title");if(e)return t().createElement(t().Fragment,null,`${e.textContent.trim()}:`)}}return null},hx=t().memo((()=>{const e=kc((e=>e.answers.validationErrors));return t().createElement(fx,{validationErrors:e,inExam:!0})})),gx=t().memo((function(){const e=kc(Vc),{t:n}=Dl();return"initial"===e?null:t().createElement("div",{className:"save-indicator e-pad-1 e-font-size-xs"},t().createElement("span",{className:Er()("save-indicator-text",`save-indicator-text--${e}`)},n("answer-saved")))})),mx=vs({attachment:cg,"attachment-link":pc("link"),"attachment-links":hc("link"),audio:Yu,"audio-title":ec,"audio-group":Jh,"audio-test":Xh,"choice-answer":dg,"dnd-answer-container":({element:n,renderChildNodes:r})=>{var i;const[o,a]=(0,e.useState)(),[s,l]=(0,e.useState)({}),[c,u]=(0,e.useState)({}),[d,f]=(0,e.useState)({}),p=Gc(),h=kc((e=>e.answers));(0,e.useEffect)((()=>{const e=Te(n,"dnd-answer").filter((e=>!!we(e,"dnd-answer-title"))),t=Te(n,"dnd-answer-option"),r=e.reduce(((e,t)=>{var n;const r=t.getAttribute("question-id"),i=null===(n=h.answersById[Number(r)])||void 0===n?void 0:n.value;return{...e,[r]:i?[Number(i)]:[],root:e.root.filter((e=>e!==Number(i)))}}),{root:t.map((e=>Number(e.getAttribute("option-id"))))}),i=t.reduce(((e,t)=>({...e,[t.getAttribute("option-id")]:t})),{}),o=e.reduce(((e,t)=>({...e,[t.getAttribute("question-id")]:t.getAttribute("display-number")})),{});l(r),u(i),f(o)}),[n]);const g=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(0,e.useMemo)((()=>[...n].filter((e=>null!=e))),[...n])}(Vg(Fm),Vg(Pm,{coordinateGetter:Vv}));function m(e){return e in s?e:Object.keys(s).find((t=>s[t].includes(e)))}function v(e){const{active:t,over:n}=e,r=t.id,i=null==n?void 0:n.id;return{activeId:r,activeContainer:m(r),overContainer:i?m(i):null}}(0,e.useEffect)((()=>{Object.entries(s).forEach((([e,t])=>{"root"!==e&&function(e,t){const n=Number(e),r=(null==t?void 0:t.toString())||"",i=d[n];p(Hp({type:"choice",questionId:n,value:r,displayNumber:i}))}(e,null==t?void 0:t.toString())}))}),[s]);const y=Te(n,"dnd-answer").filter((e=>!!we(e,"dnd-answer-title"))),b=null===(i=s.root)||void 0===i?void 0:i.map((e=>c[e]||null)).filter(Boolean);return t().createElement("div",{className:"e-dnd-answer-container"},t().createElement(Av,{sensors:g,onDragStart:function(e){a(e.active.id)},onDragOver:function(e){const{activeContainer:t,overContainer:n}=v(e)},onDragEnd:function(e){const{activeId:t,activeContainer:n,overContainer:r}=v(e);n&&r&&n!==r&&(l((e=>function(e,t,n,r){const i={...e};if(i[t]=i[t].filter((e=>e!==r)),"root"===n)i.root=[r,...i.root];else{if(i[n].length>0){const e=i[n][0];i.root=[...i.root,e]}i[n]=[r]}return i}(e,n,r,t))),a(null))}},y.map((e=>{var n;const i=e.getAttribute("question-id"),o=null===(n=s[i]||[])||void 0===n?void 0:n.map((e=>(null==c?void 0:c[e])||null)).filter(Boolean),a=s[i]||[];return t().createElement(sy,{key:i,element:e,renderChildNodes:r,itemIds:a,answerOptionElements:o,page:"exam"})})),t().createElement(cy,{items:s.root||[],renderChildNodes:r,answerOptionElements:b}),t().createElement(_v,{className:"e-dnd-answer-drag-overlay",dropAnimation:{duration:250,easing:"ease-in-out"}},o?t().createElement(ry,{element:c[o],renderChildNodes:r}):null)))},"dropdown-answer":bb,"exam-footer":xb,"external-material":Wu,file:Qu,formula:Ju,image:Ku,question:Eb,"question-number":pd,translation:hd,"question-instruction":Cb,"question-title":Sb,hints:Mb,references:eg,"scored-text-answer":qb,"scored-text-answers":Mb,"section-instruction":Lb,section:Ob,"section-title":Rb,"text-answer":qb,video:id,"image-overlay":ud}),vx=()=>{const{t:e}=Dl();return t().createElement("div",{className:"e-examine-exam-instructions",id:"examineExamInstructions"},e("examine-exam.instructions"))},yx=t().memo(lc(ac((({doc:n,casStatus:r,answers:i,restrictedAudioPlaybackStats:o,examServerApi:a,studentName:s,showUndoView:l,undoViewProps:c,annotations:u,onClickAnnotation:d,onSaveAnnotation:f})=>{const{date:p,dateTimeFormatter:h,dayCode:g,examCode:m,language:v,resolveAttachment:b,root:x,subjectLanguage:I}=(0,e.useContext)(oc),w=Ae(x,"exam-title"),T=Ae(x,"exam-instruction"),M=Ae(x,"table-of-contents"),A=Ae(x,"external-material"),E=x.getAttribute("exam-stylesheet"),C=(0,e.createRef)(),N=$l((()=>Qh(Td(n),r,i,o,a))),S=$l((()=>ag({showAttachmentLinks:!0,showAnsweringInstructions:!0,isInSidebar:!0}))),k=$l((()=>ag({showAttachmentLinks:!0,showAnsweringInstructions:!0,isInSidebar:!1}))),j=$l((()=>jl(v,m,g)));(0,e.useEffect)(Ol(j,v)),(0,e.useEffect)(Xl,[]);const[D,O]=(0,e.useState)([]);(0,e.useEffect)((()=>{const e=new IntersectionObserver(L),t=D;return t.forEach((t=>e.observe(t))),()=>{t.forEach((t=>e.unobserve(t)))}}),[D]);const L=e=>e.forEach((e=>{const t=e.target.getAttribute("data-toc-id");P((n=>e.isIntersecting?[...n,t]:n.filter((e=>e!==t))))})),[R,P]=(0,e.useState)([]);(0,e.useEffect)((()=>{R.forEach((e=>{const t=e.replace("question-",""),n=document.querySelector(`.table-of-contents li[data-list-number="${t}."]`);if(n){const e=(e=>{const t=e.getBoundingClientRect();return t.top>=100&&t.bottom<=window.innerHeight-100})(n),t=document.querySelector(".sidebar-toc-container .table-of-contents");if(!e&&t){const e=t.getBoundingClientRect().height,r=n.offsetTop-e/2;t.scrollTo({behavior:"smooth",top:r})}}}))}),[R]);const z=void 0!==a.examineExam,U="[Kokelaan Nimi]"===s;return t().createElement(zc,{store:N},t().createElement(cs,{annotations:u,onClickAnnotation:d,onSaveAnnotation:f},t().createElement(ye.Provider,{value:{visibleTOCElements:R,addRef:e=>{D.includes(e)||O((t=>[...t,e]))}}},t().createElement(y,{i18n:j},t().createElement("main",{className:"e-exam",lang:I,"aria-labelledby":Ul,ref:C},t().createElement(t().StrictMode,null),E&&t().createElement("link",{rel:"stylesheet",href:b(E)}),t().createElement("div",{className:"e-toc-and-exam"},M&&t().createElement("div",{className:"sidebar-toc-container","aria-hidden":"true"},t().createElement(S,{element:M,renderChildNodes:mx})),t().createElement("div",{className:"main-exam-container"},t().createElement("div",{className:"main-exam"},t().createElement(Pb,{studentName:s}),t().createElement(nc,{"aria-labelledby":Ul},w&&t().createElement(Kl,{id:Ul},mx(w)),p&&t().createElement("p",null,t().createElement("strong",null,h.format(p))),T&&t().createElement(Ib,{element:T,renderChildNodes:mx}),M&&t().createElement("div",{className:"main-toc-container"},t().createElement(k,{element:M,renderChildNodes:mx})),A&&t().createElement(Wu,{element:A,renderChildNodes:mx,forceRender:!0})),mx(x),(U||z)&&t().createElement("div",{className:"e-examine-exam"},t().createElement(wb,null),t().createElement(vx,null))))),(U||z)&&t().createElement($h,null,t().createElement("div",{className:"e-footer-version-number-container"},t().createElement(lg,null))),t().createElement("div",{className:"e-indicators-container"},t().createElement(hx,null),t().createElement(gx,null)),l&&z&&t().createElement(ax,{...c}))))))})))),bx=e=>n=>{const r=r=>e(r)?t().createElement(n,{...r}):null;return r.displayName=`RenderIf(${rc(n)})`,r},xx=t().createContext({}),Ix=({element:n,renderChildNodes:r})=>{const{EditorComponent:i}=(0,e.useContext)(xx),{displayNumber:o}=(0,e.useContext)(dd);return t().createElement("div",{className:"e-answer-grading-instruction e-multiline-results-text-answer e-mrg-b-2 e-pad-l-2"},i?t().createElement(i,{element:n,displayNumber:o}):r(n))},wx=({element:n,renderChildNodes:r})=>{const{answers:i}=(0,e.useContext)(dd),o=Ae(n,"answer-grading-instruction"),a=Ce(n,"max-length"),s=t().createElement(t().Fragment,null,null!=a&&t().createElement(Gb,{maxLength:a}),t().createElement("ul",null,r(n)),o&&t().createElement(Ix,{element:o,renderChildNodes:r}));if(1===i.length)return s;{const e=Ee(n,"display-number"),i=Ce(n,"max-score"),o=Ae(n,"hint");return t().createElement("div",{className:"e-mrg-l-8"},t().createElement("p",{className:"exam-question-title"},t().createElement("span",{className:"exam-question-title__display-number--indented e-semibold"},e," "),o&&r(o)," ",t().createElement(oy,{score:i})),s)}},Tx=({element:e,renderChildNodes:n})=>{const r=Ce(e,"score");if(!r)return null;const{t:i}=Dl();return t().createElement("li",null,n(e),be,"(",i("points",{count:r}),")")},Mx=({element:e,renderChildNodes:n})=>t().createElement("div",{className:"e-exam-grading-instruction notification e-pad-4","data-annotation-anchor":"exam-grading-instruction"},n(e)),Ax=fd((function({element:n,renderChildNodes:r}){const{displayNumber:i,level:o}=(0,e.useContext)(dd);return t().createElement("div",{className:Er()("e-grading-instructions-question",{"e-mrg-b-8 e-clearfix":0===o,"e-mrg-l-8 e-mrg-y-4":o>0}),id:i,"data-annotation-anchor":i},t().createElement("div",{className:"anchor",id:`question-nr-${i}`}),r(n,1))})),Ex=({element:e,renderChildNodes:n})=>{const r=Ae(e,["audio-transcription","video-transcription"]);if(r){const{t:i}=Dl(),o=Ae(e,["audio-title","video-title"]);return t().createElement("details",{className:"e-grading-instruction-recording e-pad-1 e-mrg-b-2"},t().createElement("summary",null,t().createElement("strong",null,i("recording"))," ",o&&t().createElement("em",null,n(o))),n(r))}return null},Cx=uc((({element:n,renderChildNodes:r})=>{const{displayNumber:i}=(0,e.useContext)(cc);return t().createElement(nc,{className:"e-grading-instruction-section","aria-labelledby":Bl(i)},r(n))})),Nx=({EditorComponent:e,children:n})=>t().createElement(xx.Provider,{value:{EditorComponent:e}},n),Sx=bx((({element:e})=>null!=Me(e,["answer-grading-instruction","choice-answer-option","dropdown-answer-option","exam-grading-instruction","question-grading-instruction","hint","question-title","question-instruction"]))),kx=bx((({element:e})=>null==Me(e,["external-material"]))),jx=vs({"accepted-answer":Tx,attachment:tc,"attachment-link":kx(pc("plain")),"attachment-links":kx(hc("plain")),audio:Ex,"audio-group":tc,"choice-answer":wx,"choice-answer-option":Tx,"dropdown-answer":wx,"dropdown-answer-option":Tx,"external-material":tc,file:Sx(Qu),formula:Sx(Ju),hints:tc,image:Sx(Ku),question:Ax,"question-title":({element:n,renderChildNodes:r})=>{const{displayNumber:i,maxScore:o,level:a}=(0,e.useContext)(dd),s=`h${Math.min(3+a,6)}`;return t().createElement(t().Fragment,null,t().createElement(s,{className:Er()("exam-question-title",{"e-normal e-font-size-m":a>0})},t().createElement("strong",{className:Er()("exam-question-title__display-number",{"exam-question-title__display-number--indented":a>0})},`${yd(i)} `),r(n)," ",t().createElement(oy,{score:o,size:0===a?"large":"small"})))},"question-instruction":Cb,"question-grading-instruction":Ix,"question-number":pd,translation:hd,"scored-text-answer":wx,"text-answer":wx,section:Cx,"section-title":({element:n,renderChildNodes:r})=>{const{sections:i}=(0,e.useContext)(oc),{displayNumber:o}=(0,e.useContext)(cc),{t:a}=Dl();return t().createElement(t().Fragment,null,n.hasChildNodes()&&t().createElement("h2",{className:"e-grading-instructions-section-title",id:Bl(o)},i.length>1&&a("section",{displayNumber:o})," ",r(n)))},video:Ex}),Dx=()=>{const{t:e}=Dl();return t().createElement(t().Fragment,null,e("grading-instructions-page-title"))},Ox=t().memo(ac((({doc:n,annotations:r,onClickAnnotation:i,onSaveAnnotation:o,EditorComponent:a})=>{const s=n.documentElement,{date:l,dateTimeFormatter:c,dayCode:u,examCode:d,language:f,subjectLanguage:p}=(0,e.useContext)(oc),h=Ae(s,"exam-title"),g=Ae(s,"exam-grading-instruction"),m=Ae(s,"table-of-contents"),v=ag({showAnsweringInstructions:!1,showAttachmentLinks:!1,isInSidebar:!1}),b=$l((()=>jl(f,d,u)));return(0,e.useEffect)(Ol(b,f)),(0,e.useEffect)(Xl,[]),t().createElement(cs,{annotations:r,onClickAnnotation:i,onSaveAnnotation:o},t().createElement(Nx,{EditorComponent:a},t().createElement(y,{i18n:b},t().createElement("main",{className:"e-exam e-grading-instructions",lang:p},t().createElement(t().StrictMode,null),t().createElement(nc,{"aria-labelledby":Ul},t().createElement(Kl,{id:Ul},t().createElement(Dx,null)," ",h&&jx(h)),l&&t().createElement("p",null,t().createElement("strong",null,c.format(l))),g&&t().createElement(Mx,{element:g,renderChildNodes:jx}),m&&t().createElement("div",{className:"main-toc-container"},t().createElement(v,{element:m,renderChildNodes:jx}))),jx(s)))))})));function Lx({renderChildNodes:e,selected:n,element:r,questionId:i,direction:o,isCorrect:a}){const{t:s}=Dl(),l=r.getAttribute("class"),c=r.getAttribute("option-id"),u=t().createElement("div",{className:Er()("e-choice-answer-option e-column",l,{"e-choice-answer-option--selected":n})},e(r)),d=({narrow:e=!1})=>t().createElement(t().Fragment,null,t().createElement("input",{type:"radio",className:Er()("e-radio-button",{"e-column e-column--narrow":e}),name:String(i),value:c,checked:n,readOnly:!0}),u,a&&t().createElement(zb,null,s("screen-reader.correct-answer")));return"vertical"===o?t().createElement("div",{className:"e-mrg-b-1"},t().createElement("label",{className:Er()("e-columns",{"e-correct-answer-left":a,"e-columns--inline":null==we(r,["image","video"])})},t().createElement(d,{narrow:!0}))):t().createElement("div",{className:"e-column e-mrg-b-1"},t().createElement("label",{className:Er()("e-block e-text-center",{"e-correct-answer-bottom":a})},t().createElement(d,null)))}const Rx=t().memo((function({element:n,renderChildNodes:r}){var i,o;const{answersByQuestionId:a,gradingStructure:s}=(0,e.useContext)(Qv),l=Ce(n,"question-id"),c=a[l],u=n.getAttribute("direction")||"vertical",d=n.getAttribute("class"),f=Xv(s,l),p=c&&(null===(o=null===(i=null==f?void 0:f.options)||void 0===i?void 0:i.find((e=>e.id===Number(c.value))))||void 0===o?void 0:o.score),h=Ce(n,"max-score");return t().createElement(t().Fragment,null,t().createElement(ty,{score:p,maxScore:h,questionId:l}),t().createElement("div",{className:Er()("e-choice-answer",d,{"e-columns":"horizontal"===u})},Se(n,(e=>{var n;const i=Ce(e,"option-id"),o=null!=c&&Number(c.value)===i,a=null===(n=null==f?void 0:f.options)||void 0===n?void 0:n.find((e=>e.id===i));return t().createElement(Lx,{element:e,renderChildNodes:r,questionId:l,key:i,direction:u,selected:o,isCorrect:(null==a?void 0:a.correct)||!1})}))))})),Px=t().memo((function({element:n,renderChildNodes:r}){var i;const{t:o,i18n:a}=Dl(),{answersByQuestionId:s,gradingStructure:l}=(0,e.useContext)(Qv),{answers:c}=(0,e.useContext)(dd),u=Ce(n,"question-id"),d=s[u],f=Ae(n,(e=>(null==d?void 0:d.value)===e.getAttribute("option-id"))),p=Kv(),h=Xv(l,u),g=(null==h?void 0:h.options.filter((e=>e.correct)).map((e=>e.id)))||[],m=Array.from(n.children).filter((e=>g.includes(Ce(e,"option-id")))),v=f&&g.includes(Ce(f,"option-id")),y=ay(n.getAttribute("display-number")),b=d&&(null===(i=null==h?void 0:h.options.find((e=>e.id===Number(d.value))))||void 0===i?void 0:i.score)||0,x=Ce(n,"max-score");return t().createElement(t().Fragment,null,c.length>1&&t().createElement("sup",null,y),t().createElement("span",{className:Er()("e-dropdown-answer__answered",!f&&"e-dropdown-answer__no-answer",!p&&{"e-dropdown-answer__answered--correct":v,"e-dropdown-answer__answered--wrong":!v}),"data-question-id":u,"aria-description":f?void 0:a.t("examineExam.questionHasNoAnswer")},t().createElement(zb,null,o("screen-reader.answer-begin")),f&&r(f),t().createElement(zb,null,o("screen-reader.answer-end")),v&&t().createElement(zb,null,o("screen-reader.correct-answer"))),!p&&!v&&t().createElement("span",{className:"e-dropdown-answer__correct","aria-hidden":!0},m.map(((e,n)=>t().createElement(t().Fragment,{key:n},r(e),n<m.length-1&&", ")))),null!=b&&t().createElement(ty,{score:b,maxScore:x,displayNumber:y,questionId:u}))}));function zx({pregradingAnnotations:e,censoringAnnotations:n,singleGrading:r}){return e.length||n.length?t().createElement("div",{className:"e-annotation-list e-columns e-mrg-t-2"},r?t().createElement("div",{className:"e-column e-column--10"},t().createElement(Ux,{annotations:e})):t().createElement(t().Fragment,null,t().createElement("div",{className:"e-column e-column--6"},t().createElement(Ux,{i18nTitleKey:"grading.pregrading-annotations",annotations:e})),t().createElement("div",{className:"e-column e-column--6"},t().createElement(Ux,{i18nTitleKey:"grading.censor-annotations",annotations:n})))):null}const Ux=({i18nTitleKey:e,annotations:n})=>{const{t:r}=Dl();return n?t().createElement(t().Fragment,null,e&&t().createElement("h5",null,r(e)),t().createElement("ol",{className:"e-list-data e-pad-l-0 e-font-size-s"},n.map((({numbering:e,message:n})=>t().createElement("li",{"data-list-number":e,key:e},n))))):null},_x=t().memo((function(){const{answers:n}=(0,e.useContext)(dd),{scores:r,singleGrading:i}=(0,e.useContext)(Qv),o=function(e,t){const n=[];for(let r=0;r<e.length;r++){const i=t(e[r]);void 0!==i&&n.push(i)}return n}(n||[],(e=>{const t=Ce(e,"question-id"),n=$v(r,t);return n&&e&&(e=>{var t,n,r,i;return Boolean((null===(n=null===(t=null==e?void 0:e.pregrading)||void 0===t?void 0:t.annotations)||void 0===n?void 0:n.length)||(null===(i=null===(r=null==e?void 0:e.censoring)||void 0===r?void 0:r.annotations)||void 0===i?void 0:i.length))})(n)?[e,n]:void 0})),a=(e,t,r=0)=>Up(e,(([e,i])=>{var o,a,s;return null!==(s=null===(a=null===(o=i[t])||void 0===o?void 0:o.annotations)||void 0===a?void 0:a.filter((e=>e.message.length)).map(((t,i)=>{const o=`${((e,t)=>e.length>1?ay(t.getAttribute("display-number")):"")(n,e)+String(r+i+1)})`;return{numbering:o,message:t.message}})))&&void 0!==s?s:[]})),s=a(o,"pregrading"),l=a(o,"censoring",s.length);return t().createElement(zx,{pregradingAnnotations:s,censoringAnnotations:l,singleGrading:!!i})})),Bx=t().memo(fd((function({element:n,renderChildNodes:r}){var i,o;const{answersByQuestionId:a,gradingStructure:s}=(0,e.useContext)(Qv),{displayNumber:l,level:c}=(0,e.useContext)(dd),u=function(e,t){return ke(e).some((e=>{var n;return null===(n=t[Ce(e,"question-id")])||void 0===n?void 0:n.value}))}(n,a),{i18n:d}=Dl(),f=null===(i=null==s?void 0:s.questions)||void 0===i?void 0:i.find((e=>e.displayNumber===l)),p=f&&("choices"in f?f.choices[0].id:f.id),h=!!p&&(null===(o=a[p])||void 0===o?void 0:o.answerNonAnswer);return t().createElement("div",{className:Er()("e-exam-question",`e-level-${c}`,{"e-mrg-b-8 e-clearfix":0===c,"e-mrg-l-8 e-mrg-y-4":c>0,"no-answer":!u,"non-answer":h}),id:l,"aria-description":u?void 0:d.t("examineExam.questionHasNoAnswer")},r(n),t().createElement(_x,null))}))),Fx=t().memo((function({element:n,renderChildNodes:r}){const{displayNumber:i,level:o,maxAnswers:a,maxScore:s,childQuestions:l}=(0,e.useContext)(dd),c=`h${Math.min(3+o,6)}`,u=Kv();return t().createElement(t().Fragment,null,t().createElement(c,{className:Er()("exam-question-title",{"e-normal e-font-size-m":o>0})},t().createElement("strong",{className:Er()("exam-question-title__display-number",{"exam-question-title__display-number--indented":o>0})},`${yd(i)} `),r(n)," ",u&&t().createElement(oy,{score:s,size:0===o?"large":"small"})),null!=a&&l.length>0&&t().createElement("p",{className:"e-italic"},t().createElement(Nb,null),t().createElement(rg,{maxAnswers:a,childQuestions:l,elementType:"question"})))})),Gx=t().memo(uc((function({element:n,renderChildNodes:r}){const{displayNumber:i}=(0,e.useContext)(cc);return t().createElement(nc,{"aria-labelledby":Bl(i)},t().createElement("div",{className:"e-results-section-wrapper"},r(n)))}))),Zx=5;function Hx(e,t,n,r=!0){const i=[...t,...n],o=i.filter((e=>e.message));for(const[n,a]of i.entries()){const i=t.includes(a)?"pregrading":"censoring",s=o.indexOf(a)+1||void 0,l="pregrading"===i?n:n-t.length;switch(a.type){case"line":case"rect":Vx(e,a,i,l,s,r);break;default:Qx(e,a,i,l,s,r)}}}function qx(e,t){const n=e.style,r=e=>100*e+"%";"rect"===t.type?(n.left=r(t.x),n.top=r(t.y),n.right=r(1-(t.x+t.width)),n.bottom=r(1-(t.y+t.height))):(n.left=r(t.x1),n.top=r(t.y1),n.right=r(1-t.x2),n.bottom=r(1-t.y2))}function Yx(e){const t=e.parentElement;if(t instanceof HTMLSpanElement)return t;const n=De("span",{className:"e-annotation-wrapper"});return t.insertBefore(n,e),n.appendChild(e),n}function Vx(e,t,n,r,i,o){const{attachmentIndex:a}=t;return Wx(e.querySelectorAll("img")[a],o?t.message:"",t,n,r,i)}function Wx(e,t,n,r,i,o){const a=Yx(e),s=function(){const e=De("mark",{className:Er()("e-annotation e-annotation--shape",{"e-annotation--pregrading":"pregrading"===r,"e-annotation--censoring":"censoring"===r}),title:t,"data-list-index":String(i),"data-type":r,...o&&{"data-index":String(o)},...n.message&&{"data-message":n.message}});return qx(e,n),o&&e.appendChild(Jx(o,"shape",n.message)),e}();return a.appendChild(s),s}function Qx(e,t,n,r,i,o){const{startIndex:a,length:s}=t;return function e(f,p,h){var g;if(!l(f)&&!function(e){return"SUP"===e.nodeName}(f)&&!function(e){return"BR"===e.nodeName}(f)&&p>=a){const a=De("mark",{className:Er()("e-annotation",{"e-annotation--pregrading":"pregrading"===n,"e-annotation--censoring":"censoring"===n}),title:o?t.message:"","data-list-index":String(r),"data-type":n,...i&&{"data-index":String(i)},...t.message&&{"data-message":t.message}});null===(g=f.parentElement)||void 0===g||g.insertBefore(a,f);const l=d(a,f,h);l>0?e(c(a),p+s-l,l):i&&a.appendChild(Jx(i,"text",t.message))}else f instanceof Text&&p+u(f)>a&&f.splitText(a-p),e(function(e){return l(e)?e.childNodes[0]:c(e)}(f),p+u(f),h)}(e.childNodes[0],0,s);function l(e){return"MARK"===e.nodeName}function c(t){const n=t.nextSibling;if(n)return n;const r=t.parentElement;if(null===r||r===e)throw new Error("Bug: the answer seems to be too short for the current set of annotations.");return c(r)}function u(e){return e instanceof Text?e.length:function(e){return"IMG"===e.nodeName||"SPAN"===e.nodeName}(e)?1:0}function d(e,t,n){if(!t||l(t)||0===n)return n;t instanceof Text&&u(t)>0&&u(t)>n&&t.splitText(n);const r=t.nextSibling;return e.appendChild(t),d(e,r,n-u(t))}}function Jx(e,t,n){return De("sup",{className:`e-annotation__index e-annotation__index--${t}`,"data-content":n.length>Zx?`${e})`:n,"data-message":n})}const Xx=t().memo((function({displayNumber:n,score:r,value:i,answers:o,children:a}){const{t:s,i18n:l}=Dl(),c=(0,e.useRef)(null);return(0,e.useLayoutEffect)((()=>{var e,t,n,i;c.current&&Hx(c.current,null!==(t=null===(e=null==r?void 0:r.pregrading)||void 0===e?void 0:e.annotations)&&void 0!==t?t:[],null!==(i=null===(n=null==r?void 0:r.censoring)||void 0===n?void 0:n.annotations)&&void 0!==i?i:[])})),t().createElement(t().Fragment,null,n&&o.length>1&&t().createElement("sup",null,n),t().createElement("span",{className:Er()("text-answer text-answer--single-line",{"no-answer":!i}),"aria-description":i?void 0:l.t("examineExam.questionHasNoAnswer")},t().createElement(zb,null,s("screen-reader.answer-begin")),t().createElement("span",{className:"e-inline-block",ref:c},i),t().createElement(zb,null,s("screen-reader.answer-end"))),a)})),$x=t().memo((function({element:n}){const{answers:r}=(0,e.useContext)(dd),{answersByQuestionId:i,scores:o}=(0,e.useContext)(Qv),a=Ce(n,"question-id"),s=Ce(n,"max-score"),l=i[a],c=l&&l.value,u=ay(n.getAttribute("display-number")),d=$v(o,a),f=null==d?void 0:d.autograding;return t().createElement(Xx,{answers:r,displayNumber:u,value:c,score:d},t().createElement(ty,{score:null==f?void 0:f.score,maxScore:s,displayNumber:r.length>1?u:void 0,questionId:a}))}));function Kx({maxScore:e}){const{t:n}=Dl();return t().createElement(t().Fragment,null,t().createElement("span",{className:"e-result-scorecount-empty"}),e&&` / ${e} `,n("points",{count:""}))}function eI({shortCode:e}){return t().createElement("div",{className:"e-color-darkgrey e-columns e-columns--center-v"},t().createElement("span",{className:"e-font-size-xxxl e-light e-mrg-r-1"},"×"),t().createElement("span",null,e))}function tI({score:e,shortCode:n,type:r,maxScore:i,latest:o}){const{t:a}=Dl();return t().createElement("div",{className:o?"e-color-black":"e-color-darkgrey e-font-size-xs"},t().createElement(nI,{className:Er()("e-nowrap",{"e-font-size-m":o})},o?t().createElement("b",null,e):e,o&&i?` / ${i}`:""," p."),t().createElement(nI,{className:"e-result-scorecount-shortcode"},n),t().createElement(nI,{className:"e-mrg-r-0"},a(r)))}function nI({className:e,children:n}){return t().createElement("span",{className:Er()("e-mrg-r-1 e-nowrap",e)},n)}function rI({score:e}){return void 0!==e?{score:e,shortCode:"",type:"grading.pregrading-abbrev"}:null}function iI(e){return e.scores.map(((t,n)=>({score:t.score,shortCode:t.shortCode||"",type:"grading.round."+(e.scores.length-n)})))}const oI=t().memo((function({scores:n,maxScore:r,displayNumber:i,multilineAnswer:o,questionId:a}){var s,l,c,u,d;const{answers:f}=(0,e.useContext)(dd),p={answers:f,displayNumber:i,multilineAnswer:o,questionId:a},h=null===(l=null===(s=null==n?void 0:n.censoring)||void 0===s?void 0:s.nonAnswerDetails)||void 0===l?void 0:l.shortCode;return t().createElement(ey,{...p},null!=(null===(c=null==n?void 0:n.pregrading)||void 0===c?void 0:c.score)||(null===(d=null===(u=null==n?void 0:n.censoring)||void 0===u?void 0:u.scores)||void 0===d?void 0:d.length)?t().createElement(t().Fragment,null,function(e,n){var r;return[e.inspection&&(r=e.inspection,{score:r.score,shortCode:r.shortCodes?r.shortCodes.join(", "):"",type:"grading.inspection-grading-abbrev"}),...e.censoring?iI(e.censoring):[],e.pregrading&&rI(e.pregrading)].filter(Boolean).map(((e,r)=>t().createElement(tI,{key:r,...e,latest:0===r,maxScore:n})))}(n,r),h&&t().createElement(eI,{shortCode:h})):t().createElement(Kx,{maxScore:r}))})),aI=({type:n,score:r,value:i})=>{const{t:o,i18n:a}=Dl(),s=(0,e.useRef)(null);return(0,e.useLayoutEffect)((()=>{var e,t,n,i;s.current&&Hx(s.current,null!==(t=null===(e=null==r?void 0:r.pregrading)||void 0===e?void 0:e.annotations)&&void 0!==t?t:[],null!==(i=null===(n=null==r?void 0:r.censoring)||void 0===n?void 0:n.annotations)&&void 0!==i?i:[])})),t().createElement("div",{className:Er()("e-multiline-results-text-answer e-line-height-l e-pad-x-2 e-mrg-b-1",{"no-answer":!i}),"aria-description":i?void 0:a.t("examineExam.questionHasNoAnswer")},t().createElement(zb,null,o("screen-reader.answer-begin")),"rich-text"===n?t().createElement("div",{dangerouslySetInnerHTML:{__html:i||""},ref:s}):t().createElement("div",{className:"e-pre-wrap",ref:s},i),t().createElement(zb,null,o("screen-reader.answer-end")))},sI=t().memo((function({element:n}){var r;const{answers:i}=(0,e.useContext)(dd),{answersByQuestionId:o,scores:a}=(0,e.useContext)(Qv),{t:s}=Dl(),l=Ce(n,"question-id"),c=Ce(n,"max-score"),u=o[l],d=u&&u.value,f=i.length>1?ay(n.getAttribute("display-number")):void 0,p=$v(a,l),h=null===(r=null==p?void 0:p.pregrading)||void 0===r?void 0:r.comment,g=n.getAttribute("type")||"single-line",m=Ce(n,"max-length");return"rich-text"===g?t().createElement(t().Fragment,null,null!=m&&t().createElement(Gb,{maxLength:m}),t().createElement(oI,{multilineAnswer:!0,scores:p,maxScore:c,questionId:l}),t().createElement(aI,{type:g,value:d,score:p}),t().createElement(Ub,{answer:u,element:n}),h&&t().createElement(t().Fragment,null,t().createElement("h5",null,s("comment")),t().createElement("p",{className:"e-italic"},h))):t().createElement(Xx,{answers:i,score:p,displayNumber:f,value:d},t().createElement(oI,{scores:p,maxScore:c,displayNumber:f,questionId:l}))})),lI=({onEndSession:e,sessionEnded:n})=>{const{t:r}=Dl();return t().createElement("div",{className:"e-logout-container"},t().createElement("div",{className:"e-bg-color-off-white e-pad-6 shadow-box"},n?t().createElement(t().Fragment,null,t().createElement("h3",null,r("examineExam.thankYouTitle")),t().createElement("p",null,r("examineExam.shutdownComputer"),t().createElement("br",null),r("examineExam.returnUsbStick"))):t().createElement(t().Fragment,null,t().createElement("h3",null,r("examineExam.endExamTitle")),t().createElement("p",null,r("examineExam.afterInspectingYourAnswers"),t().createElement("br",null),r("examineExam.youCanNotReturnToExam"))),!n&&t().createElement("button",{id:"endSession",className:"e-button",onClick:()=>{e()}},r("examineExam.endExamTitle"))))},cI=({element:n,renderChildNodes:r,answerOptionsById:i})=>{var o;const{gradingStructure:a}=(0,e.useContext)(Qv),s=n.getAttribute("display-number"),l=Number(n.getAttribute("question-id")),c=null==a?void 0:a.questions.find((e=>e.displayNumber===s)),u=(null===(o=null==c?void 0:c.choices.find((e=>e.id===l)))||void 0===o?void 0:o.options)||[],d=null==u?void 0:u.filter((e=>e.correct)).map((e=>e.id)),f=null==d?void 0:d.map((e=>(null==i?void 0:i[e])||null)).filter(Boolean),{t:p}=Dl();return t().createElement(t().Fragment,null,t().createElement("span",{className:"droppable-title align-right"},p("dnd-answers.correct-answers")),t().createElement(iy,{renderChildNodes:r,answerOptionElements:f,correctIds:d,questionId:l,page:"results",classes:["correct-answers"]}))},uI=vs({attachment:ec,"attachment-link":pc("plain"),"attachment-links":hc("plain"),"audio-group":ec,audio:({element:e,renderChildNodes:n})=>{const r=!!Ce(e,"times"),i=Ce(e,"duration"),o=Ql(e);return r?t().createElement("div",{className:"audio e-columns e-columns--center-v e-mrg-b-2"},t().createElement("div",{className:"e-pad-1 restricted-audio-player restricted-audio-player--disabled e-columns e-columns--center-v"},t().createElement("button",{className:"restricted-audio-player__play e-column e-column--narrow",disabled:!0,onClick:()=>{}},t().createElement(qa,{icon:ns,fixedWidth:!0})),t().createElement("span",{className:"e-column e-text-right e-column"},Hu(i))),t().createElement("span",{className:"e-pad-l-2",id:o},t().createElement("em",null,"Ei kuunneltavissa"))):t().createElement(Yu,{element:e,renderChildNodes:n})},"choice-answer":Rx,"dnd-answer-container":({element:n,renderChildNodes:r})=>{const{answersByQuestionId:i,gradingStructure:o}=(0,e.useContext)(Qv),a=Te(n,"dnd-answer").filter((e=>!!we(e,"dnd-answer-title"))),s=Te(n,"dnd-answer-option"),l=a.reduce(((e,t)=>{var n;const r=t.getAttribute("question-id"),o=null===(n=i[Number(r)])||void 0===n?void 0:n.value;return{...e,[r]:o?[Number(o)]:[],root:e.root.filter((e=>e!==Number(o)))}}),{root:s.map((e=>Number(e.getAttribute("option-id"))))}),c=s.reduce(((e,t)=>({...e,[t.getAttribute("option-id")]:t})),{}),u=Te(n,"dnd-answer").filter((e=>!!we(e,"dnd-answer-title")));return t().createElement("div",{className:"e-dnd-answer-container"},u.map((e=>{var n;const i=e.getAttribute("question-id"),a=null===(n=l[i]||[])||void 0===n?void 0:n.map((e=>(null==c?void 0:c[e])||null)).filter(Boolean),s=l[i]||[];return t().createElement(t().Fragment,{key:i},t().createElement(sy,{key:i,element:e,answerOptionElements:a,renderChildNodes:r,itemIds:s,page:"results"}),o&&t().createElement(cI,{key:`${i}-correct`,element:e,renderChildNodes:r,answerOptionsById:c}))})))},"dropdown-answer":Px,formula:Ju,question:Bx,hints:ec,image:bx((({element:e})=>null!=Me(e,["choice-answer","dnd-answer-container"])))(Ku),"question-instruction":Cb,"question-number":pd,translation:hd,"question-title":Fx,section:Gx,"section-title":Rb,"text-answer":sI,"scored-text-answer":$x,"scored-text-answers":ec}),dI=()=>{const{t:e}=Dl();return e("examineExam.returnToExam")},fI=()=>{const{t:e}=Dl();return t().createElement("div",{className:"e-section examine-exam-page-instructions shadow-box"},t().createElement("h3",null,e("examineExam.checkYourAnswersTitle")),t().createElement("ul",null,t().createElement("li",null,e("examineExam.hereAreYourAnswers")),t().createElement("li",null,e("examineExam.checkYourAnswers")),t().createElement("li",null,e("examineExam.removeExcessAnswers")),t().createElement("li",null,t().createElement("span",{className:"no-answer-example"},e("examineExam.emptyAnswersAreHighlighted")),e("examineExam.thereMayBeOptionalQuestions"))))};function pI(){const{gradingText:n,totalScore:r}=(0,e.useContext)(Qv),{t:i}=Dl();return t().createElement("div",{className:"e-column--narrow"},t().createElement("table",{className:"e-table e-table--borderless e-mrg-b-0"},t().createElement("tbody",null,t().createElement("tr",null,t().createElement("th",{className:"e-pad-y-0 e-normal"},i("grading-total")),t().createElement("td",{className:"e-pad-y-0 e-semibold e-text-right"},i("points",{count:r}))),n&&t().createElement("tr",null,t().createElement("th",{className:"e-pad-y-0 e-normal"},i("grade")),t().createElement("td",{className:"e-pad-y-0 e-semibold e-text-right"},n)))))}const hI=t().memo(Jv(ac((({doc:n,returnToExam:r,endSession:i,studentSessionEnded:o=!1,isPreviewPage:a})=>{const{date:s,dateTimeFormatter:l,dayCode:c,examCode:u,language:d,resolveAttachment:f,root:p,subjectLanguage:h}=(0,e.useContext)(oc),{answersByQuestionId:g}=(0,e.useContext)(Qv),m=Ae(p,"exam-title"),v=p.getAttribute("exam-stylesheet"),b=$l((()=>jl(d,u,c)));(0,e.useEffect)(Ol(b,d)),(0,e.useEffect)(Xl,[]);const x=Kv(),I=void 0!==i,w=!x&&!a;return(0,e.useEffect)((()=>{window.location.hash=""}),[]),t().createElement(y,{i18n:b},t().createElement("main",{className:Er()("e-exam e-results",{"examine-exam-page":x,"session-ended":o}),lang:h},t().createElement(t().StrictMode,null),v&&t().createElement("link",{rel:"stylesheet",href:f(v)}),!w&&t().createElement("button",{className:"e-exam-done-return js-exam-done-return e-button",onClick:r},"« ",t().createElement(dI,null)),t().createElement("div",{className:"e-columns e-columns--bottom-v e-mrg-b-4"},m&&t().createElement(Kl,{id:"title",className:"e-column e-mrg-b-0"},uI(m),s&&`, ${l.format(s)}`),!x&&t().createElement(pI,null)),!w&&t().createElement(fI,null),t().createElement(fx,{validationErrors:Fp(Td(n),g),inExam:!1}),uI(p),(I||a)&&t().createElement(lI,{onEndSession:x?()=>{try{document.querySelectorAll("main > *:not(.e-logout-container)").forEach((e=>{const t=e;t.style.height=`${t.clientHeight}px`})),setTimeout((()=>{i()}),50)}catch(e){console.error(e)}}:()=>Promise.resolve(),sessionEnded:o})),t().createElement($h,null))})))),gI=function(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1};var mI=Math.max;const vI=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:od(n);return i<0&&(i=mI(r+i,0)),gI(e,An(t),i)};var yI=Math.max,bI=Math.min;const xI=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r-1;return void 0!==n&&(i=od(n),i=n<0?yI(r+i,0):bI(i,r-1)),gI(e,An(t),i,!0)},II=function(e,t,n){var r=e.length;return n=void 0===n?r:n,!t&&n>=r?e:Sn(e,t,n)},wI=function(e){return e!=e},TI=function(e,t,n){return t==t?function(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}(e,t,n):gI(e,wI,n)};var MI=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");var AI="\\ud800-\\udfff",EI="["+AI+"]",CI="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",NI="\\ud83c[\\udffb-\\udfff]",SI="[^"+AI+"]",kI="(?:\\ud83c[\\udde6-\\uddff]){2}",jI="[\\ud800-\\udbff][\\udc00-\\udfff]",DI="(?:"+CI+"|"+NI+")?",OI="[\\ufe0e\\ufe0f]?",LI=OI+DI+"(?:\\u200d(?:"+[SI,kI,jI].join("|")+")"+OI+DI+")*",RI="(?:"+[SI+CI+"?",CI,kI,jI,EI].join("|")+")",PI=RegExp(NI+"(?="+NI+")|"+RI+LI,"g");const zI=function(e){return function(e){return MI.test(e)}(e)?function(e){return e.match(PI)||[]}(e):function(e){return e.split("")}(e)};var UI=/^\s+/;const _I=function(e,t,n){if((e=vn(e))&&(n||void 0===t))return e.replace(UI,"");if(!e||!(t=mn(t)))return e;var r=zI(e),i=function(e,t){for(var n=-1,r=e.length;++n<r&&TI(t,e[n],0)>-1;);return n}(r,zI(t));return II(r,i).join("")},BI=function(e,t,n){if((e=vn(e))&&(n||void 0===t))return e.slice(0,nr(e)+1);if(!e||!(t=mn(t)))return e;var r=zI(e),i=function(e,t){for(var n=e.length;n--&&TI(t,e[n],0)>-1;);return n}(r,zI(t))+1;return II(r,0,i).join("")};function FI(e,t=!1){const n=(new DOMParser).parseFromString(e,"application/xml");return t||Te(n.documentElement,["choice-answer","dropdown-answer"],!0).filter((e=>"fixed"!==Ee(e,"ordering"))).forEach(GI),Te(n.documentElement,"reference").forEach((e=>{Te(e,(()=>!0),!1).forEach(ZI)})),n}function GI(e){for(let t=e.children.length;t>0;t--){const n=Math.floor(Math.random()*t);e.appendChild(e.children[n])}const t=Ae(e,(e=>"no-answer"===Ee(e,"type")));t&&e.appendChild(t)}function ZI(e){const t=e=>/\S/.test(e.textContent),n=(()=>{const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_TEXT);for(;n.nextNode();)t.push(n.currentNode);return t})(),r=vI(n,t),i=xI(n,t);-1!==r&&(n.slice(0,r).forEach((e=>e.remove())),n[r].textContent=_I(n[r].textContent)),-1!==i&&(n.slice(i+1).forEach((e=>e.remove())),n[i].textContent=BI(n[i].textContent))}function HI({characterCount:e,maxLength:n}){const{t:r}=Dl(),i=(o=e,!(a=n)||o<=a?0:Math.floor(100*o/a-100));var o,a;return t().createElement("div",{className:"e-font-size-xs e-grading-answer-length"},r("answer-length",{count:e}),i>0?t().createElement("span",{className:"e-grading-answer-max-length-surplus"},r("max-length-surplus",{maxLength:n,percentage:i})):"")}const qI=function({pregrading:e,censoring:n,singleGrading:r}){const i=(e,t=0)=>{var n;return null!==(n=e.filter((e=>e.message.length)).map(((e,n)=>({numbering:`${String(t+n+1)})`,message:e.message}))))&&void 0!==n?n:[]},o=i(e),a=i(n,o.length);return t().createElement(zx,{pregradingAnnotations:o,censoringAnnotations:a,singleGrading:r})};let YI;function VI(e){const t=(null==e?void 0:e.querySelectorAll("img"))||[];YI=t.length,t.forEach((e=>{e.complete?setTimeout((()=>WI(e)),0):e.addEventListener("load",(()=>WI(e)))}))}function WI(e){YI--;const t=e.parentElement,n=null==t?void 0:t.nextSibling,r=n instanceof HTMLElement&&n.classList.contains("full-size-image"),i=e.naturalWidth>e.width;null==t||t.classList.toggle("e-large-image",i),i?r||null==t||t.insertAdjacentHTML("afterend",`<div class="full-size-image"><a target="_blank" href="${e.src}"></a>`):r&&(null==n||n.remove())}function QI(n){const r=$l((()=>jl(n.language)));return(0,e.useEffect)(Ol(r,n.language)),t().createElement(y,{i18n:r},t().createElement(JI,{...n}))}function JI({answer:{type:n,characterCount:r,value:i},language:o,isReadOnly:a,gradingRole:s,annotations:l,saveAnnotations:c,maxLength:u,popupTopMargin:d=25}){const f=(0,e.useRef)(null),p=(0,e.useRef)(null),h=(0,e.useRef)(null),g=(0,e.useRef)(null);let m,v;const y={start:void 0,element:void 0,img:void 0};let b,x,I,w,T,M=!1;const[A,E]=(0,e.useState)(0),[C,N]=(0,e.useState)(0),[S,k]=(0,e.useState)(0);(0,e.useEffect)((()=>{const e=document.querySelectorAll(".e-grading-answer img[src]");function t(){E((e=>e+1))}function n(e){console.error("Image failed to load:",e.src),k((e=>e+1)),e.alt="Image failed to load",e.style.border="1px solid red"}return N((null==e?void 0:e.length)||0),E(0),k(0),null==e||e.forEach((e=>{e instanceof HTMLImageElement&&(e.complete?t():(e.addEventListener("load",t),e.addEventListener("error",(()=>n(e)))))})),()=>{null==e||e.forEach((e=>{e instanceof HTMLImageElement&&(e.removeEventListener("load",t),e.removeEventListener("error",(()=>n(e))))}))}}),[i]),(0,e.useLayoutEffect)((()=>(f.current&&g.current&&p.current&&(v=l,br(g.current,!1),br(p.current,!1),H(v),f.current.setAttribute("lang",o),document.addEventListener("selectionchange",F)),window.onresize=()=>{clearTimeout(w),w=setTimeout((()=>VI(f.current)),1e3)},()=>{window.removeEventListener("keydown",q),window.removeEventListener("mouseup",B),window.removeEventListener("mousemove",Z)})));const{t:j}=Dl(),D=C>0&&A!==C,O=S>0;return t().createElement("div",{onClick:e=>function(e){var t;const n=e.target;if(n instanceof HTMLElement)if("MARK"===n.tagName)y.element||P(n);else if("LI"===n.tagName){const e=null===(t=n.dataset.listNumber)||void 0===t?void 0:t.replace(")",""),r=document.querySelector(`.e-annotation[data-index="${e}"]`);P(r),r.scrollIntoView({block:"center",behavior:"smooth"})}else b&&L()}(e),className:"e-grading-answer-wrapper"},D&&t().createElement("div",{className:"loading-images"},t().createElement("span",{className:"loading"},j("grading.loading-images")," (",A,"/",C,")"),O&&t().createElement("span",{className:"failed"},j("grading.some-images-failed"))),t().createElement("div",{className:"e-grading-answer e-line-height-l e-mrg-b-1",ref:f,onMouseDown:e=>function(e){var t;if(a||0!==e.button)return;window.addEventListener("mouseup",B);const n=(null===(t=e.target.closest(".e-annotation-wrapper"))||void 0===t?void 0:t.querySelector("img"))||void 0;n&&(n.addEventListener("dragstart",yr),y.start=function(e,t){const n=t.closest(".e-grading-answer"),r=Array.from(n.querySelectorAll("img")).findIndex((e=>e===t)),i=n.querySelectorAll(".e-annotation-wrapper").item(r).getBoundingClientRect(),o=e.clientX,a=vr((o-i.left)/i.width),s=e.clientY;return{attachmentIndex:r,bbox:i,startX:a,startY:vr((s-i.top)/i.height),clientX:o,clientY:s}}(e,n),y.img=n,window.addEventListener("mousemove",Z))}(e),onMouseOver:e=>function(e){const t=e.closest("mark");!t||M||hr()&&!a||y.element||P(t)}(e.target)}),t().createElement(HI,{characterCount:r,maxLength:u}),t().createElement(qI,{censoring:l.censoring,pregrading:l.pregrading,singleGrading:"pregrading"===s}),t().createElement("form",{style:{display:"none"},ref:p,className:"e-grading-answer-popup e-grading-answer-add-annotation",onSubmit:e=>function(e){e.preventDefault();const t=h.current.value;b?v[b.role][b.index].message=t:v[s]=gr(f.current,{...m,message:t},v[s]||[]),br(p.current,!1),c(v)}(e)},t().createElement("input",{onFocus:()=>function(){if(!xr()&&f.current){const e={...v};e[s]=gr(f.current,m,v[s]),H(e)}}(),name:"message",className:"e-grading-answer-add-annotation-text",type:"text",ref:h}),t().createElement("button",{className:"e-grading-answer-add-annotation-button",type:"submit","data-i18n":"arpa.annotate"},j("grading.annotate")),t().createElement("button",{className:"e-grading-answer-close-popup",onClick:e=>{e.preventDefault(),_()}},"×")),t().createElement("div",{style:{display:"none"},ref:g,className:"e-grading-answer-tooltip e-grading-answer-popup",onMouseOver:function(){clearTimeout(I)},onMouseOut:L},t().createElement("span",{onClick:e=>function(e){e.target.closest(".editable")&&(br(g.current,!1),U(x,b.message))}(e),className:"e-grading-answer-tooltip-label"}),t().createElement("button",{onClick:e=>function(e){e.preventDefault(),L(),v[b.role].splice(b.index,1),b=void 0,c(v)}(e),className:"e-grading-answer-tooltip-remove"},"×")));function L(){I=setTimeout((()=>{br(g.current,!1)}),400)}function R(e){"MARK"===e.target.tagName&&(clearTimeout(I),L()),f.current.removeEventListener("mouseout",R)}function P(e){clearTimeout(I);const t=g.current,{type:n,listIndex:r,message:i}=e.dataset;t.classList.toggle("editable",!a&&n===s),x=e.getBoundingClientRect(),pr(x,f.current,t,d),t.querySelector(".e-grading-answer-tooltip-label").textContent=i||"–",b={index:Number(r),role:n,message:i||""},f.current.addEventListener("mouseout",R)}function z(e,t){b=void 0,U(e,t)}function U(e,t){window.removeEventListener("keydown",q),pr(e,f.current,p.current,d);const n=h.current;n.value=t,n.focus(),M=!0,window.addEventListener("keydown",q)}function _(){m=void 0,y.element=void 0,y.img=void 0,M=!1,window.removeEventListener("keydown",q),br(p.current,!1),H(v)}function B(){var e,t;if(null===(e=y.img)||void 0===e||e.removeEventListener("dragstart",yr),window.removeEventListener("mousemove",Z),window.removeEventListener("mouseup",B),y.element)return void z(null===(t=y.element)||void 0===t?void 0:t.getBoundingClientRect(),"");const n=window.getSelection();if(n&&null!==f.current&&hr()){const e=n.getRangeAt(0),t=ur(f.current,e);if(!t)return;const r=dr(v[s],t.startIndex,t.length);m={...t,type:"text",message:r},z(e.getBoundingClientRect(),r);const i={...v};i[s]=gr(f.current,m,v[s]),H(i)}}function F(){xr()||(clearTimeout(T),T=setTimeout(G,500))}function G(){const e=window.getSelection();if(e&&null!==f.current&&hr()){const t=e.getRangeAt(0),n=ur(f.current,t);if(!n)return;const r=dr(v[s],n.startIndex,n.length);M=!0,h.current.value=r,pr(t.getBoundingClientRect(),f.current,p.current,d),m={...n,type:"text",message:r}}}function Z(e){yr(e),m=function(e,{bbox:t,attachmentIndex:n,startX:r,startY:i,clientX:o,clientY:a}){const s=vr((e.clientX-t.left)/t.width),l=vr((e.clientY-t.top)/t.height),c=Math.abs(o-e.clientX)<=10,u=Math.abs(a-e.clientY)<=10;switch(c||u?"line":"rect"){case"rect":return{type:"rect",attachmentIndex:n,x:Math.min(r,s),y:Math.min(i,l),width:Math.abs(s-r),height:Math.abs(l-i),message:""};case"line":return{type:"line",attachmentIndex:n,x1:c?r:Math.min(r,s),y1:u?i:Math.min(i,l),x2:c?r:Math.max(r,s),y2:u?i:Math.max(i,l),message:""}}}(e,y.start),y.element?qx(y.element,m):y.element=Wx(y.img,"",m,s,999)}function H(e){const t=f.current;"richText"===n?(t.innerHTML=i,t.querySelectorAll("img").forEach(Yx),VI(t)):t.textContent=i,Hx(t,e.pregrading,e.censoring,!1)}function q(e){"Escape"===e.key&&M&&(e.stopPropagation(),_())}}})(),s})()));
366
+ `},3858:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SET_THEORY=t.GEOMETRY=t.ALGEBRA=t.BASIC=void 0,t.BASIC=[{label:"°",latex:"\\degree"},{label:"·",latex:"\\cdot"},{label:"×",latex:"\\times"},{label:"±",latex:"\\pm"},{label:"∞",latex:"\\infty"},{label:"²",latex:"^2"},{label:"³",latex:"^3"},{label:"½",latex:"\\frac{1}{2}"},{label:"⅓",latex:"\\frac{1}{3}"},{label:"π",latex:"\\pi"},{label:"‰"},{label:"α",latex:"\\alpha"},{label:"β",latex:"\\beta"},{label:"Γ",latex:"\\Gamma"},{label:"γ",latex:"\\gamma"},{label:"Δ",latex:"\\Delta"},{label:"δ",latex:"\\delta"},{label:"ε",latex:"\\varepsilon"},{label:"ζ",latex:"\\zeta"},{label:"η",latex:"\\eta"},{label:"θ",latex:"\\theta"},{label:"ϑ",latex:"\\vartheta"},{label:"ι",latex:"\\iota"},{label:"κ",latex:"\\kappa"},{label:"Λ",latex:"\\Lambda"},{label:"λ",latex:"\\lambda"},{label:"µ",latex:"\\mu"},{label:"ν",latex:"\\nu"},{label:"Ξ",latex:"\\Xi"},{label:"ξ",latex:"\\xi"},{label:"∏",latex:"\\Pi"},{label:"ρ",latex:"\\rho"},{label:"∑",latex:"\\Sigma"},{label:"σ",latex:"\\sigma"},{label:"τ",latex:"\\tau"},{label:"Υ",latex:"\\Upsilon"},{label:"υ",latex:"\\upsilon"},{label:"Φ",latex:"\\Phi"},{label:"ϕ",latex:"\\phi"},{label:"χ",latex:"\\chi"},{label:"Ψ",latex:"\\Psi"},{label:"ψ",latex:"\\psi"},{label:"Ω",latex:"\\Omega"},{label:"ω",latex:"\\omega"},{label:"∂",latex:"\\partial"},{label:"φ",latex:"\\varphi"}],t.ALGEBRA=[{label:"≠",latex:"\\neq"},{label:"≈",latex:"\\approx"},{label:"≤",latex:"\\leq"},{label:"≥",latex:"\\geq"},{label:"<"},{label:">"},{label:"∼",latex:"\\sim"},{label:"≡",latex:"\\equiv"},{label:"≢",latex:"\\not\\equiv"},{label:"∘",latex:"\\circ"},{label:"…",latex:"\\ldots"},{label:"∝",latex:"\\propto"}],t.GEOMETRY=[{label:"∢",latex:"\\sphericalangle"},{label:"|",latex:"\\mid"},{label:"‖",latex:"\\parallel"},{label:"⇌",latex:"\\xrightleftharpoons"},{label:"⇅"},{label:"∠",latex:"\\angle"},{label:"↑",latex:"\\uparrow"},{label:"↗",latex:"\\nearrow"},{label:"↘",latex:"\\searrow"},{label:"↓",latex:"\\downarrow"},{label:"↔",latex:"\\leftrightarrow"},{label:"⊥",latex:"\\perp"}],t.SET_THEORY=[{label:"→",latex:"\\rightarrow"},{label:"⇒",latex:"\\Rightarrow"},{label:"⇔",latex:"\\Leftrightarrow"},{label:"∈",latex:"\\in"},{label:"ℤ",latex:"\\mathbb{Z}"},{label:"ℝ",latex:"\\mathbb{R}"},{label:"∃",latex:"\\exists"},{label:"∀",latex:"\\forall"},{label:"ℕ",latex:"\\mathbb{N}"},{label:"ℚ",latex:"\\mathbb{Q}"},{label:"∩",latex:"\\cap"},{label:"∪",latex:"\\cup"},{label:"∖",latex:"\\setminus"},{label:"⊂",latex:"\\subset"},{label:"⊄",latex:"\\notsubset"},{label:"∉",latex:"\\notin"},{label:"∅",latex:"\\empty"},{label:"∧",latex:"\\and"},{label:"∨",latex:"\\or"},{label:"¬",latex:"\\neg"},{label:"∇",latex:"\\nabla"}]},5064:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{action:"\\sqrt",label:"\\sqrt{X}",svg:"data:image/svg+xml;base64,PHN2ZyB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgd2lkdGg9IjMuNzQ0ZXgiIGhlaWdodD0iMi44NDNleCIgc3R5bGU9InZlcnRpY2FsLWFsaWduOiAtMC44MzhleDsiIHZpZXdCb3g9IjAgLTg2My4xIDE2MTIgMTIyMy45IiByb2xlPSJpbWciIGZvY3VzYWJsZT0iZmFsc2UiIH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MzhjLTEwIDIgLTM2IDIgLTU0IDJjLTE1MSAwIC0xNjYgLTMzIC0xODAgLTE5NGgtMjVsMTkgMjI1IGg2MTFaIj48L3BhdGg+CjwvZGVmcz4KPGcgc3Ryb2tlPSJjdXJyZW50Q29sb3IiIGZpbGw9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIwIiB0cmFuc2Zvcm09Im1hdHJpeCgxIDAgMCAtMSAwIDApIiBhcmlhLWhpZGRlbj0idHJ1ZSI+CiA8dXNlIHhsaW5rOmhyZWY9IiNFMS1MQVRJTk1PREVSTk1BSU4tNTQiIHg9IjAiIHk9IjAiPjwvdXNlPgo8L2c+Cjwvc3ZnPg=="}]},2959:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useKeyboardEventListener=void 0;const r=n(5442);t.useKeyboardEventListener=(e,t,n,i=!0)=>{(0,r.useEffect)((()=>{const r=r=>{(!t||t&&r.ctrlKey)&&r.key.toLowerCase()===e.toLowerCase()&&(i&&r.preventDefault(),n(r))};return window.addEventListener("keydown",r),()=>{window.removeEventListener("keydown",r)}}),[e,n])}},2613:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){const t=(0,c.default)(),[n,r]=(0,l.useState)(null),[i,o]=(0,l.useState)(e.latex),a=(0,l.useRef)(null),s=(0,l.useRef)(i),d=(0,l.useCallback)((function(t){if(!t)return;const n=u.MathField(t,{handlers:{edit:function(t){var n,r;if(t.el().contains(document.activeElement)){const t=null===(n=a.current)||void 0===n?void 0:n.latex();void 0!==t&&(null===(r=e.onChange)||void 0===r||r.call(e,s.current,t),o(t),s.current=t)}},enter:function(){var t,n;e.onEnter(null!==(n=null===(t=a.current)||void 0===t?void 0:t.latex())&&void 0!==n?n:"")}}});n.latex(e.latex),r(n),a.current=n}),[]);return(0,l.useEffect)((function(){n&&n.latex()!=e.latex&&(null==n||n.latex(e.latex),t())}),[n,e.latex]),{ref:d,mq:n,isError:""===(null==n?void 0:n.latex())&&""!==e.latex,lastValue:i}};const s=o(n(5968)),l=n(5442),c=a(n(9957)),u=s.getInterface(2)},9957:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){const[e,t]=(0,r.useState)(0);return()=>t((e=>(e+1)%(Number.MAX_SAFE_INTEGER-1)))};const r=n(5442)},8115:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(1085),o=n(5442),a=r(n(7204)),s=n(2373),l=(0,o.forwardRef)(((e,t)=>{const{allowedFileTypes:n,baseUrl:r,getPasteSource:l,initialValue:c,language:u,onValueChange:d,textAreaProps:f,toolbarRoot:p}=e,[h,g]=(0,o.useState)(p),m=(0,o.useRef)(null);return(0,o.useEffect)((()=>{p?g(p):m.current&&g(m.current)}),[p,m]),(0,i.jsxs)(s.EditorStateProvider,{allowedFileTypes:n,baseUrl:r,getPasteSource:l,initialValue:c,language:u,onValueChange:d,children:[p?null:(0,i.jsx)("div",{ref:m,className:"rich-text-editor-toolbar-root"}),(0,i.jsx)(a.default,Object.assign({},f,{toolbarRoot:h,ref:t}))]})}));t.default=l},6482:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){const[e,t]=(0,r.useState)([]),[n,i]=(0,r.useState)(0),o=(0,r.useRef)(e),a=(0,r.useRef)(n),s=e=>{o.current=e,t(e)},l=e=>{a.current=e,i(e)};return{canUndo:0!==n,canRedo:n<e.length-1,write:e=>{if(e===o.current.at(a.current))return;const t=[...o.current.slice(0,a.current+1),e];s(t),l(t.length-1)},clear:()=>{s([""]),l(0)},undo:()=>{const e=a.current-1;if(e<0)return;const t=o.current.at(e);return l(e),t},redo:()=>{const e=a.current+1;if(e>=o.current.length)return;const t=o.current.at(e);return l(e),t}}};const r=n(5442)},2373:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){const e=(0,o.useContext)(p);if(!e)throw Error("Tried to use Editor State Context outside a Provider");return e},t.EditorStateProvider=function({children:e,language:t="FI",getPasteSource:n=m,allowedFileTypes:r=["image/png","image/jpeg"],onValueChange:h=(()=>{}),initialValue:y="",baseUrl:b=""}){var x;const[I,w]=(0,o.useState)(!1),[T,M]=(0,o.useState)(!1),[A,E]=(0,o.useState)(!1),[C,N]=(0,o.useState)(!1),[S,k]=(0,o.useState)(null),[j,D]=(0,o.useState)(!1),O=null!==(x=new URL(window.location.href).searchParams.get("forceToolbars"))&&void 0!==x?x:"0",[L,R]=(0,o.useState)(null),P=(0,a.default)(),z=(0,a.default)(),U=(0,o.useRef)(null),_={FI:c.default,SV:u.default}[t];function B(e,t,n){function r(n,r){P.clear(),k(null),M(!1),w(!1),Y(!0,!0),r&&v(e,r),t.classList.remove("active"),e.remove(),n||t.remove()}const o=(0,d.createPortal)((0,i.jsx)(s.default,Object.assign({onOpen:function(e){P.clear(),k(e),w(!0),M(!0),t.classList.add("active")},onBlur:r,onChange:function(e){P.write(e)},onEnter:function(e){t&&Z(t),r(e)},errorText:_.editor.render_error},n)),e);R([e,o])}const F=e=>t=>{e.setAttribute("src",`${b}/math.svg?latex=${encodeURIComponent(t)}`),e.setAttribute("alt",t)};function G(){const e=document.createElement("img");return e.addEventListener("click",(t=>function(e,t){var n;const r=e.parentElement;t.stopPropagation(),t.preventDefault();const i=(0,l.createMathStub)(g());r?r.insertBefore(i,e.nextSibling):null===(n=U.current)||void 0===n||n.appendChild(i),B(i,e,{initialLatex:e.getAttribute("alt"),onLatexUpdate:F(e)})}(e,t))),e.setAttribute("initialized",""),e.setAttribute("src",""),e.classList.add("equation"),e}function Z(e){const t=e.closest("div"),n=G(),r=(0,l.createMathStub)(g(),!1,n),i=e.nextSibling;t?(t.insertBefore(document.createElement("br"),i),t.insertBefore(n,i),t.insertBefore(r,i),B(r,n,{onLatexUpdate:F(n)})):console.error("parent element not found for math editor")}function H(){U.current&&Array.from(U.current.querySelectorAll('img[src*="/math.svg?"][alt]:not([initialized])')).forEach((e=>{var t;const n=G(),r=e.getAttribute("src");if(r){const{origin:e,pathname:t,search:i}=new URL(r,b||document.location.toString());e!==b?n.setAttribute("src",`${b}${t}${i}`):n.setAttribute("src",r)}n.setAttribute("alt",null!==(t=e.getAttribute("alt"))&&void 0!==t?t:""),e.replaceWith(n)}))}const q=(0,f.debounce)((e=>z.write(e)),500);function Y(e=!0,t=!1){setTimeout((()=>{var n;const r=null===(n=U.current)||void 0===n?void 0:n.innerHTML;if(void 0!==r){const n=(0,f.getAnswer)(r);h(n),e&&(t?z.write(n.answerHtml):q(n.answerHtml))}}),0)}return(0,o.useEffect)((()=>{j||null===U.current||(y&&(U.current.innerHTML=y),setTimeout((()=>{H(),D(!0),U.current&&z.write(U.current.innerHTML)}),0))}),[j,y,U.current,z]),(0,i.jsx)(p.Provider,{value:{isToolbarOpen:"0"!==O||I,isMathToolbarOpen:"2"===O||T,showToolbar:()=>w(!0),hideToolbar:()=>w(!1),isToolbarExpanded:A,expandToolbar:()=>E(!0),collapseToolbar:()=>E(!1),isHelpDialogOpen:C,showHelpDialog:()=>N(!0),hideHelpDialog:()=>N(!1),activeMathEditor:S,setActiveMathEditor:k,ref:U,mathEditorPortal:L,spawnMathEditorAtCursor:function(){const e=G();B((0,l.createMathStub)(g(),!0,e),e,{onLatexUpdate:F(e)})},spawnMathEditorInNewLine:Z,initMathImages:H,canUndoEquation:P.canUndo,canRedoEquation:P.canRedo,undoEquation:P.undo,redoEquation:P.redo,canUndoEditor:z.canUndo,canRedoEditor:z.canRedo,undoEditor:z.undo,redoEditor:z.redo,t:_,handlePastedImage:n,allowedFileTypes:r,onAnswerChange:Y,initialValue:y,baseUrl:b},children:e})};const i=n(1085),o=n(5442),a=r(n(6482)),s=r(n(3671)),l=n(7469),c=r(n(1414)),u=r(n(42)),d=n(6003),f=n(2127),p=(0,o.createContext)(null);let h=0;const g=()=>{const e=h;return h=e+1,e},m=e=>new Promise((t=>{const n=new FileReader;n.onload=e=>t(n.result),n.readAsDataURL(e)})),v=(e,t="after")=>{const n=window.getSelection(),r=document.createRange();"before"===t?r.setStartBefore(e):r.setStartAfter(e),r.collapse(!0),null==n||n.removeAllRanges(),null==n||n.addRange(r)}},2127:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getAnswer=t.eventHandlerWithoutFocusLoss=void 0,t.debounce=function(e,t){let n=null;return function(...r){n&&"number"==typeof t&&clearTimeout(n),n=setTimeout((()=>{e(...r)}),t)}},t.getCursorPosition=function(e){const t=window.getSelection();if(!t||0===t.rangeCount)return null;const n=t.getRangeAt(0),r=[];let i=n.startContainer;for(;i&&i!==e;){const e=i.parentNode;if(!e)break;r.push(Array.from(e.childNodes).indexOf(i)),i=e}return{path:r,offset:n.startOffset}},t.restoreCursorPosition=function(e,t){var n,r;const i=document.createRange();try{if(!t)return;let o=e;for(const e of t.path){if(!(o&&o.childNodes[e]instanceof Node))return;o=o.childNodes[e]}const a=null!==(r=null===(n=null==o?void 0:o.textContent)||void 0===n?void 0:n.length)&&void 0!==r?r:0,s=Math.min(t.offset,a);i.setStart(o,s),i.collapse(!0)}catch(t){i.selectNodeContents(e),i.collapse(!1)}const o=window.getSelection();o&&(o.removeAllRanges(),o.addRange(i))};const r=n(7772);t.eventHandlerWithoutFocusLoss=e=>t=>(e&&e(),t.preventDefault(),t.stopPropagation(),!1),t.getAnswer=e=>{const t=(0,r.sanitize)(e,{transformTags:{img:(e,t)=>t.src?{tagName:e,attribs:t}:{tagName:"",attribs:{}},span:(e,t)=>"math-editor-wrapper"!==t.class?{tagName:e,attribs:t}:{tagName:"",attribs:{}}}}),n=(new DOMParser).parseFromString(t,"text/html").body,a=Array.from(n.childNodes).map((e=>"BR"===e.nodeName?"\n":e.textContent)).join(""),s=n.querySelectorAll(':scope > img:not([src*="/math.svg?"])'),l=n.querySelectorAll("span.math-editor-wrapper").length;return{answerHtml:0===(null==a?void 0:a.trim().length)&&0===s.length&&l>0?"":i(t),answerText:o(null!=a?a:""),imageCount:s.length}};const i=e=>e.replace(/^(\n|<br ?\/?>)*/g,"").replace(/(\s|<br ?\/?>)*$/g,""),o=e=>e.replace(/^(\n)*/g,"").replace(/(\s)*$/g,"")},7469:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MATH_EDITOR_CLASS=void 0,t.createMathStub=function(e,n=!1,r){const i=document.createElement("span");if(i.className=t.MATH_EDITOR_CLASS,i.id=`math-editor-${e}`,i.contentEditable="false",i.style.display="contents",n){const e=window.getSelection();if(!e||0===e.rangeCount)return i;const n=e.getRangeAt(0);n.deleteContents(),n.insertNode(i),r&&n.insertNode(r);const o=i.parentNode;o.className===t.MATH_EDITOR_CLASS&&o.insertAdjacentElement(i.nextSibling?"beforebegin":"afterend",i),e.removeAllRanges(),n.setStartAfter(i),n.setEndAfter(i),e.addRange(n)}return i},t.MATH_EDITOR_CLASS="math-editor-wrapper"},7772:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.sanitize=function(e,t){return[e=>(0,i.default)(e,Object.assign(Object.assign(Object.assign({},o),{allowedTags:[...o.allowedTags,"div","p"],allowedSchemes:["data","http","https"]}),t)),e=>function(e){return e.replace(new RegExp(document.location.origin,"g"),"")}(e),e=>function(e){var t;const n=document.createElement("div");n.innerHTML=e;do{let e;for(let r=0;r<n.childNodes.length;r++){const i=n.childNodes[r];if(a(i)){for(void 0!==e&&e.nodeType===Node.TEXT_NODE&&/\S/.test(null!==(t=e.textContent)&&void 0!==t?t:"")&&n.insertBefore(document.createElement("br"),i),i.lastChild&&"BR"!==i.lastChild.nodeName&&i.insertBefore(document.createElement("br"),null);i.childNodes.length&&null!==i.firstChild;)n.insertBefore(i.firstChild,i);n.removeChild(i)}e=i}}while(Array.prototype.some.call(n.childNodes,(e=>a(e))));return n.innerHTML}(e)].reduce(((e,t)=>t(e)),e)};const i=r(n(7521)),o={allowedTags:["img","br","span"],allowedAttributes:{img:["src","alt"]},allowedSchemes:["data"]};function a(e){return"DIV"===e.nodeName||"P"===e.nodeName}},7521:(e,t,n)=>{const r=n(5482),i=n(2189),{isPlainObject:o}=n(993),a=n(2743),s=n(8287),{parse:l}=n(9274),c=["img","audio","video","picture","svg","object","map","iframe","embed"],u=["script","style"];function d(e,t){e&&Object.keys(e).forEach((function(n){t(e[n],n)}))}function f(e,t){return{}.hasOwnProperty.call(e,t)}function p(e,t){const n=[];return d(e,(function(e){t(e)&&n.push(e)})),n}e.exports=g;const h=/^[^\0\t\n\f\r /<=>]+$/;function g(e,t,n){if(null==e)return"";"number"==typeof e&&(e=e.toString());let v="",y="";function b(e,t){const n=this;this.tag=e,this.attribs=t||{},this.tagPosition=v.length,this.text="",this.mediaChildren=[],this.updateParentNodeText=function(){k.length&&(k[k.length-1].text+=n.text)},this.updateParentNodeMediaChildren=function(){k.length&&c.includes(this.tag)&&k[k.length-1].mediaChildren.push(this.tag)}}(t=Object.assign({},g.defaults,t)).parser=Object.assign({},m,t.parser);const x=function(e){return!1===t.allowedTags||(t.allowedTags||[]).indexOf(e)>-1};u.forEach((function(e){x(e)&&!t.allowVulnerableTags&&console.warn(`\n\n⚠️ Your \`allowedTags\` option includes, \`${e}\`, which is inherently\nvulnerable to XSS attacks. Please remove it from \`allowedTags\`.\nOr, to disable this warning, add the \`allowVulnerableTags\` option\nand ensure you are accounting for this risk.\n\n`)}));const I=t.nonTextTags||["script","style","textarea","option"];let w,T;t.allowedAttributes&&(w={},T={},d(t.allowedAttributes,(function(e,t){w[t]=[];const n=[];e.forEach((function(e){"string"==typeof e&&e.indexOf("*")>=0?n.push(i(e).replace(/\\\*/g,".*")):w[t].push(e)})),n.length&&(T[t]=new RegExp("^("+n.join("|")+")$"))})));const M={},A={},E={};d(t.allowedClasses,(function(e,t){if(w&&(f(w,t)||(w[t]=[]),w[t].push("class")),M[t]=e,Array.isArray(e)){const n=[];M[t]=[],E[t]=[],e.forEach((function(e){"string"==typeof e&&e.indexOf("*")>=0?n.push(i(e).replace(/\\\*/g,".*")):e instanceof RegExp?E[t].push(e):M[t].push(e)})),n.length&&(A[t]=new RegExp("^("+n.join("|")+")$"))}}));const C={};let N,S,k,j,D,O,L;d(t.transformTags,(function(e,t){let n;"function"==typeof e?n=e:"string"==typeof e&&(n=g.simpleTransform(e)),"*"===t?N=n:C[t]=n}));let R=!1;z();const P=new r.Parser({onopentag:function(e,n){if(t.enforceHtmlBoundary&&"html"===e&&z(),O)return void L++;const r=new b(e,n);k.push(r);let i=!1;const c=!!r.text;let u;if(f(C,e)&&(u=C[e](e,n),r.attribs=n=u.attribs,void 0!==u.text&&(r.innerText=u.text),e!==u.tagName&&(r.name=e=u.tagName,D[S]=u.tagName)),N&&(u=N(e,n),r.attribs=n=u.attribs,e!==u.tagName&&(r.name=e=u.tagName,D[S]=u.tagName)),(!x(e)||"recursiveEscape"===t.disallowedTagsMode&&!function(e){for(const t in e)if(f(e,t))return!1;return!0}(j)||null!=t.nestingLimit&&S>=t.nestingLimit)&&(i=!0,j[S]=!0,"discard"!==t.disallowedTagsMode&&"completelyDiscard"!==t.disallowedTagsMode||-1!==I.indexOf(e)&&(O=!0,L=1),j[S]=!0),S++,i){if("discard"===t.disallowedTagsMode||"completelyDiscard"===t.disallowedTagsMode)return;y=v,v=""}v+="<"+e,"script"===e&&(t.allowedScriptHostnames||t.allowedScriptDomains)&&(r.innerText=""),(!w||f(w,e)||w["*"])&&d(n,(function(n,i){if(!h.test(i))return void delete r.attribs[i];if(""===n&&!t.allowedEmptyAttributes.includes(i)&&(t.nonBooleanAttributes.includes(i)||t.nonBooleanAttributes.includes("*")))return void delete r.attribs[i];let c=!1;if(!w||f(w,e)&&-1!==w[e].indexOf(i)||w["*"]&&-1!==w["*"].indexOf(i)||f(T,e)&&T[e].test(i)||T["*"]&&T["*"].test(i))c=!0;else if(w&&w[e])for(const t of w[e])if(o(t)&&t.name&&t.name===i){c=!0;let e="";if(!0===t.multiple){const r=n.split(" ");for(const n of r)-1!==t.values.indexOf(n)&&(""===e?e=n:e+=" "+n)}else t.values.indexOf(n)>=0&&(e=n);n=e}if(c){if(-1!==t.allowedSchemesAppliedToAttributes.indexOf(i)&&_(e,n))return void delete r.attribs[i];if("script"===e&&"src"===i){let e=!0;try{const r=B(n);if(t.allowedScriptHostnames||t.allowedScriptDomains){const n=(t.allowedScriptHostnames||[]).find((function(e){return e===r.url.hostname})),i=(t.allowedScriptDomains||[]).find((function(e){return r.url.hostname===e||r.url.hostname.endsWith(`.${e}`)}));e=n||i}}catch(t){e=!1}if(!e)return void delete r.attribs[i]}if("iframe"===e&&"src"===i){let e=!0;try{const r=B(n);if(r.isRelativeUrl)e=f(t,"allowIframeRelativeUrls")?t.allowIframeRelativeUrls:!t.allowedIframeHostnames&&!t.allowedIframeDomains;else if(t.allowedIframeHostnames||t.allowedIframeDomains){const n=(t.allowedIframeHostnames||[]).find((function(e){return e===r.url.hostname})),i=(t.allowedIframeDomains||[]).find((function(e){return r.url.hostname===e||r.url.hostname.endsWith(`.${e}`)}));e=n||i}}catch(t){e=!1}if(!e)return void delete r.attribs[i]}if("srcset"===i)try{let e=s(n);if(e.forEach((function(e){_("srcset",e.url)&&(e.evil=!0)})),e=p(e,(function(e){return!e.evil})),!e.length)return void delete r.attribs[i];n=p(e,(function(e){return!e.evil})).map((function(e){if(!e.url)throw new Error("URL missing");return e.url+(e.w?` ${e.w}w`:"")+(e.h?` ${e.h}h`:"")+(e.d?` ${e.d}x`:"")})).join(", "),r.attribs[i]=n}catch(e){return void delete r.attribs[i]}if("class"===i){const t=M[e],o=M["*"],s=A[e],l=E[e],c=E["*"],f=[s,A["*"]].concat(l,c).filter((function(e){return e}));if(!(u=n,d=t&&o?a(t,o):t||o,g=f,n=d?(u=u.split(/\s+/)).filter((function(e){return-1!==d.indexOf(e)||g.some((function(t){return t.test(e)}))})).join(" "):u).length)return void delete r.attribs[i]}if("style"===i)if(t.parseStyleAttributes)try{if(n=function(e){return e.nodes[0].nodes.reduce((function(e,t){return e.push(`${t.prop}:${t.value}${t.important?" !important":""}`),e}),[]).join(";")}(function(e,t){if(!t)return e;const n=e.nodes[0];let r;return r=t[n.selector]&&t["*"]?a(t[n.selector],t["*"]):t[n.selector]||t["*"],r&&(e.nodes[0].nodes=n.nodes.reduce(function(e){return function(t,n){return f(e,n.prop)&&e[n.prop].some((function(e){return e.test(n.value)}))&&t.push(n),t}}(r),[])),e}(l(e+" {"+n+"}",{map:!1}),t.allowedStyles)),0===n.length)return void delete r.attribs[i]}catch(t){return"undefined"!=typeof window&&console.warn('Failed to parse "'+e+" {"+n+"}\", If you're running this in a browser, we recommend to disable style parsing: options.parseStyleAttributes: false, since this only works in a node environment due to a postcss dependency, More info: https://github.com/apostrophecms/sanitize-html/issues/547"),void delete r.attribs[i]}else if(t.allowedStyles)throw new Error("allowedStyles option cannot be used together with parseStyleAttributes: false.");v+=" "+i,n&&n.length?v+='="'+U(n,!0)+'"':t.allowedEmptyAttributes.includes(i)&&(v+='=""')}else delete r.attribs[i];var u,d,g})),-1!==t.selfClosing.indexOf(e)?v+=" />":(v+=">",!r.innerText||c||t.textFilter||(v+=U(r.innerText),R=!0)),i&&(v=y+U(v),y="")},ontext:function(e){if(O)return;const n=k[k.length-1];let r;if(n&&(r=n.tag,e=void 0!==n.innerText?n.innerText:e),"completelyDiscard"!==t.disallowedTagsMode||x(r))if("discard"!==t.disallowedTagsMode&&"completelyDiscard"!==t.disallowedTagsMode||"script"!==r&&"style"!==r){const n=U(e,!1);t.textFilter&&!R?v+=t.textFilter(n,r):R||(v+=n)}else v+=e;else e="";k.length&&(k[k.length-1].text+=e)},onclosetag:function(e,n){if(O){if(L--,L)return;O=!1}const r=k.pop();if(!r)return;if(r.tag!==e)return void k.push(r);O=!!t.enforceHtmlBoundary&&"html"===e,S--;const i=j[S];if(i){if(delete j[S],"discard"===t.disallowedTagsMode||"completelyDiscard"===t.disallowedTagsMode)return void r.updateParentNodeText();y=v,v=""}D[S]&&(e=D[S],delete D[S]),t.exclusiveFilter&&t.exclusiveFilter(r)?v=v.substr(0,r.tagPosition):(r.updateParentNodeMediaChildren(),r.updateParentNodeText(),-1!==t.selfClosing.indexOf(e)||n&&!x(e)&&["escape","recursiveEscape"].indexOf(t.disallowedTagsMode)>=0?i&&(v=y,y=""):(v+="</"+e+">",i&&(v=y+U(v),y=""),R=!1))}},t.parser);return P.write(e),P.end(),v;function z(){v="",S=0,k=[],j={},D={},O=!1,L=0}function U(e,n){return"string"!=typeof e&&(e+=""),t.parser.decodeEntities&&(e=e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),n&&(e=e.replace(/"/g,"&quot;"))),e=e.replace(/&(?![a-zA-Z0-9#]{1,20};)/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),n&&(e=e.replace(/"/g,"&quot;")),e}function _(e,n){for(n=n.replace(/[\x00-\x20]+/g,"");;){const e=n.indexOf("\x3c!--");if(-1===e)break;const t=n.indexOf("--\x3e",e+4);if(-1===t)break;n=n.substring(0,e)+n.substring(t+3)}const r=n.match(/^([a-zA-Z][a-zA-Z0-9.\-+]*):/);if(!r)return!!n.match(/^[/\\]{2}/)&&!t.allowProtocolRelative;const i=r[1].toLowerCase();return f(t.allowedSchemesByTag,e)?-1===t.allowedSchemesByTag[e].indexOf(i):!t.allowedSchemes||-1===t.allowedSchemes.indexOf(i)}function B(e){if((e=e.replace(/^(\w+:)?\s*[\\/]\s*[\\/]/,"$1//")).startsWith("relative:"))throw new Error("relative: exploit attempt");let t="relative://relative-site";for(let e=0;e<100;e++)t+=`/${e}`;const n=new URL(e,t);return{isRelativeUrl:n&&"relative-site"===n.hostname&&"relative:"===n.protocol,url:n}}}const m={decodeEntities:!0};g.defaults={allowedTags:["address","article","aside","footer","header","h1","h2","h3","h4","h5","h6","hgroup","main","nav","section","blockquote","dd","div","dl","dt","figcaption","figure","hr","li","main","ol","p","pre","ul","a","abbr","b","bdi","bdo","br","cite","code","data","dfn","em","i","kbd","mark","q","rb","rp","rt","rtc","ruby","s","samp","small","span","strong","sub","sup","time","u","var","wbr","caption","col","colgroup","table","tbody","td","tfoot","th","thead","tr"],nonBooleanAttributes:["abbr","accept","accept-charset","accesskey","action","allow","alt","as","autocapitalize","autocomplete","blocking","charset","cite","class","color","cols","colspan","content","contenteditable","coords","crossorigin","data","datetime","decoding","dir","dirname","download","draggable","enctype","enterkeyhint","fetchpriority","for","form","formaction","formenctype","formmethod","formtarget","headers","height","hidden","high","href","hreflang","http-equiv","id","imagesizes","imagesrcset","inputmode","integrity","is","itemid","itemprop","itemref","itemtype","kind","label","lang","list","loading","low","max","maxlength","media","method","min","minlength","name","nonce","optimum","pattern","ping","placeholder","popover","popovertarget","popovertargetaction","poster","preload","referrerpolicy","rel","rows","rowspan","sandbox","scope","shape","size","sizes","slot","span","spellcheck","src","srcdoc","srclang","srcset","start","step","style","tabindex","target","title","translate","type","usemap","value","width","wrap","onauxclick","onafterprint","onbeforematch","onbeforeprint","onbeforeunload","onbeforetoggle","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextlost","oncontextmenu","oncontextrestored","oncopy","oncuechange","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onformdata","onhashchange","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onlanguagechange","onload","onloadeddata","onloadedmetadata","onloadstart","onmessage","onmessageerror","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onoffline","ononline","onpagehide","onpageshow","onpaste","onpause","onplay","onplaying","onpopstate","onprogress","onratechange","onreset","onresize","onrejectionhandled","onscroll","onscrollend","onsecuritypolicyviolation","onseeked","onseeking","onselect","onslotchange","onstalled","onstorage","onsubmit","onsuspend","ontimeupdate","ontoggle","onunhandledrejection","onunload","onvolumechange","onwaiting","onwheel"],disallowedTagsMode:"discard",allowedAttributes:{a:["href","name","target"],img:["src","srcset","alt","title","width","height","loading"]},allowedEmptyAttributes:["alt"],selfClosing:["img","br","hr","area","base","basefont","input","link","meta"],allowedSchemes:["http","https","ftp","mailto","tel"],allowedSchemesByTag:{},allowedSchemesAppliedToAttributes:["href","src","cite"],allowProtocolRelative:!0,enforceHtmlBoundary:!1,parseStyleAttributes:!0},g.simpleTransform=function(e,t,n){return n=void 0===n||n,t=t||{},function(r,i){let o;if(n)for(o in t)i[o]=t[o];else i=t;return{tagName:e,attribs:i}}}},2146:e=>{e.exports=function(e,t,n,r){var i=n?n.call(r,e,t):void 0;if(void 0!==i)return!!i;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var o=Object.keys(e),a=Object.keys(t);if(o.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),l=0;l<o.length;l++){var c=o[l];if(!s(c))return!1;var u=e[c],d=t[c];if(!1===(i=n?n.call(r,u,d,c):void 0)||void 0===i&&u!==d)return!1}return!0}},3864:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ServerStyleSheet:()=>on,StyleSheetConsumer:()=>St,StyleSheetContext:()=>Nt,StyleSheetManager:()=>Dt,ThemeConsumer:()=>Zt,ThemeContext:()=>Gt,ThemeProvider:()=>qt,__PRIVATE__:()=>an,createGlobalStyle:()=>tn,css:()=>Jt,default:()=>Kt,isStyledComponent:()=>Je,keyframes:()=>nn,styled:()=>Kt,useTheme:()=>Ht,version:()=>de,withTheme:()=>rn});var r=function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)};function i(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;var o=n(5442),a=n.n(o),s=n(2146),l=n.n(s),c="-ms-",u="-moz-",d="-webkit-",f="comm",p="rule",h="decl",g="@import",m="@keyframes",v="@layer",y=Math.abs,b=String.fromCharCode,x=Object.assign;function I(e){return e.trim()}function w(e,t){return(e=t.exec(e))?e[0]:e}function T(e,t,n){return e.replace(t,n)}function M(e,t,n){return e.indexOf(t,n)}function A(e,t){return 0|e.charCodeAt(t)}function E(e,t,n){return e.slice(t,n)}function C(e){return e.length}function N(e){return e.length}function S(e,t){return t.push(e),e}function k(e,t){return e.filter((function(e){return!w(e,t)}))}var j=1,D=1,O=0,L=0,R=0,P="";function z(e,t,n,r,i,o,a,s){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:j,column:D,length:a,return:"",siblings:s}}function U(e,t){return x(z("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function _(e){for(;e.root;)e=U(e.root,{children:[e]});S(e,e.siblings)}function B(){return R=L>0?A(P,--L):0,D--,10===R&&(D=1,j--),R}function F(){return R=L<O?A(P,L++):0,D++,10===R&&(D=1,j++),R}function G(){return A(P,L)}function Z(){return L}function H(e,t){return E(P,e,t)}function q(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Y(e){return I(H(L-1,Q(91===e?e+2:40===e?e+1:e)))}function V(e){for(;(R=G())&&R<33;)F();return q(e)>2||q(R)>3?"":" "}function W(e,t){for(;--t&&F()&&!(R<48||R>102||R>57&&R<65||R>70&&R<97););return H(e,Z()+(t<6&&32==G()&&32==F()))}function Q(e){for(;F();)switch(R){case e:return L;case 34:case 39:34!==e&&39!==e&&Q(R);break;case 40:41===e&&Q(e);break;case 92:F()}return L}function J(e,t){for(;F()&&e+R!==57&&(e+R!==84||47!==G()););return"/*"+H(t,L-1)+"*"+b(47===e?e:F())}function X(e){for(;!q(G());)F();return H(e,L)}function $(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function K(e,t,n,r){switch(e.type){case v:if(e.children.length)break;case g:case h:return e.return=e.return||e.value;case f:return"";case m:return e.return=e.value+"{"+$(e.children,r)+"}";case p:if(!C(e.value=e.props.join(",")))return""}return C(n=$(e.children,r))?e.return=e.value+"{"+n+"}":""}function ee(e,t,n){switch(function(e,t){return 45^A(e,0)?(((t<<2^A(e,0))<<2^A(e,1))<<2^A(e,2))<<2^A(e,3):0}(e,t)){case 5103:return d+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return d+e+e;case 4789:return u+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return d+e+u+e+c+e+e;case 5936:switch(A(e,t+11)){case 114:return d+e+c+T(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return d+e+c+T(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return d+e+c+T(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return d+e+c+e+e;case 6165:return d+e+c+"flex-"+e+e;case 5187:return d+e+T(e,/(\w+).+(:[^]+)/,d+"box-$1$2"+c+"flex-$1$2")+e;case 5443:return d+e+c+"flex-item-"+T(e,/flex-|-self/g,"")+(w(e,/flex-|baseline/)?"":c+"grid-row-"+T(e,/flex-|-self/g,""))+e;case 4675:return d+e+c+"flex-line-pack"+T(e,/align-content|flex-|-self/g,"")+e;case 5548:return d+e+c+T(e,"shrink","negative")+e;case 5292:return d+e+c+T(e,"basis","preferred-size")+e;case 6060:return d+"box-"+T(e,"-grow","")+d+e+c+T(e,"grow","positive")+e;case 4554:return d+T(e,/([^-])(transform)/g,"$1"+d+"$2")+e;case 6187:return T(T(T(e,/(zoom-|grab)/,d+"$1"),/(image-set)/,d+"$1"),e,"")+e;case 5495:case 3959:return T(e,/(image-set\([^]*)/,d+"$1$`$1");case 4968:return T(T(e,/(.+:)(flex-)?(.*)/,d+"box-pack:$3"+c+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+d+e+e;case 4200:if(!w(e,/flex-|baseline/))return c+"grid-column-align"+E(e,t)+e;break;case 2592:case 3360:return c+T(e,"template-","")+e;case 4384:case 3616:return n&&n.some((function(e,n){return t=n,w(e.props,/grid-\w+-end/)}))?~M(e+(n=n[t].value),"span",0)?e:c+T(e,"-start","")+e+c+"grid-row-span:"+(~M(n,"span",0)?w(n,/\d+/):+w(n,/\d+/)-+w(e,/\d+/))+";":c+T(e,"-start","")+e;case 4896:case 4128:return n&&n.some((function(e){return w(e.props,/grid-\w+-start/)}))?e:c+T(T(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return T(e,/(.+)-inline(.+)/,d+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(C(e)-1-t>6)switch(A(e,t+1)){case 109:if(45!==A(e,t+4))break;case 102:return T(e,/(.+:)(.+)-([^]+)/,"$1"+d+"$2-$3$1"+u+(108==A(e,t+3)?"$3":"$2-$3"))+e;case 115:return~M(e,"stretch",0)?ee(T(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return T(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(t,n,r,i,o,a,s){return c+n+":"+r+s+(i?c+n+"-span:"+(o?a:+a-+r)+s:"")+e}));case 4949:if(121===A(e,t+6))return T(e,":",":"+d)+e;break;case 6444:switch(A(e,45===A(e,14)?18:11)){case 120:return T(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+d+(45===A(e,14)?"inline-":"")+"box$3$1"+d+"$2$3$1"+c+"$2box$3")+e;case 100:return T(e,":",":"+c)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return T(e,"scroll-","scroll-snap-")+e}return e}function te(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case h:return void(e.return=ee(e.value,e.length,n));case m:return $([U(e,{value:T(e.value,"@","@"+d)})],r);case p:if(e.length)return function(e,t){return e.map(t).join("")}(n=e.props,(function(t){switch(w(t,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":_(U(e,{props:[T(t,/:(read-\w+)/,":"+u+"$1")]})),_(U(e,{props:[t]})),x(e,{props:k(n,r)});break;case"::placeholder":_(U(e,{props:[T(t,/:(plac\w+)/,":"+d+"input-$1")]})),_(U(e,{props:[T(t,/:(plac\w+)/,":"+u+"$1")]})),_(U(e,{props:[T(t,/:(plac\w+)/,c+"input-$1")]})),_(U(e,{props:[t]})),x(e,{props:k(n,r)})}return""}))}}function ne(e){return function(e){return P="",e}(re("",null,null,null,[""],e=function(e){return j=D=1,O=C(P=e),L=0,[]}(e),0,[0],e))}function re(e,t,n,r,i,o,a,s,l){for(var c=0,u=0,d=a,f=0,p=0,h=0,g=1,m=1,v=1,x=0,I="",w=i,E=o,N=r,k=I;m;)switch(h=x,x=F()){case 40:if(108!=h&&58==A(k,d-1)){-1!=M(k+=T(Y(x),"&","&\f"),"&\f",y(c?s[c-1]:0))&&(v=-1);break}case 34:case 39:case 91:k+=Y(x);break;case 9:case 10:case 13:case 32:k+=V(h);break;case 92:k+=W(Z()-1,7);continue;case 47:switch(G()){case 42:case 47:S(oe(J(F(),Z()),t,n,l),l);break;default:k+="/"}break;case 123*g:s[c++]=C(k)*v;case 125*g:case 59:case 0:switch(x){case 0:case 125:m=0;case 59+u:-1==v&&(k=T(k,/\f/g,"")),p>0&&C(k)-d&&S(p>32?ae(k+";",r,n,d-1,l):ae(T(k," ","")+";",r,n,d-2,l),l);break;case 59:k+=";";default:if(S(N=ie(k,t,n,c,u,i,s,I,w=[],E=[],d,o),o),123===x)if(0===u)re(k,t,N,N,w,o,d,s,E);else switch(99===f&&110===A(k,3)?100:f){case 100:case 108:case 109:case 115:re(e,N,N,r&&S(ie(e,N,N,0,0,i,s,I,i,w=[],d,E),E),i,E,d,s,r?w:E);break;default:re(k,N,N,N,[""],E,0,s,E)}}c=u=p=0,g=v=1,I=k="",d=a;break;case 58:d=1+C(k),p=h;default:if(g<1)if(123==x)--g;else if(125==x&&0==g++&&125==B())continue;switch(k+=b(x),x*g){case 38:v=u>0?1:(k+="\f",-1);break;case 44:s[c++]=(C(k)-1)*v,v=1;break;case 64:45===G()&&(k+=Y(F())),f=G(),u=d=C(I=k+=X(Z())),x++;break;case 45:45===h&&2==C(k)&&(g=0)}}return o}function ie(e,t,n,r,i,o,a,s,l,c,u,d){for(var f=i-1,h=0===i?o:[""],g=N(h),m=0,v=0,b=0;m<r;++m)for(var x=0,w=E(e,f+1,f=y(v=a[m])),M=e;x<g;++x)(M=I(v>0?h[x]+" "+w:T(w,/&\f/g,h[x])))&&(l[b++]=M);return z(e,t,n,0===i?p:s,l,c,u,d)}function oe(e,t,n,r){return z(e,t,n,f,b(R),E(e,2,-2),0,r)}function ae(e,t,n,r,i){return z(e,t,n,h,E(e,0,r),E(e,r+1,-1),r,i)}var se={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},le="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",ce="active",ue="data-styled-version",de="6.1.13",fe="/*!sc*/\n",pe="undefined"!=typeof window&&"HTMLElement"in window,he=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY&&"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY),ge={},me=(new Set,Object.freeze([])),ve=Object.freeze({});function ye(e,t,n){return void 0===n&&(n=ve),e.theme!==n.theme&&e.theme||t||n.theme}var be=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),xe=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Ie=/(^-|-$)/g;function we(e){return e.replace(xe,"-").replace(Ie,"")}var Te=/(a)(d)/gi,Me=52,Ae=function(e){return String.fromCharCode(e+(e>25?39:97))};function Ee(e){var t,n="";for(t=Math.abs(e);t>Me;t=t/Me|0)n=Ae(t%Me)+n;return(Ae(t%Me)+n).replace(Te,"$1-$2")}var Ce,Ne=5381,Se=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},ke=function(e){return Se(Ne,e)};function je(e){return Ee(ke(e)>>>0)}function De(e){return e.displayName||e.name||"Component"}function Oe(e){return"string"==typeof e&&!0}var Le="function"==typeof Symbol&&Symbol.for,Re=Le?Symbol.for("react.memo"):60115,Pe=Le?Symbol.for("react.forward_ref"):60112,ze={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Ue={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},_e={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Be=((Ce={})[Pe]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Ce[Re]=_e,Ce);function Fe(e){return("type"in(t=e)&&t.type.$$typeof)===Re?_e:"$$typeof"in e?Be[e.$$typeof]:ze;var t}var Ge=Object.defineProperty,Ze=Object.getOwnPropertyNames,He=Object.getOwnPropertySymbols,qe=Object.getOwnPropertyDescriptor,Ye=Object.getPrototypeOf,Ve=Object.prototype;function We(e,t,n){if("string"!=typeof t){if(Ve){var r=Ye(t);r&&r!==Ve&&We(e,r,n)}var i=Ze(t);He&&(i=i.concat(He(t)));for(var o=Fe(e),a=Fe(t),s=0;s<i.length;++s){var l=i[s];if(!(l in Ue||n&&n[l]||a&&l in a||o&&l in o)){var c=qe(t,l);try{Ge(e,l,c)}catch(e){}}}}return e}function Qe(e){return"function"==typeof e}function Je(e){return"object"==typeof e&&"styledComponentId"in e}function Xe(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function $e(e,t){if(0===e.length)return"";for(var n=e[0],r=1;r<e.length;r++)n+=t?t+e[r]:e[r];return n}function Ke(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function et(e,t,n){if(void 0===n&&(n=!1),!n&&!Ke(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=et(e[r],t[r]);else if(Ke(t))for(var r in t)e[r]=et(e[r],t[r]);return e}function tt(e,t){Object.defineProperty(e,"toString",{value:t})}function nt(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):""))}var rt=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,i=r;e>=i;)if((i<<=1)<0)throw nt(16,"".concat(e));this.groupSizes=new Uint32Array(i),this.groupSizes.set(n),this.length=i;for(var o=r;o<i;o++)this.groupSizes[o]=0}for(var a=this.indexOfGroup(e+1),s=(o=0,t.length);o<s;o++)this.tag.insertRule(a,t[o])&&(this.groupSizes[e]++,a++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var i=n;i<r;i++)this.tag.deleteRule(n)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),i=r+n,o=r;o<i;o++)t+="".concat(this.tag.getRule(o)).concat(fe);return t},e}(),it=new Map,ot=new Map,at=1,st=function(e){if(it.has(e))return it.get(e);for(;ot.has(at);)at++;var t=at++;return it.set(e,t),ot.set(t,e),t},lt=function(e,t){at=t+1,it.set(e,t),ot.set(t,e)},ct="style[".concat(le,"][").concat(ue,'="').concat(de,'"]'),ut=new RegExp("^".concat(le,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),dt=function(e,t,n){for(var r,i=n.split(","),o=0,a=i.length;o<a;o++)(r=i[o])&&e.registerName(t,r)},ft=function(e,t){for(var n,r=(null!==(n=t.textContent)&&void 0!==n?n:"").split(fe),i=[],o=0,a=r.length;o<a;o++){var s=r[o].trim();if(s){var l=s.match(ut);if(l){var c=0|parseInt(l[1],10),u=l[2];0!==c&&(lt(u,c),dt(e,u,l[3]),e.getTag().insertRules(c,i)),i.length=0}else i.push(s)}}},pt=function(e){for(var t=document.querySelectorAll(ct),n=0,r=t.length;n<r;n++){var i=t[n];i&&i.getAttribute(le)!==ce&&(ft(e,i),i.parentNode&&i.parentNode.removeChild(i))}};function ht(){return n.nc}var gt=function(e){var t=document.head,n=e||t,r=document.createElement("style"),i=function(e){var t=Array.from(e.querySelectorAll("style[".concat(le,"]")));return t[t.length-1]}(n),o=void 0!==i?i.nextSibling:null;r.setAttribute(le,ce),r.setAttribute(ue,de);var a=ht();return a&&r.setAttribute("nonce",a),n.insertBefore(r,o),r},mt=function(){function e(e){this.element=gt(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var i=t[n];if(i.ownerNode===e)return i}throw nt(17)}(this.element),this.length=0}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),vt=function(){function e(e){this.element=gt(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),yt=function(){function e(e){this.rules=[],this.length=0}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),bt=pe,xt={isServer:!pe,useCSSOMInjection:!he},It=function(){function e(e,t,n){void 0===e&&(e=ve),void 0===t&&(t={});var i=this;this.options=r(r({},xt),e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&pe&&bt&&(bt=!1,pt(this)),tt(this,(function(){return function(e){for(var t=e.getTag(),n=t.length,r="",i=function(n){var i=function(e){return ot.get(e)}(n);if(void 0===i)return"continue";var o=e.names.get(i),a=t.getGroup(n);if(void 0===o||!o.size||0===a.length)return"continue";var s="".concat(le,".g").concat(n,'[id="').concat(i,'"]'),l="";void 0!==o&&o.forEach((function(e){e.length>0&&(l+="".concat(e,","))})),r+="".concat(a).concat(s,'{content:"').concat(l,'"}').concat(fe)},o=0;o<n;o++)i(o);return r}(i)}))}return e.registerId=function(e){return st(e)},e.prototype.rehydrate=function(){!this.server&&pe&&pt(this)},e.prototype.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(r(r({},this.options),t),this.gs,n&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,n=e.target;return e.isServer?new yt(n):t?new mt(n):new vt(n)}(this.options),new rt(e)));var e},e.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.prototype.registerName=function(e,t){if(st(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},e.prototype.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(st(e),n)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(st(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),wt=/&/g,Tt=/^\s*\/\/.*$/gm;function Mt(e,t){return e.map((function(e){return"rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map((function(e){return"".concat(t," ").concat(e)}))),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=Mt(e.children,t)),e}))}function At(e){var t,n,r,i=void 0===e?ve:e,o=i.options,a=void 0===o?ve:o,s=i.plugins,l=void 0===s?me:s,c=function(e,r,i){return i.startsWith(n)&&i.endsWith(n)&&i.replaceAll(n,"").length>0?".".concat(t):e},u=l.slice();u.push((function(e){e.type===p&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(wt,n).replace(r,c))})),a.prefix&&u.push(te),u.push(K);var d=function(e,i,o,s){void 0===i&&(i=""),void 0===o&&(o=""),void 0===s&&(s="&"),t=s,n=i,r=new RegExp("\\".concat(n,"\\b"),"g");var l=e.replace(Tt,""),c=ne(o||i?"".concat(o," ").concat(i," { ").concat(l," }"):l);a.namespace&&(c=Mt(c,a.namespace));var d,f,p,h=[];return $(c,(d=u.concat((p=function(e){return h.push(e)},function(e){e.root||(e=e.return)&&p(e)})),f=N(d),function(e,t,n,r){for(var i="",o=0;o<f;o++)i+=d[o](e,t,n,r)||"";return i})),h};return d.hash=l.length?l.reduce((function(e,t){return t.name||nt(15),Se(e,t.name)}),Ne).toString():"",d}var Et=new It,Ct=At(),Nt=a().createContext({shouldForwardProp:void 0,styleSheet:Et,stylis:Ct}),St=Nt.Consumer,kt=a().createContext(void 0);function jt(){return(0,o.useContext)(Nt)}function Dt(e){var t=(0,o.useState)(e.stylisPlugins),n=t[0],r=t[1],i=jt().styleSheet,s=(0,o.useMemo)((function(){var t=i;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target,i]),c=(0,o.useMemo)((function(){return At({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:n})}),[e.enableVendorPrefixes,e.namespace,n]);(0,o.useEffect)((function(){l()(n,e.stylisPlugins)||r(e.stylisPlugins)}),[e.stylisPlugins]);var u=(0,o.useMemo)((function(){return{shouldForwardProp:e.shouldForwardProp,styleSheet:s,stylis:c}}),[e.shouldForwardProp,s,c]);return a().createElement(Nt.Provider,{value:u},a().createElement(kt.Provider,{value:c},e.children))}var Ot=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=Ct);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,tt(this,(function(){throw nt(12,String(n.name))}))}return e.prototype.getName=function(e){return void 0===e&&(e=Ct),this.name+e.hash},e}(),Lt=function(e){return e>="A"&&e<="Z"};function Rt(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(1===n&&"-"===r&&"-"===e[0])return e;Lt(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var Pt=function(e){return null==e||!1===e||""===e},zt=function(e){var t,n,r=[];for(var o in e){var a=e[o];e.hasOwnProperty(o)&&!Pt(a)&&(Array.isArray(a)&&a.isCss||Qe(a)?r.push("".concat(Rt(o),":"),a,";"):Ke(a)?r.push.apply(r,i(i(["".concat(o," {")],zt(a),!1),["}"],!1)):r.push("".concat(Rt(o),": ").concat((t=o,null==(n=a)||"boolean"==typeof n||""===n?"":"number"!=typeof n||0===n||t in se||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function Ut(e,t,n,r){return Pt(e)?[]:Je(e)?[".".concat(e.styledComponentId)]:Qe(e)?!Qe(i=e)||i.prototype&&i.prototype.isReactComponent||!t?[e]:Ut(e(t),t,n,r):e instanceof Ot?n?(e.inject(n,r),[e.getName(r)]):[e]:Ke(e)?zt(e):Array.isArray(e)?Array.prototype.concat.apply(me,e.map((function(e){return Ut(e,t,n,r)}))):[e.toString()];var i}function _t(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(Qe(n)&&!Je(n))return!1}return!0}var Bt=ke(de),Ft=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&_t(e),this.componentId=t,this.baseHash=Se(Bt,t),this.baseStyle=n,It.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))r=Xe(r,this.staticRulesId);else{var i=$e(Ut(this.rules,e,t,n)),o=Ee(Se(this.baseHash,i)>>>0);if(!t.hasNameForId(this.componentId,o)){var a=n(i,".".concat(o),void 0,this.componentId);t.insertRules(this.componentId,o,a)}r=Xe(r,o),this.staticRulesId=o}else{for(var s=Se(this.baseHash,n.hash),l="",c=0;c<this.rules.length;c++){var u=this.rules[c];if("string"==typeof u)l+=u;else if(u){var d=$e(Ut(u,e,t,n));s=Se(s,d+c),l+=d}}if(l){var f=Ee(s>>>0);t.hasNameForId(this.componentId,f)||t.insertRules(this.componentId,f,n(l,".".concat(f),void 0,this.componentId)),r=Xe(r,f)}}return r},e}(),Gt=a().createContext(void 0),Zt=Gt.Consumer;function Ht(){var e=(0,o.useContext)(Gt);if(!e)throw nt(18);return e}function qt(e){var t=a().useContext(Gt),n=(0,o.useMemo)((function(){return function(e,t){if(!e)throw nt(14);if(Qe(e))return e(t);if(Array.isArray(e)||"object"!=typeof e)throw nt(8);return t?r(r({},t),e):e}(e.theme,t)}),[e.theme,t]);return e.children?a().createElement(Gt.Provider,{value:n},e.children):null}var Yt={};function Vt(e,t,n){var i=Je(e),s=e,l=!Oe(e),c=t.attrs,u=void 0===c?me:c,d=t.componentId,f=void 0===d?function(e,t){var n="string"!=typeof e?"sc":we(e);Yt[n]=(Yt[n]||0)+1;var r="".concat(n,"-").concat(je(de+n+Yt[n]));return t?"".concat(t,"-").concat(r):r}(t.displayName,t.parentComponentId):d,p=t.displayName,h=void 0===p?function(e){return Oe(e)?"styled.".concat(e):"Styled(".concat(De(e),")")}(e):p,g=t.displayName&&t.componentId?"".concat(we(t.displayName),"-").concat(t.componentId):t.componentId||f,m=i&&s.attrs?s.attrs.concat(u).filter(Boolean):u,v=t.shouldForwardProp;if(i&&s.shouldForwardProp){var y=s.shouldForwardProp;if(t.shouldForwardProp){var b=t.shouldForwardProp;v=function(e,t){return y(e,t)&&b(e,t)}}else v=y}var x=new Ft(n,g,i?s.componentStyle:void 0);function I(e,t){return function(e,t,n){var i=e.attrs,s=e.componentStyle,l=e.defaultProps,c=e.foldedComponentIds,u=e.styledComponentId,d=e.target,f=a().useContext(Gt),p=jt(),h=e.shouldForwardProp||p.shouldForwardProp,g=ye(t,f,l)||ve,m=function(e,t,n){for(var i,o=r(r({},t),{className:void 0,theme:n}),a=0;a<e.length;a+=1){var s=Qe(i=e[a])?i(o):i;for(var l in s)o[l]="className"===l?Xe(o[l],s[l]):"style"===l?r(r({},o[l]),s[l]):s[l]}return t.className&&(o.className=Xe(o.className,t.className)),o}(i,t,g),v=m.as||d,y={};for(var b in m)void 0===m[b]||"$"===b[0]||"as"===b||"theme"===b&&m.theme===g||("forwardedAs"===b?y.as=m.forwardedAs:h&&!h(b,v)||(y[b]=m[b]));var x=function(e,t){var n=jt();return e.generateAndInjectStyles(t,n.styleSheet,n.stylis)}(s,m),I=Xe(c,u);return x&&(I+=" "+x),m.className&&(I+=" "+m.className),y[Oe(v)&&!be.has(v)?"class":"className"]=I,y.ref=n,(0,o.createElement)(v,y)}(w,e,t)}I.displayName=h;var w=a().forwardRef(I);return w.attrs=m,w.componentStyle=x,w.displayName=h,w.shouldForwardProp=v,w.foldedComponentIds=i?Xe(s.foldedComponentIds,s.styledComponentId):"",w.styledComponentId=g,w.target=i?s.target:e,Object.defineProperty(w,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=i?function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,i=t;r<i.length;r++)et(e,i[r],!0);return e}({},s.defaultProps,e):e}}),tt(w,(function(){return".".concat(w.styledComponentId)})),l&&We(w,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),w}function Wt(e,t){for(var n=[e[0]],r=0,i=t.length;r<i;r+=1)n.push(t[r],e[r+1]);return n}new Set;var Qt=function(e){return Object.assign(e,{isCss:!0})};function Jt(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(Qe(e)||Ke(e))return Qt(Ut(Wt(me,i([e],t,!0))));var r=e;return 0===t.length&&1===r.length&&"string"==typeof r[0]?Ut(r):Qt(Ut(Wt(r,t)))}function Xt(e,t,n){if(void 0===n&&(n=ve),!t)throw nt(1,t);var o=function(r){for(var o=[],a=1;a<arguments.length;a++)o[a-1]=arguments[a];return e(t,n,Jt.apply(void 0,i([r],o,!1)))};return o.attrs=function(i){return Xt(e,t,r(r({},n),{attrs:Array.prototype.concat(n.attrs,i).filter(Boolean)}))},o.withConfig=function(i){return Xt(e,t,r(r({},n),i))},o}var $t=function(e){return Xt(Vt,e)},Kt=$t;be.forEach((function(e){Kt[e]=$t(e)}));var en=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=_t(e),It.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,n,r){var i=r($e(Ut(this.rules,t,n,r)),""),o=this.componentId+e;n.insertRules(o,o,i)},e.prototype.removeStyles=function(e,t){t.clearRules(this.componentId+e)},e.prototype.renderStyles=function(e,t,n,r){e>2&&It.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)},e}();function tn(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var o=Jt.apply(void 0,i([e],t,!1)),s="sc-global-".concat(je(JSON.stringify(o))),l=new en(o,s),c=function(e){var t=jt(),n=a().useContext(Gt),r=a().useRef(t.styleSheet.allocateGSInstance(s)).current;return t.styleSheet.server&&u(r,e,t.styleSheet,n,t.stylis),a().useLayoutEffect((function(){if(!t.styleSheet.server)return u(r,e,t.styleSheet,n,t.stylis),function(){return l.removeStyles(r,t.styleSheet)}}),[r,e,t.styleSheet,n,t.stylis]),null};function u(e,t,n,i,o){if(l.isStatic)l.renderStyles(e,ge,n,o);else{var a=r(r({},t),{theme:ye(t,i,c.defaultProps)});l.renderStyles(e,a,n,o)}}return a().memo(c)}function nn(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=$e(Jt.apply(void 0,i([e],t,!1))),o=je(r);return new Ot(o,r)}function rn(e){var t=a().forwardRef((function(t,n){var i=ye(t,a().useContext(Gt),e.defaultProps);return a().createElement(e,r({},t,{theme:i,ref:n}))}));return t.displayName="WithTheme(".concat(De(e),")"),We(t,e)}var on=function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return"";var n=ht(),r=$e([n&&'nonce="'.concat(n,'"'),"".concat(le,'="true"'),"".concat(ue,'="').concat(de,'"')].filter(Boolean)," ");return"<style ".concat(r,">").concat(t,"</style>")},this.getStyleTags=function(){if(e.sealed)throw nt(2);return e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)throw nt(2);var n=e.instance.toString();if(!n)return[];var i=((t={})[le]="",t[ue]=de,t.dangerouslySetInnerHTML={__html:n},t),o=ht();return o&&(i.nonce=o),[a().createElement("style",r({},i,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new It({isServer:!0}),this.sealed=!1}return e.prototype.collectStyles=function(e){if(this.sealed)throw nt(2);return a().createElement(Dt,{sheet:this.instance},e)},e.prototype.interleaveWithNodeStream=function(e){throw nt(3)},e}(),an={StyleSheet:It,mainSheet:Et};"__sc-".concat(le,"__")},679:(e,t,n)=>{"use strict";n.r(t),n.d(t,{focusable:()=>I,getTabIndex:()=>f,isFocusable:()=>M,isTabbable:()=>w,tabbable:()=>x});var r=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],i=r.join(","),o="undefined"==typeof Element,a=o?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,s=!o&&Element.prototype.getRootNode?function(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}:function(e){return null==e?void 0:e.ownerDocument},l=function e(t,n){var r;void 0===n&&(n=!0);var i=null==t||null===(r=t.getAttribute)||void 0===r?void 0:r.call(t,"inert");return""===i||"true"===i||n&&t&&e(t.parentNode)},c=function(e,t,n){if(l(e))return[];var r=Array.prototype.slice.apply(e.querySelectorAll(i));return t&&a.call(e,i)&&r.unshift(e),r.filter(n)},u=function e(t,n,r){for(var o=[],s=Array.from(t);s.length;){var c=s.shift();if(!l(c,!1))if("SLOT"===c.tagName){var u=c.assignedElements(),d=e(u.length?u:c.children,!0,r);r.flatten?o.push.apply(o,d):o.push({scopeParent:c,candidates:d})}else{a.call(c,i)&&r.filter(c)&&(n||!t.includes(c))&&o.push(c);var f=c.shadowRoot||"function"==typeof r.getShadowRoot&&r.getShadowRoot(c),p=!l(f,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(c));if(f&&p){var h=e(!0===f?c.children:f.children,!0,r);r.flatten?o.push.apply(o,h):o.push({scopeParent:c,candidates:h})}else s.unshift.apply(s,c.children)}}return o},d=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},f=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||function(e){var t,n=null==e||null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"contenteditable");return""===n||"true"===n}(e))&&!d(e)?0:e.tabIndex},p=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},h=function(e){return"INPUT"===e.tagName},g=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return 0===n&&0===r},m=function(e,t){return!(t.disabled||l(t)||function(e){return h(e)&&"hidden"===e.type}(t)||function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var i=a.call(e,"details>summary:first-of-type")?e.parentElement:e;if(a.call(i,"details:not([open]) *"))return!0;if(n&&"full"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return g(e)}else{if("function"==typeof r){for(var o=e;e;){var l=e.parentElement,c=s(e);if(l&&!l.shadowRoot&&!0===r(l))return g(e);e=e.assignedSlot?e.assignedSlot:l||c===e.ownerDocument?l:c.host}e=o}if(function(e){var t,n,r,i,o=e&&s(e),a=null===(t=o)||void 0===t?void 0:t.host,l=!1;if(o&&o!==e)for(l=!!(null!==(n=a)&&void 0!==n&&null!==(r=n.ownerDocument)&&void 0!==r&&r.contains(a)||null!=e&&null!==(i=e.ownerDocument)&&void 0!==i&&i.contains(e));!l&&a;){var c,u,d;l=!(null===(u=a=null===(c=o=s(a))||void 0===c?void 0:c.host)||void 0===u||null===(d=u.ownerDocument)||void 0===d||!d.contains(a))}return l}(e))return!e.getClientRects().length;if("legacy-full"!==n)return!0}return!1}(t,e)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some((function(e){return"SUMMARY"===e.tagName}))}(t)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var r=t.children.item(n);if("LEGEND"===r.tagName)return!!a.call(t,"fieldset[disabled] *")||!r.contains(e)}return!0}t=t.parentElement}return!1}(t))},v=function(e,t){return!(function(e){return function(e){return h(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||s(e),r=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=r(window.CSS.escape(e.name));else try{t=r(e.name)}catch(e){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message),!1}var i=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]}(t,e.form);return!i||i===e}(e)}(t)||f(t)<0||!m(e,t))},y=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},b=function e(t){var n=[],r=[];return t.forEach((function(t,i){var o=!!t.scopeParent,a=o?t.scopeParent:t,s=function(e,t){var n=f(e);return n<0&&t&&!d(e)?0:n}(a,o),l=o?e(t.candidates):a;0===s?o?n.push.apply(n,l):n.push(a):r.push({documentOrder:i,tabIndex:s,item:t,isScope:o,content:l})})),r.sort(p).reduce((function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e}),[]).concat(n)},x=function(e,t){var n;return n=(t=t||{}).getShadowRoot?u([e],t.includeContainer,{filter:v.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:y}):c(e,t.includeContainer,v.bind(null,t)),b(n)},I=function(e,t){return(t=t||{}).getShadowRoot?u([e],t.includeContainer,{filter:m.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):c(e,t.includeContainer,m.bind(null,t))},w=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==a.call(e,i)&&v(t,e)},T=r.concat("iframe").join(","),M=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==a.call(e,T)&&m(t,e)}},758:function(e,t){!function(e){"use strict";function t(e){return null==e}function n(e){throw new Error("Argument "+e+" is empty.")}function r(e){return"function"==typeof e&&"getType"in e}function i(e){throw new Error("Argument "+e+' is invalid, it should be an action-creator instance from "typesafe-actions"')}function o(e,t){if(null==e)throw new Error("Argument contains array with empty element at index "+t);if(null==e.getType)throw new Error("Argument contains array with invalid element at index "+t+', it should be an action-creator instance from "typesafe-actions"')}function a(e){return"string"==typeof e||"symbol"==typeof e}function s(e){return!a(e)}function l(e){throw new Error("Argument "+e+" is invalid, it should be an action type of type: string | symbol")}function c(e,t){if(null==e)throw new Error("Argument contains array with empty element at index "+t);if("string"!=typeof e&&"symbol"!=typeof e)throw new Error("Argument contains array with invalid element at index "+t+", it should be of type: string | symbol")}function u(e,r,o,a){return t(e)&&n(1),s(e)&&i(1),{type:e,payload:r,meta:o,error:a}}function d(e,r){return t(e)&&n(1),s(e)&&l(1),Object.assign((function(){var t=null!=r?r.apply(void 0,arguments):void 0;return Object.assign({type:e},t)}),{getType:function(){return e},toString:function(){return e}})}function f(e,r,i){return t(e)&&n(1),s(e)&&l(1),function(){return d(e,(function(){var e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1];return null==r&&null==i||(e=null!=r?r.apply(void 0,arguments):void 0,t=null!=i?i.apply(void 0,arguments):void 0),Object.assign({},void 0!==e&&{payload:e},{},void 0!==t&&{meta:t})}))}}function p(e){return t(e)&&n(1),r(e)||i(1),e.getType()}function h(e,r){t(e)&&n(1),s(e)&&l(1);var i=null!=r?r(e):function(){return{type:e}};return Object.assign(i,{getType:function(){return e},toString:function(){return e}})}var g={createAction:function(e,t){var n=null==t?function(){return u(e)}:t(u.bind(null,e));return Object.assign(n,{getType:function(){return e},toString:function(){return e}})},createCustomAction:h,createStandardAction:function(e){return t(e)&&n(1),s(e)&&l(1),Object.assign((function(){return h(e,(function(e){return function(t,n){return{type:e,payload:t,meta:n}}}))}),{map:function(t){return h(e,(function(e){return function(n,r){return Object.assign(t(n,r),{type:e})}}))}})}};e.action=u,e.createAction=f,e.createAsyncAction=function(e,t,n,r){return function(){var i=[e,t,n,r].map((function(e,t){return Array.isArray(e)?f(e[0],e[1],e[2])():"string"==typeof e||"symbol"==typeof e?f(e)():void(t<3&&function(e){throw new Error("Argument "+e+' is invalid, it should be an action type of "string | symbol" or a tuple of "[string | symbol, Function, Function?]"')}(t))}));return{request:i[0],success:i[1],failure:i[2],cancel:i[3]}}},e.createCustomAction=d,e.createReducer=function e(t,n){void 0===n&&(n={});var i=Object.assign({},n),o=function(n,o){var s=Array.isArray(n)?n:[n],l={};return s.map((function(e,t){return r(e)?p(e):a(e)?e:function(e){throw new Error("Argument "+e+' is invalid, it should be an action-creator instance from "typesafe-actions" or action type of type: string | symbol')}(t+1)})).forEach((function(e){return l[e]=o})),e(t,Object.assign({},i,{},l))};return Object.assign((function(e,n){if(void 0===e&&(e=t),i.hasOwnProperty(n.type)){var r=i[n.type];if("function"!=typeof r)throw Error('Reducer under "'+n.type+'" key is not a valid reducer');return r(e,n)}return e}),{handlers:Object.assign({},i),handleAction:o,handleType:o})},e.deprecated=g,e.getType=p,e.isActionOf=function(e,r){t(e)&&n(1);var i=Array.isArray(e)?e:[e];i.forEach(o);var a=function(e){return i.some((function(t){return e.type===t.getType()}))};return void 0===r?a:a(r)},e.isOfType=function(e,r){t(e)&&n(1);var i=Array.isArray(e)?e:[e];i.forEach(c);var o=function(e){return i.includes(e.type)};return void 0===r?o:o(r)}}(t)},5969:(e,t,n)=>{"use strict";var r=n(5442),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},o=r.useSyncExternalStore,a=r.useRef,s=r.useEffect,l=r.useMemo,c=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,u){var d=a(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=l((function(){function e(e){if(!s){if(s=!0,o=e,e=r(e),void 0!==u&&f.hasValue){var t=f.value;if(u(t,e))return a=t}return a=e}if(t=a,i(o,e))return t;var n=r(e);return void 0!==u&&u(t,n)?t:(o=e,a=n)}var o,a,s=!1,l=void 0===n?null:n;return[function(){return e(t())},null===l?void 0:function(){return e(l())}]}),[t,n,r,u]);var p=o(e,d[0],d[1]);return s((function(){f.hasValue=!0,f.value=p}),[p]),c(p),p}},5919:(e,t,n)=>{"use strict";e.exports=n(5969)},9002:e=>{e.exports={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}},5442:t=>{"use strict";t.exports=e},6003:e=>{"use strict";e.exports=t},3215:()=>{},8892:()=>{},5324:()=>{},8645:()=>{},588:()=>{},1198:(e,t)=>{var n;!function(){"use strict";var r=function(){function e(){}function t(e,t){for(var n=t.length,r=0;r<n;++r)i(e,t[r])}e.prototype=Object.create(null);var n={}.hasOwnProperty,r=/\s+/;function i(e,i){if(i){var o=typeof i;"string"===o?function(e,t){for(var n=t.split(r),i=n.length,o=0;o<i;++o)e[n[o]]=!0}(e,i):Array.isArray(i)?t(e,i):"object"===o?function(e,t){if(t.toString===Object.prototype.toString||t.toString.toString().includes("[native code]"))for(var r in t)n.call(t,r)&&(e[r]=!!t[r]);else e[t.toString()]=!0}(e,i):"number"===o&&function(e,t){e[t]=!0}(e,i)}}return function(){for(var n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];var o=new e;t(o,r);var a=[];for(var s in o)o[s]&&a.push(s);return a.join(" ")}}();e.exports?(r.default=r,e.exports=r):void 0===(n=function(){return r}.apply(t,[]))||(e.exports=n)}()},3373:(e,t)=>{var n;!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=a(e,o(n)))}return e}function o(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return i.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=a(t,n));return t}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(i.default=i,e.exports=i):void 0===(n=function(){return i}.apply(t,[]))||(e.exports=n)}()},945:e=>{e.exports={nanoid:(e=21)=>{let t="",n=e;for(;n--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[64*Math.random()|0];return t},customAlphabet:(e,t=21)=>(n=t)=>{let r="",i=n;for(;i--;)r+=e[Math.random()*e.length|0];return r}}}},o={};function a(e){var t=o[e];if(void 0!==t)return t.exports;var n=o[e]={exports:{}};return i[e].call(n.exports,n,n.exports,a),n.exports}a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},r=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,a.t=function(e,t){if(1&t&&(e=this(e)),8&t)return e;if("object"==typeof e&&e){if(4&t&&e.__esModule)return e;if(16&t&&"function"==typeof e.then)return e}var i=Object.create(null);a.r(i);var o={};n=n||[null,r({}),r([]),r(r)];for(var s=2&t&&e;"object"==typeof s&&!~n.indexOf(s);s=r(s))Object.getOwnPropertyNames(s).forEach((t=>o[t]=()=>e[t]));return o.default=()=>e,a.d(i,o),i},a.d=(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.nc=void 0;var s={};return(()=>{"use strict";a.r(s),a.d(s,{Attachments:()=>wd,Exam:()=>yx,GradingAnswer:()=>QI,GradingInstructions:()=>Ox,Results:()=>hI,parseExam:()=>FI});var e=a(5442),t=a.n(e);a(9002),Object.create(null);const n={},r=(...e)=>{c(e[0])&&n[e[0]]||(c(e[0])&&(n[e[0]]=new Date),((...e)=>{console?.warn&&(c(e[0])&&(e[0]=`react-i18next:: ${e[0]}`),console.warn(...e))})(...e))},i=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout((()=>{e.off("initialized",n)}),0),t()};e.on("initialized",n)}},o=(e,t,n)=>{e.loadNamespaces(t,i(e,n))},l=(e,t,n,r)=>{if(c(n)&&(n=[n]),e.options.preload&&e.options.preload.indexOf(t)>-1)return o(e,n,r);n.forEach((t=>{e.options.ns.indexOf(t)<0&&e.options.ns.push(t)})),e.loadLanguages(t,i(e,r))},c=e=>"string"==typeof e,u=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,d={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},f=e=>d[e];let p={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:e=>e.replace(u,f)};const h=(0,e.createContext)();class g{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach((e=>{this.usedNamespaces[e]||(this.usedNamespaces[e]=!0)}))}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const m=(e,t,n,r)=>e.getFixedT(t,n,r),v=(t,n={})=>{const{i18n:i}=n,{i18n:a,defaultNS:s}=(0,e.useContext)(h)||{},u=i||a||undefined;if(u&&!u.reportNamespaces&&(u.reportNamespaces=new g),!u){r("You will need to pass in an i18next instance by using initReactI18next");const e=(e,t)=>{return c(t)?t:"object"==typeof(n=t)&&null!==n&&c(t.defaultValue)?t.defaultValue:Array.isArray(e)?e[e.length-1]:e;var n},t=[e,{},!1];return t.t=e,t.i18n={},t.ready=!1,t}u.options.react?.wait&&r("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const d={...p,...u.options.react,...n},{useSuspense:f,keyPrefix:v}=d;let y=t||s||u.options?.defaultNS;y=c(y)?[y]:y||["translation"],u.reportNamespaces.addUsedNamespaces?.(y);const b=(u.isInitialized||u.initializedStoreOnce)&&y.every((e=>((e,t,n={})=>t.languages&&t.languages.length?t.hasLoadedNamespace(e,{lng:n.lng,precheck:(t,r)=>{if(n.bindI18n?.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!r(t.isLanguageChangingTo,e))return!1}}):(r("i18n.languages were undefined or empty",t.languages),!0))(e,u,d))),x=((t,n,r,i)=>(0,e.useCallback)(m(t,n,r,i),[t,n,r,i]))(u,n.lng||null,"fallback"===d.nsMode?y:y[0],v),I=()=>x,w=()=>m(u,n.lng||null,"fallback"===d.nsMode?y:y[0],v),[T,M]=(0,e.useState)(I);let A=y.join();n.lng&&(A=`${n.lng}${A}`);const E=((t,n)=>{const r=(0,e.useRef)();return(0,e.useEffect)((()=>{r.current=t}),[t,n]),r.current})(A),C=(0,e.useRef)(!0);(0,e.useEffect)((()=>{const{bindI18n:e,bindI18nStore:t}=d;C.current=!0,b||f||(n.lng?l(u,n.lng,y,(()=>{C.current&&M(w)})):o(u,y,(()=>{C.current&&M(w)}))),b&&E&&E!==A&&C.current&&M(w);const r=()=>{C.current&&M(w)};return e&&u?.on(e,r),t&&u?.store.on(t,r),()=>{C.current=!1,u&&e?.split(" ").forEach((e=>u.off(e,r))),t&&u&&t.split(" ").forEach((e=>u.store.off(e,r)))}}),[u,A]),(0,e.useEffect)((()=>{C.current&&b&&M(I)}),[u,v,b]);const N=[T,u,b];if(N.t=T,N.i18n=u,N.ready=b,b)return N;if(!b&&!f)return N;throw new Promise((e=>{n.lng?l(u,n.lng,y,(()=>e())):o(u,y,(()=>e()))}))};function y({i18n:t,defaultNS:n,children:r}){const i=(0,e.useMemo)((()=>({i18n:t,defaultNS:n})),[t,n]);return(0,e.createElement)(h.Provider,{value:i},r)}const b=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e},x=function(e,t,n){for(var r=-1,i=Object(e),o=n(e),a=o.length;a--;){var s=o[++r];if(!1===t(i[s],s,i))break}return e},I=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r},w="object"==typeof global&&global&&global.Object===Object&&global;var T="object"==typeof self&&self&&self.Object===Object&&self;const M=w||T||Function("return this")(),A=M.Symbol;var E=Object.prototype,C=E.hasOwnProperty,N=E.toString,S=A?A.toStringTag:void 0;var k=Object.prototype.toString;var j=A?A.toStringTag:void 0;const D=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":j&&j in Object(e)?function(e){var t=C.call(e,S),n=e[S];try{e[S]=void 0;var r=!0}catch(e){}var i=N.call(e);return r&&(t?e[S]=n:delete e[S]),i}(e):function(e){return k.call(e)}(e)},O=function(e){return null!=e&&"object"==typeof e},L=function(e){return O(e)&&"[object Arguments]"==D(e)};var R=Object.prototype,P=R.hasOwnProperty,z=R.propertyIsEnumerable;const U=L(function(){return arguments}())?L:function(e){return O(e)&&P.call(e,"callee")&&!z.call(e,"callee")},_=Array.isArray;var B="object"==typeof exports&&exports&&!exports.nodeType&&exports,F=B&&"object"==typeof module&&module&&!module.nodeType&&module,G=F&&F.exports===B?M.Buffer:void 0;const Z=(G?G.isBuffer:void 0)||function(){return!1};var H=/^(?:0|[1-9]\d*)$/;const q=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&H.test(e))&&e>-1&&e%1==0&&e<t},Y=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991};var V={};V["[object Float32Array]"]=V["[object Float64Array]"]=V["[object Int8Array]"]=V["[object Int16Array]"]=V["[object Int32Array]"]=V["[object Uint8Array]"]=V["[object Uint8ClampedArray]"]=V["[object Uint16Array]"]=V["[object Uint32Array]"]=!0,V["[object Arguments]"]=V["[object Array]"]=V["[object ArrayBuffer]"]=V["[object Boolean]"]=V["[object DataView]"]=V["[object Date]"]=V["[object Error]"]=V["[object Function]"]=V["[object Map]"]=V["[object Number]"]=V["[object Object]"]=V["[object RegExp]"]=V["[object Set]"]=V["[object String]"]=V["[object WeakMap]"]=!1;const W=function(e){return function(t){return e(t)}};var Q="object"==typeof exports&&exports&&!exports.nodeType&&exports,J=Q&&"object"==typeof module&&module&&!module.nodeType&&module,X=J&&J.exports===Q&&w.process;const $=function(){try{return J&&J.require&&J.require("util").types||X&&X.binding&&X.binding("util")}catch(e){}}();var K=$&&$.isTypedArray;const ee=K?W(K):function(e){return O(e)&&Y(e.length)&&!!V[D(e)]};var te=Object.prototype.hasOwnProperty;const ne=function(e,t){var n=_(e),r=!n&&U(e),i=!n&&!r&&Z(e),o=!n&&!r&&!i&&ee(e),a=n||r||i||o,s=a?I(e.length,String):[],l=s.length;for(var c in e)!t&&!te.call(e,c)||a&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||q(c,l))||s.push(c);return s};var re=Object.prototype;const ie=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||re)},oe=function(e,t){return function(n){return e(t(n))}},ae=oe(Object.keys,Object);var se=Object.prototype.hasOwnProperty;const le=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},ce=function(e){if(!le(e))return!1;var t=D(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},ue=function(e){return null!=e&&Y(e.length)&&!ce(e)},de=function(e){return ue(e)?ne(e):function(e){if(!ie(e))return ae(e);var t=[];for(var n in Object(e))se.call(e,n)&&"constructor"!=n&&t.push(n);return t}(e)},fe=function(e,t){return e&&x(e,t,de)},pe=(he=fe,function(e,t){if(null==e)return e;if(!ue(e))return he(e,t);for(var n=e.length,r=-1,i=Object(e);++r<n&&!1!==t(i[r],r,i););return e});var he;const ge=function(e){return e},me=function(e){return"function"==typeof e?e:ge},ve=function(e,t){return(_(e)?b:pe)(e,me(t))},ye=(0,e.createContext)({}),be=" ";function xe(e,t){const n=null!=t?Ie(t):void 0,r=[];for(;null!=e.parentElement;)e=e.parentElement,(null==n||n(e))&&r.push(e);return r}function Ie(e){return"function"==typeof e?t=>t.namespaceURI===ms&&e(t):Array.isArray(e)?t=>t.namespaceURI===ms&&e.includes(t.localName):t=>t.namespaceURI===ms&&t.localName===e}function we(e,t){const n=Ie(t);return function e(t){for(let r=0,i=t.children.length;r<i;r++){const i=t.children[r];if(n(i))return i;const o=e(i);if(null!=o)return o}}(e)}function Te(e,t,n=!0){const r=Ie(t),i=[];return function e(t){for(let o=0,a=t.children.length;o<a;o++){const a=t.children[o];r(a)?(i.push(a),n&&e(a)):e(a)}}(e),i}function Me(e,t){const n=Ie(t);for(;null!=e.parentElement;)if(n(e=e.parentElement))return e}function Ae(e,t){const n=Ie(t);for(let t=0,r=e.children.length;t<r;t++){const r=e.children[t];if(n(r))return r}}function Ee(e,t){var n;return null!==(n=e.getAttribute(t))&&void 0!==n?n:void 0}function Ce(e,t){const n=e.getAttribute(t);return null!=n?Number(n):void 0}function Ne(e,t){return"true"===Ee(e,t)}function Se(e,t){const n=[];for(let r=0,i=e.children.length;r<i;r++){const i=e.children[r];n.push(t(i,r))}return n}function ke(e){return Te(e,["choice-answer","dropdown-answer","text-answer","scored-text-answer","dnd-answer"],!0)}function je(e){const t=Me(e,"question"),n=null==t?void 0:t.querySelectorAll("[question-id]");return n&&(null==n?void 0:n.length)>1}function De(e,t,...n){const r=document.createElement(e);return function(e,t){ve(t,((t,n)=>{"css"===n?e.style.cssText=t:n.startsWith("data-")?e.setAttribute(n,t):e[n]=t}))}(r,t),n.forEach((e=>r.appendChild("string"==typeof e?new Text(e):e))),r}function Oe(t,n){const{visibleTOCElements:r}=(0,e.useContext)(ye),[i,o]=(0,e.useState)(!1),a=`${t}-${n}`;return(0,e.useEffect)((()=>{(null==r?void 0:r.includes(a))&&!i?o(!0):!(null==r?void 0:r.includes(a))&&i&&o(!1)}),[r]),i}function Le(e){var t,n,r;const i=!e.tagName&&Array.from((null===(t=e.parentNode)||void 0===t?void 0:t.childNodes)||[]).indexOf(e),o=Array.from((null===(n=e.parentElement)||void 0===n?void 0:n.children)||[]).indexOf(e);let a=`${e.nodeName}:${o>0?o:i}`,s=e;for(;s.parentElement;){s=s.parentElement;const e=s.getAttribute("display-number"),t=Number(e)?e:Array.from((null===(r=s.parentElement)||void 0===r?void 0:r.children)||[s]).indexOf(s);a=`${s.getAttribute("id")||s.nodeName}:${t} > ${a}`}return a}const Re=M["__core-js_shared__"];var Pe,ze=(Pe=/[^.]+$/.exec(Re&&Re.keys&&Re.keys.IE_PROTO||""))?"Symbol(src)_1."+Pe:"";var Ue=Function.prototype.toString;const _e=function(e){if(null!=e){try{return Ue.call(e)}catch(e){}try{return e+""}catch(e){}}return""};var Be=/^\[object .+?Constructor\]$/,Fe=Function.prototype,Ge=Object.prototype,Ze=Fe.toString,He=Ge.hasOwnProperty,qe=RegExp("^"+Ze.call(He).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const Ye=function(e){return!(!le(e)||(t=e,ze&&ze in t))&&(ce(e)?qe:Be).test(_e(e));var t},Ve=function(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return Ye(n)?n:void 0},We=function(){try{var e=Ve(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),Qe=function(e,t,n){"__proto__"==t&&We?We(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},Je=function(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i<o;){var a=e[i];t(r,a,n(a),e)}return r},Xe=function(e,t,n,r){return pe(e,(function(e,i,o){t(r,e,n(e),o)})),r},$e=function(e,t){return e===t||e!=e&&t!=t},Ke=function(e,t){for(var n=e.length;n--;)if($e(e[n][0],t))return n;return-1};var et=Array.prototype.splice;function tt(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}tt.prototype.clear=function(){this.__data__=[],this.size=0},tt.prototype.delete=function(e){var t=this.__data__,n=Ke(t,e);return!(n<0||(n==t.length-1?t.pop():et.call(t,n,1),--this.size,0))},tt.prototype.get=function(e){var t=this.__data__,n=Ke(t,e);return n<0?void 0:t[n][1]},tt.prototype.has=function(e){return Ke(this.__data__,e)>-1},tt.prototype.set=function(e,t){var n=this.__data__,r=Ke(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};const nt=tt,rt=Ve(M,"Map"),it=Ve(Object,"create");var ot=Object.prototype.hasOwnProperty;var at=Object.prototype.hasOwnProperty;function st(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}st.prototype.clear=function(){this.__data__=it?it(null):{},this.size=0},st.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},st.prototype.get=function(e){var t=this.__data__;if(it){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return ot.call(t,e)?t[e]:void 0},st.prototype.has=function(e){var t=this.__data__;return it?void 0!==t[e]:at.call(t,e)},st.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=it&&void 0===t?"__lodash_hash_undefined__":t,this};const lt=st,ct=function(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map};function ut(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}ut.prototype.clear=function(){this.size=0,this.__data__={hash:new lt,map:new(rt||nt),string:new lt}},ut.prototype.delete=function(e){var t=ct(this,e).delete(e);return this.size-=t?1:0,t},ut.prototype.get=function(e){return ct(this,e).get(e)},ut.prototype.has=function(e){return ct(this,e).has(e)},ut.prototype.set=function(e,t){var n=ct(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};const dt=ut;function ft(e){var t=this.__data__=new nt(e);this.size=t.size}ft.prototype.clear=function(){this.__data__=new nt,this.size=0},ft.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},ft.prototype.get=function(e){return this.__data__.get(e)},ft.prototype.has=function(e){return this.__data__.has(e)},ft.prototype.set=function(e,t){var n=this.__data__;if(n instanceof nt){var r=n.__data__;if(!rt||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new dt(r)}return n.set(e,t),this.size=n.size,this};const pt=ft;function ht(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new dt;++t<n;)this.add(e[t])}ht.prototype.add=ht.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},ht.prototype.has=function(e){return this.__data__.has(e)};const gt=ht,mt=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1},vt=function(e,t,n,r,i,o){var a=1&n,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var c=o.get(e),u=o.get(t);if(c&&u)return c==t&&u==e;var d=-1,f=!0,p=2&n?new gt:void 0;for(o.set(e,t),o.set(t,e);++d<s;){var h=e[d],g=t[d];if(r)var m=a?r(g,h,d,t,e,o):r(h,g,d,e,t,o);if(void 0!==m){if(m)continue;f=!1;break}if(p){if(!mt(t,(function(e,t){if(a=t,!p.has(a)&&(h===e||i(h,e,n,r,o)))return p.push(t);var a}))){f=!1;break}}else if(h!==g&&!i(h,g,n,r,o)){f=!1;break}}return o.delete(e),o.delete(t),f},yt=M.Uint8Array,bt=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n},xt=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n};var It=A?A.prototype:void 0,wt=It?It.valueOf:void 0;const Tt=function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e},Mt=function(e,t,n){var r=t(e);return _(e)?r:Tt(r,n(e))},At=function(){return[]};var Et=Object.prototype.propertyIsEnumerable,Ct=Object.getOwnPropertySymbols;const Nt=Ct?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}(Ct(e),(function(t){return Et.call(e,t)})))}:At,St=function(e){return Mt(e,de,Nt)};var kt=Object.prototype.hasOwnProperty;const jt=Ve(M,"DataView"),Dt=Ve(M,"Promise"),Ot=Ve(M,"Set"),Lt=Ve(M,"WeakMap");var Rt="[object Map]",Pt="[object Promise]",zt="[object Set]",Ut="[object WeakMap]",_t="[object DataView]",Bt=_e(jt),Ft=_e(rt),Gt=_e(Dt),Zt=_e(Ot),Ht=_e(Lt),qt=D;(jt&&qt(new jt(new ArrayBuffer(1)))!=_t||rt&&qt(new rt)!=Rt||Dt&&qt(Dt.resolve())!=Pt||Ot&&qt(new Ot)!=zt||Lt&&qt(new Lt)!=Ut)&&(qt=function(e){var t=D(e),n="[object Object]"==t?e.constructor:void 0,r=n?_e(n):"";if(r)switch(r){case Bt:return _t;case Ft:return Rt;case Gt:return Pt;case Zt:return zt;case Ht:return Ut}return t});const Yt=qt;var Vt="[object Arguments]",Wt="[object Array]",Qt="[object Object]",Jt=Object.prototype.hasOwnProperty;const Xt=function(e,t,n,r,i,o){var a=_(e),s=_(t),l=a?Wt:Yt(e),c=s?Wt:Yt(t),u=(l=l==Vt?Qt:l)==Qt,d=(c=c==Vt?Qt:c)==Qt,f=l==c;if(f&&Z(e)){if(!Z(t))return!1;a=!0,u=!1}if(f&&!u)return o||(o=new pt),a||ee(e)?vt(e,t,n,r,i,o):function(e,t,n,r,i,o,a){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!o(new yt(e),new yt(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return $e(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var s=bt;case"[object Set]":var l=1&r;if(s||(s=xt),e.size!=t.size&&!l)return!1;var c=a.get(e);if(c)return c==t;r|=2,a.set(e,t);var u=vt(s(e),s(t),r,i,o,a);return a.delete(e),u;case"[object Symbol]":if(wt)return wt.call(e)==wt.call(t)}return!1}(e,t,l,n,r,i,o);if(!(1&n)){var p=u&&Jt.call(e,"__wrapped__"),h=d&&Jt.call(t,"__wrapped__");if(p||h){var g=p?e.value():e,m=h?t.value():t;return o||(o=new pt),i(g,m,n,r,o)}}return!!f&&(o||(o=new pt),function(e,t,n,r,i,o){var a=1&n,s=St(e),l=s.length;if(l!=St(t).length&&!a)return!1;for(var c=l;c--;){var u=s[c];if(!(a?u in t:kt.call(t,u)))return!1}var d=o.get(e),f=o.get(t);if(d&&f)return d==t&&f==e;var p=!0;o.set(e,t),o.set(t,e);for(var h=a;++c<l;){var g=e[u=s[c]],m=t[u];if(r)var v=a?r(m,g,u,t,e,o):r(g,m,u,e,t,o);if(!(void 0===v?g===m||i(g,m,n,r,o):v)){p=!1;break}h||(h="constructor"==u)}if(p&&!h){var y=e.constructor,b=t.constructor;y==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof b&&b instanceof b||(p=!1)}return o.delete(e),o.delete(t),p}(e,t,n,r,i,o))},$t=function e(t,n,r,i,o){return t===n||(null==t||null==n||!O(t)&&!O(n)?t!=t&&n!=n:Xt(t,n,r,i,e,o))},Kt=function(e){return e==e&&!le(e)},en=function(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}},tn=function(e){var t=function(e){for(var t=de(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,Kt(i)]}return t}(e);return 1==t.length&&t[0][2]?en(t[0][0],t[0][1]):function(n){return n===e||function(e,t,n,r){var i=n.length,o=i,a=!r;if(null==e)return!o;for(e=Object(e);i--;){var s=n[i];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<o;){var l=(s=n[i])[0],c=e[l],u=s[1];if(a&&s[2]){if(void 0===c&&!(l in e))return!1}else{var d=new pt;if(r)var f=r(c,u,l,e,t,d);if(!(void 0===f?$t(u,c,3,r,d):f))return!1}}return!0}(n,e,t)}},nn=function(e){return"symbol"==typeof e||O(e)&&"[object Symbol]"==D(e)};var rn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,on=/^\w*$/;const an=function(e,t){if(_(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!nn(e))||on.test(e)||!rn.test(e)||null!=t&&e in Object(t)};function sn(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(sn.Cache||dt),n}sn.Cache=dt;var ln=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,cn=/\\(\\)?/g;const un=(dn=sn((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ln,(function(e,n,r,i){t.push(r?i.replace(cn,"$1"):n||e)})),t}),(function(e){return 500===fn.size&&fn.clear(),e})),fn=dn.cache,dn);var dn,fn;const pn=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i};var hn=A?A.prototype:void 0,gn=hn?hn.toString:void 0;const mn=function e(t){if("string"==typeof t)return t;if(_(t))return pn(t,e)+"";if(nn(t))return gn?gn.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n},vn=function(e){return null==e?"":mn(e)},yn=function(e,t){return _(e)?e:an(e,t)?[e]:un(vn(e))},bn=function(e){if("string"==typeof e||nn(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t},xn=function(e,t){for(var n=0,r=(t=yn(t,e)).length;null!=e&&n<r;)e=e[bn(t[n++])];return n&&n==r?e:void 0},In=function(e,t,n){var r=null==e?void 0:xn(e,t);return void 0===r?n:r},wn=function(e,t){return null!=e&&t in Object(e)},Tn=function(e,t){return null!=e&&function(e,t,n){for(var r=-1,i=(t=yn(t,e)).length,o=!1;++r<i;){var a=bn(t[r]);if(!(o=null!=e&&n(e,a)))break;e=e[a]}return o||++r!=i?o:!!(i=null==e?0:e.length)&&Y(i)&&q(a,i)&&(_(e)||U(e))}(e,t,wn)},Mn=function(e){return an(e)?(t=bn(e),function(e){return null==e?void 0:e[t]}):function(e){return function(t){return xn(t,e)}}(e);var t},An=function(e){return"function"==typeof e?e:null==e?ge:"object"==typeof e?_(e)?(t=e[0],n=e[1],an(t)&&Kt(n)?en(bn(t),n):function(e){var r=In(e,t);return void 0===r&&r===n?Tn(e,t):$t(n,r,3)}):tn(e):Mn(e);var t,n},En=function(e,t){return function(n,r){var i=_(n)?Je:Xe,o=t?t():{};return i(n,e,An(r),o)}};var Cn=Object.prototype.hasOwnProperty;const Nn=En((function(e,t,n){Cn.call(e,n)?e[n].push(t):Qe(e,n,[t])})),Sn=function(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r<i;)o[r]=e[r+t];return o},kn=function(e,t){return e&&e.length?function(e,t,n,r){for(var i=e.length,o=r?i:-1;(r?o--:++o<i)&&t(e[o],o,e););return n?Sn(e,r?0:o,r?o+1:i):Sn(e,r?o+1:0,r?i:o)}(e,An(t)):[]},jn=function(e){return e&&e.length?function(e,t){for(var n,r=-1,i=e.length;++r<i;){var o=t(e[r]);void 0!==o&&(n=void 0===n?o:n+o)}return n}(e,ge):0},Dn=function(e){for(var t=-1,n=null==e?0:e.length,r=0,i=[];++t<n;){var o=e[t];o&&(i[r++]=o)}return i},On=function(e,t,n){for(var r=-1,i=e.length;++r<i;){var o=e[r],a=t(o);if(null!=a&&(void 0===s?a==a&&!nn(a):n(a,s)))var s=a,l=o}return l},Ln=function(e,t){return e<t},Rn=function(e,t){return e&&e.length?On(e,An(t),Ln):void 0},Pn=function(e,t){return e>t},zn=function(e,t){return e&&e.length?On(e,An(t),Pn):void 0};var Un=A?A.isConcatSpreadable:void 0;const _n=function(e){return _(e)||U(e)||!!(Un&&e&&e[Un])},Bn=function e(t,n,r,i,o){var a=-1,s=t.length;for(r||(r=_n),o||(o=[]);++a<s;){var l=t[a];n>0&&r(l)?n>1?e(l,n-1,r,i,o):Tt(o,l):i||(o[o.length]=l)}return o},Fn=function(e,t){var n=-1,r=ue(e)?Array(e.length):[];return pe(e,(function(e,i,o){r[++n]=t(e,i,o)})),r},Gn=function(e,t){if(e!==t){var n=void 0!==e,r=null===e,i=e==e,o=nn(e),a=void 0!==t,s=null===t,l=t==t,c=nn(t);if(!s&&!c&&!o&&e>t||o&&a&&l&&!s&&!c||r&&a&&l||!n&&l||!i)return 1;if(!r&&!o&&!c&&e<t||c&&n&&i&&!r&&!o||s&&n&&i||!a&&i||!l)return-1}return 0},Zn=function(e,t,n){t=t.length?pn(t,(function(e){return _(e)?function(t){return xn(t,1===e.length?e[0]:e)}:e})):[ge];var r=-1;return t=pn(t,W(An)),function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(Fn(e,(function(e,n,i){return{criteria:pn(t,(function(t){return t(e)})),index:++r,value:e}})),(function(e,t){return function(e,t,n){for(var r=-1,i=e.criteria,o=t.criteria,a=i.length,s=n.length;++r<a;){var l=Gn(i[r],o[r]);if(l)return r>=s?l:l*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}))};var Hn=Math.max;const qn=function(e,t,n){return t=Hn(void 0===t?e.length-1:t,0),function(){for(var r=arguments,i=-1,o=Hn(r.length-t,0),a=Array(o);++i<o;)a[i]=r[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=r[i];return s[t]=n(a),function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}(e,this,s)}},Yn=We?function(e,t){return We(e,"toString",{configurable:!0,enumerable:!1,value:(n=t,function(){return n}),writable:!0});var n}:ge;var Vn=Date.now;const Wn=(Qn=Yn,Jn=0,Xn=0,function(){var e=Vn(),t=16-(e-Xn);if(Xn=e,t>0){if(++Jn>=800)return arguments[0]}else Jn=0;return Qn.apply(void 0,arguments)});var Qn,Jn,Xn;const $n=function(e,t,n){if(!le(n))return!1;var r=typeof t;return!!("number"==r?ue(n)&&q(t,n.length):"string"==r&&t in n)&&$e(n[t],e)},Kn=function(e,t){return Wn(qn(e,void 0,ge),e+"")}((function(e,t){if(null==e)return[];var n=t.length;return n>1&&$n(e,t[0],t[1])?t=[]:n>2&&$n(t[0],t[1],t[2])&&(t=[t[0]]),Zn(e,Bn(t,1),[])})),er=En((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var tr=/\s/;const nr=function(e){for(var t=e.length;t--&&tr.test(e.charAt(t)););return t};var rr=/^\s+/;var ir=/^[-+]0x[0-9a-f]+$/i,or=/^0b[01]+$/i,ar=/^0o[0-7]+$/i,sr=parseInt;const lr=function(e){if("number"==typeof e)return e;if(nn(e))return NaN;if(le(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=le(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;var n;e=(n=e)?n.slice(0,nr(n)+1).replace(rr,""):n;var r=or.test(e);return r||ar.test(e)?sr(e.slice(2),r?2:8):ir.test(e)?NaN:+e},cr=function(e,t,n){return void 0===n&&(n=t,t=void 0),void 0!==n&&(n=(n=lr(n))==n?n:0),void 0!==t&&(t=(t=lr(t))==t?t:0),function(e,t,n){return e==e&&(void 0!==n&&(e=e<=n?e:n),void 0!==t&&(e=e>=t?e:t)),e}(lr(e),t,n)};function ur(e,t){if(function(e){var t;const n=e.cloneContents(),r=Array.from(n.childNodes).some((e=>e instanceof Element&&(e.classList.contains("e-annotation-wrapper")||"IMG"===e.tagName)));return 0===(null===(t=n.textContent)||void 0===t?void 0:t.length)&&!r}(t))return;const n=function(e,t=document){let n=null;const r=[],i=t.createTreeWalker(e,NodeFilter.SHOW_TEXT+NodeFilter.SHOW_ELEMENT,null);for(;n=i.nextNode();)r.push(n);return r}(e),r=o(t.startContainer,t.startOffset,e),i=o(t.endContainer,t.endOffset,e)-r;if(!(i<=0))return{startIndex:r,length:i};function o(e,t,r){const i=e===r,o=i?e.childNodes[t]:e,a=i?0:t,s=kn(n,(e=>e!==o));return a+jn(s.map(fr))}}function dr(e,t,n){return function(e,t,n){const r=mr(e,{startIndex:t,length:n,message:""});return Dn(r.overlapping.map((e=>e.message))).reduceRight(((e,t)=>`${t} / ${e}`),"")}(e.filter((e=>"text"===e.type)),t,n)}function fr(e){var t;return e.nodeType===Node.TEXT_NODE?null===(t=e.textContent)||void 0===t?void 0:t.length:"IMG"===e.nodeName?1:0}function pr(e,t,n,r){const i=n.style;if(t){i.display="block";const o=t.getBoundingClientRect(),a=n.getBoundingClientRect(),s=e.left-o.left,l=e.bottom-o.top+r;i.top=`${String(l)}px`,i.left=`${String(s+a.width<o.width-30?s+20:o.width-a.width-20)}px`}}function hr(){const e=window.getSelection();return null!==e&&function(e){var t,n,r;if("None"===e.type||"Caret"===e.type||0===e.rangeCount)return!1;const i=e.getRangeAt(0).startContainer,o=e.getRangeAt(0).endContainer;return e.rangeCount>0&&null!==(null===(t=i.parentElement)||void 0===t?void 0:t.closest(".e-grading-answer"))&&null!==(null===(n=o.parentElement)||void 0===n?void 0:n.closest(".e-grading-answer"))&&null===(null===(r=i.parentElement)||void 0===r?void 0:r.closest(".remove-annotation-popup"))}(e)&&("Range"===(null==(t=e)?void 0:t.type)||function(e){const t=e.getRangeAt(0);return!!e.rangeCount&&(t.toString().length>0||n(t.startContainer)||n(t.endContainer))}(e));var t;function n(e){return e.classList.contains("answer")}}function gr(e,t,n){const r=mr(n,t);if(r.overlapping.length>0){r.overlapping.push(t);const e=Rn(r.overlapping,(e=>e.startIndex)),n=zn(r.overlapping,(e=>e.startIndex+e.length)),i={startIndex:e.startIndex,length:n.startIndex+n.length-e.startIndex,message:t.message};r.nonOverlapping.push(i)}else r.nonOverlapping.push(t);return Kn(r.nonOverlapping,(t=>{return"line"===t.type||"rect"===t.type?function(e,t){var n;const r=document.createRange();return r.selectNode(e),null===(n=ur(t,r))||void 0===n?void 0:n.startIndex}((n=e,r=t.attachmentIndex,n.querySelectorAll("img").item(r)),e):t.startIndex;var n,r}),(e=>"rect"===e.type?e.y:"line"===e.type?e.y1:void 0),(e=>"rect"===e.type?e.x:"line"===e.type?e.x1:void 0))}function mr(e,t){const n=er(e,(e=>{const n=t.startIndex+t.length,r=e.startIndex+e.length;return t.startIndex>=e.startIndex&&t.startIndex<=r||n>=e.startIndex&&n<=r||t.startIndex<=e.startIndex&&n>=r}));return{overlapping:n[0],nonOverlapping:n[1]}}function vr(e){return cr(e,0,1)}function yr(e){e.preventDefault(),e.stopPropagation()}function br(e,t){e.style.display=t?"initial":"none"}function xr(){return matchMedia("(pointer:fine)").matches}const Ir=e=>{var t;return null===(t=null==e?void 0:e.closest("div[data-annotation-anchor]"))||void 0===t?void 0:t.getAttribute("data-annotation-anchor")},wr=e=>(null==e?void 0:e.getAttribute("data-annotation-path"))&&"MARK"!==e.tagName;var Tr=a(8115),Mr=a.n(Tr),Ar=a(3373),Er=a.n(Ar);const Cr=()=>{};let Nr={},Sr={},kr=null,jr={mark:Cr,measure:Cr};try{"undefined"!=typeof window&&(Nr=window),"undefined"!=typeof document&&(Sr=document),"undefined"!=typeof MutationObserver&&(kr=MutationObserver),"undefined"!=typeof performance&&(jr=performance)}catch(e){}const{userAgent:Dr=""}=Nr.navigator||{},Or=Nr,Lr=Sr,Rr=kr,Pr=jr,zr=(Or.document,!!Lr.documentElement&&!!Lr.head&&"function"==typeof Lr.addEventListener&&"function"==typeof Lr.createElement),Ur=~Dr.indexOf("MSIE")||~Dr.indexOf("Trident/");var _r="classic",Br="duotone",Fr="sharp",Gr="sharp-duotone",Zr=[_r,Br,Fr,Gr],Hr={classic:{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fad:"duotone","fa-duotone":"duotone",fab:"brands","fa-brands":"brands"},sharp:{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light",fast:"thin","fa-thin":"thin"},"sharp-duotone":{fa:"solid",fasds:"solid","fa-solid":"solid"}},qr=[1,2,3,4,5,6,7,8,9,10],Yr=qr.concat([11,12,13,14,15,16,17,18,19,20]),Vr={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},Wr=[...Object.keys({classic:["fas","far","fal","fat"],sharp:["fass","fasr","fasl","fast"],"sharp-duotone":["fasds"]}),"solid","regular","light","thin","duotone","brands","2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul",Vr.GROUP,Vr.SWAP_OPACITY,Vr.PRIMARY,Vr.SECONDARY].concat(qr.map((e=>"".concat(e,"x")))).concat(Yr.map((e=>"w-".concat(e))));const Qr="___FONT_AWESOME___",Jr=16,Xr="fa",$r="svg-inline--fa",Kr="data-fa-i2svg",ei="data-fa-pseudo-element",ti="data-fa-pseudo-element-pending",ni="data-prefix",ri="data-icon",ii="fontawesome-i2svg",oi="async",ai=["HTML","HEAD","STYLE","SCRIPT"],si=(()=>{try{return!0}catch(e){return!1}})(),li=[_r,Fr,Gr];function ci(e){return new Proxy(e,{get:(e,t)=>t in e?e[t]:e[_r]})}const ui={...Hr};ui[_r]={...Hr[_r],fak:"kit","fa-kit":"kit",fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"};const di=ci(ui),fi={classic:{solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab"},sharp:{solid:"fass",regular:"fasr",light:"fasl",thin:"fast"},"sharp-duotone":{solid:"fasds"}};fi[_r]={...fi[_r],kit:"fak","kit-duotone":"fakd"};const pi=ci(fi),hi={classic:{fab:"fa-brands",fad:"fa-duotone",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"},sharp:{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"},"sharp-duotone":{fasds:"fa-solid"}};hi[_r]={...hi[_r],fak:"fa-kit"};const gi=ci(hi),mi={classic:{"fa-brands":"fab","fa-duotone":"fad","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"},sharp:{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"},"sharp-duotone":{"fa-solid":"fasds"}};mi[_r]={...mi[_r],"fa-kit":"fak"};const vi=ci(mi),yi=/fa(s|r|l|t|d|b|k|kd|ss|sr|sl|st|sds)?[\-\ ]/,bi="fa-layers-text",xi=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit)?.*/i,Ii=(ci({classic:{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},sharp:{900:"fass",400:"fasr",300:"fasl",100:"fast"},"sharp-duotone":{900:"fasds"}}),["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"]),wi=Vr,Ti=new Set;Object.keys(pi[_r]).map(Ti.add.bind(Ti)),Object.keys(pi[Fr]).map(Ti.add.bind(Ti)),Object.keys(pi[Gr]).map(Ti.add.bind(Ti));const Mi=["kit",...Wr],Ai=Or.FontAwesomeConfig||{};Lr&&"function"==typeof Lr.querySelector&&[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach((e=>{let[t,n]=e;const r=function(e){return""===e||"false"!==e&&("true"===e||e)}(function(e){var t=Lr.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}(t));null!=r&&(Ai[n]=r)}));const Ei={styleDefault:"solid",familyDefault:"classic",cssPrefix:Xr,replacementClass:$r,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};Ai.familyPrefix&&(Ai.cssPrefix=Ai.familyPrefix);const Ci={...Ei,...Ai};Ci.autoReplaceSvg||(Ci.observeMutations=!1);const Ni={};Object.keys(Ei).forEach((e=>{Object.defineProperty(Ni,e,{enumerable:!0,set:function(t){Ci[e]=t,Si.forEach((e=>e(Ni)))},get:function(){return Ci[e]}})})),Object.defineProperty(Ni,"familyPrefix",{enumerable:!0,set:function(e){Ci.cssPrefix=e,Si.forEach((e=>e(Ni)))},get:function(){return Ci.cssPrefix}}),Or.FontAwesomeConfig=Ni;const Si=[],ki=Jr,ji={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1},Di="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function Oi(){let e=12,t="";for(;e-- >0;)t+=Di[62*Math.random()|0];return t}function Li(e){const t=[];for(let n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function Ri(e){return e.classList?Li(e.classList):(e.getAttribute("class")||"").split(" ").filter((e=>e))}function Pi(e){return"".concat(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function zi(e){return Object.keys(e||{}).reduce(((t,n)=>t+"".concat(n,": ").concat(e[n].trim(),";")),"")}function Ui(e){return e.size!==ji.size||e.x!==ji.x||e.y!==ji.y||e.rotate!==ji.rotate||e.flipX||e.flipY}var _i=':root, :host {\n --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Free";\n --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Free";\n --fa-font-light: normal 300 1em/1 "Font Awesome 6 Pro";\n --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Pro";\n --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone";\n --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";\n --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp";\n --fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 6 Sharp";\n --fa-font-sharp-light: normal 300 1em/1 "Font Awesome 6 Sharp";\n --fa-font-sharp-thin: normal 100 1em/1 "Font Awesome 6 Sharp";\n --fa-font-sharp-duotone-solid: normal 900 1em/1 "Font Awesome 6 Sharp Duotone";\n}\n\nsvg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {\n overflow: visible;\n box-sizing: content-box;\n}\n\n.svg-inline--fa {\n display: var(--fa-display, inline-block);\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-2xs {\n vertical-align: 0.1em;\n}\n.svg-inline--fa.fa-xs {\n vertical-align: 0em;\n}\n.svg-inline--fa.fa-sm {\n vertical-align: -0.0714285705em;\n}\n.svg-inline--fa.fa-lg {\n vertical-align: -0.2em;\n}\n.svg-inline--fa.fa-xl {\n vertical-align: -0.25em;\n}\n.svg-inline--fa.fa-2xl {\n vertical-align: -0.3125em;\n}\n.svg-inline--fa.fa-pull-left {\n margin-right: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n margin-left: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-li {\n width: var(--fa-li-width, 2em);\n top: 0.25em;\n}\n.svg-inline--fa.fa-fw {\n width: var(--fa-fw-width, 1.25em);\n}\n\n.fa-layers svg.svg-inline--fa {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.fa-layers-counter, .fa-layers-text {\n display: inline-block;\n position: absolute;\n text-align: center;\n}\n\n.fa-layers {\n display: inline-block;\n height: 1em;\n position: relative;\n text-align: center;\n vertical-align: -0.125em;\n width: 1em;\n}\n.fa-layers svg.svg-inline--fa {\n transform-origin: center center;\n}\n\n.fa-layers-text {\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n transform-origin: center center;\n}\n\n.fa-layers-counter {\n background-color: var(--fa-counter-background-color, #ff253a);\n border-radius: var(--fa-counter-border-radius, 1em);\n box-sizing: border-box;\n color: var(--fa-inverse, #fff);\n line-height: var(--fa-counter-line-height, 1);\n max-width: var(--fa-counter-max-width, 5em);\n min-width: var(--fa-counter-min-width, 1.5em);\n overflow: hidden;\n padding: var(--fa-counter-padding, 0.25em 0.5em);\n right: var(--fa-right, 0);\n text-overflow: ellipsis;\n top: var(--fa-top, 0);\n transform: scale(var(--fa-counter-scale, 0.25));\n transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n bottom: var(--fa-bottom, 0);\n right: var(--fa-right, 0);\n top: auto;\n transform: scale(var(--fa-layers-scale, 0.25));\n transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n bottom: var(--fa-bottom, 0);\n left: var(--fa-left, 0);\n right: auto;\n top: auto;\n transform: scale(var(--fa-layers-scale, 0.25));\n transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n top: var(--fa-top, 0);\n right: var(--fa-right, 0);\n transform: scale(var(--fa-layers-scale, 0.25));\n transform-origin: top right;\n}\n\n.fa-layers-top-left {\n left: var(--fa-left, 0);\n right: auto;\n top: var(--fa-top, 0);\n transform: scale(var(--fa-layers-scale, 0.25));\n transform-origin: top left;\n}\n\n.fa-1x {\n font-size: 1em;\n}\n\n.fa-2x {\n font-size: 2em;\n}\n\n.fa-3x {\n font-size: 3em;\n}\n\n.fa-4x {\n font-size: 4em;\n}\n\n.fa-5x {\n font-size: 5em;\n}\n\n.fa-6x {\n font-size: 6em;\n}\n\n.fa-7x {\n font-size: 7em;\n}\n\n.fa-8x {\n font-size: 8em;\n}\n\n.fa-9x {\n font-size: 9em;\n}\n\n.fa-10x {\n font-size: 10em;\n}\n\n.fa-2xs {\n font-size: 0.625em;\n line-height: 0.1em;\n vertical-align: 0.225em;\n}\n\n.fa-xs {\n font-size: 0.75em;\n line-height: 0.0833333337em;\n vertical-align: 0.125em;\n}\n\n.fa-sm {\n font-size: 0.875em;\n line-height: 0.0714285718em;\n vertical-align: 0.0535714295em;\n}\n\n.fa-lg {\n font-size: 1.25em;\n line-height: 0.05em;\n vertical-align: -0.075em;\n}\n\n.fa-xl {\n font-size: 1.5em;\n line-height: 0.0416666682em;\n vertical-align: -0.125em;\n}\n\n.fa-2xl {\n font-size: 2em;\n line-height: 0.03125em;\n vertical-align: -0.1875em;\n}\n\n.fa-fw {\n text-align: center;\n width: 1.25em;\n}\n\n.fa-ul {\n list-style-type: none;\n margin-left: var(--fa-li-margin, 2.5em);\n padding-left: 0;\n}\n.fa-ul > li {\n position: relative;\n}\n\n.fa-li {\n left: calc(-1 * var(--fa-li-width, 2em));\n position: absolute;\n text-align: center;\n width: var(--fa-li-width, 2em);\n line-height: inherit;\n}\n\n.fa-border {\n border-color: var(--fa-border-color, #eee);\n border-radius: var(--fa-border-radius, 0.1em);\n border-style: var(--fa-border-style, solid);\n border-width: var(--fa-border-width, 0.08em);\n padding: var(--fa-border-padding, 0.2em 0.25em 0.15em);\n}\n\n.fa-pull-left {\n float: left;\n margin-right: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-pull-right {\n float: right;\n margin-left: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-beat {\n animation-name: fa-beat;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-bounce {\n animation-name: fa-bounce;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n}\n\n.fa-fade {\n animation-name: fa-fade;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-beat-fade {\n animation-name: fa-beat-fade;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-flip {\n animation-name: fa-flip;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-shake {\n animation-name: fa-shake;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin {\n animation-name: fa-spin;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 2s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin-reverse {\n --fa-animation-direction: reverse;\n}\n\n.fa-pulse,\n.fa-spin-pulse {\n animation-name: fa-spin;\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, steps(8));\n}\n\n@media (prefers-reduced-motion: reduce) {\n .fa-beat,\n.fa-bounce,\n.fa-fade,\n.fa-beat-fade,\n.fa-flip,\n.fa-pulse,\n.fa-shake,\n.fa-spin,\n.fa-spin-pulse {\n animation-delay: -1ms;\n animation-duration: 1ms;\n animation-iteration-count: 1;\n transition-delay: 0s;\n transition-duration: 0s;\n }\n}\n@keyframes fa-beat {\n 0%, 90% {\n transform: scale(1);\n }\n 45% {\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@keyframes fa-bounce {\n 0% {\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n transform: scale(1, 1) translateY(0);\n }\n}\n@keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@keyframes fa-flip {\n 50% {\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@keyframes fa-shake {\n 0% {\n transform: rotate(-15deg);\n }\n 4% {\n transform: rotate(15deg);\n }\n 8%, 24% {\n transform: rotate(-18deg);\n }\n 12%, 28% {\n transform: rotate(18deg);\n }\n 16% {\n transform: rotate(-22deg);\n }\n 20% {\n transform: rotate(22deg);\n }\n 32% {\n transform: rotate(-12deg);\n }\n 36% {\n transform: rotate(12deg);\n }\n 40%, 100% {\n transform: rotate(0deg);\n }\n}\n@keyframes fa-spin {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n}\n.fa-rotate-90 {\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n transform: scale(1, -1);\n}\n\n.fa-flip-both,\n.fa-flip-horizontal.fa-flip-vertical {\n transform: scale(-1, -1);\n}\n\n.fa-rotate-by {\n transform: rotate(var(--fa-rotate-angle, 0));\n}\n\n.fa-stack {\n display: inline-block;\n vertical-align: middle;\n height: 2em;\n position: relative;\n width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n z-index: var(--fa-stack-z-index, auto);\n}\n\n.svg-inline--fa.fa-stack-1x {\n height: 1em;\n width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n height: 2em;\n width: 2.5em;\n}\n\n.fa-inverse {\n color: var(--fa-inverse, #fff);\n}\n\n.sr-only,\n.fa-sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.sr-only-focusable:not(:focus),\n.fa-sr-only-focusable:not(:focus) {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.svg-inline--fa .fa-primary {\n fill: var(--fa-primary-color, currentColor);\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n fill: var(--fa-secondary-color, currentColor);\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n fill: black;\n}\n\n.fad.fa-inverse,\n.fa-duotone.fa-inverse {\n color: var(--fa-inverse, #fff);\n}';function Bi(){const e=Xr,t=$r,n=Ni.cssPrefix,r=Ni.replacementClass;let i=_i;if(n!==e||r!==t){const o=new RegExp("\\.".concat(e,"\\-"),"g"),a=new RegExp("\\--".concat(e,"\\-"),"g"),s=new RegExp("\\.".concat(t),"g");i=i.replace(o,".".concat(n,"-")).replace(a,"--".concat(n,"-")).replace(s,".".concat(r))}return i}let Fi=!1;function Gi(){Ni.autoAddCss&&!Fi&&(function(e){if(!e||!zr)return;const t=Lr.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;const n=Lr.head.childNodes;let r=null;for(let e=n.length-1;e>-1;e--){const t=n[e],i=(t.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(i)>-1&&(r=t)}Lr.head.insertBefore(t,r)}(Bi()),Fi=!0)}var Zi={mixout:()=>({dom:{css:Bi,insertCss:Gi}}),hooks:()=>({beforeDOMElementCreation(){Gi()},beforeI2svg(){Gi()}})};const Hi=Or||{};Hi[Qr]||(Hi[Qr]={}),Hi[Qr].styles||(Hi[Qr].styles={}),Hi[Qr].hooks||(Hi[Qr].hooks={}),Hi[Qr].shims||(Hi[Qr].shims=[]);var qi=Hi[Qr];const Yi=[],Vi=function(){Lr.removeEventListener("DOMContentLoaded",Vi),Wi=1,Yi.map((e=>e()))};let Wi=!1;function Qi(e){const{tag:t,attributes:n={},children:r=[]}=e;return"string"==typeof e?Pi(e):"<".concat(t," ").concat(function(e){return Object.keys(e||{}).reduce(((t,n)=>t+"".concat(n,'="').concat(Pi(e[n]),'" ')),"").trim()}(n),">").concat(r.map(Qi).join(""),"</").concat(t,">")}function Ji(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}zr&&(Wi=(Lr.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(Lr.readyState),Wi||Lr.addEventListener("DOMContentLoaded",Vi));var Xi=function(e,t,n,r){var i,o,a,s=Object.keys(e),l=s.length,c=void 0!==r?function(e,t){return function(n,r,i,o){return e.call(t,n,r,i,o)}}(t,r):t;for(void 0===n?(i=1,a=e[s[0]]):(i=0,a=n);i<l;i++)a=c(a,e[o=s[i]],o,e);return a};function $i(e){const t=function(e){const t=[];let n=0;const r=e.length;for(;n<r;){const i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){const r=e.charCodeAt(n++);56320==(64512&r)?t.push(((1023&i)<<10)+(1023&r)+65536):(t.push(i),n--)}else t.push(i)}return t}(e);return 1===t.length?t[0].toString(16):null}function Ki(e){return Object.keys(e).reduce(((t,n)=>{const r=e[n];return r.icon?t[r.iconName]=r.icon:t[n]=r,t}),{})}function eo(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{skipHooks:r=!1}=n,i=Ki(t);"function"!=typeof qi.hooks.addPack||r?qi.styles[e]={...qi.styles[e]||{},...i}:qi.hooks.addPack(e,Ki(t)),"fas"===e&&eo("fa",t)}const{styles:to,shims:no}=qi,ro={[_r]:Object.values(gi[_r]),[Fr]:Object.values(gi[Fr]),[Gr]:Object.values(gi[Gr])};let io=null,oo={},ao={},so={},lo={},co={};const uo={[_r]:Object.keys(di[_r]),[Fr]:Object.keys(di[Fr]),[Gr]:Object.keys(di[Gr])};const fo=()=>{const e=e=>Xi(to,((t,n,r)=>(t[r]=Xi(n,e,{}),t)),{});oo=e(((e,t,n)=>(t[3]&&(e[t[3]]=n),t[2]&&t[2].filter((e=>"number"==typeof e)).forEach((t=>{e[t.toString(16)]=n})),e))),ao=e(((e,t,n)=>(e[n]=n,t[2]&&t[2].filter((e=>"string"==typeof e)).forEach((t=>{e[t]=n})),e))),co=e(((e,t,n)=>{const r=t[2];return e[n]=n,r.forEach((t=>{e[t]=n})),e}));const t="far"in to||Ni.autoFetchSvg,n=Xi(no,((e,n)=>{const r=n[0];let i=n[1];const o=n[2];return"far"!==i||t||(i="fas"),"string"==typeof r&&(e.names[r]={prefix:i,iconName:o}),"number"==typeof r&&(e.unicodes[r.toString(16)]={prefix:i,iconName:o}),e}),{names:{},unicodes:{}});so=n.names,lo=n.unicodes,io=bo(Ni.styleDefault,{family:Ni.familyDefault})};var po;function ho(e,t){return(oo[e]||{})[t]}function go(e,t){return(co[e]||{})[t]}function mo(e){return so[e]||{prefix:null,iconName:null}}function vo(){return io}po=e=>{io=bo(e.styleDefault,{family:Ni.familyDefault})},Si.push(po),fo();const yo=()=>({prefix:null,iconName:null,rest:[]});function bo(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{family:n=_r}=t,r=di[n][e],i=pi[n][e]||pi[n][r],o=e in qi.styles?e:null;return i||o||null}const xo={[_r]:Object.keys(gi[_r]),[Fr]:Object.keys(gi[Fr]),[Gr]:Object.keys(gi[Gr])};function Io(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{skipLookups:n=!1}=t,r={[_r]:"".concat(Ni.cssPrefix,"-").concat(_r),[Fr]:"".concat(Ni.cssPrefix,"-").concat(Fr),[Gr]:"".concat(Ni.cssPrefix,"-").concat(Gr)};let i=null,o=_r;const a=Zr.filter((e=>e!==Br));a.forEach((t=>{(e.includes(r[t])||e.some((e=>xo[t].includes(e))))&&(o=t)}));const s=e.reduce(((e,t)=>{const s=function(e,t){const n=t.split("-"),r=n[0],i=n.slice(1).join("-");return r!==e||""===i||(o=i,~Mi.indexOf(o))?null:i;var o}(Ni.cssPrefix,t);if(to[t]?(t=ro[o].includes(t)?vi[o][t]:t,i=t,e.prefix=t):uo[o].indexOf(t)>-1?(i=t,e.prefix=bo(t,{family:o})):s?e.iconName=s:t===Ni.replacementClass||a.some((e=>t===r[e]))||e.rest.push(t),!n&&e.prefix&&e.iconName){const t="fa"===i?mo(e.iconName):{},n=go(e.prefix,e.iconName);t.prefix&&(i=null),e.iconName=t.iconName||n||e.iconName,e.prefix=t.prefix||e.prefix,"far"!==e.prefix||to.far||!to.fas||Ni.autoFetchSvg||(e.prefix="fas")}return e}),yo());return(e.includes("fa-brands")||e.includes("fab"))&&(s.prefix="fab"),(e.includes("fa-duotone")||e.includes("fad"))&&(s.prefix="fad"),s.prefix||o!==Fr||!to.fass&&!Ni.autoFetchSvg||(s.prefix="fass",s.iconName=go(s.prefix,s.iconName)||s.iconName),s.prefix||o!==Gr||!to.fasds&&!Ni.autoFetchSvg||(s.prefix="fasds",s.iconName=go(s.prefix,s.iconName)||s.iconName),"fa"!==s.prefix&&"fa"!==i||(s.prefix=vo()||"fas"),s}let wo=[],To={};const Mo={},Ao=Object.keys(Mo);function Eo(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return(To[e]||[]).forEach((e=>{t=e.apply(null,[t,...r])})),t}function Co(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];(To[e]||[]).forEach((e=>{e.apply(null,n)}))}function No(){const e=arguments[0],t=Array.prototype.slice.call(arguments,1);return Mo[e]?Mo[e].apply(null,t):void 0}function So(e){"fa"===e.prefix&&(e.prefix="fas");let{iconName:t}=e;const n=e.prefix||vo();if(t)return t=go(n,t)||t,Ji(ko.definitions,n,t)||Ji(qi.styles,n,t)}const ko=new class{constructor(){this.definitions={}}add(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=t.reduce(this._pullDefinitions,{});Object.keys(r).forEach((e=>{this.definitions[e]={...this.definitions[e]||{},...r[e]},eo(e,r[e]);const t=gi[_r][e];t&&eo(t,r[e]),fo()}))}reset(){this.definitions={}}_pullDefinitions(e,t){const n=t.prefix&&t.iconName&&t.icon?{0:t}:t;return Object.keys(n).map((t=>{const{prefix:r,iconName:i,icon:o}=n[t],a=o[2];e[r]||(e[r]={}),a.length>0&&a.forEach((t=>{"string"==typeof t&&(e[r][t]=o)})),e[r][i]=o})),e}},jo={i2svg:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return zr?(Co("beforeI2svg",e),No("pseudoElements2svg",e),No("i2svg",e)):Promise.reject(new Error("Operation requires a DOM of some kind."))},watch:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{autoReplaceSvgRoot:t}=e;var n;!1===Ni.autoReplaceSvg&&(Ni.autoReplaceSvg=!0),Ni.observeMutations=!0,n=()=>{Oo({autoReplaceSvgRoot:t}),Co("watch",e)},zr&&(Wi?setTimeout(n,0):Yi.push(n))}},Do={noAuto:()=>{Ni.autoReplaceSvg=!1,Ni.observeMutations=!1,Co("noAuto")},config:Ni,dom:jo,parse:{icon:e=>{if(null===e)return null;if("object"==typeof e&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:go(e.prefix,e.iconName)||e.iconName};if(Array.isArray(e)&&2===e.length){const t=0===e[1].indexOf("fa-")?e[1].slice(3):e[1],n=bo(e[0]);return{prefix:n,iconName:go(n,t)||t}}if("string"==typeof e&&(e.indexOf("".concat(Ni.cssPrefix,"-"))>-1||e.match(yi))){const t=Io(e.split(" "),{skipLookups:!0});return{prefix:t.prefix||vo(),iconName:go(t.prefix,t.iconName)||t.iconName}}if("string"==typeof e){const t=vo();return{prefix:t,iconName:go(t,e)||e}}}},library:ko,findIconDefinition:So,toHtml:Qi},Oo=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{autoReplaceSvgRoot:t=Lr}=e;(Object.keys(qi.styles).length>0||Ni.autoFetchSvg)&&zr&&Ni.autoReplaceSvg&&Do.dom.i2svg({node:t})};function Lo(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map((e=>Qi(e)))}}),Object.defineProperty(e,"node",{get:function(){if(!zr)return;const t=Lr.createElement("div");return t.innerHTML=e.html,t.children}}),e}function Ro(e){const{icons:{main:t,mask:n},prefix:r,iconName:i,transform:o,symbol:a,title:s,maskId:l,titleId:c,extra:u,watchable:d=!1}=e,{width:f,height:p}=n.found?n:t,h="fak"===r,g=[Ni.replacementClass,i?"".concat(Ni.cssPrefix,"-").concat(i):""].filter((e=>-1===u.classes.indexOf(e))).filter((e=>""!==e||!!e)).concat(u.classes).join(" ");let m={children:[],attributes:{...u.attributes,"data-prefix":r,"data-icon":i,class:g,role:u.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(f," ").concat(p)}};const v=h&&!~u.classes.indexOf("fa-fw")?{width:"".concat(f/p*16*.0625,"em")}:{};d&&(m.attributes[Kr]=""),s&&(m.children.push({tag:"title",attributes:{id:m.attributes["aria-labelledby"]||"title-".concat(c||Oi())},children:[s]}),delete m.attributes.title);const y={...m,prefix:r,iconName:i,main:t,mask:n,maskId:l,transform:o,symbol:a,styles:{...v,...u.styles}},{children:b,attributes:x}=n.found&&t.found?No("generateAbstractMask",y)||{children:[],attributes:{}}:No("generateAbstractIcon",y)||{children:[],attributes:{}};return y.children=b,y.attributes=x,a?function(e){let{prefix:t,iconName:n,children:r,attributes:i,symbol:o}=e;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:{...i,id:!0===o?"".concat(t,"-").concat(Ni.cssPrefix,"-").concat(n):o},children:r}]}]}(y):function(e){let{children:t,main:n,mask:r,attributes:i,styles:o,transform:a}=e;if(Ui(a)&&n.found&&!r.found){const{width:e,height:t}=n,r={x:e/t/2,y:.5};i.style=zi({...o,"transform-origin":"".concat(r.x+a.x/16,"em ").concat(r.y+a.y/16,"em")})}return[{tag:"svg",attributes:i,children:t}]}(y)}function Po(e){const{content:t,width:n,height:r,transform:i,title:o,extra:a,watchable:s=!1}=e,l={...a.attributes,...o?{title:o}:{},class:a.classes.join(" ")};s&&(l[Kr]="");const c={...a.styles};Ui(i)&&(c.transform=function(e){let{transform:t,width:n=Jr,height:r=Jr,startCentered:i=!1}=e,o="";return o+=i&&Ur?"translate(".concat(t.x/ki-n/2,"em, ").concat(t.y/ki-r/2,"em) "):i?"translate(calc(-50% + ".concat(t.x/ki,"em), calc(-50% + ").concat(t.y/ki,"em)) "):"translate(".concat(t.x/ki,"em, ").concat(t.y/ki,"em) "),o+="scale(".concat(t.size/ki*(t.flipX?-1:1),", ").concat(t.size/ki*(t.flipY?-1:1),") "),o+="rotate(".concat(t.rotate,"deg) "),o}({transform:i,startCentered:!0,width:n,height:r}),c["-webkit-transform"]=c.transform);const u=zi(c);u.length>0&&(l.style=u);const d=[];return d.push({tag:"span",attributes:l,children:[t]}),o&&d.push({tag:"span",attributes:{class:"sr-only"},children:[o]}),d}const{styles:zo}=qi;function Uo(e){const t=e[0],n=e[1],[r]=e.slice(4);let i=null;return i=Array.isArray(r)?{tag:"g",attributes:{class:"".concat(Ni.cssPrefix,"-").concat(wi.GROUP)},children:[{tag:"path",attributes:{class:"".concat(Ni.cssPrefix,"-").concat(wi.SECONDARY),fill:"currentColor",d:r[0]}},{tag:"path",attributes:{class:"".concat(Ni.cssPrefix,"-").concat(wi.PRIMARY),fill:"currentColor",d:r[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:r}},{found:!0,width:t,height:n,icon:i}}const _o={found:!1,width:512,height:512};function Bo(e,t){let n=t;return"fa"===t&&null!==Ni.styleDefault&&(t=vo()),new Promise(((r,i)=>{if("fa"===n){const n=mo(e)||{};e=n.iconName||e,t=n.prefix||t}if(e&&t&&zo[t]&&zo[t][e])return r(Uo(zo[t][e]));!function(e,t){si||Ni.showMissingIcons||!e||console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}(e,t),r({..._o,icon:Ni.showMissingIcons&&e&&No("missingIconAbstract")||{}})}))}const Fo=()=>{},Go=Ni.measurePerformance&&Pr&&Pr.mark&&Pr.measure?Pr:{mark:Fo,measure:Fo},Zo='FA "6.6.0"',Ho=e=>{Go.mark("".concat(Zo," ").concat(e," ends")),Go.measure("".concat(Zo," ").concat(e),"".concat(Zo," ").concat(e," begins"),"".concat(Zo," ").concat(e," ends"))};var qo={begin:e=>(Go.mark("".concat(Zo," ").concat(e," begins")),()=>Ho(e)),end:Ho};const Yo=()=>{};function Vo(e){return"string"==typeof(e.getAttribute?e.getAttribute(Kr):null)}function Wo(e){return Lr.createElementNS("http://www.w3.org/2000/svg",e)}function Qo(e){return Lr.createElement(e)}function Jo(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{ceFn:n=("svg"===e.tag?Wo:Qo)}=t;if("string"==typeof e)return Lr.createTextNode(e);const r=n(e.tag);return Object.keys(e.attributes||[]).forEach((function(t){r.setAttribute(t,e.attributes[t])})),(e.children||[]).forEach((function(e){r.appendChild(Jo(e,{ceFn:n}))})),r}const Xo={replace:function(e){const t=e[0];if(t.parentNode)if(e[1].forEach((e=>{t.parentNode.insertBefore(Jo(e),t)})),null===t.getAttribute(Kr)&&Ni.keepOriginalSource){let e=Lr.createComment(function(e){let t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}(t));t.parentNode.replaceChild(e,t)}else t.remove()},nest:function(e){const t=e[0],n=e[1];if(~Ri(t).indexOf(Ni.replacementClass))return Xo.replace(e);const r=new RegExp("".concat(Ni.cssPrefix,"-.*"));if(delete n[0].attributes.id,n[0].attributes.class){const e=n[0].attributes.class.split(" ").reduce(((e,t)=>(t===Ni.replacementClass||t.match(r)?e.toSvg.push(t):e.toNode.push(t),e)),{toNode:[],toSvg:[]});n[0].attributes.class=e.toSvg.join(" "),0===e.toNode.length?t.removeAttribute("class"):t.setAttribute("class",e.toNode.join(" "))}const i=n.map((e=>Qi(e))).join("\n");t.setAttribute(Kr,""),t.innerHTML=i}};function $o(e){e()}function Ko(e,t){const n="function"==typeof t?t:Yo;if(0===e.length)n();else{let t=$o;Ni.mutateApproach===oi&&(t=Or.requestAnimationFrame||$o),t((()=>{const t=!0===Ni.autoReplaceSvg?Xo.replace:Xo[Ni.autoReplaceSvg]||Xo.replace,r=qo.begin("mutate");e.map(t),r(),n()}))}}let ea=!1;function ta(){ea=!0}function na(){ea=!1}let ra=null;function ia(e){if(!Rr)return;if(!Ni.observeMutations)return;const{treeCallback:t=Yo,nodeCallback:n=Yo,pseudoElementsCallback:r=Yo,observeMutationsRoot:i=Lr}=e;ra=new Rr((e=>{if(ea)return;const i=vo();Li(e).forEach((e=>{if("childList"===e.type&&e.addedNodes.length>0&&!Vo(e.addedNodes[0])&&(Ni.searchPseudoElements&&r(e.target),t(e.target)),"attributes"===e.type&&e.target.parentNode&&Ni.searchPseudoElements&&r(e.target.parentNode),"attributes"===e.type&&Vo(e.target)&&~Ii.indexOf(e.attributeName))if("class"===e.attributeName&&function(e){const t=e.getAttribute?e.getAttribute(ni):null,n=e.getAttribute?e.getAttribute(ri):null;return t&&n}(e.target)){const{prefix:t,iconName:n}=Io(Ri(e.target));e.target.setAttribute(ni,t||i),n&&e.target.setAttribute(ri,n)}else(o=e.target)&&o.classList&&o.classList.contains&&o.classList.contains(Ni.replacementClass)&&n(e.target);var o}))})),zr&&ra.observe(i,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}function oa(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{styleParser:!0};const{iconName:n,prefix:r,rest:i}=function(e){const t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=void 0!==e.innerText?e.innerText.trim():"";let i=Io(Ri(e));return i.prefix||(i.prefix=vo()),t&&n&&(i.prefix=t,i.iconName=n),i.iconName&&i.prefix||(i.prefix&&r.length>0&&(i.iconName=(o=i.prefix,a=e.innerText,(ao[o]||{})[a]||ho(i.prefix,$i(e.innerText)))),!i.iconName&&Ni.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(i.iconName=e.firstChild.data)),i;var o,a}(e),o=function(e){const t=Li(e.attributes).reduce(((e,t)=>("class"!==e.name&&"style"!==e.name&&(e[t.name]=t.value),e)),{}),n=e.getAttribute("title"),r=e.getAttribute("data-fa-title-id");return Ni.autoA11y&&(n?t["aria-labelledby"]="".concat(Ni.replacementClass,"-title-").concat(r||Oi()):(t["aria-hidden"]="true",t.focusable="false")),t}(e),a=Eo("parseNodeAttributes",{},e);let s=t.styleParser?function(e){const t=e.getAttribute("style");let n=[];return t&&(n=t.split(";").reduce(((e,t)=>{const n=t.split(":"),r=n[0],i=n.slice(1);return r&&i.length>0&&(e[r]=i.join(":").trim()),e}),{})),n}(e):[];return{iconName:n,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:r,transform:ji,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:i,styles:s,attributes:o},...a}}const{styles:aa}=qi;function sa(e){const t="nest"===Ni.autoReplaceSvg?oa(e,{styleParser:!1}):oa(e);return~t.extra.classes.indexOf(bi)?No("generateLayersText",e,t):No("generateSvgReplacementMutation",e,t)}let la=new Set;function ca(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!zr)return Promise.resolve();const n=Lr.documentElement.classList,r=e=>n.add("".concat(ii,"-").concat(e)),i=e=>n.remove("".concat(ii,"-").concat(e)),o=Ni.autoFetchSvg?la:li.map((e=>"fa-".concat(e))).concat(Object.keys(aa));o.includes("fa")||o.push("fa");const a=[".".concat(bi,":not([").concat(Kr,"])")].concat(o.map((e=>".".concat(e,":not([").concat(Kr,"])")))).join(", ");if(0===a.length)return Promise.resolve();let s=[];try{s=Li(e.querySelectorAll(a))}catch(e){}if(!(s.length>0))return Promise.resolve();r("pending"),i("complete");const l=qo.begin("onTree"),c=s.reduce(((e,t)=>{try{const n=sa(t);n&&e.push(n)}catch(e){si||"MissingIcon"===e.name&&console.error(e)}return e}),[]);return new Promise(((e,n)=>{Promise.all(c).then((n=>{Ko(n,(()=>{r("active"),r("complete"),i("pending"),"function"==typeof t&&t(),l(),e()}))})).catch((e=>{l(),n(e)}))}))}function ua(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;sa(e).then((e=>{e&&Ko([e],t)}))}li.map((e=>{la.add("fa-".concat(e))})),Object.keys(di[_r]).map(la.add.bind(la)),Object.keys(di[Fr]).map(la.add.bind(la)),Object.keys(di[Gr]).map(la.add.bind(la)),la=[...la];const da=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{transform:n=ji,symbol:r=!1,mask:i=null,maskId:o=null,title:a=null,titleId:s=null,classes:l=[],attributes:c={},styles:u={}}=t;if(!e)return;const{prefix:d,iconName:f,icon:p}=e;return Lo({type:"icon",...e},(()=>(Co("beforeDOMElementCreation",{iconDefinition:e,params:t}),Ni.autoA11y&&(a?c["aria-labelledby"]="".concat(Ni.replacementClass,"-title-").concat(s||Oi()):(c["aria-hidden"]="true",c.focusable="false")),Ro({icons:{main:Uo(p),mask:i?Uo(i.icon):{found:!1,width:null,height:null,icon:{}}},prefix:d,iconName:f,transform:{...ji,...n},symbol:r,title:a,maskId:o,titleId:s,extra:{attributes:c,styles:u,classes:l}}))))};var fa={mixout(){return{icon:(e=da,function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=(t||{}).icon?t:So(t||{});let{mask:i}=n;return i&&(i=(i||{}).icon?i:So(i||{})),e(r,{...n,mask:i})})};var e},hooks:()=>({mutationObserverCallbacks:e=>(e.treeCallback=ca,e.nodeCallback=ua,e)}),provides(e){e.i2svg=function(e){const{node:t=Lr,callback:n=(()=>{})}=e;return ca(t,n)},e.generateSvgReplacementMutation=function(e,t){const{iconName:n,title:r,titleId:i,prefix:o,transform:a,symbol:s,mask:l,maskId:c,extra:u}=t;return new Promise(((t,d)=>{Promise.all([Bo(n,o),l.iconName?Bo(l.iconName,l.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then((l=>{let[d,f]=l;t([e,Ro({icons:{main:d,mask:f},prefix:o,iconName:n,transform:a,symbol:s,maskId:c,title:r,titleId:i,extra:u,watchable:!0})])})).catch(d)}))},e.generateAbstractIcon=function(e){let{children:t,attributes:n,main:r,transform:i,styles:o}=e;const a=zi(o);let s;return a.length>0&&(n.style=a),Ui(i)&&(s=No("generateAbstractTransformGrouping",{main:r,transform:i,containerWidth:r.width,iconWidth:r.width})),t.push(s||r.icon),{children:t,attributes:n}}}},pa={mixout:()=>({layer(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{classes:n=[]}=t;return Lo({type:"layer"},(()=>{Co("beforeDOMElementCreation",{assembler:e,params:t});let r=[];return e((e=>{Array.isArray(e)?e.map((e=>{r=r.concat(e.abstract)})):r=r.concat(e.abstract)})),[{tag:"span",attributes:{class:["".concat(Ni.cssPrefix,"-layers"),...n].join(" ")},children:r}]}))}})},ha={mixout:()=>({counter(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{title:n=null,classes:r=[],attributes:i={},styles:o={}}=t;return Lo({type:"counter",content:e},(()=>(Co("beforeDOMElementCreation",{content:e,params:t}),function(e){const{content:t,title:n,extra:r}=e,i={...r.attributes,...n?{title:n}:{},class:r.classes.join(" ")},o=zi(r.styles);o.length>0&&(i.style=o);const a=[];return a.push({tag:"span",attributes:i,children:[t]}),n&&a.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),a}({content:e.toString(),title:n,extra:{attributes:i,styles:o,classes:["".concat(Ni.cssPrefix,"-layers-counter"),...r]}}))))}})},ga={mixout:()=>({text(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{transform:n=ji,title:r=null,classes:i=[],attributes:o={},styles:a={}}=t;return Lo({type:"text",content:e},(()=>(Co("beforeDOMElementCreation",{content:e,params:t}),Po({content:e,transform:{...ji,...n},title:r,extra:{attributes:o,styles:a,classes:["".concat(Ni.cssPrefix,"-layers-text"),...i]}}))))}}),provides(e){e.generateLayersText=function(e,t){const{title:n,transform:r,extra:i}=t;let o=null,a=null;if(Ur){const t=parseInt(getComputedStyle(e).fontSize,10),n=e.getBoundingClientRect();o=n.width/t,a=n.height/t}return Ni.autoA11y&&!n&&(i.attributes["aria-hidden"]="true"),Promise.resolve([e,Po({content:e.innerHTML,width:o,height:a,transform:r,title:n,extra:i,watchable:!0})])}}};const ma=new RegExp('"',"ug"),va=[1105920,1112319],ya={FontAwesome:{normal:"fas",400:"fas"},"Font Awesome 6 Free":{900:"fas",400:"far"},"Font Awesome 6 Pro":{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},"Font Awesome 6 Brands":{400:"fab",normal:"fab"},"Font Awesome 6 Duotone":{900:"fad"},"Font Awesome 6 Sharp":{900:"fass",400:"fasr",normal:"fasr",300:"fasl",100:"fast"},"Font Awesome 6 Sharp Duotone":{900:"fasds"},"Font Awesome 5 Free":{900:"fas",400:"far"},"Font Awesome 5 Pro":{900:"fas",400:"far",normal:"far",300:"fal"},"Font Awesome 5 Brands":{400:"fab",normal:"fab"},"Font Awesome 5 Duotone":{900:"fad"},"Font Awesome Kit":{400:"fak",normal:"fak"},"Font Awesome Kit Duotone":{400:"fakd",normal:"fakd"}},ba=Object.keys(ya).reduce(((e,t)=>(e[t.toLowerCase()]=ya[t],e)),{}),xa=Object.keys(ba).reduce(((e,t)=>{const n=ba[t];return e[t]=n[900]||[...Object.entries(n)][0][1],e}),{});function Ia(e,t){const n="".concat(ti).concat(t.replace(":","-"));return new Promise(((r,i)=>{if(null!==e.getAttribute(n))return r();const o=Li(e.children).filter((e=>e.getAttribute(ei)===t))[0],a=Or.getComputedStyle(e,t),s=a.getPropertyValue("font-family"),l=s.match(xi),c=a.getPropertyValue("font-weight"),u=a.getPropertyValue("content");if(o&&!l)return e.removeChild(o),r();if(l&&"none"!==u&&""!==u){const u=a.getPropertyValue("content");let d=function(e,t){const n=e.replace(/^['"]|['"]$/g,"").toLowerCase(),r=parseInt(t),i=isNaN(r)?"normal":r;return(ba[n]||{})[i]||xa[n]}(s,c);const{value:f,isSecondary:p}=function(e){const t=e.replace(ma,""),n=function(e,t){const n=e.length;let r,i=e.charCodeAt(0);return i>=55296&&i<=56319&&n>1&&(r=e.charCodeAt(1),r>=56320&&r<=57343)?1024*(i-55296)+r-56320+65536:i}(t),r=n>=va[0]&&n<=va[1],i=2===t.length&&t[0]===t[1];return{value:$i(i?t[0]:t),isSecondary:r||i}}(u),h=l[0].startsWith("FontAwesome");let g=ho(d,f),m=g;if(h){const e=function(e){const t=lo[e],n=ho("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}(f);e.iconName&&e.prefix&&(g=e.iconName,d=e.prefix)}if(!g||p||o&&o.getAttribute(ni)===d&&o.getAttribute(ri)===m)r();else{e.setAttribute(n,m),o&&e.removeChild(o);const a={iconName:null,title:null,titleId:null,prefix:null,transform:ji,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}},{extra:s}=a;s.attributes[ei]=t,Bo(g,d).then((i=>{const o=Ro({...a,icons:{main:i,mask:yo()},prefix:d,iconName:m,extra:s,watchable:!0}),l=Lr.createElementNS("http://www.w3.org/2000/svg","svg");"::before"===t?e.insertBefore(l,e.firstChild):e.appendChild(l),l.outerHTML=o.map((e=>Qi(e))).join("\n"),e.removeAttribute(n),r()})).catch(i)}}else r()}))}function wa(e){return Promise.all([Ia(e,"::before"),Ia(e,"::after")])}function Ta(e){return!(e.parentNode===document.head||~ai.indexOf(e.tagName.toUpperCase())||e.getAttribute(ei)||e.parentNode&&"svg"===e.parentNode.tagName)}function Ma(e){if(zr)return new Promise(((t,n)=>{const r=Li(e.querySelectorAll("*")).filter(Ta).map(wa),i=qo.begin("searchPseudoElements");ta(),Promise.all(r).then((()=>{i(),na(),t()})).catch((()=>{i(),na(),n()}))}))}let Aa=!1;const Ea=e=>e.toLowerCase().split(" ").reduce(((e,t)=>{const n=t.toLowerCase().split("-"),r=n[0];let i=n.slice(1).join("-");if(r&&"h"===i)return e.flipX=!0,e;if(r&&"v"===i)return e.flipY=!0,e;if(i=parseFloat(i),isNaN(i))return e;switch(r){case"grow":e.size=e.size+i;break;case"shrink":e.size=e.size-i;break;case"left":e.x=e.x-i;break;case"right":e.x=e.x+i;break;case"up":e.y=e.y-i;break;case"down":e.y=e.y+i;break;case"rotate":e.rotate=e.rotate+i}return e}),{size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0}),Ca={x:0,y:0,width:"100%",height:"100%"};function Na(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}!function(e,t){let{mixoutsTo:n}=t;wo=e,To={},Object.keys(Mo).forEach((e=>{-1===Ao.indexOf(e)&&delete Mo[e]})),wo.forEach((e=>{const t=e.mixout?e.mixout():{};if(Object.keys(t).forEach((e=>{"function"==typeof t[e]&&(n[e]=t[e]),"object"==typeof t[e]&&Object.keys(t[e]).forEach((r=>{n[e]||(n[e]={}),n[e][r]=t[e][r]}))})),e.hooks){const t=e.hooks();Object.keys(t).forEach((e=>{To[e]||(To[e]=[]),To[e].push(t[e])}))}e.provides&&e.provides(Mo)}))}([Zi,fa,pa,ha,ga,{hooks:()=>({mutationObserverCallbacks:e=>(e.pseudoElementsCallback=Ma,e)}),provides(e){e.pseudoElements2svg=function(e){const{node:t=Lr}=e;Ni.searchPseudoElements&&Ma(t)}}},{mixout:()=>({dom:{unwatch(){ta(),Aa=!0}}}),hooks:()=>({bootstrap(){ia(Eo("mutationObserverCallbacks",{}))},noAuto(){ra&&ra.disconnect()},watch(e){const{observeMutationsRoot:t}=e;Aa?na():ia(Eo("mutationObserverCallbacks",{observeMutationsRoot:t}))}})},{mixout:()=>({parse:{transform:e=>Ea(e)}}),hooks:()=>({parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-transform");return n&&(e.transform=Ea(n)),e}}),provides(e){e.generateAbstractTransformGrouping=function(e){let{main:t,transform:n,containerWidth:r,iconWidth:i}=e;const o={transform:"translate(".concat(r/2," 256)")},a="translate(".concat(32*n.x,", ").concat(32*n.y,") "),s="scale(".concat(n.size/16*(n.flipX?-1:1),", ").concat(n.size/16*(n.flipY?-1:1),") "),l="rotate(".concat(n.rotate," 0 0)"),c={transform:"".concat(a," ").concat(s," ").concat(l)},u={transform:"translate(".concat(i/2*-1," -256)")};return{tag:"g",attributes:{...o},children:[{tag:"g",attributes:{...c},children:[{tag:t.icon.tag,children:t.icon.children,attributes:{...t.icon.attributes,...u}}]}]}}}},{hooks:()=>({parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-mask"),r=n?Io(n.split(" ").map((e=>e.trim()))):yo();return r.prefix||(r.prefix=vo()),e.mask=r,e.maskId=t.getAttribute("data-fa-mask-id"),e}}),provides(e){e.generateAbstractMask=function(e){let{children:t,attributes:n,main:r,mask:i,maskId:o,transform:a}=e;const{width:s,icon:l}=r,{width:c,icon:u}=i,d=function(e){let{transform:t,containerWidth:n,iconWidth:r}=e;const i={transform:"translate(".concat(n/2," 256)")},o="translate(".concat(32*t.x,", ").concat(32*t.y,") "),a="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),s="rotate(".concat(t.rotate," 0 0)");return{outer:i,inner:{transform:"".concat(o," ").concat(a," ").concat(s)},path:{transform:"translate(".concat(r/2*-1," -256)")}}}({transform:a,containerWidth:c,iconWidth:s}),f={tag:"rect",attributes:{...Ca,fill:"white"}},p=l.children?{children:l.children.map(Na)}:{},h={tag:"g",attributes:{...d.inner},children:[Na({tag:l.tag,attributes:{...l.attributes,...d.path},...p})]},g={tag:"g",attributes:{...d.outer},children:[h]},m="mask-".concat(o||Oi()),v="clip-".concat(o||Oi()),y={tag:"mask",attributes:{...Ca,id:m,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"},children:[f,g]},b={tag:"defs",children:[{tag:"clipPath",attributes:{id:v},children:(x=u,"g"===x.tag?x.children:[x])},y]};var x;return t.push(b,{tag:"rect",attributes:{fill:"currentColor","clip-path":"url(#".concat(v,")"),mask:"url(#".concat(m,")"),...Ca}}),{children:t,attributes:n}}}},{provides(e){let t=!1;Or.matchMedia&&(t=Or.matchMedia("(prefers-reduced-motion: reduce)").matches),e.missingIconAbstract=function(){const e=[],n={fill:"currentColor"},r={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};e.push({tag:"path",attributes:{...n,d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"}});const i={...r,attributeName:"opacity"},o={tag:"circle",attributes:{...n,cx:"256",cy:"364",r:"28"},children:[]};return t||o.children.push({tag:"animate",attributes:{...r,attributeName:"r",values:"28;14;28;28;14;28;"}},{tag:"animate",attributes:{...i,values:"1;0;1;1;0;1;"}}),e.push(o),e.push({tag:"path",attributes:{...n,opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"},children:t?[]:[{tag:"animate",attributes:{...i,values:"1;0;0;0;0;1;"}}]}),t||e.push({tag:"path",attributes:{...n,opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"},children:[{tag:"animate",attributes:{...i,values:"0;0;1;1;0;0;"}}]}),{tag:"g",attributes:{class:"missing"},children:e}}}},{hooks:()=>({parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-symbol"),r=null!==n&&(""===n||n);return e.symbol=r,e}})}],{mixoutsTo:Do});const Sa=Do.parse,ka=Do.icon;var ja=a(9067),Da=a.n(ja);function Oa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function La(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Oa(Object(n),!0).forEach((function(t){Pa(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Oa(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ra(e){return Ra="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ra(e)}function Pa(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function za(e){return function(e){if(Array.isArray(e))return Ua(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Ua(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ua(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ua(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function _a(e){return t=e,(t-=0)==t?e:(e=e.replace(/[\-_\s]+(.)?/g,(function(e,t){return t?t.toUpperCase():""}))).substr(0,1).toLowerCase()+e.substr(1);var t}var Ba=["style"],Fa=!1;try{Fa=!0}catch(e){}function Ga(e){return e&&"object"===Ra(e)&&e.prefix&&e.iconName&&e.icon?e:Sa.icon?Sa.icon(e):null===e?null:e&&"object"===Ra(e)&&e.prefix&&e.iconName?e:Array.isArray(e)&&2===e.length?{prefix:e[0],iconName:e[1]}:"string"==typeof e?{prefix:"fas",iconName:e}:void 0}function Za(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?Pa({},e,t):{}}var Ha={border:!1,className:"",mask:null,maskId:null,fixedWidth:!1,inverse:!1,flip:!1,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,size:null,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:null,transform:null,swapOpacity:!1},qa=t().forwardRef((function(e,t){var n=La(La({},Ha),e),r=n.icon,i=n.mask,o=n.symbol,a=n.className,s=n.title,l=n.titleId,c=n.maskId,u=Ga(r),d=Za("classes",[].concat(za(function(e){var t,n=e.beat,r=e.fade,i=e.beatFade,o=e.bounce,a=e.shake,s=e.flash,l=e.spin,c=e.spinPulse,u=e.spinReverse,d=e.pulse,f=e.fixedWidth,p=e.inverse,h=e.border,g=e.listItem,m=e.flip,v=e.size,y=e.rotation,b=e.pull,x=(Pa(t={"fa-beat":n,"fa-fade":r,"fa-beat-fade":i,"fa-bounce":o,"fa-shake":a,"fa-flash":s,"fa-spin":l,"fa-spin-reverse":u,"fa-spin-pulse":c,"fa-pulse":d,"fa-fw":f,"fa-inverse":p,"fa-border":h,"fa-li":g,"fa-flip":!0===m,"fa-flip-horizontal":"horizontal"===m||"both"===m,"fa-flip-vertical":"vertical"===m||"both"===m},"fa-".concat(v),null!=v),Pa(t,"fa-rotate-".concat(y),null!=y&&0!==y),Pa(t,"fa-pull-".concat(b),null!=b),Pa(t,"fa-swap-opacity",e.swapOpacity),t);return Object.keys(x).map((function(e){return x[e]?e:null})).filter((function(e){return e}))}(n)),za((a||"").split(" ")))),f=Za("transform","string"==typeof n.transform?Sa.transform(n.transform):n.transform),p=Za("mask",Ga(i)),h=ka(u,La(La(La(La({},d),f),p),{},{symbol:o,title:s,titleId:l,maskId:c}));if(!h)return function(){var e;!Fa&&console&&"function"==typeof console.error&&(e=console).error.apply(e,arguments)}("Could not find icon",u),null;var g=h.abstract,m={ref:t};return Object.keys(n).forEach((function(e){Ha.hasOwnProperty(e)||(m[e]=n[e])})),Ya(g[0],m)}));qa.displayName="FontAwesomeIcon",qa.propTypes={beat:Da().bool,border:Da().bool,beatFade:Da().bool,bounce:Da().bool,className:Da().string,fade:Da().bool,flash:Da().bool,mask:Da().oneOfType([Da().object,Da().array,Da().string]),maskId:Da().string,fixedWidth:Da().bool,inverse:Da().bool,flip:Da().oneOf([!0,!1,"horizontal","vertical","both"]),icon:Da().oneOfType([Da().object,Da().array,Da().string]),listItem:Da().bool,pull:Da().oneOf(["right","left"]),pulse:Da().bool,rotation:Da().oneOf([0,90,180,270]),shake:Da().bool,size:Da().oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:Da().bool,spinPulse:Da().bool,spinReverse:Da().bool,symbol:Da().oneOfType([Da().bool,Da().string]),title:Da().string,titleId:Da().string,transform:Da().oneOfType([Da().string,Da().object]),swapOpacity:Da().bool};var Ya=function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof n)return n;var i=(n.children||[]).map((function(n){return e(t,n)})),o=Object.keys(n.attributes||{}).reduce((function(e,t){var r=n.attributes[t];switch(t){case"class":e.attrs.className=r,delete n.attributes.class;break;case"style":e.attrs.style=r.split(";").map((function(e){return e.trim()})).filter((function(e){return e})).reduce((function(e,t){var n,r=t.indexOf(":"),i=_a(t.slice(0,r)),o=t.slice(r+1).trim();return i.startsWith("webkit")?e[(n=i,n.charAt(0).toUpperCase()+n.slice(1))]=o:e[i]=o,e}),{});break;default:0===t.indexOf("aria-")||0===t.indexOf("data-")?e.attrs[t.toLowerCase()]=r:e.attrs[_a(t)]=r}return e}),{attrs:{}}),a=r.style,s=void 0===a?{}:a,l=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(r,Ba);return o.attrs.style=La(La({},o.attrs.style),s),t.apply(void 0,[n.tag,La(La({},o.attrs),l)].concat(za(i)))}.bind(null,t().createElement);const Va={prefix:"fas",iconName:"trash-can",icon:[448,512,[61460,"trash-alt"],"f2ed","M135.2 17.7C140.6 6.8 151.7 0 163.8 0L284.2 0c12.1 0 23.2 6.8 28.6 17.7L320 32l96 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 96C14.3 96 0 81.7 0 64S14.3 32 32 32l96 0 7.2-14.3zM32 128l384 0 0 320c0 35.3-28.7 64-64 64L96 512c-35.3 0-64-28.7-64-64l0-320zm96 64c-8.8 0-16 7.2-16 16l0 224c0 8.8 7.2 16 16 16s16-7.2 16-16l0-224c0-8.8-7.2-16-16-16zm96 0c-8.8 0-16 7.2-16 16l0 224c0 8.8 7.2 16 16 16s16-7.2 16-16l0-224c0-8.8-7.2-16-16-16zm96 0c-8.8 0-16 7.2-16 16l0 224c0 8.8 7.2 16 16 16s16-7.2 16-16l0-224c0-8.8-7.2-16-16-16z"]},Wa={prefix:"fas",iconName:"down-left-and-up-right-to-center",icon:[512,512,["compress-alt"],"f422","M439 7c9.4-9.4 24.6-9.4 33.9 0l32 32c9.4 9.4 9.4 24.6 0 33.9l-87 87 39 39c6.9 6.9 8.9 17.2 5.2 26.2s-12.5 14.8-22.2 14.8l-144 0c-13.3 0-24-10.7-24-24l0-144c0-9.7 5.8-18.5 14.8-22.2s19.3-1.7 26.2 5.2l39 39L439 7zM72 272l144 0c13.3 0 24 10.7 24 24l0 144c0 9.7-5.8 18.5-14.8 22.2s-19.3 1.7-26.2-5.2l-39-39L73 505c-9.4 9.4-24.6 9.4-33.9 0L7 473c-9.4-9.4-9.4-24.6 0-33.9l87-87L55 313c-6.9-6.9-8.9-17.2-5.2-26.2s12.5-14.8 22.2-14.8z"]},Qa={prefix:"fas",iconName:"eye-slash",icon:[640,512,[],"f070","M38.8 5.1C28.4-3.1 13.3-1.2 5.1 9.2S-1.2 34.7 9.2 42.9l592 464c10.4 8.2 25.5 6.3 33.7-4.1s6.3-25.5-4.1-33.7L525.6 386.7c39.6-40.6 66.4-86.1 79.9-118.4c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C465.5 68.8 400.8 32 320 32c-68.2 0-125 26.3-169.3 60.8L38.8 5.1zM223.1 149.5C248.6 126.2 282.7 112 320 112c79.5 0 144 64.5 144 144c0 24.9-6.3 48.3-17.4 68.7L408 294.5c8.4-19.3 10.6-41.4 4.8-63.3c-11.1-41.5-47.8-69.4-88.6-71.1c-5.8-.2-9.2 6.1-7.4 11.7c2.1 6.4 3.3 13.2 3.3 20.3c0 10.2-2.4 19.8-6.6 28.3l-90.3-70.8zM373 389.9c-16.4 6.5-34.3 10.1-53 10.1c-79.5 0-144-64.5-144-144c0-6.9 .5-13.6 1.4-20.2L83.1 161.5C60.3 191.2 44 220.8 34.5 243.7c-3.3 7.9-3.3 16.7 0 24.6c14.9 35.7 46.2 87.7 93 131.1C174.5 443.2 239.2 480 320 480c47.8 0 89.9-12.9 126.2-32.5L373 389.9z"]},Ja={prefix:"fas",iconName:"chevron-up",icon:[512,512,[],"f077","M233.4 105.4c12.5-12.5 32.8-12.5 45.3 0l192 192c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L256 173.3 86.6 342.6c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3l192-192z"]},Xa={prefix:"fas",iconName:"image",icon:[512,512,[],"f03e","M0 96C0 60.7 28.7 32 64 32l384 0c35.3 0 64 28.7 64 64l0 320c0 35.3-28.7 64-64 64L64 480c-35.3 0-64-28.7-64-64L0 96zM323.8 202.5c-4.5-6.6-11.9-10.5-19.8-10.5s-15.4 3.9-19.8 10.5l-87 127.6L170.7 297c-4.6-5.7-11.5-9-18.7-9s-14.2 3.3-18.7 9l-64 80c-5.8 7.2-6.9 17.1-2.9 25.4s12.4 13.6 21.6 13.6l96 0 32 0 208 0c8.9 0 17.1-4.9 21.2-12.8s3.6-17.4-1.4-24.7l-120-176zM112 192a48 48 0 1 0 0-96 48 48 0 1 0 0 96z"]},$a={prefix:"fas",iconName:"up-down-left-right",icon:[512,512,["arrows-alt"],"f0b2","M278.6 9.4c-12.5-12.5-32.8-12.5-45.3 0l-64 64c-9.2 9.2-11.9 22.9-6.9 34.9s16.6 19.8 29.6 19.8l32 0 0 96-96 0 0-32c0-12.9-7.8-24.6-19.8-29.6s-25.7-2.2-34.9 6.9l-64 64c-12.5 12.5-12.5 32.8 0 45.3l64 64c9.2 9.2 22.9 11.9 34.9 6.9s19.8-16.6 19.8-29.6l0-32 96 0 0 96-32 0c-12.9 0-24.6 7.8-29.6 19.8s-2.2 25.7 6.9 34.9l64 64c12.5 12.5 32.8 12.5 45.3 0l64-64c9.2-9.2 11.9-22.9 6.9-34.9s-16.6-19.8-29.6-19.8l-32 0 0-96 96 0 0 32c0 12.9 7.8 24.6 19.8 29.6s25.7 2.2 34.9-6.9l64-64c12.5-12.5 12.5-32.8 0-45.3l-64-64c-9.2-9.2-22.9-11.9-34.9-6.9s-19.8 16.6-19.8 29.6l0 32-96 0 0-96 32 0c12.9 0 24.6-7.8 29.6-19.8s2.2-25.7-6.9-34.9l-64-64z"]},Ka={prefix:"fas",iconName:"eye",icon:[576,512,[128065],"f06e","M288 32c-80.8 0-145.5 36.8-192.6 80.6C48.6 156 17.3 208 2.5 243.7c-3.3 7.9-3.3 16.7 0 24.6C17.3 304 48.6 356 95.4 399.4C142.5 443.2 207.2 480 288 480s145.5-36.8 192.6-80.6c46.8-43.5 78.1-95.4 93-131.1c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C433.5 68.8 368.8 32 288 32zM144 256a144 144 0 1 1 288 0 144 144 0 1 1 -288 0zm144-64c0 35.3-28.7 64-64 64c-7.1 0-13.9-1.2-20.3-3.3c-5.5-1.8-11.9 1.6-11.7 7.4c.3 6.9 1.3 13.8 3.2 20.7c13.7 51.2 66.4 81.6 117.6 67.9s81.6-66.4 67.9-117.6c-11.1-41.5-47.8-69.4-88.6-71.1c-5.8-.2-9.2 6.1-7.4 11.7c2.1 6.4 3.3 13.2 3.3 20.3z"]},es={prefix:"fas",iconName:"paperclip",icon:[448,512,[128206],"f0c6","M364.2 83.8c-24.4-24.4-64-24.4-88.4 0l-184 184c-42.1 42.1-42.1 110.3 0 152.4s110.3 42.1 152.4 0l152-152c10.9-10.9 28.7-10.9 39.6 0s10.9 28.7 0 39.6l-152 152c-64 64-167.6 64-231.6 0s-64-167.6 0-231.6l184-184c46.3-46.3 121.3-46.3 167.6 0s46.3 121.3 0 167.6l-176 176c-28.6 28.6-75 28.6-103.6 0s-28.6-75 0-103.6l144-144c10.9-10.9 28.7-10.9 39.6 0s10.9 28.7 0 39.6l-144 144c-6.7 6.7-6.7 17.7 0 24.4s17.7 6.7 24.4 0l176-176c24.4-24.4 24.4-64 0-88.4z"]},ts={prefix:"fas",iconName:"circle-info",icon:[512,512,["info-circle"],"f05a","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 336l24 0 0-64-24 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l48 0c13.3 0 24 10.7 24 24l0 88 8 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-80 0c-13.3 0-24-10.7-24-24s10.7-24 24-24zm40-208a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"]},ns={prefix:"fas",iconName:"play",icon:[384,512,[9654],"f04b","M73 39c-14.8-9.1-33.4-9.4-48.5-.9S0 62.6 0 80L0 432c0 17.4 9.4 33.4 24.5 41.9s33.7 8.1 48.5-.9L361 297c14.3-8.7 23-24.2 23-41s-8.7-32.2-23-41L73 39z"]},rs={prefix:"fas",iconName:"chevron-down",icon:[512,512,[],"f078","M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"]},is={prefix:"fas",iconName:"up-right-and-down-left-from-center",icon:[512,512,["expand-alt"],"f424","M344 0L488 0c13.3 0 24 10.7 24 24l0 144c0 9.7-5.8 18.5-14.8 22.2s-19.3 1.7-26.2-5.2l-39-39-87 87c-9.4 9.4-24.6 9.4-33.9 0l-32-32c-9.4-9.4-9.4-24.6 0-33.9l87-87L327 41c-6.9-6.9-8.9-17.2-5.2-26.2S334.3 0 344 0zM168 512L24 512c-13.3 0-24-10.7-24-24L0 344c0-9.7 5.8-18.5 14.8-22.2s19.3-1.7 26.2 5.2l39 39 87-87c9.4-9.4 24.6-9.4 33.9 0l32 32c9.4 9.4 9.4 24.6 0 33.9l-87 87 39 39c6.9 6.9 8.9 17.2 5.2 26.2s-12.5 14.8-22.2 14.8z"]},os={prefix:"fas",iconName:"triangle-exclamation",icon:[512,512,[9888,"exclamation-triangle","warning"],"f071","M256 32c14.2 0 27.3 7.5 34.5 19.8l216 368c7.3 12.4 7.3 27.7 .2 40.1S486.3 480 472 480L40 480c-14.3 0-27.6-7.7-34.7-20.1s-7-27.8 .2-40.1l216-368C228.7 39.5 241.8 32 256 32zm0 128c-13.3 0-24 10.7-24 24l0 112c0 13.3 10.7 24 24 24s24-10.7 24-24l0-112c0-13.3-10.7-24-24-24zm32 224a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z"]};function as(n){const r=t().createRef(),[i,o]=(0,e.useState)(n.initialTextContent||""),[a,s]=(0,e.useState)(!1),[l,c]=(0,e.useState)(!1),[u,d]=(0,e.useState)(null);return(0,e.useEffect)((()=>{n.element&&function(e,t){const n=t.current;if(e&&n){const t=n.style,r=null==e?void 0:e.getBoundingClientRect(),i=n.getBoundingClientRect(),o=r.height+r.top+window.scrollY,a=window.innerWidth;t.top=`${String(o)}px`,t.opacity="1";const s=r.left+i.width>a;t.left=s?r.right-i.width+"px":`${r.left}px`}}(n.element,r),o(n.initialTextContent||""),s(n.initialTextContent.length>0)}),[n.element]),n.element?t().createElement("div",{className:"e-popup",style:{position:"absolute",opacity:0},ref:r,"data-testid":"e-popup"},t().createElement(Mr(),{language:"FI",baseUrl:"",initialValue:n.initialTextContent,getPasteSource:()=>Promise.resolve(""),onValueChange:e=>{if(n.onValueChange){const t=n.onValueChange(e.answerHtml);d(t)}o(e.answerHtml),s(e.answerHtml.trim().length>0)},textAreaProps:{className:"comment-content"}})," ",u&&t().createElement("span",{className:"e-popup-error"},u),t().createElement("span",{className:"e-popup-button-area"},t().createElement("span",null,t().createElement("button",{className:"button",onClick:e=>{e.stopPropagation(),n.onValueSave(i)},"data-testid":"e-popup-save",disabled:!a||!!u},"Tallenna"),t().createElement("button",{className:"button text-button","data-testid":"e-popup-cancel",onClick:()=>{n.onCancel()}},"Peru")),n.enableDelete&&t().createElement("button",{className:Er()("button","e-popup-delete","round",{confirm:l}),"data-testid":"e-popup-delete",onClick:()=>{l?n.onDelete&&n.onDelete():c(!0)}},t().createElement(qa,{size:"lg",icon:Va,fixedWidth:!0})," ",l&&"Vahvista?"))):null}function ss(){const{newAnnotation:n,setNewAnnotation:r,newAnnotationRef:i,setNewAnnotationRef:o,onSaveAnnotation:a}=(0,e.useContext)(ls);return t().createElement(as,{element:i,initialTextContent:"",onValueSave:e=>{a(n,e),r(null),o(null)},enableDelete:!1,onCancel:()=>{r(null),o(null)}})}const ls=t().createContext({}),cs=({children:n,annotations:r,onClickAnnotation:i,onSaveAnnotation:o})=>{const[a,s]=t().useState(null),[l,c]=t().useState(null),u=e=>{s(e)};if(!i&&!o)return n;const d=(0,e.useMemo)((()=>Nn((null==r?void 0:r.flatMap((e=>e.annotationParts.map(((t,n,r)=>{const i=n===r.length-1;return{...t,annotationId:e.annotationId,markNumber:i?e.markNumber:void 0,hidden:e.hidden}})))))||[],"annotationAnchor")),[JSON.stringify(r)]);return t().createElement(ls.Provider,{value:{annotations:d,onClickAnnotation:i,onSaveAnnotation:o,newAnnotation:a,setNewAnnotation:s,newAnnotationRef:l,setNewAnnotationRef:c}},t().createElement("span",{onMouseDown:function(e){!!e.target.closest(".e-popup")||(s(null),c(null)),function(e,t){0===e.button&&window.addEventListener("mouseup",(function e(){var n,r;window.removeEventListener("mouseup",e);const i=window.getSelection(),o=null===(n=null==i?void 0:i.anchorNode)||void 0===n?void 0:n.parentElement,a=null===(r=null==i?void 0:i.focusNode)||void 0===r?void 0:r.parentElement;if(i&&o&&a&&i.toString().length>0){const e=(e=>{const t=Array.from(null==e?void 0:e.getRangeAt(0).cloneContents().children),n=null==t?void 0:t.some((e=>"MARK"===e.tagName&&"false"===e.getAttribute("data-hidden"))),r=t.some((e=>e.querySelector('mark[data-hidden="false"]')));return n||r})(i),n=Ir(o);if(n===Ir(a)&&wr(o)&&wr(a)&&!e){const e=(e=>{var t,n;const r=e.getRangeAt(0),i=Array.from(null==e?void 0:e.getRangeAt(0).cloneContents().children),o=r.startContainer.parentElement;if(null==i?void 0:i.length){const e=null==i?void 0:i.reduce(((e,t,n,i)=>{var a;const s=t.getAttribute("data-annotation-path"),l=n===i.length-1;if(s){const i={annotationAnchor:s,selectedText:t.textContent||"",startIndex:0===n?r.startOffset:0,length:l?r.endOffset:(null===(a=t.textContent)||void 0===a?void 0:a.length)||0};return[...e,i]}{const i=t.querySelectorAll("[data-annotation-path]");return null==i||i.forEach(((t,a)=>{var s;const c=t.getAttribute("data-annotation-path");if(c){const u=0===n&&0===a,d=a===i.length-1,f=l&&d,p=ur(o,r),h={annotationAnchor:c,selectedText:t.textContent||"",startIndex:u&&(null==p?void 0:p.startIndex)||0,length:f?r.endOffset:(null===(s=t.textContent)||void 0===s?void 0:s.length)||0};e.push(h)}})),e}}),[]);return e}{const i=null===(n=null===(t=null==e?void 0:e.focusNode)||void 0===t?void 0:t.parentElement)||void 0===n?void 0:n.getAttribute("data-annotation-path"),a=ur(o,r);return[{annotationAnchor:i,selectedText:(null==e?void 0:e.toString())||"",startIndex:(null==a?void 0:a.startIndex)||0,length:(null==a?void 0:a.length)||0}]}})(i);t({annotationParts:e,displayNumber:n,selectedText:e.map((e=>e.selectedText)).join(" ")})}}}))}(e,u)}},t().createElement(ss,null),n))},us=(0,e.createContext)({}),ds=({annotation:n,markedText:r,onClickAnnotation:i,setNewAnnotationRef:o})=>{const a=(0,e.useRef)(null);return(0,e.useEffect)((()=>{a.current&&!ps(n)&&o(a.current)}),[]),t().createElement("mark",{ref:a,className:"e-annotation","data-annotation-id":ps(n)?n.annotationId:"","data-hidden":"false","data-annotation-path":n.annotationAnchor,onClick:e=>ps(n)?i(e,n):void 0},r,(null==n?void 0:n.markNumber)&&t().createElement("sup",{className:"e-annotation","data-content":null==n?void 0:n.markNumber}))};function fs(e){return ps(e)?e.annotationId+e.startIndex:e.startIndex}function ps(e){return"annotationId"in e}function hs(e,t,n){return e.substring(t,t+n)}const gs=({node:n})=>{var r,i;const o=(0,e.useContext)(ls),{isInSidebar:a}=(0,e.useContext)(us),{annotations:s,onClickAnnotation:l,setNewAnnotationRef:c,newAnnotation:u}=o;if(void 0===(null==o?void 0:o.annotations)||0===(null===(r=n.textContent)||void 0===r?void 0:r.trim().length)||void 0!==a)return n.textContent;const d=Le(n),f=(null===(i=null==u?void 0:u.annotationParts)||void 0===i?void 0:i.filter((e=>e.annotationAnchor===d)))||[],p=[...(null==s?void 0:s[d])||[],...f];return t().createElement("span",{className:"e-annotatable",key:d,"data-annotation-path":d,"data-testid":d},p.length>0&&l?function(e,n,r,i){var o;if(0===n.length)return[e];n.sort(((e,t)=>e.startIndex-t.startIndex));const[a,s]=er(n,(e=>e.hidden)),l=[];a.forEach((e=>{const n=fs(e);l.push(t().createElement("mark",{key:n,className:"e-annotation","data-annotation-id":ps(e)?e.annotationId:"","data-hidden":"true"}))}));let c=0;const u=e.replace(/^\s+/," "),d=e.length-u.length,f=s.reduce(((e,t)=>{const n=e.some((e=>t.startIndex<e.startIndex+e.length&&e.startIndex<t.startIndex+t.length&&!e.hidden));return e.push({...t,hidden:t.hidden||n}),e}),[]);for(const n of f){const a=hs(e.replace(/\n/g," ").replace(/\s+/g," "),n.startIndex,n.length)===n.selectedText,s=((null===(o=e.split(n.selectedText)[0].match(/\n/g))||void 0===o?void 0:o.length)||0)*d,u=n.startIndex+(a?s:0),f=hs(e,u,n.length);u>c&&l.push(e.substring(c,u));const p=fs(n);l.push(n.hidden?t().createElement("mark",{key:p,className:"e-annotation","data-annotation-id":ps(n)?n.annotationId:"","data-hidden":"true"}):t().createElement(ds,{key:p,annotation:n,markedText:f,onClickAnnotation:r,setNewAnnotationRef:i})),c=u+n.length}return l.push(e.substring(c)),l}(n.textContent,p,l,c):n.textContent)},ms="http://ylioppilastutkinto.fi/exam.xsd";function vs(e){function n(r,i=0){return function(e,t){const n=e.childNodes.length,r=new Array(n);for(let i=0;i<n;i++)r[i]=t(e.childNodes[i],i);return r}(r,((r,o)=>function(r,i,o){switch(r.nodeType){case Node.TEXT_NODE:case Node.CDATA_SECTION_NODE:return 0===o?function(e){return t().createElement(gs,{node:e,key:Le(e)})}(r):null;case Node.ELEMENT_NODE:return function(r,i,o){switch(r.namespaceURI){case"http://www.w3.org/1999/xhtml":return function(e,r,i){const o=e.hasChildNodes()?n(e,i):null;if(0===i){const n=e.localName,i=function(e,t){const n={key:ys(e,t)};for(const t of e.attributes)n["class"===t.localName?"className":t.localName]=t.value;return n}(e,r);return t().createElement(n,{...i},o)}return o}(r,i,o);case ms:return function(r,i){const o=e[r.localName],a=r.getAttribute("class")||void 0;return o?t().createElement(o,{element:r,className:a,renderChildNodes:n,key:ys(r,i)}):null}(r,i);default:throw new Error(`Unrecognized element: ${r.localName}`)}}(r,i,o);default:return null}}(r,o,i)))}return n}function ys(e,t){return`${e.localName}-${t}`}const bs=e=>"string"==typeof e,xs=()=>{let e,t;const n=new Promise(((n,r)=>{e=n,t=r}));return n.resolve=e,n.reject=t,n},Is=e=>null==e?"":""+e,ws=/###/g,Ts=e=>e&&e.indexOf("###")>-1?e.replace(ws,"."):e,Ms=e=>!e||bs(e),As=(e,t,n)=>{const r=bs(t)?t.split("."):t;let i=0;for(;i<r.length-1;){if(Ms(e))return{};const t=Ts(r[i]);!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++i}return Ms(e)?{}:{obj:e,k:Ts(r[i])}},Es=(e,t,n)=>{const{obj:r,k:i}=As(e,t,Object);if(void 0!==r||1===t.length)return void(r[i]=n);let o=t[t.length-1],a=t.slice(0,t.length-1),s=As(e,a,Object);for(;void 0===s.obj&&a.length;)o=`${a[a.length-1]}.${o}`,a=a.slice(0,a.length-1),s=As(e,a,Object),s&&s.obj&&void 0!==s.obj[`${s.k}.${o}`]&&(s.obj=void 0);s.obj[`${s.k}.${o}`]=n},Cs=(e,t)=>{const{obj:n,k:r}=As(e,t);if(n)return n[r]},Ns=(e,t,n)=>{for(const r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?bs(e[r])||e[r]instanceof String||bs(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):Ns(e[r],t[r],n):e[r]=t[r]);return e},Ss=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var ks={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};const js=e=>bs(e)?e.replace(/[&<>"'\/]/g,(e=>ks[e])):e,Ds=[" ",",","?","!",";"],Os=new class{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){const t=this.regExpMap.get(e);if(void 0!==t)return t;const n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}}(20),Ls=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(!e)return;if(e[t])return e[t];const r=t.split(n);let i=e;for(let e=0;e<r.length;){if(!i||"object"!=typeof i)return;let t,o="";for(let a=e;a<r.length;++a)if(a!==e&&(o+=n),o+=r[a],t=i[o],void 0!==t){if(["string","number","boolean"].indexOf(typeof t)>-1&&a<r.length-1)continue;e+=a-e+1;break}i=t}return i},Rs=e=>e&&e.replace("_","-"),Ps={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class zs{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.init(e,t)}init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||Ps,this.options=t,this.debug=t.debug}log(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)}warn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)}error(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")}deprecate(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(e,t,n,r){return r&&!this.debug?null:(bs(e[0])&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[t](e))}create(e){return new zs(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return(e=e||this.options).prefix=e.prefix||this.prefix,new zs(this.logger,e)}}var Us=new zs;class _s{constructor(){this.observers={}}on(e,t){return e.split(" ").forEach((e=>{this.observers[e]||(this.observers[e]=new Map);const n=this.observers[e].get(t)||0;this.observers[e].set(t,n+1)})),this}off(e,t){this.observers[e]&&(t?this.observers[e].delete(t):delete this.observers[e])}emit(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this.observers[e]&&Array.from(this.observers[e].entries()).forEach((e=>{let[t,r]=e;for(let e=0;e<r;e++)t(...n)})),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach((t=>{let[r,i]=t;for(let t=0;t<i;t++)r.apply(r,[e,...n])}))}}class Bs extends _s{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=e||{},this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){const t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const i=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,o=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure;let a;e.indexOf(".")>-1?a=e.split("."):(a=[e,t],n&&(Array.isArray(n)?a.push(...n):bs(n)&&i?a.push(...n.split(i)):a.push(n)));const s=Cs(this.data,a);return!s&&!t&&!n&&e.indexOf(".")>-1&&(e=a[0],t=a[1],n=a.slice(2).join(".")),!s&&o&&bs(n)?Ls(this.data&&this.data[e]&&this.data[e][t],n,i):s}addResource(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1};const o=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator;let a=[e,t];n&&(a=a.concat(o?n.split(o):n)),e.indexOf(".")>-1&&(a=e.split("."),r=t,t=a[1]),this.addNamespaces(t),Es(this.data,a,r),i.silent||this.emit("added",e,t,n,r)}addResources(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(const r in n)(bs(n[r])||Array.isArray(n[r]))&&this.addResource(e,t,r,n[r],{silent:!0});r.silent||this.emit("added",e,t,n)}addResourceBundle(e,t,n,r,i){let o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1,skipCopy:!1},a=[e,t];e.indexOf(".")>-1&&(a=e.split("."),r=n,n=t,t=a[1]),this.addNamespaces(t);let s=Cs(this.data,a)||{};o.skipCopy||(n=JSON.parse(JSON.stringify(n))),r?Ns(s,n,i):s={...s,...n},Es(this.data,a,s),o.silent||this.emit("added",e,t,n)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return void 0!==this.getResource(e,t)}getResourceBundle(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?{...this.getResource(e,t)}:this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){const t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find((e=>t[e]&&Object.keys(t[e]).length>0))}toJSON(){return this.data}}var Fs={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,i){return e.forEach((e=>{this.processors[e]&&(t=this.processors[e].process(t,n,r,i))})),t}};const Gs={};class Zs extends _s{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};var n,r;super(),n=e,r=this,["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"].forEach((e=>{n[e]&&(r[e]=n[e])})),this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=Us.create("translator")}changeLanguage(e){e&&(this.language=e)}exists(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;const n=this.resolve(e,t);return n&&void 0!==n.res}extractFromKey(e,t){let n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");const r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator;let i=t.ns||this.options.defaultNS||[];const o=n&&e.indexOf(n)>-1,a=!(this.options.userDefinedKeySeparator||t.keySeparator||this.options.userDefinedNsSeparator||t.nsSeparator||((e,t,n)=>{t=t||"",n=n||"";const r=Ds.filter((e=>t.indexOf(e)<0&&n.indexOf(e)<0));if(0===r.length)return!0;const i=Os.getRegExp(`(${r.map((e=>"?"===e?"\\?":e)).join("|")})`);let o=!i.test(e);if(!o){const t=e.indexOf(n);t>0&&!i.test(e.substring(0,t))&&(o=!0)}return o})(e,n,r));if(o&&!a){const t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:bs(i)?[i]:i};const o=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(o[0])>-1)&&(i=o.shift()),e=o.join(r)}return{key:e,namespaces:bs(i)?[i]:i}}translate(e,t,n){if("object"!=typeof t&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof t&&(t={...t}),t||(t={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);const r=void 0!==t.returnDetails?t.returnDetails:this.options.returnDetails,i=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,{key:o,namespaces:a}=this.extractFromKey(e[e.length-1],t),s=a[a.length-1],l=t.lng||this.language,c=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(l&&"cimode"===l.toLowerCase()){if(c){const e=t.nsSeparator||this.options.nsSeparator;return r?{res:`${s}${e}${o}`,usedKey:o,exactUsedKey:o,usedLng:l,usedNS:s,usedParams:this.getUsedParamsDetails(t)}:`${s}${e}${o}`}return r?{res:o,usedKey:o,exactUsedKey:o,usedLng:l,usedNS:s,usedParams:this.getUsedParamsDetails(t)}:o}const u=this.resolve(e,t);let d=u&&u.res;const f=u&&u.usedKey||o,p=u&&u.exactUsedKey||o,h=Object.prototype.toString.apply(d),g=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,m=!this.i18nFormat||this.i18nFormat.handleAsObject,v=!bs(d)&&"boolean"!=typeof d&&"number"!=typeof d;if(!(m&&d&&v&&["[object Number]","[object Function]","[object RegExp]"].indexOf(h)<0)||bs(g)&&Array.isArray(d))if(m&&bs(g)&&Array.isArray(d))d=d.join(g),d&&(d=this.extendTranslation(d,e,t,n));else{let r=!1,a=!1;const c=void 0!==t.count&&!bs(t.count),f=Zs.hasDefaultValue(t),p=c?this.pluralResolver.getSuffix(l,t.count,t):"",h=t.ordinal&&c?this.pluralResolver.getSuffix(l,t.count,{ordinal:!1}):"",g=c&&!t.ordinal&&0===t.count&&this.pluralResolver.shouldUseIntlApi(),m=g&&t[`defaultValue${this.options.pluralSeparator}zero`]||t[`defaultValue${p}`]||t[`defaultValue${h}`]||t.defaultValue;!this.isValidLookup(d)&&f&&(r=!0,d=m),this.isValidLookup(d)||(a=!0,d=o);const v=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&a?void 0:d,y=f&&m!==d&&this.options.updateMissing;if(a||r||y){if(this.logger.log(y?"updateKey":"missingKey",l,s,o,y?m:d),i){const e=this.resolve(o,{...t,keySeparator:!1});e&&e.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let e=[];const n=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&n&&n[0])for(let t=0;t<n.length;t++)e.push(n[t]);else"all"===this.options.saveMissingTo?e=this.languageUtils.toResolveHierarchy(t.lng||this.language):e.push(t.lng||this.language);const r=(e,n,r)=>{const i=f&&r!==d?r:v;this.options.missingKeyHandler?this.options.missingKeyHandler(e,s,n,i,y,t):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(e,s,n,i,y,t),this.emit("missingKey",e,s,n,d)};this.options.saveMissing&&(this.options.saveMissingPlurals&&c?e.forEach((e=>{const n=this.pluralResolver.getSuffixes(e,t);g&&t[`defaultValue${this.options.pluralSeparator}zero`]&&n.indexOf(`${this.options.pluralSeparator}zero`)<0&&n.push(`${this.options.pluralSeparator}zero`),n.forEach((n=>{r([e],o+n,t[`defaultValue${n}`]||m)}))})):r(e,o,m))}d=this.extendTranslation(d,e,t,u,n),a&&d===o&&this.options.appendNamespaceToMissingKey&&(d=`${s}:${o}`),(a||r)&&this.options.parseMissingKeyHandler&&(d="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${s}:${o}`:o,r?d:void 0):this.options.parseMissingKeyHandler(d))}else{if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(f,d,{...t,ns:a}):`key '${o} (${this.language})' returned an object instead of string.`;return r?(u.res=e,u.usedParams=this.getUsedParamsDetails(t),u):e}if(i){const e=Array.isArray(d),n=e?[]:{},r=e?p:f;for(const e in d)if(Object.prototype.hasOwnProperty.call(d,e)){const o=`${r}${i}${e}`;n[e]=this.translate(o,{...t,joinArrays:!1,ns:a}),n[e]===o&&(n[e]=d[e])}d=n}}return r?(u.res=d,u.usedParams=this.getUsedParamsDetails(t),u):d}extendTranslation(e,t,n,r,i){var o=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});const a=bs(e)&&(n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let s;if(a){const t=e.match(this.interpolator.nestingRegexp);s=t&&t.length}let l=n.replace&&!bs(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(l={...this.options.interpolation.defaultVariables,...l}),e=this.interpolator.interpolate(e,l,n.lng||this.language||r.usedLng,n),a){const t=e.match(this.interpolator.nestingRegexp);s<(t&&t.length)&&(n.nest=!1)}!n.lng&&"v1"!==this.options.compatibilityAPI&&r&&r.res&&(n.lng=this.language||r.usedLng),!1!==n.nest&&(e=this.interpolator.nest(e,(function(){for(var e=arguments.length,r=new Array(e),a=0;a<e;a++)r[a]=arguments[a];return i&&i[0]===r[0]&&!n.context?(o.logger.warn(`It seems you are nesting recursively key: ${r[0]} in key: ${t[0]}`),null):o.translate(...r,t)}),n)),n.interpolation&&this.interpolator.reset()}const a=n.postProcess||this.options.postProcess,s=bs(a)?[a]:a;return null!=e&&s&&s.length&&!1!==n.applyPostProcessor&&(e=Fs.handle(s,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),e}resolve(e){let t,n,r,i,o,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return bs(e)&&(e=[e]),e.forEach((e=>{if(this.isValidLookup(t))return;const s=this.extractFromKey(e,a),l=s.key;n=l;let c=s.namespaces;this.options.fallbackNS&&(c=c.concat(this.options.fallbackNS));const u=void 0!==a.count&&!bs(a.count),d=u&&!a.ordinal&&0===a.count&&this.pluralResolver.shouldUseIntlApi(),f=void 0!==a.context&&(bs(a.context)||"number"==typeof a.context)&&""!==a.context,p=a.lngs?a.lngs:this.languageUtils.toResolveHierarchy(a.lng||this.language,a.fallbackLng);c.forEach((e=>{this.isValidLookup(t)||(o=e,!Gs[`${p[0]}-${e}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(o)&&(Gs[`${p[0]}-${e}`]=!0,this.logger.warn(`key "${n}" for languages "${p.join(", ")}" won't get resolved as namespace "${o}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),p.forEach((n=>{if(this.isValidLookup(t))return;i=n;const o=[l];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(o,l,n,e,a);else{let e;u&&(e=this.pluralResolver.getSuffix(n,a.count,a));const t=`${this.options.pluralSeparator}zero`,r=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(u&&(o.push(l+e),a.ordinal&&0===e.indexOf(r)&&o.push(l+e.replace(r,this.options.pluralSeparator)),d&&o.push(l+t)),f){const n=`${l}${this.options.contextSeparator}${a.context}`;o.push(n),u&&(o.push(n+e),a.ordinal&&0===e.indexOf(r)&&o.push(n+e.replace(r,this.options.pluralSeparator)),d&&o.push(n+t))}}let s;for(;s=o.pop();)this.isValidLookup(t)||(r=s,t=this.getResource(n,e,s,a))})))}))})),{res:t,usedKey:n,exactUsedKey:r,usedLng:i,usedNS:o}}isValidLookup(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}getResource(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}getUsedParamsDetails(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],n=e.replace&&!bs(e.replace);let r=n?e.replace:e;if(n&&void 0!==e.count&&(r.count=e.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!n){r={...r};for(const e of t)delete r[e]}return r}static hasDefaultValue(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&"defaultValue"===t.substring(0,12)&&void 0!==e[t])return!0;return!1}}const Hs=e=>e.charAt(0).toUpperCase()+e.slice(1);class qs{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Us.create("languageUtils")}getScriptPartFromCode(e){if(!(e=Rs(e))||e.indexOf("-")<0)return null;const t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}getLanguagePartFromCode(e){if(!(e=Rs(e))||e.indexOf("-")<0)return e;const t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(bs(e)&&e.indexOf("-")>-1){if("undefined"!=typeof Intl&&void 0!==Intl.getCanonicalLocales)try{let t=Intl.getCanonicalLocales(e)[0];if(t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t)return t}catch(e){}const t=["hans","hant","latn","cyrl","cans","mong","arab"];let n=e.split("-");return this.options.lowerCaseLng?n=n.map((e=>e.toLowerCase())):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=Hs(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=Hs(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=Hs(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach((e=>{if(t)return;const n=this.formatLanguageCode(e);this.options.supportedLngs&&!this.isSupportedCode(n)||(t=n)})),!t&&this.options.supportedLngs&&e.forEach((e=>{if(t)return;const n=this.getLanguagePartFromCode(e);if(this.isSupportedCode(n))return t=n;t=this.options.supportedLngs.find((e=>e===n?e:e.indexOf("-")<0&&n.indexOf("-")<0?void 0:e.indexOf("-")>0&&n.indexOf("-")<0&&e.substring(0,e.indexOf("-"))===n||0===e.indexOf(n)&&n.length>1?e:void 0))})),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t}getFallbackCodes(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),bs(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}toResolveHierarchy(e,t){const n=this.getFallbackCodes(t||this.options.fallbackLng||[],e),r=[],i=e=>{e&&(this.isSupportedCode(e)?r.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return bs(e)&&(e.indexOf("-")>-1||e.indexOf("_")>-1)?("languageOnly"!==this.options.load&&i(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&i(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&i(this.getLanguagePartFromCode(e))):bs(e)&&i(this.formatLanguageCode(e)),n.forEach((e=>{r.indexOf(e)<0&&i(this.formatLanguageCode(e))})),r}}let Ys=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],Vs={1:e=>Number(e>1),2:e=>Number(1!=e),3:e=>0,4:e=>Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2),5:e=>Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5),6:e=>Number(1==e?0:e>=2&&e<=4?1:2),7:e=>Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2),8:e=>Number(1==e?0:2==e?1:8!=e&&11!=e?2:3),9:e=>Number(e>=2),10:e=>Number(1==e?0:2==e?1:e<7?2:e<11?3:4),11:e=>Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3),12:e=>Number(e%10!=1||e%100==11),13:e=>Number(0!==e),14:e=>Number(1==e?0:2==e?1:3==e?2:3),15:e=>Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2),16:e=>Number(e%10==1&&e%100!=11?0:0!==e?1:2),17:e=>Number(1==e||e%10==1&&e%100!=11?0:1),18:e=>Number(0==e?0:1==e?1:2),19:e=>Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3),20:e=>Number(1==e?0:0==e||e%100>0&&e%100<20?1:2),21:e=>Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0),22:e=>Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)};const Ws=["v1","v2","v3"],Qs=["v4"],Js={zero:0,one:1,two:2,few:3,many:4,other:5};class Xs{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.languageUtils=e,this.options=t,this.logger=Us.create("pluralResolver"),this.options.compatibilityJSON&&!Qs.includes(this.options.compatibilityJSON)||"undefined"!=typeof Intl&&Intl.PluralRules||(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=(()=>{const e={};return Ys.forEach((t=>{t.lngs.forEach((n=>{e[n]={numbers:t.nr,plurals:Vs[t.fc]}}))})),e})(),this.pluralRulesCache={}}addRule(e,t){this.rules[e]=t}clearCache(){this.pluralRulesCache={}}getRule(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi()){const n=Rs("dev"===e?"en":e),r=t.ordinal?"ordinal":"cardinal",i=JSON.stringify({cleanedCode:n,type:r});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];let o;try{o=new Intl.PluralRules(n,{type:r})}catch(n){if(!e.match(/-|_/))return;const r=this.languageUtils.getLanguagePartFromCode(e);o=this.getRule(r,t)}return this.pluralRulesCache[i]=o,o}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}needsPlural(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=this.getRule(e,t);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}getPluralFormsOfKey(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,n).map((e=>`${t}${e}`))}getSuffixes(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=this.getRule(e,t);return n?this.shouldUseIntlApi()?n.resolvedOptions().pluralCategories.sort(((e,t)=>Js[e]-Js[t])).map((e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${e}`)):n.numbers.map((n=>this.getSuffix(e,n,t))):[]}getSuffix(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=this.getRule(e,n);return r?this.shouldUseIntlApi()?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${r.select(t)}`:this.getSuffixRetroCompatible(r,t):(this.logger.warn(`no plural rule found for: ${e}`),"")}getSuffixRetroCompatible(e,t){const n=e.noAbs?e.plurals(t):e.plurals(Math.abs(t));let r=e.numbers[n];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===r?r="plural":1===r&&(r=""));const i=()=>this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString();return"v1"===this.options.compatibilityJSON?1===r?"":"number"==typeof r?`_plural_${r.toString()}`:i():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?i():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}shouldUseIntlApi(){return!Ws.includes(this.options.compatibilityJSON)}}const $s=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".",i=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],o=((e,t,n)=>{const r=Cs(e,n);return void 0!==r?r:Cs(t,n)})(e,t,n);return!o&&i&&bs(n)&&(o=Ls(e,n,r),void 0===o&&(o=Ls(t,n,r))),o},Ks=e=>e.replace(/\$/g,"$$$$");class el{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=Us.create("interpolator"),this.options=e,this.format=e.interpolation&&e.interpolation.format||(e=>e),this.init(e)}init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});const{escape:t,escapeValue:n,useRawValueToEscape:r,prefix:i,prefixEscaped:o,suffix:a,suffixEscaped:s,formatSeparator:l,unescapeSuffix:c,unescapePrefix:u,nestingPrefix:d,nestingPrefixEscaped:f,nestingSuffix:p,nestingSuffixEscaped:h,nestingOptionsSeparator:g,maxReplaces:m,alwaysFormat:v}=e.interpolation;this.escape=void 0!==t?t:js,this.escapeValue=void 0===n||n,this.useRawValueToEscape=void 0!==r&&r,this.prefix=i?Ss(i):o||"{{",this.suffix=a?Ss(a):s||"}}",this.formatSeparator=l||",",this.unescapePrefix=c?"":u||"-",this.unescapeSuffix=this.unescapePrefix?"":c||"",this.nestingPrefix=d?Ss(d):f||Ss("$t("),this.nestingSuffix=p?Ss(p):h||Ss(")"),this.nestingOptionsSeparator=g||",",this.maxReplaces=m||1e3,this.alwaysFormat=void 0!==v&&v,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const e=(e,t)=>e&&e.source===t?(e.lastIndex=0,e):new RegExp(t,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(e,t,n,r){let i,o,a;const s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},l=e=>{if(e.indexOf(this.formatSeparator)<0){const i=$s(t,s,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(i,void 0,n,{...r,...t,interpolationkey:e}):i}const i=e.split(this.formatSeparator),o=i.shift().trim(),a=i.join(this.formatSeparator).trim();return this.format($s(t,s,o,this.options.keySeparator,this.options.ignoreJSONStructure),a,n,{...r,...t,interpolationkey:o})};this.resetRegExp();const c=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,u=r&&r.interpolation&&void 0!==r.interpolation.skipOnVariables?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>Ks(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?Ks(this.escape(e)):Ks(e)}].forEach((t=>{for(a=0;i=t.regex.exec(e);){const n=i[1].trim();if(o=l(n),void 0===o)if("function"==typeof c){const t=c(e,i,r);o=bs(t)?t:""}else if(r&&Object.prototype.hasOwnProperty.call(r,n))o="";else{if(u){o=i[0];continue}this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`),o=""}else bs(o)||this.useRawValueToEscape||(o=Is(o));const s=t.safeValue(o);if(e=e.replace(i[0],s),u?(t.regex.lastIndex+=o.length,t.regex.lastIndex-=i[0].length):t.regex.lastIndex=0,a++,a>=this.maxReplaces)break}})),e}nest(e,t){let n,r,i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const a=(e,t)=>{const n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;const r=e.split(new RegExp(`${n}[ ]*{`));let o=`{${r[1]}`;e=r[0],o=this.interpolate(o,i);const a=o.match(/'/g),s=o.match(/"/g);(a&&a.length%2==0&&!s||s.length%2!=0)&&(o=o.replace(/'/g,'"'));try{i=JSON.parse(o),t&&(i={...t,...i})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${n}${o}`}return i.defaultValue&&i.defaultValue.indexOf(this.prefix)>-1&&delete i.defaultValue,e};for(;n=this.nestingRegexp.exec(e);){let s=[];i={...o},i=i.replace&&!bs(i.replace)?i.replace:i,i.applyPostProcessor=!1,delete i.defaultValue;let l=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){const e=n[1].split(this.formatSeparator).map((e=>e.trim()));n[1]=e.shift(),s=e,l=!0}if(r=t(a.call(this,n[1].trim(),i),i),r&&n[0]===e&&!bs(r))return r;bs(r)||(r=Is(r)),r||(this.logger.warn(`missed to resolve ${n[1]} for nesting ${e}`),r=""),l&&(r=s.reduce(((e,t)=>this.format(e,t,o.lng,{...o,interpolationkey:n[1].trim()})),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}const tl=e=>{const t={};return(n,r,i)=>{let o=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(o={...o,[i.interpolationkey]:void 0});const a=r+JSON.stringify(o);let s=t[a];return s||(s=e(Rs(r),i),t[a]=s),s(n)}};class nl{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=Us.create("formatter"),this.options=e,this.formats={number:tl(((e,t)=>{const n=new Intl.NumberFormat(e,{...t});return e=>n.format(e)})),currency:tl(((e,t)=>{const n=new Intl.NumberFormat(e,{...t,style:"currency"});return e=>n.format(e)})),datetime:tl(((e,t)=>{const n=new Intl.DateTimeFormat(e,{...t});return e=>n.format(e)})),relativetime:tl(((e,t)=>{const n=new Intl.RelativeTimeFormat(e,{...t});return e=>n.format(e,t.range||"day")})),list:tl(((e,t)=>{const n=new Intl.ListFormat(e,{...t});return e=>n.format(e)}))},this.init(e)}init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};this.formatSeparator=t.interpolation.formatSeparator||","}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=tl(t)}format(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const i=t.split(this.formatSeparator);if(i.length>1&&i[0].indexOf("(")>1&&i[0].indexOf(")")<0&&i.find((e=>e.indexOf(")")>-1))){const e=i.findIndex((e=>e.indexOf(")")>-1));i[0]=[i[0],...i.splice(1,e)].join(this.formatSeparator)}return i.reduce(((e,t)=>{const{formatName:i,formatOptions:o}=(e=>{let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const i=r[1].substring(0,r[1].length-1);"currency"===t&&i.indexOf(":")<0?n.currency||(n.currency=i.trim()):"relativetime"===t&&i.indexOf(":")<0?n.range||(n.range=i.trim()):i.split(";").forEach((e=>{if(e){const[t,...r]=e.split(":"),i=r.join(":").trim().replace(/^'+|'+$/g,""),o=t.trim();n[o]||(n[o]=i),"false"===i&&(n[o]=!1),"true"===i&&(n[o]=!0),isNaN(i)||(n[o]=parseInt(i,10))}}))}return{formatName:t,formatOptions:n}})(t);if(this.formats[i]){let t=e;try{const a=r&&r.formatParams&&r.formatParams[r.interpolationkey]||{},s=a.locale||a.lng||r.locale||r.lng||n;t=this.formats[i](e,s,{...o,...r,...a})}catch(e){this.logger.warn(e)}return t}return this.logger.warn(`there was no format function for ${i}`),e}),e)}}class rl extends _s{constructor(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=r,this.logger=Us.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(n,r.backend,r)}queueLoad(e,t,n,r){const i={},o={},a={},s={};return e.forEach((e=>{let r=!0;t.forEach((t=>{const a=`${e}|${t}`;!n.reload&&this.store.hasResourceBundle(e,t)?this.state[a]=2:this.state[a]<0||(1===this.state[a]?void 0===o[a]&&(o[a]=!0):(this.state[a]=1,r=!1,void 0===o[a]&&(o[a]=!0),void 0===i[a]&&(i[a]=!0),void 0===s[t]&&(s[t]=!0)))})),r||(a[e]=!0)})),(Object.keys(i).length||Object.keys(o).length)&&this.queue.push({pending:o,pendingCount:Object.keys(o).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(i),pending:Object.keys(o),toLoadLanguages:Object.keys(a),toLoadNamespaces:Object.keys(s)}}loaded(e,t,n){const r=e.split("|"),i=r[0],o=r[1];t&&this.emit("failedLoading",i,o,t),!t&&n&&this.store.addResourceBundle(i,o,n,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&n&&(this.state[e]=0);const a={};this.queue.forEach((n=>{((e,t,n,r)=>{const{obj:i,k:o}=As(e,t,Object);i[o]=i[o]||[],i[o].push(n)})(n.loaded,[i],o),((e,t)=>{void 0!==e.pending[t]&&(delete e.pending[t],e.pendingCount--)})(n,e),t&&n.errors.push(t),0!==n.pendingCount||n.done||(Object.keys(n.loaded).forEach((e=>{a[e]||(a[e]={});const t=n.loaded[e];t.length&&t.forEach((t=>{void 0===a[e][t]&&(a[e][t]=!0)}))})),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())})),this.emit("loaded",a),this.queue=this.queue.filter((e=>!e.done))}read(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,o=arguments.length>5?arguments[5]:void 0;if(!e.length)return o(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:e,ns:t,fcName:n,tried:r,wait:i,callback:o});this.readingCalls++;const a=(a,s)=>{if(this.readingCalls--,this.waitingReads.length>0){const e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}a&&s&&r<this.maxRetries?setTimeout((()=>{this.read.call(this,e,t,n,r+1,2*i,o)}),i):o(a,s)},s=this.backend[n].bind(this.backend);if(2!==s.length)return s(e,t,a);try{const n=s(e,t);n&&"function"==typeof n.then?n.then((e=>a(null,e))).catch(a):a(null,n)}catch(e){a(e)}}prepareLoading(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r();bs(e)&&(e=this.languageUtils.toResolveHierarchy(e)),bs(t)&&(t=[t]);const i=this.queueLoad(e,t,n,r);if(!i.toLoad.length)return i.pending.length||r(),null;i.toLoad.forEach((e=>{this.loadOne(e)}))}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const n=e.split("|"),r=n[0],i=n[1];this.read(r,i,"read",void 0,void 0,((n,o)=>{n&&this.logger.warn(`${t}loading namespace ${i} for language ${r} failed`,n),!n&&o&&this.logger.log(`${t}loaded namespace ${i} for language ${r}`,o),this.loaded(e,n,o)}))}saveMissing(e,t,n,r,i){let o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t))this.logger.warn(`did not save key "${n}" as the namespace "${t}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");else if(null!=n&&""!==n){if(this.backend&&this.backend.create){const s={...o,isUpdate:i},l=this.backend.create.bind(this.backend);if(l.length<6)try{let i;i=5===l.length?l(e,t,n,r,s):l(e,t,n,r),i&&"function"==typeof i.then?i.then((e=>a(null,e))).catch(a):a(null,i)}catch(e){a(e)}else l(e,t,n,r,a,s)}e&&e[0]&&this.store.addResource(e[0],t,n,r)}}}const il=()=>({debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if("object"==typeof e[1]&&(t=e[1]),bs(e[1])&&(t.defaultValue=e[1]),bs(e[2])&&(t.tDescription=e[2]),"object"==typeof e[2]||"object"==typeof e[3]){const n=e[3]||e[2];Object.keys(n).forEach((e=>{t[e]=n[e]}))}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),ol=e=>(bs(e.ns)&&(e.ns=[e.ns]),bs(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),bs(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),al=()=>{};class sl extends _s{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;var n;if(super(),this.options=ol(e),this.services={},this.logger=Us,this.modules={external:[]},n=this,Object.getOwnPropertyNames(Object.getPrototypeOf(n)).forEach((e=>{"function"==typeof n[e]&&(n[e]=n[e].bind(n))})),t&&!this.isInitialized&&!e.isClone){if(!this.options.initImmediate)return this.init(e,t),this;setTimeout((()=>{this.init(e,t)}),0)}}init(){var e=this;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,"function"==typeof t&&(n=t,t={}),!t.defaultNS&&!1!==t.defaultNS&&t.ns&&(bs(t.ns)?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));const r=il();this.options={...r,...this.options,...ol(t)},"v1"!==this.options.compatibilityAPI&&(this.options.interpolation={...r.interpolation,...this.options.interpolation}),void 0!==t.keySeparator&&(this.options.userDefinedKeySeparator=t.keySeparator),void 0!==t.nsSeparator&&(this.options.userDefinedNsSeparator=t.nsSeparator);const i=e=>e?"function"==typeof e?new e:e:null;if(!this.options.isClone){let t;this.modules.logger?Us.init(i(this.modules.logger),this.options):Us.init(null,this.options),this.modules.formatter?t=this.modules.formatter:"undefined"!=typeof Intl&&(t=nl);const n=new qs(this.options);this.store=new Bs(this.options.resources,this.options);const o=this.services;o.logger=Us,o.resourceStore=this.store,o.languageUtils=n,o.pluralResolver=new Xs(n,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),!t||this.options.interpolation.format&&this.options.interpolation.format!==r.interpolation.format||(o.formatter=i(t),o.formatter.init(o,this.options),this.options.interpolation.format=o.formatter.format.bind(o.formatter)),o.interpolator=new el(this.options),o.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},o.backendConnector=new rl(i(this.modules.backend),o.resourceStore,o,this.options),o.backendConnector.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];e.emit(t,...r)})),this.modules.languageDetector&&(o.languageDetector=i(this.modules.languageDetector),o.languageDetector.init&&o.languageDetector.init(o,this.options.detection,this.options)),this.modules.i18nFormat&&(o.i18nFormat=i(this.modules.i18nFormat),o.i18nFormat.init&&o.i18nFormat.init(this)),this.translator=new Zs(this.services,this.options),this.translator.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];e.emit(t,...r)})),this.modules.external.forEach((e=>{e.init&&e.init(this)}))}if(this.format=this.options.interpolation.format,n||(n=al),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&"dev"!==e[0]&&(this.options.lng=e[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach((t=>{this[t]=function(){return e.store[t](...arguments)}})),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach((t=>{this[t]=function(){return e.store[t](...arguments),e}}));const o=xs(),a=()=>{const e=(e,t)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),o.resolve(t),n(e,t)};if(this.languages&&"v1"!==this.options.compatibilityAPI&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initImmediate?a():setTimeout(a,0),o}loadResources(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:al;const n=bs(e)?e:this.language;if("function"==typeof e&&(t=e),!this.options.resources||this.options.partialBundledLanguages){if(n&&"cimode"===n.toLowerCase()&&(!this.options.preload||0===this.options.preload.length))return t();const e=[],r=t=>{t&&"cimode"!==t&&this.services.languageUtils.toResolveHierarchy(t).forEach((t=>{"cimode"!==t&&e.indexOf(t)<0&&e.push(t)}))};n?r(n):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((e=>r(e))),this.options.preload&&this.options.preload.forEach((e=>r(e))),this.services.backendConnector.load(e,this.options.ns,(e=>{e||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),t(e)}))}else t(null)}reloadResources(e,t,n){const r=xs();return"function"==typeof e&&(n=e,e=void 0),"function"==typeof t&&(n=t,t=void 0),e||(e=this.languages),t||(t=this.options.ns),n||(n=al),this.services.backendConnector.reload(e,t,(e=>{r.resolve(),n(e)})),r}use(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&Fs.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}setResolvedLanguage(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1))for(let e=0;e<this.languages.length;e++){const t=this.languages[e];if(!(["cimode","dev"].indexOf(t)>-1)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}}changeLanguage(e,t){var n=this;this.isLanguageChangingTo=e;const r=xs();this.emit("languageChanging",e);const i=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},o=(e,o)=>{o?(i(o),this.translator.changeLanguage(o),this.isLanguageChangingTo=void 0,this.emit("languageChanged",o),this.logger.log("languageChanged",o)):this.isLanguageChangingTo=void 0,r.resolve((function(){return n.t(...arguments)})),t&&t(e,(function(){return n.t(...arguments)}))},a=t=>{e||t||!this.services.languageDetector||(t=[]);const n=bs(t)?t:this.services.languageUtils.getBestMatchFromCodes(t);n&&(this.language||i(n),this.translator.language||this.translator.changeLanguage(n),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(n)),this.loadResources(n,(e=>{o(e,n)}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(a):this.services.languageDetector.detect(a):a(e):a(this.services.languageDetector.detect()),r}getFixedT(e,t,n){var r=this;const i=function(e,t){let o;if("object"!=typeof t){for(var a=arguments.length,s=new Array(a>2?a-2:0),l=2;l<a;l++)s[l-2]=arguments[l];o=r.options.overloadTranslationOptionHandler([e,t].concat(s))}else o={...t};o.lng=o.lng||i.lng,o.lngs=o.lngs||i.lngs,o.ns=o.ns||i.ns,""!==o.keyPrefix&&(o.keyPrefix=o.keyPrefix||n||i.keyPrefix);const c=r.options.keySeparator||".";let u;return u=o.keyPrefix&&Array.isArray(e)?e.map((e=>`${o.keyPrefix}${c}${e}`)):o.keyPrefix?`${o.keyPrefix}${c}${e}`:e,r.t(u,o)};return bs(e)?i.lng=e:i.lngs=e,i.ns=t,i.keyPrefix=n,i}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const n=t.lng||this.resolvedLanguage||this.languages[0],r=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if("cimode"===n.toLowerCase())return!0;const o=(e,t)=>{const n=this.services.backendConnector.state[`${e}|${t}`];return-1===n||0===n||2===n};if(t.precheck){const e=t.precheck(this,o);if(void 0!==e)return e}return!(!this.hasResourceBundle(n,e)&&this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages)&&(!o(n,e)||r&&!o(i,e)))}loadNamespaces(e,t){const n=xs();return this.options.ns?(bs(e)&&(e=[e]),e.forEach((e=>{this.options.ns.indexOf(e)<0&&this.options.ns.push(e)})),this.loadResources((e=>{n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){const n=xs();bs(e)&&(e=[e]);const r=this.options.preload||[],i=e.filter((e=>r.indexOf(e)<0&&this.services.languageUtils.isSupportedCode(e)));return i.length?(this.options.preload=r.concat(i),this.loadResources((e=>{n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!e)return"rtl";const t=this.services&&this.services.languageUtils||new qs(il());return["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(t.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){return new sl(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1?arguments[1]:void 0)}cloneInstance(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:al;const n=e.forkResourceStore;n&&delete e.forkResourceStore;const r={...this.options,...e,isClone:!0},i=new sl(r);return void 0===e.debug&&void 0===e.prefix||(i.logger=i.logger.clone(e)),["store","services","language"].forEach((e=>{i[e]=this[e]})),i.services={...this.services},i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},n&&(i.store=new Bs(this.store.data,r),i.services.resourceStore=i.store),i.translator=new Zs(i.services,r),i.translator.on("*",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];i.emit(e,...n)})),i.init(r,t),i.translator.options=r,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const ll=sl.createInstance();ll.createInstance=sl.createInstance,ll.createInstance,ll.dir,ll.init,ll.loadResources,ll.reloadResources,ll.use,ll.changeLanguage,ll.getFixedT,ll.t,ll.exists,ll.setDefaultNamespace,ll.hasLoadedNamespace,ll.loadNamespaces,ll.loadLanguages;const cl=function(e){return e&&e.length?e[0]:void 0},ul=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0},dl=function(){};var fl=Object.prototype.hasOwnProperty;const pl=function(e,t,n){var r=e[t];fl.call(e,t)&&$e(r,n)&&(void 0!==n||t in e)||Qe(e,t,n)},hl=function(e,t,n,r){if(!le(e))return e;for(var i=-1,o=(t=yn(t,e)).length,a=o-1,s=e;null!=s&&++i<o;){var l=bn(t[i]),c=n;if("__proto__"===l||"constructor"===l||"prototype"===l)return e;if(i!=a){var u=s[l];void 0===(c=r?r(u,l,s):void 0)&&(c=le(u)?u:q(t[i+1])?[]:{})}pl(s,l,c),s=s[l]}return e},gl=function(e,t){return function(e,t,n){for(var r=-1,i=t.length,o={};++r<i;){var a=t[r],s=xn(e,a);n(s,a)&&hl(o,yn(a,e),s)}return o}(e,t,(function(t,n){return Tn(e,n)}))},ml=function(e){return null!=e&&e.length?Bn(e,1):[]},vl=function(e){return Wn(qn(e,void 0,ml),e+"")},yl=vl((function(e,t){return null==e?{}:gl(e,t)})),bl={"exam-total":"Provet sammanlagt","grading-total":"Sammanlagt",material:"Material","attachments-page-title":"Material:","external-material-title":"Material","grading-instructions-page-title":"Beskrivningar av goda svar:",section:"Del {{displayNumber}}:",question:"Uppgift {{displayNumber}}:",grade:"Vitsord",comment:"Kommentar",points:"{{count}} p.",recording:"Inspelningen","audio-errors":{"already-accessed":"Du har redan spelat denna inspelning. Uppdatera sidan","already-playing":"Lyssna först inspelningen till slut.","other-error":"Uppspelning misslyckades, be övervakaren om hjälp."},"audio-test":{instructions:"Provet omfattar uppgifter i hörförståelse.",play:"Testa hörbarheten",volume:"Du kan justera ljudvolymen uppe i högra hörnet av rutan."},"dropdown-answer":{label:"Välj det alternativ som passar bäst.",clear:"Avmarkera alternativet."},grading:{"pregrading-annotations":"Preliminära bedömningens anteckningar (lärare)","censor-annotations":"Censorns anteckningar","pregrading-abbrev":"prel.","inspection-grading-abbrev":"ompr.","round.1":"1.c","round.2":"2.c","round.3":"3.c",annotate:"Markera","non-answer-not-graded":"Lämnats utan bedömning","loading-images":"Vänta, bilder laddas...","some-images-failed":"Laddning av vissa bilder misslyckades. Var god uppdatera sidan."},references:{heading:"Källor",source:"Källa:",date:"Publicerad:","reference-date":"Hämtad:",translator:"Översättning:","modified-by":"Bearbetning:"},cas:{examineSectionA:"Du kan nu granska dina svar för del A.",cannotEditLater:"När du har returnerat del A kan du inte längre redigera svaren för del A.",youCanReturn:"Efter att du granskat dina svar kan du gå tillbaka till provet för att fortsätta svara på uppgifterna.",forbidden:{infoText:"Du får tillgång till de blockerade räknarprogrammen efter att du returnerat del A.",buttonText:"Returnera del A"},allowing:{infoText:"Svaren i A-delen låses. Du får tillgång till de blockerade räknarprogrammen om en stund.",cancel:"Avbryt ({{count}} s)"},allowed:{infoText:"Del A returnerad"}},"examine-exam":{examine:"Kontrollera dina svar",instructions:"Efter att du granskat dina svar kan du ännu gå tillbaka och redigera svaren eller avsluta provet."},"dnd-answers":{"all-answer-options":"TODO TODO:","correct-answers":"TODO TODO","question-missing":"Här saknas ett objekt...","answer-missing":"Här kommer rätta alternativet...","drop-here":"TODO TODO","no-answer":"(TODO TODO)"},undo:{loading:"Laddar...",close:"Stäng",restoreAnswer:"Återställ",answerNoText:"ingen text",answerWordCount:"{{count}} ord",answerWordCount_plural:"{{count}} ord",answerCharacterCount:"{{count}} tecken",answerCharacterCount_plural:"{{count}} tecken",answerImageCount:"{{count}} bild",answerImageCount_plural:"{{count}} bilder",minutesSinceAnswer:"{{ minutes }} min sedan",latestVersion:"Den senaste versionen"},examineExam:{returnToExam:"Återvänd till provutförandet",checkYourAnswersTitle:"Kontrollera dina svar",hereAreYourAnswers:"Du ser här dina svar på samma sätt som de som bedömer proven kommer att se dem.",checkYourAnswers:"Kontrollera att du kan se alla de svar som du vill lämna in till bedömning.",removeExcessAnswers:"Om du ser svar som du inte vill lämna in till bedömning bör du gå tillbaka till provet och avlägsna dem.",emptyAnswersAreHighlighted:"Tomma svarsfält har markerats.",thereMayBeOptionalQuestions:"Det kan finnas valbara uppgifter i provet, och därmed innebär ett tomt svarsfält inte alltid att något är fel.",questionHasNoAnswer:"Denna fråga har inte besvarats",endExamTitle:"Avsluta provet",afterInspectingYourAnswers:"När du har kontrollerat dina svar kan du avsluta provet genom att klicka på knappen nedan.",youCanNotReturnToExam:"Efter att du klickat på knappen kan du inte längre gå tillbaka till provet.",thankYouTitle:"Tack!",shutdownComputer:"Stäng nu av datorn.",returnUsbStick:"När datorn har är avstängd, ta bort USB-minnet och ge det till provets övervakare."},"toc-heading":"Innehåll","answer-saved":"Sparad","too-many-answers":"Svar på för många uppgifter:","max-answers-warning":"Besvara högst {{count}} uppgift.","max-answers-warning_plural":"Besvara högst {{count}} uppgifter.","open-writing-mode":"Öppna skrivvyn","close-writing-mode":"Minska vyn","listen-times-remaining":"{{count}} lyssningsgång kvar.","listen-times-remaining_plural":"{{count}} lyssningsgånger kvar.","answer-length":"Svarets längd: {{count}} tecken.","answer-length-with-max-length":"Svarets längd: {{count}} / {{maxLength}} tecken.","max-length-surplus":"Svaret överskrider maximallängden på {{maxLength}} märken med {{percentage}} %.","max-length-info":"Svaret får inte överskrida {{count}} tecken. Om det givna antalet tecken överskrids leder det till poängavdrag.","previous-answer-versions":"Tidigare utkast till svar","zoom-in":"Förstora bilden","end-of-exam":"Uppgifterna i provet slutar här.","answering-instructions":{"exam_*_1_1":"Besvara högst en uppgift i provet.","exam_*_2_2":"Besvara högst två uppgifter i provet.","exam_*_3_3":"Besvara högst tre uppgifter i provet.","exam_*_4_4":"Besvara högst fyra uppgifter i provet.","exam_*_5_5":"Besvara högst fem uppgifter i provet.","exam_*_6_6":"Besvara högst sex uppgifter i provet.","exam_*_7_7":"Besvara högst sju uppgifter i provet.","exam_*_8_8":"Besvara högst åtta uppgifter i provet.","exam_*_9_9":"Besvara högst nio uppgifter i provet.","exam_*_10_10":"Besvara högst tio uppgifter i provet.","exam_*_*_*":"Besvara högst {{answerCount, range}} uppgifter i provet.","question_*_1_1":"Besvara en av punkterna {{questions, range}}.","question_*_2_2":"Besvara två av punkterna {{questions, range}}.","question_*_3_3":"Besvara tre av punkterna {{questions, range}}.","question_*_4_4":"Besvara fyra av punkterna {{questions, range}}.","question_*_5_5":"Besvara fem av punkterna {{questions, range}}.","question_*_6_6":"Besvara sex av punkterna {{questions, range}}.","question_*_7_7":"Besvara sju av punkterna {{questions, range}}.","question_*_8_8":"Besvara åtta av punkterna {{questions, range}}.","question_*_9_9":"Besvara nio av punkterna {{questions, range}}.","question_*_10_10":"Besvara tio av punkterna {{questions, range}}.","question_2_*_1":"Besvara antingen punkt {{questions, first}} eller {{questions, last}}.","question_*_*_*":"Besvara {{answerCount, range}} av punkterna {{questions, range}}.","section_*_1_1":"Besvara en uppgift.","section_*_2_2":"Besvara två uppgifter.","section_*_3_3":"Besvara tre uppgifter.","section_*_4_4":"Besvara fyra uppgifter.","section_*_5_5":"Besvara fem uppgifter.","section_*_6_6":"Besvara sex uppgifter.","section_*_7_7":"Besvara sju uppgifter.","section_*_8_8":"Besvara åtta uppgifter.","section_*_9_9":"Besvara nio uppgifter.","section_*_10_10":"Besvara tio uppgifter.","section_1_*_1":"Besvara uppgift {{questions, range}}.","section_2_*_1":"Besvara antingen uppgift {{questions, first}} eller {{questions, last}}.","section_*_*_*":"Besvara {{answerCount, range}} uppgifter.","toc-section_*_1_1":"Besvara en uppgift.","toc-section_*_2_2":"Besvara två uppgifter.","toc-section_*_3_3":"Besvara tre uppgifter.","toc-section_*_4_4":"Besvara fyra uppgifter.","toc-section_*_5_5":"Besvara fem uppgifter.","toc-section_*_6_6":"Besvara sex uppgifter.","toc-section_*_7_7":"Besvara sju uppgifter.","toc-section_*_8_8":"Besvara åtta uppgifter.","toc-section_*_9_9":"Besvara nio uppgifter.","toc-section_*_10_10":"Besvara tio uppgifter.","toc-section_1_*_1":"Besvara uppgift {{questions, range}}.","toc-section_2_*_1":"Besvara antingen uppgift {{questions, first}} eller {{questions, last}}.","toc-section_*_*_*":"Besvara {{answerCount, range}} uppgifter."},"answer-errors":{"screenshot-too-big":"Den skärmdump du tagit är för stor. Ta en ny skärmdump av en mindre del av skärmen och försök på nytt.","screenshot-byte-limit-reached":"Minnesutrymmet för skärmdumpar är fullt. (Du kan referera till bilder i materialet direkt utan skärmdumpar.)","screenshot-upload-failed":"Bifogandet av skärmdumpen misslyckades. Försök på nytt.","answer-too-long":"Svaret är för långt."},"screen-reader":{"answer-begin":"[Svaret börjar]","answer-end":"[Svaret avslutar]","correct-answer":"[Accepterat svar]"}},xl=yl(bl,["exam-total","material","external-material-title","section","references","toc-heading"]),Il={"exam-total":"Koe yhteensä","grading-total":"Yhteensä",material:"Aineisto",material_plural:"Aineistot","attachments-page-title":"Aineisto:","external-material-title":"Aineisto","grading-instructions-page-title":"Hyvän vastauksen piirteet:",section:"Osa {{displayNumber}}:",question:"Tehtävä {{displayNumber}}:",grade:"Arvosana",comment:"Kommentti",points:"{{count}} p.",recording:"Tallenne","audio-errors":{"already-accessed":"Olet jo toistanut tämän äänitteen. Päivitä sivu.","already-playing":"Kuuntele äänite ensin loppuun.","other-error":"Äänitteen toistaminen epäonnistui, pyydä apua valvojalta."},"audio-test":{instructions:"Koe sisältää kuullunymmärtämisen tehtäviä.",play:"Testaa äänitteiden kuuluvuus",volume:"Äänen voimakkuutta voit säätää ruudun oikeasta yläkulmasta."},"dropdown-answer":{label:"Valitse parhaiten sopiva vaihtoehto.",clear:"Poista valinta."},grading:{"pregrading-annotations":"Alustavan arvostelun merkinnät (opettaja)","censor-annotations":"Sensorin merkinnät","pregrading-abbrev":"alust.","inspection-grading-abbrev":"ov","round.1":"1.s","round.2":"2.s","round.3":"3.s",annotate:"Merkitse","non-answer-not-graded":"Jätetty arvostelematta","loading-images":"Odota, kuvia ladataan...","some-images-failed":"Joidenkin kuvien lataaminen epäonnistui. Päivitä sivu."},references:{heading:"Lähteet",source:"Lähde:",date:"Julkaistu:","reference-date":"Viitattu:",translator:"Käännös:","modified-by":"Muokkaus:"},cas:{examineSectionA:"Voit käydä tarkastelemassa A-osan vastauksiasi nyt.",cannotEditLater:"Palautettuasi A-osan et voi enää muokata A-osan vastauksia.",youCanReturn:"Tarkastelun jälkeen voit palata kokeeseen jatkamaan tehtäviin vastaamista.",forbidden:{infoText:"Saat estetyt laskinohjelmat käyttöösi palautettuasi A-osan.",buttonText:"Palauta A-osa"},allowing:{infoText:"A-osan vastaukset lukitaan. Saat estetyt laskinohjelmat käyttöösi hetken kuluttua.",cancel:"Peruuta ({{count}} s)"},allowed:{infoText:"A-osa palautettu"}},"examine-exam":{examine:"Siirry tarkastelemaan vastauksiasi",instructions:"Tarkastelun jälkeen voit vielä palata muokkaamaan vastauksia, tai päättää kokeen."},"dnd-answers":{"all-answer-options":"Vastausvaihtoehdot:","correct-answers":"Oikeat vastaukset","question-missing":"Tästä puuttuu tehtävä...","answer-missing":"Tästä puuttuu vastaus...","drop-here":"Pudota tänne","no-answer":"(Ei vastausta)"},undo:{loading:"Ladataan...",close:"Sulje",restoreAnswer:"Palauta",answerNoText:"ei tekstiä",answerWordCount:"{{count}} sana",answerWordCount_plural:"{{count}} sanaa",answerCharacterCount:"{{count}} merkki",answerCharacterCount_plural:"{{count}} merkkiä",answerImageCount:"{{count}} kuva",answerImageCount_plural:"{{count}} kuvaa",minutesSinceAnswer:"{{ minutes }} min sitten",latestVersion:"Viimeisin versio"},examineExam:{returnToExam:"Palaa suorittamaan koetta",checkYourAnswersTitle:"Tarkista vastauksesi",hereAreYourAnswers:"Näet tässä vastauksesi samanlaisina kuin kokeen arvostelijat tulevat ne näkemään.",checkYourAnswers:"Tarkista, että näet alla kaikki vastaukset, jotka haluat jättää arvosteltavaksi.",removeExcessAnswers:"Jos näet vastauksia, joita et halua jättää arvosteltavaksi, palaa kokeeseen ja poista ne.",emptyAnswersAreHighlighted:"Tyhjät vastaukset on korostettu.",thereMayBeOptionalQuestions:"Kokeessa voi olla valinnaisia tehtäviä, joten tyhjä vastaus ei välttämättä tarkoita virhettä.",questionHasNoAnswer:"Tähän kysymykseen ei ole vastattu",endExamTitle:"Päätä koe",afterInspectingYourAnswers:"Kun olet tarkistanut vastauksesi, päätä koe klikkaamalla alla olevaa nappia.",youCanNotReturnToExam:"Napin klikkaamisen jälkeen et voi enää palata kokeeseen.",thankYouTitle:"Kiitos!",shutdownComputer:"Sammuta vielä tietokoneesi.",returnUsbStick:"Kun kone on sammunut, irrota USB-muisti ja palauta se kokeen valvojalle."},"toc-heading":"Sisällys","answer-saved":"Tallennettu","too-many-answers":"Vastattu liian moneen tehtävään:","max-answers-warning":"Vastaa enintään {{count}} tehtävään.","open-writing-mode":"Avaa kirjoitusnäkymä","close-writing-mode":"Pienennä näkymä","listen-times-remaining":"{{count}} kuuntelukerta jäljellä.","listen-times-remaining_plural":"{{count}} kuuntelukertaa jäljellä.","answer-length":"Vastauksen pituus: {{count}} merkki.","answer-length_plural":"Vastauksen pituus: {{count}} merkkiä.","answer-length-with-max-length":"Vastauksen pituus: {{count}} / {{maxLength}} merkkiä.","max-length-surplus":"Vastauksen enimmäispituus {{maxLength}} merkkiä ylittyy {{percentage}} %.","max-length-info":"Vastauksen pituus on enintään {{count}} merkkiä. Ylityksestä seuraa pistevähennys.","previous-answer-versions":"Aiemmat vastausluonnokset","zoom-in":"Suurenna kuva","end-of-exam":"Kokeen tehtävät loppuvat tähän.","answering-instructions":{"exam_*_1_1":"Vastaa kokeessa enintään yhteen tehtävään.","exam_*_2_2":"Vastaa kokeessa enintään kahteen tehtävään.","exam_*_3_3":"Vastaa kokeessa enintään kolmeen tehtävään.","exam_*_4_4":"Vastaa kokeessa enintään neljään tehtävään.","exam_*_5_5":"Vastaa kokeessa enintään viiteen tehtävään.","exam_*_6_6":"Vastaa kokeessa enintään kuuteen tehtävään.","exam_*_7_7":"Vastaa kokeessa enintään seitsemään tehtävään.","exam_*_8_8":"Vastaa kokeessa enintään kahdeksaan tehtävään.","exam_*_9_9":"Vastaa kokeessa enintään yhdeksään tehtävään.","exam_*_10_10":"Vastaa kokeessa enintään kymmeneen tehtävään.","exam_*_*_*":"Vastaa kokeessa enintään {{answerCount, range}} tehtävään.","question_*_1_1":"Vastaa yhteen kohdista {{questions, range}}.","question_*_2_2":"Vastaa kahteen kohdista {{questions, range}}.","question_*_3_3":"Vastaa kolmeen kohdista {{questions, range}}.","question_*_4_4":"Vastaa neljään kohdista {{questions, range}}.","question_*_5_5":"Vastaa viiteen kohdista {{questions, range}}.","question_*_6_6":"Vastaa kuuteen kohdista {{questions, range}}.","question_*_7_7":"Vastaa seitsemään kohdista {{questions, range}}.","question_*_8_8":"Vastaa kahdeksaan kohdista {{questions, range}}.","question_*_9_9":"Vastaa yhdeksään kohdista {{questions, range}}.","question_*_10_10":"Vastaa kymmeneen kohdista {{questions, range}}.","question_2_*_1":"Vastaa joko kohtaan {{questions, first}} tai {{questions, last}}.","question_*_*_*":"Vastaa {{answerCount, range}} kohdista {{questions, range}}.","section_*_1_1":"Vastaa yhteen tehtävään.","section_*_2_2":"Vastaa kahteen tehtävään.","section_*_3_3":"Vastaa kolmeen tehtävään.","section_*_4_4":"Vastaa neljään tehtävään.","section_*_5_5":"Vastaa viiteen tehtävään.","section_*_6_6":"Vastaa kuuteen tehtävään.","section_*_7_7":"Vastaa seitsemään tehtävään.","section_*_8_8":"Vastaa kahdeksaan tehtävään.","section_*_9_9":"Vastaa yhdeksään tehtävään.","section_*_10_10":"Vastaa kymmeneen tehtävään.","section_1_*_1":"Vastaa tehtävään {{questions, range}}.","section_2_*_1":"Vastaa joko tehtävään {{questions, first}} tai {{questions, last}}.","section_*_*_*":"Vastaa {{answerCount, range}} tehtävään.","toc-section_*_1_1":"Vastaa yhteen tehtävään.","toc-section_*_2_2":"Vastaa kahteen tehtävään.","toc-section_*_3_3":"Vastaa kolmeen tehtävään.","toc-section_*_4_4":"Vastaa neljään tehtävään.","toc-section_*_5_5":"Vastaa viiteen tehtävään.","toc-section_*_6_6":"Vastaa kuuteen tehtävään.","toc-section_*_7_7":"Vastaa seitsemään tehtävään.","toc-section_*_8_8":"Vastaa kahdeksaan tehtävään.","toc-section_*_9_9":"Vastaa yhdeksään tehtävään.","toc-section_*_10_10":"Vastaa kymmeneen tehtävään.","toc-section_1_*_1":"Vastaa tehtävään {{questions, range}}.","toc-section_2_*_1":"Vastaa joko tehtävään {{questions, first}} tai {{questions, last}}.","toc-section_*_*_*":"Vastaa {{answerCount, range}} tehtävään."},"answer-errors":{"screenshot-too-big":"Ottamasi kuvakaappaus on liian iso. Ota uusi kuvakaappaus pienemmästä osasta näyttöä ja yritä uudelleen.","screenshot-byte-limit-reached":"Kokeesi kuvakaappauksille varattu tila on täyttynyt. (Voit viitata aineistokuviin suoraan ilman kuvakaappausta.)","screenshot-upload-failed":"Kuvan liittäminen ei onnistunut. Kokeile uudestaan.","answer-too-long":"Vastaus on liian pitkä."},"screen-reader":{"answer-begin":"[Vastaus alkaa]","answer-end":"[Vastaus päättyy]","correct-answer":"[Hyväksytty vastaus]"}},wl=yl(Il,["exam-total","material","external-material-title","section","references","toc-heading"]),Tl={"exam-total":"Total points for the exam",material:"Material","external-material-title":"Material",section:"Part {{displayNumber}}:",references:{heading:"Sources",source:"Source:",date:"Published:","reference-date":"Accessed:",translator:"Translation:","modified-by":"Adaptation:"},"toc-heading":"Contents"},Ml={"exam-total":"Total des points",material:"Document",material_plural:"Documents","external-material-title":"Document",section:"Partie {{displayNumber}} :",references:{heading:"Sources",source:"Source :",date:"Publication le","reference-date":"Téléchargement le",translator:"Traduction :","modified-by":"Modifications :"},"toc-heading":"Sommaire"},Al={section:""},El={"exam-total":"Puntuación total",material:"Material","external-material-title":"Material",section:"Parte {{displayNumber}}:",references:{heading:"Fuentes",source:"Fuente:",date:"Publicado:","reference-date":"Consultado:",translator:"Traducción:","modified-by":"Adaptado:"},"toc-heading":"Contenido"},Cl={"exam-total":"Die Prüfung insgesamt",material:"Materialien","external-material-title":"Materialien",section:"Teil {{displayNumber}}:",references:{heading:"Quellen",source:"Quelle:",date:"Veröffentlicht:","reference-date":"Zugriff:",translator:"Übersetzung:","modified-by":"Bearbeitung:"},"toc-heading":"Inhalt"},Nl={"exam-total":"Весь экзамен",material:"Материал","external-material-title":"Материал",section:"Часть {{displayNumber}}:",references:{heading:"Источники",source:"Источник",date:"Опубликовано","reference-date":"Дата обращения",translator:"Перевод","modified-by":"Адаптировано"},"toc-heading":"Содержание"},Sl={A_E:{"external-material-title":"Aineistot","answering-instructions":{"toc-section_*_1_1":"Valitse yksi aihe.","section_*_1_1":"Valitse yksi aihe."}},BA:xl,BB:xl,CA:wl,CB:wl,EA:Tl,EC:Tl,FA:Ml,FC:Ml,GC:{"exam-total":"Totalidade da pontuação",material:"Material","external-material-title":"Material",section:"Parte {{displayNumber}}:",references:{heading:"Fontes",source:"Fonte:",date:"Publicado:","reference-date":"Acedido:",translator:"Tradução:","modified-by":"Adaptação:"},"toc-heading":"Conteúdo"},I:{"exam-total":"Iskos ohtsis",material:"Amnâstuvah","external-material-title":"Amnâstuvah","attachments-page-title":"Amnâstuvah:",section:"Uási {{displayNumber}}:",points:"{{count}} č.",references:{source:"Käldee:",date:"Almostittum:","reference-date":"Čujottum:",translator:"Jurgâlus:","modified-by":"Heiviittâs:"},"answering-instructions":{"toc-section_*_1_1":"Fáádáh","section_*_1_1":"Valjii oovtâ fáádá."},"toc-heading":"Siskáldâs"},M:Al,N:Al,O_E:{"answering-instructions":{"toc-section_*_1_1":"Välj ett ämne.","section_*_1_1":"Välj ett ämne."}},SA:Cl,SC:Cl,PA:El,PC:El,TC:{"exam-total":"Punteggio complessivo",material:"Materiale","external-material-title":"Materiale",section:"Parte {{displayNumber}}:",references:{heading:"Fonti",source:"Fonte:",date:"Pubblicato:","reference-date":"Consultato:",translator:"Traduzione:","modified-by":"Adattamento:"},"toc-heading":"Contenuto"},VA:Nl,VC:Nl,Z:{"exam-total":"Iskkus oktiibuot",material:"Ávdnasat","external-material-title":"Ávdnasat","attachments-page-title":"Ávdnasat:",section:"Oassi {{displayNumber}}:",points:"{{count}} č.",references:{heading:"Gáldut",source:"Gáldu:",date:"Almmuhuvvon:","reference-date":"Vižžojuvvon:",translator:"Jorgalus","modified-by":"Heivehus:"},"answering-instructions":{"toc-section_*_1_1":"Fáttát","section_*_1_1":"Vállje ovtta fáttá."},"toc-heading":"Sisdoallu"}},kl={"fi-FI":{translation:Il,...Sl},"sv-FI":{translation:bl,...Sl}};function jl(e,t,n){const r=t?t+(n?`_${n}`:""):"translation";return ll.use({type:"postProcessor",name:"lowercase",process:(e,t,n)=>e.toLocaleLowerCase(n.lng)}).createInstance({compatibilityJSON:"v3",resources:kl,lng:e,fallbackLng:"fi-FI",debug:!1,defaultNS:r,fallbackNS:"translation",interpolation:{escapeValue:!1,format:(e,t)=>{const n=e;switch(t){case"range":{const[e,t]=n;return null==e?t:null==t||e===t?e:`${e}–${t}`}case"first":return cl(n);case"last":return ul(n);default:return e}}}},dl)}function Dl(){const{i18n:e,t:n}=v(),r=(n,r)=>function(e,n,r){const i=e.t(n,r),o=e.options.defaultNS.toString(),a="translation"!==o&&o in Sl,s=a&&function(e,t,n){return Array.isArray(n)?n.some((n=>null!=e.getResource(e.language,t,n))):null!=e.getResource(e.language,t,n)}(e,o,n);return s||!a?i:t().createElement("span",{lang:e.language},i)}(e,n,r);return r.raw=n,{i18n:e,t:r}}const Ol=(e,t)=>()=>{e.language!==t&&e.changeLanguage(t).then(dl).catch(dl)},Ll=new WeakMap;let Rl=0;const Pl=e=>t=>`${e}-${(e=>{const t=Ll.get(e);if(null!=t)return t;const n=++Rl;return Ll.set(e,n),n})(t)}`,zl=e=>t=>`${e}-${t}`,Ul="title",_l="references-title",Bl=zl("section-title"),Fl=zl("question-title"),Gl=Pl("question-instruction"),Zl=Pl("answer-length-info"),Hl=Pl("external-material-list-title"),ql=zl("toc-section-title"),Yl=Pl("answer-score"),Vl=Pl("image-caption"),Wl=Pl("video-caption"),Ql=Pl("audio-label"),Jl="toc-title";function Xl(){const e=decodeURIComponent(window.location.hash).slice(1);if(e){const n=document.getElementById(e);n&&((t=n).setAttribute("tabindex","-1"),t.style.outline="none",t.addEventListener("blur",(()=>{t.removeAttribute("tabindex"),t.style.outline=""}),{once:!0}),t.focus(),t.scrollIntoView())}var t;return window.addEventListener("hashchange",Xl),()=>window.removeEventListener("hashchange",Xl)}function $l(t){return(0,e.useState)(t)[0]}const Kl=t().memo((n=>{const r=(0,e.useRef)(null);return(0,e.useLayoutEffect)((()=>{r.current&&(document.title=r.current.textContent)})),t().createElement("h1",{...n,ref:r})})),ec=function({element:e,renderChildNodes:n}){const r=n(e);return 0===r.length?null:t().createElement(t().Fragment,null,r)},tc=t().memo((function({element:e,renderChildNodes:n}){return t().createElement(t().Fragment,null,n(e,1))})),nc=e=>{const n=Er()("e-section e-bg-color-off-white e-pad-6",e.className);return t().createElement("section",{...e,className:n},e.children)};function rc(e){return e.displayName||e.name||"Component"}const ic=(e,n)=>r=>{const i=i=>{const o=n(i);return t().createElement(e.Provider,{value:o},t().createElement(r,{...i}))};return i.displayName=`WithContext(${rc(r)})`,i},oc=t().createContext({});function ac(e){return ic(oc,(({attachmentsURL:e,resolveAttachment:t,doc:n,abitti2:r})=>{var i;const o=n.documentElement,a=Ee(o,"date"),s=Ee(o,"exam-lang"),l=null!==(i=Ee(o,"exam-type"))&&void 0!==i?i:"normal",c=Ee(o,"lang")||s;return{attachmentsURL:e,date:a?new Date(a):void 0,dateTimeFormatter:new Intl.DateTimeFormat("fi-FI",{timeZone:"UTC"}),dayCode:Ee(o,"day-code"),examCode:Ee(o,"exam-code"),language:s,subjectLanguage:c,examType:l,maxAnswers:Ce(o,"max-answers"),maxScore:Ce(o,"max-score"),sections:Te(o,"section"),resolveAttachment:t,abitti2:r||!1,root:o}}))(e)}const sc=t().createContext({}),lc=ic(sc,(e=>{const{casCountdownDuration:t,examServerApi:n}=e;return{casCountdownDuration:t||60,examServerApi:n}})),cc=t().createContext({}),uc=ic(cc,(({element:e})=>({casForbidden:Ne(e,"cas-forbidden"),displayNumber:e.getAttribute("display-number"),maxAnswers:Ce(e,"max-answers"),minAnswers:Ce(e,"min-answers"),maxScore:Ce(e,"max-score"),childQuestions:Se(e,(e=>e)).filter((e=>"question"===e.localName))})));function dc(e,t){const n=new URL(e,"http://example.com");ve(t,((e,t)=>n[t]=e));const r=n.pathname+n.search+n.hash;return e.startsWith("/")?r:r.substr(1)}const fc=({children:e,href:n,type:r})=>"link"===r?t().createElement("a",{href:n,className:"attachment-link e-nowrap",target:"attachments"},e):t().createElement("span",{className:"attachment-link e-nowrap"},e),pc=n=>t().memo((({element:r})=>{const i=r.getAttribute("ref"),{root:o}=(0,e.useContext)(oc),{attachmentsURL:a}=(0,e.useContext)(oc),{t:s}=Dl(),l=we(o,(e=>"attachment"===e.localName&&e.getAttribute("name")===i)).getAttribute("display-number"),c="short"===r.getAttribute("type"),u=dc(a,{hash:l});return c?t().createElement(fc,{href:u,type:n},l):t().createElement(t().Fragment,null,"(",t().createElement(fc,{href:u,type:n},s("material",{postProcess:"lowercase"})," ",l),")")})),hc=n=>t().memo((({element:r})=>{const{root:i,attachmentsURL:o}=(0,e.useContext)(oc),{t:a}=Dl(),s=Se(r,(e=>{const t=e.getAttribute("ref");return we(i,(e=>"attachment"===e.localName&&e.getAttribute("name")===t)).getAttribute("display-number")})),l=function(e,t){const n=[[]];let r;for(let i=0;i<e.length;i++){const o=e[i];if(r&&t(o,i)){const e=[o];n.push(e)}else n[n.length-1].push(o);r=o}return n}(s,((e,t)=>t>0&&!function(e,t){const n=e.length;return n===t.length&&(e.startsWith(t.slice(0,n-1))&&t.charCodeAt(n-1)-e.charCodeAt(n-1)==1)}(s[t-1],e))),c="short"===r.getAttribute("type"),u=dc(o,{hash:s[0]}),d=l.map((e=>e.length>1?`${e[0]}–${e[e.length-1]}`:e[0])).join(", "),f=l[0].length;return c?t().createElement(fc,{href:u,type:n},d):t().createElement(t().Fragment,null,"(",t().createElement(fc,{href:u,type:n},a("material",{count:f,postProcess:"lowercase"})," ",d),")")})),gc=t().createContext({}),mc=ic(gc,(({element:e})=>{const t=null!=Me(e,"external-material"),n=e.getAttribute("name");return t?{displayNumber:e.getAttribute("display-number"),isExternal:t,name:n}:{displayNumber:null,isExternal:t,name:n}})),vc=t().memo(mc((function({element:n,renderChildNodes:r}){const{displayNumber:i,isExternal:o}=(0,e.useContext)(gc);return o?t().createElement("div",{id:i,className:"attachments-attachment e-mrg-0 e-mrg-t-8","data-annotation-anchor":i},r(n)):null}))),yc=t().memo((function({element:n,renderChildNodes:r}){const{displayNumber:i}=(0,e.useContext)(gc);return t().createElement("h3",null,i,be,r(n))}));var bc=a(5919),xc=e,Ic=Symbol.for("react-redux-context"),wc="undefined"!=typeof globalThis?globalThis:{};function Tc(){if(!xc.createContext)return{};const e=wc[Ic]??(wc[Ic]=new Map);let t=e.get(xc.createContext);return t||(t=xc.createContext(null),e.set(xc.createContext,t)),t}var Mc=Tc();function Ac(e=Mc){return function(){return xc.useContext(e)}}var Ec=Ac(),Cc=()=>{throw new Error("uSES not initialized!")},Nc=(e,t)=>e===t;function Sc(e=Mc){const t=e===Mc?Ec:Ac(e),n=(e,n={})=>{const{equalityFn:r=Nc,devModeChecks:i={}}="function"==typeof n?{equalityFn:n}:n,{store:o,subscription:a,getServerState:s,stabilityCheck:l,identityFunctionCheck:c}=t(),u=(xc.useRef(!0),xc.useCallback({[e.name]:t=>e(t)}[e.name],[e,l,i.stabilityCheck])),d=Cc(a.addNestedSub,o.getState,s||o.getState,u,r);return xc.useDebugValue(d),d};return Object.assign(n,{withTypes:()=>n}),n}var kc=Sc();Symbol.for("react.element"),Symbol.for("react.portal"),Symbol.for("react.fragment"),Symbol.for("react.strict_mode"),Symbol.for("react.profiler"),Symbol.for("react.provider"),Symbol.for("react.context"),Symbol.for("react.server_context"),Symbol.for("react.forward_ref"),Symbol.for("react.suspense"),Symbol.for("react.suspense_list"),Symbol.for("react.memo"),Symbol.for("react.lazy"),Symbol.for("react.offscreen"),Symbol.for("react.client.reference");var jc={notify(){},get:()=>[]};var Dc=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),Oc="undefined"!=typeof navigator&&"ReactNative"===navigator.product,Lc=Dc||Oc?xc.useLayoutEffect:xc.useEffect;function Rc(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function Pc(e,t){if(Rc(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r=0;r<n.length;r++)if(!Object.prototype.hasOwnProperty.call(t,n[r])||!Rc(e[n[r]],t[n[r]]))return!1;return!0}Object.defineProperty,Object.getOwnPropertyNames,Object.getOwnPropertySymbols,Object.getOwnPropertyDescriptor,Object.getPrototypeOf,Object.prototype;var zc=function({store:e,context:t,children:n,serverState:r,stabilityCheck:i="once",identityFunctionCheck:o="once"}){const a=xc.useMemo((()=>{const t=function(e,t){let n,r=jc,i=0,o=!1;function a(){c.onStateChange&&c.onStateChange()}function s(){i++,n||(n=t?t.addNestedSub(a):e.subscribe(a),r=function(){let e=null,t=null;return{clear(){e=null,t=null},notify(){(()=>{let t=e;for(;t;)t.callback(),t=t.next})()},get(){const t=[];let n=e;for(;n;)t.push(n),n=n.next;return t},subscribe(n){let r=!0;const i=t={callback:n,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){r&&null!==e&&(r=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}())}function l(){i--,n&&0===i&&(n(),n=void 0,r.clear(),r=jc)}const c={addNestedSub:function(e){s();const t=r.subscribe(e);let n=!1;return()=>{n||(n=!0,t(),l())}},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:a,isSubscribed:function(){return o},trySubscribe:function(){o||(o=!0,s())},tryUnsubscribe:function(){o&&(o=!1,l())},getListeners:()=>r};return c}(e);return{store:e,subscription:t,getServerState:r?()=>r:void 0,stabilityCheck:i,identityFunctionCheck:o}}),[e,r,i,o]),s=xc.useMemo((()=>e.getState()),[e]);Lc((()=>{const{subscription:t}=a;return t.onStateChange=t.notifyNestedSubs,t.trySubscribe(),s!==e.getState()&&t.notifyNestedSubs(),()=>{t.tryUnsubscribe(),t.onStateChange=void 0}}),[a,s]);const l=t||Mc;return xc.createElement(l.Provider,{value:a},n)};function Uc(e=Mc){const t=e===Mc?Ec:Ac(e),n=()=>{const{store:e}=t();return e};return Object.assign(n,{withTypes:()=>n}),n}var _c=Uc();function Bc(e=Mc){const t=e===Mc?_c:Uc(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var Fc,Gc=Bc();Fc=bc.useSyncExternalStoreWithSelector,Cc=Fc,e.useSyncExternalStore;const Zc=(e,t)=>n=>{const{nowPlaying:r}=n.audio;return null==r?"stopped":r.audio.restrictedAudioId===t&&r.audio.src===e?"playing":"other-playing"},Hc=(e,t)=>n=>n.audio.errors[null!=t?t:e],qc=e=>t=>In(t.audio.playbackTimes,e,0),Yc=(e,t)=>n=>t-qc(e)(n),Vc=e=>{const{serverQuestionIds:t,savedQuestionIds:n,answersById:r}=e.answers;return 0===t.size?"initial":t.size!==n.size||function(e,t){for(const n in t)if(!e.has(Number(n)))return!0;return!1}(t,r)?"saving":"saved"},Wc=!("undefined"==typeof window||!window.document||!window.document.createElement);var Qc=(new Date).getTime(),Jc=function(e){var t=(new Date).getTime(),n=Math.max(0,16-(t-Qc)),r=setTimeout(e,n);return Qc=t,r},Xc=function(e,t){return e+(e?t[0].toUpperCase()+t.substr(1):t)+"AnimationFrame"};Wc&&["","webkit","moz","o","ms"].some((function(e){var t=Xc(e,"request");return t in window&&(Xc(e,"cancel"),Jc=function(e){return window[t](e)}),!!Jc}));var $c=Jc;function Kc(e,t){e.classList?e.classList.add(t):function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}(e,t)||("string"==typeof e.className?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function eu(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function tu(e,t){e.classList?e.classList.remove(t):"string"==typeof e.className?e.className=eu(e.className,t):e.setAttribute("class",eu(e.className&&e.className.baseVal||"",t))}var nu=/([A-Z])/g,ru=/^ms-/;function iu(e){return function(e){return e.replace(nu,"-$1").toLowerCase()}(e).replace(ru,"-ms-")}var ou=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;const au=function(e,t){var n="",r="";if("string"==typeof t)return e.style.getPropertyValue(iu(t))||function(e,t){return function(e){var t=function(e){return e&&e.ownerDocument||document}(e);return t&&t.defaultView||window}(e).getComputedStyle(e,void 0)}(e).getPropertyValue(iu(t));Object.keys(t).forEach((function(i){var o=t[i];o||0===o?function(e){return!(!e||!ou.test(e))}(i)?r+=i+"("+o+") ":n+=iu(i)+": "+o+";":e.style.removeProperty(iu(i))})),r&&(n+="transform: "+r+";"),e.style.cssText+=";"+n};var su=!1,lu=!1;try{var cu={get passive(){return su=!0},get once(){return lu=su=!0}};Wc&&(window.addEventListener("test",cu,cu),window.removeEventListener("test",cu,!0))}catch(e){}const uu=function(e,t,n,r){return function(e,t,n,r){if(r&&"boolean"!=typeof r&&!lu){var i=r.once,o=r.capture,a=n;!lu&&i&&(a=n.__once||function e(r){this.removeEventListener(t,e,o),n.call(this,r)},n.__once=a),e.addEventListener(t,a,su?r:o)}e.addEventListener(t,n,r)}(e,t,n,r),function(){!function(e,t,n,r){var i=r&&"boolean"!=typeof r?r.capture:r;e.removeEventListener(t,n,i),n.__once&&e.removeEventListener(t,n.__once,i)}(e,t,n,r)}};function du(e,t,n,r){var i,o;null==n&&(o=-1===(i=au(e,"transitionDuration")||"").indexOf("ms")?1e3:1,n=parseFloat(i)*o||0);var a=function(e,t,n){void 0===n&&(n=5);var r=!1,i=setTimeout((function(){r||function(e,t,n,r){if(void 0===n&&(n=!1),void 0===r&&(r=!0),e){var i=document.createEvent("HTMLEvents");i.initEvent("transitionend",n,r),e.dispatchEvent(i)}}(e,0,!0)}),t+n),o=uu(e,"transitionend",(function(){r=!0}),{once:!0});return function(){clearTimeout(i),o()}}(e,n,r),s=uu(e,"transitionend",t);return function(){a(),s()}}function fu(e){var t="transition"+e+"Timeout",n="transition"+e;return function(e){if(e[n]){if(!e[t])return new Error(t+" wasn't supplied to CSSTransitionGroup: this can cause unreliable animations and won't be supported in a future version of React. See https://fb.me/react-animation-transition-group-timeout for more information.");if("number"!=typeof e[t])return new Error(t+" must be a number (in milliseconds)")}return null}}var pu=Da().oneOfType([Da().string,Da().shape({enter:Da().string,leave:Da().string,active:Da().string,height:Da().string}),Da().shape({enter:Da().string,enterActive:Da().string,leave:Da().string,leaveActive:Da().string,appear:Da().string,appearActive:Da().string,height:Da().string,heightActive:Da().string})]);function hu(e){return hu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},hu(e)}function gu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function mu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gu(Object(n),!0).forEach((function(t){Iu(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function vu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function yu(e,t){return yu=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},yu(e,t)}function bu(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xu(e){return xu=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},xu(e)}function Iu(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var wu=[];du&&wu.push(du);var Tu={children:Da().node,name:pu.isRequired,appear:Da().bool,enter:Da().bool,leave:Da().bool,appearTimeout:Da().number,enterTimeout:Da().number,leaveTimeout:Da().number},Mu=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&yu(e,t)}(s,e);var n,r,i,o,a=(i=s,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=xu(i);if(o){var n=xu(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){return!t||"object"!==hu(t)&&"function"!=typeof t?bu(e):t}(this,e)});function s(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),Iu(bu(n=a.call(this,e)),"refNode",t().createRef()),Iu(bu(n),"componentWillAppear",(function(e){n.props.appear?n.transition("appear",e,n.props.appearTimeout):e()})),Iu(bu(n),"componentWillEnter",(function(e){n.props.enter?n.transition("enter",e,n.props.enterTimeout):e()})),Iu(bu(n),"componentWillLeave",(function(e){n.props.leave?n.transition("leave",e,n.props.leaveTimeout):e()})),n.classNameAndNodeQueue=[],n.transitionTimeouts=[],n}return n=s,(r=[{key:"componentWillUnmount",value:function(){this.unmounted=!0,this.timeout&&clearTimeout(this.timeout),this.transitionTimeouts.forEach((function(e){clearTimeout(e)})),this.classNameAndNodeQueue.length=0}},{key:"getNode",value:function(){return this.refNode.current}},{key:"transition",value:function(e,t,n){var r=this.getNode();if(r){var i,o=this.props.name[e]||this.props.name+"-"+e,a=this.props.name[e+"Active"]||o+"-active",s=null;Kc(r,o),this.queueClassAndNode(a,r);var l=function(n){n&&n.target!==r||(clearTimeout(s),i&&i(),"leave"!==e&&(tu(r,o),tu(r,a)),i&&i(),t&&t())};n?(s=setTimeout(l,n),this.transitionTimeouts.push(s)):du&&(i=function(e,t){return wu.length?wu.forEach((function(n){return e.addEventListener(n,t,!1)})):setTimeout(t,0),function(){wu.length&&wu.forEach((function(n){return e.removeEventListener(n,t,!1)}))}}(r,l))}else t&&t()}},{key:"queueClassAndNode",value:function(e,t){var n=this;this.classNameAndNodeQueue.push({className:e,node:t}),this.rafHandle||(this.rafHandle=$c((function(){return n.flushClassNameAndNodeQueueOnNextFrame()})))}},{key:"flushClassNameAndNodeQueueOnNextFrame",value:function(){var e=this;this.rafHandle=$c((function(){return e.flushClassNameAndNodeQueue()}))}},{key:"flushClassNameAndNodeQueue",value:function(){this.unmounted||this.classNameAndNodeQueue.forEach((function(e){e.node.scrollTop,Kc(e.node,e.className)})),this.classNameAndNodeQueue.length=0,this.rafHandle=null}},{key:"render",value:function(){var e=mu(mu({},this.props),{},{ref:this.refNode});return delete e.name,delete e.appear,delete e.enter,delete e.leave,delete e.appearTimeout,delete e.enterTimeout,delete e.leaveTimeout,delete e.children,t().cloneElement(t().Children.only(this.props.children),e)}}])&&vu(n.prototype,r),s}(t().Component);Iu(Mu,"displayName","CSSTransitionGroupChild"),Mu.propTypes=Tu;const Au=Mu;function Eu(e){return Eu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Eu(e)}function Cu(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Nu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Cu(Object(n),!0).forEach((function(t){Ou(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Su(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ku(e,t){return ku=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},ku(e,t)}function ju(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Du(e){return Du=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Du(e)}function Ou(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Lu=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ku(e,t)}(s,e);var n,r,i,o,a=(i=s,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Du(i);if(o){var n=Du(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){return!t||"object"!==Eu(t)&&"function"!=typeof t?ju(e):t}(this,e)});function s(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),Ou(ju(n=a.call(this,e)),"handleDoneAppearing",(function(e){delete n.transitioningKeys[e],e!==n.state.currentKey&&n.performLeave(e)})),Ou(ju(n),"performLeave",(function(e){var t,r;n.transitioningKeys[e]=!0,null===(t=n.childRefs[e].current)||void 0===t||t.componentWillLeave(n.handleDoneLeaving.bind(ju(n),e)),n.state.currentChild&&null!==(r=n.childRefs[n.state.currentKey].current)&&void 0!==r&&r.getNode()||n.enqueueHeightTransition()})),Ou(ju(n),"performHeightTransition",(function(){if(!n.unmounted){var e,t=ju(n).state,r=t.currentChild?null===(e=n.childRefs[t.currentKey].current)||void 0===e?void 0:e.getNode():null;n.setState({height:r?r.offsetHeight:0,width:n.props.changeWidth?r?r.offsetWidth:0:null})}n.rafHandle=null})),Ou(ju(n),"setChildRef",(function(e,r){if(r){var i=t().createRef();i.current=r,n.childRefs[e]=i}else delete n.childRefs[e]})),n.childRefs=Object.create(null),n.state={currentKey:"1",currentChild:n.props.children?t().Children.only(n.props.children):void 0,prevChildren:{},height:null,width:null},n.shouldEnterCurrent=!1,n.keysToLeave=[],n.transitioningKeys={},n}return n=s,(r=[{key:"componentDidMount",value:function(){this.props.transitionAppear&&this.state.currentChild&&this.performAppear(this.state.currentKey)}},{key:"componentWillUnmount",value:function(){this.unmounted=!0}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){var n=e.children?t().Children.only(e.children):void 0,r=this.state.currentChild;if(r&&n&&n.key===r.key&&!this.state.nextChild)return this.setState({currentChild:n});var i=this.state,o=i.currentKey,a=i.prevChildren,s={currentKey:String(Number(o)+1),currentChild:n,height:0,width:this.props.changeWidth?0:null};if(n&&(this.shouldEnterCurrent=!0),r){var l,c=null===(l=this.childRefs[o].current)||void 0===l?void 0:l.getNode();s.height=c?c.offsetHeight:0,s.width=this.props.changeWidth?c?c.offsetWidth:0:null,s.prevChildren=Nu(Nu({},a),{},Ou({},o,r)),this.transitioningKeys[o]||this.keysToLeave.push(o)}this.setState(s)}},{key:"componentDidUpdate",value:function(){var e;this.shouldEnterCurrent&&(this.shouldEnterCurrent=!1,null!==(e=this.childRefs[this.state.currentKey].current)&&void 0!==e&&e.getNode()&&this.performEnter(this.state.currentKey));var t=this.keysToLeave;this.keysToLeave=[],t.forEach(this.performLeave)}},{key:"performAppear",value:function(e){var t;this.transitioningKeys[e]=!0,null===(t=this.childRefs[e].current)||void 0===t||t.componentWillAppear(this.handleDoneAppearing.bind(this,e))}},{key:"performEnter",value:function(e){var t;this.transitioningKeys[e]=!0,null===(t=this.childRefs[e].current)||void 0===t||t.componentWillEnter(this.handleDoneEntering.bind(this,e)),this.enqueueHeightTransition()}},{key:"handleDoneEntering",value:function(e){delete this.transitioningKeys[e],e===this.state.currentKey?this.setState({height:null}):this.performLeave(e)}},{key:"handleDoneLeaving",value:function(e){var t;delete this.transitioningKeys[e];var n={prevChildren:Nu({},this.state.prevChildren)};delete n.prevChildren[e],delete this.childRefs[e],this.state.currentChild&&null!==(t=this.childRefs[this.state.currentKey].current)&&void 0!==t&&t.getNode()||(n.height=null),this.setState(n)}},{key:"enqueueHeightTransition",value:function(){this.rafHandle||(this.rafHandle=$c(this.performHeightTransition))}},{key:"wrapChild",value:function(e,n){var r=this.props.transitionName;return"object"===Eu(r)&&null!==r&&delete(r=Nu({},r)).height,t().createElement(Au,Nu({name:r,appear:this.props.transitionAppear,enter:this.props.transitionEnter,leave:this.props.transitionLeave,appearTimeout:this.props.transitionAppearTimeout,enterTimeout:this.props.transitionEnterTimeout,leaveTimeout:this.props.transitionLeaveTimeout},n),e)}},{key:"render",value:function(){var e=this,n=this.state,r=n.currentKey,i=n.currentChild,o=n.prevChildren,a=n.height,s=n.width,l=[],c=this.props,u=c.overflowHidden,d=c.transitionName,f=c.component,p=c.childComponent,h=c.notifyLeaving,g=(c.transitionAppear,c.transitionEnter,c.transitionLeave,c.changeWidth,c.transitionAppearTimeout,c.transitionEnterTimeout,c.transitionLeaveTimeout,function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(c,["overflowHidden","transitionName","component","childComponent","notifyLeaving","transitionAppear","transitionEnter","transitionLeave","changeWidth","transitionAppearTimeout","transitionEnterTimeout","transitionLeaveTimeout"])),m=this.shouldEnterCurrent||this.keysToLeave.length||Object.keys(this.transitioningKeys).length;if(g.style=Nu({},g.style),m&&(g.style.position="relative",u&&(g.style.overflow="hidden")),null!==a){var v="string"==typeof d?"".concat(d,"-height"):d&&d.height||"";g.className="".concat(g.className||""," ").concat(v),g.style.height=a}null!==s&&(g.style.width=s);var y={position:"absolute",top:0,left:0,right:0,bottom:0,userSelect:"none"};return Object.keys(o).forEach((function(n){var r=o[n];l.push(t().createElement(p,{key:n,style:y},e.wrapChild(h&&"string"!=typeof r.type?t().cloneElement(r,{isLeaving:!0}):r,{ref:function(t){return e.setChildRef(n,t)}})))})),i&&l.push(t().createElement(p,{key:r,style:this.transitioningKeys[r]?y:m?{position:"relative"}:null},this.wrapChild(i,{ref:function(t){return e.setChildRef(r,t)}}))),t().createElement(f,g,l)}}])&&Su(n.prototype,r),s}(t().Component);Ou(Lu,"displayName","ReactCSSTransitionReplace"),Ou(Lu,"propTypes",{transitionName:pu.isRequired,transitionAppear:Da().bool,transitionEnter:Da().bool,transitionLeave:Da().bool,transitionAppearTimeout:fu("Appear"),transitionEnterTimeout:fu("Enter"),transitionLeaveTimeout:fu("Leave"),overflowHidden:Da().bool,changeWidth:Da().bool,notifyLeaving:Da().bool}),Ou(Lu,"defaultProps",{transitionAppear:!1,transitionEnter:!0,transitionLeave:!0,overflowHidden:!0,changeWidth:!1,notifyLeaving:!1,component:"div",childComponent:"span"});const Ru=({error:e,children:n})=>{const{t:r}=Dl();return t().createElement(Lu,{transitionName:"e-crossfade",transitionEnterTimeout:500,transitionLeaveTimeout:500},null!=e?t().createElement("div",{className:"e-color-error",role:"alert"},t().createElement(qa,{icon:os,className:"e-mrg-r-1"}),r(`audio-errors.${e}`)):t().createElement("div",{key:"no-error"},n))};var Pu=a(758);const zu=e=>(0,Pu.action)("PLAY_AUDIO",e),Uu=e=>(0,Pu.action)("PLAY_AUDIO_STARTED",e),_u=()=>(0,Pu.action)("PLAY_AUDIO_FINISHED"),Bu=(e,t)=>(0,Pu.action)("SHOW_AUDIO_ERROR",{audio:e,error:t}),Fu=e=>(0,Pu.action)("HIDE_AUDIO_ERROR",e),Gu=e=>(0,Pu.action)("UPDATE_REMAINING",e),Zu=t().memo((function({src:n,restrictedAudioId:r,duration:i,times:o,labelId:a}){const s=kc(Zc(n,r)),l=kc(((e,t)=>n=>"playing"===Zc(e,t)(n)?n.audio.nowPlaying.durationRemaining:void 0)(n,r)),c=kc(Yc(r,o)),{i18n:u}=Dl(),d=Gc(),f="playing"===s,p="stopped"===s,h=!p||0===c,g=`audio-remaining-${r}`,m=f?[]:[g,a],{abitti2:v}=(0,e.useContext)(oc),y=(0,e.useRef)(null);return t().createElement("div",{className:Er()("restricted-audio-player e-column e-column--narrow e-columns e-columns--inline e-columns--center-v e-pad-1",{"restricted-audio-player--disabled":h}),lang:u.language},v&&t().createElement("audio",{ref:y,preload:"none"},t().createElement("source",null)),t().createElement("button",{className:Er()("restricted-audio-player__play e-column e-column--narrow",{"restricted-audio-player__play--playing":f}),disabled:h,onClick:()=>p&&d(zu({src:n,restrictedAudioId:r,duration:i,audioRef:y})),"aria-labelledby":m.join(" ")},!f&&t().createElement(qa,{icon:ns,fixedWidth:!0})),t().createElement("span",{className:"restricted-audio-player__duration e-column e-text-right",id:g},Hu(null!=l?l:i)))}));function Hu(e){const t=e%60;return`${qu(Math.floor(e/60))}:${qu(t)}`}function qu(e){return e.toString().padStart(2,"0")}const Yu=t().memo((function({element:n,className:r,renderChildNodes:i}){const o=n.getAttribute("src"),a=Ce(n,"restricted-audio-id"),s=Ce(n,"times"),l=Ce(n,"duration"),{t:c}=Dl(),u=null!=s&&null!=a?kc(Hc(o,a)):void 0,d=null!=s&&null!=a?kc(Yc(a,s)):void 0,{resolveAttachment:f}=(0,e.useContext)(oc),p=Ql(n);return t().createElement("div",{className:Er()("audio e-columns e-columns--center-v e-mrg-b-2",r)},null!=a&&null!=s?t().createElement(Zu,{src:o,restrictedAudioId:a,duration:l,times:s,labelId:p}):t().createElement("audio",{className:"e-column e-column--narrow","aria-describedby":p,preload:"metadata",controls:!0,controlsList:"nodownload"},t().createElement("source",{src:f(o)})),t().createElement("div",{className:"e-column",id:p},t().createElement(Ru,{error:u},i(n)),null!=d&&t().createElement("em",null,c("listen-times-remaining",{count:d}))))})),Vu=vs({attachment:mc((function({element:n}){const{displayNumber:r}=(0,e.useContext)(gc);return t().createElement("li",{"data-list-number":r,"aria-label":r},Vu(n,1))})),"attachment-title":function({element:n}){const{attachmentsURL:r}=(0,e.useContext)(oc),{displayNumber:i}=(0,e.useContext)(gc);return t().createElement("a",{href:dc(r,{hash:i}),className:"exam-attachment-title",target:"attachments"},Vu(n))}}),Wu=t().memo((function({element:e,showTitle:n=!0,forceRender:r=!1}){if(null==Me(e,"question")&&!r)return null;const{t:i}=Dl(),o=Hl(e);return t().createElement("div",{className:"external-material-list e-mrg-b-4"},n&&t().createElement("h4",{className:"external-material-title",id:o},i("external-material-title")),t().createElement("ol",{className:"e-list-data e-pad-l-0 e-mrg-0","aria-labelledby":o},Vu(e)))})),Qu=t().memo((function({element:n,className:r,renderChildNodes:i}){const o=n.getAttribute("src"),a=n.hasChildNodes(),{resolveAttachment:s}=(0,e.useContext)(oc);return t().createElement("a",{className:Er()("file e-nowrap",r),href:s(o),download:!0},a?t().createElement(t().Fragment,null,i(n)," (",o,")"):o)})),Ju=t().memo((function({element:e,className:n}){const r=Ee(e,"svg"),i=Ee(e,"assistive-title"),o="display"===Ee(e,"mode");return t().createElement(t().Fragment,null,t().createElement("span",{className:Er()("e-formula",{"e-block e-text-center":o},n),dangerouslySetInnerHTML:{__html:r},"aria-hidden":"true"}),t().createElement("span",{className:"e-screen-reader-only"},i||e.textContent))})),Xu=({bordered:e=!1,className:n,children:r,height:i,width:o,caption:a,captionId:s})=>{const l=i/o*100+"%",c=o+(e?18:0);return t().createElement("span",{className:Er()("responsive-media-container",{"responsive-media-container--bordered":e},n),style:{maxWidth:c}},t().createElement("span",{className:"responsive-media-container__inner",style:{paddingBottom:l}},r),a&&t().createElement("span",{className:"e-block e-mrg-t-1 e-font-size-s e-light",id:s},a))};function $u(e){return"string"==typeof e&&0===e.trim().length}const Ku=t().memo((function({element:n,className:r,renderChildNodes:i}){const{resolveAttachment:o}=(0,e.useContext)(oc),{t:a}=Dl(),s=Ee(n,"src"),l=Ce(n,"width"),c=Ce(n,"height"),u=Ae(n,"image-title"),d=u&&i(u),f=null!=d&&!d.every($u),p=f?d:void 0,h=f?Vl(n):void 0,g=o(s),m=t().createElement("img",{className:"e-image",src:g,alt:"","aria-labelledby":h});return t().createElement(t().Fragment,null,t().createElement(Xu,{className:r,width:l,height:c,caption:p,captionId:h,bordered:f||null!=Me(n,"choice-answer")},null!=Me(n,["choice-answer","hint"])?m:t().createElement("a",{title:a.raw("zoom-in"),href:g,target:"original-picture",className:"e-zoomable","aria-hidden":!f,tabIndex:-1},m)))}));function ed({element:e,renderChildNodes:n}){return t().createElement("em",null,n(e))}function td({element:e,renderChildNodes:n}){return t().createElement("i",null,n(e))}function nd({element:n}){const r=n.textContent;if(/^[0-9]{4}$/.test(r))return t().createElement(t().Fragment,null,r);{const n=new Date(r.trim()),{dateTimeFormatter:i}=(0,e.useContext)(oc);return t().createElement(t().Fragment,null,i.format(n))}}const rd=t().memo((function({element:e,renderChildNodes:n}){const{t:r}=Dl();function i(r,i){const o=Ae(e,r);if(o){const e=o.localName,r=t().createElement(i,{element:o,renderChildNodes:n,key:e});if(r)return Ne(o,"hidden")?t().createElement("del",{key:e},r):r}}function o(i,o,a){const s=Ae(e,i);return s&&t().createElement(t().Fragment,{key:s.localName},r(o)," ",t().createElement(a,{element:s,renderChildNodes:n,key:s.localName}))}return t().createElement("span",{className:Er()("e-break-word",{"e-line-through":Ne(e,"hidden")})},r("references.source"),be,(". ",(a=[i("author",ec),i("title",ed),i("publisher",ec),i("publication",ec),i("howpublished",ec),i("url",td),o("publication-date","references.date",nd),o("reference-date","references.reference-date",nd),o("translator","references.translator",ec),o("modified-by","references.modified-by",ec),i("note",ec)]).filter(Boolean).reduce(((e,t,n)=>(e.push(t),n!==a.length-1&&e.push(". "),e)),[])));var a})),id=t().memo((function({element:n,renderChildNodes:r,className:i}){const{resolveAttachment:o}=(0,e.useContext)(oc),a=Ee(n,"src"),s=Ce(n,"width"),l=Ce(n,"height"),c=Ae(n,"video-title"),u=c&&r(c),d=null!=u&&!u.every($u),f=d?u:void 0,p=d?Wl(n):void 0;return t().createElement(Xu,{caption:f,captionId:p,className:i,width:s,height:l},t().createElement("video",{className:"video",preload:"metadata",controls:!0,controlsList:"nodownload",disablePictureInPicture:!0,"aria-describedby":p},t().createElement("source",{src:o(a)})))}));const od=function(e){var t=function(e){return e?1/0===(e=lr(e))||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}(e),n=t%1;return t==t?n?t-n:t:0};var ad=4294967295,sd=Math.min;function ld({opacity:e,setOpacity:n,element:r,renderChildNodes:i}){const o=Ae(r,"image-title");return t().createElement("div",{className:"e-columns e-columns--center-v e-mrg-b-1"},t().createElement("div",{className:"e-column e-text-right e-mrg-r-1"},o&&i(o)),t().createElement(qa,{icon:Qa,className:"e-mrg-r-1 e-pointer",onClick:()=>n(0)}),t().createElement("input",{type:"range",min:0,max:1,step:.01,value:e,onChange:e=>n(Number(e.target.value))}),t().createElement(qa,{icon:Ka,className:"e-mrg-l-1 e-pointer",onClick:()=>n(1)}))}function cd({element:n,absolute:r,opacity:i}){const o=n.getAttribute("src"),a=Ce(n,"width"),s=Ce(n,"height"),l=(0,e.useContext)(oc).resolveAttachment(o);return t().createElement("div",{className:Er()("e-columns e-columns--center-h",{"e-image-overlay__image-absolute":r}),style:{opacity:i}},t().createElement(Xu,{width:a,height:s},t().createElement("img",{className:"e-image",src:l})))}const ud=t().memo((function({element:n,renderChildNodes:r}){const[i,o]=(0,e.useState)((()=>function(e,t){if((e=od(e))<1||e>9007199254740991)return[];var n=ad,r=sd(e,ad);t=me(t),e-=ad;for(var i=I(r,t);++n<e;)t(n);return i}(n.children.length,(e=>0===e?1:0)))),a=e=>t=>{const n=[...i];n[e]=t,o(n)};return t().createElement("div",{className:"e-image-overlay e-mrg-b-1"},t().createElement("div",{className:"e-columns e-columns--center-h"},t().createElement("div",null,Se(n,((e,n)=>t().createElement(ld,{key:n,opacity:i[n],element:e,setOpacity:a(n),renderChildNodes:r}))))),t().createElement("div",null,t().createElement("div",{className:"e-image-overlay__images-wrapper"},Se(n,((e,n)=>t().createElement(cd,{key:n,element:e,renderChildNodes:r,opacity:i[n],absolute:n>0}))))))})),dd=t().createContext({}),fd=ic(dd,(({element:e})=>{const t=Te(e,"question",!1),n=t.length?[]:Te(e,["text-answer","scored-text-answer","dropdown-answer","choice-answer","dnd-answer"],!1),r=Te(e,"question-instruction",!1),i=e.getAttribute("display-number"),o=r.length>0?r.map(Gl).join(" "):Fl(i);return{answers:n,displayNumber:i,hasExternalMaterial:null!=Ae(e,"external-material"),maxAnswers:Ce(e,"max-answers"),maxScore:Ce(e,"max-score"),level:xe(e,"question").length,childQuestions:t,questionLabelIds:o}}));function pd({element:n}){const r=n.getAttribute("suffix"),{displayNumber:i}=(0,e.useContext)(dd);return t().createElement(t().Fragment,null,cl(i.split(".")),".",r)}const hd=t().memo((function({element:e}){const{t:n}=Dl(),r=e.getAttribute("key");return t().createElement(t().Fragment,null,n(r))})),gd=vs({"attachment-link":pc("link"),"attachment-links":hc("link"),"attachment-title":yc,attachment:vc,audio:Yu,"audio-title":ec,file:Qu,image:Ku,video:id,formula:Ju,"question-number":pd,translation:hd,reference:function(e,n,r){const i=n=>t().createElement("div",{...r},t().createElement(e,{...n}));return i.displayName=`Surround(${rc(e)})`,i}(rd,0,{className:"e-mrg-y-2 e-font-size-s"}),"image-overlay":ud}),md=t().memo((function({element:e,forceRender:n=!1}){if(null==Me(e,"question")&&!n)return null;const r=e.children.length;return t().createElement(t().Fragment,null,r>1&&t().createElement(Wu,{element:e,renderChildNodes:gd,showTitle:!1,forceRender:n}),gd(e))})),vd=t().memo(fd((function({element:n,renderChildNodes:r}){const{displayNumber:i,hasExternalMaterial:o,level:a}=(0,e.useContext)(dd);return function(e,t,n){return t&&(0===n||xe(e).every((e=>"question"!==e.localName||!Ae(e,"external-material"))))}(n,o,a)?t().createElement(nc,{id:i,"aria-labelledby":Fl(i)},r(n,1)):t().createElement(t().Fragment,null,r(n,1))})));function yd(e){return e.includes(".")?e:`${e}.`}const bd=t().memo((function({element:n,renderChildNodes:r}){const{displayNumber:i,hasExternalMaterial:o}=(0,e.useContext)(dd);return o?t().createElement(t().Fragment,null,t().createElement("div",{className:"anchor",id:`question-nr-${i}`}),t().createElement("h2",{id:Fl(i)},yd(i)," ",r(n))):null})),xd=vs({"audio-group":tc,"external-material":md,"question-title":bd,question:vd,section:uc(ec)}),Id=()=>{const{t:e}=Dl();return t().createElement(t().Fragment,null,e("attachments-page-title"))},wd=t().memo(lc(ac((({annotations:n,onClickAnnotation:r,onSaveAnnotation:i})=>{const{root:o,language:a,date:s,dateTimeFormatter:l,dayCode:c,examCode:u,resolveAttachment:d,subjectLanguage:f}=(0,e.useContext)(oc),p=Ae(o,"exam-title"),h=o.getAttribute("exam-stylesheet"),g=Ae(o,"external-material"),m=$l((()=>jl(a,u,c)));return(0,e.useEffect)(Ol(m,a)),(0,e.useEffect)(Xl,[]),t().createElement(cs,{annotations:n,onClickAnnotation:r,onSaveAnnotation:i},t().createElement(y,{i18n:m},t().createElement("main",{className:"e-exam attachments",lang:f,"aria-labelledby":Ul},t().createElement(t().StrictMode,null),h&&t().createElement("link",{rel:"stylesheet",href:d(h)}),t().createElement(nc,{"aria-labelledby":Ul},p&&t().createElement(Kl,{id:Ul},t().createElement(Id,null),be,xd(p)),t().createElement("div",{className:"e-semibold e-mrg-b-6"},l.format(s)),g&&t().createElement(md,{element:g,renderChildNodes:xd,forceRender:!0})),xd(o))))}))));function Td(e){const t=e.documentElement;return Cd(t,Te(t,"section",!1).map(Md),{maxAnswers:Ce(t,"max-answers")})}function Md(e){return Cd(e,Te(e,"question",!1).map(Ad),{displayNumber:Ee(e,"display-number"),minAnswers:Ce(e,"min-answers"),maxAnswers:Ce(e,"max-answers")})}function Ad(e){const t=Te(e,"question",!1);return Cd(e,t.length?t.map(Ad):Te(e,["text-answer","scored-text-answer","choice-answer","dropdown-answer","dnd-answer"],!1).map(Ed),{displayNumber:Ee(e,"display-number"),maxAnswers:Ce(e,"max-answers")})}function Ed(e){return Cd(e,[],{displayNumber:Ee(e,"display-number"),questionId:Ce(e,"question-id"),maxLength:Ce(e,"max-length")})}function Cd(e,t,n){return{name:e.localName,attributes:n,childNodes:t}}const Nd=function(e,t){return(_(e)?pn:Fn)(e,An(t))},Sd=En((function(e,t,n){Qe(e,n,t)}));function kd(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var jd=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")(),Dd=()=>Math.random().toString(36).substring(7).split("").join("."),Od={INIT:`@@redux/INIT${Dd()}`,REPLACE:`@@redux/REPLACE${Dd()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Dd()}`};function Ld(e,t,n){if("function"!=typeof e)throw new Error(kd(2));if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(kd(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(kd(1));return n(Ld)(e,t)}let r=e,i=t,o=new Map,a=o,s=0,l=!1;function c(){a===o&&(a=new Map,o.forEach(((e,t)=>{a.set(t,e)})))}function u(){if(l)throw new Error(kd(3));return i}function d(e){if("function"!=typeof e)throw new Error(kd(4));if(l)throw new Error(kd(5));let t=!0;c();const n=s++;return a.set(n,e),function(){if(t){if(l)throw new Error(kd(6));t=!1,c(),a.delete(n),o=null}}}function f(e){if(!function(e){if("object"!=typeof e||null===e)return!1;let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||null===Object.getPrototypeOf(e)}(e))throw new Error(kd(7));if(void 0===e.type)throw new Error(kd(8));if("string"!=typeof e.type)throw new Error(kd(17));if(l)throw new Error(kd(9));try{l=!0,i=r(i,e)}finally{l=!1}return(o=a).forEach((e=>{e()})),e}return f({type:Od.INIT}),{dispatch:f,subscribe:d,getState:u,replaceReducer:function(e){if("function"!=typeof e)throw new Error(kd(10));r=e,f({type:Od.REPLACE})},[jd]:function(){const e=d;return{subscribe(t){if("object"!=typeof t||null===t)throw new Error(kd(11));function n(){const e=t;e.next&&e.next(u())}return n(),{unsubscribe:e(n)}},[jd](){return this}}}}}function Rd(...e){return 0===e.length?e=>e:1===e.length?e[0]:e.reduce(((e,t)=>(...n)=>e(t(...n))))}var Pd=function(e){return"@@redux-saga/"+e},zd=Pd("CANCEL_PROMISE"),Ud=Pd("CHANNEL_END"),_d=Pd("IO"),Bd=Pd("MATCH"),Fd=Pd("MULTICAST"),Gd=Pd("SAGA_ACTION"),Zd=Pd("SELF_CANCELLATION"),Hd=Pd("TASK"),qd=Pd("TASK_CANCEL"),Yd=Pd("TERMINATE"),Vd=Pd("LOCATION");function Wd(){return Wd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Wd.apply(null,arguments)}function Qd(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}var Jd=function(e){return null==e},Xd=function(e){return null!=e},$d=function(e){return"function"==typeof e},Kd=function(e){return"string"==typeof e},ef=Array.isArray,tf=function(e){return e&&$d(e.then)},nf=function(e){return e&&$d(e.next)&&$d(e.throw)},rf=function e(t){return t&&(Kd(t)||sf(t)||$d(t)||ef(t)&&t.every(e))},of=function(e){return e&&$d(e.take)&&$d(e.close)},af=function(e){return $d(e)&&e.hasOwnProperty("toString")},sf=function(e){return Boolean(e)&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype},lf=function(e){return of(e)&&e[Fd]};const cf=function(e,t){var n;void 0===t&&(t=!0);var r=new Promise((function(r){n=setTimeout(r,Math.min(2147483647,e),t)}));return r[zd]=function(){clearTimeout(n)},r};var uf=function(e){return function(){return true}}(),df=function(){},ff=function(e){return e};"function"==typeof Symbol&&Symbol.asyncIterator&&Symbol.asyncIterator;var pf=function(e,t){Wd(e,t),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach((function(n){e[n]=t[n]}))};function hf(e,t){var n=e.indexOf(t);n>=0&&e.splice(n,1)}function gf(e){var t=!1;return function(){t||(t=!0,e())}}var mf=function(e){throw e},vf=function(e){return{value:e,done:!0}};function yf(e,t,n){void 0===t&&(t=mf),void 0===n&&(n="iterator");var r={meta:{name:n},next:e,throw:t,return:vf,isSagaIterator:!0};return"undefined"!=typeof Symbol&&(r[Symbol.iterator]=function(){return r}),r}function bf(e,t){var n=t.sagaStack;console.error(e),console.error(n)}var xf=function(e){return Array.apply(null,new Array(e))},If=function(e){return function(t){return e(Object.defineProperty(t,Gd,{value:!0}))}},wf=function(e){return e===Yd},Tf=function(e){return e===qd},Mf=function(e){return wf(e)||Tf(e)};function Af(e,t){var n,r=Object.keys(e),i=r.length,o=0,a=ef(e)?xf(i):{},s={};return r.forEach((function(e){var r=function(r,s){n||(s||Mf(r)?(t.cancel(),t(r,s)):(a[e]=r,++o===i&&(n=!0,t(a))))};r.cancel=df,s[e]=r})),t.cancel=function(){n||(n=!0,r.forEach((function(e){return s[e].cancel()})))},s}function Ef(e){return{name:e.name||"anonymous",location:Cf(e)}}function Cf(e){return e[Vd]}function Nf(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}var Sf={isEmpty:uf,put:df,take:df};var kf=function(e){return function(e,t){void 0===e&&(e=10);var n=new Array(e),r=0,i=0,o=0,a=function(t){n[i]=t,i=(i+1)%e,r++},s=function(){if(0!=r){var t=n[o];return n[o]=null,r--,o=(o+1)%e,t}},l=function(){for(var e=[];r;)e.push(s());return e};return{isEmpty:function(){return 0==r},put:function(s){var c;if(r<e)a(s);else switch(t){case 1:throw new Error("Channel's Buffer overflow!");case 3:n[i]=s,o=i=(i+1)%e;break;case 4:c=2*e,n=l(),r=n.length,i=n.length,o=0,n.length=c,e=c,a(s)}},take:s,flush:l}}(e,4)},jf="TAKE",Df="PUT",Of="RACE",Lf="CALL",Rf="FORK",Pf="CANCEL",zf="SELECT",Uf="CANCELLED",_f=function(e,t){var n;return(n={})[_d]=!0,n.combinator=!1,n.type=e,n.payload=t,n};function Bf(e,t){return void 0===e&&(e="*"),rf(e)?(Xd(t)&&console.warn("take(pattern) takes one argument but two were provided. Consider passing an array for listening to several action types"),_f(jf,{pattern:e})):lf(e)&&Xd(t)&&rf(t)?_f(jf,{channel:e,pattern:t}):of(e)?(Xd(t)&&console.warn("take(channel) takes one argument but two were provided. Second argument is ignored."),_f(jf,{channel:e})):void 0}function Ff(e,t){return Jd(t)&&(t=e,e=void 0),_f(Df,{channel:e,action:t})}function Gf(e,t){var n,r=null;return $d(e)?n=e:(ef(e)?(r=e[0],n=e[1]):(r=e.context,n=e.fn),r&&Kd(n)&&$d(r[n])&&(n=r[n])),{context:r,fn:n,args:t}}function Zf(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return _f(Lf,Gf(e,n))}function Hf(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return _f(Rf,Gf(e,n))}function qf(e){return void 0===e&&(e=Zd),_f(Pf,e)}var Yf=Zf.bind(null,cf);const Vf=function(){var e={};return e.promise=new Promise((function(t,n){e.resolve=t,e.reject=n})),e};var Wf=[],Qf=0;function Jf(e){try{Kf(),e()}finally{ep()}}function Xf(e){Wf.push(e),Qf||(Kf(),tp())}function $f(e){try{return Kf(),e()}finally{tp()}}function Kf(){Qf++}function ep(){Qf--}function tp(){var e;for(ep();!Qf&&void 0!==(e=Wf.shift());)Jf(e)}var np=function(e){return function(t){return e.some((function(e){return sp(e)(t)}))}},rp=function(e){return function(t){return e(t)}},ip=function(e){return function(t){return t.type===String(e)}},op=function(e){return function(t){return t.type===e}},ap=function(){return uf};function sp(e){var t="*"===e?ap:Kd(e)?ip:ef(e)?np:af(e)?ip:$d(e)?rp:sf(e)?op:null;if(null===t)throw new Error("invalid pattern: "+e);return t(e)}var lp={type:Ud},cp=function(e){return e&&e.type===Ud};function up(e){void 0===e&&(e=kf());var t=!1,n=[];return{take:function(r){t&&e.isEmpty()?r(lp):e.isEmpty()?(n.push(r),r.cancel=function(){hf(n,r)}):r(e.take())},put:function(r){if(!t){if(0===n.length)return e.put(r);n.shift()(r)}},flush:function(n){t&&e.isEmpty()?n(lp):n(e.flush())},close:function(){if(!t){t=!0;var e=n;n=[];for(var r=0,i=e.length;r<i;r++)(0,e[r])(lp)}}}}function dp(){var e,t,n,r,i,o,a=(t=!1,r=n=[],i=function(){r===n&&(r=n.slice())},o=function(){t=!0;var e=n=r;r=[],e.forEach((function(e){e(lp)}))},(e={})[Fd]=!0,e.put=function(e){if(!t)if(cp(e))o();else for(var i=n=r,a=0,s=i.length;a<s;a++){var l=i[a];l[Bd](e)&&(l.cancel(),l(e))}},e.take=function(e,n){void 0===n&&(n=ap),t?e(lp):(e[Bd]=n,i(),r.push(e),e.cancel=gf((function(){i(),hf(r,e)})))},e.close=o,e),s=a.put;return a.put=function(e){e[Gd]?s(e):Xf((function(){s(e)}))},a}var fp=0,pp=1,hp=2,gp=3;function mp(e,t){var n=e[zd];$d(n)&&(t.cancel=n),e.then(t,(function(e){t(e,!0)}))}var vp,yp=0,bp=function(){return++yp};function xp(e){e.isRunning()&&e.cancel()}var Ip=((vp={})[jf]=function(e,t,n){var r=t.channel,i=void 0===r?e.channel:r,o=t.pattern,a=t.maybe,s=function(e){e instanceof Error?n(e,!0):!cp(e)||a?n(e):n(Yd)};try{i.take(s,Xd(o)?sp(o):null)}catch(e){return void n(e,!0)}n.cancel=s.cancel},vp[Df]=function(e,t,n){var r=t.channel,i=t.action,o=t.resolve;Xf((function(){var t;try{t=(r?r.put:e.dispatch)(i)}catch(e){return void n(e,!0)}o&&tf(t)?mp(t,n):n(t)}))},vp.ALL=function(e,t,n,r){var i=r.digestEffect,o=yp,a=Object.keys(t);if(0!==a.length){var s=Af(t,n);a.forEach((function(e){i(t[e],o,s[e],e)}))}else n(ef(t)?[]:{})},vp[Of]=function(e,t,n,r){var i=r.digestEffect,o=yp,a=Object.keys(t),s=ef(t)?xf(a.length):{},l={},c=!1;a.forEach((function(e){var t=function(t,r){c||(r||Mf(t)?(n.cancel(),n(t,r)):(n.cancel(),c=!0,s[e]=t,n(s)))};t.cancel=df,l[e]=t})),n.cancel=function(){c||(c=!0,a.forEach((function(e){return l[e].cancel()})))},a.forEach((function(e){c||i(t[e],o,l[e],e)}))},vp[Lf]=function(e,t,n,r){var i=t.context,o=t.fn,a=t.args,s=r.task;try{var l=o.apply(i,a);if(tf(l))return void mp(l,n);if(nf(l))return void kp(e,l,s.context,yp,Ef(o),!1,n);n(l)}catch(e){n(e,!0)}},vp.CPS=function(e,t,n){var r=t.context,i=t.fn,o=t.args;try{var a=function(e,t){Jd(e)?n(t):n(e,!0)};i.apply(r,o.concat(a)),a.cancel&&(n.cancel=a.cancel)}catch(e){n(e,!0)}},vp[Rf]=function(e,t,n,r){var i=t.context,o=t.fn,a=t.args,s=t.detached,l=r.task,c=function(e){var t=e.context,n=e.fn,r=e.args;try{var i=n.apply(t,r);if(nf(i))return i;var o=!1;return yf((function(e){return o?{value:e,done:!0}:(o=!0,{value:i,done:!tf(i)})}))}catch(e){return yf((function(){throw e}))}}({context:i,fn:o,args:a}),u=function(e,t){return e.isSagaIterator?{name:e.meta.name}:Ef(t)}(c,o);$f((function(){var t=kp(e,c,l.context,yp,u,s,void 0);s?n(t):t.isRunning()?(l.queue.addTask(t),n(t)):t.isAborted()?l.queue.abort(t.error()):n(t)}))},vp.JOIN=function(e,t,n,r){var i=r.task,o=function(e,t){if(e.isRunning()){var n={task:i,cb:t};t.cancel=function(){e.isRunning()&&hf(e.joiners,n)},e.joiners.push(n)}else e.isAborted()?t(e.error(),!0):t(e.result())};if(ef(t)){if(0===t.length)return void n([]);var a=Af(t,n);t.forEach((function(e,t){o(e,a[t])}))}else o(t,n)},vp[Pf]=function(e,t,n,r){var i=r.task;t===Zd?xp(i):ef(t)?t.forEach(xp):xp(t),n()},vp[zf]=function(e,t,n){var r=t.selector,i=t.args;try{n(r.apply(void 0,[e.getState()].concat(i)))}catch(e){n(e,!0)}},vp.ACTION_CHANNEL=function(e,t,n){var r=t.pattern,i=up(t.buffer),o=sp(r),a=function t(n){cp(n)||e.channel.take(t,o),i.put(n)},s=i.close;i.close=function(){a.cancel(),s()},e.channel.take(a,o),n(i)},vp[Uf]=function(e,t,n,r){n(r.task.isCancelled())},vp.FLUSH=function(e,t,n){t.flush(n)},vp.GET_CONTEXT=function(e,t,n,r){n(r.task.context[t])},vp.SET_CONTEXT=function(e,t,n,r){var i=r.task;pf(i.context,t),n()},vp);function wp(e,t){return e+"?"+t}function Tp(e){var t=e.name,n=e.location;return n?t+" "+wp(n.fileName,n.lineNumber):t}var Mp=null,Ap=[],Ep=function(e){e.crashedEffect=Mp,Ap.push(e)},Cp=function(){Mp=null,Ap.length=0},Np=function(e){Mp=e},Sp=function(){var e,t,n,r,i,o,a,s=Ap[0],l=Ap.slice(1),c=s.crashedEffect?(o=s.crashedEffect,(a=Cf(o))?a.code+" "+wp(a.fileName,a.lineNumber):""):null;return["The above error occurred in task "+Tp(s.meta)+(c?" \n when executing effect "+c:"")].concat(l.map((function(e){return" created by "+Tp(e.meta)})),[(e=Ap,t=function(e){return e.cancelledTasks},n=e,i=(r=[]).concat.apply(r,n.map(t)),i.length?["Tasks cancelled due to error:"].concat(i).join("\n"):"")]).join("\n")};function kp(e,t,n,r,i,o,a){var s=e.finalizeRunEffect((function(t,n,r){tf(t)?mp(t,r):nf(t)?kp(e,t,c.context,n,i,!1,r):t&&t[_d]?(0,Ip[t.type])(e,t.payload,r,u):r(t)}));d.cancel=df;var l={meta:i,cancel:function(){l.status===fp&&(l.status=pp,d(qd))},status:fp},c=function(e,t,n,r,i,o,a){var s;void 0===a&&(a=df);var l,c,u=fp,d=null,f=[],p=Object.create(n),h=function(e,t,n){var r,i=[],o=!1;function a(e){t(),l(),n(e,!0)}function s(t){i.push(t),t.cont=function(s,l){o||(hf(i,t),t.cont=df,l?a(s):(t===e&&(r=s),i.length||(o=!0,n(r))))}}function l(){o||(o=!0,i.forEach((function(e){e.cont=df,e.cancel()})),i=[])}return s(e),{addTask:s,cancelAll:l,abort:a,getTasks:function(){return i}}}(t,(function(){f.push.apply(f,h.getTasks().map((function(e){return e.meta.name})))}),g);function g(t,n){if(n){if(u=hp,Ep({meta:i,cancelledTasks:f}),m.isRoot){var r=Sp();Cp(),e.onError(t,{sagaStack:r})}c=t,d&&d.reject(t)}else t===qd?u=pp:u!==pp&&(u=gp),l=t,d&&d.resolve(t);m.cont(t,n),m.joiners.forEach((function(e){e.cb(t,n)})),m.joiners=null}var m=((s={})[Hd]=!0,s.id=r,s.meta=i,s.isRoot=o,s.context=p,s.joiners=[],s.queue=h,s.cancel=function(){u===fp&&(u=pp,h.cancelAll(),g(qd,!1))},s.cont=a,s.end=g,s.setContext=function(e){pf(p,e)},s.toPromise=function(){return d||(d=Vf(),u===hp?d.reject(c):u!==fp&&d.resolve(l)),d.promise},s.isRunning=function(){return u===fp},s.isCancelled=function(){return u===pp||u===fp&&t.status===pp},s.isAborted=function(){return u===hp},s.result=function(){return l},s.error=function(){return c},s);return m}(e,l,n,r,i,o,a),u={task:c,digestEffect:f};return a&&(a.cancel=c.cancel),d(),c;function d(e,n){try{var i;n?(i=t.throw(e),Cp()):Tf(e)?(l.status=pp,d.cancel(),i=$d(t.return)?t.return(qd):{done:!0,value:qd}):i=wf(e)?$d(t.return)?t.return():{done:!0}:t.next(e),i.done?(l.status!==pp&&(l.status=gp),l.cont(i.value)):f(i.value,r,d)}catch(e){if(l.status===pp)throw e;l.status=hp,l.cont(e,!0)}}function f(t,n,r,i){void 0===i&&(i="");var o,a=bp();function l(n,i){o||(o=!0,r.cancel=df,e.sagaMonitor&&(i?e.sagaMonitor.effectRejected(a,n):e.sagaMonitor.effectResolved(a,n)),i&&Np(t),r(n,i))}e.sagaMonitor&&e.sagaMonitor.effectTriggered({effectId:a,parentEffectId:n,label:i,effect:t}),l.cancel=df,r.cancel=function(){o||(o=!0,l.cancel(),l.cancel=df,e.sagaMonitor&&e.sagaMonitor.effectCancelled(a))},s(t,a,l)}}function jp(e,t){for(var n=e.channel,r=void 0===n?dp():n,i=e.dispatch,o=e.getState,a=e.context,s=void 0===a?{}:a,l=e.sagaMonitor,c=e.effectMiddlewares,u=e.onError,d=void 0===u?bf:u,f=arguments.length,p=new Array(f>2?f-2:0),h=2;h<f;h++)p[h-2]=arguments[h];var g,m=t.apply(void 0,p),v=bp();if(l&&(l.rootSagaStarted=l.rootSagaStarted||df,l.effectTriggered=l.effectTriggered||df,l.effectResolved=l.effectResolved||df,l.effectRejected=l.effectRejected||df,l.effectCancelled=l.effectCancelled||df,l.actionDispatched=l.actionDispatched||df,l.rootSagaStarted({effectId:v,saga:t,args:p})),c){var y=Nf.apply(void 0,c);g=function(e){return function(t,n,r){return y((function(t){return e(t,n,r)}))(t)}}}else g=ff;var b={channel:r,dispatch:If(i),getState:o,sagaMonitor:l,onError:d,finalizeRunEffect:g};return $f((function(){var e=kp(b,m,s,v,Ef(t),!0,void 0);return l&&l.effectResolved(v,e),e}))}var Dp=function(e){return{done:!0,value:e}},Op={};function Lp(e){return of(e)?"channel":af(e)?String(e):$d(e)?e.name:String(e)}function Rp(e,t,n){var r,i,o,a=t;function s(t,n){if(a===Op)return Dp(t);if(n&&!i)throw a=Op,n;r&&r(t);var s=n?e[i](n):e[a]();return a=s.nextState,o=s.effect,r=s.stateUpdater,i=s.errorState,a===Op?Dp(t):o}return yf(s,(function(e){return s(null,e)}),n)}function Pp(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];var o,a={done:!1,value:Bf(e)},s=function(e){return o=e};return Rp({q1:function(){return{nextState:"q2",effect:a,stateUpdater:s}},q2:function(){return{nextState:"q1",effect:(e=o,{done:!1,value:Hf.apply(void 0,[t].concat(r,[e]))})};var e}},"q1","takeEvery("+Lp(e)+", "+t.name+")")}function zp(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];var o,a,s={done:!1,value:Bf(e)},l=function(e){return{done:!1,value:Hf.apply(void 0,[t].concat(r,[e]))}},c=function(e){return{done:!1,value:qf(e)}},u=function(e){return o=e},d=function(e){return a=e};return Rp({q1:function(){return{nextState:"q2",effect:s,stateUpdater:d}},q2:function(){return o?{nextState:"q3",effect:c(o)}:{nextState:"q1",effect:l(a),stateUpdater:u}},q3:function(){return{nextState:"q1",effect:l(a),stateUpdater:u}}},"q1","takeLatest("+Lp(e)+", "+t.name+")")}const Up=function(e,t){return Bn(Nd(e,t),1)};function _p(e,t){return function(e,n,r){return function e(n,r){return r.childNodes.reduce(e,((e,n)=>{if("text-answer"===n.name&&null!=n.attributes.maxLength){const r=t[n.attributes.questionId];return("richText"===(null==r?void 0:r.type)||"text"===(null==r?void 0:r.type))&&r.characterCount>n.attributes.maxLength?[...e,{type:"AnswerTooLong",displayNumber:n.attributes.displayNumber,characterCount:r.characterCount,elementType:"question"}]:e}return e})(n,r))}([],e)}(e)}function Bp(e,t){return function e(n){var r;const i="exam"===n.name?"":n.attributes.displayNumber;switch(n.name){case"exam":case"section":case"question":{const t=n.childNodes.map(e),o=t.filter((e=>e.answerCount>0)),a=null!==(r=n.attributes.maxAnswers)&&void 0!==r?r:1/0,s="section"===n.name?n.attributes.minAnswers:void 0,l="exam"===n.name?o.reduce(((e,t)=>e+t.answerCount),0):o.length,c=Up(t,(e=>e.extraAnswers));return{answerCount:l,displayNumber:i,extraAnswers:l>a?[{type:"ExtraAnswer",elementType:n.name,displayNumber:i,childQuestions:t.map((e=>e.displayNumber)),maxAnswers:a,minAnswers:s},...c]:c}}case"text-answer":case"scored-text-answer":case"choice-answer":case"dnd-answer":case"dropdown-answer":{const e=t[n.attributes.questionId];return{answerCount:(null==e?void 0:e.value.length)>0?1:0,displayNumber:i,extraAnswers:[]}}}}(e).extraAnswers}function Fp(e,t){return Up([_p,Bp],(n=>n(e,t)))}const Gp={answersById:{},examStructure:{name:"exam",attributes:{},childNodes:[]},focusedQuestionId:null,supportsAnswerHistory:!1,serverQuestionIds:new Set,savedQuestionIds:new Set,validationErrors:[]};function Zp(e,t){const n=new Set(e);return n.add(t),n}const Hp=e=>(0,Pu.action)("SAVE_ANSWER",e),qp=e=>(0,Pu.action)("SAVE_ANSWER_SUCCEEDED",e),Yp=(e,t)=>(0,Pu.action)("SAVE_ANSWER_FAILED",{answer:e,error:t},void 0,!0),Vp=new Map;function*Wp(e,t){const n=e.payload;try{yield Yf(1e3),yield Zf(t.saveAnswer,n),yield Ff(qp(n))}catch(e){yield Ff(Yp(n,e))}Vp.delete(n.questionId)}function*Qp(e){for(;;){const t=yield Bf("SAVE_ANSWER"),n=Vp.get(t.payload.questionId);n&&(yield qf(n));const r=yield Hf(Wp,t,e);Vp.set(t.payload.questionId,r)}}function*Jp(e){for(;e.selectAnswerVersion;){const t=yield Bf("SELECT_ANSWER_VERSION"),{questionId:n,questionText:r}=t.payload;e.logActivity&&(yield Zf(e.logActivity,`Opened answer version history for question ${n}, ${r}`));try{const t=yield Zf(e.selectAnswerVersion,n,r);t&&(yield Ff(Hp(t)),e.logActivity&&(yield Zf(e.logActivity,`Restored answer version for question ${n}, ${r}`)))}catch(e){console.error(e)}}}function*Xp(e){yield Hf(Qp,e),yield Hf(Jp,e)}const $p=function(e,t,n,r){var i=!n;n||(n={});for(var o=-1,a=t.length;++o<a;){var s=t[o],l=r?r(n[s],e[s],s,n,e):void 0;void 0===l&&(l=e[s]),i?Qe(n,s,l):pl(n,s,l)}return n};var Kp=Object.prototype.hasOwnProperty;const eh=function(e){if(!le(e))return function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}(e);var t=ie(e),n=[];for(var r in e)("constructor"!=r||!t&&Kp.call(e,r))&&n.push(r);return n},th=function(e){return ue(e)?ne(e,!0):eh(e)};var nh="object"==typeof exports&&exports&&!exports.nodeType&&exports,rh=nh&&"object"==typeof module&&module&&!module.nodeType&&module,ih=rh&&rh.exports===nh?M.Buffer:void 0,oh=ih?ih.allocUnsafe:void 0;const ah=oe(Object.getPrototypeOf,Object),sh=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)Tt(t,Nt(e)),e=ah(e);return t}:At,lh=function(e){return Mt(e,th,sh)};var ch=Object.prototype.hasOwnProperty;const uh=function(e){var t=new e.constructor(e.byteLength);return new yt(t).set(new yt(e)),t};var dh=/\w*$/;var fh=A?A.prototype:void 0,ph=fh?fh.valueOf:void 0;const hh=function(e,t,n){var r,i=e.constructor;switch(t){case"[object ArrayBuffer]":return uh(e);case"[object Boolean]":case"[object Date]":return new i(+e);case"[object DataView]":return function(e,t){var n=t?uh(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return function(e,t){var n=t?uh(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}(e,n);case"[object Map]":case"[object Set]":return new i;case"[object Number]":case"[object String]":return new i(e);case"[object RegExp]":return function(e){var t=new e.constructor(e.source,dh.exec(e));return t.lastIndex=e.lastIndex,t}(e);case"[object Symbol]":return r=e,ph?Object(ph.call(r)):{}}};var gh=Object.create;const mh=function(){function e(){}return function(t){if(!le(t))return{};if(gh)return gh(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();var vh=$&&$.isMap;const yh=vh?W(vh):function(e){return O(e)&&"[object Map]"==Yt(e)};var bh=$&&$.isSet;const xh=bh?W(bh):function(e){return O(e)&&"[object Set]"==Yt(e)};var Ih="[object Arguments]",wh="[object Function]",Th="[object Object]",Mh={};Mh[Ih]=Mh["[object Array]"]=Mh["[object ArrayBuffer]"]=Mh["[object DataView]"]=Mh["[object Boolean]"]=Mh["[object Date]"]=Mh["[object Float32Array]"]=Mh["[object Float64Array]"]=Mh["[object Int8Array]"]=Mh["[object Int16Array]"]=Mh["[object Int32Array]"]=Mh["[object Map]"]=Mh["[object Number]"]=Mh[Th]=Mh["[object RegExp]"]=Mh["[object Set]"]=Mh["[object String]"]=Mh["[object Symbol]"]=Mh["[object Uint8Array]"]=Mh["[object Uint8ClampedArray]"]=Mh["[object Uint16Array]"]=Mh["[object Uint32Array]"]=!0,Mh["[object Error]"]=Mh[wh]=Mh["[object WeakMap]"]=!1;const Ah=function e(t,n,r,i,o,a){var s,l=1&n,c=2&n,u=4&n;if(r&&(s=o?r(t,i,o,a):r(t)),void 0!==s)return s;if(!le(t))return t;var d=_(t);if(d){if(s=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&ch.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(t),!l)return function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}(t,s)}else{var f=Yt(t),p=f==wh||"[object GeneratorFunction]"==f;if(Z(t))return function(e,t){if(t)return e.slice();var n=e.length,r=oh?oh(n):new e.constructor(n);return e.copy(r),r}(t,l);if(f==Th||f==Ih||p&&!o){if(s=c||p?{}:function(e){return"function"!=typeof e.constructor||ie(e)?{}:mh(ah(e))}(t),!l)return c?function(e,t){return $p(e,sh(e),t)}(t,function(e,t){return e&&$p(t,th(t),e)}(s,t)):function(e,t){return $p(e,Nt(e),t)}(t,function(e,t){return e&&$p(t,de(t),e)}(s,t))}else{if(!Mh[f])return o?t:{};s=hh(t,f,l)}}a||(a=new pt);var h=a.get(t);if(h)return h;a.set(t,s),xh(t)?t.forEach((function(i){s.add(e(i,n,r,i,t,a))})):yh(t)&&t.forEach((function(i,o){s.set(o,e(i,n,r,o,t,a))}));var g=d?void 0:(u?c?lh:St:c?th:de)(t);return b(g||t,(function(i,o){g&&(i=t[o=i]),pl(s,o,e(i,n,r,o,t,a))})),s},Eh=function(e,t){return null==(e=function(e,t){return t.length<2?e:xn(e,Sn(t,0,-1))}(e,t=yn(t,e)))||delete e[bn(ul(t))]};var Ch=Function.prototype,Nh=Object.prototype,Sh=Ch.toString,kh=Nh.hasOwnProperty,jh=Sh.call(Object);const Dh=function(e){return function(e){if(!O(e)||"[object Object]"!=D(e))return!1;var t=ah(e);if(null===t)return!0;var n=kh.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Sh.call(n)==jh}(e)?void 0:e},Oh=vl((function(e,t){var n={};if(null==e)return n;var r=!1;t=pn(t,(function(t){return t=yn(t,e),r||(r=t.length>1),t})),$p(e,lh(e),n),r&&(n=Ah(n,7,Dh));for(var i=t.length;i--;)Eh(n,t[i]);return n})),Lh={errors:{},nowPlaying:null,playbackTimes:{}},Rh=e=>function(t,n){void 0===n&&(n=Sf);var r,i=!1,o=up(n),a=function(){i||(i=!0,$d(r)&&r(),o.close())};return r=gf(r=(t=>{const n=setInterval((()=>{--e>0?t(e):(t(lp),clearInterval(n))}),1e3);return()=>clearInterval(n)})((function(e){cp(e)?a():o.put(e)}))),i&&r(),{take:o.take,flush:o.flush,close:a}}();function*Ph(e,t){const n=yield Zf(Rh,e);try{for(;;){const e=yield Bf(n);yield Ff(t(e))}}finally{(yield _f(Uf,{}))&&n.close()}}function*zh(e,t){const n=t.payload;try{const t=null!=n.restrictedAudioId?yield function(e){void 0===e&&(e=ff);for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return _f(zf,{selector:e,args:n})}(qc(n.restrictedAudioId)):void 0,r=n.audioRef&&n.audioRef.current?yield function(e,t,n){return null!=n&&null!=t.restrictedAudioId?async function(e,t,n,r){try{const i=await e.getRestrictedAudio("",t,r),o=n.querySelector("source");return o.src=URL.createObjectURL(i),n.load(),n.play(),{response:"ok",cleanup:()=>{URL.revokeObjectURL(o.src)}}}catch(e){return{response:"other-error",cleanup:()=>{}}}}(e,t.restrictedAudioId,t.audioRef.current,n):(t.audioRef.current.play(),{response:"ok"})}(e,n,t):yield function*(e,t,n){return{response:null!=n&&null!=t.restrictedAudioId?yield Zf(e.playRestrictedAudio,t.src,t.restrictedAudioId,n):yield Zf(e.playAudio,t.src)}}(e,n,t);"ok"===r.response?(yield Ff(Uu(n)),yield Zf(Ph,n.duration,Gu),yield Ff(_u())):(yield Ff(Bu(n,r.response)),yield Yf(5e3),yield Ff(Fu(n))),r.cleanup&&r.cleanup()}catch(e){console.error(e)}}function*Uh(e){yield function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return Hf.apply(void 0,[Pp,e,t].concat(r))}("PLAY_AUDIO",zh,e)}const _h={casStatus:"forbidden"},{createAction:Bh}=Pu.deprecated,Fh=e=>(0,Pu.action)("ALLOW_CAS_COUNTDOWN",e),Gh=Bh("ALLOW_CAS_SUCCEEDED"),Zh=Bh("ALLOW_CAS_CANCELLED"),Hh=e=>(0,Pu.action)("UPDATE_CAS_REMAINING",e);function*qh(e,{payload:t}){try{if("allowed"===(yield Zf(e.setCasStatus,"allowing")))return void(yield Ff(Gh()));yield Ff(Fh(t));const{cancelled:i}=yield(n={finished:Zf(Ph,t,Hh),cancelled:Bf("ALLOW_CAS_CANCELLED")},r=_f(Of,n),r.combinator=!0,r);"allowed"===(yield Zf(e.setCasStatus,i?"forbidden":"allowed"))?yield Ff(Gh()):i||(yield Ff(Zh()))}catch(e){console.error(e)}var n,r}function*Yh(e){yield function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return Hf.apply(void 0,[zp,e,t].concat(r))}("ALLOW_CAS",qh,e)}const Vh=function(e){const t=Object.keys(e),n={};for(let r=0;r<t.length;r++){const i=t[r];"function"==typeof e[i]&&(n[i]=e[i])}const r=Object.keys(n);let i;try{!function(e){Object.keys(e).forEach((t=>{const n=e[t];if(void 0===n(void 0,{type:Od.INIT}))throw new Error(kd(12));if(void 0===n(void 0,{type:Od.PROBE_UNKNOWN_ACTION()}))throw new Error(kd(13))}))}(n)}catch(e){i=e}return function(e={},t){if(i)throw i;let o=!1;const a={};for(let i=0;i<r.length;i++){const s=r[i],l=n[s],c=e[s],u=l(c,t);if(void 0===u)throw t&&t.type,new Error(kd(14));a[s]=u,o=o||u!==c}return o=o||r.length!==Object.keys(e).length,o?a:e}}({answers:function(e=Gp,t){switch(t.type){case"SAVE_ANSWER":{const{questionId:n}=t.payload,r=function(e,t){const n=new Set(e);return n.delete(t),n}(e.savedQuestionIds,n),i={...e.answersById,[n]:t.payload};return{...e,savedQuestionIds:r,answersById:i}}case"SAVE_ANSWER_FAILED":default:return e;case"SAVE_ANSWER_SUCCEEDED":{const{questionId:n}=t.payload,r=Zp(e.savedQuestionIds,n),i=Zp(e.serverQuestionIds,n),o=Fp(e.examStructure,e.answersById);return{...e,serverQuestionIds:i,savedQuestionIds:r,validationErrors:o}}case"ANSWER_FOCUSED":{const n=t.payload;return{...e,focusedQuestionId:n}}case"ANSWER_BLURRED":{const n=t.payload;return{...e,focusedQuestionId:e.focusedQuestionId===n?null:e.focusedQuestionId}}}},audio:function(e=Lh,t){switch(t.type){case"PLAY_AUDIO":{const n=t.payload,r={audio:n,durationRemaining:n.duration};return{...e,nowPlaying:r}}case"PLAY_AUDIO_STARTED":{const n=t.payload;if(null!=n.restrictedAudioId){const t=e.playbackTimes[n.restrictedAudioId],r={...e.playbackTimes,[n.restrictedAudioId]:t?t+1:1},i=Oh(e.errors,[n.src]);return{...e,playbackTimes:r,errors:i}}return e}case"SHOW_AUDIO_ERROR":{const{audio:n,error:r}=t.payload,i=In(n,"restrictedAudioId",n.src),o={...e.errors,[i]:r};return{...e,errors:o,nowPlaying:null}}case"HIDE_AUDIO_ERROR":{const n=t.payload,r=In(n,"restrictedAudioId",n.src),i=Oh(e.errors,[r]);return{...e,errors:i}}case"PLAY_AUDIO_FINISHED":return{...e,nowPlaying:null};case"UPDATE_REMAINING":{const n=t.payload,r={...e.nowPlaying,durationRemaining:n};return{...e,nowPlaying:r}}default:return e}},cas:function(e=_h,t){switch(t.type){case"ALLOW_CAS":default:return e;case"ALLOW_CAS_COUNTDOWN":case"UPDATE_CAS_REMAINING":return{casStatus:"allowing",durationRemaining:t.payload};case"ALLOW_CAS_SUCCEEDED":return{casStatus:"allowed"};case"ALLOW_CAS_CANCELLED":return{casStatus:"forbidden"}}}});function*Wh(e){yield Hf(Xp,e),yield Hf(Uh,e),yield Hf(Yh,e)}function Qh(e,t,n,r,i){const o=new Set(Nd(n,"questionId")),a=function(e,t){var n={};return t=An(t),fe(e,(function(e,r,i){Qe(n,r,t(e,r,i))})),n}(Sd(r,"restrictedAudioId"),"times"),s=Sd(n,"questionId"),l={answers:{answersById:s,focusedQuestionId:null,serverQuestionIds:o,supportsAnswerHistory:"function"==typeof i.selectAnswerVersion,savedQuestionIds:o,examStructure:e,validationErrors:Fp(e,s)},audio:{errors:{},nowPlaying:null,playbackTimes:a},cas:{casStatus:t}},c=function(e){var t,n=void 0===e?{}:e,r=n.context,i=void 0===r?{}:r,o=n.channel,a=void 0===o?dp():o,s=n.sagaMonitor,l=Qd(n,["context","channel","sagaMonitor"]);function c(e){var n=e.getState,r=e.dispatch;return t=jp.bind(null,Wd({},l,{context:i,channel:a,dispatch:r,getState:n,sagaMonitor:s})),function(e){return function(t){s&&s.actionDispatched&&s.actionDispatched(t);var n=e(t);return a.put(t),n}}}return c.run=function(){return t.apply(void 0,arguments)},c.setContext=function(e){pf(i,e)},c}(),u=(window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__||Rd)(function(...e){return t=>(n,r)=>{const i=t(n,r);let o=()=>{throw new Error(kd(15))};const a={getState:i.getState,dispatch:(e,...t)=>o(e,...t)},s=e.map((e=>e(a)));return o=Rd(...s)(i.dispatch),{...i,dispatch:o}}}(c)),d=Ld(Vh,l,u);return c.run(Wh,i),d}const Jh=t().memo((function({element:e,className:n,renderChildNodes:r}){return t().createElement("div",{className:Er()("e-audio-group",n)},t().createElement("div",{className:"e-audio-group--separator e-font-size-xl e-mrg-y-4 e-color-link",role:"separator"},"✲✲✲"),r(e))})),Xh=t().memo((function({element:n}){const r=n.getAttribute("src"),i=Ce(n,"duration"),{t:o}=Dl(),a=kc(Zc(r)),s=kc(Hc(r)),l=Gc(),{abitti2:c,resolveAttachment:u}=(0,e.useContext)(oc),d=(0,e.useRef)(null);return t().createElement("div",{className:"e-audio-test notification e-pad-2 e-mrg-b-4"},t().createElement("p",null,o("audio-test.instructions")),t().createElement("div",{className:"e-columns e-columns--center-v e-mrg-b-2"},t().createElement("div",{className:"e-column e-column--narrow"},c&&t().createElement("audio",{ref:d,preload:"none"},t().createElement("source",{src:u(r)})),t().createElement("button",{className:"e-button",disabled:"stopped"!==a,onClick:()=>"stopped"===a&&l(zu({src:r,duration:i,audioRef:d}))},t().createElement(qa,{className:"e-mrg-r-1",icon:ns,fixedWidth:!0}),o("audio-test.play"))),t().createElement("div",{className:"e-column"},t().createElement(Ru,{error:s},be))),t().createElement("div",null,o("audio-test.volume")))})),$h=({children:e})=>t().createElement("footer",{className:"e-footer"},e),Kh=vs({}),eg=t().memo((function(n){const{root:r}=(0,e.useContext)(oc),{t:i}=Dl(),o=Te(r,"reference").filter((e=>null==Me(e,"external-material")));return o.length>0?t().createElement(nc,{"aria-labelledby":_l},t().createElement("h2",{id:_l},i("references.heading")),t().createElement("div",{className:"anchor",id:"references"}),t().createElement("ol",{className:"e-list-data","data-annotation-anchor":_l},o.map(((e,n)=>{const r=Me(e,"question").getAttribute("display-number");return t().createElement("li",{"data-list-number":yd(r),key:`${r}${n}`},t().createElement(rd,{element:e,renderChildNodes:Kh}))})))):null})),tg=(0,e.memo)((e=>{const{id:n,type:r,answer:i,error:o,displayNumber:a}=e,s=null==i?void 0:i.value,l="richText"===(null==i?void 0:i.type),c=l&&(null==s?void 0:s.includes('src="/math.svg?latex=')),u=l&&((null==s?void 0:s.includes('<img src="/screenshot/'))||(null==s?void 0:s.includes('<img src="data:image/png;')));return t().createElement("div",{className:"answer-indicator-container",onClick:e=>{e.stopPropagation(),window.location.href=`#question-nr-${a}`},key:n},t().createElement("div",{className:Er()("answer-indicator",{ok:s,error:o,big:"rich-text"===r}),"data-indicator-id":n},"richText"===(null==i?void 0:i.type)&&t().createElement(t().Fragment,null,l&&(null==i?void 0:i.characterCount)&&t().createElement("span",null,i.characterCount)||"",c&&t().createElement("span",{className:"formula"},"∑"),u&&t().createElement("span",{className:"img"},t().createElement(qa,{icon:Xa,size:"lg"})))))})),ng=({element:n,renderChildNodes:r})=>{var i;const{attachmentsURL:o}=(0,e.useContext)(oc),{displayNumber:a,maxScore:s,level:l}=(0,e.useContext)(dd),{t:c}=Dl(),{isInSidebar:u}=(0,e.useContext)(us),d=Ae(n,"question-title"),f=null!=a&&we(n,"external-material"),p=[];let h={},g=!1;if(u){const e=kc((e=>e.answers));h=(null==e?void 0:e.answersById)||{};const t=n.querySelectorAll("[question-id]"),r=null===(i=e.validationErrors)||void 0===i?void 0:i.filter((e=>"question"===(null==e?void 0:e.elementType)));g=!!(null==r?void 0:r.find((e=>e.displayNumber===a))),t.forEach((e=>{var t;const n=Number(e.getAttribute("question-id")),i=e.getAttribute("type")||"",o=e.getAttribute("display-number")||"",a=!!(null==r?void 0:r.find((e=>e.displayNumber===o))),s=r.flatMap((e=>"childQuestions"in e?e.childQuestions:[])).includes(o),l=!!(null===(t=h[n])||void 0===t?void 0:t.value);n&&p.push({id:n,type:i,error:a||s&&l,displayNumber:o})}))}const m=!!p.find((e=>e.error)),v=null==p?void 0:p.filter((e=>{var t;return null===(t=h[e.id])||void 0===t?void 0:t.value})).length,y=Number(n.getAttribute("max-answers"))||p.length,b=Oe("question",a);return t().createElement("li",{"data-list-number":`${a}.`,onClick:()=>u?window.location.href=`#question-nr-${a}`:void 0,className:Er()(`level-${l}`,{error:g,current:b})},t().createElement("span",{className:"e-column e-question-title"},t().createElement("a",{href:dc("",{hash:`question-nr-${a}`}),tabIndex:u?-1:void 0},t().createElement("span",null,r(d)))),u&&t().createElement("div",{className:Er()("numeric-answer-indicator",{error:m,ok:v===y})},v,"/",y),!u&&f&&t().createElement("span",{className:"e-column e-column--narrow e-external-material"},t().createElement("a",{href:dc(o,{hash:Ee(Me(f,"question"),"display-number")}),target:"attachments"},c("material"))),t().createElement("span",{className:"e-column e-column--narrow table-of-contents--score-column"},c("points",{count:s})),u&&t().createElement("span",{className:"e-column e-column--narrow e-external-material"},f&&t().createElement(qa,{size:"sm",icon:es,fixedWidth:!0})),t().createElement("div",{className:"answers"},p.map((e=>t().createElement(tg,{key:e.id,type:e.type,id:e.id,answer:h[e.id],error:e.error,displayNumber:e.displayNumber})))," "))},rg=t().memo((function({maxAnswers:e,minAnswers:n,elementType:r,childQuestions:i}){const o=i.map((e=>{return"string"==typeof(t=e)||!_(t)&&O(t)&&"[object String]"==D(t)?e:e.getAttribute("display-number");var t})),{t:a}=Dl(),s=function(e,t,n){const r=[];for(const i of e)for(const e of t)for(const t of n)r.push([i,e,t]);return r}([o.length,"*"],[e,"*"],[null!=n?n:e,"*"]).map((([e,t,n])=>`answering-instructions.${r}_${e}_${n}_${t}`)),l=[n,e],c=[cl(o),ul(o)];return t().createElement(t().Fragment,null,a(s,{answerCount:l,questions:c}))})),ig=({element:n,renderChildNodes:r})=>{const{sections:i}=(0,e.useContext)(oc),{childQuestions:o,displayNumber:a,minAnswers:s,maxAnswers:l}=(0,e.useContext)(cc),{t:c}=Dl(),{isInSidebar:u}=(0,e.useContext)(us),d=u&&!!kc((e=>{var t,n;return null===(n=null===(t=e.answers)||void 0===t?void 0:t.validationErrors)||void 0===n?void 0:n.find((e=>e.displayNumber===a&&"section"===(null==e?void 0:e.elementType)))})),f=Oe("section",a);return t().createElement("div",{className:f?"current":""},n.hasChildNodes()&&t().createElement("div",{className:"toc-section-header-container"},t().createElement("h4",{className:"toc-section-header",id:ql(a)},i.length>1&&c("section",{displayNumber:a})," ",r(n))),l&&t().createElement("div",{style:{display:"grid"},className:`answer-instructions-container section-${a}`},t().createElement("div",{className:Er()("answer-instructions",{error:d})},d&&t().createElement("div",{className:"error-mark"},"!"),t().createElement("span",{className:"error-reason"},t().createElement(rg,{maxAnswers:l,minAnswers:s,childQuestions:o,elementType:"toc-section"})))))},og=({element:n,answers:r,renderChildNodes:i})=>{const{displayNumber:o}=(0,e.useContext)(cc),a=Ae(n,"section-title");return t().createElement("li",{"data-section-id":o},a&&t().createElement(ig,{element:a,renderChildNodes:i,answers:r}),t().createElement("ol",{className:"e-list-data e-pad-l-0","aria-labelledby":a&&ql(o)},i(n,1)))},ag=n=>{const{showAnsweringInstructions:r,isInSidebar:i}=n,o=vs({section:uc(og),question:fd(ng)});return t().memo((()=>{const{root:n,maxScore:a}=(0,e.useContext)(oc),{t:s}=Dl(),l=Ce(n,"max-answers"),c=i&&!!kc((e=>{var t;return null===(t=e.answers.validationErrors)||void 0===t?void 0:t.find((e=>"exam"===(null==e?void 0:e.elementType)))})),u=t().createRef();return(0,e.useEffect)((()=>{var e;const t=e=>{const t=e.currentTarget;if(t.scrollHeight<=t.clientHeight)return;const n=e.deltaY,r=n<0&&0===t.scrollTop,i=n>0&&t.scrollTop>=t.scrollHeight-t.clientHeight;(r||i)&&e.preventDefault()};return null===(e=null==u?void 0:u.current)||void 0===e||e.addEventListener("wheel",t,{passive:!1}),()=>{var e;return null===(e=null==u?void 0:u.current)||void 0===e?void 0:e.removeEventListener("wheel",t)}}),[]),t().createElement("nav",{className:"table-of-contents","aria-labelledby":Jl,ref:u},!i&&t().createElement("h2",{id:Jl},t().createElement("span",{className:"e-toc-heading"},s("toc-heading"))),r&&l&&t().createElement("div",{style:{display:"grid"}},t().createElement("div",{className:Er()("answer-instructions",{error:c})},c&&t().createElement("div",{className:"error-mark exam"},"!"),t().createElement("span",{className:"error-reason"},s("max-answers-warning",{count:l})))),t().createElement(us.Provider,{value:{isInSidebar:i}},t().createElement("ol",{className:"e-list-plain e-pad-l-0"},o(n))),t().createElement("div",{className:"e-columns"},t().createElement("strong",{className:"e-column e-total"},s("exam-total")),t().createElement("strong",{className:"e-column e-column--narrow table-of-contents--score-column"},s("points",{count:a})),i&&t().createElement("span",{className:"e-column e-column--narrow e-external-material"})))}))},sg=JSON.parse('{"rE":"23.2.0-alpha.0"}'),lg=()=>{const e=In(window,"TEST_VERSION_NUMBER");return t().createElement("span",null,"EE v.",e||sg.rE)},cg=t().memo(mc((function({element:n,renderChildNodes:r}){const{isExternal:i}=(0,e.useContext)(gc);return i?null:t().createElement("span",{className:"exam-attachment e-mrg-b-2"},r(n))}))),ug=({selected:e,element:n,renderChildNodes:r,questionId:i,onSelect:o,direction:a,value:s})=>{const l=n.getAttribute("class"),c=t().createElement("div",{className:Er()("e-choice-answer-option e-column",l,{"e-choice-answer-option--selected":e})},r(n));return"vertical"===a?t().createElement("div",{className:"e-mrg-b-1"},t().createElement("label",{className:Er()("e-columns",{"e-columns--inline":null==we(n,["image","video"])})},t().createElement("input",{type:"radio",className:"e-radio-button e-column e-column--narrow",name:String(i),onChange:o,value:s,checked:e}),c)):t().createElement("div",{className:"e-column e-mrg-b-1"},t().createElement("label",{className:"e-block e-text-center"},t().createElement("input",{type:"radio",className:"e-radio-button",name:String(i),onChange:o,value:s,checked:e}),c))},dg=t().memo((({element:n,renderChildNodes:r})=>{const i=Ce(n,"question-id"),o=n.getAttribute("display-number"),a=n.getAttribute("direction")||"vertical",s=n.getAttribute("class"),{questionLabelIds:l}=(0,e.useContext)(dd),c=kc((e=>e.answers.answersById[i])),u=Gc(),d=(0,e.useCallback)((e=>{u(Hp({type:"choice",questionId:i,value:e.currentTarget.value,displayNumber:o}))}),[i,o]);return t().createElement("div",{className:Er()("e-choice-answer e-mrg-b-4",s,{"e-columns":"horizontal"===a}),"data-question-id":i,role:"radiogroup","aria-labelledby":l},t().createElement("span",{className:"anchor",id:`question-nr-${o}`}),Se(n,(e=>{const n=e.getAttribute("option-id"),o="no-answer"===e.getAttribute("type")?"":n,s=null!=c&&c.value===o;return t().createElement(ug,{element:e,onSelect:d,renderChildNodes:r,questionId:i,key:n,direction:a,selected:s,value:o})})))}));var fg=a(6003);const pg="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function hg(e){const t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function gg(e){return"nodeType"in e}function mg(e){var t,n;return e?hg(e)?e:gg(e)&&null!=(t=null==(n=e.ownerDocument)?void 0:n.defaultView)?t:window:window}function vg(e){const{Document:t}=mg(e);return e instanceof t}function yg(e){return!hg(e)&&e instanceof mg(e).HTMLElement}function bg(e){return e instanceof mg(e).SVGElement}function xg(e){return e?hg(e)?e.document:gg(e)?vg(e)?e:yg(e)||bg(e)?e.ownerDocument:document:document:document}const Ig=pg?e.useLayoutEffect:e.useEffect;function wg(t){const n=(0,e.useRef)(t);return Ig((()=>{n.current=t})),(0,e.useCallback)((function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return null==n.current?void 0:n.current(...t)}),[])}function Tg(t,n){void 0===n&&(n=[t]);const r=(0,e.useRef)(t);return Ig((()=>{r.current!==t&&(r.current=t)}),n),r}function Mg(t,n){const r=(0,e.useRef)();return(0,e.useMemo)((()=>{const e=t(r.current);return r.current=e,e}),[...n])}function Ag(t){const n=wg(t),r=(0,e.useRef)(null),i=(0,e.useCallback)((e=>{e!==r.current&&(null==n||n(e,r.current)),r.current=e}),[]);return[r,i]}function Eg(t){const n=(0,e.useRef)();return(0,e.useEffect)((()=>{n.current=t}),[t]),n.current}let Cg={};function Ng(t,n){return(0,e.useMemo)((()=>{if(n)return n;const e=null==Cg[t]?0:Cg[t]+1;return Cg[t]=e,t+"-"+e}),[t,n])}function Sg(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return r.reduce(((t,n)=>{const r=Object.entries(n);for(const[n,i]of r){const r=t[n];null!=r&&(t[n]=r+e*i)}return t}),{...t})}}const kg=Sg(1),jg=Sg(-1);function Dg(e){if(!e)return!1;const{KeyboardEvent:t}=mg(e.target);return t&&e instanceof t}function Og(e){if(function(e){if(!e)return!1;const{TouchEvent:t}=mg(e.target);return t&&e instanceof t}(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return function(e){return"clientX"in e&&"clientY"in e}(e)?{x:e.clientX,y:e.clientY}:null}const Lg=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[Lg.Translate.toString(e),Lg.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),Rg="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function Pg(e){return e.matches(Rg)?e:e.querySelector(Rg)}const zg={display:"none"};function Ug(e){let{id:n,value:r}=e;return t().createElement("div",{id:n,style:zg},r)}function _g(e){let{id:n,announcement:r,ariaLiveType:i="assertive"}=e;return t().createElement("div",{id:n,style:{position:"fixed",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"},role:"status","aria-live":i,"aria-atomic":!0},r)}const Bg=(0,e.createContext)(null),Fg={draggable:"\n To pick up a draggable item, press the space bar.\n While dragging, use the arrow keys to move the item.\n Press space again to drop the item in its new position, or press escape to cancel.\n "},Gg={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function Zg(n){let{announcements:r=Gg,container:i,hiddenTextDescribedById:o,screenReaderInstructions:a=Fg}=n;const{announce:s,announcement:l}=function(){const[t,n]=(0,e.useState)("");return{announce:(0,e.useCallback)((e=>{null!=e&&n(e)}),[]),announcement:t}}(),c=Ng("DndLiveRegion"),[u,d]=(0,e.useState)(!1);if((0,e.useEffect)((()=>{d(!0)}),[]),function(t){const n=(0,e.useContext)(Bg);(0,e.useEffect)((()=>{if(!n)throw new Error("useDndMonitor must be used within a children of <DndContext>");return n(t)}),[t,n])}((0,e.useMemo)((()=>({onDragStart(e){let{active:t}=e;s(r.onDragStart({active:t}))},onDragMove(e){let{active:t,over:n}=e;r.onDragMove&&s(r.onDragMove({active:t,over:n}))},onDragOver(e){let{active:t,over:n}=e;s(r.onDragOver({active:t,over:n}))},onDragEnd(e){let{active:t,over:n}=e;s(r.onDragEnd({active:t,over:n}))},onDragCancel(e){let{active:t,over:n}=e;s(r.onDragCancel({active:t,over:n}))}})),[s,r])),!u)return null;const f=t().createElement(t().Fragment,null,t().createElement(Ug,{id:o,value:a.draggable}),t().createElement(_g,{id:c,announcement:l}));return i?(0,fg.createPortal)(f,i):f}var Hg,qg;function Yg(){}function Vg(t,n){return(0,e.useMemo)((()=>({sensor:t,options:null!=n?n:{}})),[t,n])}(qg=Hg||(Hg={})).DragStart="dragStart",qg.DragMove="dragMove",qg.DragEnd="dragEnd",qg.DragCancel="dragCancel",qg.DragOver="dragOver",qg.RegisterDroppable="registerDroppable",qg.SetDroppableDisabled="setDroppableDisabled",qg.UnregisterDroppable="unregisterDroppable";const Wg=Object.freeze({x:0,y:0});function Qg(e,t){const n=Og(e);return n?(n.x-t.left)/t.width*100+"% "+(n.y-t.top)/t.height*100+"%":"0 0"}function Jg(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function Xg(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function $g(e){let{left:t,top:n,height:r,width:i}=e;return[{x:t,y:n},{x:t+i,y:n},{x:t,y:n+r},{x:t+i,y:n+r}]}function Kg(e,t){if(!e||0===e.length)return null;const[n]=e;return t?n[t]:n}function em(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),i=Math.min(t.left+t.width,e.left+e.width),o=Math.min(t.top+t.height,e.top+e.height),a=i-r,s=o-n;if(r<i&&n<o){const n=t.width*t.height,r=e.width*e.height,i=a*s;return Number((i/(n+r-i)).toFixed(4))}return 0}const tm=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const i=[];for(const e of r){const{id:r}=e,o=n.get(r);if(o){const n=em(o,t);n>0&&i.push({id:r,data:{droppableContainer:e,value:n}})}}return i.sort(Xg)};function nm(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:Wg}function rm(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return r.reduce(((t,n)=>({...t,top:t.top+e*n.y,bottom:t.bottom+e*n.y,left:t.left+e*n.x,right:t.right+e*n.x})),{...t})}}const im=rm(1);function om(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}const am={ignoreTransform:!1};function sm(e,t){void 0===t&&(t=am);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:t,transformOrigin:r}=mg(e).getComputedStyle(e);t&&(n=function(e,t,n){const r=om(t);if(!r)return e;const{scaleX:i,scaleY:o,x:a,y:s}=r,l=e.left-a-(1-i)*parseFloat(n),c=e.top-s-(1-o)*parseFloat(n.slice(n.indexOf(" ")+1)),u=i?e.width/i:e.width,d=o?e.height/o:e.height;return{width:u,height:d,top:c,right:l+u,bottom:c+d,left:l}}(n,t,r))}const{top:r,left:i,width:o,height:a,bottom:s,right:l}=n;return{top:r,left:i,width:o,height:a,bottom:s,right:l}}function lm(e){return sm(e,{ignoreTransform:!0})}function cm(e,t){const n=[];return e?function r(i){if(null!=t&&n.length>=t)return n;if(!i)return n;if(vg(i)&&null!=i.scrollingElement&&!n.includes(i.scrollingElement))return n.push(i.scrollingElement),n;if(!yg(i)||bg(i))return n;if(n.includes(i))return n;const o=mg(e).getComputedStyle(i);return i!==e&&function(e,t){void 0===t&&(t=mg(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some((e=>{const r=t[e];return"string"==typeof r&&n.test(r)}))}(i,o)&&n.push(i),function(e,t){return void 0===t&&(t=mg(e).getComputedStyle(e)),"fixed"===t.position}(i,o)?n:r(i.parentNode)}(e):n}function um(e){const[t]=cm(e,1);return null!=t?t:null}function dm(e){return pg&&e?hg(e)?e:gg(e)?vg(e)||e===xg(e).scrollingElement?window:yg(e)?e:null:null:null}function fm(e){return hg(e)?e.scrollX:e.scrollLeft}function pm(e){return hg(e)?e.scrollY:e.scrollTop}function hm(e){return{x:fm(e),y:pm(e)}}var gm,mm;function vm(e){return!(!pg||!e)&&e===document.scrollingElement}function ym(e){const t={x:0,y:0},n=vm(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height};return{isTop:e.scrollTop<=t.y,isLeft:e.scrollLeft<=t.x,isBottom:e.scrollTop>=r.y,isRight:e.scrollLeft>=r.x,maxScroll:r,minScroll:t}}(mm=gm||(gm={}))[mm.Forward=1]="Forward",mm[mm.Backward=-1]="Backward";const bm={x:.2,y:.2};function xm(e,t,n,r,i){let{top:o,left:a,right:s,bottom:l}=n;void 0===r&&(r=10),void 0===i&&(i=bm);const{isTop:c,isBottom:u,isLeft:d,isRight:f}=ym(e),p={x:0,y:0},h={x:0,y:0},g=t.height*i.y,m=t.width*i.x;return!c&&o<=t.top+g?(p.y=gm.Backward,h.y=r*Math.abs((t.top+g-o)/g)):!u&&l>=t.bottom-g&&(p.y=gm.Forward,h.y=r*Math.abs((t.bottom-g-l)/g)),!f&&s>=t.right-m?(p.x=gm.Forward,h.x=r*Math.abs((t.right-m-s)/m)):!d&&a<=t.left+m&&(p.x=gm.Backward,h.x=r*Math.abs((t.left+m-a)/m)),{direction:p,speed:h}}function Im(e){if(e===document.scrollingElement){const{innerWidth:e,innerHeight:t}=window;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}const{top:t,left:n,right:r,bottom:i}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:i,width:e.clientWidth,height:e.clientHeight}}function wm(e){return e.reduce(((e,t)=>kg(e,hm(t))),Wg)}function Tm(e,t){if(void 0===t&&(t=sm),!e)return;const{top:n,left:r,bottom:i,right:o}=t(e);um(e)&&(i<=0||o<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const Mm=[["x",["left","right"],function(e){return e.reduce(((e,t)=>e+fm(t)),0)}],["y",["top","bottom"],function(e){return e.reduce(((e,t)=>e+pm(t)),0)}]];class Am{constructor(e,t){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const n=cm(t),r=wm(n);this.rect={...e},this.width=e.width,this.height=e.height;for(const[e,t,i]of Mm)for(const o of t)Object.defineProperty(this,o,{get:()=>{const t=i(n),a=r[e]-t;return this.rect[o]+a},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class Em{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach((e=>{var t;return null==(t=this.target)?void 0:t.removeEventListener(...e)}))},this.target=e}add(e,t,n){var r;null==(r=this.target)||r.addEventListener(e,t,n),this.listeners.push([e,t,n])}}function Cm(e,t){const n=Math.abs(e.x),r=Math.abs(e.y);return"number"==typeof t?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t&&r>t.y}var Nm,Sm,km,jm;function Dm(e){e.preventDefault()}function Om(e){e.stopPropagation()}(Sm=Nm||(Nm={})).Click="click",Sm.DragStart="dragstart",Sm.Keydown="keydown",Sm.ContextMenu="contextmenu",Sm.Resize="resize",Sm.SelectionChange="selectionchange",Sm.VisibilityChange="visibilitychange",(jm=km||(km={})).Space="Space",jm.Down="ArrowDown",jm.Right="ArrowRight",jm.Left="ArrowLeft",jm.Up="ArrowUp",jm.Esc="Escape",jm.Enter="Enter";const Lm={start:[km.Space,km.Enter],cancel:[km.Esc],end:[km.Space,km.Enter]},Rm=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case km.Right:return{...n,x:n.x+25};case km.Left:return{...n,x:n.x-25};case km.Down:return{...n,y:n.y+25};case km.Up:return{...n,y:n.y-25}}};class Pm{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;const{event:{target:t}}=e;this.props=e,this.listeners=new Em(xg(t)),this.windowListeners=new Em(mg(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(Nm.Resize,this.handleCancel),this.windowListeners.add(Nm.VisibilityChange,this.handleCancel),setTimeout((()=>this.listeners.add(Nm.Keydown,this.handleKeyDown)))}handleStart(){const{activeNode:e,onStart:t}=this.props,n=e.node.current;n&&Tm(n),t(Wg)}handleKeyDown(e){if(Dg(e)){const{active:t,context:n,options:r}=this.props,{keyboardCodes:i=Lm,coordinateGetter:o=Rm,scrollBehavior:a="smooth"}=r,{code:s}=e;if(i.end.includes(s))return void this.handleEnd(e);if(i.cancel.includes(s))return void this.handleCancel(e);const{collisionRect:l}=n.current,c=l?{x:l.left,y:l.top}:Wg;this.referenceCoordinates||(this.referenceCoordinates=c);const u=o(e,{active:t,context:n.current,currentCoordinates:c});if(u){const t=jg(u,c),r={x:0,y:0},{scrollableAncestors:i}=n.current;for(const n of i){const i=e.code,{isTop:o,isRight:s,isLeft:l,isBottom:c,maxScroll:d,minScroll:f}=ym(n),p=Im(n),h={x:Math.min(i===km.Right?p.right-p.width/2:p.right,Math.max(i===km.Right?p.left:p.left+p.width/2,u.x)),y:Math.min(i===km.Down?p.bottom-p.height/2:p.bottom,Math.max(i===km.Down?p.top:p.top+p.height/2,u.y))},g=i===km.Right&&!s||i===km.Left&&!l,m=i===km.Down&&!c||i===km.Up&&!o;if(g&&h.x!==u.x){const e=n.scrollLeft+t.x,o=i===km.Right&&e<=d.x||i===km.Left&&e>=f.x;if(o&&!t.y)return void n.scrollTo({left:e,behavior:a});r.x=o?n.scrollLeft-e:i===km.Right?n.scrollLeft-d.x:n.scrollLeft-f.x,r.x&&n.scrollBy({left:-r.x,behavior:a});break}if(m&&h.y!==u.y){const e=n.scrollTop+t.y,o=i===km.Down&&e<=d.y||i===km.Up&&e>=f.y;if(o&&!t.x)return void n.scrollTo({top:e,behavior:a});r.y=o?n.scrollTop-e:i===km.Down?n.scrollTop-d.y:n.scrollTop-f.y,r.y&&n.scrollBy({top:-r.y,behavior:a});break}}this.handleMove(e,kg(jg(u,this.referenceCoordinates),r))}}}handleMove(e,t){const{onMove:n}=this.props;e.preventDefault(),n(t)}handleEnd(e){const{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){const{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}function zm(e){return Boolean(e&&"distance"in e)}function Um(e){return Boolean(e&&"delay"in e)}Pm.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=Lm,onActivation:i}=t,{active:o}=n;const{code:a}=e.nativeEvent;if(r.start.includes(a)){const t=o.activatorNode.current;return!(t&&e.target!==t||(e.preventDefault(),null==i||i({event:e.nativeEvent}),0))}return!1}}];class _m{constructor(e,t,n){var r;void 0===n&&(n=function(e){const{EventTarget:t}=mg(e);return e instanceof t?e:xg(e)}(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=t;const{event:i}=e,{target:o}=i;this.props=e,this.events=t,this.document=xg(o),this.documentListeners=new Em(this.document),this.listeners=new Em(n),this.windowListeners=new Em(mg(o)),this.initialCoordinates=null!=(r=Og(i))?r:Wg,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:e,props:{options:{activationConstraint:t,bypassActivationConstraint:n}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),this.windowListeners.add(Nm.Resize,this.handleCancel),this.windowListeners.add(Nm.DragStart,Dm),this.windowListeners.add(Nm.VisibilityChange,this.handleCancel),this.windowListeners.add(Nm.ContextMenu,Dm),this.documentListeners.add(Nm.Keydown,this.handleKeydown),t){if(null!=n&&n({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(Um(t))return void(this.timeoutId=setTimeout(this.handleStart,t.delay));if(zm(t))return}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),null!==this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handleStart(){const{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(Nm.Click,Om,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(Nm.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){var t;const{activated:n,initialCoordinates:r,props:i}=this,{onMove:o,options:{activationConstraint:a}}=i;if(!r)return;const s=null!=(t=Og(e))?t:Wg,l=jg(r,s);if(!n&&a){if(zm(a)){if(null!=a.tolerance&&Cm(l,a.tolerance))return this.handleCancel();if(Cm(l,a.distance))return this.handleStart()}return Um(a)&&Cm(l,a.tolerance)?this.handleCancel():void 0}e.cancelable&&e.preventDefault(),o(s)}handleEnd(){const{onEnd:e}=this.props;this.detach(),e()}handleCancel(){const{onCancel:e}=this.props;this.detach(),e()}handleKeydown(e){e.code===km.Esc&&this.handleCancel()}removeTextSelection(){var e;null==(e=this.document.getSelection())||e.removeAllRanges()}}const Bm={move:{name:"pointermove"},end:{name:"pointerup"}};class Fm extends _m{constructor(e){const{event:t}=e,n=xg(t.target);super(e,Bm,n)}}Fm.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!(!n.isPrimary||0!==n.button||(null==r||r({event:n}),0))}}];const Gm={move:{name:"mousemove"},end:{name:"mouseup"}};var Zm,Hm;(Hm=Zm||(Zm={}))[Hm.RightClick=2]="RightClick",class extends _m{constructor(e){super(e,Gm,xg(e.event.target))}}.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button!==Zm.RightClick&&(null==r||r({event:n}),!0)}}];const qm={move:{name:"touchmove"},end:{name:"touchend"}};var Ym,Vm,Wm,Qm;(class extends _m{constructor(e){super(e,qm)}static setup(){return window.addEventListener(qm.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(qm.move.name,e)};function e(){}}}).activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;const{touches:i}=n;return!(i.length>1||(null==r||r({event:n}),0))}}],(Vm=Ym||(Ym={}))[Vm.Pointer=0]="Pointer",Vm[Vm.DraggableRect=1]="DraggableRect",(Qm=Wm||(Wm={}))[Qm.TreeOrder=0]="TreeOrder",Qm[Qm.ReversedTreeOrder=1]="ReversedTreeOrder";const Jm={x:{[gm.Backward]:!1,[gm.Forward]:!1},y:{[gm.Backward]:!1,[gm.Forward]:!1}};var Xm,$m,Km;($m=Xm||(Xm={}))[$m.Always=0]="Always",$m[$m.BeforeDragging=1]="BeforeDragging",$m[$m.WhileDragging=2]="WhileDragging",(Km||(Km={})).Optimized="optimized";const ev=new Map;function tv(e,t){return Mg((n=>e?n||("function"==typeof t?t(e):e):null),[t,e])}function nv(t){let{callback:n,disabled:r}=t;const i=wg(n),o=(0,e.useMemo)((()=>{if(r||"undefined"==typeof window||void 0===window.ResizeObserver)return;const{ResizeObserver:e}=window;return new e(i)}),[r]);return(0,e.useEffect)((()=>()=>null==o?void 0:o.disconnect()),[o]),o}function rv(e){return new Am(sm(e),e)}function iv(t,n,r){void 0===n&&(n=rv);const[i,o]=(0,e.useReducer)((function(e){if(!t)return null;var i;if(!1===t.isConnected)return null!=(i=null!=e?e:r)?i:null;const o=n(t);return JSON.stringify(e)===JSON.stringify(o)?e:o}),null),a=function(t){let{callback:n,disabled:r}=t;const i=wg(n),o=(0,e.useMemo)((()=>{if(r||"undefined"==typeof window||void 0===window.MutationObserver)return;const{MutationObserver:e}=window;return new e(i)}),[i,r]);return(0,e.useEffect)((()=>()=>null==o?void 0:o.disconnect()),[o]),o}({callback(e){if(t)for(const n of e){const{type:e,target:r}=n;if("childList"===e&&r instanceof HTMLElement&&r.contains(t)){o();break}}}}),s=nv({callback:o});return Ig((()=>{o(),t?(null==s||s.observe(t),null==a||a.observe(document.body,{childList:!0,subtree:!0})):(null==s||s.disconnect(),null==a||a.disconnect())}),[t]),i}const ov=[];function av(t,n){void 0===n&&(n=[]);const r=(0,e.useRef)(null);return(0,e.useEffect)((()=>{r.current=null}),n),(0,e.useEffect)((()=>{const e=t!==Wg;e&&!r.current&&(r.current=t),!e&&r.current&&(r.current=null)}),[t]),r.current?jg(t,r.current):Wg}function sv(t){return(0,e.useMemo)((()=>t?function(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}(t):null),[t])}const lv=[];function cv(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return yg(t)?t:e}const uv=[{sensor:Fm,options:{}},{sensor:Pm,options:{}}],dv={current:{}},fv={draggable:{measure:lm},droppable:{measure:lm,strategy:Xm.WhileDragging,frequency:Km.Optimized},dragOverlay:{measure:sm}};class pv extends Map{get(e){var t;return null!=e&&null!=(t=super.get(e))?t:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter((e=>{let{disabled:t}=e;return!t}))}getNodeFor(e){var t,n;return null!=(t=null==(n=this.get(e))?void 0:n.node.current)?t:void 0}}const hv={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new pv,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:Yg},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:fv,measureDroppableContainers:Yg,windowRect:null,measuringScheduled:!1},gv={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:Yg,draggableNodes:new Map,over:null,measureDroppableContainers:Yg},mv=(0,e.createContext)(gv),vv=(0,e.createContext)(hv);function yv(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new pv}}}function bv(e,t){switch(t.type){case Hg.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case Hg.DragMove:return e.draggable.active?{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}}:e;case Hg.DragEnd:case Hg.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case Hg.RegisterDroppable:{const{element:n}=t,{id:r}=n,i=new pv(e.droppable.containers);return i.set(r,n),{...e,droppable:{...e.droppable,containers:i}}}case Hg.SetDroppableDisabled:{const{id:n,key:r,disabled:i}=t,o=e.droppable.containers.get(n);if(!o||r!==o.key)return e;const a=new pv(e.droppable.containers);return a.set(n,{...o,disabled:i}),{...e,droppable:{...e.droppable,containers:a}}}case Hg.UnregisterDroppable:{const{id:n,key:r}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;const o=new pv(e.droppable.containers);return o.delete(n),{...e,droppable:{...e.droppable,containers:o}}}default:return e}}function xv(t){let{disabled:n}=t;const{active:r,activatorEvent:i,draggableNodes:o}=(0,e.useContext)(mv),a=Eg(i),s=Eg(null==r?void 0:r.id);return(0,e.useEffect)((()=>{if(!n&&!i&&a&&null!=s){if(!Dg(a))return;if(document.activeElement===a.target)return;const e=o.get(s);if(!e)return;const{activatorNode:t,node:n}=e;if(!t.current&&!n.current)return;requestAnimationFrame((()=>{for(const e of[t.current,n.current]){if(!e)continue;const t=Pg(e);if(t){t.focus();break}}}))}}),[i,n,o,s,a]),null}function Iv(e,t){let{transform:n,...r}=t;return null!=e&&e.length?e.reduce(((e,t)=>t({transform:e,...r})),n):n}const wv=(0,e.createContext)({...Wg,scaleX:1,scaleY:1});var Tv,Mv;(Mv=Tv||(Tv={}))[Mv.Uninitialized=0]="Uninitialized",Mv[Mv.Initializing=1]="Initializing",Mv[Mv.Initialized=2]="Initialized";const Av=(0,e.memo)((function(n){var r,i,o,a;let{id:s,accessibility:l,autoScroll:c=!0,children:u,sensors:d=uv,collisionDetection:f=tm,measuring:p,modifiers:h,...g}=n;const m=(0,e.useReducer)(bv,void 0,yv),[v,y]=m,[b,x]=function(){const[t]=(0,e.useState)((()=>new Set)),n=(0,e.useCallback)((e=>(t.add(e),()=>t.delete(e))),[t]);return[(0,e.useCallback)((e=>{let{type:n,event:r}=e;t.forEach((e=>{var t;return null==(t=e[n])?void 0:t.call(e,r)}))}),[t]),n]}(),[I,w]=(0,e.useState)(Tv.Uninitialized),T=I===Tv.Initialized,{draggable:{active:M,nodes:A,translate:E},droppable:{containers:C}}=v,N=M?A.get(M):null,S=(0,e.useRef)({initial:null,translated:null}),k=(0,e.useMemo)((()=>{var e;return null!=M?{id:M,data:null!=(e=null==N?void 0:N.data)?e:dv,rect:S}:null}),[M,N]),j=(0,e.useRef)(null),[D,O]=(0,e.useState)(null),[L,R]=(0,e.useState)(null),P=Tg(g,Object.values(g)),z=Ng("DndDescribedBy",s),U=(0,e.useMemo)((()=>C.getEnabled()),[C]),_=(B=p,(0,e.useMemo)((()=>({draggable:{...fv.draggable,...null==B?void 0:B.draggable},droppable:{...fv.droppable,...null==B?void 0:B.droppable},dragOverlay:{...fv.dragOverlay,...null==B?void 0:B.dragOverlay}})),[null==B?void 0:B.draggable,null==B?void 0:B.droppable,null==B?void 0:B.dragOverlay]));var B;const{droppableRects:F,measureDroppableContainers:G,measuringScheduled:Z}=function(t,n){let{dragging:r,dependencies:i,config:o}=n;const[a,s]=(0,e.useState)(null),{frequency:l,measure:c,strategy:u}=o,d=(0,e.useRef)(t),f=function(){switch(u){case Xm.Always:return!1;case Xm.BeforeDragging:return r;default:return!r}}(),p=Tg(f),h=(0,e.useCallback)((function(e){void 0===e&&(e=[]),p.current||s((t=>null===t?e:t.concat(e.filter((e=>!t.includes(e))))))}),[p]),g=(0,e.useRef)(null),m=Mg((e=>{if(f&&!r)return ev;if(!e||e===ev||d.current!==t||null!=a){const e=new Map;for(let n of t){if(!n)continue;if(a&&a.length>0&&!a.includes(n.id)&&n.rect.current){e.set(n.id,n.rect.current);continue}const t=n.node.current,r=t?new Am(c(t),t):null;n.rect.current=r,r&&e.set(n.id,r)}return e}return e}),[t,a,r,f,c]);return(0,e.useEffect)((()=>{d.current=t}),[t]),(0,e.useEffect)((()=>{f||h()}),[r,f]),(0,e.useEffect)((()=>{a&&a.length>0&&s(null)}),[JSON.stringify(a)]),(0,e.useEffect)((()=>{f||"number"!=typeof l||null!==g.current||(g.current=setTimeout((()=>{h(),g.current=null}),l))}),[l,f,h,...i]),{droppableRects:m,measureDroppableContainers:h,measuringScheduled:null!=a}}(U,{dragging:T,dependencies:[E.x,E.y],config:_.droppable}),H=function(e,t){const n=null!==t?e.get(t):void 0,r=n?n.node.current:null;return Mg((e=>{var n;return null===t?null:null!=(n=null!=r?r:e)?n:null}),[r,t])}(A,M),q=(0,e.useMemo)((()=>L?Og(L):null),[L]),Y=function(){const e=!1===(null==D?void 0:D.autoScrollEnabled),t="object"==typeof c?!1===c.enabled:!1===c,n=T&&!e&&!t;return"object"==typeof c?{...c,enabled:n}:{enabled:n}}(),V=function(e,t){return tv(e,t)}(H,_.draggable.measure);!function(t){let{activeNode:n,measure:r,initialRect:i,config:o=!0}=t;const a=(0,e.useRef)(!1),{x:s,y:l}="boolean"==typeof o?{x:o,y:o}:o;Ig((()=>{if(!s&&!l||!n)return void(a.current=!1);if(a.current||!i)return;const e=null==n?void 0:n.node.current;if(!e||!1===e.isConnected)return;const t=nm(r(e),i);if(s||(t.x=0),l||(t.y=0),a.current=!0,Math.abs(t.x)>0||Math.abs(t.y)>0){const n=um(e);n&&n.scrollBy({top:t.y,left:t.x})}}),[n,s,l,i,r])}({activeNode:M?A.get(M):null,config:Y.layoutShiftCompensation,initialRect:V,measure:_.draggable.measure});const W=iv(H,_.draggable.measure,V),Q=iv(H?H.parentElement:null),J=(0,e.useRef)({activatorEvent:null,active:null,activeNode:H,collisionRect:null,collisions:null,droppableRects:F,draggableNodes:A,draggingNode:null,draggingNodeRect:null,droppableContainers:C,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),X=C.getNodeFor(null==(r=J.current.over)?void 0:r.id),$=function(t){let{measure:n}=t;const[r,i]=(0,e.useState)(null),o=nv({callback:(0,e.useCallback)((e=>{for(const{target:t}of e)if(yg(t)){i((e=>{const r=n(t);return e?{...e,width:r.width,height:r.height}:r}));break}}),[n])}),a=(0,e.useCallback)((e=>{const t=cv(e);null==o||o.disconnect(),t&&(null==o||o.observe(t)),i(t?n(t):null)}),[n,o]),[s,l]=Ag(a);return(0,e.useMemo)((()=>({nodeRef:s,rect:r,setRef:l})),[r,s,l])}({measure:_.dragOverlay.measure}),K=null!=(i=$.nodeRef.current)?i:H,ee=T?null!=(o=$.rect)?o:W:null,te=Boolean($.nodeRef.current&&$.rect),ne=nm(re=te?null:W,tv(re));var re;const ie=sv(K?mg(K):null),oe=function(t){const n=(0,e.useRef)(t),r=Mg((e=>t?e&&e!==ov&&t&&n.current&&t.parentNode===n.current.parentNode?e:cm(t):ov),[t]);return(0,e.useEffect)((()=>{n.current=t}),[t]),r}(T?null!=X?X:H:null),ae=function(t,n){void 0===n&&(n=sm);const[r]=t,i=sv(r?mg(r):null),[o,a]=(0,e.useReducer)((function(){return t.length?t.map((e=>vm(e)?i:new Am(n(e),e))):lv}),lv),s=nv({callback:a});return t.length>0&&o===lv&&a(),Ig((()=>{t.length?t.forEach((e=>null==s?void 0:s.observe(e))):(null==s||s.disconnect(),a())}),[t]),o}(oe),se=Iv(h,{transform:{x:E.x-ne.x,y:E.y-ne.y,scaleX:1,scaleY:1},activatorEvent:L,active:k,activeNodeRect:W,containerNodeRect:Q,draggingNodeRect:ee,over:J.current.over,overlayNodeRect:$.rect,scrollableAncestors:oe,scrollableAncestorRects:ae,windowRect:ie}),le=q?kg(q,E):null,ce=function(t){const[n,r]=(0,e.useState)(null),i=(0,e.useRef)(t),o=(0,e.useCallback)((e=>{const t=dm(e.target);t&&r((e=>e?(e.set(t,hm(t)),new Map(e)):null))}),[]);return(0,e.useEffect)((()=>{const e=i.current;if(t!==e){n(e);const a=t.map((e=>{const t=dm(e);return t?(t.addEventListener("scroll",o,{passive:!0}),[t,hm(t)]):null})).filter((e=>null!=e));r(a.length?new Map(a):null),i.current=t}return()=>{n(t),n(e)};function n(e){e.forEach((e=>{const t=dm(e);null==t||t.removeEventListener("scroll",o)}))}}),[o,t]),(0,e.useMemo)((()=>t.length?n?Array.from(n.values()).reduce(((e,t)=>kg(e,t)),Wg):wm(t):Wg),[t,n])}(oe),ue=av(ce),de=av(ce,[W]),fe=kg(se,ue),pe=ee?im(ee,se):null,he=k&&pe?f({active:k,collisionRect:pe,droppableRects:F,droppableContainers:U,pointerCoordinates:le}):null,ge=Kg(he,"id"),[me,ve]=(0,e.useState)(null),ye=function(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}(te?se:kg(se,de),null!=(a=null==me?void 0:me.rect)?a:null,W),be=(0,e.useCallback)(((e,t)=>{let{sensor:n,options:r}=t;if(null==j.current)return;const i=A.get(j.current);if(!i)return;const o=e.nativeEvent,a=new n({active:j.current,activeNode:i,event:o,options:r,context:J,onStart(e){const t=j.current;if(null==t)return;const n=A.get(t);if(!n)return;const{onDragStart:r}=P.current,i={active:{id:t,data:n.data,rect:S}};(0,fg.unstable_batchedUpdates)((()=>{null==r||r(i),w(Tv.Initializing),y({type:Hg.DragStart,initialCoordinates:e,active:t}),b({type:"onDragStart",event:i})}))},onMove(e){y({type:Hg.DragMove,coordinates:e})},onEnd:s(Hg.DragEnd),onCancel:s(Hg.DragCancel)});function s(e){return async function(){const{active:t,collisions:n,over:r,scrollAdjustedTranslate:i}=J.current;let a=null;if(t&&i){const{cancelDrop:s}=P.current;a={activatorEvent:o,active:t,collisions:n,delta:i,over:r},e===Hg.DragEnd&&"function"==typeof s&&await Promise.resolve(s(a))&&(e=Hg.DragCancel)}j.current=null,(0,fg.unstable_batchedUpdates)((()=>{y({type:e}),w(Tv.Uninitialized),ve(null),O(null),R(null);const t=e===Hg.DragEnd?"onDragEnd":"onDragCancel";if(a){const e=P.current[t];null==e||e(a),b({type:t,event:a})}}))}}(0,fg.unstable_batchedUpdates)((()=>{O(a),R(e.nativeEvent)}))}),[A]),xe=(0,e.useCallback)(((e,t)=>(n,r)=>{const i=n.nativeEvent,o=A.get(r);if(null!==j.current||!o||i.dndKit||i.defaultPrevented)return;const a={active:o};!0===e(n,t.options,a)&&(i.dndKit={capturedBy:t.sensor},j.current=r,be(n,t))}),[A,be]),Ie=function(t,n){return(0,e.useMemo)((()=>t.reduce(((e,t)=>{const{sensor:r}=t;return[...e,...r.activators.map((e=>({eventName:e.eventName,handler:n(e.handler,t)})))]}),[])),[t,n])}(d,xe);!function(t){(0,e.useEffect)((()=>{if(!pg)return;const e=t.map((e=>{let{sensor:t}=e;return null==t.setup?void 0:t.setup()}));return()=>{for(const t of e)null==t||t()}}),t.map((e=>{let{sensor:t}=e;return t})))}(d),Ig((()=>{W&&I===Tv.Initializing&&w(Tv.Initialized)}),[W,I]),(0,e.useEffect)((()=>{const{onDragMove:e}=P.current,{active:t,activatorEvent:n,collisions:r,over:i}=J.current;if(!t||!n)return;const o={active:t,activatorEvent:n,collisions:r,delta:{x:fe.x,y:fe.y},over:i};(0,fg.unstable_batchedUpdates)((()=>{null==e||e(o),b({type:"onDragMove",event:o})}))}),[fe.x,fe.y]),(0,e.useEffect)((()=>{const{active:e,activatorEvent:t,collisions:n,droppableContainers:r,scrollAdjustedTranslate:i}=J.current;if(!e||null==j.current||!t||!i)return;const{onDragOver:o}=P.current,a=r.get(ge),s=a&&a.rect.current?{id:a.id,rect:a.rect.current,data:a.data,disabled:a.disabled}:null,l={active:e,activatorEvent:t,collisions:n,delta:{x:i.x,y:i.y},over:s};(0,fg.unstable_batchedUpdates)((()=>{ve(s),null==o||o(l),b({type:"onDragOver",event:l})}))}),[ge]),Ig((()=>{J.current={activatorEvent:L,active:k,activeNode:H,collisionRect:pe,collisions:he,droppableRects:F,draggableNodes:A,draggingNode:K,draggingNodeRect:ee,droppableContainers:C,over:me,scrollableAncestors:oe,scrollAdjustedTranslate:fe},S.current={initial:ee,translated:pe}}),[k,H,he,pe,A,K,ee,F,C,me,oe,fe]),function(t){let{acceleration:n,activator:r=Ym.Pointer,canScroll:i,draggingRect:o,enabled:a,interval:s=5,order:l=Wm.TreeOrder,pointerCoordinates:c,scrollableAncestors:u,scrollableAncestorRects:d,delta:f,threshold:p}=t;const h=function(e){let{delta:t,disabled:n}=e;const r=Eg(t);return Mg((e=>{if(n||!r||!e)return Jm;const i=Math.sign(t.x-r.x),o=Math.sign(t.y-r.y);return{x:{[gm.Backward]:e.x[gm.Backward]||-1===i,[gm.Forward]:e.x[gm.Forward]||1===i},y:{[gm.Backward]:e.y[gm.Backward]||-1===o,[gm.Forward]:e.y[gm.Forward]||1===o}}}),[n,t,r])}({delta:f,disabled:!a}),[g,m]=function(){const t=(0,e.useRef)(null);return[(0,e.useCallback)(((e,n)=>{t.current=setInterval(e,n)}),[]),(0,e.useCallback)((()=>{null!==t.current&&(clearInterval(t.current),t.current=null)}),[])]}(),v=(0,e.useRef)({x:0,y:0}),y=(0,e.useRef)({x:0,y:0}),b=(0,e.useMemo)((()=>{switch(r){case Ym.Pointer:return c?{top:c.y,bottom:c.y,left:c.x,right:c.x}:null;case Ym.DraggableRect:return o}}),[r,o,c]),x=(0,e.useRef)(null),I=(0,e.useCallback)((()=>{const e=x.current;if(!e)return;const t=v.current.x*y.current.x,n=v.current.y*y.current.y;e.scrollBy(t,n)}),[]),w=(0,e.useMemo)((()=>l===Wm.TreeOrder?[...u].reverse():u),[l,u]);(0,e.useEffect)((()=>{if(a&&u.length&&b){for(const e of w){if(!1===(null==i?void 0:i(e)))continue;const t=u.indexOf(e),r=d[t];if(!r)continue;const{direction:o,speed:a}=xm(e,r,b,n,p);for(const e of["x","y"])h[e][o[e]]||(a[e]=0,o[e]=0);if(a.x>0||a.y>0)return m(),x.current=e,g(I,s),v.current=a,void(y.current=o)}v.current={x:0,y:0},y.current={x:0,y:0},m()}else m()}),[n,I,i,m,a,s,JSON.stringify(b),JSON.stringify(h),g,u,w,d,JSON.stringify(p)])}({...Y,delta:E,draggingRect:pe,pointerCoordinates:le,scrollableAncestors:oe,scrollableAncestorRects:ae});const we=(0,e.useMemo)((()=>({active:k,activeNode:H,activeNodeRect:W,activatorEvent:L,collisions:he,containerNodeRect:Q,dragOverlay:$,draggableNodes:A,droppableContainers:C,droppableRects:F,over:me,measureDroppableContainers:G,scrollableAncestors:oe,scrollableAncestorRects:ae,measuringConfiguration:_,measuringScheduled:Z,windowRect:ie})),[k,H,W,L,he,Q,$,A,C,F,me,G,oe,ae,_,Z,ie]),Te=(0,e.useMemo)((()=>({activatorEvent:L,activators:Ie,active:k,activeNodeRect:W,ariaDescribedById:{draggable:z},dispatch:y,draggableNodes:A,over:me,measureDroppableContainers:G})),[L,Ie,k,W,y,z,A,me,G]);return t().createElement(Bg.Provider,{value:x},t().createElement(mv.Provider,{value:Te},t().createElement(vv.Provider,{value:we},t().createElement(wv.Provider,{value:ye},u)),t().createElement(xv,{disabled:!1===(null==l?void 0:l.restoreFocus)})),t().createElement(Zg,{...l,hiddenTextDescribedById:z}))})),Ev=(0,e.createContext)(null),Cv="button";function Nv(){return(0,e.useContext)(vv)}const Sv={timeout:25};function kv(t){let{data:n,disabled:r=!1,id:i,resizeObserverConfig:o}=t;const a=Ng("Droppable"),{active:s,dispatch:l,over:c,measureDroppableContainers:u}=(0,e.useContext)(mv),d=(0,e.useRef)({disabled:r}),f=(0,e.useRef)(!1),p=(0,e.useRef)(null),h=(0,e.useRef)(null),{disabled:g,updateMeasurementsFor:m,timeout:v}={...Sv,...o},y=Tg(null!=m?m:i),b=nv({callback:(0,e.useCallback)((()=>{f.current?(null!=h.current&&clearTimeout(h.current),h.current=setTimeout((()=>{u(Array.isArray(y.current)?y.current:[y.current]),h.current=null}),v)):f.current=!0}),[v]),disabled:g||!s}),x=(0,e.useCallback)(((e,t)=>{b&&(t&&(b.unobserve(t),f.current=!1),e&&b.observe(e))}),[b]),[I,w]=Ag(x),T=Tg(n);return(0,e.useEffect)((()=>{b&&I.current&&(b.disconnect(),f.current=!1,b.observe(I.current))}),[I,b]),Ig((()=>(l({type:Hg.RegisterDroppable,element:{id:i,key:a,disabled:r,node:I,rect:p,data:T}}),()=>l({type:Hg.UnregisterDroppable,key:a,id:i}))),[i]),(0,e.useEffect)((()=>{r!==d.current.disabled&&(l({type:Hg.SetDroppableDisabled,id:i,key:a,disabled:r}),d.current.disabled=r)}),[i,a,r,l]),{active:s,rect:p,isOver:(null==c?void 0:c.id)===i,node:I,over:c,setNodeRef:w}}function jv(n){let{animation:r,children:i}=n;const[o,a]=(0,e.useState)(null),[s,l]=(0,e.useState)(null),c=Eg(i);return i||o||!c||a(c),Ig((()=>{if(!s)return;const e=null==o?void 0:o.key,t=null==o?void 0:o.props.id;null!=e&&null!=t?Promise.resolve(r(t,s)).then((()=>{a(null)})):a(null)}),[r,o,s]),t().createElement(t().Fragment,null,i,o?(0,e.cloneElement)(o,{ref:l}):null)}const Dv={x:0,y:0,scaleX:1,scaleY:1};function Ov(e){let{children:n}=e;return t().createElement(mv.Provider,{value:gv},t().createElement(wv.Provider,{value:Dv},n))}const Lv={position:"fixed",touchAction:"none"},Rv=e=>Dg(e)?"transform 250ms ease":void 0,Pv=(0,e.forwardRef)(((e,n)=>{let{as:r,activatorEvent:i,adjustScale:o,children:a,className:s,rect:l,style:c,transform:u,transition:d=Rv}=e;if(!l)return null;const f=o?u:{...u,scaleX:1,scaleY:1},p={...Lv,width:l.width,height:l.height,top:l.top,left:l.left,transform:Lg.Transform.toString(f),transformOrigin:o&&i?Qg(i,l):void 0,transition:"function"==typeof d?d(i):d,...c};return t().createElement(r,{className:s,style:p,ref:n},a)})),zv={duration:250,easing:"ease",keyframes:e=>{let{transform:{initial:t,final:n}}=e;return[{transform:Lg.Transform.toString(t)},{transform:Lg.Transform.toString(n)}]},sideEffects:(e=>t=>{let{active:n,dragOverlay:r}=t;const i={},{styles:o,className:a}=e;if(null!=o&&o.active)for(const[e,t]of Object.entries(o.active))void 0!==t&&(i[e]=n.node.style.getPropertyValue(e),n.node.style.setProperty(e,t));if(null!=o&&o.dragOverlay)for(const[e,t]of Object.entries(o.dragOverlay))void 0!==t&&r.node.style.setProperty(e,t);return null!=a&&a.active&&n.node.classList.add(a.active),null!=a&&a.dragOverlay&&r.node.classList.add(a.dragOverlay),function(){for(const[e,t]of Object.entries(i))n.node.style.setProperty(e,t);null!=a&&a.active&&n.node.classList.remove(a.active)}})({styles:{active:{opacity:"0"}}})};let Uv=0;const _v=t().memo((n=>{let{adjustScale:r=!1,children:i,dropAnimation:o,style:a,transition:s,modifiers:l,wrapperElement:c="div",className:u,zIndex:d=999}=n;const{activatorEvent:f,active:p,activeNodeRect:h,containerNodeRect:g,draggableNodes:m,droppableContainers:v,dragOverlay:y,over:b,measuringConfiguration:x,scrollableAncestors:I,scrollableAncestorRects:w,windowRect:T}=Nv(),M=(0,e.useContext)(wv),A=(E=null==p?void 0:p.id,(0,e.useMemo)((()=>{if(null!=E)return Uv++,Uv}),[E]));var E;const C=Iv(l,{activatorEvent:f,active:p,activeNodeRect:h,containerNodeRect:g,draggingNodeRect:y.rect,over:b,overlayNodeRect:y.rect,scrollableAncestors:I,scrollableAncestorRects:w,transform:M,windowRect:T}),N=tv(h),S=function(e){let{config:t,draggableNodes:n,droppableContainers:r,measuringConfiguration:i}=e;return wg(((e,o)=>{if(null===t)return;const a=n.get(e);if(!a)return;const s=a.node.current;if(!s)return;const l=cv(o);if(!l)return;const{transform:c}=mg(o).getComputedStyle(o),u=om(c);if(!u)return;const d="function"==typeof t?t:function(e){const{duration:t,easing:n,sideEffects:r,keyframes:i}={...zv,...e};return e=>{let{active:o,dragOverlay:a,transform:s,...l}=e;if(!t)return;const c=a.rect.left-o.rect.left,u=a.rect.top-o.rect.top,d={scaleX:1!==s.scaleX?o.rect.width*s.scaleX/a.rect.width:1,scaleY:1!==s.scaleY?o.rect.height*s.scaleY/a.rect.height:1},f={x:s.x-c,y:s.y-u,...d},p=i({...l,active:o,dragOverlay:a,transform:{initial:s,final:f}}),[h]=p,g=p[p.length-1];if(JSON.stringify(h)===JSON.stringify(g))return;const m=null==r?void 0:r({active:o,dragOverlay:a,...l}),v=a.node.animate(p,{duration:t,easing:n,fill:"forwards"});return new Promise((e=>{v.onfinish=()=>{null==m||m(),e()}}))}}(t);return Tm(s,i.draggable.measure),d({active:{id:e,data:a.data,node:s,rect:i.draggable.measure(s)},draggableNodes:n,dragOverlay:{node:o,rect:i.dragOverlay.measure(l)},droppableContainers:r,measuringConfiguration:i,transform:u})}))}({config:o,draggableNodes:m,droppableContainers:v,measuringConfiguration:x}),k=N?y.setRef:void 0;return t().createElement(Ov,null,t().createElement(jv,{animation:S},p&&A?t().createElement(Pv,{key:A,id:p.id,ref:k,as:c,activatorEvent:f,adjustScale:r,className:u,transition:s,rect:N,style:{zIndex:d,...a},transform:C},i):null))}));function Bv(e,t){return e.reduce(((e,n,r)=>{const i=t.get(n);return i&&(e[r]=i),e}),Array(e.length))}const Fv=e=>{let{rects:t,activeIndex:n,overIndex:r,index:i}=e;const o=function(e,t,n){const r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}(t,r,n),a=t[i],s=o[i];return s&&a?{x:s.left-a.left,y:s.top-a.top,scaleX:s.width/a.width,scaleY:s.height/a.height}:null},Gv="Sortable",Zv=t().createContext({activeIndex:-1,containerId:Gv,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:Fv,disabled:{draggable:!1,droppable:!1}});function Hv(n){let{children:r,id:i,items:o,strategy:a=Fv,disabled:s=!1}=n;const{active:l,dragOverlay:c,droppableRects:u,over:d,measureDroppableContainers:f}=Nv(),p=Ng(Gv,i),h=Boolean(null!==c.rect),g=(0,e.useMemo)((()=>o.map((e=>"object"==typeof e&&"id"in e?e.id:e))),[o]),m=null!=l,v=l?g.indexOf(l.id):-1,y=d?g.indexOf(d.id):-1,b=(0,e.useRef)(g),x=!function(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(g,b.current),I=-1!==y&&-1===v||x,w=function(e){return"boolean"==typeof e?{draggable:e,droppable:e}:e}(s);Ig((()=>{x&&m&&f(g)}),[x,g,m,f]),(0,e.useEffect)((()=>{b.current=g}),[g]);const T=(0,e.useMemo)((()=>({activeIndex:v,containerId:p,disabled:w,disableTransforms:I,items:g,overIndex:y,useDragOverlay:h,sortedRects:Bv(g,u),strategy:a})),[v,p,w.draggable,w.droppable,I,g,y,u,h,a]);return t().createElement(Zv.Provider,{value:T},r)}function qv(e){if(!e)return!1;const t=e.data.current;return!!(t&&"sortable"in t&&"object"==typeof t.sortable&&"containerId"in t.sortable&&"items"in t.sortable&&"index"in t.sortable)}const Yv=[km.Down,km.Right,km.Up,km.Left],Vv=(e,t)=>{let{context:{active:n,collisionRect:r,droppableRects:i,droppableContainers:o,over:a,scrollableAncestors:s}}=t;if(Yv.includes(e.code)){if(e.preventDefault(),!n||!r)return;const t=[];o.getEnabled().forEach((n=>{if(!n||null!=n&&n.disabled)return;const o=i.get(n.id);if(o)switch(e.code){case km.Down:r.top<o.top&&t.push(n);break;case km.Up:r.top>o.top&&t.push(n);break;case km.Left:r.left>o.left&&t.push(n);break;case km.Right:r.left<o.left&&t.push(n)}}));const u=(e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const i=$g(t),o=[];for(const e of r){const{id:t}=e,r=n.get(t);if(r){const n=$g(r),a=i.reduce(((e,t,r)=>{return e+(i=n[r],o=t,Math.sqrt(Math.pow(i.x-o.x,2)+Math.pow(i.y-o.y,2)));var i,o}),0),s=Number((a/4).toFixed(4));o.push({id:t,data:{droppableContainer:e,value:s}})}}return o.sort(Jg)})({active:n,collisionRect:r,droppableRects:i,droppableContainers:t,pointerCoordinates:null});let d=Kg(u,"id");if(d===(null==a?void 0:a.id)&&u.length>1&&(d=u[1].id),null!=d){const e=o.get(n.id),t=o.get(d),a=t?i.get(t.id):null,u=null==t?void 0:t.node.current;if(u&&a&&e&&t){const n=cm(u).some(((e,t)=>s[t]!==e)),i=Wv(e,t),o=(c=t,!(!qv(l=e)||!qv(c))&&!!Wv(l,c)&&l.data.current.sortable.index<c.data.current.sortable.index),d=n||!i?{x:0,y:0}:{x:o?r.width-a.width:0,y:o?r.height-a.height:0},f={x:a.left,y:a.top};return d.x&&d.y?f:jg(f,d)}}}var l,c};function Wv(e,t){return!(!qv(e)||!qv(t))&&e.data.current.sortable.containerId===t.data.current.sortable.containerId}const Qv=t().createContext({}),Jv=ic(Qv,(({scores:e,doc:t,gradingStructure:n,gradingText:r,answers:i,singleGrading:o})=>{const a=Sd(i,"questionId"),s=function(e,t,n,r){return jn(e.map((e=>function(e,t,n,r){const i=jn(ke(e).map((e=>{const i=Ce(e,"question-id"),o=r[i];return o?"choice"===o.type?((e,n)=>{var r;const i=Xv(t,e);return i?null===(r=i.options.find((e=>e.id===Number(n.value))))||void 0===r?void 0:r.score:0})(i,o):(e=>{var t,r;const i=$v(n,e);return i&&(null===(r=[i.inspection,null===(t=i.censoring)||void 0===t?void 0:t.scores[0],i.autograding,i.pregrading].find(Boolean))||void 0===r?void 0:r.score)||0})(i):0})));return 0===xe(e,"question").length&&i<0?0:i}(e,t,n,r))))}(Te(t.documentElement,"question",!1),n,e,a);return{answersByQuestionId:a,gradingStructure:n,scores:e,totalScore:s,gradingText:r,singleGrading:o}}));function Xv(e,t){const n=(null==e?void 0:e.questions.filter((e=>"choicegroup"===e.type)))||[];for(let e=0,r=n.length;e<r;e++){const r=n[e];for(let e=0,n=r.choices.length;e<n;e++)if(r.choices[e].id===t)return r.choices[e]}}function $v(e,t){return e.find((e=>e.questionId===t))}const Kv=()=>{const{gradingStructure:t}=(0,e.useContext)(Qv);return void 0===t},ey=t().memo((function({answers:n,displayNumber:r,children:i,multilineAnswer:o,questionId:a}){var s;const{displayNumber:l}=(0,e.useContext)(dd),c=Kv(),u=r?`${l}.${null==r?void 0:r.replace(".","")}`:void 0,{answersByQuestionId:d}=(0,e.useContext)(Qv),f=!(!a||!d)&&(null===(s=d[a])||void 0===s?void 0:s.answerNonAnswer),{t:p}=Dl();if(c)return null;const h=n.length>1&&r;return t().createElement("span",{className:Er()("e-result-scorecount","e-float-right",{"e-result-scorecount-multiline-answer":o}),id:u},f&&t().createElement("div",{className:"non-answer"},p("grading.non-answer-not-graded")),t().createElement("span",{className:"e-result-scorecount-border-wrap"},h&&t().createElement("sup",{className:"e-result-scorecount-sup e-mrg-r-1","aria-hidden":"true"},r),i))})),ty=t().memo((function({score:n,maxScore:r,displayNumber:i,questionId:o}){const{answers:a}=(0,e.useContext)(dd),{t:s}=Dl(),l={answers:a,displayNumber:i,questionId:o};return t().createElement(ey,{...l},"number"==typeof n?t().createElement("b",null,n):t().createElement("span",{className:"e-result-scorecount-empty"})," ",r?`/ ${r} `:null," ",s("points",{count:""}))})),ny=({element:e,renderChildNodes:n,style:r,className:i})=>{const o=n(e).length>0,{t:a}=Dl();return t().createElement("div",{className:i,style:r},t().createElement("div",{className:"option-content"},o?n(e):t().createElement("i",{style:{color:"grey"}},a("dnd-answers.answer-missing"))))},ry=({element:n,renderChildNodes:r})=>{const i=Ce(n,"option-id"),{attributes:o,listeners:a,setNodeRef:s,isDragging:l,setActivatorNodeRef:c}=function(t){let{id:n,data:r,disabled:i=!1,attributes:o}=t;const a=Ng("Droppable"),{activators:s,activatorEvent:l,active:c,activeNodeRect:u,ariaDescribedById:d,draggableNodes:f,over:p}=(0,e.useContext)(mv),{role:h=Cv,roleDescription:g="draggable",tabIndex:m=0}=null!=o?o:{},v=(null==c?void 0:c.id)===n,y=(0,e.useContext)(v?wv:Ev),[b,x]=Ag(),[I,w]=Ag(),T=function(t,n){return(0,e.useMemo)((()=>t.reduce(((e,t)=>{let{eventName:r,handler:i}=t;return e[r]=e=>{i(e,n)},e}),{})),[t,n])}(s,n),M=Tg(r);return Ig((()=>(f.set(n,{id:n,key:a,node:b,activatorNode:I,data:M}),()=>{const e=f.get(n);e&&e.key===a&&f.delete(n)})),[f,n]),{active:c,activatorEvent:l,activeNodeRect:u,attributes:(0,e.useMemo)((()=>({role:h,tabIndex:m,"aria-disabled":i,"aria-pressed":!(!v||h!==Cv)||void 0,"aria-roledescription":g,"aria-describedby":d.draggable})),[i,h,m,v,g,d.draggable]),isDragging:v,listeners:i?void 0:T,node:b,over:p,setNodeRef:x,setActivatorNodeRef:w,transform:y}}({id:i}),u={opacity:l?.3:1};return t().createElement("div",{ref:s,className:"e-dnd-answer-option","data-testid":"dnd-answer-option"},t().createElement(ny,{element:n,renderChildNodes:r,style:u}),t().createElement("div",{...a,...o,ref:c,className:"drag-handle"},t().createElement(qa,{size:"1x",icon:$a})))},iy=({renderChildNodes:e,correctIds:n,classes:r=[],questionId:i,page:o,answerOptionElements:a=[]})=>{const s=a.some((e=>we(e,"image"))),l=a.some((e=>we(e,"audio"))),{active:c,isOver:u}=kv({id:i}),{t:d}=Dl();return t().createElement("div",{className:Er()(["e-dnd-answer-droppable",...r],{"has-images":s,"has-audio":l,hovered:u}),"data-testid":"dnd-droppable"},null==a?void 0:a.map((r=>{const i=Number(r.getAttribute("option-id")),a=null==n?void 0:n.includes(i);return t().createElement(t().Fragment,{key:r.getAttribute("option-id")},"exam"===o?t().createElement(ry,{element:r,renderChildNodes:e,key:i}):t().createElement("div",{className:"e-dnd-answer-option"},t().createElement(ny,{element:r,renderChildNodes:e,key:i,className:n?a?"correct-answer":"wrong-answer":void 0})))})),!a.length&&(c?t().createElement("i",{className:"droppable-drop-here"},d("dnd-answers.drop-here")):t().createElement("i",{className:"droppable-no-answer"},d("dnd-answers.no-answer"))))},oy=({id:e,size:n="small",score:r})=>{const{t:i}=Dl(),o="inline"===n?"sup":"span";return t().createElement(o,{className:Er()("e-score e-nowrap",{"e-score--small e-font-size-m e-semibold":"small"===n,"e-score--large e-font-size-l e-semibold":"large"===n,"e-score--inline e-font-size-xs":"inline"===n}),id:e},i("points",{count:r}))};function ay(e){return`${ul(e.split("."))}.`}const sy=({element:n,renderChildNodes:r,itemIds:i,page:o,answerOptionElements:a})=>{var s;const{t:l}=Dl(),c=n.getAttribute("question-id"),u=Number(c),d=n.getAttribute("display-number"),f=Ce(n,"max-score"),p=!!we(n,"image"),h=we(n,"dnd-answer-title"),g=h&&r(h).length>0,{gradingStructure:m,answersByQuestionId:v}=(0,e.useContext)(Qv),y=!m,b=v&&!!(null===(s=v[u])||void 0===s?void 0:s.value),{correctOptionIds:x,scoreValue:I}=ly(u,d),{setNodeRef:w,isOver:T}=kv({id:c}),M=ay(d);return t().createElement(Hv,{id:c,items:i},t().createElement("span",{ref:w},t().createElement("div",{className:Er()("e-dnd-answer",{"no-answer":"results"===o&&!b}),"data-question-id":c,key:c},t().createElement("div",{className:"anchor",id:`question-nr-${d}`}),h&&(g?t().createElement("span",{className:Er()("e-dnd-answer-title",{"has-images":p,hovered:T})},r(h)):t().createElement("i",{style:{color:"grey"}},l("dnd-answers.question-missing"))),t().createElement("div",{className:"connection-line"}),t().createElement(iy,{page:o,answerOptionElements:a,questionId:c,renderChildNodes:r,correctIds:x}),y?f&&t().createElement(oy,{score:f,size:"small"}):t().createElement(ty,{score:I,maxScore:f,displayNumber:M,questionId:u}))))},ly=(t,n)=>{var r,i,o,a;const{answersByQuestionId:s,gradingStructure:l}=(0,e.useContext)(Qv);if(!l)return{correctOptionIds:void 0,scoreValue:void 0};const c=s&&(null===(r=s[t])||void 0===r?void 0:r.value)?s[t]:void 0,u=Xv(l,t),d=(null==c?void 0:c.value)?null!==(o=null===(i=null==u?void 0:u.options.find((e=>e.id===Number(c.value)&&e.correct)))||void 0===i?void 0:i.score)&&void 0!==o?o:0:void 0,f=null==l?void 0:l.questions.find((e=>e.displayNumber===n)),p=(null===(a=null==f?void 0:f.choices.find((e=>e.id===t)))||void 0===a?void 0:a.options)||[];return{correctOptionIds:null==p?void 0:p.filter((e=>e.correct)).map((e=>e.id)),scoreValue:d}},cy=({items:e,renderChildNodes:n,answerOptionElements:r})=>{const{setNodeRef:i}=kv({id:"root"}),{t:o}=Dl();return t().createElement(Hv,{items:e},t().createElement("span",{className:"droppable-title"},o("dnd-answers.all-answer-options")),t().createElement("span",{ref:i},t().createElement(iy,{renderChildNodes:n,questionId:"root",page:"exam",classes:["root"],answerOptionElements:r})))};a(4828);const uy=e=>"object"==typeof e&&null!=e&&1===e.nodeType,dy=(e,t)=>(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e,fy=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const n=getComputedStyle(e,null);return dy(n.overflowY,t)||dy(n.overflowX,t)||(e=>{const t=(e=>{if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}})(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)})(e)}return!1},py=(e,t,n,r,i,o,a,s)=>o<e&&a>t||o>e&&a<t?0:o<=e&&s<=n||a>=t&&s>=n?o-e-r:a>t&&s<n||o<e&&s>n?a-t+i:0,hy=e=>{const t=e.parentElement;return null==t?e.getRootNode().host||null:t};var gy=function(){return gy=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},gy.apply(this,arguments)};Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;var my=0;function vy(){}function yy(e,t,n){return e===t||t instanceof n.Node&&e.contains&&e.contains(t)}function by(e,t){var n;function r(){n&&clearTimeout(n)}function i(){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];r(),n=setTimeout((function(){n=null,e.apply(void 0,o)}),t)}return i.cancel=r,i}function xy(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return t.some((function(t){return t&&t.apply(void 0,[e].concat(r)),e.preventDownshiftDefault||e.hasOwnProperty("nativeEvent")&&e.nativeEvent.preventDownshiftDefault}))}}function Iy(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){t.forEach((function(t){"function"==typeof t?t(e):t&&(t.current=e)}))}}function wy(e,t){return e&&t?Object.keys(e).reduce((function(n,r){return n[r]=function(e,t){return void 0!==e[t]}(t,r)?t[r]:e[r],n}),{}):e}function Ty(e,t,n,r,i){void 0===i&&(i=!1);var o=n.length;if(0===o)return-1;var a=o-1;("number"!=typeof e||e<0||e>a)&&(e=t>0?-1:a+1);var s=e+t;s<0?s=i?a:0:s>a&&(s=i?0:a);var l=My(s,t<0,n,r,i);return-1===l?e>=o?-1:e:l}function My(e,t,n,r,i){void 0===i&&(i=!1);var o=n.length;if(t){for(var a=e;a>=0;a--)if(!r(n[a],a))return a}else for(var s=e;s<o;s++)if(!r(n[s],s))return s;return i?My(t?o-1:0,t,n,r):-1}function Ay(e,t,n,r){return void 0===r&&(r=!0),n&&t.some((function(t){return t&&(yy(t,e,n)||r&&yy(t,n.document.activeElement,n))}))}var Ey=by((function(e){Cy(e).textContent=""}),500);function Cy(e){var t=e.getElementById("a11y-status-message");return t||((t=e.createElement("div")).setAttribute("id","a11y-status-message"),t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-relevant","additions text"),Object.assign(t.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px"}),e.body.appendChild(t),t)}var Ny={highlightedIndex:-1,isOpen:!1,selectedItem:null,inputValue:""};var Sy=by((function(e,t){!function(e,t){e&&t&&(Cy(t).textContent=e,Ey(t))}(e,t)}),200),ky="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?e.useLayoutEffect:e.useEffect,jy="useId"in t()?function(n){var r=n.id,i=n.labelId,o=n.menuId,a=n.getItemId,s=n.toggleButtonId,l=n.inputId,c="downshift-"+t().useId();return r||(r=c),(0,e.useRef)({labelId:i||r+"-label",menuId:o||r+"-menu",getItemId:a||function(e){return r+"-item-"+e},toggleButtonId:s||r+"-toggle-button",inputId:l||r+"-input"}).current}:function(t){var n=t.id,r=void 0===n?"downshift-"+String(my++):n,i=t.labelId,o=t.menuId,a=t.getItemId,s=t.toggleButtonId,l=t.inputId;return(0,e.useRef)({labelId:i||r+"-label",menuId:o||r+"-menu",getItemId:a||function(e){return r+"-item-"+e},toggleButtonId:s||r+"-toggle-button",inputId:l||r+"-input"}).current};function Dy(e){return""+e.slice(0,1).toUpperCase()+e.slice(1)}function Oy(t){var n=(0,e.useRef)(t);return n.current=t,n}function Ly(t,n,r,i){var o=(0,e.useRef)(),a=(0,e.useRef)(),s=(0,e.useCallback)((function(e,n){a.current=n,e=wy(e,n.props);var r=t(e,n);return n.props.stateReducer(e,Wd({},n,{changes:r}))}),[t]),l=(0,e.useReducer)(s,n,r),c=l[0],u=l[1],d=Oy(n),f=(0,e.useCallback)((function(e){return u(Wd({props:d.current},e))}),[d]),p=a.current;return(0,e.useEffect)((function(){var e=wy(o.current,null==p?void 0:p.props);p&&o.current&&!i(e,c)&&function(e,t,n){var r=e.props,i=e.type,o={};Object.keys(t).forEach((function(r){!function(e,t,n,r){var i=t.props,o=t.type,a="on"+Dy(e)+"Change";i[a]&&void 0!==r[e]&&r[e]!==n[e]&&i[a](Wd({type:o},r))}(r,e,t,n),n[r]!==t[r]&&(o[r]=n[r])})),r.onStateChange&&Object.keys(o).length&&r.onStateChange(Wd({type:i},o))}(p,e,c),o.current=c}),[c,p,i]),[c,f]}var Ry={itemToString:function(e){return e?String(e):""},itemToKey:function(e){return e},stateReducer:function(e,t){return t.changes},scrollIntoView:function(e,t){e&&((e,t)=>{var n,r,i,o;if("undefined"==typeof document)return[];const{scrollMode:a,block:s,inline:l,boundary:c,skipOverflowHiddenElements:u}=t,d="function"==typeof c?c:e=>e!==c;if(!uy(e))throw new TypeError("Invalid target");const f=document.scrollingElement||document.documentElement,p=[];let h=e;for(;uy(h)&&d(h);){if(h=hy(h),h===f){p.push(h);break}null!=h&&h===document.body&&fy(h)&&!fy(document.documentElement)||null!=h&&fy(h,u)&&p.push(h)}const g=null!=(r=null==(n=window.visualViewport)?void 0:n.width)?r:innerWidth,m=null!=(o=null==(i=window.visualViewport)?void 0:i.height)?o:innerHeight,{scrollX:v,scrollY:y}=window,{height:b,width:x,top:I,right:w,bottom:T,left:M}=e.getBoundingClientRect(),{top:A,right:E,bottom:C,left:N}=(e=>{const t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e);let S="start"===s||"nearest"===s?I-A:"end"===s?T+C:I+b/2-A+C,k="center"===l?M+x/2-N+E:"end"===l?w+E:M-N;const j=[];for(let e=0;e<p.length;e++){const t=p[e],{height:n,width:r,top:i,right:o,bottom:c,left:u}=t.getBoundingClientRect();if("if-needed"===a&&I>=0&&M>=0&&T<=m&&w<=g&&I>=i&&T<=c&&M>=u&&w<=o)return j;const d=getComputedStyle(t),h=parseInt(d.borderLeftWidth,10),A=parseInt(d.borderTopWidth,10),E=parseInt(d.borderRightWidth,10),C=parseInt(d.borderBottomWidth,10);let N=0,D=0;const O="offsetWidth"in t?t.offsetWidth-t.clientWidth-h-E:0,L="offsetHeight"in t?t.offsetHeight-t.clientHeight-A-C:0,R="offsetWidth"in t?0===t.offsetWidth?0:r/t.offsetWidth:0,P="offsetHeight"in t?0===t.offsetHeight?0:n/t.offsetHeight:0;if(f===t)N="start"===s?S:"end"===s?S-m:"nearest"===s?py(y,y+m,m,A,C,y+S,y+S+b,b):S-m/2,D="start"===l?k:"center"===l?k-g/2:"end"===l?k-g:py(v,v+g,g,h,E,v+k,v+k+x,x),N=Math.max(0,N+y),D=Math.max(0,D+v);else{N="start"===s?S-i-A:"end"===s?S-c+C+L:"nearest"===s?py(i,c,n,A,C+L,S,S+b,b):S-(i+n/2)+L/2,D="start"===l?k-u-h:"center"===l?k-(u+r/2)+O/2:"end"===l?k-o+E+O:py(u,o,r,h,E+O,k,k+x,x);const{scrollLeft:e,scrollTop:a}=t;N=0===P?0:Math.max(0,Math.min(a+N/P,t.scrollHeight-n/P+L)),D=0===R?0:Math.max(0,Math.min(e+D/R,t.scrollWidth-r/R+O)),S+=a-N,k+=e-D}j.push({el:t,top:N,left:D})}return j})(e,{boundary:t,block:"nearest",scrollMode:"if-needed"}).forEach((function(e){var t=e.el,n=e.top,r=e.left;t.scrollTop=n,t.scrollLeft=r}))},environment:"undefined"==typeof window?void 0:window};function Py(e,t,n){void 0===n&&(n=Ny);var r=e["default"+Dy(t)];return void 0!==r?r:n[t]}function zy(e,t,n){void 0===n&&(n=Ny);var r=e[t];if(void 0!==r)return r;var i=e["initial"+Dy(t)];return void 0!==i?i:Py(e,t,n)}function Uy(e){var t=zy(e,"selectedItem"),n=zy(e,"isOpen"),r=function(e){var t=zy(e,"highlightedIndex");return t>-1&&e.isItemDisabled(e.items[t],t)?-1:t}(e),i=zy(e,"inputValue");return{highlightedIndex:r<0&&t&&n?e.items.findIndex((function(n){return e.itemToKey(n)===e.itemToKey(t)})):r,isOpen:n,selectedItem:t,inputValue:i}}function _y(e,t,n){var r=e.items,i=e.initialHighlightedIndex,o=e.defaultHighlightedIndex,a=e.isItemDisabled,s=e.itemToKey,l=t.selectedItem,c=t.highlightedIndex;return 0===r.length?-1:void 0===i||c!==i||a(r[i],i)?void 0===o||a(r[o],o)?l?r.findIndex((function(e){return s(l)===s(e)})):n<0&&!a(r[r.length-1],r.length-1)?r.length-1:n>0&&!a(r[0],0)?0:-1:o:i}function By(n,r,i,o){void 0===o&&(o={});var a,s=o.document,l=(a=t().useRef(!0),t().useEffect((function(){return a.current=!1,function(){a.current=!0}}),[]),a.current);(0,e.useEffect)((function(){if(n&&!l&&s){var e=n(r);Sy(e,s)}}),i),(0,e.useEffect)((function(){return function(){var e,t;Sy.cancel(),(t=null==(e=s)?void 0:e.getElementById("a11y-status-message"))&&t.remove()}}),[s])}var Fy=vy;function Gy(e,t,n){var r;return void 0===n&&(n=!0),Wd({isOpen:!1,highlightedIndex:-1},(null==(r=e.items)?void 0:r.length)&&t>=0&&Wd({selectedItem:e.items[t],isOpen:Py(e,"isOpen"),highlightedIndex:Py(e,"highlightedIndex")},n&&{inputValue:e.itemToString(e.items[t])}))}function Zy(e,t){return e.isOpen===t.isOpen&&e.inputValue===t.inputValue&&e.highlightedIndex===t.highlightedIndex&&e.selectedItem===t.selectedItem}function Hy(e){var t=Py(e,"highlightedIndex");return t>-1&&e.isItemDisabled(e.items[t],t)?-1:t}var qy=Wd({},{environment:Da().shape({addEventListener:Da().func.isRequired,removeEventListener:Da().func.isRequired,document:Da().shape({createElement:Da().func.isRequired,getElementById:Da().func.isRequired,activeElement:Da().any.isRequired,body:Da().any.isRequired}).isRequired,Node:Da().func.isRequired}),itemToString:Da().func,itemToKey:Da().func,stateReducer:Da().func},{getA11yStatusMessage:Da().func,highlightedIndex:Da().number,defaultHighlightedIndex:Da().number,initialHighlightedIndex:Da().number,isOpen:Da().bool,defaultIsOpen:Da().bool,initialIsOpen:Da().bool,selectedItem:Da().any,initialSelectedItem:Da().any,defaultSelectedItem:Da().any,id:Da().string,labelId:Da().string,menuId:Da().string,getItemId:Da().func,toggleButtonId:Da().string,onSelectedItemChange:Da().func,onHighlightedIndexChange:Da().func,onStateChange:Da().func,onIsOpenChange:Da().func,scrollIntoView:Da().func});gy(gy({},qy),{items:Da().array.isRequired,isItemDisabled:Da().func});var Yy=gy(gy({},Ry),{isItemDisabled:function(){return!1}}),Vy=vy,Wy=1,Qy=2,Jy=3,Xy=4,$y=5,Ky=6,eb=7,tb=8,nb=9,rb=10,ib=11,ob=14,ab=19,sb=Object.freeze({__proto__:null,FunctionCloseMenu:17,FunctionOpenMenu:16,FunctionReset:21,FunctionSelectItem:ab,FunctionSetHighlightedIndex:18,FunctionSetInputValue:20,FunctionToggleMenu:15,ItemClick:ob,ItemMouseMove:13,MenuMouseLeave:12,ToggleButtonBlur:ib,ToggleButtonClick:0,ToggleButtonKeyDownArrowDown:Wy,ToggleButtonKeyDownArrowUp:Qy,ToggleButtonKeyDownCharacter:Jy,ToggleButtonKeyDownEnd:Ky,ToggleButtonKeyDownEnter:eb,ToggleButtonKeyDownEscape:Xy,ToggleButtonKeyDownHome:$y,ToggleButtonKeyDownPageDown:rb,ToggleButtonKeyDownPageUp:nb,ToggleButtonKeyDownSpaceButton:tb});function lb(e,t){var n,r,i=t.type,o=t.props,a=t.altKey;switch(i){case ob:r={isOpen:Py(o,"isOpen"),highlightedIndex:Hy(o),selectedItem:o.items[t.index]};break;case Jy:var s=t.key,l=""+e.inputValue+s;r={inputValue:l,highlightedIndex:function(e){for(var t=e.keysSoFar,n=e.highlightedIndex,r=e.items,i=e.itemToString,o=e.isItemDisabled,a=t.toLowerCase(),s=0;s<r.length;s++){var l=(s+n+(t.length<2?1:0))%r.length,c=r[l];if(void 0!==c&&i(c).toLowerCase().startsWith(a)&&!o(c,l))return l}return n}({keysSoFar:l,highlightedIndex:!e.isOpen&&e.selectedItem?o.items.findIndex((function(t){return o.itemToKey(t)===o.itemToKey(e.selectedItem)})):e.highlightedIndex,items:o.items,itemToString:o.itemToString,isItemDisabled:o.isItemDisabled}),isOpen:!0};break;case Wy:r={highlightedIndex:e.isOpen?Ty(e.highlightedIndex,1,o.items,o.isItemDisabled):a&&null==e.selectedItem?-1:_y(o,e,1),isOpen:!0};break;case Qy:r=e.isOpen&&a?Gy(o,e.highlightedIndex,!1):{highlightedIndex:e.isOpen?Ty(e.highlightedIndex,-1,o.items,o.isItemDisabled):_y(o,e,-1),isOpen:!0};break;case eb:case tb:r=Gy(o,e.highlightedIndex,!1);break;case $y:r={highlightedIndex:My(0,!1,o.items,o.isItemDisabled),isOpen:!0};break;case Ky:r={highlightedIndex:My(o.items.length-1,!0,o.items,o.isItemDisabled),isOpen:!0};break;case nb:r={highlightedIndex:Ty(e.highlightedIndex,-10,o.items,o.isItemDisabled)};break;case rb:r={highlightedIndex:Ty(e.highlightedIndex,10,o.items,o.isItemDisabled)};break;case Xy:r={isOpen:!1,highlightedIndex:-1};break;case ib:r=Wd({isOpen:!1,highlightedIndex:-1},e.highlightedIndex>=0&&(null==(n=o.items)?void 0:n.length)&&{selectedItem:o.items[e.highlightedIndex]});break;case ab:r={selectedItem:t.selectedItem};break;default:return function(e,t,n){var r,i=t.type,o=t.props;switch(i){case n.ItemMouseMove:r={highlightedIndex:t.disabled?-1:t.index};break;case n.MenuMouseLeave:r={highlightedIndex:-1};break;case n.ToggleButtonClick:case n.FunctionToggleMenu:r={isOpen:!e.isOpen,highlightedIndex:e.isOpen?-1:_y(o,e,0)};break;case n.FunctionOpenMenu:r={isOpen:!0,highlightedIndex:_y(o,e,0)};break;case n.FunctionCloseMenu:r={isOpen:!1};break;case n.FunctionSetHighlightedIndex:r={highlightedIndex:o.isItemDisabled(o.items[t.highlightedIndex],t.highlightedIndex)?-1:t.highlightedIndex};break;case n.FunctionSetInputValue:r={inputValue:t.inputValue};break;case n.FunctionReset:r={highlightedIndex:Hy(o),isOpen:Py(o,"isOpen"),selectedItem:Py(o,"selectedItem"),inputValue:Py(o,"inputValue")};break;default:throw new Error("Reducer called without proper action type.")}return Wd({},e,r)}(e,t,sb)}return Wd({},e,r)}var cb=["onClick"],ub=["onMouseLeave","refKey","ref"],db=["onBlur","onClick","onPress","onKeyDown","refKey","ref"],fb=["item","index","onMouseMove","onClick","onMouseDown","onPress","refKey","disabled","ref"];function pb(t){void 0===t&&(t={}),Vy(t,pb);var n=Wd({},Yy,t),r=n.scrollIntoView,i=n.environment,o=n.getA11yStatusMessage,a=function(e,t,n,r){var i=Ly(e,t,n,r),o=i[0],a=i[1];return[wy(o,t),a]}(lb,n,Uy,Zy),s=a[0],l=a[1],c=s.isOpen,u=s.highlightedIndex,d=s.selectedItem,f=s.inputValue,p=(0,e.useRef)(null),h=(0,e.useRef)(null),g=(0,e.useRef)({}),m=(0,e.useRef)(null),v=jy(n),y=Oy({state:s,props:n}),b=(0,e.useCallback)((function(e){return g.current[v.getItemId(e)]}),[v]);By(o,s,[c,u,d,f],i);var x=function(t){var n=t.highlightedIndex,r=t.isOpen,i=t.itemRefs,o=t.getItemNodeFromIndex,a=t.menuElement,s=t.scrollIntoView,l=(0,e.useRef)(!0);return ky((function(){n<0||!r||!Object.keys(i.current).length||(!1===l.current?l.current=!0:s(o(n),a))}),[n]),l}({menuElement:h.current,highlightedIndex:u,isOpen:c,itemRefs:g,scrollIntoView:r,getItemNodeFromIndex:b});(0,e.useEffect)((function(){return m.current=by((function(e){e({type:20,inputValue:""})}),500),function(){m.current.cancel()}}),[]),(0,e.useEffect)((function(){f&&m.current(l)}),[l,f]),Fy({props:n,state:s}),(0,e.useEffect)((function(){zy(n,"isOpen")&&p.current&&p.current.focus()}),[]);var I=function(t,n,r){var i=(0,e.useRef)({isMouseDown:!1,isTouchMove:!1,isTouchEnd:!1});return(0,e.useEffect)((function(){if(!t)return vy;var e=r.map((function(e){return e.current}));function o(){i.current.isTouchEnd=!1,i.current.isMouseDown=!0}function a(r){i.current.isMouseDown=!1,Ay(r.target,e,t)||n()}function s(){i.current.isTouchEnd=!1,i.current.isTouchMove=!1}function l(){i.current.isTouchMove=!0}function c(r){i.current.isTouchEnd=!0,i.current.isTouchMove||Ay(r.target,e,t,!1)||n()}return t.addEventListener("mousedown",o),t.addEventListener("mouseup",a),t.addEventListener("touchstart",s),t.addEventListener("touchmove",l),t.addEventListener("touchend",c),function(){t.removeEventListener("mousedown",o),t.removeEventListener("mouseup",a),t.removeEventListener("touchstart",s),t.removeEventListener("touchmove",l),t.removeEventListener("touchend",c)}}),[r,t,n]),i.current}(i,(0,e.useCallback)((function(){y.current.state.isOpen&&l({type:ib})}),[l,y]),(0,e.useMemo)((function(){return[h,p]}),[h.current,p.current])),w=vy;(0,e.useEffect)((function(){c||(g.current={})}),[c]);var T=(0,e.useMemo)((function(){return{ArrowDown:function(e){e.preventDefault(),l({type:Wy,altKey:e.altKey})},ArrowUp:function(e){e.preventDefault(),l({type:Qy,altKey:e.altKey})},Home:function(e){e.preventDefault(),l({type:$y})},End:function(e){e.preventDefault(),l({type:Ky})},Escape:function(){y.current.state.isOpen&&l({type:Xy})},Enter:function(e){e.preventDefault(),l({type:y.current.state.isOpen?eb:0})},PageUp:function(e){y.current.state.isOpen&&(e.preventDefault(),l({type:nb}))},PageDown:function(e){y.current.state.isOpen&&(e.preventDefault(),l({type:rb}))}," ":function(e){e.preventDefault();var t=y.current.state;t.isOpen?t.inputValue?l({type:Jy,key:" "}):l({type:tb}):l({type:0})}}}),[l,y]),M=(0,e.useCallback)((function(){l({type:15})}),[l]),A=(0,e.useCallback)((function(){l({type:17})}),[l]),E=(0,e.useCallback)((function(){l({type:16})}),[l]),C=(0,e.useCallback)((function(e){l({type:18,highlightedIndex:e})}),[l]),N=(0,e.useCallback)((function(e){l({type:ab,selectedItem:e})}),[l]),S=(0,e.useCallback)((function(){l({type:21})}),[l]),k=(0,e.useCallback)((function(e){l({type:20,inputValue:e})}),[l]),j=(0,e.useCallback)((function(e){var t=void 0===e?{}:e,n=t.onClick,r=Qd(t,cb);return Wd({id:v.labelId,htmlFor:v.toggleButtonId,onClick:xy(n,(function(){var e;null==(e=p.current)||e.focus()}))},r)}),[v]),D=(0,e.useCallback)((function(e,t){var n,r=void 0===e?{}:e,i=r.onMouseLeave,o=r.refKey,a=void 0===o?"ref":o,s=r.ref,c=Qd(r,ub),u=(void 0===t?{}:t).suppressRefError;return w("getMenuProps",void 0!==u&&u,a,h),Wd(((n={})[a]=Iy(s,(function(e){h.current=e})),n.id=v.menuId,n.role="listbox",n["aria-labelledby"]=c&&c["aria-label"]?void 0:""+v.labelId,n.onMouseLeave=xy(i,(function(){l({type:12})})),n),c)}),[l,w,v]);return{getToggleButtonProps:(0,e.useCallback)((function(e,t){var n,r=void 0===e?{}:e,i=r.onBlur,o=r.onClick;r.onPress;var a=r.onKeyDown,s=r.refKey,c=void 0===s?"ref":s,u=r.ref,d=Qd(r,db),f=(void 0===t?{}:t).suppressRefError,h=void 0!==f&&f,g=y.current.state,m=Wd(((n={})[c]=Iy(u,(function(e){p.current=e})),n["aria-activedescendant"]=g.isOpen&&g.highlightedIndex>-1?v.getItemId(g.highlightedIndex):"",n["aria-controls"]=v.menuId,n["aria-expanded"]=y.current.state.isOpen,n["aria-haspopup"]="listbox",n["aria-labelledby"]=d&&d["aria-label"]?void 0:""+v.labelId,n.id=v.toggleButtonId,n.role="combobox",n.tabIndex=0,n.onBlur=xy(i,(function(){g.isOpen&&!I.isMouseDown&&l({type:ib})})),n),d);return d.disabled||(m.onClick=xy(o,(function(){l({type:0})})),m.onKeyDown=xy(a,(function(e){var t=function(e){var t=e.key,n=e.keyCode;return n>=37&&n<=40&&0!==t.indexOf("Arrow")?"Arrow"+t:t}(e);t&&T[t]?T[t](e):function(e){return/^\S{1}$/.test(e)}(t)&&l({type:Jy,key:t})}))),w("getToggleButtonProps",h,c,p),m}),[l,v,y,I,w,T]),getLabelProps:j,getMenuProps:D,getItemProps:(0,e.useCallback)((function(e){var t,n=void 0===e?{}:e,r=n.item,i=n.index,o=n.onMouseMove,a=n.onClick,s=n.onMouseDown;n.onPress;var c=n.refKey,u=void 0===c?"ref":c,d=n.disabled,f=n.ref,p=Qd(n,fb);void 0!==d&&console.warn('Passing "disabled" as an argument to getItemProps is not supported anymore. Please use the isItemDisabled prop from useSelect.');var h=y.current,m=h.state,b=h.props,w=function(e,t,n,r){var i,o;if(void 0===e){if(void 0===t)throw new Error(r);i=n[t],o=t}else o=void 0===t?n.indexOf(e):t,i=e;return[i,o]}(r,i,b.items,"Pass either item or index to getItemProps!"),T=w[0],M=w[1],A=b.isItemDisabled(T,M),E=Wd(((t={})[u]=Iy(f,(function(e){e&&(g.current[v.getItemId(M)]=e)})),t["aria-disabled"]=A,t["aria-selected"]=T===m.selectedItem,t.id=v.getItemId(M),t.role="option",t),p);return A||(E.onClick=xy(a,(function(){l({type:ob,index:M})}))),E.onMouseMove=xy(o,(function(){I.isTouchEnd||M===m.highlightedIndex||(x.current=!1,l({type:13,index:M,disabled:A}))})),E.onMouseDown=xy(s,(function(e){return e.preventDefault()})),E}),[y,v,I,x,l]),toggleMenu:M,openMenu:E,closeMenu:A,setHighlightedIndex:C,selectItem:N,reset:S,setInputValue:k,highlightedIndex:u,isOpen:c,selectedItem:d,inputValue:f}}pb.stateChangeTypes=sb,Wd({},qy,{items:Da().array.isRequired,isItemDisabled:Da().func,inputValue:Da().string,defaultInputValue:Da().string,initialInputValue:Da().string,inputId:Da().string,onInputValueChange:Da().func}),Wd({},Ry,{isItemDisabled:function(){return!1}}),Da().array,Da().array,Da().array,Da().func,Da().number,Da().number,Da().number,Da().func,Da().func,Da().string,Da().string;var hb=a(7767),gb=a.n(hb);const mb=Promise.all([new(gb())("Noto Sans",{weight:300}).load(),new(gb())("Noto Sans",{weight:400}).load(),new(gb())("Noto Sans",{weight:600}).load()]).then((()=>{vb=!0})).catch(dl);let vb=!1;const yb=!navigator.userAgent.includes("jsdom/"),bb=t().memo((({element:n,renderChildNodes:r})=>{const i=Ce(n,"question-id"),o=Ce(n,"max-score"),a=kc((e=>e.answers.answersById[i])),s=Gc(),l=n.getAttribute("display-number"),c=a&&a.value&&Ae(n,(e=>a.value===e.getAttribute("option-id"))),u=(0,e.useRef)(null),d=t().useRef(null),[f,p]=(0,e.useState)(!0),[h,g]=(0,e.useState)(vb);yb&&(mb.then((()=>!h&&g(!0))).catch((e=>console.error(e))),(0,e.useEffect)((()=>p(!0)),[n]),(0,e.useEffect)((()=>{if(f&&d.current&&u.current){const t=d.current,n=u.current,r=(e=Se(t,(e=>e.firstElementChild.scrollWidth)))&&e.length?On(e,ge,Pn):void 0,i=requestAnimationFrame((()=>{n.style.width=`${r+2+1}px`,p(!1)}));return()=>cancelAnimationFrame(i)}var e})));const m=["",...n.children],{answers:v,questionLabelIds:y}=(0,e.useContext)(dd),{getItemProps:b,getMenuProps:x,getToggleButtonProps:I,highlightedIndex:w,isOpen:T,selectedItem:M}=pb({items:m,itemToString:e=>e?e.textContent:"",onSelectedItemChange:({selectedItem:e})=>{const t=e?e.getAttribute("option-id"):"";s(Hp({type:"choice",questionId:i,value:t,displayNumber:l}))},initialSelectedItem:c}),{t:A}=Dl(),E=Yl(n),C=(0,e.useContext)(ls),N=0!==Object.keys(C).length,S={onClick:()=>{},onMouseDown:()=>{},onMouseMove:()=>{}};return t().createElement("span",{className:"e-nowrap"},t().createElement("span",{className:"anchor",id:`question-nr-${l}`}),t().createElement("span",{className:Er()("e-dropdown-answer e-normal"),"data-question-id":i},t().createElement("button",{className:Er()("e-dropdown-answer__toggle-button e-button-plain e-columns",{"e-dropdown-answer__toggle-button--open":T}),...I({"aria-describedby":E,"aria-labelledby":y},{suppressRefError:!yb})},t().createElement("span",{className:"e-dropdown-answer__label e-column e-pad-l-1 e-pad-r-4"},t().createElement("span",{className:"e-ellipsis e-block",ref:u},M?r(M):t().createElement("span",{"aria-label":A.raw("dropdown-answer.label")},be))),t().createElement("span",{className:Er()("e-dropdown-answer__toggle-icon e-text-center e-column e-column--narrow e-column--gapless e-color-link")},t().createElement(qa,{icon:T?Ja:rs}))),t().createElement("span",{...x({className:Er()("e-dropdown-answer__menu",{"e-dropdown-answer__menu--open":T}),"aria-labelledby":void 0,ref:d},{suppressRefError:!yb})},m.map(((e,n)=>t().createElement("span",{className:Er()("e-dropdown-answer__menu-item e-block e-pad-l-1 e-pad-r-4",{"e-dropdown-answer__menu-item--selected":e===M,"e-bg-color-off-white":w!==n,"e-bg-color-link e-color-off-white":w===n}),key:n,...b({item:e,index:n}),...N?S:{}},t().createElement("span",{className:Er()("e-dropdown-answer__menu-item-inner e-block",{"e-nowrap":f})},e?r(e):t().createElement("span",{"aria-label":A.raw("dropdown-answer.clear")},be))))))),v.length>1&&t().createElement(oy,{score:o,size:"inline",id:E}))})),xb=t().memo((function({element:e,renderChildNodes:n}){return t().createElement("div",{className:"e-exam-footer"},n(e))})),Ib=t().memo((function({element:e,renderChildNodes:n}){return t().createElement("div",{className:"exam-instruction notification e-pad-4","data-annotation-anchor":"exam-instruction"},n(e))})),wb=t().memo((function(){const{examServerApi:n}=(0,e.useContext)(sc),{examineExam:r}=n,{t:i}=Dl();return t().createElement("button",{className:"e-button goto-examine-answers",onClick:()=>{r&&(r(),window.scrollTo(0,0))},"aria-describedby":"examineExamInstructions"},i("examine-exam.examine"))}));function Tb({answer:e,focusedQuestionId:n,renderChildNodes:r}){const i=Ce(e,"question-id"),o=e.getAttribute("display-number"),a=Ae(e,"hint"),s=je(e);return t().createElement("p",{className:Er()("e-hints__hint",{"e-hints__hint--focused":n===i}),onClick:()=>{const e=document.querySelector(`.text-answer[data-question-id="${i}"]`);e&&e.focus()},"data-question-id":i},s&&ay(o)," ",r(a))}const Mb=({element:e,renderChildNodes:n})=>{const r=kc((e=>e.answers.focusedQuestionId)),i=Te(e,["text-answer","scored-text-answer"]).filter((e=>null!=Ae(e,"hint")));return i.length>0?t().createElement("div",{className:"e-columns"},t().createElement("div",{className:"e-column e-column--8"},n(e)),t().createElement("div",{className:"e-hints e-column e-column--4","aria-hidden":"true"},i.map(((e,i)=>t().createElement(Tb,{answer:e,focusedQuestionId:r,renderChildNodes:n,key:i}))))):t().createElement(t().Fragment,null,n(e))},Ab=(0,e.createContext)({expanded:!1,toggleWriterMode:()=>{}}),Eb=t().memo(fd((function({element:n,renderChildNodes:r}){const i=kc((e=>e.cas.casStatus)),{casForbidden:o}=(0,e.useContext)(cc),{displayNumber:a,level:s}=(0,e.useContext)(dd),{examServerApi:l}=(0,e.useContext)(sc),[c,u]=(0,e.useState)(!1),{t:d}=Dl(),f=e=>{u(e),l.logActivity&&l.logActivity(e?`Writer mode opened for display number ${a}`:`Writer mode closed for display number ${a}`);const t=document.querySelector("body");e?null==t||t.classList.add("writer-mode"):(null==t||t.classList.remove("writer-mode"),null==t||t.classList.remove("rich-text-editor-focus"),setTimeout((()=>{var e;return null===(e=document.getElementById(`question-nr-${a}`))||void 0===e?void 0:e.scrollIntoView()}),10))},p=e=>{"Tab"===e.code&&e.preventDefault()},h=we(n,"text-answer"),g=h?Ce(h,"question-id"):null;(0,e.useEffect)((()=>{if(c){window.addEventListener("keydown",p);const e=g?document.querySelector(`[data-question-id="${g}"]`):void 0;null==e||e.focus()}return()=>window.removeEventListener("keydown",p)}),[c]);const m=t().createRef(),{addRef:v}=(0,e.useContext)(ye);return(0,e.useEffect)((()=>{(null==m?void 0:m.current)&&0===s&&v&&v(m.current)}),[]),o&&"forbidden"!==i?null:t().createElement(Ab.Provider,{value:{expanded:c,toggleWriterMode:f}},t().createElement("div",{className:Er()("e-exam-question",{"e-level-0 e-pad-b-8 e-clearfix":0===s,"e-mrg-l-8 e-mrg-y-4":s>0,"e-expanded":c}),"data-annotation-anchor":a,"data-toc-id":`question-${a}`,ref:m},t().createElement("div",{className:"anchor",id:`question-nr-${a}`}),c?t().createElement("div",{className:"full-screen","data-full-screen-id":a},t().createElement("button",{className:"expand close",onClick:()=>f(!1)},t().createElement(qa,{icon:Wa}),d("close-writing-mode")),r(n)):r(n)))}))),Cb=t().memo((function({element:e,renderChildNodes:n}){const r=Gl(e);return t().createElement("div",{className:"exam-question-instruction e-mrg-b-2",id:r},n(e))})),Nb=()=>t().createElement(qa,{size:"lg",icon:ts,fixedWidth:!0,className:"e-color-link e-mrg-r-1"}),Sb=t().memo((({element:n,renderChildNodes:r})=>{const{displayNumber:i,maxScore:o,level:a,maxAnswers:s,childQuestions:l}=(0,e.useContext)(dd),c=`h${Math.min(3+a,6)}`,u=Fl(i);return t().createElement(t().Fragment,null,t().createElement(c,{id:u,className:Er()("exam-question-title",{"e-normal e-font-size-m":a>0})},t().createElement("strong",{className:Er()("exam-question-title__display-number",{"exam-question-title__display-number--indented":a>0})},`${yd(i)} `),r(n)," ",t().createElement(oy,{score:o,size:0===a?"large":"small"})),null!=s&&l.length>0&&t().createElement("p",{className:"e-italic"},t().createElement(Nb,null),t().createElement(rg,{maxAnswers:s,childQuestions:l,elementType:"question"})))})),kb=({duration:n,durationRemaining:r,className:i})=>{const o=(0,e.useRef)(null),[a,s]=(0,e.useState)(!1);return(0,e.useEffect)((()=>{o.current.clientTop,s(!0)}),[]),t().createElement("div",{className:Er()("e-progress-bar",i),ref:o},t().createElement("div",{className:Er()("e-progress-bar__fill",{"e-progress-bar__fill--animating":a}),style:{transitionDuration:`${n}s`},role:"progressbar","aria-valuemax":n,"aria-valuemin":0,"aria-valuenow":n-r}))};function jb(){const{t:e}=Dl();return t().createElement("p",null,t().createElement("em",null,e("end-of-exam")))}function Db(n){const r=Gc(),{t:i}=Dl(),{casCountdownDuration:o}=(0,e.useContext)(sc);return t().createElement("div",{className:"e-cas-controls"},"forbidden"===n.casStatus?t().createElement("div",{className:"e-text-center"},t().createElement("hr",{className:"e-exam-separator"}),t().createElement("p",null,i("cas.examineSectionA"),t().createElement("br",null),i("cas.cannotEditLater")),t().createElement(wb,null),t().createElement("p",null,i("cas.youCanReturn")),t().createElement("p",{className:"dots-separator"},"•••"),t().createElement("p",{id:"e-cas-controls-forbidden-description"},i("cas.forbidden.infoText")),t().createElement("button",{className:"e-button",id:"allow-cas",onClick:()=>{return r((e=o,(0,Pu.action)("ALLOW_CAS",e)));var e},"aria-describedby":"e-cas-controls-forbidden-description"},i("cas.forbidden.buttonText"))):"allowing"===n.casStatus?t().createElement("div",{className:"e-text-center",ref:e=>null!=e&&o===n.durationRemaining&&e.scrollIntoView()},t().createElement("hr",{className:"e-exam-separator"}),t().createElement("p",{id:"e-cas-controls-allowing-description"},i("cas.allowing.infoText")),t().createElement(kb,{className:"e-mrg-b-2",duration:o,durationRemaining:n.durationRemaining}),t().createElement("button",{className:"e-button",id:"allow-cas-cancelled",onClick:()=>r(Zh()),ref:e=>null!=e&&o===n.durationRemaining&&e.focus(),"aria-describedby":"e-cas-controls-allowing-description"},i("cas.allowing.cancel",{count:n.durationRemaining}))):t().createElement("div",{className:"notification e-text-left e-mrg-b-0"},i("cas.allowed.infoText")))}const Ob=t().memo(uc((function({element:n,renderChildNodes:r}){const i=kc((e=>e.cas),Pc),{casForbidden:o,displayNumber:a}=(0,e.useContext)(cc),{sections:s}=(0,e.useContext)(oc),l=n===ul(s);return t().createElement(nc,{className:"exam-section","aria-labelledby":Bl(a)},r(n),o&&t().createElement(Db,{...i}),l&&t().createElement(jb,null))}))),Lb=t().memo((function({element:e,renderChildNodes:n}){return t().createElement("div",{className:"e-mrg-b-2"},n(e))})),Rb=t().memo((function({element:n,renderChildNodes:r}){const{sections:i}=(0,e.useContext)(oc),{displayNumber:o,minAnswers:a,maxAnswers:s,childQuestions:l}=(0,e.useContext)(cc),{t:c}=Dl(),u=t().createRef(),{addRef:d}=(0,e.useContext)(ye);return(0,e.useEffect)((()=>{(null==u?void 0:u.current)&&d&&d(u.current)}),[]),t().createElement(t().Fragment,null,n.hasChildNodes()&&t().createElement("h2",{className:"exam-section-title",id:Bl(o),"data-toc-id":`section-${o}`,ref:u},i.length>1&&c("section",{displayNumber:o})," ",r(n)),null!=s&&t().createElement("span",{className:"notification notification--inline"},t().createElement(Nb,null),t().createElement(rg,{maxAnswers:s,minAnswers:a,childQuestions:l,elementType:"section"})))})),Pb=e=>t().createElement("div",{className:"e-student-name-container"},e.studentName),zb=({children:e})=>t().createElement("span",{className:"e-screen-reader-only"},e),Ub=t().memo((function({answer:e,element:n,screenshotError:r,validationError:i,selectAnswerVersion:o,showAnswerHistory:a=!1,supportsAnswerHistory:s=!1}){const{t:l}=Dl(),c=null==e?void 0:e.characterCount,u=Ce(n,"max-length");return t().createElement("div",{className:"answer-toolbar e-font-size-xs e-columns e-mrg-b-2"},t().createElement("div",{className:Er()("answer-toolbar__answer-length e-column",{"e-color-error":null!=i})},null!=e?l(null!=u?"answer-length-with-max-length":"answer-length",{count:c,maxLength:u}):be,r?t().createElement("span",{className:"e-color-error",role:"alert"}," ",l(`answer-errors.${r.key}`,r.options)):i?t().createElement("span",null," ",l("answer-errors.answer-too-long",{count:i.characterCount})):null),t().createElement("div",{className:"answer-toolbar__history e-column e-column--narrow e-text-right"},s&&t().createElement("div",{className:"answer-toolbar__select-previous-version"},a&&null!=e?t().createElement("button",{className:"answer-toolbar__previous-versions e-link-button e-font-size-xs",onClick:()=>{if(o){const t=Ae(Me(n,"question"),"question-title");o(e.questionId,t.textContent)}}},l("previous-answer-versions")):be)))}));class _b extends t().PureComponent{constructor(e){super(e),this.handleSaveError=e=>{const t=(()=>{switch(In(e,"response.status")){case 409:return"screenshot-byte-limit-reached";case 413:return"screenshot-too-big";default:return"screenshot-upload-failed"}})();this.props.onError({key:t})},this.handleChange=e=>{const{onChange:t}=this.props;this.lastHTML=e.answerHtml,t(e.answerHtml,e.answerText)},this.editorRef=t().createRef(),this.lastHTML=this.props.answer?this.props.answer.value:""}componentDidUpdate(){this.editorRef.current&&this.props.answer&&this.props.answer.value!==this.lastHTML&&(this.lastHTML=this.props.answer.value,this.editorRef.current.setValue(this.props.answer.value))}render(){const{questionId:e,className:n,labelledBy:r,answer:i,lang:o,invalid:a,saveScreenshot:s}=this.props;return t().createElement(Ab.Consumer,null,(({expanded:l,toggleWriterMode:c})=>t().createElement(t().Fragment,null,t().createElement(Mr(),{ref:this.editorRef,baseUrl:"",initialValue:null==i?void 0:i.value,language:this.context.language.slice(0,2).toUpperCase(),onValueChange:this.handleChange,getPasteSource:e=>s(e).catch((e=>{throw this.handleSaveError(e),e})),textAreaProps:{ariaInvalid:a,ariaLabelledBy:r,id:e.toString(),questionId:e,className:n,lang:o}}),!l&&t().createElement("button",{className:"expand open",onClick:()=>c(!0),"aria-labelledby":"expand-label","aria-owns":String(e)},t().createElement(Fb,null),t().createElement(qa,{icon:is})))))}}_b.contextType=oc;const Bb=_b,Fb=()=>{const{t:e}=Dl();return t().createElement("div",{className:"label",id:"expand-label"},e("open-writing-mode"))},Gb=t().memo((({maxLength:e,id:n})=>{const{t:r}=Dl();return t().createElement("p",{id:n,className:"e-answer-length-info"},t().createElement(Nb,null),t().createElement("em",null,r("max-length-info",{count:e})))}));function Zb(e){return e.replace(/\s/g,"").length}const Hb=t().memo((({element:n,className:r})=>{const i=Ee(n,"type"),o=Ce(n,"question-id"),a=Ee(n,"display-number"),s=Ce(n,"max-score"),l=Ne(n,"use-language-of-instruction"),c=Ce(n,"max-length"),{language:u}=(0,e.useContext)(oc),{questionLabelIds:d,answers:f}=(0,e.useContext)(dd),{examServerApi:p}=(0,e.useContext)(sc),[h,g]=(0,e.useState)(),m=kc((e=>e.answers.answersById[o])),v=kc((e=>e.answers.supportsAnswerHistory)),y=kc((e=>e.answers.supportsAnswerHistory&&e.answers.serverQuestionIds.has(o))),b=kc((e=>e.answers.validationErrors.find((e=>"AnswerTooLong"===e.type&&e.displayNumber===a)))),x=Gc(),I=(0,e.useRef)(null),w=m&&m.value,T=Yl(n),M=null!=b,A=l?u:void 0,E=n.hasAttribute("max-length")?`${d} ${Zl(n)}`:d;(0,e.useEffect)((()=>{const{current:e}=I;e&&("single-line"!==i&&"integer"!==i||(e.style.width="0",e.style.width=`${e.scrollWidth+2}px`))}));const C=(0,e.useCallback)((e=>{const t=e.currentTarget.value.trim(),n={type:"text",questionId:o,value:t,characterCount:Zb(t),displayNumber:a};x(Hp(n)),g(void 0)}),[o,a]),[N,S]=(0,e.useState)((null==m?void 0:m.value)||""),k=(0,e.useCallback)((e=>{e.preventDefault(),e.currentTarget.classList.remove("text-answer--integer--input-error");const t=e.currentTarget.value.trim();if(/^-?\d*$/.test(t)){S(t);const e={type:"text",questionId:o,value:t,characterCount:Zb(t),displayNumber:a};x(Hp(e)),g(void 0)}else e.currentTarget.classList.add("text-answer--integer--input-error"),setTimeout((e=>{e.classList.remove("text-answer--integer--input-error")}),200,e.currentTarget)}),[o,a]),j=(0,e.useCallback)(((e,t)=>{const n={type:"richText",questionId:o,value:e,characterCount:Zb(t),displayNumber:a};x(Hp(n)),g(void 0)}),[o,a]),D=(0,e.useCallback)((e=>g(e)),[h]),O=(0,e.useCallback)((()=>x((e=>(0,Pu.action)("ANSWER_FOCUSED",e))(o))),[o]),L=(0,e.useCallback)((()=>x((e=>(0,Pu.action)("ANSWER_BLURRED",e))(o))),[o]),R=(0,e.useCallback)(((e,t)=>x(((e,t)=>(0,Pu.action)("SELECT_ANSWER_VERSION",{questionId:e,questionText:t}))(e,t))),[]);switch(i){case"rich-text":return t().createElement(t().Fragment,null,null!=c&&t().createElement(Gb,{maxLength:c,id:Zl(n)}),t().createElement("div",{className:"text-answer-container"},t().createElement(Bb,{answer:m,className:Er()("text-answer text-answer--rich-text",r),saveScreenshot:e=>p.saveScreenshot(o,e),onChange:j,onError:D,questionId:o,lang:A,invalid:M,labelledBy:E}),t().createElement(Ub,{answer:m,element:n,selectAnswerVersion:R,showAnswerHistory:y,supportsAnswerHistory:v,screenshotError:h,validationError:b})));case"integer":return t().createElement("span",{className:"e-nowrap"},t().createElement("input",{type:"text",className:Er()("text-answer text-answer--single-line text-answer--integer",r),value:N,onChange:k,onFocus:O,onBlur:L,ref:I,"data-question-id":o,lang:A,"aria-describedby":T,"aria-labelledby":E}),f.length>1&&t().createElement(oy,{score:s,size:"inline",id:T}));default:return t().createElement("span",{className:"e-nowrap"},t().createElement("input",{type:"text",className:Er()("text-answer text-answer--single-line",r),defaultValue:w,onChange:C,onFocus:O,onBlur:L,ref:I,"data-question-id":o,lang:A,"aria-describedby":T,"aria-labelledby":E}),f.length>1&&t().createElement(oy,{score:s,size:"inline",id:T}))}})),qb=t().memo((function(e){const{element:n,renderChildNodes:r}=e,i=n.getAttribute("display-number"),o=Ae(n,"hint"),a=t().createElement(Hb,{...e}),s=je(n);return t().createElement(t().Fragment,null,t().createElement("span",{className:"anchor",id:`question-nr-${i}`}),o?t().createElement("label",{className:"e-nowrap"},s&&t().createElement("sup",{className:"e-text-answer-display-number e-color-darkgrey"},ay(i)),t().createElement(zb,null,r(o)),a):a)}));var Yb=a(6660),Vb=a.n(Yb);class Wb extends t().PureComponent{constructor(e){super(e),this.inputValueChanged=()=>{this.props.onChange(this.props.answerIndex),this.labelInputRef&&this.labelInputRef.current&&this.labelInputRef.current.scrollIntoView({block:"center"})},this.entryInputRef=t().createRef(),this.labelInputRef=t().createRef()}componentDidMount(){this.entryInputRef.current&&0===this.props.answerIndex&&this.entryInputRef.current.focus()}render(){const{selected:e,croppedAnswer:n,characterCount:r,screenshotCount:i,answerIndex:o,minutesSinceAnswer:a}=this.props;return t().createElement("label",{ref:this.labelInputRef,className:"js-undo-history-entry"},t().createElement("input",{type:"radio",className:"e-undo-view-entry-tab",name:"undoHistory",value:o,checked:e,onChange:this.inputValueChanged,ref:this.entryInputRef}),t().createElement(Qb,{croppedAnswer:n,characterCount:r,screenshotCount:i,answerIndex:o,minutesSinceAnswer:a}))}}const Qb=({croppedAnswer:e,characterCount:n,screenshotCount:r,answerIndex:i,minutesSinceAnswer:o})=>{const{t:a}=Dl(),s=[n>0?a("undo.answerCharacterCount",{count:n}):null,r>0?a("undo.answerImageCount",{count:r}):null].filter((e=>null!==e));return t().createElement("div",{className:"e-undo-view-entry js-undo-entry-content"},t().createElement("div",{className:"js-undo-history-entry-time"},0===i?a("undo.latestVersion"):a("undo.minutesSinceAnswer",{minutes:o})),t().createElement("div",{className:"e-undo-view-answer-cropped js-undo-history-entry-answer"},e||a("undo.answerNoText")),t().createElement("div",{className:"e-undo-view-answer-length js-undo-history-entry-stats"},s.map(((e,n)=>t().createElement(t().Fragment,{key:n},e,n<s.length-1&&t().createElement("span",null,", "))))))};var Jb=a(4867),Xb=a.n(Jb);const $b=Vb().CancelToken;function Kb(e){return{type:e.type,value:e.value,answerTime:e.answer_time,characterCount:e.character_count}}function ex(e){const{selectedAnswer:n}=e;return n?"richText"===n.type?t().createElement("div",{className:"e-undo-view-answer-content js-undo-answer-detail",dangerouslySetInnerHTML:{__html:n.value}}):t().createElement("div",{className:"e-undo-view-answer-content js-undo-answer-detail plainText"},n.value):null}function tx(e){const{selectedAnswer:n,selectedAnswerIndex:r,restoreAnswer:i,questionId:o}=e,a=!n||0===r;return t().createElement("div",{className:"e-undo-view-bottom-bar"},t().createElement("button",{className:"e-button-default e-button js-restore-answer-button",disabled:a,onClick:()=>n&&i({...n,questionId:o})},t().createElement(cx,null)))}function nx(e){return("text"===e.type?e.value:function(e){const t=document.createElement("div");return t.innerHTML=e,t.innerText}(e.value)).replace(/\s+/g," ").trim()}function rx(e,t=50){const n=nx(e);if(n.length<=t)return n;const r=t-1,i=Math.ceil(r/2),o=r-i;return n.substr(0,i)+"…"+n.substr(n.length-o)}function ix(e){return nx(e).replace(/\s/g,"").length}function ox(e){const t=document.createElement("div");t.innerHTML=e.value;const n=t.querySelectorAll("img").length,r=t.querySelectorAll('img[src=""]').length;return n-t.querySelectorAll('img[src^="/math.svg"], img[src^="data:image/svg+xml"]').length-r}class ax extends t().PureComponent{constructor(e){super(e),this.source=$b.source(),this.toggleBodyScroll=e=>document.documentElement.classList.toggle("e-exam-body-no-scroll",!e),this.keydownListener=e=>{if(13===e.keyCode){const e=this.state.answers[this.state.selectedAnswerIndex];this.props.restoreAnswer({...e,questionId:this.props.questionId}),this.close()}else 27===e.keyCode&&this.close()},this.state={answers:[],selectedAnswerIndex:0,loading:!0,loadRetryTimeout:null}}componentDidMount(){this.toggleBodyScroll(!1),document.addEventListener("keydown",this.keydownListener,!1),this.fetchAnswerHistory(this.props.questionId)}componentWillUnmount(){this.source.cancel(),document.removeEventListener("keydown",this.keydownListener,!1),this.toggleBodyScroll(!0)}componentDidUpdate(e){this.props.questionId!==e.questionId&&this.fetchAnswerHistory(this.props.questionId)}overlayClicked(e){e.target.className.includes("js-undo-overlay")&&this.close()}async fetchAnswerHistory(e){try{const t=(await Vb().get(`/rest/answer-history/${e}`,{cancelToken:this.source.token})).data.map(Kb);this.setState({answers:t,selectedAnswerIndex:0,loading:!1,loadRetryTimeout:null})}catch(t){Vb().isCancel(t)||this.setState({loadRetryTimeout:window.setTimeout((()=>{this.fetchAnswerHistory(e)}),4e3)})}}close(){const e=this.state.loadRetryTimeout;e&&clearTimeout(e),this.source.cancel(),this.props.close()}render(){const e=this.state.answers[this.state.selectedAnswerIndex],n=(new Date).getTime();return t().createElement(Xb(),null,t().createElement("div",{onClick:this.overlayClicked.bind(this),className:"e-overlay js-undo-overlay","aria-modal":"true"},t().createElement("div",{id:"undo",className:"e-undo-view"},t().createElement(lx,{close:this.close.bind(this)}),this.state.loading?t().createElement(sx,null):t().createElement("div",{className:"e-undo-view-content"},t().createElement("div",{className:"e-undo-view-answer-index js-undo-answer-index"},this.state.answers.map(((e,r)=>{const i=n-new Date(e.answerTime).getTime(),o=Math.round(i/1e3/60);return t().createElement(Wb,{key:new Date(e.answerTime).getTime(),answerIndex:r,selected:r===this.state.selectedAnswerIndex,onChange:e=>this.setState({selectedAnswerIndex:e}),croppedAnswer:rx(e),minutesSinceAnswer:o,characterCount:ix(e),screenshotCount:ox(e)})}))),t().createElement("div",{className:"e-undo-view-right-panel"},t().createElement("div",{className:"e-undo-view-header js-undo-view-header"},t().createElement("h3",{className:"e-undo-view-title js-undo-view-title"},this.props.title)),t().createElement(ex,{selectedAnswer:e}),t().createElement(tx,{selectedAnswer:e,selectedAnswerIndex:this.state.selectedAnswerIndex,restoreAnswer:this.props.restoreAnswer,questionId:this.props.questionId}))))))}}const sx=()=>{const{t:e}=Dl();return t().createElement("div",{style:{padding:"10px"}},e("undo.loading"))},lx=({close:e})=>{const{t:n}=Dl();return t().createElement("div",null,t().createElement("img",{src:"img/closeButton.svg",id:"closeUndoDialogButton",className:"e-undo-view-close-overlay-button js-close-undo-dialog-button",onClick:e,tabIndex:0,role:"button","aria-label":n("undo.close")}))},cx=()=>{const{t:e}=Dl();return t().createElement("div",null,e("undo.restoreAnswer"))},ux=e=>{const{t:n}=Dl(),{displayNumber:r,elementType:i}=e;return t().createElement("div",null,"exam"!==i&&"toc-section"!==i?n(i,{displayNumber:r})||t().createElement(px,{...e}):""," ",t().createElement(rg,{...e}))},dx=({displayNumber:e,characterCount:n})=>{const{t:r}=Dl();return t().createElement("div",null,r("question",{displayNumber:e})," ",r("answer-errors.answer-too-long",{count:n}))};function fx({validationErrors:e,inExam:n}){return e.length>0?t().createElement("div",{className:Er()({"error-indicator e-bg-color-error e-color-off-white":n,"e-font-size-xs":n},"e-columns e-columns--inline e-pad-1 e-mrg-r-1"),role:"alert"},t().createElement("div",{className:"e-column e-column--narrow",style:{color:"#f90"}},t().createElement(qa,{size:"lg",icon:os,fixedWidth:!0,className:"e-mrg-r-1"})),t().createElement("div",{className:"e-column e-column--gapless"},e.map((e=>{const n=e.type+e.displayNumber;return"ExtraAnswer"===e.type?t().createElement(ux,{...e,key:n}):t().createElement(dx,{...e,key:n})})))):null}const px=({elementType:n,displayNumber:r})=>{if("section"===n){const{root:n}=(0,e.useContext)(oc),i=Ae(n,(e=>"section"===e.localName&&e.getAttribute("display-number")===r));if(i){const e=Ae(i,"section-title");if(e)return t().createElement(t().Fragment,null,`${e.textContent.trim()}:`)}}return null},hx=t().memo((()=>{const e=kc((e=>e.answers.validationErrors));return t().createElement(fx,{validationErrors:e,inExam:!0})})),gx=t().memo((function(){const e=kc(Vc),{t:n}=Dl();return"initial"===e?null:t().createElement("div",{className:"save-indicator e-pad-1 e-font-size-xs"},t().createElement("span",{className:Er()("save-indicator-text",`save-indicator-text--${e}`)},n("answer-saved")))})),mx=vs({attachment:cg,"attachment-link":pc("link"),"attachment-links":hc("link"),audio:Yu,"audio-title":ec,"audio-group":Jh,"audio-test":Xh,"choice-answer":dg,"dnd-answer-container":({element:n,renderChildNodes:r})=>{var i;const[o,a]=(0,e.useState)(),[s,l]=(0,e.useState)({}),[c,u]=(0,e.useState)({}),[d,f]=(0,e.useState)({}),p=Gc(),h=kc((e=>e.answers));(0,e.useEffect)((()=>{const e=Te(n,"dnd-answer").filter((e=>!!we(e,"dnd-answer-title"))),t=Te(n,"dnd-answer-option"),r=e.reduce(((e,t)=>{var n;const r=t.getAttribute("question-id"),i=null===(n=h.answersById[Number(r)])||void 0===n?void 0:n.value;return{...e,[r]:i?[Number(i)]:[],root:e.root.filter((e=>e!==Number(i)))}}),{root:t.map((e=>Number(e.getAttribute("option-id"))))}),i=t.reduce(((e,t)=>({...e,[t.getAttribute("option-id")]:t})),{}),o=e.reduce(((e,t)=>({...e,[t.getAttribute("question-id")]:t.getAttribute("display-number")})),{});l(r),u(i),f(o)}),[n]);const g=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(0,e.useMemo)((()=>[...n].filter((e=>null!=e))),[...n])}(Vg(Fm),Vg(Pm,{coordinateGetter:Vv}));function m(e){return e in s?e:Object.keys(s).find((t=>s[t].includes(e)))}function v(e){const{active:t,over:n}=e,r=t.id,i=null==n?void 0:n.id;return{activeId:r,activeContainer:m(r),overContainer:i?m(i):null}}(0,e.useEffect)((()=>{Object.entries(s).forEach((([e,t])=>{"root"!==e&&function(e,t){const n=Number(e),r=(null==t?void 0:t.toString())||"",i=d[n];p(Hp({type:"choice",questionId:n,value:r,displayNumber:i}))}(e,null==t?void 0:t.toString())}))}),[s]);const y=Te(n,"dnd-answer").filter((e=>!!we(e,"dnd-answer-title"))),b=null===(i=s.root)||void 0===i?void 0:i.map((e=>c[e]||null)).filter(Boolean);return t().createElement("div",{className:"e-dnd-answer-container"},t().createElement(Av,{sensors:g,onDragStart:function(e){a(e.active.id)},onDragOver:function(e){const{activeContainer:t,overContainer:n}=v(e)},onDragEnd:function(e){const{activeId:t,activeContainer:n,overContainer:r}=v(e);n&&r&&n!==r&&(l((e=>function(e,t,n,r){const i={...e};if(i[t]=i[t].filter((e=>e!==r)),"root"===n)i.root=[r,...i.root];else{if(i[n].length>0){const e=i[n][0];i.root=[...i.root,e]}i[n]=[r]}return i}(e,n,r,t))),a(null))}},y.map((e=>{var n;const i=e.getAttribute("question-id"),o=null===(n=s[i]||[])||void 0===n?void 0:n.map((e=>(null==c?void 0:c[e])||null)).filter(Boolean),a=s[i]||[];return t().createElement(sy,{key:i,element:e,renderChildNodes:r,itemIds:a,answerOptionElements:o,page:"exam"})})),t().createElement(cy,{items:s.root||[],renderChildNodes:r,answerOptionElements:b}),t().createElement(_v,{className:"e-dnd-answer-drag-overlay",dropAnimation:{duration:250,easing:"ease-in-out"}},o?t().createElement(ry,{element:c[o],renderChildNodes:r}):null)))},"dropdown-answer":bb,"exam-footer":xb,"external-material":Wu,file:Qu,formula:Ju,image:Ku,question:Eb,"question-number":pd,translation:hd,"question-instruction":Cb,"question-title":Sb,hints:Mb,references:eg,"scored-text-answer":qb,"scored-text-answers":Mb,"section-instruction":Lb,section:Ob,"section-title":Rb,"text-answer":qb,video:id,"image-overlay":ud}),vx=()=>{const{t:e}=Dl();return t().createElement("div",{className:"e-examine-exam-instructions",id:"examineExamInstructions"},e("examine-exam.instructions"))},yx=t().memo(lc(ac((({doc:n,casStatus:r,answers:i,restrictedAudioPlaybackStats:o,examServerApi:a,studentName:s,showUndoView:l,undoViewProps:c,annotations:u,onClickAnnotation:d,onSaveAnnotation:f})=>{const{date:p,dateTimeFormatter:h,dayCode:g,examCode:m,language:v,resolveAttachment:b,root:x,subjectLanguage:I}=(0,e.useContext)(oc),w=Ae(x,"exam-title"),T=Ae(x,"exam-instruction"),M=Ae(x,"table-of-contents"),A=Ae(x,"external-material"),E=x.getAttribute("exam-stylesheet"),C=(0,e.createRef)(),N=$l((()=>Qh(Td(n),r,i,o,a))),S=$l((()=>ag({showAttachmentLinks:!0,showAnsweringInstructions:!0,isInSidebar:!0}))),k=$l((()=>ag({showAttachmentLinks:!0,showAnsweringInstructions:!0,isInSidebar:!1}))),j=$l((()=>jl(v,m,g)));(0,e.useEffect)(Ol(j,v)),(0,e.useEffect)(Xl,[]);const[D,O]=(0,e.useState)([]);(0,e.useEffect)((()=>{const e=new IntersectionObserver(L),t=D;return t.forEach((t=>e.observe(t))),()=>{t.forEach((t=>e.unobserve(t)))}}),[D]);const L=e=>e.forEach((e=>{const t=e.target.getAttribute("data-toc-id");P((n=>e.isIntersecting?[...n,t]:n.filter((e=>e!==t))))})),[R,P]=(0,e.useState)([]);(0,e.useEffect)((()=>{R.forEach((e=>{const t=e.replace("question-",""),n=document.querySelector(`.table-of-contents li[data-list-number="${t}."]`);if(n){const e=(e=>{const t=e.getBoundingClientRect();return t.top>=100&&t.bottom<=window.innerHeight-100})(n),t=document.querySelector(".sidebar-toc-container .table-of-contents");if(!e&&t){const e=t.getBoundingClientRect().height,r=n.offsetTop-e/2;t.scrollTo({behavior:"smooth",top:r})}}}))}),[R]);const z=void 0!==a.examineExam,U="[Kokelaan Nimi]"===s;return t().createElement(zc,{store:N},t().createElement(cs,{annotations:u,onClickAnnotation:d,onSaveAnnotation:f},t().createElement(ye.Provider,{value:{visibleTOCElements:R,addRef:e=>{D.includes(e)||O((t=>[...t,e]))}}},t().createElement(y,{i18n:j},t().createElement("main",{className:"e-exam",lang:I,"aria-labelledby":Ul,ref:C},t().createElement(t().StrictMode,null),E&&t().createElement("link",{rel:"stylesheet",href:b(E)}),t().createElement("div",{className:"e-toc-and-exam"},M&&t().createElement("div",{className:"sidebar-toc-container","aria-hidden":"true"},t().createElement(S,{element:M,renderChildNodes:mx})),t().createElement("div",{className:"main-exam-container"},t().createElement("div",{className:"main-exam"},t().createElement(Pb,{studentName:s}),t().createElement(nc,{"aria-labelledby":Ul},w&&t().createElement(Kl,{id:Ul},mx(w)),p&&t().createElement("p",null,t().createElement("strong",null,h.format(p))),T&&t().createElement(Ib,{element:T,renderChildNodes:mx}),M&&t().createElement("div",{className:"main-toc-container"},t().createElement(k,{element:M,renderChildNodes:mx})),A&&t().createElement(Wu,{element:A,renderChildNodes:mx,forceRender:!0})),mx(x),(U||z)&&t().createElement("div",{className:"e-examine-exam"},t().createElement(wb,null),t().createElement(vx,null))))),(U||z)&&t().createElement($h,null,t().createElement("div",{className:"e-footer-version-number-container"},t().createElement(lg,null))),t().createElement("div",{className:"e-indicators-container"},t().createElement(hx,null),t().createElement(gx,null)),l&&z&&t().createElement(ax,{...c}))))))})))),bx=e=>n=>{const r=r=>e(r)?t().createElement(n,{...r}):null;return r.displayName=`RenderIf(${rc(n)})`,r},xx=t().createContext({}),Ix=({element:n,renderChildNodes:r})=>{const{EditorComponent:i}=(0,e.useContext)(xx),{displayNumber:o}=(0,e.useContext)(dd);return t().createElement("div",{className:"e-answer-grading-instruction e-multiline-results-text-answer e-mrg-b-2 e-pad-l-2"},i?t().createElement(i,{element:n,displayNumber:o}):r(n))},wx=({element:n,renderChildNodes:r})=>{const{answers:i}=(0,e.useContext)(dd),o=Ae(n,"answer-grading-instruction"),a=Ce(n,"max-length"),s=t().createElement(t().Fragment,null,null!=a&&t().createElement(Gb,{maxLength:a}),t().createElement("ul",null,r(n)),o&&t().createElement(Ix,{element:o,renderChildNodes:r}));if(1===i.length)return s;{const e=Ee(n,"display-number"),i=Ce(n,"max-score"),o=Ae(n,"hint");return t().createElement("div",{className:"e-mrg-l-8"},t().createElement("p",{className:"exam-question-title"},t().createElement("span",{className:"exam-question-title__display-number--indented e-semibold"},e," "),o&&r(o)," ",t().createElement(oy,{score:i})),s)}},Tx=({element:e,renderChildNodes:n})=>{const r=Ce(e,"score");if(!r)return null;const{t:i}=Dl();return t().createElement("li",null,n(e),be,"(",i("points",{count:r}),")")},Mx=({element:e,renderChildNodes:n})=>t().createElement("div",{className:"e-exam-grading-instruction notification e-pad-4","data-annotation-anchor":"exam-grading-instruction"},n(e)),Ax=fd((function({element:n,renderChildNodes:r}){const{displayNumber:i,level:o}=(0,e.useContext)(dd);return t().createElement("div",{className:Er()("e-grading-instructions-question",{"e-mrg-b-8 e-clearfix":0===o,"e-mrg-l-8 e-mrg-y-4":o>0}),id:i,"data-annotation-anchor":i},t().createElement("div",{className:"anchor",id:`question-nr-${i}`}),r(n,1))})),Ex=({element:e,renderChildNodes:n})=>{const r=Ae(e,["audio-transcription","video-transcription"]);if(r){const{t:i}=Dl(),o=Ae(e,["audio-title","video-title"]);return t().createElement("details",{className:"e-grading-instruction-recording e-pad-1 e-mrg-b-2"},t().createElement("summary",null,t().createElement("strong",null,i("recording"))," ",o&&t().createElement("em",null,n(o))),n(r))}return null},Cx=uc((({element:n,renderChildNodes:r})=>{const{displayNumber:i}=(0,e.useContext)(cc);return t().createElement(nc,{className:"e-grading-instruction-section","aria-labelledby":Bl(i)},r(n))})),Nx=({EditorComponent:e,children:n})=>t().createElement(xx.Provider,{value:{EditorComponent:e}},n),Sx=bx((({element:e})=>null!=Me(e,["answer-grading-instruction","choice-answer-option","dropdown-answer-option","exam-grading-instruction","question-grading-instruction","hint","question-title","question-instruction"]))),kx=bx((({element:e})=>null==Me(e,["external-material"]))),jx=vs({"accepted-answer":Tx,attachment:tc,"attachment-link":kx(pc("plain")),"attachment-links":kx(hc("plain")),audio:Ex,"audio-group":tc,"choice-answer":wx,"choice-answer-option":Tx,"dropdown-answer":wx,"dropdown-answer-option":Tx,"external-material":tc,file:Sx(Qu),formula:Sx(Ju),hints:tc,image:Sx(Ku),question:Ax,"question-title":({element:n,renderChildNodes:r})=>{const{displayNumber:i,maxScore:o,level:a}=(0,e.useContext)(dd),s=`h${Math.min(3+a,6)}`;return t().createElement(t().Fragment,null,t().createElement(s,{className:Er()("exam-question-title",{"e-normal e-font-size-m":a>0})},t().createElement("strong",{className:Er()("exam-question-title__display-number",{"exam-question-title__display-number--indented":a>0})},`${yd(i)} `),r(n)," ",t().createElement(oy,{score:o,size:0===a?"large":"small"})))},"question-instruction":Cb,"question-grading-instruction":Ix,"question-number":pd,translation:hd,"scored-text-answer":wx,"text-answer":wx,section:Cx,"section-title":({element:n,renderChildNodes:r})=>{const{sections:i}=(0,e.useContext)(oc),{displayNumber:o}=(0,e.useContext)(cc),{t:a}=Dl();return t().createElement(t().Fragment,null,n.hasChildNodes()&&t().createElement("h2",{className:"e-grading-instructions-section-title",id:Bl(o)},i.length>1&&a("section",{displayNumber:o})," ",r(n)))},video:Ex}),Dx=()=>{const{t:e}=Dl();return t().createElement(t().Fragment,null,e("grading-instructions-page-title"))},Ox=t().memo(ac((({doc:n,annotations:r,onClickAnnotation:i,onSaveAnnotation:o,EditorComponent:a})=>{const s=n.documentElement,{date:l,dateTimeFormatter:c,dayCode:u,examCode:d,language:f,subjectLanguage:p}=(0,e.useContext)(oc),h=Ae(s,"exam-title"),g=Ae(s,"exam-grading-instruction"),m=Ae(s,"table-of-contents"),v=ag({showAnsweringInstructions:!1,showAttachmentLinks:!1,isInSidebar:!1}),b=$l((()=>jl(f,d,u)));return(0,e.useEffect)(Ol(b,f)),(0,e.useEffect)(Xl,[]),t().createElement(cs,{annotations:r,onClickAnnotation:i,onSaveAnnotation:o},t().createElement(Nx,{EditorComponent:a},t().createElement(y,{i18n:b},t().createElement("main",{className:"e-exam e-grading-instructions",lang:p},t().createElement(t().StrictMode,null),t().createElement(nc,{"aria-labelledby":Ul},t().createElement(Kl,{id:Ul},t().createElement(Dx,null)," ",h&&jx(h)),l&&t().createElement("p",null,t().createElement("strong",null,c.format(l))),g&&t().createElement(Mx,{element:g,renderChildNodes:jx}),m&&t().createElement("div",{className:"main-toc-container"},t().createElement(v,{element:m,renderChildNodes:jx}))),jx(s)))))})));function Lx({renderChildNodes:e,selected:n,element:r,questionId:i,direction:o,isCorrect:a}){const{t:s}=Dl(),l=r.getAttribute("class"),c=r.getAttribute("option-id"),u=t().createElement("div",{className:Er()("e-choice-answer-option e-column",l,{"e-choice-answer-option--selected":n})},e(r)),d=({narrow:e=!1})=>t().createElement(t().Fragment,null,t().createElement("input",{type:"radio",className:Er()("e-radio-button",{"e-column e-column--narrow":e}),name:String(i),value:c,checked:n,readOnly:!0}),u,a&&t().createElement(zb,null,s("screen-reader.correct-answer")));return"vertical"===o?t().createElement("div",{className:"e-mrg-b-1"},t().createElement("label",{className:Er()("e-columns",{"e-correct-answer-left":a,"e-columns--inline":null==we(r,["image","video"])})},t().createElement(d,{narrow:!0}))):t().createElement("div",{className:"e-column e-mrg-b-1"},t().createElement("label",{className:Er()("e-block e-text-center",{"e-correct-answer-bottom":a})},t().createElement(d,null)))}const Rx=t().memo((function({element:n,renderChildNodes:r}){var i,o;const{answersByQuestionId:a,gradingStructure:s}=(0,e.useContext)(Qv),l=Ce(n,"question-id"),c=a[l],u=n.getAttribute("direction")||"vertical",d=n.getAttribute("class"),f=Xv(s,l),p=c&&(null===(o=null===(i=null==f?void 0:f.options)||void 0===i?void 0:i.find((e=>e.id===Number(c.value))))||void 0===o?void 0:o.score),h=Ce(n,"max-score");return t().createElement(t().Fragment,null,t().createElement(ty,{score:p,maxScore:h,questionId:l}),t().createElement("div",{className:Er()("e-choice-answer",d,{"e-columns":"horizontal"===u})},Se(n,(e=>{var n;const i=Ce(e,"option-id"),o=null!=c&&Number(c.value)===i,a=null===(n=null==f?void 0:f.options)||void 0===n?void 0:n.find((e=>e.id===i));return t().createElement(Lx,{element:e,renderChildNodes:r,questionId:l,key:i,direction:u,selected:o,isCorrect:(null==a?void 0:a.correct)||!1})}))))})),Px=t().memo((function({element:n,renderChildNodes:r}){var i;const{t:o,i18n:a}=Dl(),{answersByQuestionId:s,gradingStructure:l}=(0,e.useContext)(Qv),{answers:c}=(0,e.useContext)(dd),u=Ce(n,"question-id"),d=s[u],f=Ae(n,(e=>(null==d?void 0:d.value)===e.getAttribute("option-id"))),p=Kv(),h=Xv(l,u),g=(null==h?void 0:h.options.filter((e=>e.correct)).map((e=>e.id)))||[],m=Array.from(n.children).filter((e=>g.includes(Ce(e,"option-id")))),v=f&&g.includes(Ce(f,"option-id")),y=ay(n.getAttribute("display-number")),b=d&&(null===(i=null==h?void 0:h.options.find((e=>e.id===Number(d.value))))||void 0===i?void 0:i.score)||0,x=Ce(n,"max-score");return t().createElement(t().Fragment,null,c.length>1&&t().createElement("sup",null,y),t().createElement("span",{className:Er()("e-dropdown-answer__answered",!f&&"e-dropdown-answer__no-answer",!p&&{"e-dropdown-answer__answered--correct":v,"e-dropdown-answer__answered--wrong":!v}),"data-question-id":u,"aria-description":f?void 0:a.t("examineExam.questionHasNoAnswer")},t().createElement(zb,null,o("screen-reader.answer-begin")),f&&r(f),t().createElement(zb,null,o("screen-reader.answer-end")),v&&t().createElement(zb,null,o("screen-reader.correct-answer"))),!p&&!v&&t().createElement("span",{className:"e-dropdown-answer__correct","aria-hidden":!0},m.map(((e,n)=>t().createElement(t().Fragment,{key:n},r(e),n<m.length-1&&", ")))),null!=b&&t().createElement(ty,{score:b,maxScore:x,displayNumber:y,questionId:u}))}));function zx({pregradingAnnotations:e,censoringAnnotations:n,singleGrading:r}){return e.length||n.length?t().createElement("div",{className:"e-annotation-list e-columns e-mrg-t-2"},r?t().createElement("div",{className:"e-column e-column--10"},t().createElement(Ux,{annotations:e})):t().createElement(t().Fragment,null,t().createElement("div",{className:"e-column e-column--6"},t().createElement(Ux,{i18nTitleKey:"grading.pregrading-annotations",annotations:e})),t().createElement("div",{className:"e-column e-column--6"},t().createElement(Ux,{i18nTitleKey:"grading.censor-annotations",annotations:n})))):null}const Ux=({i18nTitleKey:e,annotations:n})=>{const{t:r}=Dl();return n?t().createElement(t().Fragment,null,e&&t().createElement("h5",null,r(e)),t().createElement("ol",{className:"e-list-data e-pad-l-0 e-font-size-s"},n.map((({numbering:e,message:n})=>t().createElement("li",{"data-list-number":e,key:e},n))))):null},_x=t().memo((function(){const{answers:n}=(0,e.useContext)(dd),{scores:r,singleGrading:i}=(0,e.useContext)(Qv),o=function(e,t){const n=[];for(let r=0;r<e.length;r++){const i=t(e[r]);void 0!==i&&n.push(i)}return n}(n||[],(e=>{const t=Ce(e,"question-id"),n=$v(r,t);return n&&e&&(e=>{var t,n,r,i;return Boolean((null===(n=null===(t=null==e?void 0:e.pregrading)||void 0===t?void 0:t.annotations)||void 0===n?void 0:n.length)||(null===(i=null===(r=null==e?void 0:e.censoring)||void 0===r?void 0:r.annotations)||void 0===i?void 0:i.length))})(n)?[e,n]:void 0})),a=(e,t,r=0)=>Up(e,(([e,i])=>{var o,a,s;return null!==(s=null===(a=null===(o=i[t])||void 0===o?void 0:o.annotations)||void 0===a?void 0:a.filter((e=>e.message.length)).map(((t,i)=>{const o=`${((e,t)=>e.length>1?ay(t.getAttribute("display-number")):"")(n,e)+String(r+i+1)})`;return{numbering:o,message:t.message}})))&&void 0!==s?s:[]})),s=a(o,"pregrading"),l=a(o,"censoring",s.length);return t().createElement(zx,{pregradingAnnotations:s,censoringAnnotations:l,singleGrading:!!i})})),Bx=t().memo(fd((function({element:n,renderChildNodes:r}){var i,o;const{answersByQuestionId:a,gradingStructure:s}=(0,e.useContext)(Qv),{displayNumber:l,level:c}=(0,e.useContext)(dd),u=function(e,t){return ke(e).some((e=>{var n;return null===(n=t[Ce(e,"question-id")])||void 0===n?void 0:n.value}))}(n,a),{i18n:d}=Dl(),f=null===(i=null==s?void 0:s.questions)||void 0===i?void 0:i.find((e=>e.displayNumber===l)),p=f&&("choices"in f?f.choices[0].id:f.id),h=!!p&&(null===(o=a[p])||void 0===o?void 0:o.answerNonAnswer);return t().createElement("div",{className:Er()("e-exam-question",`e-level-${c}`,{"e-mrg-b-8 e-clearfix":0===c,"e-mrg-l-8 e-mrg-y-4":c>0,"no-answer":!u,"non-answer":h}),id:l,"aria-description":u?void 0:d.t("examineExam.questionHasNoAnswer")},r(n),t().createElement(_x,null))}))),Fx=t().memo((function({element:n,renderChildNodes:r}){const{displayNumber:i,level:o,maxAnswers:a,maxScore:s,childQuestions:l}=(0,e.useContext)(dd),c=`h${Math.min(3+o,6)}`,u=Kv();return t().createElement(t().Fragment,null,t().createElement(c,{className:Er()("exam-question-title",{"e-normal e-font-size-m":o>0})},t().createElement("strong",{className:Er()("exam-question-title__display-number",{"exam-question-title__display-number--indented":o>0})},`${yd(i)} `),r(n)," ",u&&t().createElement(oy,{score:s,size:0===o?"large":"small"})),null!=a&&l.length>0&&t().createElement("p",{className:"e-italic"},t().createElement(Nb,null),t().createElement(rg,{maxAnswers:a,childQuestions:l,elementType:"question"})))})),Gx=t().memo(uc((function({element:n,renderChildNodes:r}){const{displayNumber:i}=(0,e.useContext)(cc);return t().createElement(nc,{"aria-labelledby":Bl(i)},t().createElement("div",{className:"e-results-section-wrapper"},r(n)))}))),Zx=5;function Hx(e,t,n,r=!0){const i=[...t,...n],o=i.filter((e=>e.message));for(const[n,a]of i.entries()){const i=t.includes(a)?"pregrading":"censoring",s=o.indexOf(a)+1||void 0,l="pregrading"===i?n:n-t.length;switch(a.type){case"line":case"rect":Vx(e,a,i,l,s,r);break;default:Qx(e,a,i,l,s,r)}}}function qx(e,t){const n=e.style,r=e=>100*e+"%";"rect"===t.type?(n.left=r(t.x),n.top=r(t.y),n.right=r(1-(t.x+t.width)),n.bottom=r(1-(t.y+t.height))):(n.left=r(t.x1),n.top=r(t.y1),n.right=r(1-t.x2),n.bottom=r(1-t.y2))}function Yx(e){const t=e.parentElement;if(t instanceof HTMLSpanElement)return t;const n=De("span",{className:"e-annotation-wrapper"});return t.insertBefore(n,e),n.appendChild(e),n}function Vx(e,t,n,r,i,o){const{attachmentIndex:a}=t;return Wx(e.querySelectorAll("img")[a],o?t.message:"",t,n,r,i)}function Wx(e,t,n,r,i,o){const a=Yx(e),s=function(){const e=De("mark",{className:Er()("e-annotation e-annotation--shape",{"e-annotation--pregrading":"pregrading"===r,"e-annotation--censoring":"censoring"===r}),title:t,"data-list-index":String(i),"data-type":r,...o&&{"data-index":String(o)},...n.message&&{"data-message":n.message}});return qx(e,n),o&&e.appendChild(Jx(o,"shape",n.message)),e}();return a.appendChild(s),s}function Qx(e,t,n,r,i,o){const{startIndex:a,length:s}=t;return function e(f,p,h){var g;if(!l(f)&&!function(e){return"SUP"===e.nodeName}(f)&&!function(e){return"BR"===e.nodeName}(f)&&p>=a){const a=De("mark",{className:Er()("e-annotation",{"e-annotation--pregrading":"pregrading"===n,"e-annotation--censoring":"censoring"===n}),title:o?t.message:"","data-list-index":String(r),"data-type":n,...i&&{"data-index":String(i)},...t.message&&{"data-message":t.message}});null===(g=f.parentElement)||void 0===g||g.insertBefore(a,f);const l=d(a,f,h);l>0?e(c(a),p+s-l,l):i&&a.appendChild(Jx(i,"text",t.message))}else f instanceof Text&&p+u(f)>a&&f.splitText(a-p),e(function(e){return l(e)?e.childNodes[0]:c(e)}(f),p+u(f),h)}(e.childNodes[0],0,s);function l(e){return"MARK"===e.nodeName}function c(t){const n=t.nextSibling;if(n)return n;const r=t.parentElement;if(null===r||r===e)throw new Error("Bug: the answer seems to be too short for the current set of annotations.");return c(r)}function u(e){return e instanceof Text?e.length:function(e){return"IMG"===e.nodeName||"SPAN"===e.nodeName}(e)?1:0}function d(e,t,n){if(!t||l(t)||0===n)return n;t instanceof Text&&u(t)>0&&u(t)>n&&t.splitText(n);const r=t.nextSibling;return e.appendChild(t),d(e,r,n-u(t))}}function Jx(e,t,n){return De("sup",{className:`e-annotation__index e-annotation__index--${t}`,"data-content":n.length>Zx?`${e})`:n,"data-message":n})}const Xx=t().memo((function({displayNumber:n,score:r,value:i,answers:o,children:a}){const{t:s,i18n:l}=Dl(),c=(0,e.useRef)(null);return(0,e.useLayoutEffect)((()=>{var e,t,n,i;c.current&&Hx(c.current,null!==(t=null===(e=null==r?void 0:r.pregrading)||void 0===e?void 0:e.annotations)&&void 0!==t?t:[],null!==(i=null===(n=null==r?void 0:r.censoring)||void 0===n?void 0:n.annotations)&&void 0!==i?i:[])})),t().createElement(t().Fragment,null,n&&o.length>1&&t().createElement("sup",null,n),t().createElement("span",{className:Er()("text-answer text-answer--single-line",{"no-answer":!i}),"aria-description":i?void 0:l.t("examineExam.questionHasNoAnswer")},t().createElement(zb,null,s("screen-reader.answer-begin")),t().createElement("span",{className:"e-inline-block",ref:c},i),t().createElement(zb,null,s("screen-reader.answer-end"))),a)})),$x=t().memo((function({element:n}){const{answers:r}=(0,e.useContext)(dd),{answersByQuestionId:i,scores:o}=(0,e.useContext)(Qv),a=Ce(n,"question-id"),s=Ce(n,"max-score"),l=i[a],c=l&&l.value,u=ay(n.getAttribute("display-number")),d=$v(o,a),f=null==d?void 0:d.autograding;return t().createElement(Xx,{answers:r,displayNumber:u,value:c,score:d},t().createElement(ty,{score:null==f?void 0:f.score,maxScore:s,displayNumber:r.length>1?u:void 0,questionId:a}))}));function Kx({maxScore:e}){const{t:n}=Dl();return t().createElement(t().Fragment,null,t().createElement("span",{className:"e-result-scorecount-empty"}),e&&` / ${e} `,n("points",{count:""}))}function eI({shortCode:e}){return t().createElement("div",{className:"e-color-darkgrey e-columns e-columns--center-v"},t().createElement("span",{className:"e-font-size-xxxl e-light e-mrg-r-1"},"×"),t().createElement("span",null,e))}function tI({score:e,shortCode:n,type:r,maxScore:i,latest:o}){const{t:a}=Dl();return t().createElement("div",{className:o?"e-color-black":"e-color-darkgrey e-font-size-xs"},t().createElement(nI,{className:Er()("e-nowrap",{"e-font-size-m":o})},o?t().createElement("b",null,e):e,o&&i?` / ${i}`:""," p."),t().createElement(nI,{className:"e-result-scorecount-shortcode"},n),t().createElement(nI,{className:"e-mrg-r-0"},a(r)))}function nI({className:e,children:n}){return t().createElement("span",{className:Er()("e-mrg-r-1 e-nowrap",e)},n)}function rI({score:e}){return void 0!==e?{score:e,shortCode:"",type:"grading.pregrading-abbrev"}:null}function iI(e){return e.scores.map(((t,n)=>({score:t.score,shortCode:t.shortCode||"",type:"grading.round."+(e.scores.length-n)})))}const oI=t().memo((function({scores:n,maxScore:r,displayNumber:i,multilineAnswer:o,questionId:a}){var s,l,c,u,d;const{answers:f}=(0,e.useContext)(dd),p={answers:f,displayNumber:i,multilineAnswer:o,questionId:a},h=null===(l=null===(s=null==n?void 0:n.censoring)||void 0===s?void 0:s.nonAnswerDetails)||void 0===l?void 0:l.shortCode;return t().createElement(ey,{...p},null!=(null===(c=null==n?void 0:n.pregrading)||void 0===c?void 0:c.score)||(null===(d=null===(u=null==n?void 0:n.censoring)||void 0===u?void 0:u.scores)||void 0===d?void 0:d.length)?t().createElement(t().Fragment,null,function(e,n){var r;return[e.inspection&&(r=e.inspection,{score:r.score,shortCode:r.shortCodes?r.shortCodes.join(", "):"",type:"grading.inspection-grading-abbrev"}),...e.censoring?iI(e.censoring):[],e.pregrading&&rI(e.pregrading)].filter(Boolean).map(((e,r)=>t().createElement(tI,{key:r,...e,latest:0===r,maxScore:n})))}(n,r),h&&t().createElement(eI,{shortCode:h})):t().createElement(Kx,{maxScore:r}))})),aI=({type:n,score:r,value:i})=>{const{t:o,i18n:a}=Dl(),s=(0,e.useRef)(null);return(0,e.useLayoutEffect)((()=>{var e,t,n,i;s.current&&Hx(s.current,null!==(t=null===(e=null==r?void 0:r.pregrading)||void 0===e?void 0:e.annotations)&&void 0!==t?t:[],null!==(i=null===(n=null==r?void 0:r.censoring)||void 0===n?void 0:n.annotations)&&void 0!==i?i:[])})),t().createElement("div",{className:Er()("e-multiline-results-text-answer e-line-height-l e-pad-x-2 e-mrg-b-1",{"no-answer":!i}),"aria-description":i?void 0:a.t("examineExam.questionHasNoAnswer")},t().createElement(zb,null,o("screen-reader.answer-begin")),"rich-text"===n?t().createElement("div",{dangerouslySetInnerHTML:{__html:i||""},ref:s}):t().createElement("div",{className:"e-pre-wrap",ref:s},i),t().createElement(zb,null,o("screen-reader.answer-end")))},sI=t().memo((function({element:n}){var r;const{answers:i}=(0,e.useContext)(dd),{answersByQuestionId:o,scores:a}=(0,e.useContext)(Qv),{t:s}=Dl(),l=Ce(n,"question-id"),c=Ce(n,"max-score"),u=o[l],d=u&&u.value,f=i.length>1?ay(n.getAttribute("display-number")):void 0,p=$v(a,l),h=null===(r=null==p?void 0:p.pregrading)||void 0===r?void 0:r.comment,g=n.getAttribute("type")||"single-line",m=Ce(n,"max-length");return"rich-text"===g?t().createElement(t().Fragment,null,null!=m&&t().createElement(Gb,{maxLength:m}),t().createElement(oI,{multilineAnswer:!0,scores:p,maxScore:c,questionId:l}),t().createElement(aI,{type:g,value:d,score:p}),t().createElement(Ub,{answer:u,element:n}),h&&t().createElement(t().Fragment,null,t().createElement("h5",null,s("comment")),t().createElement("p",{className:"e-italic"},h))):t().createElement(Xx,{answers:i,score:p,displayNumber:f,value:d},t().createElement(oI,{scores:p,maxScore:c,displayNumber:f,questionId:l}))})),lI=({onEndSession:e,sessionEnded:n})=>{const{t:r}=Dl();return t().createElement("div",{className:"e-logout-container"},t().createElement("div",{className:"e-bg-color-off-white e-pad-6 shadow-box"},n?t().createElement(t().Fragment,null,t().createElement("h3",null,r("examineExam.thankYouTitle")),t().createElement("p",null,r("examineExam.shutdownComputer"),t().createElement("br",null),r("examineExam.returnUsbStick"))):t().createElement(t().Fragment,null,t().createElement("h3",null,r("examineExam.endExamTitle")),t().createElement("p",null,r("examineExam.afterInspectingYourAnswers"),t().createElement("br",null),r("examineExam.youCanNotReturnToExam"))),!n&&t().createElement("button",{id:"endSession",className:"e-button",onClick:()=>{e()}},r("examineExam.endExamTitle"))))},cI=({element:n,renderChildNodes:r,answerOptionsById:i})=>{var o;const{gradingStructure:a}=(0,e.useContext)(Qv),s=n.getAttribute("display-number"),l=Number(n.getAttribute("question-id")),c=null==a?void 0:a.questions.find((e=>e.displayNumber===s)),u=(null===(o=null==c?void 0:c.choices.find((e=>e.id===l)))||void 0===o?void 0:o.options)||[],d=null==u?void 0:u.filter((e=>e.correct)).map((e=>e.id)),f=null==d?void 0:d.map((e=>(null==i?void 0:i[e])||null)).filter(Boolean),{t:p}=Dl();return t().createElement(t().Fragment,null,t().createElement("span",{className:"droppable-title align-right"},p("dnd-answers.correct-answers")),t().createElement(iy,{renderChildNodes:r,answerOptionElements:f,correctIds:d,questionId:l,page:"results",classes:["correct-answers"]}))},uI=vs({attachment:ec,"attachment-link":pc("plain"),"attachment-links":hc("plain"),"audio-group":ec,audio:({element:e,renderChildNodes:n})=>{const r=!!Ce(e,"times"),i=Ce(e,"duration"),o=Ql(e);return r?t().createElement("div",{className:"audio e-columns e-columns--center-v e-mrg-b-2"},t().createElement("div",{className:"e-pad-1 restricted-audio-player restricted-audio-player--disabled e-columns e-columns--center-v"},t().createElement("button",{className:"restricted-audio-player__play e-column e-column--narrow",disabled:!0,onClick:()=>{}},t().createElement(qa,{icon:ns,fixedWidth:!0})),t().createElement("span",{className:"e-column e-text-right e-column"},Hu(i))),t().createElement("span",{className:"e-pad-l-2",id:o},t().createElement("em",null,"Ei kuunneltavissa"))):t().createElement(Yu,{element:e,renderChildNodes:n})},"choice-answer":Rx,"dnd-answer-container":({element:n,renderChildNodes:r})=>{const{answersByQuestionId:i,gradingStructure:o}=(0,e.useContext)(Qv),a=Te(n,"dnd-answer").filter((e=>!!we(e,"dnd-answer-title"))),s=Te(n,"dnd-answer-option"),l=a.reduce(((e,t)=>{var n;const r=t.getAttribute("question-id"),o=null===(n=i[Number(r)])||void 0===n?void 0:n.value;return{...e,[r]:o?[Number(o)]:[],root:e.root.filter((e=>e!==Number(o)))}}),{root:s.map((e=>Number(e.getAttribute("option-id"))))}),c=s.reduce(((e,t)=>({...e,[t.getAttribute("option-id")]:t})),{}),u=Te(n,"dnd-answer").filter((e=>!!we(e,"dnd-answer-title")));return t().createElement("div",{className:"e-dnd-answer-container"},u.map((e=>{var n;const i=e.getAttribute("question-id"),a=null===(n=l[i]||[])||void 0===n?void 0:n.map((e=>(null==c?void 0:c[e])||null)).filter(Boolean),s=l[i]||[];return t().createElement(t().Fragment,{key:i},t().createElement(sy,{key:i,element:e,answerOptionElements:a,renderChildNodes:r,itemIds:s,page:"results"}),o&&t().createElement(cI,{key:`${i}-correct`,element:e,renderChildNodes:r,answerOptionsById:c}))})))},"dropdown-answer":Px,formula:Ju,question:Bx,hints:ec,image:bx((({element:e})=>null!=Me(e,["choice-answer","dnd-answer-container"])))(Ku),"question-instruction":Cb,"question-number":pd,translation:hd,"question-title":Fx,section:Gx,"section-title":Rb,"text-answer":sI,"scored-text-answer":$x,"scored-text-answers":ec}),dI=()=>{const{t:e}=Dl();return e("examineExam.returnToExam")},fI=()=>{const{t:e}=Dl();return t().createElement("div",{className:"e-section examine-exam-page-instructions shadow-box"},t().createElement("h3",null,e("examineExam.checkYourAnswersTitle")),t().createElement("ul",null,t().createElement("li",null,e("examineExam.hereAreYourAnswers")),t().createElement("li",null,e("examineExam.checkYourAnswers")),t().createElement("li",null,e("examineExam.removeExcessAnswers")),t().createElement("li",null,t().createElement("span",{className:"no-answer-example"},e("examineExam.emptyAnswersAreHighlighted")),e("examineExam.thereMayBeOptionalQuestions"))))};function pI(){const{gradingText:n,totalScore:r}=(0,e.useContext)(Qv),{t:i}=Dl();return t().createElement("div",{className:"e-column--narrow"},t().createElement("table",{className:"e-table e-table--borderless e-mrg-b-0"},t().createElement("tbody",null,t().createElement("tr",null,t().createElement("th",{className:"e-pad-y-0 e-normal"},i("grading-total")),t().createElement("td",{className:"e-pad-y-0 e-semibold e-text-right"},i("points",{count:r}))),n&&t().createElement("tr",null,t().createElement("th",{className:"e-pad-y-0 e-normal"},i("grade")),t().createElement("td",{className:"e-pad-y-0 e-semibold e-text-right"},n)))))}const hI=t().memo(Jv(ac((({doc:n,returnToExam:r,endSession:i,studentSessionEnded:o=!1,isPreviewPage:a})=>{const{date:s,dateTimeFormatter:l,dayCode:c,examCode:u,language:d,resolveAttachment:f,root:p,subjectLanguage:h}=(0,e.useContext)(oc),{answersByQuestionId:g}=(0,e.useContext)(Qv),m=Ae(p,"exam-title"),v=p.getAttribute("exam-stylesheet"),b=$l((()=>jl(d,u,c)));(0,e.useEffect)(Ol(b,d)),(0,e.useEffect)(Xl,[]);const x=Kv(),I=void 0!==i,w=!x&&!a;return(0,e.useEffect)((()=>{window.location.hash=""}),[]),t().createElement(y,{i18n:b},t().createElement("main",{className:Er()("e-exam e-results",{"examine-exam-page":x,"session-ended":o}),lang:h},t().createElement(t().StrictMode,null),v&&t().createElement("link",{rel:"stylesheet",href:f(v)}),!w&&t().createElement("button",{className:"e-exam-done-return js-exam-done-return e-button",onClick:r},"« ",t().createElement(dI,null)),t().createElement("div",{className:"e-columns e-columns--bottom-v e-mrg-b-4"},m&&t().createElement(Kl,{id:"title",className:"e-column e-mrg-b-0"},uI(m),s&&`, ${l.format(s)}`),!x&&t().createElement(pI,null)),!w&&t().createElement(fI,null),t().createElement(fx,{validationErrors:Fp(Td(n),g),inExam:!1}),uI(p),(I||a)&&t().createElement(lI,{onEndSession:x?()=>{try{document.querySelectorAll("main > *:not(.e-logout-container)").forEach((e=>{const t=e;t.style.height=`${t.clientHeight}px`})),setTimeout((()=>{i()}),50)}catch(e){console.error(e)}}:()=>Promise.resolve(),sessionEnded:o})),t().createElement($h,null))})))),gI=function(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1};var mI=Math.max;const vI=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:od(n);return i<0&&(i=mI(r+i,0)),gI(e,An(t),i)};var yI=Math.max,bI=Math.min;const xI=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r-1;return void 0!==n&&(i=od(n),i=n<0?yI(r+i,0):bI(i,r-1)),gI(e,An(t),i,!0)},II=function(e,t,n){var r=e.length;return n=void 0===n?r:n,!t&&n>=r?e:Sn(e,t,n)},wI=function(e){return e!=e},TI=function(e,t,n){return t==t?function(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}(e,t,n):gI(e,wI,n)};var MI=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");var AI="\\ud800-\\udfff",EI="["+AI+"]",CI="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",NI="\\ud83c[\\udffb-\\udfff]",SI="[^"+AI+"]",kI="(?:\\ud83c[\\udde6-\\uddff]){2}",jI="[\\ud800-\\udbff][\\udc00-\\udfff]",DI="(?:"+CI+"|"+NI+")?",OI="[\\ufe0e\\ufe0f]?",LI=OI+DI+"(?:\\u200d(?:"+[SI,kI,jI].join("|")+")"+OI+DI+")*",RI="(?:"+[SI+CI+"?",CI,kI,jI,EI].join("|")+")",PI=RegExp(NI+"(?="+NI+")|"+RI+LI,"g");const zI=function(e){return function(e){return MI.test(e)}(e)?function(e){return e.match(PI)||[]}(e):function(e){return e.split("")}(e)};var UI=/^\s+/;const _I=function(e,t,n){if((e=vn(e))&&(n||void 0===t))return e.replace(UI,"");if(!e||!(t=mn(t)))return e;var r=zI(e),i=function(e,t){for(var n=-1,r=e.length;++n<r&&TI(t,e[n],0)>-1;);return n}(r,zI(t));return II(r,i).join("")},BI=function(e,t,n){if((e=vn(e))&&(n||void 0===t))return e.slice(0,nr(e)+1);if(!e||!(t=mn(t)))return e;var r=zI(e),i=function(e,t){for(var n=e.length;n--&&TI(t,e[n],0)>-1;);return n}(r,zI(t))+1;return II(r,0,i).join("")};function FI(e,t=!1){const n=(new DOMParser).parseFromString(e,"application/xml");return t||Te(n.documentElement,["choice-answer","dropdown-answer"],!0).filter((e=>"fixed"!==Ee(e,"ordering"))).forEach(GI),Te(n.documentElement,"reference").forEach((e=>{Te(e,(()=>!0),!1).forEach(ZI)})),n}function GI(e){for(let t=e.children.length;t>0;t--){const n=Math.floor(Math.random()*t);e.appendChild(e.children[n])}const t=Ae(e,(e=>"no-answer"===Ee(e,"type")));t&&e.appendChild(t)}function ZI(e){const t=e=>/\S/.test(e.textContent),n=(()=>{const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_TEXT);for(;n.nextNode();)t.push(n.currentNode);return t})(),r=vI(n,t),i=xI(n,t);-1!==r&&(n.slice(0,r).forEach((e=>e.remove())),n[r].textContent=_I(n[r].textContent)),-1!==i&&(n.slice(i+1).forEach((e=>e.remove())),n[i].textContent=BI(n[i].textContent))}function HI({characterCount:e,maxLength:n}){const{t:r}=Dl(),i=(o=e,!(a=n)||o<=a?0:Math.floor(100*o/a-100));var o,a;return t().createElement("div",{className:"e-font-size-xs e-grading-answer-length"},r("answer-length",{count:e}),i>0?t().createElement("span",{className:"e-grading-answer-max-length-surplus"},r("max-length-surplus",{maxLength:n,percentage:i})):"")}const qI=function({pregrading:e,censoring:n,singleGrading:r}){const i=(e,t=0)=>{var n;return null!==(n=e.filter((e=>e.message.length)).map(((e,n)=>({numbering:`${String(t+n+1)})`,message:e.message}))))&&void 0!==n?n:[]},o=i(e),a=i(n,o.length);return t().createElement(zx,{pregradingAnnotations:o,censoringAnnotations:a,singleGrading:r})};let YI;function VI(e){const t=(null==e?void 0:e.querySelectorAll("img"))||[];YI=t.length,t.forEach((e=>{e.complete?setTimeout((()=>WI(e)),0):e.addEventListener("load",(()=>WI(e)))}))}function WI(e){YI--;const t=e.parentElement,n=null==t?void 0:t.nextSibling,r=n instanceof HTMLElement&&n.classList.contains("full-size-image"),i=e.naturalWidth>e.width;null==t||t.classList.toggle("e-large-image",i),i?r||null==t||t.insertAdjacentHTML("afterend",`<div class="full-size-image"><a target="_blank" href="${e.src}"></a>`):r&&(null==n||n.remove())}function QI(n){const r=$l((()=>jl(n.language)));return(0,e.useEffect)(Ol(r,n.language)),t().createElement(y,{i18n:r},t().createElement(JI,{...n}))}function JI({answer:{type:n,characterCount:r,value:i},language:o,isReadOnly:a,gradingRole:s,annotations:l,saveAnnotations:c,maxLength:u,popupTopMargin:d=25}){const f=(0,e.useRef)(null),p=(0,e.useRef)(null),h=(0,e.useRef)(null),g=(0,e.useRef)(null);let m,v;const y={start:void 0,element:void 0,img:void 0};let b,x,I,w,T,M=!1;const[A,E]=(0,e.useState)(0),[C,N]=(0,e.useState)(0),[S,k]=(0,e.useState)(0);(0,e.useEffect)((()=>{const e=document.querySelectorAll(".e-grading-answer img[src]");function t(){E((e=>e+1))}function n(e){console.error("Image failed to load:",e.src),k((e=>e+1)),e.alt="Image failed to load",e.style.border="1px solid red"}return N((null==e?void 0:e.length)||0),E(0),k(0),null==e||e.forEach((e=>{e instanceof HTMLImageElement&&(e.complete?t():(e.addEventListener("load",t),e.addEventListener("error",(()=>n(e)))))})),()=>{null==e||e.forEach((e=>{e instanceof HTMLImageElement&&(e.removeEventListener("load",t),e.removeEventListener("error",(()=>n(e))))}))}}),[i]),(0,e.useLayoutEffect)((()=>(f.current&&g.current&&p.current&&(v=l,br(g.current,!1),br(p.current,!1),H(v),f.current.setAttribute("lang",o),document.addEventListener("selectionchange",F)),window.onresize=()=>{clearTimeout(w),w=setTimeout((()=>VI(f.current)),1e3)},()=>{window.removeEventListener("keydown",q),window.removeEventListener("mouseup",B),window.removeEventListener("mousemove",Z)})));const{t:j}=Dl(),D=C>0&&A!==C,O=S>0;return t().createElement("div",{onClick:e=>function(e){var t;const n=e.target;if(n instanceof HTMLElement)if("MARK"===n.tagName)y.element||P(n);else if("LI"===n.tagName){const e=null===(t=n.dataset.listNumber)||void 0===t?void 0:t.replace(")",""),r=document.querySelector(`.e-annotation[data-index="${e}"]`);P(r),r.scrollIntoView({block:"center",behavior:"smooth"})}else b&&L()}(e),className:"e-grading-answer-wrapper"},D&&t().createElement("div",{className:"loading-images"},t().createElement("span",{className:"loading"},j("grading.loading-images")," (",A,"/",C,")"),O&&t().createElement("span",{className:"failed"},j("grading.some-images-failed"))),t().createElement("div",{className:"e-grading-answer e-line-height-l e-mrg-b-1",ref:f,onMouseDown:e=>function(e){var t;if(a||0!==e.button)return;window.addEventListener("mouseup",B);const n=(null===(t=e.target.closest(".e-annotation-wrapper"))||void 0===t?void 0:t.querySelector("img"))||void 0;n&&(n.addEventListener("dragstart",yr),y.start=function(e,t){const n=t.closest(".e-grading-answer"),r=Array.from(n.querySelectorAll("img")).findIndex((e=>e===t)),i=n.querySelectorAll(".e-annotation-wrapper").item(r).getBoundingClientRect(),o=e.clientX,a=vr((o-i.left)/i.width),s=e.clientY;return{attachmentIndex:r,bbox:i,startX:a,startY:vr((s-i.top)/i.height),clientX:o,clientY:s}}(e,n),y.img=n,window.addEventListener("mousemove",Z))}(e),onMouseOver:e=>function(e){const t=e.closest("mark");!t||M||hr()&&!a||y.element||P(t)}(e.target)}),t().createElement(HI,{characterCount:r,maxLength:u}),t().createElement(qI,{censoring:l.censoring,pregrading:l.pregrading,singleGrading:"pregrading"===s}),t().createElement("form",{style:{display:"none"},ref:p,className:"e-grading-answer-popup e-grading-answer-add-annotation",onSubmit:e=>function(e){e.preventDefault();const t=h.current.value;b?v[b.role][b.index].message=t:v[s]=gr(f.current,{...m,message:t},v[s]||[]),br(p.current,!1),c(v)}(e)},t().createElement("input",{onFocus:()=>function(){if(!xr()&&f.current){const e={...v};e[s]=gr(f.current,m,v[s]),H(e)}}(),name:"message",className:"e-grading-answer-add-annotation-text",type:"text",ref:h}),t().createElement("button",{className:"e-grading-answer-add-annotation-button",type:"submit","data-i18n":"arpa.annotate"},j("grading.annotate")),t().createElement("button",{className:"e-grading-answer-close-popup",onClick:e=>{e.preventDefault(),_()}},"×")),t().createElement("div",{style:{display:"none"},ref:g,className:"e-grading-answer-tooltip e-grading-answer-popup",onMouseOver:function(){clearTimeout(I)},onMouseOut:L},t().createElement("span",{onClick:e=>function(e){e.target.closest(".editable")&&(br(g.current,!1),U(x,b.message))}(e),className:"e-grading-answer-tooltip-label"}),t().createElement("button",{onClick:e=>function(e){e.preventDefault(),L(),v[b.role].splice(b.index,1),b=void 0,c(v)}(e),className:"e-grading-answer-tooltip-remove"},"×")));function L(){I=setTimeout((()=>{br(g.current,!1)}),400)}function R(e){"MARK"===e.target.tagName&&(clearTimeout(I),L()),f.current.removeEventListener("mouseout",R)}function P(e){clearTimeout(I);const t=g.current,{type:n,listIndex:r,message:i}=e.dataset;t.classList.toggle("editable",!a&&n===s),x=e.getBoundingClientRect(),pr(x,f.current,t,d),t.querySelector(".e-grading-answer-tooltip-label").textContent=i||"–",b={index:Number(r),role:n,message:i||""},f.current.addEventListener("mouseout",R)}function z(e,t){b=void 0,U(e,t)}function U(e,t){window.removeEventListener("keydown",q),pr(e,f.current,p.current,d);const n=h.current;n.value=t,n.focus(),M=!0,window.addEventListener("keydown",q)}function _(){m=void 0,y.element=void 0,y.img=void 0,M=!1,window.removeEventListener("keydown",q),br(p.current,!1),H(v)}function B(){var e,t;if(null===(e=y.img)||void 0===e||e.removeEventListener("dragstart",yr),window.removeEventListener("mousemove",Z),window.removeEventListener("mouseup",B),y.element)return void z(null===(t=y.element)||void 0===t?void 0:t.getBoundingClientRect(),"");const n=window.getSelection();if(n&&null!==f.current&&hr()){const e=n.getRangeAt(0),t=ur(f.current,e);if(!t)return;const r=dr(v[s],t.startIndex,t.length);m={...t,type:"text",message:r},z(e.getBoundingClientRect(),r);const i={...v};i[s]=gr(f.current,m,v[s]),H(i)}}function F(){xr()||(clearTimeout(T),T=setTimeout(G,500))}function G(){const e=window.getSelection();if(e&&null!==f.current&&hr()){const t=e.getRangeAt(0),n=ur(f.current,t);if(!n)return;const r=dr(v[s],n.startIndex,n.length);M=!0,h.current.value=r,pr(t.getBoundingClientRect(),f.current,p.current,d),m={...n,type:"text",message:r}}}function Z(e){yr(e),m=function(e,{bbox:t,attachmentIndex:n,startX:r,startY:i,clientX:o,clientY:a}){const s=vr((e.clientX-t.left)/t.width),l=vr((e.clientY-t.top)/t.height),c=Math.abs(o-e.clientX)<=10,u=Math.abs(a-e.clientY)<=10;switch(c||u?"line":"rect"){case"rect":return{type:"rect",attachmentIndex:n,x:Math.min(r,s),y:Math.min(i,l),width:Math.abs(s-r),height:Math.abs(l-i),message:""};case"line":return{type:"line",attachmentIndex:n,x1:c?r:Math.min(r,s),y1:u?i:Math.min(i,l),x2:c?r:Math.max(r,s),y2:u?i:Math.max(i,l),message:""}}}(e,y.start),y.element?qx(y.element,m):y.element=Wx(y.img,"",m,s,999)}function H(e){const t=f.current;"richText"===n?(t.innerHTML=i,t.querySelectorAll("img").forEach(Yx),VI(t)):t.textContent=i,Hx(t,e.pregrading,e.censoring,!1)}function q(e){"Escape"===e.key&&M&&(e.stopPropagation(),_())}}})(),s})()));