@digabi/exam-engine-core 23.0.2 → 23.0.3
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/main-bundle.js +1 -1
- package/package.json +3 -3
package/dist/main-bundle.js
CHANGED
@@ -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,PHN2ZyB4bWxuczp4bGluaz0iaHR0cDovL3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TU3IC0yYy0xOCAtNCAtMTggLTE4IC0xOCAtMzh2LTUyN2MwIC0zNCAwIC00OCAxMDUgLTQ4aDQwdi0zMWMtNDEgMyAtMTQ0IDMgLTE5MCAzcy0xNDggMCAtMTg5IC0zdjMxaDQwYzEwNSAwIDEwNSAxNCAxMDUgNDh2NTI3YzAgMjMgMCAzNCAtMjEgMzhjLTEwIDIgLTM2IDIgLTU0IDJjLTE1MSAwIC0xNjYgLTMzIC0xODAgLTE5NGgtMjVsMTkgMjI1IGg2MTFaIj48L3BhdGg+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:v="",baseUrl:b=""}){var I;const[x,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),L=null!==(I=new URL(window.location.href).searchParams.get("forceToolbars"))&&void 0!==I?I:"0",[O,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),V(!0,!0),r&&y(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 V(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||(v&&(U.current.innerHTML=v),setTimeout((()=>{H(),D(!0),U.current&&z.write(U.current.innerHTML)}),0))}),[j,v,U.current,z]),(0,i.jsx)(p.Provider,{value:{isToolbarOpen:"0"!==L||x,isMathToolbarOpen:"2"===L||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:O,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:V,initialValue:v,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)})),y=(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 y="",v="";function b(e,t){const n=this;this.tag=e,this.attribs=t||{},this.tagPosition=y.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 I=function(e){return!1===t.allowedTags||(t.allowedTags||[]).indexOf(e)>-1};u.forEach((function(e){I(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 x=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,L,O;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(),L)return void O++;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)),(!I(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!==x.indexOf(e)&&(L=!0,O=1),j[S]=!0),S++,i){if("discard"===t.disallowedTagsMode||"completelyDiscard"===t.disallowedTagsMode)return;v=y,y=""}y+="<"+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.");y+=" "+i,n&&n.length?y+='="'+U(n,!0)+'"':t.allowedEmptyAttributes.includes(i)&&(y+='=""')}else delete r.attribs[i];var u,d,g})),-1!==t.selfClosing.indexOf(e)?y+=" />":(y+=">",!r.innerText||c||t.textFilter||(y+=U(r.innerText),R=!0)),i&&(y=v+U(y),v="")},ontext:function(e){if(L)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||I(r))if("discard"!==t.disallowedTagsMode&&"completelyDiscard"!==t.disallowedTagsMode||"script"!==r&&"style"!==r){const n=U(e,!1);t.textFilter&&!R?y+=t.textFilter(n,r):R||(y+=n)}else y+=e;else e="";k.length&&(k[k.length-1].text+=e)},onclosetag:function(e,n){if(L){if(O--,O)return;L=!1}const r=k.pop();if(!r)return;if(r.tag!==e)return void k.push(r);L=!!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();v=y,y=""}D[S]&&(e=D[S],delete D[S]),t.exclusiveFilter&&t.exclusiveFilter(r)?y=y.substr(0,r.tagPosition):(r.updateParentNodeMediaChildren(),r.updateParentNodeText(),-1!==t.selfClosing.indexOf(e)||n&&!I(e)&&["escape","recursiveEscape"].indexOf(t.disallowedTagsMode)>=0?i&&(y=v,v=""):(y+="</"+e+">",i&&(y=v+U(y),v=""),R=!1))}},t.parser);return P.write(e),P.end(),y;function z(){y="",S=0,k=[],j={},D={},L=!1,O=0}function U(e,n){return"string"!=typeof e&&(e+=""),t.parser.decodeEntities&&(e=e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"),n&&(e=e.replace(/"/g,"""))),e=e.replace(/&(?![a-zA-Z0-9#]{1,20};)/g,"&").replace(/</g,"<").replace(/>/g,">"),n&&(e=e.replace(/"/g,""")),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",y="@layer",v=Math.abs,b=String.fromCharCode,I=Object.assign;function x(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,L=0,O=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 I(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=O>0?A(P,--O):0,D--,10===R&&(D=1,j--),R}function F(){return R=O<L?A(P,O++):0,D++,10===R&&(D=1,j++),R}function G(){return A(P,O)}function Z(){return O}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 V(e){return x(H(O-1,Q(91===e?e+2:40===e?e+1:e)))}function Y(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 O;case 34:case 39:34!==e&&39!==e&&Q(R);break;case 40:41===e&&Q(e);break;case 92:F()}return O}function J(e,t){for(;F()&&e+R!==57&&(e+R!==84||47!==G()););return"/*"+H(t,O-1)+"*"+b(47===e?e:F())}function X(e){for(;!q(G());)F();return H(e,O)}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 y: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]})),I(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]})),I(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,L=C(P=e),O=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,y=1,I=0,x="",w=i,E=o,N=r,k=x;m;)switch(h=I,I=F()){case 40:if(108!=h&&58==A(k,d-1)){-1!=M(k+=T(V(I),"&","&\f"),"&\f",v(c?s[c-1]:0))&&(y=-1);break}case 34:case 39:case 91:k+=V(I);break;case 9:case 10:case 13:case 32:k+=Y(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)*y;case 125*g:case 59:case 0:switch(I){case 0:case 125:m=0;case 59+u:-1==y&&(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,x,w=[],E=[],d,o),o),123===I)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,x,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=y=1,x=k="",d=a;break;case 58:d=1+C(k),p=h;default:if(g<1)if(123==I)--g;else if(125==I&&0==g++&&125==B())continue;switch(k+=b(I),I*g){case 38:y=u>0?1:(k+="\f",-1);break;case 44:s[c++]=(C(k)-1)*y,y=1;break;case 64:45===G()&&(k+=V(F())),f=G(),u=d=C(x=k+=X(Z())),I++;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,y=0,b=0;m<r;++m)for(var I=0,w=E(e,f+1,f=v(y=a[m])),M=e;I<g;++I)(M=x(y>0?h[I]+" "+w:T(w,/&\f/g,h[I])))&&(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([])),ye=Object.freeze({});function ve(e,t,n){return void 0===n&&(n=ye),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"]),Ie=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,xe=/(^-|-$)/g;function we(e){return e.replace(Ie,"-").replace(xe,"")}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 Le(e){return"string"==typeof e&&!0}var Oe="function"==typeof Symbol&&Symbol.for,Re=Oe?Symbol.for("react.memo"):60115,Pe=Oe?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,Ve=Object.getPrototypeOf,Ye=Object.prototype;function We(e,t,n){if("string"!=typeof t){if(Ye){var r=Ve(t);r&&r!==Ye&&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}(),yt=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}(),vt=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,It={isServer:!pe,useCSSOMInjection:!he},xt=function(){function e(e,t,n){void 0===e&&(e=ye),void 0===t&&(t={});var i=this;this.options=r(r({},It),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 vt(n):t?new mt(n):new yt(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?ye:e,o=i.options,a=void 0===o?ye: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 xt,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 Lt=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}(),Ot=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;Ot(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 Lt?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,xt.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 Vt={};function Yt(e,t,n){var i=Je(e),s=e,l=!Le(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);Vt[n]=(Vt[n]||0)+1;var r="".concat(n,"-").concat(je(de+n+Vt[n]));return t?"".concat(t,"-").concat(r):r}(t.displayName,t.parentComponentId):d,p=t.displayName,h=void 0===p?function(e){return Le(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,y=t.shouldForwardProp;if(i&&s.shouldForwardProp){var v=s.shouldForwardProp;if(t.shouldForwardProp){var b=t.shouldForwardProp;y=function(e,t){return v(e,t)&&b(e,t)}}else y=v}var I=new Ft(n,g,i?s.componentStyle:void 0);function x(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=ve(t,f,l)||ye,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),y=m.as||d,v={};for(var b in m)void 0===m[b]||"$"===b[0]||"as"===b||"theme"===b&&m.theme===g||("forwardedAs"===b?v.as=m.forwardedAs:h&&!h(b,y)||(v[b]=m[b]));var I=function(e,t){var n=jt();return e.generateAndInjectStyles(t,n.styleSheet,n.stylis)}(s,m),x=Xe(c,u);return I&&(x+=" "+I),m.className&&(x+=" "+m.className),v[Le(y)&&!be.has(y)?"class":"className"]=x,v.ref=n,(0,o.createElement)(y,v)}(w,e,t)}x.displayName=h;var w=a().forwardRef(x);return w.attrs=m,w.componentStyle=I,w.displayName=h,w.shouldForwardProp=y,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=ye),!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(Yt,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),xt.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&&xt.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:ve(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 Lt(o,r)}function rn(e){var t=a().forwardRef((function(t,n){var i=ve(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 xt({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:xt,mainSheet:Et};"__sc-".concat(le,"__")},679:(e,t,n)=>{"use strict";n.r(t),n.d(t,{focusable:()=>x,getTabIndex:()=>f,isFocusable:()=>M,isTabbable:()=>w,tabbable:()=>I});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))},y=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))},v=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)},I=function(e,t){var n;return n=(t=t||{}).getShadowRoot?u([e],t.includeContainer,{filter:y.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:v}):c(e,t.includeContainer,y.bind(null,t)),b(n)},x=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)&&y(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:()=>Id,Exam:()=>by,GradingAnswer:()=>nb,GradingInstructions:()=>Oy,Results:()=>xv,parseExam:()=>Wv});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={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},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),y=(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:y}=d;let v=t||s||u.options?.defaultNS;v=c(v)?[v]:v||["translation"],u.reportNamespaces.addUsedNamespaces?.(v);const b=(u.isInitialized||u.initializedStoreOnce)&&v.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))),I=((t,n,r,i)=>(0,e.useCallback)(m(t,n,r,i),[t,n,r,i]))(u,n.lng||null,"fallback"===d.nsMode?v:v[0],y),x=()=>I,w=()=>m(u,n.lng||null,"fallback"===d.nsMode?v:v[0],y),[T,M]=(0,e.useState)(x);let A=v.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,v,(()=>{C.current&&M(w)})):o(u,v,(()=>{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(x)}),[u,y,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,v,(()=>e())):o(u,v,(()=>e()))}))};function v({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},I=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},x=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)},L=function(e){return null!=e&&"object"==typeof e},O=function(e){return L(e)&&"[object Arguments]"==D(e)};var R=Object.prototype,P=R.hasOwnProperty,z=R.propertyIsEnumerable;const U=O(function(){return arguments}())?O:function(e){return L(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},V=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991};var Y={};Y["[object Float32Array]"]=Y["[object Float64Array]"]=Y["[object Int8Array]"]=Y["[object Int16Array]"]=Y["[object Int32Array]"]=Y["[object Uint8Array]"]=Y["[object Uint8ClampedArray]"]=Y["[object Uint16Array]"]=Y["[object Uint32Array]"]=!0,Y["[object Arguments]"]=Y["[object Array]"]=Y["[object ArrayBuffer]"]=Y["[object Boolean]"]=Y["[object DataView]"]=Y["[object Date]"]=Y["[object Error]"]=Y["[object Function]"]=Y["[object Map]"]=Y["[object Number]"]=Y["[object Object]"]=Y["[object RegExp]"]=Y["[object Set]"]=Y["[object String]"]=Y["[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 L(e)&&V(e.length)&&!!Y[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?x(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&&V(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&&I(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},ye=function(e,t){return(_(e)?b:pe)(e,me(t))},ve=(0,e.createContext)({}),be=" ";function Ie(e,t){const n=null!=t?xe(t):void 0,r=[];for(;null!=e.parentElement;)e=e.parentElement,(null==n||n(e))&&r.push(e);return r}function xe(e){return"function"==typeof e?t=>t.namespaceURI===gs&&e(t):Array.isArray(e)?t=>t.namespaceURI===gs&&e.includes(t.localName):t=>t.namespaceURI===gs&&t.localName===e}function we(e,t){const n=xe(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=xe(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=xe(t);for(;null!=e.parentElement;)if(n(e=e.parentElement))return e}function Ae(e,t){const n=xe(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"],!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){ye(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 Le(t,n){const{visibleTOCElements:r}=(0,e.useContext)(ve),[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 Oe(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 Ve=function(e){return!(!le(e)||(t=e,ze&&ze in t))&&(ce(e)?qe:Be).test(_e(e));var t},Ye=function(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return Ve(n)?n:void 0},We=function(){try{var e=Ye(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=Ye(M,"Map"),it=Ye(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},yt=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},vt=M.Uint8Array,bt=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n},It=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n};var xt=A?A.prototype:void 0,wt=xt?xt.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=Ye(M,"DataView"),Dt=Ye(M,"Promise"),Lt=Ye(M,"Set"),Ot=Ye(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(Lt),Ht=_e(Ot),qt=D;(jt&&qt(new jt(new ArrayBuffer(1)))!=_t||rt&&qt(new rt)!=Rt||Dt&&qt(Dt.resolve())!=Pt||Lt&&qt(new Lt)!=zt||Ot&&qt(new Ot)!=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 Vt=qt;var Yt="[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:Vt(e),c=s?Wt:Vt(t),u=(l=l==Yt?Qt:l)==Qt,d=(c=c==Yt?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)?yt(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 vt(e),new vt(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=It),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=yt(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 y=a?r(m,g,u,t,e,o):r(g,m,u,e,t,o);if(!(void 0===y?g===m||i(g,m,n,r,o):y)){p=!1;break}h||(h="constructor"==u)}if(p&&!h){var v=e.constructor,b=t.constructor;v==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof v&&v instanceof v&&"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||!L(t)&&!L(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||L(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},yn=function(e){return null==e?"":mn(e)},vn=function(e,t){return _(e)?e:an(e,t)?[e]:un(yn(e))},bn=function(e){if("string"==typeof e||nn(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t},In=function(e,t){for(var n=0,r=(t=vn(t,e)).length;null!=e&&n<r;)e=e[bn(t[n++])];return n&&n==r?e:void 0},xn=function(e,t,n){var r=null==e?void 0:In(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=vn(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)&&V(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 In(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=xn(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},Ln=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},On=function(e,t){return e<t},Rn=function(e,t){return e&&e.length?Ln(e,An(t),On):void 0},Pn=function(e,t){return e>t},zn=function(e,t){return e&&e.length?Ln(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 In(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)}},Vn=We?function(e,t){return We(e,"toString",{configurable:!0,enumerable:!1,value:(n=t,function(){return n}),writable:!0});var n}:ge;var Yn=Date.now;const Wn=(Qn=Vn,Jn=0,Xn=0,function(){var e=Yn(),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 yr(e){return cr(e,0,1)}function vr(e){e.preventDefault(),e.stopPropagation()}function br(e,t){e.style.display=t?"initial":"none"}function Ir(){return matchMedia("(pointer:fine)").matches}const xr=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||{},Lr=Nr,Or=Sr,Rr=kr,Pr=jr,zr=(Lr.document,!!Or.documentElement&&!!Or.head&&"function"==typeof Or.addEventListener&&"function"==typeof Or.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],Vr=qr.concat([11,12,13,14,15,16,17,18,19,20]),Yr={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",Yr.GROUP,Yr.SWAP_OPACITY,Yr.PRIMARY,Yr.SECONDARY].concat(qr.map((e=>"".concat(e,"x")))).concat(Vr.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 yi=ci(mi),vi=/fa(s|r|l|t|d|b|k|kd|ss|sr|sl|st|sds)?[\-\ ]/,bi="fa-layers-text",Ii=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit)?.*/i,xi=(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=Yr,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=Lr.FontAwesomeConfig||{};Or&&"function"==typeof Or.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=Or.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}}),Lr.FontAwesomeConfig=Ni;const Si=[],ki=Jr,ji={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1},Di="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function Li(){let e=12,t="";for(;e-- >0;)t+=Di[62*Math.random()|0];return t}function Oi(e){const t=[];for(let n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function Ri(e){return e.classList?Oi(e.classList):(e.getAttribute("class")||"").split(" ").filter((e=>e))}function Pi(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}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=Or.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;const n=Or.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)}Or.head.insertBefore(t,r)}(Bi()),Fi=!0)}var Zi={mixout:()=>({dom:{css:Bi,insertCss:Gi}}),hooks:()=>({beforeDOMElementCreation(){Gi()},beforeI2svg(){Gi()}})};const Hi=Lr||{};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 Vi=[],Yi=function(){Or.removeEventListener("DOMContentLoaded",Yi),Wi=1,Vi.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=(Or.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(Or.readyState),Wi||Or.addEventListener("DOMContentLoaded",Yi));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 yo(){return io}po=e=>{io=bo(e.styleDefault,{family:Ni.familyDefault})},Si.push(po),fo();const vo=()=>({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 Io={[_r]:Object.keys(gi[_r]),[Fr]:Object.keys(gi[Fr]),[Gr]:Object.keys(gi[Gr])};function xo(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=>Io[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)?yi[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}),vo());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=yo()||"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||yo();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=()=>{Lo({autoReplaceSvgRoot:t}),Co("watch",e)},zr&&(Wi?setTimeout(n,0):Vi.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(vi))){const t=xo(e.split(" "),{skipLookups:!0});return{prefix:t.prefix||yo(),iconName:go(t.prefix,t.iconName)||t.iconName}}if("string"==typeof e){const t=yo();return{prefix:t,iconName:go(t,e)||e}}}},library:ko,findIconDefinition:So,toHtml:Qi},Lo=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{autoReplaceSvgRoot:t=Or}=e;(Object.keys(qi.styles).length>0||Ni.autoFetchSvg)&&zr&&Ni.autoReplaceSvg&&Do.dom.i2svg({node:t})};function Oo(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=Or.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 y=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||Li())},children:[s]}),delete m.attributes.title);const v={...m,prefix:r,iconName:i,main:t,mask:n,maskId:l,transform:o,symbol:a,styles:{...y,...u.styles}},{children:b,attributes:I}=n.found&&t.found?No("generateAbstractMask",v)||{children:[],attributes:{}}:No("generateAbstractIcon",v)||{children:[],attributes:{}};return v.children=b,v.attributes=I,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}]}]}(v):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}]}(v)}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=yo()),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 Vo=()=>{};function Yo(e){return"string"==typeof(e.getAttribute?e.getAttribute(Kr):null)}function Wo(e){return Or.createElementNS("http://www.w3.org/2000/svg",e)}function Qo(e){return Or.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 Or.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=Or.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:Vo;if(0===e.length)n();else{let t=$o;Ni.mutateApproach===oi&&(t=Lr.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=Vo,nodeCallback:n=Vo,pseudoElementsCallback:r=Vo,observeMutationsRoot:i=Or}=e;ra=new Rr((e=>{if(ea)return;const i=yo();Oi(e).forEach((e=>{if("childList"===e.type&&e.addedNodes.length>0&&!Yo(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&&Yo(e.target)&&~xi.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}=xo(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=xo(Ri(e));return i.prefix||(i.prefix=yo()),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=Oi(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||Li()):(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=Or.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=Oi(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 Oo({type:"icon",...e},(()=>(Co("beforeDOMElementCreation",{iconDefinition:e,params:t}),Ni.autoA11y&&(a?c["aria-labelledby"]="".concat(Ni.replacementClass,"-title-").concat(s||Li()):(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=Or,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 Oo({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 Oo({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 Oo({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"),ya=[1105920,1112319],va={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(va).reduce(((e,t)=>(e[t.toLowerCase()]=va[t],e)),{}),Ia=Object.keys(ba).reduce(((e,t)=>{const n=ba[t];return e[t]=n[900]||[...Object.entries(n)][0][1],e}),{});function xa(e,t){const n="".concat(ti).concat(t.replace(":","-"));return new Promise(((r,i)=>{if(null!==e.getAttribute(n))return r();const o=Oi(e.children).filter((e=>e.getAttribute(ei)===t))[0],a=Lr.getComputedStyle(e,t),s=a.getPropertyValue("font-family"),l=s.match(Ii),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]||Ia[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>=ya[0]&&n<=ya[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:vo()},prefix:d,iconName:m,extra:s,watchable:!0}),l=Or.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([xa(e,"::before"),xa(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=Oi(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=Or}=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?xo(n.split(" ").map((e=>e.trim()))):vo();return r.prefix||(r.prefix=yo()),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||Li()),y="clip-".concat(o||Li()),v={tag:"mask",attributes:{...Ca,id:m,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"},children:[f,g]},b={tag:"defs",children:[{tag:"clipPath",attributes:{id:y},children:(I=u,"g"===I.tag?I.children:[I])},v]};var I;return t.push(b,{tag:"rect",attributes:{fill:"currentColor","clip-path":"url(#".concat(y,")"),mask:"url(#".concat(m,")"),...Ca}}),{children:t,attributes:n}}}},{provides(e){let t=!1;Lr.matchMedia&&(t=Lr.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 La(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 Oa(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?La(Object(n),!0).forEach((function(t){Pa(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):La(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=Oa(Oa({},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,y=e.size,v=e.rotation,b=e.pull,I=(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(y),null!=y),Pa(t,"fa-rotate-".concat(v),null!=v&&0!==v),Pa(t,"fa-pull-".concat(b),null!=b),Pa(t,"fa-swap-opacity",e.swapOpacity),t);return Object.keys(I).map((function(e){return I[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,Oa(Oa(Oa(Oa({},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])})),Va(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 Va=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=Oa(Oa({},o.attrs.style),s),t.apply(void 0,[n.tag,Oa(Oa({},o.attrs),l)].concat(za(i)))}.bind(null,t().createElement);const Ya={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:"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"]},Ka={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"]},es={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"]},ts={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"]},ns={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"]},rs={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"]},is={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 os(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:Ya,fixedWidth:!0})," ",l&&"Vahvista?"))):null}function as(){const{newAnnotation:n,setNewAnnotation:r,newAnnotationRef:i,setNewAnnotationRef:o,onSaveAnnotation:a}=(0,e.useContext)(ss);return t().createElement(os,{element:i,initialTextContent:"",onValueSave:e=>{a(n,e),r(null),o(null)},enableDelete:!1,onCancel:()=>{r(null),o(null)}})}const ss=t().createContext({}),ls=({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(ss.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=xr(o);if(n===xr(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(as,null),n))},cs=(0,e.createContext)({}),us=({annotation:n,markedText:r,onClickAnnotation:i,setNewAnnotationRef:o})=>{const a=(0,e.useRef)(null);return(0,e.useEffect)((()=>{a.current&&!fs(n)&&o(a.current)}),[]),t().createElement("mark",{ref:a,className:"e-annotation","data-annotation-id":fs(n)?n.annotationId:"","data-hidden":"false","data-annotation-path":n.annotationAnchor,onClick:e=>fs(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 ds(e){return fs(e)?e.annotationId+e.startIndex:e.startIndex}function fs(e){return"annotationId"in e}function ps(e,t,n){return e.substring(t,t+n)}const hs=({node:n})=>{var r,i;const o=(0,e.useContext)(ss),{isInSidebar:a}=(0,e.useContext)(cs),{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=Oe(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=ds(e);l.push(t().createElement("mark",{key:n,className:"e-annotation","data-annotation-id":fs(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=ps(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=ps(e,u,n.length);u>c&&l.push(e.substring(c,u));const p=ds(n);l.push(n.hidden?t().createElement("mark",{key:p,className:"e-annotation","data-annotation-id":fs(n)?n.annotationId:"","data-hidden":"true"}):t().createElement(us,{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)},gs="http://ylioppilastutkinto.fi/exam.xsd";function ms(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(hs,{node:e,key:Oe(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 gs: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 vs=e=>"string"==typeof e,bs=()=>{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,xs=/###/g,ws=e=>e&&e.indexOf("###")>-1?e.replace(xs,"."):e,Ts=e=>!e||vs(e),Ms=(e,t,n)=>{const r=vs(t)?t.split("."):t;let i=0;for(;i<r.length-1;){if(Ts(e))return{};const t=ws(r[i]);!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++i}return Ts(e)?{}:{obj:e,k:ws(r[i])}},As=(e,t,n)=>{const{obj:r,k:i}=Ms(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=Ms(e,a,Object);for(;void 0===s.obj&&a.length;)o=`${a[a.length-1]}.${o}`,a=a.slice(0,a.length-1),s=Ms(e,a,Object),s&&s.obj&&void 0!==s.obj[`${s.k}.${o}`]&&(s.obj=void 0);s.obj[`${s.k}.${o}`]=n},Es=(e,t)=>{const{obj:n,k:r}=Ms(e,t);if(n)return n[r]},Cs=(e,t,n)=>{for(const r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?vs(e[r])||e[r]instanceof String||vs(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):Cs(e[r],t[r],n):e[r]=t[r]);return e},Ns=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var Ss={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const ks=e=>vs(e)?e.replace(/[&<>"'\/]/g,(e=>Ss[e])):e,js=[" ",",","?","!",";"],Ds=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},Os=e=>e&&e.replace("_","-"),Rs={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 Ps{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||Rs,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:(vs(e[0])&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[t](e))}create(e){return new Ps(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return(e=e||this.options).prefix=e.prefix||this.prefix,new Ps(this.logger,e)}}var zs=new Ps;class Us{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 _s extends Us{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):vs(n)&&i?a.push(...n.split(i)):a.push(n)));const s=Es(this.data,a);return!s&&!t&&!n&&e.indexOf(".")>-1&&(e=a[0],t=a[1],n=a.slice(2).join(".")),!s&&o&&vs(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),As(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)(vs(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=Es(this.data,a)||{};o.skipCopy||(n=JSON.parse(JSON.stringify(n))),r?Cs(s,n,i):s={...s,...n},As(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 Bs={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 Fs={};class Gs extends Us{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=zs.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=js.filter((e=>t.indexOf(e)<0&&n.indexOf(e)<0));if(0===r.length)return!0;const i=Ds.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:vs(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:vs(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,y=!vs(d)&&"boolean"!=typeof d&&"number"!=typeof d;if(!(m&&d&&y&&["[object Number]","[object Function]","[object RegExp]"].indexOf(h)<0)||vs(g)&&Array.isArray(d))if(m&&vs(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&&!vs(t.count),f=Gs.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 y=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&a?void 0:d,v=f&&m!==d&&this.options.updateMissing;if(a||r||v){if(this.logger.log(v?"updateKey":"missingKey",l,s,o,v?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:y;this.options.missingKeyHandler?this.options.missingKeyHandler(e,s,n,i,v,t):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(e,s,n,i,v,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=vs(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&&!vs(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=vs(a)?[a]:a;return null!=e&&s&&s.length&&!1!==n.applyPostProcessor&&(e=Bs.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 vs(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&&!vs(a.count),d=u&&!a.ordinal&&0===a.count&&this.pluralResolver.shouldUseIntlApi(),f=void 0!==a.context&&(vs(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,!Fs[`${p[0]}-${e}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(o)&&(Fs[`${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&&!vs(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 Zs=e=>e.charAt(0).toUpperCase()+e.slice(1);class Hs{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=zs.create("languageUtils")}getScriptPartFromCode(e){if(!(e=Os(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=Os(e))||e.indexOf("-")<0)return e;const t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(vs(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]=Zs(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]=Zs(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=Zs(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)),vs(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 vs(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))):vs(e)&&i(this.formatLanguageCode(e)),n.forEach((e=>{r.indexOf(e)<0&&i(this.formatLanguageCode(e))})),r}}let qs=[{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 Ys=["v1","v2","v3"],Ws=["v4"],Qs={zero:0,one:1,two:2,few:3,many:4,other:5};class Js{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.languageUtils=e,this.options=t,this.logger=zs.create("pluralResolver"),this.options.compatibilityJSON&&!Ws.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 qs.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=Os("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)=>Qs[e]-Qs[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!Ys.includes(this.options.compatibilityJSON)}}const Xs=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=Es(e,n);return void 0!==r?r:Es(t,n)})(e,t,n);return!o&&i&&vs(n)&&(o=Ls(e,n,r),void 0===o&&(o=Ls(t,n,r))),o},$s=e=>e.replace(/\$/g,"$$$$");class Ks{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=zs.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:y}=e.interpolation;this.escape=void 0!==t?t:ks,this.escapeValue=void 0===n||n,this.useRawValueToEscape=void 0!==r&&r,this.prefix=i?Ns(i):o||"{{",this.suffix=a?Ns(a):s||"}}",this.formatSeparator=l||",",this.unescapePrefix=c?"":u||"-",this.unescapeSuffix=this.unescapePrefix?"":c||"",this.nestingPrefix=d?Ns(d):f||Ns("$t("),this.nestingSuffix=p?Ns(p):h||Ns(")"),this.nestingOptionsSeparator=g||",",this.maxReplaces=m||1e3,this.alwaysFormat=void 0!==y&&y,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=Xs(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(Xs(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=>$s(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?$s(this.escape(e)):$s(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=vs(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 vs(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&&!vs(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&&!vs(r))return r;vs(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 el=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(Os(r),i),t[a]=s),s(n)}};class tl{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=zs.create("formatter"),this.options=e,this.formats={number:el(((e,t)=>{const n=new Intl.NumberFormat(e,{...t});return e=>n.format(e)})),currency:el(((e,t)=>{const n=new Intl.NumberFormat(e,{...t,style:"currency"});return e=>n.format(e)})),datetime:el(((e,t)=>{const n=new Intl.DateTimeFormat(e,{...t});return e=>n.format(e)})),relativetime:el(((e,t)=>{const n=new Intl.RelativeTimeFormat(e,{...t});return e=>n.format(e,t.range||"day")})),list:el(((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()]=el(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 nl extends Us{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=zs.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}=Ms(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();vs(e)&&(e=this.languageUtils.toResolveHierarchy(e)),vs(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 rl=()=>({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]),vs(e[1])&&(t.defaultValue=e[1]),vs(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}}),il=e=>(vs(e.ns)&&(e.ns=[e.ns]),vs(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),vs(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),ol=()=>{};class al extends Us{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=il(e),this.services={},this.logger=zs,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&&(vs(t.ns)?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));const r=rl();this.options={...r,...this.options,...il(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?zs.init(i(this.modules.logger),this.options):zs.init(null,this.options),this.modules.formatter?t=this.modules.formatter:"undefined"!=typeof Intl&&(t=tl);const n=new Hs(this.options);this.store=new _s(this.options.resources,this.options);const o=this.services;o.logger=zs,o.resourceStore=this.store,o.languageUtils=n,o.pluralResolver=new Js(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 Ks(this.options),o.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},o.backendConnector=new nl(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 Gs(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=ol),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=bs(),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]:ol;const n=vs(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=bs();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=ol),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&&Bs.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=bs();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=vs(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 vs(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=bs();return this.options.ns?(vs(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=bs();vs(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 Hs(rl());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 al(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]:ol;const n=e.forkResourceStore;n&&delete e.forkResourceStore;const r={...this.options,...e,isClone:!0},i=new al(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 _s(this.store.data,r),i.services.resourceStore=i.store),i.translator=new Gs(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 sl=al.createInstance();sl.createInstance=al.createInstance,sl.createInstance,sl.dir,sl.init,sl.loadResources,sl.reloadResources,sl.use,sl.changeLanguage,sl.getFixedT,sl.t,sl.exists,sl.setDefaultNamespace,sl.hasLoadedNamespace,sl.loadNamespaces,sl.loadLanguages;const ll=function(e){return e&&e.length?e[0]:void 0},cl=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0},ul=function(){};var dl=Object.prototype.hasOwnProperty;const fl=function(e,t,n){var r=e[t];dl.call(e,t)&&$e(r,n)&&(void 0!==n||t in e)||Qe(e,t,n)},pl=function(e,t,n,r){if(!le(e))return e;for(var i=-1,o=(t=vn(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])?[]:{})}fl(s,l,c),s=s[l]}return e},hl=function(e,t){return function(e,t,n){for(var r=-1,i=t.length,o={};++r<i;){var a=t[r],s=In(e,a);n(s,a)&&pl(o,vn(a,e),s)}return o}(e,t,(function(t,n){return Tn(e,n)}))},gl=function(e){return null!=e&&e.length?Bn(e,1):[]},ml=function(e){return Wn(qn(e,void 0,gl),e+"")},yl=ml((function(e,t){return null==e?{}:hl(e,t)})),vl={"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."},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]"}},bl=yl(vl,["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."},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]"}},xl=yl(Il,["exam-total","material","external-material-title","section","references","toc-heading"]),wl={"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"},Tl={"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"},Ml={section:""},Al={"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"},El={"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"},Cl={"exam-total":"Весь экзамен",material:"Материал","external-material-title":"Материал",section:"Часть {{displayNumber}}:",references:{heading:"Источники",source:"Источник",date:"Опубликовано","reference-date":"Дата обращения",translator:"Перевод","modified-by":"Адаптировано"},"toc-heading":"Содержание"},Nl={A_E:{"external-material-title":"Aineistot","answering-instructions":{"toc-section_*_1_1":"Valitse yksi aihe.","section_*_1_1":"Valitse yksi aihe."}},BA:bl,BB:bl,CA:xl,CB:xl,EA:wl,EC:wl,FA:Tl,FC:Tl,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:Ml,N:Ml,O_E:{"answering-instructions":{"toc-section_*_1_1":"Välj ett ämne.","section_*_1_1":"Välj ett ämne."}},SA:El,SC:El,PA:Al,PC:Al,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:Cl,VC:Cl,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"}},Sl={"fi-FI":{translation:Il,...Nl},"sv-FI":{translation:vl,...Nl}};function kl(e,t,n){const r=t?t+(n?`_${n}`:""):"translation";return sl.use({type:"postProcessor",name:"lowercase",process:(e,t,n)=>e.toLocaleLowerCase(n.lng)}).createInstance({compatibilityJSON:"v3",resources:Sl,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 ll(n);case"last":return cl(n);default:return e}}}},ul)}function jl(){const{i18n:e,t:n}=y(),r=(n,r)=>function(e,n,r){const i=e.t(n,r),o=e.options.defaultNS.toString(),a="translation"!==o&&o in Nl,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 Dl=(e,t)=>()=>{e.language!==t&&e.changeLanguage(t).then(ul).catch(ul)},Ll=new WeakMap;let Ol=0;const Rl=e=>t=>`${e}-${(e=>{const t=Ll.get(e);if(null!=t)return t;const n=++Ol;return Ll.set(e,n),n})(t)}`,Pl=e=>t=>`${e}-${t}`,zl="title",Ul="references-title",_l=Pl("section-title"),Bl=Pl("question-title"),Fl=Rl("question-instruction"),Gl=Rl("answer-length-info"),Zl=Rl("external-material-list-title"),Hl=Pl("toc-section-title"),ql=Rl("answer-score"),Vl=Rl("image-caption"),Yl=Rl("video-caption"),Wl=Rl("audio-label"),Ql="toc-title";function Jl(){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",Jl),()=>window.removeEventListener("hashchange",Jl)}function Xl(t){return(0,e.useState)(t)[0]}const $l=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})})),Kl=function({element:e,renderChildNodes:n}){const r=n(e);return 0===r.length?null:t().createElement(t().Fragment,null,r)},ec=t().memo((function({element:e,renderChildNodes:n}){return t().createElement(t().Fragment,null,n(e,1))})),tc=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 nc(e){return e.displayName||e.name||"Component"}const rc=(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(${nc(r)})`,i},ic=t().createContext({});function oc(e){return rc(ic,(({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 ac=t().createContext({}),sc=rc(ac,(e=>{const{casCountdownDuration:t,examServerApi:n}=e;return{casCountdownDuration:t||60,examServerApi:n}})),lc=t().createContext({}),cc=rc(lc,(({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 uc(e,t){const n=new URL(e,"http://example.com");ye(t,((e,t)=>n[t]=e));const r=n.pathname+n.search+n.hash;return e.startsWith("/")?r:r.substr(1)}const dc=({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),fc=n=>t().memo((({element:r})=>{const i=r.getAttribute("ref"),{root:o}=(0,e.useContext)(ic),{attachmentsURL:a}=(0,e.useContext)(ic),{t:s}=jl(),l=we(o,(e=>"attachment"===e.localName&&e.getAttribute("name")===i)).getAttribute("display-number"),c="short"===r.getAttribute("type"),u=uc(a,{hash:l});return c?t().createElement(dc,{href:u,type:n},l):t().createElement(t().Fragment,null,"(",t().createElement(dc,{href:u,type:n},s("material",{postProcess:"lowercase"})," ",l),")")})),pc=n=>t().memo((({element:r})=>{const{root:i,attachmentsURL:o}=(0,e.useContext)(ic),{t:a}=jl(),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=uc(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(dc,{href:u,type:n},d):t().createElement(t().Fragment,null,"(",t().createElement(dc,{href:u,type:n},a("material",{count:f,postProcess:"lowercase"})," ",d),")")})),hc=t().createContext({}),gc=rc(hc,(({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}})),mc=t().memo(gc((function({element:n,renderChildNodes:r}){const{displayNumber:i,isExternal:o}=(0,e.useContext)(hc);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)(hc);return t().createElement("h3",null,i,be,r(n))}));var vc=a(5919),bc=e,Ic=Symbol.for("react-redux-context"),xc="undefined"!=typeof globalThis?globalThis:{};function wc(){if(!bc.createContext)return{};const e=xc[Ic]??(xc[Ic]=new Map);let t=e.get(bc.createContext);return t||(t=bc.createContext(null),e.set(bc.createContext,t)),t}var Tc=wc();function Mc(e=Tc){return function(){return bc.useContext(e)}}var Ac=Mc(),Ec=()=>{throw new Error("uSES not initialized!")},Cc=(e,t)=>e===t;function Nc(e=Tc){const t=e===Tc?Ac:Mc(e),n=(e,n={})=>{const{equalityFn:r=Cc,devModeChecks:i={}}="function"==typeof n?{equalityFn:n}:n,{store:o,subscription:a,getServerState:s,stabilityCheck:l,identityFunctionCheck:c}=t(),u=(bc.useRef(!0),bc.useCallback({[e.name]:t=>e(t)}[e.name],[e,l,i.stabilityCheck])),d=Ec(a.addNestedSub,o.getState,s||o.getState,u,r);return bc.useDebugValue(d),d};return Object.assign(n,{withTypes:()=>n}),n}var Sc=Nc();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 kc={notify(){},get:()=>[]};var jc=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),Dc="undefined"!=typeof navigator&&"ReactNative"===navigator.product,Lc=jc||Dc?bc.useLayoutEffect:bc.useEffect;function Oc(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function Rc(e,t){if(Oc(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])||!Oc(e[n[r]],t[n[r]]))return!1;return!0}Object.defineProperty,Object.getOwnPropertyNames,Object.getOwnPropertySymbols,Object.getOwnPropertyDescriptor,Object.getPrototypeOf,Object.prototype;var Pc=function({store:e,context:t,children:n,serverState:r,stabilityCheck:i="once",identityFunctionCheck:o="once"}){const a=bc.useMemo((()=>{const t=function(e,t){let n,r=kc,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=kc)}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=bc.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||Tc;return bc.createElement(l.Provider,{value:a},n)};function zc(e=Tc){const t=e===Tc?Ac:Mc(e),n=()=>{const{store:e}=t();return e};return Object.assign(n,{withTypes:()=>n}),n}var Uc=zc();function _c(e=Tc){const t=e===Tc?Uc:zc(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var Bc,Fc=_c();Bc=vc.useSyncExternalStoreWithSelector,Ec=Bc,e.useSyncExternalStore;const Gc=(e,t)=>n=>{const{nowPlaying:r}=n.audio;return null==r?"stopped":r.audio.restrictedAudioId===t&&r.audio.src===e?"playing":"other-playing"},Zc=(e,t)=>n=>n.audio.errors[null!=t?t:e],Hc=e=>t=>xn(t.audio.playbackTimes,e,0),qc=(e,t)=>n=>t-Hc(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"},Yc=!("undefined"==typeof window||!window.document||!window.document.createElement);var Wc=(new Date).getTime(),Qc=function(e){var t=(new Date).getTime(),n=Math.max(0,16-(t-Wc)),r=setTimeout(e,n);return Wc=t,r},Jc=function(e,t){return e+(e?t[0].toUpperCase()+t.substr(1):t)+"AnimationFrame"};Yc&&["","webkit","moz","o","ms"].some((function(e){var t=Jc(e,"request");return t in window&&(Jc(e,"cancel"),Qc=function(e){return window[t](e)}),!!Qc}));var Xc=Qc;function $c(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 Kc(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function eu(e,t){e.classList?e.classList.remove(t):"string"==typeof e.className?e.className=Kc(e.className,t):e.setAttribute("class",Kc(e.className&&e.className.baseVal||"",t))}var tu=/([A-Z])/g,nu=/^ms-/;function ru(e){return function(e){return e.replace(tu,"-$1").toLowerCase()}(e).replace(nu,"-ms-")}var iu=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;const ou=function(e,t){var n="",r="";if("string"==typeof t)return e.style.getPropertyValue(ru(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(ru(t));Object.keys(t).forEach((function(i){var o=t[i];o||0===o?function(e){return!(!e||!iu.test(e))}(i)?r+=i+"("+o+") ":n+=ru(i)+": "+o+";":e.style.removeProperty(ru(i))})),r&&(n+="transform: "+r+";"),e.style.cssText+=";"+n};var au=!1,su=!1;try{var lu={get passive(){return au=!0},get once(){return su=au=!0}};Yc&&(window.addEventListener("test",lu,lu),window.removeEventListener("test",lu,!0))}catch(e){}const cu=function(e,t,n,r){return function(e,t,n,r){if(r&&"boolean"!=typeof r&&!su){var i=r.once,o=r.capture,a=n;!su&&i&&(a=n.__once||function e(r){this.removeEventListener(t,e,o),n.call(this,r)},n.__once=a),e.addEventListener(t,a,au?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 uu(e,t,n,r){var i,o;null==n&&(o=-1===(i=ou(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=cu(e,"transitionend",(function(){r=!0}),{once:!0});return function(){clearTimeout(i),o()}}(e,n,r),s=cu(e,"transitionend",t);return function(){a(),s()}}function du(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 fu=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 pu(e){return pu="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},pu(e)}function hu(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 gu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hu(Object(n),!0).forEach((function(t){Iu(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function mu(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 vu(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function bu(e){return bu=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},bu(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 xu=[];uu&&xu.push(uu);var wu={children:Da().node,name:fu.isRequired,appear:Da().bool,enter:Da().bool,leave:Da().bool,appearTimeout:Da().number,enterTimeout:Da().number,leaveTimeout:Da().number},Tu=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=bu(i);if(o){var n=bu(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){return!t||"object"!==pu(t)&&"function"!=typeof t?vu(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(vu(n=a.call(this,e)),"refNode",t().createRef()),Iu(vu(n),"componentWillAppear",(function(e){n.props.appear?n.transition("appear",e,n.props.appearTimeout):e()})),Iu(vu(n),"componentWillEnter",(function(e){n.props.enter?n.transition("enter",e,n.props.enterTimeout):e()})),Iu(vu(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;$c(r,o),this.queueClassAndNode(a,r);var l=function(n){n&&n.target!==r||(clearTimeout(s),i&&i(),"leave"!==e&&(eu(r,o),eu(r,a)),i&&i(),t&&t())};n?(s=setTimeout(l,n),this.transitionTimeouts.push(s)):uu&&(i=function(e,t){return xu.length?xu.forEach((function(n){return e.addEventListener(n,t,!1)})):setTimeout(t,0),function(){xu.length&&xu.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=Xc((function(){return n.flushClassNameAndNodeQueueOnNextFrame()})))}},{key:"flushClassNameAndNodeQueueOnNextFrame",value:function(){var e=this;this.rafHandle=Xc((function(){return e.flushClassNameAndNodeQueue()}))}},{key:"flushClassNameAndNodeQueue",value:function(){this.unmounted||this.classNameAndNodeQueue.forEach((function(e){e.node.scrollTop,$c(e.node,e.className)})),this.classNameAndNodeQueue.length=0,this.rafHandle=null}},{key:"render",value:function(){var e=gu(gu({},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)}}])&&mu(n.prototype,r),s}(t().Component);Iu(Tu,"displayName","CSSTransitionGroupChild"),Tu.propTypes=wu;const Mu=Tu;function Au(e){return Au="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},Au(e)}function Eu(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 Cu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Eu(Object(n),!0).forEach((function(t){Du(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Eu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Nu(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 Su(e,t){return Su=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Su(e,t)}function ku(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ju(e){return ju=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ju(e)}function Du(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&&Su(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=ju(i);if(o){var n=ju(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){return!t||"object"!==Au(t)&&"function"!=typeof t?ku(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),Du(ku(n=a.call(this,e)),"handleDoneAppearing",(function(e){delete n.transitioningKeys[e],e!==n.state.currentKey&&n.performLeave(e)})),Du(ku(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(ku(n),e)),n.state.currentChild&&null!==(r=n.childRefs[n.state.currentKey].current)&&void 0!==r&&r.getNode()||n.enqueueHeightTransition()})),Du(ku(n),"performHeightTransition",(function(){if(!n.unmounted){var e,t=ku(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})),Du(ku(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=Cu(Cu({},a),{},Du({},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:Cu({},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=Xc(this.performHeightTransition))}},{key:"wrapChild",value:function(e,n){var r=this.props.transitionName;return"object"===Au(r)&&null!==r&&delete(r=Cu({},r)).height,t().createElement(Mu,Cu({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=Cu({},g.style),m&&(g.style.position="relative",u&&(g.style.overflow="hidden")),null!==a){var y="string"==typeof d?"".concat(d,"-height"):d&&d.height||"";g.className="".concat(g.className||""," ").concat(y),g.style.height=a}null!==s&&(g.style.width=s);var v={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:v},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]?v:m?{position:"relative"}:null},this.wrapChild(i,{ref:function(t){return e.setChildRef(r,t)}}))),t().createElement(f,g,l)}}])&&Nu(n.prototype,r),s}(t().Component);Du(Lu,"displayName","ReactCSSTransitionReplace"),Du(Lu,"propTypes",{transitionName:fu.isRequired,transitionAppear:Da().bool,transitionEnter:Da().bool,transitionLeave:Da().bool,transitionAppearTimeout:du("Appear"),transitionEnterTimeout:du("Enter"),transitionLeaveTimeout:du("Leave"),overflowHidden:Da().bool,changeWidth:Da().bool,notifyLeaving:Da().bool}),Du(Lu,"defaultProps",{transitionAppear:!1,transitionEnter:!0,transitionLeave:!0,overflowHidden:!0,changeWidth:!1,notifyLeaving:!1,component:"div",childComponent:"span"});const Ou=({error:e,children:n})=>{const{t:r}=jl();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:is,className:"e-mrg-r-1"}),r(`audio-errors.${e}`)):t().createElement("div",{key:"no-error"},n))};var Ru=a(758);const Pu=e=>(0,Ru.action)("PLAY_AUDIO",e),zu=e=>(0,Ru.action)("PLAY_AUDIO_STARTED",e),Uu=()=>(0,Ru.action)("PLAY_AUDIO_FINISHED"),_u=(e,t)=>(0,Ru.action)("SHOW_AUDIO_ERROR",{audio:e,error:t}),Bu=e=>(0,Ru.action)("HIDE_AUDIO_ERROR",e),Fu=e=>(0,Ru.action)("UPDATE_REMAINING",e),Gu=t().memo((function({src:n,restrictedAudioId:r,duration:i,times:o,labelId:a}){const s=Sc(Gc(n,r)),l=Sc(((e,t)=>n=>"playing"===Gc(e,t)(n)?n.audio.nowPlaying.durationRemaining:void 0)(n,r)),c=Sc(qc(r,o)),{i18n:u}=jl(),d=Fc(),f="playing"===s,p="stopped"===s,h=!p||0===c,g=`audio-remaining-${r}`,m=f?[]:[g,a],{abitti2:y}=(0,e.useContext)(ic),v=(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},y&&t().createElement("audio",{ref:v,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(Pu({src:n,restrictedAudioId:r,duration:i,audioRef:v})),"aria-labelledby":m.join(" ")},!f&&t().createElement(qa,{icon:ts,fixedWidth:!0})),t().createElement("span",{className:"restricted-audio-player__duration e-column e-text-right",id:g},function(e){const t=e%60;return`${Zu(Math.floor(e/60))}:${Zu(t)}`}(null!=l?l:i)))}));function Zu(e){return e.toString().padStart(2,"0")}const Hu=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}=jl(),u=null!=s&&null!=a?Sc(Zc(o,a)):void 0,d=null!=s&&null!=a?Sc(qc(a,s)):void 0,{resolveAttachment:f}=(0,e.useContext)(ic),p=Wl(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(Gu,{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(Ou,{error:u},i(n)),null!=d&&t().createElement("em",null,c("listen-times-remaining",{count:d}))))})),qu=ms({attachment:gc((function({element:n}){const{displayNumber:r}=(0,e.useContext)(hc);return t().createElement("li",{"data-list-number":r,"aria-label":r},qu(n,1))})),"attachment-title":function({element:n}){const{attachmentsURL:r}=(0,e.useContext)(ic),{displayNumber:i}=(0,e.useContext)(hc);return t().createElement("a",{href:uc(r,{hash:i}),className:"exam-attachment-title",target:"attachments"},qu(n))}}),Vu=t().memo((function({element:e,showTitle:n=!0,forceRender:r=!1}){if(null==Me(e,"question")&&!r)return null;const{t:i}=jl(),o=Zl(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},qu(e)))})),Yu=t().memo((function({element:n,className:r,renderChildNodes:i}){const o=n.getAttribute("src"),a=n.hasChildNodes(),{resolveAttachment:s}=(0,e.useContext)(ic);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)})),Wu=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))})),Qu=({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 Ju(e){return"string"==typeof e&&0===e.trim().length}const Xu=t().memo((function({element:n,className:r,renderChildNodes:i}){const{resolveAttachment:o}=(0,e.useContext)(ic),{t:a}=jl(),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(Ju),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(Qu,{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 $u({element:e,renderChildNodes:n}){return t().createElement("em",null,n(e))}function Ku({element:e,renderChildNodes:n}){return t().createElement("i",null,n(e))}function ed({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)(ic);return t().createElement(t().Fragment,null,i.format(n))}}const td=t().memo((function({element:e,renderChildNodes:n}){const{t:r}=jl();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",Kl),i("title",$u),i("publisher",Kl),i("publication",Kl),i("howpublished",Kl),i("url",Ku),o("publication-date","references.date",ed),o("reference-date","references.reference-date",ed),o("translator","references.translator",Kl),o("modified-by","references.modified-by",Kl),i("note",Kl)]).filter(Boolean).reduce(((e,t,n)=>(e.push(t),n!==a.length-1&&e.push(". "),e)),[])));var a})),nd=t().memo((function({element:n,renderChildNodes:r,className:i}){const{resolveAttachment:o}=(0,e.useContext)(ic),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(Ju),f=d?u:void 0,p=d?Yl(n):void 0;return t().createElement(Qu,{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 rd=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 id=4294967295,od=Math.min;function ad({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:$a,className:"e-mrg-l-1 e-pointer",onClick:()=>n(1)}))}function sd({element:n,absolute:r,opacity:i}){const o=n.getAttribute("src"),a=Ce(n,"width"),s=Ce(n,"height"),l=(0,e.useContext)(ic).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(Qu,{width:a,height:s},t().createElement("img",{className:"e-image",src:l})))}const ld=t().memo((function({element:n,renderChildNodes:r}){const[i,o]=(0,e.useState)((()=>function(e,t){if((e=rd(e))<1||e>9007199254740991)return[];var n=id,r=od(e,id);t=me(t),e-=id;for(var i=x(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(ad,{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(sd,{key:n,element:e,renderChildNodes:r,opacity:i[n],absolute:n>0}))))))})),cd=t().createContext({}),ud=rc(cd,(({element:e})=>{const t=Te(e,"question",!1),n=t.length?[]:Te(e,["text-answer","scored-text-answer","dropdown-answer","choice-answer"],!1),r=Te(e,"question-instruction",!1),i=e.getAttribute("display-number"),o=r.length>0?r.map(Fl).join(" "):Bl(i);return{answers:n,displayNumber:i,hasExternalMaterial:null!=Ae(e,"external-material"),maxAnswers:Ce(e,"max-answers"),maxScore:Ce(e,"max-score"),level:Ie(e,"question").length,childQuestions:t,questionLabelIds:o}}));function dd({element:n}){const r=n.getAttribute("suffix"),{displayNumber:i}=(0,e.useContext)(cd);return t().createElement(t().Fragment,null,ll(i.split(".")),".",r)}const fd=t().memo((function({element:e}){const{t:n}=jl(),r=e.getAttribute("key");return t().createElement(t().Fragment,null,n(r))})),pd=ms({"attachment-link":fc("link"),"attachment-links":pc("link"),"attachment-title":yc,attachment:mc,audio:Hu,"audio-title":Kl,file:Yu,image:Xu,video:nd,formula:Wu,"question-number":dd,translation:fd,reference:function(e,n,r){const i=n=>t().createElement("div",{...r},t().createElement(e,{...n}));return i.displayName=`Surround(${nc(e)})`,i}(td,0,{className:"e-mrg-y-2 e-font-size-s"}),"image-overlay":ld}),hd=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(Vu,{element:e,renderChildNodes:pd,showTitle:!1,forceRender:n}),pd(e))})),gd=t().memo(ud((function({element:n,renderChildNodes:r}){const{displayNumber:i,hasExternalMaterial:o,level:a}=(0,e.useContext)(cd);return function(e,t,n){return t&&(0===n||Ie(e).every((e=>"question"!==e.localName||!Ae(e,"external-material"))))}(n,o,a)?t().createElement(tc,{id:i,"aria-labelledby":Bl(i)},r(n,1)):t().createElement(t().Fragment,null,r(n,1))})));function md(e){return e.includes(".")?e:`${e}.`}const yd=t().memo((function({element:n,renderChildNodes:r}){const{displayNumber:i,hasExternalMaterial:o}=(0,e.useContext)(cd);return o?t().createElement(t().Fragment,null,t().createElement("div",{className:"anchor",id:`question-nr-${i}`}),t().createElement("h2",{id:Bl(i)},md(i)," ",r(n))):null})),vd=ms({"audio-group":ec,"external-material":hd,"question-title":yd,question:gd,section:cc(Kl)}),bd=()=>{const{t:e}=jl();return t().createElement(t().Fragment,null,e("attachments-page-title"))},Id=t().memo(sc(oc((({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)(ic),p=Ae(o,"exam-title"),h=o.getAttribute("exam-stylesheet"),g=Ae(o,"external-material"),m=Xl((()=>kl(a,u,c)));return(0,e.useEffect)(Dl(m,a)),(0,e.useEffect)(Jl,[]),t().createElement(ls,{annotations:n,onClickAnnotation:r,onSaveAnnotation:i},t().createElement(v,{i18n:m},t().createElement("main",{className:"e-exam attachments",lang:f,"aria-labelledby":zl},t().createElement(t().StrictMode,null),h&&t().createElement("link",{rel:"stylesheet",href:d(h)}),t().createElement(tc,{"aria-labelledby":zl},p&&t().createElement($l,{id:zl},t().createElement(bd,null),be,vd(p)),t().createElement("div",{className:"e-semibold e-mrg-b-6"},l.format(s)),g&&t().createElement(hd,{element:g,renderChildNodes:vd,forceRender:!0})),vd(o))))}))));function xd(e){const t=e.documentElement;return Ad(t,Te(t,"section",!1).map(wd),{maxAnswers:Ce(t,"max-answers")})}function wd(e){return Ad(e,Te(e,"question",!1).map(Td),{displayNumber:Ee(e,"display-number"),minAnswers:Ce(e,"min-answers"),maxAnswers:Ce(e,"max-answers")})}function Td(e){const t=Te(e,"question",!1);return Ad(e,t.length?t.map(Td):Te(e,["text-answer","scored-text-answer","choice-answer","dropdown-answer"],!1).map(Md),{displayNumber:Ee(e,"display-number"),maxAnswers:Ce(e,"max-answers")})}function Md(e){return Ad(e,[],{displayNumber:Ee(e,"display-number"),questionId:Ce(e,"question-id"),maxLength:Ce(e,"max-length")})}function Ad(e,t,n){return{name:e.localName,attributes:n,childNodes:t}}const Ed=function(e,t){return(_(e)?pn:Fn)(e,An(t))},Cd=En((function(e,t,n){Qe(e,n,t)}));function Nd(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 Sd=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")(),kd=()=>Math.random().toString(36).substring(7).split("").join("."),jd={INIT:`@@redux/INIT${kd()}`,REPLACE:`@@redux/REPLACE${kd()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${kd()}`};function Dd(e,t,n){if("function"!=typeof e)throw new Error(Nd(2));if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(Nd(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(Nd(1));return n(Dd)(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(Nd(3));return i}function d(e){if("function"!=typeof e)throw new Error(Nd(4));if(l)throw new Error(Nd(5));let t=!0;c();const n=s++;return a.set(n,e),function(){if(t){if(l)throw new Error(Nd(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(Nd(7));if(void 0===e.type)throw new Error(Nd(8));if("string"!=typeof e.type)throw new Error(Nd(17));if(l)throw new Error(Nd(9));try{l=!0,i=r(i,e)}finally{l=!1}return(o=a).forEach((e=>{e()})),e}return f({type:jd.INIT}),{dispatch:f,subscribe:d,getState:u,replaceReducer:function(e){if("function"!=typeof e)throw new Error(Nd(10));r=e,f({type:jd.REPLACE})},[Sd]:function(){const e=d;return{subscribe(t){if("object"!=typeof t||null===t)throw new Error(Nd(11));function n(){const e=t;e.next&&e.next(u())}return n(),{unsubscribe:e(n)}},[Sd](){return this}}}}}function Ld(...e){return 0===e.length?e=>e:1===e.length?e[0]:e.reduce(((e,t)=>(...n)=>e(t(...n))))}var Od=function(e){return"@@redux-saga/"+e},Rd=Od("CANCEL_PROMISE"),Pd=Od("CHANNEL_END"),zd=Od("IO"),Ud=Od("MATCH"),_d=Od("MULTICAST"),Bd=Od("SAGA_ACTION"),Fd=Od("SELF_CANCELLATION"),Gd=Od("TASK"),Zd=Od("TASK_CANCEL"),Hd=Od("TERMINATE"),qd=Od("LOCATION");function Vd(){return Vd=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},Vd.apply(null,arguments)}function Yd(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 Wd=function(e){return null==e},Qd=function(e){return null!=e},Jd=function(e){return"function"==typeof e},Xd=function(e){return"string"==typeof e},$d=Array.isArray,Kd=function(e){return e&&Jd(e.then)},ef=function(e){return e&&Jd(e.next)&&Jd(e.throw)},tf=function e(t){return t&&(Xd(t)||of(t)||Jd(t)||$d(t)&&t.every(e))},nf=function(e){return e&&Jd(e.take)&&Jd(e.close)},rf=function(e){return Jd(e)&&e.hasOwnProperty("toString")},of=function(e){return Boolean(e)&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype},af=function(e){return nf(e)&&e[_d]};const sf=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[Rd]=function(){clearTimeout(n)},r};var lf=function(e){return function(){return true}}(),cf=function(){},uf=function(e){return e};"function"==typeof Symbol&&Symbol.asyncIterator&&Symbol.asyncIterator;var df=function(e,t){Vd(e,t),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach((function(n){e[n]=t[n]}))};function ff(e,t){var n=e.indexOf(t);n>=0&&e.splice(n,1)}function pf(e){var t=!1;return function(){t||(t=!0,e())}}var hf=function(e){throw e},gf=function(e){return{value:e,done:!0}};function mf(e,t,n){void 0===t&&(t=hf),void 0===n&&(n="iterator");var r={meta:{name:n},next:e,throw:t,return:gf,isSagaIterator:!0};return"undefined"!=typeof Symbol&&(r[Symbol.iterator]=function(){return r}),r}function yf(e,t){var n=t.sagaStack;console.error(e),console.error(n)}var vf=function(e){return Array.apply(null,new Array(e))},bf=function(e){return function(t){return e(Object.defineProperty(t,Bd,{value:!0}))}},If=function(e){return e===Hd},xf=function(e){return e===Zd},wf=function(e){return If(e)||xf(e)};function Tf(e,t){var n,r=Object.keys(e),i=r.length,o=0,a=$d(e)?vf(i):{},s={};return r.forEach((function(e){var r=function(r,s){n||(s||wf(r)?(t.cancel(),t(r,s)):(a[e]=r,++o===i&&(n=!0,t(a))))};r.cancel=cf,s[e]=r})),t.cancel=function(){n||(n=!0,r.forEach((function(e){return s[e].cancel()})))},s}function Mf(e){return{name:e.name||"anonymous",location:Af(e)}}function Af(e){return e[qd]}function Ef(){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 Cf={isEmpty:lf,put:cf,take:cf};var Nf=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)},Sf="TAKE",kf="PUT",jf="RACE",Df="CALL",Lf="FORK",Of="CANCEL",Rf="SELECT",Pf="CANCELLED",zf=function(e,t){var n;return(n={})[zd]=!0,n.combinator=!1,n.type=e,n.payload=t,n};function Uf(e,t){return void 0===e&&(e="*"),tf(e)?(Qd(t)&&console.warn("take(pattern) takes one argument but two were provided. Consider passing an array for listening to several action types"),zf(Sf,{pattern:e})):af(e)&&Qd(t)&&tf(t)?zf(Sf,{channel:e,pattern:t}):nf(e)?(Qd(t)&&console.warn("take(channel) takes one argument but two were provided. Second argument is ignored."),zf(Sf,{channel:e})):void 0}function _f(e,t){return Wd(t)&&(t=e,e=void 0),zf(kf,{channel:e,action:t})}function Bf(e,t){var n,r=null;return Jd(e)?n=e:($d(e)?(r=e[0],n=e[1]):(r=e.context,n=e.fn),r&&Xd(n)&&Jd(r[n])&&(n=r[n])),{context:r,fn:n,args:t}}function Ff(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 zf(Df,Bf(e,n))}function Gf(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 zf(Lf,Bf(e,n))}function Zf(e){return void 0===e&&(e=Fd),zf(Of,e)}var Hf=Ff.bind(null,sf);const qf=function(){var e={};return e.promise=new Promise((function(t,n){e.resolve=t,e.reject=n})),e};var Vf=[],Yf=0;function Wf(e){try{Xf(),e()}finally{$f()}}function Qf(e){Vf.push(e),Yf||(Xf(),Kf())}function Jf(e){try{return Xf(),e()}finally{Kf()}}function Xf(){Yf++}function $f(){Yf--}function Kf(){var e;for($f();!Yf&&void 0!==(e=Vf.shift());)Wf(e)}var ep=function(e){return function(t){return e.some((function(e){return op(e)(t)}))}},tp=function(e){return function(t){return e(t)}},np=function(e){return function(t){return t.type===String(e)}},rp=function(e){return function(t){return t.type===e}},ip=function(){return lf};function op(e){var t="*"===e?ip:Xd(e)?np:$d(e)?ep:rf(e)?np:Jd(e)?tp:of(e)?rp:null;if(null===t)throw new Error("invalid pattern: "+e);return t(e)}var ap={type:Pd},sp=function(e){return e&&e.type===Pd};function lp(e){void 0===e&&(e=Nf());var t=!1,n=[];return{take:function(r){t&&e.isEmpty()?r(ap):e.isEmpty()?(n.push(r),r.cancel=function(){ff(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(ap):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])(ap)}}}}function cp(){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(ap)}))},(e={})[_d]=!0,e.put=function(e){if(!t)if(sp(e))o();else for(var i=n=r,a=0,s=i.length;a<s;a++){var l=i[a];l[Ud](e)&&(l.cancel(),l(e))}},e.take=function(e,n){void 0===n&&(n=ip),t?e(ap):(e[Ud]=n,i(),r.push(e),e.cancel=pf((function(){i(),ff(r,e)})))},e.close=o,e),s=a.put;return a.put=function(e){e[Bd]?s(e):Qf((function(){s(e)}))},a}var up=0,dp=1,fp=2,pp=3;function hp(e,t){var n=e[Rd];Jd(n)&&(t.cancel=n),e.then(t,(function(e){t(e,!0)}))}var gp,mp=0,yp=function(){return++mp};function vp(e){e.isRunning()&&e.cancel()}var bp=((gp={})[Sf]=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):!sp(e)||a?n(e):n(Hd)};try{i.take(s,Qd(o)?op(o):null)}catch(e){return void n(e,!0)}n.cancel=s.cancel},gp[kf]=function(e,t,n){var r=t.channel,i=t.action,o=t.resolve;Qf((function(){var t;try{t=(r?r.put:e.dispatch)(i)}catch(e){return void n(e,!0)}o&&Kd(t)?hp(t,n):n(t)}))},gp.ALL=function(e,t,n,r){var i=r.digestEffect,o=mp,a=Object.keys(t);if(0!==a.length){var s=Tf(t,n);a.forEach((function(e){i(t[e],o,s[e],e)}))}else n($d(t)?[]:{})},gp[jf]=function(e,t,n,r){var i=r.digestEffect,o=mp,a=Object.keys(t),s=$d(t)?vf(a.length):{},l={},c=!1;a.forEach((function(e){var t=function(t,r){c||(r||wf(t)?(n.cancel(),n(t,r)):(n.cancel(),c=!0,s[e]=t,n(s)))};t.cancel=cf,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)}))},gp[Df]=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(Kd(l))return void hp(l,n);if(ef(l))return void Np(e,l,s.context,mp,Mf(o),!1,n);n(l)}catch(e){n(e,!0)}},gp.CPS=function(e,t,n){var r=t.context,i=t.fn,o=t.args;try{var a=function(e,t){Wd(e)?n(t):n(e,!0)};i.apply(r,o.concat(a)),a.cancel&&(n.cancel=a.cancel)}catch(e){n(e,!0)}},gp[Lf]=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(ef(i))return i;var o=!1;return mf((function(e){return o?{value:e,done:!0}:(o=!0,{value:i,done:!Kd(i)})}))}catch(e){return mf((function(){throw e}))}}({context:i,fn:o,args:a}),u=function(e,t){return e.isSagaIterator?{name:e.meta.name}:Mf(t)}(c,o);Jf((function(){var t=Np(e,c,l.context,mp,u,s,void 0);s?n(t):t.isRunning()?(l.queue.addTask(t),n(t)):t.isAborted()?l.queue.abort(t.error()):n(t)}))},gp.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()&&ff(e.joiners,n)},e.joiners.push(n)}else e.isAborted()?t(e.error(),!0):t(e.result())};if($d(t)){if(0===t.length)return void n([]);var a=Tf(t,n);t.forEach((function(e,t){o(e,a[t])}))}else o(t,n)},gp[Of]=function(e,t,n,r){var i=r.task;t===Fd?vp(i):$d(t)?t.forEach(vp):vp(t),n()},gp[Rf]=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)}},gp.ACTION_CHANNEL=function(e,t,n){var r=t.pattern,i=lp(t.buffer),o=op(r),a=function t(n){sp(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)},gp[Pf]=function(e,t,n,r){n(r.task.isCancelled())},gp.FLUSH=function(e,t,n){t.flush(n)},gp.GET_CONTEXT=function(e,t,n,r){n(r.task.context[t])},gp.SET_CONTEXT=function(e,t,n,r){var i=r.task;df(i.context,t),n()},gp);function Ip(e,t){return e+"?"+t}function xp(e){var t=e.name,n=e.location;return n?t+" "+Ip(n.fileName,n.lineNumber):t}var wp=null,Tp=[],Mp=function(e){e.crashedEffect=wp,Tp.push(e)},Ap=function(){wp=null,Tp.length=0},Ep=function(e){wp=e},Cp=function(){var e,t,n,r,i,o,a,s=Tp[0],l=Tp.slice(1),c=s.crashedEffect?(o=s.crashedEffect,(a=Af(o))?a.code+" "+Ip(a.fileName,a.lineNumber):""):null;return["The above error occurred in task "+xp(s.meta)+(c?" \n when executing effect "+c:"")].concat(l.map((function(e){return" created by "+xp(e.meta)})),[(e=Tp,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 Np(e,t,n,r,i,o,a){var s=e.finalizeRunEffect((function(t,n,r){Kd(t)?hp(t,r):ef(t)?Np(e,t,c.context,n,i,!1,r):t&&t[zd]?(0,bp[t.type])(e,t.payload,r,u):r(t)}));d.cancel=cf;var l={meta:i,cancel:function(){l.status===up&&(l.status=dp,d(Zd))},status:up},c=function(e,t,n,r,i,o,a){var s;void 0===a&&(a=cf);var l,c,u=up,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||(ff(i,t),t.cont=cf,l?a(s):(t===e&&(r=s),i.length||(o=!0,n(r))))}}function l(){o||(o=!0,i.forEach((function(e){e.cont=cf,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=fp,Mp({meta:i,cancelledTasks:f}),m.isRoot){var r=Cp();Ap(),e.onError(t,{sagaStack:r})}c=t,d&&d.reject(t)}else t===Zd?u=dp:u!==dp&&(u=pp),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={})[Gd]=!0,s.id=r,s.meta=i,s.isRoot=o,s.context=p,s.joiners=[],s.queue=h,s.cancel=function(){u===up&&(u=dp,h.cancelAll(),g(Zd,!1))},s.cont=a,s.end=g,s.setContext=function(e){df(p,e)},s.toPromise=function(){return d||(d=qf(),u===fp?d.reject(c):u!==up&&d.resolve(l)),d.promise},s.isRunning=function(){return u===up},s.isCancelled=function(){return u===dp||u===up&&t.status===dp},s.isAborted=function(){return u===fp},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),Ap()):xf(e)?(l.status=dp,d.cancel(),i=Jd(t.return)?t.return(Zd):{done:!0,value:Zd}):i=If(e)?Jd(t.return)?t.return():{done:!0}:t.next(e),i.done?(l.status!==dp&&(l.status=pp),l.cont(i.value)):f(i.value,r,d)}catch(e){if(l.status===dp)throw e;l.status=fp,l.cont(e,!0)}}function f(t,n,r,i){void 0===i&&(i="");var o,a=yp();function l(n,i){o||(o=!0,r.cancel=cf,e.sagaMonitor&&(i?e.sagaMonitor.effectRejected(a,n):e.sagaMonitor.effectResolved(a,n)),i&&Ep(t),r(n,i))}e.sagaMonitor&&e.sagaMonitor.effectTriggered({effectId:a,parentEffectId:n,label:i,effect:t}),l.cancel=cf,r.cancel=function(){o||(o=!0,l.cancel(),l.cancel=cf,e.sagaMonitor&&e.sagaMonitor.effectCancelled(a))},s(t,a,l)}}function Sp(e,t){for(var n=e.channel,r=void 0===n?cp():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?yf: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),y=yp();if(l&&(l.rootSagaStarted=l.rootSagaStarted||cf,l.effectTriggered=l.effectTriggered||cf,l.effectResolved=l.effectResolved||cf,l.effectRejected=l.effectRejected||cf,l.effectCancelled=l.effectCancelled||cf,l.actionDispatched=l.actionDispatched||cf,l.rootSagaStarted({effectId:y,saga:t,args:p})),c){var v=Ef.apply(void 0,c);g=function(e){return function(t,n,r){return v((function(t){return e(t,n,r)}))(t)}}}else g=uf;var b={channel:r,dispatch:bf(i),getState:o,sagaMonitor:l,onError:d,finalizeRunEffect:g};return Jf((function(){var e=Np(b,m,s,y,Mf(t),!0,void 0);return l&&l.effectResolved(y,e),e}))}var kp=function(e){return{done:!0,value:e}},jp={};function Dp(e){return nf(e)?"channel":rf(e)?String(e):Jd(e)?e.name:String(e)}function Lp(e,t,n){var r,i,o,a=t;function s(t,n){if(a===jp)return kp(t);if(n&&!i)throw a=jp,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===jp?kp(t):o}return mf(s,(function(e){return s(null,e)}),n)}function Op(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:Uf(e)},s=function(e){return o=e};return Lp({q1:function(){return{nextState:"q2",effect:a,stateUpdater:s}},q2:function(){return{nextState:"q1",effect:(e=o,{done:!1,value:Gf.apply(void 0,[t].concat(r,[e]))})};var e}},"q1","takeEvery("+Dp(e)+", "+t.name+")")}function Rp(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:Uf(e)},l=function(e){return{done:!1,value:Gf.apply(void 0,[t].concat(r,[e]))}},c=function(e){return{done:!1,value:Zf(e)}},u=function(e){return o=e},d=function(e){return a=e};return Lp({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("+Dp(e)+", "+t.name+")")}const Pp=function(e,t){return Bn(Ed(e,t),1)};function zp(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 Up(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=Pp(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"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 _p(e,t){return Pp([zp,Up],(n=>n(e,t)))}const Bp={answersById:{},examStructure:{name:"exam",attributes:{},childNodes:[]},focusedQuestionId:null,supportsAnswerHistory:!1,serverQuestionIds:new Set,savedQuestionIds:new Set,validationErrors:[]};function Fp(e,t){const n=new Set(e);return n.add(t),n}const Gp=e=>(0,Ru.action)("SAVE_ANSWER",e),Zp=e=>(0,Ru.action)("SAVE_ANSWER_SUCCEEDED",e),Hp=(e,t)=>(0,Ru.action)("SAVE_ANSWER_FAILED",{answer:e,error:t},void 0,!0),qp=new Map;function*Vp(e,t){const n=e.payload;try{yield Hf(1e3),yield Ff(t.saveAnswer,n),yield _f(Zp(n))}catch(e){yield _f(Hp(n,e))}qp.delete(n.questionId)}function*Yp(e){for(;;){const t=yield Uf("SAVE_ANSWER"),n=qp.get(t.payload.questionId);n&&(yield Zf(n));const r=yield Gf(Vp,t,e);qp.set(t.payload.questionId,r)}}function*Wp(e){for(;e.selectAnswerVersion;){const t=yield Uf("SELECT_ANSWER_VERSION"),{questionId:n,questionText:r}=t.payload;e.logActivity&&(yield Ff(e.logActivity,`Opened answer version history for question ${n}, ${r}`));try{const t=yield Ff(e.selectAnswerVersion,n,r);t&&(yield _f(Gp(t)),e.logActivity&&(yield Ff(e.logActivity,`Restored answer version for question ${n}, ${r}`)))}catch(e){console.error(e)}}}function*Qp(e){yield Gf(Yp,e),yield Gf(Wp,e)}const Jp=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):fl(n,s,l)}return n};var Xp=Object.prototype.hasOwnProperty;const $p=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&&Xp.call(e,r))&&n.push(r);return n},Kp=function(e){return ue(e)?ne(e,!0):$p(e)};var eh="object"==typeof exports&&exports&&!exports.nodeType&&exports,th=eh&&"object"==typeof module&&module&&!module.nodeType&&module,nh=th&&th.exports===eh?M.Buffer:void 0,rh=nh?nh.allocUnsafe:void 0;const ih=oe(Object.getPrototypeOf,Object),oh=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)Tt(t,Nt(e)),e=ih(e);return t}:At,ah=function(e){return Mt(e,Kp,oh)};var sh=Object.prototype.hasOwnProperty;const lh=function(e){var t=new e.constructor(e.byteLength);return new vt(t).set(new vt(e)),t};var ch=/\w*$/;var uh=A?A.prototype:void 0,dh=uh?uh.valueOf:void 0;const fh=function(e,t,n){var r,i=e.constructor;switch(t){case"[object ArrayBuffer]":return lh(e);case"[object Boolean]":case"[object Date]":return new i(+e);case"[object DataView]":return function(e,t){var n=t?lh(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?lh(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,ch.exec(e));return t.lastIndex=e.lastIndex,t}(e);case"[object Symbol]":return r=e,dh?Object(dh.call(r)):{}}};var ph=Object.create;const hh=function(){function e(){}return function(t){if(!le(t))return{};if(ph)return ph(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();var gh=$&&$.isMap;const mh=gh?W(gh):function(e){return L(e)&&"[object Map]"==Vt(e)};var yh=$&&$.isSet;const vh=yh?W(yh):function(e){return L(e)&&"[object Set]"==Vt(e)};var bh="[object Arguments]",Ih="[object Function]",xh="[object Object]",wh={};wh[bh]=wh["[object Array]"]=wh["[object ArrayBuffer]"]=wh["[object DataView]"]=wh["[object Boolean]"]=wh["[object Date]"]=wh["[object Float32Array]"]=wh["[object Float64Array]"]=wh["[object Int8Array]"]=wh["[object Int16Array]"]=wh["[object Int32Array]"]=wh["[object Map]"]=wh["[object Number]"]=wh[xh]=wh["[object RegExp]"]=wh["[object Set]"]=wh["[object String]"]=wh["[object Symbol]"]=wh["[object Uint8Array]"]=wh["[object Uint8ClampedArray]"]=wh["[object Uint16Array]"]=wh["[object Uint32Array]"]=!0,wh["[object Error]"]=wh[Ih]=wh["[object WeakMap]"]=!1;const Th=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]&&sh.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=Vt(t),p=f==Ih||"[object GeneratorFunction]"==f;if(Z(t))return function(e,t){if(t)return e.slice();var n=e.length,r=rh?rh(n):new e.constructor(n);return e.copy(r),r}(t,l);if(f==xh||f==bh||p&&!o){if(s=c||p?{}:function(e){return"function"!=typeof e.constructor||ie(e)?{}:hh(ih(e))}(t),!l)return c?function(e,t){return Jp(e,oh(e),t)}(t,function(e,t){return e&&Jp(t,Kp(t),e)}(s,t)):function(e,t){return Jp(e,Nt(e),t)}(t,function(e,t){return e&&Jp(t,de(t),e)}(s,t))}else{if(!wh[f])return o?t:{};s=fh(t,f,l)}}a||(a=new pt);var h=a.get(t);if(h)return h;a.set(t,s),vh(t)?t.forEach((function(i){s.add(e(i,n,r,i,t,a))})):mh(t)&&t.forEach((function(i,o){s.set(o,e(i,n,r,o,t,a))}));var g=d?void 0:(u?c?ah:St:c?Kp:de)(t);return b(g||t,(function(i,o){g&&(i=t[o=i]),fl(s,o,e(i,n,r,o,t,a))})),s},Mh=function(e,t){return null==(e=function(e,t){return t.length<2?e:In(e,Sn(t,0,-1))}(e,t=vn(t,e)))||delete e[bn(cl(t))]};var Ah=Function.prototype,Eh=Object.prototype,Ch=Ah.toString,Nh=Eh.hasOwnProperty,Sh=Ch.call(Object);const kh=function(e){return function(e){if(!L(e)||"[object Object]"!=D(e))return!1;var t=ih(e);if(null===t)return!0;var n=Nh.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Ch.call(n)==Sh}(e)?void 0:e},jh=ml((function(e,t){var n={};if(null==e)return n;var r=!1;t=pn(t,(function(t){return t=vn(t,e),r||(r=t.length>1),t})),Jp(e,ah(e),n),r&&(n=Th(n,7,kh));for(var i=t.length;i--;)Mh(n,t[i]);return n})),Dh={errors:{},nowPlaying:null,playbackTimes:{}},Lh=e=>function(t,n){void 0===n&&(n=Cf);var r,i=!1,o=lp(n),a=function(){i||(i=!0,Jd(r)&&r(),o.close())};return r=pf(r=(t=>{const n=setInterval((()=>{--e>0?t(e):(t(ap),clearInterval(n))}),1e3);return()=>clearInterval(n)})((function(e){sp(e)?a():o.put(e)}))),i&&r(),{take:o.take,flush:o.flush,close:a}}();function*Oh(e,t){const n=yield Ff(Lh,e);try{for(;;){const e=yield Uf(n);yield _f(t(e))}}finally{(yield zf(Pf,{}))&&n.close()}}function*Rh(e,t){const n=t.payload;try{const t=null!=n.restrictedAudioId?yield function(e){void 0===e&&(e=uf);for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return zf(Rf,{selector:e,args:n})}(Hc(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 Ff(e.playRestrictedAudio,t.src,t.restrictedAudioId,n):yield Ff(e.playAudio,t.src)}}(e,n,t);"ok"===r.response?(yield _f(zu(n)),yield Ff(Oh,n.duration,Fu),yield _f(Uu())):(yield _f(_u(n,r.response)),yield Hf(5e3),yield _f(Bu(n))),r.cleanup&&r.cleanup()}catch(e){console.error(e)}}function*Ph(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 Gf.apply(void 0,[Op,e,t].concat(r))}("PLAY_AUDIO",Rh,e)}const zh={casStatus:"forbidden"},{createAction:Uh}=Ru.deprecated,_h=e=>(0,Ru.action)("ALLOW_CAS_COUNTDOWN",e),Bh=Uh("ALLOW_CAS_SUCCEEDED"),Fh=Uh("ALLOW_CAS_CANCELLED"),Gh=e=>(0,Ru.action)("UPDATE_CAS_REMAINING",e);function*Zh(e,{payload:t}){try{if("allowed"===(yield Ff(e.setCasStatus,"allowing")))return void(yield _f(Bh()));yield _f(_h(t));const{cancelled:i}=yield(n={finished:Ff(Oh,t,Gh),cancelled:Uf("ALLOW_CAS_CANCELLED")},r=zf(jf,n),r.combinator=!0,r);"allowed"===(yield Ff(e.setCasStatus,i?"forbidden":"allowed"))?yield _f(Bh()):i||(yield _f(Fh()))}catch(e){console.error(e)}var n,r}function*Hh(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 Gf.apply(void 0,[Rp,e,t].concat(r))}("ALLOW_CAS",Zh,e)}const qh=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:jd.INIT}))throw new Error(Nd(12));if(void 0===n(void 0,{type:jd.PROBE_UNKNOWN_ACTION()}))throw new Error(Nd(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(Nd(14));a[s]=u,o=o||u!==c}return o=o||r.length!==Object.keys(e).length,o?a:e}}({answers:function(e=Bp,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=Fp(e.savedQuestionIds,n),i=Fp(e.serverQuestionIds,n),o=_p(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=Dh,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=jh(e.errors,[n.src]);return{...e,playbackTimes:r,errors:i}}return e}case"SHOW_AUDIO_ERROR":{const{audio:n,error:r}=t.payload,i=xn(n,"restrictedAudioId",n.src),o={...e.errors,[i]:r};return{...e,errors:o,nowPlaying:null}}case"HIDE_AUDIO_ERROR":{const n=t.payload,r=xn(n,"restrictedAudioId",n.src),i=jh(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=zh,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*Vh(e){yield Gf(Qp,e),yield Gf(Ph,e),yield Gf(Hh,e)}function Yh(e,t,n,r,i){const o=new Set(Ed(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}(Cd(r,"restrictedAudioId"),"times"),s=Cd(n,"questionId"),l={answers:{answersById:s,focusedQuestionId:null,serverQuestionIds:o,supportsAnswerHistory:"function"==typeof i.selectAnswerVersion,savedQuestionIds:o,examStructure:e,validationErrors:_p(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?cp():o,s=n.sagaMonitor,l=Yd(n,["context","channel","sagaMonitor"]);function c(e){var n=e.getState,r=e.dispatch;return t=Sp.bind(null,Vd({},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){df(i,e)},c}(),u=(window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__||Ld)(function(...e){return t=>(n,r)=>{const i=t(n,r);let o=()=>{throw new Error(Nd(15))};const a={getState:i.getState,dispatch:(e,...t)=>o(e,...t)},s=e.map((e=>e(a)));return o=Ld(...s)(i.dispatch),{...i,dispatch:o}}}(c)),d=Dd(qh,l,u);return c.run(Vh,i),d}const Wh=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))})),Qh=t().memo((function({element:n}){const r=n.getAttribute("src"),i=Ce(n,"duration"),{t:o}=jl(),a=Sc(Gc(r)),s=Sc(Zc(r)),l=Fc(),{abitti2:c,resolveAttachment:u}=(0,e.useContext)(ic),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(Pu({src:r,duration:i,audioRef:d}))},t().createElement(qa,{className:"e-mrg-r-1",icon:ts,fixedWidth:!0}),o("audio-test.play"))),t().createElement("div",{className:"e-column"},t().createElement(Ou,{error:s},be))),t().createElement("div",null,o("audio-test.volume")))})),Jh=({children:e})=>t().createElement("footer",{className:"e-footer"},e),Xh=ms({}),$h=t().memo((function(n){const{root:r}=(0,e.useContext)(ic),{t:i}=jl(),o=Te(r,"reference").filter((e=>null==Me(e,"external-material")));return o.length>0?t().createElement(tc,{"aria-labelledby":Ul},t().createElement("h2",{id:Ul},i("references.heading")),t().createElement("div",{className:"anchor",id:"references"}),t().createElement("ol",{className:"e-list-data","data-annotation-anchor":Ul},o.map(((e,n)=>{const r=Me(e,"question").getAttribute("display-number");return t().createElement("li",{"data-list-number":md(r),key:`${r}${n}`},t().createElement(td,{element:e,renderChildNodes:Xh}))})))):null})),Kh=(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"})))))})),eg=({element:n,renderChildNodes:r})=>{var i;const{attachmentsURL:o}=(0,e.useContext)(ic),{displayNumber:a,maxScore:s,level:l}=(0,e.useContext)(cd),{t:c}=jl(),{isInSidebar:u}=(0,e.useContext)(cs),d=Ae(n,"question-title"),f=null!=a&&we(n,"external-material"),p=[];let h={},g=!1;if(u){const e=Sc((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)),y=null==p?void 0:p.filter((e=>{var t;return null===(t=h[e.id])||void 0===t?void 0:t.value})).length,v=Number(n.getAttribute("max-answers"))||p.length,b=Le("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:uc("",{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:y===v})},y,"/",v),!u&&f&&t().createElement("span",{className:"e-column e-column--narrow e-external-material"},t().createElement("a",{href:uc(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:Ka,fixedWidth:!0})),t().createElement("div",{className:"answers"},p.map((e=>t().createElement(Kh,{key:e.id,type:e.type,id:e.id,answer:h[e.id],error:e.error,displayNumber:e.displayNumber})))," "))},tg=t().memo((function({maxAnswers:e,minAnswers:n,elementType:r,childQuestions:i}){const o=i.map((e=>{return"string"==typeof(t=e)||!_(t)&&L(t)&&"[object String]"==D(t)?e:e.getAttribute("display-number");var t})),{t:a}=jl(),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=[ll(o),cl(o)];return t().createElement(t().Fragment,null,a(s,{answerCount:l,questions:c}))})),ng=({element:n,renderChildNodes:r})=>{const{sections:i}=(0,e.useContext)(ic),{childQuestions:o,displayNumber:a,minAnswers:s,maxAnswers:l}=(0,e.useContext)(lc),{t:c}=jl(),{isInSidebar:u}=(0,e.useContext)(cs),d=u&&!!Sc((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=Le("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:Hl(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(tg,{maxAnswers:l,minAnswers:s,childQuestions:o,elementType:"toc-section"})))))},rg=({element:n,answers:r,renderChildNodes:i})=>{const{displayNumber:o}=(0,e.useContext)(lc),a=Ae(n,"section-title");return t().createElement("li",{"data-section-id":o},a&&t().createElement(ng,{element:a,renderChildNodes:i,answers:r}),t().createElement("ol",{className:"e-list-data e-pad-l-0","aria-labelledby":a&&Hl(o)},i(n,1)))},ig=n=>{const{showAnsweringInstructions:r,isInSidebar:i}=n,o=ms({section:cc(rg),question:ud(eg)});return t().memo((()=>{const{root:n,maxScore:a}=(0,e.useContext)(ic),{t:s}=jl(),l=Ce(n,"max-answers"),c=i&&!!Sc((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":Ql,ref:u},!i&&t().createElement("h2",{id:Ql},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(cs.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"})))}))},og=()=>{const e=xn(window,"TEST_VERSION_NUMBER");return t().createElement("span",null,"EE v.",e||"23.0.2")},ag=t().memo(gc((function({element:n,renderChildNodes:r}){const{isExternal:i}=(0,e.useContext)(hc);return i?null:t().createElement("span",{className:"exam-attachment e-mrg-b-2"},r(n))}))),sg=({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))},lg=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)(cd),c=Sc((e=>e.answers.answersById[i])),u=Fc(),d=(0,e.useCallback)((e=>{u(Gp({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(sg,{element:e,onSelect:d,renderChildNodes:r,questionId:i,key:n,direction:a,selected:s,value:o})})))}));a(4828);const cg=e=>"object"==typeof e&&null!=e&&1===e.nodeType,ug=(e,t)=>(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e,dg=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const n=getComputedStyle(e,null);return ug(n.overflowY,t)||ug(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},fg=(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,pg=e=>{const t=e.parentElement;return null==t?e.getRootNode().host||null:t};var hg=function(){return hg=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},hg.apply(this,arguments)};Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;var gg=0;function mg(){}function yg(e,t,n){return e===t||t instanceof n.Node&&e.contains&&e.contains(t)}function vg(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 bg(){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 Ig(){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 xg(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 wg(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=Tg(s,t<0,n,r,i);return-1===l?e>=o?-1:e:l}function Tg(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?Tg(t?o-1:0,t,n,r):-1}function Mg(e,t,n,r){return void 0===r&&(r=!0),n&&t.some((function(t){return t&&(yg(t,e,n)||r&&yg(t,n.document.activeElement,n))}))}var Ag=vg((function(e){Eg(e).textContent=""}),500);function Eg(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 Cg={highlightedIndex:-1,isOpen:!1,selectedItem:null,inputValue:""};var Ng=vg((function(e,t){!function(e,t){e&&t&&(Eg(t).textContent=e,Ag(t))}(e,t)}),200),Sg="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?e.useLayoutEffect:e.useEffect,kg="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(gg++):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 jg(e){return""+e.slice(0,1).toUpperCase()+e.slice(1)}function Dg(t){var n=(0,e.useRef)(t);return n.current=t,n}function Lg(t,n,r,i){var o=(0,e.useRef)(),a=(0,e.useRef)(),s=(0,e.useCallback)((function(e,n){a.current=n,e=xg(e,n.props);var r=t(e,n);return n.props.stateReducer(e,Vd({},n,{changes:r}))}),[t]),l=(0,e.useReducer)(s,n,r),c=l[0],u=l[1],d=Dg(n),f=(0,e.useCallback)((function(e){return u(Vd({props:d.current},e))}),[d]),p=a.current;return(0,e.useEffect)((function(){var e=xg(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"+jg(e)+"Change";i[a]&&void 0!==r[e]&&r[e]!==n[e]&&i[a](Vd({type:o},r))}(r,e,t,n),n[r]!==t[r]&&(o[r]=n[r])})),r.onStateChange&&Object.keys(o).length&&r.onStateChange(Vd({type:i},o))}(p,e,c),o.current=c}),[c,p,i]),[c,f]}var Og={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(!cg(e))throw new TypeError("Invalid target");const f=document.scrollingElement||document.documentElement,p=[];let h=e;for(;cg(h)&&d(h);){if(h=pg(h),h===f){p.push(h);break}null!=h&&h===document.body&&dg(h)&&!dg(document.documentElement)||null!=h&&dg(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:y,scrollY:v}=window,{height:b,width:I,top:x,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?x-A:"end"===s?T+C:x+b/2-A+C,k="center"===l?M+I/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&&x>=0&&M>=0&&T<=m&&w<=g&&x>=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 L="offsetWidth"in t?t.offsetWidth-t.clientWidth-h-E:0,O="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?fg(v,v+m,m,A,C,v+S,v+S+b,b):S-m/2,D="start"===l?k:"center"===l?k-g/2:"end"===l?k-g:fg(y,y+g,g,h,E,y+k,y+k+I,I),N=Math.max(0,N+v),D=Math.max(0,D+y);else{N="start"===s?S-i-A:"end"===s?S-c+C+O:"nearest"===s?fg(i,c,n,A,C+O,S,S+b,b):S-(i+n/2)+O/2,D="start"===l?k-u-h:"center"===l?k-(u+r/2)+L/2:"end"===l?k-o+E+L:fg(u,o,r,h,E+L,k,k+I,I);const{scrollLeft:e,scrollTop:a}=t;N=0===P?0:Math.max(0,Math.min(a+N/P,t.scrollHeight-n/P+O)),D=0===R?0:Math.max(0,Math.min(e+D/R,t.scrollWidth-r/R+L)),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 Rg(e,t,n){void 0===n&&(n=Cg);var r=e["default"+jg(t)];return void 0!==r?r:n[t]}function Pg(e,t,n){void 0===n&&(n=Cg);var r=e[t];if(void 0!==r)return r;var i=e["initial"+jg(t)];return void 0!==i?i:Rg(e,t,n)}function zg(e){var t=Pg(e,"selectedItem"),n=Pg(e,"isOpen"),r=function(e){var t=Pg(e,"highlightedIndex");return t>-1&&e.isItemDisabled(e.items[t],t)?-1:t}(e),i=Pg(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 Ug(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 _g(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);Ng(e,s)}}),i),(0,e.useEffect)((function(){return function(){var e,t;Ng.cancel(),(t=null==(e=s)?void 0:e.getElementById("a11y-status-message"))&&t.remove()}}),[s])}var Bg=mg;function Fg(e,t,n){var r;return void 0===n&&(n=!0),Vd({isOpen:!1,highlightedIndex:-1},(null==(r=e.items)?void 0:r.length)&&t>=0&&Vd({selectedItem:e.items[t],isOpen:Rg(e,"isOpen"),highlightedIndex:Rg(e,"highlightedIndex")},n&&{inputValue:e.itemToString(e.items[t])}))}function Gg(e,t){return e.isOpen===t.isOpen&&e.inputValue===t.inputValue&&e.highlightedIndex===t.highlightedIndex&&e.selectedItem===t.selectedItem}function Zg(e){var t=Rg(e,"highlightedIndex");return t>-1&&e.isItemDisabled(e.items[t],t)?-1:t}var Hg=Vd({},{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});hg(hg({},Hg),{items:Da().array.isRequired,isItemDisabled:Da().func});var qg=hg(hg({},Og),{isItemDisabled:function(){return!1}}),Vg=mg,Yg=1,Wg=2,Qg=3,Jg=4,Xg=5,$g=6,Kg=7,em=8,tm=9,nm=10,rm=11,im=14,om=19,am=Object.freeze({__proto__:null,FunctionCloseMenu:17,FunctionOpenMenu:16,FunctionReset:21,FunctionSelectItem:om,FunctionSetHighlightedIndex:18,FunctionSetInputValue:20,FunctionToggleMenu:15,ItemClick:im,ItemMouseMove:13,MenuMouseLeave:12,ToggleButtonBlur:rm,ToggleButtonClick:0,ToggleButtonKeyDownArrowDown:Yg,ToggleButtonKeyDownArrowUp:Wg,ToggleButtonKeyDownCharacter:Qg,ToggleButtonKeyDownEnd:$g,ToggleButtonKeyDownEnter:Kg,ToggleButtonKeyDownEscape:Jg,ToggleButtonKeyDownHome:Xg,ToggleButtonKeyDownPageDown:nm,ToggleButtonKeyDownPageUp:tm,ToggleButtonKeyDownSpaceButton:em});function sm(e,t){var n,r,i=t.type,o=t.props,a=t.altKey;switch(i){case im:r={isOpen:Rg(o,"isOpen"),highlightedIndex:Zg(o),selectedItem:o.items[t.index]};break;case Qg: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 Yg:r={highlightedIndex:e.isOpen?wg(e.highlightedIndex,1,o.items,o.isItemDisabled):a&&null==e.selectedItem?-1:Ug(o,e,1),isOpen:!0};break;case Wg:r=e.isOpen&&a?Fg(o,e.highlightedIndex,!1):{highlightedIndex:e.isOpen?wg(e.highlightedIndex,-1,o.items,o.isItemDisabled):Ug(o,e,-1),isOpen:!0};break;case Kg:case em:r=Fg(o,e.highlightedIndex,!1);break;case Xg:r={highlightedIndex:Tg(0,!1,o.items,o.isItemDisabled),isOpen:!0};break;case $g:r={highlightedIndex:Tg(o.items.length-1,!0,o.items,o.isItemDisabled),isOpen:!0};break;case tm:r={highlightedIndex:wg(e.highlightedIndex,-10,o.items,o.isItemDisabled)};break;case nm:r={highlightedIndex:wg(e.highlightedIndex,10,o.items,o.isItemDisabled)};break;case Jg:r={isOpen:!1,highlightedIndex:-1};break;case rm:r=Vd({isOpen:!1,highlightedIndex:-1},e.highlightedIndex>=0&&(null==(n=o.items)?void 0:n.length)&&{selectedItem:o.items[e.highlightedIndex]});break;case om: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:Ug(o,e,0)};break;case n.FunctionOpenMenu:r={isOpen:!0,highlightedIndex:Ug(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:Zg(o),isOpen:Rg(o,"isOpen"),selectedItem:Rg(o,"selectedItem"),inputValue:Rg(o,"inputValue")};break;default:throw new Error("Reducer called without proper action type.")}return Vd({},e,r)}(e,t,am)}return Vd({},e,r)}var lm=["onClick"],cm=["onMouseLeave","refKey","ref"],um=["onBlur","onClick","onPress","onKeyDown","refKey","ref"],dm=["item","index","onMouseMove","onClick","onMouseDown","onPress","refKey","disabled","ref"];function fm(t){void 0===t&&(t={}),Vg(t,fm);var n=Vd({},qg,t),r=n.scrollIntoView,i=n.environment,o=n.getA11yStatusMessage,a=function(e,t,n,r){var i=Lg(e,t,n,r),o=i[0],a=i[1];return[xg(o,t),a]}(sm,n,zg,Gg),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),y=kg(n),v=Dg({state:s,props:n}),b=(0,e.useCallback)((function(e){return g.current[y.getItemId(e)]}),[y]);_g(o,s,[c,u,d,f],i);var I=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 Sg((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=vg((function(e){e({type:20,inputValue:""})}),500),function(){m.current.cancel()}}),[]),(0,e.useEffect)((function(){f&&m.current(l)}),[l,f]),Bg({props:n,state:s}),(0,e.useEffect)((function(){Pg(n,"isOpen")&&p.current&&p.current.focus()}),[]);var x=function(t,n,r){var i=(0,e.useRef)({isMouseDown:!1,isTouchMove:!1,isTouchEnd:!1});return(0,e.useEffect)((function(){if(!t)return mg;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,Mg(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||Mg(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(){v.current.state.isOpen&&l({type:rm})}),[l,v]),(0,e.useMemo)((function(){return[h,p]}),[h.current,p.current])),w=mg;(0,e.useEffect)((function(){c||(g.current={})}),[c]);var T=(0,e.useMemo)((function(){return{ArrowDown:function(e){e.preventDefault(),l({type:Yg,altKey:e.altKey})},ArrowUp:function(e){e.preventDefault(),l({type:Wg,altKey:e.altKey})},Home:function(e){e.preventDefault(),l({type:Xg})},End:function(e){e.preventDefault(),l({type:$g})},Escape:function(){v.current.state.isOpen&&l({type:Jg})},Enter:function(e){e.preventDefault(),l({type:v.current.state.isOpen?Kg:0})},PageUp:function(e){v.current.state.isOpen&&(e.preventDefault(),l({type:tm}))},PageDown:function(e){v.current.state.isOpen&&(e.preventDefault(),l({type:nm}))}," ":function(e){e.preventDefault();var t=v.current.state;t.isOpen?t.inputValue?l({type:Qg,key:" "}):l({type:em}):l({type:0})}}}),[l,v]),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:om,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=Yd(t,lm);return Vd({id:y.labelId,htmlFor:y.toggleButtonId,onClick:bg(n,(function(){var e;null==(e=p.current)||e.focus()}))},r)}),[y]),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=Yd(r,cm),u=(void 0===t?{}:t).suppressRefError;return w("getMenuProps",void 0!==u&&u,a,h),Vd(((n={})[a]=Ig(s,(function(e){h.current=e})),n.id=y.menuId,n.role="listbox",n["aria-labelledby"]=c&&c["aria-label"]?void 0:""+y.labelId,n.onMouseLeave=bg(i,(function(){l({type:12})})),n),c)}),[l,w,y]);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=Yd(r,um),f=(void 0===t?{}:t).suppressRefError,h=void 0!==f&&f,g=v.current.state,m=Vd(((n={})[c]=Ig(u,(function(e){p.current=e})),n["aria-activedescendant"]=g.isOpen&&g.highlightedIndex>-1?y.getItemId(g.highlightedIndex):"",n["aria-controls"]=y.menuId,n["aria-expanded"]=v.current.state.isOpen,n["aria-haspopup"]="listbox",n["aria-labelledby"]=d&&d["aria-label"]?void 0:""+y.labelId,n.id=y.toggleButtonId,n.role="combobox",n.tabIndex=0,n.onBlur=bg(i,(function(){g.isOpen&&!x.isMouseDown&&l({type:rm})})),n),d);return d.disabled||(m.onClick=bg(o,(function(){l({type:0})})),m.onKeyDown=bg(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:Qg,key:t})}))),w("getToggleButtonProps",h,c,p),m}),[l,y,v,x,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=Yd(n,dm);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=v.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=Vd(((t={})[u]=Ig(f,(function(e){e&&(g.current[y.getItemId(M)]=e)})),t["aria-disabled"]=A,t["aria-selected"]=T===m.selectedItem,t.id=y.getItemId(M),t.role="option",t),p);return A||(E.onClick=bg(a,(function(){l({type:im,index:M})}))),E.onMouseMove=bg(o,(function(){x.isTouchEnd||M===m.highlightedIndex||(I.current=!1,l({type:13,index:M,disabled:A}))})),E.onMouseDown=bg(s,(function(e){return e.preventDefault()})),E}),[v,y,x,I,l]),toggleMenu:M,openMenu:E,closeMenu:A,setHighlightedIndex:C,selectItem:N,reset:S,setInputValue:k,highlightedIndex:u,isOpen:c,selectedItem:d,inputValue:f}}fm.stateChangeTypes=am,Vd({},Hg,{items:Da().array.isRequired,isItemDisabled:Da().func,inputValue:Da().string,defaultInputValue:Da().string,initialInputValue:Da().string,inputId:Da().string,onInputValueChange:Da().func}),Vd({},Og,{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 pm=a(7767),hm=a.n(pm);const gm=Promise.all([new(hm())("Noto Sans",{weight:300}).load(),new(hm())("Noto Sans",{weight:400}).load(),new(hm())("Noto Sans",{weight:600}).load()]).then((()=>{mm=!0})).catch(ul);let mm=!1;const ym=({id:e,size:n="small",score:r})=>{const{t:i}=jl(),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}))},vm=!navigator.userAgent.includes("jsdom/"),bm=t().memo((({element:n,renderChildNodes:r})=>{const i=Ce(n,"question-id"),o=Ce(n,"max-score"),a=Sc((e=>e.answers.answersById[i])),s=Fc(),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)(mm);vm&&(gm.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?Ln(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:y,questionLabelIds:v}=(0,e.useContext)(cd),{getItemProps:b,getMenuProps:I,getToggleButtonProps:x,highlightedIndex:w,isOpen:T,selectedItem:M}=fm({items:m,itemToString:e=>e?e.textContent:"",onSelectedItemChange:({selectedItem:e})=>{const t=e?e.getAttribute("option-id"):"";s(Gp({type:"choice",questionId:i,value:t,displayNumber:l}))},initialSelectedItem:c}),{t:A}=jl(),E=ql(n),C=(0,e.useContext)(ss),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}),...x({"aria-describedby":E,"aria-labelledby":v},{suppressRefError:!vm})},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:ns}))),t().createElement("span",{...I({className:Er()("e-dropdown-answer__menu",{"e-dropdown-answer__menu--open":T}),"aria-labelledby":void 0,ref:d},{suppressRefError:!vm})},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))))))),y.length>1&&t().createElement(ym,{score:o,size:"inline",id:E}))})),Im=t().memo((function({element:e,renderChildNodes:n}){return t().createElement("div",{className:"e-exam-footer"},n(e))})),xm=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))})),wm=t().memo((function(){const{examServerApi:n}=(0,e.useContext)(ac),{examineExam:r}=n,{t:i}=jl();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 Tm(e){return`${cl(e.split("."))}.`}function Mm({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&&Tm(o)," ",r(a))}const Am=({element:e,renderChildNodes:n})=>{const r=Sc((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(Mm,{answer:e,focusedQuestionId:r,renderChildNodes:n,key:i}))))):t().createElement(t().Fragment,null,n(e))},Em=(0,e.createContext)({expanded:!1,toggleWriterMode:()=>{}}),Cm=t().memo(ud((function({element:n,renderChildNodes:r}){const i=Sc((e=>e.cas.casStatus)),{casForbidden:o}=(0,e.useContext)(lc),{displayNumber:a,level:s}=(0,e.useContext)(cd),{examServerApi:l}=(0,e.useContext)(ac),[c,u]=(0,e.useState)(!1),{t:d}=jl(),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:y}=(0,e.useContext)(ve);return(0,e.useEffect)((()=>{(null==m?void 0:m.current)&&0===s&&y&&y(m.current)}),[]),o&&"forbidden"!==i?null:t().createElement(Em.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)))}))),Nm=t().memo((function({element:e,renderChildNodes:n}){const r=Fl(e);return t().createElement("div",{className:"exam-question-instruction e-mrg-b-2",id:r},n(e))})),Sm=()=>t().createElement(qa,{size:"lg",icon:es,fixedWidth:!0,className:"e-color-link e-mrg-r-1"}),km=t().memo((({element:n,renderChildNodes:r})=>{const{displayNumber:i,maxScore:o,level:a,maxAnswers:s,childQuestions:l}=(0,e.useContext)(cd),c=`h${Math.min(3+a,6)}`,u=Bl(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})},`${md(i)} `),r(n)," ",t().createElement(ym,{score:o,size:0===a?"large":"small"})),null!=s&&l.length>0&&t().createElement("p",{className:"e-italic"},t().createElement(Sm,null),t().createElement(tg,{maxAnswers:s,childQuestions:l,elementType:"question"})))})),jm=({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 Dm(){const{t:e}=jl();return t().createElement("p",null,t().createElement("em",null,e("end-of-exam")))}function Lm(n){const r=Fc(),{t:i}=jl(),{casCountdownDuration:o}=(0,e.useContext)(ac);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(wm,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,Ru.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(jm,{className:"e-mrg-b-2",duration:o,durationRemaining:n.durationRemaining}),t().createElement("button",{className:"e-button",id:"allow-cas-cancelled",onClick:()=>r(Fh()),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 Om=t().memo(cc((function({element:n,renderChildNodes:r}){const i=Sc((e=>e.cas),Rc),{casForbidden:o,displayNumber:a}=(0,e.useContext)(lc),{sections:s}=(0,e.useContext)(ic),l=n===cl(s);return t().createElement(tc,{className:"exam-section","aria-labelledby":_l(a)},r(n),o&&t().createElement(Lm,{...i}),l&&t().createElement(Dm,null))}))),Rm=t().memo((function({element:e,renderChildNodes:n}){return t().createElement("div",{className:"e-mrg-b-2"},n(e))})),Pm=t().memo((function({element:n,renderChildNodes:r}){const{sections:i}=(0,e.useContext)(ic),{displayNumber:o,minAnswers:a,maxAnswers:s,childQuestions:l}=(0,e.useContext)(lc),{t:c}=jl(),u=t().createRef(),{addRef:d}=(0,e.useContext)(ve);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:_l(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(Sm,null),t().createElement(tg,{maxAnswers:s,minAnswers:a,childQuestions:l,elementType:"section"})))})),zm=e=>t().createElement("div",{className:"e-student-name-container"},e.studentName),Um=({children:e})=>t().createElement("span",{className:"e-screen-reader-only"},e),_m=t().memo((function({answer:e,element:n,screenshotError:r,validationError:i,selectAnswerVersion:o,showAnswerHistory:a=!1,supportsAnswerHistory:s=!1}){const{t:l}=jl(),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 Bm extends t().PureComponent{constructor(e){super(e),this.handleSaveError=e=>{const t=(()=>{switch(xn(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(Em.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(Gm,null),t().createElement(qa,{icon:rs})))))}}Bm.contextType=ic;const Fm=Bm,Gm=()=>{const{t:e}=jl();return t().createElement("div",{className:"label",id:"expand-label"},e("open-writing-mode"))},Zm=t().memo((({maxLength:e,id:n})=>{const{t:r}=jl();return t().createElement("p",{id:n,className:"e-answer-length-info"},t().createElement(Sm,null),t().createElement("em",null,r("max-length-info",{count:e})))}));function Hm(e){return e.replace(/\s/g,"").length}const qm=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)(ic),{questionLabelIds:d,answers:f}=(0,e.useContext)(cd),{examServerApi:p}=(0,e.useContext)(ac),[h,g]=(0,e.useState)(),m=Sc((e=>e.answers.answersById[o])),y=Sc((e=>e.answers.supportsAnswerHistory)),v=Sc((e=>e.answers.supportsAnswerHistory&&e.answers.serverQuestionIds.has(o))),b=Sc((e=>e.answers.validationErrors.find((e=>"AnswerTooLong"===e.type&&e.displayNumber===a)))),I=Fc(),x=(0,e.useRef)(null),w=m&&m.value,T=ql(n),M=null!=b,A=l?u:void 0,E=n.hasAttribute("max-length")?`${d} ${Gl(n)}`:d;(0,e.useEffect)((()=>{const{current:e}=x;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:Hm(t),displayNumber:a};I(Gp(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:Hm(t),displayNumber:a};I(Gp(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:Hm(t),displayNumber:a};I(Gp(n)),g(void 0)}),[o,a]),D=(0,e.useCallback)((e=>g(e)),[h]),L=(0,e.useCallback)((()=>I((e=>(0,Ru.action)("ANSWER_FOCUSED",e))(o))),[o]),O=(0,e.useCallback)((()=>I((e=>(0,Ru.action)("ANSWER_BLURRED",e))(o))),[o]),R=(0,e.useCallback)(((e,t)=>I(((e,t)=>(0,Ru.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(Zm,{maxLength:c,id:Gl(n)}),t().createElement("div",{className:"text-answer-container"},t().createElement(Fm,{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(_m,{answer:m,element:n,selectAnswerVersion:R,showAnswerHistory:v,supportsAnswerHistory:y,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:L,onBlur:O,ref:x,"data-question-id":o,lang:A,"aria-describedby":T,"aria-labelledby":E}),f.length>1&&t().createElement(ym,{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:L,onBlur:O,ref:x,"data-question-id":o,lang:A,"aria-describedby":T,"aria-labelledby":E}),f.length>1&&t().createElement(ym,{score:s,size:"inline",id:T}))}})),Vm=t().memo((function(e){const{element:n,renderChildNodes:r}=e,i=n.getAttribute("display-number"),o=Ae(n,"hint"),a=t().createElement(qm,{...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"},Tm(i)),t().createElement(Um,null,r(o)),a):a)}));var Ym=a(6660),Wm=a.n(Ym);class Qm 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(Jm,{croppedAnswer:n,characterCount:r,screenshotCount:i,answerIndex:o,minutesSinceAnswer:a}))}}const Jm=({croppedAnswer:e,characterCount:n,screenshotCount:r,answerIndex:i,minutesSinceAnswer:o})=>{const{t:a}=jl(),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 Xm=a(4867),$m=a.n(Xm);const Km=Wm().CancelToken;function ey(e){return{type:e.type,value:e.value,answerTime:e.answer_time,characterCount:e.character_count}}function ty(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 ny(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(uy,null)))}function ry(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 iy(e,t=50){const n=ry(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 oy(e){return ry(e).replace(/\s/g,"").length}function ay(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 sy extends t().PureComponent{constructor(e){super(e),this.source=Km.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 Wm().get(`/rest/answer-history/${e}`,{cancelToken:this.source.token})).data.map(ey);this.setState({answers:t,selectedAnswerIndex:0,loading:!1,loadRetryTimeout:null})}catch(t){Wm().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($m(),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(cy,{close:this.close.bind(this)}),this.state.loading?t().createElement(ly,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(Qm,{key:new Date(e.answerTime).getTime(),answerIndex:r,selected:r===this.state.selectedAnswerIndex,onChange:e=>this.setState({selectedAnswerIndex:e}),croppedAnswer:iy(e),minutesSinceAnswer:o,characterCount:oy(e),screenshotCount:ay(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(ty,{selectedAnswer:e}),t().createElement(ny,{selectedAnswer:e,selectedAnswerIndex:this.state.selectedAnswerIndex,restoreAnswer:this.props.restoreAnswer,questionId:this.props.questionId}))))))}}const ly=()=>{const{t:e}=jl();return t().createElement("div",{style:{padding:"10px"}},e("undo.loading"))},cy=({close:e})=>{const{t:n}=jl();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")}))},uy=()=>{const{t:e}=jl();return t().createElement("div",null,e("undo.restoreAnswer"))},dy=e=>{const{t:n}=jl(),{displayNumber:r,elementType:i}=e;return t().createElement("div",null,"exam"!==i&&"toc-section"!==i?n(i,{displayNumber:r})||t().createElement(hy,{...e}):""," ",t().createElement(tg,{...e}))},fy=({displayNumber:e,characterCount:n})=>{const{t:r}=jl();return t().createElement("div",null,r("question",{displayNumber:e})," ",r("answer-errors.answer-too-long",{count:n}))};function py({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:is,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(dy,{...e,key:n}):t().createElement(fy,{...e,key:n})})))):null}const hy=({elementType:n,displayNumber:r})=>{if("section"===n){const{root:n}=(0,e.useContext)(ic),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},gy=t().memo((()=>{const e=Sc((e=>e.answers.validationErrors));return t().createElement(py,{validationErrors:e,inExam:!0})})),my=t().memo((function(){const e=Sc(Vc),{t:n}=jl();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")))})),yy=ms({attachment:ag,"attachment-link":fc("link"),"attachment-links":pc("link"),audio:Hu,"audio-title":Kl,"audio-group":Wh,"audio-test":Qh,"choice-answer":lg,"dropdown-answer":bm,"exam-footer":Im,"external-material":Vu,file:Yu,formula:Wu,image:Xu,question:Cm,"question-number":dd,translation:fd,"question-instruction":Nm,"question-title":km,hints:Am,references:$h,"scored-text-answer":Vm,"scored-text-answers":Am,"section-instruction":Rm,section:Om,"section-title":Pm,"text-answer":Vm,video:nd,"image-overlay":ld}),vy=()=>{const{t:e}=jl();return t().createElement("div",{className:"e-examine-exam-instructions",id:"examineExamInstructions"},e("examine-exam.instructions"))},by=t().memo(sc(oc((({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:y,resolveAttachment:b,root:I,subjectLanguage:x}=(0,e.useContext)(ic),w=Ae(I,"exam-title"),T=Ae(I,"exam-instruction"),M=Ae(I,"table-of-contents"),A=Ae(I,"external-material"),E=I.getAttribute("exam-stylesheet"),C=(0,e.createRef)(),N=Xl((()=>Yh(xd(n),r,i,o,a))),S=Xl((()=>ig({showAttachmentLinks:!0,showAnsweringInstructions:!0,isInSidebar:!0}))),k=Xl((()=>ig({showAttachmentLinks:!0,showAnsweringInstructions:!0,isInSidebar:!1}))),j=Xl((()=>kl(y,m,g)));(0,e.useEffect)(Dl(j,y)),(0,e.useEffect)(Jl,[]);const[D,L]=(0,e.useState)([]);(0,e.useEffect)((()=>{const e=new IntersectionObserver(O),t=D;return t.forEach((t=>e.observe(t))),()=>{t.forEach((t=>e.unobserve(t)))}}),[D]);const O=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(Pc,{store:N},t().createElement(ls,{annotations:u,onClickAnnotation:d,onSaveAnnotation:f},t().createElement(ve.Provider,{value:{visibleTOCElements:R,addRef:e=>{D.includes(e)||L((t=>[...t,e]))}}},t().createElement(v,{i18n:j},t().createElement("main",{className:"e-exam",lang:x,"aria-labelledby":zl,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:yy})),t().createElement("div",{className:"main-exam-container"},t().createElement("div",{className:"main-exam"},t().createElement(zm,{studentName:s}),t().createElement(tc,{"aria-labelledby":zl},w&&t().createElement($l,{id:zl},yy(w)),p&&t().createElement("p",null,t().createElement("strong",null,h.format(p))),T&&t().createElement(xm,{element:T,renderChildNodes:yy}),M&&t().createElement("div",{className:"main-toc-container"},t().createElement(k,{element:M,renderChildNodes:yy})),A&&t().createElement(Vu,{element:A,renderChildNodes:yy,forceRender:!0})),yy(I),(U||z)&&t().createElement("div",{className:"e-examine-exam"},t().createElement(wm,null),t().createElement(vy,null))))),(U||z)&&t().createElement(Jh,null,t().createElement("div",{className:"e-footer-version-number-container"},t().createElement(og,null))),t().createElement("div",{className:"e-indicators-container"},t().createElement(gy,null),t().createElement(my,null)),l&&z&&t().createElement(sy,{...c}))))))})))),Iy=e=>n=>{const r=r=>e(r)?t().createElement(n,{...r}):null;return r.displayName=`RenderIf(${nc(n)})`,r},xy=t().createContext({}),wy=({element:n,renderChildNodes:r})=>{const{EditorComponent:i}=(0,e.useContext)(xy),{displayNumber:o}=(0,e.useContext)(cd);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))},Ty=({element:n,renderChildNodes:r})=>{const{answers:i}=(0,e.useContext)(cd),o=Ae(n,"answer-grading-instruction"),a=Ce(n,"max-length"),s=t().createElement(t().Fragment,null,null!=a&&t().createElement(Zm,{maxLength:a}),t().createElement("ul",null,r(n)),o&&t().createElement(wy,{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(ym,{score:i})),s)}},My=({element:e,renderChildNodes:n})=>{const r=Ce(e,"score");if(!r)return null;const{t:i}=jl();return t().createElement("li",null,n(e),be,"(",i("points",{count:r}),")")},Ay=({element:e,renderChildNodes:n})=>t().createElement("div",{className:"e-exam-grading-instruction notification e-pad-4","data-annotation-anchor":"exam-grading-instruction"},n(e)),Ey=ud((function({element:n,renderChildNodes:r}){const{displayNumber:i,level:o}=(0,e.useContext)(cd);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))})),Cy=({element:e,renderChildNodes:n})=>{const r=Ae(e,["audio-transcription","video-transcription"]);if(r){const{t:i}=jl(),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},Ny=cc((({element:n,renderChildNodes:r})=>{const{displayNumber:i}=(0,e.useContext)(lc);return t().createElement(tc,{className:"e-grading-instruction-section","aria-labelledby":_l(i)},r(n))})),Sy=({EditorComponent:e,children:n})=>t().createElement(xy.Provider,{value:{EditorComponent:e}},n),ky=Iy((({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"]))),jy=Iy((({element:e})=>null==Me(e,["external-material"]))),Dy=ms({"accepted-answer":My,attachment:ec,"attachment-link":jy(fc("plain")),"attachment-links":jy(pc("plain")),audio:Cy,"audio-group":ec,"choice-answer":Ty,"choice-answer-option":My,"dropdown-answer":Ty,"dropdown-answer-option":My,"external-material":ec,file:ky(Yu),formula:ky(Wu),hints:ec,image:ky(Xu),question:Ey,"question-title":({element:n,renderChildNodes:r})=>{const{displayNumber:i,maxScore:o,level:a}=(0,e.useContext)(cd),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})},`${md(i)} `),r(n)," ",t().createElement(ym,{score:o,size:0===a?"large":"small"})))},"question-instruction":Nm,"question-grading-instruction":wy,"question-number":dd,translation:fd,"scored-text-answer":Ty,"text-answer":Ty,section:Ny,"section-title":({element:n,renderChildNodes:r})=>{const{sections:i}=(0,e.useContext)(ic),{displayNumber:o}=(0,e.useContext)(lc),{t:a}=jl();return t().createElement(t().Fragment,null,n.hasChildNodes()&&t().createElement("h2",{className:"e-grading-instructions-section-title",id:_l(o)},i.length>1&&a("section",{displayNumber:o})," ",r(n)))},video:Cy}),Ly=()=>{const{t:e}=jl();return t().createElement(t().Fragment,null,e("grading-instructions-page-title"))},Oy=t().memo(oc((({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)(ic),h=Ae(s,"exam-title"),g=Ae(s,"exam-grading-instruction"),m=Ae(s,"table-of-contents"),y=ig({showAnsweringInstructions:!1,showAttachmentLinks:!1,isInSidebar:!1}),b=Xl((()=>kl(f,d,u)));return(0,e.useEffect)(Dl(b,f)),(0,e.useEffect)(Jl,[]),t().createElement(ls,{annotations:r,onClickAnnotation:i,onSaveAnnotation:o},t().createElement(Sy,{EditorComponent:a},t().createElement(v,{i18n:b},t().createElement("main",{className:"e-exam e-grading-instructions",lang:p},t().createElement(t().StrictMode,null),t().createElement(tc,{"aria-labelledby":zl},t().createElement($l,{id:zl},t().createElement(Ly,null)," ",h&&Dy(h)),l&&t().createElement("p",null,t().createElement("strong",null,c.format(l))),g&&t().createElement(Ay,{element:g,renderChildNodes:Dy}),m&&t().createElement("div",{className:"main-toc-container"},t().createElement(y,{element:m,renderChildNodes:Dy}))),Dy(s)))))}))),Ry=t().createContext({}),Py=rc(Ry,(({scores:e,doc:t,gradingStructure:n,gradingText:r,answers:i,singleGrading:o})=>{const a=Cd(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=zy(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=Uy(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===Ie(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 zy(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 Uy(e,t){return e.find((e=>e.questionId===t))}const _y=()=>{const{gradingStructure:t}=(0,e.useContext)(Ry);return void 0===t},By=t().memo((function({answers:n,displayNumber:r,children:i,multilineAnswer:o,questionId:a}){var s;const{displayNumber:l}=(0,e.useContext)(cd),c=_y(),u=r?`${l}.${null==r?void 0:r.replace(".","")}`:void 0,{answersByQuestionId:d}=(0,e.useContext)(Ry),f=!(!a||!d)&&(null===(s=d[a])||void 0===s?void 0:s.answerNonAnswer),{t:p}=jl();return c?null: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"},n.length>1&&r&&t().createElement("sup",{className:"e-result-scorecount-sup e-mrg-r-1","aria-hidden":"true"},r),i))})),Fy=t().memo((function({score:n,maxScore:r,displayNumber:i,questionId:o}){const{answers:a}=(0,e.useContext)(cd),{t:s}=jl(),l={answers:a,displayNumber:i,questionId:o};return t().createElement(By,{...l},"number"==typeof n?t().createElement("b",null,n):t().createElement("span",{className:"e-result-scorecount-empty"})," ",r?`/ ${r} `:null," ",s("points",{count:""}))}));function Gy({renderChildNodes:e,selected:n,element:r,questionId:i,direction:o,isCorrect:a}){const{t:s}=jl(),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(Um,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 Zy=t().memo((function({element:n,renderChildNodes:r}){var i,o;const{answersByQuestionId:a,gradingStructure:s}=(0,e.useContext)(Ry),l=Ce(n,"question-id"),c=a[l],u=n.getAttribute("direction")||"vertical",d=n.getAttribute("class"),f=zy(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(Fy,{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(Gy,{element:e,renderChildNodes:r,questionId:l,key:i,direction:u,selected:o,isCorrect:(null==a?void 0:a.correct)||!1})}))))})),Hy=t().memo((function({element:n,renderChildNodes:r}){var i;const{t:o,i18n:a}=jl(),{answersByQuestionId:s,gradingStructure:l}=(0,e.useContext)(Ry),{answers:c}=(0,e.useContext)(cd),u=Ce(n,"question-id"),d=s[u],f=Ae(n,(e=>(null==d?void 0:d.value)===e.getAttribute("option-id"))),p=_y(),h=zy(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")))),y=f&&g.includes(Ce(f,"option-id")),v=Tm(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,I=Ce(n,"max-score");return t().createElement(t().Fragment,null,c.length>1&&t().createElement("sup",null,v),t().createElement("span",{className:Er()("e-dropdown-answer__answered",!f&&"e-dropdown-answer__no-answer",!p&&{"e-dropdown-answer__answered--correct":y,"e-dropdown-answer__answered--wrong":!y}),"data-question-id":u,"aria-description":f?void 0:a.t("examineExam.questionHasNoAnswer")},t().createElement(Um,null,o("screen-reader.answer-begin")),f&&r(f),t().createElement(Um,null,o("screen-reader.answer-end")),y&&t().createElement(Um,null,o("screen-reader.correct-answer"))),!p&&!y&&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(Fy,{score:b,maxScore:I,displayNumber:v,questionId:u}))}));function qy({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(Vy,{annotations:e})):t().createElement(t().Fragment,null,t().createElement("div",{className:"e-column e-column--6"},t().createElement(Vy,{i18nTitleKey:"grading.pregrading-annotations",annotations:e})),t().createElement("div",{className:"e-column e-column--6"},t().createElement(Vy,{i18nTitleKey:"grading.censor-annotations",annotations:n})))):null}const Vy=({i18nTitleKey:e,annotations:n})=>{const{t:r}=jl();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},Yy=t().memo((function(){const{answers:n}=(0,e.useContext)(cd),{scores:r,singleGrading:i}=(0,e.useContext)(Ry),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=Uy(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)=>Pp(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?Tm(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(qy,{pregradingAnnotations:s,censoringAnnotations:l,singleGrading:!!i})})),Wy=t().memo(ud((function({element:n,renderChildNodes:r}){var i,o;const{answersByQuestionId:a,gradingStructure:s}=(0,e.useContext)(Ry),{displayNumber:l,level:c}=(0,e.useContext)(cd),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}=jl(),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(Yy,null))}))),Qy=t().memo((function({element:n,renderChildNodes:r}){const{displayNumber:i,level:o,maxAnswers:a,maxScore:s,childQuestions:l}=(0,e.useContext)(cd),c=`h${Math.min(3+o,6)}`,u=_y();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})},`${md(i)} `),r(n)," ",u&&t().createElement(ym,{score:s,size:0===o?"large":"small"})),null!=a&&l.length>0&&t().createElement("p",{className:"e-italic"},t().createElement(Sm,null),t().createElement(tg,{maxAnswers:a,childQuestions:l,elementType:"question"})))})),Jy=t().memo(cc((function({element:n,renderChildNodes:r}){const{displayNumber:i}=(0,e.useContext)(lc);return t().createElement(tc,{"aria-labelledby":_l(i)},t().createElement("div",{className:"e-results-section-wrapper"},r(n)))}))),Xy=5;function $y(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":tv(e,a,i,l,s,r);break;default:rv(e,a,i,l,s,r)}}}function Ky(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 ev(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 tv(e,t,n,r,i,o){const{attachmentIndex:a}=t;return nv(e.querySelectorAll("img")[a],o?t.message:"",t,n,r,i)}function nv(e,t,n,r,i,o){const a=ev(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 Ky(e,n),o&&e.appendChild(iv(o,"shape",n.message)),e}();return a.appendChild(s),s}function rv(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(iv(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 iv(e,t,n){return De("sup",{className:`e-annotation__index e-annotation__index--${t}`,"data-content":n.length>Xy?`${e})`:n,"data-message":n})}const ov=t().memo((function({displayNumber:n,score:r,value:i,answers:o,children:a}){const{t:s,i18n:l}=jl(),c=(0,e.useRef)(null);return(0,e.useLayoutEffect)((()=>{var e,t,n,i;c.current&&$y(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(Um,null,s("screen-reader.answer-begin")),t().createElement("span",{className:"e-inline-block",ref:c},i),t().createElement(Um,null,s("screen-reader.answer-end"))),a)})),av=t().memo((function({element:n}){const{answers:r}=(0,e.useContext)(cd),{answersByQuestionId:i,scores:o}=(0,e.useContext)(Ry),a=Ce(n,"question-id"),s=Ce(n,"max-score"),l=i[a],c=l&&l.value,u=Tm(n.getAttribute("display-number")),d=Uy(o,a),f=null==d?void 0:d.autograding;return t().createElement(ov,{answers:r,displayNumber:u,value:c,score:d},t().createElement(Fy,{score:null==f?void 0:f.score,maxScore:s,displayNumber:r.length>1?u:void 0,questionId:a}))}));function sv({maxScore:e}){const{t:n}=jl();return t().createElement(t().Fragment,null,t().createElement("span",{className:"e-result-scorecount-empty"}),e&&` / ${e} `,n("points",{count:""}))}function lv({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 cv({score:e,shortCode:n,type:r,maxScore:i,latest:o}){const{t:a}=jl();return t().createElement("div",{className:o?"e-color-black":"e-color-darkgrey e-font-size-xs"},t().createElement(uv,{className:Er()("e-nowrap",{"e-font-size-m":o})},o?t().createElement("b",null,e):e,o&&i?` / ${i}`:""," p."),t().createElement(uv,{className:"e-result-scorecount-shortcode"},n),t().createElement(uv,{className:"e-mrg-r-0"},a(r)))}function uv({className:e,children:n}){return t().createElement("span",{className:Er()("e-mrg-r-1 e-nowrap",e)},n)}function dv({score:e}){return void 0!==e?{score:e,shortCode:"",type:"grading.pregrading-abbrev"}:null}function fv(e){return e.scores.map(((t,n)=>({score:t.score,shortCode:t.shortCode||"",type:"grading.round."+(e.scores.length-n)})))}const pv=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)(cd),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(By,{...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?fv(e.censoring):[],e.pregrading&&dv(e.pregrading)].filter(Boolean).map(((e,r)=>t().createElement(cv,{key:r,...e,latest:0===r,maxScore:n})))}(n,r),h&&t().createElement(lv,{shortCode:h})):t().createElement(sv,{maxScore:r}))})),hv=({type:n,score:r,value:i})=>{const{t:o,i18n:a}=jl(),s=(0,e.useRef)(null);return(0,e.useLayoutEffect)((()=>{var e,t,n,i;s.current&&$y(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(Um,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(Um,null,o("screen-reader.answer-end")))},gv=t().memo((function({element:n}){var r;const{answers:i}=(0,e.useContext)(cd),{answersByQuestionId:o,scores:a}=(0,e.useContext)(Ry),{t:s}=jl(),l=Ce(n,"question-id"),c=Ce(n,"max-score"),u=o[l],d=u&&u.value,f=i.length>1?Tm(n.getAttribute("display-number")):void 0,p=Uy(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(Zm,{maxLength:m}),t().createElement(pv,{multilineAnswer:!0,scores:p,maxScore:c,questionId:l}),t().createElement(hv,{type:g,value:d,score:p}),t().createElement(_m,{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(ov,{answers:i,score:p,displayNumber:f,value:d},t().createElement(pv,{scores:p,maxScore:c,displayNumber:f,questionId:l}))})),mv=({onEndSession:e,sessionEnded:n})=>{const{t:r}=jl();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"))))},yv=ms({attachment:Kl,"attachment-link":fc("plain"),"attachment-links":pc("plain"),"audio-group":Kl,"choice-answer":Zy,"dropdown-answer":Hy,formula:Wu,question:Wy,hints:Kl,image:Iy((({element:e})=>null!=Me(e,"choice-answer")))(Xu),"question-instruction":Nm,"question-number":dd,translation:fd,"question-title":Qy,section:Jy,"section-title":Pm,"text-answer":gv,"scored-text-answer":av,"scored-text-answers":Kl}),vv=()=>{const{t:e}=jl();return e("examineExam.returnToExam")},bv=()=>{const{t:e}=jl();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 Iv(){const{gradingText:n,totalScore:r}=(0,e.useContext)(Ry),{t:i}=jl();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 xv=t().memo(Py(oc((({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)(ic),{answersByQuestionId:g}=(0,e.useContext)(Ry),m=Ae(p,"exam-title"),y=p.getAttribute("exam-stylesheet"),b=Xl((()=>kl(d,u,c)));(0,e.useEffect)(Dl(b,d)),(0,e.useEffect)(Jl,[]);const I=_y(),x=void 0!==i,w=!I&&!a;return(0,e.useEffect)((()=>{window.location.hash=""}),[]),t().createElement(v,{i18n:b},t().createElement("main",{className:Er()("e-exam e-results",{"examine-exam-page":I,"session-ended":o}),lang:h},t().createElement(t().StrictMode,null),y&&t().createElement("link",{rel:"stylesheet",href:f(y)}),!w&&t().createElement("button",{className:"e-exam-done-return js-exam-done-return e-button",onClick:r},"« ",t().createElement(vv,null)),t().createElement("div",{className:"e-columns e-columns--bottom-v e-mrg-b-4"},m&&t().createElement($l,{id:"title",className:"e-column e-mrg-b-0"},yv(m),s&&`, ${l.format(s)}`),!I&&t().createElement(Iv,null)),!w&&t().createElement(bv,null),t().createElement(py,{validationErrors:_p(xd(n),g),inExam:!1}),yv(p),(x||a)&&t().createElement(mv,{onEndSession:I?()=>{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(Jh,null))})))),wv=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 Tv=Math.max;const Mv=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:rd(n);return i<0&&(i=Tv(r+i,0)),wv(e,An(t),i)};var Av=Math.max,Ev=Math.min;const Cv=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r-1;return void 0!==n&&(i=rd(n),i=n<0?Av(r+i,0):Ev(i,r-1)),wv(e,An(t),i,!0)},Nv=function(e,t,n){var r=e.length;return n=void 0===n?r:n,!t&&n>=r?e:Sn(e,t,n)},Sv=function(e){return e!=e},kv=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):wv(e,Sv,n)};var jv=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");var Dv="\\ud800-\\udfff",Lv="["+Dv+"]",Ov="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Rv="\\ud83c[\\udffb-\\udfff]",Pv="[^"+Dv+"]",zv="(?:\\ud83c[\\udde6-\\uddff]){2}",Uv="[\\ud800-\\udbff][\\udc00-\\udfff]",_v="(?:"+Ov+"|"+Rv+")?",Bv="[\\ufe0e\\ufe0f]?",Fv=Bv+_v+"(?:\\u200d(?:"+[Pv,zv,Uv].join("|")+")"+Bv+_v+")*",Gv="(?:"+[Pv+Ov+"?",Ov,zv,Uv,Lv].join("|")+")",Zv=RegExp(Rv+"(?="+Rv+")|"+Gv+Fv,"g");const Hv=function(e){return function(e){return jv.test(e)}(e)?function(e){return e.match(Zv)||[]}(e):function(e){return e.split("")}(e)};var qv=/^\s+/;const Vv=function(e,t,n){if((e=yn(e))&&(n||void 0===t))return e.replace(qv,"");if(!e||!(t=mn(t)))return e;var r=Hv(e),i=function(e,t){for(var n=-1,r=e.length;++n<r&&kv(t,e[n],0)>-1;);return n}(r,Hv(t));return Nv(r,i).join("")},Yv=function(e,t,n){if((e=yn(e))&&(n||void 0===t))return e.slice(0,nr(e)+1);if(!e||!(t=mn(t)))return e;var r=Hv(e),i=function(e,t){for(var n=e.length;n--&&kv(t,e[n],0)>-1;);return n}(r,Hv(t))+1;return Nv(r,0,i).join("")};function Wv(e,t=!1){const n=(new DOMParser).parseFromString(e,"application/xml");return t||Te(n.documentElement,["choice-answer","dropdown-answer"]).filter((e=>"fixed"!==Ee(e,"ordering"))).forEach(Qv),Te(n.documentElement,"reference").forEach((e=>{Te(e,(()=>!0),!1).forEach(Jv)})),n}function Qv(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 Jv(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=Mv(n,t),i=Cv(n,t);-1!==r&&(n.slice(0,r).forEach((e=>e.remove())),n[r].textContent=Vv(n[r].textContent)),-1!==i&&(n.slice(i+1).forEach((e=>e.remove())),n[i].textContent=Yv(n[i].textContent))}function Xv({characterCount:e,maxLength:n}){const{t:r}=jl(),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 $v=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(qy,{pregradingAnnotations:o,censoringAnnotations:a,singleGrading:r})};let Kv;function eb(e){const t=(null==e?void 0:e.querySelectorAll("img"))||[];Kv=t.length,t.forEach((e=>{e.complete?setTimeout((()=>tb(e)),0):e.addEventListener("load",(()=>tb(e)))}))}function tb(e){Kv--;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 nb(n){const r=Xl((()=>kl(n.language)));return(0,e.useEffect)(Dl(r,n.language)),t().createElement(v,{i18n:r},t().createElement(rb,{...n}))}function rb({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,y;const v={start:void 0,element:void 0,img:void 0};let b,I,x,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&&(y=l,br(g.current,!1),br(p.current,!1),H(y),f.current.setAttribute("lang",o),document.addEventListener("selectionchange",F)),window.onresize=()=>{clearTimeout(w),w=setTimeout((()=>eb(f.current)),1e3)},()=>{window.removeEventListener("keydown",q),window.removeEventListener("mouseup",B),window.removeEventListener("mousemove",Z)})));const{t:j}=jl(),D=C>0&&A!==C,L=S>0;return t().createElement("div",{onClick:e=>function(e){var t;const n=e.target;if(n instanceof HTMLElement)if("MARK"===n.tagName)v.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&&O()}(e),className:"e-grading-answer-wrapper"},D&&t().createElement("div",{className:"loading-images"},t().createElement("span",{className:"loading"},j("grading.loading-images")," (",A,"/",C,")"),L&&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",vr),v.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=yr((o-i.left)/i.width),s=e.clientY;return{attachmentIndex:r,bbox:i,startX:a,startY:yr((s-i.top)/i.height),clientX:o,clientY:s}}(e,n),v.img=n,window.addEventListener("mousemove",Z))}(e),onMouseOver:e=>function(e){const t=e.closest("mark");!t||M||hr()&&!a||v.element||P(t)}(e.target)}),t().createElement(Xv,{characterCount:r,maxLength:u}),t().createElement($v,{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?y[b.role][b.index].message=t:y[s]=gr(f.current,{...m,message:t},y[s]||[]),br(p.current,!1),c(y)}(e)},t().createElement("input",{onFocus:()=>function(){if(!Ir()&&f.current){const e={...y};e[s]=gr(f.current,m,y[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(x)},onMouseOut:O},t().createElement("span",{onClick:e=>function(e){e.target.closest(".editable")&&(br(g.current,!1),U(I,b.message))}(e),className:"e-grading-answer-tooltip-label"}),t().createElement("button",{onClick:e=>function(e){e.preventDefault(),O(),y[b.role].splice(b.index,1),b=void 0,c(y)}(e),className:"e-grading-answer-tooltip-remove"},"×")));function O(){x=setTimeout((()=>{br(g.current,!1)}),400)}function R(e){"MARK"===e.target.tagName&&(clearTimeout(x),O()),f.current.removeEventListener("mouseout",R)}function P(e){clearTimeout(x);const t=g.current,{type:n,listIndex:r,message:i}=e.dataset;t.classList.toggle("editable",!a&&n===s),I=e.getBoundingClientRect(),pr(I,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,v.element=void 0,v.img=void 0,M=!1,window.removeEventListener("keydown",q),br(p.current,!1),H(y)}function B(){var e,t;if(null===(e=v.img)||void 0===e||e.removeEventListener("dragstart",vr),window.removeEventListener("mousemove",Z),window.removeEventListener("mouseup",B),v.element)return void z(null===(t=v.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(y[s],t.startIndex,t.length);m={...t,type:"text",message:r},z(e.getBoundingClientRect(),r);const i={...y};i[s]=gr(f.current,m,y[s]),H(i)}}function F(){Ir()||(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(y[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){vr(e),m=function(e,{bbox:t,attachmentIndex:n,startX:r,startY:i,clientX:o,clientY:a}){const s=yr((e.clientX-t.left)/t.width),l=yr((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,v.start),v.element?Ky(v.element,m):v.element=nv(v.img,"",m,s,999)}function H(e){const t=f.current;"richText"===n?(t.innerHTML=i,t.querySelectorAll("img").forEach(ev),eb(t)):t.textContent=i,$y(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,PHN2ZyB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgd2lkdGg9IjMuNzQ0ZXgiIGhlaWdodD0iMi44NDNleCIgc3R5bGU9InZlcnRpY2FsLWFsaWduOiAtMC44MzhleDsiIHZpZXdCb3g9IjAgLTg2My4xIDE2MTIgMTIyMy45IiByb2xlPSJpbWciIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgYXJpYS1sYWJlbGxlZGJ5PSJNYXRoSmF4LVNWRy0xLVRpdGxlIj4KPHRpdGxlIGlkPSJNYXRoSmF4LVNWRy0xLVRpdGxlIj5cc3FydHtcc3F1YXJlfTwvdGl0bGU+CjxkZWZzIGFyaWEtaGlkZGVuPSJ0cnVlIj4KPHBhdGggc3Ryb2tlLXdpZHRoPSIxIiBpZD0iRTEtTEFUSU5NT0RFUk5NQUlOLTI1QTEiIGQ9Ik03MjIgLTYzYzAgLTExIC05IC0yMCAtMjAgLTIwaC02MjZjLTExIDAgLTIwIDkgLTIwIDIwdjYyNmMwIDExIDkgMjAgMjAgMjBoNjI2YzExIDAgMjAgLTkgMjAgLTIwdi02MjZ6TTY4MiA1NDNoLTU4NnYtNTg2aDU4NnY1ODZaIj48L3BhdGg+CjxwYXRoIHN0cm9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{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:v="",baseUrl:b=""}){var I;const[x,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),L=null!==(I=new URL(window.location.href).searchParams.get("forceToolbars"))&&void 0!==I?I:"0",[O,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),V(!0,!0),r&&y(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 V(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||(v&&(U.current.innerHTML=v),setTimeout((()=>{H(),D(!0),U.current&&z.write(U.current.innerHTML)}),0))}),[j,v,U.current,z]),(0,i.jsx)(p.Provider,{value:{isToolbarOpen:"0"!==L||x,isMathToolbarOpen:"2"===L||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:O,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:V,initialValue:v,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)})),y=(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 y="",v="";function b(e,t){const n=this;this.tag=e,this.attribs=t||{},this.tagPosition=y.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 I=function(e){return!1===t.allowedTags||(t.allowedTags||[]).indexOf(e)>-1};u.forEach((function(e){I(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 x=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,L,O;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(),L)return void O++;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)),(!I(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!==x.indexOf(e)&&(L=!0,O=1),j[S]=!0),S++,i){if("discard"===t.disallowedTagsMode||"completelyDiscard"===t.disallowedTagsMode)return;v=y,y=""}y+="<"+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.");y+=" "+i,n&&n.length?y+='="'+U(n,!0)+'"':t.allowedEmptyAttributes.includes(i)&&(y+='=""')}else delete r.attribs[i];var u,d,g})),-1!==t.selfClosing.indexOf(e)?y+=" />":(y+=">",!r.innerText||c||t.textFilter||(y+=U(r.innerText),R=!0)),i&&(y=v+U(y),v="")},ontext:function(e){if(L)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||I(r))if("discard"!==t.disallowedTagsMode&&"completelyDiscard"!==t.disallowedTagsMode||"script"!==r&&"style"!==r){const n=U(e,!1);t.textFilter&&!R?y+=t.textFilter(n,r):R||(y+=n)}else y+=e;else e="";k.length&&(k[k.length-1].text+=e)},onclosetag:function(e,n){if(L){if(O--,O)return;L=!1}const r=k.pop();if(!r)return;if(r.tag!==e)return void k.push(r);L=!!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();v=y,y=""}D[S]&&(e=D[S],delete D[S]),t.exclusiveFilter&&t.exclusiveFilter(r)?y=y.substr(0,r.tagPosition):(r.updateParentNodeMediaChildren(),r.updateParentNodeText(),-1!==t.selfClosing.indexOf(e)||n&&!I(e)&&["escape","recursiveEscape"].indexOf(t.disallowedTagsMode)>=0?i&&(y=v,v=""):(y+="</"+e+">",i&&(y=v+U(y),v=""),R=!1))}},t.parser);return P.write(e),P.end(),y;function z(){y="",S=0,k=[],j={},D={},L=!1,O=0}function U(e,n){return"string"!=typeof e&&(e+=""),t.parser.decodeEntities&&(e=e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"),n&&(e=e.replace(/"/g,"""))),e=e.replace(/&(?![a-zA-Z0-9#]{1,20};)/g,"&").replace(/</g,"<").replace(/>/g,">"),n&&(e=e.replace(/"/g,""")),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",y="@layer",v=Math.abs,b=String.fromCharCode,I=Object.assign;function x(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,L=0,O=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 I(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=O>0?A(P,--O):0,D--,10===R&&(D=1,j--),R}function F(){return R=O<L?A(P,O++):0,D++,10===R&&(D=1,j++),R}function G(){return A(P,O)}function Z(){return O}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 V(e){return x(H(O-1,Q(91===e?e+2:40===e?e+1:e)))}function Y(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 O;case 34:case 39:34!==e&&39!==e&&Q(R);break;case 40:41===e&&Q(e);break;case 92:F()}return O}function J(e,t){for(;F()&&e+R!==57&&(e+R!==84||47!==G()););return"/*"+H(t,O-1)+"*"+b(47===e?e:F())}function X(e){for(;!q(G());)F();return H(e,O)}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 y: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]})),I(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]})),I(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,L=C(P=e),O=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,y=1,I=0,x="",w=i,E=o,N=r,k=x;m;)switch(h=I,I=F()){case 40:if(108!=h&&58==A(k,d-1)){-1!=M(k+=T(V(I),"&","&\f"),"&\f",v(c?s[c-1]:0))&&(y=-1);break}case 34:case 39:case 91:k+=V(I);break;case 9:case 10:case 13:case 32:k+=Y(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)*y;case 125*g:case 59:case 0:switch(I){case 0:case 125:m=0;case 59+u:-1==y&&(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,x,w=[],E=[],d,o),o),123===I)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,x,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=y=1,x=k="",d=a;break;case 58:d=1+C(k),p=h;default:if(g<1)if(123==I)--g;else if(125==I&&0==g++&&125==B())continue;switch(k+=b(I),I*g){case 38:y=u>0?1:(k+="\f",-1);break;case 44:s[c++]=(C(k)-1)*y,y=1;break;case 64:45===G()&&(k+=V(F())),f=G(),u=d=C(x=k+=X(Z())),I++;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,y=0,b=0;m<r;++m)for(var I=0,w=E(e,f+1,f=v(y=a[m])),M=e;I<g;++I)(M=x(y>0?h[I]+" "+w:T(w,/&\f/g,h[I])))&&(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([])),ye=Object.freeze({});function ve(e,t,n){return void 0===n&&(n=ye),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"]),Ie=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,xe=/(^-|-$)/g;function we(e){return e.replace(Ie,"-").replace(xe,"")}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 Le(e){return"string"==typeof e&&!0}var Oe="function"==typeof Symbol&&Symbol.for,Re=Oe?Symbol.for("react.memo"):60115,Pe=Oe?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,Ve=Object.getPrototypeOf,Ye=Object.prototype;function We(e,t,n){if("string"!=typeof t){if(Ye){var r=Ve(t);r&&r!==Ye&&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}(),yt=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}(),vt=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,It={isServer:!pe,useCSSOMInjection:!he},xt=function(){function e(e,t,n){void 0===e&&(e=ye),void 0===t&&(t={});var i=this;this.options=r(r({},It),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 vt(n):t?new mt(n):new yt(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?ye:e,o=i.options,a=void 0===o?ye: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 xt,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 Lt=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}(),Ot=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;Ot(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 Lt?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,xt.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 Vt={};function Yt(e,t,n){var i=Je(e),s=e,l=!Le(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);Vt[n]=(Vt[n]||0)+1;var r="".concat(n,"-").concat(je(de+n+Vt[n]));return t?"".concat(t,"-").concat(r):r}(t.displayName,t.parentComponentId):d,p=t.displayName,h=void 0===p?function(e){return Le(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,y=t.shouldForwardProp;if(i&&s.shouldForwardProp){var v=s.shouldForwardProp;if(t.shouldForwardProp){var b=t.shouldForwardProp;y=function(e,t){return v(e,t)&&b(e,t)}}else y=v}var I=new Ft(n,g,i?s.componentStyle:void 0);function x(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=ve(t,f,l)||ye,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),y=m.as||d,v={};for(var b in m)void 0===m[b]||"$"===b[0]||"as"===b||"theme"===b&&m.theme===g||("forwardedAs"===b?v.as=m.forwardedAs:h&&!h(b,y)||(v[b]=m[b]));var I=function(e,t){var n=jt();return e.generateAndInjectStyles(t,n.styleSheet,n.stylis)}(s,m),x=Xe(c,u);return I&&(x+=" "+I),m.className&&(x+=" "+m.className),v[Le(y)&&!be.has(y)?"class":"className"]=x,v.ref=n,(0,o.createElement)(y,v)}(w,e,t)}x.displayName=h;var w=a().forwardRef(x);return w.attrs=m,w.componentStyle=I,w.displayName=h,w.shouldForwardProp=y,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=ye),!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(Yt,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),xt.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&&xt.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:ve(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 Lt(o,r)}function rn(e){var t=a().forwardRef((function(t,n){var i=ve(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 xt({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:xt,mainSheet:Et};"__sc-".concat(le,"__")},679:(e,t,n)=>{"use strict";n.r(t),n.d(t,{focusable:()=>x,getTabIndex:()=>f,isFocusable:()=>M,isTabbable:()=>w,tabbable:()=>I});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))},y=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))},v=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)},I=function(e,t){var n;return n=(t=t||{}).getShadowRoot?u([e],t.includeContainer,{filter:y.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:v}):c(e,t.includeContainer,y.bind(null,t)),b(n)},x=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)&&y(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:()=>Id,Exam:()=>by,GradingAnswer:()=>nb,GradingInstructions:()=>Oy,Results:()=>xv,parseExam:()=>Wv});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={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},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),y=(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:y}=d;let v=t||s||u.options?.defaultNS;v=c(v)?[v]:v||["translation"],u.reportNamespaces.addUsedNamespaces?.(v);const b=(u.isInitialized||u.initializedStoreOnce)&&v.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))),I=((t,n,r,i)=>(0,e.useCallback)(m(t,n,r,i),[t,n,r,i]))(u,n.lng||null,"fallback"===d.nsMode?v:v[0],y),x=()=>I,w=()=>m(u,n.lng||null,"fallback"===d.nsMode?v:v[0],y),[T,M]=(0,e.useState)(x);let A=v.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,v,(()=>{C.current&&M(w)})):o(u,v,(()=>{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(x)}),[u,y,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,v,(()=>e())):o(u,v,(()=>e()))}))};function v({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},I=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},x=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)},L=function(e){return null!=e&&"object"==typeof e},O=function(e){return L(e)&&"[object Arguments]"==D(e)};var R=Object.prototype,P=R.hasOwnProperty,z=R.propertyIsEnumerable;const U=O(function(){return arguments}())?O:function(e){return L(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},V=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991};var Y={};Y["[object Float32Array]"]=Y["[object Float64Array]"]=Y["[object Int8Array]"]=Y["[object Int16Array]"]=Y["[object Int32Array]"]=Y["[object Uint8Array]"]=Y["[object Uint8ClampedArray]"]=Y["[object Uint16Array]"]=Y["[object Uint32Array]"]=!0,Y["[object Arguments]"]=Y["[object Array]"]=Y["[object ArrayBuffer]"]=Y["[object Boolean]"]=Y["[object DataView]"]=Y["[object Date]"]=Y["[object Error]"]=Y["[object Function]"]=Y["[object Map]"]=Y["[object Number]"]=Y["[object Object]"]=Y["[object RegExp]"]=Y["[object Set]"]=Y["[object String]"]=Y["[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 L(e)&&V(e.length)&&!!Y[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?x(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&&V(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&&I(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},ye=function(e,t){return(_(e)?b:pe)(e,me(t))},ve=(0,e.createContext)({}),be=" ";function Ie(e,t){const n=null!=t?xe(t):void 0,r=[];for(;null!=e.parentElement;)e=e.parentElement,(null==n||n(e))&&r.push(e);return r}function xe(e){return"function"==typeof e?t=>t.namespaceURI===gs&&e(t):Array.isArray(e)?t=>t.namespaceURI===gs&&e.includes(t.localName):t=>t.namespaceURI===gs&&t.localName===e}function we(e,t){const n=xe(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=xe(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=xe(t);for(;null!=e.parentElement;)if(n(e=e.parentElement))return e}function Ae(e,t){const n=xe(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"],!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){ye(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 Le(t,n){const{visibleTOCElements:r}=(0,e.useContext)(ve),[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 Oe(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 Ve=function(e){return!(!le(e)||(t=e,ze&&ze in t))&&(ce(e)?qe:Be).test(_e(e));var t},Ye=function(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return Ve(n)?n:void 0},We=function(){try{var e=Ye(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=Ye(M,"Map"),it=Ye(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},yt=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},vt=M.Uint8Array,bt=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n},It=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n};var xt=A?A.prototype:void 0,wt=xt?xt.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=Ye(M,"DataView"),Dt=Ye(M,"Promise"),Lt=Ye(M,"Set"),Ot=Ye(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(Lt),Ht=_e(Ot),qt=D;(jt&&qt(new jt(new ArrayBuffer(1)))!=_t||rt&&qt(new rt)!=Rt||Dt&&qt(Dt.resolve())!=Pt||Lt&&qt(new Lt)!=zt||Ot&&qt(new Ot)!=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 Vt=qt;var Yt="[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:Vt(e),c=s?Wt:Vt(t),u=(l=l==Yt?Qt:l)==Qt,d=(c=c==Yt?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)?yt(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 vt(e),new vt(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=It),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=yt(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 y=a?r(m,g,u,t,e,o):r(g,m,u,e,t,o);if(!(void 0===y?g===m||i(g,m,n,r,o):y)){p=!1;break}h||(h="constructor"==u)}if(p&&!h){var v=e.constructor,b=t.constructor;v==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof v&&v instanceof v&&"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||!L(t)&&!L(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||L(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},yn=function(e){return null==e?"":mn(e)},vn=function(e,t){return _(e)?e:an(e,t)?[e]:un(yn(e))},bn=function(e){if("string"==typeof e||nn(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t},In=function(e,t){for(var n=0,r=(t=vn(t,e)).length;null!=e&&n<r;)e=e[bn(t[n++])];return n&&n==r?e:void 0},xn=function(e,t,n){var r=null==e?void 0:In(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=vn(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)&&V(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 In(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=xn(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},Ln=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},On=function(e,t){return e<t},Rn=function(e,t){return e&&e.length?Ln(e,An(t),On):void 0},Pn=function(e,t){return e>t},zn=function(e,t){return e&&e.length?Ln(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 In(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)}},Vn=We?function(e,t){return We(e,"toString",{configurable:!0,enumerable:!1,value:(n=t,function(){return n}),writable:!0});var n}:ge;var Yn=Date.now;const Wn=(Qn=Vn,Jn=0,Xn=0,function(){var e=Yn(),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 yr(e){return cr(e,0,1)}function vr(e){e.preventDefault(),e.stopPropagation()}function br(e,t){e.style.display=t?"initial":"none"}function Ir(){return matchMedia("(pointer:fine)").matches}const xr=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||{},Lr=Nr,Or=Sr,Rr=kr,Pr=jr,zr=(Lr.document,!!Or.documentElement&&!!Or.head&&"function"==typeof Or.addEventListener&&"function"==typeof Or.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],Vr=qr.concat([11,12,13,14,15,16,17,18,19,20]),Yr={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",Yr.GROUP,Yr.SWAP_OPACITY,Yr.PRIMARY,Yr.SECONDARY].concat(qr.map((e=>"".concat(e,"x")))).concat(Vr.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 yi=ci(mi),vi=/fa(s|r|l|t|d|b|k|kd|ss|sr|sl|st|sds)?[\-\ ]/,bi="fa-layers-text",Ii=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit)?.*/i,xi=(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=Yr,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=Lr.FontAwesomeConfig||{};Or&&"function"==typeof Or.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=Or.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}}),Lr.FontAwesomeConfig=Ni;const Si=[],ki=Jr,ji={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1},Di="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function Li(){let e=12,t="";for(;e-- >0;)t+=Di[62*Math.random()|0];return t}function Oi(e){const t=[];for(let n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function Ri(e){return e.classList?Oi(e.classList):(e.getAttribute("class")||"").split(" ").filter((e=>e))}function Pi(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}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=Or.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;const n=Or.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)}Or.head.insertBefore(t,r)}(Bi()),Fi=!0)}var Zi={mixout:()=>({dom:{css:Bi,insertCss:Gi}}),hooks:()=>({beforeDOMElementCreation(){Gi()},beforeI2svg(){Gi()}})};const Hi=Lr||{};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 Vi=[],Yi=function(){Or.removeEventListener("DOMContentLoaded",Yi),Wi=1,Vi.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=(Or.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(Or.readyState),Wi||Or.addEventListener("DOMContentLoaded",Yi));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 yo(){return io}po=e=>{io=bo(e.styleDefault,{family:Ni.familyDefault})},Si.push(po),fo();const vo=()=>({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 Io={[_r]:Object.keys(gi[_r]),[Fr]:Object.keys(gi[Fr]),[Gr]:Object.keys(gi[Gr])};function xo(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=>Io[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)?yi[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}),vo());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=yo()||"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||yo();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=()=>{Lo({autoReplaceSvgRoot:t}),Co("watch",e)},zr&&(Wi?setTimeout(n,0):Vi.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(vi))){const t=xo(e.split(" "),{skipLookups:!0});return{prefix:t.prefix||yo(),iconName:go(t.prefix,t.iconName)||t.iconName}}if("string"==typeof e){const t=yo();return{prefix:t,iconName:go(t,e)||e}}}},library:ko,findIconDefinition:So,toHtml:Qi},Lo=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{autoReplaceSvgRoot:t=Or}=e;(Object.keys(qi.styles).length>0||Ni.autoFetchSvg)&&zr&&Ni.autoReplaceSvg&&Do.dom.i2svg({node:t})};function Oo(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=Or.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 y=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||Li())},children:[s]}),delete m.attributes.title);const v={...m,prefix:r,iconName:i,main:t,mask:n,maskId:l,transform:o,symbol:a,styles:{...y,...u.styles}},{children:b,attributes:I}=n.found&&t.found?No("generateAbstractMask",v)||{children:[],attributes:{}}:No("generateAbstractIcon",v)||{children:[],attributes:{}};return v.children=b,v.attributes=I,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}]}]}(v):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}]}(v)}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=yo()),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 Vo=()=>{};function Yo(e){return"string"==typeof(e.getAttribute?e.getAttribute(Kr):null)}function Wo(e){return Or.createElementNS("http://www.w3.org/2000/svg",e)}function Qo(e){return Or.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 Or.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=Or.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:Vo;if(0===e.length)n();else{let t=$o;Ni.mutateApproach===oi&&(t=Lr.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=Vo,nodeCallback:n=Vo,pseudoElementsCallback:r=Vo,observeMutationsRoot:i=Or}=e;ra=new Rr((e=>{if(ea)return;const i=yo();Oi(e).forEach((e=>{if("childList"===e.type&&e.addedNodes.length>0&&!Yo(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&&Yo(e.target)&&~xi.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}=xo(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=xo(Ri(e));return i.prefix||(i.prefix=yo()),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=Oi(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||Li()):(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=Or.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=Oi(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 Oo({type:"icon",...e},(()=>(Co("beforeDOMElementCreation",{iconDefinition:e,params:t}),Ni.autoA11y&&(a?c["aria-labelledby"]="".concat(Ni.replacementClass,"-title-").concat(s||Li()):(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=Or,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 Oo({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 Oo({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 Oo({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"),ya=[1105920,1112319],va={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(va).reduce(((e,t)=>(e[t.toLowerCase()]=va[t],e)),{}),Ia=Object.keys(ba).reduce(((e,t)=>{const n=ba[t];return e[t]=n[900]||[...Object.entries(n)][0][1],e}),{});function xa(e,t){const n="".concat(ti).concat(t.replace(":","-"));return new Promise(((r,i)=>{if(null!==e.getAttribute(n))return r();const o=Oi(e.children).filter((e=>e.getAttribute(ei)===t))[0],a=Lr.getComputedStyle(e,t),s=a.getPropertyValue("font-family"),l=s.match(Ii),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]||Ia[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>=ya[0]&&n<=ya[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:vo()},prefix:d,iconName:m,extra:s,watchable:!0}),l=Or.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([xa(e,"::before"),xa(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=Oi(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=Or}=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?xo(n.split(" ").map((e=>e.trim()))):vo();return r.prefix||(r.prefix=yo()),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||Li()),y="clip-".concat(o||Li()),v={tag:"mask",attributes:{...Ca,id:m,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"},children:[f,g]},b={tag:"defs",children:[{tag:"clipPath",attributes:{id:y},children:(I=u,"g"===I.tag?I.children:[I])},v]};var I;return t.push(b,{tag:"rect",attributes:{fill:"currentColor","clip-path":"url(#".concat(y,")"),mask:"url(#".concat(m,")"),...Ca}}),{children:t,attributes:n}}}},{provides(e){let t=!1;Lr.matchMedia&&(t=Lr.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 La(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 Oa(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?La(Object(n),!0).forEach((function(t){Pa(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):La(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=Oa(Oa({},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,y=e.size,v=e.rotation,b=e.pull,I=(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(y),null!=y),Pa(t,"fa-rotate-".concat(v),null!=v&&0!==v),Pa(t,"fa-pull-".concat(b),null!=b),Pa(t,"fa-swap-opacity",e.swapOpacity),t);return Object.keys(I).map((function(e){return I[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,Oa(Oa(Oa(Oa({},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])})),Va(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 Va=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=Oa(Oa({},o.attrs.style),s),t.apply(void 0,[n.tag,Oa(Oa({},o.attrs),l)].concat(za(i)))}.bind(null,t().createElement);const Ya={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:"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"]},Ka={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"]},es={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"]},ts={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"]},ns={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"]},rs={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"]},is={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 os(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:Ya,fixedWidth:!0})," ",l&&"Vahvista?"))):null}function as(){const{newAnnotation:n,setNewAnnotation:r,newAnnotationRef:i,setNewAnnotationRef:o,onSaveAnnotation:a}=(0,e.useContext)(ss);return t().createElement(os,{element:i,initialTextContent:"",onValueSave:e=>{a(n,e),r(null),o(null)},enableDelete:!1,onCancel:()=>{r(null),o(null)}})}const ss=t().createContext({}),ls=({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(ss.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=xr(o);if(n===xr(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(as,null),n))},cs=(0,e.createContext)({}),us=({annotation:n,markedText:r,onClickAnnotation:i,setNewAnnotationRef:o})=>{const a=(0,e.useRef)(null);return(0,e.useEffect)((()=>{a.current&&!fs(n)&&o(a.current)}),[]),t().createElement("mark",{ref:a,className:"e-annotation","data-annotation-id":fs(n)?n.annotationId:"","data-hidden":"false","data-annotation-path":n.annotationAnchor,onClick:e=>fs(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 ds(e){return fs(e)?e.annotationId+e.startIndex:e.startIndex}function fs(e){return"annotationId"in e}function ps(e,t,n){return e.substring(t,t+n)}const hs=({node:n})=>{var r,i;const o=(0,e.useContext)(ss),{isInSidebar:a}=(0,e.useContext)(cs),{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=Oe(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=ds(e);l.push(t().createElement("mark",{key:n,className:"e-annotation","data-annotation-id":fs(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=ps(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=ps(e,u,n.length);u>c&&l.push(e.substring(c,u));const p=ds(n);l.push(n.hidden?t().createElement("mark",{key:p,className:"e-annotation","data-annotation-id":fs(n)?n.annotationId:"","data-hidden":"true"}):t().createElement(us,{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)},gs="http://ylioppilastutkinto.fi/exam.xsd";function ms(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(hs,{node:e,key:Oe(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 gs: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 vs=e=>"string"==typeof e,bs=()=>{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,xs=/###/g,ws=e=>e&&e.indexOf("###")>-1?e.replace(xs,"."):e,Ts=e=>!e||vs(e),Ms=(e,t,n)=>{const r=vs(t)?t.split("."):t;let i=0;for(;i<r.length-1;){if(Ts(e))return{};const t=ws(r[i]);!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++i}return Ts(e)?{}:{obj:e,k:ws(r[i])}},As=(e,t,n)=>{const{obj:r,k:i}=Ms(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=Ms(e,a,Object);for(;void 0===s.obj&&a.length;)o=`${a[a.length-1]}.${o}`,a=a.slice(0,a.length-1),s=Ms(e,a,Object),s&&s.obj&&void 0!==s.obj[`${s.k}.${o}`]&&(s.obj=void 0);s.obj[`${s.k}.${o}`]=n},Es=(e,t)=>{const{obj:n,k:r}=Ms(e,t);if(n)return n[r]},Cs=(e,t,n)=>{for(const r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?vs(e[r])||e[r]instanceof String||vs(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):Cs(e[r],t[r],n):e[r]=t[r]);return e},Ns=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var Ss={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const ks=e=>vs(e)?e.replace(/[&<>"'\/]/g,(e=>Ss[e])):e,js=[" ",",","?","!",";"],Ds=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},Os=e=>e&&e.replace("_","-"),Rs={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 Ps{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||Rs,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:(vs(e[0])&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[t](e))}create(e){return new Ps(this.logger,{prefix:`${this.prefix}:${e}:`,...this.options})}clone(e){return(e=e||this.options).prefix=e.prefix||this.prefix,new Ps(this.logger,e)}}var zs=new Ps;class Us{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 _s extends Us{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):vs(n)&&i?a.push(...n.split(i)):a.push(n)));const s=Es(this.data,a);return!s&&!t&&!n&&e.indexOf(".")>-1&&(e=a[0],t=a[1],n=a.slice(2).join(".")),!s&&o&&vs(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),As(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)(vs(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=Es(this.data,a)||{};o.skipCopy||(n=JSON.parse(JSON.stringify(n))),r?Cs(s,n,i):s={...s,...n},As(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 Bs={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 Fs={};class Gs extends Us{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=zs.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=js.filter((e=>t.indexOf(e)<0&&n.indexOf(e)<0));if(0===r.length)return!0;const i=Ds.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:vs(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:vs(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,y=!vs(d)&&"boolean"!=typeof d&&"number"!=typeof d;if(!(m&&d&&y&&["[object Number]","[object Function]","[object RegExp]"].indexOf(h)<0)||vs(g)&&Array.isArray(d))if(m&&vs(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&&!vs(t.count),f=Gs.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 y=(t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&a?void 0:d,v=f&&m!==d&&this.options.updateMissing;if(a||r||v){if(this.logger.log(v?"updateKey":"missingKey",l,s,o,v?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:y;this.options.missingKeyHandler?this.options.missingKeyHandler(e,s,n,i,v,t):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(e,s,n,i,v,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=vs(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&&!vs(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=vs(a)?[a]:a;return null!=e&&s&&s.length&&!1!==n.applyPostProcessor&&(e=Bs.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 vs(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&&!vs(a.count),d=u&&!a.ordinal&&0===a.count&&this.pluralResolver.shouldUseIntlApi(),f=void 0!==a.context&&(vs(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,!Fs[`${p[0]}-${e}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(o)&&(Fs[`${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&&!vs(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 Zs=e=>e.charAt(0).toUpperCase()+e.slice(1);class Hs{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=zs.create("languageUtils")}getScriptPartFromCode(e){if(!(e=Os(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=Os(e))||e.indexOf("-")<0)return e;const t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(vs(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]=Zs(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]=Zs(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=Zs(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)),vs(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 vs(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))):vs(e)&&i(this.formatLanguageCode(e)),n.forEach((e=>{r.indexOf(e)<0&&i(this.formatLanguageCode(e))})),r}}let qs=[{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 Ys=["v1","v2","v3"],Ws=["v4"],Qs={zero:0,one:1,two:2,few:3,many:4,other:5};class Js{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.languageUtils=e,this.options=t,this.logger=zs.create("pluralResolver"),this.options.compatibilityJSON&&!Ws.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 qs.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=Os("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)=>Qs[e]-Qs[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!Ys.includes(this.options.compatibilityJSON)}}const Xs=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=Es(e,n);return void 0!==r?r:Es(t,n)})(e,t,n);return!o&&i&&vs(n)&&(o=Ls(e,n,r),void 0===o&&(o=Ls(t,n,r))),o},$s=e=>e.replace(/\$/g,"$$$$");class Ks{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=zs.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:y}=e.interpolation;this.escape=void 0!==t?t:ks,this.escapeValue=void 0===n||n,this.useRawValueToEscape=void 0!==r&&r,this.prefix=i?Ns(i):o||"{{",this.suffix=a?Ns(a):s||"}}",this.formatSeparator=l||",",this.unescapePrefix=c?"":u||"-",this.unescapeSuffix=this.unescapePrefix?"":c||"",this.nestingPrefix=d?Ns(d):f||Ns("$t("),this.nestingSuffix=p?Ns(p):h||Ns(")"),this.nestingOptionsSeparator=g||",",this.maxReplaces=m||1e3,this.alwaysFormat=void 0!==y&&y,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=Xs(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(Xs(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=>$s(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?$s(this.escape(e)):$s(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=vs(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 vs(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&&!vs(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&&!vs(r))return r;vs(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 el=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(Os(r),i),t[a]=s),s(n)}};class tl{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.logger=zs.create("formatter"),this.options=e,this.formats={number:el(((e,t)=>{const n=new Intl.NumberFormat(e,{...t});return e=>n.format(e)})),currency:el(((e,t)=>{const n=new Intl.NumberFormat(e,{...t,style:"currency"});return e=>n.format(e)})),datetime:el(((e,t)=>{const n=new Intl.DateTimeFormat(e,{...t});return e=>n.format(e)})),relativetime:el(((e,t)=>{const n=new Intl.RelativeTimeFormat(e,{...t});return e=>n.format(e,t.range||"day")})),list:el(((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()]=el(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 nl extends Us{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=zs.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}=Ms(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();vs(e)&&(e=this.languageUtils.toResolveHierarchy(e)),vs(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 rl=()=>({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]),vs(e[1])&&(t.defaultValue=e[1]),vs(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}}),il=e=>(vs(e.ns)&&(e.ns=[e.ns]),vs(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),vs(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),ol=()=>{};class al extends Us{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=il(e),this.services={},this.logger=zs,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&&(vs(t.ns)?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));const r=rl();this.options={...r,...this.options,...il(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?zs.init(i(this.modules.logger),this.options):zs.init(null,this.options),this.modules.formatter?t=this.modules.formatter:"undefined"!=typeof Intl&&(t=tl);const n=new Hs(this.options);this.store=new _s(this.options.resources,this.options);const o=this.services;o.logger=zs,o.resourceStore=this.store,o.languageUtils=n,o.pluralResolver=new Js(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 Ks(this.options),o.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},o.backendConnector=new nl(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 Gs(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=ol),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=bs(),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]:ol;const n=vs(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=bs();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=ol),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&&Bs.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=bs();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=vs(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 vs(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=bs();return this.options.ns?(vs(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=bs();vs(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 Hs(rl());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 al(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]:ol;const n=e.forkResourceStore;n&&delete e.forkResourceStore;const r={...this.options,...e,isClone:!0},i=new al(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 _s(this.store.data,r),i.services.resourceStore=i.store),i.translator=new Gs(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 sl=al.createInstance();sl.createInstance=al.createInstance,sl.createInstance,sl.dir,sl.init,sl.loadResources,sl.reloadResources,sl.use,sl.changeLanguage,sl.getFixedT,sl.t,sl.exists,sl.setDefaultNamespace,sl.hasLoadedNamespace,sl.loadNamespaces,sl.loadLanguages;const ll=function(e){return e&&e.length?e[0]:void 0},cl=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0},ul=function(){};var dl=Object.prototype.hasOwnProperty;const fl=function(e,t,n){var r=e[t];dl.call(e,t)&&$e(r,n)&&(void 0!==n||t in e)||Qe(e,t,n)},pl=function(e,t,n,r){if(!le(e))return e;for(var i=-1,o=(t=vn(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])?[]:{})}fl(s,l,c),s=s[l]}return e},hl=function(e,t){return function(e,t,n){for(var r=-1,i=t.length,o={};++r<i;){var a=t[r],s=In(e,a);n(s,a)&&pl(o,vn(a,e),s)}return o}(e,t,(function(t,n){return Tn(e,n)}))},gl=function(e){return null!=e&&e.length?Bn(e,1):[]},ml=function(e){return Wn(qn(e,void 0,gl),e+"")},yl=ml((function(e,t){return null==e?{}:hl(e,t)})),vl={"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."},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]"}},bl=yl(vl,["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."},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]"}},xl=yl(Il,["exam-total","material","external-material-title","section","references","toc-heading"]),wl={"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"},Tl={"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"},Ml={section:""},Al={"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"},El={"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"},Cl={"exam-total":"Весь экзамен",material:"Материал","external-material-title":"Материал",section:"Часть {{displayNumber}}:",references:{heading:"Источники",source:"Источник",date:"Опубликовано","reference-date":"Дата обращения",translator:"Перевод","modified-by":"Адаптировано"},"toc-heading":"Содержание"},Nl={A_E:{"external-material-title":"Aineistot","answering-instructions":{"toc-section_*_1_1":"Valitse yksi aihe.","section_*_1_1":"Valitse yksi aihe."}},BA:bl,BB:bl,CA:xl,CB:xl,EA:wl,EC:wl,FA:Tl,FC:Tl,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:Ml,N:Ml,O_E:{"answering-instructions":{"toc-section_*_1_1":"Välj ett ämne.","section_*_1_1":"Välj ett ämne."}},SA:El,SC:El,PA:Al,PC:Al,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:Cl,VC:Cl,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"}},Sl={"fi-FI":{translation:Il,...Nl},"sv-FI":{translation:vl,...Nl}};function kl(e,t,n){const r=t?t+(n?`_${n}`:""):"translation";return sl.use({type:"postProcessor",name:"lowercase",process:(e,t,n)=>e.toLocaleLowerCase(n.lng)}).createInstance({compatibilityJSON:"v3",resources:Sl,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 ll(n);case"last":return cl(n);default:return e}}}},ul)}function jl(){const{i18n:e,t:n}=y(),r=(n,r)=>function(e,n,r){const i=e.t(n,r),o=e.options.defaultNS.toString(),a="translation"!==o&&o in Nl,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 Dl=(e,t)=>()=>{e.language!==t&&e.changeLanguage(t).then(ul).catch(ul)},Ll=new WeakMap;let Ol=0;const Rl=e=>t=>`${e}-${(e=>{const t=Ll.get(e);if(null!=t)return t;const n=++Ol;return Ll.set(e,n),n})(t)}`,Pl=e=>t=>`${e}-${t}`,zl="title",Ul="references-title",_l=Pl("section-title"),Bl=Pl("question-title"),Fl=Rl("question-instruction"),Gl=Rl("answer-length-info"),Zl=Rl("external-material-list-title"),Hl=Pl("toc-section-title"),ql=Rl("answer-score"),Vl=Rl("image-caption"),Yl=Rl("video-caption"),Wl=Rl("audio-label"),Ql="toc-title";function Jl(){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",Jl),()=>window.removeEventListener("hashchange",Jl)}function Xl(t){return(0,e.useState)(t)[0]}const $l=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})})),Kl=function({element:e,renderChildNodes:n}){const r=n(e);return 0===r.length?null:t().createElement(t().Fragment,null,r)},ec=t().memo((function({element:e,renderChildNodes:n}){return t().createElement(t().Fragment,null,n(e,1))})),tc=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 nc(e){return e.displayName||e.name||"Component"}const rc=(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(${nc(r)})`,i},ic=t().createContext({});function oc(e){return rc(ic,(({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 ac=t().createContext({}),sc=rc(ac,(e=>{const{casCountdownDuration:t,examServerApi:n}=e;return{casCountdownDuration:t||60,examServerApi:n}})),lc=t().createContext({}),cc=rc(lc,(({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 uc(e,t){const n=new URL(e,"http://example.com");ye(t,((e,t)=>n[t]=e));const r=n.pathname+n.search+n.hash;return e.startsWith("/")?r:r.substr(1)}const dc=({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),fc=n=>t().memo((({element:r})=>{const i=r.getAttribute("ref"),{root:o}=(0,e.useContext)(ic),{attachmentsURL:a}=(0,e.useContext)(ic),{t:s}=jl(),l=we(o,(e=>"attachment"===e.localName&&e.getAttribute("name")===i)).getAttribute("display-number"),c="short"===r.getAttribute("type"),u=uc(a,{hash:l});return c?t().createElement(dc,{href:u,type:n},l):t().createElement(t().Fragment,null,"(",t().createElement(dc,{href:u,type:n},s("material",{postProcess:"lowercase"})," ",l),")")})),pc=n=>t().memo((({element:r})=>{const{root:i,attachmentsURL:o}=(0,e.useContext)(ic),{t:a}=jl(),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=uc(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(dc,{href:u,type:n},d):t().createElement(t().Fragment,null,"(",t().createElement(dc,{href:u,type:n},a("material",{count:f,postProcess:"lowercase"})," ",d),")")})),hc=t().createContext({}),gc=rc(hc,(({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}})),mc=t().memo(gc((function({element:n,renderChildNodes:r}){const{displayNumber:i,isExternal:o}=(0,e.useContext)(hc);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)(hc);return t().createElement("h3",null,i,be,r(n))}));var vc=a(5919),bc=e,Ic=Symbol.for("react-redux-context"),xc="undefined"!=typeof globalThis?globalThis:{};function wc(){if(!bc.createContext)return{};const e=xc[Ic]??(xc[Ic]=new Map);let t=e.get(bc.createContext);return t||(t=bc.createContext(null),e.set(bc.createContext,t)),t}var Tc=wc();function Mc(e=Tc){return function(){return bc.useContext(e)}}var Ac=Mc(),Ec=()=>{throw new Error("uSES not initialized!")},Cc=(e,t)=>e===t;function Nc(e=Tc){const t=e===Tc?Ac:Mc(e),n=(e,n={})=>{const{equalityFn:r=Cc,devModeChecks:i={}}="function"==typeof n?{equalityFn:n}:n,{store:o,subscription:a,getServerState:s,stabilityCheck:l,identityFunctionCheck:c}=t(),u=(bc.useRef(!0),bc.useCallback({[e.name]:t=>e(t)}[e.name],[e,l,i.stabilityCheck])),d=Ec(a.addNestedSub,o.getState,s||o.getState,u,r);return bc.useDebugValue(d),d};return Object.assign(n,{withTypes:()=>n}),n}var Sc=Nc();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 kc={notify(){},get:()=>[]};var jc=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),Dc="undefined"!=typeof navigator&&"ReactNative"===navigator.product,Lc=jc||Dc?bc.useLayoutEffect:bc.useEffect;function Oc(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function Rc(e,t){if(Oc(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])||!Oc(e[n[r]],t[n[r]]))return!1;return!0}Object.defineProperty,Object.getOwnPropertyNames,Object.getOwnPropertySymbols,Object.getOwnPropertyDescriptor,Object.getPrototypeOf,Object.prototype;var Pc=function({store:e,context:t,children:n,serverState:r,stabilityCheck:i="once",identityFunctionCheck:o="once"}){const a=bc.useMemo((()=>{const t=function(e,t){let n,r=kc,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=kc)}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=bc.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||Tc;return bc.createElement(l.Provider,{value:a},n)};function zc(e=Tc){const t=e===Tc?Ac:Mc(e),n=()=>{const{store:e}=t();return e};return Object.assign(n,{withTypes:()=>n}),n}var Uc=zc();function _c(e=Tc){const t=e===Tc?Uc:zc(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var Bc,Fc=_c();Bc=vc.useSyncExternalStoreWithSelector,Ec=Bc,e.useSyncExternalStore;const Gc=(e,t)=>n=>{const{nowPlaying:r}=n.audio;return null==r?"stopped":r.audio.restrictedAudioId===t&&r.audio.src===e?"playing":"other-playing"},Zc=(e,t)=>n=>n.audio.errors[null!=t?t:e],Hc=e=>t=>xn(t.audio.playbackTimes,e,0),qc=(e,t)=>n=>t-Hc(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"},Yc=!("undefined"==typeof window||!window.document||!window.document.createElement);var Wc=(new Date).getTime(),Qc=function(e){var t=(new Date).getTime(),n=Math.max(0,16-(t-Wc)),r=setTimeout(e,n);return Wc=t,r},Jc=function(e,t){return e+(e?t[0].toUpperCase()+t.substr(1):t)+"AnimationFrame"};Yc&&["","webkit","moz","o","ms"].some((function(e){var t=Jc(e,"request");return t in window&&(Jc(e,"cancel"),Qc=function(e){return window[t](e)}),!!Qc}));var Xc=Qc;function $c(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 Kc(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function eu(e,t){e.classList?e.classList.remove(t):"string"==typeof e.className?e.className=Kc(e.className,t):e.setAttribute("class",Kc(e.className&&e.className.baseVal||"",t))}var tu=/([A-Z])/g,nu=/^ms-/;function ru(e){return function(e){return e.replace(tu,"-$1").toLowerCase()}(e).replace(nu,"-ms-")}var iu=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;const ou=function(e,t){var n="",r="";if("string"==typeof t)return e.style.getPropertyValue(ru(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(ru(t));Object.keys(t).forEach((function(i){var o=t[i];o||0===o?function(e){return!(!e||!iu.test(e))}(i)?r+=i+"("+o+") ":n+=ru(i)+": "+o+";":e.style.removeProperty(ru(i))})),r&&(n+="transform: "+r+";"),e.style.cssText+=";"+n};var au=!1,su=!1;try{var lu={get passive(){return au=!0},get once(){return su=au=!0}};Yc&&(window.addEventListener("test",lu,lu),window.removeEventListener("test",lu,!0))}catch(e){}const cu=function(e,t,n,r){return function(e,t,n,r){if(r&&"boolean"!=typeof r&&!su){var i=r.once,o=r.capture,a=n;!su&&i&&(a=n.__once||function e(r){this.removeEventListener(t,e,o),n.call(this,r)},n.__once=a),e.addEventListener(t,a,au?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 uu(e,t,n,r){var i,o;null==n&&(o=-1===(i=ou(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=cu(e,"transitionend",(function(){r=!0}),{once:!0});return function(){clearTimeout(i),o()}}(e,n,r),s=cu(e,"transitionend",t);return function(){a(),s()}}function du(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 fu=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 pu(e){return pu="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},pu(e)}function hu(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 gu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hu(Object(n),!0).forEach((function(t){Iu(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function mu(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 vu(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function bu(e){return bu=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},bu(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 xu=[];uu&&xu.push(uu);var wu={children:Da().node,name:fu.isRequired,appear:Da().bool,enter:Da().bool,leave:Da().bool,appearTimeout:Da().number,enterTimeout:Da().number,leaveTimeout:Da().number},Tu=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=bu(i);if(o){var n=bu(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){return!t||"object"!==pu(t)&&"function"!=typeof t?vu(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(vu(n=a.call(this,e)),"refNode",t().createRef()),Iu(vu(n),"componentWillAppear",(function(e){n.props.appear?n.transition("appear",e,n.props.appearTimeout):e()})),Iu(vu(n),"componentWillEnter",(function(e){n.props.enter?n.transition("enter",e,n.props.enterTimeout):e()})),Iu(vu(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;$c(r,o),this.queueClassAndNode(a,r);var l=function(n){n&&n.target!==r||(clearTimeout(s),i&&i(),"leave"!==e&&(eu(r,o),eu(r,a)),i&&i(),t&&t())};n?(s=setTimeout(l,n),this.transitionTimeouts.push(s)):uu&&(i=function(e,t){return xu.length?xu.forEach((function(n){return e.addEventListener(n,t,!1)})):setTimeout(t,0),function(){xu.length&&xu.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=Xc((function(){return n.flushClassNameAndNodeQueueOnNextFrame()})))}},{key:"flushClassNameAndNodeQueueOnNextFrame",value:function(){var e=this;this.rafHandle=Xc((function(){return e.flushClassNameAndNodeQueue()}))}},{key:"flushClassNameAndNodeQueue",value:function(){this.unmounted||this.classNameAndNodeQueue.forEach((function(e){e.node.scrollTop,$c(e.node,e.className)})),this.classNameAndNodeQueue.length=0,this.rafHandle=null}},{key:"render",value:function(){var e=gu(gu({},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)}}])&&mu(n.prototype,r),s}(t().Component);Iu(Tu,"displayName","CSSTransitionGroupChild"),Tu.propTypes=wu;const Mu=Tu;function Au(e){return Au="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},Au(e)}function Eu(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 Cu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Eu(Object(n),!0).forEach((function(t){Du(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Eu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Nu(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 Su(e,t){return Su=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Su(e,t)}function ku(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ju(e){return ju=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ju(e)}function Du(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&&Su(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=ju(i);if(o){var n=ju(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){return!t||"object"!==Au(t)&&"function"!=typeof t?ku(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),Du(ku(n=a.call(this,e)),"handleDoneAppearing",(function(e){delete n.transitioningKeys[e],e!==n.state.currentKey&&n.performLeave(e)})),Du(ku(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(ku(n),e)),n.state.currentChild&&null!==(r=n.childRefs[n.state.currentKey].current)&&void 0!==r&&r.getNode()||n.enqueueHeightTransition()})),Du(ku(n),"performHeightTransition",(function(){if(!n.unmounted){var e,t=ku(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})),Du(ku(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=Cu(Cu({},a),{},Du({},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:Cu({},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=Xc(this.performHeightTransition))}},{key:"wrapChild",value:function(e,n){var r=this.props.transitionName;return"object"===Au(r)&&null!==r&&delete(r=Cu({},r)).height,t().createElement(Mu,Cu({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=Cu({},g.style),m&&(g.style.position="relative",u&&(g.style.overflow="hidden")),null!==a){var y="string"==typeof d?"".concat(d,"-height"):d&&d.height||"";g.className="".concat(g.className||""," ").concat(y),g.style.height=a}null!==s&&(g.style.width=s);var v={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:v},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]?v:m?{position:"relative"}:null},this.wrapChild(i,{ref:function(t){return e.setChildRef(r,t)}}))),t().createElement(f,g,l)}}])&&Nu(n.prototype,r),s}(t().Component);Du(Lu,"displayName","ReactCSSTransitionReplace"),Du(Lu,"propTypes",{transitionName:fu.isRequired,transitionAppear:Da().bool,transitionEnter:Da().bool,transitionLeave:Da().bool,transitionAppearTimeout:du("Appear"),transitionEnterTimeout:du("Enter"),transitionLeaveTimeout:du("Leave"),overflowHidden:Da().bool,changeWidth:Da().bool,notifyLeaving:Da().bool}),Du(Lu,"defaultProps",{transitionAppear:!1,transitionEnter:!0,transitionLeave:!0,overflowHidden:!0,changeWidth:!1,notifyLeaving:!1,component:"div",childComponent:"span"});const Ou=({error:e,children:n})=>{const{t:r}=jl();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:is,className:"e-mrg-r-1"}),r(`audio-errors.${e}`)):t().createElement("div",{key:"no-error"},n))};var Ru=a(758);const Pu=e=>(0,Ru.action)("PLAY_AUDIO",e),zu=e=>(0,Ru.action)("PLAY_AUDIO_STARTED",e),Uu=()=>(0,Ru.action)("PLAY_AUDIO_FINISHED"),_u=(e,t)=>(0,Ru.action)("SHOW_AUDIO_ERROR",{audio:e,error:t}),Bu=e=>(0,Ru.action)("HIDE_AUDIO_ERROR",e),Fu=e=>(0,Ru.action)("UPDATE_REMAINING",e),Gu=t().memo((function({src:n,restrictedAudioId:r,duration:i,times:o,labelId:a}){const s=Sc(Gc(n,r)),l=Sc(((e,t)=>n=>"playing"===Gc(e,t)(n)?n.audio.nowPlaying.durationRemaining:void 0)(n,r)),c=Sc(qc(r,o)),{i18n:u}=jl(),d=Fc(),f="playing"===s,p="stopped"===s,h=!p||0===c,g=`audio-remaining-${r}`,m=f?[]:[g,a],{abitti2:y}=(0,e.useContext)(ic),v=(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},y&&t().createElement("audio",{ref:v,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(Pu({src:n,restrictedAudioId:r,duration:i,audioRef:v})),"aria-labelledby":m.join(" ")},!f&&t().createElement(qa,{icon:ts,fixedWidth:!0})),t().createElement("span",{className:"restricted-audio-player__duration e-column e-text-right",id:g},function(e){const t=e%60;return`${Zu(Math.floor(e/60))}:${Zu(t)}`}(null!=l?l:i)))}));function Zu(e){return e.toString().padStart(2,"0")}const Hu=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}=jl(),u=null!=s&&null!=a?Sc(Zc(o,a)):void 0,d=null!=s&&null!=a?Sc(qc(a,s)):void 0,{resolveAttachment:f}=(0,e.useContext)(ic),p=Wl(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(Gu,{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(Ou,{error:u},i(n)),null!=d&&t().createElement("em",null,c("listen-times-remaining",{count:d}))))})),qu=ms({attachment:gc((function({element:n}){const{displayNumber:r}=(0,e.useContext)(hc);return t().createElement("li",{"data-list-number":r,"aria-label":r},qu(n,1))})),"attachment-title":function({element:n}){const{attachmentsURL:r}=(0,e.useContext)(ic),{displayNumber:i}=(0,e.useContext)(hc);return t().createElement("a",{href:uc(r,{hash:i}),className:"exam-attachment-title",target:"attachments"},qu(n))}}),Vu=t().memo((function({element:e,showTitle:n=!0,forceRender:r=!1}){if(null==Me(e,"question")&&!r)return null;const{t:i}=jl(),o=Zl(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},qu(e)))})),Yu=t().memo((function({element:n,className:r,renderChildNodes:i}){const o=n.getAttribute("src"),a=n.hasChildNodes(),{resolveAttachment:s}=(0,e.useContext)(ic);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)})),Wu=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))})),Qu=({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 Ju(e){return"string"==typeof e&&0===e.trim().length}const Xu=t().memo((function({element:n,className:r,renderChildNodes:i}){const{resolveAttachment:o}=(0,e.useContext)(ic),{t:a}=jl(),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(Ju),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(Qu,{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 $u({element:e,renderChildNodes:n}){return t().createElement("em",null,n(e))}function Ku({element:e,renderChildNodes:n}){return t().createElement("i",null,n(e))}function ed({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)(ic);return t().createElement(t().Fragment,null,i.format(n))}}const td=t().memo((function({element:e,renderChildNodes:n}){const{t:r}=jl();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",Kl),i("title",$u),i("publisher",Kl),i("publication",Kl),i("howpublished",Kl),i("url",Ku),o("publication-date","references.date",ed),o("reference-date","references.reference-date",ed),o("translator","references.translator",Kl),o("modified-by","references.modified-by",Kl),i("note",Kl)]).filter(Boolean).reduce(((e,t,n)=>(e.push(t),n!==a.length-1&&e.push(". "),e)),[])));var a})),nd=t().memo((function({element:n,renderChildNodes:r,className:i}){const{resolveAttachment:o}=(0,e.useContext)(ic),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(Ju),f=d?u:void 0,p=d?Yl(n):void 0;return t().createElement(Qu,{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 rd=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 id=4294967295,od=Math.min;function ad({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:$a,className:"e-mrg-l-1 e-pointer",onClick:()=>n(1)}))}function sd({element:n,absolute:r,opacity:i}){const o=n.getAttribute("src"),a=Ce(n,"width"),s=Ce(n,"height"),l=(0,e.useContext)(ic).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(Qu,{width:a,height:s},t().createElement("img",{className:"e-image",src:l})))}const ld=t().memo((function({element:n,renderChildNodes:r}){const[i,o]=(0,e.useState)((()=>function(e,t){if((e=rd(e))<1||e>9007199254740991)return[];var n=id,r=od(e,id);t=me(t),e-=id;for(var i=x(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(ad,{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(sd,{key:n,element:e,renderChildNodes:r,opacity:i[n],absolute:n>0}))))))})),cd=t().createContext({}),ud=rc(cd,(({element:e})=>{const t=Te(e,"question",!1),n=t.length?[]:Te(e,["text-answer","scored-text-answer","dropdown-answer","choice-answer"],!1),r=Te(e,"question-instruction",!1),i=e.getAttribute("display-number"),o=r.length>0?r.map(Fl).join(" "):Bl(i);return{answers:n,displayNumber:i,hasExternalMaterial:null!=Ae(e,"external-material"),maxAnswers:Ce(e,"max-answers"),maxScore:Ce(e,"max-score"),level:Ie(e,"question").length,childQuestions:t,questionLabelIds:o}}));function dd({element:n}){const r=n.getAttribute("suffix"),{displayNumber:i}=(0,e.useContext)(cd);return t().createElement(t().Fragment,null,ll(i.split(".")),".",r)}const fd=t().memo((function({element:e}){const{t:n}=jl(),r=e.getAttribute("key");return t().createElement(t().Fragment,null,n(r))})),pd=ms({"attachment-link":fc("link"),"attachment-links":pc("link"),"attachment-title":yc,attachment:mc,audio:Hu,"audio-title":Kl,file:Yu,image:Xu,video:nd,formula:Wu,"question-number":dd,translation:fd,reference:function(e,n,r){const i=n=>t().createElement("div",{...r},t().createElement(e,{...n}));return i.displayName=`Surround(${nc(e)})`,i}(td,0,{className:"e-mrg-y-2 e-font-size-s"}),"image-overlay":ld}),hd=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(Vu,{element:e,renderChildNodes:pd,showTitle:!1,forceRender:n}),pd(e))})),gd=t().memo(ud((function({element:n,renderChildNodes:r}){const{displayNumber:i,hasExternalMaterial:o,level:a}=(0,e.useContext)(cd);return function(e,t,n){return t&&(0===n||Ie(e).every((e=>"question"!==e.localName||!Ae(e,"external-material"))))}(n,o,a)?t().createElement(tc,{id:i,"aria-labelledby":Bl(i)},r(n,1)):t().createElement(t().Fragment,null,r(n,1))})));function md(e){return e.includes(".")?e:`${e}.`}const yd=t().memo((function({element:n,renderChildNodes:r}){const{displayNumber:i,hasExternalMaterial:o}=(0,e.useContext)(cd);return o?t().createElement(t().Fragment,null,t().createElement("div",{className:"anchor",id:`question-nr-${i}`}),t().createElement("h2",{id:Bl(i)},md(i)," ",r(n))):null})),vd=ms({"audio-group":ec,"external-material":hd,"question-title":yd,question:gd,section:cc(Kl)}),bd=()=>{const{t:e}=jl();return t().createElement(t().Fragment,null,e("attachments-page-title"))},Id=t().memo(sc(oc((({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)(ic),p=Ae(o,"exam-title"),h=o.getAttribute("exam-stylesheet"),g=Ae(o,"external-material"),m=Xl((()=>kl(a,u,c)));return(0,e.useEffect)(Dl(m,a)),(0,e.useEffect)(Jl,[]),t().createElement(ls,{annotations:n,onClickAnnotation:r,onSaveAnnotation:i},t().createElement(v,{i18n:m},t().createElement("main",{className:"e-exam attachments",lang:f,"aria-labelledby":zl},t().createElement(t().StrictMode,null),h&&t().createElement("link",{rel:"stylesheet",href:d(h)}),t().createElement(tc,{"aria-labelledby":zl},p&&t().createElement($l,{id:zl},t().createElement(bd,null),be,vd(p)),t().createElement("div",{className:"e-semibold e-mrg-b-6"},l.format(s)),g&&t().createElement(hd,{element:g,renderChildNodes:vd,forceRender:!0})),vd(o))))}))));function xd(e){const t=e.documentElement;return Ad(t,Te(t,"section",!1).map(wd),{maxAnswers:Ce(t,"max-answers")})}function wd(e){return Ad(e,Te(e,"question",!1).map(Td),{displayNumber:Ee(e,"display-number"),minAnswers:Ce(e,"min-answers"),maxAnswers:Ce(e,"max-answers")})}function Td(e){const t=Te(e,"question",!1);return Ad(e,t.length?t.map(Td):Te(e,["text-answer","scored-text-answer","choice-answer","dropdown-answer"],!1).map(Md),{displayNumber:Ee(e,"display-number"),maxAnswers:Ce(e,"max-answers")})}function Md(e){return Ad(e,[],{displayNumber:Ee(e,"display-number"),questionId:Ce(e,"question-id"),maxLength:Ce(e,"max-length")})}function Ad(e,t,n){return{name:e.localName,attributes:n,childNodes:t}}const Ed=function(e,t){return(_(e)?pn:Fn)(e,An(t))},Cd=En((function(e,t,n){Qe(e,n,t)}));function Nd(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 Sd=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")(),kd=()=>Math.random().toString(36).substring(7).split("").join("."),jd={INIT:`@@redux/INIT${kd()}`,REPLACE:`@@redux/REPLACE${kd()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${kd()}`};function Dd(e,t,n){if("function"!=typeof e)throw new Error(Nd(2));if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(Nd(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(Nd(1));return n(Dd)(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(Nd(3));return i}function d(e){if("function"!=typeof e)throw new Error(Nd(4));if(l)throw new Error(Nd(5));let t=!0;c();const n=s++;return a.set(n,e),function(){if(t){if(l)throw new Error(Nd(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(Nd(7));if(void 0===e.type)throw new Error(Nd(8));if("string"!=typeof e.type)throw new Error(Nd(17));if(l)throw new Error(Nd(9));try{l=!0,i=r(i,e)}finally{l=!1}return(o=a).forEach((e=>{e()})),e}return f({type:jd.INIT}),{dispatch:f,subscribe:d,getState:u,replaceReducer:function(e){if("function"!=typeof e)throw new Error(Nd(10));r=e,f({type:jd.REPLACE})},[Sd]:function(){const e=d;return{subscribe(t){if("object"!=typeof t||null===t)throw new Error(Nd(11));function n(){const e=t;e.next&&e.next(u())}return n(),{unsubscribe:e(n)}},[Sd](){return this}}}}}function Ld(...e){return 0===e.length?e=>e:1===e.length?e[0]:e.reduce(((e,t)=>(...n)=>e(t(...n))))}var Od=function(e){return"@@redux-saga/"+e},Rd=Od("CANCEL_PROMISE"),Pd=Od("CHANNEL_END"),zd=Od("IO"),Ud=Od("MATCH"),_d=Od("MULTICAST"),Bd=Od("SAGA_ACTION"),Fd=Od("SELF_CANCELLATION"),Gd=Od("TASK"),Zd=Od("TASK_CANCEL"),Hd=Od("TERMINATE"),qd=Od("LOCATION");function Vd(){return Vd=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},Vd.apply(null,arguments)}function Yd(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 Wd=function(e){return null==e},Qd=function(e){return null!=e},Jd=function(e){return"function"==typeof e},Xd=function(e){return"string"==typeof e},$d=Array.isArray,Kd=function(e){return e&&Jd(e.then)},ef=function(e){return e&&Jd(e.next)&&Jd(e.throw)},tf=function e(t){return t&&(Xd(t)||of(t)||Jd(t)||$d(t)&&t.every(e))},nf=function(e){return e&&Jd(e.take)&&Jd(e.close)},rf=function(e){return Jd(e)&&e.hasOwnProperty("toString")},of=function(e){return Boolean(e)&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype},af=function(e){return nf(e)&&e[_d]};const sf=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[Rd]=function(){clearTimeout(n)},r};var lf=function(e){return function(){return true}}(),cf=function(){},uf=function(e){return e};"function"==typeof Symbol&&Symbol.asyncIterator&&Symbol.asyncIterator;var df=function(e,t){Vd(e,t),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach((function(n){e[n]=t[n]}))};function ff(e,t){var n=e.indexOf(t);n>=0&&e.splice(n,1)}function pf(e){var t=!1;return function(){t||(t=!0,e())}}var hf=function(e){throw e},gf=function(e){return{value:e,done:!0}};function mf(e,t,n){void 0===t&&(t=hf),void 0===n&&(n="iterator");var r={meta:{name:n},next:e,throw:t,return:gf,isSagaIterator:!0};return"undefined"!=typeof Symbol&&(r[Symbol.iterator]=function(){return r}),r}function yf(e,t){var n=t.sagaStack;console.error(e),console.error(n)}var vf=function(e){return Array.apply(null,new Array(e))},bf=function(e){return function(t){return e(Object.defineProperty(t,Bd,{value:!0}))}},If=function(e){return e===Hd},xf=function(e){return e===Zd},wf=function(e){return If(e)||xf(e)};function Tf(e,t){var n,r=Object.keys(e),i=r.length,o=0,a=$d(e)?vf(i):{},s={};return r.forEach((function(e){var r=function(r,s){n||(s||wf(r)?(t.cancel(),t(r,s)):(a[e]=r,++o===i&&(n=!0,t(a))))};r.cancel=cf,s[e]=r})),t.cancel=function(){n||(n=!0,r.forEach((function(e){return s[e].cancel()})))},s}function Mf(e){return{name:e.name||"anonymous",location:Af(e)}}function Af(e){return e[qd]}function Ef(){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 Cf={isEmpty:lf,put:cf,take:cf};var Nf=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)},Sf="TAKE",kf="PUT",jf="RACE",Df="CALL",Lf="FORK",Of="CANCEL",Rf="SELECT",Pf="CANCELLED",zf=function(e,t){var n;return(n={})[zd]=!0,n.combinator=!1,n.type=e,n.payload=t,n};function Uf(e,t){return void 0===e&&(e="*"),tf(e)?(Qd(t)&&console.warn("take(pattern) takes one argument but two were provided. Consider passing an array for listening to several action types"),zf(Sf,{pattern:e})):af(e)&&Qd(t)&&tf(t)?zf(Sf,{channel:e,pattern:t}):nf(e)?(Qd(t)&&console.warn("take(channel) takes one argument but two were provided. Second argument is ignored."),zf(Sf,{channel:e})):void 0}function _f(e,t){return Wd(t)&&(t=e,e=void 0),zf(kf,{channel:e,action:t})}function Bf(e,t){var n,r=null;return Jd(e)?n=e:($d(e)?(r=e[0],n=e[1]):(r=e.context,n=e.fn),r&&Xd(n)&&Jd(r[n])&&(n=r[n])),{context:r,fn:n,args:t}}function Ff(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 zf(Df,Bf(e,n))}function Gf(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 zf(Lf,Bf(e,n))}function Zf(e){return void 0===e&&(e=Fd),zf(Of,e)}var Hf=Ff.bind(null,sf);const qf=function(){var e={};return e.promise=new Promise((function(t,n){e.resolve=t,e.reject=n})),e};var Vf=[],Yf=0;function Wf(e){try{Xf(),e()}finally{$f()}}function Qf(e){Vf.push(e),Yf||(Xf(),Kf())}function Jf(e){try{return Xf(),e()}finally{Kf()}}function Xf(){Yf++}function $f(){Yf--}function Kf(){var e;for($f();!Yf&&void 0!==(e=Vf.shift());)Wf(e)}var ep=function(e){return function(t){return e.some((function(e){return op(e)(t)}))}},tp=function(e){return function(t){return e(t)}},np=function(e){return function(t){return t.type===String(e)}},rp=function(e){return function(t){return t.type===e}},ip=function(){return lf};function op(e){var t="*"===e?ip:Xd(e)?np:$d(e)?ep:rf(e)?np:Jd(e)?tp:of(e)?rp:null;if(null===t)throw new Error("invalid pattern: "+e);return t(e)}var ap={type:Pd},sp=function(e){return e&&e.type===Pd};function lp(e){void 0===e&&(e=Nf());var t=!1,n=[];return{take:function(r){t&&e.isEmpty()?r(ap):e.isEmpty()?(n.push(r),r.cancel=function(){ff(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(ap):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])(ap)}}}}function cp(){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(ap)}))},(e={})[_d]=!0,e.put=function(e){if(!t)if(sp(e))o();else for(var i=n=r,a=0,s=i.length;a<s;a++){var l=i[a];l[Ud](e)&&(l.cancel(),l(e))}},e.take=function(e,n){void 0===n&&(n=ip),t?e(ap):(e[Ud]=n,i(),r.push(e),e.cancel=pf((function(){i(),ff(r,e)})))},e.close=o,e),s=a.put;return a.put=function(e){e[Bd]?s(e):Qf((function(){s(e)}))},a}var up=0,dp=1,fp=2,pp=3;function hp(e,t){var n=e[Rd];Jd(n)&&(t.cancel=n),e.then(t,(function(e){t(e,!0)}))}var gp,mp=0,yp=function(){return++mp};function vp(e){e.isRunning()&&e.cancel()}var bp=((gp={})[Sf]=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):!sp(e)||a?n(e):n(Hd)};try{i.take(s,Qd(o)?op(o):null)}catch(e){return void n(e,!0)}n.cancel=s.cancel},gp[kf]=function(e,t,n){var r=t.channel,i=t.action,o=t.resolve;Qf((function(){var t;try{t=(r?r.put:e.dispatch)(i)}catch(e){return void n(e,!0)}o&&Kd(t)?hp(t,n):n(t)}))},gp.ALL=function(e,t,n,r){var i=r.digestEffect,o=mp,a=Object.keys(t);if(0!==a.length){var s=Tf(t,n);a.forEach((function(e){i(t[e],o,s[e],e)}))}else n($d(t)?[]:{})},gp[jf]=function(e,t,n,r){var i=r.digestEffect,o=mp,a=Object.keys(t),s=$d(t)?vf(a.length):{},l={},c=!1;a.forEach((function(e){var t=function(t,r){c||(r||wf(t)?(n.cancel(),n(t,r)):(n.cancel(),c=!0,s[e]=t,n(s)))};t.cancel=cf,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)}))},gp[Df]=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(Kd(l))return void hp(l,n);if(ef(l))return void Np(e,l,s.context,mp,Mf(o),!1,n);n(l)}catch(e){n(e,!0)}},gp.CPS=function(e,t,n){var r=t.context,i=t.fn,o=t.args;try{var a=function(e,t){Wd(e)?n(t):n(e,!0)};i.apply(r,o.concat(a)),a.cancel&&(n.cancel=a.cancel)}catch(e){n(e,!0)}},gp[Lf]=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(ef(i))return i;var o=!1;return mf((function(e){return o?{value:e,done:!0}:(o=!0,{value:i,done:!Kd(i)})}))}catch(e){return mf((function(){throw e}))}}({context:i,fn:o,args:a}),u=function(e,t){return e.isSagaIterator?{name:e.meta.name}:Mf(t)}(c,o);Jf((function(){var t=Np(e,c,l.context,mp,u,s,void 0);s?n(t):t.isRunning()?(l.queue.addTask(t),n(t)):t.isAborted()?l.queue.abort(t.error()):n(t)}))},gp.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()&&ff(e.joiners,n)},e.joiners.push(n)}else e.isAborted()?t(e.error(),!0):t(e.result())};if($d(t)){if(0===t.length)return void n([]);var a=Tf(t,n);t.forEach((function(e,t){o(e,a[t])}))}else o(t,n)},gp[Of]=function(e,t,n,r){var i=r.task;t===Fd?vp(i):$d(t)?t.forEach(vp):vp(t),n()},gp[Rf]=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)}},gp.ACTION_CHANNEL=function(e,t,n){var r=t.pattern,i=lp(t.buffer),o=op(r),a=function t(n){sp(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)},gp[Pf]=function(e,t,n,r){n(r.task.isCancelled())},gp.FLUSH=function(e,t,n){t.flush(n)},gp.GET_CONTEXT=function(e,t,n,r){n(r.task.context[t])},gp.SET_CONTEXT=function(e,t,n,r){var i=r.task;df(i.context,t),n()},gp);function Ip(e,t){return e+"?"+t}function xp(e){var t=e.name,n=e.location;return n?t+" "+Ip(n.fileName,n.lineNumber):t}var wp=null,Tp=[],Mp=function(e){e.crashedEffect=wp,Tp.push(e)},Ap=function(){wp=null,Tp.length=0},Ep=function(e){wp=e},Cp=function(){var e,t,n,r,i,o,a,s=Tp[0],l=Tp.slice(1),c=s.crashedEffect?(o=s.crashedEffect,(a=Af(o))?a.code+" "+Ip(a.fileName,a.lineNumber):""):null;return["The above error occurred in task "+xp(s.meta)+(c?" \n when executing effect "+c:"")].concat(l.map((function(e){return" created by "+xp(e.meta)})),[(e=Tp,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 Np(e,t,n,r,i,o,a){var s=e.finalizeRunEffect((function(t,n,r){Kd(t)?hp(t,r):ef(t)?Np(e,t,c.context,n,i,!1,r):t&&t[zd]?(0,bp[t.type])(e,t.payload,r,u):r(t)}));d.cancel=cf;var l={meta:i,cancel:function(){l.status===up&&(l.status=dp,d(Zd))},status:up},c=function(e,t,n,r,i,o,a){var s;void 0===a&&(a=cf);var l,c,u=up,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||(ff(i,t),t.cont=cf,l?a(s):(t===e&&(r=s),i.length||(o=!0,n(r))))}}function l(){o||(o=!0,i.forEach((function(e){e.cont=cf,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=fp,Mp({meta:i,cancelledTasks:f}),m.isRoot){var r=Cp();Ap(),e.onError(t,{sagaStack:r})}c=t,d&&d.reject(t)}else t===Zd?u=dp:u!==dp&&(u=pp),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={})[Gd]=!0,s.id=r,s.meta=i,s.isRoot=o,s.context=p,s.joiners=[],s.queue=h,s.cancel=function(){u===up&&(u=dp,h.cancelAll(),g(Zd,!1))},s.cont=a,s.end=g,s.setContext=function(e){df(p,e)},s.toPromise=function(){return d||(d=qf(),u===fp?d.reject(c):u!==up&&d.resolve(l)),d.promise},s.isRunning=function(){return u===up},s.isCancelled=function(){return u===dp||u===up&&t.status===dp},s.isAborted=function(){return u===fp},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),Ap()):xf(e)?(l.status=dp,d.cancel(),i=Jd(t.return)?t.return(Zd):{done:!0,value:Zd}):i=If(e)?Jd(t.return)?t.return():{done:!0}:t.next(e),i.done?(l.status!==dp&&(l.status=pp),l.cont(i.value)):f(i.value,r,d)}catch(e){if(l.status===dp)throw e;l.status=fp,l.cont(e,!0)}}function f(t,n,r,i){void 0===i&&(i="");var o,a=yp();function l(n,i){o||(o=!0,r.cancel=cf,e.sagaMonitor&&(i?e.sagaMonitor.effectRejected(a,n):e.sagaMonitor.effectResolved(a,n)),i&&Ep(t),r(n,i))}e.sagaMonitor&&e.sagaMonitor.effectTriggered({effectId:a,parentEffectId:n,label:i,effect:t}),l.cancel=cf,r.cancel=function(){o||(o=!0,l.cancel(),l.cancel=cf,e.sagaMonitor&&e.sagaMonitor.effectCancelled(a))},s(t,a,l)}}function Sp(e,t){for(var n=e.channel,r=void 0===n?cp():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?yf: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),y=yp();if(l&&(l.rootSagaStarted=l.rootSagaStarted||cf,l.effectTriggered=l.effectTriggered||cf,l.effectResolved=l.effectResolved||cf,l.effectRejected=l.effectRejected||cf,l.effectCancelled=l.effectCancelled||cf,l.actionDispatched=l.actionDispatched||cf,l.rootSagaStarted({effectId:y,saga:t,args:p})),c){var v=Ef.apply(void 0,c);g=function(e){return function(t,n,r){return v((function(t){return e(t,n,r)}))(t)}}}else g=uf;var b={channel:r,dispatch:bf(i),getState:o,sagaMonitor:l,onError:d,finalizeRunEffect:g};return Jf((function(){var e=Np(b,m,s,y,Mf(t),!0,void 0);return l&&l.effectResolved(y,e),e}))}var kp=function(e){return{done:!0,value:e}},jp={};function Dp(e){return nf(e)?"channel":rf(e)?String(e):Jd(e)?e.name:String(e)}function Lp(e,t,n){var r,i,o,a=t;function s(t,n){if(a===jp)return kp(t);if(n&&!i)throw a=jp,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===jp?kp(t):o}return mf(s,(function(e){return s(null,e)}),n)}function Op(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:Uf(e)},s=function(e){return o=e};return Lp({q1:function(){return{nextState:"q2",effect:a,stateUpdater:s}},q2:function(){return{nextState:"q1",effect:(e=o,{done:!1,value:Gf.apply(void 0,[t].concat(r,[e]))})};var e}},"q1","takeEvery("+Dp(e)+", "+t.name+")")}function Rp(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:Uf(e)},l=function(e){return{done:!1,value:Gf.apply(void 0,[t].concat(r,[e]))}},c=function(e){return{done:!1,value:Zf(e)}},u=function(e){return o=e},d=function(e){return a=e};return Lp({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("+Dp(e)+", "+t.name+")")}const Pp=function(e,t){return Bn(Ed(e,t),1)};function zp(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 Up(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=Pp(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"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 _p(e,t){return Pp([zp,Up],(n=>n(e,t)))}const Bp={answersById:{},examStructure:{name:"exam",attributes:{},childNodes:[]},focusedQuestionId:null,supportsAnswerHistory:!1,serverQuestionIds:new Set,savedQuestionIds:new Set,validationErrors:[]};function Fp(e,t){const n=new Set(e);return n.add(t),n}const Gp=e=>(0,Ru.action)("SAVE_ANSWER",e),Zp=e=>(0,Ru.action)("SAVE_ANSWER_SUCCEEDED",e),Hp=(e,t)=>(0,Ru.action)("SAVE_ANSWER_FAILED",{answer:e,error:t},void 0,!0),qp=new Map;function*Vp(e,t){const n=e.payload;try{yield Hf(1e3),yield Ff(t.saveAnswer,n),yield _f(Zp(n))}catch(e){yield _f(Hp(n,e))}qp.delete(n.questionId)}function*Yp(e){for(;;){const t=yield Uf("SAVE_ANSWER"),n=qp.get(t.payload.questionId);n&&(yield Zf(n));const r=yield Gf(Vp,t,e);qp.set(t.payload.questionId,r)}}function*Wp(e){for(;e.selectAnswerVersion;){const t=yield Uf("SELECT_ANSWER_VERSION"),{questionId:n,questionText:r}=t.payload;e.logActivity&&(yield Ff(e.logActivity,`Opened answer version history for question ${n}, ${r}`));try{const t=yield Ff(e.selectAnswerVersion,n,r);t&&(yield _f(Gp(t)),e.logActivity&&(yield Ff(e.logActivity,`Restored answer version for question ${n}, ${r}`)))}catch(e){console.error(e)}}}function*Qp(e){yield Gf(Yp,e),yield Gf(Wp,e)}const Jp=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):fl(n,s,l)}return n};var Xp=Object.prototype.hasOwnProperty;const $p=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&&Xp.call(e,r))&&n.push(r);return n},Kp=function(e){return ue(e)?ne(e,!0):$p(e)};var eh="object"==typeof exports&&exports&&!exports.nodeType&&exports,th=eh&&"object"==typeof module&&module&&!module.nodeType&&module,nh=th&&th.exports===eh?M.Buffer:void 0,rh=nh?nh.allocUnsafe:void 0;const ih=oe(Object.getPrototypeOf,Object),oh=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)Tt(t,Nt(e)),e=ih(e);return t}:At,ah=function(e){return Mt(e,Kp,oh)};var sh=Object.prototype.hasOwnProperty;const lh=function(e){var t=new e.constructor(e.byteLength);return new vt(t).set(new vt(e)),t};var ch=/\w*$/;var uh=A?A.prototype:void 0,dh=uh?uh.valueOf:void 0;const fh=function(e,t,n){var r,i=e.constructor;switch(t){case"[object ArrayBuffer]":return lh(e);case"[object Boolean]":case"[object Date]":return new i(+e);case"[object DataView]":return function(e,t){var n=t?lh(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?lh(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,ch.exec(e));return t.lastIndex=e.lastIndex,t}(e);case"[object Symbol]":return r=e,dh?Object(dh.call(r)):{}}};var ph=Object.create;const hh=function(){function e(){}return function(t){if(!le(t))return{};if(ph)return ph(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();var gh=$&&$.isMap;const mh=gh?W(gh):function(e){return L(e)&&"[object Map]"==Vt(e)};var yh=$&&$.isSet;const vh=yh?W(yh):function(e){return L(e)&&"[object Set]"==Vt(e)};var bh="[object Arguments]",Ih="[object Function]",xh="[object Object]",wh={};wh[bh]=wh["[object Array]"]=wh["[object ArrayBuffer]"]=wh["[object DataView]"]=wh["[object Boolean]"]=wh["[object Date]"]=wh["[object Float32Array]"]=wh["[object Float64Array]"]=wh["[object Int8Array]"]=wh["[object Int16Array]"]=wh["[object Int32Array]"]=wh["[object Map]"]=wh["[object Number]"]=wh[xh]=wh["[object RegExp]"]=wh["[object Set]"]=wh["[object String]"]=wh["[object Symbol]"]=wh["[object Uint8Array]"]=wh["[object Uint8ClampedArray]"]=wh["[object Uint16Array]"]=wh["[object Uint32Array]"]=!0,wh["[object Error]"]=wh[Ih]=wh["[object WeakMap]"]=!1;const Th=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]&&sh.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=Vt(t),p=f==Ih||"[object GeneratorFunction]"==f;if(Z(t))return function(e,t){if(t)return e.slice();var n=e.length,r=rh?rh(n):new e.constructor(n);return e.copy(r),r}(t,l);if(f==xh||f==bh||p&&!o){if(s=c||p?{}:function(e){return"function"!=typeof e.constructor||ie(e)?{}:hh(ih(e))}(t),!l)return c?function(e,t){return Jp(e,oh(e),t)}(t,function(e,t){return e&&Jp(t,Kp(t),e)}(s,t)):function(e,t){return Jp(e,Nt(e),t)}(t,function(e,t){return e&&Jp(t,de(t),e)}(s,t))}else{if(!wh[f])return o?t:{};s=fh(t,f,l)}}a||(a=new pt);var h=a.get(t);if(h)return h;a.set(t,s),vh(t)?t.forEach((function(i){s.add(e(i,n,r,i,t,a))})):mh(t)&&t.forEach((function(i,o){s.set(o,e(i,n,r,o,t,a))}));var g=d?void 0:(u?c?ah:St:c?Kp:de)(t);return b(g||t,(function(i,o){g&&(i=t[o=i]),fl(s,o,e(i,n,r,o,t,a))})),s},Mh=function(e,t){return null==(e=function(e,t){return t.length<2?e:In(e,Sn(t,0,-1))}(e,t=vn(t,e)))||delete e[bn(cl(t))]};var Ah=Function.prototype,Eh=Object.prototype,Ch=Ah.toString,Nh=Eh.hasOwnProperty,Sh=Ch.call(Object);const kh=function(e){return function(e){if(!L(e)||"[object Object]"!=D(e))return!1;var t=ih(e);if(null===t)return!0;var n=Nh.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Ch.call(n)==Sh}(e)?void 0:e},jh=ml((function(e,t){var n={};if(null==e)return n;var r=!1;t=pn(t,(function(t){return t=vn(t,e),r||(r=t.length>1),t})),Jp(e,ah(e),n),r&&(n=Th(n,7,kh));for(var i=t.length;i--;)Mh(n,t[i]);return n})),Dh={errors:{},nowPlaying:null,playbackTimes:{}},Lh=e=>function(t,n){void 0===n&&(n=Cf);var r,i=!1,o=lp(n),a=function(){i||(i=!0,Jd(r)&&r(),o.close())};return r=pf(r=(t=>{const n=setInterval((()=>{--e>0?t(e):(t(ap),clearInterval(n))}),1e3);return()=>clearInterval(n)})((function(e){sp(e)?a():o.put(e)}))),i&&r(),{take:o.take,flush:o.flush,close:a}}();function*Oh(e,t){const n=yield Ff(Lh,e);try{for(;;){const e=yield Uf(n);yield _f(t(e))}}finally{(yield zf(Pf,{}))&&n.close()}}function*Rh(e,t){const n=t.payload;try{const t=null!=n.restrictedAudioId?yield function(e){void 0===e&&(e=uf);for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return zf(Rf,{selector:e,args:n})}(Hc(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 Ff(e.playRestrictedAudio,t.src,t.restrictedAudioId,n):yield Ff(e.playAudio,t.src)}}(e,n,t);"ok"===r.response?(yield _f(zu(n)),yield Ff(Oh,n.duration,Fu),yield _f(Uu())):(yield _f(_u(n,r.response)),yield Hf(5e3),yield _f(Bu(n))),r.cleanup&&r.cleanup()}catch(e){console.error(e)}}function*Ph(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 Gf.apply(void 0,[Op,e,t].concat(r))}("PLAY_AUDIO",Rh,e)}const zh={casStatus:"forbidden"},{createAction:Uh}=Ru.deprecated,_h=e=>(0,Ru.action)("ALLOW_CAS_COUNTDOWN",e),Bh=Uh("ALLOW_CAS_SUCCEEDED"),Fh=Uh("ALLOW_CAS_CANCELLED"),Gh=e=>(0,Ru.action)("UPDATE_CAS_REMAINING",e);function*Zh(e,{payload:t}){try{if("allowed"===(yield Ff(e.setCasStatus,"allowing")))return void(yield _f(Bh()));yield _f(_h(t));const{cancelled:i}=yield(n={finished:Ff(Oh,t,Gh),cancelled:Uf("ALLOW_CAS_CANCELLED")},r=zf(jf,n),r.combinator=!0,r);"allowed"===(yield Ff(e.setCasStatus,i?"forbidden":"allowed"))?yield _f(Bh()):i||(yield _f(Fh()))}catch(e){console.error(e)}var n,r}function*Hh(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 Gf.apply(void 0,[Rp,e,t].concat(r))}("ALLOW_CAS",Zh,e)}const qh=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:jd.INIT}))throw new Error(Nd(12));if(void 0===n(void 0,{type:jd.PROBE_UNKNOWN_ACTION()}))throw new Error(Nd(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(Nd(14));a[s]=u,o=o||u!==c}return o=o||r.length!==Object.keys(e).length,o?a:e}}({answers:function(e=Bp,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=Fp(e.savedQuestionIds,n),i=Fp(e.serverQuestionIds,n),o=_p(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=Dh,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=jh(e.errors,[n.src]);return{...e,playbackTimes:r,errors:i}}return e}case"SHOW_AUDIO_ERROR":{const{audio:n,error:r}=t.payload,i=xn(n,"restrictedAudioId",n.src),o={...e.errors,[i]:r};return{...e,errors:o,nowPlaying:null}}case"HIDE_AUDIO_ERROR":{const n=t.payload,r=xn(n,"restrictedAudioId",n.src),i=jh(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=zh,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*Vh(e){yield Gf(Qp,e),yield Gf(Ph,e),yield Gf(Hh,e)}function Yh(e,t,n,r,i){const o=new Set(Ed(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}(Cd(r,"restrictedAudioId"),"times"),s=Cd(n,"questionId"),l={answers:{answersById:s,focusedQuestionId:null,serverQuestionIds:o,supportsAnswerHistory:"function"==typeof i.selectAnswerVersion,savedQuestionIds:o,examStructure:e,validationErrors:_p(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?cp():o,s=n.sagaMonitor,l=Yd(n,["context","channel","sagaMonitor"]);function c(e){var n=e.getState,r=e.dispatch;return t=Sp.bind(null,Vd({},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){df(i,e)},c}(),u=(window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__||Ld)(function(...e){return t=>(n,r)=>{const i=t(n,r);let o=()=>{throw new Error(Nd(15))};const a={getState:i.getState,dispatch:(e,...t)=>o(e,...t)},s=e.map((e=>e(a)));return o=Ld(...s)(i.dispatch),{...i,dispatch:o}}}(c)),d=Dd(qh,l,u);return c.run(Vh,i),d}const Wh=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))})),Qh=t().memo((function({element:n}){const r=n.getAttribute("src"),i=Ce(n,"duration"),{t:o}=jl(),a=Sc(Gc(r)),s=Sc(Zc(r)),l=Fc(),{abitti2:c,resolveAttachment:u}=(0,e.useContext)(ic),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(Pu({src:r,duration:i,audioRef:d}))},t().createElement(qa,{className:"e-mrg-r-1",icon:ts,fixedWidth:!0}),o("audio-test.play"))),t().createElement("div",{className:"e-column"},t().createElement(Ou,{error:s},be))),t().createElement("div",null,o("audio-test.volume")))})),Jh=({children:e})=>t().createElement("footer",{className:"e-footer"},e),Xh=ms({}),$h=t().memo((function(n){const{root:r}=(0,e.useContext)(ic),{t:i}=jl(),o=Te(r,"reference").filter((e=>null==Me(e,"external-material")));return o.length>0?t().createElement(tc,{"aria-labelledby":Ul},t().createElement("h2",{id:Ul},i("references.heading")),t().createElement("div",{className:"anchor",id:"references"}),t().createElement("ol",{className:"e-list-data","data-annotation-anchor":Ul},o.map(((e,n)=>{const r=Me(e,"question").getAttribute("display-number");return t().createElement("li",{"data-list-number":md(r),key:`${r}${n}`},t().createElement(td,{element:e,renderChildNodes:Xh}))})))):null})),Kh=(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"})))))})),eg=({element:n,renderChildNodes:r})=>{var i;const{attachmentsURL:o}=(0,e.useContext)(ic),{displayNumber:a,maxScore:s,level:l}=(0,e.useContext)(cd),{t:c}=jl(),{isInSidebar:u}=(0,e.useContext)(cs),d=Ae(n,"question-title"),f=null!=a&&we(n,"external-material"),p=[];let h={},g=!1;if(u){const e=Sc((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)),y=null==p?void 0:p.filter((e=>{var t;return null===(t=h[e.id])||void 0===t?void 0:t.value})).length,v=Number(n.getAttribute("max-answers"))||p.length,b=Le("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:uc("",{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:y===v})},y,"/",v),!u&&f&&t().createElement("span",{className:"e-column e-column--narrow e-external-material"},t().createElement("a",{href:uc(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:Ka,fixedWidth:!0})),t().createElement("div",{className:"answers"},p.map((e=>t().createElement(Kh,{key:e.id,type:e.type,id:e.id,answer:h[e.id],error:e.error,displayNumber:e.displayNumber})))," "))},tg=t().memo((function({maxAnswers:e,minAnswers:n,elementType:r,childQuestions:i}){const o=i.map((e=>{return"string"==typeof(t=e)||!_(t)&&L(t)&&"[object String]"==D(t)?e:e.getAttribute("display-number");var t})),{t:a}=jl(),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=[ll(o),cl(o)];return t().createElement(t().Fragment,null,a(s,{answerCount:l,questions:c}))})),ng=({element:n,renderChildNodes:r})=>{const{sections:i}=(0,e.useContext)(ic),{childQuestions:o,displayNumber:a,minAnswers:s,maxAnswers:l}=(0,e.useContext)(lc),{t:c}=jl(),{isInSidebar:u}=(0,e.useContext)(cs),d=u&&!!Sc((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=Le("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:Hl(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(tg,{maxAnswers:l,minAnswers:s,childQuestions:o,elementType:"toc-section"})))))},rg=({element:n,answers:r,renderChildNodes:i})=>{const{displayNumber:o}=(0,e.useContext)(lc),a=Ae(n,"section-title");return t().createElement("li",{"data-section-id":o},a&&t().createElement(ng,{element:a,renderChildNodes:i,answers:r}),t().createElement("ol",{className:"e-list-data e-pad-l-0","aria-labelledby":a&&Hl(o)},i(n,1)))},ig=n=>{const{showAnsweringInstructions:r,isInSidebar:i}=n,o=ms({section:cc(rg),question:ud(eg)});return t().memo((()=>{const{root:n,maxScore:a}=(0,e.useContext)(ic),{t:s}=jl(),l=Ce(n,"max-answers"),c=i&&!!Sc((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":Ql,ref:u},!i&&t().createElement("h2",{id:Ql},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(cs.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"})))}))},og=()=>{const e=xn(window,"TEST_VERSION_NUMBER");return t().createElement("span",null,"EE v.",e||"23.0.3")},ag=t().memo(gc((function({element:n,renderChildNodes:r}){const{isExternal:i}=(0,e.useContext)(hc);return i?null:t().createElement("span",{className:"exam-attachment e-mrg-b-2"},r(n))}))),sg=({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))},lg=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)(cd),c=Sc((e=>e.answers.answersById[i])),u=Fc(),d=(0,e.useCallback)((e=>{u(Gp({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(sg,{element:e,onSelect:d,renderChildNodes:r,questionId:i,key:n,direction:a,selected:s,value:o})})))}));a(4828);const cg=e=>"object"==typeof e&&null!=e&&1===e.nodeType,ug=(e,t)=>(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e,dg=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const n=getComputedStyle(e,null);return ug(n.overflowY,t)||ug(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},fg=(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,pg=e=>{const t=e.parentElement;return null==t?e.getRootNode().host||null:t};var hg=function(){return hg=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},hg.apply(this,arguments)};Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;var gg=0;function mg(){}function yg(e,t,n){return e===t||t instanceof n.Node&&e.contains&&e.contains(t)}function vg(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 bg(){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 Ig(){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 xg(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 wg(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=Tg(s,t<0,n,r,i);return-1===l?e>=o?-1:e:l}function Tg(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?Tg(t?o-1:0,t,n,r):-1}function Mg(e,t,n,r){return void 0===r&&(r=!0),n&&t.some((function(t){return t&&(yg(t,e,n)||r&&yg(t,n.document.activeElement,n))}))}var Ag=vg((function(e){Eg(e).textContent=""}),500);function Eg(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 Cg={highlightedIndex:-1,isOpen:!1,selectedItem:null,inputValue:""};var Ng=vg((function(e,t){!function(e,t){e&&t&&(Eg(t).textContent=e,Ag(t))}(e,t)}),200),Sg="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?e.useLayoutEffect:e.useEffect,kg="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(gg++):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 jg(e){return""+e.slice(0,1).toUpperCase()+e.slice(1)}function Dg(t){var n=(0,e.useRef)(t);return n.current=t,n}function Lg(t,n,r,i){var o=(0,e.useRef)(),a=(0,e.useRef)(),s=(0,e.useCallback)((function(e,n){a.current=n,e=xg(e,n.props);var r=t(e,n);return n.props.stateReducer(e,Vd({},n,{changes:r}))}),[t]),l=(0,e.useReducer)(s,n,r),c=l[0],u=l[1],d=Dg(n),f=(0,e.useCallback)((function(e){return u(Vd({props:d.current},e))}),[d]),p=a.current;return(0,e.useEffect)((function(){var e=xg(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"+jg(e)+"Change";i[a]&&void 0!==r[e]&&r[e]!==n[e]&&i[a](Vd({type:o},r))}(r,e,t,n),n[r]!==t[r]&&(o[r]=n[r])})),r.onStateChange&&Object.keys(o).length&&r.onStateChange(Vd({type:i},o))}(p,e,c),o.current=c}),[c,p,i]),[c,f]}var Og={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(!cg(e))throw new TypeError("Invalid target");const f=document.scrollingElement||document.documentElement,p=[];let h=e;for(;cg(h)&&d(h);){if(h=pg(h),h===f){p.push(h);break}null!=h&&h===document.body&&dg(h)&&!dg(document.documentElement)||null!=h&&dg(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:y,scrollY:v}=window,{height:b,width:I,top:x,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?x-A:"end"===s?T+C:x+b/2-A+C,k="center"===l?M+I/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&&x>=0&&M>=0&&T<=m&&w<=g&&x>=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 L="offsetWidth"in t?t.offsetWidth-t.clientWidth-h-E:0,O="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?fg(v,v+m,m,A,C,v+S,v+S+b,b):S-m/2,D="start"===l?k:"center"===l?k-g/2:"end"===l?k-g:fg(y,y+g,g,h,E,y+k,y+k+I,I),N=Math.max(0,N+v),D=Math.max(0,D+y);else{N="start"===s?S-i-A:"end"===s?S-c+C+O:"nearest"===s?fg(i,c,n,A,C+O,S,S+b,b):S-(i+n/2)+O/2,D="start"===l?k-u-h:"center"===l?k-(u+r/2)+L/2:"end"===l?k-o+E+L:fg(u,o,r,h,E+L,k,k+I,I);const{scrollLeft:e,scrollTop:a}=t;N=0===P?0:Math.max(0,Math.min(a+N/P,t.scrollHeight-n/P+O)),D=0===R?0:Math.max(0,Math.min(e+D/R,t.scrollWidth-r/R+L)),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 Rg(e,t,n){void 0===n&&(n=Cg);var r=e["default"+jg(t)];return void 0!==r?r:n[t]}function Pg(e,t,n){void 0===n&&(n=Cg);var r=e[t];if(void 0!==r)return r;var i=e["initial"+jg(t)];return void 0!==i?i:Rg(e,t,n)}function zg(e){var t=Pg(e,"selectedItem"),n=Pg(e,"isOpen"),r=function(e){var t=Pg(e,"highlightedIndex");return t>-1&&e.isItemDisabled(e.items[t],t)?-1:t}(e),i=Pg(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 Ug(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 _g(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);Ng(e,s)}}),i),(0,e.useEffect)((function(){return function(){var e,t;Ng.cancel(),(t=null==(e=s)?void 0:e.getElementById("a11y-status-message"))&&t.remove()}}),[s])}var Bg=mg;function Fg(e,t,n){var r;return void 0===n&&(n=!0),Vd({isOpen:!1,highlightedIndex:-1},(null==(r=e.items)?void 0:r.length)&&t>=0&&Vd({selectedItem:e.items[t],isOpen:Rg(e,"isOpen"),highlightedIndex:Rg(e,"highlightedIndex")},n&&{inputValue:e.itemToString(e.items[t])}))}function Gg(e,t){return e.isOpen===t.isOpen&&e.inputValue===t.inputValue&&e.highlightedIndex===t.highlightedIndex&&e.selectedItem===t.selectedItem}function Zg(e){var t=Rg(e,"highlightedIndex");return t>-1&&e.isItemDisabled(e.items[t],t)?-1:t}var Hg=Vd({},{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});hg(hg({},Hg),{items:Da().array.isRequired,isItemDisabled:Da().func});var qg=hg(hg({},Og),{isItemDisabled:function(){return!1}}),Vg=mg,Yg=1,Wg=2,Qg=3,Jg=4,Xg=5,$g=6,Kg=7,em=8,tm=9,nm=10,rm=11,im=14,om=19,am=Object.freeze({__proto__:null,FunctionCloseMenu:17,FunctionOpenMenu:16,FunctionReset:21,FunctionSelectItem:om,FunctionSetHighlightedIndex:18,FunctionSetInputValue:20,FunctionToggleMenu:15,ItemClick:im,ItemMouseMove:13,MenuMouseLeave:12,ToggleButtonBlur:rm,ToggleButtonClick:0,ToggleButtonKeyDownArrowDown:Yg,ToggleButtonKeyDownArrowUp:Wg,ToggleButtonKeyDownCharacter:Qg,ToggleButtonKeyDownEnd:$g,ToggleButtonKeyDownEnter:Kg,ToggleButtonKeyDownEscape:Jg,ToggleButtonKeyDownHome:Xg,ToggleButtonKeyDownPageDown:nm,ToggleButtonKeyDownPageUp:tm,ToggleButtonKeyDownSpaceButton:em});function sm(e,t){var n,r,i=t.type,o=t.props,a=t.altKey;switch(i){case im:r={isOpen:Rg(o,"isOpen"),highlightedIndex:Zg(o),selectedItem:o.items[t.index]};break;case Qg: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 Yg:r={highlightedIndex:e.isOpen?wg(e.highlightedIndex,1,o.items,o.isItemDisabled):a&&null==e.selectedItem?-1:Ug(o,e,1),isOpen:!0};break;case Wg:r=e.isOpen&&a?Fg(o,e.highlightedIndex,!1):{highlightedIndex:e.isOpen?wg(e.highlightedIndex,-1,o.items,o.isItemDisabled):Ug(o,e,-1),isOpen:!0};break;case Kg:case em:r=Fg(o,e.highlightedIndex,!1);break;case Xg:r={highlightedIndex:Tg(0,!1,o.items,o.isItemDisabled),isOpen:!0};break;case $g:r={highlightedIndex:Tg(o.items.length-1,!0,o.items,o.isItemDisabled),isOpen:!0};break;case tm:r={highlightedIndex:wg(e.highlightedIndex,-10,o.items,o.isItemDisabled)};break;case nm:r={highlightedIndex:wg(e.highlightedIndex,10,o.items,o.isItemDisabled)};break;case Jg:r={isOpen:!1,highlightedIndex:-1};break;case rm:r=Vd({isOpen:!1,highlightedIndex:-1},e.highlightedIndex>=0&&(null==(n=o.items)?void 0:n.length)&&{selectedItem:o.items[e.highlightedIndex]});break;case om: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:Ug(o,e,0)};break;case n.FunctionOpenMenu:r={isOpen:!0,highlightedIndex:Ug(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:Zg(o),isOpen:Rg(o,"isOpen"),selectedItem:Rg(o,"selectedItem"),inputValue:Rg(o,"inputValue")};break;default:throw new Error("Reducer called without proper action type.")}return Vd({},e,r)}(e,t,am)}return Vd({},e,r)}var lm=["onClick"],cm=["onMouseLeave","refKey","ref"],um=["onBlur","onClick","onPress","onKeyDown","refKey","ref"],dm=["item","index","onMouseMove","onClick","onMouseDown","onPress","refKey","disabled","ref"];function fm(t){void 0===t&&(t={}),Vg(t,fm);var n=Vd({},qg,t),r=n.scrollIntoView,i=n.environment,o=n.getA11yStatusMessage,a=function(e,t,n,r){var i=Lg(e,t,n,r),o=i[0],a=i[1];return[xg(o,t),a]}(sm,n,zg,Gg),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),y=kg(n),v=Dg({state:s,props:n}),b=(0,e.useCallback)((function(e){return g.current[y.getItemId(e)]}),[y]);_g(o,s,[c,u,d,f],i);var I=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 Sg((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=vg((function(e){e({type:20,inputValue:""})}),500),function(){m.current.cancel()}}),[]),(0,e.useEffect)((function(){f&&m.current(l)}),[l,f]),Bg({props:n,state:s}),(0,e.useEffect)((function(){Pg(n,"isOpen")&&p.current&&p.current.focus()}),[]);var x=function(t,n,r){var i=(0,e.useRef)({isMouseDown:!1,isTouchMove:!1,isTouchEnd:!1});return(0,e.useEffect)((function(){if(!t)return mg;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,Mg(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||Mg(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(){v.current.state.isOpen&&l({type:rm})}),[l,v]),(0,e.useMemo)((function(){return[h,p]}),[h.current,p.current])),w=mg;(0,e.useEffect)((function(){c||(g.current={})}),[c]);var T=(0,e.useMemo)((function(){return{ArrowDown:function(e){e.preventDefault(),l({type:Yg,altKey:e.altKey})},ArrowUp:function(e){e.preventDefault(),l({type:Wg,altKey:e.altKey})},Home:function(e){e.preventDefault(),l({type:Xg})},End:function(e){e.preventDefault(),l({type:$g})},Escape:function(){v.current.state.isOpen&&l({type:Jg})},Enter:function(e){e.preventDefault(),l({type:v.current.state.isOpen?Kg:0})},PageUp:function(e){v.current.state.isOpen&&(e.preventDefault(),l({type:tm}))},PageDown:function(e){v.current.state.isOpen&&(e.preventDefault(),l({type:nm}))}," ":function(e){e.preventDefault();var t=v.current.state;t.isOpen?t.inputValue?l({type:Qg,key:" "}):l({type:em}):l({type:0})}}}),[l,v]),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:om,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=Yd(t,lm);return Vd({id:y.labelId,htmlFor:y.toggleButtonId,onClick:bg(n,(function(){var e;null==(e=p.current)||e.focus()}))},r)}),[y]),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=Yd(r,cm),u=(void 0===t?{}:t).suppressRefError;return w("getMenuProps",void 0!==u&&u,a,h),Vd(((n={})[a]=Ig(s,(function(e){h.current=e})),n.id=y.menuId,n.role="listbox",n["aria-labelledby"]=c&&c["aria-label"]?void 0:""+y.labelId,n.onMouseLeave=bg(i,(function(){l({type:12})})),n),c)}),[l,w,y]);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=Yd(r,um),f=(void 0===t?{}:t).suppressRefError,h=void 0!==f&&f,g=v.current.state,m=Vd(((n={})[c]=Ig(u,(function(e){p.current=e})),n["aria-activedescendant"]=g.isOpen&&g.highlightedIndex>-1?y.getItemId(g.highlightedIndex):"",n["aria-controls"]=y.menuId,n["aria-expanded"]=v.current.state.isOpen,n["aria-haspopup"]="listbox",n["aria-labelledby"]=d&&d["aria-label"]?void 0:""+y.labelId,n.id=y.toggleButtonId,n.role="combobox",n.tabIndex=0,n.onBlur=bg(i,(function(){g.isOpen&&!x.isMouseDown&&l({type:rm})})),n),d);return d.disabled||(m.onClick=bg(o,(function(){l({type:0})})),m.onKeyDown=bg(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:Qg,key:t})}))),w("getToggleButtonProps",h,c,p),m}),[l,y,v,x,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=Yd(n,dm);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=v.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=Vd(((t={})[u]=Ig(f,(function(e){e&&(g.current[y.getItemId(M)]=e)})),t["aria-disabled"]=A,t["aria-selected"]=T===m.selectedItem,t.id=y.getItemId(M),t.role="option",t),p);return A||(E.onClick=bg(a,(function(){l({type:im,index:M})}))),E.onMouseMove=bg(o,(function(){x.isTouchEnd||M===m.highlightedIndex||(I.current=!1,l({type:13,index:M,disabled:A}))})),E.onMouseDown=bg(s,(function(e){return e.preventDefault()})),E}),[v,y,x,I,l]),toggleMenu:M,openMenu:E,closeMenu:A,setHighlightedIndex:C,selectItem:N,reset:S,setInputValue:k,highlightedIndex:u,isOpen:c,selectedItem:d,inputValue:f}}fm.stateChangeTypes=am,Vd({},Hg,{items:Da().array.isRequired,isItemDisabled:Da().func,inputValue:Da().string,defaultInputValue:Da().string,initialInputValue:Da().string,inputId:Da().string,onInputValueChange:Da().func}),Vd({},Og,{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 pm=a(7767),hm=a.n(pm);const gm=Promise.all([new(hm())("Noto Sans",{weight:300}).load(),new(hm())("Noto Sans",{weight:400}).load(),new(hm())("Noto Sans",{weight:600}).load()]).then((()=>{mm=!0})).catch(ul);let mm=!1;const ym=({id:e,size:n="small",score:r})=>{const{t:i}=jl(),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}))},vm=!navigator.userAgent.includes("jsdom/"),bm=t().memo((({element:n,renderChildNodes:r})=>{const i=Ce(n,"question-id"),o=Ce(n,"max-score"),a=Sc((e=>e.answers.answersById[i])),s=Fc(),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)(mm);vm&&(gm.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?Ln(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:y,questionLabelIds:v}=(0,e.useContext)(cd),{getItemProps:b,getMenuProps:I,getToggleButtonProps:x,highlightedIndex:w,isOpen:T,selectedItem:M}=fm({items:m,itemToString:e=>e?e.textContent:"",onSelectedItemChange:({selectedItem:e})=>{const t=e?e.getAttribute("option-id"):"";s(Gp({type:"choice",questionId:i,value:t,displayNumber:l}))},initialSelectedItem:c}),{t:A}=jl(),E=ql(n),C=(0,e.useContext)(ss),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}),...x({"aria-describedby":E,"aria-labelledby":v},{suppressRefError:!vm})},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:ns}))),t().createElement("span",{...I({className:Er()("e-dropdown-answer__menu",{"e-dropdown-answer__menu--open":T}),"aria-labelledby":void 0,ref:d},{suppressRefError:!vm})},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))))))),y.length>1&&t().createElement(ym,{score:o,size:"inline",id:E}))})),Im=t().memo((function({element:e,renderChildNodes:n}){return t().createElement("div",{className:"e-exam-footer"},n(e))})),xm=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))})),wm=t().memo((function(){const{examServerApi:n}=(0,e.useContext)(ac),{examineExam:r}=n,{t:i}=jl();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 Tm(e){return`${cl(e.split("."))}.`}function Mm({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&&Tm(o)," ",r(a))}const Am=({element:e,renderChildNodes:n})=>{const r=Sc((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(Mm,{answer:e,focusedQuestionId:r,renderChildNodes:n,key:i}))))):t().createElement(t().Fragment,null,n(e))},Em=(0,e.createContext)({expanded:!1,toggleWriterMode:()=>{}}),Cm=t().memo(ud((function({element:n,renderChildNodes:r}){const i=Sc((e=>e.cas.casStatus)),{casForbidden:o}=(0,e.useContext)(lc),{displayNumber:a,level:s}=(0,e.useContext)(cd),{examServerApi:l}=(0,e.useContext)(ac),[c,u]=(0,e.useState)(!1),{t:d}=jl(),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:y}=(0,e.useContext)(ve);return(0,e.useEffect)((()=>{(null==m?void 0:m.current)&&0===s&&y&&y(m.current)}),[]),o&&"forbidden"!==i?null:t().createElement(Em.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)))}))),Nm=t().memo((function({element:e,renderChildNodes:n}){const r=Fl(e);return t().createElement("div",{className:"exam-question-instruction e-mrg-b-2",id:r},n(e))})),Sm=()=>t().createElement(qa,{size:"lg",icon:es,fixedWidth:!0,className:"e-color-link e-mrg-r-1"}),km=t().memo((({element:n,renderChildNodes:r})=>{const{displayNumber:i,maxScore:o,level:a,maxAnswers:s,childQuestions:l}=(0,e.useContext)(cd),c=`h${Math.min(3+a,6)}`,u=Bl(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})},`${md(i)} `),r(n)," ",t().createElement(ym,{score:o,size:0===a?"large":"small"})),null!=s&&l.length>0&&t().createElement("p",{className:"e-italic"},t().createElement(Sm,null),t().createElement(tg,{maxAnswers:s,childQuestions:l,elementType:"question"})))})),jm=({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 Dm(){const{t:e}=jl();return t().createElement("p",null,t().createElement("em",null,e("end-of-exam")))}function Lm(n){const r=Fc(),{t:i}=jl(),{casCountdownDuration:o}=(0,e.useContext)(ac);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(wm,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,Ru.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(jm,{className:"e-mrg-b-2",duration:o,durationRemaining:n.durationRemaining}),t().createElement("button",{className:"e-button",id:"allow-cas-cancelled",onClick:()=>r(Fh()),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 Om=t().memo(cc((function({element:n,renderChildNodes:r}){const i=Sc((e=>e.cas),Rc),{casForbidden:o,displayNumber:a}=(0,e.useContext)(lc),{sections:s}=(0,e.useContext)(ic),l=n===cl(s);return t().createElement(tc,{className:"exam-section","aria-labelledby":_l(a)},r(n),o&&t().createElement(Lm,{...i}),l&&t().createElement(Dm,null))}))),Rm=t().memo((function({element:e,renderChildNodes:n}){return t().createElement("div",{className:"e-mrg-b-2"},n(e))})),Pm=t().memo((function({element:n,renderChildNodes:r}){const{sections:i}=(0,e.useContext)(ic),{displayNumber:o,minAnswers:a,maxAnswers:s,childQuestions:l}=(0,e.useContext)(lc),{t:c}=jl(),u=t().createRef(),{addRef:d}=(0,e.useContext)(ve);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:_l(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(Sm,null),t().createElement(tg,{maxAnswers:s,minAnswers:a,childQuestions:l,elementType:"section"})))})),zm=e=>t().createElement("div",{className:"e-student-name-container"},e.studentName),Um=({children:e})=>t().createElement("span",{className:"e-screen-reader-only"},e),_m=t().memo((function({answer:e,element:n,screenshotError:r,validationError:i,selectAnswerVersion:o,showAnswerHistory:a=!1,supportsAnswerHistory:s=!1}){const{t:l}=jl(),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 Bm extends t().PureComponent{constructor(e){super(e),this.handleSaveError=e=>{const t=(()=>{switch(xn(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(Em.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(Gm,null),t().createElement(qa,{icon:rs})))))}}Bm.contextType=ic;const Fm=Bm,Gm=()=>{const{t:e}=jl();return t().createElement("div",{className:"label",id:"expand-label"},e("open-writing-mode"))},Zm=t().memo((({maxLength:e,id:n})=>{const{t:r}=jl();return t().createElement("p",{id:n,className:"e-answer-length-info"},t().createElement(Sm,null),t().createElement("em",null,r("max-length-info",{count:e})))}));function Hm(e){return e.replace(/\s/g,"").length}const qm=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)(ic),{questionLabelIds:d,answers:f}=(0,e.useContext)(cd),{examServerApi:p}=(0,e.useContext)(ac),[h,g]=(0,e.useState)(),m=Sc((e=>e.answers.answersById[o])),y=Sc((e=>e.answers.supportsAnswerHistory)),v=Sc((e=>e.answers.supportsAnswerHistory&&e.answers.serverQuestionIds.has(o))),b=Sc((e=>e.answers.validationErrors.find((e=>"AnswerTooLong"===e.type&&e.displayNumber===a)))),I=Fc(),x=(0,e.useRef)(null),w=m&&m.value,T=ql(n),M=null!=b,A=l?u:void 0,E=n.hasAttribute("max-length")?`${d} ${Gl(n)}`:d;(0,e.useEffect)((()=>{const{current:e}=x;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:Hm(t),displayNumber:a};I(Gp(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:Hm(t),displayNumber:a};I(Gp(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:Hm(t),displayNumber:a};I(Gp(n)),g(void 0)}),[o,a]),D=(0,e.useCallback)((e=>g(e)),[h]),L=(0,e.useCallback)((()=>I((e=>(0,Ru.action)("ANSWER_FOCUSED",e))(o))),[o]),O=(0,e.useCallback)((()=>I((e=>(0,Ru.action)("ANSWER_BLURRED",e))(o))),[o]),R=(0,e.useCallback)(((e,t)=>I(((e,t)=>(0,Ru.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(Zm,{maxLength:c,id:Gl(n)}),t().createElement("div",{className:"text-answer-container"},t().createElement(Fm,{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(_m,{answer:m,element:n,selectAnswerVersion:R,showAnswerHistory:v,supportsAnswerHistory:y,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:L,onBlur:O,ref:x,"data-question-id":o,lang:A,"aria-describedby":T,"aria-labelledby":E}),f.length>1&&t().createElement(ym,{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:L,onBlur:O,ref:x,"data-question-id":o,lang:A,"aria-describedby":T,"aria-labelledby":E}),f.length>1&&t().createElement(ym,{score:s,size:"inline",id:T}))}})),Vm=t().memo((function(e){const{element:n,renderChildNodes:r}=e,i=n.getAttribute("display-number"),o=Ae(n,"hint"),a=t().createElement(qm,{...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"},Tm(i)),t().createElement(Um,null,r(o)),a):a)}));var Ym=a(6660),Wm=a.n(Ym);class Qm 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(Jm,{croppedAnswer:n,characterCount:r,screenshotCount:i,answerIndex:o,minutesSinceAnswer:a}))}}const Jm=({croppedAnswer:e,characterCount:n,screenshotCount:r,answerIndex:i,minutesSinceAnswer:o})=>{const{t:a}=jl(),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 Xm=a(4867),$m=a.n(Xm);const Km=Wm().CancelToken;function ey(e){return{type:e.type,value:e.value,answerTime:e.answer_time,characterCount:e.character_count}}function ty(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 ny(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(uy,null)))}function ry(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 iy(e,t=50){const n=ry(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 oy(e){return ry(e).replace(/\s/g,"").length}function ay(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 sy extends t().PureComponent{constructor(e){super(e),this.source=Km.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 Wm().get(`/rest/answer-history/${e}`,{cancelToken:this.source.token})).data.map(ey);this.setState({answers:t,selectedAnswerIndex:0,loading:!1,loadRetryTimeout:null})}catch(t){Wm().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($m(),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(cy,{close:this.close.bind(this)}),this.state.loading?t().createElement(ly,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(Qm,{key:new Date(e.answerTime).getTime(),answerIndex:r,selected:r===this.state.selectedAnswerIndex,onChange:e=>this.setState({selectedAnswerIndex:e}),croppedAnswer:iy(e),minutesSinceAnswer:o,characterCount:oy(e),screenshotCount:ay(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(ty,{selectedAnswer:e}),t().createElement(ny,{selectedAnswer:e,selectedAnswerIndex:this.state.selectedAnswerIndex,restoreAnswer:this.props.restoreAnswer,questionId:this.props.questionId}))))))}}const ly=()=>{const{t:e}=jl();return t().createElement("div",{style:{padding:"10px"}},e("undo.loading"))},cy=({close:e})=>{const{t:n}=jl();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")}))},uy=()=>{const{t:e}=jl();return t().createElement("div",null,e("undo.restoreAnswer"))},dy=e=>{const{t:n}=jl(),{displayNumber:r,elementType:i}=e;return t().createElement("div",null,"exam"!==i&&"toc-section"!==i?n(i,{displayNumber:r})||t().createElement(hy,{...e}):""," ",t().createElement(tg,{...e}))},fy=({displayNumber:e,characterCount:n})=>{const{t:r}=jl();return t().createElement("div",null,r("question",{displayNumber:e})," ",r("answer-errors.answer-too-long",{count:n}))};function py({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:is,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(dy,{...e,key:n}):t().createElement(fy,{...e,key:n})})))):null}const hy=({elementType:n,displayNumber:r})=>{if("section"===n){const{root:n}=(0,e.useContext)(ic),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},gy=t().memo((()=>{const e=Sc((e=>e.answers.validationErrors));return t().createElement(py,{validationErrors:e,inExam:!0})})),my=t().memo((function(){const e=Sc(Vc),{t:n}=jl();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")))})),yy=ms({attachment:ag,"attachment-link":fc("link"),"attachment-links":pc("link"),audio:Hu,"audio-title":Kl,"audio-group":Wh,"audio-test":Qh,"choice-answer":lg,"dropdown-answer":bm,"exam-footer":Im,"external-material":Vu,file:Yu,formula:Wu,image:Xu,question:Cm,"question-number":dd,translation:fd,"question-instruction":Nm,"question-title":km,hints:Am,references:$h,"scored-text-answer":Vm,"scored-text-answers":Am,"section-instruction":Rm,section:Om,"section-title":Pm,"text-answer":Vm,video:nd,"image-overlay":ld}),vy=()=>{const{t:e}=jl();return t().createElement("div",{className:"e-examine-exam-instructions",id:"examineExamInstructions"},e("examine-exam.instructions"))},by=t().memo(sc(oc((({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:y,resolveAttachment:b,root:I,subjectLanguage:x}=(0,e.useContext)(ic),w=Ae(I,"exam-title"),T=Ae(I,"exam-instruction"),M=Ae(I,"table-of-contents"),A=Ae(I,"external-material"),E=I.getAttribute("exam-stylesheet"),C=(0,e.createRef)(),N=Xl((()=>Yh(xd(n),r,i,o,a))),S=Xl((()=>ig({showAttachmentLinks:!0,showAnsweringInstructions:!0,isInSidebar:!0}))),k=Xl((()=>ig({showAttachmentLinks:!0,showAnsweringInstructions:!0,isInSidebar:!1}))),j=Xl((()=>kl(y,m,g)));(0,e.useEffect)(Dl(j,y)),(0,e.useEffect)(Jl,[]);const[D,L]=(0,e.useState)([]);(0,e.useEffect)((()=>{const e=new IntersectionObserver(O),t=D;return t.forEach((t=>e.observe(t))),()=>{t.forEach((t=>e.unobserve(t)))}}),[D]);const O=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(Pc,{store:N},t().createElement(ls,{annotations:u,onClickAnnotation:d,onSaveAnnotation:f},t().createElement(ve.Provider,{value:{visibleTOCElements:R,addRef:e=>{D.includes(e)||L((t=>[...t,e]))}}},t().createElement(v,{i18n:j},t().createElement("main",{className:"e-exam",lang:x,"aria-labelledby":zl,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:yy})),t().createElement("div",{className:"main-exam-container"},t().createElement("div",{className:"main-exam"},t().createElement(zm,{studentName:s}),t().createElement(tc,{"aria-labelledby":zl},w&&t().createElement($l,{id:zl},yy(w)),p&&t().createElement("p",null,t().createElement("strong",null,h.format(p))),T&&t().createElement(xm,{element:T,renderChildNodes:yy}),M&&t().createElement("div",{className:"main-toc-container"},t().createElement(k,{element:M,renderChildNodes:yy})),A&&t().createElement(Vu,{element:A,renderChildNodes:yy,forceRender:!0})),yy(I),(U||z)&&t().createElement("div",{className:"e-examine-exam"},t().createElement(wm,null),t().createElement(vy,null))))),(U||z)&&t().createElement(Jh,null,t().createElement("div",{className:"e-footer-version-number-container"},t().createElement(og,null))),t().createElement("div",{className:"e-indicators-container"},t().createElement(gy,null),t().createElement(my,null)),l&&z&&t().createElement(sy,{...c}))))))})))),Iy=e=>n=>{const r=r=>e(r)?t().createElement(n,{...r}):null;return r.displayName=`RenderIf(${nc(n)})`,r},xy=t().createContext({}),wy=({element:n,renderChildNodes:r})=>{const{EditorComponent:i}=(0,e.useContext)(xy),{displayNumber:o}=(0,e.useContext)(cd);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))},Ty=({element:n,renderChildNodes:r})=>{const{answers:i}=(0,e.useContext)(cd),o=Ae(n,"answer-grading-instruction"),a=Ce(n,"max-length"),s=t().createElement(t().Fragment,null,null!=a&&t().createElement(Zm,{maxLength:a}),t().createElement("ul",null,r(n)),o&&t().createElement(wy,{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(ym,{score:i})),s)}},My=({element:e,renderChildNodes:n})=>{const r=Ce(e,"score");if(!r)return null;const{t:i}=jl();return t().createElement("li",null,n(e),be,"(",i("points",{count:r}),")")},Ay=({element:e,renderChildNodes:n})=>t().createElement("div",{className:"e-exam-grading-instruction notification e-pad-4","data-annotation-anchor":"exam-grading-instruction"},n(e)),Ey=ud((function({element:n,renderChildNodes:r}){const{displayNumber:i,level:o}=(0,e.useContext)(cd);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))})),Cy=({element:e,renderChildNodes:n})=>{const r=Ae(e,["audio-transcription","video-transcription"]);if(r){const{t:i}=jl(),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},Ny=cc((({element:n,renderChildNodes:r})=>{const{displayNumber:i}=(0,e.useContext)(lc);return t().createElement(tc,{className:"e-grading-instruction-section","aria-labelledby":_l(i)},r(n))})),Sy=({EditorComponent:e,children:n})=>t().createElement(xy.Provider,{value:{EditorComponent:e}},n),ky=Iy((({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"]))),jy=Iy((({element:e})=>null==Me(e,["external-material"]))),Dy=ms({"accepted-answer":My,attachment:ec,"attachment-link":jy(fc("plain")),"attachment-links":jy(pc("plain")),audio:Cy,"audio-group":ec,"choice-answer":Ty,"choice-answer-option":My,"dropdown-answer":Ty,"dropdown-answer-option":My,"external-material":ec,file:ky(Yu),formula:ky(Wu),hints:ec,image:ky(Xu),question:Ey,"question-title":({element:n,renderChildNodes:r})=>{const{displayNumber:i,maxScore:o,level:a}=(0,e.useContext)(cd),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})},`${md(i)} `),r(n)," ",t().createElement(ym,{score:o,size:0===a?"large":"small"})))},"question-instruction":Nm,"question-grading-instruction":wy,"question-number":dd,translation:fd,"scored-text-answer":Ty,"text-answer":Ty,section:Ny,"section-title":({element:n,renderChildNodes:r})=>{const{sections:i}=(0,e.useContext)(ic),{displayNumber:o}=(0,e.useContext)(lc),{t:a}=jl();return t().createElement(t().Fragment,null,n.hasChildNodes()&&t().createElement("h2",{className:"e-grading-instructions-section-title",id:_l(o)},i.length>1&&a("section",{displayNumber:o})," ",r(n)))},video:Cy}),Ly=()=>{const{t:e}=jl();return t().createElement(t().Fragment,null,e("grading-instructions-page-title"))},Oy=t().memo(oc((({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)(ic),h=Ae(s,"exam-title"),g=Ae(s,"exam-grading-instruction"),m=Ae(s,"table-of-contents"),y=ig({showAnsweringInstructions:!1,showAttachmentLinks:!1,isInSidebar:!1}),b=Xl((()=>kl(f,d,u)));return(0,e.useEffect)(Dl(b,f)),(0,e.useEffect)(Jl,[]),t().createElement(ls,{annotations:r,onClickAnnotation:i,onSaveAnnotation:o},t().createElement(Sy,{EditorComponent:a},t().createElement(v,{i18n:b},t().createElement("main",{className:"e-exam e-grading-instructions",lang:p},t().createElement(t().StrictMode,null),t().createElement(tc,{"aria-labelledby":zl},t().createElement($l,{id:zl},t().createElement(Ly,null)," ",h&&Dy(h)),l&&t().createElement("p",null,t().createElement("strong",null,c.format(l))),g&&t().createElement(Ay,{element:g,renderChildNodes:Dy}),m&&t().createElement("div",{className:"main-toc-container"},t().createElement(y,{element:m,renderChildNodes:Dy}))),Dy(s)))))}))),Ry=t().createContext({}),Py=rc(Ry,(({scores:e,doc:t,gradingStructure:n,gradingText:r,answers:i,singleGrading:o})=>{const a=Cd(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=zy(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=Uy(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===Ie(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 zy(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 Uy(e,t){return e.find((e=>e.questionId===t))}const _y=()=>{const{gradingStructure:t}=(0,e.useContext)(Ry);return void 0===t},By=t().memo((function({answers:n,displayNumber:r,children:i,multilineAnswer:o,questionId:a}){var s;const{displayNumber:l}=(0,e.useContext)(cd),c=_y(),u=r?`${l}.${null==r?void 0:r.replace(".","")}`:void 0,{answersByQuestionId:d}=(0,e.useContext)(Ry),f=!(!a||!d)&&(null===(s=d[a])||void 0===s?void 0:s.answerNonAnswer),{t:p}=jl();return c?null: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"},n.length>1&&r&&t().createElement("sup",{className:"e-result-scorecount-sup e-mrg-r-1","aria-hidden":"true"},r),i))})),Fy=t().memo((function({score:n,maxScore:r,displayNumber:i,questionId:o}){const{answers:a}=(0,e.useContext)(cd),{t:s}=jl(),l={answers:a,displayNumber:i,questionId:o};return t().createElement(By,{...l},"number"==typeof n?t().createElement("b",null,n):t().createElement("span",{className:"e-result-scorecount-empty"})," ",r?`/ ${r} `:null," ",s("points",{count:""}))}));function Gy({renderChildNodes:e,selected:n,element:r,questionId:i,direction:o,isCorrect:a}){const{t:s}=jl(),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(Um,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 Zy=t().memo((function({element:n,renderChildNodes:r}){var i,o;const{answersByQuestionId:a,gradingStructure:s}=(0,e.useContext)(Ry),l=Ce(n,"question-id"),c=a[l],u=n.getAttribute("direction")||"vertical",d=n.getAttribute("class"),f=zy(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(Fy,{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(Gy,{element:e,renderChildNodes:r,questionId:l,key:i,direction:u,selected:o,isCorrect:(null==a?void 0:a.correct)||!1})}))))})),Hy=t().memo((function({element:n,renderChildNodes:r}){var i;const{t:o,i18n:a}=jl(),{answersByQuestionId:s,gradingStructure:l}=(0,e.useContext)(Ry),{answers:c}=(0,e.useContext)(cd),u=Ce(n,"question-id"),d=s[u],f=Ae(n,(e=>(null==d?void 0:d.value)===e.getAttribute("option-id"))),p=_y(),h=zy(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")))),y=f&&g.includes(Ce(f,"option-id")),v=Tm(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,I=Ce(n,"max-score");return t().createElement(t().Fragment,null,c.length>1&&t().createElement("sup",null,v),t().createElement("span",{className:Er()("e-dropdown-answer__answered",!f&&"e-dropdown-answer__no-answer",!p&&{"e-dropdown-answer__answered--correct":y,"e-dropdown-answer__answered--wrong":!y}),"data-question-id":u,"aria-description":f?void 0:a.t("examineExam.questionHasNoAnswer")},t().createElement(Um,null,o("screen-reader.answer-begin")),f&&r(f),t().createElement(Um,null,o("screen-reader.answer-end")),y&&t().createElement(Um,null,o("screen-reader.correct-answer"))),!p&&!y&&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(Fy,{score:b,maxScore:I,displayNumber:v,questionId:u}))}));function qy({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(Vy,{annotations:e})):t().createElement(t().Fragment,null,t().createElement("div",{className:"e-column e-column--6"},t().createElement(Vy,{i18nTitleKey:"grading.pregrading-annotations",annotations:e})),t().createElement("div",{className:"e-column e-column--6"},t().createElement(Vy,{i18nTitleKey:"grading.censor-annotations",annotations:n})))):null}const Vy=({i18nTitleKey:e,annotations:n})=>{const{t:r}=jl();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},Yy=t().memo((function(){const{answers:n}=(0,e.useContext)(cd),{scores:r,singleGrading:i}=(0,e.useContext)(Ry),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=Uy(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)=>Pp(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?Tm(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(qy,{pregradingAnnotations:s,censoringAnnotations:l,singleGrading:!!i})})),Wy=t().memo(ud((function({element:n,renderChildNodes:r}){var i,o;const{answersByQuestionId:a,gradingStructure:s}=(0,e.useContext)(Ry),{displayNumber:l,level:c}=(0,e.useContext)(cd),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}=jl(),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(Yy,null))}))),Qy=t().memo((function({element:n,renderChildNodes:r}){const{displayNumber:i,level:o,maxAnswers:a,maxScore:s,childQuestions:l}=(0,e.useContext)(cd),c=`h${Math.min(3+o,6)}`,u=_y();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})},`${md(i)} `),r(n)," ",u&&t().createElement(ym,{score:s,size:0===o?"large":"small"})),null!=a&&l.length>0&&t().createElement("p",{className:"e-italic"},t().createElement(Sm,null),t().createElement(tg,{maxAnswers:a,childQuestions:l,elementType:"question"})))})),Jy=t().memo(cc((function({element:n,renderChildNodes:r}){const{displayNumber:i}=(0,e.useContext)(lc);return t().createElement(tc,{"aria-labelledby":_l(i)},t().createElement("div",{className:"e-results-section-wrapper"},r(n)))}))),Xy=5;function $y(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":tv(e,a,i,l,s,r);break;default:rv(e,a,i,l,s,r)}}}function Ky(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 ev(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 tv(e,t,n,r,i,o){const{attachmentIndex:a}=t;return nv(e.querySelectorAll("img")[a],o?t.message:"",t,n,r,i)}function nv(e,t,n,r,i,o){const a=ev(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 Ky(e,n),o&&e.appendChild(iv(o,"shape",n.message)),e}();return a.appendChild(s),s}function rv(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(iv(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 iv(e,t,n){return De("sup",{className:`e-annotation__index e-annotation__index--${t}`,"data-content":n.length>Xy?`${e})`:n,"data-message":n})}const ov=t().memo((function({displayNumber:n,score:r,value:i,answers:o,children:a}){const{t:s,i18n:l}=jl(),c=(0,e.useRef)(null);return(0,e.useLayoutEffect)((()=>{var e,t,n,i;c.current&&$y(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(Um,null,s("screen-reader.answer-begin")),t().createElement("span",{className:"e-inline-block",ref:c},i),t().createElement(Um,null,s("screen-reader.answer-end"))),a)})),av=t().memo((function({element:n}){const{answers:r}=(0,e.useContext)(cd),{answersByQuestionId:i,scores:o}=(0,e.useContext)(Ry),a=Ce(n,"question-id"),s=Ce(n,"max-score"),l=i[a],c=l&&l.value,u=Tm(n.getAttribute("display-number")),d=Uy(o,a),f=null==d?void 0:d.autograding;return t().createElement(ov,{answers:r,displayNumber:u,value:c,score:d},t().createElement(Fy,{score:null==f?void 0:f.score,maxScore:s,displayNumber:r.length>1?u:void 0,questionId:a}))}));function sv({maxScore:e}){const{t:n}=jl();return t().createElement(t().Fragment,null,t().createElement("span",{className:"e-result-scorecount-empty"}),e&&` / ${e} `,n("points",{count:""}))}function lv({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 cv({score:e,shortCode:n,type:r,maxScore:i,latest:o}){const{t:a}=jl();return t().createElement("div",{className:o?"e-color-black":"e-color-darkgrey e-font-size-xs"},t().createElement(uv,{className:Er()("e-nowrap",{"e-font-size-m":o})},o?t().createElement("b",null,e):e,o&&i?` / ${i}`:""," p."),t().createElement(uv,{className:"e-result-scorecount-shortcode"},n),t().createElement(uv,{className:"e-mrg-r-0"},a(r)))}function uv({className:e,children:n}){return t().createElement("span",{className:Er()("e-mrg-r-1 e-nowrap",e)},n)}function dv({score:e}){return void 0!==e?{score:e,shortCode:"",type:"grading.pregrading-abbrev"}:null}function fv(e){return e.scores.map(((t,n)=>({score:t.score,shortCode:t.shortCode||"",type:"grading.round."+(e.scores.length-n)})))}const pv=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)(cd),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(By,{...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?fv(e.censoring):[],e.pregrading&&dv(e.pregrading)].filter(Boolean).map(((e,r)=>t().createElement(cv,{key:r,...e,latest:0===r,maxScore:n})))}(n,r),h&&t().createElement(lv,{shortCode:h})):t().createElement(sv,{maxScore:r}))})),hv=({type:n,score:r,value:i})=>{const{t:o,i18n:a}=jl(),s=(0,e.useRef)(null);return(0,e.useLayoutEffect)((()=>{var e,t,n,i;s.current&&$y(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(Um,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(Um,null,o("screen-reader.answer-end")))},gv=t().memo((function({element:n}){var r;const{answers:i}=(0,e.useContext)(cd),{answersByQuestionId:o,scores:a}=(0,e.useContext)(Ry),{t:s}=jl(),l=Ce(n,"question-id"),c=Ce(n,"max-score"),u=o[l],d=u&&u.value,f=i.length>1?Tm(n.getAttribute("display-number")):void 0,p=Uy(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(Zm,{maxLength:m}),t().createElement(pv,{multilineAnswer:!0,scores:p,maxScore:c,questionId:l}),t().createElement(hv,{type:g,value:d,score:p}),t().createElement(_m,{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(ov,{answers:i,score:p,displayNumber:f,value:d},t().createElement(pv,{scores:p,maxScore:c,displayNumber:f,questionId:l}))})),mv=({onEndSession:e,sessionEnded:n})=>{const{t:r}=jl();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"))))},yv=ms({attachment:Kl,"attachment-link":fc("plain"),"attachment-links":pc("plain"),"audio-group":Kl,"choice-answer":Zy,"dropdown-answer":Hy,formula:Wu,question:Wy,hints:Kl,image:Iy((({element:e})=>null!=Me(e,"choice-answer")))(Xu),"question-instruction":Nm,"question-number":dd,translation:fd,"question-title":Qy,section:Jy,"section-title":Pm,"text-answer":gv,"scored-text-answer":av,"scored-text-answers":Kl}),vv=()=>{const{t:e}=jl();return e("examineExam.returnToExam")},bv=()=>{const{t:e}=jl();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 Iv(){const{gradingText:n,totalScore:r}=(0,e.useContext)(Ry),{t:i}=jl();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 xv=t().memo(Py(oc((({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)(ic),{answersByQuestionId:g}=(0,e.useContext)(Ry),m=Ae(p,"exam-title"),y=p.getAttribute("exam-stylesheet"),b=Xl((()=>kl(d,u,c)));(0,e.useEffect)(Dl(b,d)),(0,e.useEffect)(Jl,[]);const I=_y(),x=void 0!==i,w=!I&&!a;return(0,e.useEffect)((()=>{window.location.hash=""}),[]),t().createElement(v,{i18n:b},t().createElement("main",{className:Er()("e-exam e-results",{"examine-exam-page":I,"session-ended":o}),lang:h},t().createElement(t().StrictMode,null),y&&t().createElement("link",{rel:"stylesheet",href:f(y)}),!w&&t().createElement("button",{className:"e-exam-done-return js-exam-done-return e-button",onClick:r},"« ",t().createElement(vv,null)),t().createElement("div",{className:"e-columns e-columns--bottom-v e-mrg-b-4"},m&&t().createElement($l,{id:"title",className:"e-column e-mrg-b-0"},yv(m),s&&`, ${l.format(s)}`),!I&&t().createElement(Iv,null)),!w&&t().createElement(bv,null),t().createElement(py,{validationErrors:_p(xd(n),g),inExam:!1}),yv(p),(x||a)&&t().createElement(mv,{onEndSession:I?()=>{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(Jh,null))})))),wv=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 Tv=Math.max;const Mv=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:rd(n);return i<0&&(i=Tv(r+i,0)),wv(e,An(t),i)};var Av=Math.max,Ev=Math.min;const Cv=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r-1;return void 0!==n&&(i=rd(n),i=n<0?Av(r+i,0):Ev(i,r-1)),wv(e,An(t),i,!0)},Nv=function(e,t,n){var r=e.length;return n=void 0===n?r:n,!t&&n>=r?e:Sn(e,t,n)},Sv=function(e){return e!=e},kv=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):wv(e,Sv,n)};var jv=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");var Dv="\\ud800-\\udfff",Lv="["+Dv+"]",Ov="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Rv="\\ud83c[\\udffb-\\udfff]",Pv="[^"+Dv+"]",zv="(?:\\ud83c[\\udde6-\\uddff]){2}",Uv="[\\ud800-\\udbff][\\udc00-\\udfff]",_v="(?:"+Ov+"|"+Rv+")?",Bv="[\\ufe0e\\ufe0f]?",Fv=Bv+_v+"(?:\\u200d(?:"+[Pv,zv,Uv].join("|")+")"+Bv+_v+")*",Gv="(?:"+[Pv+Ov+"?",Ov,zv,Uv,Lv].join("|")+")",Zv=RegExp(Rv+"(?="+Rv+")|"+Gv+Fv,"g");const Hv=function(e){return function(e){return jv.test(e)}(e)?function(e){return e.match(Zv)||[]}(e):function(e){return e.split("")}(e)};var qv=/^\s+/;const Vv=function(e,t,n){if((e=yn(e))&&(n||void 0===t))return e.replace(qv,"");if(!e||!(t=mn(t)))return e;var r=Hv(e),i=function(e,t){for(var n=-1,r=e.length;++n<r&&kv(t,e[n],0)>-1;);return n}(r,Hv(t));return Nv(r,i).join("")},Yv=function(e,t,n){if((e=yn(e))&&(n||void 0===t))return e.slice(0,nr(e)+1);if(!e||!(t=mn(t)))return e;var r=Hv(e),i=function(e,t){for(var n=e.length;n--&&kv(t,e[n],0)>-1;);return n}(r,Hv(t))+1;return Nv(r,0,i).join("")};function Wv(e,t=!1){const n=(new DOMParser).parseFromString(e,"application/xml");return t||Te(n.documentElement,["choice-answer","dropdown-answer"]).filter((e=>"fixed"!==Ee(e,"ordering"))).forEach(Qv),Te(n.documentElement,"reference").forEach((e=>{Te(e,(()=>!0),!1).forEach(Jv)})),n}function Qv(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 Jv(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=Mv(n,t),i=Cv(n,t);-1!==r&&(n.slice(0,r).forEach((e=>e.remove())),n[r].textContent=Vv(n[r].textContent)),-1!==i&&(n.slice(i+1).forEach((e=>e.remove())),n[i].textContent=Yv(n[i].textContent))}function Xv({characterCount:e,maxLength:n}){const{t:r}=jl(),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 $v=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(qy,{pregradingAnnotations:o,censoringAnnotations:a,singleGrading:r})};let Kv;function eb(e){const t=(null==e?void 0:e.querySelectorAll("img"))||[];Kv=t.length,t.forEach((e=>{e.complete?setTimeout((()=>tb(e)),0):e.addEventListener("load",(()=>tb(e)))}))}function tb(e){Kv--;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 nb(n){const r=Xl((()=>kl(n.language)));return(0,e.useEffect)(Dl(r,n.language)),t().createElement(v,{i18n:r},t().createElement(rb,{...n}))}function rb({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,y;const v={start:void 0,element:void 0,img:void 0};let b,I,x,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&&(y=l,br(g.current,!1),br(p.current,!1),H(y),f.current.setAttribute("lang",o),document.addEventListener("selectionchange",F)),window.onresize=()=>{clearTimeout(w),w=setTimeout((()=>eb(f.current)),1e3)},()=>{window.removeEventListener("keydown",q),window.removeEventListener("mouseup",B),window.removeEventListener("mousemove",Z)})));const{t:j}=jl(),D=C>0&&A!==C,L=S>0;return t().createElement("div",{onClick:e=>function(e){var t;const n=e.target;if(n instanceof HTMLElement)if("MARK"===n.tagName)v.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&&O()}(e),className:"e-grading-answer-wrapper"},D&&t().createElement("div",{className:"loading-images"},t().createElement("span",{className:"loading"},j("grading.loading-images")," (",A,"/",C,")"),L&&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",vr),v.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=yr((o-i.left)/i.width),s=e.clientY;return{attachmentIndex:r,bbox:i,startX:a,startY:yr((s-i.top)/i.height),clientX:o,clientY:s}}(e,n),v.img=n,window.addEventListener("mousemove",Z))}(e),onMouseOver:e=>function(e){const t=e.closest("mark");!t||M||hr()&&!a||v.element||P(t)}(e.target)}),t().createElement(Xv,{characterCount:r,maxLength:u}),t().createElement($v,{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?y[b.role][b.index].message=t:y[s]=gr(f.current,{...m,message:t},y[s]||[]),br(p.current,!1),c(y)}(e)},t().createElement("input",{onFocus:()=>function(){if(!Ir()&&f.current){const e={...y};e[s]=gr(f.current,m,y[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(x)},onMouseOut:O},t().createElement("span",{onClick:e=>function(e){e.target.closest(".editable")&&(br(g.current,!1),U(I,b.message))}(e),className:"e-grading-answer-tooltip-label"}),t().createElement("button",{onClick:e=>function(e){e.preventDefault(),O(),y[b.role].splice(b.index,1),b=void 0,c(y)}(e),className:"e-grading-answer-tooltip-remove"},"×")));function O(){x=setTimeout((()=>{br(g.current,!1)}),400)}function R(e){"MARK"===e.target.tagName&&(clearTimeout(x),O()),f.current.removeEventListener("mouseout",R)}function P(e){clearTimeout(x);const t=g.current,{type:n,listIndex:r,message:i}=e.dataset;t.classList.toggle("editable",!a&&n===s),I=e.getBoundingClientRect(),pr(I,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,v.element=void 0,v.img=void 0,M=!1,window.removeEventListener("keydown",q),br(p.current,!1),H(y)}function B(){var e,t;if(null===(e=v.img)||void 0===e||e.removeEventListener("dragstart",vr),window.removeEventListener("mousemove",Z),window.removeEventListener("mouseup",B),v.element)return void z(null===(t=v.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(y[s],t.startIndex,t.length);m={...t,type:"text",message:r},z(e.getBoundingClientRect(),r);const i={...y};i[s]=gr(f.current,m,y[s]),H(i)}}function F(){Ir()||(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(y[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){vr(e),m=function(e,{bbox:t,attachmentIndex:n,startX:r,startY:i,clientX:o,clientY:a}){const s=yr((e.clientX-t.left)/t.width),l=yr((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,v.start),v.element?Ky(v.element,m):v.element=nv(v.img,"",m,s,999)}function H(e){const t=f.current;"richText"===n?(t.innerHTML=i,t.querySelectorAll("img").forEach(ev),eb(t)):t.textContent=i,$y(t,e.pregrading,e.censoring,!1)}function q(e){"Escape"===e.key&&M&&(e.stopPropagation(),_())}}})(),s})()));
|